@revisium/core 2.4.0 → 2.5.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/jest.setup.js +37 -1
- package/dist/jest.setup.js.map +1 -1
- package/dist/package.json +27 -16
- package/dist/prisma/schema.prisma +4 -5
- package/dist/prisma/seed/generateSeedApi.js +35 -2
- package/dist/prisma/seed/generateSeedApi.js.map +1 -1
- package/dist/prisma/seed/loadFromSeedApi.js +35 -2
- package/dist/prisma/seed/loadFromSeedApi.js.map +1 -1
- package/dist/prisma/seed/permissions/update-user.json +5 -0
- package/dist/prisma/seed/roles/organizationAdmin.json +1 -0
- package/dist/prisma/seed/roles/organizationOwner.json +1 -0
- package/dist/prisma/seed/roles/systemAdmin.json +24 -2
- package/dist/prisma/seed.js +42 -5
- package/dist/prisma/seed.js.map +1 -1
- package/dist/prisma/sql/countRowChangesBetweenRevisions.sql +68 -0
- package/dist/prisma/sql/countTableDiffsBetweenRevisions.sql +23 -13
- package/dist/prisma/sql/getRowChangesPaginatedBetweenRevisions.sql +155 -0
- package/dist/prisma/sql/getRowChangesStatsBetweenRevisions.sql +54 -0
- package/dist/prisma/sql/getTableDiffsPaginatedBetweenRevisions.sql +22 -8
- package/dist/prisma/sql/getTableDiffsStatsBetweenRevisions.sql +41 -0
- package/dist/prisma.config.d.ts +3 -0
- package/dist/prisma.config.js +15 -0
- package/dist/prisma.config.js.map +1 -0
- package/dist/src/__generated__/client/browser.d.ts +18 -0
- package/dist/src/__generated__/client/browser.js +44 -0
- package/dist/src/__generated__/client/browser.js.map +1 -0
- package/dist/src/__generated__/client/client.d.ts +22 -0
- package/dist/src/__generated__/client/client.js +46 -0
- package/dist/src/__generated__/client/client.js.map +1 -0
- package/dist/src/__generated__/client/commonInputTypes.d.ts +441 -0
- package/dist/src/{features/draft/commands/types/remove-row.handler.types.js → __generated__/client/commonInputTypes.js} +1 -1
- package/dist/src/__generated__/client/commonInputTypes.js.map +1 -0
- package/dist/src/__generated__/client/enums.d.ts +11 -0
- package/dist/src/__generated__/client/enums.js +13 -0
- package/dist/src/__generated__/client/enums.js.map +1 -0
- package/dist/src/__generated__/client/index.d.ts +1 -0
- package/dist/src/__generated__/client/index.js +18 -0
- package/dist/src/__generated__/client/index.js.map +1 -0
- package/dist/src/__generated__/client/internal/class.d.ts +75 -0
- package/dist/src/__generated__/client/internal/class.js +69 -0
- package/dist/src/__generated__/client/internal/class.js.map +1 -0
- package/dist/src/__generated__/client/internal/prismaNamespace.d.ts +1572 -0
- package/dist/src/__generated__/client/internal/prismaNamespace.js +289 -0
- package/dist/src/__generated__/client/internal/prismaNamespace.js.map +1 -0
- package/dist/src/__generated__/client/internal/prismaNamespaceBrowser.d.ts +273 -0
- package/dist/src/__generated__/client/internal/prismaNamespaceBrowser.js +272 -0
- package/dist/src/__generated__/client/internal/prismaNamespaceBrowser.js.map +1 -0
- package/dist/src/__generated__/client/models/Branch.d.ts +651 -0
- package/dist/src/__generated__/client/models/Branch.js +3 -0
- package/dist/src/__generated__/client/models/Branch.js.map +1 -0
- package/dist/src/__generated__/client/models/Endpoint.d.ts +701 -0
- package/dist/src/__generated__/client/models/Endpoint.js +3 -0
- package/dist/src/__generated__/client/models/Endpoint.js.map +1 -0
- package/dist/src/__generated__/client/models/EndpointVersion.d.ts +488 -0
- package/dist/src/__generated__/client/models/EndpointVersion.js +3 -0
- package/dist/src/__generated__/client/models/EndpointVersion.js.map +1 -0
- package/dist/src/__generated__/client/models/Instance.d.ts +298 -0
- package/dist/src/__generated__/client/models/Instance.js +3 -0
- package/dist/src/__generated__/client/models/Instance.js.map +1 -0
- package/dist/src/__generated__/client/models/Organization.d.ts +495 -0
- package/dist/src/__generated__/client/models/Organization.js +3 -0
- package/dist/src/__generated__/client/models/Organization.js.map +1 -0
- package/dist/src/__generated__/client/models/Permission.d.ts +556 -0
- package/dist/src/__generated__/client/models/Permission.js +3 -0
- package/dist/src/__generated__/client/models/Permission.js.map +1 -0
- package/dist/src/__generated__/client/models/Project.d.ts +781 -0
- package/dist/src/__generated__/client/models/Project.js +3 -0
- package/dist/src/__generated__/client/models/Project.js.map +1 -0
- package/dist/src/__generated__/client/models/Revision.d.ts +1298 -0
- package/dist/src/__generated__/client/models/Revision.js +3 -0
- package/dist/src/__generated__/client/models/Revision.js.map +1 -0
- package/dist/src/__generated__/client/models/Role.d.ts +858 -0
- package/dist/src/__generated__/client/models/Role.js +3 -0
- package/dist/src/__generated__/client/models/Role.js.map +1 -0
- package/dist/src/__generated__/client/models/Row.d.ts +754 -0
- package/dist/src/__generated__/client/models/Row.js +3 -0
- package/dist/src/__generated__/client/models/Row.js.map +1 -0
- package/dist/src/__generated__/client/models/Table.d.ts +761 -0
- package/dist/src/__generated__/client/models/Table.js +3 -0
- package/dist/src/__generated__/client/models/Table.js.map +1 -0
- package/dist/src/__generated__/client/models/User.d.ts +876 -0
- package/dist/src/__generated__/client/models/User.js +3 -0
- package/dist/src/__generated__/client/models/User.js.map +1 -0
- package/dist/src/__generated__/client/models/UserOrganization.d.ts +764 -0
- package/dist/src/__generated__/client/models/UserOrganization.js +3 -0
- package/dist/src/__generated__/client/models/UserOrganization.js.map +1 -0
- package/dist/src/__generated__/client/models/UserProject.d.ts +764 -0
- package/dist/src/__generated__/client/models/UserProject.js +3 -0
- package/dist/src/__generated__/client/models/UserProject.js.map +1 -0
- package/dist/src/__generated__/client/models.d.ts +15 -0
- package/dist/src/__generated__/client/models.js +3 -0
- package/dist/src/__generated__/client/models.js.map +1 -0
- package/dist/src/__generated__/client/sql/$DbEnums.d.ts +4 -0
- package/dist/src/__generated__/client/sql/$DbEnums.js +3 -0
- package/dist/src/__generated__/client/sql/$DbEnums.js.map +1 -0
- package/dist/src/__generated__/client/sql/countRowChangesBetweenRevisions.d.ts +8 -0
- package/dist/src/__generated__/client/sql/countRowChangesBetweenRevisions.js +39 -0
- package/dist/src/__generated__/client/sql/countRowChangesBetweenRevisions.js.map +1 -0
- package/dist/src/__generated__/client/sql/countTableDiffsBetweenRevisions.d.ts +8 -0
- package/dist/src/__generated__/client/sql/countTableDiffsBetweenRevisions.js +39 -0
- package/dist/src/__generated__/client/sql/countTableDiffsBetweenRevisions.js.map +1 -0
- package/dist/src/__generated__/client/sql/getRowChangesPaginatedBetweenRevisions.d.ts +46 -0
- package/dist/src/__generated__/client/sql/getRowChangesPaginatedBetweenRevisions.js +39 -0
- package/dist/src/__generated__/client/sql/getRowChangesPaginatedBetweenRevisions.js.map +1 -0
- package/dist/src/__generated__/client/sql/getRowChangesStatsBetweenRevisions.d.ts +12 -0
- package/dist/src/__generated__/client/sql/getRowChangesStatsBetweenRevisions.js +39 -0
- package/dist/src/__generated__/client/sql/getRowChangesStatsBetweenRevisions.js.map +1 -0
- package/dist/src/__generated__/client/sql/getTableDiffsPaginatedBetweenRevisions.d.ts +14 -0
- package/dist/src/__generated__/client/sql/getTableDiffsPaginatedBetweenRevisions.js +39 -0
- package/dist/src/__generated__/client/sql/getTableDiffsPaginatedBetweenRevisions.js.map +1 -0
- package/dist/src/__generated__/client/sql/getTableDiffsStatsBetweenRevisions.d.ts +12 -0
- package/dist/src/__generated__/client/sql/getTableDiffsStatsBetweenRevisions.js +39 -0
- package/dist/src/__generated__/client/sql/getTableDiffsStatsBetweenRevisions.js.map +1 -0
- package/dist/src/__generated__/client/sql/hasRowDiffsBetweenRevisions.d.ts +8 -0
- package/dist/src/__generated__/client/sql/hasRowDiffsBetweenRevisions.js +39 -0
- package/dist/src/__generated__/client/sql/hasRowDiffsBetweenRevisions.js.map +1 -0
- package/dist/src/__generated__/client/sql/hasTableDiffsBetweenRevisions.d.ts +8 -0
- package/dist/src/__generated__/client/sql/hasTableDiffsBetweenRevisions.js +39 -0
- package/dist/src/__generated__/client/sql/hasTableDiffsBetweenRevisions.js.map +1 -0
- package/dist/src/__generated__/client/sql.d.ts +9 -0
- package/dist/src/__generated__/client/sql.js +25 -0
- package/dist/src/__generated__/client/sql.js.map +1 -0
- package/dist/src/__tests__/create-models.d.ts +4 -2
- package/dist/src/__tests__/e2e/shared/graphql-helpers.d.ts +29 -0
- package/dist/src/__tests__/e2e/shared/graphql-helpers.js +61 -0
- package/dist/src/__tests__/e2e/shared/graphql-helpers.js.map +1 -0
- package/dist/src/__tests__/e2e/shared/helpers.d.ts +16 -0
- package/dist/src/__tests__/e2e/shared/helpers.js +64 -0
- package/dist/src/__tests__/e2e/shared/helpers.js.map +1 -0
- package/dist/src/__tests__/e2e/shared/index.d.ts +4 -0
- package/dist/src/__tests__/e2e/shared/index.js +26 -0
- package/dist/src/__tests__/e2e/shared/index.js.map +1 -0
- package/dist/src/__tests__/e2e/shared/readonly-fixture.d.ts +5 -0
- package/dist/src/__tests__/e2e/shared/readonly-fixture.js +28 -0
- package/dist/src/__tests__/e2e/shared/readonly-fixture.js.map +1 -0
- package/dist/src/__tests__/e2e/shared/test-app.d.ts +6 -0
- package/dist/src/__tests__/e2e/shared/test-app.js +55 -0
- package/dist/src/__tests__/e2e/shared/test-app.js.map +1 -0
- package/dist/src/__tests__/utils/prepareProject.d.ts +335 -64
- package/dist/src/__tests__/utils/prepareProject.js +83 -24
- package/dist/src/__tests__/utils/prepareProject.js.map +1 -1
- package/dist/src/__tests__/utils/queryTest.js +6 -3
- package/dist/src/__tests__/utils/queryTest.js.map +1 -1
- package/dist/src/api/graphql-api/auth/auth.resolver.d.ts +3 -3
- package/dist/src/api/graphql-api/auth/auth.resolver.js +14 -11
- package/dist/src/api/graphql-api/auth/auth.resolver.js.map +1 -1
- package/dist/src/api/graphql-api/branch/branch.resolver.d.ts +72 -15
- package/dist/src/api/graphql-api/branch/branch.resolver.js +18 -23
- package/dist/src/api/graphql-api/branch/branch.resolver.js.map +1 -1
- package/dist/src/api/graphql-api/branch/inputs/get-branch-revisions.input.d.ts +3 -0
- package/dist/src/api/graphql-api/branch/inputs/get-branch-revisions.input.js +12 -0
- package/dist/src/api/graphql-api/branch/inputs/get-branch-revisions.input.js.map +1 -1
- package/dist/src/api/graphql-api/branch/parent-branch.resolver.d.ts +10 -4
- package/dist/src/api/graphql-api/branch/parent-branch.resolver.js +5 -6
- package/dist/src/api/graphql-api/branch/parent-branch.resolver.js.map +1 -1
- package/dist/src/api/graphql-api/configuration/configuration.resolver.d.ts +3 -3
- package/dist/src/api/graphql-api/configuration/configuration.resolver.js +5 -6
- package/dist/src/api/graphql-api/configuration/configuration.resolver.js.map +1 -1
- package/dist/src/api/graphql-api/draft/draft.resolver.d.ts +14 -13
- package/dist/src/api/graphql-api/draft/draft.resolver.js +31 -22
- package/dist/src/api/graphql-api/draft/draft.resolver.js.map +1 -1
- package/dist/src/api/graphql-api/draft/input/create-row.input.d.ts +1 -1
- package/dist/src/api/graphql-api/draft/input/create-row.input.js +1 -1
- package/dist/src/api/graphql-api/draft/input/create-row.input.js.map +1 -1
- package/dist/src/api/graphql-api/draft/input/create-table.input.d.ts +1 -1
- package/dist/src/api/graphql-api/draft/input/create-table.input.js +1 -1
- package/dist/src/api/graphql-api/draft/input/create-table.input.js.map +1 -1
- package/dist/src/api/graphql-api/draft/input/index.d.ts +1 -0
- package/dist/src/api/graphql-api/draft/input/index.js +1 -0
- package/dist/src/api/graphql-api/draft/input/index.js.map +1 -1
- package/dist/src/api/graphql-api/draft/input/remove-rows.input.d.ts +5 -0
- package/dist/src/api/graphql-api/draft/input/remove-rows.input.js +36 -0
- package/dist/src/api/graphql-api/draft/input/remove-rows.input.js.map +1 -0
- package/dist/src/api/graphql-api/draft/input/update-row.input.d.ts +1 -1
- package/dist/src/api/graphql-api/draft/input/update-row.input.js +1 -1
- package/dist/src/api/graphql-api/draft/input/update-row.input.js.map +1 -1
- package/dist/src/api/graphql-api/draft/model/remove-rows-result.model.d.ts +7 -0
- package/dist/src/api/graphql-api/draft/model/remove-rows-result.model.js +34 -0
- package/dist/src/api/graphql-api/draft/model/remove-rows-result.model.js.map +1 -0
- package/dist/src/api/graphql-api/endpoint/endpoint.resolver.d.ts +14 -7
- package/dist/src/api/graphql-api/endpoint/endpoint.resolver.js +21 -13
- package/dist/src/api/graphql-api/endpoint/endpoint.resolver.js.map +1 -1
- package/dist/src/api/graphql-api/endpoint/inputs/get-project-endpoints.input.d.ts +9 -0
- package/dist/src/api/graphql-api/endpoint/inputs/get-project-endpoints.input.js +45 -0
- package/dist/src/api/graphql-api/endpoint/inputs/get-project-endpoints.input.js.map +1 -0
- package/dist/src/api/graphql-api/endpoint/inputs/index.d.ts +1 -0
- package/dist/src/api/graphql-api/endpoint/inputs/index.js +1 -0
- package/dist/src/api/graphql-api/endpoint/inputs/index.js.map +1 -1
- package/dist/src/api/graphql-api/endpoint/model/endpoint.model.d.ts +1 -0
- package/dist/src/api/graphql-api/endpoint/model/endpoint.model.js +4 -0
- package/dist/src/api/graphql-api/endpoint/model/endpoint.model.js.map +1 -1
- package/dist/src/api/graphql-api/endpoint/model/endpoints-connection.model.d.ts +5 -0
- package/dist/src/api/graphql-api/endpoint/model/endpoints-connection.model.js +19 -0
- package/dist/src/api/graphql-api/endpoint/model/endpoints-connection.model.js.map +1 -0
- package/dist/src/api/graphql-api/endpoint/model/index.d.ts +1 -0
- package/dist/src/api/graphql-api/endpoint/model/index.js +1 -0
- package/dist/src/api/graphql-api/endpoint/model/index.js.map +1 -1
- package/dist/src/api/graphql-api/filters/graphql-validation-exception.filter.d.ts +6 -0
- package/dist/src/api/graphql-api/filters/graphql-validation-exception.filter.js +40 -0
- package/dist/src/api/graphql-api/filters/graphql-validation-exception.filter.js.map +1 -0
- package/dist/src/api/graphql-api/graphql-api.module.js +43 -3
- package/dist/src/api/graphql-api/graphql-api.module.js.map +1 -1
- package/dist/src/api/graphql-api/organization/model/organization.model.d.ts +6 -0
- package/dist/src/api/graphql-api/organization/model/organization.model.js +33 -0
- package/dist/src/api/graphql-api/organization/model/organization.model.js.map +1 -0
- package/dist/src/api/graphql-api/organization/model/users-organization.model.d.ts +1 -0
- package/dist/src/api/graphql-api/organization/model/users-organization.model.js.map +1 -1
- package/dist/src/api/graphql-api/organization/organization.resolver.d.ts +20 -8
- package/dist/src/api/graphql-api/organization/organization.resolver.js +34 -15
- package/dist/src/api/graphql-api/organization/organization.resolver.js.map +1 -1
- package/dist/src/api/graphql-api/organization/users-organization.resolver.d.ts +13 -0
- package/dist/src/api/graphql-api/organization/users-organization.resolver.js +39 -0
- package/dist/src/api/graphql-api/organization/users-organization.resolver.js.map +1 -0
- package/dist/src/api/graphql-api/permission/model/permission.model.d.ts +6 -0
- package/dist/src/api/graphql-api/permission/model/permission.model.js +37 -0
- package/dist/src/api/graphql-api/permission/model/permission.model.js.map +1 -0
- package/dist/src/api/graphql-api/project/inputs/index.d.ts +1 -0
- package/dist/src/api/graphql-api/project/inputs/index.js +1 -0
- package/dist/src/api/graphql-api/project/inputs/index.js.map +1 -1
- package/dist/src/api/graphql-api/project/inputs/update-user-project-role.input.d.ts +7 -0
- package/dist/src/api/graphql-api/project/inputs/update-user-project-role.input.js +37 -0
- package/dist/src/api/graphql-api/project/inputs/update-user-project-role.input.js.map +1 -0
- package/dist/src/api/graphql-api/project/model/project.model.d.ts +4 -0
- package/dist/src/api/graphql-api/project/model/project.model.js +10 -0
- package/dist/src/api/graphql-api/project/model/project.model.js.map +1 -1
- package/dist/src/api/graphql-api/project/model/users-project.model.d.ts +1 -0
- package/dist/src/api/graphql-api/project/model/users-project.model.js.map +1 -1
- package/dist/src/api/graphql-api/project/project.resolver.d.ts +32 -9
- package/dist/src/api/graphql-api/project/project.resolver.js +63 -16
- package/dist/src/api/graphql-api/project/project.resolver.js.map +1 -1
- package/dist/src/api/graphql-api/project/users-project.resolver.d.ts +13 -0
- package/dist/src/api/graphql-api/project/users-project.resolver.js +45 -0
- package/dist/src/api/graphql-api/project/users-project.resolver.js.map +1 -0
- package/dist/src/api/graphql-api/registerGraphqlEnums.js +1 -1
- package/dist/src/api/graphql-api/registerGraphqlEnums.js.map +1 -1
- package/dist/src/api/graphql-api/revision/child-branch.resolver.d.ts +10 -4
- package/dist/src/api/graphql-api/revision/child-branch.resolver.js +5 -6
- package/dist/src/api/graphql-api/revision/child-branch.resolver.js.map +1 -1
- package/dist/src/api/graphql-api/revision/model/revision.model.d.ts +4 -0
- package/dist/src/api/graphql-api/revision/model/revision.model.js +9 -0
- package/dist/src/api/graphql-api/revision/model/revision.model.js.map +1 -1
- package/dist/src/api/graphql-api/revision/revision.resolver.d.ts +32 -12
- package/dist/src/api/graphql-api/revision/revision.resolver.js +41 -22
- package/dist/src/api/graphql-api/revision/revision.resolver.js.map +1 -1
- package/dist/src/api/graphql-api/revision-changes/input/get-revision-changes.input.d.ts +5 -0
- package/dist/src/api/graphql-api/revision-changes/input/get-revision-changes.input.js +32 -0
- package/dist/src/api/graphql-api/revision-changes/input/get-revision-changes.input.js.map +1 -0
- package/dist/src/api/graphql-api/revision-changes/input/get-row-changes.input.d.ts +8 -0
- package/dist/src/api/graphql-api/revision-changes/input/get-row-changes.input.js +41 -0
- package/dist/src/api/graphql-api/revision-changes/input/get-row-changes.input.js.map +1 -0
- package/dist/src/api/graphql-api/revision-changes/input/get-table-changes.input.d.ts +8 -0
- package/dist/src/api/graphql-api/revision-changes/input/get-table-changes.input.js +41 -0
- package/dist/src/api/graphql-api/revision-changes/input/get-table-changes.input.js.map +1 -0
- package/dist/src/api/graphql-api/revision-changes/input/index.d.ts +5 -0
- package/dist/src/api/graphql-api/revision-changes/input/index.js +22 -0
- package/dist/src/api/graphql-api/revision-changes/input/index.js.map +1 -0
- package/dist/src/api/graphql-api/revision-changes/input/row-changes-filters.input.d.ts +7 -0
- package/dist/src/api/graphql-api/revision-changes/input/row-changes-filters.input.js +37 -0
- package/dist/src/api/graphql-api/revision-changes/input/row-changes-filters.input.js.map +1 -0
- package/dist/src/api/graphql-api/revision-changes/input/table-changes-filters.input.d.ts +7 -0
- package/dist/src/api/graphql-api/revision-changes/input/table-changes-filters.input.js +37 -0
- package/dist/src/api/graphql-api/revision-changes/input/table-changes-filters.input.js.map +1 -0
- package/dist/src/api/graphql-api/revision-changes/model/enums.model.d.ts +26 -0
- package/dist/src/api/graphql-api/revision-changes/model/enums.model.js +39 -0
- package/dist/src/api/graphql-api/revision-changes/model/enums.model.js.map +1 -0
- package/dist/src/api/graphql-api/revision-changes/model/field-change.model.d.ts +12 -0
- package/dist/src/api/graphql-api/revision-changes/model/field-change.model.js +56 -0
- package/dist/src/api/graphql-api/revision-changes/model/field-change.model.js.map +1 -0
- package/dist/src/api/graphql-api/revision-changes/model/index.d.ts +7 -0
- package/dist/src/api/graphql-api/revision-changes/model/index.js +24 -0
- package/dist/src/api/graphql-api/revision-changes/model/index.js.map +1 -0
- package/dist/src/api/graphql-api/revision-changes/model/revision-changes.model.d.ts +14 -0
- package/dist/src/api/graphql-api/revision-changes/model/revision-changes.model.js +66 -0
- package/dist/src/api/graphql-api/revision-changes/model/revision-changes.model.js.map +1 -0
- package/dist/src/api/graphql-api/revision-changes/model/row-change.model.d.ts +56 -0
- package/dist/src/api/graphql-api/revision-changes/model/row-change.model.js +227 -0
- package/dist/src/api/graphql-api/revision-changes/model/row-change.model.js.map +1 -0
- package/dist/src/api/graphql-api/revision-changes/model/schema-change.model.d.ts +34 -0
- package/dist/src/api/graphql-api/revision-changes/model/schema-change.model.js +138 -0
- package/dist/src/api/graphql-api/revision-changes/model/schema-change.model.js.map +1 -0
- package/dist/src/api/graphql-api/revision-changes/model/table-change.model.d.ts +23 -0
- package/dist/src/api/graphql-api/revision-changes/model/table-change.model.js +86 -0
- package/dist/src/api/graphql-api/revision-changes/model/table-change.model.js.map +1 -0
- package/dist/src/api/graphql-api/revision-changes/model/views-change.model.d.ts +15 -0
- package/dist/src/api/graphql-api/revision-changes/model/views-change.model.js +67 -0
- package/dist/src/api/graphql-api/revision-changes/model/views-change.model.js.map +1 -0
- package/dist/src/api/graphql-api/revision-changes/revision-changes.resolver.d.ts +10 -0
- package/dist/src/api/graphql-api/revision-changes/revision-changes.resolver.js +88 -0
- package/dist/src/api/graphql-api/revision-changes/revision-changes.resolver.js.map +1 -0
- package/dist/src/api/graphql-api/role/model/role.model.d.ts +2 -0
- package/dist/src/api/graphql-api/role/model/role.model.js +5 -0
- package/dist/src/api/graphql-api/role/model/role.model.js.map +1 -1
- package/dist/src/api/graphql-api/role/role.resolver.d.ts +7 -0
- package/dist/src/api/graphql-api/role/role.resolver.js +39 -0
- package/dist/src/api/graphql-api/role/role.resolver.js.map +1 -0
- package/dist/src/api/graphql-api/row/inputs/get-rows.input.d.ts +2 -1
- package/dist/src/api/graphql-api/row/inputs/get-rows.input.js +2 -1
- package/dist/src/api/graphql-api/row/inputs/get-rows.input.js.map +1 -1
- package/dist/src/api/graphql-api/row/inputs/search-rows.input.d.ts +6 -0
- package/dist/src/api/graphql-api/row/inputs/search-rows.input.js +36 -0
- package/dist/src/api/graphql-api/row/inputs/search-rows.input.js.map +1 -0
- package/dist/src/api/graphql-api/row/model/row.model.d.ts +1 -1
- package/dist/src/api/graphql-api/row/model/row.model.js +1 -1
- package/dist/src/api/graphql-api/row/model/row.model.js.map +1 -1
- package/dist/src/api/graphql-api/row/model/search-result.model.d.ts +12 -0
- package/dist/src/api/graphql-api/row/model/search-result.model.js +53 -0
- package/dist/src/api/graphql-api/row/model/search-result.model.js.map +1 -0
- package/dist/src/api/graphql-api/row/model/search-results-connection.model.d.ts +5 -0
- package/dist/src/api/graphql-api/row/model/search-results-connection.model.js +19 -0
- package/dist/src/api/graphql-api/row/model/search-results-connection.model.js.map +1 -0
- package/dist/src/api/graphql-api/row/resolver/search-rows.resolver.d.ts +7 -0
- package/dist/src/api/graphql-api/row/resolver/search-rows.resolver.js +55 -0
- package/dist/src/api/graphql-api/row/resolver/search-rows.resolver.js.map +1 -0
- package/dist/src/api/graphql-api/table/model/table.model.d.ts +3 -1
- package/dist/src/api/graphql-api/table/model/table.model.js +6 -1
- package/dist/src/api/graphql-api/table/model/table.model.js.map +1 -1
- package/dist/src/api/graphql-api/table/table.resolver.d.ts +22 -12
- package/dist/src/api/graphql-api/table/table.resolver.js +40 -24
- package/dist/src/api/graphql-api/table/table.resolver.js.map +1 -1
- package/dist/src/api/graphql-api/user/inputs/index.d.ts +1 -0
- package/dist/src/api/graphql-api/user/inputs/index.js +1 -0
- package/dist/src/api/graphql-api/user/inputs/index.js.map +1 -1
- package/dist/src/api/graphql-api/user/inputs/search-users.input.d.ts +5 -0
- package/dist/src/api/graphql-api/user/inputs/search-users.input.js +32 -0
- package/dist/src/api/graphql-api/user/inputs/search-users.input.js.map +1 -0
- package/dist/src/api/graphql-api/user/model/user.model.d.ts +3 -0
- package/dist/src/api/graphql-api/user/model/user.model.js +5 -0
- package/dist/src/api/graphql-api/user/model/user.model.js.map +1 -1
- package/dist/src/api/graphql-api/user/model/users.connection.d.ts +5 -0
- package/dist/src/api/graphql-api/user/model/users.connection.js +19 -0
- package/dist/src/api/graphql-api/user/model/users.connection.js.map +1 -0
- package/dist/src/api/graphql-api/user/user.resolver.d.ts +17 -9
- package/dist/src/api/graphql-api/user/user.resolver.js +43 -16
- package/dist/src/api/graphql-api/user/user.resolver.js.map +1 -1
- package/dist/src/api/graphql-api/views/input/get-table-views.input.d.ts +4 -0
- package/dist/src/api/graphql-api/views/input/get-table-views.input.js +28 -0
- package/dist/src/api/graphql-api/views/input/get-table-views.input.js.map +1 -0
- package/dist/src/api/graphql-api/views/input/index.d.ts +2 -0
- package/dist/src/api/graphql-api/views/input/index.js +19 -0
- package/dist/src/api/graphql-api/views/input/index.js.map +1 -0
- package/dist/src/api/graphql-api/views/input/update-table-views.input.d.ts +28 -0
- package/dist/src/api/graphql-api/views/input/update-table-views.input.js +114 -0
- package/dist/src/api/graphql-api/views/input/update-table-views.input.js.map +1 -0
- package/dist/src/api/graphql-api/views/model/index.d.ts +4 -0
- package/dist/src/api/graphql-api/views/model/index.js +21 -0
- package/dist/src/api/graphql-api/views/model/index.js.map +1 -0
- package/dist/src/api/graphql-api/views/model/table-views-data.model.d.ts +6 -0
- package/dist/src/api/graphql-api/views/model/table-views-data.model.js +33 -0
- package/dist/src/api/graphql-api/views/model/table-views-data.model.js.map +1 -0
- package/dist/src/api/graphql-api/views/model/view-column.model.d.ts +4 -0
- package/dist/src/api/graphql-api/views/model/view-column.model.js +28 -0
- package/dist/src/api/graphql-api/views/model/view-column.model.js.map +1 -0
- package/dist/src/api/graphql-api/views/model/view-sort.model.d.ts +4 -0
- package/dist/src/api/graphql-api/views/model/view-sort.model.js +28 -0
- package/dist/src/api/graphql-api/views/model/view-sort.model.js.map +1 -0
- package/dist/src/api/graphql-api/views/model/view.model.d.ts +11 -0
- package/dist/src/api/graphql-api/views/model/view.model.js +51 -0
- package/dist/src/api/graphql-api/views/model/view.model.js.map +1 -0
- package/dist/src/api/graphql-api/views/views.resolver.d.ts +10 -0
- package/dist/src/api/graphql-api/views/views.resolver.js +77 -0
- package/dist/src/api/graphql-api/views/views.resolver.js.map +1 -0
- package/dist/src/api/mcp-api/mcp-server.service.d.ts +55 -0
- package/dist/src/api/mcp-api/mcp-server.service.js +202 -0
- package/dist/src/api/mcp-api/mcp-server.service.js.map +1 -0
- package/dist/src/api/mcp-api/mcp-session.service.d.ts +19 -0
- package/dist/src/api/mcp-api/mcp-session.service.js +57 -0
- package/dist/src/api/mcp-api/mcp-session.service.js.map +1 -0
- package/dist/src/api/mcp-api/mcp.controller.d.ts +10 -0
- package/dist/src/api/mcp-api/mcp.controller.js +130 -0
- package/dist/src/api/mcp-api/mcp.controller.js.map +1 -0
- package/dist/src/api/mcp-api/mcp.module.d.ts +2 -0
- package/dist/src/api/mcp-api/mcp.module.js +51 -0
- package/dist/src/api/mcp-api/mcp.module.js.map +1 -0
- package/dist/src/api/mcp-api/resources/file.resource.d.ts +8 -0
- package/dist/src/api/mcp-api/resources/file.resource.js +561 -0
- package/dist/src/api/mcp-api/resources/file.resource.js.map +1 -0
- package/dist/src/api/mcp-api/resources/index.d.ts +4 -0
- package/dist/src/api/mcp-api/resources/index.js +12 -0
- package/dist/src/api/mcp-api/resources/index.js.map +1 -0
- package/dist/src/api/mcp-api/resources/migration.resource.d.ts +6 -0
- package/dist/src/api/mcp-api/resources/migration.resource.js +165 -0
- package/dist/src/api/mcp-api/resources/migration.resource.js.map +1 -0
- package/dist/src/api/mcp-api/resources/query.resource.d.ts +6 -0
- package/dist/src/api/mcp-api/resources/query.resource.js +739 -0
- package/dist/src/api/mcp-api/resources/query.resource.js.map +1 -0
- package/dist/src/api/mcp-api/resources/schema.resource.d.ts +8 -0
- package/dist/src/api/mcp-api/resources/schema.resource.js +547 -0
- package/dist/src/api/mcp-api/resources/schema.resource.js.map +1 -0
- package/dist/src/api/mcp-api/tools/auth.tools.d.ts +12 -0
- package/dist/src/api/mcp-api/tools/auth.tools.js +182 -0
- package/dist/src/api/mcp-api/tools/auth.tools.js.map +1 -0
- package/dist/src/api/mcp-api/tools/branch.tools.d.ts +8 -0
- package/dist/src/api/mcp-api/tools/branch.tools.js +108 -0
- package/dist/src/api/mcp-api/tools/branch.tools.js.map +1 -0
- package/dist/src/api/mcp-api/tools/endpoint.tools.d.ts +14 -0
- package/dist/src/api/mcp-api/tools/endpoint.tools.js +354 -0
- package/dist/src/api/mcp-api/tools/endpoint.tools.js.map +1 -0
- package/dist/src/api/mcp-api/tools/file.tools.d.ts +8 -0
- package/dist/src/api/mcp-api/tools/file.tools.js +75 -0
- package/dist/src/api/mcp-api/tools/file.tools.js.map +1 -0
- package/dist/src/api/mcp-api/tools/index.d.ts +12 -0
- package/dist/src/api/mcp-api/tools/index.js +28 -0
- package/dist/src/api/mcp-api/tools/index.js.map +1 -0
- package/dist/src/api/mcp-api/tools/migration.tools.d.ts +10 -0
- package/dist/src/api/mcp-api/tools/migration.tools.js +67 -0
- package/dist/src/api/mcp-api/tools/migration.tools.js.map +1 -0
- package/dist/src/api/mcp-api/tools/organization.tools.d.ts +8 -0
- package/dist/src/api/mcp-api/tools/organization.tools.js +65 -0
- package/dist/src/api/mcp-api/tools/organization.tools.js.map +1 -0
- package/dist/src/api/mcp-api/tools/project.tools.d.ts +10 -0
- package/dist/src/api/mcp-api/tools/project.tools.js +121 -0
- package/dist/src/api/mcp-api/tools/project.tools.js.map +1 -0
- package/dist/src/api/mcp-api/tools/revision-changes.tools.d.ts +8 -0
- package/dist/src/api/mcp-api/tools/revision-changes.tools.js +114 -0
- package/dist/src/api/mcp-api/tools/revision-changes.tools.js.map +1 -0
- package/dist/src/api/mcp-api/tools/revision.tools.d.ts +10 -0
- package/dist/src/api/mcp-api/tools/revision.tools.js +65 -0
- package/dist/src/api/mcp-api/tools/revision.tools.js.map +1 -0
- package/dist/src/api/mcp-api/tools/row.tools.d.ts +10 -0
- package/dist/src/api/mcp-api/tools/row.tools.js +189 -0
- package/dist/src/api/mcp-api/tools/row.tools.js.map +1 -0
- package/dist/src/api/mcp-api/tools/table.tools.d.ts +10 -0
- package/dist/src/api/mcp-api/tools/table.tools.js +201 -0
- package/dist/src/api/mcp-api/tools/table.tools.js.map +1 -0
- package/dist/src/api/mcp-api/tools/user.tools.d.ts +8 -0
- package/dist/src/api/mcp-api/tools/user.tools.js +50 -0
- package/dist/src/api/mcp-api/tools/user.tools.js.map +1 -0
- package/dist/src/api/mcp-api/types.d.ts +25 -0
- package/dist/src/api/mcp-api/types.js +3 -0
- package/dist/src/api/mcp-api/types.js.map +1 -0
- package/dist/src/api/rest-api/auth/auth.controller.d.ts +7 -5
- package/dist/src/api/rest-api/auth/auth.controller.js +13 -9
- package/dist/src/api/rest-api/auth/auth.controller.js.map +1 -1
- package/dist/src/api/rest-api/auth/dto/update-password.dto.js +8 -2
- package/dist/src/api/rest-api/auth/dto/update-password.dto.js.map +1 -1
- package/dist/src/api/rest-api/branch/branch-by-name.controller.d.ts +13 -5
- package/dist/src/api/rest-api/branch/branch-by-name.controller.js +20 -24
- package/dist/src/api/rest-api/branch/branch-by-name.controller.js.map +1 -1
- package/dist/src/api/rest-api/branch/dto/get-branch-revisions.dto.d.ts +3 -0
- package/dist/src/api/rest-api/branch/dto/get-branch-revisions.dto.js +18 -0
- package/dist/src/api/rest-api/branch/dto/get-branch-revisions.dto.js.map +1 -1
- package/dist/src/api/rest-api/configuration/configuration.controller.d.ts +3 -3
- package/dist/src/api/rest-api/configuration/configuration.controller.js +5 -6
- package/dist/src/api/rest-api/configuration/configuration.controller.js.map +1 -1
- package/dist/src/api/rest-api/endpoint/endpoint-by-id.controller.d.ts +1 -3
- package/dist/src/api/rest-api/endpoint/endpoint-by-id.controller.js +3 -7
- package/dist/src/api/rest-api/endpoint/endpoint-by-id.controller.js.map +1 -1
- package/dist/src/api/rest-api/endpoint/model/endpoint.model.d.ts +1 -1
- package/dist/src/api/rest-api/endpoint/model/endpoint.model.js +1 -1
- package/dist/src/api/rest-api/endpoint/model/endpoint.model.js.map +1 -1
- package/dist/src/api/rest-api/init-swagger.js +34 -1
- package/dist/src/api/rest-api/init-swagger.js.map +1 -1
- package/dist/src/api/rest-api/organization/organization.controller.d.ts +6 -5
- package/dist/src/api/rest-api/organization/organization.controller.js +29 -21
- package/dist/src/api/rest-api/organization/organization.controller.js.map +1 -1
- package/dist/src/api/rest-api/project/project.controller.d.ts +13 -7
- package/dist/src/api/rest-api/project/project.controller.js +36 -22
- package/dist/src/api/rest-api/project/project.controller.js.map +1 -1
- package/dist/src/api/rest-api/rest-api.module.js +12 -2
- package/dist/src/api/rest-api/rest-api.module.js.map +1 -1
- package/dist/src/api/rest-api/revision/dto/create-endpoint.dto.d.ts +1 -1
- package/dist/src/api/rest-api/revision/dto/create-endpoint.dto.js +1 -1
- package/dist/src/api/rest-api/revision/dto/create-endpoint.dto.js.map +1 -1
- package/dist/src/api/rest-api/revision/dto/create-table.dto.d.ts +1 -1
- package/dist/src/api/rest-api/revision/dto/create-table.dto.js +1 -1
- package/dist/src/api/rest-api/revision/dto/create-table.dto.js.map +1 -1
- package/dist/src/api/rest-api/revision/revision-by-id.controller.d.ts +9 -8
- package/dist/src/api/rest-api/revision/revision-by-id.controller.js +25 -29
- package/dist/src/api/rest-api/revision/revision-by-id.controller.js.map +1 -1
- package/dist/src/api/rest-api/row/dto/patch-row.dto.js +21 -3
- package/dist/src/api/rest-api/row/dto/patch-row.dto.js.map +1 -1
- package/dist/src/api/rest-api/row/dto/update-row.dto.d.ts +1 -1
- package/dist/src/api/rest-api/row/dto/update-row.dto.js +1 -1
- package/dist/src/api/rest-api/row/dto/update-row.dto.js.map +1 -1
- package/dist/src/api/rest-api/row/model/row.model.d.ts +1 -1
- package/dist/src/api/rest-api/row/model/row.model.js +1 -1
- package/dist/src/api/rest-api/row/model/row.model.js.map +1 -1
- package/dist/src/api/rest-api/row/row-by-id.controller.d.ts +3 -3
- package/dist/src/api/rest-api/row/row-by-id.controller.js +17 -18
- package/dist/src/api/rest-api/row/row-by-id.controller.js.map +1 -1
- package/dist/src/api/rest-api/share/utils/transformFromPrismaToBranchModel.d.ts +1 -1
- package/dist/src/api/rest-api/share/utils/transformFromPrismaToEndpointsModel.d.ts +1 -1
- package/dist/src/api/rest-api/share/utils/transformFromPrismaToRevisionModel.d.ts +3 -2
- package/dist/src/api/rest-api/share/utils/transformFromPrismaToRevisionModel.js +8 -5
- package/dist/src/api/rest-api/share/utils/transformFromPrismaToRevisionModel.js.map +1 -1
- package/dist/src/api/rest-api/share/utils/transformFromPrismaToRowModel.d.ts +1 -1
- package/dist/src/api/rest-api/share/utils/transformFromPrismaToTableModel.d.ts +1 -1
- package/dist/src/api/rest-api/table/dto/create-row.dto.d.ts +1 -1
- package/dist/src/api/rest-api/table/dto/create-row.dto.js +1 -1
- package/dist/src/api/rest-api/table/dto/create-row.dto.js.map +1 -1
- package/dist/src/api/rest-api/table/dto/index.d.ts +1 -0
- package/dist/src/api/rest-api/table/dto/index.js +1 -0
- package/dist/src/api/rest-api/table/dto/index.js.map +1 -1
- package/dist/src/api/rest-api/table/dto/remove-rows.dto.d.ts +3 -0
- package/dist/src/api/rest-api/table/dto/remove-rows.dto.js +25 -0
- package/dist/src/api/rest-api/table/dto/remove-rows.dto.js.map +1 -0
- package/dist/src/api/rest-api/table/model/index.d.ts +1 -0
- package/dist/src/api/rest-api/table/model/index.js +1 -0
- package/dist/src/api/rest-api/table/model/index.js.map +1 -1
- package/dist/src/api/rest-api/table/model/remove-rows.response.d.ts +7 -0
- package/dist/src/api/rest-api/table/model/remove-rows.response.js +31 -0
- package/dist/src/api/rest-api/table/model/remove-rows.response.js.map +1 -0
- package/dist/src/api/rest-api/table/table-by-id.controller.d.ts +12 -10
- package/dist/src/api/rest-api/table/table-by-id.controller.js +73 -27
- package/dist/src/api/rest-api/table/table-by-id.controller.js.map +1 -1
- package/dist/src/api/rest-api/user/user.controller.d.ts +4 -5
- package/dist/src/api/rest-api/user/user.controller.js +5 -6
- package/dist/src/api/rest-api/user/user.controller.js.map +1 -1
- package/dist/src/core/core.module.js +4 -0
- package/dist/src/core/core.module.js.map +1 -1
- package/dist/src/features/auth/auth.module.js +7 -1
- package/dist/src/features/auth/auth.module.js.map +1 -1
- package/dist/src/features/auth/auth.service.js +35 -2
- package/dist/src/features/auth/auth.service.js.map +1 -1
- package/dist/src/features/auth/commands/auth-api.service.d.ts +7 -1
- package/dist/src/features/auth/commands/auth-api.service.js +18 -0
- package/dist/src/features/auth/commands/auth-api.service.js.map +1 -1
- package/dist/src/features/auth/commands/handlers/check-project-permission.handler.d.ts +1 -0
- package/dist/src/features/auth/commands/handlers/check-project-permission.handler.js +8 -0
- package/dist/src/features/auth/commands/handlers/check-project-permission.handler.js.map +1 -1
- package/dist/src/features/auth/commands/impl/check-project-permission.command.d.ts +4 -0
- package/dist/src/features/auth/commands/impl/check-project-permission.command.js.map +1 -1
- package/dist/src/features/auth/commands/impl/confirm-email-code.command.d.ts +1 -0
- package/dist/src/features/auth/commands/impl/create-user.command.d.ts +1 -0
- package/dist/src/features/auth/commands/impl/login-github.command.d.ts +1 -0
- package/dist/src/features/auth/commands/impl/login-google.command.d.ts +1 -0
- package/dist/src/features/auth/commands/impl/login.command.d.ts +1 -0
- package/dist/src/features/auth/commands/impl/sign-up.command.d.ts +1 -0
- package/dist/src/features/auth/guards/base-persmission.guard.d.ts +1 -3
- package/dist/src/features/auth/guards/base-persmission.guard.js +1 -4
- package/dist/src/features/auth/guards/base-persmission.guard.js.map +1 -1
- package/dist/src/features/auth/guards/project.guard.d.ts +14 -0
- package/dist/src/features/auth/guards/project.guard.js +7 -0
- package/dist/src/features/auth/guards/project.guard.js.map +1 -1
- package/dist/src/features/branch/branch-api.service.d.ts +85 -0
- package/dist/src/features/branch/branch-api.service.js +66 -0
- package/dist/src/features/branch/branch-api.service.js.map +1 -0
- package/dist/src/features/branch/branch.module.js +7 -1
- package/dist/src/features/branch/branch.module.js.map +1 -1
- package/dist/src/features/branch/commands/handlers/create-branch-by-revision-id.handler.d.ts +4 -2
- package/dist/src/features/branch/commands/handlers/create-branch-by-revision-id.handler.js +1 -1
- package/dist/src/features/branch/commands/handlers/create-branch-by-revision-id.handler.js.map +1 -1
- package/dist/src/features/branch/commands/impl/api-create-branch-by-revision-id.command.d.ts +1 -0
- package/dist/src/features/branch/quieries/handlers/get-branch-by-id.handler.d.ts +6 -4
- package/dist/src/features/branch/quieries/handlers/get-branch.handler.js +1 -1
- package/dist/src/features/branch/quieries/handlers/get-branch.handler.js.map +1 -1
- package/dist/src/features/branch/quieries/handlers/get-branches.handler.js +1 -1
- package/dist/src/features/branch/quieries/handlers/get-branches.handler.js.map +1 -1
- package/dist/src/features/branch/quieries/handlers/get-project-by-branch.handler.d.ts +5 -3
- package/dist/src/features/branch/quieries/handlers/get-revisions-by-branch-id.handler.js +10 -5
- package/dist/src/features/branch/quieries/handlers/get-revisions-by-branch-id.handler.js.map +1 -1
- package/dist/src/features/branch/quieries/handlers/get-touched-by-branch-id.handler.js +1 -1
- package/dist/src/features/branch/quieries/handlers/get-touched-by-branch-id.handler.js.map +1 -1
- package/dist/src/features/branch/quieries/impl/get-branch-by-id.query.d.ts +3 -0
- package/dist/src/features/branch/quieries/impl/get-branch-by-id.query.js.map +1 -1
- package/dist/src/features/branch/quieries/impl/get-branch.query.d.ts +1 -0
- package/dist/src/features/branch/quieries/impl/get-branches.query.d.ts +1 -1
- package/dist/src/features/branch/quieries/impl/get-revisions-by-branch-id.query.d.ts +8 -0
- package/dist/src/features/branch/quieries/impl/get-revisions-by-branch-id.query.js.map +1 -1
- package/dist/src/features/branch/quieries/impl/resolve-parent-branch-by-branch.query.d.ts +1 -0
- package/dist/src/features/branch/quieries/types/get-branch-by-id.types.d.ts +1 -1
- package/dist/src/features/branch/quieries/types/get-branch.types.d.ts +1 -1
- package/dist/src/features/branch/quieries/types/get-draft-revision.types.d.ts +1 -1
- package/dist/src/features/branch/quieries/types/get-head-revision.types.d.ts +1 -1
- package/dist/src/features/branch/quieries/types/get-start-revision.types.d.ts +1 -1
- package/dist/src/features/draft/commands/handlers/__tests__/utils.d.ts +2 -0
- package/dist/src/features/draft/commands/handlers/__tests__/utils.js +13 -0
- package/dist/src/features/draft/commands/handlers/__tests__/utils.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/api-create-revision.handler.js +1 -1
- package/dist/src/features/draft/commands/handlers/api-create-revision.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/api-create-row.handler.js +1 -1
- package/dist/src/features/draft/commands/handlers/api-create-row.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/api-create-table.handler.js +1 -1
- package/dist/src/features/draft/commands/handlers/api-create-table.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/api-patch-row.handler.js +1 -1
- package/dist/src/features/draft/commands/handlers/api-patch-row.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/api-remove-row.handler.js +3 -2
- package/dist/src/features/draft/commands/handlers/api-remove-row.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/api-remove-rows.handler.d.ts +13 -0
- package/dist/src/features/draft/commands/handlers/api-remove-rows.handler.js +59 -0
- package/dist/src/features/draft/commands/handlers/api-remove-rows.handler.js.map +1 -0
- package/dist/src/features/draft/commands/handlers/api-remove-table.handler.js +1 -1
- package/dist/src/features/draft/commands/handlers/api-remove-table.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/api-rename-row.handler.js +1 -1
- package/dist/src/features/draft/commands/handlers/api-rename-row.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/api-rename-table.handler.js +1 -1
- package/dist/src/features/draft/commands/handlers/api-rename-table.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/api-revert-changes.handler.js +1 -1
- package/dist/src/features/draft/commands/handlers/api-revert-changes.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/api-update-row.handler.js +1 -1
- package/dist/src/features/draft/commands/handlers/api-update-row.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/api-update-table.handler.js +1 -1
- package/dist/src/features/draft/commands/handlers/api-update-table.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/api-upload-file.handler.js +1 -1
- package/dist/src/features/draft/commands/handlers/api-upload-file.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/create-row.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/create-table.handler.d.ts +4 -1
- package/dist/src/features/draft/commands/handlers/create-table.handler.js +21 -2
- package/dist/src/features/draft/commands/handlers/create-table.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/index.d.ts +3 -2
- package/dist/src/features/draft/commands/handlers/index.js +4 -2
- package/dist/src/features/draft/commands/handlers/index.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/migration/base-migration.handler.d.ts +1 -1
- package/dist/src/features/draft/commands/handlers/patch-row.handler.js +11 -1
- package/dist/src/features/draft/commands/handlers/patch-row.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/{remove-row.handler.d.ts → remove-rows.handler.d.ts} +7 -9
- package/dist/src/features/draft/commands/handlers/{remove-row.handler.js → remove-rows.handler.js} +30 -29
- package/dist/src/features/draft/commands/handlers/remove-rows.handler.js.map +1 -0
- package/dist/src/features/draft/commands/handlers/remove-table.handler.d.ts +1 -0
- package/dist/src/features/draft/commands/handlers/remove-table.handler.js +16 -3
- package/dist/src/features/draft/commands/handlers/remove-table.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/transactional/rename-schema.handler.d.ts +1 -0
- package/dist/src/features/draft/commands/handlers/transactional/rename-schema.handler.js +13 -0
- package/dist/src/features/draft/commands/handlers/transactional/rename-schema.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/transactional/validate-data.handler.d.ts +16 -5
- package/dist/src/features/draft/commands/handlers/transactional/validate-data.handler.js +142 -21
- package/dist/src/features/draft/commands/handlers/transactional/validate-data.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/update-table.handler.d.ts +5 -1
- package/dist/src/features/draft/commands/handlers/update-table.handler.js +61 -3
- package/dist/src/features/draft/commands/handlers/update-table.handler.js.map +1 -1
- package/dist/src/features/draft/commands/impl/api-create-revision.command.d.ts +1 -0
- package/dist/src/features/draft/commands/impl/api-create-row.command.d.ts +2 -1
- package/dist/src/features/draft/commands/impl/api-create-table.command.d.ts +1 -1
- package/dist/src/features/draft/commands/impl/api-remove-row.command.d.ts +1 -0
- package/dist/src/features/draft/commands/impl/api-remove-rows.command.d.ts +13 -0
- package/dist/src/features/draft/commands/impl/api-remove-rows.command.js +10 -0
- package/dist/src/features/draft/commands/impl/api-remove-rows.command.js.map +1 -0
- package/dist/src/features/draft/commands/impl/api-rename-row.command.d.ts +1 -0
- package/dist/src/features/draft/commands/impl/api-revert-changes.command.d.ts +1 -0
- package/dist/src/features/draft/commands/impl/api-update-row.command.d.ts +2 -1
- package/dist/src/features/draft/commands/impl/create-row.command.d.ts +1 -1
- package/dist/src/features/draft/commands/impl/create-table.command.d.ts +1 -1
- package/dist/src/features/draft/commands/impl/{remove-row.command.d.ts → remove-rows.command.d.ts} +4 -4
- package/dist/src/features/draft/commands/impl/remove-rows.command.js +10 -0
- package/dist/src/features/draft/commands/impl/remove-rows.command.js.map +1 -0
- package/dist/src/features/draft/commands/impl/transactional/internal-create-row.command.d.ts +1 -1
- package/dist/src/features/draft/commands/impl/transactional/internal-update-row.command.d.ts +1 -1
- package/dist/src/features/draft/commands/impl/transactional/internal-update-rows.command.d.ts +1 -1
- package/dist/src/features/draft/commands/impl/transactional/validate-data.command.d.ts +1 -1
- package/dist/src/features/draft/commands/impl/transactional/validate-schema.command.d.ts +1 -1
- package/dist/src/features/draft/commands/impl/update-row.command.d.ts +1 -1
- package/dist/src/features/draft/commands/types/api-create-table.handler.types.d.ts +1 -1
- package/dist/src/features/draft/commands/types/api-remove-rows.handler.types.d.ts +7 -0
- package/dist/src/features/draft/commands/types/api-remove-rows.handler.types.js +3 -0
- package/dist/src/features/draft/commands/types/api-remove-rows.handler.types.js.map +1 -0
- package/dist/src/features/draft/commands/types/{remove-row.handler.types.d.ts → remove-rows.handler.types.d.ts} +1 -1
- package/dist/src/features/draft/commands/types/remove-rows.handler.types.js +3 -0
- package/dist/src/features/draft/commands/types/remove-rows.handler.types.js.map +1 -0
- package/dist/src/features/draft/draft-api.service.d.ts +31 -0
- package/dist/src/features/draft/draft-api.service.js +32 -0
- package/dist/src/features/draft/draft-api.service.js.map +1 -1
- package/dist/src/features/draft/draft.handler.d.ts +1 -1
- package/dist/src/features/draft/draft.module.js +1 -1
- package/dist/src/features/draft/draft.module.js.map +1 -1
- package/dist/src/features/draft/draft.transactional.commands.d.ts +1 -1
- package/dist/src/features/endpoint/commands/impl/api-create-endpoint.command.d.ts +3 -1
- package/dist/src/features/endpoint/commands/impl/create-endpoint.command.d.ts +1 -1
- package/dist/src/features/endpoint/commands/impl/delete-endpoint.command.d.ts +1 -0
- package/dist/src/features/endpoint/queries/endpoint-api.service.d.ts +16 -3
- package/dist/src/features/endpoint/queries/endpoint-api.service.js +19 -4
- package/dist/src/features/endpoint/queries/endpoint-api.service.js.map +1 -1
- package/dist/src/features/endpoint/queries/handlers/get-created-endpoint.handler.d.ts +5 -3
- package/dist/src/features/endpoint/queries/handlers/get-endpoint-relatives.handler.d.ts +4 -4
- package/dist/src/features/endpoint/queries/handlers/get-project-endpoints.handler.d.ts +12 -0
- package/dist/src/features/endpoint/queries/handlers/get-project-endpoints.handler.js +77 -0
- package/dist/src/features/endpoint/queries/handlers/get-project-endpoints.handler.js.map +1 -0
- package/dist/src/features/endpoint/queries/handlers/get-revision-by-endpoint-id.handler.d.ts +4 -2
- package/dist/src/features/endpoint/queries/handlers/index.d.ts +2 -1
- package/dist/src/features/endpoint/queries/handlers/index.js +2 -0
- package/dist/src/features/endpoint/queries/handlers/index.js.map +1 -1
- package/dist/src/features/endpoint/queries/impl/get-endpoint-relatives.query.d.ts +1 -1
- package/dist/src/features/endpoint/queries/impl/get-project-endpoints.query.d.ts +20 -0
- package/dist/src/features/endpoint/queries/impl/get-project-endpoints.query.js +10 -0
- package/dist/src/features/endpoint/queries/impl/get-project-endpoints.query.js.map +1 -0
- package/dist/src/features/endpoint/queries/impl/index.d.ts +1 -0
- package/dist/src/features/endpoint/queries/impl/index.js +1 -0
- package/dist/src/features/endpoint/queries/impl/index.js.map +1 -1
- package/dist/src/features/organization/commands/impl/add-user-to-organization.command.d.ts +1 -0
- package/dist/src/features/organization/commands/impl/remove-user-from-organization.command.d.ts +1 -0
- package/dist/src/features/organization/organization-api.service.d.ts +16 -0
- package/dist/src/features/organization/organization-api.service.js +44 -0
- package/dist/src/features/organization/organization-api.service.js.map +1 -0
- package/dist/src/features/organization/organization.module.js +7 -1
- package/dist/src/features/organization/organization.module.js.map +1 -1
- package/dist/src/features/organization/queries/handlers/get-organization.handler.d.ts +11 -0
- package/dist/src/features/organization/queries/handlers/get-organization.handler.js +33 -0
- package/dist/src/features/organization/queries/handlers/get-organization.handler.js.map +1 -0
- package/dist/src/features/organization/queries/handlers/get-projects-by-organization-id.handler.d.ts +1 -1
- package/dist/src/features/organization/queries/handlers/get-projects-by-organization-id.handler.js +3 -2
- package/dist/src/features/organization/queries/handlers/get-projects-by-organization-id.handler.js.map +1 -1
- package/dist/src/features/organization/queries/handlers/get-users-organization.handler.d.ts +3 -3
- package/dist/src/features/organization/queries/handlers/index.d.ts +1 -0
- package/dist/src/features/organization/queries/handlers/index.js +1 -0
- package/dist/src/features/organization/queries/handlers/index.js.map +1 -1
- package/dist/src/features/organization/queries/impl/get-organization.query.d.ts +11 -0
- package/dist/src/features/organization/queries/impl/get-organization.query.js +10 -0
- package/dist/src/features/organization/queries/impl/get-organization.query.js.map +1 -0
- package/dist/src/features/organization/queries/impl/get-projects-by-organization-id.query.d.ts +1 -1
- package/dist/src/features/organization/queries/impl/get-users-organization.query.d.ts +2 -1
- package/dist/src/features/organization/queries/impl/index.d.ts +1 -0
- package/dist/src/features/organization/queries/impl/index.js +1 -0
- package/dist/src/features/organization/queries/impl/index.js.map +1 -1
- package/dist/src/features/organization/queries/index.d.ts +2 -1
- package/dist/src/features/organization/queries/index.js +2 -0
- package/dist/src/features/organization/queries/index.js.map +1 -1
- package/dist/src/features/plugin/file/file-value.store.js +7 -4
- package/dist/src/features/plugin/file/file-value.store.js.map +1 -1
- package/dist/src/features/plugin/plugin.list.service.js +1 -9
- package/dist/src/features/plugin/plugin.list.service.js.map +1 -1
- package/dist/src/features/plugin/plugin.service.d.ts +1 -1
- package/dist/src/features/plugin/types.d.ts +1 -1
- package/dist/src/features/project/commands/handlers/create-project.handler.js +1 -1
- package/dist/src/features/project/commands/handlers/create-project.handler.js.map +1 -1
- package/dist/src/features/project/commands/handlers/delete-project.handler.js +1 -1
- package/dist/src/features/project/commands/handlers/delete-project.handler.js.map +1 -1
- package/dist/src/features/project/commands/handlers/index.d.ts +2 -1
- package/dist/src/features/project/commands/handlers/index.js +2 -0
- package/dist/src/features/project/commands/handlers/index.js.map +1 -1
- package/dist/src/features/project/commands/handlers/update-project.handler.js +1 -1
- package/dist/src/features/project/commands/handlers/update-project.handler.js.map +1 -1
- package/dist/src/features/project/commands/handlers/update-user-project-role.handler.d.ts +9 -0
- package/dist/src/features/project/commands/handlers/update-user-project-role.handler.js +65 -0
- package/dist/src/features/project/commands/handlers/update-user-project-role.handler.js.map +1 -0
- package/dist/src/features/project/commands/impl/add-user-to-project.command.d.ts +1 -0
- package/dist/src/features/project/commands/impl/api-create-project.command.d.ts +1 -0
- package/dist/src/features/project/commands/impl/index.d.ts +1 -0
- package/dist/src/features/project/commands/impl/index.js +1 -0
- package/dist/src/features/project/commands/impl/index.js.map +1 -1
- package/dist/src/features/project/commands/impl/remove-user-from-project.command.d.ts +1 -0
- package/dist/src/features/project/commands/impl/update-project.command.d.ts +2 -0
- package/dist/src/features/project/commands/impl/update-user-project-role.command.d.ts +16 -0
- package/dist/src/features/project/commands/impl/update-user-project-role.command.js +10 -0
- package/dist/src/features/project/commands/impl/update-user-project-role.command.js.map +1 -0
- package/dist/src/features/project/project-api.service.d.ts +38 -0
- package/dist/src/features/project/project-api.service.js +59 -0
- package/dist/src/features/project/project-api.service.js.map +1 -0
- package/dist/src/features/project/project.module.js +3 -0
- package/dist/src/features/project/project.module.js.map +1 -1
- package/dist/src/features/project/queries/handlers/get-all-branches-by-project.handler.d.ts +2 -2
- package/dist/src/features/project/queries/handlers/get-all-branches-by-project.handler.js +1 -1
- package/dist/src/features/project/queries/handlers/get-all-branches-by-project.handler.js.map +1 -1
- package/dist/src/features/project/queries/handlers/get-project-by-id.handler.d.ts +1 -1
- package/dist/src/features/project/queries/handlers/get-project.handler.d.ts +1 -1
- package/dist/src/features/project/queries/handlers/get-project.handler.js +1 -1
- package/dist/src/features/project/queries/handlers/get-project.handler.js.map +1 -1
- package/dist/src/features/project/queries/handlers/get-root-branch-by-project.handler.d.ts +2 -2
- package/dist/src/features/project/queries/handlers/get-users-project.handler.d.ts +3 -3
- package/dist/src/features/project/queries/impl/get-all-branches-by-project.query.d.ts +4 -0
- package/dist/src/features/project/queries/impl/get-all-branches-by-project.query.js.map +1 -1
- package/dist/src/features/project/queries/impl/get-project-by-id.query.d.ts +1 -1
- package/dist/src/features/project/queries/impl/get-project.query.d.ts +1 -1
- package/dist/src/features/project/queries/impl/get-root-branch-by-project.query.d.ts +3 -0
- package/dist/src/features/project/queries/impl/get-root-branch-by-project.query.js.map +1 -1
- package/dist/src/features/project/queries/impl/get-users-project.query.d.ts +2 -1
- package/dist/src/features/revision/internal-revisions-api.service.d.ts +14 -1
- package/dist/src/features/revision/internal-revisions-api.service.js +21 -0
- package/dist/src/features/revision/internal-revisions-api.service.js.map +1 -1
- package/dist/src/features/revision/queries/commands/get-children-by-revision.handler.d.ts +1 -1
- package/dist/src/features/revision/queries/commands/get-migrations.handler.js +1 -1
- package/dist/src/features/revision/queries/commands/get-migrations.handler.js.map +1 -1
- package/dist/src/features/revision/queries/commands/get-revision.handler.d.ts +4 -2
- package/dist/src/features/revision/queries/commands/get-tables-by-revision-id.handler.d.ts +1 -1
- package/dist/src/features/revision/queries/commands/get-tables-by-revision-id.handler.js +1 -1
- package/dist/src/features/revision/queries/commands/get-tables-by-revision-id.handler.js.map +1 -1
- package/dist/src/features/revision/queries/commands/resolve-branch-by-revision.handler.d.ts +6 -4
- package/dist/src/features/revision/queries/commands/resolve-parent-by-revision.handler.d.ts +4 -2
- package/dist/src/features/revision/queries/impl/get-children-by-revision.query.d.ts +3 -0
- package/dist/src/features/revision/queries/impl/get-children-by-revision.query.js.map +1 -1
- package/dist/src/features/revision/queries/impl/get-endpoints-by-revision-id.query.d.ts +3 -0
- package/dist/src/features/revision/queries/impl/get-endpoints-by-revision-id.query.js.map +1 -1
- package/dist/src/features/revision/queries/impl/get-revision.query.d.ts +1 -1
- package/dist/src/features/revision/queries/impl/get-tables-by-revision-id.query.d.ts +3 -0
- package/dist/src/features/revision/queries/impl/get-tables-by-revision-id.query.js.map +1 -1
- package/dist/src/features/revision/queries/impl/index.d.ts +1 -0
- package/dist/src/features/revision/queries/impl/index.js +1 -0
- package/dist/src/features/revision/queries/impl/index.js.map +1 -1
- package/dist/src/features/revision/queries/impl/resolve-branch-by-revision.query.d.ts +3 -0
- package/dist/src/features/revision/queries/impl/resolve-branch-by-revision.query.js.map +1 -1
- package/dist/src/features/revision/queries/impl/resolve-child-branches-by-revision.query.d.ts +9 -0
- package/dist/src/features/revision/queries/impl/resolve-child-by-revision.query.d.ts +3 -0
- package/dist/src/features/revision/queries/impl/resolve-child-by-revision.query.js.map +1 -1
- package/dist/src/features/revision/queries/impl/resolve-parent-by-revision.query.d.ts +3 -0
- package/dist/src/features/revision/queries/impl/resolve-parent-by-revision.query.js.map +1 -1
- package/dist/src/features/revision/queries/types/get-endpoints-by-revision-id.d.ts +1 -1
- package/dist/src/features/revision/queries/types/get-tables-by-revision-id.d.ts +1 -1
- package/dist/src/features/revision/revisions-api.service.d.ts +14 -1
- package/dist/src/features/revision/revisions-api.service.js +21 -0
- package/dist/src/features/revision/revisions-api.service.js.map +1 -1
- package/dist/src/features/revision-changes/mappers/row-change.mapper.d.ts +13 -0
- package/dist/src/features/revision-changes/mappers/row-change.mapper.js +111 -0
- package/dist/src/features/revision-changes/mappers/row-change.mapper.js.map +1 -0
- package/dist/src/features/revision-changes/mappers/table-change.mapper.d.ts +19 -0
- package/dist/src/features/revision-changes/mappers/table-change.mapper.js +74 -0
- package/dist/src/features/revision-changes/mappers/table-change.mapper.js.map +1 -0
- package/dist/src/features/revision-changes/queries/handlers/get-revision-changes.handler.d.ts +14 -0
- package/dist/src/features/revision-changes/queries/handlers/get-revision-changes.handler.js +68 -0
- package/dist/src/features/revision-changes/queries/handlers/get-revision-changes.handler.js.map +1 -0
- package/dist/src/features/revision-changes/queries/handlers/get-row-changes.handler.d.ts +24 -0
- package/dist/src/features/revision-changes/queries/handlers/get-row-changes.handler.js +177 -0
- package/dist/src/features/revision-changes/queries/handlers/get-row-changes.handler.js.map +1 -0
- package/dist/src/features/revision-changes/queries/handlers/get-table-changes.handler.d.ts +19 -0
- package/dist/src/features/revision-changes/queries/handlers/get-table-changes.handler.js +84 -0
- package/dist/src/features/revision-changes/queries/handlers/get-table-changes.handler.js.map +1 -0
- package/dist/src/features/revision-changes/queries/handlers/index.d.ts +3 -0
- package/dist/src/features/revision-changes/queries/handlers/index.js +20 -0
- package/dist/src/features/revision-changes/queries/handlers/index.js.map +1 -0
- package/dist/src/features/revision-changes/queries/impl/get-revision-changes.query.d.ts +15 -0
- package/dist/src/features/revision-changes/queries/impl/get-revision-changes.query.js +10 -0
- package/dist/src/features/revision-changes/queries/impl/get-revision-changes.query.js.map +1 -0
- package/dist/src/features/revision-changes/queries/impl/get-row-changes.query.d.ts +20 -0
- package/dist/src/features/revision-changes/queries/impl/get-row-changes.query.js +10 -0
- package/dist/src/features/revision-changes/queries/impl/get-row-changes.query.js.map +1 -0
- package/dist/src/features/revision-changes/queries/impl/get-table-changes.query.d.ts +20 -0
- package/dist/src/features/revision-changes/queries/impl/get-table-changes.query.js +10 -0
- package/dist/src/features/revision-changes/queries/impl/get-table-changes.query.js.map +1 -0
- package/dist/src/features/revision-changes/queries/impl/index.d.ts +3 -0
- package/dist/src/features/revision-changes/queries/impl/index.js +20 -0
- package/dist/src/features/revision-changes/queries/impl/index.js.map +1 -0
- package/dist/src/features/revision-changes/revision-changes-api.service.d.ts +9 -0
- package/dist/src/features/revision-changes/revision-changes-api.service.js +35 -0
- package/dist/src/features/revision-changes/revision-changes-api.service.js.map +1 -0
- package/dist/src/features/revision-changes/revision-changes.module.d.ts +2 -0
- package/dist/src/features/revision-changes/revision-changes.module.js +47 -0
- package/dist/src/features/revision-changes/revision-changes.module.js.map +1 -0
- package/dist/src/features/revision-changes/services/index.d.ts +4 -0
- package/dist/src/features/revision-changes/services/index.js +21 -0
- package/dist/src/features/revision-changes/services/index.js.map +1 -0
- package/dist/src/features/revision-changes/services/revision-comparison.service.d.ts +12 -0
- package/dist/src/features/revision-changes/services/revision-comparison.service.js +99 -0
- package/dist/src/features/revision-changes/services/revision-comparison.service.js.map +1 -0
- package/dist/src/features/revision-changes/services/row-diff.service.d.ts +9 -0
- package/dist/src/features/revision-changes/services/row-diff.service.js +140 -0
- package/dist/src/features/revision-changes/services/row-diff.service.js.map +1 -0
- package/dist/src/features/revision-changes/services/schema-impact.service.d.ts +11 -0
- package/dist/src/features/revision-changes/services/schema-impact.service.js +136 -0
- package/dist/src/features/revision-changes/services/schema-impact.service.js.map +1 -0
- package/dist/src/features/revision-changes/services/views-comparison.service.d.ts +12 -0
- package/dist/src/features/revision-changes/services/views-comparison.service.js +209 -0
- package/dist/src/features/revision-changes/services/views-comparison.service.js.map +1 -0
- package/dist/src/features/revision-changes/types/enums.d.ts +26 -0
- package/dist/src/features/revision-changes/types/enums.js +34 -0
- package/dist/src/features/revision-changes/types/enums.js.map +1 -0
- package/dist/src/features/revision-changes/types/field-change.types.d.ts +12 -0
- package/dist/src/features/revision-changes/types/field-change.types.js +3 -0
- package/dist/src/features/revision-changes/types/field-change.types.js.map +1 -0
- package/dist/src/features/revision-changes/types/filters.types.d.ts +13 -0
- package/dist/src/features/revision-changes/types/filters.types.js +3 -0
- package/dist/src/features/revision-changes/types/filters.types.js.map +1 -0
- package/dist/src/features/revision-changes/types/index.d.ts +8 -0
- package/dist/src/features/revision-changes/types/index.js +25 -0
- package/dist/src/features/revision-changes/types/index.js.map +1 -0
- package/dist/src/features/revision-changes/types/revision-changes.types.d.ts +14 -0
- package/dist/src/features/revision-changes/types/revision-changes.types.js +3 -0
- package/dist/src/features/revision-changes/types/revision-changes.types.js.map +1 -0
- package/dist/src/features/revision-changes/types/row-change.types.d.ts +31 -0
- package/dist/src/features/revision-changes/types/row-change.types.js +11 -0
- package/dist/src/features/revision-changes/types/row-change.types.js.map +1 -0
- package/dist/src/features/revision-changes/types/schema-change.types.d.ts +40 -0
- package/dist/src/features/revision-changes/types/schema-change.types.js +11 -0
- package/dist/src/features/revision-changes/types/schema-change.types.js.map +1 -0
- package/dist/src/features/revision-changes/types/table-change.types.d.ts +19 -0
- package/dist/src/features/revision-changes/types/table-change.types.js +3 -0
- package/dist/src/features/revision-changes/types/table-change.types.js.map +1 -0
- package/dist/src/features/revision-changes/types/views-change.types.d.ts +15 -0
- package/dist/src/features/revision-changes/types/views-change.types.js +3 -0
- package/dist/src/features/revision-changes/types/views-change.types.js.map +1 -0
- package/dist/src/features/revision-changes/utils/empty-responses.d.ts +4 -0
- package/dist/src/features/revision-changes/utils/empty-responses.js +36 -0
- package/dist/src/features/revision-changes/utils/empty-responses.js.map +1 -0
- package/dist/src/features/role/queries/handlers/get-role-permissions.handler.d.ts +14 -0
- package/dist/src/features/role/queries/handlers/get-role-permissions.handler.js +37 -0
- package/dist/src/features/role/queries/handlers/get-role-permissions.handler.js.map +1 -0
- package/dist/src/features/role/queries/handlers/get-role.handler.d.ts +14 -0
- package/dist/src/features/role/queries/handlers/get-role.handler.js +33 -0
- package/dist/src/features/role/queries/handlers/get-role.handler.js.map +1 -0
- package/dist/src/features/role/queries/handlers/index.d.ts +2 -0
- package/dist/src/features/role/queries/handlers/index.js +19 -0
- package/dist/src/features/role/queries/handlers/index.js.map +1 -0
- package/dist/src/features/role/queries/impl/get-role-permissions.query.d.ts +11 -0
- package/dist/src/features/role/queries/impl/get-role-permissions.query.js +10 -0
- package/dist/src/features/role/queries/impl/get-role-permissions.query.js.map +1 -0
- package/dist/src/features/role/queries/impl/get-role.query.d.ts +11 -0
- package/dist/src/features/role/queries/impl/get-role.query.js +10 -0
- package/dist/src/features/role/queries/impl/get-role.query.js.map +1 -0
- package/dist/src/features/role/queries/impl/index.d.ts +2 -0
- package/dist/src/features/role/queries/impl/index.js +19 -0
- package/dist/src/features/role/queries/impl/index.js.map +1 -0
- package/dist/src/features/role/queries/index.d.ts +3 -0
- package/dist/src/features/role/queries/index.js +7 -0
- package/dist/src/features/role/queries/index.js.map +1 -0
- package/dist/src/features/role/role-api.service.d.ts +14 -0
- package/dist/src/features/role/role-api.service.js +32 -0
- package/dist/src/features/role/role-api.service.js.map +1 -0
- package/dist/src/features/role/role.module.d.ts +2 -0
- package/dist/src/features/role/role.module.js +25 -0
- package/dist/src/features/role/role.module.js.map +1 -0
- package/dist/src/features/row/internal-row-api.service.d.ts +2 -1
- package/dist/src/features/row/internal-row-api.service.js +3 -0
- package/dist/src/features/row/internal-row-api.service.js.map +1 -1
- package/dist/src/features/row/queries/handlers/get-row-by-id.handler.d.ts +4 -4
- package/dist/src/features/row/queries/handlers/get-row.handler.js +1 -1
- package/dist/src/features/row/queries/handlers/get-row.handler.js.map +1 -1
- package/dist/src/features/row/queries/handlers/get-rows.handler.d.ts +8 -5
- package/dist/src/features/row/queries/handlers/get-rows.handler.js +18 -4
- package/dist/src/features/row/queries/handlers/get-rows.handler.js.map +1 -1
- package/dist/src/features/row/queries/handlers/index.d.ts +2 -1
- package/dist/src/features/row/queries/handlers/index.js +2 -0
- package/dist/src/features/row/queries/handlers/index.js.map +1 -1
- package/dist/src/features/row/queries/handlers/resolve-row-count-foreign-keys-by.handler.js +1 -1
- package/dist/src/features/row/queries/handlers/resolve-row-count-foreign-keys-by.handler.js.map +1 -1
- package/dist/src/features/row/queries/handlers/resolve-row-count-foreign-keys-to.handler.js +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-by.handler.d.ts +4 -5
- package/dist/src/features/row/queries/handlers/resolve-row-foreign-keys-by.handler.js +1 -1
- package/dist/src/features/row/queries/handlers/resolve-row-foreign-keys-by.handler.js.map +1 -1
- package/dist/src/features/row/queries/handlers/resolve-row-foreign-keys-to.handler.d.ts +4 -5
- package/dist/src/features/row/queries/handlers/resolve-row-foreign-keys-to.handler.js +1 -1
- package/dist/src/features/row/queries/handlers/resolve-row-foreign-keys-to.handler.js.map +1 -1
- package/dist/src/features/row/queries/handlers/search-rows.handler.d.ts +14 -0
- package/dist/src/features/row/queries/handlers/search-rows.handler.js +79 -0
- package/dist/src/features/row/queries/handlers/search-rows.handler.js.map +1 -0
- package/dist/src/features/row/queries/impl/get-rows.query.d.ts +1 -1
- package/dist/src/features/row/queries/impl/index.d.ts +1 -0
- package/dist/src/features/row/queries/impl/index.js +1 -0
- package/dist/src/features/row/queries/impl/index.js.map +1 -1
- package/dist/src/features/row/queries/impl/search-rows.query.d.ts +28 -0
- package/dist/src/features/row/queries/impl/search-rows.query.js +10 -0
- package/dist/src/features/row/queries/impl/search-rows.query.js.map +1 -0
- package/dist/src/features/row/row-api.service.d.ts +2 -1
- package/dist/src/features/row/row-api.service.js +3 -0
- package/dist/src/features/row/row-api.service.js.map +1 -1
- package/dist/src/features/row/row.module.js +8 -2
- package/dist/src/features/row/row.module.js.map +1 -1
- package/dist/src/features/row/services/index.d.ts +1 -0
- package/dist/src/features/row/services/index.js +6 -0
- package/dist/src/features/row/services/index.js.map +1 -0
- package/dist/src/features/row/services/system-column-mapping.service.d.ts +17 -0
- package/dist/src/features/row/services/system-column-mapping.service.js +148 -0
- package/dist/src/features/row/services/system-column-mapping.service.js.map +1 -0
- package/dist/src/features/row/utils/extract-matches-fallback.d.ts +3 -0
- package/dist/src/features/row/utils/extract-matches-fallback.js +87 -0
- package/dist/src/features/row/utils/extract-matches-fallback.js.map +1 -0
- package/dist/src/features/row/utils/get-rows-sql.d.ts +1 -1
- package/dist/src/features/row/utils/get-rows-sql.js +3 -3
- package/dist/src/features/row/utils/get-rows-sql.js.map +1 -1
- package/dist/src/features/row/utils/search-rows-sql.d.ts +16 -0
- package/dist/src/features/row/utils/search-rows-sql.js +111 -0
- package/dist/src/features/row/utils/search-rows-sql.js.map +1 -0
- package/dist/src/features/share/commands/handlers/transactional/move-endpoints.handler.d.ts +1 -0
- package/dist/src/features/share/commands/handlers/transactional/move-endpoints.handler.js +7 -1
- package/dist/src/features/share/commands/handlers/transactional/move-endpoints.handler.js.map +1 -1
- package/dist/src/features/share/commands/utils/getRevisionCursorPagination.d.ts +1 -0
- package/dist/src/features/share/commands/utils/getRevisionCursorPagination.js +2 -2
- package/dist/src/features/share/commands/utils/getRevisionCursorPagination.js.map +1 -1
- package/dist/src/features/share/diff.service.d.ts +19 -2
- package/dist/src/features/share/diff.service.js +36 -6
- package/dist/src/features/share/diff.service.js.map +1 -1
- package/dist/src/features/share/exceptions/index.d.ts +1 -0
- package/dist/src/features/share/exceptions/index.js +18 -0
- package/dist/src/features/share/exceptions/index.js.map +1 -0
- package/dist/src/features/share/exceptions/validation.exception.d.ts +46 -0
- package/dist/src/features/share/exceptions/validation.exception.js +100 -0
- package/dist/src/features/share/exceptions/validation.exception.js.map +1 -0
- package/dist/src/features/share/foreign-keys.service.d.ts +9 -9
- package/dist/src/features/share/foreign-keys.service.js +30 -1
- package/dist/src/features/share/foreign-keys.service.js.map +1 -1
- package/dist/src/features/share/json-schema-validator.service.d.ts +1 -1
- package/dist/src/features/share/json-schema-validator.service.js +6 -3
- package/dist/src/features/share/json-schema-validator.service.js.map +1 -1
- package/dist/src/features/share/queries/handlers/index.d.ts +2 -1
- package/dist/src/features/share/queries/handlers/index.js +2 -0
- package/dist/src/features/share/queries/handlers/index.js.map +1 -1
- package/dist/src/features/share/queries/handlers/transactional/find-rows-in-table.handler.d.ts +10 -0
- package/dist/src/features/share/queries/handlers/transactional/find-rows-in-table.handler.js +41 -0
- package/dist/src/features/share/queries/handlers/transactional/find-rows-in-table.handler.js.map +1 -0
- package/dist/src/features/share/queries/handlers/transactional/get-table-schema.handler.js +9 -1
- package/dist/src/features/share/queries/handlers/transactional/get-table-schema.handler.js.map +1 -1
- package/dist/src/features/share/queries/impl/index.d.ts +1 -0
- package/dist/src/features/share/queries/impl/index.js +1 -0
- package/dist/src/features/share/queries/impl/index.js.map +1 -1
- package/dist/src/features/share/queries/impl/transactional/find-rows-in-table.query.d.ts +10 -0
- package/dist/src/features/share/queries/impl/transactional/find-rows-in-table.query.js +10 -0
- package/dist/src/features/share/queries/impl/transactional/find-rows-in-table.query.js.map +1 -0
- package/dist/src/features/share/schema/table-views-schema.d.ts +2 -0
- package/dist/src/features/share/schema/table-views-schema.js +125 -0
- package/dist/src/features/share/schema/table-views-schema.js.map +1 -0
- package/dist/src/features/share/share.module.js +6 -0
- package/dist/src/features/share/share.module.js.map +1 -1
- package/dist/src/features/share/share.transactional.queries.d.ts +5 -0
- package/dist/src/features/share/share.transactional.queries.js +29 -0
- package/dist/src/features/share/share.transactional.queries.js.map +1 -1
- package/dist/src/features/share/system-tables.consts.d.ts +2 -1
- package/dist/src/features/share/system-tables.consts.js +6 -0
- package/dist/src/features/share/system-tables.consts.js.map +1 -1
- package/dist/src/features/share/system-tables.service.d.ts +15 -0
- package/dist/src/features/share/system-tables.service.js +76 -0
- package/dist/src/features/share/system-tables.service.js.map +1 -0
- package/dist/src/features/share/types/row-with-context.types.d.ts +1 -1
- package/dist/src/features/share/types/table-with-context.types.d.ts +1 -1
- package/dist/src/features/share/types.d.ts +2 -3
- package/dist/src/features/share/utils/validateUrlLikeId/validateJsonFieldName.d.ts +1 -1
- package/dist/src/features/share/utils/validateUrlLikeId/validateJsonFieldName.js +2 -2
- package/dist/src/features/share/utils/validateUrlLikeId/validateJsonFieldName.js.map +1 -1
- package/dist/src/features/share/views-migration.service.d.ts +47 -0
- package/dist/src/features/share/views-migration.service.js +222 -0
- package/dist/src/features/share/views-migration.service.js.map +1 -0
- package/dist/src/features/table/queries/handlers/get-table-by-id.handler.d.ts +1 -1
- package/dist/src/features/table/queries/handlers/get-table.handler.js +1 -1
- package/dist/src/features/table/queries/handlers/get-table.handler.js.map +1 -1
- package/dist/src/features/table/queries/handlers/get-tables.handler.js +1 -1
- package/dist/src/features/table/queries/handlers/get-tables.handler.js.map +1 -1
- package/dist/src/features/table/queries/handlers/resolve-table-count-foreign-keys-by.handler.js +1 -1
- package/dist/src/features/table/queries/handlers/resolve-table-count-foreign-keys-by.handler.js.map +1 -1
- package/dist/src/features/table/queries/handlers/resolve-table-count-foreign-keys-to.handler.js +1 -1
- package/dist/src/features/table/queries/handlers/resolve-table-count-foreign-keys-to.handler.js.map +1 -1
- package/dist/src/features/table/queries/handlers/resolve-table-foreign-keys-by.handler.js +1 -1
- package/dist/src/features/table/queries/handlers/resolve-table-foreign-keys-by.handler.js.map +1 -1
- package/dist/src/features/table/queries/handlers/resolve-table-foreign-keys-to.handler.js +1 -1
- package/dist/src/features/table/queries/handlers/resolve-table-foreign-keys-to.handler.js.map +1 -1
- package/dist/src/features/table/queries/handlers/resolve-table-schema.handler.d.ts +1 -1
- package/dist/src/features/table/queries/handlers/resolve-table-schema.handler.js +1 -1
- package/dist/src/features/table/queries/handlers/resolve-table-schema.handler.js.map +1 -1
- package/dist/src/features/table/queries/impl/get-count-rows-in-table.query.d.ts +2 -0
- package/dist/src/features/table/queries/impl/get-table.query.d.ts +3 -0
- package/dist/src/features/table/queries/impl/get-table.query.js.map +1 -1
- package/dist/src/features/table/queries/impl/get-tables.query.d.ts +3 -0
- package/dist/src/features/table/queries/impl/get-tables.query.js.map +1 -1
- package/dist/src/features/table/queries/impl/index.d.ts +2 -0
- package/dist/src/features/table/queries/impl/index.js +2 -0
- package/dist/src/features/table/queries/impl/index.js.map +1 -1
- package/dist/src/features/table/queries/impl/resolve-table-count-foreign-keys-by.query.d.ts +2 -0
- package/dist/src/features/table/queries/impl/resolve-table-count-foreign-keys-to.query.d.ts +2 -0
- package/dist/src/features/table/queries/impl/resolve-table-foreign-keys-by.query.d.ts +4 -0
- package/dist/src/features/table/queries/impl/resolve-table-foreign-keys-by.query.js.map +1 -1
- package/dist/src/features/table/queries/impl/resolve-table-foreign-keys-to.query.d.ts +4 -0
- package/dist/src/features/table/queries/impl/resolve-table-foreign-keys-to.query.js.map +1 -1
- package/dist/src/features/table/queries/impl/resolve-table-schema.query.d.ts +3 -0
- package/dist/src/features/table/queries/impl/resolve-table-schema.query.js.map +1 -1
- package/dist/src/features/table/table-api.service.d.ts +22 -0
- package/dist/src/features/table/table-api.service.js +50 -0
- package/dist/src/features/table/table-api.service.js.map +1 -0
- package/dist/src/features/table/table.module.js +3 -1
- package/dist/src/features/table/table.module.js.map +1 -1
- package/dist/src/features/user/commands/impl/set-username.command.d.ts +1 -0
- package/dist/src/features/user/commands/impl/update-password.command.d.ts +1 -0
- package/dist/src/features/user/queries/handlers/deprecated-get-owned-user-organization.handler.d.ts +14 -0
- package/dist/src/features/user/queries/handlers/deprecated-get-owned-user-organization.handler.js +35 -0
- package/dist/src/features/user/queries/handlers/deprecated-get-owned-user-organization.handler.js.map +1 -0
- package/dist/src/features/user/queries/handlers/get-projects-by-user-id.handler.d.ts +1 -1
- package/dist/src/features/user/queries/handlers/get-projects-by-user-id.handler.js +1 -2
- package/dist/src/features/user/queries/handlers/get-projects-by-user-id.handler.js.map +1 -1
- package/dist/src/features/user/queries/handlers/get-user-organization.handler.d.ts +9 -3
- package/dist/src/features/user/queries/handlers/get-user-organization.handler.js +6 -9
- package/dist/src/features/user/queries/handlers/get-user-organization.handler.js.map +1 -1
- package/dist/src/features/user/queries/handlers/get-user-project.handler.d.ts +14 -0
- package/dist/src/features/user/queries/handlers/get-user-project.handler.js +36 -0
- package/dist/src/features/user/queries/handlers/get-user-project.handler.js.map +1 -0
- package/dist/src/features/user/queries/handlers/get-user.handler.d.ts +1 -0
- package/dist/src/features/user/queries/handlers/get-user.handler.js +1 -0
- package/dist/src/features/user/queries/handlers/get-user.handler.js.map +1 -1
- package/dist/src/features/user/queries/handlers/index.d.ts +5 -1
- package/dist/src/features/user/queries/handlers/index.js +5 -1
- package/dist/src/features/user/queries/handlers/index.js.map +1 -1
- package/dist/src/features/user/queries/handlers/search-users.handler.d.ts +15 -0
- package/dist/src/features/user/queries/handlers/search-users.handler.js +61 -0
- package/dist/src/features/user/queries/handlers/search-users.handler.js.map +1 -0
- package/dist/src/features/user/queries/impl/deprecated-get-owned-user-organization.query.d.ts +11 -0
- package/dist/src/features/user/queries/impl/deprecated-get-owned-user-organization.query.js +10 -0
- package/dist/src/features/user/queries/impl/deprecated-get-owned-user-organization.query.js.map +1 -0
- package/dist/src/features/user/queries/impl/get-projects-by-user-id.query.d.ts +2 -1
- package/dist/src/features/user/queries/impl/get-user-organization.query.d.ts +5 -1
- package/dist/src/features/user/queries/impl/get-user-organization.query.js.map +1 -1
- package/dist/src/features/user/queries/impl/get-user-project.query.d.ts +13 -0
- package/dist/src/features/user/queries/impl/get-user-project.query.js +10 -0
- package/dist/src/features/user/queries/impl/get-user-project.query.js.map +1 -0
- package/dist/src/features/user/queries/impl/get-user.query.d.ts +3 -2
- package/dist/src/features/user/queries/impl/index.d.ts +3 -0
- package/dist/src/features/user/queries/impl/index.js +3 -0
- package/dist/src/features/user/queries/impl/index.js.map +1 -1
- package/dist/src/features/user/queries/impl/search-users.query.d.ts +16 -0
- package/dist/src/features/user/queries/impl/search-users.query.js +10 -0
- package/dist/src/features/user/queries/impl/search-users.query.js.map +1 -0
- package/dist/src/features/user/queries/index.d.ts +2 -2
- package/dist/src/features/user/queries/index.js +4 -1
- package/dist/src/features/user/queries/index.js.map +1 -1
- package/dist/src/features/user/user-api.service.d.ts +16 -0
- package/dist/src/features/user/user-api.service.js +53 -0
- package/dist/src/features/user/user-api.service.js.map +1 -0
- package/dist/src/features/user/user.module.js +3 -1
- package/dist/src/features/user/user.module.js.map +1 -1
- package/dist/src/features/views/commands/handlers/index.d.ts +3 -0
- package/dist/src/features/views/commands/handlers/index.js +21 -0
- package/dist/src/features/views/commands/handlers/index.js.map +1 -0
- package/dist/src/features/views/commands/handlers/update-table-views.handler.d.ts +25 -0
- package/dist/src/features/views/commands/handlers/update-table-views.handler.js +125 -0
- package/dist/src/features/views/commands/handlers/update-table-views.handler.js.map +1 -0
- package/dist/src/features/views/commands/impl/index.d.ts +1 -0
- package/dist/src/features/views/commands/impl/index.js +18 -0
- package/dist/src/features/views/commands/impl/index.js.map +1 -0
- package/dist/src/features/views/commands/impl/update-table-views.command.d.ts +11 -0
- package/dist/src/features/views/commands/impl/update-table-views.command.js +10 -0
- package/dist/src/features/views/commands/impl/update-table-views.command.js.map +1 -0
- package/dist/src/features/views/index.d.ts +6 -0
- package/dist/src/features/views/index.js +23 -0
- package/dist/src/features/views/index.js.map +1 -0
- package/dist/src/features/views/queries/handlers/get-table-views.handler.d.ts +13 -0
- package/dist/src/features/views/queries/handlers/get-table-views.handler.js +72 -0
- package/dist/src/features/views/queries/handlers/get-table-views.handler.js.map +1 -0
- package/dist/src/features/views/queries/handlers/index.d.ts +3 -0
- package/dist/src/features/views/queries/handlers/index.js +21 -0
- package/dist/src/features/views/queries/handlers/index.js.map +1 -0
- package/dist/src/features/views/queries/impl/get-table-views.query.d.ts +10 -0
- package/dist/src/features/views/queries/impl/get-table-views.query.js +10 -0
- package/dist/src/features/views/queries/impl/get-table-views.query.js.map +1 -0
- package/dist/src/features/views/queries/impl/index.d.ts +1 -0
- package/dist/src/features/views/queries/impl/index.js +18 -0
- package/dist/src/features/views/queries/impl/index.js.map +1 -0
- package/dist/src/features/views/services/index.d.ts +1 -0
- package/dist/src/features/views/services/index.js +18 -0
- package/dist/src/features/views/services/index.js.map +1 -0
- package/dist/src/features/views/services/view-validation.service.d.ts +13 -0
- package/dist/src/features/views/services/view-validation.service.js +106 -0
- package/dist/src/features/views/services/view-validation.service.js.map +1 -0
- package/dist/src/features/views/types/index.d.ts +1 -0
- package/dist/src/features/views/types/index.js +18 -0
- package/dist/src/features/views/types/index.js.map +1 -0
- package/dist/src/features/views/types/views.types.d.ts +34 -0
- package/dist/src/features/views/types/views.types.js +6 -0
- package/dist/src/features/views/types/views.types.js.map +1 -0
- package/dist/src/features/views/views-api.service.d.ts +12 -0
- package/dist/src/features/views/views-api.service.js +38 -0
- package/dist/src/features/views/views-api.service.js.map +1 -0
- package/dist/src/features/views/views.module.d.ts +2 -0
- package/dist/src/features/views/views.module.js +34 -0
- package/dist/src/features/views/views.module.js.map +1 -0
- package/dist/src/infrastructure/admin/admin.module.js +7 -2
- package/dist/src/infrastructure/admin/admin.module.js.map +1 -1
- package/dist/src/infrastructure/cache/events/index.d.ts +1 -0
- package/dist/src/infrastructure/cache/events/index.js +1 -0
- package/dist/src/infrastructure/cache/events/index.js.map +1 -1
- package/dist/src/infrastructure/cache/events/row/rows-deleted.event.d.ts +7 -0
- package/dist/src/infrastructure/cache/events/row/rows-deleted.event.js +14 -0
- package/dist/src/infrastructure/cache/events/row/rows-deleted.event.js.map +1 -0
- package/dist/src/infrastructure/cache/handlers/index.d.ts +2 -1
- package/dist/src/infrastructure/cache/handlers/index.js +2 -0
- package/dist/src/infrastructure/cache/handlers/index.js.map +1 -1
- package/dist/src/infrastructure/cache/handlers/row/rows-deleted.handler.d.ts +8 -0
- package/dist/src/infrastructure/cache/handlers/row/rows-deleted.handler.js +30 -0
- package/dist/src/infrastructure/cache/handlers/row/rows-deleted.handler.js.map +1 -0
- package/dist/src/infrastructure/cache/pg-bus/pg-bus.driver.js +1 -1
- package/dist/src/infrastructure/cache/pg-bus/pg-bus.driver.js.map +1 -1
- package/dist/src/infrastructure/cache/revisium-cache.module.js +40 -4
- package/dist/src/infrastructure/cache/revisium-cache.module.js.map +1 -1
- package/dist/src/infrastructure/cache/services/row-cache.service.d.ts +5 -0
- package/dist/src/infrastructure/cache/services/row-cache.service.js +5 -0
- package/dist/src/infrastructure/cache/services/row-cache.service.js.map +1 -1
- package/dist/src/infrastructure/clean/commands/handlers/clean-rows.handler.d.ts +1 -1
- package/dist/src/infrastructure/clean/commands/handlers/clean-tables.handler.d.ts +1 -1
- package/dist/src/infrastructure/configuration/configuration-api.service.d.ts +7 -0
- package/dist/src/infrastructure/configuration/configuration-api.service.js +29 -0
- package/dist/src/infrastructure/configuration/configuration-api.service.js.map +1 -0
- package/dist/src/infrastructure/configuration/configuration.module.js +5 -2
- package/dist/src/infrastructure/configuration/configuration.module.js.map +1 -1
- package/dist/src/infrastructure/database/hash.service.d.ts +1 -1
- package/dist/src/infrastructure/database/hash.service.js +5 -2
- package/dist/src/infrastructure/database/hash.service.js.map +1 -1
- package/dist/src/infrastructure/database/postgresql-notification.service.d.ts +1 -1
- package/dist/src/infrastructure/database/prisma.service.d.ts +5 -3
- package/dist/src/infrastructure/database/prisma.service.js +18 -2
- package/dist/src/infrastructure/database/prisma.service.js.map +1 -1
- package/dist/src/infrastructure/database/transaction-prisma.service.d.ts +32 -12
- package/dist/src/infrastructure/database/transaction-prisma.service.js +169 -5
- package/dist/src/infrastructure/database/transaction-prisma.service.js.map +1 -1
- package/dist/src/infrastructure/email/templates.service.js +36 -3
- package/dist/src/infrastructure/email/templates.service.js.map +1 -1
- package/dist/src/infrastructure/email/transporter.service.js +34 -1
- package/dist/src/infrastructure/email/transporter.service.js.map +1 -1
- package/dist/src/infrastructure/metrics/graphql/graphql-metrics.plugin.js +34 -1
- package/dist/src/infrastructure/metrics/graphql/graphql-metrics.plugin.js.map +1 -1
- package/dist/src/infrastructure/metrics/graphql/graphql-metrics.service.js +34 -1
- package/dist/src/infrastructure/metrics/graphql/graphql-metrics.service.js.map +1 -1
- package/dist/src/infrastructure/metrics/rest/rest-metrics.service.js +34 -1
- package/dist/src/infrastructure/metrics/rest/rest-metrics.service.js.map +1 -1
- package/dist/src/infrastructure/metrics-api/metrics-api.module.js +34 -1
- package/dist/src/infrastructure/metrics-api/metrics-api.module.js.map +1 -1
- package/dist/src/infrastructure/metrics-api/metrics.controller.js +36 -7
- package/dist/src/infrastructure/metrics-api/metrics.controller.js.map +1 -1
- package/dist/src/main.js +5 -0
- package/dist/src/main.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +27 -16
- package/dist/src/__generated__/sql/countTableDiffsBetweenRevisions.edge.js +0 -3
- package/dist/src/__generated__/sql/countTableDiffsBetweenRevisions.edge.mjs +0 -2
- package/dist/src/__generated__/sql/countTableDiffsBetweenRevisions.js +0 -3
- package/dist/src/__generated__/sql/countTableDiffsBetweenRevisions.mjs +0 -2
- package/dist/src/__generated__/sql/getTableDiffsPaginatedBetweenRevisions.edge.js +0 -3
- package/dist/src/__generated__/sql/getTableDiffsPaginatedBetweenRevisions.edge.mjs +0 -2
- package/dist/src/__generated__/sql/getTableDiffsPaginatedBetweenRevisions.js +0 -3
- package/dist/src/__generated__/sql/getTableDiffsPaginatedBetweenRevisions.mjs +0 -2
- package/dist/src/__generated__/sql/hasRowDiffsBetweenRevisions.edge.js +0 -3
- package/dist/src/__generated__/sql/hasRowDiffsBetweenRevisions.edge.mjs +0 -2
- package/dist/src/__generated__/sql/hasRowDiffsBetweenRevisions.js +0 -3
- package/dist/src/__generated__/sql/hasRowDiffsBetweenRevisions.mjs +0 -2
- package/dist/src/__generated__/sql/hasTableDiffsBetweenRevisions.edge.js +0 -3
- package/dist/src/__generated__/sql/hasTableDiffsBetweenRevisions.edge.mjs +0 -2
- package/dist/src/__generated__/sql/hasTableDiffsBetweenRevisions.js +0 -3
- package/dist/src/__generated__/sql/hasTableDiffsBetweenRevisions.mjs +0 -2
- package/dist/src/__generated__/sql/index.edge.js +0 -5
- package/dist/src/__generated__/sql/index.edge.mjs +0 -4
- package/dist/src/__generated__/sql/index.js +0 -5
- package/dist/src/__generated__/sql/index.mjs +0 -4
- package/dist/src/features/draft/commands/handlers/remove-row.handler.js.map +0 -1
- package/dist/src/features/draft/commands/impl/remove-row.command.js +0 -10
- package/dist/src/features/draft/commands/impl/remove-row.command.js.map +0 -1
- package/dist/src/features/draft/commands/types/remove-row.handler.types.js.map +0 -1
|
@@ -0,0 +1,739 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QueryResource = void 0;
|
|
4
|
+
class QueryResource {
|
|
5
|
+
register(server) {
|
|
6
|
+
server.registerResource('query-specification', 'revisium://specs/query', {
|
|
7
|
+
description: 'Revisium Query Specification for filtering and sorting rows',
|
|
8
|
+
mimeType: 'application/json',
|
|
9
|
+
}, async () => ({
|
|
10
|
+
contents: [
|
|
11
|
+
{
|
|
12
|
+
uri: 'revisium://specs/query',
|
|
13
|
+
mimeType: 'application/json',
|
|
14
|
+
text: JSON.stringify(this.getSpecification(), null, 2),
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
}));
|
|
18
|
+
}
|
|
19
|
+
getSpecification() {
|
|
20
|
+
return {
|
|
21
|
+
description: 'Revisium Query Specification for filtering and sorting rows. Based on @revisium/prisma-pg-json library.',
|
|
22
|
+
overview: {
|
|
23
|
+
purpose: 'Filter and sort rows based on field values. Supports JSON path queries, logical operators, and full-text search.',
|
|
24
|
+
dataField: 'Row data is stored in "data" JSON field. Access fields via path: data.fieldName',
|
|
25
|
+
systemFields: [
|
|
26
|
+
'id - Row ID (string)',
|
|
27
|
+
'createdAt - Creation timestamp (date)',
|
|
28
|
+
'updatedAt - Last update timestamp (date)',
|
|
29
|
+
'publishedAt - Publication timestamp (date, nullable)',
|
|
30
|
+
],
|
|
31
|
+
},
|
|
32
|
+
stringFilters: {
|
|
33
|
+
description: 'Filters for string fields',
|
|
34
|
+
operators: {
|
|
35
|
+
equals: {
|
|
36
|
+
description: 'Exact match',
|
|
37
|
+
example: { data: { path: 'title', equals: 'Hello' } },
|
|
38
|
+
},
|
|
39
|
+
not: {
|
|
40
|
+
description: 'Not equal',
|
|
41
|
+
example: { data: { path: 'status', not: 'deleted' } },
|
|
42
|
+
},
|
|
43
|
+
contains: {
|
|
44
|
+
description: 'Contains substring (use string_contains for JSON)',
|
|
45
|
+
example: { data: { path: 'title', string_contains: 'world' } },
|
|
46
|
+
},
|
|
47
|
+
startsWith: {
|
|
48
|
+
description: 'Starts with prefix',
|
|
49
|
+
example: { data: { path: 'name', string_starts_with: 'Mr' } },
|
|
50
|
+
},
|
|
51
|
+
endsWith: {
|
|
52
|
+
description: 'Ends with suffix',
|
|
53
|
+
example: {
|
|
54
|
+
data: { path: 'email', string_ends_with: '@gmail.com' },
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
in: {
|
|
58
|
+
description: 'Value in array',
|
|
59
|
+
example: { data: { path: 'status', in: ['active', 'pending'] } },
|
|
60
|
+
},
|
|
61
|
+
notIn: {
|
|
62
|
+
description: 'Value not in array',
|
|
63
|
+
example: { data: { path: 'status', notIn: ['deleted', 'banned'] } },
|
|
64
|
+
},
|
|
65
|
+
mode: {
|
|
66
|
+
description: 'Case sensitivity mode',
|
|
67
|
+
example: {
|
|
68
|
+
data: {
|
|
69
|
+
path: 'title',
|
|
70
|
+
string_contains: 'hello',
|
|
71
|
+
mode: 'insensitive',
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
numberFilters: {
|
|
78
|
+
description: 'Filters for number fields',
|
|
79
|
+
operators: {
|
|
80
|
+
equals: { example: { data: { path: 'count', equals: 10 } } },
|
|
81
|
+
not: { example: { data: { path: 'priority', not: 0 } } },
|
|
82
|
+
gt: {
|
|
83
|
+
description: 'Greater than',
|
|
84
|
+
example: { data: { path: 'price', gt: 100 } },
|
|
85
|
+
},
|
|
86
|
+
gte: {
|
|
87
|
+
description: 'Greater than or equal',
|
|
88
|
+
example: { data: { path: 'price', gte: 100 } },
|
|
89
|
+
},
|
|
90
|
+
lt: {
|
|
91
|
+
description: 'Less than',
|
|
92
|
+
example: { data: { path: 'stock', lt: 5 } },
|
|
93
|
+
},
|
|
94
|
+
lte: {
|
|
95
|
+
description: 'Less than or equal',
|
|
96
|
+
example: { data: { path: 'stock', lte: 5 } },
|
|
97
|
+
},
|
|
98
|
+
in: { example: { data: { path: 'priority', in: [1, 2, 3] } } },
|
|
99
|
+
notIn: { example: { data: { path: 'priority', notIn: [0, 999] } } },
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
booleanFilters: {
|
|
103
|
+
description: 'Filters for boolean fields',
|
|
104
|
+
operators: {
|
|
105
|
+
equals: { example: { data: { path: 'isActive', equals: true } } },
|
|
106
|
+
not: { example: { data: { path: 'isDeleted', not: true } } },
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
dateFilters: {
|
|
110
|
+
description: 'Filters for date fields (format: ISO 8601)',
|
|
111
|
+
operators: {
|
|
112
|
+
equals: {
|
|
113
|
+
example: {
|
|
114
|
+
data: { path: 'publishedAt', equals: '2024-01-01T00:00:00Z' },
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
gt: {
|
|
118
|
+
description: 'After date',
|
|
119
|
+
example: { data: { path: 'createdAt', gt: '2024-01-01' } },
|
|
120
|
+
},
|
|
121
|
+
gte: {
|
|
122
|
+
description: 'On or after date',
|
|
123
|
+
example: { data: { path: 'createdAt', gte: '2024-01-01' } },
|
|
124
|
+
},
|
|
125
|
+
lt: {
|
|
126
|
+
description: 'Before date',
|
|
127
|
+
example: { data: { path: 'createdAt', lt: '2024-12-31' } },
|
|
128
|
+
},
|
|
129
|
+
lte: {
|
|
130
|
+
description: 'On or before date',
|
|
131
|
+
example: { data: { path: 'createdAt', lte: '2024-12-31' } },
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
jsonPathQueries: {
|
|
136
|
+
description: 'Query nested JSON fields using path notation',
|
|
137
|
+
pathFormats: {
|
|
138
|
+
simple: {
|
|
139
|
+
description: 'Simple field access',
|
|
140
|
+
example: { data: { path: 'title', equals: 'Hello' } },
|
|
141
|
+
},
|
|
142
|
+
nested: {
|
|
143
|
+
description: 'Nested field with dot notation',
|
|
144
|
+
example: { data: { path: 'address.city', equals: 'Moscow' } },
|
|
145
|
+
},
|
|
146
|
+
arrayIndex: {
|
|
147
|
+
description: 'Array element by index',
|
|
148
|
+
example: { data: { path: 'items[0].name', equals: 'First' } },
|
|
149
|
+
},
|
|
150
|
+
negativeIndex: {
|
|
151
|
+
description: 'Array element from end',
|
|
152
|
+
example: {
|
|
153
|
+
data: { path: 'history[-1].action', equals: 'created' },
|
|
154
|
+
},
|
|
155
|
+
},
|
|
156
|
+
wildcard: {
|
|
157
|
+
description: 'Any array element (searches all)',
|
|
158
|
+
example: {
|
|
159
|
+
data: { path: 'tags[*].name', string_contains: 'important' },
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
arrayOperations: {
|
|
164
|
+
array_contains: {
|
|
165
|
+
description: 'Array contains ALL specified elements',
|
|
166
|
+
example: {
|
|
167
|
+
data: {
|
|
168
|
+
path: 'tags',
|
|
169
|
+
array_contains: ['javascript', 'typescript'],
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
array_starts_with: {
|
|
174
|
+
description: 'First array element equals value',
|
|
175
|
+
example: {
|
|
176
|
+
data: { path: 'priorities', array_starts_with: 'high' },
|
|
177
|
+
},
|
|
178
|
+
},
|
|
179
|
+
array_ends_with: {
|
|
180
|
+
description: 'Last array element equals value',
|
|
181
|
+
example: { data: { path: 'steps', array_ends_with: 'done' } },
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
fullTextSearch: {
|
|
186
|
+
description: 'PostgreSQL full-text search in JSON fields',
|
|
187
|
+
basicSearch: {
|
|
188
|
+
description: 'Search with default settings (all words must match)',
|
|
189
|
+
example: {
|
|
190
|
+
data: { path: 'content', search: 'database performance' },
|
|
191
|
+
},
|
|
192
|
+
},
|
|
193
|
+
searchLanguage: {
|
|
194
|
+
description: 'Language for stemming (simple, english, russian, french, etc.)',
|
|
195
|
+
example: {
|
|
196
|
+
data: {
|
|
197
|
+
path: 'description',
|
|
198
|
+
search: 'running quickly',
|
|
199
|
+
searchLanguage: 'english',
|
|
200
|
+
},
|
|
201
|
+
},
|
|
202
|
+
},
|
|
203
|
+
searchType: {
|
|
204
|
+
description: 'plain (AND logic) or phrase (exact phrase)',
|
|
205
|
+
plain: {
|
|
206
|
+
description: 'All words must be present',
|
|
207
|
+
example: {
|
|
208
|
+
data: {
|
|
209
|
+
path: 'content',
|
|
210
|
+
search: 'database performance',
|
|
211
|
+
searchType: 'plain',
|
|
212
|
+
},
|
|
213
|
+
},
|
|
214
|
+
},
|
|
215
|
+
phrase: {
|
|
216
|
+
description: 'Exact phrase match',
|
|
217
|
+
example: {
|
|
218
|
+
data: {
|
|
219
|
+
path: 'text',
|
|
220
|
+
search: 'full-text search',
|
|
221
|
+
searchType: 'phrase',
|
|
222
|
+
},
|
|
223
|
+
},
|
|
224
|
+
},
|
|
225
|
+
},
|
|
226
|
+
searchIn: {
|
|
227
|
+
description: 'What to search in',
|
|
228
|
+
options: [
|
|
229
|
+
'all - Keys + all values (default)',
|
|
230
|
+
'values - Only values (excludes field names)',
|
|
231
|
+
'keys - Only JSON field names',
|
|
232
|
+
'strings - Only string values',
|
|
233
|
+
'numbers - Only numeric values',
|
|
234
|
+
'booleans - Only boolean values',
|
|
235
|
+
],
|
|
236
|
+
example: {
|
|
237
|
+
data: { path: '', search: 'Anton', searchIn: 'values' },
|
|
238
|
+
},
|
|
239
|
+
},
|
|
240
|
+
rootSearch: {
|
|
241
|
+
description: 'Search entire JSON document',
|
|
242
|
+
example: { data: { path: '', search: 'postgresql' } },
|
|
243
|
+
},
|
|
244
|
+
},
|
|
245
|
+
logicalOperators: {
|
|
246
|
+
description: 'Combine multiple conditions',
|
|
247
|
+
AND: {
|
|
248
|
+
description: 'All conditions must match',
|
|
249
|
+
example: {
|
|
250
|
+
AND: [
|
|
251
|
+
{ data: { path: 'age', gte: 18 } },
|
|
252
|
+
{ data: { path: 'age', lte: 65 } },
|
|
253
|
+
],
|
|
254
|
+
},
|
|
255
|
+
},
|
|
256
|
+
OR: {
|
|
257
|
+
description: 'Any condition matches',
|
|
258
|
+
example: {
|
|
259
|
+
OR: [
|
|
260
|
+
{ data: { path: 'status', equals: 'active' } },
|
|
261
|
+
{ data: { path: 'status', equals: 'pending' } },
|
|
262
|
+
],
|
|
263
|
+
},
|
|
264
|
+
},
|
|
265
|
+
NOT: {
|
|
266
|
+
description: 'Condition must not match',
|
|
267
|
+
example: {
|
|
268
|
+
NOT: { data: { path: 'email', string_contains: 'spam' } },
|
|
269
|
+
},
|
|
270
|
+
},
|
|
271
|
+
nested: {
|
|
272
|
+
description: 'Nested logical operators',
|
|
273
|
+
example: {
|
|
274
|
+
AND: [
|
|
275
|
+
{ data: { path: 'isActive', equals: true } },
|
|
276
|
+
{
|
|
277
|
+
OR: [
|
|
278
|
+
{ data: { path: 'role', equals: 'admin' } },
|
|
279
|
+
{ data: { path: 'role', equals: 'moderator' } },
|
|
280
|
+
],
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
NOT: { data: { path: 'status', equals: 'banned' } },
|
|
284
|
+
},
|
|
285
|
+
],
|
|
286
|
+
},
|
|
287
|
+
},
|
|
288
|
+
},
|
|
289
|
+
orderBySpecification: {
|
|
290
|
+
description: 'Sort rows by field values',
|
|
291
|
+
simpleSort: {
|
|
292
|
+
ascending: { data: { path: 'title', direction: 'asc' } },
|
|
293
|
+
descending: { data: { path: 'createdAt', direction: 'desc' } },
|
|
294
|
+
},
|
|
295
|
+
jsonFieldSort: {
|
|
296
|
+
description: 'Sort by JSON field with type hint for correct ordering',
|
|
297
|
+
types: [
|
|
298
|
+
'text - String sorting (alphabetical)',
|
|
299
|
+
'int - Integer sorting',
|
|
300
|
+
'float - Decimal number sorting',
|
|
301
|
+
'boolean - Boolean sorting (false before true)',
|
|
302
|
+
'timestamp - Date/time sorting',
|
|
303
|
+
],
|
|
304
|
+
examples: {
|
|
305
|
+
textSort: {
|
|
306
|
+
data: { path: 'name', direction: 'asc', type: 'text' },
|
|
307
|
+
},
|
|
308
|
+
numberSort: {
|
|
309
|
+
data: { path: 'price', direction: 'desc', type: 'float' },
|
|
310
|
+
},
|
|
311
|
+
integerSort: {
|
|
312
|
+
data: { path: 'priority', direction: 'asc', type: 'int' },
|
|
313
|
+
},
|
|
314
|
+
dateSort: {
|
|
315
|
+
data: {
|
|
316
|
+
path: 'publishedAt',
|
|
317
|
+
direction: 'desc',
|
|
318
|
+
type: 'timestamp',
|
|
319
|
+
},
|
|
320
|
+
},
|
|
321
|
+
},
|
|
322
|
+
},
|
|
323
|
+
arrayAggregationSort: {
|
|
324
|
+
description: 'Sort by aggregated array values',
|
|
325
|
+
aggregations: ['min', 'max', 'avg', 'first', 'last'],
|
|
326
|
+
examples: {
|
|
327
|
+
avgRating: {
|
|
328
|
+
data: {
|
|
329
|
+
path: 'reviews[*].rating',
|
|
330
|
+
direction: 'desc',
|
|
331
|
+
type: 'float',
|
|
332
|
+
aggregation: 'avg',
|
|
333
|
+
},
|
|
334
|
+
},
|
|
335
|
+
maxScore: {
|
|
336
|
+
data: {
|
|
337
|
+
path: 'scores',
|
|
338
|
+
direction: 'desc',
|
|
339
|
+
type: 'int',
|
|
340
|
+
aggregation: 'max',
|
|
341
|
+
},
|
|
342
|
+
},
|
|
343
|
+
firstTag: {
|
|
344
|
+
data: { path: 'tags', direction: 'asc', aggregation: 'first' },
|
|
345
|
+
},
|
|
346
|
+
},
|
|
347
|
+
},
|
|
348
|
+
multipleSort: {
|
|
349
|
+
description: 'Sort by multiple fields',
|
|
350
|
+
example: [
|
|
351
|
+
{ data: { path: 'priority', direction: 'asc', type: 'int' } },
|
|
352
|
+
{
|
|
353
|
+
data: { path: 'createdAt', direction: 'desc', type: 'timestamp' },
|
|
354
|
+
},
|
|
355
|
+
],
|
|
356
|
+
},
|
|
357
|
+
},
|
|
358
|
+
completeExamples: {
|
|
359
|
+
simpleFilter: {
|
|
360
|
+
description: 'Filter active items',
|
|
361
|
+
where: { data: { path: 'isActive', equals: true } },
|
|
362
|
+
},
|
|
363
|
+
rangeFilter: {
|
|
364
|
+
description: 'Filter by price range',
|
|
365
|
+
where: {
|
|
366
|
+
AND: [
|
|
367
|
+
{ data: { path: 'price', gte: 100 } },
|
|
368
|
+
{ data: { path: 'price', lte: 500 } },
|
|
369
|
+
],
|
|
370
|
+
},
|
|
371
|
+
},
|
|
372
|
+
searchWithFilters: {
|
|
373
|
+
description: 'Combine full-text search with filters',
|
|
374
|
+
where: {
|
|
375
|
+
AND: [
|
|
376
|
+
{ data: { path: 'content', search: 'javascript tutorial' } },
|
|
377
|
+
{ data: { path: 'status', equals: 'published' } },
|
|
378
|
+
{ data: { path: 'rating', gte: 4 } },
|
|
379
|
+
],
|
|
380
|
+
},
|
|
381
|
+
},
|
|
382
|
+
complexQuery: {
|
|
383
|
+
description: 'Complex query with nested logic, search, and multiple sorts',
|
|
384
|
+
where: {
|
|
385
|
+
AND: [
|
|
386
|
+
{ data: { path: 'isActive', equals: true } },
|
|
387
|
+
{
|
|
388
|
+
OR: [
|
|
389
|
+
{ data: { path: 'category', equals: 'tech' } },
|
|
390
|
+
{ data: { path: 'tags[*]', equals: 'featured' } },
|
|
391
|
+
],
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
NOT: { data: { path: 'status', equals: 'draft' } },
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
data: {
|
|
398
|
+
path: 'title',
|
|
399
|
+
string_contains: 'guide',
|
|
400
|
+
mode: 'insensitive',
|
|
401
|
+
},
|
|
402
|
+
},
|
|
403
|
+
],
|
|
404
|
+
},
|
|
405
|
+
orderBy: [
|
|
406
|
+
{ data: { path: 'priority', direction: 'asc', type: 'int' } },
|
|
407
|
+
{
|
|
408
|
+
data: { path: 'updatedAt', direction: 'desc', type: 'timestamp' },
|
|
409
|
+
},
|
|
410
|
+
],
|
|
411
|
+
},
|
|
412
|
+
nestedObjectQuery: {
|
|
413
|
+
description: 'Query nested object fields',
|
|
414
|
+
where: {
|
|
415
|
+
AND: [
|
|
416
|
+
{ data: { path: 'author.verified', equals: true } },
|
|
417
|
+
{ data: { path: 'author.followers', gte: 1000 } },
|
|
418
|
+
{
|
|
419
|
+
data: {
|
|
420
|
+
path: 'author.name',
|
|
421
|
+
string_contains: 'John',
|
|
422
|
+
mode: 'insensitive',
|
|
423
|
+
},
|
|
424
|
+
},
|
|
425
|
+
],
|
|
426
|
+
},
|
|
427
|
+
},
|
|
428
|
+
arrayQueryExample: {
|
|
429
|
+
description: 'Query array elements',
|
|
430
|
+
where: {
|
|
431
|
+
OR: [
|
|
432
|
+
{ data: { path: 'tags', array_contains: ['javascript'] } },
|
|
433
|
+
{ data: { path: 'categories[0]', equals: 'programming' } },
|
|
434
|
+
{ data: { path: 'reviews[*].rating', gte: 5 } },
|
|
435
|
+
],
|
|
436
|
+
},
|
|
437
|
+
},
|
|
438
|
+
},
|
|
439
|
+
fileFieldQueries: {
|
|
440
|
+
description: 'Examples for querying file fields (fields with $ref: "File")',
|
|
441
|
+
note: 'File fields have nested properties: status, fileId, url, fileName, hash, extension, mimeType, size, width, height',
|
|
442
|
+
byStatus: {
|
|
443
|
+
description: 'Filter by file upload status',
|
|
444
|
+
examples: {
|
|
445
|
+
uploadedFiles: {
|
|
446
|
+
description: 'Find rows where file is uploaded',
|
|
447
|
+
where: { data: { path: 'document.status', equals: 'uploaded' } },
|
|
448
|
+
},
|
|
449
|
+
pendingUploads: {
|
|
450
|
+
description: 'Find rows where file is waiting for upload',
|
|
451
|
+
where: { data: { path: 'avatar.status', equals: 'ready' } },
|
|
452
|
+
},
|
|
453
|
+
failedUploads: {
|
|
454
|
+
description: 'Find rows where file upload failed',
|
|
455
|
+
where: { data: { path: 'attachment.status', equals: 'error' } },
|
|
456
|
+
},
|
|
457
|
+
},
|
|
458
|
+
},
|
|
459
|
+
byExtension: {
|
|
460
|
+
description: 'Filter by file extension',
|
|
461
|
+
examples: {
|
|
462
|
+
pdfFiles: {
|
|
463
|
+
description: 'Find all PDF documents',
|
|
464
|
+
where: { data: { path: 'document.extension', equals: 'pdf' } },
|
|
465
|
+
},
|
|
466
|
+
imageFiles: {
|
|
467
|
+
description: 'Find common image formats',
|
|
468
|
+
where: {
|
|
469
|
+
OR: [
|
|
470
|
+
{ data: { path: 'image.extension', equals: 'jpg' } },
|
|
471
|
+
{ data: { path: 'image.extension', equals: 'jpeg' } },
|
|
472
|
+
{ data: { path: 'image.extension', equals: 'png' } },
|
|
473
|
+
{ data: { path: 'image.extension', equals: 'webp' } },
|
|
474
|
+
],
|
|
475
|
+
},
|
|
476
|
+
},
|
|
477
|
+
extensionIn: {
|
|
478
|
+
description: 'Find files with specific extensions using in',
|
|
479
|
+
where: {
|
|
480
|
+
data: {
|
|
481
|
+
path: 'attachment.extension',
|
|
482
|
+
in: ['pdf', 'doc', 'docx', 'xls', 'xlsx'],
|
|
483
|
+
},
|
|
484
|
+
},
|
|
485
|
+
},
|
|
486
|
+
},
|
|
487
|
+
},
|
|
488
|
+
byMimeType: {
|
|
489
|
+
description: 'Filter by MIME type',
|
|
490
|
+
examples: {
|
|
491
|
+
allImages: {
|
|
492
|
+
description: 'Find all image files',
|
|
493
|
+
where: {
|
|
494
|
+
data: {
|
|
495
|
+
path: 'photo.mimeType',
|
|
496
|
+
string_starts_with: 'image/',
|
|
497
|
+
},
|
|
498
|
+
},
|
|
499
|
+
},
|
|
500
|
+
allVideos: {
|
|
501
|
+
description: 'Find all video files',
|
|
502
|
+
where: {
|
|
503
|
+
data: {
|
|
504
|
+
path: 'media.mimeType',
|
|
505
|
+
string_starts_with: 'video/',
|
|
506
|
+
},
|
|
507
|
+
},
|
|
508
|
+
},
|
|
509
|
+
specificMimeType: {
|
|
510
|
+
description: 'Find PNG images specifically',
|
|
511
|
+
where: { data: { path: 'image.mimeType', equals: 'image/png' } },
|
|
512
|
+
},
|
|
513
|
+
},
|
|
514
|
+
},
|
|
515
|
+
bySize: {
|
|
516
|
+
description: 'Filter by file size (in bytes)',
|
|
517
|
+
examples: {
|
|
518
|
+
largeFiles: {
|
|
519
|
+
description: 'Find files larger than 10MB',
|
|
520
|
+
where: { data: { path: 'document.size', gt: 10485760 } },
|
|
521
|
+
},
|
|
522
|
+
smallFiles: {
|
|
523
|
+
description: 'Find files smaller than 1MB',
|
|
524
|
+
where: { data: { path: 'attachment.size', lt: 1048576 } },
|
|
525
|
+
},
|
|
526
|
+
sizeRange: {
|
|
527
|
+
description: 'Find files between 1MB and 5MB',
|
|
528
|
+
where: {
|
|
529
|
+
AND: [
|
|
530
|
+
{ data: { path: 'file.size', gte: 1048576 } },
|
|
531
|
+
{ data: { path: 'file.size', lte: 5242880 } },
|
|
532
|
+
],
|
|
533
|
+
},
|
|
534
|
+
},
|
|
535
|
+
nonEmptyFiles: {
|
|
536
|
+
description: 'Find files with actual content (size > 0)',
|
|
537
|
+
where: { data: { path: 'document.size', gt: 0 } },
|
|
538
|
+
},
|
|
539
|
+
},
|
|
540
|
+
},
|
|
541
|
+
byDimensions: {
|
|
542
|
+
description: 'Filter images by width/height (in pixels)',
|
|
543
|
+
examples: {
|
|
544
|
+
wideImages: {
|
|
545
|
+
description: 'Find images wider than 1920px',
|
|
546
|
+
where: { data: { path: 'image.width', gt: 1920 } },
|
|
547
|
+
},
|
|
548
|
+
tallImages: {
|
|
549
|
+
description: 'Find images taller than 1080px',
|
|
550
|
+
where: { data: { path: 'image.height', gt: 1080 } },
|
|
551
|
+
},
|
|
552
|
+
minimumResolution: {
|
|
553
|
+
description: 'Find images at least 800x600',
|
|
554
|
+
where: {
|
|
555
|
+
AND: [
|
|
556
|
+
{ data: { path: 'photo.width', gte: 800 } },
|
|
557
|
+
{ data: { path: 'photo.height', gte: 600 } },
|
|
558
|
+
],
|
|
559
|
+
},
|
|
560
|
+
},
|
|
561
|
+
squareImages: {
|
|
562
|
+
description: 'Note: For aspect ratio queries, retrieve and filter in application',
|
|
563
|
+
note: 'Database cannot compare two fields directly',
|
|
564
|
+
},
|
|
565
|
+
thumbnailSize: {
|
|
566
|
+
description: 'Find small thumbnails (max 200px in any dimension)',
|
|
567
|
+
where: {
|
|
568
|
+
AND: [
|
|
569
|
+
{ data: { path: 'thumb.width', lte: 200 } },
|
|
570
|
+
{ data: { path: 'thumb.height', lte: 200 } },
|
|
571
|
+
{ data: { path: 'thumb.width', gt: 0 } },
|
|
572
|
+
],
|
|
573
|
+
},
|
|
574
|
+
},
|
|
575
|
+
},
|
|
576
|
+
},
|
|
577
|
+
byFileName: {
|
|
578
|
+
description: 'Filter by original file name',
|
|
579
|
+
examples: {
|
|
580
|
+
exactName: {
|
|
581
|
+
description: 'Find file by exact name',
|
|
582
|
+
where: {
|
|
583
|
+
data: { path: 'document.fileName', equals: 'report.pdf' },
|
|
584
|
+
},
|
|
585
|
+
},
|
|
586
|
+
nameContains: {
|
|
587
|
+
description: 'Find files with name containing text',
|
|
588
|
+
where: {
|
|
589
|
+
data: {
|
|
590
|
+
path: 'attachment.fileName',
|
|
591
|
+
string_contains: 'invoice',
|
|
592
|
+
mode: 'insensitive',
|
|
593
|
+
},
|
|
594
|
+
},
|
|
595
|
+
},
|
|
596
|
+
nameStartsWith: {
|
|
597
|
+
description: 'Find files starting with prefix',
|
|
598
|
+
where: {
|
|
599
|
+
data: {
|
|
600
|
+
path: 'file.fileName',
|
|
601
|
+
string_starts_with: 'IMG_',
|
|
602
|
+
},
|
|
603
|
+
},
|
|
604
|
+
},
|
|
605
|
+
},
|
|
606
|
+
},
|
|
607
|
+
arrayOfFiles: {
|
|
608
|
+
description: 'Query arrays of files (e.g., gallery, attachments)',
|
|
609
|
+
examples: {
|
|
610
|
+
anyFilePdf: {
|
|
611
|
+
description: 'Find rows where any attachment is a PDF',
|
|
612
|
+
where: {
|
|
613
|
+
data: { path: 'attachments[*].extension', equals: 'pdf' },
|
|
614
|
+
},
|
|
615
|
+
},
|
|
616
|
+
firstImageUploaded: {
|
|
617
|
+
description: 'Find rows where first gallery image is uploaded',
|
|
618
|
+
where: {
|
|
619
|
+
data: { path: 'gallery[0].status', equals: 'uploaded' },
|
|
620
|
+
},
|
|
621
|
+
},
|
|
622
|
+
anyLargeFile: {
|
|
623
|
+
description: 'Find rows with any file larger than 5MB',
|
|
624
|
+
where: { data: { path: 'files[*].size', gt: 5242880 } },
|
|
625
|
+
},
|
|
626
|
+
anyImageFile: {
|
|
627
|
+
description: 'Find rows with any image in attachments',
|
|
628
|
+
where: {
|
|
629
|
+
data: {
|
|
630
|
+
path: 'attachments[*].mimeType',
|
|
631
|
+
string_starts_with: 'image/',
|
|
632
|
+
},
|
|
633
|
+
},
|
|
634
|
+
},
|
|
635
|
+
},
|
|
636
|
+
},
|
|
637
|
+
sorting: {
|
|
638
|
+
description: 'Sort by file properties',
|
|
639
|
+
examples: {
|
|
640
|
+
bySize: {
|
|
641
|
+
description: 'Sort by file size (largest first)',
|
|
642
|
+
orderBy: {
|
|
643
|
+
data: { path: 'document.size', direction: 'desc', type: 'int' },
|
|
644
|
+
},
|
|
645
|
+
},
|
|
646
|
+
byFileName: {
|
|
647
|
+
description: 'Sort alphabetically by file name',
|
|
648
|
+
orderBy: {
|
|
649
|
+
data: {
|
|
650
|
+
path: 'attachment.fileName',
|
|
651
|
+
direction: 'asc',
|
|
652
|
+
type: 'text',
|
|
653
|
+
},
|
|
654
|
+
},
|
|
655
|
+
},
|
|
656
|
+
byWidth: {
|
|
657
|
+
description: 'Sort images by width',
|
|
658
|
+
orderBy: {
|
|
659
|
+
data: { path: 'image.width', direction: 'desc', type: 'int' },
|
|
660
|
+
},
|
|
661
|
+
},
|
|
662
|
+
},
|
|
663
|
+
},
|
|
664
|
+
combinedQueries: {
|
|
665
|
+
description: 'Complex file queries combining multiple conditions',
|
|
666
|
+
examples: {
|
|
667
|
+
uploadedImages: {
|
|
668
|
+
description: 'Find uploaded image files only',
|
|
669
|
+
where: {
|
|
670
|
+
AND: [
|
|
671
|
+
{ data: { path: 'photo.status', equals: 'uploaded' } },
|
|
672
|
+
{
|
|
673
|
+
data: {
|
|
674
|
+
path: 'photo.mimeType',
|
|
675
|
+
string_starts_with: 'image/',
|
|
676
|
+
},
|
|
677
|
+
},
|
|
678
|
+
],
|
|
679
|
+
},
|
|
680
|
+
},
|
|
681
|
+
largeUploadedPdfs: {
|
|
682
|
+
description: 'Find uploaded PDFs larger than 1MB',
|
|
683
|
+
where: {
|
|
684
|
+
AND: [
|
|
685
|
+
{ data: { path: 'document.status', equals: 'uploaded' } },
|
|
686
|
+
{ data: { path: 'document.extension', equals: 'pdf' } },
|
|
687
|
+
{ data: { path: 'document.size', gt: 1048576 } },
|
|
688
|
+
],
|
|
689
|
+
},
|
|
690
|
+
},
|
|
691
|
+
highResImages: {
|
|
692
|
+
description: 'Find uploaded high-resolution images (4K+)',
|
|
693
|
+
where: {
|
|
694
|
+
AND: [
|
|
695
|
+
{ data: { path: 'image.status', equals: 'uploaded' } },
|
|
696
|
+
{ data: { path: 'image.width', gte: 3840 } },
|
|
697
|
+
{ data: { path: 'image.height', gte: 2160 } },
|
|
698
|
+
],
|
|
699
|
+
},
|
|
700
|
+
},
|
|
701
|
+
productsWithImages: {
|
|
702
|
+
description: 'Find products with uploaded main image',
|
|
703
|
+
where: {
|
|
704
|
+
AND: [
|
|
705
|
+
{ data: { path: 'mainImage.status', equals: 'uploaded' } },
|
|
706
|
+
{ data: { path: 'isActive', equals: true } },
|
|
707
|
+
],
|
|
708
|
+
},
|
|
709
|
+
orderBy: {
|
|
710
|
+
data: { path: 'name', direction: 'asc', type: 'text' },
|
|
711
|
+
},
|
|
712
|
+
},
|
|
713
|
+
},
|
|
714
|
+
},
|
|
715
|
+
},
|
|
716
|
+
schemaToQueryMapping: {
|
|
717
|
+
description: 'How to build queries based on your table schema',
|
|
718
|
+
guide: [
|
|
719
|
+
'For string fields: use string_contains, string_starts_with, string_ends_with, equals, in',
|
|
720
|
+
'For number fields: use equals, gt, gte, lt, lte, in',
|
|
721
|
+
'For boolean fields: use equals, not',
|
|
722
|
+
'For date fields (format: date-time): use equals, gt, gte, lt, lte',
|
|
723
|
+
'For nested objects: use dot notation in path (e.g., "address.city")',
|
|
724
|
+
'For arrays: use bracket notation (e.g., "items[0]") or wildcard ("items[*]")',
|
|
725
|
+
'For file fields ($ref: "File"): use dot notation to access properties (e.g., "avatar.status", "document.extension", "image.width")',
|
|
726
|
+
'For file arrays: use wildcard to search any file (e.g., "attachments[*].extension")',
|
|
727
|
+
],
|
|
728
|
+
performanceTips: [
|
|
729
|
+
'Put most selective filters first in AND arrays',
|
|
730
|
+
'Use specific paths instead of root search when possible',
|
|
731
|
+
'Prefer equals over contains for exact matches',
|
|
732
|
+
'Use appropriate type hints in orderBy for correct sorting',
|
|
733
|
+
],
|
|
734
|
+
},
|
|
735
|
+
};
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
exports.QueryResource = QueryResource;
|
|
739
|
+
//# sourceMappingURL=query.resource.js.map
|