@sync-in/server 1.11.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +37 -0
- package/LICENSE +1 -1
- package/README.md +3 -11
- package/environment/environment.dist.min.yaml +1 -1
- package/environment/environment.dist.yaml +173 -28
- package/package.json +17 -16
- package/server/app.bootstrap.js +1 -5
- package/server/app.bootstrap.js.map +1 -1
- package/server/app.constants.js +1 -5
- package/server/app.constants.js.map +1 -1
- package/server/app.e2e-spec.js +1 -5
- package/server/app.e2e-spec.js.map +1 -1
- package/server/app.functions.js +1 -5
- package/server/app.functions.js.map +1 -1
- package/server/app.module.js +1 -5
- package/server/app.module.js.map +1 -1
- package/server/app.service.js +1 -5
- package/server/app.service.js.map +1 -1
- package/server/app.service.spec.js +2 -6
- package/server/app.service.spec.js.map +1 -1
- package/server/applications/admin/admin.module.js +1 -5
- package/server/applications/admin/admin.module.js.map +1 -1
- package/server/applications/admin/constants/routes.js +1 -5
- package/server/applications/admin/constants/routes.js.map +1 -1
- package/server/applications/admin/interfaces/check-update.interfaces.js +1 -5
- package/server/applications/admin/interfaces/check-update.interfaces.js.map +1 -1
- package/server/applications/admin/services/admin-scheduler.service.js +1 -5
- package/server/applications/admin/services/admin-scheduler.service.js.map +1 -1
- package/server/applications/admin/services/admin.service.js +13 -8
- package/server/applications/admin/services/admin.service.js.map +1 -1
- package/server/applications/admin/services/admin.service.spec.js +1 -5
- package/server/applications/admin/services/admin.service.spec.js.map +1 -1
- package/server/applications/admin/utils/check-update.js +1 -5
- package/server/applications/admin/utils/check-update.js.map +1 -1
- package/server/applications/applications.config.js +1 -5
- package/server/applications/applications.config.js.map +1 -1
- package/server/applications/applications.constants.js +5 -5
- package/server/applications/applications.constants.js.map +1 -1
- package/server/applications/applications.module.js +1 -5
- package/server/applications/applications.module.js.map +1 -1
- package/server/applications/comments/comments.controller.js +1 -5
- package/server/applications/comments/comments.controller.js.map +1 -1
- package/server/applications/comments/comments.controller.spec.js +1 -5
- package/server/applications/comments/comments.controller.spec.js.map +1 -1
- package/server/applications/comments/comments.module.js +1 -5
- package/server/applications/comments/comments.module.js.map +1 -1
- package/server/applications/comments/constants/routes.js +1 -5
- package/server/applications/comments/constants/routes.js.map +1 -1
- package/server/applications/comments/dto/comment.dto.js +1 -5
- package/server/applications/comments/dto/comment.dto.js.map +1 -1
- package/server/applications/comments/interfaces/comment-recent.interface.js +1 -5
- package/server/applications/comments/interfaces/comment-recent.interface.js.map +1 -1
- package/server/applications/comments/schemas/comment.interface.js +1 -5
- package/server/applications/comments/schemas/comment.interface.js.map +1 -1
- package/server/applications/comments/schemas/comments.schema.js +1 -5
- package/server/applications/comments/schemas/comments.schema.js.map +1 -1
- package/server/applications/comments/services/comments-manager.service.js +9 -7
- package/server/applications/comments/services/comments-manager.service.js.map +1 -1
- package/server/applications/comments/services/comments-manager.service.spec.js +10 -8
- package/server/applications/comments/services/comments-manager.service.spec.js.map +1 -1
- package/server/applications/comments/services/comments-queries.service.js +1 -5
- package/server/applications/comments/services/comments-queries.service.js.map +1 -1
- package/server/applications/files/adapters/files-indexer-mysql.service.js +29 -12
- package/server/applications/files/adapters/files-indexer-mysql.service.js.map +1 -1
- package/server/applications/files/adapters/files-indexer-mysql.service.spec.js +1 -5
- package/server/applications/files/adapters/files-indexer-mysql.service.spec.js.map +1 -1
- package/server/applications/files/constants/cache.js +1 -5
- package/server/applications/files/constants/cache.js.map +1 -1
- package/server/applications/files/constants/compress.js +1 -5
- package/server/applications/files/constants/compress.js.map +1 -1
- package/server/applications/files/constants/files.js +1 -5
- package/server/applications/files/constants/files.js.map +1 -1
- package/server/applications/files/constants/indexing.js +1 -5
- package/server/applications/files/constants/indexing.js.map +1 -1
- package/server/applications/files/constants/operations.js +1 -5
- package/server/applications/files/constants/operations.js.map +1 -1
- package/server/applications/files/constants/routes.js +1 -5
- package/server/applications/files/constants/routes.js.map +1 -1
- package/server/applications/files/constants/samples.js +1 -5
- package/server/applications/files/constants/samples.js.map +1 -1
- package/server/applications/files/dto/file-operations.dto.js +1 -5
- package/server/applications/files/dto/file-operations.dto.js.map +1 -1
- package/server/applications/files/events/file-task-event.js +1 -5
- package/server/applications/files/events/file-task-event.js.map +1 -1
- package/server/applications/files/files-tasks.controller.js +1 -5
- package/server/applications/files/files-tasks.controller.js.map +1 -1
- package/server/applications/files/files-tasks.controller.spec.js +1 -5
- package/server/applications/files/files-tasks.controller.spec.js.map +1 -1
- package/server/applications/files/files.config.js +1 -5
- package/server/applications/files/files.config.js.map +1 -1
- package/server/applications/files/files.controller.js +1 -5
- package/server/applications/files/files.controller.js.map +1 -1
- package/server/applications/files/files.controller.spec.js +1 -5
- package/server/applications/files/files.controller.spec.js.map +1 -1
- package/server/applications/files/files.module.js +1 -5
- package/server/applications/files/files.module.js.map +1 -1
- package/server/applications/files/interfaces/file-db-props.interface.js +1 -5
- package/server/applications/files/interfaces/file-db-props.interface.js.map +1 -1
- package/server/applications/files/interfaces/file-lock.interface.js +1 -5
- package/server/applications/files/interfaces/file-lock.interface.js.map +1 -1
- package/server/applications/files/interfaces/file-parse-index.js +1 -5
- package/server/applications/files/interfaces/file-parse-index.js.map +1 -1
- package/server/applications/files/interfaces/file-props.interface.js +1 -5
- package/server/applications/files/interfaces/file-props.interface.js.map +1 -1
- package/server/applications/files/interfaces/file-recent-location.interface.js +1 -5
- package/server/applications/files/interfaces/file-recent-location.interface.js.map +1 -1
- package/server/applications/files/interfaces/file-space.interface.js +1 -5
- package/server/applications/files/interfaces/file-space.interface.js.map +1 -1
- package/server/applications/files/interfaces/file-tree.interface.js +1 -5
- package/server/applications/files/interfaces/file-tree.interface.js.map +1 -1
- package/server/applications/files/models/file-error.js +1 -5
- package/server/applications/files/models/file-error.js.map +1 -1
- package/server/applications/files/models/file-lock-error.js +1 -5
- package/server/applications/files/models/file-lock-error.js.map +1 -1
- package/server/applications/files/models/file-task.js +1 -5
- package/server/applications/files/models/file-task.js.map +1 -1
- package/server/applications/files/models/files-indexer.js +1 -5
- package/server/applications/files/models/files-indexer.js.map +1 -1
- package/server/applications/files/modules/collabora-online/collabora-online-environment.decorator.js +1 -5
- package/server/applications/files/modules/collabora-online/collabora-online-environment.decorator.js.map +1 -1
- package/server/applications/files/modules/collabora-online/collabora-online-manager.service.js +21 -10
- package/server/applications/files/modules/collabora-online/collabora-online-manager.service.js.map +1 -1
- package/server/applications/files/modules/collabora-online/collabora-online-manager.service.spec.js +1 -5
- package/server/applications/files/modules/collabora-online/collabora-online-manager.service.spec.js.map +1 -1
- package/server/applications/files/modules/collabora-online/collabora-online.config.js +1 -5
- package/server/applications/files/modules/collabora-online/collabora-online.config.js.map +1 -1
- package/server/applications/files/modules/collabora-online/collabora-online.constants.js +1 -5
- package/server/applications/files/modules/collabora-online/collabora-online.constants.js.map +1 -1
- package/server/applications/files/modules/collabora-online/collabora-online.controller.js +1 -5
- package/server/applications/files/modules/collabora-online/collabora-online.controller.js.map +1 -1
- package/server/applications/files/modules/collabora-online/collabora-online.controller.spec.js +1 -5
- package/server/applications/files/modules/collabora-online/collabora-online.controller.spec.js.map +1 -1
- package/server/applications/files/modules/collabora-online/collabora-online.dtos.js +1 -5
- package/server/applications/files/modules/collabora-online/collabora-online.dtos.js.map +1 -1
- package/server/applications/files/modules/collabora-online/collabora-online.guard.js +1 -5
- package/server/applications/files/modules/collabora-online/collabora-online.guard.js.map +1 -1
- package/server/applications/files/modules/collabora-online/collabora-online.guard.spec.js +1 -5
- package/server/applications/files/modules/collabora-online/collabora-online.guard.spec.js.map +1 -1
- package/server/applications/files/modules/collabora-online/collabora-online.interface.js +1 -5
- package/server/applications/files/modules/collabora-online/collabora-online.interface.js.map +1 -1
- package/server/applications/files/modules/collabora-online/collabora-online.module.js +1 -5
- package/server/applications/files/modules/collabora-online/collabora-online.module.js.map +1 -1
- package/server/applications/files/modules/collabora-online/collabora-online.routes.js +1 -5
- package/server/applications/files/modules/collabora-online/collabora-online.routes.js.map +1 -1
- package/server/applications/files/modules/collabora-online/collabora-online.strategy.js +1 -5
- package/server/applications/files/modules/collabora-online/collabora-online.strategy.js.map +1 -1
- package/server/applications/files/modules/collabora-online/collabora-online.utils.js +1 -5
- package/server/applications/files/modules/collabora-online/collabora-online.utils.js.map +1 -1
- package/server/applications/files/modules/file-editor-providers.interface.js +6 -0
- package/server/applications/files/modules/file-editor-providers.interface.js.map +1 -0
- package/server/applications/files/modules/only-office/only-office-environment.decorator.js +1 -5
- package/server/applications/files/modules/only-office/only-office-environment.decorator.js.map +1 -1
- package/server/applications/files/modules/only-office/only-office-manager.service.js +57 -19
- package/server/applications/files/modules/only-office/only-office-manager.service.js.map +1 -1
- package/server/applications/files/modules/only-office/only-office-manager.service.spec.js +1 -5
- package/server/applications/files/modules/only-office/only-office-manager.service.spec.js.map +1 -1
- package/server/applications/files/modules/only-office/only-office.config.js +1 -5
- package/server/applications/files/modules/only-office/only-office.config.js.map +1 -1
- package/server/applications/files/modules/only-office/only-office.constants.js +1 -5
- package/server/applications/files/modules/only-office/only-office.constants.js.map +1 -1
- package/server/applications/files/modules/only-office/only-office.controller.js +1 -5
- package/server/applications/files/modules/only-office/only-office.controller.js.map +1 -1
- package/server/applications/files/modules/only-office/only-office.controller.spec.js +1 -5
- package/server/applications/files/modules/only-office/only-office.controller.spec.js.map +1 -1
- package/server/applications/files/modules/only-office/only-office.dtos.js +1 -5
- package/server/applications/files/modules/only-office/only-office.dtos.js.map +1 -1
- package/server/applications/files/modules/only-office/only-office.guard.js +1 -5
- package/server/applications/files/modules/only-office/only-office.guard.js.map +1 -1
- package/server/applications/files/modules/only-office/only-office.guard.spec.js +1 -5
- package/server/applications/files/modules/only-office/only-office.guard.spec.js.map +1 -1
- package/server/applications/files/modules/only-office/only-office.interface.js +1 -5
- package/server/applications/files/modules/only-office/only-office.interface.js.map +1 -1
- package/server/applications/files/modules/only-office/only-office.module.js +1 -5
- package/server/applications/files/modules/only-office/only-office.module.js.map +1 -1
- package/server/applications/files/modules/only-office/only-office.routes.js +1 -5
- package/server/applications/files/modules/only-office/only-office.routes.js.map +1 -1
- package/server/applications/files/modules/only-office/only-office.strategy.js +1 -5
- package/server/applications/files/modules/only-office/only-office.strategy.js.map +1 -1
- package/server/applications/files/schemas/file-content.interface.js +1 -5
- package/server/applications/files/schemas/file-content.interface.js.map +1 -1
- package/server/applications/files/schemas/file-recent.interface.js +1 -5
- package/server/applications/files/schemas/file-recent.interface.js.map +1 -1
- package/server/applications/files/schemas/file.interface.js +1 -5
- package/server/applications/files/schemas/file.interface.js.map +1 -1
- package/server/applications/files/schemas/files-content.schema.js +1 -5
- package/server/applications/files/schemas/files-content.schema.js.map +1 -1
- package/server/applications/files/schemas/files-recents.schema.js +1 -5
- package/server/applications/files/schemas/files-recents.schema.js.map +1 -1
- package/server/applications/files/schemas/files.schema.js +1 -5
- package/server/applications/files/schemas/files.schema.js.map +1 -1
- package/server/applications/files/services/files-content-manager.service.js +45 -16
- package/server/applications/files/services/files-content-manager.service.js.map +1 -1
- package/server/applications/files/services/files-lock-manager.service.js +53 -18
- package/server/applications/files/services/files-lock-manager.service.js.map +1 -1
- package/server/applications/files/services/files-lock-manager.service.spec.js +1 -5
- package/server/applications/files/services/files-lock-manager.service.spec.js.map +1 -1
- package/server/applications/files/services/files-manager.service.js +77 -24
- package/server/applications/files/services/files-manager.service.js.map +1 -1
- package/server/applications/files/services/files-manager.service.spec.js +1 -5
- package/server/applications/files/services/files-manager.service.spec.js.map +1 -1
- package/server/applications/files/services/files-methods.service.js +5 -6
- package/server/applications/files/services/files-methods.service.js.map +1 -1
- package/server/applications/files/services/files-methods.service.spec.js +1 -5
- package/server/applications/files/services/files-methods.service.spec.js.map +1 -1
- package/server/applications/files/services/files-parser.service.js +13 -8
- package/server/applications/files/services/files-parser.service.js.map +1 -1
- package/server/applications/files/services/files-parser.service.spec.js +1 -5
- package/server/applications/files/services/files-parser.service.spec.js.map +1 -1
- package/server/applications/files/services/files-queries.service.js +29 -12
- package/server/applications/files/services/files-queries.service.js.map +1 -1
- package/server/applications/files/services/files-recents.service.js +1 -5
- package/server/applications/files/services/files-recents.service.js.map +1 -1
- package/server/applications/files/services/files-recents.service.spec.js +1 -5
- package/server/applications/files/services/files-recents.service.spec.js.map +1 -1
- package/server/applications/files/services/files-scheduler.service.js +77 -24
- package/server/applications/files/services/files-scheduler.service.js.map +1 -1
- package/server/applications/files/services/files-search-manager.service.js +9 -7
- package/server/applications/files/services/files-search-manager.service.js.map +1 -1
- package/server/applications/files/services/files-search-manager.service.spec.js +1 -5
- package/server/applications/files/services/files-search-manager.service.spec.js.map +1 -1
- package/server/applications/files/services/files-tasks-manager.service.js +77 -24
- package/server/applications/files/services/files-tasks-manager.service.js.map +1 -1
- package/server/applications/files/services/files-tasks-manager.service.spec.js +1 -5
- package/server/applications/files/services/files-tasks-manager.service.spec.js.map +1 -1
- package/server/applications/files/utils/doc-textify/adapters/excel.js +1 -5
- package/server/applications/files/utils/doc-textify/adapters/excel.js.map +1 -1
- package/server/applications/files/utils/doc-textify/adapters/html.js +1 -5
- package/server/applications/files/utils/doc-textify/adapters/html.js.map +1 -1
- package/server/applications/files/utils/doc-textify/adapters/open-office.js +1 -5
- package/server/applications/files/utils/doc-textify/adapters/open-office.js.map +1 -1
- package/server/applications/files/utils/doc-textify/adapters/pdf.js +1 -5
- package/server/applications/files/utils/doc-textify/adapters/pdf.js.map +1 -1
- package/server/applications/files/utils/doc-textify/adapters/power-point.js +1 -5
- package/server/applications/files/utils/doc-textify/adapters/power-point.js.map +1 -1
- package/server/applications/files/utils/doc-textify/adapters/text.js +1 -5
- package/server/applications/files/utils/doc-textify/adapters/text.js.map +1 -1
- package/server/applications/files/utils/doc-textify/adapters/word.js +1 -5
- package/server/applications/files/utils/doc-textify/adapters/word.js.map +1 -1
- package/server/applications/files/utils/doc-textify/doc-textify.js +1 -5
- package/server/applications/files/utils/doc-textify/doc-textify.js.map +1 -1
- package/server/applications/files/utils/doc-textify/interfaces/doc-textify.interfaces.js +1 -5
- package/server/applications/files/utils/doc-textify/interfaces/doc-textify.interfaces.js.map +1 -1
- package/server/applications/files/utils/doc-textify/utils/clean.js +1 -5
- package/server/applications/files/utils/doc-textify/utils/clean.js.map +1 -1
- package/server/applications/files/utils/files-search.js +1 -5
- package/server/applications/files/utils/files-search.js.map +1 -1
- package/server/applications/files/utils/files-tree.js +1 -5
- package/server/applications/files/utils/files-tree.js.map +1 -1
- package/server/applications/files/utils/files.js +1 -5
- package/server/applications/files/utils/files.js.map +1 -1
- package/server/applications/files/utils/send-file.js +1 -5
- package/server/applications/files/utils/send-file.js.map +1 -1
- package/server/applications/files/utils/unzip-file.js +1 -5
- package/server/applications/files/utils/unzip-file.js.map +1 -1
- package/server/applications/files/utils/url-file.js +1 -5
- package/server/applications/files/utils/url-file.js.map +1 -1
- package/server/applications/links/constants/cache.js +1 -5
- package/server/applications/links/constants/cache.js.map +1 -1
- package/server/applications/links/constants/links.js +1 -5
- package/server/applications/links/constants/links.js.map +1 -1
- package/server/applications/links/constants/routes.js +1 -5
- package/server/applications/links/constants/routes.js.map +1 -1
- package/server/applications/links/dto/create-or-update-link.dto.js +1 -5
- package/server/applications/links/dto/create-or-update-link.dto.js.map +1 -1
- package/server/applications/links/interfaces/link-guest.interface.js +1 -5
- package/server/applications/links/interfaces/link-guest.interface.js.map +1 -1
- package/server/applications/links/interfaces/link-space.interface.js +1 -5
- package/server/applications/links/interfaces/link-space.interface.js.map +1 -1
- package/server/applications/links/links.controller.js +1 -5
- package/server/applications/links/links.controller.js.map +1 -1
- package/server/applications/links/links.controller.spec.js +1 -5
- package/server/applications/links/links.controller.spec.js.map +1 -1
- package/server/applications/links/schemas/link.interface.js +1 -5
- package/server/applications/links/schemas/link.interface.js.map +1 -1
- package/server/applications/links/schemas/links.schema.js +1 -5
- package/server/applications/links/schemas/links.schema.js.map +1 -1
- package/server/applications/links/services/links-manager.service.js +55 -20
- package/server/applications/links/services/links-manager.service.js.map +1 -1
- package/server/applications/links/services/links-manager.service.spec.js +3 -7
- package/server/applications/links/services/links-manager.service.spec.js.map +1 -1
- package/server/applications/links/services/links-queries.service.js +1 -5
- package/server/applications/links/services/links-queries.service.js.map +1 -1
- package/server/applications/notifications/constants/notifications.js +1 -5
- package/server/applications/notifications/constants/notifications.js.map +1 -1
- package/server/applications/notifications/constants/routes.js +1 -5
- package/server/applications/notifications/constants/routes.js.map +1 -1
- package/server/applications/notifications/constants/websocket.js +1 -5
- package/server/applications/notifications/constants/websocket.js.map +1 -1
- package/server/applications/notifications/i18n/de.js +1 -9
- package/server/applications/notifications/i18n/de.js.map +1 -1
- package/server/applications/notifications/i18n/es.js +1 -5
- package/server/applications/notifications/i18n/es.js.map +1 -1
- package/server/applications/notifications/i18n/fr.js +1 -5
- package/server/applications/notifications/i18n/fr.js.map +1 -1
- package/server/applications/notifications/i18n/hi.js +1 -5
- package/server/applications/notifications/i18n/hi.js.map +1 -1
- package/server/applications/notifications/i18n/index.js +1 -5
- package/server/applications/notifications/i18n/index.js.map +1 -1
- package/server/applications/notifications/i18n/it.js +1 -5
- package/server/applications/notifications/i18n/it.js.map +1 -1
- package/server/applications/notifications/i18n/ja.js +1 -5
- package/server/applications/notifications/i18n/ja.js.map +1 -1
- package/server/applications/notifications/i18n/ko.js +1 -5
- package/server/applications/notifications/i18n/ko.js.map +1 -1
- package/server/applications/notifications/i18n/pl.js +1 -5
- package/server/applications/notifications/i18n/pl.js.map +1 -1
- package/server/applications/notifications/i18n/pt.js +1 -5
- package/server/applications/notifications/i18n/pt.js.map +1 -1
- package/server/applications/notifications/i18n/pt_br.js +1 -5
- package/server/applications/notifications/i18n/pt_br.js.map +1 -1
- package/server/applications/notifications/i18n/ru.js +1 -5
- package/server/applications/notifications/i18n/ru.js.map +1 -1
- package/server/applications/notifications/i18n/tr.js +1 -5
- package/server/applications/notifications/i18n/tr.js.map +1 -1
- package/server/applications/notifications/i18n/zh.js +1 -5
- package/server/applications/notifications/i18n/zh.js.map +1 -1
- package/server/applications/notifications/interfaces/notification-properties.interface.js +1 -5
- package/server/applications/notifications/interfaces/notification-properties.interface.js.map +1 -1
- package/server/applications/notifications/interfaces/user-mail-notification.interface.js +1 -5
- package/server/applications/notifications/interfaces/user-mail-notification.interface.js.map +1 -1
- package/server/applications/notifications/mails/models.js +1 -5
- package/server/applications/notifications/mails/models.js.map +1 -1
- package/server/applications/notifications/mails/templates.js +1 -5
- package/server/applications/notifications/mails/templates.js.map +1 -1
- package/server/applications/notifications/mails/urls.js +1 -5
- package/server/applications/notifications/mails/urls.js.map +1 -1
- package/server/applications/notifications/notifications.controller.js +1 -5
- package/server/applications/notifications/notifications.controller.js.map +1 -1
- package/server/applications/notifications/notifications.controller.spec.js +1 -5
- package/server/applications/notifications/notifications.controller.spec.js.map +1 -1
- package/server/applications/notifications/notifications.gateway.js +1 -5
- package/server/applications/notifications/notifications.gateway.js.map +1 -1
- package/server/applications/notifications/notifications.module.js +1 -5
- package/server/applications/notifications/notifications.module.js.map +1 -1
- package/server/applications/notifications/schemas/notification.interface.js +1 -5
- package/server/applications/notifications/schemas/notification.interface.js.map +1 -1
- package/server/applications/notifications/schemas/notifications.schema.js +1 -5
- package/server/applications/notifications/schemas/notifications.schema.js.map +1 -1
- package/server/applications/notifications/services/notifications-manager.service.js +25 -11
- package/server/applications/notifications/services/notifications-manager.service.js.map +1 -1
- package/server/applications/notifications/services/notifications-manager.service.spec.js +20 -11
- package/server/applications/notifications/services/notifications-manager.service.spec.js.map +1 -1
- package/server/applications/notifications/services/notifications-queries.service.js +1 -5
- package/server/applications/notifications/services/notifications-queries.service.js.map +1 -1
- package/server/applications/shares/constants/routes.js +1 -5
- package/server/applications/shares/constants/routes.js.map +1 -1
- package/server/applications/shares/constants/shares.js +1 -5
- package/server/applications/shares/constants/shares.js.map +1 -1
- package/server/applications/shares/dto/create-or-update-share.dto.js +1 -5
- package/server/applications/shares/dto/create-or-update-share.dto.js.map +1 -1
- package/server/applications/shares/interfaces/share-child.interface.js +1 -5
- package/server/applications/shares/interfaces/share-child.interface.js.map +1 -1
- package/server/applications/shares/interfaces/share-env.interface.js +1 -5
- package/server/applications/shares/interfaces/share-env.interface.js.map +1 -1
- package/server/applications/shares/interfaces/share-file.interface.js +1 -5
- package/server/applications/shares/interfaces/share-file.interface.js.map +1 -1
- package/server/applications/shares/interfaces/share-link.interface.js +1 -5
- package/server/applications/shares/interfaces/share-link.interface.js.map +1 -1
- package/server/applications/shares/interfaces/share-props.interface.js +1 -5
- package/server/applications/shares/interfaces/share-props.interface.js.map +1 -1
- package/server/applications/shares/models/share-child.model.js +1 -5
- package/server/applications/shares/models/share-child.model.js.map +1 -1
- package/server/applications/shares/schemas/share-members.interface.js +1 -5
- package/server/applications/shares/schemas/share-members.interface.js.map +1 -1
- package/server/applications/shares/schemas/share.interface.js +1 -5
- package/server/applications/shares/schemas/share.interface.js.map +1 -1
- package/server/applications/shares/schemas/shares-members.schema.js +1 -5
- package/server/applications/shares/schemas/shares-members.schema.js.map +1 -1
- package/server/applications/shares/schemas/shares.schema.js +1 -5
- package/server/applications/shares/schemas/shares.schema.js.map +1 -1
- package/server/applications/shares/services/shares-manager.service.js +214 -68
- package/server/applications/shares/services/shares-manager.service.js.map +1 -1
- package/server/applications/shares/services/shares-manager.service.spec.js +1 -5
- package/server/applications/shares/services/shares-manager.service.spec.js.map +1 -1
- package/server/applications/shares/services/shares-queries.service.js +49 -17
- package/server/applications/shares/services/shares-queries.service.js.map +1 -1
- package/server/applications/shares/shares.controller.js +1 -5
- package/server/applications/shares/shares.controller.js.map +1 -1
- package/server/applications/shares/shares.controller.spec.js +1 -5
- package/server/applications/shares/shares.controller.spec.js.map +1 -1
- package/server/applications/shares/shares.module.js +1 -5
- package/server/applications/shares/shares.module.js.map +1 -1
- package/server/applications/spaces/constants/cache.js +1 -5
- package/server/applications/spaces/constants/cache.js.map +1 -1
- package/server/applications/spaces/constants/routes.js +1 -5
- package/server/applications/spaces/constants/routes.js.map +1 -1
- package/server/applications/spaces/constants/spaces.js +1 -5
- package/server/applications/spaces/constants/spaces.js.map +1 -1
- package/server/applications/spaces/decorators/space-override-permission.decorator.js +1 -5
- package/server/applications/spaces/decorators/space-override-permission.decorator.js.map +1 -1
- package/server/applications/spaces/decorators/space-skip-guard.decorator.js +1 -5
- package/server/applications/spaces/decorators/space-skip-guard.decorator.js.map +1 -1
- package/server/applications/spaces/decorators/space-skip-permissions.decorator.js +1 -5
- package/server/applications/spaces/decorators/space-skip-permissions.decorator.js.map +1 -1
- package/server/applications/spaces/decorators/space.decorator.js +1 -5
- package/server/applications/spaces/decorators/space.decorator.js.map +1 -1
- package/server/applications/spaces/dto/create-or-update-space.dto.js +1 -5
- package/server/applications/spaces/dto/create-or-update-space.dto.js.map +1 -1
- package/server/applications/spaces/dto/delete-space.dto.js +1 -5
- package/server/applications/spaces/dto/delete-space.dto.js.map +1 -1
- package/server/applications/spaces/dto/search-space.dto.js +1 -5
- package/server/applications/spaces/dto/search-space.dto.js.map +1 -1
- package/server/applications/spaces/dto/space-roots.dto.js +1 -5
- package/server/applications/spaces/dto/space-roots.dto.js.map +1 -1
- package/server/applications/spaces/guards/space.guard.js +17 -9
- package/server/applications/spaces/guards/space.guard.js.map +1 -1
- package/server/applications/spaces/guards/space.guard.spec.js +1 -5
- package/server/applications/spaces/guards/space.guard.spec.js.map +1 -1
- package/server/applications/spaces/interfaces/space-diff.interface.js +1 -5
- package/server/applications/spaces/interfaces/space-diff.interface.js.map +1 -1
- package/server/applications/spaces/interfaces/space-files.interface.js +1 -5
- package/server/applications/spaces/interfaces/space-files.interface.js.map +1 -1
- package/server/applications/spaces/interfaces/space-request.interface.js +1 -5
- package/server/applications/spaces/interfaces/space-request.interface.js.map +1 -1
- package/server/applications/spaces/interfaces/space-trash.interface.js +1 -5
- package/server/applications/spaces/interfaces/space-trash.interface.js.map +1 -1
- package/server/applications/spaces/models/space-env.model.js +1 -5
- package/server/applications/spaces/models/space-env.model.js.map +1 -1
- package/server/applications/spaces/models/space-props.model.js +1 -5
- package/server/applications/spaces/models/space-props.model.js.map +1 -1
- package/server/applications/spaces/models/space-root-props.model.js +1 -5
- package/server/applications/spaces/models/space-root-props.model.js.map +1 -1
- package/server/applications/spaces/models/space.model.js +1 -5
- package/server/applications/spaces/models/space.model.js.map +1 -1
- package/server/applications/spaces/schemas/space-members.interface.js +1 -5
- package/server/applications/spaces/schemas/space-members.interface.js.map +1 -1
- package/server/applications/spaces/schemas/space-root.interface.js +1 -5
- package/server/applications/spaces/schemas/space-root.interface.js.map +1 -1
- package/server/applications/spaces/schemas/space.interface.js +1 -5
- package/server/applications/spaces/schemas/space.interface.js.map +1 -1
- package/server/applications/spaces/schemas/spaces-members.schema.js +1 -5
- package/server/applications/spaces/schemas/spaces-members.schema.js.map +1 -1
- package/server/applications/spaces/schemas/spaces-roots.schema.js +1 -5
- package/server/applications/spaces/schemas/spaces-roots.schema.js.map +1 -1
- package/server/applications/spaces/schemas/spaces.schema.js +1 -5
- package/server/applications/spaces/schemas/spaces.schema.js.map +1 -1
- package/server/applications/spaces/services/spaces-browser.service.js +77 -24
- package/server/applications/spaces/services/spaces-browser.service.js.map +1 -1
- package/server/applications/spaces/services/spaces-browser.service.spec.js +1 -5
- package/server/applications/spaces/services/spaces-browser.service.spec.js.map +1 -1
- package/server/applications/spaces/services/spaces-manager.service.js +193 -53
- package/server/applications/spaces/services/spaces-manager.service.js.map +1 -1
- package/server/applications/spaces/services/spaces-manager.service.spec.js +1 -5
- package/server/applications/spaces/services/spaces-manager.service.spec.js.map +1 -1
- package/server/applications/spaces/services/spaces-queries.service.js +65 -21
- package/server/applications/spaces/services/spaces-queries.service.js.map +1 -1
- package/server/applications/spaces/services/spaces-scheduler.service.js +49 -17
- package/server/applications/spaces/services/spaces-scheduler.service.js.map +1 -1
- package/server/applications/spaces/spaces.controller.js +1 -5
- package/server/applications/spaces/spaces.controller.js.map +1 -1
- package/server/applications/spaces/spaces.controller.spec.js +1 -5
- package/server/applications/spaces/spaces.controller.spec.js.map +1 -1
- package/server/applications/spaces/spaces.module.js +1 -5
- package/server/applications/spaces/spaces.module.js.map +1 -1
- package/server/applications/spaces/utils/paths.js +1 -5
- package/server/applications/spaces/utils/paths.js.map +1 -1
- package/server/applications/spaces/utils/permissions.js +1 -5
- package/server/applications/spaces/utils/permissions.js.map +1 -1
- package/server/applications/spaces/utils/routes.js +1 -5
- package/server/applications/spaces/utils/routes.js.map +1 -1
- package/server/applications/sync/constants/auth.js +1 -5
- package/server/applications/sync/constants/auth.js.map +1 -1
- package/server/applications/sync/constants/routes.js +6 -5
- package/server/applications/sync/constants/routes.js.map +1 -1
- package/server/applications/sync/constants/store.js +1 -9
- package/server/applications/sync/constants/store.js.map +1 -1
- package/server/applications/sync/constants/sync.js +2 -6
- package/server/applications/sync/constants/sync.js.map +1 -1
- package/server/applications/sync/decorators/sync-context.decorator.js +1 -5
- package/server/applications/sync/decorators/sync-context.decorator.js.map +1 -1
- package/server/applications/sync/decorators/sync-environment.decorator.js +1 -5
- package/server/applications/sync/decorators/sync-environment.decorator.js.map +1 -1
- package/server/applications/sync/dtos/sync-client-auth.dto.js +12 -8
- package/server/applications/sync/dtos/sync-client-auth.dto.js.map +1 -1
- package/server/applications/sync/dtos/sync-client-info.dto.js +49 -0
- package/server/applications/sync/dtos/sync-client-info.dto.js.map +1 -0
- package/server/applications/sync/dtos/sync-client-registration.dto.js +34 -11
- package/server/applications/sync/dtos/sync-client-registration.dto.js.map +1 -1
- package/server/applications/sync/dtos/sync-operations.dto.js +1 -5
- package/server/applications/sync/dtos/sync-operations.dto.js.map +1 -1
- package/server/applications/sync/dtos/sync-path.dto.js +1 -5
- package/server/applications/sync/dtos/sync-path.dto.js.map +1 -1
- package/server/applications/sync/dtos/sync-upload.dto.js +1 -5
- package/server/applications/sync/dtos/sync-upload.dto.js.map +1 -1
- package/server/applications/sync/interceptors/sync-diff-gzip-body.interceptor.js +1 -5
- package/server/applications/sync/interceptors/sync-diff-gzip-body.interceptor.js.map +1 -1
- package/server/applications/sync/interceptors/sync-diff-gzip-body.interceptor.spec.js +1 -5
- package/server/applications/sync/interceptors/sync-diff-gzip-body.interceptor.spec.js.map +1 -1
- package/server/applications/sync/interfaces/store-manifest.interface.js +1 -5
- package/server/applications/sync/interfaces/store-manifest.interface.js.map +1 -1
- package/server/applications/sync/interfaces/sync-client-auth.interface.js +1 -25
- package/server/applications/sync/interfaces/sync-client-auth.interface.js.map +1 -1
- package/server/applications/sync/interfaces/sync-client-paths.interface.js +1 -5
- package/server/applications/sync/interfaces/sync-client-paths.interface.js.map +1 -1
- package/server/applications/sync/interfaces/sync-client.interface.js +1 -5
- package/server/applications/sync/interfaces/sync-client.interface.js.map +1 -1
- package/server/applications/sync/interfaces/sync-diff.interface.js +1 -5
- package/server/applications/sync/interfaces/sync-diff.interface.js.map +1 -1
- package/server/applications/sync/interfaces/sync-path.interface.js +1 -5
- package/server/applications/sync/interfaces/sync-path.interface.js.map +1 -1
- package/server/applications/sync/schemas/sync-client.interface.js +1 -5
- package/server/applications/sync/schemas/sync-client.interface.js.map +1 -1
- package/server/applications/sync/schemas/sync-clients.schema.js +1 -5
- package/server/applications/sync/schemas/sync-clients.schema.js.map +1 -1
- package/server/applications/sync/schemas/sync-path.interface.js +1 -5
- package/server/applications/sync/schemas/sync-path.interface.js.map +1 -1
- package/server/applications/sync/schemas/sync-paths.schema.js +1 -5
- package/server/applications/sync/schemas/sync-paths.schema.js.map +1 -1
- package/server/applications/sync/services/sync-clients-manager.service.js +108 -44
- package/server/applications/sync/services/sync-clients-manager.service.js.map +1 -1
- package/server/applications/sync/services/sync-clients-manager.service.spec.js +14 -17
- package/server/applications/sync/services/sync-clients-manager.service.spec.js.map +1 -1
- package/server/applications/sync/services/sync-manager.service.js +29 -12
- package/server/applications/sync/services/sync-manager.service.js.map +1 -1
- package/server/applications/sync/services/sync-manager.service.spec.js +1 -5
- package/server/applications/sync/services/sync-manager.service.spec.js.map +1 -1
- package/server/applications/sync/services/sync-paths-manager.service.js +27 -17
- package/server/applications/sync/services/sync-paths-manager.service.js.map +1 -1
- package/server/applications/sync/services/sync-paths-manager.service.spec.js +11 -15
- package/server/applications/sync/services/sync-paths-manager.service.spec.js.map +1 -1
- package/server/applications/sync/services/sync-queries.service.js +1 -5
- package/server/applications/sync/services/sync-queries.service.js.map +1 -1
- package/server/applications/sync/sync.config.js +1 -5
- package/server/applications/sync/sync.config.js.map +1 -1
- package/server/applications/sync/sync.controller.js +21 -6
- package/server/applications/sync/sync.controller.js.map +1 -1
- package/server/applications/sync/sync.controller.spec.js +1 -5
- package/server/applications/sync/sync.controller.spec.js.map +1 -1
- package/server/applications/sync/sync.module.js +1 -5
- package/server/applications/sync/sync.module.js.map +1 -1
- package/server/applications/sync/utils/functions.js +1 -5
- package/server/applications/sync/utils/functions.js.map +1 -1
- package/server/applications/sync/utils/normalizedMap.js +1 -5
- package/server/applications/sync/utils/normalizedMap.js.map +1 -1
- package/server/applications/sync/utils/routes.js +1 -5
- package/server/applications/sync/utils/routes.js.map +1 -1
- package/server/applications/users/admin-users.controller.js +2 -6
- package/server/applications/users/admin-users.controller.js.map +1 -1
- package/server/applications/users/admin-users.controller.spec.js +6 -10
- package/server/applications/users/admin-users.controller.spec.js.map +1 -1
- package/server/applications/users/constants/group.js +1 -5
- package/server/applications/users/constants/group.js.map +1 -1
- package/server/applications/users/constants/member.js +1 -5
- package/server/applications/users/constants/member.js.map +1 -1
- package/server/applications/users/constants/routes.js +1 -5
- package/server/applications/users/constants/routes.js.map +1 -1
- package/server/applications/users/constants/user.js +1 -5
- package/server/applications/users/constants/user.js.map +1 -1
- package/server/applications/users/constants/websocket.js +1 -5
- package/server/applications/users/constants/websocket.js.map +1 -1
- package/server/applications/users/decorators/permissions.decorator.js +1 -5
- package/server/applications/users/decorators/permissions.decorator.js.map +1 -1
- package/server/applications/users/decorators/roles.decorator.js +1 -5
- package/server/applications/users/decorators/roles.decorator.js.map +1 -1
- package/server/applications/users/decorators/user.decorator.js +1 -5
- package/server/applications/users/decorators/user.decorator.js.map +1 -1
- package/server/applications/users/dto/create-or-update-group.dto.js +1 -5
- package/server/applications/users/dto/create-or-update-group.dto.js.map +1 -1
- package/server/applications/users/dto/create-or-update-user.dto.js +1 -5
- package/server/applications/users/dto/create-or-update-user.dto.js.map +1 -1
- package/server/applications/users/dto/delete-user.dto.js +1 -5
- package/server/applications/users/dto/delete-user.dto.js.map +1 -1
- package/server/applications/users/dto/search-members.dto.js +1 -5
- package/server/applications/users/dto/search-members.dto.js.map +1 -1
- package/server/applications/users/dto/user-properties.dto.js +1 -5
- package/server/applications/users/dto/user-properties.dto.js.map +1 -1
- package/server/applications/users/guards/permissions.guard.js +1 -5
- package/server/applications/users/guards/permissions.guard.js.map +1 -1
- package/server/applications/users/guards/permissions.guard.spec.js +1 -5
- package/server/applications/users/guards/permissions.guard.spec.js.map +1 -1
- package/server/applications/users/guards/roles.guard.js +1 -5
- package/server/applications/users/guards/roles.guard.js.map +1 -1
- package/server/applications/users/guards/roles.guard.spec.js +1 -5
- package/server/applications/users/guards/roles.guard.spec.js.map +1 -1
- package/server/applications/users/interfaces/admin-group.interface.js +1 -5
- package/server/applications/users/interfaces/admin-group.interface.js.map +1 -1
- package/server/applications/users/interfaces/admin-user.interface.js +1 -5
- package/server/applications/users/interfaces/admin-user.interface.js.map +1 -1
- package/server/applications/users/interfaces/group-browse.interface.js +1 -5
- package/server/applications/users/interfaces/group-browse.interface.js.map +1 -1
- package/server/applications/users/interfaces/group-member.js +1 -5
- package/server/applications/users/interfaces/group-member.js.map +1 -1
- package/server/applications/users/interfaces/guest-user.interface.js +1 -5
- package/server/applications/users/interfaces/guest-user.interface.js.map +1 -1
- package/server/applications/users/interfaces/member.interface.js +1 -5
- package/server/applications/users/interfaces/member.interface.js.map +1 -1
- package/server/applications/users/interfaces/owner.interface.js +1 -5
- package/server/applications/users/interfaces/owner.interface.js.map +1 -1
- package/server/applications/users/interfaces/user-secrets.interface.js +1 -5
- package/server/applications/users/interfaces/user-secrets.interface.js.map +1 -1
- package/server/applications/users/interfaces/websocket.interface.js +1 -5
- package/server/applications/users/interfaces/websocket.interface.js.map +1 -1
- package/server/applications/users/models/user.model.js +1 -5
- package/server/applications/users/models/user.model.js.map +1 -1
- package/server/applications/users/schemas/group.interface.js +1 -5
- package/server/applications/users/schemas/group.interface.js.map +1 -1
- package/server/applications/users/schemas/groups.schema.js +1 -5
- package/server/applications/users/schemas/groups.schema.js.map +1 -1
- package/server/applications/users/schemas/user-group.interface.js +1 -5
- package/server/applications/users/schemas/user-group.interface.js.map +1 -1
- package/server/applications/users/schemas/user.interface.js +1 -5
- package/server/applications/users/schemas/user.interface.js.map +1 -1
- package/server/applications/users/schemas/users-groups.schema.js +1 -5
- package/server/applications/users/schemas/users-groups.schema.js.map +1 -1
- package/server/applications/users/schemas/users-guests.schema.js +1 -5
- package/server/applications/users/schemas/users-guests.schema.js.map +1 -1
- package/server/applications/users/schemas/users.schema.js +1 -5
- package/server/applications/users/schemas/users.schema.js.map +1 -1
- package/server/applications/users/services/admin-users-manager.service.js +67 -23
- package/server/applications/users/services/admin-users-manager.service.js.map +1 -1
- package/server/applications/users/services/admin-users-manager.service.spec.js +3 -7
- package/server/applications/users/services/admin-users-manager.service.spec.js.map +1 -1
- package/server/applications/users/services/admin-users-queries.service.js +65 -21
- package/server/applications/users/services/admin-users-queries.service.js.map +1 -1
- package/server/applications/users/services/users-manager.service.js +81 -25
- package/server/applications/users/services/users-manager.service.js.map +1 -1
- package/server/applications/users/services/users-manager.service.spec.js +14 -12
- package/server/applications/users/services/users-manager.service.spec.js.map +1 -1
- package/server/applications/users/services/users-queries.service.js +49 -17
- package/server/applications/users/services/users-queries.service.js.map +1 -1
- package/server/applications/users/users.controller.js +2 -6
- package/server/applications/users/users.controller.js.map +1 -1
- package/server/applications/users/users.controller.spec.js +5 -9
- package/server/applications/users/users.controller.spec.js.map +1 -1
- package/server/applications/users/users.e2e-spec.js +3 -7
- package/server/applications/users/users.e2e-spec.js.map +1 -1
- package/server/applications/users/users.gateway.js +29 -12
- package/server/applications/users/users.gateway.js.map +1 -1
- package/server/applications/users/users.gateway.spec.js +1 -5
- package/server/applications/users/users.gateway.spec.js.map +1 -1
- package/server/applications/users/users.module.js +1 -5
- package/server/applications/users/users.module.js.map +1 -1
- package/server/applications/users/utils/avatar.js +1 -5
- package/server/applications/users/utils/avatar.js.map +1 -1
- package/server/applications/users/utils/test.js +1 -5
- package/server/applications/users/utils/test.js.map +1 -1
- package/server/applications/webdav/constants/routes.js +1 -5
- package/server/applications/webdav/constants/routes.js.map +1 -1
- package/server/applications/webdav/constants/webdav.js +1 -5
- package/server/applications/webdav/constants/webdav.js.map +1 -1
- package/server/applications/webdav/decorators/if-header.decorator.js +1 -5
- package/server/applications/webdav/decorators/if-header.decorator.js.map +1 -1
- package/server/applications/webdav/decorators/webdav-context.decorator.js +1 -5
- package/server/applications/webdav/decorators/webdav-context.decorator.js.map +1 -1
- package/server/applications/webdav/filters/webdav.filter.js +1 -5
- package/server/applications/webdav/filters/webdav.filter.js.map +1 -1
- package/server/applications/webdav/filters/webdav.filter.spec.js +1 -5
- package/server/applications/webdav/filters/webdav.filter.spec.js.map +1 -1
- package/server/applications/webdav/guards/webdav-protocol.guard.js +54 -20
- package/server/applications/webdav/guards/webdav-protocol.guard.js.map +1 -1
- package/server/applications/webdav/guards/webdav-protocol.guard.spec.js +54 -0
- package/server/applications/webdav/guards/webdav-protocol.guard.spec.js.map +1 -1
- package/server/applications/webdav/interfaces/if-header.interface.js +1 -5
- package/server/applications/webdav/interfaces/if-header.interface.js.map +1 -1
- package/server/applications/webdav/interfaces/webdav.interface.js +1 -5
- package/server/applications/webdav/interfaces/webdav.interface.js.map +1 -1
- package/server/applications/webdav/models/webdav-file.model.js +1 -5
- package/server/applications/webdav/models/webdav-file.model.js.map +1 -1
- package/server/applications/webdav/services/webdav-methods.service.js +74 -26
- package/server/applications/webdav/services/webdav-methods.service.js.map +1 -1
- package/server/applications/webdav/services/webdav-methods.service.spec.js +15 -18
- package/server/applications/webdav/services/webdav-methods.service.spec.js.map +1 -1
- package/server/applications/webdav/services/webdav-spaces.service.js +17 -9
- package/server/applications/webdav/services/webdav-spaces.service.js.map +1 -1
- package/server/applications/webdav/services/webdav-spaces.service.spec.js +1 -5
- package/server/applications/webdav/services/webdav-spaces.service.spec.js.map +1 -1
- package/server/applications/webdav/utils/bootstrap.js +1 -5
- package/server/applications/webdav/utils/bootstrap.js.map +1 -1
- package/server/applications/webdav/utils/if-header.js +1 -5
- package/server/applications/webdav/utils/if-header.js.map +1 -1
- package/server/applications/webdav/utils/routes.js +1 -5
- package/server/applications/webdav/utils/routes.js.map +1 -1
- package/server/applications/webdav/utils/webdav.js +1 -5
- package/server/applications/webdav/utils/webdav.js.map +1 -1
- package/server/applications/webdav/utils/xml.js +1 -5
- package/server/applications/webdav/utils/xml.js.map +1 -1
- package/server/applications/webdav/webdav.controller.js +1 -5
- package/server/applications/webdav/webdav.controller.js.map +1 -1
- package/server/applications/webdav/webdav.controller.spec.js +1 -5
- package/server/applications/webdav/webdav.controller.spec.js.map +1 -1
- package/server/applications/webdav/webdav.e2e-spec.js +1 -5
- package/server/applications/webdav/webdav.e2e-spec.js.map +1 -1
- package/server/applications/webdav/webdav.module.js +1 -5
- package/server/applications/webdav/webdav.module.js.map +1 -1
- package/server/authentication/auth.config.js +23 -123
- package/server/authentication/auth.config.js.map +1 -1
- package/server/authentication/auth.controller.js +27 -21
- package/server/authentication/auth.controller.js.map +1 -1
- package/server/authentication/auth.controller.spec.js +6 -10
- package/server/authentication/auth.controller.spec.js.map +1 -1
- package/server/authentication/auth.e2e-spec.js +1 -5
- package/server/authentication/auth.e2e-spec.js.map +1 -1
- package/server/authentication/auth.module.js +17 -20
- package/server/authentication/auth.module.js.map +1 -1
- package/server/authentication/{services/auth-manager.service.js → auth.service.js} +41 -18
- package/server/authentication/auth.service.js.map +1 -0
- package/server/authentication/{services/auth-manager.service.spec.js → auth.service.spec.js} +6 -10
- package/server/authentication/auth.service.spec.js.map +1 -0
- package/server/authentication/constants/auth.js +1 -5
- package/server/authentication/constants/auth.js.map +1 -1
- package/server/authentication/constants/routes.js +41 -30
- package/server/authentication/constants/routes.js.map +1 -1
- package/server/authentication/constants/scope.js +2 -5
- package/server/authentication/constants/scope.js.map +1 -1
- package/server/authentication/decorators/auth-token-optional.decorator.js +1 -5
- package/server/authentication/decorators/auth-token-optional.decorator.js.map +1 -1
- package/server/authentication/decorators/auth-token-skip.decorator.js +1 -5
- package/server/authentication/decorators/auth-token-skip.decorator.js.map +1 -1
- package/server/authentication/dto/login-response.dto.js +1 -10
- package/server/authentication/dto/login-response.dto.js.map +1 -1
- package/server/authentication/dto/token-response.dto.js +1 -5
- package/server/authentication/dto/token-response.dto.js.map +1 -1
- package/server/authentication/guards/auth-anonymous.guard.js +1 -5
- package/server/authentication/guards/auth-anonymous.guard.js.map +1 -1
- package/server/authentication/guards/auth-anonymous.guard.spec.js +1 -5
- package/server/authentication/guards/auth-anonymous.guard.spec.js.map +1 -1
- package/server/authentication/guards/auth-anonymous.strategy.js +1 -5
- package/server/authentication/guards/auth-anonymous.strategy.js.map +1 -1
- package/server/authentication/guards/auth-basic.guard.js +1 -5
- package/server/authentication/guards/auth-basic.guard.js.map +1 -1
- package/server/authentication/guards/auth-basic.guard.spec.js +13 -14
- package/server/authentication/guards/auth-basic.guard.spec.js.map +1 -1
- package/server/authentication/guards/auth-basic.strategy.js +10 -11
- package/server/authentication/guards/auth-basic.strategy.js.map +1 -1
- package/server/authentication/guards/auth-digest.guard.js +1 -5
- package/server/authentication/guards/auth-digest.guard.js.map +1 -1
- package/server/authentication/guards/auth-digest.strategy.js +1 -5
- package/server/authentication/guards/auth-digest.strategy.js.map +1 -1
- package/server/authentication/guards/auth-local.guard.js +1 -5
- package/server/authentication/guards/auth-local.guard.js.map +1 -1
- package/server/authentication/guards/auth-local.guard.spec.js +9 -13
- package/server/authentication/guards/auth-local.guard.spec.js.map +1 -1
- package/server/authentication/guards/auth-local.strategy.js +6 -10
- package/server/authentication/guards/auth-local.strategy.js.map +1 -1
- package/server/authentication/guards/auth-token-access.guard.js +1 -5
- package/server/authentication/guards/auth-token-access.guard.js.map +1 -1
- package/server/authentication/guards/auth-token-access.guard.spec.js +3 -7
- package/server/authentication/guards/auth-token-access.guard.spec.js.map +1 -1
- package/server/authentication/guards/auth-token-access.strategy.js +3 -7
- package/server/authentication/guards/auth-token-access.strategy.js.map +1 -1
- package/server/authentication/guards/auth-token-refresh.guard.js +1 -5
- package/server/authentication/guards/auth-token-refresh.guard.js.map +1 -1
- package/server/authentication/guards/auth-token-refresh.guard.spec.js +3 -7
- package/server/authentication/guards/auth-token-refresh.guard.spec.js.map +1 -1
- package/server/authentication/guards/auth-token-refresh.strategy.js +3 -7
- package/server/authentication/guards/auth-token-refresh.strategy.js.map +1 -1
- package/server/authentication/guards/implementations/http-basic.strategy.js +1 -5
- package/server/authentication/guards/implementations/http-basic.strategy.js.map +1 -1
- package/server/authentication/guards/implementations/http-digest.strategy.js +1 -5
- package/server/authentication/guards/implementations/http-digest.strategy.js.map +1 -1
- package/server/authentication/interfaces/auth-request.interface.js +1 -5
- package/server/authentication/interfaces/auth-request.interface.js.map +1 -1
- package/server/authentication/interfaces/jwt-payload.interface.js +1 -5
- package/server/authentication/interfaces/jwt-payload.interface.js.map +1 -1
- package/server/authentication/interfaces/token.interface.js +1 -5
- package/server/authentication/interfaces/token.interface.js.map +1 -1
- package/server/authentication/providers/auth-providers.constants.js +18 -0
- package/server/authentication/providers/auth-providers.constants.js.map +1 -0
- package/server/authentication/providers/auth-providers.models.js +14 -0
- package/server/authentication/providers/auth-providers.models.js.map +1 -0
- package/server/authentication/providers/auth-providers.utils.js +42 -0
- package/server/authentication/providers/auth-providers.utils.js.map +1 -0
- package/server/authentication/providers/ldap/auth-ldap.config.js +143 -0
- package/server/authentication/providers/ldap/auth-ldap.config.js.map +1 -0
- package/server/authentication/{constants/auth-ldap.js → providers/ldap/auth-ldap.constants.js} +12 -6
- package/server/authentication/providers/ldap/auth-ldap.constants.js.map +1 -0
- package/server/authentication/providers/ldap/auth-provider-ldap.service.js +506 -0
- package/server/authentication/providers/ldap/auth-provider-ldap.service.js.map +1 -0
- package/server/authentication/providers/ldap/auth-provider-ldap.service.spec.js +674 -0
- package/server/authentication/providers/ldap/auth-provider-ldap.service.spec.js.map +1 -0
- package/server/authentication/{services/auth-methods/auth-method-database.service.js → providers/mysql/auth-provider-mysql.service.js} +16 -14
- package/server/authentication/providers/mysql/auth-provider-mysql.service.js.map +1 -0
- package/server/authentication/{services/auth-methods/auth-method-database.service.spec.js → providers/mysql/auth-provider-mysql.service.spec.js} +15 -19
- package/server/authentication/providers/mysql/auth-provider-mysql.service.spec.js.map +1 -0
- package/server/authentication/providers/oidc/auth-oidc-desktop.constants.js +30 -0
- package/server/authentication/providers/oidc/auth-oidc-desktop.constants.js.map +1 -0
- package/server/authentication/providers/oidc/auth-oidc.config.js +149 -0
- package/server/authentication/providers/oidc/auth-oidc.config.js.map +1 -0
- package/server/authentication/providers/oidc/auth-oidc.constants.js +39 -0
- package/server/authentication/providers/oidc/auth-oidc.constants.js.map +1 -0
- package/server/authentication/providers/oidc/auth-oidc.controller.js +83 -0
- package/server/authentication/providers/oidc/auth-oidc.controller.js.map +1 -0
- package/server/authentication/providers/oidc/auth-oidc.interfaces.js +6 -0
- package/server/authentication/providers/oidc/auth-oidc.interfaces.js.map +1 -0
- package/server/authentication/providers/oidc/auth-provider-oidc.module.js +36 -0
- package/server/authentication/providers/oidc/auth-provider-oidc.module.js.map +1 -0
- package/server/authentication/providers/oidc/auth-provider-oidc.service.js +373 -0
- package/server/authentication/providers/oidc/auth-provider-oidc.service.js.map +1 -0
- package/server/authentication/providers/oidc/auth-provider-oidc.service.spec.js +270 -0
- package/server/authentication/providers/oidc/auth-provider-oidc.service.spec.js.map +1 -0
- package/server/authentication/{services/auth-methods/auth-method-two-fa.service.js → providers/two-fa/auth-provider-two-fa.service.js} +56 -38
- package/server/authentication/providers/two-fa/auth-provider-two-fa.service.js.map +1 -0
- package/server/authentication/{services/auth-methods/auth-method-two-fa.service.spec.js → providers/two-fa/auth-provider-two-fa.service.spec.js} +6 -10
- package/server/authentication/providers/two-fa/auth-provider-two-fa.service.spec.js.map +1 -0
- package/server/authentication/{guards → providers/two-fa}/auth-two-fa-guard.js +10 -14
- package/server/authentication/providers/two-fa/auth-two-fa-guard.js.map +1 -0
- package/server/authentication/providers/two-fa/auth-two-fa.config.js +57 -0
- package/server/authentication/providers/two-fa/auth-two-fa.config.js.map +1 -0
- package/server/authentication/{dto/two-fa-verify.dto.js → providers/two-fa/auth-two-fa.dtos.js} +8 -6
- package/server/authentication/providers/two-fa/auth-two-fa.dtos.js.map +1 -0
- package/server/authentication/providers/two-fa/auth-two-fa.interfaces.js +6 -0
- package/server/authentication/providers/two-fa/auth-two-fa.interfaces.js.map +1 -0
- package/server/authentication/utils/crypt-secret.js +1 -5
- package/server/authentication/utils/crypt-secret.js.map +1 -1
- package/server/common/constants.js +1 -5
- package/server/common/constants.js.map +1 -1
- package/server/common/decorators.js +1 -5
- package/server/common/decorators.js.map +1 -1
- package/server/common/functions.js +25 -9
- package/server/common/functions.js.map +1 -1
- package/server/common/i18n.js +1 -5
- package/server/common/i18n.js.map +1 -1
- package/server/common/image.js +1 -5
- package/server/common/image.js.map +1 -1
- package/server/common/interfaces.js +1 -5
- package/server/common/interfaces.js.map +1 -1
- package/server/common/qrcode.js +1 -5
- package/server/common/qrcode.js.map +1 -1
- package/server/common/shared.js +6 -6
- package/server/common/shared.js.map +1 -1
- package/server/configuration/config.constants.js +1 -5
- package/server/configuration/config.constants.js.map +1 -1
- package/server/configuration/config.environment.js +2 -6
- package/server/configuration/config.environment.js.map +1 -1
- package/server/configuration/config.interfaces.js +1 -5
- package/server/configuration/config.interfaces.js.map +1 -1
- package/server/configuration/config.loader.js +1 -5
- package/server/configuration/config.loader.js.map +1 -1
- package/server/configuration/config.logger.js +4 -8
- package/server/configuration/config.logger.js.map +1 -1
- package/server/configuration/config.validation.js +7 -5
- package/server/configuration/config.validation.js.map +1 -1
- package/server/infrastructure/cache/adapters/mysql-cache.adapter.js +9 -7
- package/server/infrastructure/cache/adapters/mysql-cache.adapter.js.map +1 -1
- package/server/infrastructure/cache/adapters/redis-cache.adapter.js +1 -5
- package/server/infrastructure/cache/adapters/redis-cache.adapter.js.map +1 -1
- package/server/infrastructure/cache/cache.config.js +1 -5
- package/server/infrastructure/cache/cache.config.js.map +1 -1
- package/server/infrastructure/cache/cache.decorator.js +9 -7
- package/server/infrastructure/cache/cache.decorator.js.map +1 -1
- package/server/infrastructure/cache/cache.e2e-spec.js +1 -5
- package/server/infrastructure/cache/cache.e2e-spec.js.map +1 -1
- package/server/infrastructure/cache/cache.module.js +1 -5
- package/server/infrastructure/cache/cache.module.js.map +1 -1
- package/server/infrastructure/cache/schemas/mysql-cache.interface.js +1 -5
- package/server/infrastructure/cache/schemas/mysql-cache.interface.js.map +1 -1
- package/server/infrastructure/cache/schemas/mysql-cache.schema.js +1 -5
- package/server/infrastructure/cache/schemas/mysql-cache.schema.js.map +1 -1
- package/server/infrastructure/cache/services/cache.service.js +1 -5
- package/server/infrastructure/cache/services/cache.service.js.map +1 -1
- package/server/infrastructure/context/context.module.js +1 -5
- package/server/infrastructure/context/context.module.js.map +1 -1
- package/server/infrastructure/context/interceptors/context.interceptor.js +1 -5
- package/server/infrastructure/context/interceptors/context.interceptor.js.map +1 -1
- package/server/infrastructure/context/interceptors/context.interceptor.spec.js +2 -6
- package/server/infrastructure/context/interceptors/context.interceptor.spec.js.map +1 -1
- package/server/infrastructure/context/interfaces/context-store.interface.js +1 -5
- package/server/infrastructure/context/interfaces/context-store.interface.js.map +1 -1
- package/server/infrastructure/context/services/context-manager.service.js +1 -5
- package/server/infrastructure/context/services/context-manager.service.js.map +1 -1
- package/server/infrastructure/context/services/context-manager.service.spec.js +1 -5
- package/server/infrastructure/context/services/context-manager.service.spec.js.map +1 -1
- package/server/infrastructure/database/columns.js +1 -5
- package/server/infrastructure/database/columns.js.map +1 -1
- package/server/infrastructure/database/configuration.js +1 -5
- package/server/infrastructure/database/configuration.js.map +1 -1
- package/server/infrastructure/database/constants.js +2 -6
- package/server/infrastructure/database/constants.js.map +1 -1
- package/server/infrastructure/database/database.config.js +1 -5
- package/server/infrastructure/database/database.config.js.map +1 -1
- package/server/infrastructure/database/database.logger.js +1 -5
- package/server/infrastructure/database/database.logger.js.map +1 -1
- package/server/infrastructure/database/database.module.js +1 -5
- package/server/infrastructure/database/database.module.js.map +1 -1
- package/server/infrastructure/database/interfaces/database.interface.js +1 -5
- package/server/infrastructure/database/interfaces/database.interface.js.map +1 -1
- package/server/infrastructure/database/schema.js +1 -5
- package/server/infrastructure/database/schema.js.map +1 -1
- package/server/infrastructure/database/scripts/create-user.js +1 -5
- package/server/infrastructure/database/scripts/create-user.js.map +1 -1
- package/server/infrastructure/database/scripts/db.js +1 -5
- package/server/infrastructure/database/scripts/db.js.map +1 -1
- package/server/infrastructure/database/scripts/seed/main.js +1 -5
- package/server/infrastructure/database/scripts/seed/main.js.map +1 -1
- package/server/infrastructure/database/scripts/seed/usersgroups.js +1 -5
- package/server/infrastructure/database/scripts/seed/usersgroups.js.map +1 -1
- package/server/infrastructure/database/utils.js +1 -5
- package/server/infrastructure/database/utils.js.map +1 -1
- package/server/infrastructure/mailer/interfaces/mail.interface.js +1 -5
- package/server/infrastructure/mailer/interfaces/mail.interface.js.map +1 -1
- package/server/infrastructure/mailer/mailer.config.js +1 -5
- package/server/infrastructure/mailer/mailer.config.js.map +1 -1
- package/server/infrastructure/mailer/mailer.module.js +1 -5
- package/server/infrastructure/mailer/mailer.module.js.map +1 -1
- package/server/infrastructure/mailer/mailer.service.js +1 -5
- package/server/infrastructure/mailer/mailer.service.js.map +1 -1
- package/server/infrastructure/mailer/mailer.service.spec.js +2 -6
- package/server/infrastructure/mailer/mailer.service.spec.js.map +1 -1
- package/server/infrastructure/scheduler/scheduler.constants.js +1 -5
- package/server/infrastructure/scheduler/scheduler.constants.js.map +1 -1
- package/server/infrastructure/scheduler/scheduler.module.js +1 -5
- package/server/infrastructure/scheduler/scheduler.module.js.map +1 -1
- package/server/infrastructure/websocket/adapters/cluster.adapter.js +1 -5
- package/server/infrastructure/websocket/adapters/cluster.adapter.js.map +1 -1
- package/server/infrastructure/websocket/adapters/redis.adapter.js +1 -5
- package/server/infrastructure/websocket/adapters/redis.adapter.js.map +1 -1
- package/server/infrastructure/websocket/adapters/web-socket.adapter.js +1 -5
- package/server/infrastructure/websocket/adapters/web-socket.adapter.js.map +1 -1
- package/server/infrastructure/websocket/decorators/web-socket-user.decorator.js +1 -5
- package/server/infrastructure/websocket/decorators/web-socket-user.decorator.js.map +1 -1
- package/server/infrastructure/websocket/interfaces/auth-socket-io.interface.js +1 -5
- package/server/infrastructure/websocket/interfaces/auth-socket-io.interface.js.map +1 -1
- package/server/infrastructure/websocket/utils.js +1 -5
- package/server/infrastructure/websocket/utils.js.map +1 -1
- package/server/infrastructure/websocket/web-socket.config.js +1 -5
- package/server/infrastructure/websocket/web-socket.config.js.map +1 -1
- package/server/main.js +5 -0
- package/server/main.js.map +1 -1
- package/static/assets/pdfjs/build/pdf.mjs +724 -745
- package/static/assets/pdfjs/build/pdf.mjs.map +1 -1
- package/static/assets/pdfjs/build/pdf.sandbox.mjs +2 -2
- package/static/assets/pdfjs/build/pdf.worker.mjs +706 -193
- package/static/assets/pdfjs/build/pdf.worker.mjs.map +1 -1
- package/static/assets/pdfjs/version +1 -1
- package/static/assets/pdfjs/web/locale/dsb/viewer.ftl +5 -5
- package/static/assets/pdfjs/web/locale/en-US/viewer.ftl +1 -0
- package/static/assets/pdfjs/web/locale/fur/viewer.ftl +5 -0
- package/static/assets/pdfjs/web/locale/kk/viewer.ftl +28 -0
- package/static/assets/pdfjs/web/locale/ml/viewer.ftl +4 -0
- package/static/assets/pdfjs/web/locale/ru/viewer.ftl +3 -3
- package/static/assets/pdfjs/web/viewer.css +207 -65
- package/static/assets/pdfjs/web/viewer.html +11 -10
- package/static/assets/pdfjs/web/viewer.mjs +850 -270
- package/static/assets/pdfjs/web/viewer.mjs.map +1 -1
- package/static/assets/pdfjs/web/wasm/LICENSE_JBIG2 +196 -0
- package/static/assets/pdfjs/web/wasm/LICENSE_PDFJS_JBIG2 +13 -0
- package/static/assets/pdfjs/web/wasm/jbig2.wasm +0 -0
- package/static/chunk-22TZP6HW.js +1 -0
- package/static/{chunk-G7TLKY5X.js → chunk-27ATUHBH.js} +1 -1
- package/static/{chunk-CQOQXVYG.js → chunk-2CKLZ3FM.js} +1 -1
- package/static/{chunk-FVFOX6OP.js → chunk-2QZPX7LO.js} +1 -1
- package/static/{chunk-32AVRWC3.js → chunk-2R6IBBPZ.js} +1 -1
- package/static/{chunk-76JDXKD7.js → chunk-4FIGEBNL.js} +1 -1
- package/static/{chunk-ACCGBDUZ.js → chunk-4P3JABAP.js} +4 -4
- package/static/chunk-5CZOSAMZ.js +1 -0
- package/static/{chunk-2PDTP6N4.js → chunk-677WUBCT.js} +1 -1
- package/static/{chunk-K5VO5XTG.js → chunk-74CAHBFM.js} +1 -1
- package/static/{chunk-WTWGBCFO.js → chunk-7GWW6MJO.js} +1 -1
- package/static/{chunk-JXZOYX4N.js → chunk-A4UGPSWX.js} +1 -1
- package/static/{chunk-44D7RWET.js → chunk-AHO37FKW.js} +1 -1
- package/static/{chunk-WB2DECOA.js → chunk-AQCXMKP3.js} +1 -1
- package/static/chunk-B6PDYCRO.js +3 -0
- package/static/{chunk-JVGN5V5E.js → chunk-CU76ATCF.js} +1 -1
- package/static/{chunk-Q5K4ZUHK.js → chunk-CWYHOPOP.js} +1 -1
- package/static/{chunk-IOX3ANJR.js → chunk-E5WI5725.js} +1 -1
- package/static/{chunk-NUG54Y65.js → chunk-FC5HTKVM.js} +1 -1
- package/static/{chunk-LRK6RNPR.js → chunk-FOSM7EYI.js} +1 -1
- package/static/{chunk-B4UP2EQM.js → chunk-GAZO25PI.js} +1 -1
- package/static/{chunk-3WBCGTYW.js → chunk-GB7ABR5N.js} +1 -1
- package/static/{chunk-XFZ37WVK.js → chunk-GEHFKZQ5.js} +1 -1
- package/static/{chunk-4CQLN5HL.js → chunk-GQFMWVFD.js} +1 -1
- package/static/{chunk-YBEH442D.js → chunk-GVNTC564.js} +1 -1
- package/static/{chunk-WO6GBHBZ.js → chunk-HGL3NYP2.js} +2 -2
- package/static/{chunk-IAWRRL6J.js → chunk-HLIWPWRA.js} +1 -1
- package/static/{chunk-6LHJBXUE.js → chunk-HNYB3M4S.js} +1 -1
- package/static/{chunk-5WTIUYFF.js → chunk-HUXAUQMN.js} +1 -1
- package/static/{chunk-VBH3Y2M5.js → chunk-I2XA6PPK.js} +1 -1
- package/static/{chunk-I3XI72AV.js → chunk-ISV3BO6R.js} +1 -1
- package/static/{chunk-P7X53PEP.js → chunk-JV3AGU5B.js} +1 -1
- package/static/{chunk-ZFAXICUH.js → chunk-K25E7YGG.js} +1 -1
- package/static/{chunk-CAD3RHAY.js → chunk-K46PUTZB.js} +1 -1
- package/static/{chunk-GYFLVCFN.js → chunk-KERFLJ56.js} +1 -7
- package/static/{chunk-WSTGWBVW.js → chunk-KJD3KFF3.js} +1 -1
- package/static/{chunk-R4P4NBUL.js → chunk-KPKSI23S.js} +1 -1
- package/static/{chunk-M7IFVC5D.js → chunk-KZS7CTNR.js} +1 -1
- package/static/{chunk-P2IJCGWD.js → chunk-L5IHUVXL.js} +1 -1
- package/static/{chunk-DXESTGOH.js → chunk-L7RRX2M3.js} +1 -1
- package/static/{chunk-WE3ISL7O.js → chunk-LGWJ2WKU.js} +1 -1
- package/static/{chunk-OKI3N5AI.js → chunk-MLC7JK2H.js} +2 -2
- package/static/{chunk-NG7QWUFM.js → chunk-MOHNYW2A.js} +1 -1
- package/static/{chunk-SQYWQUL4.js → chunk-NCDUOVMW.js} +1 -1
- package/static/chunk-NGUAJIGI.js +1 -0
- package/static/{chunk-OYPJUVD6.js → chunk-NIPP6JDI.js} +1 -1
- package/static/{chunk-Y433XOAJ.js → chunk-NMTBMHUL.js} +1 -1
- package/static/chunk-O4XXMZFX.js +4 -0
- package/static/{chunk-IOP3ON2H.js → chunk-OANZITPM.js} +1 -1
- package/static/{chunk-WJFKUJJX.js → chunk-OGE4SAHU.js} +1 -1
- package/static/{chunk-7EHP6HO3.js → chunk-OI3ME22C.js} +1 -1
- package/static/{chunk-D4XDSS6P.js → chunk-Q3EGCMF5.js} +1 -1
- package/static/{chunk-TQBCGNFG.js → chunk-QF2NSHZA.js} +1 -1
- package/static/{chunk-RBBMH2FM.js → chunk-QKN6LAAA.js} +1 -1
- package/static/{chunk-J45SD6RC.js → chunk-QRFESU5O.js} +2 -2
- package/static/chunk-QVRVFYJH.js +1 -0
- package/static/{chunk-BAHNSFET.js → chunk-RFJIPIOK.js} +1 -1
- package/static/{chunk-IZ7TCHUW.js → chunk-RLL634K4.js} +1 -1
- package/static/{chunk-MOWL3ILT.js → chunk-RS2OFKWP.js} +1 -1
- package/static/{chunk-WM56LPJ3.js → chunk-RWAAC3A4.js} +1 -1
- package/static/{chunk-F3GMI6OL.js → chunk-S5Y64DDS.js} +1 -1
- package/static/{chunk-VNNLMUK7.js → chunk-SLG5KDU6.js} +1 -1
- package/static/chunk-TJ4CVFEL.js +1 -0
- package/static/{chunk-SAN35XTD.js → chunk-TWCGKSYE.js} +1 -1
- package/static/{chunk-EUKVDBBK.js → chunk-UMDRE4S7.js} +1 -1
- package/static/{chunk-YKCUUBZP.js → chunk-VRIOLRYR.js} +4 -4
- package/static/chunk-VS4O2XDP.js +1 -0
- package/static/{chunk-2MRTBCSV.js → chunk-VSBFNFOM.js} +1 -1
- package/static/{chunk-CTPKDDVI.js → chunk-WN4WXCVK.js} +1 -1
- package/static/{chunk-2AA3WMW5.js → chunk-WX7RXW7K.js} +1 -1
- package/static/{chunk-J2BUPRCZ.js → chunk-XC4POKR3.js} +2 -2
- package/static/{chunk-AXLDYLIO.js → chunk-Y4AUYQTG.js} +1 -1
- package/static/{chunk-RPHWIW7S.js → chunk-YMIXHRJQ.js} +1 -7
- package/static/{chunk-AFNUBQMD.js → chunk-ZUNKFAKP.js} +1 -1
- package/static/index.html +3 -3
- package/static/main-QN4UCOC5.js +5 -0
- package/static/{styles-PD6764CP.css → styles-46GLIE7Y.css} +1 -1
- package/server/authentication/constants/auth-ldap.js.map +0 -1
- package/server/authentication/dto/two-fa-verify.dto.js.map +0 -1
- package/server/authentication/guards/auth-two-fa-guard.js.map +0 -1
- package/server/authentication/interfaces/two-fa-setup.interface.js +0 -10
- package/server/authentication/interfaces/two-fa-setup.interface.js.map +0 -1
- package/server/authentication/models/auth-method.js +0 -18
- package/server/authentication/models/auth-method.js.map +0 -1
- package/server/authentication/services/auth-manager.service.js.map +0 -1
- package/server/authentication/services/auth-manager.service.spec.js.map +0 -1
- package/server/authentication/services/auth-methods/auth-method-database.service.js.map +0 -1
- package/server/authentication/services/auth-methods/auth-method-database.service.spec.js.map +0 -1
- package/server/authentication/services/auth-methods/auth-method-ldap.service.js +0 -326
- package/server/authentication/services/auth-methods/auth-method-ldap.service.js.map +0 -1
- package/server/authentication/services/auth-methods/auth-method-ldap.service.spec.js +0 -534
- package/server/authentication/services/auth-methods/auth-method-ldap.service.spec.js.map +0 -1
- package/server/authentication/services/auth-methods/auth-method-two-fa.service.js.map +0 -1
- package/server/authentication/services/auth-methods/auth-method-two-fa.service.spec.js.map +0 -1
- package/static/chunk-3I6NPM62.js +0 -1
- package/static/chunk-GCPX3EFC.js +0 -1
- package/static/chunk-KBUIDMCK.js +0 -1
- package/static/chunk-KY6MNZLC.js +0 -1
- package/static/chunk-MPWD4VMY.js +0 -1
- package/static/chunk-QQAF3MLL.js +0 -1
- package/static/chunk-VHZKPUWE.js +0 -4
- package/static/chunk-YWLMFOB4.js +0 -3
- package/static/main-ZXEMCBMI.js +0 -11
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright (C) 2012-2025 Johan Legrand <johan.legrand@sync-in.com>
|
|
3
|
-
* This file is part of Sync-in | The open source file sync and share solution
|
|
4
|
-
* See the LICENSE file for licensing details
|
|
5
|
-
*/ "use strict";
|
|
1
|
+
"use strict";
|
|
6
2
|
Object.defineProperty(exports, "__esModule", {
|
|
7
3
|
value: true
|
|
8
4
|
});
|
|
9
5
|
const _common = require("@nestjs/common");
|
|
6
|
+
const _clusteradapter = require("@socket.io/cluster-adapter");
|
|
10
7
|
const _nodecluster = /*#__PURE__*/ _interop_require_default(require("node:cluster"));
|
|
11
8
|
const _nodefs = /*#__PURE__*/ _interop_require_default(require("node:fs"));
|
|
12
9
|
const _nodeos = /*#__PURE__*/ _interop_require_default(require("node:os"));
|
|
@@ -15,7 +12,6 @@ const _nodeprocess = /*#__PURE__*/ _interop_require_default(require("node:proces
|
|
|
15
12
|
const _appservice = require("./app.service");
|
|
16
13
|
const _configconstants = require("./configuration/config.constants");
|
|
17
14
|
const _configenvironment = require("./configuration/config.environment");
|
|
18
|
-
const _clusteradapter = require("@socket.io/cluster-adapter");
|
|
19
15
|
function _interop_require_default(obj) {
|
|
20
16
|
return obj && obj.__esModule ? obj : {
|
|
21
17
|
default: obj
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../backend/src/app.service.spec.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../../backend/src/app.service.spec.ts"],"sourcesContent":["import { Logger } from '@nestjs/common'\nimport { setupPrimary } from '@socket.io/cluster-adapter'\nimport cluster from 'node:cluster'\nimport fs from 'node:fs'\nimport os from 'node:os'\nimport path from 'node:path'\nimport process from 'node:process'\nimport { AppService } from './app.service'\nimport { ENVIRONMENT_PREFIX } from './configuration/config.constants'\nimport { configuration, exportConfiguration } from './configuration/config.environment'\n\njest.mock('@socket.io/cluster-adapter', () => ({\n setupPrimary: jest.fn()\n}))\n\ndescribe(AppService.name, () => {\n let appService: AppService\n\n beforeAll(async () => {\n appService = new AppService()\n Logger.overrideLogger(['fatal'])\n })\n\n it('should be defined', () => {\n expect(appService).toBeDefined()\n })\n\n it('should clusterize', () => {\n // --- MASTER, adapter='cluster' -> covers setupPrimary()\n configuration.websocket.adapter = 'cluster'\n configuration.server.restartOnFailure = true\n\n const bootstrap = jest.fn()\n\n // IMPORTANT: do NOT call bootstrap() from fork mock\n const fakeWorker = { process: { pid: 1 } } as any\n cluster.fork = jest.fn(() => fakeWorker)\n\n const spyExit = jest.spyOn(cluster, 'on')\n\n // 1) master path (cluster.isPrimary true by default)\n expect(() => AppService.clusterize(bootstrap)).not.toThrow()\n\n // setupPrimary() must have run once (covers the “line 21” site)\n expect(setupPrimary).toHaveBeenCalledTimes(1)\n\n // fork called exactly workers times\n expect((cluster.fork as jest.Mock).mock.calls.length).toBe(configuration.server.workers)\n\n // --- Test exit handler with ONLY ONE registered handler\n // TRUE branch: restart twice -> fork called +2\n const forkCallsAfterMaster = (cluster.fork as jest.Mock).mock.calls.length\n AppService.schedulerPID = 1\n cluster.emit('exit', { process: { pid: 1 } } as any, 1 as any, 'SIGKILL' as any)\n AppService.schedulerPID = 0\n cluster.emit('exit', { process: { pid: 2 } } as any, 1 as any, 'SIGKILL' as any)\n expect((cluster.fork as jest.Mock).mock.calls.length).toBe(forkCallsAfterMaster + 2)\n\n // FALSE branch: no restart -> fork unchanged\n configuration.server.restartOnFailure = false\n const forkCallsAfterTrue = (cluster.fork as jest.Mock).mock.calls.length\n cluster.emit('exit', { process: { pid: 3 } } as any, 1 as any, 'SIGKILL' as any)\n expect((cluster.fork as jest.Mock).mock.calls.length).toBe(forkCallsAfterTrue)\n\n // --- MASTER again, adapter != 'cluster' -> covers the FALSE side of the adapter check\n configuration.websocket.adapter = null\n expect(() => AppService.clusterize(bootstrap)).not.toThrow()\n // setupPrimary should NOT be called again\n expect(setupPrimary).toHaveBeenCalledTimes(1)\n\n // --- WORKER path (else branch): bootstrap should be called exactly once here\n jest.replaceProperty(cluster, 'isPrimary', false)\n bootstrap.mockClear() // isolate bootstrap count for a worker branch\n expect(() => AppService.clusterize(bootstrap)).not.toThrow()\n expect(bootstrap).toHaveBeenCalledTimes(1)\n\n spyExit.mockClear()\n })\n\n it(`should use ${ENVIRONMENT_PREFIX} environment variables to override the configuration`, () => {\n let conf = exportConfiguration()\n expect(conf.logger.stdout).toBe(true)\n expect(conf.logger.colorize).toBe(true)\n const tmpSecretFile = path.join(os.tmpdir(), 'secret')\n fs.writeFileSync(tmpSecretFile, 'fooBAR8888')\n process.env[`${ENVIRONMENT_PREFIX}APPLICATIONS_FILES_ONLYOFFICE_SECRET`] = 'fooBAR'\n process.env[`${ENVIRONMENT_PREFIX}LOGGER_STDOUT`] = 'false'\n process.env[`${ENVIRONMENT_PREFIX}LOGGER_COLORIZE`] = '\"false\"'\n process.env[`${ENVIRONMENT_PREFIX}APPLICATIONS_FILES_MAXUPLOADSIZE`] = '8888'\n // docker compose secret file\n process.env[`${ENVIRONMENT_PREFIX}AUTH_TOKEN_ACCESS_SECRET_FILE`] = tmpSecretFile\n conf = exportConfiguration(true)\n expect(conf.applications.files.onlyoffice.secret).toBe('fooBAR')\n expect(conf.logger.stdout).toBe(false)\n expect(conf.logger.colorize).toBe(false)\n expect(conf.applications.files.maxUploadSize).toBe(8888)\n expect(conf.auth.token.access.secret).toBe('fooBAR8888')\n // clean up secret file\n fs.promises.rm(tmpSecretFile, { force: true }).catch(console.error)\n })\n})\n"],"names":["jest","mock","setupPrimary","fn","describe","AppService","name","appService","beforeAll","Logger","overrideLogger","it","expect","toBeDefined","configuration","websocket","adapter","server","restartOnFailure","bootstrap","fakeWorker","process","pid","cluster","fork","spyExit","spyOn","clusterize","not","toThrow","toHaveBeenCalledTimes","calls","length","toBe","workers","forkCallsAfterMaster","schedulerPID","emit","forkCallsAfterTrue","replaceProperty","mockClear","ENVIRONMENT_PREFIX","conf","exportConfiguration","logger","stdout","colorize","tmpSecretFile","path","join","os","tmpdir","fs","writeFileSync","env","applications","files","onlyoffice","secret","maxUploadSize","auth","token","access","promises","rm","force","catch","console","error"],"mappings":"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"}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright (C) 2012-2025 Johan Legrand <johan.legrand@sync-in.com>
|
|
3
|
-
* This file is part of Sync-in | The open source file sync and share solution
|
|
4
|
-
* See the LICENSE file for licensing details
|
|
5
|
-
*/ "use strict";
|
|
1
|
+
"use strict";
|
|
6
2
|
Object.defineProperty(exports, "__esModule", {
|
|
7
3
|
value: true
|
|
8
4
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../backend/src/applications/admin/admin.module.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../../../../backend/src/applications/admin/admin.module.ts"],"sourcesContent":["import { Module } from '@nestjs/common'\nimport { AdminSchedulerService } from './services/admin-scheduler.service'\nimport { AdminService } from './services/admin.service'\n\n@Module({\n controllers: [],\n providers: [AdminService, AdminSchedulerService]\n})\nexport class AdminModule {}\n"],"names":["AdminModule","controllers","providers","AdminService","AdminSchedulerService"],"mappings":";;;;+BAQaA;;;eAAAA;;;wBARU;uCACe;8BACT;;;;;;;AAMtB,IAAA,AAAMA,cAAN,MAAMA;AAAa;;;QAHxBC,aAAa,EAAE;QACfC,WAAW;YAACC,0BAAY;YAAEC,4CAAqB;SAAC"}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright (C) 2012-2025 Johan Legrand <johan.legrand@sync-in.com>
|
|
3
|
-
* This file is part of Sync-in | The open source file sync and share solution
|
|
4
|
-
* See the LICENSE file for licensing details
|
|
5
|
-
*/ "use strict";
|
|
1
|
+
"use strict";
|
|
6
2
|
Object.defineProperty(exports, "__esModule", {
|
|
7
3
|
value: true
|
|
8
4
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../backend/src/applications/admin/constants/routes.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../../../../../backend/src/applications/admin/constants/routes.ts"],"sourcesContent":["export const ADMIN_ROUTE = {\n BASE: '/api/admin'\n}\n"],"names":["ADMIN_ROUTE","BASE"],"mappings":";;;;+BAAaA;;;eAAAA;;;AAAN,MAAMA,cAAc;IACzBC,MAAM;AACR"}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright (C) 2012-2025 Johan Legrand <johan.legrand@sync-in.com>
|
|
3
|
-
* This file is part of Sync-in | The open source file sync and share solution
|
|
4
|
-
* See the LICENSE file for licensing details
|
|
5
|
-
*/ "use strict";
|
|
1
|
+
"use strict";
|
|
6
2
|
Object.defineProperty(exports, "__esModule", {
|
|
7
3
|
value: true
|
|
8
4
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../backend/src/applications/admin/interfaces/check-update.interfaces.ts"],"
|
|
1
|
+
{"version":3,"sources":["../../../../../backend/src/applications/admin/interfaces/check-update.interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright (C) 2012-2025 Johan Legrand <johan.legrand@sync-in.com>
|
|
3
|
-
* This file is part of Sync-in | The open source file sync and share solution
|
|
4
|
-
* See the LICENSE file for licensing details
|
|
5
|
-
*/ "use strict";
|
|
1
|
+
"use strict";
|
|
6
2
|
Object.defineProperty(exports, "__esModule", {
|
|
7
3
|
value: true
|
|
8
4
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../backend/src/applications/admin/services/admin-scheduler.service.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../../../../../backend/src/applications/admin/services/admin-scheduler.service.ts"],"sourcesContent":["import { Injectable } from '@nestjs/common'\nimport { Cron, CronExpression } from '@nestjs/schedule'\nimport { setTimeout } from 'node:timers/promises'\nimport { AdminService } from './admin.service'\n\n@Injectable()\nexport class AdminSchedulerService {\n constructor(private readonly adminService: AdminService) {}\n\n @Cron(CronExpression.EVERY_DAY_AT_9AM)\n async checkServerUpdateAndNotify() {\n // Apply a random delay so instances don't trigger the check simultaneously\n const randomDelay = Math.floor(Math.random() * 900 * 1000)\n await setTimeout(randomDelay)\n await this.adminService.checkServerUpdateAndNotify()\n }\n}\n"],"names":["AdminSchedulerService","checkServerUpdateAndNotify","randomDelay","Math","floor","random","setTimeout","adminService","EVERY_DAY_AT_9AM"],"mappings":";;;;+BAMaA;;;eAAAA;;;wBANc;0BACU;0BACV;8BACE;;;;;;;;;;AAGtB,IAAA,AAAMA,wBAAN,MAAMA;IAGX,MACMC,6BAA6B;QACjC,2EAA2E;QAC3E,MAAMC,cAAcC,KAAKC,KAAK,CAACD,KAAKE,MAAM,KAAK,MAAM;QACrD,MAAMC,IAAAA,oBAAU,EAACJ;QACjB,MAAM,IAAI,CAACK,YAAY,CAACN,0BAA0B;IACpD;IARA,YAAY,AAAiBM,YAA0B,CAAE;aAA5BA,eAAAA;IAA6B;AAS5D;;iDAPuBC"}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright (C) 2012-2025 Johan Legrand <johan.legrand@sync-in.com>
|
|
3
|
-
* This file is part of Sync-in | The open source file sync and share solution
|
|
4
|
-
* See the LICENSE file for licensing details
|
|
5
|
-
*/ "use strict";
|
|
1
|
+
"use strict";
|
|
6
2
|
Object.defineProperty(exports, "__esModule", {
|
|
7
3
|
value: true
|
|
8
4
|
});
|
|
@@ -41,11 +37,17 @@ let AdminService = class AdminService {
|
|
|
41
37
|
});
|
|
42
38
|
lastVersion = res.data?.tag_name || '';
|
|
43
39
|
} catch (e) {
|
|
44
|
-
this.logger.warn(
|
|
40
|
+
this.logger.warn({
|
|
41
|
+
tag: this.checkServerUpdateAndNotify.name,
|
|
42
|
+
msg: `unable to check update: ${e}`
|
|
43
|
+
});
|
|
45
44
|
return;
|
|
46
45
|
}
|
|
47
46
|
if (!lastVersion.startsWith('v')) {
|
|
48
|
-
this.logger.warn(
|
|
47
|
+
this.logger.warn({
|
|
48
|
+
tag: this.checkServerUpdateAndNotify.name,
|
|
49
|
+
msg: `unable to check version: ${lastVersion}`
|
|
50
|
+
});
|
|
49
51
|
return;
|
|
50
52
|
}
|
|
51
53
|
lastVersion = lastVersion.slice(1); // remove 'v' to compare with the current version
|
|
@@ -78,7 +80,10 @@ let AdminService = class AdminService {
|
|
|
78
80
|
};
|
|
79
81
|
this.notificationsManager.create(adminsToNotify, notification).then(()=>this.cache.set(this.checkServerUpdateAndNotify.name, {
|
|
80
82
|
version: lastVersion
|
|
81
|
-
}, 0)).catch((e)=>this.logger.error(
|
|
83
|
+
}, 0)).catch((e)=>this.logger.error({
|
|
84
|
+
tag: this.checkServerUpdateAndNotify.name,
|
|
85
|
+
msg: `${e}`
|
|
86
|
+
}));
|
|
82
87
|
}
|
|
83
88
|
constructor(http, cache, notificationsManager, adminUsersQueries){
|
|
84
89
|
this.http = http;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../backend/src/applications/admin/services/admin.service.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../../../../../backend/src/applications/admin/services/admin.service.ts"],"sourcesContent":["import { HttpService } from '@nestjs/axios'\nimport { Injectable, Logger } from '@nestjs/common'\nimport type { AxiosResponse } from 'axios'\nimport { VERSION } from '../../../app.constants'\nimport { APP_URL } from '../../../common/shared'\nimport { Cache } from '../../../infrastructure/cache/services/cache.service'\nimport { HTTP_METHOD } from '../../applications.constants'\nimport { NOTIFICATION_APP, NOTIFICATION_APP_EVENT } from '../../notifications/constants/notifications'\nimport { NotificationContent } from '../../notifications/interfaces/notification-properties.interface'\nimport type { UserMailNotification } from '../../notifications/interfaces/user-mail-notification.interface'\nimport { NotificationsManager } from '../../notifications/services/notifications-manager.service'\nimport { AdminUsersQueries } from '../../users/services/admin-users-queries.service'\nimport type { ServerReleaseNotification, ServerReleaseVersionManifest } from '../interfaces/check-update.interfaces'\nimport { isServerUpdateAvailable } from '../utils/check-update'\n\n@Injectable()\nexport class AdminService {\n private readonly logger = new Logger(AdminService.name)\n\n constructor(\n private readonly http: HttpService,\n private readonly cache: Cache,\n private readonly notificationsManager: NotificationsManager,\n private readonly adminUsersQueries: AdminUsersQueries\n ) {}\n\n async checkServerUpdateAndNotify() {\n let lastVersion: string\n try {\n const res: AxiosResponse<ServerReleaseVersionManifest> = await this.http.axiosRef({\n method: HTTP_METHOD.GET,\n url: APP_URL.SERVER_VERSION_MANIFEST\n })\n lastVersion = res.data?.tag_name || ''\n } catch (e) {\n this.logger.warn({ tag: this.checkServerUpdateAndNotify.name, msg: `unable to check update: ${e}` })\n return\n }\n if (!lastVersion.startsWith('v')) {\n this.logger.warn({ tag: this.checkServerUpdateAndNotify.name, msg: `unable to check version: ${lastVersion}` })\n return\n }\n lastVersion = lastVersion.slice(1) // remove 'v' to compare with the current version\n if (!isServerUpdateAvailable(VERSION, lastVersion)) {\n return\n }\n // Get the last version that was notified to administrators\n const notifiedVersion: ServerReleaseNotification = await this.cache.get(this.checkServerUpdateAndNotify.name)\n if (!notifiedVersion?.version) {\n // The version was never stored, do it\n await this.cache.set(this.checkServerUpdateAndNotify.name, { version: VERSION } satisfies ServerReleaseNotification, 0)\n return\n }\n if (notifiedVersion.version === lastVersion) {\n // Notification was already sent to administrators\n return\n }\n const adminsToNotify: UserMailNotification[] = await this.adminUsersQueries.listAdminsToNotify()\n if (!adminsToNotify.length) {\n return\n }\n const notification: NotificationContent = {\n app: NOTIFICATION_APP.UPDATE_AVAILABLE,\n event: NOTIFICATION_APP_EVENT.UPDATE_AVAILABLE,\n element: lastVersion,\n externalUrl: APP_URL.RELEASES,\n url: null\n }\n this.notificationsManager\n .create(adminsToNotify, notification)\n .then(() => this.cache.set(this.checkServerUpdateAndNotify.name, { version: lastVersion } satisfies ServerReleaseNotification, 0))\n .catch((e: Error) => this.logger.error({ tag: this.checkServerUpdateAndNotify.name, msg: `${e}` }))\n }\n}\n"],"names":["AdminService","checkServerUpdateAndNotify","lastVersion","res","http","axiosRef","method","HTTP_METHOD","GET","url","APP_URL","SERVER_VERSION_MANIFEST","data","tag_name","e","logger","warn","tag","name","msg","startsWith","slice","isServerUpdateAvailable","VERSION","notifiedVersion","cache","get","version","set","adminsToNotify","adminUsersQueries","listAdminsToNotify","length","notification","app","NOTIFICATION_APP","UPDATE_AVAILABLE","event","NOTIFICATION_APP_EVENT","element","externalUrl","RELEASES","notificationsManager","create","then","catch","error","Logger"],"mappings":";;;;+BAgBaA;;;eAAAA;;;uBAhBe;wBACO;8BAEX;wBACA;8BACF;uCACM;+BAC6B;6CAGpB;0CACH;6BAEM;;;;;;;;;;AAGjC,IAAA,AAAMA,eAAN,MAAMA;IAUX,MAAMC,6BAA6B;QACjC,IAAIC;QACJ,IAAI;YACF,MAAMC,MAAmD,MAAM,IAAI,CAACC,IAAI,CAACC,QAAQ,CAAC;gBAChFC,QAAQC,kCAAW,CAACC,GAAG;gBACvBC,KAAKC,eAAO,CAACC,uBAAuB;YACtC;YACAT,cAAcC,IAAIS,IAAI,EAAEC,YAAY;QACtC,EAAE,OAAOC,GAAG;YACV,IAAI,CAACC,MAAM,CAACC,IAAI,CAAC;gBAAEC,KAAK,IAAI,CAAChB,0BAA0B,CAACiB,IAAI;gBAAEC,KAAK,CAAC,wBAAwB,EAAEL,GAAG;YAAC;YAClG;QACF;QACA,IAAI,CAACZ,YAAYkB,UAAU,CAAC,MAAM;YAChC,IAAI,CAACL,MAAM,CAACC,IAAI,CAAC;gBAAEC,KAAK,IAAI,CAAChB,0BAA0B,CAACiB,IAAI;gBAAEC,KAAK,CAAC,yBAAyB,EAAEjB,aAAa;YAAC;YAC7G;QACF;QACAA,cAAcA,YAAYmB,KAAK,CAAC,IAAG,iDAAiD;QACpF,IAAI,CAACC,IAAAA,oCAAuB,EAACC,qBAAO,EAAErB,cAAc;YAClD;QACF;QACA,2DAA2D;QAC3D,MAAMsB,kBAA6C,MAAM,IAAI,CAACC,KAAK,CAACC,GAAG,CAAC,IAAI,CAACzB,0BAA0B,CAACiB,IAAI;QAC5G,IAAI,CAACM,iBAAiBG,SAAS;YAC7B,sCAAsC;YACtC,MAAM,IAAI,CAACF,KAAK,CAACG,GAAG,CAAC,IAAI,CAAC3B,0BAA0B,CAACiB,IAAI,EAAE;gBAAES,SAASJ,qBAAO;YAAC,GAAuC;YACrH;QACF;QACA,IAAIC,gBAAgBG,OAAO,KAAKzB,aAAa;YAC3C,kDAAkD;YAClD;QACF;QACA,MAAM2B,iBAAyC,MAAM,IAAI,CAACC,iBAAiB,CAACC,kBAAkB;QAC9F,IAAI,CAACF,eAAeG,MAAM,EAAE;YAC1B;QACF;QACA,MAAMC,eAAoC;YACxCC,KAAKC,+BAAgB,CAACC,gBAAgB;YACtCC,OAAOC,qCAAsB,CAACF,gBAAgB;YAC9CG,SAASrC;YACTsC,aAAa9B,eAAO,CAAC+B,QAAQ;YAC7BhC,KAAK;QACP;QACA,IAAI,CAACiC,oBAAoB,CACtBC,MAAM,CAACd,gBAAgBI,cACvBW,IAAI,CAAC,IAAM,IAAI,CAACnB,KAAK,CAACG,GAAG,CAAC,IAAI,CAAC3B,0BAA0B,CAACiB,IAAI,EAAE;gBAAES,SAASzB;YAAY,GAAuC,IAC9H2C,KAAK,CAAC,CAAC/B,IAAa,IAAI,CAACC,MAAM,CAAC+B,KAAK,CAAC;gBAAE7B,KAAK,IAAI,CAAChB,0BAA0B,CAACiB,IAAI;gBAAEC,KAAK,GAAGL,GAAG;YAAC;IACpG;IArDA,YACE,AAAiBV,IAAiB,EAClC,AAAiBqB,KAAY,EAC7B,AAAiBiB,oBAA0C,EAC3D,AAAiBZ,iBAAoC,CACrD;aAJiB1B,OAAAA;aACAqB,QAAAA;aACAiB,uBAAAA;aACAZ,oBAAAA;aANFf,SAAS,IAAIgC,cAAM,CAAC/C,aAAakB,IAAI;IAOnD;AAiDL"}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright (C) 2012-2025 Johan Legrand <johan.legrand@sync-in.com>
|
|
3
|
-
* This file is part of Sync-in | The open source file sync and share solution
|
|
4
|
-
* See the LICENSE file for licensing details
|
|
5
|
-
*/ "use strict";
|
|
1
|
+
"use strict";
|
|
6
2
|
Object.defineProperty(exports, "__esModule", {
|
|
7
3
|
value: true
|
|
8
4
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../backend/src/applications/admin/services/admin.service.spec.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../../../../../backend/src/applications/admin/services/admin.service.spec.ts"],"sourcesContent":["import { HttpService } from '@nestjs/axios'\nimport { Test, TestingModule } from '@nestjs/testing'\nimport { Cache } from '../../../infrastructure/cache/services/cache.service'\nimport { NotificationsManager } from '../../notifications/services/notifications-manager.service'\nimport { AdminUsersQueries } from '../../users/services/admin-users-queries.service'\nimport { AdminService } from './admin.service'\n\ndescribe(AdminService.name, () => {\n let service: AdminService\n\n beforeAll(async () => {\n const module: TestingModule = await Test.createTestingModule({\n providers: [\n AdminService,\n { provide: HttpService, useValue: {} },\n { provide: Cache, useValue: {} },\n { provide: AdminUsersQueries, useValue: {} },\n { provide: NotificationsManager, useValue: {} }\n ]\n }).compile()\n\n service = module.get<AdminService>(AdminService)\n })\n\n it('should be defined', () => {\n expect(service).toBeDefined()\n })\n})\n"],"names":["describe","AdminService","name","service","beforeAll","module","Test","createTestingModule","providers","provide","HttpService","useValue","Cache","AdminUsersQueries","NotificationsManager","compile","get","it","expect","toBeDefined"],"mappings":";;;;uBAA4B;yBACQ;8BACd;6CACe;0CACH;8BACL;AAE7BA,SAASC,0BAAY,CAACC,IAAI,EAAE;IAC1B,IAAIC;IAEJC,UAAU;QACR,MAAMC,SAAwB,MAAMC,aAAI,CAACC,mBAAmB,CAAC;YAC3DC,WAAW;gBACTP,0BAAY;gBACZ;oBAAEQ,SAASC,kBAAW;oBAAEC,UAAU,CAAC;gBAAE;gBACrC;oBAAEF,SAASG,mBAAK;oBAAED,UAAU,CAAC;gBAAE;gBAC/B;oBAAEF,SAASI,2CAAiB;oBAAEF,UAAU,CAAC;gBAAE;gBAC3C;oBAAEF,SAASK,iDAAoB;oBAAEH,UAAU,CAAC;gBAAE;aAC/C;QACH,GAAGI,OAAO;QAEVZ,UAAUE,OAAOW,GAAG,CAAef,0BAAY;IACjD;IAEAgB,GAAG,qBAAqB;QACtBC,OAAOf,SAASgB,WAAW;IAC7B;AACF"}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright (C) 2012-2025 Johan Legrand <johan.legrand@sync-in.com>
|
|
3
|
-
* This file is part of Sync-in | The open source file sync and share solution
|
|
4
|
-
* See the LICENSE file for licensing details
|
|
5
|
-
*/ "use strict";
|
|
1
|
+
"use strict";
|
|
6
2
|
Object.defineProperty(exports, "__esModule", {
|
|
7
3
|
value: true
|
|
8
4
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../backend/src/applications/admin/utils/check-update.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../../../../../backend/src/applications/admin/utils/check-update.ts"],"sourcesContent":["export function isServerUpdateAvailable(current: string, latest: string) {\n const c = current.split('.').map(Number)\n const l = latest.split('.').map(Number)\n const max = Math.max(c.length, l.length)\n\n for (let i = 0; i < max; i++) {\n const cv = c[i] || 0\n const lv = l[i] || 0\n\n if (lv > cv) return true\n if (lv < cv) return false\n }\n return false\n}\n"],"names":["isServerUpdateAvailable","current","latest","c","split","map","Number","l","max","Math","length","i","cv","lv"],"mappings":";;;;+BAAgBA;;;eAAAA;;;AAAT,SAASA,wBAAwBC,OAAe,EAAEC,MAAc;IACrE,MAAMC,IAAIF,QAAQG,KAAK,CAAC,KAAKC,GAAG,CAACC;IACjC,MAAMC,IAAIL,OAAOE,KAAK,CAAC,KAAKC,GAAG,CAACC;IAChC,MAAME,MAAMC,KAAKD,GAAG,CAACL,EAAEO,MAAM,EAAEH,EAAEG,MAAM;IAEvC,IAAK,IAAIC,IAAI,GAAGA,IAAIH,KAAKG,IAAK;QAC5B,MAAMC,KAAKT,CAAC,CAACQ,EAAE,IAAI;QACnB,MAAME,KAAKN,CAAC,CAACI,EAAE,IAAI;QAEnB,IAAIE,KAAKD,IAAI,OAAO;QACpB,IAAIC,KAAKD,IAAI,OAAO;IACtB;IACA,OAAO;AACT"}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright (C) 2012-2025 Johan Legrand <johan.legrand@sync-in.com>
|
|
3
|
-
* This file is part of Sync-in | The open source file sync and share solution
|
|
4
|
-
* See the LICENSE file for licensing details
|
|
5
|
-
*/ "use strict";
|
|
1
|
+
"use strict";
|
|
6
2
|
Object.defineProperty(exports, "__esModule", {
|
|
7
3
|
value: true
|
|
8
4
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../backend/src/applications/applications.config.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../../../backend/src/applications/applications.config.ts"],"sourcesContent":["import { Type } from 'class-transformer'\nimport { IsDefined, IsNotEmptyObject, IsObject, ValidateNested } from 'class-validator'\nimport { FilesConfig } from './files/files.config'\nimport { AppStoreConfig } from './sync/sync.config'\n\nexport class ApplicationsConfig {\n @IsDefined()\n @IsObject()\n @IsNotEmptyObject()\n @ValidateNested()\n @Type(() => FilesConfig)\n files: FilesConfig\n\n @IsDefined()\n @IsObject()\n @IsNotEmptyObject()\n @ValidateNested()\n @Type(() => AppStoreConfig)\n appStore: AppStoreConfig = new AppStoreConfig()\n}\n"],"names":["ApplicationsConfig","appStore","AppStoreConfig","FilesConfig"],"mappings":";;;;+BAKaA;;;eAAAA;;;kCALQ;gCACiD;6BAC1C;4BACG;;;;;;;;;;AAExB,IAAA,AAAMA,qBAAN,MAAMA;;aAaXC,WAA2B,IAAIC,0BAAc;;AAC/C;;;;;;oCATcC,wBAAW;;;;;;;;oCAOXD,0BAAc"}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright (C) 2012-2025 Johan Legrand <johan.legrand@sync-in.com>
|
|
3
|
-
* This file is part of Sync-in | The open source file sync and share solution
|
|
4
|
-
* See the LICENSE file for licensing details
|
|
5
|
-
*/ "use strict";
|
|
1
|
+
"use strict";
|
|
6
2
|
Object.defineProperty(exports, "__esModule", {
|
|
7
3
|
value: true
|
|
8
4
|
});
|
|
@@ -28,6 +24,9 @@ _export(exports, {
|
|
|
28
24
|
get HTTP_STANDARD_METHOD () {
|
|
29
25
|
return HTTP_STANDARD_METHOD;
|
|
30
26
|
},
|
|
27
|
+
get HTTP_VERSION () {
|
|
28
|
+
return HTTP_VERSION;
|
|
29
|
+
},
|
|
31
30
|
get HTTP_WEBDAV_METHOD () {
|
|
32
31
|
return HTTP_WEBDAV_METHOD;
|
|
33
32
|
}
|
|
@@ -65,5 +64,6 @@ const HTTP_CSRF_IGNORED_METHODS = new Set([
|
|
|
65
64
|
HTTP_METHOD.OPTIONS,
|
|
66
65
|
HTTP_METHOD.SEARCH
|
|
67
66
|
]);
|
|
67
|
+
const HTTP_VERSION = 'HTTP/1.1';
|
|
68
68
|
|
|
69
69
|
//# sourceMappingURL=applications.constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../backend/src/applications/applications.constants.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../../../backend/src/applications/applications.constants.ts"],"sourcesContent":["export const APP_BASE_ROUTE = '/api/app'\n\nexport const HTTP_WEBDAV_METHOD = {\n PROPFIND: 'PROPFIND',\n PROPPATCH: 'PROPPATCH',\n MKCOL: 'MKCOL',\n COPY: 'COPY',\n MOVE: 'MOVE',\n LOCK: 'LOCK',\n UNLOCK: 'UNLOCK'\n} as const\n\nexport const HTTP_EXTRA_METHODS = {\n SEARCH: 'SEARCH'\n}\n\nexport const HTTP_STANDARD_METHOD = {\n HEAD: 'HEAD',\n OPTIONS: 'OPTIONS',\n GET: 'GET',\n POST: 'POST',\n PATCH: 'PATCH',\n PUT: 'PUT',\n DELETE: 'DELETE'\n} as const\n\nexport const HTTP_METHOD = {\n ...HTTP_STANDARD_METHOD,\n ...HTTP_WEBDAV_METHOD,\n ...HTTP_EXTRA_METHODS\n} as const\n\nexport const HTTP_CSRF_IGNORED_METHODS = new Set<string>([HTTP_METHOD.GET, HTTP_METHOD.HEAD, HTTP_METHOD.OPTIONS, HTTP_METHOD.SEARCH])\n\nexport const HTTP_VERSION = 'HTTP/1.1'\n"],"names":["APP_BASE_ROUTE","HTTP_CSRF_IGNORED_METHODS","HTTP_EXTRA_METHODS","HTTP_METHOD","HTTP_STANDARD_METHOD","HTTP_VERSION","HTTP_WEBDAV_METHOD","PROPFIND","PROPPATCH","MKCOL","COPY","MOVE","LOCK","UNLOCK","SEARCH","HEAD","OPTIONS","GET","POST","PATCH","PUT","DELETE","Set"],"mappings":";;;;;;;;;;;QAAaA;eAAAA;;QAgCAC;eAAAA;;QApBAC;eAAAA;;QAcAC;eAAAA;;QAVAC;eAAAA;;QAkBAC;eAAAA;;QAhCAC;eAAAA;;;AAFN,MAAMN,iBAAiB;AAEvB,MAAMM,qBAAqB;IAChCC,UAAU;IACVC,WAAW;IACXC,OAAO;IACPC,MAAM;IACNC,MAAM;IACNC,MAAM;IACNC,QAAQ;AACV;AAEO,MAAMX,qBAAqB;IAChCY,QAAQ;AACV;AAEO,MAAMV,uBAAuB;IAClCW,MAAM;IACNC,SAAS;IACTC,KAAK;IACLC,MAAM;IACNC,OAAO;IACPC,KAAK;IACLC,QAAQ;AACV;AAEO,MAAMlB,cAAc;IACzB,GAAGC,oBAAoB;IACvB,GAAGE,kBAAkB;IACrB,GAAGJ,kBAAkB;AACvB;AAEO,MAAMD,4BAA4B,IAAIqB,IAAY;IAACnB,YAAYc,GAAG;IAAEd,YAAYY,IAAI;IAAEZ,YAAYa,OAAO;IAAEb,YAAYW,MAAM;CAAC;AAE9H,MAAMT,eAAe"}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright (C) 2012-2025 Johan Legrand <johan.legrand@sync-in.com>
|
|
3
|
-
* This file is part of Sync-in | The open source file sync and share solution
|
|
4
|
-
* See the LICENSE file for licensing details
|
|
5
|
-
*/ "use strict";
|
|
1
|
+
"use strict";
|
|
6
2
|
Object.defineProperty(exports, "__esModule", {
|
|
7
3
|
value: true
|
|
8
4
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../backend/src/applications/applications.module.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../../../backend/src/applications/applications.module.ts"],"sourcesContent":["import { Global, Module } from '@nestjs/common'\nimport { AdminModule } from './admin/admin.module'\nimport { CommentsModule } from './comments/comments.module'\nimport { FilesModule } from './files/files.module'\nimport { NotificationsModule } from './notifications/notifications.module'\nimport { SharesModule } from './shares/shares.module'\nimport { SpacesModule } from './spaces/spaces.module'\nimport { SyncModule } from './sync/sync.module'\nimport { UsersModule } from './users/users.module'\nimport { WebDAVModule } from './webdav/webdav.module'\n\n@Global()\n@Module({\n imports: [UsersModule, SpacesModule, SharesModule, FilesModule, WebDAVModule, AdminModule, CommentsModule, NotificationsModule, SyncModule],\n exports: [UsersModule, SpacesModule, SharesModule, FilesModule, WebDAVModule, CommentsModule, NotificationsModule]\n})\nexport class ApplicationsModule {}\n"],"names":["ApplicationsModule","imports","UsersModule","SpacesModule","SharesModule","FilesModule","WebDAVModule","AdminModule","CommentsModule","NotificationsModule","SyncModule","exports"],"mappings":";;;;+BAgBaA;;;eAAAA;;;wBAhBkB;6BACH;gCACG;6BACH;qCACQ;8BACP;8BACA;4BACF;6BACC;8BACC;;;;;;;AAOtB,IAAA,AAAMA,qBAAN,MAAMA;AAAoB;;;;QAH/BC,SAAS;YAACC,wBAAW;YAAEC,0BAAY;YAAEC,0BAAY;YAAEC,wBAAW;YAAEC,0BAAY;YAAEC,wBAAW;YAAEC,8BAAc;YAAEC,wCAAmB;YAAEC,sBAAU;SAAC;QAC3IC,SAAS;YAACT,wBAAW;YAAEC,0BAAY;YAAEC,0BAAY;YAAEC,wBAAW;YAAEC,0BAAY;YAAEE,8BAAc;YAAEC,wCAAmB;SAAC"}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright (C) 2012-2025 Johan Legrand <johan.legrand@sync-in.com>
|
|
3
|
-
* This file is part of Sync-in | The open source file sync and share solution
|
|
4
|
-
* See the LICENSE file for licensing details
|
|
5
|
-
*/ "use strict";
|
|
1
|
+
"use strict";
|
|
6
2
|
Object.defineProperty(exports, "__esModule", {
|
|
7
3
|
value: true
|
|
8
4
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../backend/src/applications/comments/comments.controller.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../../../../backend/src/applications/comments/comments.controller.ts"],"sourcesContent":["import { Body, Controller, Delete, Get, Patch, Post, Query, UseGuards, UseInterceptors } from '@nestjs/common'\nimport { ContextInterceptor } from '../../infrastructure/context/interceptors/context.interceptor'\nimport { SkipSpaceGuard } from '../spaces/decorators/space-skip-guard.decorator'\nimport { SkipSpacePermissionsCheck } from '../spaces/decorators/space-skip-permissions.decorator'\nimport { GetSpace } from '../spaces/decorators/space.decorator'\nimport { SpaceGuard } from '../spaces/guards/space.guard'\nimport { SpaceEnv } from '../spaces/models/space-env.model'\nimport { GetUser } from '../users/decorators/user.decorator'\nimport type { UserModel } from '../users/models/user.model'\nimport { COMMENTS_ROUTE } from './constants/routes'\nimport { CreateOrUpdateCommentDto, DeleteCommentDto } from './dto/comment.dto'\nimport { CommentRecent } from './interfaces/comment-recent.interface'\nimport { Comment } from './schemas/comment.interface'\nimport { CommentsManager } from './services/comments-manager.service'\n\n@Controller(COMMENTS_ROUTE.BASE)\n@SkipSpacePermissionsCheck()\n@UseGuards(SpaceGuard)\nexport class CommentsController {\n constructor(private readonly commentsManager: CommentsManager) {}\n\n @Get(`${COMMENTS_ROUTE.SPACES}/*`)\n getFromSpace(@GetUser() user: UserModel, @GetSpace() space: SpaceEnv): Promise<Comment[]> {\n return this.commentsManager.getComments(user, space)\n }\n\n @Post(`${COMMENTS_ROUTE.SPACES}/*`)\n @UseInterceptors(ContextInterceptor)\n createFromSpace(@GetUser() user: UserModel, @GetSpace() space: SpaceEnv, @Body() createCommentDto: CreateOrUpdateCommentDto): Promise<Comment> {\n return this.commentsManager.createComment(user, space, createCommentDto)\n }\n\n @Patch(`${COMMENTS_ROUTE.SPACES}/*`)\n updateFromSpace(@GetUser() user: UserModel, @GetSpace() space: SpaceEnv, @Body() updateCommentDto: CreateOrUpdateCommentDto): Promise<Comment> {\n return this.commentsManager.updateComment(user, space, updateCommentDto)\n }\n\n @Delete(`${COMMENTS_ROUTE.SPACES}/*`)\n deleteFromSpace(@GetUser() user: UserModel, @GetSpace() space: SpaceEnv, @Body() deleteCommentDto: DeleteCommentDto): Promise<void> {\n return this.commentsManager.deleteComment(user, space, deleteCommentDto)\n }\n\n @Get(COMMENTS_ROUTE.RECENTS)\n @SkipSpaceGuard()\n getRecents(@GetUser() user: UserModel, @Query('limit') limit: number = 10): Promise<CommentRecent[]> {\n return this.commentsManager.getRecents(user, limit)\n }\n}\n"],"names":["CommentsController","getFromSpace","user","space","commentsManager","getComments","createFromSpace","createCommentDto","createComment","updateFromSpace","updateCommentDto","updateComment","deleteFromSpace","deleteCommentDto","deleteComment","getRecents","limit","COMMENTS_ROUTE","SPACES","RECENTS","BASE"],"mappings":";;;;+BAkBaA;;;eAAAA;;;wBAlBiF;oCAC3D;yCACJ;+CACW;gCACjB;4BACE;+BACF;+BACD;wBAEO;4BAC4B;wCAG3B;;;;;;;;;;;;;;;AAKzB,IAAA,AAAMA,qBAAN,MAAMA;IAIXC,aAAa,AAAWC,IAAe,EAAE,AAAYC,KAAe,EAAsB;QACxF,OAAO,IAAI,CAACC,eAAe,CAACC,WAAW,CAACH,MAAMC;IAChD;IAIAG,gBAAgB,AAAWJ,IAAe,EAAE,AAAYC,KAAe,EAAE,AAAQI,gBAA0C,EAAoB;QAC7I,OAAO,IAAI,CAACH,eAAe,CAACI,aAAa,CAACN,MAAMC,OAAOI;IACzD;IAGAE,gBAAgB,AAAWP,IAAe,EAAE,AAAYC,KAAe,EAAE,AAAQO,gBAA0C,EAAoB;QAC7I,OAAO,IAAI,CAACN,eAAe,CAACO,aAAa,CAACT,MAAMC,OAAOO;IACzD;IAGAE,gBAAgB,AAAWV,IAAe,EAAE,AAAYC,KAAe,EAAE,AAAQU,gBAAkC,EAAiB;QAClI,OAAO,IAAI,CAACT,eAAe,CAACU,aAAa,CAACZ,MAAMC,OAAOU;IACzD;IAIAE,WAAW,AAAWb,IAAe,EAAE,AAAgBc,QAAgB,EAAE,EAA4B;QACnG,OAAO,IAAI,CAACZ,eAAe,CAACW,UAAU,CAACb,MAAMc;IAC/C;IA3BA,YAAY,AAAiBZ,eAAgC,CAAE;aAAlCA,kBAAAA;IAAmC;AA4BlE;;wBA1BUa,sBAAc,CAACC,MAAM,CAAC,EAAE;;;;;;;;;;;yBAKvBD,sBAAc,CAACC,MAAM,CAAC,EAAE;;;;;;;;;;;;;;0BAMvBD,sBAAc,CAACC,MAAM,CAAC,EAAE;;;;;;;;;;;;;2BAKvBD,sBAAc,CAACC,MAAM,CAAC,EAAE;;;;;;;;;;;;;4CAKfC;;;;;;;;;;;;mDA3BKC"}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright (C) 2012-2025 Johan Legrand <johan.legrand@sync-in.com>
|
|
3
|
-
* This file is part of Sync-in | The open source file sync and share solution
|
|
4
|
-
* See the LICENSE file for licensing details
|
|
5
|
-
*/ "use strict";
|
|
1
|
+
"use strict";
|
|
6
2
|
Object.defineProperty(exports, "__esModule", {
|
|
7
3
|
value: true
|
|
8
4
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../backend/src/applications/comments/comments.controller.spec.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../../../../backend/src/applications/comments/comments.controller.spec.ts"],"sourcesContent":["import { Test, TestingModule } from '@nestjs/testing'\nimport { Cache } from '../../infrastructure/cache/services/cache.service'\nimport { ContextManager } from '../../infrastructure/context/services/context-manager.service'\nimport { DB_TOKEN_PROVIDER } from '../../infrastructure/database/constants'\nimport { FilesQueries } from '../files/services/files-queries.service'\nimport { LinksQueries } from '../links/services/links-queries.service'\nimport { NotificationsManager } from '../notifications/services/notifications-manager.service'\nimport { SharesManager } from '../shares/services/shares-manager.service'\nimport { SharesQueries } from '../shares/services/shares-queries.service'\nimport { SpacesManager } from '../spaces/services/spaces-manager.service'\nimport { SpacesQueries } from '../spaces/services/spaces-queries.service'\nimport { UsersQueries } from '../users/services/users-queries.service'\nimport { CommentsController } from './comments.controller'\nimport { CommentsManager } from './services/comments-manager.service'\nimport { CommentsQueries } from './services/comments-queries.service'\n\ndescribe(CommentsController.name, () => {\n let commentsController: CommentsController\n let commentsManager: jest.Mocked<CommentsManager>\n\n const user: any = { id: 'user-1' }\n const space: any = { id: 'space-1' }\n\n const commentsSample = [{ id: 'c1' }, { id: 'c2' }] as any\n const commentSample = { id: 'c1', text: 'hello' } as any\n\n const commentsManagerMock: jest.Mocked<CommentsManager> = {\n getComments: jest.fn(),\n createComment: jest.fn(),\n updateComment: jest.fn(),\n deleteComment: jest.fn(),\n getRecents: jest.fn()\n } as any\n\n beforeAll(async () => {\n const module: TestingModule = await Test.createTestingModule({\n controllers: [CommentsController],\n providers: [\n { provide: NotificationsManager, useValue: {} },\n { provide: DB_TOKEN_PROVIDER, useValue: {} },\n { provide: Cache, useValue: {} },\n ContextManager,\n { provide: CommentsManager, useValue: commentsManagerMock },\n CommentsQueries,\n SpacesManager,\n SpacesQueries,\n FilesQueries,\n SharesManager,\n SharesQueries,\n UsersQueries,\n LinksQueries\n ]\n }).compile()\n\n commentsController = module.get<CommentsController>(CommentsController)\n commentsManager = module.get(CommentsManager)\n })\n\n beforeEach(() => {\n jest.clearAllMocks()\n })\n\n it('should be defined', () => {\n expect(commentsController).toBeDefined()\n })\n\n it('getFromSpace calls CommentsManager.getComments and returns the list', async () => {\n commentsManager.getComments.mockResolvedValueOnce(commentsSample)\n\n const res = await commentsController.getFromSpace(user, space)\n\n expect(commentsManager.getComments).toHaveBeenCalledTimes(1)\n expect(commentsManager.getComments).toHaveBeenCalledWith(user, space)\n expect(res).toEqual(commentsSample)\n })\n\n it('createFromSpace calls CommentsManager.createComment and returns the created comment', async () => {\n const dto: any = { text: 'new comment' }\n commentsManager.createComment.mockResolvedValueOnce(commentSample)\n\n const res = await commentsController.createFromSpace(user, space, dto)\n\n expect(commentsManager.createComment).toHaveBeenCalledTimes(1)\n expect(commentsManager.createComment).toHaveBeenCalledWith(user, space, dto)\n expect(res).toEqual(commentSample)\n })\n\n it('updateFromSpace calls CommentsManager.updateComment and returns the updated comment', async () => {\n const dto: any = { id: 'c1', text: 'updated' }\n const updated = { id: 'c1', text: 'updated' } as any\n commentsManager.updateComment.mockResolvedValueOnce(updated)\n\n const res = await commentsController.updateFromSpace(user, space, dto)\n\n expect(commentsManager.updateComment).toHaveBeenCalledTimes(1)\n expect(commentsManager.updateComment).toHaveBeenCalledWith(user, space, dto)\n expect(res).toEqual(updated)\n })\n\n it('deleteFromSpace calls CommentsManager.deleteComment', async () => {\n const dto: any = { id: 'c1' }\n commentsManager.deleteComment.mockResolvedValueOnce(undefined)\n\n await expect(commentsController.deleteFromSpace(user, space, dto)).resolves.toBeUndefined()\n\n expect(commentsManager.deleteComment).toHaveBeenCalledTimes(1)\n expect(commentsManager.deleteComment).toHaveBeenCalledWith(user, space, dto)\n })\n\n it('getRecents calls CommentsManager.getRecents with the provided limit', async () => {\n const recents = [{ id: 'r1' }] as any\n commentsManager.getRecents.mockResolvedValueOnce(recents)\n\n const res = await commentsController.getRecents(user, 5 as any)\n\n expect(commentsManager.getRecents).toHaveBeenCalledTimes(1)\n expect(commentsManager.getRecents).toHaveBeenCalledWith(user, 5)\n expect(res).toEqual(recents)\n })\n\n it('getRecents uses the default limit (10) when not provided', async () => {\n const recents = [{ id: 'r2' }] as any\n commentsManager.getRecents.mockResolvedValueOnce(recents)\n\n // Call with undefined to trigger the parameter default value\n const res = await commentsController.getRecents(user, undefined as any)\n\n expect(commentsManager.getRecents).toHaveBeenCalledTimes(1)\n expect(commentsManager.getRecents).toHaveBeenCalledWith(user, 10)\n expect(res).toEqual(recents)\n })\n})\n"],"names":["describe","CommentsController","name","commentsController","commentsManager","user","id","space","commentsSample","commentSample","text","commentsManagerMock","getComments","jest","fn","createComment","updateComment","deleteComment","getRecents","beforeAll","module","Test","createTestingModule","controllers","providers","provide","NotificationsManager","useValue","DB_TOKEN_PROVIDER","Cache","ContextManager","CommentsManager","CommentsQueries","SpacesManager","SpacesQueries","FilesQueries","SharesManager","SharesQueries","UsersQueries","LinksQueries","compile","get","beforeEach","clearAllMocks","it","expect","toBeDefined","mockResolvedValueOnce","res","getFromSpace","toHaveBeenCalledTimes","toHaveBeenCalledWith","toEqual","dto","createFromSpace","updated","updateFromSpace","undefined","deleteFromSpace","resolves","toBeUndefined","recents"],"mappings":"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"}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright (C) 2012-2025 Johan Legrand <johan.legrand@sync-in.com>
|
|
3
|
-
* This file is part of Sync-in | The open source file sync and share solution
|
|
4
|
-
* See the LICENSE file for licensing details
|
|
5
|
-
*/ "use strict";
|
|
1
|
+
"use strict";
|
|
6
2
|
Object.defineProperty(exports, "__esModule", {
|
|
7
3
|
value: true
|
|
8
4
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../backend/src/applications/comments/comments.module.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../../../../backend/src/applications/comments/comments.module.ts"],"sourcesContent":["import { Module } from '@nestjs/common'\nimport { CommentsController } from './comments.controller'\nimport { CommentsManager } from './services/comments-manager.service'\nimport { CommentsQueries } from './services/comments-queries.service'\n\n@Module({\n controllers: [CommentsController],\n providers: [CommentsManager, CommentsQueries]\n})\nexport class CommentsModule {}\n"],"names":["CommentsModule","controllers","CommentsController","providers","CommentsManager","CommentsQueries"],"mappings":";;;;+BASaA;;;eAAAA;;;wBATU;oCACY;wCACH;wCACA;;;;;;;AAMzB,IAAA,AAAMA,iBAAN,MAAMA;AAAgB;;;QAH3BC,aAAa;YAACC,sCAAkB;SAAC;QACjCC,WAAW;YAACC,uCAAe;YAAEC,uCAAe;SAAC"}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright (C) 2012-2025 Johan Legrand <johan.legrand@sync-in.com>
|
|
3
|
-
* This file is part of Sync-in | The open source file sync and share solution
|
|
4
|
-
* See the LICENSE file for licensing details
|
|
5
|
-
*/ "use strict";
|
|
1
|
+
"use strict";
|
|
6
2
|
Object.defineProperty(exports, "__esModule", {
|
|
7
3
|
value: true
|
|
8
4
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../backend/src/applications/comments/constants/routes.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../../../../../backend/src/applications/comments/constants/routes.ts"],"sourcesContent":["import { APP_BASE_ROUTE } from '../../applications.constants'\n\nexport const COMMENTS_ROUTE = {\n BASE: `${APP_BASE_ROUTE}/comments`,\n RECENTS: 'recents',\n SPACES: 'spaces'\n}\n\nexport const API_COMMENTS_FROM_SPACE = `${COMMENTS_ROUTE.BASE}/${COMMENTS_ROUTE.SPACES}`\nexport const API_COMMENTS_RECENTS = `${COMMENTS_ROUTE.BASE}/${COMMENTS_ROUTE.RECENTS}`\n"],"names":["API_COMMENTS_FROM_SPACE","API_COMMENTS_RECENTS","COMMENTS_ROUTE","BASE","APP_BASE_ROUTE","RECENTS","SPACES"],"mappings":";;;;;;;;;;;QAQaA;eAAAA;;QACAC;eAAAA;;QAPAC;eAAAA;;;uCAFkB;AAExB,MAAMA,iBAAiB;IAC5BC,MAAM,GAAGC,qCAAc,CAAC,SAAS,CAAC;IAClCC,SAAS;IACTC,QAAQ;AACV;AAEO,MAAMN,0BAA0B,GAAGE,eAAeC,IAAI,CAAC,CAAC,EAAED,eAAeI,MAAM,EAAE;AACjF,MAAML,uBAAuB,GAAGC,eAAeC,IAAI,CAAC,CAAC,EAAED,eAAeG,OAAO,EAAE"}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright (C) 2012-2025 Johan Legrand <johan.legrand@sync-in.com>
|
|
3
|
-
* This file is part of Sync-in | The open source file sync and share solution
|
|
4
|
-
* See the LICENSE file for licensing details
|
|
5
|
-
*/ "use strict";
|
|
1
|
+
"use strict";
|
|
6
2
|
Object.defineProperty(exports, "__esModule", {
|
|
7
3
|
value: true
|
|
8
4
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../backend/src/applications/comments/dto/comment.dto.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../../../../../backend/src/applications/comments/dto/comment.dto.ts"],"sourcesContent":["import { IsInt, IsNotEmpty, IsOptional, IsString } from 'class-validator'\n\nexport class CreateOrUpdateCommentDto {\n @IsNotEmpty()\n @IsInt()\n fileId: number\n\n @IsNotEmpty()\n @IsString()\n content: string\n\n @IsOptional()\n @IsInt()\n commentId?: number\n}\n\nexport class DeleteCommentDto {\n @IsNotEmpty()\n @IsInt()\n fileId: number\n\n @IsInt()\n commentId: number\n}\n"],"names":["CreateOrUpdateCommentDto","DeleteCommentDto"],"mappings":";;;;;;;;;;;QAEaA;eAAAA;;QAcAC;eAAAA;;;gCAhB2C;;;;;;;;;;AAEjD,IAAA,AAAMD,2BAAN,MAAMA;AAYb;;;;;;;;;;;;;;;;AAEO,IAAA,AAAMC,mBAAN,MAAMA;AAOb"}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright (C) 2012-2025 Johan Legrand <johan.legrand@sync-in.com>
|
|
3
|
-
* This file is part of Sync-in | The open source file sync and share solution
|
|
4
|
-
* See the LICENSE file for licensing details
|
|
5
|
-
*/ "use strict";
|
|
1
|
+
"use strict";
|
|
6
2
|
Object.defineProperty(exports, "__esModule", {
|
|
7
3
|
value: true
|
|
8
4
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../backend/src/applications/comments/interfaces/comment-recent.interface.ts"],"
|
|
1
|
+
{"version":3,"sources":["../../../../../backend/src/applications/comments/interfaces/comment-recent.interface.ts"],"names":[],"mappings":""}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright (C) 2012-2025 Johan Legrand <johan.legrand@sync-in.com>
|
|
3
|
-
* This file is part of Sync-in | The open source file sync and share solution
|
|
4
|
-
* See the LICENSE file for licensing details
|
|
5
|
-
*/ "use strict";
|
|
1
|
+
"use strict";
|
|
6
2
|
Object.defineProperty(exports, "__esModule", {
|
|
7
3
|
value: true
|
|
8
4
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../backend/src/applications/comments/schemas/comment.interface.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../../../../../backend/src/applications/comments/schemas/comment.interface.ts"],"sourcesContent":["import { Owner } from '../../users/interfaces/owner.interface'\nimport type { comments } from './comments.schema'\n\ntype CommentSchema = typeof comments.$inferSelect\n\nexport class Comment implements CommentSchema {\n id: number\n userId: number\n fileId: number\n content: string\n createdAt: Date\n modifiedAt: Date\n\n // extra properties\n author: Owner & { isAuthor: boolean }\n isFileOwner: boolean\n}\n"],"names":["Comment"],"mappings":";;;;+BAKaA;;;eAAAA;;;AAAN,IAAA,AAAMA,UAAN,MAAMA;AAWb"}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright (C) 2012-2025 Johan Legrand <johan.legrand@sync-in.com>
|
|
3
|
-
* This file is part of Sync-in | The open source file sync and share solution
|
|
4
|
-
* See the LICENSE file for licensing details
|
|
5
|
-
*/ "use strict";
|
|
1
|
+
"use strict";
|
|
6
2
|
Object.defineProperty(exports, "__esModule", {
|
|
7
3
|
value: true
|
|
8
4
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../backend/src/applications/comments/schemas/comments.schema.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../../../../../backend/src/applications/comments/schemas/comments.schema.ts"],"sourcesContent":["import { Column, SQL, sql } from 'drizzle-orm'\nimport { bigint, datetime, index, mysqlTable, text } from 'drizzle-orm/mysql-core'\nimport { files } from '../../files/schemas/files.schema'\nimport { users } from '../../users/schemas/users.schema'\n\n/*\nFor now, comments are only allowed on existing files.\nIt is not possible to comment directly on this type of roots:\n * external share\n * external root space\nIt is however possible to comment on files included in these roots.\n*/\n\nexport const comments = mysqlTable(\n 'comments',\n {\n id: bigint('id', { mode: 'number', unsigned: true }).autoincrement().primaryKey(),\n userId: bigint('userId', { mode: 'number', unsigned: true })\n .references(() => users.id, { onDelete: 'cascade' })\n .notNull(),\n fileId: bigint('fileId', { mode: 'number', unsigned: true })\n .references(() => files.id, { onDelete: 'cascade' })\n .notNull(),\n content: text(),\n modifiedAt: datetime('modifiedAt', { mode: 'date' }).default(sql`CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP`),\n createdAt: datetime('createdAt', { mode: 'date' })\n .default(sql`CURRENT_TIMESTAMP`)\n .notNull()\n },\n (table) => [index('user_idx').on(table.userId), index('file_idx').on(table.fileId)]\n)\n\n// export const createFullTextContentIndex = sql`CREATE FULLTEXT INDEX `content_idx` ON comments (`content`)`\n\nexport const fileHasCommentsSubquerySQL = (fileId: Column | SQL): SQL =>\n sql`EXISTS(SELECT 1 FROM ${comments} WHERE ${sql`${fileId}`} IS NOT NULL AND ${sql`${comments.fileId}`} = ${sql`${fileId}`})`\n"],"names":["comments","fileHasCommentsSubquerySQL","mysqlTable","id","bigint","mode","unsigned","autoincrement","primaryKey","userId","references","users","onDelete","notNull","fileId","files","content","text","modifiedAt","datetime","default","sql","createdAt","table","index","on"],"mappings":";;;;;;;;;;;QAaaA;eAAAA;;QAqBAC;eAAAA;;;4BAlCoB;2BACyB;6BACpC;6BACA;AAUf,MAAMD,WAAWE,IAAAA,qBAAU,EAChC,YACA;IACEC,IAAIC,IAAAA,iBAAM,EAAC,MAAM;QAAEC,MAAM;QAAUC,UAAU;IAAK,GAAGC,aAAa,GAAGC,UAAU;IAC/EC,QAAQL,IAAAA,iBAAM,EAAC,UAAU;QAAEC,MAAM;QAAUC,UAAU;IAAK,GACvDI,UAAU,CAAC,IAAMC,kBAAK,CAACR,EAAE,EAAE;QAAES,UAAU;IAAU,GACjDC,OAAO;IACVC,QAAQV,IAAAA,iBAAM,EAAC,UAAU;QAAEC,MAAM;QAAUC,UAAU;IAAK,GACvDI,UAAU,CAAC,IAAMK,kBAAK,CAACZ,EAAE,EAAE;QAAES,UAAU;IAAU,GACjDC,OAAO;IACVG,SAASC,IAAAA,eAAI;IACbC,YAAYC,IAAAA,mBAAQ,EAAC,cAAc;QAAEd,MAAM;IAAO,GAAGe,OAAO,CAACC,IAAAA,eAAG,CAAA,CAAC,6CAA6C,CAAC;IAC/GC,WAAWH,IAAAA,mBAAQ,EAAC,aAAa;QAAEd,MAAM;IAAO,GAC7Ce,OAAO,CAACC,IAAAA,eAAG,CAAA,CAAC,iBAAiB,CAAC,EAC9BR,OAAO;AACZ,GACA,CAACU,QAAU;QAACC,IAAAA,gBAAK,EAAC,YAAYC,EAAE,CAACF,MAAMd,MAAM;QAAGe,IAAAA,gBAAK,EAAC,YAAYC,EAAE,CAACF,MAAMT,MAAM;KAAE;AAK9E,MAAMb,6BAA6B,CAACa,SACzCO,IAAAA,eAAG,CAAA,CAAC,qBAAqB,EAAErB,SAAS,OAAO,EAAEqB,IAAAA,eAAG,CAAA,CAAC,EAAEP,OAAO,CAAC,CAAC,iBAAiB,EAAEO,IAAAA,eAAG,CAAA,CAAC,EAAErB,SAASc,MAAM,CAAC,CAAC,CAAC,GAAG,EAAEO,IAAAA,eAAG,CAAA,CAAC,EAAEP,OAAO,CAAC,CAAC,CAAC,CAAC"}
|