@webiny/api-audit-logs 0.0.0-unstable.eb196ccd2f → 0.0.0-unstable.eb81deee7e
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/AuditLogsFeature.d.ts +8 -0
- package/AuditLogsFeature.js +32 -0
- package/AuditLogsFeature.js.map +1 -0
- package/README.md +11 -1
- package/abstractions.d.ts +15 -0
- package/abstractions.js +6 -0
- package/abstractions.js.map +1 -0
- package/config.d.ts +0 -13
- package/config.js +4 -291
- package/config.js.map +1 -1
- package/domain/errors.d.ts +5 -0
- package/domain/errors.js +11 -0
- package/domain/errors.js.map +1 -0
- package/events/AuditLogAfterCreateEvent.d.ts +6 -0
- package/events/AuditLogAfterCreateEvent.js +13 -0
- package/events/AuditLogAfterCreateEvent.js.map +1 -0
- package/events/AuditLogAfterUpdateEvent.d.ts +6 -0
- package/events/AuditLogAfterUpdateEvent.js +13 -0
- package/events/AuditLogAfterUpdateEvent.js.map +1 -0
- package/events/AuditLogBeforeCreateEvent.d.ts +6 -0
- package/events/AuditLogBeforeCreateEvent.js +13 -0
- package/events/AuditLogBeforeCreateEvent.js.map +1 -0
- package/events/AuditLogBeforeUpdateEvent.d.ts +6 -0
- package/events/AuditLogBeforeUpdateEvent.js +13 -0
- package/events/AuditLogBeforeUpdateEvent.js.map +1 -0
- package/events/abstractions.d.ts +38 -0
- package/events/abstractions.js +8 -0
- package/events/abstractions.js.map +1 -0
- package/events/index.d.ts +5 -0
- package/events/index.js +5 -0
- package/features/AuditLogPermissions/AuditLogPermissions.d.ts +15 -0
- package/features/AuditLogPermissions/AuditLogPermissions.js +24 -0
- package/features/AuditLogPermissions/AuditLogPermissions.js.map +1 -0
- package/features/AuditLogPermissions/abstractions.d.ts +11 -0
- package/features/AuditLogPermissions/abstractions.js +5 -0
- package/features/AuditLogPermissions/abstractions.js.map +1 -0
- package/features/AuditLogPermissions/feature.d.ts +4 -0
- package/features/AuditLogPermissions/feature.js +11 -0
- package/features/AuditLogPermissions/feature.js.map +1 -0
- package/features/CreateAuditLog/CreateAuditLogGateway.d.ts +12 -0
- package/features/CreateAuditLog/CreateAuditLogGateway.js +23 -0
- package/features/CreateAuditLog/CreateAuditLogGateway.js.map +1 -0
- package/features/CreateAuditLog/CreateAuditLogRepository.d.ts +14 -0
- package/features/CreateAuditLog/CreateAuditLogRepository.js +25 -0
- package/features/CreateAuditLog/CreateAuditLogRepository.js.map +1 -0
- package/features/CreateAuditLog/CreateAuditLogUseCase.d.ts +24 -0
- package/features/CreateAuditLog/CreateAuditLogUseCase.js +70 -0
- package/features/CreateAuditLog/CreateAuditLogUseCase.js.map +1 -0
- package/features/CreateAuditLog/abstractions.d.ts +42 -0
- package/features/CreateAuditLog/abstractions.js +7 -0
- package/features/CreateAuditLog/abstractions.js.map +1 -0
- package/features/CreateAuditLog/feature.d.ts +4 -0
- package/features/CreateAuditLog/feature.js +15 -0
- package/features/CreateAuditLog/feature.js.map +1 -0
- package/features/GetAuditLog/GetAuditLogGateway.d.ts +13 -0
- package/features/GetAuditLog/GetAuditLogGateway.js +21 -0
- package/features/GetAuditLog/GetAuditLogGateway.js.map +1 -0
- package/features/GetAuditLog/GetAuditLogRepository.d.ts +16 -0
- package/features/GetAuditLog/GetAuditLogRepository.js +32 -0
- package/features/GetAuditLog/GetAuditLogRepository.js.map +1 -0
- package/features/GetAuditLog/GetAuditLogUseCase.d.ts +15 -0
- package/features/GetAuditLog/GetAuditLogUseCase.js +29 -0
- package/features/GetAuditLog/GetAuditLogUseCase.js.map +1 -0
- package/features/GetAuditLog/abstractions.d.ts +42 -0
- package/features/GetAuditLog/abstractions.js +7 -0
- package/features/GetAuditLog/abstractions.js.map +1 -0
- package/features/GetAuditLog/feature.d.ts +4 -0
- package/features/GetAuditLog/feature.js +15 -0
- package/features/GetAuditLog/feature.js.map +1 -0
- package/features/ListAuditLogs/ListAuditLogsGateway.d.ts +12 -0
- package/features/ListAuditLogs/ListAuditLogsGateway.js +24 -0
- package/features/ListAuditLogs/ListAuditLogsGateway.js.map +1 -0
- package/features/ListAuditLogs/ListAuditLogsRepository.d.ts +17 -0
- package/features/ListAuditLogs/ListAuditLogsRepository.js +38 -0
- package/features/ListAuditLogs/ListAuditLogsRepository.js.map +1 -0
- package/features/ListAuditLogs/ListAuditLogsUseCase.d.ts +15 -0
- package/features/ListAuditLogs/ListAuditLogsUseCase.js +27 -0
- package/features/ListAuditLogs/ListAuditLogsUseCase.js.map +1 -0
- package/features/ListAuditLogs/abstractions.d.ts +55 -0
- package/features/ListAuditLogs/abstractions.js +7 -0
- package/features/ListAuditLogs/abstractions.js.map +1 -0
- package/features/ListAuditLogs/feature.d.ts +4 -0
- package/features/ListAuditLogs/feature.js +15 -0
- package/features/ListAuditLogs/feature.js.map +1 -0
- package/features/RecordAuditLog/RecordAuditLogUseCase.d.ts +30 -0
- package/features/RecordAuditLog/RecordAuditLogUseCase.js +108 -0
- package/features/RecordAuditLog/RecordAuditLogUseCase.js.map +1 -0
- package/features/RecordAuditLog/abstractions.d.ts +26 -0
- package/features/RecordAuditLog/abstractions.js +5 -0
- package/features/RecordAuditLog/abstractions.js.map +1 -0
- package/features/RecordAuditLog/feature.d.ts +4 -0
- package/features/RecordAuditLog/feature.js +11 -0
- package/features/RecordAuditLog/feature.js.map +1 -0
- package/features/UpdateAuditLog/UpdateAuditLogGateway.d.ts +12 -0
- package/features/UpdateAuditLog/UpdateAuditLogGateway.js +23 -0
- package/features/UpdateAuditLog/UpdateAuditLogGateway.js.map +1 -0
- package/features/UpdateAuditLog/UpdateAuditLogRepository.d.ts +14 -0
- package/features/UpdateAuditLog/UpdateAuditLogRepository.js +25 -0
- package/features/UpdateAuditLog/UpdateAuditLogRepository.js.map +1 -0
- package/features/UpdateAuditLog/UpdateAuditLogUseCase.d.ts +18 -0
- package/features/UpdateAuditLog/UpdateAuditLogUseCase.js +53 -0
- package/features/UpdateAuditLog/UpdateAuditLogUseCase.js.map +1 -0
- package/features/UpdateAuditLog/abstractions.d.ts +42 -0
- package/features/UpdateAuditLog/abstractions.js +7 -0
- package/features/UpdateAuditLog/abstractions.js.map +1 -0
- package/features/UpdateAuditLog/feature.d.ts +4 -0
- package/features/UpdateAuditLog/feature.js +15 -0
- package/features/UpdateAuditLog/feature.js.map +1 -0
- package/graphql/AuditLogsGraphQLSchema.d.ts +10 -0
- package/graphql/AuditLogsGraphQLSchema.js +139 -0
- package/graphql/AuditLogsGraphQLSchema.js.map +1 -0
- package/graphql/validation.d.ts +21 -0
- package/graphql/validation.js +31 -0
- package/graphql/validation.js.map +1 -0
- package/index.d.ts +3 -5
- package/index.js +2 -49
- package/package.json +34 -26
- package/storage/abstractions/Storage.d.ts +108 -0
- package/storage/abstractions/Storage.js +0 -0
- package/storage/types.d.ts +19 -0
- package/storage/types.js +0 -0
- package/subscriptions/aco/handlers/AuditLogFolderAfterCreateHandler.d.ts +11 -0
- package/subscriptions/aco/handlers/AuditLogFolderAfterCreateHandler.js +45 -0
- package/subscriptions/aco/handlers/AuditLogFolderAfterCreateHandler.js.map +1 -0
- package/subscriptions/aco/handlers/AuditLogFolderAfterDeleteHandler.d.ts +11 -0
- package/subscriptions/aco/handlers/AuditLogFolderAfterDeleteHandler.js +53 -0
- package/subscriptions/aco/handlers/AuditLogFolderAfterDeleteHandler.js.map +1 -0
- package/subscriptions/aco/handlers/AuditLogFolderAfterUpdateHandler.d.ts +11 -0
- package/subscriptions/aco/handlers/AuditLogFolderAfterUpdateHandler.js +51 -0
- package/subscriptions/aco/handlers/AuditLogFolderAfterUpdateHandler.js.map +1 -0
- package/subscriptions/aco/index.d.ts +2 -2
- package/subscriptions/aco/index.js +8 -15
- package/subscriptions/aco/index.js.map +1 -1
- package/subscriptions/ai/handlers/AuditLogAiAfterGenerateTextHandler.d.ts +11 -0
- package/subscriptions/ai/handlers/AuditLogAiAfterGenerateTextHandler.js +45 -0
- package/subscriptions/ai/handlers/AuditLogAiAfterGenerateTextHandler.js.map +1 -0
- package/subscriptions/ai/handlers/AuditLogAiBeforeGenerateTextHandler.d.ts +11 -0
- package/subscriptions/ai/handlers/AuditLogAiBeforeGenerateTextHandler.js +42 -0
- package/subscriptions/ai/handlers/AuditLogAiBeforeGenerateTextHandler.js.map +1 -0
- package/subscriptions/ai/handlers/AuditLogAiGenerateTextErrorHandler.d.ts +11 -0
- package/subscriptions/ai/handlers/AuditLogAiGenerateTextErrorHandler.js +44 -0
- package/subscriptions/ai/handlers/AuditLogAiGenerateTextErrorHandler.js.map +1 -0
- package/subscriptions/ai/index.d.ts +2 -0
- package/subscriptions/ai/index.js +11 -0
- package/subscriptions/ai/index.js.map +1 -0
- package/subscriptions/fileManager/handlers/AuditLogFileAfterCreateHandler.d.ts +11 -0
- package/subscriptions/fileManager/handlers/AuditLogFileAfterCreateHandler.js +35 -0
- package/subscriptions/fileManager/handlers/AuditLogFileAfterCreateHandler.js.map +1 -0
- package/subscriptions/fileManager/handlers/AuditLogFileAfterDeleteHandler.d.ts +11 -0
- package/subscriptions/fileManager/handlers/AuditLogFileAfterDeleteHandler.js +35 -0
- package/subscriptions/fileManager/handlers/AuditLogFileAfterDeleteHandler.js.map +1 -0
- package/subscriptions/fileManager/handlers/AuditLogFileAfterUpdateHandler.d.ts +11 -0
- package/subscriptions/fileManager/handlers/AuditLogFileAfterUpdateHandler.js +38 -0
- package/subscriptions/fileManager/handlers/AuditLogFileAfterUpdateHandler.js.map +1 -0
- package/subscriptions/fileManager/handlers/AuditLogSettingsAfterUpdateHandler.d.ts +11 -0
- package/subscriptions/fileManager/handlers/AuditLogSettingsAfterUpdateHandler.js +38 -0
- package/subscriptions/fileManager/handlers/AuditLogSettingsAfterUpdateHandler.js.map +1 -0
- package/subscriptions/fileManager/index.d.ts +2 -2
- package/subscriptions/fileManager/index.js +10 -14
- package/subscriptions/fileManager/index.js.map +1 -1
- package/subscriptions/headlessCms/handlers/AuditLogEntryAfterCreateEventHandler.d.ts +11 -0
- package/subscriptions/headlessCms/handlers/AuditLogEntryAfterCreateEventHandler.js +36 -0
- package/subscriptions/headlessCms/handlers/AuditLogEntryAfterCreateEventHandler.js.map +1 -0
- package/subscriptions/headlessCms/handlers/AuditLogEntryAfterDeleteEventHandler.d.ts +11 -0
- package/subscriptions/headlessCms/handlers/AuditLogEntryAfterDeleteEventHandler.js +46 -0
- package/subscriptions/headlessCms/handlers/AuditLogEntryAfterDeleteEventHandler.js.map +1 -0
- package/subscriptions/headlessCms/handlers/AuditLogEntryAfterPublishEventHandler.d.ts +11 -0
- package/subscriptions/headlessCms/handlers/AuditLogEntryAfterPublishEventHandler.js +36 -0
- package/subscriptions/headlessCms/handlers/AuditLogEntryAfterPublishEventHandler.js.map +1 -0
- package/subscriptions/headlessCms/handlers/AuditLogEntryAfterRestoreFromBinEventHandler.d.ts +11 -0
- package/subscriptions/headlessCms/handlers/AuditLogEntryAfterRestoreFromBinEventHandler.js +36 -0
- package/subscriptions/headlessCms/handlers/AuditLogEntryAfterRestoreFromBinEventHandler.js.map +1 -0
- package/subscriptions/headlessCms/handlers/AuditLogEntryAfterUnpublishEventHandler.d.ts +11 -0
- package/subscriptions/headlessCms/handlers/AuditLogEntryAfterUnpublishEventHandler.js +36 -0
- package/subscriptions/headlessCms/handlers/AuditLogEntryAfterUnpublishEventHandler.js.map +1 -0
- package/subscriptions/headlessCms/handlers/AuditLogEntryAfterUpdateEventHandler.d.ts +11 -0
- package/subscriptions/headlessCms/handlers/AuditLogEntryAfterUpdateEventHandler.js +39 -0
- package/subscriptions/headlessCms/handlers/AuditLogEntryAfterUpdateEventHandler.js.map +1 -0
- package/subscriptions/headlessCms/handlers/AuditLogEntryRevisionAfterCreateEventHandler.d.ts +11 -0
- package/subscriptions/headlessCms/handlers/AuditLogEntryRevisionAfterCreateEventHandler.js +36 -0
- package/subscriptions/headlessCms/handlers/AuditLogEntryRevisionAfterCreateEventHandler.js.map +1 -0
- package/subscriptions/headlessCms/handlers/AuditLogEntryRevisionAfterDeleteEventHandler.d.ts +11 -0
- package/subscriptions/headlessCms/handlers/AuditLogEntryRevisionAfterDeleteEventHandler.js +36 -0
- package/subscriptions/headlessCms/handlers/AuditLogEntryRevisionAfterDeleteEventHandler.js.map +1 -0
- package/subscriptions/headlessCms/handlers/AuditLogGroupAfterCreateEventHandler.d.ts +11 -0
- package/subscriptions/headlessCms/handlers/AuditLogGroupAfterCreateEventHandler.js +35 -0
- package/subscriptions/headlessCms/handlers/AuditLogGroupAfterCreateEventHandler.js.map +1 -0
- package/subscriptions/headlessCms/handlers/AuditLogGroupAfterDeleteEventHandler.d.ts +11 -0
- package/subscriptions/headlessCms/handlers/AuditLogGroupAfterDeleteEventHandler.js +35 -0
- package/subscriptions/headlessCms/handlers/AuditLogGroupAfterDeleteEventHandler.js.map +1 -0
- package/subscriptions/headlessCms/handlers/AuditLogGroupAfterUpdateEventHandler.d.ts +11 -0
- package/subscriptions/headlessCms/handlers/AuditLogGroupAfterUpdateEventHandler.js +38 -0
- package/subscriptions/headlessCms/handlers/AuditLogGroupAfterUpdateEventHandler.js.map +1 -0
- package/subscriptions/headlessCms/handlers/AuditLogModelAfterCreateEventHandler.d.ts +11 -0
- package/subscriptions/headlessCms/handlers/AuditLogModelAfterCreateEventHandler.js +35 -0
- package/subscriptions/headlessCms/handlers/AuditLogModelAfterCreateEventHandler.js.map +1 -0
- package/subscriptions/headlessCms/handlers/AuditLogModelAfterDeleteEventHandler.d.ts +11 -0
- package/subscriptions/headlessCms/handlers/AuditLogModelAfterDeleteEventHandler.js +35 -0
- package/subscriptions/headlessCms/handlers/AuditLogModelAfterDeleteEventHandler.js.map +1 -0
- package/subscriptions/headlessCms/handlers/AuditLogModelAfterUpdateEventHandler.d.ts +11 -0
- package/subscriptions/headlessCms/handlers/AuditLogModelAfterUpdateEventHandler.js +38 -0
- package/subscriptions/headlessCms/handlers/AuditLogModelAfterUpdateEventHandler.js.map +1 -0
- package/subscriptions/headlessCms/index.d.ts +2 -2
- package/subscriptions/headlessCms/index.js +30 -28
- package/subscriptions/headlessCms/index.js.map +1 -1
- package/subscriptions/index.d.ts +2 -2
- package/subscriptions/index.js +16 -22
- package/subscriptions/index.js.map +1 -1
- package/subscriptions/mailer/handlers/AuditLogMailerSettingsAfterSaveHandler.d.ts +11 -0
- package/subscriptions/mailer/handlers/AuditLogMailerSettingsAfterSaveHandler.js +37 -0
- package/subscriptions/mailer/handlers/AuditLogMailerSettingsAfterSaveHandler.js.map +1 -0
- package/subscriptions/mailer/index.d.ts +2 -2
- package/subscriptions/mailer/index.js +4 -10
- package/subscriptions/mailer/index.js.map +1 -1
- package/subscriptions/security/handlers/AuditLogApiKeyAfterCreateHandler.d.ts +11 -0
- package/subscriptions/security/handlers/AuditLogApiKeyAfterCreateHandler.js +45 -0
- package/subscriptions/security/handlers/AuditLogApiKeyAfterCreateHandler.js.map +1 -0
- package/subscriptions/security/handlers/AuditLogApiKeyAfterDeleteHandler.d.ts +11 -0
- package/subscriptions/security/handlers/AuditLogApiKeyAfterDeleteHandler.js +45 -0
- package/subscriptions/security/handlers/AuditLogApiKeyAfterDeleteHandler.js.map +1 -0
- package/subscriptions/security/handlers/AuditLogApiKeyAfterUpdateHandler.d.ts +11 -0
- package/subscriptions/security/handlers/AuditLogApiKeyAfterUpdateHandler.js +49 -0
- package/subscriptions/security/handlers/AuditLogApiKeyAfterUpdateHandler.js.map +1 -0
- package/subscriptions/security/handlers/AuditLogRoleAfterCreateHandler.d.ts +11 -0
- package/subscriptions/security/handlers/AuditLogRoleAfterCreateHandler.js +35 -0
- package/subscriptions/security/handlers/AuditLogRoleAfterCreateHandler.js.map +1 -0
- package/subscriptions/security/handlers/AuditLogRoleAfterDeleteHandler.d.ts +11 -0
- package/subscriptions/security/handlers/AuditLogRoleAfterDeleteHandler.js +35 -0
- package/subscriptions/security/handlers/AuditLogRoleAfterDeleteHandler.js.map +1 -0
- package/subscriptions/security/handlers/AuditLogRoleAfterUpdateHandler.d.ts +11 -0
- package/subscriptions/security/handlers/AuditLogRoleAfterUpdateHandler.js +38 -0
- package/subscriptions/security/handlers/AuditLogRoleAfterUpdateHandler.js.map +1 -0
- package/subscriptions/security/handlers/AuditLogTeamAfterCreateHandler.d.ts +11 -0
- package/subscriptions/security/handlers/AuditLogTeamAfterCreateHandler.js +35 -0
- package/subscriptions/security/handlers/AuditLogTeamAfterCreateHandler.js.map +1 -0
- package/subscriptions/security/handlers/AuditLogTeamAfterDeleteHandler.d.ts +11 -0
- package/subscriptions/security/handlers/AuditLogTeamAfterDeleteHandler.js +35 -0
- package/subscriptions/security/handlers/AuditLogTeamAfterDeleteHandler.js.map +1 -0
- package/subscriptions/security/handlers/AuditLogTeamAfterUpdateHandler.d.ts +11 -0
- package/subscriptions/security/handlers/AuditLogTeamAfterUpdateHandler.js +38 -0
- package/subscriptions/security/handlers/AuditLogTeamAfterUpdateHandler.js.map +1 -0
- package/subscriptions/security/handlers/AuditLogUserAfterCreateHandler.d.ts +11 -0
- package/subscriptions/security/handlers/AuditLogUserAfterCreateHandler.js +35 -0
- package/subscriptions/security/handlers/AuditLogUserAfterCreateHandler.js.map +1 -0
- package/subscriptions/security/handlers/AuditLogUserAfterDeleteHandler.d.ts +11 -0
- package/subscriptions/security/handlers/AuditLogUserAfterDeleteHandler.js +35 -0
- package/subscriptions/security/handlers/AuditLogUserAfterDeleteHandler.js.map +1 -0
- package/subscriptions/security/handlers/AuditLogUserAfterUpdateHandler.d.ts +11 -0
- package/subscriptions/security/handlers/AuditLogUserAfterUpdateHandler.js +38 -0
- package/subscriptions/security/handlers/AuditLogUserAfterUpdateHandler.js.map +1 -0
- package/subscriptions/security/handlers/cleanupApiKey.d.ts +7 -0
- package/subscriptions/security/handlers/cleanupApiKey.js +12 -0
- package/subscriptions/security/handlers/cleanupApiKey.js.map +1 -0
- package/subscriptions/security/index.d.ts +2 -2
- package/subscriptions/security/index.js +26 -24
- package/subscriptions/security/index.js.map +1 -1
- package/subscriptions/websiteBuilder/index.d.ts +2 -0
- package/subscriptions/websiteBuilder/index.js +29 -0
- package/subscriptions/websiteBuilder/index.js.map +1 -0
- package/subscriptions/websiteBuilder/pages/PageAfterCreateHandler.d.ts +11 -0
- package/subscriptions/websiteBuilder/pages/PageAfterCreateHandler.js +35 -0
- package/subscriptions/websiteBuilder/pages/PageAfterCreateHandler.js.map +1 -0
- package/subscriptions/websiteBuilder/pages/PageAfterCreateRevisionFromHandler.d.ts +11 -0
- package/subscriptions/websiteBuilder/pages/PageAfterCreateRevisionFromHandler.js +35 -0
- package/subscriptions/websiteBuilder/pages/PageAfterCreateRevisionFromHandler.js.map +1 -0
- package/subscriptions/websiteBuilder/pages/PageAfterDeleteHandler.d.ts +11 -0
- package/subscriptions/websiteBuilder/pages/PageAfterDeleteHandler.js +35 -0
- package/subscriptions/websiteBuilder/pages/PageAfterDeleteHandler.js.map +1 -0
- package/subscriptions/websiteBuilder/pages/PageAfterDuplicateHandler.d.ts +11 -0
- package/subscriptions/websiteBuilder/pages/PageAfterDuplicateHandler.js +38 -0
- package/subscriptions/websiteBuilder/pages/PageAfterDuplicateHandler.js.map +1 -0
- package/subscriptions/websiteBuilder/pages/PageAfterMoveHandler.d.ts +11 -0
- package/subscriptions/websiteBuilder/pages/PageAfterMoveHandler.js +35 -0
- package/subscriptions/websiteBuilder/pages/PageAfterMoveHandler.js.map +1 -0
- package/subscriptions/websiteBuilder/pages/PageAfterPublishHandler.d.ts +11 -0
- package/subscriptions/websiteBuilder/pages/PageAfterPublishHandler.js +35 -0
- package/subscriptions/websiteBuilder/pages/PageAfterPublishHandler.js.map +1 -0
- package/subscriptions/websiteBuilder/pages/PageAfterUnpublishHandler.d.ts +11 -0
- package/subscriptions/websiteBuilder/pages/PageAfterUnpublishHandler.js +35 -0
- package/subscriptions/websiteBuilder/pages/PageAfterUnpublishHandler.js.map +1 -0
- package/subscriptions/websiteBuilder/pages/PageAfterUpdateHandler.d.ts +11 -0
- package/subscriptions/websiteBuilder/pages/PageAfterUpdateHandler.js +38 -0
- package/subscriptions/websiteBuilder/pages/PageAfterUpdateHandler.js.map +1 -0
- package/subscriptions/websiteBuilder/redirects/RedirectAfterCreateHandler.d.ts +11 -0
- package/subscriptions/websiteBuilder/redirects/RedirectAfterCreateHandler.js +35 -0
- package/subscriptions/websiteBuilder/redirects/RedirectAfterCreateHandler.js.map +1 -0
- package/subscriptions/websiteBuilder/redirects/RedirectAfterDeleteHandler.d.ts +11 -0
- package/subscriptions/websiteBuilder/redirects/RedirectAfterDeleteHandler.js +35 -0
- package/subscriptions/websiteBuilder/redirects/RedirectAfterDeleteHandler.js.map +1 -0
- package/subscriptions/websiteBuilder/redirects/RedirectAfterMoveHandler.d.ts +11 -0
- package/subscriptions/websiteBuilder/redirects/RedirectAfterMoveHandler.js +35 -0
- package/subscriptions/websiteBuilder/redirects/RedirectAfterMoveHandler.js.map +1 -0
- package/subscriptions/websiteBuilder/redirects/RedirectAfterUpdateHandler.d.ts +11 -0
- package/subscriptions/websiteBuilder/redirects/RedirectAfterUpdateHandler.js +38 -0
- package/subscriptions/websiteBuilder/redirects/RedirectAfterUpdateHandler.js.map +1 -0
- package/types.d.ts +14 -38
- package/types.js +0 -18
- package/utils/expiresAt.d.ts +4 -0
- package/utils/expiresAt.js +20 -0
- package/utils/expiresAt.js.map +1 -0
- package/utils/getAuditObject.d.ts +2 -1
- package/utils/getAuditObject.js +14 -22
- package/utils/getAuditObject.js.map +1 -1
- package/app/app.d.ts +0 -2
- package/app/app.js +0 -119
- package/app/app.js.map +0 -1
- package/app/contants.d.ts +0 -2
- package/app/contants.js +0 -10
- package/app/contants.js.map +0 -1
- package/app/createAppModifier.d.ts +0 -4
- package/app/createAppModifier.js +0 -14
- package/app/createAppModifier.js.map +0 -1
- package/app/index.d.ts +0 -4
- package/app/index.js +0 -43
- package/app/index.js.map +0 -1
- package/app/types.d.ts +0 -7
- package/app/types.js +0 -7
- package/app/types.js.map +0 -1
- package/index.js.map +0 -1
- package/subscriptions/aco/folders.d.ts +0 -4
- package/subscriptions/aco/folders.js +0 -94
- package/subscriptions/aco/folders.js.map +0 -1
- package/subscriptions/apw/changeRequests.d.ts +0 -4
- package/subscriptions/apw/changeRequests.js +0 -80
- package/subscriptions/apw/changeRequests.js.map +0 -1
- package/subscriptions/apw/comments.d.ts +0 -2
- package/subscriptions/apw/comments.js +0 -28
- package/subscriptions/apw/comments.js.map +0 -1
- package/subscriptions/apw/contentReviews.d.ts +0 -2
- package/subscriptions/apw/contentReviews.js +0 -28
- package/subscriptions/apw/contentReviews.js.map +0 -1
- package/subscriptions/apw/index.d.ts +0 -2
- package/subscriptions/apw/index.js +0 -26
- package/subscriptions/apw/index.js.map +0 -1
- package/subscriptions/apw/workflows.d.ts +0 -4
- package/subscriptions/apw/workflows.js +0 -64
- package/subscriptions/apw/workflows.js.map +0 -1
- package/subscriptions/fileManager/files.d.ts +0 -4
- package/subscriptions/fileManager/files.js +0 -64
- package/subscriptions/fileManager/files.js.map +0 -1
- package/subscriptions/fileManager/settings.d.ts +0 -2
- package/subscriptions/fileManager/settings.js +0 -32
- package/subscriptions/fileManager/settings.js.map +0 -1
- package/subscriptions/headlessCms/entries.d.ts +0 -9
- package/subscriptions/headlessCms/entries.js +0 -183
- package/subscriptions/headlessCms/entries.js.map +0 -1
- package/subscriptions/headlessCms/groups.d.ts +0 -4
- package/subscriptions/headlessCms/groups.js +0 -64
- package/subscriptions/headlessCms/groups.js.map +0 -1
- package/subscriptions/headlessCms/models.d.ts +0 -4
- package/subscriptions/headlessCms/models.js +0 -64
- package/subscriptions/headlessCms/models.js.map +0 -1
- package/subscriptions/headlessCms/utils/isSearchModelEntry.d.ts +0 -1
- package/subscriptions/headlessCms/utils/isSearchModelEntry.js +0 -13
- package/subscriptions/headlessCms/utils/isSearchModelEntry.js.map +0 -1
- package/subscriptions/i18n/index.d.ts +0 -2
- package/subscriptions/i18n/index.js +0 -15
- package/subscriptions/i18n/index.js.map +0 -1
- package/subscriptions/i18n/locales.d.ts +0 -4
- package/subscriptions/i18n/locales.js +0 -64
- package/subscriptions/i18n/locales.js.map +0 -1
- package/subscriptions/mailer/settings.d.ts +0 -2
- package/subscriptions/mailer/settings.js +0 -32
- package/subscriptions/mailer/settings.js.map +0 -1
- package/subscriptions/security/apiKeys.d.ts +0 -4
- package/subscriptions/security/apiKeys.js +0 -85
- package/subscriptions/security/apiKeys.js.map +0 -1
- package/subscriptions/security/roles.d.ts +0 -4
- package/subscriptions/security/roles.js +0 -64
- package/subscriptions/security/roles.js.map +0 -1
- package/subscriptions/security/teams.d.ts +0 -4
- package/subscriptions/security/teams.js +0 -64
- package/subscriptions/security/teams.js.map +0 -1
- package/subscriptions/security/users.d.ts +0 -4
- package/subscriptions/security/users.js +0 -64
- package/subscriptions/security/users.js.map +0 -1
- package/types.js.map +0 -1
- package/utils/getAuditConfig.d.ts +0 -36
- package/utils/getAuditConfig.js +0 -149
- package/utils/getAuditConfig.js.map +0 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FileAfterCreateEventHandler } from "@webiny/api-file-manager/features/file/CreateFile/index.js";
|
|
2
|
+
import { RecordAuditLogUseCase } from "../../../features/RecordAuditLog/abstractions.js";
|
|
3
|
+
declare class AuditLogFileAfterCreateHandlerImpl implements FileAfterCreateEventHandler.Interface {
|
|
4
|
+
private recordAuditLog;
|
|
5
|
+
constructor(recordAuditLog: RecordAuditLogUseCase.Interface);
|
|
6
|
+
handle(event: FileAfterCreateEventHandler.Event): Promise<void>;
|
|
7
|
+
}
|
|
8
|
+
export declare const AuditLogFileAfterCreateHandler: typeof AuditLogFileAfterCreateHandlerImpl & {
|
|
9
|
+
__abstraction: import("@webiny/di").Abstraction<import("@webiny/api-core/features/eventPublisher").IEventHandler<import("@webiny/api-file-manager/features/file/CreateFile/events").FileAfterCreateEvent>>;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import _webiny_error from "@webiny/error";
|
|
2
|
+
import { FileAfterCreateEventHandler } from "@webiny/api-file-manager/features/file/CreateFile/index.js";
|
|
3
|
+
import { RecordAuditLogUseCase } from "../../../features/RecordAuditLog/abstractions.js";
|
|
4
|
+
import { AUDIT } from "../../../config.js";
|
|
5
|
+
class AuditLogFileAfterCreateHandlerImpl {
|
|
6
|
+
constructor(recordAuditLog){
|
|
7
|
+
this.recordAuditLog = recordAuditLog;
|
|
8
|
+
}
|
|
9
|
+
async handle(event) {
|
|
10
|
+
try {
|
|
11
|
+
const { file } = event.payload;
|
|
12
|
+
const recordResult = await this.recordAuditLog.execute({
|
|
13
|
+
audit: AUDIT.FILE_MANAGER.FILE.CREATE,
|
|
14
|
+
message: "File created",
|
|
15
|
+
content: file,
|
|
16
|
+
entityId: file.id
|
|
17
|
+
});
|
|
18
|
+
if (recordResult.isFail()) throw recordResult.error;
|
|
19
|
+
} catch (error) {
|
|
20
|
+
throw _webiny_error.from(error, {
|
|
21
|
+
message: "Error while executing AuditLogFileAfterCreateHandler",
|
|
22
|
+
code: "AUDIT_LOGS_AFTER_FILE_CREATE_HANDLER"
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
const AuditLogFileAfterCreateHandler = FileAfterCreateEventHandler.createImplementation({
|
|
28
|
+
implementation: AuditLogFileAfterCreateHandlerImpl,
|
|
29
|
+
dependencies: [
|
|
30
|
+
RecordAuditLogUseCase
|
|
31
|
+
]
|
|
32
|
+
});
|
|
33
|
+
export { AuditLogFileAfterCreateHandler };
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=AuditLogFileAfterCreateHandler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscriptions/fileManager/handlers/AuditLogFileAfterCreateHandler.js","sources":["../../../../src/subscriptions/fileManager/handlers/AuditLogFileAfterCreateHandler.ts"],"sourcesContent":["import WebinyError from \"@webiny/error\";\nimport { FileAfterCreateEventHandler } from \"@webiny/api-file-manager/features/file/CreateFile/index.js\";\nimport { RecordAuditLogUseCase } from \"~/features/RecordAuditLog/abstractions.js\";\nimport { AUDIT } from \"~/config.js\";\n\nclass AuditLogFileAfterCreateHandlerImpl implements FileAfterCreateEventHandler.Interface {\n constructor(private recordAuditLog: RecordAuditLogUseCase.Interface) {}\n\n async handle(event: FileAfterCreateEventHandler.Event): Promise<void> {\n try {\n const { file } = event.payload;\n\n const recordResult = await this.recordAuditLog.execute({\n audit: AUDIT.FILE_MANAGER.FILE.CREATE,\n message: \"File created\",\n content: file,\n entityId: file.id\n });\n if (recordResult.isFail()) {\n throw recordResult.error;\n }\n } catch (error) {\n throw WebinyError.from(error, {\n message: \"Error while executing AuditLogFileAfterCreateHandler\",\n code: \"AUDIT_LOGS_AFTER_FILE_CREATE_HANDLER\"\n });\n }\n }\n}\n\nexport const AuditLogFileAfterCreateHandler = FileAfterCreateEventHandler.createImplementation({\n implementation: AuditLogFileAfterCreateHandlerImpl,\n dependencies: [RecordAuditLogUseCase]\n});\n"],"names":["AuditLogFileAfterCreateHandlerImpl","recordAuditLog","event","file","recordResult","AUDIT","error","WebinyError","AuditLogFileAfterCreateHandler","FileAfterCreateEventHandler","RecordAuditLogUseCase"],"mappings":";;;;AAKA,MAAMA;IACF,YAAoBC,cAA+C,CAAE;aAAjDA,cAAc,GAAdA;IAAkD;IAEtE,MAAM,OAAOC,KAAwC,EAAiB;QAClE,IAAI;YACA,MAAM,EAAEC,IAAI,EAAE,GAAGD,MAAM,OAAO;YAE9B,MAAME,eAAe,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC;gBACnD,OAAOC,MAAM,YAAY,CAAC,IAAI,CAAC,MAAM;gBACrC,SAAS;gBACT,SAASF;gBACT,UAAUA,KAAK,EAAE;YACrB;YACA,IAAIC,aAAa,MAAM,IACnB,MAAMA,aAAa,KAAK;QAEhC,EAAE,OAAOE,OAAO;YACZ,MAAMC,cAAAA,IAAgB,CAACD,OAAO;gBAC1B,SAAS;gBACT,MAAM;YACV;QACJ;IACJ;AACJ;AAEO,MAAME,iCAAiCC,4BAA4B,oBAAoB,CAAC;IAC3F,gBAAgBT;IAChB,cAAc;QAACU;KAAsB;AACzC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FileAfterDeleteEventHandler } from "@webiny/api-file-manager/features/file/DeleteFile/index.js";
|
|
2
|
+
import { RecordAuditLogUseCase } from "../../../features/RecordAuditLog/abstractions.js";
|
|
3
|
+
declare class AuditLogFileAfterDeleteHandlerImpl implements FileAfterDeleteEventHandler.Interface {
|
|
4
|
+
private recordAuditLog;
|
|
5
|
+
constructor(recordAuditLog: RecordAuditLogUseCase.Interface);
|
|
6
|
+
handle(event: FileAfterDeleteEventHandler.Event): Promise<void>;
|
|
7
|
+
}
|
|
8
|
+
export declare const AuditLogFileAfterDeleteHandler: typeof AuditLogFileAfterDeleteHandlerImpl & {
|
|
9
|
+
__abstraction: import("@webiny/di").Abstraction<import("@webiny/api-core/features/eventPublisher").IEventHandler<import("@webiny/api-file-manager/features/file/DeleteFile/events").FileAfterDeleteEvent>>;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import _webiny_error from "@webiny/error";
|
|
2
|
+
import { FileAfterDeleteEventHandler } from "@webiny/api-file-manager/features/file/DeleteFile/index.js";
|
|
3
|
+
import { RecordAuditLogUseCase } from "../../../features/RecordAuditLog/abstractions.js";
|
|
4
|
+
import { AUDIT } from "../../../config.js";
|
|
5
|
+
class AuditLogFileAfterDeleteHandlerImpl {
|
|
6
|
+
constructor(recordAuditLog){
|
|
7
|
+
this.recordAuditLog = recordAuditLog;
|
|
8
|
+
}
|
|
9
|
+
async handle(event) {
|
|
10
|
+
try {
|
|
11
|
+
const { file } = event.payload;
|
|
12
|
+
const recordResult = await this.recordAuditLog.execute({
|
|
13
|
+
audit: AUDIT.FILE_MANAGER.FILE.DELETE,
|
|
14
|
+
message: "File deleted",
|
|
15
|
+
content: file,
|
|
16
|
+
entityId: file.id
|
|
17
|
+
});
|
|
18
|
+
if (recordResult.isFail()) throw recordResult.error;
|
|
19
|
+
} catch (error) {
|
|
20
|
+
throw _webiny_error.from(error, {
|
|
21
|
+
message: "Error while executing AuditLogFileAfterDeleteHandler",
|
|
22
|
+
code: "AUDIT_LOGS_AFTER_FILE_DELETE_HANDLER"
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
const AuditLogFileAfterDeleteHandler = FileAfterDeleteEventHandler.createImplementation({
|
|
28
|
+
implementation: AuditLogFileAfterDeleteHandlerImpl,
|
|
29
|
+
dependencies: [
|
|
30
|
+
RecordAuditLogUseCase
|
|
31
|
+
]
|
|
32
|
+
});
|
|
33
|
+
export { AuditLogFileAfterDeleteHandler };
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=AuditLogFileAfterDeleteHandler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscriptions/fileManager/handlers/AuditLogFileAfterDeleteHandler.js","sources":["../../../../src/subscriptions/fileManager/handlers/AuditLogFileAfterDeleteHandler.ts"],"sourcesContent":["import WebinyError from \"@webiny/error\";\nimport { FileAfterDeleteEventHandler } from \"@webiny/api-file-manager/features/file/DeleteFile/index.js\";\nimport { RecordAuditLogUseCase } from \"~/features/RecordAuditLog/abstractions.js\";\nimport { AUDIT } from \"~/config.js\";\n\nclass AuditLogFileAfterDeleteHandlerImpl implements FileAfterDeleteEventHandler.Interface {\n constructor(private recordAuditLog: RecordAuditLogUseCase.Interface) {}\n\n async handle(event: FileAfterDeleteEventHandler.Event): Promise<void> {\n try {\n const { file } = event.payload;\n\n const recordResult = await this.recordAuditLog.execute({\n audit: AUDIT.FILE_MANAGER.FILE.DELETE,\n message: \"File deleted\",\n content: file,\n entityId: file.id\n });\n if (recordResult.isFail()) {\n throw recordResult.error;\n }\n } catch (error) {\n throw WebinyError.from(error, {\n message: \"Error while executing AuditLogFileAfterDeleteHandler\",\n code: \"AUDIT_LOGS_AFTER_FILE_DELETE_HANDLER\"\n });\n }\n }\n}\n\nexport const AuditLogFileAfterDeleteHandler = FileAfterDeleteEventHandler.createImplementation({\n implementation: AuditLogFileAfterDeleteHandlerImpl,\n dependencies: [RecordAuditLogUseCase]\n});\n"],"names":["AuditLogFileAfterDeleteHandlerImpl","recordAuditLog","event","file","recordResult","AUDIT","error","WebinyError","AuditLogFileAfterDeleteHandler","FileAfterDeleteEventHandler","RecordAuditLogUseCase"],"mappings":";;;;AAKA,MAAMA;IACF,YAAoBC,cAA+C,CAAE;aAAjDA,cAAc,GAAdA;IAAkD;IAEtE,MAAM,OAAOC,KAAwC,EAAiB;QAClE,IAAI;YACA,MAAM,EAAEC,IAAI,EAAE,GAAGD,MAAM,OAAO;YAE9B,MAAME,eAAe,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC;gBACnD,OAAOC,MAAM,YAAY,CAAC,IAAI,CAAC,MAAM;gBACrC,SAAS;gBACT,SAASF;gBACT,UAAUA,KAAK,EAAE;YACrB;YACA,IAAIC,aAAa,MAAM,IACnB,MAAMA,aAAa,KAAK;QAEhC,EAAE,OAAOE,OAAO;YACZ,MAAMC,cAAAA,IAAgB,CAACD,OAAO;gBAC1B,SAAS;gBACT,MAAM;YACV;QACJ;IACJ;AACJ;AAEO,MAAME,iCAAiCC,4BAA4B,oBAAoB,CAAC;IAC3F,gBAAgBT;IAChB,cAAc;QAACU;KAAsB;AACzC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FileAfterUpdateEventHandler } from "@webiny/api-file-manager/features/file/UpdateFile/index.js";
|
|
2
|
+
import { RecordAuditLogUseCase } from "../../../features/RecordAuditLog/abstractions.js";
|
|
3
|
+
declare class AuditLogFileAfterUpdateHandlerImpl implements FileAfterUpdateEventHandler.Interface {
|
|
4
|
+
private recordAuditLog;
|
|
5
|
+
constructor(recordAuditLog: RecordAuditLogUseCase.Interface);
|
|
6
|
+
handle(event: FileAfterUpdateEventHandler.Event): Promise<void>;
|
|
7
|
+
}
|
|
8
|
+
export declare const AuditLogFileAfterUpdateHandler: typeof AuditLogFileAfterUpdateHandlerImpl & {
|
|
9
|
+
__abstraction: import("@webiny/di").Abstraction<import("@webiny/api-core/features/eventPublisher").IEventHandler<import("@webiny/api-file-manager/features/file/UpdateFile/events").FileAfterUpdateEvent>>;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import _webiny_error from "@webiny/error";
|
|
2
|
+
import { FileAfterUpdateEventHandler } from "@webiny/api-file-manager/features/file/UpdateFile/index.js";
|
|
3
|
+
import { RecordAuditLogUseCase } from "../../../features/RecordAuditLog/abstractions.js";
|
|
4
|
+
import { AUDIT } from "../../../config.js";
|
|
5
|
+
class AuditLogFileAfterUpdateHandlerImpl {
|
|
6
|
+
constructor(recordAuditLog){
|
|
7
|
+
this.recordAuditLog = recordAuditLog;
|
|
8
|
+
}
|
|
9
|
+
async handle(event) {
|
|
10
|
+
try {
|
|
11
|
+
const { file, original } = event.payload;
|
|
12
|
+
const recordResult = await this.recordAuditLog.execute({
|
|
13
|
+
audit: AUDIT.FILE_MANAGER.FILE.UPDATE,
|
|
14
|
+
message: "File updated",
|
|
15
|
+
content: {
|
|
16
|
+
before: original,
|
|
17
|
+
after: file
|
|
18
|
+
},
|
|
19
|
+
entityId: file.id
|
|
20
|
+
});
|
|
21
|
+
if (recordResult.isFail()) throw recordResult.error;
|
|
22
|
+
} catch (error) {
|
|
23
|
+
throw _webiny_error.from(error, {
|
|
24
|
+
message: "Error while executing AuditLogFileAfterUpdateHandler",
|
|
25
|
+
code: "AUDIT_LOGS_AFTER_FILE_UPDATE_HANDLER"
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
const AuditLogFileAfterUpdateHandler = FileAfterUpdateEventHandler.createImplementation({
|
|
31
|
+
implementation: AuditLogFileAfterUpdateHandlerImpl,
|
|
32
|
+
dependencies: [
|
|
33
|
+
RecordAuditLogUseCase
|
|
34
|
+
]
|
|
35
|
+
});
|
|
36
|
+
export { AuditLogFileAfterUpdateHandler };
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=AuditLogFileAfterUpdateHandler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscriptions/fileManager/handlers/AuditLogFileAfterUpdateHandler.js","sources":["../../../../src/subscriptions/fileManager/handlers/AuditLogFileAfterUpdateHandler.ts"],"sourcesContent":["import WebinyError from \"@webiny/error\";\nimport { FileAfterUpdateEventHandler } from \"@webiny/api-file-manager/features/file/UpdateFile/index.js\";\nimport { RecordAuditLogUseCase } from \"~/features/RecordAuditLog/abstractions.js\";\nimport { AUDIT } from \"~/config.js\";\n\nclass AuditLogFileAfterUpdateHandlerImpl implements FileAfterUpdateEventHandler.Interface {\n constructor(private recordAuditLog: RecordAuditLogUseCase.Interface) {}\n\n async handle(event: FileAfterUpdateEventHandler.Event): Promise<void> {\n try {\n const { file, original } = event.payload;\n\n const recordResult = await this.recordAuditLog.execute({\n audit: AUDIT.FILE_MANAGER.FILE.UPDATE,\n message: \"File updated\",\n content: { before: original, after: file },\n entityId: file.id\n });\n if (recordResult.isFail()) {\n throw recordResult.error;\n }\n } catch (error) {\n throw WebinyError.from(error, {\n message: \"Error while executing AuditLogFileAfterUpdateHandler\",\n code: \"AUDIT_LOGS_AFTER_FILE_UPDATE_HANDLER\"\n });\n }\n }\n}\n\nexport const AuditLogFileAfterUpdateHandler = FileAfterUpdateEventHandler.createImplementation({\n implementation: AuditLogFileAfterUpdateHandlerImpl,\n dependencies: [RecordAuditLogUseCase]\n});\n"],"names":["AuditLogFileAfterUpdateHandlerImpl","recordAuditLog","event","file","original","recordResult","AUDIT","error","WebinyError","AuditLogFileAfterUpdateHandler","FileAfterUpdateEventHandler","RecordAuditLogUseCase"],"mappings":";;;;AAKA,MAAMA;IACF,YAAoBC,cAA+C,CAAE;aAAjDA,cAAc,GAAdA;IAAkD;IAEtE,MAAM,OAAOC,KAAwC,EAAiB;QAClE,IAAI;YACA,MAAM,EAAEC,IAAI,EAAEC,QAAQ,EAAE,GAAGF,MAAM,OAAO;YAExC,MAAMG,eAAe,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC;gBACnD,OAAOC,MAAM,YAAY,CAAC,IAAI,CAAC,MAAM;gBACrC,SAAS;gBACT,SAAS;oBAAE,QAAQF;oBAAU,OAAOD;gBAAK;gBACzC,UAAUA,KAAK,EAAE;YACrB;YACA,IAAIE,aAAa,MAAM,IACnB,MAAMA,aAAa,KAAK;QAEhC,EAAE,OAAOE,OAAO;YACZ,MAAMC,cAAAA,IAAgB,CAACD,OAAO;gBAC1B,SAAS;gBACT,MAAM;YACV;QACJ;IACJ;AACJ;AAEO,MAAME,iCAAiCC,4BAA4B,oBAAoB,CAAC;IAC3F,gBAAgBV;IAChB,cAAc;QAACW;KAAsB;AACzC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SettingsAfterUpdateEventHandler } from "@webiny/api-file-manager/features/settings/UpdateSettings/index.js";
|
|
2
|
+
import { RecordAuditLogUseCase } from "../../../features/RecordAuditLog/abstractions.js";
|
|
3
|
+
declare class AuditLogSettingsAfterUpdateHandlerImpl implements SettingsAfterUpdateEventHandler.Interface {
|
|
4
|
+
private recordAuditLog;
|
|
5
|
+
constructor(recordAuditLog: RecordAuditLogUseCase.Interface);
|
|
6
|
+
handle(event: SettingsAfterUpdateEventHandler.Event): Promise<void>;
|
|
7
|
+
}
|
|
8
|
+
export declare const AuditLogSettingsAfterUpdateHandler: typeof AuditLogSettingsAfterUpdateHandlerImpl & {
|
|
9
|
+
__abstraction: import("@webiny/di").Abstraction<import("@webiny/api-core/features/eventPublisher").IEventHandler<import("@webiny/api-file-manager/features/settings/UpdateSettings/events").SettingsAfterUpdateEvent>>;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import _webiny_error from "@webiny/error";
|
|
2
|
+
import { SettingsAfterUpdateEventHandler } from "@webiny/api-file-manager/features/settings/UpdateSettings/index.js";
|
|
3
|
+
import { RecordAuditLogUseCase } from "../../../features/RecordAuditLog/abstractions.js";
|
|
4
|
+
import { AUDIT } from "../../../config.js";
|
|
5
|
+
class AuditLogSettingsAfterUpdateHandlerImpl {
|
|
6
|
+
constructor(recordAuditLog){
|
|
7
|
+
this.recordAuditLog = recordAuditLog;
|
|
8
|
+
}
|
|
9
|
+
async handle(event) {
|
|
10
|
+
try {
|
|
11
|
+
const { settings, original } = event.payload;
|
|
12
|
+
const recordResult = await this.recordAuditLog.execute({
|
|
13
|
+
audit: AUDIT.FILE_MANAGER.SETTINGS.UPDATE,
|
|
14
|
+
message: "Settings updated",
|
|
15
|
+
content: {
|
|
16
|
+
before: original,
|
|
17
|
+
after: settings
|
|
18
|
+
},
|
|
19
|
+
entityId: "-"
|
|
20
|
+
});
|
|
21
|
+
if (recordResult.isFail()) throw recordResult.error;
|
|
22
|
+
} catch (error) {
|
|
23
|
+
throw _webiny_error.from(error, {
|
|
24
|
+
message: "Error while executing AuditLogSettingsAfterUpdateHandler",
|
|
25
|
+
code: "AUDIT_LOGS_AFTER_SETTINGS_UPDATE_HANDLER"
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
const AuditLogSettingsAfterUpdateHandler = SettingsAfterUpdateEventHandler.createImplementation({
|
|
31
|
+
implementation: AuditLogSettingsAfterUpdateHandlerImpl,
|
|
32
|
+
dependencies: [
|
|
33
|
+
RecordAuditLogUseCase
|
|
34
|
+
]
|
|
35
|
+
});
|
|
36
|
+
export { AuditLogSettingsAfterUpdateHandler };
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=AuditLogSettingsAfterUpdateHandler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscriptions/fileManager/handlers/AuditLogSettingsAfterUpdateHandler.js","sources":["../../../../src/subscriptions/fileManager/handlers/AuditLogSettingsAfterUpdateHandler.ts"],"sourcesContent":["import WebinyError from \"@webiny/error\";\nimport { SettingsAfterUpdateEventHandler } from \"@webiny/api-file-manager/features/settings/UpdateSettings/index.js\";\nimport { RecordAuditLogUseCase } from \"~/features/RecordAuditLog/abstractions.js\";\nimport { AUDIT } from \"~/config.js\";\n\nclass AuditLogSettingsAfterUpdateHandlerImpl implements SettingsAfterUpdateEventHandler.Interface {\n constructor(private recordAuditLog: RecordAuditLogUseCase.Interface) {}\n\n async handle(event: SettingsAfterUpdateEventHandler.Event): Promise<void> {\n try {\n const { settings, original } = event.payload;\n\n const recordResult = await this.recordAuditLog.execute({\n audit: AUDIT.FILE_MANAGER.SETTINGS.UPDATE,\n message: \"Settings updated\",\n content: { before: original, after: settings },\n entityId: \"-\"\n });\n if (recordResult.isFail()) {\n throw recordResult.error;\n }\n } catch (error) {\n throw WebinyError.from(error, {\n message: \"Error while executing AuditLogSettingsAfterUpdateHandler\",\n code: \"AUDIT_LOGS_AFTER_SETTINGS_UPDATE_HANDLER\"\n });\n }\n }\n}\n\nexport const AuditLogSettingsAfterUpdateHandler =\n SettingsAfterUpdateEventHandler.createImplementation({\n implementation: AuditLogSettingsAfterUpdateHandlerImpl,\n dependencies: [RecordAuditLogUseCase]\n });\n"],"names":["AuditLogSettingsAfterUpdateHandlerImpl","recordAuditLog","event","settings","original","recordResult","AUDIT","error","WebinyError","AuditLogSettingsAfterUpdateHandler","SettingsAfterUpdateEventHandler","RecordAuditLogUseCase"],"mappings":";;;;AAKA,MAAMA;IACF,YAAoBC,cAA+C,CAAE;aAAjDA,cAAc,GAAdA;IAAkD;IAEtE,MAAM,OAAOC,KAA4C,EAAiB;QACtE,IAAI;YACA,MAAM,EAAEC,QAAQ,EAAEC,QAAQ,EAAE,GAAGF,MAAM,OAAO;YAE5C,MAAMG,eAAe,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC;gBACnD,OAAOC,MAAM,YAAY,CAAC,QAAQ,CAAC,MAAM;gBACzC,SAAS;gBACT,SAAS;oBAAE,QAAQF;oBAAU,OAAOD;gBAAS;gBAC7C,UAAU;YACd;YACA,IAAIE,aAAa,MAAM,IACnB,MAAMA,aAAa,KAAK;QAEhC,EAAE,OAAOE,OAAO;YACZ,MAAMC,cAAAA,IAAgB,CAACD,OAAO;gBAC1B,SAAS;gBACT,MAAM;YACV;QACJ;IACJ;AACJ;AAEO,MAAME,qCACTC,gCAAgC,oBAAoB,CAAC;IACjD,gBAAgBV;IAChB,cAAc;QAACW;KAAsB;AACzC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const createFileManagerHooks: (
|
|
1
|
+
import type { Container } from "@webiny/di";
|
|
2
|
+
export declare const createFileManagerHooks: (container: Container) => void;
|
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
(0, _files.onFileAfterCreateHook)(context);
|
|
11
|
-
(0, _files.onFileAfterUpdateHook)(context);
|
|
12
|
-
(0, _files.onFileAfterDeleteHook)(context);
|
|
13
|
-
(0, _settings.onSettingsAfterUpdateHook)(context);
|
|
1
|
+
import { AuditLogFileAfterCreateHandler } from "./handlers/AuditLogFileAfterCreateHandler.js";
|
|
2
|
+
import { AuditLogFileAfterUpdateHandler } from "./handlers/AuditLogFileAfterUpdateHandler.js";
|
|
3
|
+
import { AuditLogFileAfterDeleteHandler } from "./handlers/AuditLogFileAfterDeleteHandler.js";
|
|
4
|
+
import { AuditLogSettingsAfterUpdateHandler } from "./handlers/AuditLogSettingsAfterUpdateHandler.js";
|
|
5
|
+
const createFileManagerHooks = (container)=>{
|
|
6
|
+
container.register(AuditLogFileAfterCreateHandler);
|
|
7
|
+
container.register(AuditLogFileAfterUpdateHandler);
|
|
8
|
+
container.register(AuditLogFileAfterDeleteHandler);
|
|
9
|
+
container.register(AuditLogSettingsAfterUpdateHandler);
|
|
14
10
|
};
|
|
15
|
-
|
|
11
|
+
export { createFileManagerHooks };
|
|
16
12
|
|
|
17
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"subscriptions/fileManager/index.js","sources":["../../../src/subscriptions/fileManager/index.ts"],"sourcesContent":["import { AuditLogFileAfterCreateHandler } from \"./handlers/AuditLogFileAfterCreateHandler.js\";\nimport { AuditLogFileAfterUpdateHandler } from \"./handlers/AuditLogFileAfterUpdateHandler.js\";\nimport { AuditLogFileAfterDeleteHandler } from \"./handlers/AuditLogFileAfterDeleteHandler.js\";\nimport { AuditLogSettingsAfterUpdateHandler } from \"./handlers/AuditLogSettingsAfterUpdateHandler.js\";\nimport type { Container } from \"@webiny/di\";\n\nexport const createFileManagerHooks = (container: Container) => {\n // Register file event handlers\n container.register(AuditLogFileAfterCreateHandler);\n container.register(AuditLogFileAfterUpdateHandler);\n container.register(AuditLogFileAfterDeleteHandler);\n\n // Register settings event handlers\n container.register(AuditLogSettingsAfterUpdateHandler);\n};\n"],"names":["createFileManagerHooks","container","AuditLogFileAfterCreateHandler","AuditLogFileAfterUpdateHandler","AuditLogFileAfterDeleteHandler","AuditLogSettingsAfterUpdateHandler"],"mappings":";;;;AAMO,MAAMA,yBAAyB,CAACC;IAEnCA,UAAU,QAAQ,CAACC;IACnBD,UAAU,QAAQ,CAACE;IACnBF,UAAU,QAAQ,CAACG;IAGnBH,UAAU,QAAQ,CAACI;AACvB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EntryAfterCreateEventHandler } from "@webiny/api-headless-cms/features/contentEntry/CreateEntry/index.js";
|
|
2
|
+
import { RecordAuditLogUseCase } from "../../../features/RecordAuditLog/abstractions.js";
|
|
3
|
+
declare class AuditLogEntryAfterCreateHandlerImpl implements EntryAfterCreateEventHandler.Interface {
|
|
4
|
+
private recordAuditLog;
|
|
5
|
+
constructor(recordAuditLog: RecordAuditLogUseCase.Interface);
|
|
6
|
+
handle(event: EntryAfterCreateEventHandler.Event): Promise<void>;
|
|
7
|
+
}
|
|
8
|
+
export declare const AuditLogEntryAfterCreateEventHandler: typeof AuditLogEntryAfterCreateHandlerImpl & {
|
|
9
|
+
__abstraction: import("@webiny/di").Abstraction<import("@webiny/api-core/features/eventPublisher").IEventHandler<import("@webiny/api-headless-cms/features/contentEntry/CreateEntry/events").EntryAfterCreateEvent>>;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import _webiny_error from "@webiny/error";
|
|
2
|
+
import { EntryAfterCreateEventHandler } from "@webiny/api-headless-cms/features/contentEntry/CreateEntry/index.js";
|
|
3
|
+
import { RecordAuditLogUseCase } from "../../../features/RecordAuditLog/abstractions.js";
|
|
4
|
+
import { AUDIT } from "../../../config.js";
|
|
5
|
+
class AuditLogEntryAfterCreateHandlerImpl {
|
|
6
|
+
constructor(recordAuditLog){
|
|
7
|
+
this.recordAuditLog = recordAuditLog;
|
|
8
|
+
}
|
|
9
|
+
async handle(event) {
|
|
10
|
+
const { model, entry } = event.payload;
|
|
11
|
+
if (model.isPrivate) return;
|
|
12
|
+
try {
|
|
13
|
+
const recordResult = await this.recordAuditLog.execute({
|
|
14
|
+
audit: AUDIT.HEADLESS_CMS.ENTRY.CREATE,
|
|
15
|
+
message: "Entry created",
|
|
16
|
+
content: entry,
|
|
17
|
+
entityId: entry.entryId
|
|
18
|
+
});
|
|
19
|
+
if (recordResult.isFail()) throw recordResult.error;
|
|
20
|
+
} catch (error) {
|
|
21
|
+
throw _webiny_error.from(error, {
|
|
22
|
+
message: "Error while executing AuditLogEntryAfterCreateHandler",
|
|
23
|
+
code: "AUDIT_LOGS_AFTER_ENTRY_CREATE_HANDLER"
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
const AuditLogEntryAfterCreateEventHandler = EntryAfterCreateEventHandler.createImplementation({
|
|
29
|
+
implementation: AuditLogEntryAfterCreateHandlerImpl,
|
|
30
|
+
dependencies: [
|
|
31
|
+
RecordAuditLogUseCase
|
|
32
|
+
]
|
|
33
|
+
});
|
|
34
|
+
export { AuditLogEntryAfterCreateEventHandler };
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=AuditLogEntryAfterCreateEventHandler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscriptions/headlessCms/handlers/AuditLogEntryAfterCreateEventHandler.js","sources":["../../../../src/subscriptions/headlessCms/handlers/AuditLogEntryAfterCreateEventHandler.ts"],"sourcesContent":["import WebinyError from \"@webiny/error\";\nimport { EntryAfterCreateEventHandler } from \"@webiny/api-headless-cms/features/contentEntry/CreateEntry/index.js\";\nimport { RecordAuditLogUseCase } from \"~/features/RecordAuditLog/abstractions.js\";\nimport { AUDIT } from \"~/config.js\";\n\nclass AuditLogEntryAfterCreateHandlerImpl implements EntryAfterCreateEventHandler.Interface {\n constructor(private recordAuditLog: RecordAuditLogUseCase.Interface) {}\n\n async handle(event: EntryAfterCreateEventHandler.Event): Promise<void> {\n const { model, entry } = event.payload;\n\n if (model.isPrivate) {\n return;\n }\n\n try {\n const recordResult = await this.recordAuditLog.execute({\n audit: AUDIT.HEADLESS_CMS.ENTRY.CREATE,\n message: \"Entry created\",\n content: entry,\n entityId: entry.entryId\n });\n if (recordResult.isFail()) {\n throw recordResult.error;\n }\n } catch (error) {\n throw WebinyError.from(error, {\n message: \"Error while executing AuditLogEntryAfterCreateHandler\",\n code: \"AUDIT_LOGS_AFTER_ENTRY_CREATE_HANDLER\"\n });\n }\n }\n}\n\nexport const AuditLogEntryAfterCreateEventHandler =\n EntryAfterCreateEventHandler.createImplementation({\n implementation: AuditLogEntryAfterCreateHandlerImpl,\n dependencies: [RecordAuditLogUseCase]\n });\n"],"names":["AuditLogEntryAfterCreateHandlerImpl","recordAuditLog","event","model","entry","recordResult","AUDIT","error","WebinyError","AuditLogEntryAfterCreateEventHandler","EntryAfterCreateEventHandler","RecordAuditLogUseCase"],"mappings":";;;;AAKA,MAAMA;IACF,YAAoBC,cAA+C,CAAE;aAAjDA,cAAc,GAAdA;IAAkD;IAEtE,MAAM,OAAOC,KAAyC,EAAiB;QACnE,MAAM,EAAEC,KAAK,EAAEC,KAAK,EAAE,GAAGF,MAAM,OAAO;QAEtC,IAAIC,MAAM,SAAS,EACf;QAGJ,IAAI;YACA,MAAME,eAAe,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC;gBACnD,OAAOC,MAAM,YAAY,CAAC,KAAK,CAAC,MAAM;gBACtC,SAAS;gBACT,SAASF;gBACT,UAAUA,MAAM,OAAO;YAC3B;YACA,IAAIC,aAAa,MAAM,IACnB,MAAMA,aAAa,KAAK;QAEhC,EAAE,OAAOE,OAAO;YACZ,MAAMC,cAAAA,IAAgB,CAACD,OAAO;gBAC1B,SAAS;gBACT,MAAM;YACV;QACJ;IACJ;AACJ;AAEO,MAAME,uCACTC,6BAA6B,oBAAoB,CAAC;IAC9C,gBAAgBV;IAChB,cAAc;QAACW;KAAsB;AACzC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EntryAfterDeleteEventHandler } from "@webiny/api-headless-cms/features/contentEntry/DeleteEntry/index.js";
|
|
2
|
+
import { RecordAuditLogUseCase } from "../../../features/RecordAuditLog/abstractions.js";
|
|
3
|
+
declare class AuditLogEntryAfterDeleteHandlerImpl implements EntryAfterDeleteEventHandler.Interface {
|
|
4
|
+
private recordAuditLog;
|
|
5
|
+
constructor(recordAuditLog: RecordAuditLogUseCase.Interface);
|
|
6
|
+
handle(event: EntryAfterDeleteEventHandler.Event): Promise<void>;
|
|
7
|
+
}
|
|
8
|
+
export declare const AuditLogEntryAfterDeleteEventHandler: typeof AuditLogEntryAfterDeleteHandlerImpl & {
|
|
9
|
+
__abstraction: import("@webiny/di").Abstraction<import("@webiny/api-core/features/eventPublisher").IEventHandler<import("@webiny/api-headless-cms/features/contentEntry/DeleteEntry/events").EntryAfterDeleteEvent>>;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import _webiny_error from "@webiny/error";
|
|
2
|
+
import { EntryAfterDeleteEventHandler } from "@webiny/api-headless-cms/features/contentEntry/DeleteEntry/index.js";
|
|
3
|
+
import { AUDIT } from "../../../config.js";
|
|
4
|
+
import { RecordAuditLogUseCase } from "../../../features/RecordAuditLog/abstractions.js";
|
|
5
|
+
class AuditLogEntryAfterDeleteHandlerImpl {
|
|
6
|
+
constructor(recordAuditLog){
|
|
7
|
+
this.recordAuditLog = recordAuditLog;
|
|
8
|
+
}
|
|
9
|
+
async handle(event) {
|
|
10
|
+
const { model, entry, permanent } = event.payload;
|
|
11
|
+
if (model.isPrivate) return;
|
|
12
|
+
try {
|
|
13
|
+
if (permanent) {
|
|
14
|
+
const recordResult = await this.recordAuditLog.execute({
|
|
15
|
+
audit: AUDIT.HEADLESS_CMS.ENTRY.DELETE,
|
|
16
|
+
message: "Entry deleted",
|
|
17
|
+
content: entry,
|
|
18
|
+
entityId: entry.entryId
|
|
19
|
+
});
|
|
20
|
+
if (recordResult.isFail()) throw recordResult.error;
|
|
21
|
+
} else {
|
|
22
|
+
const recordResult = await this.recordAuditLog.execute({
|
|
23
|
+
audit: AUDIT.HEADLESS_CMS.ENTRY.MOVE_TO_TRASH,
|
|
24
|
+
message: "Entry moved to trash",
|
|
25
|
+
content: entry,
|
|
26
|
+
entityId: entry.entryId
|
|
27
|
+
});
|
|
28
|
+
if (recordResult.isFail()) throw recordResult.error;
|
|
29
|
+
}
|
|
30
|
+
} catch (error) {
|
|
31
|
+
throw _webiny_error.from(error, {
|
|
32
|
+
message: "Error while executing AuditLogEntryAfterDeleteHandler",
|
|
33
|
+
code: "AUDIT_LOGS_AFTER_ENTRY_DELETE_HANDLER"
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
const AuditLogEntryAfterDeleteEventHandler = EntryAfterDeleteEventHandler.createImplementation({
|
|
39
|
+
implementation: AuditLogEntryAfterDeleteHandlerImpl,
|
|
40
|
+
dependencies: [
|
|
41
|
+
RecordAuditLogUseCase
|
|
42
|
+
]
|
|
43
|
+
});
|
|
44
|
+
export { AuditLogEntryAfterDeleteEventHandler };
|
|
45
|
+
|
|
46
|
+
//# sourceMappingURL=AuditLogEntryAfterDeleteEventHandler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscriptions/headlessCms/handlers/AuditLogEntryAfterDeleteEventHandler.js","sources":["../../../../src/subscriptions/headlessCms/handlers/AuditLogEntryAfterDeleteEventHandler.ts"],"sourcesContent":["import WebinyError from \"@webiny/error\";\nimport { EntryAfterDeleteEventHandler } from \"@webiny/api-headless-cms/features/contentEntry/DeleteEntry/index.js\";\nimport { AUDIT } from \"~/config.js\";\nimport { RecordAuditLogUseCase } from \"~/features/RecordAuditLog/abstractions.js\";\n\nclass AuditLogEntryAfterDeleteHandlerImpl implements EntryAfterDeleteEventHandler.Interface {\n constructor(private recordAuditLog: RecordAuditLogUseCase.Interface) {}\n\n async handle(event: EntryAfterDeleteEventHandler.Event): Promise<void> {\n const { model, entry, permanent } = event.payload;\n\n if (model.isPrivate) {\n return;\n }\n\n try {\n if (permanent) {\n const recordResult = await this.recordAuditLog.execute({\n audit: AUDIT.HEADLESS_CMS.ENTRY.DELETE,\n message: \"Entry deleted\",\n content: entry,\n entityId: entry.entryId\n });\n if (recordResult.isFail()) {\n throw recordResult.error;\n }\n } else {\n const recordResult = await this.recordAuditLog.execute({\n audit: AUDIT.HEADLESS_CMS.ENTRY.MOVE_TO_TRASH,\n message: \"Entry moved to trash\",\n content: entry,\n entityId: entry.entryId\n });\n if (recordResult.isFail()) {\n throw recordResult.error;\n }\n }\n } catch (error) {\n throw WebinyError.from(error, {\n message: \"Error while executing AuditLogEntryAfterDeleteHandler\",\n code: \"AUDIT_LOGS_AFTER_ENTRY_DELETE_HANDLER\"\n });\n }\n }\n}\n\nexport const AuditLogEntryAfterDeleteEventHandler =\n EntryAfterDeleteEventHandler.createImplementation({\n implementation: AuditLogEntryAfterDeleteHandlerImpl,\n dependencies: [RecordAuditLogUseCase]\n });\n"],"names":["AuditLogEntryAfterDeleteHandlerImpl","recordAuditLog","event","model","entry","permanent","recordResult","AUDIT","error","WebinyError","AuditLogEntryAfterDeleteEventHandler","EntryAfterDeleteEventHandler","RecordAuditLogUseCase"],"mappings":";;;;AAKA,MAAMA;IACF,YAAoBC,cAA+C,CAAE;aAAjDA,cAAc,GAAdA;IAAkD;IAEtE,MAAM,OAAOC,KAAyC,EAAiB;QACnE,MAAM,EAAEC,KAAK,EAAEC,KAAK,EAAEC,SAAS,EAAE,GAAGH,MAAM,OAAO;QAEjD,IAAIC,MAAM,SAAS,EACf;QAGJ,IAAI;YACA,IAAIE,WAAW;gBACX,MAAMC,eAAe,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC;oBACnD,OAAOC,MAAM,YAAY,CAAC,KAAK,CAAC,MAAM;oBACtC,SAAS;oBACT,SAASH;oBACT,UAAUA,MAAM,OAAO;gBAC3B;gBACA,IAAIE,aAAa,MAAM,IACnB,MAAMA,aAAa,KAAK;YAEhC,OAAO;gBACH,MAAMA,eAAe,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC;oBACnD,OAAOC,MAAM,YAAY,CAAC,KAAK,CAAC,aAAa;oBAC7C,SAAS;oBACT,SAASH;oBACT,UAAUA,MAAM,OAAO;gBAC3B;gBACA,IAAIE,aAAa,MAAM,IACnB,MAAMA,aAAa,KAAK;YAEhC;QACJ,EAAE,OAAOE,OAAO;YACZ,MAAMC,cAAAA,IAAgB,CAACD,OAAO;gBAC1B,SAAS;gBACT,MAAM;YACV;QACJ;IACJ;AACJ;AAEO,MAAME,uCACTC,6BAA6B,oBAAoB,CAAC;IAC9C,gBAAgBX;IAChB,cAAc;QAACY;KAAsB;AACzC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EntryAfterPublishEventHandler } from "@webiny/api-headless-cms/features/contentEntry/PublishEntry/index.js";
|
|
2
|
+
import { RecordAuditLogUseCase } from "../../../features/RecordAuditLog/abstractions.js";
|
|
3
|
+
declare class AuditLogEntryAfterPublishEventHandlerImpl implements EntryAfterPublishEventHandler.Interface {
|
|
4
|
+
private recordAuditLog;
|
|
5
|
+
constructor(recordAuditLog: RecordAuditLogUseCase.Interface);
|
|
6
|
+
handle(event: EntryAfterPublishEventHandler.Event): Promise<void>;
|
|
7
|
+
}
|
|
8
|
+
export declare const AuditLogEntryAfterPublishEventHandler: typeof AuditLogEntryAfterPublishEventHandlerImpl & {
|
|
9
|
+
__abstraction: import("@webiny/di").Abstraction<import("@webiny/api-core/features/eventPublisher").IEventHandler<import("@webiny/api-headless-cms/features/contentEntry/PublishEntry/events").EntryAfterPublishEvent>>;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import _webiny_error from "@webiny/error";
|
|
2
|
+
import { EntryAfterPublishEventHandler } from "@webiny/api-headless-cms/features/contentEntry/PublishEntry/index.js";
|
|
3
|
+
import { AUDIT } from "../../../config.js";
|
|
4
|
+
import { RecordAuditLogUseCase } from "../../../features/RecordAuditLog/abstractions.js";
|
|
5
|
+
class AuditLogEntryAfterPublishEventHandlerImpl {
|
|
6
|
+
constructor(recordAuditLog){
|
|
7
|
+
this.recordAuditLog = recordAuditLog;
|
|
8
|
+
}
|
|
9
|
+
async handle(event) {
|
|
10
|
+
const { model, entry } = event.payload;
|
|
11
|
+
if (model.isPrivate) return;
|
|
12
|
+
try {
|
|
13
|
+
const recordResult = await this.recordAuditLog.execute({
|
|
14
|
+
audit: AUDIT.HEADLESS_CMS.ENTRY_REVISION.PUBLISH,
|
|
15
|
+
message: "Entry revision published",
|
|
16
|
+
content: entry,
|
|
17
|
+
entityId: entry.id
|
|
18
|
+
});
|
|
19
|
+
if (recordResult.isFail()) throw recordResult.error;
|
|
20
|
+
} catch (error) {
|
|
21
|
+
throw _webiny_error.from(error, {
|
|
22
|
+
message: "Error while executing AuditLogEntryAfterPublishEventHandler",
|
|
23
|
+
code: "AUDIT_LOGS_AFTER_ENTRY_REVISION_PUBLISH_HANDLER"
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
const AuditLogEntryAfterPublishEventHandler = EntryAfterPublishEventHandler.createImplementation({
|
|
29
|
+
implementation: AuditLogEntryAfterPublishEventHandlerImpl,
|
|
30
|
+
dependencies: [
|
|
31
|
+
RecordAuditLogUseCase
|
|
32
|
+
]
|
|
33
|
+
});
|
|
34
|
+
export { AuditLogEntryAfterPublishEventHandler };
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=AuditLogEntryAfterPublishEventHandler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscriptions/headlessCms/handlers/AuditLogEntryAfterPublishEventHandler.js","sources":["../../../../src/subscriptions/headlessCms/handlers/AuditLogEntryAfterPublishEventHandler.ts"],"sourcesContent":["import WebinyError from \"@webiny/error\";\nimport { EntryAfterPublishEventHandler } from \"@webiny/api-headless-cms/features/contentEntry/PublishEntry/index.js\";\nimport { AUDIT } from \"~/config.js\";\nimport { RecordAuditLogUseCase } from \"~/features/RecordAuditLog/abstractions.js\";\n\nclass AuditLogEntryAfterPublishEventHandlerImpl implements EntryAfterPublishEventHandler.Interface {\n constructor(private recordAuditLog: RecordAuditLogUseCase.Interface) {}\n\n async handle(event: EntryAfterPublishEventHandler.Event): Promise<void> {\n const { model, entry } = event.payload;\n\n if (model.isPrivate) {\n return;\n }\n\n try {\n const recordResult = await this.recordAuditLog.execute({\n audit: AUDIT.HEADLESS_CMS.ENTRY_REVISION.PUBLISH,\n message: \"Entry revision published\",\n content: entry,\n entityId: entry.id\n });\n if (recordResult.isFail()) {\n throw recordResult.error;\n }\n } catch (error) {\n throw WebinyError.from(error, {\n message: \"Error while executing AuditLogEntryAfterPublishEventHandler\",\n code: \"AUDIT_LOGS_AFTER_ENTRY_REVISION_PUBLISH_HANDLER\"\n });\n }\n }\n}\n\nexport const AuditLogEntryAfterPublishEventHandler =\n EntryAfterPublishEventHandler.createImplementation({\n implementation: AuditLogEntryAfterPublishEventHandlerImpl,\n dependencies: [RecordAuditLogUseCase]\n });\n"],"names":["AuditLogEntryAfterPublishEventHandlerImpl","recordAuditLog","event","model","entry","recordResult","AUDIT","error","WebinyError","AuditLogEntryAfterPublishEventHandler","EntryAfterPublishEventHandler","RecordAuditLogUseCase"],"mappings":";;;;AAKA,MAAMA;IACF,YAAoBC,cAA+C,CAAE;aAAjDA,cAAc,GAAdA;IAAkD;IAEtE,MAAM,OAAOC,KAA0C,EAAiB;QACpE,MAAM,EAAEC,KAAK,EAAEC,KAAK,EAAE,GAAGF,MAAM,OAAO;QAEtC,IAAIC,MAAM,SAAS,EACf;QAGJ,IAAI;YACA,MAAME,eAAe,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC;gBACnD,OAAOC,MAAM,YAAY,CAAC,cAAc,CAAC,OAAO;gBAChD,SAAS;gBACT,SAASF;gBACT,UAAUA,MAAM,EAAE;YACtB;YACA,IAAIC,aAAa,MAAM,IACnB,MAAMA,aAAa,KAAK;QAEhC,EAAE,OAAOE,OAAO;YACZ,MAAMC,cAAAA,IAAgB,CAACD,OAAO;gBAC1B,SAAS;gBACT,MAAM;YACV;QACJ;IACJ;AACJ;AAEO,MAAME,wCACTC,8BAA8B,oBAAoB,CAAC;IAC/C,gBAAgBV;IAChB,cAAc;QAACW;KAAsB;AACzC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EntryAfterRestoreFromBinEventHandler } from "@webiny/api-headless-cms/features/contentEntry/RestoreEntryFromBin/index.js";
|
|
2
|
+
import { RecordAuditLogUseCase } from "../../../features/RecordAuditLog/abstractions.js";
|
|
3
|
+
declare class AuditLogEntryAfterRestoreFromBinEventHandlerImpl implements EntryAfterRestoreFromBinEventHandler.Interface {
|
|
4
|
+
private recordAuditLog;
|
|
5
|
+
constructor(recordAuditLog: RecordAuditLogUseCase.Interface);
|
|
6
|
+
handle(event: EntryAfterRestoreFromBinEventHandler.Event): Promise<void>;
|
|
7
|
+
}
|
|
8
|
+
export declare const AuditLogEntryAfterRestoreFromBinEventHandler: typeof AuditLogEntryAfterRestoreFromBinEventHandlerImpl & {
|
|
9
|
+
__abstraction: import("@webiny/di").Abstraction<import("@webiny/api-core/features/eventPublisher").IEventHandler<import("@webiny/api-headless-cms/features/contentEntry/RestoreEntryFromBin/events").EntryAfterRestoreFromBinEvent>>;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import _webiny_error from "@webiny/error";
|
|
2
|
+
import { EntryAfterRestoreFromBinEventHandler } from "@webiny/api-headless-cms/features/contentEntry/RestoreEntryFromBin/index.js";
|
|
3
|
+
import { AUDIT } from "../../../config.js";
|
|
4
|
+
import { RecordAuditLogUseCase } from "../../../features/RecordAuditLog/abstractions.js";
|
|
5
|
+
class AuditLogEntryAfterRestoreFromBinEventHandlerImpl {
|
|
6
|
+
constructor(recordAuditLog){
|
|
7
|
+
this.recordAuditLog = recordAuditLog;
|
|
8
|
+
}
|
|
9
|
+
async handle(event) {
|
|
10
|
+
const { model, entry } = event.payload;
|
|
11
|
+
if (model.isPrivate) return;
|
|
12
|
+
try {
|
|
13
|
+
const recordResult = await this.recordAuditLog.execute({
|
|
14
|
+
audit: AUDIT.HEADLESS_CMS.ENTRY.RESTORE_FROM_TRASH,
|
|
15
|
+
message: "Entry restored from trash",
|
|
16
|
+
content: entry,
|
|
17
|
+
entityId: entry.entryId
|
|
18
|
+
});
|
|
19
|
+
if (recordResult.isFail()) throw recordResult.error;
|
|
20
|
+
} catch (error) {
|
|
21
|
+
throw _webiny_error.from(error, {
|
|
22
|
+
message: "Error while executing AuditLogEntryAfterRestoreFromBinEventHandler",
|
|
23
|
+
code: "AUDIT_LOGS_AFTER_ENTRY_RESTORE_FROM_TRASH_HANDLER"
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
const AuditLogEntryAfterRestoreFromBinEventHandler = EntryAfterRestoreFromBinEventHandler.createImplementation({
|
|
29
|
+
implementation: AuditLogEntryAfterRestoreFromBinEventHandlerImpl,
|
|
30
|
+
dependencies: [
|
|
31
|
+
RecordAuditLogUseCase
|
|
32
|
+
]
|
|
33
|
+
});
|
|
34
|
+
export { AuditLogEntryAfterRestoreFromBinEventHandler };
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=AuditLogEntryAfterRestoreFromBinEventHandler.js.map
|
package/subscriptions/headlessCms/handlers/AuditLogEntryAfterRestoreFromBinEventHandler.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscriptions/headlessCms/handlers/AuditLogEntryAfterRestoreFromBinEventHandler.js","sources":["../../../../src/subscriptions/headlessCms/handlers/AuditLogEntryAfterRestoreFromBinEventHandler.ts"],"sourcesContent":["import WebinyError from \"@webiny/error\";\nimport { EntryAfterRestoreFromBinEventHandler } from \"@webiny/api-headless-cms/features/contentEntry/RestoreEntryFromBin/index.js\";\nimport { AUDIT } from \"~/config.js\";\nimport { RecordAuditLogUseCase } from \"~/features/RecordAuditLog/abstractions.js\";\n\nclass AuditLogEntryAfterRestoreFromBinEventHandlerImpl\n implements EntryAfterRestoreFromBinEventHandler.Interface\n{\n constructor(private recordAuditLog: RecordAuditLogUseCase.Interface) {}\n\n async handle(event: EntryAfterRestoreFromBinEventHandler.Event): Promise<void> {\n const { model, entry } = event.payload;\n\n if (model.isPrivate) {\n return;\n }\n\n try {\n const recordResult = await this.recordAuditLog.execute({\n audit: AUDIT.HEADLESS_CMS.ENTRY.RESTORE_FROM_TRASH,\n message: \"Entry restored from trash\",\n content: entry,\n entityId: entry.entryId\n });\n if (recordResult.isFail()) {\n throw recordResult.error;\n }\n } catch (error) {\n throw WebinyError.from(error, {\n message: \"Error while executing AuditLogEntryAfterRestoreFromBinEventHandler\",\n code: \"AUDIT_LOGS_AFTER_ENTRY_RESTORE_FROM_TRASH_HANDLER\"\n });\n }\n }\n}\n\nexport const AuditLogEntryAfterRestoreFromBinEventHandler =\n EntryAfterRestoreFromBinEventHandler.createImplementation({\n implementation: AuditLogEntryAfterRestoreFromBinEventHandlerImpl,\n dependencies: [RecordAuditLogUseCase]\n });\n"],"names":["AuditLogEntryAfterRestoreFromBinEventHandlerImpl","recordAuditLog","event","model","entry","recordResult","AUDIT","error","WebinyError","AuditLogEntryAfterRestoreFromBinEventHandler","EntryAfterRestoreFromBinEventHandler","RecordAuditLogUseCase"],"mappings":";;;;AAKA,MAAMA;IAGF,YAAoBC,cAA+C,CAAE;aAAjDA,cAAc,GAAdA;IAAkD;IAEtE,MAAM,OAAOC,KAAiD,EAAiB;QAC3E,MAAM,EAAEC,KAAK,EAAEC,KAAK,EAAE,GAAGF,MAAM,OAAO;QAEtC,IAAIC,MAAM,SAAS,EACf;QAGJ,IAAI;YACA,MAAME,eAAe,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC;gBACnD,OAAOC,MAAM,YAAY,CAAC,KAAK,CAAC,kBAAkB;gBAClD,SAAS;gBACT,SAASF;gBACT,UAAUA,MAAM,OAAO;YAC3B;YACA,IAAIC,aAAa,MAAM,IACnB,MAAMA,aAAa,KAAK;QAEhC,EAAE,OAAOE,OAAO;YACZ,MAAMC,cAAAA,IAAgB,CAACD,OAAO;gBAC1B,SAAS;gBACT,MAAM;YACV;QACJ;IACJ;AACJ;AAEO,MAAME,+CACTC,qCAAqC,oBAAoB,CAAC;IACtD,gBAAgBV;IAChB,cAAc;QAACW;KAAsB;AACzC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EntryAfterUnpublishEventHandler } from "@webiny/api-headless-cms/features/contentEntry/UnpublishEntry/index.js";
|
|
2
|
+
import { RecordAuditLogUseCase } from "../../../features/RecordAuditLog/abstractions.js";
|
|
3
|
+
declare class AuditLogEntryAfterUnpublishEventHandlerImpl implements EntryAfterUnpublishEventHandler.Interface {
|
|
4
|
+
private recordAuditLog;
|
|
5
|
+
constructor(recordAuditLog: RecordAuditLogUseCase.Interface);
|
|
6
|
+
handle(event: EntryAfterUnpublishEventHandler.Event): Promise<void>;
|
|
7
|
+
}
|
|
8
|
+
export declare const AuditLogEntryAfterUnpublishEventHandler: typeof AuditLogEntryAfterUnpublishEventHandlerImpl & {
|
|
9
|
+
__abstraction: import("@webiny/di").Abstraction<import("@webiny/api-core/features/eventPublisher").IEventHandler<import("@webiny/api-headless-cms/features/contentEntry/UnpublishEntry/events").EntryAfterUnpublishEvent>>;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import _webiny_error from "@webiny/error";
|
|
2
|
+
import { EntryAfterUnpublishEventHandler } from "@webiny/api-headless-cms/features/contentEntry/UnpublishEntry/index.js";
|
|
3
|
+
import { AUDIT } from "../../../config.js";
|
|
4
|
+
import { RecordAuditLogUseCase } from "../../../features/RecordAuditLog/abstractions.js";
|
|
5
|
+
class AuditLogEntryAfterUnpublishEventHandlerImpl {
|
|
6
|
+
constructor(recordAuditLog){
|
|
7
|
+
this.recordAuditLog = recordAuditLog;
|
|
8
|
+
}
|
|
9
|
+
async handle(event) {
|
|
10
|
+
const { model, entry } = event.payload;
|
|
11
|
+
if (model.isPrivate) return;
|
|
12
|
+
try {
|
|
13
|
+
const recordResult = await this.recordAuditLog.execute({
|
|
14
|
+
audit: AUDIT.HEADLESS_CMS.ENTRY_REVISION.UNPUBLISH,
|
|
15
|
+
message: "Entry revision unpublished",
|
|
16
|
+
content: entry,
|
|
17
|
+
entityId: entry.id
|
|
18
|
+
});
|
|
19
|
+
if (recordResult.isFail()) throw recordResult.error;
|
|
20
|
+
} catch (error) {
|
|
21
|
+
throw _webiny_error.from(error, {
|
|
22
|
+
message: "Error while executing AuditLogEntryAfterUnpublishEventHandler",
|
|
23
|
+
code: "AUDIT_LOGS_AFTER_ENTRY_REVISION_UNPUBLISH_HANDLER"
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
const AuditLogEntryAfterUnpublishEventHandler = EntryAfterUnpublishEventHandler.createImplementation({
|
|
29
|
+
implementation: AuditLogEntryAfterUnpublishEventHandlerImpl,
|
|
30
|
+
dependencies: [
|
|
31
|
+
RecordAuditLogUseCase
|
|
32
|
+
]
|
|
33
|
+
});
|
|
34
|
+
export { AuditLogEntryAfterUnpublishEventHandler };
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=AuditLogEntryAfterUnpublishEventHandler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscriptions/headlessCms/handlers/AuditLogEntryAfterUnpublishEventHandler.js","sources":["../../../../src/subscriptions/headlessCms/handlers/AuditLogEntryAfterUnpublishEventHandler.ts"],"sourcesContent":["import WebinyError from \"@webiny/error\";\nimport { EntryAfterUnpublishEventHandler } from \"@webiny/api-headless-cms/features/contentEntry/UnpublishEntry/index.js\";\nimport { AUDIT } from \"~/config.js\";\nimport { RecordAuditLogUseCase } from \"~/features/RecordAuditLog/abstractions.js\";\n\nclass AuditLogEntryAfterUnpublishEventHandlerImpl\n implements EntryAfterUnpublishEventHandler.Interface\n{\n constructor(private recordAuditLog: RecordAuditLogUseCase.Interface) {}\n\n async handle(event: EntryAfterUnpublishEventHandler.Event): Promise<void> {\n const { model, entry } = event.payload;\n\n if (model.isPrivate) {\n return;\n }\n\n try {\n const recordResult = await this.recordAuditLog.execute({\n audit: AUDIT.HEADLESS_CMS.ENTRY_REVISION.UNPUBLISH,\n message: \"Entry revision unpublished\",\n content: entry,\n entityId: entry.id\n });\n if (recordResult.isFail()) {\n throw recordResult.error;\n }\n } catch (error) {\n throw WebinyError.from(error, {\n message: \"Error while executing AuditLogEntryAfterUnpublishEventHandler\",\n code: \"AUDIT_LOGS_AFTER_ENTRY_REVISION_UNPUBLISH_HANDLER\"\n });\n }\n }\n}\n\nexport const AuditLogEntryAfterUnpublishEventHandler =\n EntryAfterUnpublishEventHandler.createImplementation({\n implementation: AuditLogEntryAfterUnpublishEventHandlerImpl,\n dependencies: [RecordAuditLogUseCase]\n });\n"],"names":["AuditLogEntryAfterUnpublishEventHandlerImpl","recordAuditLog","event","model","entry","recordResult","AUDIT","error","WebinyError","AuditLogEntryAfterUnpublishEventHandler","EntryAfterUnpublishEventHandler","RecordAuditLogUseCase"],"mappings":";;;;AAKA,MAAMA;IAGF,YAAoBC,cAA+C,CAAE;aAAjDA,cAAc,GAAdA;IAAkD;IAEtE,MAAM,OAAOC,KAA4C,EAAiB;QACtE,MAAM,EAAEC,KAAK,EAAEC,KAAK,EAAE,GAAGF,MAAM,OAAO;QAEtC,IAAIC,MAAM,SAAS,EACf;QAGJ,IAAI;YACA,MAAME,eAAe,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC;gBACnD,OAAOC,MAAM,YAAY,CAAC,cAAc,CAAC,SAAS;gBAClD,SAAS;gBACT,SAASF;gBACT,UAAUA,MAAM,EAAE;YACtB;YACA,IAAIC,aAAa,MAAM,IACnB,MAAMA,aAAa,KAAK;QAEhC,EAAE,OAAOE,OAAO;YACZ,MAAMC,cAAAA,IAAgB,CAACD,OAAO;gBAC1B,SAAS;gBACT,MAAM;YACV;QACJ;IACJ;AACJ;AAEO,MAAME,0CACTC,gCAAgC,oBAAoB,CAAC;IACjD,gBAAgBV;IAChB,cAAc;QAACW;KAAsB;AACzC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EntryAfterUpdateEventHandler } from "@webiny/api-headless-cms/features/contentEntry/UpdateEntry/index.js";
|
|
2
|
+
import { RecordAuditLogUseCase } from "../../../features/RecordAuditLog/abstractions.js";
|
|
3
|
+
declare class AuditLogEntryAfterUpdateEventHandlerImpl implements EntryAfterUpdateEventHandler.Interface {
|
|
4
|
+
private recordAuditLog;
|
|
5
|
+
constructor(recordAuditLog: RecordAuditLogUseCase.Interface);
|
|
6
|
+
handle(event: EntryAfterUpdateEventHandler.Event): Promise<void>;
|
|
7
|
+
}
|
|
8
|
+
export declare const AuditLogEntryAfterUpdateEventHandler: typeof AuditLogEntryAfterUpdateEventHandlerImpl & {
|
|
9
|
+
__abstraction: import("@webiny/di").Abstraction<import("@webiny/api-core/features/eventPublisher").IEventHandler<import("@webiny/api-headless-cms/features/contentEntry/UpdateEntry/events").EntryAfterUpdateEvent>>;
|
|
10
|
+
};
|
|
11
|
+
export {};
|