@revisium/core 2.7.0 → 2.8.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/package.json +13 -11
- package/dist/src/__generated__/client/internal/class.js +14 -5
- package/dist/src/__generated__/client/internal/class.js.map +1 -1
- package/dist/src/__generated__/client/internal/prismaNamespace.d.ts +1 -0
- package/dist/src/__generated__/client/internal/prismaNamespace.js +2 -2
- package/dist/src/__generated__/client/internal/prismaNamespaceBrowser.d.ts +6 -6
- package/dist/src/__generated__/client/internal/prismaNamespaceBrowser.js +8 -8
- package/dist/src/__generated__/client/internal/prismaNamespaceBrowser.js.map +1 -1
- package/dist/src/api/graphql-api/configuration/model/configuration.model.d.ts +1 -0
- package/dist/src/api/graphql-api/configuration/model/configuration.model.js +4 -0
- package/dist/src/api/graphql-api/configuration/model/configuration.model.js.map +1 -1
- package/dist/src/api/graphql-api/filters/graphql-validation-exception.filter.d.ts +1 -0
- package/dist/src/api/graphql-api/filters/graphql-validation-exception.filter.js +11 -1
- package/dist/src/api/graphql-api/filters/graphql-validation-exception.filter.js.map +1 -1
- package/dist/src/api/graphql-api/graphql-api.module.js +4 -21
- package/dist/src/api/graphql-api/graphql-api.module.js.map +1 -1
- package/dist/src/api/mcp-api/mcp-server.service.d.ts +7 -6
- package/dist/src/api/mcp-api/mcp-server.service.js +46 -32
- package/dist/src/api/mcp-api/mcp-server.service.js.map +1 -1
- package/dist/src/api/mcp-api/mcp.controller.js +2 -1
- package/dist/src/api/mcp-api/mcp.controller.js.map +1 -1
- package/dist/src/api/mcp-api/resources/schema.resource.js +40 -1
- package/dist/src/api/mcp-api/resources/schema.resource.js.map +1 -1
- package/dist/src/api/mcp-api/tools/row.tools.js +1 -1
- package/dist/src/api/mcp-api/tools/row.tools.js.map +1 -1
- package/dist/src/api/mcp-api/tools/table.tools.js +15 -1
- package/dist/src/api/mcp-api/tools/table.tools.js.map +1 -1
- package/dist/src/api/rest-api/auth/auth.controller.d.ts +3 -2
- package/dist/src/api/rest-api/auth/auth.controller.js +8 -6
- package/dist/src/api/rest-api/auth/auth.controller.js.map +1 -1
- package/dist/src/api/rest-api/branch/branch-by-name.controller.d.ts +2 -1
- package/dist/src/api/rest-api/branch/branch-by-name.controller.js +3 -2
- 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.js +2 -1
- package/dist/src/api/rest-api/branch/dto/get-branch-revisions.dto.js.map +1 -1
- package/dist/src/api/rest-api/configuration/model/configuration.response.d.ts +1 -0
- package/dist/src/api/rest-api/configuration/model/configuration.response.js +4 -0
- package/dist/src/api/rest-api/configuration/model/configuration.response.js.map +1 -1
- package/dist/src/api/rest-api/endpoint/endpoint-by-id.controller.d.ts +2 -1
- package/dist/src/api/rest-api/endpoint/endpoint-by-id.controller.js +3 -2
- package/dist/src/api/rest-api/endpoint/endpoint-by-id.controller.js.map +1 -1
- package/dist/src/api/rest-api/organization/dto/get-projects.dto.js +2 -1
- package/dist/src/api/rest-api/organization/dto/get-projects.dto.js.map +1 -1
- package/dist/src/api/rest-api/organization/dto/get-users-organization.dto.js +2 -1
- package/dist/src/api/rest-api/organization/dto/get-users-organization.dto.js.map +1 -1
- package/dist/src/api/rest-api/organization/organization.controller.d.ts +3 -2
- package/dist/src/api/rest-api/organization/organization.controller.js +11 -8
- package/dist/src/api/rest-api/organization/organization.controller.js.map +1 -1
- package/dist/src/api/rest-api/project/dto/get-project-branches.dto.js +2 -1
- package/dist/src/api/rest-api/project/dto/get-project-branches.dto.js.map +1 -1
- package/dist/src/api/rest-api/project/dto/get-users-project.dto.js +2 -1
- package/dist/src/api/rest-api/project/dto/get-users-project.dto.js.map +1 -1
- package/dist/src/api/rest-api/rest-api.module.js +2 -0
- package/dist/src/api/rest-api/rest-api.module.js.map +1 -1
- package/dist/src/api/rest-api/revision/dto/get-revision-changes.dto.d.ts +4 -0
- package/dist/src/api/rest-api/revision/dto/get-revision-changes.dto.js +32 -0
- package/dist/src/api/rest-api/revision/dto/get-revision-changes.dto.js.map +1 -0
- package/dist/src/api/rest-api/revision/dto/get-revision-tables.dto.js +2 -1
- package/dist/src/api/rest-api/revision/dto/get-revision-tables.dto.js.map +1 -1
- package/dist/src/api/rest-api/revision/dto/get-row-changes.dto.d.ts +10 -0
- package/dist/src/api/rest-api/revision/dto/get-row-changes.dto.js +73 -0
- package/dist/src/api/rest-api/revision/dto/get-row-changes.dto.js.map +1 -0
- package/dist/src/api/rest-api/revision/dto/get-table-changes.dto.d.ts +10 -0
- package/dist/src/api/rest-api/revision/dto/get-table-changes.dto.js +74 -0
- package/dist/src/api/rest-api/revision/dto/get-table-changes.dto.js.map +1 -0
- package/dist/src/api/rest-api/revision/dto/index.d.ts +3 -0
- package/dist/src/api/rest-api/revision/dto/index.js +3 -0
- package/dist/src/api/rest-api/revision/dto/index.js.map +1 -1
- package/dist/src/api/rest-api/revision/model/index.d.ts +1 -0
- package/dist/src/api/rest-api/revision/model/index.js +1 -0
- package/dist/src/api/rest-api/revision/model/index.js.map +1 -1
- package/dist/src/api/rest-api/revision/model/revision-changes.model.d.ts +107 -0
- package/dist/src/api/rest-api/revision/model/revision-changes.model.js +377 -0
- package/dist/src/api/rest-api/revision/model/revision-changes.model.js.map +1 -0
- package/dist/src/api/rest-api/revision/revision-by-id.controller.d.ts +10 -3
- package/dist/src/api/rest-api/revision/revision-by-id.controller.js +108 -1
- package/dist/src/api/rest-api/revision/revision-by-id.controller.js.map +1 -1
- package/dist/src/api/rest-api/row/dto/get-row-foreign-keys-by.dto.js +2 -1
- package/dist/src/api/rest-api/row/dto/get-row-foreign-keys-by.dto.js.map +1 -1
- package/dist/src/api/rest-api/row/dto/get-row-foreign-keys-to.dto.js +2 -1
- package/dist/src/api/rest-api/row/dto/get-row-foreign-keys-to.dto.js.map +1 -1
- package/dist/src/api/rest-api/row/row-by-id.controller.d.ts +3 -2
- package/dist/src/api/rest-api/row/row-by-id.controller.js +17 -12
- package/dist/src/api/rest-api/row/row-by-id.controller.js.map +1 -1
- package/dist/src/api/rest-api/share/decorators/index.d.ts +1 -0
- package/dist/src/api/rest-api/share/decorators/index.js +1 -0
- package/dist/src/api/rest-api/share/decorators/index.js.map +1 -1
- package/dist/src/api/rest-api/share/decorators/transform-optional-boolean.decorator.d.ts +1 -0
- package/dist/src/api/rest-api/share/decorators/transform-optional-boolean.decorator.js +19 -0
- package/dist/src/api/rest-api/share/decorators/transform-optional-boolean.decorator.js.map +1 -0
- package/dist/src/api/rest-api/share/model/count.model.d.ts +3 -0
- package/dist/src/api/rest-api/share/model/count.model.js +24 -0
- package/dist/src/api/rest-api/share/model/count.model.js.map +1 -0
- package/dist/src/api/rest-api/table/dto/get-table-foreign-keys-by.dto.js +2 -1
- package/dist/src/api/rest-api/table/dto/get-table-foreign-keys-by.dto.js.map +1 -1
- package/dist/src/api/rest-api/table/dto/get-table-foreign-keys-to.dto.js +2 -1
- package/dist/src/api/rest-api/table/dto/get-table-foreign-keys-to.dto.js.map +1 -1
- package/dist/src/api/rest-api/table/dto/get-table-rows.dto.js +2 -1
- package/dist/src/api/rest-api/table/dto/get-table-rows.dto.js.map +1 -1
- package/dist/src/api/rest-api/table/table-by-id.controller.d.ts +4 -3
- package/dist/src/api/rest-api/table/table-by-id.controller.js +21 -14
- package/dist/src/api/rest-api/table/table-by-id.controller.js.map +1 -1
- package/dist/src/features/auth/auth.module.js +3 -0
- package/dist/src/features/auth/auth.module.js.map +1 -1
- package/dist/src/features/auth/commands/handlers/check-organization-permission.handler.js.map +1 -1
- package/dist/src/features/auth/commands/handlers/check-project-permission.handler.js.map +1 -1
- package/dist/src/features/auth/commands/handlers/check-system-permission.handler.js.map +1 -1
- package/dist/src/features/auth/commands/handlers/create-user.handler.js.map +1 -1
- package/dist/src/features/auth/commands/handlers/login-github.handler.js.map +1 -1
- package/dist/src/features/auth/commands/handlers/login-google.handler.js.map +1 -1
- package/dist/src/features/auth/commands/handlers/login.handler.d.ts +3 -1
- package/dist/src/features/auth/commands/handlers/login.handler.js +15 -2
- package/dist/src/features/auth/commands/handlers/login.handler.js.map +1 -1
- package/dist/src/features/auth/commands/handlers/sign-up.handler.js.map +1 -1
- package/dist/src/features/auth/guards/jwt/gql-jwt-auth-guard.service.d.ts +4 -0
- package/dist/src/features/auth/guards/jwt/gql-jwt-auth-guard.service.js +18 -1
- package/dist/src/features/auth/guards/jwt/gql-jwt-auth-guard.service.js.map +1 -1
- package/dist/src/features/auth/guards/jwt/http-jwt-auth-guard.service.d.ts +5 -0
- package/dist/src/features/auth/guards/jwt/http-jwt-auth-guard.service.js +17 -1
- package/dist/src/features/auth/guards/jwt/http-jwt-auth-guard.service.js.map +1 -1
- package/dist/src/features/auth/guards/jwt/optional-gql-jwt-auth-guard.service.d.ts +4 -0
- package/dist/src/features/auth/guards/jwt/optional-gql-jwt-auth-guard.service.js +18 -1
- package/dist/src/features/auth/guards/jwt/optional-gql-jwt-auth-guard.service.js.map +1 -1
- package/dist/src/features/auth/guards/jwt/optional-http-jwt-auth-guard.service.d.ts +5 -0
- package/dist/src/features/auth/guards/jwt/optional-http-jwt-auth-guard.service.js +17 -1
- package/dist/src/features/auth/guards/jwt/optional-http-jwt-auth-guard.service.js.map +1 -1
- package/dist/src/features/auth/no-auth.service.d.ts +7 -0
- package/dist/src/features/auth/no-auth.service.js +28 -0
- package/dist/src/features/auth/no-auth.service.js.map +1 -0
- package/dist/src/features/branch/commands/handlers/api-create-branch-by-revision-id.handler.js.map +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/handlers/delete-branch.handler.js.map +1 -1
- package/dist/src/features/branch/quieries/handlers/get-branch-by-id.handler.js.map +1 -1
- package/dist/src/features/branch/quieries/handlers/get-branches.handler.js.map +1 -1
- package/dist/src/features/branch/quieries/handlers/get-draft-revision.handler.js.map +1 -1
- package/dist/src/features/branch/quieries/handlers/get-head-revision.handler.js.map +1 -1
- package/dist/src/features/branch/quieries/handlers/get-project-by-branch.handler.js.map +1 -1
- 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-start-revision.handler.js.map +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/handlers/resolve-parent-branch-by-branch.handler.js.map +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-remove-row.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/transactional/internal-update-rows.handler.d.ts +3 -1
- package/dist/src/features/draft/commands/handlers/transactional/internal-update-rows.handler.js +11 -2
- package/dist/src/features/draft/commands/handlers/transactional/internal-update-rows.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/transactional/resolve-draft-revision.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/transactional/validate-data.handler.js +1 -3
- package/dist/src/features/draft/commands/handlers/transactional/validate-data.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/transactional/validate-not-system-table.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/transactional/validate-schema.handler.js.map +1 -1
- package/dist/src/features/draft-revision/commands/handlers/draft-revision-commit.handler.js.map +1 -1
- package/dist/src/features/draft-revision/commands/handlers/draft-revision-create-rows.handler.js.map +1 -1
- package/dist/src/features/draft-revision/commands/handlers/draft-revision-create-table.handler.js.map +1 -1
- package/dist/src/features/draft-revision/commands/handlers/draft-revision-get-or-create-draft-row.handler.js.map +1 -1
- package/dist/src/features/draft-revision/commands/handlers/draft-revision-get-or-create-draft-table.handler.js.map +1 -1
- package/dist/src/features/draft-revision/commands/handlers/draft-revision-recompute-has-changes.handler.js.map +1 -1
- package/dist/src/features/draft-revision/commands/handlers/draft-revision-remove-rows.handler.js.map +1 -1
- package/dist/src/features/draft-revision/commands/handlers/draft-revision-remove-table.handler.js.map +1 -1
- package/dist/src/features/draft-revision/commands/handlers/draft-revision-rename-rows.handler.js.map +1 -1
- package/dist/src/features/draft-revision/commands/handlers/draft-revision-rename-table.handler.js.map +1 -1
- package/dist/src/features/draft-revision/commands/handlers/draft-revision-revert.handler.js.map +1 -1
- package/dist/src/features/draft-revision/commands/handlers/draft-revision-update-rows.handler.js.map +1 -1
- package/dist/src/features/endpoint/commands/handlers/api-create-endpoint.handler.js.map +1 -1
- package/dist/src/features/endpoint/commands/handlers/delete-endpoint.handler.js.map +1 -1
- package/dist/src/features/endpoint/queries/handlers/get-created-endpoint.handler.js.map +1 -1
- package/dist/src/features/endpoint/queries/handlers/get-endpoint-relatives.handler.js.map +1 -1
- package/dist/src/features/endpoint/queries/handlers/get-project-endpoints.handler.js.map +1 -1
- package/dist/src/features/endpoint/queries/handlers/get-revision-by-endpoint-id.handler.js.map +1 -1
- package/dist/src/features/organization/commands/handlers/add-user-to-organization.handler.js.map +1 -1
- package/dist/src/features/organization/commands/handlers/remove-user-from-organization.handler.js.map +1 -1
- package/dist/src/features/organization/queries/handlers/get-organization.handler.js.map +1 -1
- 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.js.map +1 -1
- package/dist/src/features/project/commands/handlers/remove-user-from-project.handler.js.map +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.js.map +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.js.map +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.js.map +1 -1
- package/dist/src/features/project/queries/handlers/get-users-project.handler.js.map +1 -1
- package/dist/src/features/revision/queries/commands/get-children-by-revision.handler.js.map +1 -1
- package/dist/src/features/revision/queries/commands/get-endpoints-by-revision-id.handler.js.map +1 -1
- package/dist/src/features/revision/queries/commands/get-revision.handler.js.map +1 -1
- package/dist/src/features/revision/queries/commands/resolve-branch-by-revision.handler.js.map +1 -1
- package/dist/src/features/revision/queries/commands/resolve-child-branches-by-revision.handler.js.map +1 -1
- package/dist/src/features/revision/queries/commands/resolve-child-by-revision.handler.js.map +1 -1
- package/dist/src/features/revision/queries/commands/resolve-parent-by-revision.handler.js.map +1 -1
- package/dist/src/features/revision-changes/queries/handlers/get-row-changes.handler.js.map +1 -1
- package/dist/src/features/revision-changes/queries/handlers/get-table-changes.handler.js.map +1 -1
- package/dist/src/features/role/queries/handlers/get-role.handler.js.map +1 -1
- package/dist/src/features/row/queries/handlers/get-row-by-id.handler.js.map +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.js.map +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.map +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.js.map +1 -1
- package/dist/src/features/row/queries/handlers/search-rows.handler.js.map +1 -1
- package/dist/src/features/share/commands/handlers/notify-endpoints.handler.js.map +1 -1
- package/dist/src/features/share/commands/handlers/transactional/move-endpoints.handler.js.map +1 -1
- package/dist/src/features/share/queries/handlers/transactional/find-branch-in-project-or-throw.handler.js.map +1 -1
- package/dist/src/features/share/queries/handlers/transactional/find-draft-revision-in-branch-or-throw.handler.js.map +1 -1
- package/dist/src/features/share/queries/handlers/transactional/find-head-revision-in-branch-or-throw.handler.js.map +1 -1
- package/dist/src/features/share/queries/handlers/transactional/find-project-in-organization-or-throw.handler.js.map +1 -1
- package/dist/src/features/share/queries/handlers/transactional/find-row-in-table-or-throw.handler.js.map +1 -1
- package/dist/src/features/share/queries/handlers/transactional/find-rows-in-table-or-throw.handler.js.map +1 -1
- package/dist/src/features/share/queries/handlers/transactional/find-rows-in-table.handler.js.map +1 -1
- package/dist/src/features/share/queries/handlers/transactional/find-table-in-revision-or-throw.handler.js.map +1 -1
- package/dist/src/features/share/queries/handlers/transactional/get-table-schema.handler.js.map +1 -1
- package/dist/src/features/table/queries/handlers/get-count-rows-in-table.handler.js.map +1 -1
- package/dist/src/features/table/queries/handlers/get-table-by-id.handler.js.map +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.map +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.map +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.map +1 -1
- package/dist/src/features/table/queries/handlers/resolve-table-schema.handler.js.map +1 -1
- package/dist/src/features/user/commands/handlers/set-username.handler.js.map +1 -1
- package/dist/src/features/user/queries/handlers/admin-user.handler.js.map +1 -1
- package/dist/src/features/user/queries/handlers/get-user-project.handler.js.map +1 -1
- package/dist/src/features/user/queries/handlers/get-user.handler.js.map +1 -1
- package/dist/src/features/user/queries/handlers/search-users.handler.js.map +1 -1
- package/dist/src/features/views/queries/handlers/get-table-views.handler.js.map +1 -1
- package/dist/src/infrastructure/cache/handlers/revision/revision-committed.handler.js.map +1 -1
- package/dist/src/infrastructure/cache/handlers/revision/revision-reverted.handler.js.map +1 -1
- package/dist/src/infrastructure/cache/handlers/row/rows-deleted.handler.js.map +1 -1
- package/dist/src/infrastructure/cache/handlers/table/table-deleted.handler.js.map +1 -1
- package/dist/src/infrastructure/cache/handlers/table/table-renamed.handler.js.map +1 -1
- package/dist/src/infrastructure/cache/handlers/table/table-schema-updated.handler.js.map +1 -1
- package/dist/src/infrastructure/cache/revisium-cache.module.js.map +1 -1
- package/dist/src/infrastructure/cache/services/cache.service.js +13 -2
- package/dist/src/infrastructure/cache/services/cache.service.js.map +1 -1
- package/dist/src/infrastructure/configuration/queries/handlers/get-configuration.handler.d.ts +3 -1
- package/dist/src/infrastructure/configuration/queries/handlers/get-configuration.handler.js +5 -1
- package/dist/src/infrastructure/configuration/queries/handlers/get-configuration.handler.js.map +1 -1
- package/dist/src/infrastructure/configuration/queries/impl/get-configuration.query.d.ts +1 -0
- package/dist/src/infrastructure/metrics/graphql/graphql-metrics.plugin.d.ts +3 -3
- package/dist/src/infrastructure/metrics/graphql/graphql-metrics.plugin.js +23 -21
- package/dist/src/infrastructure/metrics/graphql/graphql-metrics.plugin.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 +13 -11
|
@@ -15,6 +15,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./get-revision-tables.dto"), exports);
|
|
18
|
+
__exportStar(require("./get-revision-changes.dto"), exports);
|
|
19
|
+
__exportStar(require("./get-table-changes.dto"), exports);
|
|
20
|
+
__exportStar(require("./get-row-changes.dto"), exports);
|
|
18
21
|
__exportStar(require("./create-endpoint.dto"), exports);
|
|
19
22
|
__exportStar(require("./create-table.dto"), exports);
|
|
20
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/api/rest-api/revision/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAAsE;AACtE,wDAAkE;AAClE,qDAA+D"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/api/rest-api/revision/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAAsE;AACtE,6DAAuE;AACvE,0DAAoE;AACpE,wDAAkE;AAClE,wDAAkE;AAClE,qDAA+D"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from '../../../../api/rest-api/revision/model/revision.model';
|
|
2
|
+
export * from '../../../../api/rest-api/revision/model/revision-changes.model';
|
|
2
3
|
export * from '../../../../api/rest-api/revision/model/create-table.response';
|
|
3
4
|
export * from '../../../../api/rest-api/revision/model/migrations.model';
|
|
4
5
|
export * from '../../../../api/rest-api/revision/model/apply-migrations.response';
|
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./revision.model"), exports);
|
|
18
|
+
__exportStar(require("./revision-changes.model"), exports);
|
|
18
19
|
__exportStar(require("./create-table.response"), exports);
|
|
19
20
|
__exportStar(require("./migrations.model"), exports);
|
|
20
21
|
__exportStar(require("./apply-migrations.response"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/api/rest-api/revision/model/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAA+D;AAC/D,0DAAsE;AACtE,qDAAiE;AACjE,8DAA0E"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/api/rest-api/revision/model/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAA+D;AAC/D,2DAAuE;AACvE,0DAAsE;AACtE,qDAAiE;AACjE,8DAA0E"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
export declare class RevisionChangeSummaryResponse {
|
|
2
|
+
total: number;
|
|
3
|
+
added: number;
|
|
4
|
+
modified: number;
|
|
5
|
+
removed: number;
|
|
6
|
+
renamed: number;
|
|
7
|
+
}
|
|
8
|
+
export declare class RevisionChangesResponse {
|
|
9
|
+
revisionId: string;
|
|
10
|
+
parentRevisionId: string | null;
|
|
11
|
+
totalChanges: number;
|
|
12
|
+
tablesSummary: RevisionChangeSummaryResponse;
|
|
13
|
+
rowsSummary: RevisionChangeSummaryResponse;
|
|
14
|
+
}
|
|
15
|
+
export declare class ViewChangeResponse {
|
|
16
|
+
viewId: string;
|
|
17
|
+
viewName: string;
|
|
18
|
+
changeType: string;
|
|
19
|
+
oldViewName?: string;
|
|
20
|
+
}
|
|
21
|
+
export declare class ViewsChangeDetailResponse {
|
|
22
|
+
hasChanges: boolean;
|
|
23
|
+
changes: ViewChangeResponse[];
|
|
24
|
+
addedCount: number;
|
|
25
|
+
modifiedCount: number;
|
|
26
|
+
removedCount: number;
|
|
27
|
+
renamedCount: number;
|
|
28
|
+
}
|
|
29
|
+
export declare class JsonPatchOperationResponse {
|
|
30
|
+
op: string;
|
|
31
|
+
path: string;
|
|
32
|
+
value?: unknown;
|
|
33
|
+
from?: string;
|
|
34
|
+
}
|
|
35
|
+
export declare class HistoryPatchResponse {
|
|
36
|
+
hash: string;
|
|
37
|
+
patches: JsonPatchOperationResponse[];
|
|
38
|
+
}
|
|
39
|
+
export declare class SchemaMigrationDetailResponse {
|
|
40
|
+
migrationType: string;
|
|
41
|
+
migrationId: string;
|
|
42
|
+
initialSchema?: unknown;
|
|
43
|
+
patches?: JsonPatchOperationResponse[];
|
|
44
|
+
oldTableId?: string;
|
|
45
|
+
newTableId?: string;
|
|
46
|
+
historyPatches?: HistoryPatchResponse[];
|
|
47
|
+
}
|
|
48
|
+
export declare class TableChangeResponse {
|
|
49
|
+
tableId: string;
|
|
50
|
+
tableCreatedId: string;
|
|
51
|
+
fromVersionId: string | null;
|
|
52
|
+
toVersionId: string | null;
|
|
53
|
+
changeType: string;
|
|
54
|
+
oldTableId?: string;
|
|
55
|
+
newTableId?: string;
|
|
56
|
+
schemaMigrations: SchemaMigrationDetailResponse[];
|
|
57
|
+
viewsChanges: ViewsChangeDetailResponse;
|
|
58
|
+
rowChangesCount: number;
|
|
59
|
+
addedRowsCount: number;
|
|
60
|
+
modifiedRowsCount: number;
|
|
61
|
+
removedRowsCount: number;
|
|
62
|
+
renamedRowsCount: number;
|
|
63
|
+
}
|
|
64
|
+
declare const TableChangesConnection_base: import("@nestjs/common").Type<any>;
|
|
65
|
+
export declare class TableChangesConnection extends TableChangesConnection_base {
|
|
66
|
+
}
|
|
67
|
+
export declare class FieldChangeResponse {
|
|
68
|
+
fieldPath: string;
|
|
69
|
+
oldValue?: unknown;
|
|
70
|
+
newValue?: unknown;
|
|
71
|
+
changeType: string;
|
|
72
|
+
movedFrom?: string;
|
|
73
|
+
}
|
|
74
|
+
export declare class RowChangeRowResponse {
|
|
75
|
+
id: string;
|
|
76
|
+
createdId: string;
|
|
77
|
+
versionId: string;
|
|
78
|
+
data: unknown;
|
|
79
|
+
hash: string;
|
|
80
|
+
schemaHash: string;
|
|
81
|
+
readonly: boolean;
|
|
82
|
+
meta: unknown;
|
|
83
|
+
createdAt: Date;
|
|
84
|
+
updatedAt: Date;
|
|
85
|
+
publishedAt: Date;
|
|
86
|
+
}
|
|
87
|
+
export declare class RowChangeTableResponse {
|
|
88
|
+
id: string;
|
|
89
|
+
createdId: string;
|
|
90
|
+
versionId: string;
|
|
91
|
+
readonly: boolean;
|
|
92
|
+
system: boolean;
|
|
93
|
+
createdAt: Date;
|
|
94
|
+
updatedAt: Date;
|
|
95
|
+
}
|
|
96
|
+
export declare class RowChangeResponse {
|
|
97
|
+
changeType: string;
|
|
98
|
+
row?: RowChangeRowResponse;
|
|
99
|
+
fromRow?: RowChangeRowResponse;
|
|
100
|
+
table?: RowChangeTableResponse;
|
|
101
|
+
fromTable?: RowChangeTableResponse;
|
|
102
|
+
fieldChanges: FieldChangeResponse[];
|
|
103
|
+
}
|
|
104
|
+
declare const RowChangesConnection_base: import("@nestjs/common").Type<any>;
|
|
105
|
+
export declare class RowChangesConnection extends RowChangesConnection_base {
|
|
106
|
+
}
|
|
107
|
+
export {};
|
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.RowChangesConnection = exports.RowChangeResponse = exports.RowChangeTableResponse = exports.RowChangeRowResponse = exports.FieldChangeResponse = exports.TableChangesConnection = exports.TableChangeResponse = exports.SchemaMigrationDetailResponse = exports.HistoryPatchResponse = exports.JsonPatchOperationResponse = exports.ViewsChangeDetailResponse = exports.ViewChangeResponse = exports.RevisionChangesResponse = exports.RevisionChangeSummaryResponse = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const paginated_model_1 = require("../../share/model/paginated.model");
|
|
15
|
+
class RevisionChangeSummaryResponse {
|
|
16
|
+
}
|
|
17
|
+
exports.RevisionChangeSummaryResponse = RevisionChangeSummaryResponse;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, swagger_1.ApiProperty)(),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], RevisionChangeSummaryResponse.prototype, "total", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, swagger_1.ApiProperty)(),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], RevisionChangeSummaryResponse.prototype, "added", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, swagger_1.ApiProperty)(),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], RevisionChangeSummaryResponse.prototype, "modified", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, swagger_1.ApiProperty)(),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], RevisionChangeSummaryResponse.prototype, "removed", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, swagger_1.ApiProperty)(),
|
|
36
|
+
__metadata("design:type", Number)
|
|
37
|
+
], RevisionChangeSummaryResponse.prototype, "renamed", void 0);
|
|
38
|
+
class RevisionChangesResponse {
|
|
39
|
+
}
|
|
40
|
+
exports.RevisionChangesResponse = RevisionChangesResponse;
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, swagger_1.ApiProperty)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], RevisionChangesResponse.prototype, "revisionId", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, swagger_1.ApiProperty)({ nullable: true, type: String }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], RevisionChangesResponse.prototype, "parentRevisionId", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, swagger_1.ApiProperty)(),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], RevisionChangesResponse.prototype, "totalChanges", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, swagger_1.ApiProperty)({ type: RevisionChangeSummaryResponse }),
|
|
55
|
+
__metadata("design:type", RevisionChangeSummaryResponse)
|
|
56
|
+
], RevisionChangesResponse.prototype, "tablesSummary", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, swagger_1.ApiProperty)({ type: RevisionChangeSummaryResponse }),
|
|
59
|
+
__metadata("design:type", RevisionChangeSummaryResponse)
|
|
60
|
+
], RevisionChangesResponse.prototype, "rowsSummary", void 0);
|
|
61
|
+
class ViewChangeResponse {
|
|
62
|
+
}
|
|
63
|
+
exports.ViewChangeResponse = ViewChangeResponse;
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, swagger_1.ApiProperty)(),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], ViewChangeResponse.prototype, "viewId", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, swagger_1.ApiProperty)(),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], ViewChangeResponse.prototype, "viewName", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, swagger_1.ApiProperty)(),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], ViewChangeResponse.prototype, "changeType", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, swagger_1.ApiProperty)({ nullable: true, required: false, type: String }),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], ViewChangeResponse.prototype, "oldViewName", void 0);
|
|
80
|
+
class ViewsChangeDetailResponse {
|
|
81
|
+
}
|
|
82
|
+
exports.ViewsChangeDetailResponse = ViewsChangeDetailResponse;
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, swagger_1.ApiProperty)(),
|
|
85
|
+
__metadata("design:type", Boolean)
|
|
86
|
+
], ViewsChangeDetailResponse.prototype, "hasChanges", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, swagger_1.ApiProperty)({ type: [ViewChangeResponse] }),
|
|
89
|
+
__metadata("design:type", Array)
|
|
90
|
+
], ViewsChangeDetailResponse.prototype, "changes", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, swagger_1.ApiProperty)(),
|
|
93
|
+
__metadata("design:type", Number)
|
|
94
|
+
], ViewsChangeDetailResponse.prototype, "addedCount", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, swagger_1.ApiProperty)(),
|
|
97
|
+
__metadata("design:type", Number)
|
|
98
|
+
], ViewsChangeDetailResponse.prototype, "modifiedCount", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, swagger_1.ApiProperty)(),
|
|
101
|
+
__metadata("design:type", Number)
|
|
102
|
+
], ViewsChangeDetailResponse.prototype, "removedCount", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, swagger_1.ApiProperty)(),
|
|
105
|
+
__metadata("design:type", Number)
|
|
106
|
+
], ViewsChangeDetailResponse.prototype, "renamedCount", void 0);
|
|
107
|
+
class JsonPatchOperationResponse {
|
|
108
|
+
}
|
|
109
|
+
exports.JsonPatchOperationResponse = JsonPatchOperationResponse;
|
|
110
|
+
__decorate([
|
|
111
|
+
(0, swagger_1.ApiProperty)(),
|
|
112
|
+
__metadata("design:type", String)
|
|
113
|
+
], JsonPatchOperationResponse.prototype, "op", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
(0, swagger_1.ApiProperty)(),
|
|
116
|
+
__metadata("design:type", String)
|
|
117
|
+
], JsonPatchOperationResponse.prototype, "path", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
(0, swagger_1.ApiProperty)({ nullable: true, required: false }),
|
|
120
|
+
__metadata("design:type", Object)
|
|
121
|
+
], JsonPatchOperationResponse.prototype, "value", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
(0, swagger_1.ApiProperty)({ nullable: true, required: false, type: String }),
|
|
124
|
+
__metadata("design:type", String)
|
|
125
|
+
], JsonPatchOperationResponse.prototype, "from", void 0);
|
|
126
|
+
class HistoryPatchResponse {
|
|
127
|
+
}
|
|
128
|
+
exports.HistoryPatchResponse = HistoryPatchResponse;
|
|
129
|
+
__decorate([
|
|
130
|
+
(0, swagger_1.ApiProperty)(),
|
|
131
|
+
__metadata("design:type", String)
|
|
132
|
+
], HistoryPatchResponse.prototype, "hash", void 0);
|
|
133
|
+
__decorate([
|
|
134
|
+
(0, swagger_1.ApiProperty)({ type: [JsonPatchOperationResponse] }),
|
|
135
|
+
__metadata("design:type", Array)
|
|
136
|
+
], HistoryPatchResponse.prototype, "patches", void 0);
|
|
137
|
+
class SchemaMigrationDetailResponse {
|
|
138
|
+
}
|
|
139
|
+
exports.SchemaMigrationDetailResponse = SchemaMigrationDetailResponse;
|
|
140
|
+
__decorate([
|
|
141
|
+
(0, swagger_1.ApiProperty)(),
|
|
142
|
+
__metadata("design:type", String)
|
|
143
|
+
], SchemaMigrationDetailResponse.prototype, "migrationType", void 0);
|
|
144
|
+
__decorate([
|
|
145
|
+
(0, swagger_1.ApiProperty)(),
|
|
146
|
+
__metadata("design:type", String)
|
|
147
|
+
], SchemaMigrationDetailResponse.prototype, "migrationId", void 0);
|
|
148
|
+
__decorate([
|
|
149
|
+
(0, swagger_1.ApiProperty)({ nullable: true, required: false }),
|
|
150
|
+
__metadata("design:type", Object)
|
|
151
|
+
], SchemaMigrationDetailResponse.prototype, "initialSchema", void 0);
|
|
152
|
+
__decorate([
|
|
153
|
+
(0, swagger_1.ApiProperty)({
|
|
154
|
+
type: [JsonPatchOperationResponse],
|
|
155
|
+
nullable: true,
|
|
156
|
+
required: false,
|
|
157
|
+
}),
|
|
158
|
+
__metadata("design:type", Array)
|
|
159
|
+
], SchemaMigrationDetailResponse.prototype, "patches", void 0);
|
|
160
|
+
__decorate([
|
|
161
|
+
(0, swagger_1.ApiProperty)({ nullable: true, required: false, type: String }),
|
|
162
|
+
__metadata("design:type", String)
|
|
163
|
+
], SchemaMigrationDetailResponse.prototype, "oldTableId", void 0);
|
|
164
|
+
__decorate([
|
|
165
|
+
(0, swagger_1.ApiProperty)({ nullable: true, required: false, type: String }),
|
|
166
|
+
__metadata("design:type", String)
|
|
167
|
+
], SchemaMigrationDetailResponse.prototype, "newTableId", void 0);
|
|
168
|
+
__decorate([
|
|
169
|
+
(0, swagger_1.ApiProperty)({
|
|
170
|
+
type: [HistoryPatchResponse],
|
|
171
|
+
nullable: true,
|
|
172
|
+
required: false,
|
|
173
|
+
}),
|
|
174
|
+
__metadata("design:type", Array)
|
|
175
|
+
], SchemaMigrationDetailResponse.prototype, "historyPatches", void 0);
|
|
176
|
+
class TableChangeResponse {
|
|
177
|
+
}
|
|
178
|
+
exports.TableChangeResponse = TableChangeResponse;
|
|
179
|
+
__decorate([
|
|
180
|
+
(0, swagger_1.ApiProperty)(),
|
|
181
|
+
__metadata("design:type", String)
|
|
182
|
+
], TableChangeResponse.prototype, "tableId", void 0);
|
|
183
|
+
__decorate([
|
|
184
|
+
(0, swagger_1.ApiProperty)(),
|
|
185
|
+
__metadata("design:type", String)
|
|
186
|
+
], TableChangeResponse.prototype, "tableCreatedId", void 0);
|
|
187
|
+
__decorate([
|
|
188
|
+
(0, swagger_1.ApiProperty)({ nullable: true, type: String }),
|
|
189
|
+
__metadata("design:type", Object)
|
|
190
|
+
], TableChangeResponse.prototype, "fromVersionId", void 0);
|
|
191
|
+
__decorate([
|
|
192
|
+
(0, swagger_1.ApiProperty)({ nullable: true, type: String }),
|
|
193
|
+
__metadata("design:type", Object)
|
|
194
|
+
], TableChangeResponse.prototype, "toVersionId", void 0);
|
|
195
|
+
__decorate([
|
|
196
|
+
(0, swagger_1.ApiProperty)(),
|
|
197
|
+
__metadata("design:type", String)
|
|
198
|
+
], TableChangeResponse.prototype, "changeType", void 0);
|
|
199
|
+
__decorate([
|
|
200
|
+
(0, swagger_1.ApiProperty)({ nullable: true, required: false, type: String }),
|
|
201
|
+
__metadata("design:type", String)
|
|
202
|
+
], TableChangeResponse.prototype, "oldTableId", void 0);
|
|
203
|
+
__decorate([
|
|
204
|
+
(0, swagger_1.ApiProperty)({ nullable: true, required: false, type: String }),
|
|
205
|
+
__metadata("design:type", String)
|
|
206
|
+
], TableChangeResponse.prototype, "newTableId", void 0);
|
|
207
|
+
__decorate([
|
|
208
|
+
(0, swagger_1.ApiProperty)({ type: [SchemaMigrationDetailResponse] }),
|
|
209
|
+
__metadata("design:type", Array)
|
|
210
|
+
], TableChangeResponse.prototype, "schemaMigrations", void 0);
|
|
211
|
+
__decorate([
|
|
212
|
+
(0, swagger_1.ApiProperty)({ type: ViewsChangeDetailResponse }),
|
|
213
|
+
__metadata("design:type", ViewsChangeDetailResponse)
|
|
214
|
+
], TableChangeResponse.prototype, "viewsChanges", void 0);
|
|
215
|
+
__decorate([
|
|
216
|
+
(0, swagger_1.ApiProperty)(),
|
|
217
|
+
__metadata("design:type", Number)
|
|
218
|
+
], TableChangeResponse.prototype, "rowChangesCount", void 0);
|
|
219
|
+
__decorate([
|
|
220
|
+
(0, swagger_1.ApiProperty)(),
|
|
221
|
+
__metadata("design:type", Number)
|
|
222
|
+
], TableChangeResponse.prototype, "addedRowsCount", void 0);
|
|
223
|
+
__decorate([
|
|
224
|
+
(0, swagger_1.ApiProperty)(),
|
|
225
|
+
__metadata("design:type", Number)
|
|
226
|
+
], TableChangeResponse.prototype, "modifiedRowsCount", void 0);
|
|
227
|
+
__decorate([
|
|
228
|
+
(0, swagger_1.ApiProperty)(),
|
|
229
|
+
__metadata("design:type", Number)
|
|
230
|
+
], TableChangeResponse.prototype, "removedRowsCount", void 0);
|
|
231
|
+
__decorate([
|
|
232
|
+
(0, swagger_1.ApiProperty)(),
|
|
233
|
+
__metadata("design:type", Number)
|
|
234
|
+
], TableChangeResponse.prototype, "renamedRowsCount", void 0);
|
|
235
|
+
class TableChangesConnection extends (0, paginated_model_1.Paginated)(TableChangeResponse, 'TableChangeResponse') {
|
|
236
|
+
}
|
|
237
|
+
exports.TableChangesConnection = TableChangesConnection;
|
|
238
|
+
class FieldChangeResponse {
|
|
239
|
+
}
|
|
240
|
+
exports.FieldChangeResponse = FieldChangeResponse;
|
|
241
|
+
__decorate([
|
|
242
|
+
(0, swagger_1.ApiProperty)(),
|
|
243
|
+
__metadata("design:type", String)
|
|
244
|
+
], FieldChangeResponse.prototype, "fieldPath", void 0);
|
|
245
|
+
__decorate([
|
|
246
|
+
(0, swagger_1.ApiProperty)({ nullable: true, required: false }),
|
|
247
|
+
__metadata("design:type", Object)
|
|
248
|
+
], FieldChangeResponse.prototype, "oldValue", void 0);
|
|
249
|
+
__decorate([
|
|
250
|
+
(0, swagger_1.ApiProperty)({ nullable: true, required: false }),
|
|
251
|
+
__metadata("design:type", Object)
|
|
252
|
+
], FieldChangeResponse.prototype, "newValue", void 0);
|
|
253
|
+
__decorate([
|
|
254
|
+
(0, swagger_1.ApiProperty)(),
|
|
255
|
+
__metadata("design:type", String)
|
|
256
|
+
], FieldChangeResponse.prototype, "changeType", void 0);
|
|
257
|
+
__decorate([
|
|
258
|
+
(0, swagger_1.ApiProperty)({ nullable: true, required: false, type: String }),
|
|
259
|
+
__metadata("design:type", String)
|
|
260
|
+
], FieldChangeResponse.prototype, "movedFrom", void 0);
|
|
261
|
+
class RowChangeRowResponse {
|
|
262
|
+
}
|
|
263
|
+
exports.RowChangeRowResponse = RowChangeRowResponse;
|
|
264
|
+
__decorate([
|
|
265
|
+
(0, swagger_1.ApiProperty)(),
|
|
266
|
+
__metadata("design:type", String)
|
|
267
|
+
], RowChangeRowResponse.prototype, "id", void 0);
|
|
268
|
+
__decorate([
|
|
269
|
+
(0, swagger_1.ApiProperty)(),
|
|
270
|
+
__metadata("design:type", String)
|
|
271
|
+
], RowChangeRowResponse.prototype, "createdId", void 0);
|
|
272
|
+
__decorate([
|
|
273
|
+
(0, swagger_1.ApiProperty)(),
|
|
274
|
+
__metadata("design:type", String)
|
|
275
|
+
], RowChangeRowResponse.prototype, "versionId", void 0);
|
|
276
|
+
__decorate([
|
|
277
|
+
(0, swagger_1.ApiProperty)(),
|
|
278
|
+
__metadata("design:type", Object)
|
|
279
|
+
], RowChangeRowResponse.prototype, "data", void 0);
|
|
280
|
+
__decorate([
|
|
281
|
+
(0, swagger_1.ApiProperty)(),
|
|
282
|
+
__metadata("design:type", String)
|
|
283
|
+
], RowChangeRowResponse.prototype, "hash", void 0);
|
|
284
|
+
__decorate([
|
|
285
|
+
(0, swagger_1.ApiProperty)(),
|
|
286
|
+
__metadata("design:type", String)
|
|
287
|
+
], RowChangeRowResponse.prototype, "schemaHash", void 0);
|
|
288
|
+
__decorate([
|
|
289
|
+
(0, swagger_1.ApiProperty)(),
|
|
290
|
+
__metadata("design:type", Boolean)
|
|
291
|
+
], RowChangeRowResponse.prototype, "readonly", void 0);
|
|
292
|
+
__decorate([
|
|
293
|
+
(0, swagger_1.ApiProperty)(),
|
|
294
|
+
__metadata("design:type", Object)
|
|
295
|
+
], RowChangeRowResponse.prototype, "meta", void 0);
|
|
296
|
+
__decorate([
|
|
297
|
+
(0, swagger_1.ApiProperty)({ type: Date }),
|
|
298
|
+
__metadata("design:type", Date)
|
|
299
|
+
], RowChangeRowResponse.prototype, "createdAt", void 0);
|
|
300
|
+
__decorate([
|
|
301
|
+
(0, swagger_1.ApiProperty)({ type: Date }),
|
|
302
|
+
__metadata("design:type", Date)
|
|
303
|
+
], RowChangeRowResponse.prototype, "updatedAt", void 0);
|
|
304
|
+
__decorate([
|
|
305
|
+
(0, swagger_1.ApiProperty)({ type: Date }),
|
|
306
|
+
__metadata("design:type", Date)
|
|
307
|
+
], RowChangeRowResponse.prototype, "publishedAt", void 0);
|
|
308
|
+
class RowChangeTableResponse {
|
|
309
|
+
}
|
|
310
|
+
exports.RowChangeTableResponse = RowChangeTableResponse;
|
|
311
|
+
__decorate([
|
|
312
|
+
(0, swagger_1.ApiProperty)(),
|
|
313
|
+
__metadata("design:type", String)
|
|
314
|
+
], RowChangeTableResponse.prototype, "id", void 0);
|
|
315
|
+
__decorate([
|
|
316
|
+
(0, swagger_1.ApiProperty)(),
|
|
317
|
+
__metadata("design:type", String)
|
|
318
|
+
], RowChangeTableResponse.prototype, "createdId", void 0);
|
|
319
|
+
__decorate([
|
|
320
|
+
(0, swagger_1.ApiProperty)(),
|
|
321
|
+
__metadata("design:type", String)
|
|
322
|
+
], RowChangeTableResponse.prototype, "versionId", void 0);
|
|
323
|
+
__decorate([
|
|
324
|
+
(0, swagger_1.ApiProperty)(),
|
|
325
|
+
__metadata("design:type", Boolean)
|
|
326
|
+
], RowChangeTableResponse.prototype, "readonly", void 0);
|
|
327
|
+
__decorate([
|
|
328
|
+
(0, swagger_1.ApiProperty)(),
|
|
329
|
+
__metadata("design:type", Boolean)
|
|
330
|
+
], RowChangeTableResponse.prototype, "system", void 0);
|
|
331
|
+
__decorate([
|
|
332
|
+
(0, swagger_1.ApiProperty)({ type: Date }),
|
|
333
|
+
__metadata("design:type", Date)
|
|
334
|
+
], RowChangeTableResponse.prototype, "createdAt", void 0);
|
|
335
|
+
__decorate([
|
|
336
|
+
(0, swagger_1.ApiProperty)({ type: Date }),
|
|
337
|
+
__metadata("design:type", Date)
|
|
338
|
+
], RowChangeTableResponse.prototype, "updatedAt", void 0);
|
|
339
|
+
class RowChangeResponse {
|
|
340
|
+
}
|
|
341
|
+
exports.RowChangeResponse = RowChangeResponse;
|
|
342
|
+
__decorate([
|
|
343
|
+
(0, swagger_1.ApiProperty)(),
|
|
344
|
+
__metadata("design:type", String)
|
|
345
|
+
], RowChangeResponse.prototype, "changeType", void 0);
|
|
346
|
+
__decorate([
|
|
347
|
+
(0, swagger_1.ApiProperty)({ nullable: true, required: false, type: RowChangeRowResponse }),
|
|
348
|
+
__metadata("design:type", RowChangeRowResponse)
|
|
349
|
+
], RowChangeResponse.prototype, "row", void 0);
|
|
350
|
+
__decorate([
|
|
351
|
+
(0, swagger_1.ApiProperty)({ nullable: true, required: false, type: RowChangeRowResponse }),
|
|
352
|
+
__metadata("design:type", RowChangeRowResponse)
|
|
353
|
+
], RowChangeResponse.prototype, "fromRow", void 0);
|
|
354
|
+
__decorate([
|
|
355
|
+
(0, swagger_1.ApiProperty)({
|
|
356
|
+
nullable: true,
|
|
357
|
+
required: false,
|
|
358
|
+
type: RowChangeTableResponse,
|
|
359
|
+
}),
|
|
360
|
+
__metadata("design:type", RowChangeTableResponse)
|
|
361
|
+
], RowChangeResponse.prototype, "table", void 0);
|
|
362
|
+
__decorate([
|
|
363
|
+
(0, swagger_1.ApiProperty)({
|
|
364
|
+
nullable: true,
|
|
365
|
+
required: false,
|
|
366
|
+
type: RowChangeTableResponse,
|
|
367
|
+
}),
|
|
368
|
+
__metadata("design:type", RowChangeTableResponse)
|
|
369
|
+
], RowChangeResponse.prototype, "fromTable", void 0);
|
|
370
|
+
__decorate([
|
|
371
|
+
(0, swagger_1.ApiProperty)({ type: [FieldChangeResponse] }),
|
|
372
|
+
__metadata("design:type", Array)
|
|
373
|
+
], RowChangeResponse.prototype, "fieldChanges", void 0);
|
|
374
|
+
class RowChangesConnection extends (0, paginated_model_1.Paginated)(RowChangeResponse, 'RowChangeResponse') {
|
|
375
|
+
}
|
|
376
|
+
exports.RowChangesConnection = RowChangesConnection;
|
|
377
|
+
//# sourceMappingURL=revision-changes.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"revision-changes.model.js","sourceRoot":"","sources":["../../../../../../src/api/rest-api/revision/model/revision-changes.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,uEAAyE;AAEzE,MAAa,6BAA6B;CAezC;AAfD,sEAeC;AAbC;IADC,IAAA,qBAAW,GAAE;;4DACA;AAGd;IADC,IAAA,qBAAW,GAAE;;4DACA;AAGd;IADC,IAAA,qBAAW,GAAE;;+DACG;AAGjB;IADC,IAAA,qBAAW,GAAE;;8DACE;AAGhB;IADC,IAAA,qBAAW,GAAE;;8DACE;AAGlB,MAAa,uBAAuB;CAenC;AAfD,0DAeC;AAbC;IADC,IAAA,qBAAW,GAAE;;2DACK;AAGnB;IADC,IAAA,qBAAW,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;iEACd;AAGhC;IADC,IAAA,qBAAW,GAAE;;6DACO;AAGrB;IADC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,6BAA6B,EAAE,CAAC;8BACtC,6BAA6B;8DAAC;AAG7C;IADC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,6BAA6B,EAAE,CAAC;8BACxC,6BAA6B;4DAAC;AAG7C,MAAa,kBAAkB;CAY9B;AAZD,gDAYC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AA,qBAAW,EAAC;QACX,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,KAAK;QACf,IAAI,EAAE,sBAAsB;KAC7B,CAAC;8BACU,sBAAsB;oDAAC;AAGnC;IADC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,CAAC,mBAAmB,CAAC,EAAE,CAAC;;uDACT;AAGtC,MAAa,oBAAqB,SAAQ,IAAA,2BAAS,EACjD,iBAAiB,EACjB,mBAAmB,CACpB;CAAG;AAHJ,oDAGI"}
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
import { BranchApiService } from '../../../features/branch/branch-api.service';
|
|
2
2
|
import { DraftApiService } from '../../../features/draft/draft-api.service';
|
|
3
3
|
import { EndpointApiService } from '../../../features/endpoint/queries/endpoint-api.service';
|
|
4
|
+
import { RevisionChangesApiService } from '../../../features/revision-changes/revision-changes-api.service';
|
|
4
5
|
import { RevisionsApiService } from '../../../features/revision/revisions-api.service';
|
|
5
6
|
import { Migration } from '@revisium/schema-toolkit/types';
|
|
6
7
|
import { CreateBranchByRevisionDto } from '../../../api/rest-api/branch/dto';
|
|
7
8
|
import { BranchModel } from '../../../api/rest-api/branch/model';
|
|
8
9
|
import { EndpointModel } from '../../../api/rest-api/endpoint/model';
|
|
9
|
-
import { CreateTableDto, GetRevisionTablesDto } from '../../../api/rest-api/revision/dto';
|
|
10
|
+
import { CreateTableDto, GetRevisionChangesDto, GetRevisionTablesDto, GetRowChangesDto, GetTableChangesDto } from '../../../api/rest-api/revision/dto';
|
|
10
11
|
import { CreateEndpointDto } from '../../../api/rest-api/revision/dto/create-endpoint.dto';
|
|
11
|
-
import { CreateTableResponse, MigrationDto, RevisionModel } from '../../../api/rest-api/revision/model';
|
|
12
|
+
import { CreateTableResponse, MigrationDto, RevisionChangesResponse, RevisionModel } from '../../../api/rest-api/revision/model';
|
|
12
13
|
export declare class RevisionByIdController {
|
|
13
14
|
private readonly revisionApi;
|
|
15
|
+
private readonly revisionChangesApi;
|
|
14
16
|
private readonly draftApi;
|
|
15
17
|
private readonly branchApi;
|
|
16
18
|
private readonly endpointApi;
|
|
17
|
-
constructor(revisionApi: RevisionsApiService, draftApi: DraftApiService, branchApi: BranchApiService, endpointApi: EndpointApiService);
|
|
19
|
+
constructor(revisionApi: RevisionsApiService, revisionChangesApi: RevisionChangesApiService, draftApi: DraftApiService, branchApi: BranchApiService, endpointApi: EndpointApiService);
|
|
18
20
|
revisionById(revisionId: string): Promise<RevisionModel>;
|
|
19
21
|
parent(revisionId: string): Promise<RevisionModel | null>;
|
|
20
22
|
child(revisionId: string): Promise<RevisionModel | null>;
|
|
@@ -22,6 +24,11 @@ export declare class RevisionByIdController {
|
|
|
22
24
|
tables(revisionId: string, data: GetRevisionTablesDto): Promise<import("../../../features/share/pagination.interface").IPaginatedType<import("../../../api/rest-api/table/model/table.model").TableModel>>;
|
|
23
25
|
getEndpoints(revisionId: string): Promise<EndpointModel[]>;
|
|
24
26
|
getMigrations(revisionId: string): Promise<Migration[]>;
|
|
27
|
+
getRevisionChanges(revisionId: string, data: GetRevisionChangesDto): Promise<RevisionChangesResponse>;
|
|
28
|
+
getTableChanges(revisionId: string, data: GetTableChangesDto): Promise<import("../../../features/revision-changes/queries/impl").GetTableChangesQueryReturnType>;
|
|
29
|
+
getRowChanges(revisionId: string, data: GetRowChangesDto): Promise<import("../../../features/revision-changes/queries/impl").GetRowChangesQueryReturnType>;
|
|
30
|
+
private buildTableChangesFilters;
|
|
31
|
+
private buildRowChangesFilters;
|
|
25
32
|
createBranch(revisionId: string, data: CreateBranchByRevisionDto): Promise<BranchModel>;
|
|
26
33
|
createEndpoint(revisionId: string, data: CreateEndpointDto): Promise<EndpointModel>;
|
|
27
34
|
createTable(revisionId: string, data: CreateTableDto): Promise<CreateTableResponse>;
|