pigallery2-extension-kit 2.5.0-edge5 → 2.5.0-edge7
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/index.ts +1 -1
- package/lib/backend/Logger.d.ts +22 -22
- package/lib/backend/ProjectPath.d.ts +18 -16
- package/lib/backend/ProjectPath.js +36 -0
- package/lib/backend/exceptions/LocationLookupException.d.ts +4 -4
- package/lib/backend/index.d.ts +1 -1
- package/lib/backend/middlewares/AlbumMWs.d.ts +6 -6
- package/lib/backend/middlewares/GalleryMWs.d.ts +17 -11
- package/lib/backend/middlewares/MetaFileMWs.d.ts +4 -4
- package/lib/backend/middlewares/NotificationMWs.d.ts +4 -4
- package/lib/backend/middlewares/PersonMWs.d.ts +7 -7
- package/lib/backend/middlewares/RenderingMWs.d.ts +12 -12
- package/lib/backend/middlewares/ServerTimingMWs.d.ts +16 -16
- package/lib/backend/middlewares/SharingMWs.d.ts +11 -11
- package/lib/backend/middlewares/VersionMWs.d.ts +7 -7
- package/lib/backend/middlewares/admin/AdminMWs.d.ts +10 -10
- package/lib/backend/middlewares/admin/ExtensionMWs.d.ts +5 -0
- package/lib/backend/middlewares/admin/SettingsMWs.d.ts +10 -10
- package/lib/backend/middlewares/thumbnail/ThumbnailGeneratorMWs.d.ts +13 -13
- package/lib/backend/middlewares/user/AuthenticationMWs.d.ts +15 -14
- package/lib/backend/middlewares/user/UserMWs.d.ts +8 -7
- package/lib/backend/middlewares/user/UserRequestConstrainsMWs.d.ts +6 -6
- package/lib/backend/model/EventLoopHandler.d.ts +6 -6
- package/lib/backend/model/FFmpegFactory.d.ts +4 -4
- package/lib/backend/model/Localizations.d.ts +3 -3
- package/lib/backend/model/NotifocationManager.d.ts +8 -8
- package/lib/backend/model/NotifocationManager.js +44 -44
- package/lib/backend/model/ObjectManagers.d.ts +69 -61
- package/lib/backend/model/PasswordHelper.d.ts +4 -4
- package/lib/backend/model/PasswordHelper.js +20 -20
- package/lib/backend/model/SessionContext.d.ts +14 -0
- package/lib/backend/model/database/AlbumManager.d.ts +13 -18
- package/lib/backend/model/database/CoverManager.d.ts +23 -31
- package/lib/backend/model/database/GalleryManager.d.ts +35 -30
- package/lib/backend/model/database/IObjectManager.d.ts +6 -6
- package/lib/backend/model/database/IndexingManager.d.ts +34 -32
- package/lib/backend/model/database/LocationManager.d.ts +12 -12
- package/lib/backend/model/database/PersonManager.d.ts +21 -31
- package/lib/backend/model/database/ProjectedCacheManager.d.ts +22 -0
- package/lib/backend/model/database/ProjectionAwareManager.d.ts +44 -0
- package/lib/backend/model/database/SQLConnection.d.ts +22 -22
- package/lib/backend/model/database/SearchManager.d.ts +48 -41
- package/lib/backend/model/database/SessionManager.d.ts +11 -0
- package/lib/backend/model/database/SharingManager.d.ts +13 -11
- package/lib/backend/model/database/UserManager.d.ts +12 -10
- package/lib/backend/model/database/VersionManager.d.ts +7 -7
- package/lib/backend/model/database/enitites/DirectoryEntity.d.ts +24 -27
- package/lib/backend/model/database/enitites/EntityUtils.d.ts +7 -7
- package/lib/backend/model/database/enitites/FileEntity.d.ts +7 -7
- package/lib/backend/model/database/enitites/MDFileEntity.d.ts +5 -5
- package/lib/backend/model/database/enitites/MediaEntity.d.ts +63 -63
- package/lib/backend/model/database/enitites/PhotoEntity.d.ts +7 -7
- package/lib/backend/model/database/enitites/ProjectedDirectoryCacheEntity.d.ts +14 -0
- package/lib/backend/model/database/enitites/SharingEntity.d.ts +12 -12
- package/lib/backend/model/database/enitites/UserEntity.d.ts +12 -8
- package/lib/backend/model/database/enitites/VersionEntity.d.ts +4 -4
- package/lib/backend/model/database/enitites/VideoEntity.d.ts +10 -10
- package/lib/backend/model/database/enitites/album/AlbumBaseEntity.d.ts +11 -12
- package/lib/backend/model/database/enitites/album/ProjectedAlbumCacheEntity.d.ts +13 -0
- package/lib/backend/model/database/enitites/album/SavedSearchEntity.d.ts +6 -6
- package/lib/backend/model/database/enitites/person/PersonEntry.d.ts +11 -0
- package/lib/backend/model/database/enitites/person/PersonJunctionTable.d.ts +10 -0
- package/lib/backend/model/database/enitites/person/ProjectedPersonCacheEntity.d.ts +11 -0
- package/lib/backend/model/diagnostics/ConfigDiagnostics.d.ts +32 -24
- package/lib/backend/model/extension/ExpressRouterWrapper.d.ts +30 -27
- package/lib/backend/model/extension/ExtensionApp.d.ts +9 -10
- package/lib/backend/model/extension/ExtensionConfig.d.ts +6 -6
- package/lib/backend/model/extension/ExtensionConfigTemplateLoader.d.ts +27 -17
- package/lib/backend/model/extension/ExtensionConfigTemplateLoader.js +133 -97
- package/lib/backend/model/extension/ExtensionConfigWrapper.d.ts +9 -9
- package/lib/backend/model/extension/ExtensionConfigWrapper.js +59 -59
- package/lib/backend/model/extension/ExtensionDB.d.ts +10 -10
- package/lib/backend/model/extension/ExtensionDecorator.d.ts +6 -6
- package/lib/backend/model/extension/ExtensionEvent.d.ts +13 -13
- package/lib/backend/model/extension/ExtensionManager.d.ts +37 -20
- package/lib/backend/model/extension/ExtensionMessengerHandler.d.ts +13 -13
- package/lib/backend/model/extension/ExtensionObject.d.ts +23 -21
- package/lib/backend/model/extension/ExtensionRepository.d.ts +9 -0
- package/lib/backend/model/extension/IExtension.d.ts +258 -327
- package/lib/backend/model/extension/UIExtension.d.ts +13 -0
- package/lib/backend/model/fileaccess/DiskManager.d.ts +31 -32
- package/lib/backend/model/fileaccess/MetadataCreationDate.d.ts +5 -0
- package/lib/backend/model/fileaccess/MetadataLoader.d.ts +19 -19
- package/lib/backend/model/fileaccess/PhotoWorker.d.ts +41 -39
- package/lib/backend/model/fileaccess/TaskExecuter.d.ts +13 -13
- package/lib/backend/model/fileaccess/TaskQue.d.ts +18 -18
- package/lib/backend/model/fileaccess/VideoConverterWorker.d.ts +23 -23
- package/lib/backend/model/fileaccess/fileprocessing/GPXProcessing.d.ts +9 -9
- package/lib/backend/model/fileaccess/fileprocessing/PhotoProcessing.d.ts +22 -22
- package/lib/backend/model/fileaccess/fileprocessing/VideoProcessing.d.ts +9 -9
- package/lib/backend/model/jobs/JobManager.d.ts +36 -37
- package/lib/backend/model/jobs/JobProgressManager.d.ts +15 -15
- package/lib/backend/model/jobs/JobRepository.d.ts +11 -11
- package/lib/backend/model/jobs/jobs/AlbumCoverFillingJob.d.ts +19 -18
- package/lib/backend/model/jobs/jobs/AlbumCoverResetJob.d.ts +10 -10
- package/lib/backend/model/jobs/jobs/AlbumResetJob.d.ts +10 -10
- package/lib/backend/model/jobs/jobs/FileJob.d.ts +32 -32
- package/lib/backend/model/jobs/jobs/GPXCompressionJob.d.ts +10 -10
- package/lib/backend/model/jobs/jobs/GPXCompressionResetJob.d.ts +8 -8
- package/lib/backend/model/jobs/jobs/GalleryResetJob.d.ts +10 -10
- package/lib/backend/model/jobs/jobs/IJob.d.ts +14 -14
- package/lib/backend/model/jobs/jobs/IJobListener.d.ts +7 -7
- package/lib/backend/model/jobs/jobs/IndexingJob.d.ts +14 -14
- package/lib/backend/model/jobs/jobs/Job.d.ts +31 -31
- package/lib/backend/model/jobs/jobs/JobProgress.d.ts +26 -26
- package/lib/backend/model/jobs/jobs/PhotoConvertingJob.d.ts +19 -19
- package/lib/backend/model/jobs/jobs/TempFolderCleaningJob.d.ts +16 -16
- package/lib/backend/model/jobs/jobs/TopPickSendJob.d.ts +21 -21
- package/lib/backend/model/jobs/jobs/VideoConvertingJob.d.ts +8 -8
- package/lib/backend/model/messenger/EmailMessenger.d.ts +18 -18
- package/lib/backend/model/messenger/ExtensionMessenger.d.ts +11 -11
- package/lib/backend/model/messenger/Messenger.d.ts +14 -14
- package/lib/backend/model/messenger/MessengerRepository.d.ts +14 -14
- package/lib/backend/model/messenger/StdoutMessenger.d.ts +8 -8
- package/lib/backend/routes/AlbumRouter.d.ts +7 -7
- package/lib/backend/routes/ErrorRouter.d.ts +6 -6
- package/lib/backend/routes/GalleryRouter.d.ts +23 -23
- package/lib/backend/routes/LoggerRouter.d.ts +17 -17
- package/lib/backend/routes/NotificationRouter.d.ts +5 -5
- package/lib/backend/routes/PersonRouter.d.ts +7 -7
- package/lib/backend/routes/PublicRouter.d.ts +20 -20
- package/lib/backend/routes/Router.d.ts +4 -4
- package/lib/backend/routes/SharingRouter.d.ts +17 -17
- package/lib/backend/routes/UserRouter.d.ts +12 -11
- package/lib/backend/routes/admin/AdminRouter.d.ts +8 -8
- package/lib/backend/routes/admin/ExtensionRouter.d.ts +6 -0
- package/lib/backend/routes/admin/SettingsRouter.d.ts +5 -5
- package/lib/backend/server.d.ts +29 -28
- package/lib/common/BackendTexts.d.ts +39 -39
- package/lib/common/BackendTexts.js +15 -15
- package/lib/common/CookieNames.d.ts +6 -6
- package/lib/common/CustomHeaders.d.ts +3 -3
- package/lib/common/DataStructureVersion.d.ts +4 -4
- package/lib/common/HTMLCharCodes.d.ts +3 -5
- package/lib/common/HTMLCharCodes.js +117 -117
- package/lib/common/PG2ConfMap.d.ts +16 -20
- package/lib/common/QueryParams.d.ts +24 -24
- package/lib/common/SearchQueryParser.d.ts +47 -47
- package/lib/common/SearchQueryUtils.d.ts +9 -0
- package/lib/common/SupportedFormats.d.ts +19 -18
- package/lib/common/SupportedFormats.js +49 -45
- package/lib/common/Utils.d.ts +62 -64
- package/lib/common/Utils.js +518 -465
- package/lib/common/config/private/Config.d.ts +4 -4
- package/lib/common/config/private/Config.js +19 -17
- package/lib/common/config/private/PrivateConfig.d.ts +196 -191
- package/lib/common/config/private/PrivateConfig.js +1353 -1309
- package/lib/common/config/private/PrivateConfigClass.d.ts +4 -4
- package/lib/common/config/private/PrivateConfigClass.js +89 -86
- package/lib/common/config/private/WebConfig.d.ts +5 -5
- package/lib/common/config/private/WebConfig.js +19 -19
- package/lib/common/config/private/subconfigs/MessagingConfig.d.ts +15 -15
- package/lib/common/config/private/subconfigs/MessagingConfig.js +134 -134
- package/lib/common/config/private/subconfigs/ServerExtensionsConfig.d.ts +15 -13
- package/lib/common/config/private/subconfigs/ServerExtensionsConfig.js +111 -100
- package/lib/common/config/public/ClientConfig.d.ts +298 -295
- package/lib/common/config/public/ClientConfig.js +1895 -1859
- package/lib/common/config/public/Config.d.ts +8 -8
- package/lib/common/config/public/Config.js +24 -24
- package/lib/common/entities/AutoCompleteItem.d.ts +11 -11
- package/lib/common/entities/AutoCompleteItem.js +13 -13
- package/lib/common/entities/ContentWrapper.d.ts +18 -0
- package/lib/common/entities/ContentWrapper.js +500 -0
- package/lib/common/entities/DirectoryDTO.d.ts +58 -55
- package/lib/common/entities/DirectoryDTO.js +51 -51
- package/lib/common/entities/DuplicatesDTO.d.ts +4 -4
- package/lib/common/entities/DuplicatesDTO.js +2 -2
- package/lib/common/entities/DynamicConfig.d.ts +19 -19
- package/lib/common/entities/DynamicConfig.js +2 -2
- package/lib/common/entities/Error.d.ts +34 -34
- package/lib/common/entities/Error.js +45 -45
- package/lib/common/entities/FileDTO.d.ts +6 -6
- package/lib/common/entities/FileDTO.js +2 -2
- package/lib/common/entities/GridSizes.d.ts +7 -7
- package/lib/common/entities/GridSizes.js +11 -11
- package/lib/common/entities/LoginCredential.d.ts +6 -6
- package/lib/common/entities/LoginCredential.js +11 -11
- package/lib/common/entities/MDFileDTO.d.ts +8 -8
- package/lib/common/entities/MDFileDTO.js +2 -2
- package/lib/common/entities/MediaDTO.d.ts +33 -33
- package/lib/common/entities/MediaDTO.js +53 -53
- package/lib/common/entities/MediaPickDTO.d.ts +8 -7
- package/lib/common/entities/MediaPickDTO.js +2 -2
- package/lib/common/entities/Message.d.ts +6 -6
- package/lib/common/entities/Message.js +12 -12
- package/lib/common/entities/NotificationDTO.d.ts +15 -15
- package/lib/common/entities/NotificationDTO.js +9 -9
- package/lib/common/entities/PasswordChangeRequest.d.ts +6 -6
- package/lib/common/entities/PasswordChangeRequest.js +12 -12
- package/lib/common/entities/PersonDTO.d.ts +10 -7
- package/lib/common/entities/PersonDTO.js +2 -2
- package/lib/common/entities/PhotoDTO.d.ts +53 -53
- package/lib/common/entities/PhotoDTO.js +2 -2
- package/lib/common/entities/SearchQueryDTO.d.ts +125 -130
- package/lib/common/entities/SearchQueryDTO.js +77 -130
- package/lib/common/entities/SearchResultDTO.d.ts +11 -11
- package/lib/common/entities/SearchResultDTO.js +2 -2
- package/lib/common/entities/SharingDTO.d.ts +20 -20
- package/lib/common/entities/SharingDTO.js +2 -2
- package/lib/common/entities/SortingMethods.d.ts +56 -56
- package/lib/common/entities/SortingMethods.js +41 -41
- package/lib/common/entities/UserDTO.d.ts +19 -21
- package/lib/common/entities/UserDTO.js +11 -46
- package/lib/common/entities/UserModificationRequest.d.ts +4 -4
- package/lib/common/entities/UserModificationRequest.js +9 -9
- package/lib/common/entities/UserSettingsDTO.d.ts +7 -0
- package/lib/common/entities/UserSettingsDTO.js +2 -0
- package/lib/common/entities/VideoDTO.d.ts +17 -17
- package/lib/common/entities/VideoDTO.js +2 -2
- package/lib/common/entities/album/AlbumBaseDTO.d.ts +16 -8
- package/lib/common/entities/album/AlbumBaseDTO.js +2 -2
- package/lib/common/entities/album/SavedSearchDTO.d.ts +9 -11
- package/lib/common/entities/album/SavedSearchDTO.js +2 -2
- package/lib/common/entities/extension/ExtensionListItem.d.ts +8 -0
- package/lib/common/entities/extension/ExtensionListItem.js +2 -0
- package/lib/common/entities/extension/IClientUIConfig.d.ts +91 -0
- package/lib/common/entities/extension/IClientUIConfig.js +2 -0
- package/lib/common/entities/job/JobDTO.d.ts +30 -30
- package/lib/common/entities/job/JobDTO.js +28 -28
- package/lib/common/entities/job/JobProgressDTO.d.ts +31 -31
- package/lib/common/entities/job/JobProgressDTO.js +12 -12
- package/lib/common/entities/job/JobScheduleDTO.d.ts +38 -38
- package/lib/common/entities/job/JobScheduleDTO.js +53 -53
- package/lib/common/entities/settings/IndexingDTO.d.ts +3 -3
- package/lib/common/entities/settings/IndexingDTO.js +2 -2
- package/lib/common/entities/settings/StatisticDTO.d.ts +7 -7
- package/lib/common/entities/settings/StatisticDTO.js +2 -2
- package/lib/common/event/Event.d.ts +11 -11
- package/lib/common/event/Event2Args.d.ts +7 -7
- package/lib/common/event/EventLimit.d.ts +9 -9
- package/lib/frontend/app/app.component.d.ts +18 -18
- package/lib/frontend/app/app.routing.d.ts +4 -4
- package/lib/frontend/app/icon.component.d.ts +7 -7
- package/lib/frontend/app/model/IRenderable.d.ts +17 -17
- package/lib/frontend/app/model/backendtext.service.d.ts +7 -7
- package/lib/frontend/app/model/backendtext.service.spec.d.ts +1 -1
- package/lib/frontend/app/model/extension.service.d.ts +5 -0
- package/lib/frontend/app/model/navigation.service.d.ts +12 -12
- package/lib/frontend/app/model/network/autehentication.service.spec.d.ts +1 -1
- package/lib/frontend/app/model/network/authentication.service.d.ts +22 -22
- package/lib/frontend/app/model/network/helper/auth.guard.d.ts +9 -9
- package/lib/frontend/app/model/network/helper/error.interceptor.d.ts +8 -8
- package/lib/frontend/app/model/network/network.service.d.ts +26 -26
- package/lib/frontend/app/model/network/network.service.spec.d.ts +1 -1
- package/lib/frontend/app/model/network/user.service.d.ts +13 -13
- package/lib/frontend/app/model/network/user.service.spec.d.ts +1 -1
- package/lib/frontend/app/model/notification.service.d.ts +28 -28
- package/lib/frontend/app/model/page.helper.d.ts +12 -12
- package/lib/frontend/app/model/pi-title.service.d.ts +15 -15
- package/lib/frontend/app/model/query.service.d.ts +19 -19
- package/lib/frontend/app/model/seededRandom.service.d.ts +7 -7
- package/lib/frontend/app/model/theme.service.d.ts +16 -16
- package/lib/frontend/app/model/version.service.d.ts +6 -6
- package/lib/frontend/app/pipes/DurationPipe.d.ts +4 -4
- package/lib/frontend/app/pipes/FileDTOToPathPipe.d.ts +5 -5
- package/lib/frontend/app/pipes/FileDTOToRelativePathPipe.d.ts +5 -5
- package/lib/frontend/app/pipes/FileSizePipe.d.ts +4 -4
- package/lib/frontend/app/pipes/GPXFilesFilterPipe.d.ts +5 -5
- package/lib/frontend/app/pipes/MDFilesFilterPipe.d.ts +6 -6
- package/lib/frontend/app/pipes/ParseIntPipe.d.ts +4 -4
- package/lib/frontend/app/pipes/PhotoFilterPipe.d.ts +6 -6
- package/lib/frontend/app/pipes/SafeHTMLPipe.d.ts +7 -7
- package/lib/frontend/app/pipes/StringifyEnum.d.ts +4 -4
- package/lib/frontend/app/pipes/StringifyGridSize.d.ts +5 -5
- package/lib/frontend/app/pipes/StringifyRolePipe.d.ts +4 -4
- package/lib/frontend/app/pipes/StringifySearchQuery.d.ts +8 -8
- package/lib/frontend/app/pipes/StringifySearchType.d.ts +5 -5
- package/lib/frontend/app/pipes/StringifySortingMethod.d.ts +4 -4
- package/lib/frontend/app/ui/EnumTranslations.d.ts +5 -5
- package/lib/frontend/app/ui/admin/admin.component.d.ts +36 -36
- package/lib/frontend/app/ui/albums/album/album.component.d.ts +26 -26
- package/lib/frontend/app/ui/albums/albums.component.d.ts +26 -26
- package/lib/frontend/app/ui/albums/albums.service.d.ts +12 -12
- package/lib/frontend/app/ui/albums/saved-search-popup/saved-search-popup.component.d.ts +15 -15
- package/lib/frontend/app/ui/duplicates/duplicates.component.d.ts +36 -36
- package/lib/frontend/app/ui/duplicates/duplicates.service.d.ts +9 -9
- package/lib/frontend/app/ui/duplicates/photo/photo.duplicates.component.d.ts +11 -11
- package/lib/frontend/app/ui/faces/Person.d.ts +9 -8
- package/lib/frontend/app/ui/faces/face/face.component.d.ts +22 -22
- package/lib/frontend/app/ui/faces/faces.component.d.ts +18 -18
- package/lib/frontend/app/ui/faces/faces.service.d.ts +10 -10
- package/lib/frontend/app/ui/frame/frame.component.d.ts +55 -54
- package/lib/frontend/app/ui/gallery/Media.d.ts +15 -15
- package/lib/frontend/app/ui/gallery/MediaIcon.d.ts +29 -29
- package/lib/frontend/app/ui/gallery/blog/blog.gallery.component.d.ts +14 -14
- package/lib/frontend/app/ui/gallery/blog/blog.service.d.ts +23 -23
- package/lib/frontend/app/ui/gallery/cache.gallery.service.d.ts +54 -54
- package/lib/frontend/app/ui/gallery/content.service.d.ts +11 -11
- package/lib/frontend/app/ui/gallery/contentLoader.service.d.ts +37 -35
- package/lib/frontend/app/ui/gallery/directories/directories.component.d.ts +14 -14
- package/lib/frontend/app/ui/gallery/directories/directory/directory.gallery.component.d.ts +20 -20
- package/lib/frontend/app/ui/gallery/filter/filter.gallery.component.d.ts +32 -32
- package/lib/frontend/app/ui/gallery/filter/filter.service.d.ts +51 -51
- package/lib/frontend/app/ui/gallery/filter/filter.service.spec.d.ts +1 -0
- package/lib/frontend/app/ui/gallery/fullscreen.service.d.ts +7 -7
- package/lib/frontend/app/ui/gallery/gallery.component.d.ts +55 -55
- package/lib/frontend/app/ui/gallery/grid/GridMedia.d.ts +13 -13
- package/lib/frontend/app/ui/gallery/grid/GridRowBuilder.d.ts +16 -16
- package/lib/frontend/app/ui/gallery/grid/grid.gallery.component.d.ts +85 -85
- package/lib/frontend/app/ui/gallery/grid/grid.gallery.component.spec.d.ts +1 -1
- package/lib/frontend/app/ui/gallery/grid/photo/loading/loading.photo.grid.gallery.component.d.ts +4 -4
- package/lib/frontend/app/ui/gallery/grid/photo/media-button-modal/media-button-modal.component.d.ts +19 -0
- package/lib/frontend/app/ui/gallery/grid/photo/media-button-modal/media-button-modal.service.d.ts +21 -0
- package/lib/frontend/app/ui/gallery/grid/photo/photo.grid.gallery.component.d.ts +48 -37
- package/lib/frontend/app/ui/gallery/lightbox/controls/controls.lightbox.gallery.component.d.ts +110 -110
- package/lib/frontend/app/ui/gallery/lightbox/infopanel/info-panel.lightbox.gallery.component.d.ts +51 -48
- package/lib/frontend/app/ui/gallery/lightbox/lightbox.gallery.component.d.ts +92 -92
- package/lib/frontend/app/ui/gallery/lightbox/lightbox.service.d.ts +5 -5
- package/lib/frontend/app/ui/gallery/lightbox/media/media.lightbox.gallery.component.d.ts +68 -63
- package/lib/frontend/app/ui/gallery/map/MarkerFactory.d.ts +12 -12
- package/lib/frontend/app/ui/gallery/map/lightbox/lightbox.map.gallery.component.d.ts +74 -71
- package/lib/frontend/app/ui/gallery/map/map.gallery.component.d.ts +32 -32
- package/lib/frontend/app/ui/gallery/map/map.service.d.ts +30 -20
- package/lib/frontend/app/ui/gallery/navigator/navigator.gallery.component.d.ts +80 -79
- package/lib/frontend/app/ui/gallery/navigator/navigator.service.d.ts +13 -13
- package/lib/frontend/app/ui/gallery/navigator/sorting.service.d.ts +38 -38
- package/lib/frontend/app/ui/gallery/overlay.service.d.ts +9 -9
- package/lib/frontend/app/ui/gallery/random-query-builder/random-query-builder.gallery.component.d.ts +30 -30
- package/lib/frontend/app/ui/gallery/search/AutoCompleteRenderItem.d.ts +11 -11
- package/lib/frontend/app/ui/gallery/search/autocomplete.service.d.ts +33 -33
- package/lib/frontend/app/ui/gallery/search/query-builder/query-bulder.gallery.component.d.ts +22 -22
- package/lib/frontend/app/ui/gallery/search/query-enrty/query-entry.search.gallery.component.d.ts +42 -40
- package/lib/frontend/app/ui/gallery/search/search-field/search-field.gallery.component.d.ts +31 -31
- package/lib/frontend/app/ui/gallery/search/search-field-base/search-field-base.gallery.component.d.ts +57 -57
- package/lib/frontend/app/ui/gallery/search/search-query-parser.service.d.ts +9 -9
- package/lib/frontend/app/ui/gallery/search/search.gallery.component.d.ts +39 -39
- package/lib/frontend/app/ui/gallery/share/share.gallery.component.d.ts +67 -63
- package/lib/frontend/app/ui/gallery/share.service.d.ts +35 -32
- package/lib/frontend/app/ui/gallery/thumbnailLoader.service.d.ts +41 -41
- package/lib/frontend/app/ui/gallery/thumbnailManager.service.d.ts +46 -46
- package/lib/frontend/app/ui/language/language.component.d.ts +10 -10
- package/lib/frontend/app/ui/login/login.component.d.ts +15 -15
- package/lib/frontend/app/ui/settings/extension-installer/extension-installer.component.d.ts +18 -0
- package/lib/frontend/app/ui/settings/extension-installer/extension-installer.service.d.ts +8 -0
- package/lib/frontend/app/ui/settings/gallery-statistic/gallery-statistic.component.d.ts +5 -5
- package/lib/frontend/app/ui/settings/scheduled-jobs.service.d.ts +41 -41
- package/lib/frontend/app/ui/settings/settings.service.d.ts +27 -27
- package/lib/frontend/app/ui/settings/sharings-list/sharings-list.component.d.ts +14 -14
- package/lib/frontend/app/ui/settings/template/CustomSettingsEntries.d.ts +57 -57
- package/lib/frontend/app/ui/settings/template/ISettingsComponent.d.ts +13 -13
- package/lib/frontend/app/ui/settings/template/settings-entry/settings-entry.component.d.ts +118 -118
- package/lib/frontend/app/ui/settings/template/settings-entry/sorting-method/sorting-method.settings-entry.component.d.ts +25 -25
- package/lib/frontend/app/ui/settings/template/template.component.d.ts +91 -91
- package/lib/frontend/app/ui/settings/users/users.component.d.ts +47 -34
- package/lib/frontend/app/ui/settings/users/users.service.d.ts +12 -10
- package/lib/frontend/app/ui/settings/workflow/button/job-button.settings.component.d.ts +32 -32
- package/lib/frontend/app/ui/settings/workflow/progress/job-progress.settings.component.d.ts +25 -25
- package/lib/frontend/app/ui/settings/workflow/workflow.component.d.ts +68 -68
- package/lib/frontend/app/ui/sharelogin/share-login.component.d.ts +16 -16
- package/lib/frontend/app/ui/utils/grid-size-icon/grid-size-icon.component.d.ts +5 -5
- package/lib/frontend/app/ui/utils/sorting-method-icon/sorting-method-icon.component.d.ts +13 -13
- package/lib/frontend/app/ui/utils/timestamp-datepicker/datepicker.component.d.ts +10 -10
- package/lib/frontend/app/ui/utils/timestamp-timepicker/timepicker.component.d.ts +11 -11
- package/lib/frontend/environments/environment.d.ts +3 -3
- package/lib/frontend/environments/environment.prod.d.ts +3 -3
- package/lib/frontend/main.d.ts +21 -1
- package/lib/frontend/polyfills.d.ts +60 -60
- package/lib/frontend/test.d.ts +1 -1
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {IServerExtension, IExtensionObject
|
|
1
|
+
export {IServerExtension, IExtensionObject} from './lib/backend/model/extension/IExtension';
|
|
2
2
|
|
package/lib/backend/Logger.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { ErrorCodes } from '../common/entities/Error';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export interface ILogger {
|
|
5
|
-
silly: LoggerFunction;
|
|
6
|
-
debug: LoggerFunction;
|
|
7
|
-
verbose: LoggerFunction;
|
|
8
|
-
info: LoggerFunction;
|
|
9
|
-
warn: LoggerFunction;
|
|
10
|
-
error: LoggerFunction;
|
|
11
|
-
}
|
|
12
|
-
export declare const createLoggerWrapper: (TAG: string) => ILogger;
|
|
13
|
-
export declare class Logger {
|
|
14
|
-
static silly(...args: LoggerArgs[]): void;
|
|
15
|
-
static debug(...args: LoggerArgs[]): void;
|
|
16
|
-
static verbose(...args: LoggerArgs[]): void;
|
|
17
|
-
static info(...args: LoggerArgs[]): void;
|
|
18
|
-
static warn(...args: LoggerArgs[]): void;
|
|
19
|
-
static error(...args: LoggerArgs[]): void;
|
|
20
|
-
private static log;
|
|
21
|
-
static logLevelForError(e: ErrorCodes): LoggerFunction;
|
|
22
|
-
}
|
|
1
|
+
import { ErrorCodes } from '../common/entities/Error';
|
|
2
|
+
export type LoggerArgs = (string | number | (() => string) | Record<any, unknown> | Error);
|
|
3
|
+
export type LoggerFunction = (...args: LoggerArgs[]) => void;
|
|
4
|
+
export interface ILogger {
|
|
5
|
+
silly: LoggerFunction;
|
|
6
|
+
debug: LoggerFunction;
|
|
7
|
+
verbose: LoggerFunction;
|
|
8
|
+
info: LoggerFunction;
|
|
9
|
+
warn: LoggerFunction;
|
|
10
|
+
error: LoggerFunction;
|
|
11
|
+
}
|
|
12
|
+
export declare const createLoggerWrapper: (TAG: string) => ILogger;
|
|
13
|
+
export declare class Logger {
|
|
14
|
+
static silly(...args: LoggerArgs[]): void;
|
|
15
|
+
static debug(...args: LoggerArgs[]): void;
|
|
16
|
+
static verbose(...args: LoggerArgs[]): void;
|
|
17
|
+
static info(...args: LoggerArgs[]): void;
|
|
18
|
+
static warn(...args: LoggerArgs[]): void;
|
|
19
|
+
static error(...args: LoggerArgs[]): void;
|
|
20
|
+
private static log;
|
|
21
|
+
static logLevelForError(e: ErrorCodes): LoggerFunction;
|
|
22
|
+
}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { PrivateConfigClass } from '../common/config/private/PrivateConfigClass';
|
|
2
|
+
export declare class ProjectPathClass {
|
|
3
|
+
Root: string;
|
|
4
|
+
ImageFolder: string;
|
|
5
|
+
TempFolder: string;
|
|
6
|
+
TranscodedFolder: string;
|
|
7
|
+
FacesFolder: string;
|
|
8
|
+
FrontendFolder: string;
|
|
9
|
+
ExtensionFolder: string;
|
|
10
|
+
DBFolder: string;
|
|
11
|
+
private cfg;
|
|
12
|
+
init(cfg: PrivateConfigClass): void;
|
|
13
|
+
normalizeRelative(pathStr: string): string;
|
|
14
|
+
getAbsolutePath(pathStr: string): string;
|
|
15
|
+
getRelativePathToImages(pathStr: string): string;
|
|
16
|
+
reset(): void;
|
|
17
|
+
}
|
|
18
|
+
export declare const ProjectPath: ProjectPathClass;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProjectPath = exports.ProjectPathClass = void 0;
|
|
4
|
+
const path = require("path");
|
|
5
|
+
const fs = require("fs");
|
|
6
|
+
class ProjectPathClass {
|
|
7
|
+
init(cfg) {
|
|
8
|
+
this.cfg = cfg;
|
|
9
|
+
this.reset();
|
|
10
|
+
}
|
|
11
|
+
normalizeRelative(pathStr) {
|
|
12
|
+
return path.join(pathStr, path.sep);
|
|
13
|
+
}
|
|
14
|
+
getAbsolutePath(pathStr) {
|
|
15
|
+
return path.isAbsolute(pathStr) ? pathStr : path.join(this.Root, pathStr);
|
|
16
|
+
}
|
|
17
|
+
getRelativePathToImages(pathStr) {
|
|
18
|
+
return path.relative(this.ImageFolder, pathStr);
|
|
19
|
+
}
|
|
20
|
+
reset() {
|
|
21
|
+
this.Root = path.join(__dirname, '/../../');
|
|
22
|
+
this.FrontendFolder = path.join(this.Root, 'dist');
|
|
23
|
+
this.ImageFolder = this.getAbsolutePath(this.cfg.Media.folder);
|
|
24
|
+
this.TempFolder = this.getAbsolutePath(this.cfg.Media.tempFolder);
|
|
25
|
+
this.TranscodedFolder = path.join(this.TempFolder, 'tc');
|
|
26
|
+
this.FacesFolder = path.join(this.TempFolder, 'f');
|
|
27
|
+
this.DBFolder = this.getAbsolutePath(this.cfg.Database.dbFolder);
|
|
28
|
+
this.ExtensionFolder = this.getAbsolutePath(this.cfg.Extensions.folder);
|
|
29
|
+
// create thumbnail folder if not exist
|
|
30
|
+
if (!fs.existsSync(this.TempFolder)) {
|
|
31
|
+
fs.mkdirSync(this.TempFolder);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.ProjectPathClass = ProjectPathClass;
|
|
36
|
+
exports.ProjectPath = new ProjectPathClass();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare class LocationLookupException extends Error {
|
|
2
|
-
location: string;
|
|
3
|
-
constructor(message: string, location: string);
|
|
4
|
-
}
|
|
1
|
+
export declare class LocationLookupException extends Error {
|
|
2
|
+
location: string;
|
|
3
|
+
constructor(message: string, location: string);
|
|
4
|
+
}
|
package/lib/backend/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { NextFunction, Request, Response } from 'express';
|
|
2
|
-
export declare class AlbumMWs {
|
|
3
|
-
static listAlbums(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
4
|
-
static deleteAlbum(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
5
|
-
static createSavedSearch(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
6
|
-
}
|
|
1
|
+
import { NextFunction, Request, Response } from 'express';
|
|
2
|
+
export declare class AlbumMWs {
|
|
3
|
+
static listAlbums(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
4
|
+
static deleteAlbum(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
5
|
+
static createSavedSearch(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
6
|
+
}
|
|
@@ -1,11 +1,17 @@
|
|
|
1
|
-
import { NextFunction, Request, Response } from 'express';
|
|
2
|
-
export declare class GalleryMWs {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
static
|
|
8
|
-
static
|
|
9
|
-
static
|
|
10
|
-
static
|
|
11
|
-
|
|
1
|
+
import { NextFunction, Request, Response } from 'express';
|
|
2
|
+
export declare class GalleryMWs {
|
|
3
|
+
/**
|
|
4
|
+
* Middleware to safely parse searchQueryDTO from URL parameters
|
|
5
|
+
* Handles URL decoding and JSON parsing with proper error handling
|
|
6
|
+
*/
|
|
7
|
+
static parseSearchQuery(req: Request, res: Response, next: NextFunction): void;
|
|
8
|
+
static listDirectory(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
9
|
+
static zipDirectory(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
10
|
+
static cleanUpGalleryResults(req: Request, res: Response, next: NextFunction): void;
|
|
11
|
+
static loadFile(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
12
|
+
static loadBestFitVideo(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
13
|
+
static search(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
14
|
+
static autocomplete(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
15
|
+
static getRandomImage(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
16
|
+
static getMediaEntry(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
17
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NextFunction, Request, Response } from 'express';
|
|
2
|
-
export declare class MetaFileMWs {
|
|
3
|
-
static compressGPX(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
4
|
-
}
|
|
1
|
+
import { NextFunction, Request, Response } from 'express';
|
|
2
|
+
export declare class MetaFileMWs {
|
|
3
|
+
static compressGPX(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
4
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NextFunction, Request, Response } from 'express';
|
|
2
|
-
export declare class NotificationMWs {
|
|
3
|
-
static list(req: Request, res: Response, next: NextFunction): void;
|
|
4
|
-
}
|
|
1
|
+
import { NextFunction, Request, Response } from 'express';
|
|
2
|
+
export declare class NotificationMWs {
|
|
3
|
+
static list(req: Request, res: Response, next: NextFunction): void;
|
|
4
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { NextFunction, Request, Response } from 'express';
|
|
2
|
-
export declare class PersonMWs {
|
|
3
|
-
static updatePerson(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
4
|
-
static getPerson(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
5
|
-
static listPersons(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
6
|
-
static cleanUpPersonResults(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
7
|
-
}
|
|
1
|
+
import { NextFunction, Request, Response } from 'express';
|
|
2
|
+
export declare class PersonMWs {
|
|
3
|
+
static updatePerson(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
4
|
+
static getPerson(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
5
|
+
static listPersons(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
6
|
+
static cleanUpPersonResults(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
7
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { NextFunction, Request, Response } from 'express';
|
|
2
|
-
export declare class RenderingMWs {
|
|
3
|
-
static renderResult(req: Request, res: Response, next: NextFunction): void;
|
|
4
|
-
static renderSessionUser(req: Request, res: Response, next: NextFunction): void;
|
|
5
|
-
static renderSharing(req: Request, res: Response, next: NextFunction): void;
|
|
6
|
-
static renderSharingList(req: Request, res: Response, next: NextFunction): void;
|
|
7
|
-
static renderFile(req: Request, res: Response, next: NextFunction): void;
|
|
8
|
-
static renderOK(req: Request, res: Response): void;
|
|
9
|
-
static renderConfig(req: Request, res: Response): Promise<void>;
|
|
10
|
-
static renderError(err: Error, req: Request, res: Response, next: NextFunction): void;
|
|
11
|
-
protected static renderMessage<T>(res: Response, content: T): void;
|
|
12
|
-
}
|
|
1
|
+
import { NextFunction, Request, Response } from 'express';
|
|
2
|
+
export declare class RenderingMWs {
|
|
3
|
+
static renderResult(req: Request, res: Response, next: NextFunction): void;
|
|
4
|
+
static renderSessionUser(req: Request, res: Response, next: NextFunction): void;
|
|
5
|
+
static renderSharing(req: Request, res: Response, next: NextFunction): void;
|
|
6
|
+
static renderSharingList(req: Request, res: Response, next: NextFunction): void;
|
|
7
|
+
static renderFile(req: Request, res: Response, next: NextFunction): void;
|
|
8
|
+
static renderOK(req: Request, res: Response): void;
|
|
9
|
+
static renderConfig(req: Request, res: Response): Promise<void>;
|
|
10
|
+
static renderError(err: Error, req: Request, res: Response, next: NextFunction): void;
|
|
11
|
+
protected static renderMessage<T>(res: Response, content: T): void;
|
|
12
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { NextFunction, Request, Response } from 'express';
|
|
2
|
-
export declare class ServerTimeEntry {
|
|
3
|
-
name: string;
|
|
4
|
-
startHR: [number, number];
|
|
5
|
-
endTime: number;
|
|
6
|
-
constructor(name: string);
|
|
7
|
-
start(): void;
|
|
8
|
-
end(): void;
|
|
9
|
-
}
|
|
10
|
-
export declare const ServerTime: (id: string, name: string) => (target: unknown, propertyName: string, descriptor: TypedPropertyDescriptor<(req: unknown, res: unknown, next: () => void) => void>) => void;
|
|
11
|
-
export declare class ServerTimingMWs {
|
|
12
|
-
/**
|
|
13
|
-
* Add server timing
|
|
14
|
-
*/
|
|
15
|
-
static addServerTiming(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
16
|
-
}
|
|
1
|
+
import { NextFunction, Request, Response } from 'express';
|
|
2
|
+
export declare class ServerTimeEntry {
|
|
3
|
+
name: string;
|
|
4
|
+
startHR: [number, number];
|
|
5
|
+
endTime: number;
|
|
6
|
+
constructor(name: string);
|
|
7
|
+
start(): void;
|
|
8
|
+
end(): void;
|
|
9
|
+
}
|
|
10
|
+
export declare const ServerTime: (id: string, name: string) => (target: unknown, propertyName: string, descriptor: TypedPropertyDescriptor<(req: unknown, res: unknown, next: () => void) => void>) => void;
|
|
11
|
+
export declare class ServerTimingMWs {
|
|
12
|
+
/**
|
|
13
|
+
* Add server timing
|
|
14
|
+
*/
|
|
15
|
+
static addServerTiming(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
16
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { NextFunction, Request, Response } from 'express';
|
|
2
|
-
export declare class SharingMWs {
|
|
3
|
-
static getSharing(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
4
|
-
static getSharingKey(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
5
|
-
static createSharing(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
6
|
-
static updateSharing(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
7
|
-
static deleteSharing(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
8
|
-
static listSharing(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
9
|
-
static
|
|
10
|
-
private static generateKey;
|
|
11
|
-
}
|
|
1
|
+
import { NextFunction, Request, Response } from 'express';
|
|
2
|
+
export declare class SharingMWs {
|
|
3
|
+
static getSharing(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
4
|
+
static getSharingKey(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
5
|
+
static createSharing(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
6
|
+
static updateSharing(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
7
|
+
static deleteSharing(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
8
|
+
static listSharing(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
9
|
+
static listSharingForQuery(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
10
|
+
private static generateKey;
|
|
11
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { NextFunction, Request, Response } from 'express';
|
|
2
|
-
export declare class VersionMWs {
|
|
3
|
-
/**
|
|
4
|
-
* This version data is mainly used on the client side to invalidate the cache
|
|
5
|
-
*/
|
|
6
|
-
static injectGalleryVersion(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
7
|
-
}
|
|
1
|
+
import { NextFunction, Request, Response } from 'express';
|
|
2
|
+
export declare class VersionMWs {
|
|
3
|
+
/**
|
|
4
|
+
* This version data is mainly used on the client side to invalidate the cache
|
|
5
|
+
*/
|
|
6
|
+
static injectGalleryVersion(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
7
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { NextFunction, Request, Response } from 'express';
|
|
2
|
-
export declare class AdminMWs {
|
|
3
|
-
static loadStatistic(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
4
|
-
static getDuplicates(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
5
|
-
static startJob(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
6
|
-
static stopJob(req: Request, res: Response, next: NextFunction): void;
|
|
7
|
-
static getAvailableMessengers(req: Request, res: Response, next: NextFunction): void;
|
|
8
|
-
static getAvailableJobs(req: Request, res: Response, next: NextFunction): void;
|
|
9
|
-
static getJobProgresses(req: Request, res: Response, next: NextFunction): void;
|
|
10
|
-
}
|
|
1
|
+
import { NextFunction, Request, Response } from 'express';
|
|
2
|
+
export declare class AdminMWs {
|
|
3
|
+
static loadStatistic(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
4
|
+
static getDuplicates(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
5
|
+
static startJob(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
6
|
+
static stopJob(req: Request, res: Response, next: NextFunction): void;
|
|
7
|
+
static getAvailableMessengers(req: Request, res: Response, next: NextFunction): void;
|
|
8
|
+
static getAvailableJobs(req: Request, res: Response, next: NextFunction): void;
|
|
9
|
+
static getJobProgresses(req: Request, res: Response, next: NextFunction): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { NextFunction, Request, Response } from 'express';
|
|
2
|
+
export declare class ExtensionMWs {
|
|
3
|
+
static getExtensionList(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
4
|
+
static installExtension(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
5
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { NextFunction, Request, Response } from 'express';
|
|
2
|
-
export declare class SettingsMWs {
|
|
3
|
-
/**
|
|
4
|
-
* General settings updating servcie
|
|
5
|
-
* @param req
|
|
6
|
-
* @param res
|
|
7
|
-
* @param next
|
|
8
|
-
*/
|
|
9
|
-
static updateSettings(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
10
|
-
}
|
|
1
|
+
import { NextFunction, Request, Response } from 'express';
|
|
2
|
+
export declare class SettingsMWs {
|
|
3
|
+
/**
|
|
4
|
+
* General settings updating servcie
|
|
5
|
+
* @param req
|
|
6
|
+
* @param res
|
|
7
|
+
* @param next
|
|
8
|
+
*/
|
|
9
|
+
static updateSettings(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
10
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { NextFunction, Request, Response } from 'express';
|
|
2
|
-
import { ThumbnailSourceType } from '../../model/fileaccess/PhotoWorker';
|
|
3
|
-
export declare class ThumbnailGeneratorMWs {
|
|
4
|
-
private static ThumbnailMapEntries;
|
|
5
|
-
static addThumbnailInformation(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
6
|
-
static addThumbnailInfoForPersons(req: Request, res: Response, next: NextFunction): void;
|
|
7
|
-
static generatePersonThumbnail(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
8
|
-
static generateThumbnailFactory(sourceType: ThumbnailSourceType): (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
9
|
-
static generateIconFactory(sourceType: ThumbnailSourceType): (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
10
|
-
private static addThInfoTODir;
|
|
11
|
-
private static addThInfoToPhotos;
|
|
12
|
-
private static addThInfoToAPhoto;
|
|
13
|
-
}
|
|
1
|
+
import { NextFunction, Request, Response } from 'express';
|
|
2
|
+
import { ThumbnailSourceType } from '../../model/fileaccess/PhotoWorker';
|
|
3
|
+
export declare class ThumbnailGeneratorMWs {
|
|
4
|
+
private static ThumbnailMapEntries;
|
|
5
|
+
static addThumbnailInformation(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
6
|
+
static addThumbnailInfoForPersons(req: Request, res: Response, next: NextFunction): void;
|
|
7
|
+
static generatePersonThumbnail(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
8
|
+
static generateThumbnailFactory(sourceType: ThumbnailSourceType): (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
9
|
+
static generateIconFactory(sourceType: ThumbnailSourceType): (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
10
|
+
private static addThInfoTODir;
|
|
11
|
+
private static addThInfoToPhotos;
|
|
12
|
+
private static addThInfoToAPhoto;
|
|
13
|
+
}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { NextFunction, Request, Response } from 'express';
|
|
2
|
-
import { UserRoles } from '../../../common/entities/UserDTO';
|
|
3
|
-
export declare class AuthenticationMWs {
|
|
4
|
-
static tryAuthenticate(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
5
|
-
static authenticate(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
6
|
-
static normalizePathParam(paramName: string): (req: Request, res: Response, next: NextFunction) => void;
|
|
7
|
-
static
|
|
8
|
-
static
|
|
9
|
-
static
|
|
10
|
-
static
|
|
11
|
-
static
|
|
12
|
-
static
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { NextFunction, Request, Response } from 'express';
|
|
2
|
+
import { UserRoles } from '../../../common/entities/UserDTO';
|
|
3
|
+
export declare class AuthenticationMWs {
|
|
4
|
+
static tryAuthenticate(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
5
|
+
static authenticate(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
6
|
+
static normalizePathParam(paramName: string): (req: Request, res: Response, next: NextFunction) => void;
|
|
7
|
+
static authoriseMetaFiles(paramName: string): (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
8
|
+
static authoriseMedia(paramName: string): (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
9
|
+
static authorise(role: UserRoles): (req: Request, res: Response, next: NextFunction) => void;
|
|
10
|
+
static shareLogin(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
11
|
+
static inverseAuthenticate(req: Request, res: Response, next: NextFunction): void;
|
|
12
|
+
static login(req: Request, res: Response, next: NextFunction): Promise<void | Response>;
|
|
13
|
+
static logout(req: Request, res: Response, next: NextFunction): void;
|
|
14
|
+
private static getSharingUser;
|
|
15
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { NextFunction, Request, Response } from 'express';
|
|
2
|
-
export declare class UserMWs {
|
|
3
|
-
static createUser(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
4
|
-
static deleteUser(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
5
|
-
static changeRole(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
6
|
-
static
|
|
7
|
-
|
|
1
|
+
import { NextFunction, Request, Response } from 'express';
|
|
2
|
+
export declare class UserMWs {
|
|
3
|
+
static createUser(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
4
|
+
static deleteUser(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
5
|
+
static changeRole(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
6
|
+
static updateSettings(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
7
|
+
static listUsers(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
8
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { NextFunction, Request, Response } from 'express';
|
|
2
|
-
export declare class UserRequestConstrainsMWs {
|
|
3
|
-
static forceSelfRequest(req: Request, res: Response, next: NextFunction): void;
|
|
4
|
-
static notSelfRequest(req: Request, res: Response, next: NextFunction): void;
|
|
5
|
-
static notSelfRequestOr2Admins(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
6
|
-
}
|
|
1
|
+
import { NextFunction, Request, Response } from 'express';
|
|
2
|
+
export declare class UserRequestConstrainsMWs {
|
|
3
|
+
static forceSelfRequest(req: Request, res: Response, next: NextFunction): void;
|
|
4
|
+
static notSelfRequest(req: Request, res: Response, next: NextFunction): void;
|
|
5
|
+
static notSelfRequestOr2Admins(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
6
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare class EventLoopHandler {
|
|
2
|
-
private readonly MAX_LOOP;
|
|
3
|
-
private eventCounter;
|
|
4
|
-
constructor(MAX_LOOP?: number);
|
|
5
|
-
step(fn: () => Promise<void> | void): void;
|
|
6
|
-
}
|
|
1
|
+
export declare class EventLoopHandler {
|
|
2
|
+
private readonly MAX_LOOP;
|
|
3
|
+
private eventCounter;
|
|
4
|
+
constructor(MAX_LOOP?: number);
|
|
5
|
+
step(fn: () => Promise<void> | void): void;
|
|
6
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FfmpegCommand } from 'fluent-ffmpeg';
|
|
2
|
-
export declare class FFmpegFactory {
|
|
3
|
-
static get(): (path?: string) => FfmpegCommand;
|
|
4
|
-
}
|
|
1
|
+
import { FfmpegCommand } from 'fluent-ffmpeg';
|
|
2
|
+
export declare class FFmpegFactory {
|
|
3
|
+
static get(): (path?: string) => FfmpegCommand;
|
|
4
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare class Localizations {
|
|
2
|
-
static init(): void;
|
|
3
|
-
}
|
|
1
|
+
export declare class Localizations {
|
|
2
|
+
static init(): void;
|
|
3
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { NotificationDTO } from '../../common/entities/NotificationDTO';
|
|
2
|
-
import { Request } from 'express';
|
|
3
|
-
export declare class NotificationManager {
|
|
4
|
-
static notifications: NotificationDTO[];
|
|
5
|
-
static HasNotification: NotificationDTO[];
|
|
6
|
-
static error(message: string, details?: unknown, req?: Request): void;
|
|
7
|
-
static warning(message: string, details?: unknown, req?: Request): void;
|
|
8
|
-
}
|
|
1
|
+
import { NotificationDTO } from '../../common/entities/NotificationDTO';
|
|
2
|
+
import { Request } from 'express';
|
|
3
|
+
export declare class NotificationManager {
|
|
4
|
+
static notifications: NotificationDTO[];
|
|
5
|
+
static HasNotification: NotificationDTO[];
|
|
6
|
+
static error(message: string, details?: unknown, req?: Request): void;
|
|
7
|
+
static warning(message: string, details?: unknown, req?: Request): void;
|
|
8
|
+
}
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NotificationManager = void 0;
|
|
4
|
-
const NotificationDTO_1 = require("../../common/entities/NotificationDTO");
|
|
5
|
-
class NotificationManager {
|
|
6
|
-
static { this.notifications = []; }
|
|
7
|
-
static { this.HasNotification = [
|
|
8
|
-
{
|
|
9
|
-
type: NotificationDTO_1.NotificationType.info,
|
|
10
|
-
message: 'There are unhandled server notification. Login as Administrator to handle them.',
|
|
11
|
-
},
|
|
12
|
-
]; }
|
|
13
|
-
static error(message, details, req) {
|
|
14
|
-
const noti = {
|
|
15
|
-
type: NotificationDTO_1.NotificationType.error,
|
|
16
|
-
message,
|
|
17
|
-
details,
|
|
18
|
-
};
|
|
19
|
-
if (req) {
|
|
20
|
-
noti.request = {
|
|
21
|
-
method: req.method,
|
|
22
|
-
url: req.url,
|
|
23
|
-
statusCode: req.statusCode,
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
NotificationManager.notifications.push(noti);
|
|
27
|
-
}
|
|
28
|
-
static warning(message, details, req) {
|
|
29
|
-
const noti = {
|
|
30
|
-
type: NotificationDTO_1.NotificationType.warning,
|
|
31
|
-
message,
|
|
32
|
-
details,
|
|
33
|
-
};
|
|
34
|
-
if (req) {
|
|
35
|
-
noti.request = {
|
|
36
|
-
method: req.method,
|
|
37
|
-
url: req.url,
|
|
38
|
-
statusCode: req.statusCode,
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
NotificationManager.notifications.push(noti);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
exports.NotificationManager = NotificationManager;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NotificationManager = void 0;
|
|
4
|
+
const NotificationDTO_1 = require("../../common/entities/NotificationDTO");
|
|
5
|
+
class NotificationManager {
|
|
6
|
+
static { this.notifications = []; }
|
|
7
|
+
static { this.HasNotification = [
|
|
8
|
+
{
|
|
9
|
+
type: NotificationDTO_1.NotificationType.info,
|
|
10
|
+
message: 'There are unhandled server notification. Login as Administrator to handle them.',
|
|
11
|
+
},
|
|
12
|
+
]; }
|
|
13
|
+
static error(message, details, req) {
|
|
14
|
+
const noti = {
|
|
15
|
+
type: NotificationDTO_1.NotificationType.error,
|
|
16
|
+
message,
|
|
17
|
+
details,
|
|
18
|
+
};
|
|
19
|
+
if (req) {
|
|
20
|
+
noti.request = {
|
|
21
|
+
method: req.method,
|
|
22
|
+
url: req.url,
|
|
23
|
+
statusCode: req.statusCode,
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
NotificationManager.notifications.push(noti);
|
|
27
|
+
}
|
|
28
|
+
static warning(message, details, req) {
|
|
29
|
+
const noti = {
|
|
30
|
+
type: NotificationDTO_1.NotificationType.warning,
|
|
31
|
+
message,
|
|
32
|
+
details,
|
|
33
|
+
};
|
|
34
|
+
if (req) {
|
|
35
|
+
noti.request = {
|
|
36
|
+
method: req.method,
|
|
37
|
+
url: req.url,
|
|
38
|
+
statusCode: req.statusCode,
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
NotificationManager.notifications.push(noti);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.NotificationManager = NotificationManager;
|