podverse-orm 5.0.5 → 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/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 +5 -1
- 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 +5 -1
- package/dist/entities/account/accountFollowingAddByRSSChannel.d.ts +1 -1
- package/dist/entities/account/accountFollowingAddByRSSChannel.js +10 -10
- 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.js +1 -1
- package/dist/entities/account/accountResetPassword.js +1 -1
- package/dist/entities/account/accountVerification.js +1 -1
- package/dist/entities/category.d.ts +2 -1
- package/dist/entities/category.d.ts.map +1 -1
- package/dist/entities/category.js +12 -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 +95 -4
- 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 +6 -1
- 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.js +1 -1
- package/dist/entities/channel/channelDescription.js +1 -1
- package/dist/entities/channel/channelLicense.js +1 -1
- package/dist/entities/channel/channelLocation.js +1 -1
- 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/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.js +1 -1
- 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 +2 -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 +5 -0
- package/dist/entities/clip.d.ts +2 -2
- package/dist/entities/clip.d.ts.map +1 -1
- package/dist/entities/clip.js +2 -2
- 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 +8 -0
- 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 +107 -12
- 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 +1 -1
- package/dist/entities/item/itemChapterLocation.js +1 -1
- 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 +6 -1
- package/dist/entities/item/itemChaptersFeedLog.d.ts.map +1 -1
- package/dist/entities/item/itemChaptersFeedLog.js +2 -1
- package/dist/entities/item/itemChat.js +1 -1
- package/dist/entities/item/itemDescription.js +1 -1
- 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 +10 -0
- package/dist/entities/item/itemEnclosureIntegrity.js +1 -1
- 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/itemLicense.js +1 -1
- package/dist/entities/item/itemLocation.js +1 -1
- package/dist/entities/item/itemSeason.js +1 -1
- package/dist/entities/item/itemSeasonEpisode.js +1 -1
- 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 +10 -0
- 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/itemValueTimeSplitRemoteItem.js +1 -1
- 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 +4 -7
- 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 +38 -11
- 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 +4 -4
- 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,73 @@
|
|
|
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.CategoryService = void 0;
|
|
13
|
+
const db_1 = require("@orm/db");
|
|
14
|
+
const category_1 = require("@orm/entities/category");
|
|
15
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
16
|
+
let allCategories = [];
|
|
17
|
+
class CategoryService {
|
|
18
|
+
constructor() {
|
|
19
|
+
this.repositoryRead = db_1.AppDataSourceRead.getRepository(category_1.Category);
|
|
20
|
+
}
|
|
21
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
22
|
+
get(id) {
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
if (!id) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
const categoryRaw = yield this.repositoryRead.findOne({ where: { id }, relations: ['parent_id'] });
|
|
28
|
+
const parsedCategory = Object.assign(Object.assign({}, categoryRaw), { parent: (categoryRaw === null || categoryRaw === void 0 ? void 0 : categoryRaw.parent_id) || null });
|
|
29
|
+
delete parsedCategory.parent_id;
|
|
30
|
+
return parsedCategory;
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
setCategoryCache() {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
const allCategoriesRaw = yield this.repositoryRead.find({ relations: ['parent_id'] });
|
|
36
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
37
|
+
const parsedCategories = allCategoriesRaw.map((category) => {
|
|
38
|
+
var _a;
|
|
39
|
+
return {
|
|
40
|
+
id: category.id,
|
|
41
|
+
parent_id: ((_a = category === null || category === void 0 ? void 0 : category.parent_id) === null || _a === void 0 ? void 0 : _a.id) || null,
|
|
42
|
+
display_name: category.display_name,
|
|
43
|
+
slug: category.slug
|
|
44
|
+
};
|
|
45
|
+
});
|
|
46
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
47
|
+
const categoryMap = new Map();
|
|
48
|
+
parsedCategories.forEach(category => {
|
|
49
|
+
categoryMap.set(category.id, category);
|
|
50
|
+
});
|
|
51
|
+
parsedCategories.forEach(category => {
|
|
52
|
+
if (category.parent_id) {
|
|
53
|
+
const parentCategory = categoryMap.get(category.parent_id);
|
|
54
|
+
if (parentCategory) {
|
|
55
|
+
if (!parentCategory.children) {
|
|
56
|
+
parentCategory.children = [];
|
|
57
|
+
}
|
|
58
|
+
parentCategory.children.push(category);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
delete category.parent_id;
|
|
62
|
+
});
|
|
63
|
+
allCategories = parsedCategories.filter(category => !category.parent_id);
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
67
|
+
getAll() {
|
|
68
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
69
|
+
return allCategories;
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
exports.CategoryService = CategoryService;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { MediumEnum } from 'podverse-helpers';
|
|
2
|
+
import { FindManyOptions, FindOptionsRelations, FindOptionsWhere, Repository } from 'typeorm';
|
|
1
3
|
import { Channel } from '@orm/entities/channel/channel';
|
|
2
4
|
import { Feed } from '@orm/entities/feed/feed';
|
|
3
|
-
import { MediumEnum } from '@orm/entities/medium';
|
|
4
|
-
import { Repository } from 'typeorm';
|
|
5
5
|
type ChannelInitializeDto = {
|
|
6
6
|
feed: Feed;
|
|
7
7
|
podcast_index_id: number;
|
|
@@ -9,19 +9,24 @@ type ChannelInitializeDto = {
|
|
|
9
9
|
type ChannelDto = {
|
|
10
10
|
slug?: string | null;
|
|
11
11
|
podcast_guid?: string | null;
|
|
12
|
-
title
|
|
13
|
-
sortable_title
|
|
12
|
+
title?: string | null;
|
|
13
|
+
sortable_title?: string | null;
|
|
14
14
|
medium?: MediumEnum | null;
|
|
15
15
|
has_podcast_index_value?: boolean;
|
|
16
|
-
|
|
17
|
-
marked_for_deletion?: boolean;
|
|
16
|
+
has_value_time_splits?: boolean;
|
|
18
17
|
};
|
|
18
|
+
export declare const channelGetManyRelations: string[];
|
|
19
|
+
export declare const channelGetOneRelations: FindOptionsRelations<Channel>;
|
|
19
20
|
export declare class ChannelService {
|
|
20
|
-
protected
|
|
21
|
+
protected repositoryRead: Repository<Channel>;
|
|
22
|
+
protected repositoryReadWrite: Repository<Channel>;
|
|
21
23
|
constructor();
|
|
22
|
-
|
|
23
|
-
|
|
24
|
+
getChannelWithRelations(where: FindOptionsWhere<Channel>, relations: FindOptionsRelations<Channel>): Promise<Channel | null>;
|
|
25
|
+
get(id: number, relations?: FindOptionsRelations<Channel>): Promise<Channel | null>;
|
|
26
|
+
getByIdText(id_text: string, relations?: FindOptionsRelations<Channel>): Promise<Channel | null>;
|
|
27
|
+
getByIdOrIdText(idOrIdText: string, relations?: FindOptionsRelations<Channel>): Promise<Channel | null>;
|
|
24
28
|
getByPodcastIndexId(podcast_index_id: number): Promise<Channel | null>;
|
|
29
|
+
getMany(config: FindManyOptions<Channel>): Promise<Channel[]>;
|
|
25
30
|
getOrCreateByPodcastIndexId(dto: ChannelInitializeDto): Promise<Channel>;
|
|
26
31
|
update(id: number, dto: ChannelDto): Promise<Channel>;
|
|
27
32
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../../../src/services/channel/channel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../../../src/services/channel/channel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,gBAAgB,EAAM,UAAU,EAAE,MAAM,SAAS,CAAC;AAClG,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAgB/C,KAAK,oBAAoB,GAAG;IAC1B,IAAI,EAAE,IAAI,CAAC;IACX,gBAAgB,EAAE,MAAM,CAAA;CACzB,CAAA;AAED,KAAK,UAAU,GAAG;IAChB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,MAAM,CAAC,EAAE,UAAU,GAAG,IAAI,CAAA;IAC1B,uBAAuB,CAAC,EAAE,OAAO,CAAA;IACjC,qBAAqB,CAAC,EAAE,OAAO,CAAA;CAChC,CAAA;AAED,eAAO,MAAM,uBAAuB,UAUnC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,oBAAoB,CAAC,OAAO,CAmBhE,CAAC;AAiBF,qBAAa,cAAc;IACzB,SAAS,CAAC,cAAc,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IAC9C,SAAS,CAAC,mBAAmB,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;;IAO7C,uBAAuB,CAC3B,KAAK,EAAE,gBAAgB,CAAC,OAAO,CAAC,EAChC,SAAS,EAAE,oBAAoB,CAAC,OAAO,CAAC,GACvC,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;IAsFpB,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,GAAE,oBAAoB,CAAC,OAAO,CAAM,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;IAOvF,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,GAAE,oBAAoB,CAAC,OAAO,CAAM,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;IAOpG,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,GAAE,oBAAoB,CAAC,OAAO,CAAM,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;IAa3G,mBAAmB,CAAC,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;IAItE,OAAO,CAAC,MAAM,EAAE,eAAe,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAW7D,2BAA2B,CAAC,GAAG,EAAE,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC;IAaxE,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,GAAG,OAAO,CAAC,OAAO,CAAC;CAW5D"}
|
|
@@ -9,27 +9,178 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ChannelService = void 0;
|
|
12
|
+
exports.ChannelService = exports.channelGetOneRelations = exports.channelGetManyRelations = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
13
14
|
const channel_1 = require("@orm/entities/channel/channel");
|
|
14
15
|
const applyProperties_1 = require("@orm/lib/applyProperties");
|
|
15
16
|
const db_1 = require("@orm/db");
|
|
17
|
+
const channelCategory_1 = require("./channelCategory");
|
|
18
|
+
const channelFunding_1 = require("./channelFunding");
|
|
19
|
+
const channelImage_1 = require("./channelImage");
|
|
20
|
+
const channelPerson_1 = require("./channelPerson");
|
|
21
|
+
const channelRemoteItem_1 = require("./channelRemoteItem");
|
|
22
|
+
const channelSeason_1 = require("./channelSeason");
|
|
23
|
+
const channelSocialInteract_1 = require("./channelSocialInteract");
|
|
24
|
+
const channelTrailer_1 = require("./channelTrailer");
|
|
25
|
+
const channelTxt_1 = require("./channelTxt");
|
|
26
|
+
const channelValue_1 = require("./channelValue");
|
|
27
|
+
const channelValueRecipient_1 = require("./channelValueRecipient");
|
|
28
|
+
const feedFlagStatus_1 = require("@orm/entities/feed/feedFlagStatus");
|
|
29
|
+
exports.channelGetManyRelations = [
|
|
30
|
+
'channel_about',
|
|
31
|
+
'channel_about.itunes_type',
|
|
32
|
+
'channel_chat',
|
|
33
|
+
'channel_description',
|
|
34
|
+
'channel_images',
|
|
35
|
+
'channel_internal_settings',
|
|
36
|
+
'channel_license',
|
|
37
|
+
'channel_location',
|
|
38
|
+
'channel_persons'
|
|
39
|
+
];
|
|
40
|
+
exports.channelGetOneRelations = {
|
|
41
|
+
channel_about: true,
|
|
42
|
+
channel_categories: true,
|
|
43
|
+
channel_chat: true,
|
|
44
|
+
channel_description: true,
|
|
45
|
+
channel_fundings: true,
|
|
46
|
+
channel_images: true,
|
|
47
|
+
channel_internal_settings: true,
|
|
48
|
+
channel_license: true,
|
|
49
|
+
channel_location: true,
|
|
50
|
+
channel_persons: true,
|
|
51
|
+
channel_podroll: true,
|
|
52
|
+
channel_publisher: true,
|
|
53
|
+
channel_remote_items: true,
|
|
54
|
+
channel_seasons: true,
|
|
55
|
+
channel_social_interacts: true,
|
|
56
|
+
channel_trailers: true,
|
|
57
|
+
channel_txts: true,
|
|
58
|
+
channel_values: true,
|
|
59
|
+
};
|
|
60
|
+
const getChannelOneToOneRelations = (relations) => {
|
|
61
|
+
const oneToOneRelations = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (relations.channel_about ? { channel_about: { itunes_type: true } } : {})), (relations.channel_chat ? { channel_chat: true } : {})), (relations.channel_description ? { channel_description: true } : {})), (relations.channel_internal_settings ? { channel_internal_settings: true } : {})), (relations.channel_license ? { channel_license: true } : {})), (relations.channel_location ? { channel_location: true } : {})), (relations.channel_podroll ? { channel_podroll: { channel_podroll_remote_items: true } } : {})), (relations.channel_publisher ? { channel_publisher: { channel_publisher_remote_items: true } } : {}));
|
|
62
|
+
return oneToOneRelations;
|
|
63
|
+
};
|
|
16
64
|
class ChannelService {
|
|
17
65
|
constructor() {
|
|
18
|
-
this.
|
|
66
|
+
this.repositoryRead = db_1.AppDataSourceRead.getRepository(channel_1.Channel);
|
|
67
|
+
this.repositoryReadWrite = db_1.AppDataSourceReadWrite.getRepository(channel_1.Channel);
|
|
19
68
|
}
|
|
20
|
-
|
|
69
|
+
getChannelWithRelations(where, relations) {
|
|
21
70
|
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
|
|
71
|
+
const oneToOneRelations = getChannelOneToOneRelations(relations);
|
|
72
|
+
let channel = yield this.repositoryRead.findOne({
|
|
73
|
+
where,
|
|
74
|
+
relations: oneToOneRelations
|
|
75
|
+
});
|
|
76
|
+
if (!channel) {
|
|
77
|
+
return null;
|
|
78
|
+
}
|
|
79
|
+
if (relations.channel_categories) {
|
|
80
|
+
const channelCategoryService = new channelCategory_1.ChannelCategoryService();
|
|
81
|
+
const channel_categories = yield channelCategoryService._getAll(channel, {
|
|
82
|
+
relations: { category: true }
|
|
83
|
+
});
|
|
84
|
+
channel.channel_categories = channel_categories;
|
|
85
|
+
}
|
|
86
|
+
if (relations.channel_fundings) {
|
|
87
|
+
const channelFundingService = new channelFunding_1.ChannelFundingService();
|
|
88
|
+
const channel_fundings = yield channelFundingService._getAll(channel);
|
|
89
|
+
channel.channel_fundings = channel_fundings;
|
|
90
|
+
}
|
|
91
|
+
if (relations.channel_images) {
|
|
92
|
+
const channelImageService = new channelImage_1.ChannelImageService();
|
|
93
|
+
const channel_images = yield channelImageService._getAll(channel);
|
|
94
|
+
channel.channel_images = channel_images;
|
|
95
|
+
}
|
|
96
|
+
if (relations.channel_persons) {
|
|
97
|
+
const channelPersonService = new channelPerson_1.ChannelPersonService();
|
|
98
|
+
const channel_persons = yield channelPersonService._getAll(channel);
|
|
99
|
+
channel.channel_persons = channel_persons;
|
|
100
|
+
}
|
|
101
|
+
if (relations.channel_remote_items) {
|
|
102
|
+
const channelRemoteItemService = new channelRemoteItem_1.ChannelRemoteItemService();
|
|
103
|
+
const channel_remote_items = yield channelRemoteItemService._getAll(channel);
|
|
104
|
+
channel.channel_remote_items = channel_remote_items;
|
|
105
|
+
}
|
|
106
|
+
if (relations.channel_seasons) {
|
|
107
|
+
const channelSeasonService = new channelSeason_1.ChannelSeasonService();
|
|
108
|
+
const channel_seasons = yield channelSeasonService._getAll(channel);
|
|
109
|
+
channel.channel_seasons = channel_seasons;
|
|
110
|
+
}
|
|
111
|
+
if (relations.channel_social_interacts) {
|
|
112
|
+
const channelSocialInteractService = new channelSocialInteract_1.ChannelSocialInteractService();
|
|
113
|
+
const channel_social_interacts = yield channelSocialInteractService._getAll(channel);
|
|
114
|
+
channel.channel_social_interacts = channel_social_interacts;
|
|
115
|
+
}
|
|
116
|
+
if (relations.channel_trailers) {
|
|
117
|
+
const channelTrailerService = new channelTrailer_1.ChannelTrailerService();
|
|
118
|
+
const channel_trailers = yield channelTrailerService._getAll(channel);
|
|
119
|
+
channel.channel_trailers = channel_trailers;
|
|
120
|
+
}
|
|
121
|
+
if (relations.channel_txts) {
|
|
122
|
+
const channelTxtService = new channelTxt_1.ChannelTxtService();
|
|
123
|
+
const channel_txts = yield channelTxtService._getAll(channel);
|
|
124
|
+
channel.channel_txts = channel_txts;
|
|
125
|
+
}
|
|
126
|
+
if (relations.channel_values) {
|
|
127
|
+
const channelValueService = new channelValue_1.ChannelValueService();
|
|
128
|
+
const channel_values = yield channelValueService._getAll(channel);
|
|
129
|
+
for (const channel_value of channel_values) {
|
|
130
|
+
const channelValueRecipientsService = new channelValueRecipient_1.ChannelValueRecipientService();
|
|
131
|
+
const channel_value_recipients = yield channelValueRecipientsService._getAll(channel_value);
|
|
132
|
+
if (channel_value_recipients) {
|
|
133
|
+
channel_value.channel_value_recipients = channel_value_recipients;
|
|
134
|
+
}
|
|
135
|
+
;
|
|
136
|
+
}
|
|
137
|
+
if (channel_values)
|
|
138
|
+
channel.channel_values = channel_values;
|
|
139
|
+
}
|
|
140
|
+
return channel;
|
|
23
141
|
});
|
|
24
142
|
}
|
|
25
|
-
|
|
26
|
-
return __awaiter(this,
|
|
27
|
-
|
|
143
|
+
get(id_1) {
|
|
144
|
+
return __awaiter(this, arguments, void 0, function* (id, relations = {}) {
|
|
145
|
+
if (!id) {
|
|
146
|
+
return null;
|
|
147
|
+
}
|
|
148
|
+
return this.getChannelWithRelations({ id }, relations);
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
getByIdText(id_text_1) {
|
|
152
|
+
return __awaiter(this, arguments, void 0, function* (id_text, relations = {}) {
|
|
153
|
+
if (!id_text) {
|
|
154
|
+
return null;
|
|
155
|
+
}
|
|
156
|
+
return this.getChannelWithRelations({ id_text }, relations);
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
getByIdOrIdText(idOrIdText_1) {
|
|
160
|
+
return __awaiter(this, arguments, void 0, function* (idOrIdText, relations = {}) {
|
|
161
|
+
let channel = null;
|
|
162
|
+
if (isNaN(Number(idOrIdText))) {
|
|
163
|
+
channel = yield this.getByIdText(idOrIdText, relations);
|
|
164
|
+
}
|
|
165
|
+
else {
|
|
166
|
+
const id = parseInt(idOrIdText);
|
|
167
|
+
channel = yield this.get(id, relations);
|
|
168
|
+
}
|
|
169
|
+
return channel;
|
|
28
170
|
});
|
|
29
171
|
}
|
|
30
172
|
getByPodcastIndexId(podcast_index_id) {
|
|
31
173
|
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
-
return this.
|
|
174
|
+
return this.repositoryRead.findOne({ where: { podcast_index_id } });
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
getMany(config) {
|
|
178
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
179
|
+
return this.repositoryRead.find(Object.assign({ where: {
|
|
180
|
+
feed: {
|
|
181
|
+
id: (0, typeorm_1.In)([feedFlagStatus_1.FeedFlagStatusStatusEnum.Active, feedFlagStatus_1.FeedFlagStatusStatusEnum.AlwaysParse])
|
|
182
|
+
}
|
|
183
|
+
} }, config));
|
|
33
184
|
});
|
|
34
185
|
}
|
|
35
186
|
getOrCreateByPodcastIndexId(dto) {
|
|
@@ -39,7 +190,7 @@ class ChannelService {
|
|
|
39
190
|
channel = new channel_1.Channel();
|
|
40
191
|
channel.feed_id = dto.feed.id;
|
|
41
192
|
channel.podcast_index_id = dto.podcast_index_id;
|
|
42
|
-
channel = yield this.
|
|
193
|
+
channel = yield this.repositoryReadWrite.save(channel);
|
|
43
194
|
}
|
|
44
195
|
return channel;
|
|
45
196
|
});
|
|
@@ -51,7 +202,7 @@ class ChannelService {
|
|
|
51
202
|
channel = new channel_1.Channel();
|
|
52
203
|
}
|
|
53
204
|
channel = (0, applyProperties_1.applyProperties)(channel, dto);
|
|
54
|
-
return this.
|
|
205
|
+
return this.repositoryReadWrite.save(channel);
|
|
55
206
|
});
|
|
56
207
|
}
|
|
57
208
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { EntityManager } from 'typeorm';
|
|
2
|
+
import { Channel } from '@orm/entities/channel/channel';
|
|
3
|
+
import { ChannelCategory } from '@orm/entities/channel/channelCategory';
|
|
4
|
+
import { BaseManyService } from '@orm/services/base/baseManyService';
|
|
5
|
+
type ChannelCategoryDto = {
|
|
6
|
+
category_id: number;
|
|
7
|
+
};
|
|
8
|
+
export declare class ChannelCategoryService extends BaseManyService<ChannelCategory, 'channel'> {
|
|
9
|
+
constructor(transactionalEntityManager?: EntityManager);
|
|
10
|
+
getAll(channel: Channel): Promise<ChannelCategory[]>;
|
|
11
|
+
updateMany(channel: Channel, dtos: ChannelCategoryDto[]): Promise<ChannelCategory[]>;
|
|
12
|
+
deleteAll(channel: Channel): Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=channelCategory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"channelCategory.d.ts","sourceRoot":"","sources":["../../../src/services/channel/channelCategory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAErE,KAAK,kBAAkB,GAAG;IACxB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,qBAAa,sBAAuB,SAAQ,eAAe,CAAC,eAAe,EAAE,SAAS,CAAC;gBACzE,0BAA0B,CAAC,EAAE,aAAa;IAIhD,MAAM,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IAIpD,UAAU,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,kBAAkB,EAAE,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IAKpF,SAAS,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;CAGjD"}
|
|
@@ -0,0 +1,45 @@
|
|
|
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.ChannelCategoryService = void 0;
|
|
13
|
+
const channelCategory_1 = require("@orm/entities/channel/channelCategory");
|
|
14
|
+
const baseManyService_1 = require("@orm/services/base/baseManyService");
|
|
15
|
+
class ChannelCategoryService extends baseManyService_1.BaseManyService {
|
|
16
|
+
constructor(transactionalEntityManager) {
|
|
17
|
+
super(channelCategory_1.ChannelCategory, 'channel', transactionalEntityManager);
|
|
18
|
+
}
|
|
19
|
+
getAll(channel) {
|
|
20
|
+
const _super = Object.create(null, {
|
|
21
|
+
_getAll: { get: () => super._getAll }
|
|
22
|
+
});
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
return _super._getAll.call(this, channel);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
updateMany(channel, dtos) {
|
|
28
|
+
const _super = Object.create(null, {
|
|
29
|
+
_updateMany: { get: () => super._updateMany }
|
|
30
|
+
});
|
|
31
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
+
const whereKeys = ['category_id'];
|
|
33
|
+
return _super._updateMany.call(this, channel, whereKeys, dtos);
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
deleteAll(channel) {
|
|
37
|
+
const _super = Object.create(null, {
|
|
38
|
+
_deleteAll: { get: () => super._deleteAll }
|
|
39
|
+
});
|
|
40
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
+
return _super._deleteAll.call(this, channel);
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.ChannelCategoryService = ChannelCategoryService;
|
|
@@ -5,6 +5,7 @@ import { BaseOneService } from '@orm/services/base/baseOneService';
|
|
|
5
5
|
type ChannelPodrollDto = object;
|
|
6
6
|
export declare class ChannelPodrollService extends BaseOneService<ChannelPodroll, 'channel'> {
|
|
7
7
|
constructor(transactionalEntityManager?: EntityManager);
|
|
8
|
+
get(channel: Channel): Promise<ChannelPodroll | null>;
|
|
8
9
|
update(channel: Channel, dto: ChannelPodrollDto): Promise<ChannelPodroll>;
|
|
9
10
|
delete(channel: Channel): Promise<void>;
|
|
10
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channelPodroll.d.ts","sourceRoot":"","sources":["../../../src/services/channel/channelPodroll.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAEnE,KAAK,iBAAiB,GAAG,MAAM,CAAA;AAE/B,qBAAa,qBAAsB,SAAQ,cAAc,CAAC,cAAc,EAAE,SAAS,CAAC;gBACtE,0BAA0B,CAAC,EAAE,aAAa;IAIhD,MAAM,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,iBAAiB,GAAG,OAAO,CAAC,cAAc,CAAC;IAIzE,MAAM,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;CAG9C"}
|
|
1
|
+
{"version":3,"file":"channelPodroll.d.ts","sourceRoot":"","sources":["../../../src/services/channel/channelPodroll.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAEnE,KAAK,iBAAiB,GAAG,MAAM,CAAA;AAE/B,qBAAa,qBAAsB,SAAQ,cAAc,CAAC,cAAc,EAAE,SAAS,CAAC;gBACtE,0BAA0B,CAAC,EAAE,aAAa;IAIhD,GAAG,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC;IAIrD,MAAM,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,iBAAiB,GAAG,OAAO,CAAC,cAAc,CAAC;IAIzE,MAAM,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;CAG9C"}
|
|
@@ -16,6 +16,14 @@ class ChannelPodrollService extends baseOneService_1.BaseOneService {
|
|
|
16
16
|
constructor(transactionalEntityManager) {
|
|
17
17
|
super(channelPodroll_1.ChannelPodroll, 'channel', transactionalEntityManager);
|
|
18
18
|
}
|
|
19
|
+
get(channel) {
|
|
20
|
+
const _super = Object.create(null, {
|
|
21
|
+
_get: { get: () => super._get }
|
|
22
|
+
});
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
return _super._get.call(this, channel);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
19
27
|
update(channel, dto) {
|
|
20
28
|
const _super = Object.create(null, {
|
|
21
29
|
_update: { get: () => super._update }
|
|
@@ -1,16 +1,12 @@
|
|
|
1
|
+
import { RemoteItemDto } from 'podverse-helpers';
|
|
1
2
|
import { EntityManager } from 'typeorm';
|
|
2
3
|
import { ChannelPodroll } from '@orm/entities/channel/channelPodroll';
|
|
3
4
|
import { ChannelPodrollRemoteItem } from '@orm/entities/channel/channelPodrollRemoteItem';
|
|
4
5
|
import { BaseRemoteItemsService } from '@orm/services/base/baseRemoteItemsService';
|
|
5
|
-
type ChannelPodrollRemoteItemDto = {
|
|
6
|
-
feed_guid: string;
|
|
7
|
-
feed_url: string | null;
|
|
8
|
-
item_guid: string | null;
|
|
9
|
-
};
|
|
10
6
|
export declare class ChannelPodrollRemoteItemService extends BaseRemoteItemsService<ChannelPodrollRemoteItem, 'channel_podroll'> {
|
|
11
7
|
constructor(transactionalEntityManager?: EntityManager);
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
getAll(channel_podroll: ChannelPodroll): Promise<ChannelPodrollRemoteItem[]>;
|
|
9
|
+
update(channel_podroll: ChannelPodroll, dto: RemoteItemDto): Promise<ChannelPodrollRemoteItem>;
|
|
10
|
+
updateMany(channel_podroll: ChannelPodroll, dtos: RemoteItemDto[]): Promise<ChannelPodrollRemoteItem[]>;
|
|
14
11
|
}
|
|
15
|
-
export {};
|
|
16
12
|
//# sourceMappingURL=channelPodrollRemoteItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channelPodrollRemoteItem.d.ts","sourceRoot":"","sources":["../../../src/services/channel/channelPodrollRemoteItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAC1F,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AAEnF,
|
|
1
|
+
{"version":3,"file":"channelPodrollRemoteItem.d.ts","sourceRoot":"","sources":["../../../src/services/channel/channelPodrollRemoteItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAC1F,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AAEnF,qBAAa,+BAAgC,SAAQ,sBAAsB,CAAC,wBAAwB,EAAE,iBAAiB,CAAC;gBAC1G,0BAA0B,CAAC,EAAE,aAAa;IAIhD,MAAM,CAAC,eAAe,EAAE,cAAc,GAAG,OAAO,CAAC,wBAAwB,EAAE,CAAC;IAI5E,MAAM,CAAC,eAAe,EAAE,cAAc,EAAE,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAI9F,UAAU,CAAC,eAAe,EAAE,cAAc,EAAE,IAAI,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC,wBAAwB,EAAE,CAAC;CAG9G"}
|
|
@@ -16,6 +16,14 @@ class ChannelPodrollRemoteItemService extends baseRemoteItemsService_1.BaseRemot
|
|
|
16
16
|
constructor(transactionalEntityManager) {
|
|
17
17
|
super(channelPodrollRemoteItem_1.ChannelPodrollRemoteItem, 'channel_podroll', transactionalEntityManager);
|
|
18
18
|
}
|
|
19
|
+
getAll(channel_podroll) {
|
|
20
|
+
const _super = Object.create(null, {
|
|
21
|
+
getAll: { get: () => super.getAll }
|
|
22
|
+
});
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
return _super.getAll.call(this, channel_podroll);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
19
27
|
update(channel_podroll, dto) {
|
|
20
28
|
const _super = Object.create(null, {
|
|
21
29
|
update: { get: () => super.update }
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
import { EntityManager } from 'typeorm';
|
|
1
2
|
import { Channel } from '@orm/entities/channel/channel';
|
|
2
3
|
import { ChannelPublisher } from '@orm/entities/channel/channelPublisher';
|
|
3
4
|
import { BaseOneService } from '@orm/services/base/baseOneService';
|
|
4
5
|
type ChannelPublisherDto = object;
|
|
5
6
|
export declare class ChannelPublisherService extends BaseOneService<ChannelPublisher, 'channel'> {
|
|
6
|
-
constructor();
|
|
7
|
+
constructor(transactionalEntityManager?: EntityManager);
|
|
8
|
+
get(channel: Channel): Promise<ChannelPublisher | null>;
|
|
7
9
|
update(channel: Channel, dto: ChannelPublisherDto): Promise<ChannelPublisher>;
|
|
10
|
+
delete(channel: Channel): Promise<void>;
|
|
8
11
|
}
|
|
9
12
|
export {};
|
|
10
13
|
//# sourceMappingURL=channelPublisher.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channelPublisher.d.ts","sourceRoot":"","sources":["../../../src/services/channel/channelPublisher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAEnE,KAAK,mBAAmB,GAAG,MAAM,CAAA;AAEjC,qBAAa,uBAAwB,SAAQ,cAAc,CAAC,gBAAgB,EAAE,SAAS,CAAC
|
|
1
|
+
{"version":3,"file":"channelPublisher.d.ts","sourceRoot":"","sources":["../../../src/services/channel/channelPublisher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAEnE,KAAK,mBAAmB,GAAG,MAAM,CAAA;AAEjC,qBAAa,uBAAwB,SAAQ,cAAc,CAAC,gBAAgB,EAAE,SAAS,CAAC;gBAC1E,0BAA0B,CAAC,EAAE,aAAa;IAIhD,GAAG,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;IAIvD,MAAM,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,mBAAmB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAI7E,MAAM,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;CAG9C"}
|
|
@@ -13,8 +13,16 @@ exports.ChannelPublisherService = void 0;
|
|
|
13
13
|
const channelPublisher_1 = require("@orm/entities/channel/channelPublisher");
|
|
14
14
|
const baseOneService_1 = require("@orm/services/base/baseOneService");
|
|
15
15
|
class ChannelPublisherService extends baseOneService_1.BaseOneService {
|
|
16
|
-
constructor() {
|
|
17
|
-
super(channelPublisher_1.ChannelPublisher, 'channel');
|
|
16
|
+
constructor(transactionalEntityManager) {
|
|
17
|
+
super(channelPublisher_1.ChannelPublisher, 'channel', transactionalEntityManager);
|
|
18
|
+
}
|
|
19
|
+
get(channel) {
|
|
20
|
+
const _super = Object.create(null, {
|
|
21
|
+
_get: { get: () => super._get }
|
|
22
|
+
});
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
return _super._get.call(this, channel);
|
|
25
|
+
});
|
|
18
26
|
}
|
|
19
27
|
update(channel, dto) {
|
|
20
28
|
const _super = Object.create(null, {
|
|
@@ -24,5 +32,13 @@ class ChannelPublisherService extends baseOneService_1.BaseOneService {
|
|
|
24
32
|
return _super._update.call(this, channel, dto);
|
|
25
33
|
});
|
|
26
34
|
}
|
|
35
|
+
delete(channel) {
|
|
36
|
+
const _super = Object.create(null, {
|
|
37
|
+
_delete: { get: () => super._delete }
|
|
38
|
+
});
|
|
39
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
return _super._delete.call(this, channel);
|
|
41
|
+
});
|
|
42
|
+
}
|
|
27
43
|
}
|
|
28
44
|
exports.ChannelPublisherService = ChannelPublisherService;
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
+
import { RemoteItemDto } from 'podverse-helpers';
|
|
2
|
+
import { EntityManager } from 'typeorm';
|
|
1
3
|
import { ChannelPublisher } from '@orm/entities/channel/channelPublisher';
|
|
2
4
|
import { ChannelPublisherRemoteItem } from '@orm/entities/channel/channelPublisherRemoteItem';
|
|
3
5
|
import { BaseRemoteItemsService } from '@orm/services/base/baseRemoteItemsService';
|
|
4
|
-
type ChannelPublisherRemoteItemDto = {
|
|
5
|
-
feed_guid: string;
|
|
6
|
-
feed_url: string | null;
|
|
7
|
-
item_guid: string | null;
|
|
8
|
-
};
|
|
9
6
|
export declare class ChannelPublisherRemoteItemService extends BaseRemoteItemsService<ChannelPublisherRemoteItem, 'channel_publisher'> {
|
|
10
|
-
constructor();
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
constructor(transactionalEntityManager?: EntityManager);
|
|
8
|
+
getAll(channel_podroll: ChannelPublisher): Promise<ChannelPublisherRemoteItem[]>;
|
|
9
|
+
update(channel_publisher: ChannelPublisher, dto: RemoteItemDto): Promise<ChannelPublisherRemoteItem>;
|
|
10
|
+
updateMany(channel_publisher: ChannelPublisher, dtos: RemoteItemDto[]): Promise<ChannelPublisherRemoteItem[]>;
|
|
13
11
|
}
|
|
14
|
-
export {};
|
|
15
12
|
//# sourceMappingURL=channelPublisherRemoteItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channelPublisherRemoteItem.d.ts","sourceRoot":"","sources":["../../../src/services/channel/channelPublisherRemoteItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,EAAE,0BAA0B,EAAE,MAAM,kDAAkD,CAAC;AAC9F,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AAEnF,
|
|
1
|
+
{"version":3,"file":"channelPublisherRemoteItem.d.ts","sourceRoot":"","sources":["../../../src/services/channel/channelPublisherRemoteItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,EAAE,0BAA0B,EAAE,MAAM,kDAAkD,CAAC;AAC9F,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AAEnF,qBAAa,iCAAkC,SAAQ,sBAAsB,CAAC,0BAA0B,EAAE,mBAAmB,CAAC;gBAChH,0BAA0B,CAAC,EAAE,aAAa;IAIhD,MAAM,CAAC,eAAe,EAAE,gBAAgB,GAAG,OAAO,CAAC,0BAA0B,EAAE,CAAC;IAIhF,MAAM,CAAC,iBAAiB,EAAE,gBAAgB,EAAE,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,0BAA0B,CAAC;IAIpG,UAAU,CAAC,iBAAiB,EAAE,gBAAgB,EAAE,IAAI,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC,0BAA0B,EAAE,CAAC;CAGpH"}
|
|
@@ -13,8 +13,16 @@ exports.ChannelPublisherRemoteItemService = void 0;
|
|
|
13
13
|
const channelPublisherRemoteItem_1 = require("@orm/entities/channel/channelPublisherRemoteItem");
|
|
14
14
|
const baseRemoteItemsService_1 = require("@orm/services/base/baseRemoteItemsService");
|
|
15
15
|
class ChannelPublisherRemoteItemService extends baseRemoteItemsService_1.BaseRemoteItemsService {
|
|
16
|
-
constructor() {
|
|
17
|
-
super(channelPublisherRemoteItem_1.ChannelPublisherRemoteItem, 'channel_publisher');
|
|
16
|
+
constructor(transactionalEntityManager) {
|
|
17
|
+
super(channelPublisherRemoteItem_1.ChannelPublisherRemoteItem, 'channel_publisher', transactionalEntityManager);
|
|
18
|
+
}
|
|
19
|
+
getAll(channel_podroll) {
|
|
20
|
+
const _super = Object.create(null, {
|
|
21
|
+
getAll: { get: () => super.getAll }
|
|
22
|
+
});
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
return _super.getAll.call(this, channel_podroll);
|
|
25
|
+
});
|
|
18
26
|
}
|
|
19
27
|
update(channel_publisher, dto) {
|
|
20
28
|
const _super = Object.create(null, {
|
|
@@ -1,17 +1,13 @@
|
|
|
1
|
+
import { RemoteItemDto } from 'podverse-helpers';
|
|
1
2
|
import { EntityManager } from 'typeorm';
|
|
2
3
|
import { Channel } from '@orm/entities/channel/channel';
|
|
3
4
|
import { ChannelRemoteItem } from '@orm/entities/channel/channelRemoteItem';
|
|
4
5
|
import { BaseRemoteItemsService } from '@orm/services/base/baseRemoteItemsService';
|
|
5
|
-
type ChannelRemoteItemDto = {
|
|
6
|
-
feed_guid: string;
|
|
7
|
-
feed_url: string | null;
|
|
8
|
-
item_guid: string | null;
|
|
9
|
-
};
|
|
10
6
|
export declare class ChannelRemoteItemService extends BaseRemoteItemsService<ChannelRemoteItem, 'channel'> {
|
|
11
7
|
constructor(transactionalEntityManager?: EntityManager);
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
getAll(channel: Channel): Promise<ChannelRemoteItem[]>;
|
|
9
|
+
update(channel: Channel, dto: RemoteItemDto): Promise<ChannelRemoteItem>;
|
|
10
|
+
updateMany(channel: Channel, dtos: RemoteItemDto[]): Promise<ChannelRemoteItem[]>;
|
|
14
11
|
deleteAll(channel: Channel): Promise<void>;
|
|
15
12
|
}
|
|
16
|
-
export {};
|
|
17
13
|
//# sourceMappingURL=channelRemoteItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channelRemoteItem.d.ts","sourceRoot":"","sources":["../../../src/services/channel/channelRemoteItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AAEnF,
|
|
1
|
+
{"version":3,"file":"channelRemoteItem.d.ts","sourceRoot":"","sources":["../../../src/services/channel/channelRemoteItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AAEnF,qBAAa,wBAAyB,SAAQ,sBAAsB,CAAC,iBAAiB,EAAE,SAAS,CAAC;gBACpF,0BAA0B,CAAC,EAAE,aAAa;IAIhD,MAAM,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC;IAItD,MAAM,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAIxE,UAAU,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC;IAIjF,SAAS,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;CAGjD"}
|
|
@@ -16,6 +16,14 @@ class ChannelRemoteItemService extends baseRemoteItemsService_1.BaseRemoteItemsS
|
|
|
16
16
|
constructor(transactionalEntityManager) {
|
|
17
17
|
super(channelRemoteItem_1.ChannelRemoteItem, 'channel', transactionalEntityManager);
|
|
18
18
|
}
|
|
19
|
+
getAll(channel) {
|
|
20
|
+
const _super = Object.create(null, {
|
|
21
|
+
getAll: { get: () => super.getAll }
|
|
22
|
+
});
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
return _super.getAll.call(this, channel);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
19
27
|
update(channel, dto) {
|
|
20
28
|
const _super = Object.create(null, {
|
|
21
29
|
update: { get: () => super.update }
|
|
@@ -19,7 +19,7 @@ class ChannelSeasonService extends baseManyService_1.BaseManyService {
|
|
|
19
19
|
getChannelSeasonIndex(channel) {
|
|
20
20
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21
21
|
const channelSeasonIndex = {};
|
|
22
|
-
const channel_seasons = yield this.
|
|
22
|
+
const channel_seasons = yield this.repositoryRead.find({ where: { channel } });
|
|
23
23
|
for (const channel_season of channel_seasons) {
|
|
24
24
|
channelSeasonIndex[channel_season.number] = channel_season;
|
|
25
25
|
}
|