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.
Files changed (313) hide show
  1. package/package.json +4 -4
  2. package/dist/src/config/index.d.ts +0 -12
  3. package/dist/src/config/index.js +0 -15
  4. package/dist/src/db/index.d.ts +0 -2
  5. package/dist/src/db/index.js +0 -209
  6. package/dist/src/entities/account/account.d.ts +0 -8
  7. package/dist/src/entities/account/account.js +0 -47
  8. package/dist/src/entities/account/accountAdminRoles.d.ts +0 -7
  9. package/dist/src/entities/account/accountAdminRoles.js +0 -37
  10. package/dist/src/entities/account/accountAppStorePurchase.d.ts +0 -26
  11. package/dist/src/entities/account/accountAppStorePurchase.js +0 -113
  12. package/dist/src/entities/account/accountCredentials.d.ts +0 -7
  13. package/dist/src/entities/account/accountCredentials.js +0 -37
  14. package/dist/src/entities/account/accountFCMDevice.d.ts +0 -6
  15. package/dist/src/entities/account/accountFCMDevice.js +0 -33
  16. package/dist/src/entities/account/accountFollowingAccount.d.ts +0 -7
  17. package/dist/src/entities/account/accountFollowingAccount.js +0 -38
  18. package/dist/src/entities/account/accountFollowingAddByRSSChannel.d.ts +0 -8
  19. package/dist/src/entities/account/accountFollowingAddByRSSChannel.js +0 -41
  20. package/dist/src/entities/account/accountFollowingChannel.d.ts +0 -8
  21. package/dist/src/entities/account/accountFollowingChannel.js +0 -39
  22. package/dist/src/entities/account/accountFollowingPlaylist.d.ts +0 -8
  23. package/dist/src/entities/account/accountFollowingPlaylist.js +0 -39
  24. package/dist/src/entities/account/accountGooglePlayPurchase.d.ts +0 -14
  25. package/dist/src/entities/account/accountGooglePlayPurchase.js +0 -65
  26. package/dist/src/entities/account/accountMembership.d.ts +0 -4
  27. package/dist/src/entities/account/accountMembership.js +0 -27
  28. package/dist/src/entities/account/accountMembershipStatus.d.ts +0 -8
  29. package/dist/src/entities/account/accountMembershipStatus.js +0 -39
  30. package/dist/src/entities/account/accountNotification.d.ts +0 -8
  31. package/dist/src/entities/account/accountNotification.js +0 -39
  32. package/dist/src/entities/account/accountPayPalOrder.d.ts +0 -7
  33. package/dist/src/entities/account/accountPayPalOrder.js +0 -37
  34. package/dist/src/entities/account/accountProfile.d.ts +0 -7
  35. package/dist/src/entities/account/accountProfile.js +0 -37
  36. package/dist/src/entities/account/accountResetPassword.d.ts +0 -7
  37. package/dist/src/entities/account/accountResetPassword.js +0 -37
  38. package/dist/src/entities/account/accountUPDevice.d.ts +0 -8
  39. package/dist/src/entities/account/accountUPDevice.js +0 -41
  40. package/dist/src/entities/account/accountVerification.d.ts +0 -7
  41. package/dist/src/entities/account/accountVerification.js +0 -37
  42. package/dist/src/entities/category.d.ts +0 -6
  43. package/dist/src/entities/category.js +0 -35
  44. package/dist/src/entities/channel/channel.d.ts +0 -19
  45. package/dist/src/entities/channel/channel.js +0 -100
  46. package/dist/src/entities/channel/channelAbout.d.ts +0 -13
  47. package/dist/src/entities/channel/channelAbout.js +0 -59
  48. package/dist/src/entities/channel/channelCategory.d.ts +0 -6
  49. package/dist/src/entities/channel/channelCategory.js +0 -34
  50. package/dist/src/entities/channel/channelChat.d.ts +0 -9
  51. package/dist/src/entities/channel/channelChat.js +0 -45
  52. package/dist/src/entities/channel/channelDescription.d.ts +0 -6
  53. package/dist/src/entities/channel/channelDescription.js +0 -34
  54. package/dist/src/entities/channel/channelFunding.d.ts +0 -7
  55. package/dist/src/entities/channel/channelFunding.js +0 -37
  56. package/dist/src/entities/channel/channelImage.d.ts +0 -8
  57. package/dist/src/entities/channel/channelImage.js +0 -41
  58. package/dist/src/entities/channel/channelInternalSettings.d.ts +0 -6
  59. package/dist/src/entities/channel/channelInternalSettings.js +0 -33
  60. package/dist/src/entities/channel/channelItunesType.d.ts +0 -9
  61. package/dist/src/entities/channel/channelItunesType.js +0 -49
  62. package/dist/src/entities/channel/channelLicense.d.ts +0 -7
  63. package/dist/src/entities/channel/channelLicense.js +0 -38
  64. package/dist/src/entities/channel/channelLocation.d.ts +0 -8
  65. package/dist/src/entities/channel/channelLocation.js +0 -42
  66. package/dist/src/entities/channel/channelPerson.d.ts +0 -11
  67. package/dist/src/entities/channel/channelPerson.js +0 -64
  68. package/dist/src/entities/channel/channelPodroll.d.ts +0 -5
  69. package/dist/src/entities/channel/channelPodroll.js +0 -29
  70. package/dist/src/entities/channel/channelPodrollRemoteItem.d.ts +0 -9
  71. package/dist/src/entities/channel/channelPodrollRemoteItem.js +0 -45
  72. package/dist/src/entities/channel/channelPublisher.d.ts +0 -5
  73. package/dist/src/entities/channel/channelPublisher.js +0 -29
  74. package/dist/src/entities/channel/channelPublisherRemoteItem.d.ts +0 -9
  75. package/dist/src/entities/channel/channelPublisherRemoteItem.js +0 -45
  76. package/dist/src/entities/channel/channelRemoteItem.d.ts +0 -9
  77. package/dist/src/entities/channel/channelRemoteItem.js +0 -45
  78. package/dist/src/entities/channel/channelSeason.d.ts +0 -8
  79. package/dist/src/entities/channel/channelSeason.js +0 -42
  80. package/dist/src/entities/channel/channelSocialInteract.d.ts +0 -10
  81. package/dist/src/entities/channel/channelSocialInteract.js +0 -49
  82. package/dist/src/entities/channel/channelTrailer.d.ts +0 -12
  83. package/dist/src/entities/channel/channelTrailer.js +0 -55
  84. package/dist/src/entities/channel/channelTxt.d.ts +0 -7
  85. package/dist/src/entities/channel/channelTxt.js +0 -37
  86. package/dist/src/entities/channel/channelValue.d.ts +0 -8
  87. package/dist/src/entities/channel/channelValue.js +0 -41
  88. package/dist/src/entities/channel/channelValueRecipient.d.ts +0 -12
  89. package/dist/src/entities/channel/channelValueRecipient.js +0 -57
  90. package/dist/src/entities/clip.d.ts +0 -15
  91. package/dist/src/entities/clip.js +0 -71
  92. package/dist/src/entities/feed/feed.d.ts +0 -14
  93. package/dist/src/entities/feed/feed.js +0 -59
  94. package/dist/src/entities/feed/feedFlagStatus.d.ts +0 -14
  95. package/dist/src/entities/feed/feedFlagStatus.js +0 -52
  96. package/dist/src/entities/feed/feedLog.d.ts +0 -9
  97. package/dist/src/entities/feed/feedLog.js +0 -44
  98. package/dist/src/entities/item/item.d.ts +0 -18
  99. package/dist/src/entities/item/item.js +0 -82
  100. package/dist/src/entities/item/itemAbout.d.ts +0 -10
  101. package/dist/src/entities/item/itemAbout.js +0 -47
  102. package/dist/src/entities/item/itemChapter.d.ts +0 -13
  103. package/dist/src/entities/item/itemChapter.js +0 -67
  104. package/dist/src/entities/item/itemChapterLocation.d.ts +0 -8
  105. package/dist/src/entities/item/itemChapterLocation.js +0 -42
  106. package/dist/src/entities/item/itemChaptersFeed.d.ts +0 -9
  107. package/dist/src/entities/item/itemChaptersFeed.js +0 -42
  108. package/dist/src/entities/item/itemChaptersFeedLog.d.ts +0 -9
  109. package/dist/src/entities/item/itemChaptersFeedLog.js +0 -44
  110. package/dist/src/entities/item/itemChat.d.ts +0 -9
  111. package/dist/src/entities/item/itemChat.js +0 -45
  112. package/dist/src/entities/item/itemContentLink.d.ts +0 -7
  113. package/dist/src/entities/item/itemContentLink.js +0 -37
  114. package/dist/src/entities/item/itemDescription.d.ts +0 -6
  115. package/dist/src/entities/item/itemDescription.js +0 -34
  116. package/dist/src/entities/item/itemEnclosure.d.ts +0 -14
  117. package/dist/src/entities/item/itemEnclosure.js +0 -65
  118. package/dist/src/entities/item/itemEnclosureIntegrity.d.ts +0 -7
  119. package/dist/src/entities/item/itemEnclosureIntegrity.js +0 -37
  120. package/dist/src/entities/item/itemEnclosureSource.d.ts +0 -7
  121. package/dist/src/entities/item/itemEnclosureSource.js +0 -37
  122. package/dist/src/entities/item/itemFunding.d.ts +0 -7
  123. package/dist/src/entities/item/itemFunding.js +0 -37
  124. package/dist/src/entities/item/itemImage.d.ts +0 -8
  125. package/dist/src/entities/item/itemImage.js +0 -41
  126. package/dist/src/entities/item/itemItunesEpisodeType.d.ts +0 -10
  127. package/dist/src/entities/item/itemItunesEpisodeType.js +0 -48
  128. package/dist/src/entities/item/itemLicense.d.ts +0 -7
  129. package/dist/src/entities/item/itemLicense.js +0 -38
  130. package/dist/src/entities/item/itemLocation.d.ts +0 -8
  131. package/dist/src/entities/item/itemLocation.js +0 -42
  132. package/dist/src/entities/item/itemPerson.d.ts +0 -11
  133. package/dist/src/entities/item/itemPerson.js +0 -64
  134. package/dist/src/entities/item/itemSeason.d.ts +0 -9
  135. package/dist/src/entities/item/itemSeason.js +0 -43
  136. package/dist/src/entities/item/itemSeasonEpisode.d.ts +0 -7
  137. package/dist/src/entities/item/itemSeasonEpisode.js +0 -37
  138. package/dist/src/entities/item/itemSocialInteract.d.ts +0 -10
  139. package/dist/src/entities/item/itemSocialInteract.js +0 -49
  140. package/dist/src/entities/item/itemSoundbite.d.ts +0 -10
  141. package/dist/src/entities/item/itemSoundbite.js +0 -55
  142. package/dist/src/entities/item/itemTranscript.d.ts +0 -9
  143. package/dist/src/entities/item/itemTranscript.js +0 -45
  144. package/dist/src/entities/item/itemTxt.d.ts +0 -7
  145. package/dist/src/entities/item/itemTxt.js +0 -37
  146. package/dist/src/entities/item/itemValue.d.ts +0 -8
  147. package/dist/src/entities/item/itemValue.js +0 -41
  148. package/dist/src/entities/item/itemValueRecipient.d.ts +0 -12
  149. package/dist/src/entities/item/itemValueRecipient.js +0 -57
  150. package/dist/src/entities/item/itemValueTimeSplit.d.ts +0 -9
  151. package/dist/src/entities/item/itemValueTimeSplit.js +0 -45
  152. package/dist/src/entities/item/itemValueTimeSplitRecipient.d.ts +0 -12
  153. package/dist/src/entities/item/itemValueTimeSplitRecipient.js +0 -57
  154. package/dist/src/entities/item/itemValueTimeSplitRemoteItem.d.ts +0 -9
  155. package/dist/src/entities/item/itemValueTimeSplitRemoteItem.js +0 -45
  156. package/dist/src/entities/liveItem/liveItem.d.ts +0 -10
  157. package/dist/src/entities/liveItem/liveItem.js +0 -47
  158. package/dist/src/entities/liveItem/liveItemStatus.d.ts +0 -10
  159. package/dist/src/entities/liveItem/liveItemStatus.js +0 -43
  160. package/dist/src/entities/medium.d.ts +0 -26
  161. package/dist/src/entities/medium.js +0 -78
  162. package/dist/src/entities/membershipClaimToken.d.ts +0 -8
  163. package/dist/src/entities/membershipClaimToken.js +0 -41
  164. package/dist/src/entities/playlist/playlist.d.ts +0 -16
  165. package/dist/src/entities/playlist/playlist.js +0 -75
  166. package/dist/src/entities/playlist/playlistResourceBase.d.ts +0 -6
  167. package/dist/src/entities/playlist/playlistResourceBase.js +0 -34
  168. package/dist/src/entities/playlist/playlistResourceClip.d.ts +0 -5
  169. package/dist/src/entities/playlist/playlistResourceClip.js +0 -26
  170. package/dist/src/entities/playlist/playlistResourceItem.d.ts +0 -5
  171. package/dist/src/entities/playlist/playlistResourceItem.js +0 -26
  172. package/dist/src/entities/playlist/playlistResourceItemAddByRSS.d.ts +0 -4
  173. package/dist/src/entities/playlist/playlistResourceItemAddByRSS.js +0 -24
  174. package/dist/src/entities/playlist/playlistResourceItemChapter.d.ts +0 -5
  175. package/dist/src/entities/playlist/playlistResourceItemChapter.js +0 -26
  176. package/dist/src/entities/playlist/playlistResourceItemSoundbite.d.ts +0 -5
  177. package/dist/src/entities/playlist/playlistResourceItemSoundbite.js +0 -26
  178. package/dist/src/entities/queue/queue.d.ts +0 -7
  179. package/dist/src/entities/queue/queue.js +0 -35
  180. package/dist/src/entities/queue/queueResourceBase.d.ts +0 -9
  181. package/dist/src/entities/queue/queueResourceBase.js +0 -45
  182. package/dist/src/entities/queue/queueResourceClip.d.ts +0 -5
  183. package/dist/src/entities/queue/queueResourceClip.js +0 -27
  184. package/dist/src/entities/queue/queueResourceItem.d.ts +0 -5
  185. package/dist/src/entities/queue/queueResourceItem.js +0 -27
  186. package/dist/src/entities/queue/queueResourceItemAddByRSS.d.ts +0 -4
  187. package/dist/src/entities/queue/queueResourceItemAddByRSS.js +0 -25
  188. package/dist/src/entities/queue/queueResourceItemChapter.d.ts +0 -5
  189. package/dist/src/entities/queue/queueResourceItemChapter.js +0 -27
  190. package/dist/src/entities/queue/queueResourceItemSoundbite.d.ts +0 -5
  191. package/dist/src/entities/queue/queueResourceItemSoundbite.js +0 -27
  192. package/dist/src/entities/sharableStatus.d.ts +0 -4
  193. package/dist/src/entities/sharableStatus.js +0 -27
  194. package/dist/src/index.d.ts +0 -149
  195. package/dist/src/index.js +0 -165
  196. package/dist/src/lib/applyProperties.d.ts +0 -1
  197. package/dist/src/lib/applyProperties.js +0 -12
  198. package/dist/src/lib/filterImageDtosByHighestWidth.d.ts +0 -6
  199. package/dist/src/lib/filterImageDtosByHighestWidth.js +0 -17
  200. package/dist/src/lib/hasDifferentValues.d.ts +0 -1
  201. package/dist/src/lib/hasDifferentValues.js +0 -29
  202. package/dist/src/lib/typeORMTypes.d.ts +0 -2
  203. package/dist/src/lib/typeORMTypes.js +0 -5
  204. package/dist/src/services/base/baseManyService.d.ts +0 -17
  205. package/dist/src/services/base/baseManyService.js +0 -116
  206. package/dist/src/services/base/baseOneService.d.ts +0 -12
  207. package/dist/src/services/base/baseOneService.js +0 -55
  208. package/dist/src/services/base/baseRemoteItemsService.d.ts +0 -11
  209. package/dist/src/services/base/baseRemoteItemsService.js +0 -81
  210. package/dist/src/services/channel/channel.d.ts +0 -28
  211. package/dist/src/services/channel/channel.js +0 -58
  212. package/dist/src/services/channel/channelAbout.d.ts +0 -19
  213. package/dist/src/services/channel/channelAbout.js +0 -28
  214. package/dist/src/services/channel/channelChat.d.ts +0 -15
  215. package/dist/src/services/channel/channelChat.js +0 -28
  216. package/dist/src/services/channel/channelDescription.d.ts +0 -12
  217. package/dist/src/services/channel/channelDescription.js +0 -28
  218. package/dist/src/services/channel/channelFunding.d.ts +0 -14
  219. package/dist/src/services/channel/channelFunding.js +0 -38
  220. package/dist/src/services/channel/channelImage.d.ts +0 -14
  221. package/dist/src/services/channel/channelImage.js +0 -41
  222. package/dist/src/services/channel/channelLicense.d.ts +0 -13
  223. package/dist/src/services/channel/channelLicense.js +0 -28
  224. package/dist/src/services/channel/channelLocation.d.ts +0 -14
  225. package/dist/src/services/channel/channelLocation.js +0 -28
  226. package/dist/src/services/channel/channelPerson.d.ts +0 -17
  227. package/dist/src/services/channel/channelPerson.js +0 -38
  228. package/dist/src/services/channel/channelPodroll.d.ts +0 -10
  229. package/dist/src/services/channel/channelPodroll.js +0 -28
  230. package/dist/src/services/channel/channelPodrollRemoteItem.d.ts +0 -15
  231. package/dist/src/services/channel/channelPodrollRemoteItem.js +0 -36
  232. package/dist/src/services/channel/channelPublisher.d.ts +0 -9
  233. package/dist/src/services/channel/channelPublisher.js +0 -28
  234. package/dist/src/services/channel/channelPublisherRemoteItem.d.ts +0 -14
  235. package/dist/src/services/channel/channelPublisherRemoteItem.js +0 -36
  236. package/dist/src/services/channel/channelRemoteItem.d.ts +0 -15
  237. package/dist/src/services/channel/channelRemoteItem.js +0 -36
  238. package/dist/src/services/channel/channelSeason.d.ts +0 -15
  239. package/dist/src/services/channel/channelSeason.js +0 -48
  240. package/dist/src/services/channel/channelSocialInteract.d.ts +0 -17
  241. package/dist/src/services/channel/channelSocialInteract.js +0 -38
  242. package/dist/src/services/channel/channelTrailer.d.ts +0 -18
  243. package/dist/src/services/channel/channelTrailer.js +0 -38
  244. package/dist/src/services/channel/channelTxt.d.ts +0 -14
  245. package/dist/src/services/channel/channelTxt.js +0 -38
  246. package/dist/src/services/channel/channelValue.d.ts +0 -15
  247. package/dist/src/services/channel/channelValue.js +0 -38
  248. package/dist/src/services/channel/channelValueRecipient.d.ts +0 -19
  249. package/dist/src/services/channel/channelValueRecipient.js +0 -38
  250. package/dist/src/services/feed/feed.d.ts +0 -23
  251. package/dist/src/services/feed/feed.js +0 -92
  252. package/dist/src/services/feed/feedFlagStatus.d.ts +0 -5
  253. package/dist/src/services/feed/feedFlagStatus.js +0 -27
  254. package/dist/src/services/feed/feedLog.d.ts +0 -14
  255. package/dist/src/services/feed/feedLog.js +0 -28
  256. package/dist/src/services/item/item.d.ts +0 -28
  257. package/dist/src/services/item/item.js +0 -113
  258. package/dist/src/services/item/itemAbout.d.ts +0 -16
  259. package/dist/src/services/item/itemAbout.js +0 -28
  260. package/dist/src/services/item/itemChapter.d.ts +0 -16
  261. package/dist/src/services/item/itemChapter.js +0 -45
  262. package/dist/src/services/item/itemChaptersFeed.d.ts +0 -13
  263. package/dist/src/services/item/itemChaptersFeed.js +0 -28
  264. package/dist/src/services/item/itemChaptersFeedLog.d.ts +0 -14
  265. package/dist/src/services/item/itemChaptersFeedLog.js +0 -28
  266. package/dist/src/services/item/itemChat.d.ts +0 -15
  267. package/dist/src/services/item/itemChat.js +0 -28
  268. package/dist/src/services/item/itemContentLink.d.ts +0 -13
  269. package/dist/src/services/item/itemContentLink.js +0 -38
  270. package/dist/src/services/item/itemDescription.d.ts +0 -12
  271. package/dist/src/services/item/itemDescription.js +0 -28
  272. package/dist/src/services/item/itemEnclosure.d.ts +0 -21
  273. package/dist/src/services/item/itemEnclosure.js +0 -38
  274. package/dist/src/services/item/itemEnclosureIntegrity.d.ts +0 -13
  275. package/dist/src/services/item/itemEnclosureIntegrity.js +0 -28
  276. package/dist/src/services/item/itemEnclosureSource.d.ts +0 -14
  277. package/dist/src/services/item/itemEnclosureSource.js +0 -38
  278. package/dist/src/services/item/itemFunding.d.ts +0 -13
  279. package/dist/src/services/item/itemFunding.js +0 -38
  280. package/dist/src/services/item/itemImage.d.ts +0 -14
  281. package/dist/src/services/item/itemImage.js +0 -41
  282. package/dist/src/services/item/itemLicense.d.ts +0 -13
  283. package/dist/src/services/item/itemLicense.js +0 -28
  284. package/dist/src/services/item/itemLocation.d.ts +0 -14
  285. package/dist/src/services/item/itemLocation.js +0 -28
  286. package/dist/src/services/item/itemPerson.d.ts +0 -17
  287. package/dist/src/services/item/itemPerson.js +0 -38
  288. package/dist/src/services/item/itemSeason.d.ts +0 -13
  289. package/dist/src/services/item/itemSeason.js +0 -28
  290. package/dist/src/services/item/itemSeasonEpisode.d.ts +0 -13
  291. package/dist/src/services/item/itemSeasonEpisode.js +0 -28
  292. package/dist/src/services/item/itemSocialInteract.d.ts +0 -17
  293. package/dist/src/services/item/itemSocialInteract.js +0 -38
  294. package/dist/src/services/item/itemSoundbite.d.ts +0 -16
  295. package/dist/src/services/item/itemSoundbite.js +0 -43
  296. package/dist/src/services/item/itemTranscript.d.ts +0 -14
  297. package/dist/src/services/item/itemTranscript.js +0 -38
  298. package/dist/src/services/item/itemTxt.d.ts +0 -14
  299. package/dist/src/services/item/itemTxt.js +0 -38
  300. package/dist/src/services/item/itemValue.d.ts +0 -15
  301. package/dist/src/services/item/itemValue.js +0 -38
  302. package/dist/src/services/item/itemValueRecipient.d.ts +0 -19
  303. package/dist/src/services/item/itemValueRecipient.js +0 -38
  304. package/dist/src/services/item/itemValueTimeSplit.d.ts +0 -16
  305. package/dist/src/services/item/itemValueTimeSplit.js +0 -38
  306. package/dist/src/services/item/itemValueTimeSplitRecipient.d.ts +0 -19
  307. package/dist/src/services/item/itemValueTimeSplitRecipient.js +0 -38
  308. package/dist/src/services/item/itemValueTimeSplitRemoteItem.d.ts +0 -14
  309. package/dist/src/services/item/itemValueTimeSplitRemoteItem.js +0 -28
  310. package/dist/src/services/liveItem/liveItem.d.ts +0 -14
  311. package/dist/src/services/liveItem/liveItem.js +0 -28
  312. package/dist/src/services/medium.d.ts +0 -5
  313. 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,5 +0,0 @@
1
- import { FeedFlagStatus } from '@/entities/feed/feedFlagStatus';
2
- export declare class FeedFlagStatusService {
3
- private repository;
4
- get(id: number): Promise<FeedFlagStatus | null>;
5
- }
@@ -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 {};