podverse-orm 5.0.0-beta.4 → 5.0.0-beta.6
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/package.json +4 -4
- package/dist/src/config/index.d.ts +0 -12
- package/dist/src/config/index.js +0 -15
- package/dist/src/db/index.d.ts +0 -2
- package/dist/src/db/index.js +0 -209
- package/dist/src/entities/account/account.d.ts +0 -8
- package/dist/src/entities/account/account.js +0 -47
- package/dist/src/entities/account/accountAdminRoles.d.ts +0 -7
- package/dist/src/entities/account/accountAdminRoles.js +0 -37
- package/dist/src/entities/account/accountAppStorePurchase.d.ts +0 -26
- package/dist/src/entities/account/accountAppStorePurchase.js +0 -113
- package/dist/src/entities/account/accountCredentials.d.ts +0 -7
- package/dist/src/entities/account/accountCredentials.js +0 -37
- package/dist/src/entities/account/accountFCMDevice.d.ts +0 -6
- package/dist/src/entities/account/accountFCMDevice.js +0 -33
- package/dist/src/entities/account/accountFollowingAccount.d.ts +0 -7
- package/dist/src/entities/account/accountFollowingAccount.js +0 -38
- package/dist/src/entities/account/accountFollowingAddByRSSChannel.d.ts +0 -8
- package/dist/src/entities/account/accountFollowingAddByRSSChannel.js +0 -41
- package/dist/src/entities/account/accountFollowingChannel.d.ts +0 -8
- package/dist/src/entities/account/accountFollowingChannel.js +0 -39
- package/dist/src/entities/account/accountFollowingPlaylist.d.ts +0 -8
- package/dist/src/entities/account/accountFollowingPlaylist.js +0 -39
- package/dist/src/entities/account/accountGooglePlayPurchase.d.ts +0 -14
- package/dist/src/entities/account/accountGooglePlayPurchase.js +0 -65
- package/dist/src/entities/account/accountMembership.d.ts +0 -4
- package/dist/src/entities/account/accountMembership.js +0 -27
- package/dist/src/entities/account/accountMembershipStatus.d.ts +0 -8
- package/dist/src/entities/account/accountMembershipStatus.js +0 -39
- package/dist/src/entities/account/accountNotification.d.ts +0 -8
- package/dist/src/entities/account/accountNotification.js +0 -39
- package/dist/src/entities/account/accountPayPalOrder.d.ts +0 -7
- package/dist/src/entities/account/accountPayPalOrder.js +0 -37
- package/dist/src/entities/account/accountProfile.d.ts +0 -7
- package/dist/src/entities/account/accountProfile.js +0 -37
- package/dist/src/entities/account/accountResetPassword.d.ts +0 -7
- package/dist/src/entities/account/accountResetPassword.js +0 -37
- package/dist/src/entities/account/accountUPDevice.d.ts +0 -8
- package/dist/src/entities/account/accountUPDevice.js +0 -41
- package/dist/src/entities/account/accountVerification.d.ts +0 -7
- package/dist/src/entities/account/accountVerification.js +0 -37
- package/dist/src/entities/category.d.ts +0 -6
- package/dist/src/entities/category.js +0 -35
- package/dist/src/entities/channel/channel.d.ts +0 -19
- package/dist/src/entities/channel/channel.js +0 -100
- package/dist/src/entities/channel/channelAbout.d.ts +0 -13
- package/dist/src/entities/channel/channelAbout.js +0 -59
- package/dist/src/entities/channel/channelCategory.d.ts +0 -6
- package/dist/src/entities/channel/channelCategory.js +0 -34
- package/dist/src/entities/channel/channelChat.d.ts +0 -9
- package/dist/src/entities/channel/channelChat.js +0 -45
- package/dist/src/entities/channel/channelDescription.d.ts +0 -6
- package/dist/src/entities/channel/channelDescription.js +0 -34
- package/dist/src/entities/channel/channelFunding.d.ts +0 -7
- package/dist/src/entities/channel/channelFunding.js +0 -37
- package/dist/src/entities/channel/channelImage.d.ts +0 -8
- package/dist/src/entities/channel/channelImage.js +0 -41
- package/dist/src/entities/channel/channelInternalSettings.d.ts +0 -6
- package/dist/src/entities/channel/channelInternalSettings.js +0 -33
- package/dist/src/entities/channel/channelItunesType.d.ts +0 -9
- package/dist/src/entities/channel/channelItunesType.js +0 -49
- package/dist/src/entities/channel/channelLicense.d.ts +0 -7
- package/dist/src/entities/channel/channelLicense.js +0 -38
- package/dist/src/entities/channel/channelLocation.d.ts +0 -8
- package/dist/src/entities/channel/channelLocation.js +0 -42
- package/dist/src/entities/channel/channelPerson.d.ts +0 -11
- package/dist/src/entities/channel/channelPerson.js +0 -64
- package/dist/src/entities/channel/channelPodroll.d.ts +0 -5
- package/dist/src/entities/channel/channelPodroll.js +0 -29
- package/dist/src/entities/channel/channelPodrollRemoteItem.d.ts +0 -9
- package/dist/src/entities/channel/channelPodrollRemoteItem.js +0 -45
- package/dist/src/entities/channel/channelPublisher.d.ts +0 -5
- package/dist/src/entities/channel/channelPublisher.js +0 -29
- package/dist/src/entities/channel/channelPublisherRemoteItem.d.ts +0 -9
- package/dist/src/entities/channel/channelPublisherRemoteItem.js +0 -45
- package/dist/src/entities/channel/channelRemoteItem.d.ts +0 -9
- package/dist/src/entities/channel/channelRemoteItem.js +0 -45
- package/dist/src/entities/channel/channelSeason.d.ts +0 -8
- package/dist/src/entities/channel/channelSeason.js +0 -42
- package/dist/src/entities/channel/channelSocialInteract.d.ts +0 -10
- package/dist/src/entities/channel/channelSocialInteract.js +0 -49
- package/dist/src/entities/channel/channelTrailer.d.ts +0 -12
- package/dist/src/entities/channel/channelTrailer.js +0 -55
- package/dist/src/entities/channel/channelTxt.d.ts +0 -7
- package/dist/src/entities/channel/channelTxt.js +0 -37
- package/dist/src/entities/channel/channelValue.d.ts +0 -8
- package/dist/src/entities/channel/channelValue.js +0 -41
- package/dist/src/entities/channel/channelValueRecipient.d.ts +0 -12
- package/dist/src/entities/channel/channelValueRecipient.js +0 -57
- package/dist/src/entities/clip.d.ts +0 -15
- package/dist/src/entities/clip.js +0 -71
- package/dist/src/entities/feed/feed.d.ts +0 -14
- package/dist/src/entities/feed/feed.js +0 -59
- package/dist/src/entities/feed/feedFlagStatus.d.ts +0 -14
- package/dist/src/entities/feed/feedFlagStatus.js +0 -52
- package/dist/src/entities/feed/feedLog.d.ts +0 -9
- package/dist/src/entities/feed/feedLog.js +0 -44
- package/dist/src/entities/item/item.d.ts +0 -18
- package/dist/src/entities/item/item.js +0 -82
- package/dist/src/entities/item/itemAbout.d.ts +0 -10
- package/dist/src/entities/item/itemAbout.js +0 -47
- package/dist/src/entities/item/itemChapter.d.ts +0 -13
- package/dist/src/entities/item/itemChapter.js +0 -67
- package/dist/src/entities/item/itemChapterLocation.d.ts +0 -8
- package/dist/src/entities/item/itemChapterLocation.js +0 -42
- package/dist/src/entities/item/itemChaptersFeed.d.ts +0 -9
- package/dist/src/entities/item/itemChaptersFeed.js +0 -42
- package/dist/src/entities/item/itemChaptersFeedLog.d.ts +0 -9
- package/dist/src/entities/item/itemChaptersFeedLog.js +0 -44
- package/dist/src/entities/item/itemChat.d.ts +0 -9
- package/dist/src/entities/item/itemChat.js +0 -45
- package/dist/src/entities/item/itemContentLink.d.ts +0 -7
- package/dist/src/entities/item/itemContentLink.js +0 -37
- package/dist/src/entities/item/itemDescription.d.ts +0 -6
- package/dist/src/entities/item/itemDescription.js +0 -34
- package/dist/src/entities/item/itemEnclosure.d.ts +0 -14
- package/dist/src/entities/item/itemEnclosure.js +0 -65
- package/dist/src/entities/item/itemEnclosureIntegrity.d.ts +0 -7
- package/dist/src/entities/item/itemEnclosureIntegrity.js +0 -37
- package/dist/src/entities/item/itemEnclosureSource.d.ts +0 -7
- package/dist/src/entities/item/itemEnclosureSource.js +0 -37
- package/dist/src/entities/item/itemFunding.d.ts +0 -7
- package/dist/src/entities/item/itemFunding.js +0 -37
- package/dist/src/entities/item/itemImage.d.ts +0 -8
- package/dist/src/entities/item/itemImage.js +0 -41
- package/dist/src/entities/item/itemItunesEpisodeType.d.ts +0 -10
- package/dist/src/entities/item/itemItunesEpisodeType.js +0 -48
- package/dist/src/entities/item/itemLicense.d.ts +0 -7
- package/dist/src/entities/item/itemLicense.js +0 -38
- package/dist/src/entities/item/itemLocation.d.ts +0 -8
- package/dist/src/entities/item/itemLocation.js +0 -42
- package/dist/src/entities/item/itemPerson.d.ts +0 -11
- package/dist/src/entities/item/itemPerson.js +0 -64
- package/dist/src/entities/item/itemSeason.d.ts +0 -9
- package/dist/src/entities/item/itemSeason.js +0 -43
- package/dist/src/entities/item/itemSeasonEpisode.d.ts +0 -7
- package/dist/src/entities/item/itemSeasonEpisode.js +0 -37
- package/dist/src/entities/item/itemSocialInteract.d.ts +0 -10
- package/dist/src/entities/item/itemSocialInteract.js +0 -49
- package/dist/src/entities/item/itemSoundbite.d.ts +0 -10
- package/dist/src/entities/item/itemSoundbite.js +0 -55
- package/dist/src/entities/item/itemTranscript.d.ts +0 -9
- package/dist/src/entities/item/itemTranscript.js +0 -45
- package/dist/src/entities/item/itemTxt.d.ts +0 -7
- package/dist/src/entities/item/itemTxt.js +0 -37
- package/dist/src/entities/item/itemValue.d.ts +0 -8
- package/dist/src/entities/item/itemValue.js +0 -41
- package/dist/src/entities/item/itemValueRecipient.d.ts +0 -12
- package/dist/src/entities/item/itemValueRecipient.js +0 -57
- package/dist/src/entities/item/itemValueTimeSplit.d.ts +0 -9
- package/dist/src/entities/item/itemValueTimeSplit.js +0 -45
- package/dist/src/entities/item/itemValueTimeSplitRecipient.d.ts +0 -12
- package/dist/src/entities/item/itemValueTimeSplitRecipient.js +0 -57
- package/dist/src/entities/item/itemValueTimeSplitRemoteItem.d.ts +0 -9
- package/dist/src/entities/item/itemValueTimeSplitRemoteItem.js +0 -45
- package/dist/src/entities/liveItem/liveItem.d.ts +0 -10
- package/dist/src/entities/liveItem/liveItem.js +0 -47
- package/dist/src/entities/liveItem/liveItemStatus.d.ts +0 -10
- package/dist/src/entities/liveItem/liveItemStatus.js +0 -43
- package/dist/src/entities/medium.d.ts +0 -26
- package/dist/src/entities/medium.js +0 -78
- package/dist/src/entities/membershipClaimToken.d.ts +0 -8
- package/dist/src/entities/membershipClaimToken.js +0 -41
- package/dist/src/entities/playlist/playlist.d.ts +0 -16
- package/dist/src/entities/playlist/playlist.js +0 -75
- package/dist/src/entities/playlist/playlistResourceBase.d.ts +0 -6
- package/dist/src/entities/playlist/playlistResourceBase.js +0 -34
- package/dist/src/entities/playlist/playlistResourceClip.d.ts +0 -5
- package/dist/src/entities/playlist/playlistResourceClip.js +0 -26
- package/dist/src/entities/playlist/playlistResourceItem.d.ts +0 -5
- package/dist/src/entities/playlist/playlistResourceItem.js +0 -26
- package/dist/src/entities/playlist/playlistResourceItemAddByRSS.d.ts +0 -4
- package/dist/src/entities/playlist/playlistResourceItemAddByRSS.js +0 -24
- package/dist/src/entities/playlist/playlistResourceItemChapter.d.ts +0 -5
- package/dist/src/entities/playlist/playlistResourceItemChapter.js +0 -26
- package/dist/src/entities/playlist/playlistResourceItemSoundbite.d.ts +0 -5
- package/dist/src/entities/playlist/playlistResourceItemSoundbite.js +0 -26
- package/dist/src/entities/queue/queue.d.ts +0 -7
- package/dist/src/entities/queue/queue.js +0 -35
- package/dist/src/entities/queue/queueResourceBase.d.ts +0 -9
- package/dist/src/entities/queue/queueResourceBase.js +0 -45
- package/dist/src/entities/queue/queueResourceClip.d.ts +0 -5
- package/dist/src/entities/queue/queueResourceClip.js +0 -27
- package/dist/src/entities/queue/queueResourceItem.d.ts +0 -5
- package/dist/src/entities/queue/queueResourceItem.js +0 -27
- package/dist/src/entities/queue/queueResourceItemAddByRSS.d.ts +0 -4
- package/dist/src/entities/queue/queueResourceItemAddByRSS.js +0 -25
- package/dist/src/entities/queue/queueResourceItemChapter.d.ts +0 -5
- package/dist/src/entities/queue/queueResourceItemChapter.js +0 -27
- package/dist/src/entities/queue/queueResourceItemSoundbite.d.ts +0 -5
- package/dist/src/entities/queue/queueResourceItemSoundbite.js +0 -27
- package/dist/src/entities/sharableStatus.d.ts +0 -4
- package/dist/src/entities/sharableStatus.js +0 -27
- package/dist/src/index.d.ts +0 -149
- package/dist/src/index.js +0 -165
- package/dist/src/lib/applyProperties.d.ts +0 -1
- package/dist/src/lib/applyProperties.js +0 -12
- package/dist/src/lib/filterImageDtosByHighestWidth.d.ts +0 -6
- package/dist/src/lib/filterImageDtosByHighestWidth.js +0 -17
- package/dist/src/lib/hasDifferentValues.d.ts +0 -1
- package/dist/src/lib/hasDifferentValues.js +0 -29
- package/dist/src/lib/typeORMTypes.d.ts +0 -2
- package/dist/src/lib/typeORMTypes.js +0 -5
- package/dist/src/services/base/baseManyService.d.ts +0 -17
- package/dist/src/services/base/baseManyService.js +0 -116
- package/dist/src/services/base/baseOneService.d.ts +0 -12
- package/dist/src/services/base/baseOneService.js +0 -55
- package/dist/src/services/base/baseRemoteItemsService.d.ts +0 -11
- package/dist/src/services/base/baseRemoteItemsService.js +0 -81
- package/dist/src/services/channel/channel.d.ts +0 -28
- package/dist/src/services/channel/channel.js +0 -58
- package/dist/src/services/channel/channelAbout.d.ts +0 -19
- package/dist/src/services/channel/channelAbout.js +0 -28
- package/dist/src/services/channel/channelChat.d.ts +0 -15
- package/dist/src/services/channel/channelChat.js +0 -28
- package/dist/src/services/channel/channelDescription.d.ts +0 -12
- package/dist/src/services/channel/channelDescription.js +0 -28
- package/dist/src/services/channel/channelFunding.d.ts +0 -14
- package/dist/src/services/channel/channelFunding.js +0 -38
- package/dist/src/services/channel/channelImage.d.ts +0 -14
- package/dist/src/services/channel/channelImage.js +0 -41
- package/dist/src/services/channel/channelLicense.d.ts +0 -13
- package/dist/src/services/channel/channelLicense.js +0 -28
- package/dist/src/services/channel/channelLocation.d.ts +0 -14
- package/dist/src/services/channel/channelLocation.js +0 -28
- package/dist/src/services/channel/channelPerson.d.ts +0 -17
- package/dist/src/services/channel/channelPerson.js +0 -38
- package/dist/src/services/channel/channelPodroll.d.ts +0 -10
- package/dist/src/services/channel/channelPodroll.js +0 -28
- package/dist/src/services/channel/channelPodrollRemoteItem.d.ts +0 -15
- package/dist/src/services/channel/channelPodrollRemoteItem.js +0 -36
- package/dist/src/services/channel/channelPublisher.d.ts +0 -9
- package/dist/src/services/channel/channelPublisher.js +0 -28
- package/dist/src/services/channel/channelPublisherRemoteItem.d.ts +0 -14
- package/dist/src/services/channel/channelPublisherRemoteItem.js +0 -36
- package/dist/src/services/channel/channelRemoteItem.d.ts +0 -15
- package/dist/src/services/channel/channelRemoteItem.js +0 -36
- package/dist/src/services/channel/channelSeason.d.ts +0 -15
- package/dist/src/services/channel/channelSeason.js +0 -48
- package/dist/src/services/channel/channelSocialInteract.d.ts +0 -17
- package/dist/src/services/channel/channelSocialInteract.js +0 -38
- package/dist/src/services/channel/channelTrailer.d.ts +0 -18
- package/dist/src/services/channel/channelTrailer.js +0 -38
- package/dist/src/services/channel/channelTxt.d.ts +0 -14
- package/dist/src/services/channel/channelTxt.js +0 -38
- package/dist/src/services/channel/channelValue.d.ts +0 -15
- package/dist/src/services/channel/channelValue.js +0 -38
- package/dist/src/services/channel/channelValueRecipient.d.ts +0 -19
- package/dist/src/services/channel/channelValueRecipient.js +0 -38
- package/dist/src/services/feed/feed.d.ts +0 -23
- package/dist/src/services/feed/feed.js +0 -92
- package/dist/src/services/feed/feedFlagStatus.d.ts +0 -5
- package/dist/src/services/feed/feedFlagStatus.js +0 -27
- package/dist/src/services/feed/feedLog.d.ts +0 -14
- package/dist/src/services/feed/feedLog.js +0 -28
- package/dist/src/services/item/item.d.ts +0 -28
- package/dist/src/services/item/item.js +0 -113
- package/dist/src/services/item/itemAbout.d.ts +0 -16
- package/dist/src/services/item/itemAbout.js +0 -28
- package/dist/src/services/item/itemChapter.d.ts +0 -16
- package/dist/src/services/item/itemChapter.js +0 -45
- package/dist/src/services/item/itemChaptersFeed.d.ts +0 -13
- package/dist/src/services/item/itemChaptersFeed.js +0 -28
- package/dist/src/services/item/itemChaptersFeedLog.d.ts +0 -14
- package/dist/src/services/item/itemChaptersFeedLog.js +0 -28
- package/dist/src/services/item/itemChat.d.ts +0 -15
- package/dist/src/services/item/itemChat.js +0 -28
- package/dist/src/services/item/itemContentLink.d.ts +0 -13
- package/dist/src/services/item/itemContentLink.js +0 -38
- package/dist/src/services/item/itemDescription.d.ts +0 -12
- package/dist/src/services/item/itemDescription.js +0 -28
- package/dist/src/services/item/itemEnclosure.d.ts +0 -21
- package/dist/src/services/item/itemEnclosure.js +0 -38
- package/dist/src/services/item/itemEnclosureIntegrity.d.ts +0 -13
- package/dist/src/services/item/itemEnclosureIntegrity.js +0 -28
- package/dist/src/services/item/itemEnclosureSource.d.ts +0 -14
- package/dist/src/services/item/itemEnclosureSource.js +0 -38
- package/dist/src/services/item/itemFunding.d.ts +0 -13
- package/dist/src/services/item/itemFunding.js +0 -38
- package/dist/src/services/item/itemImage.d.ts +0 -14
- package/dist/src/services/item/itemImage.js +0 -41
- package/dist/src/services/item/itemLicense.d.ts +0 -13
- package/dist/src/services/item/itemLicense.js +0 -28
- package/dist/src/services/item/itemLocation.d.ts +0 -14
- package/dist/src/services/item/itemLocation.js +0 -28
- package/dist/src/services/item/itemPerson.d.ts +0 -17
- package/dist/src/services/item/itemPerson.js +0 -38
- package/dist/src/services/item/itemSeason.d.ts +0 -13
- package/dist/src/services/item/itemSeason.js +0 -28
- package/dist/src/services/item/itemSeasonEpisode.d.ts +0 -13
- package/dist/src/services/item/itemSeasonEpisode.js +0 -28
- package/dist/src/services/item/itemSocialInteract.d.ts +0 -17
- package/dist/src/services/item/itemSocialInteract.js +0 -38
- package/dist/src/services/item/itemSoundbite.d.ts +0 -16
- package/dist/src/services/item/itemSoundbite.js +0 -43
- package/dist/src/services/item/itemTranscript.d.ts +0 -14
- package/dist/src/services/item/itemTranscript.js +0 -38
- package/dist/src/services/item/itemTxt.d.ts +0 -14
- package/dist/src/services/item/itemTxt.js +0 -38
- package/dist/src/services/item/itemValue.d.ts +0 -15
- package/dist/src/services/item/itemValue.js +0 -38
- package/dist/src/services/item/itemValueRecipient.d.ts +0 -19
- package/dist/src/services/item/itemValueRecipient.js +0 -38
- package/dist/src/services/item/itemValueTimeSplit.d.ts +0 -16
- package/dist/src/services/item/itemValueTimeSplit.js +0 -38
- package/dist/src/services/item/itemValueTimeSplitRecipient.d.ts +0 -19
- package/dist/src/services/item/itemValueTimeSplitRecipient.js +0 -38
- package/dist/src/services/item/itemValueTimeSplitRemoteItem.d.ts +0 -14
- package/dist/src/services/item/itemValueTimeSplitRemoteItem.js +0 -28
- package/dist/src/services/liveItem/liveItem.d.ts +0 -14
- package/dist/src/services/liveItem/liveItem.js +0 -28
- package/dist/src/services/medium.d.ts +0 -5
- package/dist/src/services/medium.js +0 -25
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Channel } from '@/entities/channel/channel';
|
|
2
|
-
import { ChannelSeason } from '@/entities/channel/channelSeason';
|
|
3
|
-
import { BaseManyService } from '@/services/base/baseManyService';
|
|
4
|
-
type ChannelSeasonDto = {
|
|
5
|
-
number: number;
|
|
6
|
-
name: string | null;
|
|
7
|
-
};
|
|
8
|
-
export type ChannelSeasonIndex = Record<number, ChannelSeason>;
|
|
9
|
-
export declare class ChannelSeasonService extends BaseManyService<ChannelSeason, 'channel'> {
|
|
10
|
-
constructor();
|
|
11
|
-
getChannelSeasonIndex(channel: Channel): Promise<ChannelSeasonIndex>;
|
|
12
|
-
update(channel: Channel, dto: ChannelSeasonDto): Promise<ChannelSeason>;
|
|
13
|
-
updateMany(channel: Channel, dtos: ChannelSeasonDto[]): Promise<ChannelSeason[]>;
|
|
14
|
-
}
|
|
15
|
-
export {};
|
|
@@ -1,48 +0,0 @@
|
|
|
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.ChannelSeasonService = void 0;
|
|
13
|
-
const channelSeason_1 = require("@/entities/channel/channelSeason");
|
|
14
|
-
const baseManyService_1 = require("@/services/base/baseManyService");
|
|
15
|
-
class ChannelSeasonService extends baseManyService_1.BaseManyService {
|
|
16
|
-
constructor() {
|
|
17
|
-
super(channelSeason_1.ChannelSeason, 'channel');
|
|
18
|
-
}
|
|
19
|
-
getChannelSeasonIndex(channel) {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const channelSeasonIndex = {};
|
|
22
|
-
const channel_seasons = yield this.repository.find({ where: { channel } });
|
|
23
|
-
for (const channel_season of channel_seasons) {
|
|
24
|
-
channelSeasonIndex[channel_season.number] = channel_season;
|
|
25
|
-
}
|
|
26
|
-
return channelSeasonIndex;
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
update(channel, dto) {
|
|
30
|
-
const _super = Object.create(null, {
|
|
31
|
-
_update: { get: () => super._update }
|
|
32
|
-
});
|
|
33
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
const whereKeys = ['number'];
|
|
35
|
-
return _super._update.call(this, channel, whereKeys, dto);
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
updateMany(channel, dtos) {
|
|
39
|
-
const _super = Object.create(null, {
|
|
40
|
-
_updateMany: { get: () => super._updateMany }
|
|
41
|
-
});
|
|
42
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
-
const whereKeys = ['number'];
|
|
44
|
-
return _super._updateMany.call(this, channel, whereKeys, dtos);
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
exports.ChannelSeasonService = ChannelSeasonService;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { EntityManager } from 'typeorm';
|
|
2
|
-
import { Channel } from '@/entities/channel/channel';
|
|
3
|
-
import { ChannelSocialInteract } from '@/entities/channel/channelSocialInteract';
|
|
4
|
-
import { BaseManyService } from '@/services/base/baseManyService';
|
|
5
|
-
type ChannelSocialInteractDto = {
|
|
6
|
-
protocol: string;
|
|
7
|
-
uri: string;
|
|
8
|
-
account_id: string | null;
|
|
9
|
-
account_url: string | null;
|
|
10
|
-
priority: number | null;
|
|
11
|
-
};
|
|
12
|
-
export declare class ChannelSocialInteractService extends BaseManyService<ChannelSocialInteract, 'channel'> {
|
|
13
|
-
constructor(transactionalEntityManager?: EntityManager);
|
|
14
|
-
update(channel: Channel, dto: ChannelSocialInteractDto): Promise<ChannelSocialInteract>;
|
|
15
|
-
updateMany(channel: Channel, dtos: ChannelSocialInteractDto[]): Promise<ChannelSocialInteract[]>;
|
|
16
|
-
}
|
|
17
|
-
export {};
|
|
@@ -1,38 +0,0 @@
|
|
|
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.ChannelSocialInteractService = void 0;
|
|
13
|
-
const channelSocialInteract_1 = require("@/entities/channel/channelSocialInteract");
|
|
14
|
-
const baseManyService_1 = require("@/services/base/baseManyService");
|
|
15
|
-
class ChannelSocialInteractService extends baseManyService_1.BaseManyService {
|
|
16
|
-
constructor(transactionalEntityManager) {
|
|
17
|
-
super(channelSocialInteract_1.ChannelSocialInteract, 'channel', transactionalEntityManager);
|
|
18
|
-
}
|
|
19
|
-
update(channel, dto) {
|
|
20
|
-
const _super = Object.create(null, {
|
|
21
|
-
_update: { get: () => super._update }
|
|
22
|
-
});
|
|
23
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
const whereKeys = ['uri'];
|
|
25
|
-
return _super._update.call(this, channel, whereKeys, dto);
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
updateMany(channel, dtos) {
|
|
29
|
-
const _super = Object.create(null, {
|
|
30
|
-
_updateMany: { get: () => super._updateMany }
|
|
31
|
-
});
|
|
32
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
-
const whereKeys = ['uri'];
|
|
34
|
-
return _super._updateMany.call(this, channel, whereKeys, dtos);
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
exports.ChannelSocialInteractService = ChannelSocialInteractService;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { EntityManager } from 'typeorm';
|
|
2
|
-
import { Channel } from '@/entities/channel/channel';
|
|
3
|
-
import { ChannelSeason } from '@/entities/channel/channelSeason';
|
|
4
|
-
import { ChannelTrailer } from '@/entities/channel/channelTrailer';
|
|
5
|
-
import { BaseManyService } from '@/services/base/baseManyService';
|
|
6
|
-
export type ChannelTrailerDto = {
|
|
7
|
-
url: string;
|
|
8
|
-
pubdate: Date;
|
|
9
|
-
title: string | null;
|
|
10
|
-
length: number | null;
|
|
11
|
-
type: string | null;
|
|
12
|
-
channel_season: ChannelSeason | null;
|
|
13
|
-
};
|
|
14
|
-
export declare class ChannelTrailerService extends BaseManyService<ChannelTrailer, 'channel'> {
|
|
15
|
-
constructor(transactionalEntityManager?: EntityManager);
|
|
16
|
-
update(channel: Channel, dto: ChannelTrailerDto): Promise<ChannelTrailer>;
|
|
17
|
-
updateMany(channel: Channel, dtos: ChannelTrailerDto[]): Promise<ChannelTrailer[]>;
|
|
18
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
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.ChannelTrailerService = void 0;
|
|
13
|
-
const channelTrailer_1 = require("@/entities/channel/channelTrailer");
|
|
14
|
-
const baseManyService_1 = require("@/services/base/baseManyService");
|
|
15
|
-
class ChannelTrailerService extends baseManyService_1.BaseManyService {
|
|
16
|
-
constructor(transactionalEntityManager) {
|
|
17
|
-
super(channelTrailer_1.ChannelTrailer, 'channel', transactionalEntityManager);
|
|
18
|
-
}
|
|
19
|
-
update(channel, dto) {
|
|
20
|
-
const _super = Object.create(null, {
|
|
21
|
-
_update: { get: () => super._update }
|
|
22
|
-
});
|
|
23
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
const whereKeys = ['url'];
|
|
25
|
-
return _super._update.call(this, channel, whereKeys, dto);
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
updateMany(channel, dtos) {
|
|
29
|
-
const _super = Object.create(null, {
|
|
30
|
-
_updateMany: { get: () => super._updateMany }
|
|
31
|
-
});
|
|
32
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
-
const whereKeys = ['url'];
|
|
34
|
-
return _super._updateMany.call(this, channel, whereKeys, dtos, { relations: ['channel_season'] });
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
exports.ChannelTrailerService = ChannelTrailerService;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { EntityManager } from 'typeorm';
|
|
2
|
-
import { Channel } from '@/entities/channel/channel';
|
|
3
|
-
import { ChannelTxt } from '@/entities/channel/channelTxt';
|
|
4
|
-
import { BaseManyService } from '@/services/base/baseManyService';
|
|
5
|
-
type ChannelTxtDto = {
|
|
6
|
-
purpose: string | null;
|
|
7
|
-
value: string;
|
|
8
|
-
};
|
|
9
|
-
export declare class ChannelTxtService extends BaseManyService<ChannelTxt, 'channel'> {
|
|
10
|
-
constructor(transactionalEntityManager?: EntityManager);
|
|
11
|
-
update(channel: Channel, dto: ChannelTxtDto): Promise<ChannelTxt>;
|
|
12
|
-
updateMany(channel: Channel, dtos: ChannelTxtDto[]): Promise<ChannelTxt[]>;
|
|
13
|
-
}
|
|
14
|
-
export {};
|
|
@@ -1,38 +0,0 @@
|
|
|
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.ChannelTxtService = void 0;
|
|
13
|
-
const channelTxt_1 = require("@/entities/channel/channelTxt");
|
|
14
|
-
const baseManyService_1 = require("@/services/base/baseManyService");
|
|
15
|
-
class ChannelTxtService extends baseManyService_1.BaseManyService {
|
|
16
|
-
constructor(transactionalEntityManager) {
|
|
17
|
-
super(channelTxt_1.ChannelTxt, 'channel', transactionalEntityManager);
|
|
18
|
-
}
|
|
19
|
-
update(channel, dto) {
|
|
20
|
-
const _super = Object.create(null, {
|
|
21
|
-
_update: { get: () => super._update }
|
|
22
|
-
});
|
|
23
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
const whereKeys = ['value'];
|
|
25
|
-
return _super._update.call(this, channel, whereKeys, dto);
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
updateMany(channel, dtos) {
|
|
29
|
-
const _super = Object.create(null, {
|
|
30
|
-
_updateMany: { get: () => super._updateMany }
|
|
31
|
-
});
|
|
32
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
-
const whereKeys = ['value'];
|
|
34
|
-
return _super._updateMany.call(this, channel, whereKeys, dtos);
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
exports.ChannelTxtService = ChannelTxtService;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { EntityManager } from 'typeorm';
|
|
2
|
-
import { Channel } from '@/entities/channel/channel';
|
|
3
|
-
import { ChannelValue } from '@/entities/channel/channelValue';
|
|
4
|
-
import { BaseManyService } from '@/services/base/baseManyService';
|
|
5
|
-
type ChannelValueDto = {
|
|
6
|
-
type: string;
|
|
7
|
-
method: string;
|
|
8
|
-
suggested: number | null;
|
|
9
|
-
};
|
|
10
|
-
export declare class ChannelValueService extends BaseManyService<ChannelValue, 'channel'> {
|
|
11
|
-
constructor(transactionalEntityManager?: EntityManager);
|
|
12
|
-
update(channel: Channel, dto: ChannelValueDto): Promise<ChannelValue>;
|
|
13
|
-
updateMany(channel: Channel, dtos: ChannelValueDto[]): Promise<ChannelValue[]>;
|
|
14
|
-
}
|
|
15
|
-
export {};
|
|
@@ -1,38 +0,0 @@
|
|
|
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.ChannelValueService = void 0;
|
|
13
|
-
const channelValue_1 = require("@/entities/channel/channelValue");
|
|
14
|
-
const baseManyService_1 = require("@/services/base/baseManyService");
|
|
15
|
-
class ChannelValueService extends baseManyService_1.BaseManyService {
|
|
16
|
-
constructor(transactionalEntityManager) {
|
|
17
|
-
super(channelValue_1.ChannelValue, 'channel', transactionalEntityManager);
|
|
18
|
-
}
|
|
19
|
-
update(channel, dto) {
|
|
20
|
-
const _super = Object.create(null, {
|
|
21
|
-
_update: { get: () => super._update }
|
|
22
|
-
});
|
|
23
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
const whereKeys = ['type', 'method'];
|
|
25
|
-
return _super._update.call(this, channel, whereKeys, dto);
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
updateMany(channel, dtos) {
|
|
29
|
-
const _super = Object.create(null, {
|
|
30
|
-
_updateMany: { get: () => super._updateMany }
|
|
31
|
-
});
|
|
32
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
-
const whereKeys = ['type', 'method'];
|
|
34
|
-
return _super._updateMany.call(this, channel, whereKeys, dtos);
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
exports.ChannelValueService = ChannelValueService;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { EntityManager } from 'typeorm';
|
|
2
|
-
import { ChannelValue } from '@/entities/channel/channelValue';
|
|
3
|
-
import { ChannelValueRecipient } from '@/entities/channel/channelValueRecipient';
|
|
4
|
-
import { BaseManyService } from '@/services/base/baseManyService';
|
|
5
|
-
type ChannelValueRecipientDto = {
|
|
6
|
-
type: string;
|
|
7
|
-
address: string;
|
|
8
|
-
split: number;
|
|
9
|
-
name: string | null;
|
|
10
|
-
custom_key: string | null;
|
|
11
|
-
custom_value: string | null;
|
|
12
|
-
fee: boolean;
|
|
13
|
-
};
|
|
14
|
-
export declare class ChannelValueRecipientService extends BaseManyService<ChannelValueRecipient, 'channel_value'> {
|
|
15
|
-
constructor(transactionalEntityManager?: EntityManager);
|
|
16
|
-
update(channel_value: ChannelValue, dto: ChannelValueRecipientDto): Promise<ChannelValueRecipient>;
|
|
17
|
-
updateMany(channel_value: ChannelValue, dtos: ChannelValueRecipientDto[]): Promise<ChannelValueRecipient[]>;
|
|
18
|
-
}
|
|
19
|
-
export {};
|
|
@@ -1,38 +0,0 @@
|
|
|
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.ChannelValueRecipientService = void 0;
|
|
13
|
-
const channelValueRecipient_1 = require("@/entities/channel/channelValueRecipient");
|
|
14
|
-
const baseManyService_1 = require("@/services/base/baseManyService");
|
|
15
|
-
class ChannelValueRecipientService extends baseManyService_1.BaseManyService {
|
|
16
|
-
constructor(transactionalEntityManager) {
|
|
17
|
-
super(channelValueRecipient_1.ChannelValueRecipient, 'channel_value', transactionalEntityManager);
|
|
18
|
-
}
|
|
19
|
-
update(channel_value, dto) {
|
|
20
|
-
const _super = Object.create(null, {
|
|
21
|
-
_update: { get: () => super._update }
|
|
22
|
-
});
|
|
23
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
const whereKeys = ['type', 'address', 'custom_key', 'custom_value'];
|
|
25
|
-
return _super._update.call(this, channel_value, whereKeys, dto);
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
updateMany(channel_value, dtos) {
|
|
29
|
-
const _super = Object.create(null, {
|
|
30
|
-
_updateMany: { get: () => super._updateMany }
|
|
31
|
-
});
|
|
32
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
-
const whereKeys = ['type', 'address', 'custom_key', 'custom_value'];
|
|
34
|
-
return _super._updateMany.call(this, channel_value, whereKeys, dtos);
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
exports.ChannelValueRecipientService = ChannelValueRecipientService;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Feed } from '@/entities/feed/feed';
|
|
2
|
-
type FeedCreateDto = {
|
|
3
|
-
url: string;
|
|
4
|
-
podcast_index_id: number;
|
|
5
|
-
};
|
|
6
|
-
type FeedUpdateDto = {
|
|
7
|
-
url?: string;
|
|
8
|
-
feed_flag_status_id?: number;
|
|
9
|
-
is_parsing?: Date | null;
|
|
10
|
-
parsing_priority?: number;
|
|
11
|
-
last_parsed_file_hash?: string | null;
|
|
12
|
-
container_id?: string | null;
|
|
13
|
-
};
|
|
14
|
-
export declare class FeedService {
|
|
15
|
-
private repository;
|
|
16
|
-
get(id: number): Promise<Feed | null>;
|
|
17
|
-
getAll(): Promise<Feed[]>;
|
|
18
|
-
getBy({ url, podcast_index_id }: FeedCreateDto): Promise<Feed | null>;
|
|
19
|
-
getOrCreate({ url, podcast_index_id }: FeedCreateDto): Promise<Feed>;
|
|
20
|
-
create({ url, podcast_index_id }: FeedCreateDto): Promise<Feed>;
|
|
21
|
-
update(id: number, dto: FeedUpdateDto): Promise<Feed>;
|
|
22
|
-
}
|
|
23
|
-
export {};
|
|
@@ -1,92 +0,0 @@
|
|
|
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.FeedService = void 0;
|
|
13
|
-
const db_1 = require("@/db");
|
|
14
|
-
const feed_1 = require("@/entities/feed/feed");
|
|
15
|
-
const feedFlagStatus_1 = require("@/entities/feed/feedFlagStatus");
|
|
16
|
-
const channel_1 = require("@/services/channel/channel");
|
|
17
|
-
const feedFlagStatus_2 = require("./feedFlagStatus");
|
|
18
|
-
const applyProperties_1 = require("@/lib/applyProperties");
|
|
19
|
-
const channelService = new channel_1.ChannelService();
|
|
20
|
-
class FeedService {
|
|
21
|
-
constructor() {
|
|
22
|
-
this.repository = db_1.AppDataSource.getRepository(feed_1.Feed);
|
|
23
|
-
}
|
|
24
|
-
get(id) {
|
|
25
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
-
return this.repository.findOne({ where: { id } });
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
getAll() {
|
|
30
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
31
|
-
return yield this.repository.find({
|
|
32
|
-
relations: ['channel']
|
|
33
|
-
});
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
getBy(_a) {
|
|
37
|
-
return __awaiter(this, arguments, void 0, function* ({ url, podcast_index_id }) {
|
|
38
|
-
return this.repository.findOne({
|
|
39
|
-
where: {
|
|
40
|
-
url,
|
|
41
|
-
channel: {
|
|
42
|
-
podcast_index_id
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
getOrCreate(_a) {
|
|
49
|
-
return __awaiter(this, arguments, void 0, function* ({ url, podcast_index_id }) {
|
|
50
|
-
const feed = yield this.repository.findOne({
|
|
51
|
-
where: { url },
|
|
52
|
-
relations: ['feed_flag_status', 'feed_log'],
|
|
53
|
-
});
|
|
54
|
-
if (feed) {
|
|
55
|
-
return feed;
|
|
56
|
-
}
|
|
57
|
-
return this.create({ url, podcast_index_id });
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
create(_a) {
|
|
61
|
-
return __awaiter(this, arguments, void 0, function* ({ url, podcast_index_id }) {
|
|
62
|
-
const feed = new feed_1.Feed();
|
|
63
|
-
feed.url = url;
|
|
64
|
-
const feedFlagStatusService = new feedFlagStatus_2.FeedFlagStatusService();
|
|
65
|
-
const feed_flag_status = yield feedFlagStatusService.get(feedFlagStatus_1.FeedFlagStatusStatusEnum.None);
|
|
66
|
-
if (feed_flag_status) {
|
|
67
|
-
feed.feed_flag_status = feed_flag_status;
|
|
68
|
-
}
|
|
69
|
-
feed.is_parsing = null;
|
|
70
|
-
feed.parsing_priority = 1;
|
|
71
|
-
feed.container_id = '';
|
|
72
|
-
const newFeed = yield this.repository.save(feed);
|
|
73
|
-
const channel = yield channelService.getOrCreateByPodcastIndexId({
|
|
74
|
-
feed: newFeed,
|
|
75
|
-
podcast_index_id
|
|
76
|
-
});
|
|
77
|
-
newFeed.channel = channel;
|
|
78
|
-
return this.repository.save(newFeed);
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
update(id, dto) {
|
|
82
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
83
|
-
let feed = yield this.get(id);
|
|
84
|
-
if (!feed) {
|
|
85
|
-
throw new Error(`FeedService.update: feed ${id} not found`);
|
|
86
|
-
}
|
|
87
|
-
feed = (0, applyProperties_1.applyProperties)(feed, dto);
|
|
88
|
-
return this.repository.save(feed);
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
exports.FeedService = FeedService;
|
|
@@ -1,27 +0,0 @@
|
|
|
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.FeedFlagStatusService = void 0;
|
|
13
|
-
const db_1 = require("@/db");
|
|
14
|
-
const feedFlagStatus_1 = require("@/entities/feed/feedFlagStatus");
|
|
15
|
-
class FeedFlagStatusService {
|
|
16
|
-
constructor() {
|
|
17
|
-
this.repository = db_1.AppDataSource.getRepository(feedFlagStatus_1.FeedFlagStatus);
|
|
18
|
-
}
|
|
19
|
-
get(id) {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
return yield this.repository.findOne({
|
|
22
|
-
where: { id },
|
|
23
|
-
});
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.FeedFlagStatusService = FeedFlagStatusService;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Feed } from '@/entities/feed/feed';
|
|
2
|
-
import { FeedLog } from '@/entities/feed/feedLog';
|
|
3
|
-
import { BaseOneService } from '@/services/base/baseOneService';
|
|
4
|
-
type FeedLogDto = {
|
|
5
|
-
last_http_status?: number | null;
|
|
6
|
-
last_good_http_status_time?: Date | null;
|
|
7
|
-
last_finished_parse_time?: Date | null;
|
|
8
|
-
parse_errors?: number;
|
|
9
|
-
};
|
|
10
|
-
export declare class FeedLogService extends BaseOneService<FeedLog, 'feed'> {
|
|
11
|
-
constructor();
|
|
12
|
-
update(feed: Feed, dto: FeedLogDto): Promise<FeedLog>;
|
|
13
|
-
}
|
|
14
|
-
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
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.FeedLogService = void 0;
|
|
13
|
-
const feedLog_1 = require("@/entities/feed/feedLog");
|
|
14
|
-
const baseOneService_1 = require("@/services/base/baseOneService");
|
|
15
|
-
class FeedLogService extends baseOneService_1.BaseOneService {
|
|
16
|
-
constructor() {
|
|
17
|
-
super(feedLog_1.FeedLog, 'feed');
|
|
18
|
-
}
|
|
19
|
-
update(feed, dto) {
|
|
20
|
-
const _super = Object.create(null, {
|
|
21
|
-
_update: { get: () => super._update }
|
|
22
|
-
});
|
|
23
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
return _super._update.call(this, feed, dto);
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
exports.FeedLogService = FeedLogService;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Channel } from '@/entities/channel/channel';
|
|
2
|
-
import { Item } from '@/entities/item/item';
|
|
3
|
-
import { FindManyOptions, Repository } from 'typeorm';
|
|
4
|
-
type ItemDto = {
|
|
5
|
-
title: string | null;
|
|
6
|
-
pubdate: Date | null;
|
|
7
|
-
guid: string | null;
|
|
8
|
-
guid_enclosure_url: string;
|
|
9
|
-
};
|
|
10
|
-
type ItemGetByDto = {
|
|
11
|
-
guid: string | null;
|
|
12
|
-
guid_enclosure_url: string;
|
|
13
|
-
};
|
|
14
|
-
export declare class ItemService {
|
|
15
|
-
protected repository: Repository<Item>;
|
|
16
|
-
constructor();
|
|
17
|
-
get(id: number): Promise<Item | null>;
|
|
18
|
-
_getByIdText(id_text: string): Promise<Item | null>;
|
|
19
|
-
getBy(channel: Channel, dto: ItemGetByDto): Promise<Item | null>;
|
|
20
|
-
getByGuid(channel: Channel, guid: string): Promise<Item | null>;
|
|
21
|
-
getByEnclosureUrl(channel: Channel, guid_enclosure_url: string): Promise<Item | null>;
|
|
22
|
-
getAllItemsByChannel(channel: Channel, options?: FindManyOptions<Item>): Promise<Item[]>;
|
|
23
|
-
getAllItemsWithLiveItemByChannel(channel: Channel, options?: FindManyOptions<Item>): Promise<Item[]>;
|
|
24
|
-
update(channel: Channel, dto: ItemDto): Promise<Item>;
|
|
25
|
-
delete(id: number): Promise<void>;
|
|
26
|
-
deleteMany(ids: number[]): Promise<void>;
|
|
27
|
-
}
|
|
28
|
-
export {};
|