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,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.ItemFundingService = void 0;
|
|
13
|
-
const itemFunding_1 = require("@/entities/item/itemFunding");
|
|
14
|
-
const baseManyService_1 = require("@/services/base/baseManyService");
|
|
15
|
-
class ItemFundingService extends baseManyService_1.BaseManyService {
|
|
16
|
-
constructor() {
|
|
17
|
-
super(itemFunding_1.ItemFunding, 'item');
|
|
18
|
-
}
|
|
19
|
-
update(item, 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, item, whereKeys, dto);
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
updateMany(item, 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, item, whereKeys, dtos);
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
exports.ItemFundingService = ItemFundingService;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { EntityManager } from 'typeorm';
|
|
2
|
-
import { Item } from '@/entities/item/item';
|
|
3
|
-
import { ItemImage } from '@/entities/item/itemImage';
|
|
4
|
-
import { BaseManyService } from '@/services/base/baseManyService';
|
|
5
|
-
type ItemImageDto = {
|
|
6
|
-
url: string;
|
|
7
|
-
image_width_size: number | null;
|
|
8
|
-
};
|
|
9
|
-
export declare class ItemImageService extends BaseManyService<ItemImage, 'item'> {
|
|
10
|
-
constructor(transactionalEntityManager?: EntityManager);
|
|
11
|
-
update(item: Item, dto: ItemImageDto): Promise<ItemImage>;
|
|
12
|
-
updateMany(item: Item, dtos: ItemImageDto[]): Promise<ItemImage[]>;
|
|
13
|
-
}
|
|
14
|
-
export {};
|
|
@@ -1,41 +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.ItemImageService = void 0;
|
|
13
|
-
const itemImage_1 = require("@/entities/item/itemImage");
|
|
14
|
-
const filterImageDtosByHighestWidth_1 = require("@/lib/filterImageDtosByHighestWidth");
|
|
15
|
-
const baseManyService_1 = require("@/services/base/baseManyService");
|
|
16
|
-
class ItemImageService extends baseManyService_1.BaseManyService {
|
|
17
|
-
constructor(transactionalEntityManager) {
|
|
18
|
-
super(itemImage_1.ItemImage, 'item', transactionalEntityManager);
|
|
19
|
-
}
|
|
20
|
-
update(item, dto) {
|
|
21
|
-
const _super = Object.create(null, {
|
|
22
|
-
_update: { get: () => super._update }
|
|
23
|
-
});
|
|
24
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
25
|
-
const whereKeys = ['url'];
|
|
26
|
-
return _super._update.call(this, item, whereKeys, dto);
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
updateMany(item, dtos) {
|
|
30
|
-
const _super = Object.create(null, {
|
|
31
|
-
_updateMany: { get: () => super._updateMany }
|
|
32
|
-
});
|
|
33
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
// TODO: adding image shrinking if an image < 500px is not found
|
|
35
|
-
const filteredDtos = (0, filterImageDtosByHighestWidth_1.filterDtosByHighestWidth)(dtos);
|
|
36
|
-
const whereKeys = ['url'];
|
|
37
|
-
return _super._updateMany.call(this, item, whereKeys, filteredDtos);
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
exports.ItemImageService = ItemImageService;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { EntityManager } from 'typeorm';
|
|
2
|
-
import { Item } from '@/entities/item/item';
|
|
3
|
-
import { ItemLicense } from '@/entities/item/itemLicense';
|
|
4
|
-
import { BaseOneService } from '@/services/base/baseOneService';
|
|
5
|
-
type ItemLicenseDto = {
|
|
6
|
-
identifier: string;
|
|
7
|
-
url: string | null;
|
|
8
|
-
};
|
|
9
|
-
export declare class ItemLicenseService extends BaseOneService<ItemLicense, 'item'> {
|
|
10
|
-
constructor(transactionalEntityManager?: EntityManager);
|
|
11
|
-
update(item: Item, dto: ItemLicenseDto): Promise<ItemLicense>;
|
|
12
|
-
}
|
|
13
|
-
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.ItemLicenseService = void 0;
|
|
13
|
-
const itemLicense_1 = require("@/entities/item/itemLicense");
|
|
14
|
-
const baseOneService_1 = require("@/services/base/baseOneService");
|
|
15
|
-
class ItemLicenseService extends baseOneService_1.BaseOneService {
|
|
16
|
-
constructor(transactionalEntityManager) {
|
|
17
|
-
super(itemLicense_1.ItemLicense, 'item', transactionalEntityManager);
|
|
18
|
-
}
|
|
19
|
-
update(item, 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, item, dto);
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
exports.ItemLicenseService = ItemLicenseService;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { EntityManager } from 'typeorm';
|
|
2
|
-
import { Item } from '@/entities/item/item';
|
|
3
|
-
import { ItemLocation } from '@/entities/item/itemLocation';
|
|
4
|
-
import { BaseOneService } from '@/services/base/baseOneService';
|
|
5
|
-
type ItemLocationDto = {
|
|
6
|
-
geo: string | null;
|
|
7
|
-
osm: string | null;
|
|
8
|
-
name: string | null;
|
|
9
|
-
};
|
|
10
|
-
export declare class ItemLocationService extends BaseOneService<ItemLocation, 'item'> {
|
|
11
|
-
constructor(transactionalEntityManager?: EntityManager);
|
|
12
|
-
update(item: Item, dto: ItemLocationDto): Promise<ItemLocation>;
|
|
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.ItemLocationService = void 0;
|
|
13
|
-
const itemLocation_1 = require("@/entities/item/itemLocation");
|
|
14
|
-
const baseOneService_1 = require("@/services/base/baseOneService");
|
|
15
|
-
class ItemLocationService extends baseOneService_1.BaseOneService {
|
|
16
|
-
constructor(transactionalEntityManager) {
|
|
17
|
-
super(itemLocation_1.ItemLocation, 'item', transactionalEntityManager);
|
|
18
|
-
}
|
|
19
|
-
update(item, 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, item, dto);
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
exports.ItemLocationService = ItemLocationService;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { EntityManager } from 'typeorm';
|
|
2
|
-
import { Item } from '@/entities/item/item';
|
|
3
|
-
import { ItemPerson } from '@/entities/item/itemPerson';
|
|
4
|
-
import { BaseManyService } from '@/services/base/baseManyService';
|
|
5
|
-
type ItemPersonDto = {
|
|
6
|
-
name: string;
|
|
7
|
-
role: string | null;
|
|
8
|
-
person_group: string | 'cast';
|
|
9
|
-
img: string | null;
|
|
10
|
-
href: string | null;
|
|
11
|
-
};
|
|
12
|
-
export declare class ItemPersonService extends BaseManyService<ItemPerson, 'item'> {
|
|
13
|
-
constructor(transactionalEntityManager?: EntityManager);
|
|
14
|
-
update(item: Item, dto: ItemPersonDto): Promise<ItemPerson>;
|
|
15
|
-
updateMany(item: Item, dtos: ItemPersonDto[]): Promise<ItemPerson[]>;
|
|
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.ItemPersonService = void 0;
|
|
13
|
-
const itemPerson_1 = require("@/entities/item/itemPerson");
|
|
14
|
-
const baseManyService_1 = require("@/services/base/baseManyService");
|
|
15
|
-
class ItemPersonService extends baseManyService_1.BaseManyService {
|
|
16
|
-
constructor(transactionalEntityManager) {
|
|
17
|
-
super(itemPerson_1.ItemPerson, 'item', transactionalEntityManager);
|
|
18
|
-
}
|
|
19
|
-
update(item, 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 = ['name'];
|
|
25
|
-
return _super._update.call(this, item, whereKeys, dto);
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
updateMany(item, 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 = ['name'];
|
|
34
|
-
return _super._updateMany.call(this, item, whereKeys, dtos);
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
exports.ItemPersonService = ItemPersonService;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { EntityManager } from 'typeorm';
|
|
2
|
-
import { Item } from '@/entities/item/item';
|
|
3
|
-
import { ItemSeason } from '@/entities/item/itemSeason';
|
|
4
|
-
import { BaseOneService } from '../base/baseOneService';
|
|
5
|
-
import { ChannelSeason } from '@/entities/channel/channelSeason';
|
|
6
|
-
export type ItemSeasonDto = {
|
|
7
|
-
title: string | null;
|
|
8
|
-
channel_season: ChannelSeason;
|
|
9
|
-
};
|
|
10
|
-
export declare class ItemSeasonService extends BaseOneService<ItemSeason, 'item'> {
|
|
11
|
-
constructor(transactionalEntityManager?: EntityManager);
|
|
12
|
-
update(item: Item, dto: ItemSeasonDto): Promise<ItemSeason>;
|
|
13
|
-
}
|
|
@@ -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.ItemSeasonService = void 0;
|
|
13
|
-
const itemSeason_1 = require("@/entities/item/itemSeason");
|
|
14
|
-
const baseOneService_1 = require("../base/baseOneService");
|
|
15
|
-
class ItemSeasonService extends baseOneService_1.BaseOneService {
|
|
16
|
-
constructor(transactionalEntityManager) {
|
|
17
|
-
super(itemSeason_1.ItemSeason, 'item', transactionalEntityManager);
|
|
18
|
-
}
|
|
19
|
-
update(item, 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, item, dto, { relations: ['channel_season'] });
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
exports.ItemSeasonService = ItemSeasonService;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { EntityManager } from 'typeorm';
|
|
2
|
-
import { Item } from '@/entities/item/item';
|
|
3
|
-
import { ItemSeasonEpisode } from '@/entities/item/itemSeasonEpisode';
|
|
4
|
-
import { BaseOneService } from '../base/baseOneService';
|
|
5
|
-
type ItemSeasonEpisodeDto = {
|
|
6
|
-
display: string | null;
|
|
7
|
-
episode: number;
|
|
8
|
-
};
|
|
9
|
-
export declare class ItemSeasonEpisodeService extends BaseOneService<ItemSeasonEpisode, 'item'> {
|
|
10
|
-
constructor(transactionalEntityManager?: EntityManager);
|
|
11
|
-
update(item: Item, dto: ItemSeasonEpisodeDto): Promise<ItemSeasonEpisode>;
|
|
12
|
-
}
|
|
13
|
-
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.ItemSeasonEpisodeService = void 0;
|
|
13
|
-
const itemSeasonEpisode_1 = require("@/entities/item/itemSeasonEpisode");
|
|
14
|
-
const baseOneService_1 = require("../base/baseOneService");
|
|
15
|
-
class ItemSeasonEpisodeService extends baseOneService_1.BaseOneService {
|
|
16
|
-
constructor(transactionalEntityManager) {
|
|
17
|
-
super(itemSeasonEpisode_1.ItemSeasonEpisode, 'item', transactionalEntityManager);
|
|
18
|
-
}
|
|
19
|
-
update(item, 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, item, dto);
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
exports.ItemSeasonEpisodeService = ItemSeasonEpisodeService;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { EntityManager } from 'typeorm';
|
|
2
|
-
import { Item } from '@/entities/item/item';
|
|
3
|
-
import { ItemSocialInteract } from '@/entities/item/itemSocialInteract';
|
|
4
|
-
import { BaseManyService } from '@/services/base/baseManyService';
|
|
5
|
-
type ItemSocialInteractDto = {
|
|
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 ItemSocialInteractService extends BaseManyService<ItemSocialInteract, 'item'> {
|
|
13
|
-
constructor(transactionalEntityManager?: EntityManager);
|
|
14
|
-
update(item: Item, dto: ItemSocialInteractDto): Promise<ItemSocialInteract>;
|
|
15
|
-
updateMany(item: Item, dtos: ItemSocialInteractDto[]): Promise<ItemSocialInteract[]>;
|
|
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.ItemSocialInteractService = void 0;
|
|
13
|
-
const itemSocialInteract_1 = require("@/entities/item/itemSocialInteract");
|
|
14
|
-
const baseManyService_1 = require("@/services/base/baseManyService");
|
|
15
|
-
class ItemSocialInteractService extends baseManyService_1.BaseManyService {
|
|
16
|
-
constructor(transactionalEntityManager) {
|
|
17
|
-
super(itemSocialInteract_1.ItemSocialInteract, 'item', transactionalEntityManager);
|
|
18
|
-
}
|
|
19
|
-
update(item, 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, item, whereKeys, dto);
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
updateMany(item, 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, item, whereKeys, dtos);
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
exports.ItemSocialInteractService = ItemSocialInteractService;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { EntityManager } from 'typeorm';
|
|
2
|
-
import { Item } from '@/entities/item/item';
|
|
3
|
-
import { ItemSoundbite } from '@/entities/item/itemSoundbite';
|
|
4
|
-
import { BaseManyService } from '@/services/base/baseManyService';
|
|
5
|
-
type ItemSoundbiteDto = {
|
|
6
|
-
start_time: string;
|
|
7
|
-
duration: string;
|
|
8
|
-
title: string | null;
|
|
9
|
-
};
|
|
10
|
-
export declare class ItemSoundbiteService extends BaseManyService<ItemSoundbite, 'item'> {
|
|
11
|
-
constructor(transactionalEntityManager?: EntityManager);
|
|
12
|
-
_getByIdText(id_text: string): Promise<ItemSoundbite | null>;
|
|
13
|
-
update(item: Item, dto: ItemSoundbiteDto): Promise<ItemSoundbite>;
|
|
14
|
-
updateMany(item: Item, dtos: ItemSoundbiteDto[]): Promise<ItemSoundbite[]>;
|
|
15
|
-
}
|
|
16
|
-
export {};
|
|
@@ -1,43 +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.ItemSoundbiteService = void 0;
|
|
13
|
-
const itemSoundbite_1 = require("@/entities/item/itemSoundbite");
|
|
14
|
-
const baseManyService_1 = require("@/services/base/baseManyService");
|
|
15
|
-
class ItemSoundbiteService extends baseManyService_1.BaseManyService {
|
|
16
|
-
constructor(transactionalEntityManager) {
|
|
17
|
-
super(itemSoundbite_1.ItemSoundbite, 'item', transactionalEntityManager);
|
|
18
|
-
}
|
|
19
|
-
_getByIdText(id_text) {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
return this.repository.findOne({ where: { id_text } });
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
update(item, dto) {
|
|
25
|
-
const _super = Object.create(null, {
|
|
26
|
-
_update: { get: () => super._update }
|
|
27
|
-
});
|
|
28
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
29
|
-
const whereKeys = ['start_time', 'duration'];
|
|
30
|
-
return _super._update.call(this, item, whereKeys, dto);
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
updateMany(item, dtos) {
|
|
34
|
-
const _super = Object.create(null, {
|
|
35
|
-
_updateMany: { get: () => super._updateMany }
|
|
36
|
-
});
|
|
37
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
-
const whereKeys = ['start_time', 'duration'];
|
|
39
|
-
return _super._updateMany.call(this, item, whereKeys, dtos);
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
exports.ItemSoundbiteService = ItemSoundbiteService;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { EntityManager } from 'typeorm';
|
|
2
|
-
import { Item } from '@/entities/item/item';
|
|
3
|
-
import { ItemTranscript } from '@/entities/item/itemTranscript';
|
|
4
|
-
import { BaseManyService } from '@/services/base/baseManyService';
|
|
5
|
-
type ItemTranscriptDto = {
|
|
6
|
-
url: string;
|
|
7
|
-
title?: string | null;
|
|
8
|
-
};
|
|
9
|
-
export declare class ItemTranscriptService extends BaseManyService<ItemTranscript, 'item'> {
|
|
10
|
-
constructor(transactionalEntityManager?: EntityManager);
|
|
11
|
-
update(item: Item, dto: ItemTranscriptDto): Promise<ItemTranscript>;
|
|
12
|
-
updateMany(item: Item, dtos: ItemTranscriptDto[]): Promise<ItemTranscript[]>;
|
|
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.ItemTranscriptService = void 0;
|
|
13
|
-
const itemTranscript_1 = require("@/entities/item/itemTranscript");
|
|
14
|
-
const baseManyService_1 = require("@/services/base/baseManyService");
|
|
15
|
-
class ItemTranscriptService extends baseManyService_1.BaseManyService {
|
|
16
|
-
constructor(transactionalEntityManager) {
|
|
17
|
-
super(itemTranscript_1.ItemTranscript, 'item', transactionalEntityManager);
|
|
18
|
-
}
|
|
19
|
-
update(item, 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, item, whereKeys, dto);
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
updateMany(item, 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, item, whereKeys, dtos);
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
exports.ItemTranscriptService = ItemTranscriptService;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { EntityManager } from 'typeorm';
|
|
2
|
-
import { Item } from '@/entities/item/item';
|
|
3
|
-
import { ItemTxt } from '@/entities/item/itemTxt';
|
|
4
|
-
import { BaseManyService } from '@/services/base/baseManyService';
|
|
5
|
-
type ItemTxtDto = {
|
|
6
|
-
purpose: string | null;
|
|
7
|
-
value: string;
|
|
8
|
-
};
|
|
9
|
-
export declare class ItemTxtService extends BaseManyService<ItemTxt, 'item'> {
|
|
10
|
-
constructor(transactionalEntityManager?: EntityManager);
|
|
11
|
-
update(channel: Item, dto: ItemTxtDto): Promise<ItemTxt>;
|
|
12
|
-
updateMany(channel: Item, dtos: ItemTxtDto[]): Promise<ItemTxt[]>;
|
|
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.ItemTxtService = void 0;
|
|
13
|
-
const itemTxt_1 = require("@/entities/item/itemTxt");
|
|
14
|
-
const baseManyService_1 = require("@/services/base/baseManyService");
|
|
15
|
-
class ItemTxtService extends baseManyService_1.BaseManyService {
|
|
16
|
-
constructor(transactionalEntityManager) {
|
|
17
|
-
super(itemTxt_1.ItemTxt, 'item', 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.ItemTxtService = ItemTxtService;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { EntityManager } from 'typeorm';
|
|
2
|
-
import { Item } from '../../entities/item/item';
|
|
3
|
-
import { ItemValue } from '../../entities/item/itemValue';
|
|
4
|
-
import { BaseManyService } from '../base/baseManyService';
|
|
5
|
-
type ItemValueDto = {
|
|
6
|
-
type: string;
|
|
7
|
-
method: string;
|
|
8
|
-
suggested: number | null;
|
|
9
|
-
};
|
|
10
|
-
export declare class ItemValueService extends BaseManyService<ItemValue, 'item'> {
|
|
11
|
-
constructor(transactionalEntityManager?: EntityManager);
|
|
12
|
-
update(item: Item, dto: ItemValueDto): Promise<ItemValue>;
|
|
13
|
-
updateMany(item: Item, dtos: ItemValueDto[]): Promise<ItemValue[]>;
|
|
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.ItemValueService = void 0;
|
|
13
|
-
const itemValue_1 = require("../../entities/item/itemValue");
|
|
14
|
-
const baseManyService_1 = require("../base/baseManyService");
|
|
15
|
-
class ItemValueService extends baseManyService_1.BaseManyService {
|
|
16
|
-
constructor(transactionalEntityManager) {
|
|
17
|
-
super(itemValue_1.ItemValue, 'item', transactionalEntityManager);
|
|
18
|
-
}
|
|
19
|
-
update(item, 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, item, whereKeys, dto);
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
updateMany(item, 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, item, whereKeys, dtos);
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
exports.ItemValueService = ItemValueService;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { EntityManager } from 'typeorm';
|
|
2
|
-
import { ItemValue } from '@/entities/item/itemValue';
|
|
3
|
-
import { ItemValueRecipient } from '@/entities/item/itemValueRecipient';
|
|
4
|
-
import { BaseManyService } from '@/services/base/baseManyService';
|
|
5
|
-
type ItemValueRecipientDto = {
|
|
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 ItemValueRecipientService extends BaseManyService<ItemValueRecipient, 'item_value'> {
|
|
15
|
-
constructor(transactionalEntityManager?: EntityManager);
|
|
16
|
-
update(item_value: ItemValue, dto: ItemValueRecipientDto): Promise<ItemValueRecipient>;
|
|
17
|
-
updateMany(item_value: ItemValue, dtos: ItemValueRecipientDto[]): Promise<ItemValueRecipient[]>;
|
|
18
|
-
}
|
|
19
|
-
export {};
|