@social-mail/social-mail-web-server 1.7.772 → 1.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/WebServer.d.ts.map +1 -1
- package/dist/WebServer.js +15 -2
- package/dist/WebServer.js.map +1 -1
- package/dist/common/AsyncTaskManager.d.ts +8 -1
- package/dist/common/AsyncTaskManager.d.ts.map +1 -1
- package/dist/common/AsyncTaskManager.js +28 -2
- package/dist/common/AsyncTaskManager.js.map +1 -1
- package/dist/common/globalEnv.d.ts +12 -0
- package/dist/common/globalEnv.d.ts.map +1 -1
- package/dist/common/globalEnv.js +28 -15
- package/dist/common/globalEnv.js.map +1 -1
- package/dist/reports/model/ReportDbContext.d.ts +19 -0
- package/dist/reports/model/ReportDbContext.d.ts.map +1 -0
- package/dist/reports/model/ReportDbContext.js +47 -0
- package/dist/reports/model/ReportDbContext.js.map +1 -0
- package/dist/reports/model/ReportDbContextEvents.d.ts +5 -0
- package/dist/reports/model/ReportDbContextEvents.d.ts.map +1 -0
- package/dist/reports/model/ReportDbContextEvents.js +19 -0
- package/dist/reports/model/ReportDbContextEvents.js.map +1 -0
- package/dist/reports/model/entities/ReportSite.d.ts +9 -0
- package/dist/reports/model/entities/ReportSite.d.ts.map +1 -0
- package/dist/reports/model/entities/ReportSite.js +32 -0
- package/dist/reports/model/entities/ReportSite.js.map +1 -0
- package/dist/reports/model/entities/Visit.d.ts +12 -0
- package/dist/reports/model/entities/Visit.d.ts.map +1 -0
- package/dist/reports/model/entities/Visit.js +42 -0
- package/dist/reports/model/entities/Visit.js.map +1 -0
- package/dist/reports/model/entities/VisitActivity.d.ts +16 -0
- package/dist/reports/model/entities/VisitActivity.d.ts.map +1 -0
- package/dist/reports/model/entities/VisitActivity.js +66 -0
- package/dist/reports/model/entities/VisitActivity.js.map +1 -0
- package/dist/reports/model/entities/VisitSegment.d.ts +18 -0
- package/dist/reports/model/entities/VisitSegment.d.ts.map +1 -0
- package/dist/reports/model/entities/VisitSegment.js +59 -0
- package/dist/reports/model/entities/VisitSegment.js.map +1 -0
- package/dist/reports/model/entities/Visitor.d.ts +29 -0
- package/dist/reports/model/entities/Visitor.d.ts.map +1 -0
- package/dist/reports/model/entities/Visitor.js +110 -0
- package/dist/reports/model/entities/Visitor.js.map +1 -0
- package/dist/reports/model/events/ReportSiteEvents.d.ts +5 -0
- package/dist/reports/model/events/ReportSiteEvents.d.ts.map +1 -0
- package/dist/reports/model/events/ReportSiteEvents.js +4 -0
- package/dist/reports/model/events/ReportSiteEvents.js.map +1 -0
- package/dist/reports/model/events/VisitActivityEvents.d.ts +5 -0
- package/dist/reports/model/events/VisitActivityEvents.d.ts.map +1 -0
- package/dist/reports/model/events/VisitActivityEvents.js +4 -0
- package/dist/reports/model/events/VisitActivityEvents.js.map +1 -0
- package/dist/reports/model/events/VisitEvents.d.ts +5 -0
- package/dist/reports/model/events/VisitEvents.d.ts.map +1 -0
- package/dist/reports/model/events/VisitEvents.js +4 -0
- package/dist/reports/model/events/VisitEvents.js.map +1 -0
- package/dist/reports/model/events/VisitorEvents.d.ts +5 -0
- package/dist/reports/model/events/VisitorEvents.d.ts.map +1 -0
- package/dist/reports/model/events/VisitorEvents.js +4 -0
- package/dist/reports/model/events/VisitorEvents.js.map +1 -0
- package/dist/reports/services/ReportingCache.d.ts +11 -0
- package/dist/reports/services/ReportingCache.d.ts.map +1 -0
- package/dist/reports/services/ReportingCache.js +61 -0
- package/dist/reports/services/ReportingCache.js.map +1 -0
- package/dist/reports/workflows/ReportWorkflowContext.d.ts +6 -0
- package/dist/reports/workflows/ReportWorkflowContext.d.ts.map +1 -0
- package/dist/reports/workflows/ReportWorkflowContext.js +16 -0
- package/dist/reports/workflows/ReportWorkflowContext.js.map +1 -0
- package/dist/reports/workflows/activities/AddActivityWorkflow.d.ts +22 -0
- package/dist/reports/workflows/activities/AddActivityWorkflow.d.ts.map +1 -0
- package/dist/reports/workflows/activities/AddActivityWorkflow.js +113 -0
- package/dist/reports/workflows/activities/AddActivityWorkflow.js.map +1 -0
- package/dist/reports/workflows/visit-added/TrackActivityWorkflow.d.ts +18 -0
- package/dist/reports/workflows/visit-added/TrackActivityWorkflow.d.ts.map +1 -0
- package/dist/reports/workflows/visit-added/TrackActivityWorkflow.js +123 -0
- package/dist/reports/workflows/visit-added/TrackActivityWorkflow.js.map +1 -0
- package/dist/reports/workflows/visitor-added/VisitorAddedWorkflow.d.ts +10 -0
- package/dist/reports/workflows/visitor-added/VisitorAddedWorkflow.d.ts.map +1 -0
- package/dist/reports/workflows/visitor-added/VisitorAddedWorkflow.js +62 -0
- package/dist/reports/workflows/visitor-added/VisitorAddedWorkflow.js.map +1 -0
- package/dist/reports/wwwroot/routes/social-mail/reports/api/entity/index.d.ts +6 -0
- package/dist/reports/wwwroot/routes/social-mail/reports/api/entity/index.d.ts.map +1 -0
- package/dist/reports/wwwroot/routes/social-mail/reports/api/entity/index.js +21 -0
- package/dist/reports/wwwroot/routes/social-mail/reports/api/entity/index.js.map +1 -0
- package/dist/reports/wwwroot/routes/social-mail/reports/api/entity/invoke/[entityName]/[methodName]/index.d.ts +6 -0
- package/dist/reports/wwwroot/routes/social-mail/reports/api/entity/invoke/[entityName]/[methodName]/index.d.ts.map +1 -0
- package/dist/reports/wwwroot/routes/social-mail/reports/api/entity/invoke/[entityName]/[methodName]/index.js +21 -0
- package/dist/reports/wwwroot/routes/social-mail/reports/api/entity/invoke/[entityName]/[methodName]/index.js.map +1 -0
- package/dist/reports/wwwroot/routes/social-mail/reports/api/entity/model.ts/index.d.ts +6 -0
- package/dist/reports/wwwroot/routes/social-mail/reports/api/entity/model.ts/index.d.ts.map +1 -0
- package/dist/reports/wwwroot/routes/social-mail/reports/api/entity/model.ts/index.js +21 -0
- package/dist/reports/wwwroot/routes/social-mail/reports/api/entity/model.ts/index.js.map +1 -0
- package/dist/reports/wwwroot/routes/social-mail/reports/api/entity/query/[entity]/index.d.ts +6 -0
- package/dist/reports/wwwroot/routes/social-mail/reports/api/entity/query/[entity]/index.d.ts.map +1 -0
- package/dist/reports/wwwroot/routes/social-mail/reports/api/entity/query/[entity]/index.js +21 -0
- package/dist/reports/wwwroot/routes/social-mail/reports/api/entity/query/[entity]/index.js.map +1 -0
- package/dist/reports/wwwroot/routes/social-mail/reports/api/entity/run/[entity]/[methodName]/index.d.ts +6 -0
- package/dist/reports/wwwroot/routes/social-mail/reports/api/entity/run/[entity]/[methodName]/index.d.ts.map +1 -0
- package/dist/reports/wwwroot/routes/social-mail/reports/api/entity/run/[entity]/[methodName]/index.js +21 -0
- package/dist/reports/wwwroot/routes/social-mail/reports/api/entity/run/[entity]/[methodName]/index.js.map +1 -0
- package/dist/reports/wwwroot/routes/social-mail/reports/api/track/[event]/get.d.ts +15 -0
- package/dist/reports/wwwroot/routes/social-mail/reports/api/track/[event]/get.d.ts.map +1 -0
- package/dist/reports/wwwroot/routes/social-mail/reports/api/track/[event]/get.js +108 -0
- package/dist/reports/wwwroot/routes/social-mail/reports/api/track/[event]/get.js.map +1 -0
- package/dist/server/model/events/AppFileEvents.d.ts +2 -2
- package/dist/server/model/events/AppFileEvents.d.ts.map +1 -1
- package/dist/server/model/events/AppFileEvents.js +2 -2
- package/dist/server/model/events/AppFileEvents.js.map +1 -1
- package/dist/server/model/events/DomainKeyEvents.js +2 -2
- package/dist/server/model/events/DomainKeyEvents.js.map +1 -1
- package/dist/server/model/events/HostedDomainEvents.d.ts.map +1 -1
- package/dist/server/model/events/HostedDomainEvents.js +2 -2
- package/dist/server/model/events/HostedDomainEvents.js.map +1 -1
- package/dist/server/model/events/HostedZoneEvents.d.ts.map +1 -1
- package/dist/server/model/events/HostedZoneEvents.js +5 -5
- package/dist/server/model/events/HostedZoneEvents.js.map +1 -1
- package/dist/server/model/events/LoginSessionEvents.js +1 -1
- package/dist/server/model/events/LoginSessionEvents.js.map +1 -1
- package/dist/server/model/events/MailboxContactEvents.d.ts.map +1 -1
- package/dist/server/model/events/MailboxContactEvents.js +2 -2
- package/dist/server/model/events/MailboxContactEvents.js.map +1 -1
- package/dist/server/model/events/MailboxEvents.d.ts +2 -2
- package/dist/server/model/events/MailboxEvents.d.ts.map +1 -1
- package/dist/server/model/events/MailboxEvents.js +2 -2
- package/dist/server/model/events/MailboxEvents.js.map +1 -1
- package/dist/server/model/events/MailboxSyncTargetEvents.d.ts.map +1 -1
- package/dist/server/model/events/MailboxSyncTargetEvents.js +2 -2
- package/dist/server/model/events/MailboxSyncTargetEvents.js.map +1 -1
- package/dist/server/model/events/UserEvents.d.ts.map +1 -1
- package/dist/server/model/events/UserEvents.js +3 -3
- package/dist/server/model/events/UserEvents.js.map +1 -1
- package/dist/server/model/events/WebSiteEvents.d.ts +2 -2
- package/dist/server/model/events/WebSiteEvents.d.ts.map +1 -1
- package/dist/server/model/events/WebSiteEvents.js +2 -2
- package/dist/server/model/events/WebSiteEvents.js.map +1 -1
- package/dist/server/model/events/WebSiteHostEvents.d.ts.map +1 -1
- package/dist/server/model/events/WebSiteHostEvents.js +2 -2
- package/dist/server/model/events/WebSiteHostEvents.js.map +1 -1
- package/dist/server/model/events/WebSiteVersionEvents.d.ts.map +1 -1
- package/dist/server/model/events/WebSiteVersionEvents.js +2 -2
- package/dist/server/model/events/WebSiteVersionEvents.js.map +1 -1
- package/dist/server/seed/seed.d.ts.map +1 -1
- package/dist/server/seed/seed.js +5 -0
- package/dist/server/seed/seed.js.map +1 -1
- package/dist/server/seed/ui/seed-ui.js +2 -2
- package/dist/server/services/EmailAddressService.js +3 -3
- package/dist/server/services/EmailAddressService.js.map +1 -1
- package/dist/server/services/StoreFileService.d.ts +2 -2
- package/dist/server/services/StoreFileService.d.ts.map +1 -1
- package/dist/server/services/StoreFileService.js +2 -2
- package/dist/server/services/StoreFileService.js.map +1 -1
- package/dist/server/services/app-temp-file/AppTempFileService.d.ts +2 -0
- package/dist/server/services/app-temp-file/AppTempFileService.d.ts.map +1 -1
- package/dist/server/services/app-temp-file/AppTempFileService.js +8 -1
- package/dist/server/services/app-temp-file/AppTempFileService.js.map +1 -1
- package/dist/server/services/emails/MailService.d.ts +2 -2
- package/dist/server/services/emails/MailService.d.ts.map +1 -1
- package/dist/server/services/emails/MailService.js +2 -2
- package/dist/server/services/emails/MailService.js.map +1 -1
- package/dist/server/services/emails/UnreadCountService.d.ts +2 -2
- package/dist/server/services/emails/UnreadCountService.d.ts.map +1 -1
- package/dist/server/services/emails/UnreadCountService.js +2 -2
- package/dist/server/services/emails/UnreadCountService.js.map +1 -1
- package/dist/server/services/files/WebSiteVersionService.js +1 -1
- package/dist/server/services/files/WebSiteVersionService.js.map +1 -1
- package/dist/server/services/store/StorePaymentGatewayService.d.ts +2 -2
- package/dist/server/services/store/StorePaymentGatewayService.d.ts.map +1 -1
- package/dist/server/services/store/StorePaymentGatewayService.js +2 -2
- package/dist/server/services/store/StorePaymentGatewayService.js.map +1 -1
- package/dist/server/services/user/otp-to-user/OtpToUserService.d.ts.map +1 -1
- package/dist/server/services/user/otp-to-user/OtpToUserService.js +0 -2
- package/dist/server/services/user/otp-to-user/OtpToUserService.js.map +1 -1
- package/dist/server/services/user/otp-to-user/test/index.d.ts +23 -0
- package/dist/server/services/user/otp-to-user/test/index.d.ts.map +1 -0
- package/dist/server/services/user/otp-to-user/test/index.js +16 -0
- package/dist/server/services/user/otp-to-user/test/index.js.map +1 -0
- package/dist/server/smtp/services/ChannelService.d.ts.map +1 -1
- package/dist/server/smtp/services/ChannelService.js +2 -2
- package/dist/server/smtp/services/ChannelService.js.map +1 -1
- package/dist/server/smtp/services/EmailPostReceiveService.d.ts +2 -2
- package/dist/server/smtp/services/EmailPostReceiveService.d.ts.map +1 -1
- package/dist/server/smtp/services/EmailPostReceiveService.js +2 -2
- package/dist/server/smtp/services/EmailPostReceiveService.js.map +1 -1
- package/dist/server/smtp/services/EmailReferenceService.d.ts.map +1 -1
- package/dist/server/smtp/services/EmailReferenceService.js +2 -2
- package/dist/server/smtp/services/EmailReferenceService.js.map +1 -1
- package/dist/server/smtp/services/EmailSerializerService.d.ts.map +1 -1
- package/dist/server/smtp/services/EmailSerializerService.js +2 -2
- package/dist/server/smtp/services/EmailSerializerService.js.map +1 -1
- package/dist/server/workflows/AppWorkflowContext.d.ts +4 -0
- package/dist/server/workflows/AppWorkflowContext.d.ts.map +1 -0
- package/dist/server/workflows/AppWorkflowContext.js +4 -0
- package/dist/server/workflows/AppWorkflowContext.js.map +1 -0
- package/dist/server/workflows/SocialWorkflowContext.d.ts +3 -2
- package/dist/server/workflows/SocialWorkflowContext.d.ts.map +1 -1
- package/dist/server/workflows/SocialWorkflowContext.js +2 -2
- package/dist/server/workflows/SocialWorkflowContext.js.map +1 -1
- package/dist/server/workflows/channel/BroadcastEmail.d.ts +2 -2
- package/dist/server/workflows/channel/BroadcastEmail.d.ts.map +1 -1
- package/dist/server/workflows/channel/BroadcastEmail.js.map +1 -1
- package/dist/server/workflows/channel/library/SendLibraryContentWorkflow.d.ts +2 -2
- package/dist/server/workflows/channel/library/SendLibraryContentWorkflow.d.ts.map +1 -1
- package/dist/server/workflows/channel/library/SendLibraryContentWorkflow.js.map +1 -1
- package/dist/server/workflows/channel/moderation/UpdatePendingModerationCountWorkflow.js +2 -2
- package/dist/server/workflows/channel/moderation/UpdatePendingModerationCountWorkflow.js.map +1 -1
- package/dist/server/workflows/dns/SyncDnsZoneRecordsWorkflow.d.ts +2 -2
- package/dist/server/workflows/dns/SyncDnsZoneRecordsWorkflow.d.ts.map +1 -1
- package/dist/server/workflows/dns/SyncDnsZoneRecordsWorkflow.js.map +1 -1
- package/dist/server/workflows/incoming/UpdateMailboxThreads.d.ts +1 -2
- package/dist/server/workflows/incoming/UpdateMailboxThreads.d.ts.map +1 -1
- package/dist/server/workflows/incoming/UpdateMailboxThreads.js +2 -5
- package/dist/server/workflows/incoming/UpdateMailboxThreads.js.map +1 -1
- package/dist/server/workflows/pending/PendingPostReceiveWorkflow.d.ts +2 -2
- package/dist/server/workflows/pending/PendingPostReceiveWorkflow.d.ts.map +1 -1
- package/dist/server/workflows/pending/PendingPostReceiveWorkflow.js.map +1 -1
- package/dist/server/workflows/pending/PendingReferencesWorkflow.d.ts +2 -2
- package/dist/server/workflows/pending/PendingReferencesWorkflow.d.ts.map +1 -1
- package/dist/server/workflows/pending/PendingReferencesWorkflow.js.map +1 -1
- package/dist/server/workflows/repair/conversations/RepairConversationWorkflow.d.ts +3 -3
- package/dist/server/workflows/repair/conversations/RepairConversationWorkflow.d.ts.map +1 -1
- package/dist/server/workflows/repair/conversations/RepairConversationWorkflow.js.map +1 -1
- package/dist/server/workflows/search/IndexAppFilesWorkflow.d.ts +2 -2
- package/dist/server/workflows/search/IndexAppFilesWorkflow.d.ts.map +1 -1
- package/dist/server/workflows/search/IndexAppFilesWorkflow.js.map +1 -1
- package/dist/server/workflows/storage/files/UpdateFolderSize.d.ts.map +1 -1
- package/dist/server/workflows/storage/files/UpdateFolderSize.js.map +1 -1
- package/dist/server/workflows/sync/SyncMailboxWorkflow.d.ts +3 -3
- package/dist/server/workflows/sync/SyncMailboxWorkflow.d.ts.map +1 -1
- package/dist/server/workflows/sync/SyncMailboxWorkflow.js.map +1 -1
- package/dist/server/workflows/web-hooks/InvokeWebHookWorkflow.d.ts +2 -2
- package/dist/server/workflows/web-hooks/InvokeWebHookWorkflow.d.ts.map +1 -1
- package/dist/server/workflows/web-hooks/InvokeWebHookWorkflow.js +1 -0
- package/dist/server/workflows/web-hooks/InvokeWebHookWorkflow.js.map +1 -1
- package/dist/server/workflows/web-hooks/QueueInvokeWebHookWorkflow.d.ts +2 -2
- package/dist/server/workflows/web-hooks/QueueInvokeWebHookWorkflow.d.ts.map +1 -1
- package/dist/server/workflows/web-hooks/QueueInvokeWebHookWorkflow.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/wwwroot/routes/api/repair/conversations/index.d.ts.map +1 -1
- package/dist/wwwroot/routes/api/repair/conversations/index.js +2 -2
- package/dist/wwwroot/routes/api/repair/conversations/index.js.map +1 -1
- package/dist/wwwroot/routes/api/repair/paths/index.d.ts.map +1 -1
- package/dist/wwwroot/routes/api/repair/paths/index.js +2 -2
- package/dist/wwwroot/routes/api/repair/paths/index.js.map +1 -1
- package/dist/wwwroot/routes/api/repair/workflows/index.d.ts +2 -2
- package/dist/wwwroot/routes/api/repair/workflows/index.d.ts.map +1 -1
- package/dist/wwwroot/routes/api/repair/workflows/index.js +2 -2
- package/dist/wwwroot/routes/api/repair/workflows/index.js.map +1 -1
- package/package.json +3 -2
- package/src/WebServer.ts +21 -2
- package/src/common/AsyncTaskManager.ts +31 -5
- package/src/common/globalEnv.ts +29 -15
- package/src/reports/model/ReportDbContext.ts +42 -0
- package/src/reports/model/ReportDbContextEvents.ts +21 -0
- package/src/reports/model/entities/ReportSite.ts +21 -0
- package/src/reports/model/entities/Visit.ts +31 -0
- package/src/reports/model/entities/VisitActivity.ts +46 -0
- package/src/reports/model/entities/VisitSegment.ts +47 -0
- package/src/reports/model/entities/Visitor.ts +82 -0
- package/src/reports/model/events/ReportSiteEvents.ts +6 -0
- package/src/reports/model/events/VisitActivityEvents.ts +7 -0
- package/src/reports/model/events/VisitEvents.ts +6 -0
- package/src/reports/model/events/VisitorEvents.ts +6 -0
- package/src/reports/services/ReportingCache.ts +56 -0
- package/src/reports/workflows/ReportWorkflowContext.ts +20 -0
- package/src/reports/workflows/activities/AddActivityWorkflow.ts +146 -0
- package/src/reports/workflows/visit-added/TrackActivityWorkflow.ts +203 -0
- package/src/reports/workflows/visitor-added/VisitorAddedWorkflow.ts +53 -0
- package/src/reports/wwwroot/routes/social-mail/reports/api/entity/index.tsx +11 -0
- package/src/reports/wwwroot/routes/social-mail/reports/api/entity/invoke/[entityName]/[methodName]/index.tsx +11 -0
- package/src/reports/wwwroot/routes/social-mail/reports/api/entity/model.ts/index.tsx +11 -0
- package/src/reports/wwwroot/routes/social-mail/reports/api/entity/query/[entity]/index.tsx +11 -0
- package/src/reports/wwwroot/routes/social-mail/reports/api/entity/run/[entity]/[methodName]/index.tsx +11 -0
- package/src/reports/wwwroot/routes/social-mail/reports/api/track/[event]/get.tsx +127 -0
- package/src/server/model/events/AppFileEvents.ts +2 -2
- package/src/server/model/events/DomainKeyEvents.ts +2 -2
- package/src/server/model/events/HostedDomainEvents.ts +2 -3
- package/src/server/model/events/HostedZoneEvents.ts +5 -7
- package/src/server/model/events/LoginSessionEvents.ts +1 -1
- package/src/server/model/events/MailboxContactEvents.ts +2 -3
- package/src/server/model/events/MailboxEvents.ts +2 -4
- package/src/server/model/events/MailboxSyncTargetEvents.ts +2 -2
- package/src/server/model/events/UserEvents.ts +3 -6
- package/src/server/model/events/WebSiteEvents.ts +2 -3
- package/src/server/model/events/WebSiteHostEvents.ts +2 -2
- package/src/server/model/events/WebSiteVersionEvents.ts +2 -3
- package/src/server/seed/seed.ts +6 -0
- package/src/server/seed/ui/seed-ui.ts +2 -2
- package/src/server/services/EmailAddressService.ts +3 -3
- package/src/server/services/StoreFileService.ts +2 -2
- package/src/server/services/app-temp-file/AppTempFileService.ts +8 -1
- package/src/server/services/emails/MailService.ts +2 -2
- package/src/server/services/emails/UnreadCountService.ts +3 -5
- package/src/server/services/files/WebSiteVersionService.ts +1 -1
- package/src/server/services/store/StorePaymentGatewayService.ts +2 -2
- package/src/server/services/user/otp-to-user/OtpToUserService.ts +0 -2
- package/src/server/services/user/otp-to-user/test/index.ts +23 -0
- package/src/server/smtp/services/ChannelService.ts +2 -2
- package/src/server/smtp/services/EmailPostReceiveService.ts +2 -4
- package/src/server/smtp/services/EmailReferenceService.ts +2 -2
- package/src/server/smtp/services/EmailSerializerService.ts +2 -2
- package/src/server/workflows/AppWorkflowContext.ts +5 -0
- package/src/server/workflows/SocialWorkflowContext.ts +3 -2
- package/src/server/workflows/channel/BroadcastEmail.ts +2 -2
- package/src/server/workflows/channel/library/SendLibraryContentWorkflow.ts +2 -2
- package/src/server/workflows/channel/moderation/UpdatePendingModerationCountWorkflow.ts +2 -2
- package/src/server/workflows/dns/SyncDnsZoneRecordsWorkflow.ts +2 -3
- package/src/server/workflows/incoming/UpdateMailboxThreads.ts +2 -4
- package/src/server/workflows/pending/PendingPostReceiveWorkflow.ts +2 -2
- package/src/server/workflows/pending/PendingReferencesWorkflow.ts +2 -2
- package/src/server/workflows/repair/conversations/RepairConversationWorkflow.ts +3 -3
- package/src/server/workflows/search/IndexAppFilesWorkflow.ts +2 -2
- package/src/server/workflows/storage/files/UpdateFolderSize.ts +0 -1
- package/src/server/workflows/sync/SyncMailboxWorkflow.ts +3 -3
- package/src/server/workflows/web-hooks/InvokeWebHookWorkflow.ts +3 -2
- package/src/server/workflows/web-hooks/QueueInvokeWebHookWorkflow.ts +2 -2
- package/src/wwwroot/routes/api/repair/conversations/index.ts +2 -2
- package/src/wwwroot/routes/api/repair/paths/index.ts +2 -3
- package/src/wwwroot/routes/api/repair/workflows/index.ts +2 -2
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import Column from "@entity-access/entity-access/dist/decorators/Column.js";
|
|
11
|
+
import { RelateTo } from "@entity-access/entity-access/dist/decorators/Relate.js";
|
|
12
|
+
import Table from "@entity-access/entity-access/dist/decorators/Table.js";
|
|
13
|
+
import Visit from "./Visit.js";
|
|
14
|
+
import Sql from "@entity-access/entity-access/dist/sql/Sql.js";
|
|
15
|
+
import DateTime from "@entity-access/entity-access/dist/types/DateTime.js";
|
|
16
|
+
let VisitActivity = class VisitActivity {
|
|
17
|
+
};
|
|
18
|
+
__decorate([
|
|
19
|
+
Column({ dataType: "BigInt", key: true, generated: "identity" }),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], VisitActivity.prototype, "activityID", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
Column({ dataType: "BigInt" }),
|
|
24
|
+
RelateTo(Visit, {
|
|
25
|
+
property: (x) => x.visit,
|
|
26
|
+
inverseProperty: (x) => x.activities
|
|
27
|
+
}),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], VisitActivity.prototype, "visitID", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
Column({ dataType: "DateTime", default: () => Sql.date.now() }),
|
|
32
|
+
__metadata("design:type", DateTime)
|
|
33
|
+
], VisitActivity.prototype, "dateCreated", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
Column({ dataType: "Char", length: 50 }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], VisitActivity.prototype, "event", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
Column({ dataType: "Char", length: 50, nullable: true }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], VisitActivity.prototype, "referrer", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
Column({ dataType: "Char", length: 450, nullable: true }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], VisitActivity.prototype, "page", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
Column({ dataType: "Char", nullable: true }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], VisitActivity.prototype, "query", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
Column({ dataType: "Int", default: () => 0 }),
|
|
52
|
+
__metadata("design:type", Number)
|
|
53
|
+
], VisitActivity.prototype, "x", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
Column({ dataType: "Int", default: () => 0 }),
|
|
56
|
+
__metadata("design:type", Number)
|
|
57
|
+
], VisitActivity.prototype, "y", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
Column({ dataType: "Char", nullable: true }),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], VisitActivity.prototype, "url", void 0);
|
|
62
|
+
VisitActivity = __decorate([
|
|
63
|
+
Table("VisitActivities")
|
|
64
|
+
], VisitActivity);
|
|
65
|
+
export default VisitActivity;
|
|
66
|
+
//# sourceMappingURL=VisitActivity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VisitActivity.js","sourceRoot":"","sources":["../../../../src/reports/model/entities/VisitActivity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,MAAM,MAAM,wDAAwD,CAAC;AAC5E,OAAO,EAAE,QAAQ,EAAE,MAAM,wDAAwD,CAAC;AAClF,OAAO,KAAK,MAAM,uDAAuD,CAAC;AAC1E,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,GAAG,MAAM,8CAA8C,CAAC;AAC/D,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAG5D,IAAM,aAAa,GAAnB,MAAM,aAAa;CAqCjC,CAAA;AAlCG;IADC,MAAM,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAC,CAAC;;iDAC7C;AAOnB;IALC,MAAM,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC;IAC9B,QAAQ,CAAC,KAAK,EAAE;QACb,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK;QACxB,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU;KACvC,CAAC;;8CACc;AAGhB;IADC,MAAM,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,EAAC,CAAC;8BAClD,QAAQ;kDAAC;AAGtB;IADC,MAAM,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,EAAC,CAAC;;4CAC1B;AAGd;IADC,MAAM,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAC,CAAC;;+CACvC;AAGjB;IADC,MAAM,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAC,CAAC;;2CAC5C;AAGb;IADC,MAAM,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAC,CAAC;;4CAC9B;AAGd;IADC,MAAM,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,EAAC,CAAC;;wCACnC;AAGV;IADC,MAAM,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,EAAC,CAAC;;wCACnC;AAGV;IADC,MAAM,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAC,CAAC;;0CAChC;AAlCK,aAAa;IADjC,KAAK,CAAC,iBAAiB,CAAC;GACJ,aAAa,CAqCjC;eArCoB,aAAa"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import DateTime from "@entity-access/entity-access/dist/types/DateTime.js";
|
|
2
|
+
declare const durations: readonly ["hourly", "daily", "monthly", "yearly", "real-time"];
|
|
3
|
+
export type durationType = typeof durations[number];
|
|
4
|
+
export default class VisitSegment {
|
|
5
|
+
siteID: number;
|
|
6
|
+
duration: durationType;
|
|
7
|
+
category: string;
|
|
8
|
+
/**
|
|
9
|
+
* Beginning of the our should be stored here.
|
|
10
|
+
*/
|
|
11
|
+
date: DateTime;
|
|
12
|
+
visits: number;
|
|
13
|
+
newVisits: number;
|
|
14
|
+
visitors: number;
|
|
15
|
+
newVisitors: number;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=VisitSegment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VisitSegment.d.ts","sourceRoot":"","sources":["../../../../src/reports/model/entities/VisitSegment.ts"],"names":[],"mappings":"AAIA,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAE3E,QAAA,MAAM,SAAS,gEAAkE,CAAC;AAClF,MAAM,MAAM,YAAY,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC;AASpD,MAAM,CAAC,OAAO,OAAO,YAAY;IAG7B,MAAM,EAAE,MAAM,CAAC;IAGf,QAAQ,EAAE,YAAY,CAAC;IAGvB,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IAEH,IAAI,EAAE,QAAQ,CAAC;IAIf,MAAM,EAAE,MAAM,CAAC;IAGf,SAAS,EAAE,MAAM,CAAC;IAGlB,QAAQ,EAAE,MAAM,CAAC;IAGjB,WAAW,EAAE,MAAM,CAAC;CAEvB"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import CheckConstraint from "@entity-access/entity-access/dist/decorators/CheckConstraint.js";
|
|
11
|
+
import Column from "@entity-access/entity-access/dist/decorators/Column.js";
|
|
12
|
+
import Table from "@entity-access/entity-access/dist/decorators/Table.js";
|
|
13
|
+
import Sql from "@entity-access/entity-access/dist/sql/Sql.js";
|
|
14
|
+
import DateTime from "@entity-access/entity-access/dist/types/DateTime.js";
|
|
15
|
+
const durations = ["hourly", "daily", "monthly", "yearly", "real-time"];
|
|
16
|
+
let VisitSegment = class VisitSegment {
|
|
17
|
+
};
|
|
18
|
+
__decorate([
|
|
19
|
+
Column({ dataType: "BigInt", key: true }),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], VisitSegment.prototype, "siteID", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
Column({ dataType: "Char", length: 20, key: true, enum: durations }),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], VisitSegment.prototype, "duration", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
Column({ dataType: "Char", length: 400, key: true }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], VisitSegment.prototype, "category", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
Column({ dataType: "DateTime", key: true }),
|
|
32
|
+
__metadata("design:type", DateTime)
|
|
33
|
+
], VisitSegment.prototype, "date", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
Column({ dataType: "Int", default: () => 0 }),
|
|
36
|
+
__metadata("design:type", Number)
|
|
37
|
+
], VisitSegment.prototype, "visits", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
Column({ dataType: "Int", default: () => 0 }),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], VisitSegment.prototype, "newVisits", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
Column({ dataType: "Int", default: () => 0 }),
|
|
44
|
+
__metadata("design:type", Number)
|
|
45
|
+
], VisitSegment.prototype, "visitors", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
Column({ dataType: "Int", default: () => 0 }),
|
|
48
|
+
__metadata("design:type", Number)
|
|
49
|
+
], VisitSegment.prototype, "newVisitors", void 0);
|
|
50
|
+
VisitSegment = __decorate([
|
|
51
|
+
Table("VisitSegment"),
|
|
52
|
+
CheckConstraint({
|
|
53
|
+
name: "CC_VisitSegment_Date",
|
|
54
|
+
filter: (x) => Sql.date.minuteOf(x.date) === 0
|
|
55
|
+
&& Sql.date.secondOf(x.date) === 0
|
|
56
|
+
})
|
|
57
|
+
], VisitSegment);
|
|
58
|
+
export default VisitSegment;
|
|
59
|
+
//# sourceMappingURL=VisitSegment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VisitSegment.js","sourceRoot":"","sources":["../../../../src/reports/model/entities/VisitSegment.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,eAAe,MAAM,iEAAiE,CAAC;AAC9F,OAAO,MAAM,MAAM,wDAAwD,CAAC;AAC5E,OAAO,KAAK,MAAM,uDAAuD,CAAC;AAC1E,OAAO,GAAG,MAAM,8CAA8C,CAAC;AAC/D,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAE3E,MAAM,SAAS,GAAG,CAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,CAAU,CAAC;AAUnE,IAAM,YAAY,GAAlB,MAAM,YAAY;CA8BhC,CAAA;AA3BG;IADC,MAAM,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;;4CAC3B;AAGf;IADC,MAAM,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;8CAC9C;AAGvB;IADC,MAAM,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAC,CAAC;;8CACnC;AAMjB;IADC,MAAM,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;8BACtC,QAAQ;0CAAC;AAIf;IADC,MAAM,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,EAAC,CAAC;;4CAC9B;AAGf;IADC,MAAM,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,EAAC,CAAC;;+CAC3B;AAGlB;IADC,MAAM,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,EAAC,CAAC;;8CAC5B;AAGjB;IADC,MAAM,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,EAAC,CAAC;;iDACzB;AA5BH,YAAY;IANhC,KAAK,CAAC,cAAc,CAAC;IACrB,eAAe,CAAC;QACb,IAAI,EAAE,sBAAsB;QAC5B,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC;eACvC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC;KACzC,CAAC;GACmB,YAAY,CA8BhC;eA9BoB,YAAY"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type Visit from "./Visit.js";
|
|
2
|
+
import ReportSite from "./ReportSite.js";
|
|
3
|
+
import DateTime from "@entity-access/entity-access/dist/types/DateTime.js";
|
|
4
|
+
export default class Visitor {
|
|
5
|
+
visitorID: number;
|
|
6
|
+
siteID: number;
|
|
7
|
+
ipAddress: string;
|
|
8
|
+
country: string;
|
|
9
|
+
userAgent: string;
|
|
10
|
+
device: string;
|
|
11
|
+
deviceModel: string;
|
|
12
|
+
deviceVendor: string;
|
|
13
|
+
cpu: string;
|
|
14
|
+
app: string;
|
|
15
|
+
appVersion: string;
|
|
16
|
+
engine: string;
|
|
17
|
+
engineVersion: string;
|
|
18
|
+
os: string;
|
|
19
|
+
osVersion: string;
|
|
20
|
+
dateCreated: DateTime;
|
|
21
|
+
dateUpdated: DateTime;
|
|
22
|
+
totalVisits: number;
|
|
23
|
+
averageDuration: number;
|
|
24
|
+
firstVisitID: number;
|
|
25
|
+
lastVisitID: number;
|
|
26
|
+
site: ReportSite;
|
|
27
|
+
visits: Visit[];
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=Visitor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Visitor.d.ts","sourceRoot":"","sources":["../../../../src/reports/model/entities/Visitor.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AAEpC,OAAO,UAAU,MAAM,iBAAiB,CAAC;AACzC,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAI3E,MAAM,CAAC,OAAO,OAAO,OAAO;IAGxB,SAAS,EAAE,MAAM,CAAC;IAOlB,MAAM,EAAE,MAAM,CAAC;IAGf,SAAS,EAAE,MAAM,CAAC;IAGlB,OAAO,EAAE,MAAM,CAAC;IAGhB,SAAS,EAAE,MAAM,CAAC;IAGlB,MAAM,EAAE,MAAM,CAAC;IAGf,WAAW,EAAE,MAAM,CAAC;IAGpB,YAAY,EAAE,MAAM,CAAC;IAGrB,GAAG,EAAE,MAAM,CAAC;IAGZ,GAAG,EAAE,MAAM,CAAC;IAGZ,UAAU,EAAE,MAAM,CAAC;IAGnB,MAAM,EAAE,MAAM,CAAC;IAGf,aAAa,EAAE,MAAM,CAAC;IAGtB,EAAE,EAAE,MAAM,CAAC;IAGX,SAAS,EAAE,MAAM,CAAC;IAGlB,WAAW,EAAE,QAAQ,CAAC;IAGtB,WAAW,EAAE,QAAQ,CAAC;IAGtB,WAAW,EAAE,MAAM,CAAC;IAGpB,eAAe,EAAE,MAAM,CAAC;IAGxB,YAAY,EAAE,MAAM,CAAC;IAGrB,WAAW,EAAE,MAAM,CAAC;IAEpB,IAAI,EAAE,UAAU,CAAC;IACjB,MAAM,EAAE,KAAK,EAAE,CAAC;CAEnB"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import Column from "@entity-access/entity-access/dist/decorators/Column.js";
|
|
11
|
+
import Table from "@entity-access/entity-access/dist/decorators/Table.js";
|
|
12
|
+
import { RelateTo } from "@entity-access/entity-access/dist/decorators/Relate.js";
|
|
13
|
+
import ReportSite from "./ReportSite.js";
|
|
14
|
+
import DateTime from "@entity-access/entity-access/dist/types/DateTime.js";
|
|
15
|
+
import Sql from "@entity-access/entity-access/dist/sql/Sql.js";
|
|
16
|
+
let Visitor = class Visitor {
|
|
17
|
+
};
|
|
18
|
+
__decorate([
|
|
19
|
+
Column({ dataType: "BigInt", key: true, generated: "identity" }),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], Visitor.prototype, "visitorID", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
Column({ dataType: "BigInt" }),
|
|
24
|
+
RelateTo(ReportSite, {
|
|
25
|
+
property: (x) => x.site,
|
|
26
|
+
inverseProperty: (x) => x.visitors
|
|
27
|
+
}),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], Visitor.prototype, "siteID", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
Column({ dataType: "Char", length: 50, nullable: true }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], Visitor.prototype, "ipAddress", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
Column({ dataType: "Char", length: 50, nullable: true }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], Visitor.prototype, "country", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
Column({ dataType: "Char", nullable: true }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], Visitor.prototype, "userAgent", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
Column({ dataType: "Char", length: 400, nullable: true }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], Visitor.prototype, "device", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
Column({ dataType: "Char", length: 400, nullable: true }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], Visitor.prototype, "deviceModel", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
Column({ dataType: "Char", length: 400, nullable: true }),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], Visitor.prototype, "deviceVendor", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
Column({ dataType: "Char", length: 400, nullable: true }),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], Visitor.prototype, "cpu", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
Column({ dataType: "Char", length: 400, nullable: true }),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], Visitor.prototype, "app", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
Column({ dataType: "Char", length: 400, nullable: true }),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], Visitor.prototype, "appVersion", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
Column({ dataType: "Char", length: 400, nullable: true }),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], Visitor.prototype, "engine", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
Column({ dataType: "Char", length: 400, nullable: true }),
|
|
72
|
+
__metadata("design:type", String)
|
|
73
|
+
], Visitor.prototype, "engineVersion", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
Column({ dataType: "Char", length: 400, nullable: true }),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], Visitor.prototype, "os", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
Column({ dataType: "Char", length: 400, nullable: true }),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], Visitor.prototype, "osVersion", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
Column({ dataType: "DateTime", default: () => Sql.date.now() }),
|
|
84
|
+
__metadata("design:type", DateTime)
|
|
85
|
+
], Visitor.prototype, "dateCreated", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
Column({ dataType: "DateTime", default: () => Sql.date.now() }),
|
|
88
|
+
__metadata("design:type", DateTime)
|
|
89
|
+
], Visitor.prototype, "dateUpdated", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
Column({ dataType: "Int", default: () => 1 }),
|
|
92
|
+
__metadata("design:type", Number)
|
|
93
|
+
], Visitor.prototype, "totalVisits", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
Column({ dataType: "Float", default: () => 1 }),
|
|
96
|
+
__metadata("design:type", Number)
|
|
97
|
+
], Visitor.prototype, "averageDuration", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
Column({ dataType: "BigInt", nullable: true }),
|
|
100
|
+
__metadata("design:type", Number)
|
|
101
|
+
], Visitor.prototype, "firstVisitID", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
Column({ dataType: "BigInt", nullable: true }),
|
|
104
|
+
__metadata("design:type", Number)
|
|
105
|
+
], Visitor.prototype, "lastVisitID", void 0);
|
|
106
|
+
Visitor = __decorate([
|
|
107
|
+
Table("Visitors")
|
|
108
|
+
], Visitor);
|
|
109
|
+
export default Visitor;
|
|
110
|
+
//# sourceMappingURL=Visitor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Visitor.js","sourceRoot":"","sources":["../../../../src/reports/model/entities/Visitor.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import AuthenticatedEvents from "../../../server/model/events/AuthenticatedEvents.js";
|
|
2
|
+
import ReportSite from "../entities/ReportSite.js";
|
|
3
|
+
export default class ReportSiteEvents extends AuthenticatedEvents<ReportSite> {
|
|
4
|
+
}
|
|
5
|
+
//# sourceMappingURL=ReportSiteEvents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReportSiteEvents.d.ts","sourceRoot":"","sources":["../../../../src/reports/model/events/ReportSiteEvents.ts"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,MAAM,qDAAqD,CAAC;AACtF,OAAO,UAAU,MAAM,2BAA2B,CAAC;AAEnD,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,mBAAmB,CAAC,UAAU,CAAC;CAE5E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReportSiteEvents.js","sourceRoot":"","sources":["../../../../src/reports/model/events/ReportSiteEvents.ts"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,MAAM,qDAAqD,CAAC;AAGtF,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,mBAA+B;CAE5E"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import AuthenticatedEvents from "../../../server/model/events/AuthenticatedEvents.js";
|
|
2
|
+
import VisitActivity from "../entities/VisitActivity.js";
|
|
3
|
+
export default class VisitActivityEvents extends AuthenticatedEvents<VisitActivity> {
|
|
4
|
+
}
|
|
5
|
+
//# sourceMappingURL=VisitActivityEvents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VisitActivityEvents.d.ts","sourceRoot":"","sources":["../../../../src/reports/model/events/VisitActivityEvents.ts"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,MAAM,qDAAqD,CAAC;AAEtF,OAAO,aAAa,MAAM,8BAA8B,CAAC;AAEzD,MAAM,CAAC,OAAO,OAAO,mBAAoB,SAAQ,mBAAmB,CAAC,aAAa,CAAC;CAElF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VisitActivityEvents.js","sourceRoot":"","sources":["../../../../src/reports/model/events/VisitActivityEvents.ts"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,MAAM,qDAAqD,CAAC;AAItF,MAAM,CAAC,OAAO,OAAO,mBAAoB,SAAQ,mBAAkC;CAElF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VisitEvents.d.ts","sourceRoot":"","sources":["../../../../src/reports/model/events/VisitEvents.ts"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,MAAM,qDAAqD,CAAC;AACtF,OAAO,KAAK,MAAM,sBAAsB,CAAC;AAEzC,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,mBAAmB,CAAC,KAAK,CAAC;CAElE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VisitEvents.js","sourceRoot":"","sources":["../../../../src/reports/model/events/VisitEvents.ts"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,MAAM,qDAAqD,CAAC;AAGtF,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,mBAA0B;CAElE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VisitorEvents.d.ts","sourceRoot":"","sources":["../../../../src/reports/model/events/VisitorEvents.ts"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,MAAM,qDAAqD,CAAC;AACtF,OAAO,OAAO,MAAM,wBAAwB,CAAC;AAE7C,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,mBAAmB,CAAC,OAAO,CAAC;CAEtE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VisitorEvents.js","sourceRoot":"","sources":["../../../../src/reports/model/events/VisitorEvents.ts"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,MAAM,qDAAqD,CAAC;AAGtF,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,mBAA4B;CAEtE"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default class ReportingCache {
|
|
2
|
+
private cacheStore;
|
|
3
|
+
private db;
|
|
4
|
+
private wcs;
|
|
5
|
+
generateSiteDb(host: string): Promise<{
|
|
6
|
+
siteID: number;
|
|
7
|
+
timeZoneSeconds: number;
|
|
8
|
+
}>;
|
|
9
|
+
getVisitor(visitorID: any): Promise<import("../model/entities/Visitor.js").default>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=ReportingCache.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReportingCache.d.ts","sourceRoot":"","sources":["../../../src/reports/services/ReportingCache.ts"],"names":[],"mappings":"AAqBA,MAAM,CAAC,OAAO,OAAO,cAAc;IAI/B,OAAO,CAAC,UAAU,CAAsB;IAGxC,OAAO,CAAC,EAAE,CAAkB;IAG5B,OAAO,CAAC,GAAG,CAAwB;IAG7B,cAAc,CAAC,IAAI,EAAE,MAAM;;;;IAc3B,UAAU,CAAC,SAAS,KAAA;CAO7B"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import Inject, { RegisterScoped, RegisterSingleton } from "@entity-access/entity-access/dist/di/di.js";
|
|
11
|
+
import { ObjectCache } from "../../common/cacheFor.js";
|
|
12
|
+
import ReportDbContext from "../model/ReportDbContext.js";
|
|
13
|
+
import WebSiteContentService from "../../server/services/files/WebSiteContentService.js";
|
|
14
|
+
import BaseDiskCache from "../../common/BaseDiskCache.js";
|
|
15
|
+
import { join } from "path";
|
|
16
|
+
import { globalEnv } from "../../common/globalEnv.js";
|
|
17
|
+
let ReportingCacheStore = class ReportingCacheStore {
|
|
18
|
+
constructor() {
|
|
19
|
+
this.cache = new ObjectCache();
|
|
20
|
+
this.diskCache = new BaseDiskCache({
|
|
21
|
+
root: join(globalEnv.tmpDir, "reporting-cache"),
|
|
22
|
+
keepTTLSeconds: 7 * 24 * 60 * 60
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
ReportingCacheStore = __decorate([
|
|
27
|
+
RegisterSingleton
|
|
28
|
+
], ReportingCacheStore);
|
|
29
|
+
let ReportingCache = class ReportingCache {
|
|
30
|
+
async generateSiteDb(host) {
|
|
31
|
+
return this.cacheStore.diskCache.getOrCreateJsonAsync(`generateSiteDb-${host}`, async () => {
|
|
32
|
+
const ss = await this.wcs.getCurrentSnapshotFolder(host);
|
|
33
|
+
const { folderID } = ss;
|
|
34
|
+
const { siteID, timeZoneSeconds } = await this.db.reportSites.statements.selectOrInsert({
|
|
35
|
+
siteID: folderID
|
|
36
|
+
});
|
|
37
|
+
return { siteID, timeZoneSeconds };
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
async getVisitor(visitorID) {
|
|
41
|
+
return this.cacheStore
|
|
42
|
+
.diskCache.getOrCreateJsonAsync(`getVisitor-${visitorID}`, () => this.db.visitors.statements.select({}, { visitorID }));
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
__decorate([
|
|
46
|
+
Inject,
|
|
47
|
+
__metadata("design:type", ReportingCacheStore)
|
|
48
|
+
], ReportingCache.prototype, "cacheStore", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
Inject,
|
|
51
|
+
__metadata("design:type", ReportDbContext)
|
|
52
|
+
], ReportingCache.prototype, "db", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
Inject,
|
|
55
|
+
__metadata("design:type", WebSiteContentService)
|
|
56
|
+
], ReportingCache.prototype, "wcs", void 0);
|
|
57
|
+
ReportingCache = __decorate([
|
|
58
|
+
RegisterScoped
|
|
59
|
+
], ReportingCache);
|
|
60
|
+
export default ReportingCache;
|
|
61
|
+
//# sourceMappingURL=ReportingCache.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReportingCache.js","sourceRoot":"","sources":["../../../src/reports/services/ReportingCache.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,MAAM,EAAE,EAAE,cAAc,EAAE,iBAAiB,EAAiB,MAAM,4CAA4C,CAAC;AACtH,OAAO,EAA6B,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClF,OAAO,eAAe,MAAM,6BAA6B,CAAC;AAC1D,OAAO,qBAAqB,MAAM,sDAAsD,CAAC;AACzF,OAAO,aAAa,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGtD,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAAzB;QAEI,UAAK,GAAG,IAAI,WAAW,EAAE,CAAC;QAE1B,cAAS,GAAG,IAAI,aAAa,CAAC;YAC1B,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,iBAAiB,CAAC;YAC/C,cAAc,EAAE,CAAC,GAAC,EAAE,GAAC,EAAE,GAAC,EAAE;SAC7B,CAAC,CAAC;IAEP,CAAC;CAAA,CAAA;AATK,mBAAmB;IADxB,iBAAiB;GACZ,mBAAmB,CASxB;AAGc,IAAM,cAAc,GAApB,MAAM,cAAc;IAa/B,KAAK,CAAC,cAAc,CAAC,IAAY;QAC7B,OAAO,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,oBAAoB,CAAC,kBAAkB,IAAI,EAAE,EAAE,KAAK,IAAG,EAAE;YACtF,MAAM,EAAE,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;YAEzD,MAAM,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC;YAExB,MAAM,EAAE,MAAM,EAAE,eAAe,EAAE,GAAG,MAAM,IAAI,CAAC,EAAE,CAAC,WAAW,CAAC,UAAU,CAAC,cAAc,CAAC;gBACpF,MAAM,EAAE,QAAQ;aACnB,CAAC,CAAC;YAEH,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,CAAC;QACvC,CAAC,CAAC,CAAC;IACP,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,SAAS;QACtB,OAAO,IAAI,CAAC,UAAU;aACjB,SAAS,CAAC,oBAAoB,CAAC,cAAc,SAAS,EAAE,EAAE,GAAG,EAAE,CAC5D,IAAI,CAAC,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,CAC5D,CAAC;IACN,CAAC;CAEJ,CAAA;AA9BW;IADP,MAAM;8BACa,mBAAmB;kDAAC;AAGhC;IADP,MAAM;8BACK,eAAe;0CAAC;AAGpB;IADP,MAAM;8BACM,qBAAqB;2CAAC;AAVlB,cAAc;IADlC,cAAc;GACM,cAAc,CAkClC;eAlCoB,cAAc"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import WorkflowContext from "@entity-access/entity-access/dist/workflows/WorkflowContext.js";
|
|
2
|
+
import WorkflowStorage from "@entity-access/entity-access/dist/workflows/WorkflowStorage.js";
|
|
3
|
+
export default class ReportWorkflowContext extends WorkflowContext {
|
|
4
|
+
constructor(storage: WorkflowStorage);
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=ReportWorkflowContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReportWorkflowContext.d.ts","sourceRoot":"","sources":["../../../src/reports/workflows/ReportWorkflowContext.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,gEAAgE,CAAC;AAC7F,OAAO,eAAe,MAAM,gEAAgE,CAAC;AAU7F,MAAM,CAAC,OAAO,OAAO,qBAAsB,SAAQ,eAAe;gBAElD,OAAO,EAAE,eAAe;CAMvC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import WorkflowContext from "@entity-access/entity-access/dist/workflows/WorkflowContext.js";
|
|
2
|
+
import WorkflowStorage from "@entity-access/entity-access/dist/workflows/WorkflowStorage.js";
|
|
3
|
+
import { ReportingDriver } from "../model/ReportDbContext.js";
|
|
4
|
+
import VisitorAddedWorkflow from "./visitor-added/VisitorAddedWorkflow.js";
|
|
5
|
+
class ReportingWorkflowStorage extends WorkflowStorage {
|
|
6
|
+
constructor(clock) {
|
|
7
|
+
super(ReportingDriver, clock);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export default class ReportWorkflowContext extends WorkflowContext {
|
|
11
|
+
constructor(storage) {
|
|
12
|
+
super(new ReportingWorkflowStorage(storage.clock));
|
|
13
|
+
this.register(VisitorAddedWorkflow);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=ReportWorkflowContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReportWorkflowContext.js","sourceRoot":"","sources":["../../../src/reports/workflows/ReportWorkflowContext.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,gEAAgE,CAAC;AAC7F,OAAO,eAAe,MAAM,gEAAgE,CAAC;AAC7F,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,oBAAoB,MAAM,yCAAyC,CAAC;AAE3E,MAAM,wBAAyB,SAAQ,eAAe;IAClD,YAAY,KAAK;QACb,KAAK,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC;IAClC,CAAC;CACJ;AAED,MAAM,CAAC,OAAO,OAAO,qBAAsB,SAAQ,eAAe;IAE9D,YAAY,OAAwB;QAChC,KAAK,CAAC,IAAI,wBAAwB,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;QAEnD,IAAI,CAAC,QAAQ,CAAC,oBAAoB,CAAC,CAAC;IACxC,CAAC;CAEJ"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import Workflow from "@entity-access/entity-access/dist/workflows/Workflow.js";
|
|
2
|
+
import ReportDbContext from "../../model/ReportDbContext.js";
|
|
3
|
+
export interface IActivityInfo {
|
|
4
|
+
p: any;
|
|
5
|
+
u: any;
|
|
6
|
+
q: any;
|
|
7
|
+
x: any;
|
|
8
|
+
y: any;
|
|
9
|
+
}
|
|
10
|
+
export default class AddActivityWorkflow extends Workflow<{
|
|
11
|
+
activity: IActivityInfo;
|
|
12
|
+
event: any;
|
|
13
|
+
visitorID: any;
|
|
14
|
+
visitID: any;
|
|
15
|
+
siteID: any;
|
|
16
|
+
timeZoneSeconds: any;
|
|
17
|
+
time: any;
|
|
18
|
+
}> {
|
|
19
|
+
run(): Promise<void>;
|
|
20
|
+
insertActivity(db?: ReportDbContext): Promise<void>;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=AddActivityWorkflow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AddActivityWorkflow.d.ts","sourceRoot":"","sources":["../../../../src/reports/workflows/activities/AddActivityWorkflow.ts"],"names":[],"mappings":"AACA,OAAO,QAA4B,MAAM,yDAAyD,CAAC;AACnG,OAAO,eAAe,MAAM,gCAAgC,CAAC;AAO7D,MAAM,WAAW,aAAa;IAC1B,CAAC,EAAE,GAAG,CAAC;IACP,CAAC,EAAE,GAAG,CAAC;IACP,CAAC,EAAE,GAAG,CAAC;IACP,CAAC,EAAE,GAAG,CAAC;IACP,CAAC,EAAE,GAAG,CAAC;CACV;AAED,MAAM,CAAC,OAAO,OAAO,mBAAoB,SAAQ,QAAQ,CAAC;IACtD,QAAQ,EAAE,aAAa,CAAC;IACxB,KAAK,MAAC;IACN,SAAS,MAAC;IACV,OAAO,MAAC;IACR,MAAM,MAAC;IACP,eAAe,MAAC;IAChB,IAAI,MAAA;CACP,CAAC;IAEQ,GAAG;IAKH,cAAc,CACR,EAAE,CAAC,EAAE,eAAe;CAgHnC"}
|