podverse-orm 5.0.3 → 5.1.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +661 -0
- package/README.md +37 -0
- package/dist/config/index.d.ts +4 -2
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +4 -2
- package/dist/db/index.d.ts +5 -1
- package/dist/db/index.d.ts.map +1 -1
- package/dist/db/index.js +50 -41
- package/dist/entities/account/account.d.ts +32 -0
- package/dist/entities/account/account.d.ts.map +1 -1
- package/dist/entities/account/account.js +80 -0
- package/dist/entities/account/accountAdminRoles.js +1 -1
- package/dist/entities/account/accountAppStorePurchase.d.ts +2 -2
- package/dist/entities/account/accountAppStorePurchase.d.ts.map +1 -1
- package/dist/entities/account/accountAppStorePurchase.js +9 -9
- package/dist/entities/account/accountCredentials.d.ts +1 -0
- package/dist/entities/account/accountCredentials.d.ts.map +1 -1
- package/dist/entities/account/accountCredentials.js +8 -3
- package/dist/entities/account/accountEmailChangeVerification.d.ts +10 -0
- package/dist/entities/account/accountEmailChangeVerification.d.ts.map +1 -0
- package/dist/entities/account/accountEmailChangeVerification.js +46 -0
- package/dist/entities/account/accountFCMDevice.d.ts +1 -0
- package/dist/entities/account/accountFCMDevice.d.ts.map +1 -1
- package/dist/entities/account/accountFCMDevice.js +6 -1
- package/dist/entities/account/accountFollowingAddByRSSChannel.d.ts +1 -1
- package/dist/entities/account/accountFollowingAddByRSSChannel.d.ts.map +1 -1
- package/dist/entities/account/accountFollowingAddByRSSChannel.js +14 -13
- package/dist/entities/account/accountGooglePlayPurchase.d.ts +2 -2
- package/dist/entities/account/accountGooglePlayPurchase.d.ts.map +1 -1
- package/dist/entities/account/accountGooglePlayPurchase.js +9 -9
- package/dist/entities/account/accountMembership.d.ts +2 -0
- package/dist/entities/account/accountMembership.d.ts.map +1 -1
- package/dist/entities/account/accountMembership.js +5 -0
- package/dist/entities/account/accountMembershipStatus.js +1 -1
- package/dist/entities/account/{accountNotification.d.ts → accountNotificationChannel.d.ts} +2 -2
- package/dist/entities/account/accountNotificationChannel.d.ts.map +1 -0
- package/dist/entities/account/{accountNotification.js → accountNotificationChannel.js} +9 -9
- package/dist/entities/account/accountPayPalOrder.d.ts +1 -1
- package/dist/entities/account/accountPayPalOrder.js +9 -9
- package/dist/entities/account/accountProfile.d.ts.map +1 -1
- package/dist/entities/account/accountProfile.js +4 -3
- package/dist/entities/account/accountResetPassword.d.ts.map +1 -1
- package/dist/entities/account/accountResetPassword.js +3 -2
- package/dist/entities/account/accountUPDevice.d.ts.map +1 -1
- package/dist/entities/account/accountUPDevice.js +4 -3
- package/dist/entities/account/accountVerification.d.ts.map +1 -1
- package/dist/entities/account/accountVerification.js +3 -2
- package/dist/entities/category.d.ts +2 -1
- package/dist/entities/category.d.ts.map +1 -1
- package/dist/entities/category.js +13 -6
- package/dist/entities/channel/channel.d.ts +40 -3
- package/dist/entities/channel/channel.d.ts.map +1 -1
- package/dist/entities/channel/channel.js +99 -7
- package/dist/entities/channel/channelAbout.d.ts +3 -2
- package/dist/entities/channel/channelAbout.d.ts.map +1 -1
- package/dist/entities/channel/channelAbout.js +10 -4
- package/dist/entities/channel/channelCategory.d.ts +3 -1
- package/dist/entities/channel/channelCategory.d.ts.map +1 -1
- package/dist/entities/channel/channelCategory.js +10 -5
- package/dist/entities/channel/channelChat.d.ts.map +1 -1
- package/dist/entities/channel/channelChat.js +6 -5
- package/dist/entities/channel/channelDescription.d.ts.map +1 -1
- package/dist/entities/channel/channelDescription.js +3 -2
- package/dist/entities/channel/channelFunding.d.ts.map +1 -1
- package/dist/entities/channel/channelFunding.js +3 -2
- package/dist/entities/channel/channelImage.d.ts.map +1 -1
- package/dist/entities/channel/channelImage.js +2 -1
- package/dist/entities/channel/channelLicense.d.ts.map +1 -1
- package/dist/entities/channel/channelLicense.js +4 -3
- package/dist/entities/channel/channelLocation.d.ts.map +1 -1
- package/dist/entities/channel/channelLocation.js +5 -4
- package/dist/entities/channel/channelPerson.d.ts.map +1 -1
- package/dist/entities/channel/channelPerson.js +6 -5
- package/dist/entities/channel/channelPodroll.d.ts +2 -0
- package/dist/entities/channel/channelPodroll.d.ts.map +1 -1
- package/dist/entities/channel/channelPodroll.js +6 -1
- package/dist/entities/channel/channelPodrollRemoteItem.d.ts.map +1 -1
- package/dist/entities/channel/channelPodrollRemoteItem.js +4 -3
- package/dist/entities/channel/channelPublisher.d.ts +2 -0
- package/dist/entities/channel/channelPublisher.d.ts.map +1 -1
- package/dist/entities/channel/channelPublisher.js +6 -1
- package/dist/entities/channel/channelPublisherRemoteItem.d.ts.map +1 -1
- package/dist/entities/channel/channelPublisherRemoteItem.js +5 -4
- package/dist/entities/channel/channelRemoteItem.d.ts.map +1 -1
- package/dist/entities/channel/channelRemoteItem.js +4 -3
- package/dist/entities/channel/channelSeason.d.ts.map +1 -1
- package/dist/entities/channel/channelSeason.js +2 -1
- package/dist/entities/channel/channelSocialInteract.d.ts.map +1 -1
- package/dist/entities/channel/channelSocialInteract.js +5 -4
- package/dist/entities/channel/channelTrailer.d.ts +1 -1
- package/dist/entities/channel/channelTrailer.d.ts.map +1 -1
- package/dist/entities/channel/channelTrailer.js +6 -5
- package/dist/entities/channel/channelTxt.d.ts.map +1 -1
- package/dist/entities/channel/channelTxt.js +3 -2
- package/dist/entities/channel/channelValue.d.ts +2 -0
- package/dist/entities/channel/channelValue.d.ts.map +1 -1
- package/dist/entities/channel/channelValue.js +8 -2
- package/dist/entities/channel/channelValueRecipient.d.ts.map +1 -1
- package/dist/entities/channel/channelValueRecipient.js +6 -5
- package/dist/entities/clip.d.ts +2 -2
- package/dist/entities/clip.d.ts.map +1 -1
- package/dist/entities/clip.js +5 -4
- package/dist/entities/feed/feed.d.ts +2 -0
- package/dist/entities/feed/feed.d.ts.map +1 -1
- package/dist/entities/feed/feed.js +12 -3
- package/dist/entities/feed/feedFlagStatus.d.ts +6 -6
- package/dist/entities/feed/feedFlagStatus.d.ts.map +1 -1
- package/dist/entities/feed/feedFlagStatus.js +8 -14
- package/dist/entities/feed/feedLog.d.ts.map +1 -1
- package/dist/entities/feed/feedLog.js +2 -1
- package/dist/entities/item/item.d.ts +41 -6
- package/dist/entities/item/item.d.ts.map +1 -1
- package/dist/entities/item/item.js +112 -16
- package/dist/entities/item/itemAbout.d.ts +2 -2
- package/dist/entities/item/itemAbout.d.ts.map +1 -1
- package/dist/entities/item/itemAbout.js +3 -2
- package/dist/entities/item/itemChapter.d.ts.map +1 -1
- package/dist/entities/item/itemChapter.js +4 -3
- package/dist/entities/item/itemChapterLocation.d.ts.map +1 -1
- package/dist/entities/item/itemChapterLocation.js +5 -4
- package/dist/entities/item/itemChaptersFeed.d.ts +2 -0
- package/dist/entities/item/itemChaptersFeed.d.ts.map +1 -1
- package/dist/entities/item/itemChaptersFeed.js +9 -3
- package/dist/entities/item/itemChaptersFeedLog.d.ts.map +1 -1
- package/dist/entities/item/itemChaptersFeedLog.js +2 -1
- package/dist/entities/item/itemChat.d.ts.map +1 -1
- package/dist/entities/item/itemChat.js +6 -5
- package/dist/entities/item/itemContentLink.d.ts.map +1 -1
- package/dist/entities/item/itemContentLink.js +3 -2
- package/dist/entities/item/itemDescription.d.ts.map +1 -1
- package/dist/entities/item/itemDescription.js +3 -2
- package/dist/entities/item/itemEnclosure.d.ts +4 -0
- package/dist/entities/item/itemEnclosure.d.ts.map +1 -1
- package/dist/entities/item/itemEnclosure.js +16 -5
- package/dist/entities/item/itemEnclosureIntegrity.d.ts.map +1 -1
- package/dist/entities/item/itemEnclosureIntegrity.js +3 -2
- package/dist/entities/item/itemEnclosureSource.d.ts.map +1 -1
- package/dist/entities/item/itemEnclosureSource.js +3 -2
- package/dist/entities/item/itemFlagStatus.d.ts +13 -0
- package/dist/entities/item/itemFlagStatus.d.ts.map +1 -0
- package/dist/entities/item/itemFlagStatus.js +44 -0
- package/dist/entities/item/itemFunding.d.ts.map +1 -1
- package/dist/entities/item/itemFunding.js +3 -2
- package/dist/entities/item/itemImage.d.ts.map +1 -1
- package/dist/entities/item/itemImage.js +2 -1
- package/dist/entities/item/itemLicense.d.ts.map +1 -1
- package/dist/entities/item/itemLicense.js +4 -3
- package/dist/entities/item/itemLocation.d.ts.map +1 -1
- package/dist/entities/item/itemLocation.js +5 -4
- package/dist/entities/item/itemPerson.d.ts.map +1 -1
- package/dist/entities/item/itemPerson.js +6 -5
- package/dist/entities/item/itemSeason.d.ts.map +1 -1
- package/dist/entities/item/itemSeason.js +3 -2
- package/dist/entities/item/itemSeasonEpisode.d.ts.map +1 -1
- package/dist/entities/item/itemSeasonEpisode.js +3 -2
- package/dist/entities/item/itemSocialInteract.d.ts.map +1 -1
- package/dist/entities/item/itemSocialInteract.js +5 -4
- package/dist/entities/item/itemSoundbite.d.ts.map +1 -1
- package/dist/entities/item/itemSoundbite.js +2 -1
- package/dist/entities/item/itemTranscript.d.ts.map +1 -1
- package/dist/entities/item/itemTranscript.js +5 -4
- package/dist/entities/item/itemTxt.d.ts.map +1 -1
- package/dist/entities/item/itemTxt.js +3 -2
- package/dist/entities/item/itemValue.d.ts +4 -0
- package/dist/entities/item/itemValue.d.ts.map +1 -1
- package/dist/entities/item/itemValue.js +13 -2
- package/dist/entities/item/itemValueRecipient.d.ts.map +1 -1
- package/dist/entities/item/itemValueRecipient.js +6 -5
- package/dist/entities/item/itemValueTimeSplit.d.ts +4 -0
- package/dist/entities/item/itemValueTimeSplit.d.ts.map +1 -1
- package/dist/entities/item/itemValueTimeSplit.js +10 -0
- package/dist/entities/item/itemValueTimeSplitRecipient.d.ts.map +1 -1
- package/dist/entities/item/itemValueTimeSplitRecipient.js +6 -5
- package/dist/entities/item/itemValueTimeSplitRemoteItem.d.ts.map +1 -1
- package/dist/entities/item/itemValueTimeSplitRemoteItem.js +5 -4
- package/dist/entities/medium.d.ts +1 -22
- package/dist/entities/medium.d.ts.map +1 -1
- package/dist/entities/medium.js +3 -50
- package/dist/entities/membershipClaimToken.d.ts +3 -3
- package/dist/entities/membershipClaimToken.d.ts.map +1 -1
- package/dist/entities/membershipClaimToken.js +3 -2
- package/dist/entities/playlist/playlist.d.ts +3 -5
- package/dist/entities/playlist/playlist.d.ts.map +1 -1
- package/dist/entities/playlist/playlist.js +7 -9
- package/dist/entities/playlist/playlistResource.d.ts +21 -0
- package/dist/entities/playlist/playlistResource.d.ts.map +1 -0
- package/dist/entities/playlist/playlistResource.js +82 -0
- package/dist/entities/queue/queue.d.ts +4 -2
- package/dist/entities/queue/queue.d.ts.map +1 -1
- package/dist/entities/queue/queue.js +16 -1
- package/dist/entities/queue/queueResource.d.ts +24 -0
- package/dist/entities/queue/queueResource.d.ts.map +1 -0
- package/dist/entities/queue/queueResource.js +93 -0
- package/dist/entities/stats/statsAggregatedAccount.d.ts +24 -0
- package/dist/entities/stats/statsAggregatedAccount.d.ts.map +1 -0
- package/dist/entities/stats/statsAggregatedAccount.js +101 -0
- package/dist/entities/stats/statsAggregatedChannel.d.ts +24 -0
- package/dist/entities/stats/statsAggregatedChannel.d.ts.map +1 -0
- package/dist/entities/stats/statsAggregatedChannel.js +101 -0
- package/dist/entities/stats/statsAggregatedClip.d.ts +24 -0
- package/dist/entities/stats/statsAggregatedClip.d.ts.map +1 -0
- package/dist/entities/stats/statsAggregatedClip.js +101 -0
- package/dist/entities/stats/statsAggregatedItem.d.ts +24 -0
- package/dist/entities/stats/statsAggregatedItem.d.ts.map +1 -0
- package/dist/entities/stats/statsAggregatedItem.js +101 -0
- package/dist/entities/stats/statsAggregatedPlaylist.d.ts +24 -0
- package/dist/entities/stats/statsAggregatedPlaylist.d.ts.map +1 -0
- package/dist/entities/stats/statsAggregatedPlaylist.js +101 -0
- package/dist/entities/stats/statsTrackAccountGuid.d.ts +8 -0
- package/dist/entities/stats/statsTrackAccountGuid.d.ts.map +1 -0
- package/dist/entities/{playlist/playlistResourceBase.js → stats/statsTrackAccountGuid.js} +19 -16
- package/dist/entities/stats/statsTrackEventAccount.d.ts +10 -0
- package/dist/entities/stats/statsTrackEventAccount.d.ts.map +1 -0
- package/dist/entities/stats/statsTrackEventAccount.js +43 -0
- package/dist/entities/stats/statsTrackEventChannel.d.ts +10 -0
- package/dist/entities/stats/statsTrackEventChannel.d.ts.map +1 -0
- package/dist/entities/stats/statsTrackEventChannel.js +43 -0
- package/dist/entities/stats/statsTrackEventClip.d.ts +10 -0
- package/dist/entities/stats/statsTrackEventClip.d.ts.map +1 -0
- package/dist/entities/stats/statsTrackEventClip.js +43 -0
- package/dist/entities/stats/statsTrackEventItem.d.ts +10 -0
- package/dist/entities/stats/statsTrackEventItem.d.ts.map +1 -0
- package/dist/entities/stats/statsTrackEventItem.js +43 -0
- package/dist/entities/stats/statsTrackEventPlaylist.d.ts +10 -0
- package/dist/entities/stats/statsTrackEventPlaylist.d.ts.map +1 -0
- package/dist/entities/stats/statsTrackEventPlaylist.js +43 -0
- package/dist/index.d.ts +39 -13
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +39 -13
- package/dist/services/account/account.d.ts +28 -0
- package/dist/services/account/account.d.ts.map +1 -0
- package/dist/services/account/account.js +159 -0
- package/dist/services/account/accountCredentials.d.ts +14 -0
- package/dist/services/account/accountCredentials.d.ts.map +1 -0
- package/dist/services/account/accountCredentials.js +33 -0
- package/dist/services/account/accountEmailChangeVerification.d.ts +17 -0
- package/dist/services/account/accountEmailChangeVerification.d.ts.map +1 -0
- package/dist/services/account/accountEmailChangeVerification.js +50 -0
- package/dist/services/account/accountFCMDevice.d.ts +12 -0
- package/dist/services/account/accountFCMDevice.d.ts.map +1 -0
- package/dist/services/account/accountFCMDevice.js +70 -0
- package/dist/services/account/accountFollowingAccount.d.ts +15 -0
- package/dist/services/account/accountFollowingAccount.d.ts.map +1 -0
- package/dist/services/account/accountFollowingAccount.js +80 -0
- package/dist/services/account/accountFollowingAddByRSSChannel.d.ts +16 -0
- package/dist/services/account/accountFollowingAddByRSSChannel.d.ts.map +1 -0
- package/dist/services/account/accountFollowingAddByRSSChannel.js +49 -0
- package/dist/services/account/accountFollowingChannel.d.ts +12 -0
- package/dist/services/account/accountFollowingChannel.d.ts.map +1 -0
- package/dist/services/account/accountFollowingChannel.js +60 -0
- package/dist/services/account/accountFollowingPlaylist.d.ts +13 -0
- package/dist/services/account/accountFollowingPlaylist.d.ts.map +1 -0
- package/dist/services/account/accountFollowingPlaylist.js +74 -0
- package/dist/services/account/accountMembership.d.ts +6 -0
- package/dist/services/account/accountMembership.d.ts.map +1 -0
- package/dist/services/account/accountMembership.js +11 -0
- package/dist/services/account/accountMembershipStatus.d.ts +14 -0
- package/dist/services/account/accountMembershipStatus.d.ts.map +1 -0
- package/dist/services/account/accountMembershipStatus.js +38 -0
- package/dist/services/account/accountNotificationChannel.d.ts +14 -0
- package/dist/services/account/accountNotificationChannel.d.ts.map +1 -0
- package/dist/services/account/accountNotificationChannel.js +82 -0
- package/dist/services/account/accountPayPalOrder.d.ts +12 -0
- package/dist/services/account/accountPayPalOrder.d.ts.map +1 -0
- package/dist/services/account/accountPayPalOrder.js +78 -0
- package/dist/services/account/accountProfile.d.ts +13 -0
- package/dist/services/account/accountProfile.d.ts.map +1 -0
- package/dist/services/account/accountProfile.js +32 -0
- package/dist/services/account/accountResetPassword.d.ts +16 -0
- package/dist/services/account/accountResetPassword.d.ts.map +1 -0
- package/dist/services/account/accountResetPassword.js +49 -0
- package/dist/services/account/accountVerification.d.ts +16 -0
- package/dist/services/account/accountVerification.d.ts.map +1 -0
- package/dist/services/account/accountVerification.js +49 -0
- package/dist/services/archiver.d.ts +17 -0
- package/dist/services/archiver.d.ts.map +1 -0
- package/dist/services/archiver.js +131 -0
- package/dist/services/base/baseGetOnlyService.d.ts +14 -0
- package/dist/services/base/baseGetOnlyService.d.ts.map +1 -0
- package/dist/services/base/baseGetOnlyService.js +30 -0
- package/dist/services/base/baseManyService.d.ts +5 -2
- package/dist/services/base/baseManyService.d.ts.map +1 -1
- package/dist/services/base/baseManyService.js +21 -9
- package/dist/services/base/baseOneService.d.ts +2 -1
- package/dist/services/base/baseOneService.d.ts.map +1 -1
- package/dist/services/base/baseOneService.js +7 -6
- package/dist/services/base/baseRemoteItemsService.js +4 -4
- package/dist/services/category.d.ts +7 -0
- package/dist/services/category.d.ts.map +1 -0
- package/dist/services/category.js +73 -0
- package/dist/services/channel/channel.d.ts +14 -9
- package/dist/services/channel/channel.d.ts.map +1 -1
- package/dist/services/channel/channel.js +161 -10
- package/dist/services/channel/channelCategory.d.ts +15 -0
- package/dist/services/channel/channelCategory.d.ts.map +1 -0
- package/dist/services/channel/channelCategory.js +45 -0
- package/dist/services/channel/channelPodroll.d.ts +1 -0
- package/dist/services/channel/channelPodroll.d.ts.map +1 -1
- package/dist/services/channel/channelPodroll.js +8 -0
- package/dist/services/channel/channelPodrollRemoteItem.d.ts +4 -8
- package/dist/services/channel/channelPodrollRemoteItem.d.ts.map +1 -1
- package/dist/services/channel/channelPodrollRemoteItem.js +8 -0
- package/dist/services/channel/channelPublisher.d.ts +4 -1
- package/dist/services/channel/channelPublisher.d.ts.map +1 -1
- package/dist/services/channel/channelPublisher.js +18 -2
- package/dist/services/channel/channelPublisherRemoteItem.d.ts +6 -9
- package/dist/services/channel/channelPublisherRemoteItem.d.ts.map +1 -1
- package/dist/services/channel/channelPublisherRemoteItem.js +10 -2
- package/dist/services/channel/channelRemoteItem.d.ts +4 -8
- package/dist/services/channel/channelRemoteItem.d.ts.map +1 -1
- package/dist/services/channel/channelRemoteItem.js +8 -0
- package/dist/services/channel/channelSeason.js +1 -1
- package/dist/services/channel/channelTrailer.d.ts +1 -1
- package/dist/services/channel/channelTrailer.d.ts.map +1 -1
- package/dist/services/clip.d.ts +25 -0
- package/dist/services/clip.d.ts.map +1 -0
- package/dist/services/clip.js +109 -0
- package/dist/services/feed/feed.d.ts +5 -2
- package/dist/services/feed/feed.d.ts.map +1 -1
- package/dist/services/feed/feed.js +47 -15
- package/dist/services/feed/feedFlagStatus.d.ts +4 -2
- package/dist/services/feed/feedFlagStatus.d.ts.map +1 -1
- package/dist/services/feed/feedFlagStatus.js +18 -3
- package/dist/services/item/item.d.ts +21 -10
- package/dist/services/item/item.d.ts.map +1 -1
- package/dist/services/item/item.js +275 -18
- package/dist/services/item/itemChapter.d.ts +3 -2
- package/dist/services/item/itemChapter.d.ts.map +1 -1
- package/dist/services/item/itemChapter.js +9 -3
- package/dist/services/item/itemFlagStatus.d.ts +6 -0
- package/dist/services/item/itemFlagStatus.d.ts.map +1 -0
- package/dist/services/item/itemFlagStatus.js +27 -0
- package/dist/services/item/itemSoundbite.d.ts +2 -2
- package/dist/services/item/itemSoundbite.d.ts.map +1 -1
- package/dist/services/item/itemSoundbite.js +3 -2
- package/dist/services/item/itemValueTimeSplitRemoteItem.d.ts +2 -7
- package/dist/services/item/itemValueTimeSplitRemoteItem.d.ts.map +1 -1
- package/dist/services/liveItem/liveItem.d.ts +4 -1
- package/dist/services/liveItem/liveItem.d.ts.map +1 -1
- package/dist/services/liveItem/liveItem.js +6 -1
- package/dist/services/medium.d.ts +2 -2
- package/dist/services/medium.d.ts.map +1 -1
- package/dist/services/medium.js +3 -3
- package/dist/services/membershipClaimToken.d.ts +17 -0
- package/dist/services/membershipClaimToken.d.ts.map +1 -0
- package/dist/services/membershipClaimToken.js +71 -0
- package/dist/services/playlist/playlist.d.ts +22 -0
- package/dist/services/playlist/playlist.d.ts.map +1 -0
- package/dist/services/playlist/playlist.js +74 -0
- package/dist/services/playlist/playlistResource.d.ts +51 -0
- package/dist/services/playlist/playlistResource.d.ts.map +1 -0
- package/dist/services/playlist/playlistResource.js +300 -0
- package/dist/services/queue/queue.d.ts +16 -0
- package/dist/services/queue/queue.d.ts.map +1 -0
- package/dist/services/queue/queue.js +57 -0
- package/dist/services/queue/queueResource.d.ts +65 -0
- package/dist/services/queue/queueResource.d.ts.map +1 -0
- package/dist/services/queue/queueResource.js +426 -0
- package/dist/services/stats/baseStatsAggregated.d.ts +35 -0
- package/dist/services/stats/baseStatsAggregated.d.ts.map +1 -0
- package/dist/services/stats/baseStatsAggregated.js +100 -0
- package/dist/services/stats/baseStatsTrackEvent.d.ts +18 -0
- package/dist/services/stats/baseStatsTrackEvent.d.ts.map +1 -0
- package/dist/services/stats/baseStatsTrackEvent.js +97 -0
- package/dist/services/stats/statsAggregatedAccount.d.ts +10 -0
- package/dist/services/stats/statsAggregatedAccount.d.ts.map +1 -0
- package/dist/services/stats/statsAggregatedAccount.js +36 -0
- package/dist/services/stats/statsAggregatedChannel.d.ts +10 -0
- package/dist/services/stats/statsAggregatedChannel.d.ts.map +1 -0
- package/dist/services/stats/statsAggregatedChannel.js +36 -0
- package/dist/services/stats/statsAggregatedClip.d.ts +10 -0
- package/dist/services/stats/statsAggregatedClip.d.ts.map +1 -0
- package/dist/services/stats/statsAggregatedClip.js +36 -0
- package/dist/services/stats/statsAggregatedItem.d.ts +10 -0
- package/dist/services/stats/statsAggregatedItem.d.ts.map +1 -0
- package/dist/services/stats/statsAggregatedItem.js +36 -0
- package/dist/services/stats/statsAggregatedPlaylist.d.ts +10 -0
- package/dist/services/stats/statsAggregatedPlaylist.d.ts.map +1 -0
- package/dist/services/stats/statsAggregatedPlaylist.js +36 -0
- package/dist/services/stats/statsTrackAccountGuid.d.ts +11 -0
- package/dist/services/stats/statsTrackAccountGuid.d.ts.map +1 -0
- package/dist/services/stats/statsTrackAccountGuid.js +56 -0
- package/dist/services/stats/statsTrackEventAccount.d.ts +13 -0
- package/dist/services/stats/statsTrackEventAccount.d.ts.map +1 -0
- package/dist/services/stats/statsTrackEventAccount.js +31 -0
- package/dist/services/stats/statsTrackEventChannel.d.ts +13 -0
- package/dist/services/stats/statsTrackEventChannel.d.ts.map +1 -0
- package/dist/services/stats/statsTrackEventChannel.js +31 -0
- package/dist/services/stats/statsTrackEventClip.d.ts +13 -0
- package/dist/services/stats/statsTrackEventClip.d.ts.map +1 -0
- package/dist/services/stats/statsTrackEventClip.js +31 -0
- package/dist/services/stats/statsTrackEventItem.d.ts +13 -0
- package/dist/services/stats/statsTrackEventItem.d.ts.map +1 -0
- package/dist/services/stats/statsTrackEventItem.js +31 -0
- package/dist/services/stats/statsTrackEventPlaylist.d.ts +13 -0
- package/dist/services/stats/statsTrackEventPlaylist.d.ts.map +1 -0
- package/dist/services/stats/statsTrackEventPlaylist.js +31 -0
- package/package.json +5 -5
- package/dist/entities/account/accountNotification.d.ts.map +0 -1
- package/dist/entities/playlist/playlistResourceBase.d.ts +0 -7
- package/dist/entities/playlist/playlistResourceBase.d.ts.map +0 -1
- package/dist/entities/playlist/playlistResourceClip.d.ts +0 -6
- package/dist/entities/playlist/playlistResourceClip.d.ts.map +0 -1
- package/dist/entities/playlist/playlistResourceClip.js +0 -26
- package/dist/entities/playlist/playlistResourceItem.d.ts +0 -6
- package/dist/entities/playlist/playlistResourceItem.d.ts.map +0 -1
- package/dist/entities/playlist/playlistResourceItem.js +0 -26
- package/dist/entities/playlist/playlistResourceItemAddByRSS.d.ts +0 -5
- package/dist/entities/playlist/playlistResourceItemAddByRSS.d.ts.map +0 -1
- package/dist/entities/playlist/playlistResourceItemAddByRSS.js +0 -24
- package/dist/entities/playlist/playlistResourceItemChapter.d.ts +0 -6
- package/dist/entities/playlist/playlistResourceItemChapter.d.ts.map +0 -1
- package/dist/entities/playlist/playlistResourceItemChapter.js +0 -26
- package/dist/entities/playlist/playlistResourceItemSoundbite.d.ts +0 -6
- package/dist/entities/playlist/playlistResourceItemSoundbite.d.ts.map +0 -1
- package/dist/entities/playlist/playlistResourceItemSoundbite.js +0 -26
- package/dist/entities/queue/queueResourceBase.d.ts +0 -10
- package/dist/entities/queue/queueResourceBase.d.ts.map +0 -1
- package/dist/entities/queue/queueResourceBase.js +0 -45
- package/dist/entities/queue/queueResourceClip.d.ts +0 -6
- package/dist/entities/queue/queueResourceClip.d.ts.map +0 -1
- package/dist/entities/queue/queueResourceClip.js +0 -27
- package/dist/entities/queue/queueResourceItem.d.ts +0 -6
- package/dist/entities/queue/queueResourceItem.d.ts.map +0 -1
- package/dist/entities/queue/queueResourceItem.js +0 -27
- package/dist/entities/queue/queueResourceItemAddByRSS.d.ts +0 -5
- package/dist/entities/queue/queueResourceItemAddByRSS.d.ts.map +0 -1
- package/dist/entities/queue/queueResourceItemAddByRSS.js +0 -25
- package/dist/entities/queue/queueResourceItemChapter.d.ts +0 -6
- package/dist/entities/queue/queueResourceItemChapter.d.ts.map +0 -1
- package/dist/entities/queue/queueResourceItemChapter.js +0 -27
- package/dist/entities/queue/queueResourceItemSoundbite.d.ts +0 -6
- package/dist/entities/queue/queueResourceItemSoundbite.d.ts.map +0 -1
- package/dist/entities/queue/queueResourceItemSoundbite.js +0 -27
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { EntityManager } from 'typeorm';
|
|
2
|
+
import { StatsTrackAccountGuidService } from '@orm/services/stats/statsTrackAccountGuid';
|
|
3
|
+
export declare abstract class BaseStatsTrackEventService<T> {
|
|
4
|
+
protected abstract entity: new () => T;
|
|
5
|
+
protected abstract entityName: string;
|
|
6
|
+
protected abstract entityIdField: string;
|
|
7
|
+
protected abstract entityIdTextField: string;
|
|
8
|
+
protected statsTrackAccountGuidService: StatsTrackAccountGuidService;
|
|
9
|
+
protected readWriteEntityManager: EntityManager;
|
|
10
|
+
constructor();
|
|
11
|
+
protected abstract getEntityByIdText(id_text: string): Promise<any | null | undefined>;
|
|
12
|
+
_create(account_id: number, entity_id_text: string): Promise<void>;
|
|
13
|
+
_getCountWithinTimeFrame(entity_id: number, minutes: number): Promise<number>;
|
|
14
|
+
_getTopEntitiesByEventCount(limit: number): Promise<number[]>;
|
|
15
|
+
_delete(account_id: number, entity_id_text: string): Promise<void>;
|
|
16
|
+
_deleteOldEvents(minutes: number): Promise<void>;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=baseStatsTrackEvent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"baseStatsTrackEvent.d.ts","sourceRoot":"","sources":["../../../src/services/stats/baseStatsTrackEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAqB,MAAM,SAAS,CAAC;AAE3D,OAAO,EAAE,4BAA4B,EAAE,MAAM,2CAA2C,CAAC;AAEzF,8BAAsB,0BAA0B,CAAC,CAAC;IAChD,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACvC,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IACtC,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IACzC,SAAS,CAAC,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;IAC7C,SAAS,CAAC,4BAA4B,EAAE,4BAA4B,CAAC;IACrE,SAAS,CAAC,sBAAsB,EAAE,aAAa,CAAC;;IAShD,SAAS,CAAC,QAAQ,CAAC,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,GAAG,IAAI,GAAG,SAAS,CAAC;IAEhF,OAAO,CAAC,UAAU,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IA8BlE,wBAAwB,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAa7E,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAa7D,OAAO,CAAC,UAAU,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAuBlE,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAcvD"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.BaseStatsTrackEventService = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const db_1 = require("@orm/db");
|
|
15
|
+
const statsTrackAccountGuid_1 = require("@orm/services/stats/statsTrackAccountGuid");
|
|
16
|
+
class BaseStatsTrackEventService {
|
|
17
|
+
constructor() {
|
|
18
|
+
this.statsTrackAccountGuidService = new statsTrackAccountGuid_1.StatsTrackAccountGuidService();
|
|
19
|
+
this.readWriteEntityManager = db_1.AppDataSourceReadWrite.manager;
|
|
20
|
+
}
|
|
21
|
+
_create(account_id, entity_id_text) {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
const accountGuid = yield this.statsTrackAccountGuidService.getByAccountId(account_id);
|
|
24
|
+
if (!accountGuid) {
|
|
25
|
+
throw new Error("Account not found.");
|
|
26
|
+
}
|
|
27
|
+
const entity = yield this.getEntityByIdText(entity_id_text);
|
|
28
|
+
if (!entity) {
|
|
29
|
+
throw new Error(`${this.entityName} not found.`);
|
|
30
|
+
}
|
|
31
|
+
const existingEntity = yield this.readWriteEntityManager.query(`SELECT * FROM ${this.entityName} WHERE account_guid = $1 AND ${this.entityIdField} = $2`, [accountGuid.account_guid, entity.id]);
|
|
32
|
+
if (existingEntity.length > 0) {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
const newEntity = {
|
|
36
|
+
account_guid: accountGuid.account_guid,
|
|
37
|
+
[this.entityIdField]: entity.id,
|
|
38
|
+
created_at: new Date()
|
|
39
|
+
};
|
|
40
|
+
yield this.readWriteEntityManager.query(`INSERT INTO ${this.entityName} (account_guid, ${this.entityIdField}, created_at) VALUES ($1, $2, $3)`, [newEntity.account_guid, newEntity[this.entityIdField], newEntity.created_at]);
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
_getCountWithinTimeFrame(entity_id, minutes) {
|
|
44
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
45
|
+
const now = new Date();
|
|
46
|
+
const pastTime = new Date(now.getTime() - minutes * 60 * 1000);
|
|
47
|
+
const count = yield this.readWriteEntityManager.count(this.entity, {
|
|
48
|
+
where: {
|
|
49
|
+
[this.entityIdField]: entity_id,
|
|
50
|
+
created_at: (0, typeorm_1.Between)(pastTime, now)
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
return count;
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
_getTopEntitiesByEventCount(limit) {
|
|
57
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
+
const result = yield this.readWriteEntityManager.query(`SELECT ${this.entityIdField}, COUNT(*) as event_count
|
|
59
|
+
FROM ${this.entityName}
|
|
60
|
+
GROUP BY ${this.entityIdField}
|
|
61
|
+
ORDER BY event_count DESC
|
|
62
|
+
LIMIT $1`, [limit]);
|
|
63
|
+
return result.map((row) => row[this.entityIdField]);
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
_delete(account_id, entity_id_text) {
|
|
67
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
68
|
+
const accountGuid = yield this.statsTrackAccountGuidService.getByAccountId(account_id);
|
|
69
|
+
if (!accountGuid) {
|
|
70
|
+
throw new Error("Account not found.");
|
|
71
|
+
}
|
|
72
|
+
const entity = yield this.getEntityByIdText(entity_id_text);
|
|
73
|
+
if (!entity) {
|
|
74
|
+
throw new Error(`${this.entityName} not found.`);
|
|
75
|
+
}
|
|
76
|
+
const existingEntity = yield this.readWriteEntityManager.query(`SELECT * FROM ${this.entityName} WHERE account_guid = $1 AND ${this.entityIdField} = $2`, [accountGuid.account_guid, entity.id]);
|
|
77
|
+
if (existingEntity.length > 0) {
|
|
78
|
+
yield this.readWriteEntityManager.query(`DELETE FROM ${this.entityName} WHERE account_guid = $1 AND ${this.entityIdField} = $2`, [accountGuid.account_guid, entity.id]);
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
_deleteOldEvents(minutes) {
|
|
83
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
84
|
+
const now = new Date();
|
|
85
|
+
const pastTime = new Date(now.getTime() - minutes * 60 * 1000);
|
|
86
|
+
const oldEvents = yield this.readWriteEntityManager.find(this.entity, {
|
|
87
|
+
where: {
|
|
88
|
+
created_at: (0, typeorm_1.LessThan)(pastTime)
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
if (oldEvents.length > 0) {
|
|
92
|
+
yield this.readWriteEntityManager.remove(oldEvents);
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
exports.BaseStatsTrackEventService = BaseStatsTrackEventService;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { StatsAggregatedAccount } from '@orm/entities/stats/statsAggregatedAccount';
|
|
2
|
+
import { BaseStatsAggregatedService, UpdateHistoricalOptions } from './baseStatsAggregated';
|
|
3
|
+
export declare class StatsAggregatedAccountService extends BaseStatsAggregatedService<StatsAggregatedAccount, number> {
|
|
4
|
+
private statsTrackEventAccountService;
|
|
5
|
+
constructor();
|
|
6
|
+
protected getIdFieldName(): string;
|
|
7
|
+
updateAggregatedStats(account_id: number, updateAllTime?: boolean): Promise<void>;
|
|
8
|
+
updateAggregatedStatsRolling(account_id: number, updateHistoricalOptions: UpdateHistoricalOptions): Promise<void>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=statsAggregatedAccount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"statsAggregatedAccount.d.ts","sourceRoot":"","sources":["../../../src/services/stats/statsAggregatedAccount.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AAEpF,OAAO,EAAE,0BAA0B,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAE5F,qBAAa,6BAA8B,SAAQ,0BAA0B,CAAC,sBAAsB,EAAE,MAAM,CAAC;IAC3G,OAAO,CAAC,6BAA6B,CAAgC;;IAOrE,SAAS,CAAC,cAAc,IAAI,MAAM;IAI5B,qBAAqB,CAAC,UAAU,EAAE,MAAM,EAAE,aAAa,GAAE,OAAe,GAAG,OAAO,CAAC,IAAI,CAAC;IAIxF,4BAA4B,CAAC,UAAU,EAAE,MAAM,EAAE,uBAAuB,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC;CAGxH"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.StatsAggregatedAccountService = void 0;
|
|
13
|
+
const db_1 = require("@orm/db");
|
|
14
|
+
const statsAggregatedAccount_1 = require("@orm/entities/stats/statsAggregatedAccount");
|
|
15
|
+
const statsTrackEventAccount_1 = require("./statsTrackEventAccount");
|
|
16
|
+
const baseStatsAggregated_1 = require("./baseStatsAggregated");
|
|
17
|
+
class StatsAggregatedAccountService extends baseStatsAggregated_1.BaseStatsAggregatedService {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(db_1.AppDataSourceReadWrite.getRepository(statsAggregatedAccount_1.StatsAggregatedAccount));
|
|
20
|
+
this.statsTrackEventAccountService = new statsTrackEventAccount_1.StatsTrackEventAccountService();
|
|
21
|
+
}
|
|
22
|
+
getIdFieldName() {
|
|
23
|
+
return 'tracked_account_id';
|
|
24
|
+
}
|
|
25
|
+
updateAggregatedStats(account_id_1) {
|
|
26
|
+
return __awaiter(this, arguments, void 0, function* (account_id, updateAllTime = false) {
|
|
27
|
+
yield this._updateAggregatedStats(account_id, this.statsTrackEventAccountService, updateAllTime);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
updateAggregatedStatsRolling(account_id, updateHistoricalOptions) {
|
|
31
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
+
yield this._updateAggregatedStatsRolling(account_id, this.statsTrackEventAccountService, updateHistoricalOptions);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.StatsAggregatedAccountService = StatsAggregatedAccountService;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { StatsAggregatedChannel } from '@orm/entities/stats/statsAggregatedChannel';
|
|
2
|
+
import { BaseStatsAggregatedService, UpdateHistoricalOptions } from './baseStatsAggregated';
|
|
3
|
+
export declare class StatsAggregatedChannelService extends BaseStatsAggregatedService<StatsAggregatedChannel, number> {
|
|
4
|
+
private statsTrackEventChannelService;
|
|
5
|
+
constructor();
|
|
6
|
+
protected getIdFieldName(): string;
|
|
7
|
+
updateAggregatedStats(channel_id: number, updateAllTime?: boolean): Promise<void>;
|
|
8
|
+
updateAggregatedStatsRolling(channel_id: number, updateHistoricalOptions: UpdateHistoricalOptions): Promise<void>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=statsAggregatedChannel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"statsAggregatedChannel.d.ts","sourceRoot":"","sources":["../../../src/services/stats/statsAggregatedChannel.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AAEpF,OAAO,EAAE,0BAA0B,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAE5F,qBAAa,6BAA8B,SAAQ,0BAA0B,CAAC,sBAAsB,EAAE,MAAM,CAAC;IAC3G,OAAO,CAAC,6BAA6B,CAAgC;;IAOrE,SAAS,CAAC,cAAc,IAAI,MAAM;IAI5B,qBAAqB,CAAC,UAAU,EAAE,MAAM,EAAE,aAAa,GAAE,OAAe,GAAG,OAAO,CAAC,IAAI,CAAC;IAIxF,4BAA4B,CAAC,UAAU,EAAE,MAAM,EAAE,uBAAuB,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC;CAGxH"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.StatsAggregatedChannelService = void 0;
|
|
13
|
+
const db_1 = require("@orm/db");
|
|
14
|
+
const statsAggregatedChannel_1 = require("@orm/entities/stats/statsAggregatedChannel");
|
|
15
|
+
const statsTrackEventChannel_1 = require("./statsTrackEventChannel");
|
|
16
|
+
const baseStatsAggregated_1 = require("./baseStatsAggregated");
|
|
17
|
+
class StatsAggregatedChannelService extends baseStatsAggregated_1.BaseStatsAggregatedService {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(db_1.AppDataSourceReadWrite.getRepository(statsAggregatedChannel_1.StatsAggregatedChannel));
|
|
20
|
+
this.statsTrackEventChannelService = new statsTrackEventChannel_1.StatsTrackEventChannelService();
|
|
21
|
+
}
|
|
22
|
+
getIdFieldName() {
|
|
23
|
+
return 'channel_id';
|
|
24
|
+
}
|
|
25
|
+
updateAggregatedStats(channel_id_1) {
|
|
26
|
+
return __awaiter(this, arguments, void 0, function* (channel_id, updateAllTime = false) {
|
|
27
|
+
yield this._updateAggregatedStats(channel_id, this.statsTrackEventChannelService, updateAllTime);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
updateAggregatedStatsRolling(channel_id, updateHistoricalOptions) {
|
|
31
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
+
yield this._updateAggregatedStatsRolling(channel_id, this.statsTrackEventChannelService, updateHistoricalOptions);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.StatsAggregatedChannelService = StatsAggregatedChannelService;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { StatsAggregatedClip } from '@orm/entities/stats/statsAggregatedClip';
|
|
2
|
+
import { BaseStatsAggregatedService, UpdateHistoricalOptions } from './baseStatsAggregated';
|
|
3
|
+
export declare class StatsAggregatedClipService extends BaseStatsAggregatedService<StatsAggregatedClip, number> {
|
|
4
|
+
private statsTrackEventClipService;
|
|
5
|
+
constructor();
|
|
6
|
+
protected getIdFieldName(): string;
|
|
7
|
+
updateAggregatedStats(clip_id: number, updateAllTime?: boolean): Promise<void>;
|
|
8
|
+
updateAggregatedStatsRolling(clip_id: number, updateHistoricalOptions: UpdateHistoricalOptions): Promise<void>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=statsAggregatedClip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"statsAggregatedClip.d.ts","sourceRoot":"","sources":["../../../src/services/stats/statsAggregatedClip.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAE9E,OAAO,EAAE,0BAA0B,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAE5F,qBAAa,0BAA2B,SAAQ,0BAA0B,CAAC,mBAAmB,EAAE,MAAM,CAAC;IACrG,OAAO,CAAC,0BAA0B,CAA6B;;IAO/D,SAAS,CAAC,cAAc,IAAI,MAAM;IAI5B,qBAAqB,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,GAAE,OAAe,GAAG,OAAO,CAAC,IAAI,CAAC;IAIrF,4BAA4B,CAAC,OAAO,EAAE,MAAM,EAAE,uBAAuB,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC;CAGrH"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.StatsAggregatedClipService = void 0;
|
|
13
|
+
const db_1 = require("@orm/db");
|
|
14
|
+
const statsAggregatedClip_1 = require("@orm/entities/stats/statsAggregatedClip");
|
|
15
|
+
const statsTrackEventClip_1 = require("./statsTrackEventClip");
|
|
16
|
+
const baseStatsAggregated_1 = require("./baseStatsAggregated");
|
|
17
|
+
class StatsAggregatedClipService extends baseStatsAggregated_1.BaseStatsAggregatedService {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(db_1.AppDataSourceReadWrite.getRepository(statsAggregatedClip_1.StatsAggregatedClip));
|
|
20
|
+
this.statsTrackEventClipService = new statsTrackEventClip_1.StatsTrackEventClipService();
|
|
21
|
+
}
|
|
22
|
+
getIdFieldName() {
|
|
23
|
+
return 'clip_id';
|
|
24
|
+
}
|
|
25
|
+
updateAggregatedStats(clip_id_1) {
|
|
26
|
+
return __awaiter(this, arguments, void 0, function* (clip_id, updateAllTime = false) {
|
|
27
|
+
yield this._updateAggregatedStats(clip_id, this.statsTrackEventClipService, updateAllTime);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
updateAggregatedStatsRolling(clip_id, updateHistoricalOptions) {
|
|
31
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
+
yield this._updateAggregatedStatsRolling(clip_id, this.statsTrackEventClipService, updateHistoricalOptions);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.StatsAggregatedClipService = StatsAggregatedClipService;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { StatsAggregatedItem } from '@orm/entities/stats/statsAggregatedItem';
|
|
2
|
+
import { BaseStatsAggregatedService, UpdateHistoricalOptions } from './baseStatsAggregated';
|
|
3
|
+
export declare class StatsAggregatedItemService extends BaseStatsAggregatedService<StatsAggregatedItem, number> {
|
|
4
|
+
private statsTrackEventItemService;
|
|
5
|
+
constructor();
|
|
6
|
+
protected getIdFieldName(): string;
|
|
7
|
+
updateAggregatedStats(item_id: number, updateAllTime?: boolean): Promise<void>;
|
|
8
|
+
updateAggregatedStatsRolling(item_id: number, updateHistoricalOptions: UpdateHistoricalOptions): Promise<void>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=statsAggregatedItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"statsAggregatedItem.d.ts","sourceRoot":"","sources":["../../../src/services/stats/statsAggregatedItem.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAE9E,OAAO,EAAE,0BAA0B,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAE5F,qBAAa,0BAA2B,SAAQ,0BAA0B,CAAC,mBAAmB,EAAE,MAAM,CAAC;IACrG,OAAO,CAAC,0BAA0B,CAA6B;;IAO/D,SAAS,CAAC,cAAc,IAAI,MAAM;IAI5B,qBAAqB,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,GAAE,OAAe,GAAG,OAAO,CAAC,IAAI,CAAC;IAIrF,4BAA4B,CAAC,OAAO,EAAE,MAAM,EAAE,uBAAuB,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC;CAGrH"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.StatsAggregatedItemService = void 0;
|
|
13
|
+
const db_1 = require("@orm/db");
|
|
14
|
+
const statsAggregatedItem_1 = require("@orm/entities/stats/statsAggregatedItem");
|
|
15
|
+
const statsTrackEventItem_1 = require("./statsTrackEventItem");
|
|
16
|
+
const baseStatsAggregated_1 = require("./baseStatsAggregated");
|
|
17
|
+
class StatsAggregatedItemService extends baseStatsAggregated_1.BaseStatsAggregatedService {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(db_1.AppDataSourceReadWrite.getRepository(statsAggregatedItem_1.StatsAggregatedItem));
|
|
20
|
+
this.statsTrackEventItemService = new statsTrackEventItem_1.StatsTrackEventItemService();
|
|
21
|
+
}
|
|
22
|
+
getIdFieldName() {
|
|
23
|
+
return 'item_id';
|
|
24
|
+
}
|
|
25
|
+
updateAggregatedStats(item_id_1) {
|
|
26
|
+
return __awaiter(this, arguments, void 0, function* (item_id, updateAllTime = false) {
|
|
27
|
+
yield this._updateAggregatedStats(item_id, this.statsTrackEventItemService, updateAllTime);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
updateAggregatedStatsRolling(item_id, updateHistoricalOptions) {
|
|
31
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
+
yield this._updateAggregatedStatsRolling(item_id, this.statsTrackEventItemService, updateHistoricalOptions);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.StatsAggregatedItemService = StatsAggregatedItemService;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { StatsAggregatedPlaylist } from '@orm/entities/stats/statsAggregatedPlaylist';
|
|
2
|
+
import { BaseStatsAggregatedService, UpdateHistoricalOptions } from './baseStatsAggregated';
|
|
3
|
+
export declare class StatsAggregatedPlaylistService extends BaseStatsAggregatedService<StatsAggregatedPlaylist, number> {
|
|
4
|
+
private statsTrackEventPlaylistService;
|
|
5
|
+
constructor();
|
|
6
|
+
protected getIdFieldName(): string;
|
|
7
|
+
updateAggregatedStats(playlist_id: number, updateAllTime?: boolean): Promise<void>;
|
|
8
|
+
updateAggregatedStatsRolling(playlist_id: number, updateHistoricalOptions: UpdateHistoricalOptions): Promise<void>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=statsAggregatedPlaylist.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"statsAggregatedPlaylist.d.ts","sourceRoot":"","sources":["../../../src/services/stats/statsAggregatedPlaylist.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AAEtF,OAAO,EAAE,0BAA0B,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAE5F,qBAAa,8BAA+B,SAAQ,0BAA0B,CAAC,uBAAuB,EAAE,MAAM,CAAC;IAC7G,OAAO,CAAC,8BAA8B,CAAiC;;IAOvE,SAAS,CAAC,cAAc,IAAI,MAAM;IAI5B,qBAAqB,CAAC,WAAW,EAAE,MAAM,EAAE,aAAa,GAAE,OAAe,GAAG,OAAO,CAAC,IAAI,CAAC;IAIzF,4BAA4B,CAAC,WAAW,EAAE,MAAM,EAAE,uBAAuB,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC;CAGzH"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.StatsAggregatedPlaylistService = void 0;
|
|
13
|
+
const db_1 = require("@orm/db");
|
|
14
|
+
const statsAggregatedPlaylist_1 = require("@orm/entities/stats/statsAggregatedPlaylist");
|
|
15
|
+
const statsTrackEventPlaylist_1 = require("./statsTrackEventPlaylist");
|
|
16
|
+
const baseStatsAggregated_1 = require("./baseStatsAggregated");
|
|
17
|
+
class StatsAggregatedPlaylistService extends baseStatsAggregated_1.BaseStatsAggregatedService {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(db_1.AppDataSourceReadWrite.getRepository(statsAggregatedPlaylist_1.StatsAggregatedPlaylist));
|
|
20
|
+
this.statsTrackEventPlaylistService = new statsTrackEventPlaylist_1.StatsTrackEventPlaylistService();
|
|
21
|
+
}
|
|
22
|
+
getIdFieldName() {
|
|
23
|
+
return 'playlist_id';
|
|
24
|
+
}
|
|
25
|
+
updateAggregatedStats(playlist_id_1) {
|
|
26
|
+
return __awaiter(this, arguments, void 0, function* (playlist_id, updateAllTime = false) {
|
|
27
|
+
yield this._updateAggregatedStats(playlist_id, this.statsTrackEventPlaylistService, updateAllTime);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
updateAggregatedStatsRolling(playlist_id, updateHistoricalOptions) {
|
|
31
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
+
yield this._updateAggregatedStatsRolling(playlist_id, this.statsTrackEventPlaylistService, updateHistoricalOptions);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.StatsAggregatedPlaylistService = StatsAggregatedPlaylistService;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { StatsTrackAccountGuid } from '@orm/entities/stats/statsTrackAccountGuid';
|
|
2
|
+
export declare class StatsTrackAccountGuidService {
|
|
3
|
+
private repositoryRead;
|
|
4
|
+
private repositoryReadWrite;
|
|
5
|
+
private accountService;
|
|
6
|
+
constructor();
|
|
7
|
+
getByAccountId(account_id: number): Promise<StatsTrackAccountGuid | null>;
|
|
8
|
+
create(account_id: number): Promise<StatsTrackAccountGuid>;
|
|
9
|
+
delete(account_id: number): Promise<void>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=statsTrackAccountGuid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"statsTrackAccountGuid.d.ts","sourceRoot":"","sources":["../../../src/services/stats/statsTrackAccountGuid.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAC;AAIlF,qBAAa,4BAA4B;IACvC,OAAO,CAAC,cAAc,CAAoC;IAC1D,OAAO,CAAC,mBAAmB,CAAoC;IAC/D,OAAO,CAAC,cAAc,CAAiB;;IAQjC,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,GAAG,IAAI,CAAC;IAWzE,MAAM,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAU1D,MAAM,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAMhD"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.StatsTrackAccountGuidService = void 0;
|
|
13
|
+
const podverse_helpers_1 = require("podverse-helpers");
|
|
14
|
+
const db_1 = require("@orm/db");
|
|
15
|
+
const statsTrackAccountGuid_1 = require("@orm/entities/stats/statsTrackAccountGuid");
|
|
16
|
+
const account_1 = require("@orm/services/account/account");
|
|
17
|
+
class StatsTrackAccountGuidService {
|
|
18
|
+
constructor() {
|
|
19
|
+
this.repositoryRead = db_1.AppDataSourceRead.getRepository(statsTrackAccountGuid_1.StatsTrackAccountGuid);
|
|
20
|
+
this.repositoryReadWrite = db_1.AppDataSourceReadWrite.getRepository(statsTrackAccountGuid_1.StatsTrackAccountGuid);
|
|
21
|
+
this.accountService = new account_1.AccountService();
|
|
22
|
+
}
|
|
23
|
+
getByAccountId(account_id) {
|
|
24
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25
|
+
let entity = yield this.repositoryRead.findOne({ where: { account: { id: account_id } } });
|
|
26
|
+
if (!entity) {
|
|
27
|
+
entity = yield this.create(account_id);
|
|
28
|
+
}
|
|
29
|
+
else if (entity && new Date().getTime() - new Date(entity.updated_at).getTime() > 7 * 24 * 60 * 60 * 1000) {
|
|
30
|
+
entity.account_guid = (0, podverse_helpers_1.generateGuidV4)();
|
|
31
|
+
entity = yield this.repositoryReadWrite.save(entity);
|
|
32
|
+
}
|
|
33
|
+
return entity;
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
create(account_id) {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
const account = yield this.accountService.get(account_id);
|
|
39
|
+
if (!account) {
|
|
40
|
+
throw new Error("Account not found.");
|
|
41
|
+
}
|
|
42
|
+
const account_guid = (0, podverse_helpers_1.generateGuidV4)();
|
|
43
|
+
const newEntity = this.repositoryReadWrite.create({ account, account_guid });
|
|
44
|
+
return this.repositoryReadWrite.save(newEntity);
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
delete(account_id) {
|
|
48
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
+
const entity = yield this.repositoryReadWrite.findOne({ where: { account: { id: account_id } } });
|
|
50
|
+
if (entity) {
|
|
51
|
+
yield this.repositoryReadWrite.remove(entity);
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.StatsTrackAccountGuidService = StatsTrackAccountGuidService;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Account } from '@orm/entities/account/account';
|
|
2
|
+
import { BaseStatsTrackEventService } from './baseStatsTrackEvent';
|
|
3
|
+
import { StatsTrackEventAccount } from '@orm/entities/stats/statsTrackEventAccount';
|
|
4
|
+
export declare class StatsTrackEventAccountService extends BaseStatsTrackEventService<StatsTrackEventAccount> {
|
|
5
|
+
protected entity: typeof StatsTrackEventAccount;
|
|
6
|
+
protected entityName: string;
|
|
7
|
+
protected entityIdField: string;
|
|
8
|
+
protected entityIdTextField: string;
|
|
9
|
+
private accountService;
|
|
10
|
+
constructor();
|
|
11
|
+
protected getEntityByIdText(id_text: string): Promise<Account | null | undefined>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=statsTrackEventAccount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"statsTrackEventAccount.d.ts","sourceRoot":"","sources":["../../../src/services/stats/statsTrackEventAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AAGpF,qBAAa,6BAA8B,SAAQ,0BAA0B,CAAC,sBAAsB,CAAC;IACnG,SAAS,CAAC,MAAM,gCAA0B;IAC1C,SAAS,CAAC,UAAU,SAA+B;IACnD,SAAS,CAAC,aAAa,SAAwB;IAC/C,SAAS,CAAC,iBAAiB,SAAqB;IAChD,OAAO,CAAC,cAAc,CAAiB;;cAOvB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;CAGxF"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.StatsTrackEventAccountService = void 0;
|
|
13
|
+
const baseStatsTrackEvent_1 = require("./baseStatsTrackEvent");
|
|
14
|
+
const statsTrackEventAccount_1 = require("@orm/entities/stats/statsTrackEventAccount");
|
|
15
|
+
const account_1 = require("@orm/services/account/account");
|
|
16
|
+
class StatsTrackEventAccountService extends baseStatsTrackEvent_1.BaseStatsTrackEventService {
|
|
17
|
+
constructor() {
|
|
18
|
+
super();
|
|
19
|
+
this.entity = statsTrackEventAccount_1.StatsTrackEventAccount;
|
|
20
|
+
this.entityName = 'stats_track_event_account';
|
|
21
|
+
this.entityIdField = 'tracked_account_id';
|
|
22
|
+
this.entityIdTextField = 'account_id_text';
|
|
23
|
+
this.accountService = new account_1.AccountService();
|
|
24
|
+
}
|
|
25
|
+
getEntityByIdText(id_text) {
|
|
26
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
27
|
+
return this.accountService.getByIdText(id_text);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.StatsTrackEventAccountService = StatsTrackEventAccountService;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Channel } from '@orm/entities/channel/channel';
|
|
2
|
+
import { BaseStatsTrackEventService } from './baseStatsTrackEvent';
|
|
3
|
+
import { StatsTrackEventChannel } from '@orm/entities/stats/statsTrackEventChannel';
|
|
4
|
+
export declare class StatsTrackEventChannelService extends BaseStatsTrackEventService<StatsTrackEventChannel> {
|
|
5
|
+
protected entity: typeof StatsTrackEventChannel;
|
|
6
|
+
protected entityName: string;
|
|
7
|
+
protected entityIdField: string;
|
|
8
|
+
protected entityIdTextField: string;
|
|
9
|
+
private channelService;
|
|
10
|
+
constructor();
|
|
11
|
+
protected getEntityByIdText(id_text: string): Promise<Channel | null | undefined>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=statsTrackEventChannel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"statsTrackEventChannel.d.ts","sourceRoot":"","sources":["../../../src/services/stats/statsTrackEventChannel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AAGpF,qBAAa,6BAA8B,SAAQ,0BAA0B,CAAC,sBAAsB,CAAC;IACnG,SAAS,CAAC,MAAM,gCAA0B;IAC1C,SAAS,CAAC,UAAU,SAA+B;IACnD,SAAS,CAAC,aAAa,SAAgB;IACvC,SAAS,CAAC,iBAAiB,SAAqB;IAChD,OAAO,CAAC,cAAc,CAAiB;;cAOvB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;CAGxF"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.StatsTrackEventChannelService = void 0;
|
|
13
|
+
const baseStatsTrackEvent_1 = require("./baseStatsTrackEvent");
|
|
14
|
+
const statsTrackEventChannel_1 = require("@orm/entities/stats/statsTrackEventChannel");
|
|
15
|
+
const channel_1 = require("@orm/services/channel/channel");
|
|
16
|
+
class StatsTrackEventChannelService extends baseStatsTrackEvent_1.BaseStatsTrackEventService {
|
|
17
|
+
constructor() {
|
|
18
|
+
super();
|
|
19
|
+
this.entity = statsTrackEventChannel_1.StatsTrackEventChannel;
|
|
20
|
+
this.entityName = 'stats_track_event_channel';
|
|
21
|
+
this.entityIdField = 'channel_id';
|
|
22
|
+
this.entityIdTextField = 'channel_id_text';
|
|
23
|
+
this.channelService = new channel_1.ChannelService();
|
|
24
|
+
}
|
|
25
|
+
getEntityByIdText(id_text) {
|
|
26
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
27
|
+
return this.channelService.getByIdText(id_text);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.StatsTrackEventChannelService = StatsTrackEventChannelService;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Clip } from '@orm/entities/clip';
|
|
2
|
+
import { BaseStatsTrackEventService } from './baseStatsTrackEvent';
|
|
3
|
+
import { StatsTrackEventClip } from '@orm/entities/stats/statsTrackEventClip';
|
|
4
|
+
export declare class StatsTrackEventClipService extends BaseStatsTrackEventService<StatsTrackEventClip> {
|
|
5
|
+
protected entity: typeof StatsTrackEventClip;
|
|
6
|
+
protected entityName: string;
|
|
7
|
+
protected entityIdField: string;
|
|
8
|
+
protected entityIdTextField: string;
|
|
9
|
+
private clipService;
|
|
10
|
+
constructor();
|
|
11
|
+
protected getEntityByIdText(id_text: string): Promise<Clip | null | undefined>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=statsTrackEventClip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"statsTrackEventClip.d.ts","sourceRoot":"","sources":["../../../src/services/stats/statsTrackEventClip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAG9E,qBAAa,0BAA2B,SAAQ,0BAA0B,CAAC,mBAAmB,CAAC;IAC7F,SAAS,CAAC,MAAM,6BAAuB;IACvC,SAAS,CAAC,UAAU,SAA4B;IAChD,SAAS,CAAC,aAAa,SAAa;IACpC,SAAS,CAAC,iBAAiB,SAAkB;IAC7C,OAAO,CAAC,WAAW,CAAc;;cAOjB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC;CAGrF"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.StatsTrackEventClipService = void 0;
|
|
13
|
+
const baseStatsTrackEvent_1 = require("./baseStatsTrackEvent");
|
|
14
|
+
const statsTrackEventClip_1 = require("@orm/entities/stats/statsTrackEventClip");
|
|
15
|
+
const clip_1 = require("@orm/services/clip");
|
|
16
|
+
class StatsTrackEventClipService extends baseStatsTrackEvent_1.BaseStatsTrackEventService {
|
|
17
|
+
constructor() {
|
|
18
|
+
super();
|
|
19
|
+
this.entity = statsTrackEventClip_1.StatsTrackEventClip;
|
|
20
|
+
this.entityName = 'stats_track_event_clip';
|
|
21
|
+
this.entityIdField = 'clip_id';
|
|
22
|
+
this.entityIdTextField = 'clip_id_text';
|
|
23
|
+
this.clipService = new clip_1.ClipService();
|
|
24
|
+
}
|
|
25
|
+
getEntityByIdText(id_text) {
|
|
26
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
27
|
+
return this.clipService.getByIdText(id_text);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.StatsTrackEventClipService = StatsTrackEventClipService;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Item } from '@orm/entities/item/item';
|
|
2
|
+
import { BaseStatsTrackEventService } from './baseStatsTrackEvent';
|
|
3
|
+
import { StatsTrackEventItem } from '@orm/entities/stats/statsTrackEventItem';
|
|
4
|
+
export declare class StatsTrackEventItemService extends BaseStatsTrackEventService<StatsTrackEventItem> {
|
|
5
|
+
protected entity: typeof StatsTrackEventItem;
|
|
6
|
+
protected entityName: string;
|
|
7
|
+
protected entityIdField: string;
|
|
8
|
+
protected entityIdTextField: string;
|
|
9
|
+
private itemService;
|
|
10
|
+
constructor();
|
|
11
|
+
protected getEntityByIdText(id_text: string): Promise<Item | null | undefined>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=statsTrackEventItem.d.ts.map
|