podverse-orm 5.1.26-alpha.0 → 5.1.27-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist/config/index.d.ts +2 -26
  2. package/dist/config/index.d.ts.map +1 -1
  3. package/dist/config/index.js +26 -25
  4. package/dist/config/types.d.ts +34 -0
  5. package/dist/config/types.d.ts.map +1 -0
  6. package/dist/config/types.js +7 -0
  7. package/dist/context.d.ts +20 -0
  8. package/dist/context.d.ts.map +1 -0
  9. package/dist/context.js +40 -0
  10. package/dist/db/entities.d.ts +101 -0
  11. package/dist/db/entities.d.ts.map +1 -0
  12. package/dist/db/entities.js +211 -0
  13. package/dist/db/index.d.ts +12 -3
  14. package/dist/db/index.d.ts.map +1 -1
  15. package/dist/db/index.js +63 -227
  16. package/dist/factories/loggerService.d.ts +1 -2
  17. package/dist/factories/loggerService.d.ts.map +1 -1
  18. package/dist/factories/loggerService.js +14 -4
  19. package/dist/factory.d.ts +24 -0
  20. package/dist/factory.d.ts.map +1 -0
  21. package/dist/factory.js +52 -0
  22. package/dist/index.d.ts +3 -0
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.js +13 -0
  25. package/dist/services/account/account.d.ts +5 -3
  26. package/dist/services/account/account.d.ts.map +1 -1
  27. package/dist/services/account/account.js +43 -16
  28. package/dist/services/account/accountDataExport.d.ts +46 -0
  29. package/dist/services/account/accountDataExport.d.ts.map +1 -0
  30. package/dist/services/account/accountDataExport.js +251 -0
  31. package/dist/services/account/accountFollowingChannel.d.ts +4 -0
  32. package/dist/services/account/accountFollowingChannel.d.ts.map +1 -1
  33. package/dist/services/account/accountFollowingChannel.js +21 -3
  34. package/dist/services/account/accountProfile.d.ts.map +1 -1
  35. package/dist/services/account/accountProfile.js +16 -2
  36. package/dist/services/base/baseGetOnlyService.js +2 -2
  37. package/dist/services/base/baseManyService.d.ts +1 -0
  38. package/dist/services/base/baseManyService.d.ts.map +1 -1
  39. package/dist/services/base/baseManyService.js +20 -11
  40. package/dist/services/base/baseOneService.d.ts.map +1 -1
  41. package/dist/services/base/baseOneService.js +11 -11
  42. package/dist/services/clip.d.ts +2 -0
  43. package/dist/services/clip.d.ts.map +1 -1
  44. package/dist/services/clip.js +33 -0
  45. package/dist/services/playlist/playlist.d.ts +2 -0
  46. package/dist/services/playlist/playlist.d.ts.map +1 -1
  47. package/dist/services/playlist/playlist.js +14 -0
  48. package/dist/services/stats/statsAggregatedAccount.d.ts +4 -0
  49. package/dist/services/stats/statsAggregatedAccount.d.ts.map +1 -1
  50. package/dist/services/stats/statsAggregatedAccount.js +34 -0
  51. package/package.json +2 -5
@@ -1,27 +1,3 @@
1
- export declare const config: {
2
- nodeEnv: string;
3
- database: {
4
- type: string;
5
- host: string;
6
- port: number;
7
- read_username: string;
8
- read_password: string;
9
- read_write_username: string;
10
- read_write_password: string;
11
- database: string;
12
- ssl_connection: boolean;
13
- };
14
- log: {
15
- level: string;
16
- dir: string;
17
- timer: boolean;
18
- };
19
- defaults: {
20
- account: {
21
- settings: {
22
- locale: string;
23
- };
24
- };
25
- };
26
- };
1
+ export * from './types';
2
+ export declare const config: import("./types").ORMConfig;
27
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;CAyBlB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AACA,cAAc,SAAS,CAAC;AASxB,eAAO,MAAM,MAAM,6BAIjB,CAAC"}
@@ -1,29 +1,30 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
2
16
  Object.defineProperty(exports, "__esModule", { value: true });
3
17
  exports.config = void 0;
4
- exports.config = {
5
- nodeEnv: process.env.NODE_ENV || 'development',
6
- database: {
7
- type: process.env.DB_TYPE || 'postgres',
8
- host: process.env.DB_HOST || 'localhost',
9
- port: parseInt(process.env.DB_PORT || '5432', 10),
10
- read_username: process.env.DB_READ_USERNAME || 'read',
11
- read_password: process.env.DB_READ_PASSWORD || '',
12
- read_write_username: process.env.DB_READ_WRITE_USERNAME || 'read_write',
13
- read_write_password: process.env.DB_READ_WRITE_PASSWORD || '',
14
- database: process.env.DB_DATABASE || 'db',
15
- ssl_connection: process.env.DB_SSL_CONNECTION === 'true',
16
- },
17
- log: {
18
- level: process.env.LOG_LEVEL || 'info',
19
- dir: process.env.LOG_DIR || 'logs',
20
- timer: process.env.LOG_TIMER === 'true',
21
- },
22
- defaults: {
23
- account: {
24
- settings: {
25
- locale: process.env.DEFAULT_ACCOUNT_SETTINGS_LOCALE || 'en-US',
26
- }
27
- }
18
+ // Re-export config types for app-level use
19
+ __exportStar(require("./types"), exports);
20
+ // Re-export config from context for backwards compatibility
21
+ // This creates a proxy that delegates to the context's config
22
+ // Apps should use createORMContext() and access config from the returned context
23
+ const context_1 = require("@orm/context");
24
+ // Create a proxy object that delegates property access to the context's config
25
+ // This allows code using `config.defaults.account.settings.locale` to work
26
+ exports.config = new Proxy({}, {
27
+ get(_target, prop) {
28
+ return (0, context_1.getORMConfig)()[prop];
28
29
  }
29
- };
30
+ });
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Configuration types for podverse-orm
3
+ * These types are used by the app to create the configuration object
4
+ * that gets passed to createORMContext()
5
+ */
6
+ export type DatabaseConfig = {
7
+ host: string;
8
+ port: number;
9
+ read_username: string;
10
+ read_password: string;
11
+ read_write_username: string;
12
+ read_write_password: string;
13
+ database: string;
14
+ ssl_connection: boolean;
15
+ };
16
+ export type LogConfig = {
17
+ level: string;
18
+ dir?: string;
19
+ timer?: boolean;
20
+ };
21
+ export type DefaultsConfig = {
22
+ account: {
23
+ settings: {
24
+ locale: string;
25
+ };
26
+ };
27
+ };
28
+ export type ORMConfig = {
29
+ nodeEnv?: string;
30
+ database: DatabaseConfig;
31
+ log: LogConfig;
32
+ defaults: DefaultsConfig;
33
+ };
34
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/config/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,OAAO,EAAE;QACP,QAAQ,EAAE;YACR,MAAM,EAAE,MAAM,CAAC;SAChB,CAAC;KACH,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,cAAc,CAAC;IACzB,GAAG,EAAE,SAAS,CAAC;IACf,QAAQ,EAAE,cAAc,CAAC;CAC1B,CAAC"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ /**
3
+ * Configuration types for podverse-orm
4
+ * These types are used by the app to create the configuration object
5
+ * that gets passed to createORMContext()
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,20 @@
1
+ import { DataSource } from "typeorm";
2
+ import { ILoggerLike } from "podverse-helpers/dist/lib/backend/logger";
3
+ import { ORMConfig } from "./config/types";
4
+ export declare function setORMContext(context: {
5
+ config: ORMConfig;
6
+ dataSourceRead: DataSource;
7
+ dataSourceReadWrite: DataSource;
8
+ loggerService: ILoggerLike;
9
+ }): void;
10
+ export declare function getORMContext(): {
11
+ config: ORMConfig;
12
+ dataSourceRead: DataSource;
13
+ dataSourceReadWrite: DataSource;
14
+ loggerService: ILoggerLike;
15
+ };
16
+ export declare function getDataSourceRead(): DataSource;
17
+ export declare function getDataSourceReadWrite(): DataSource;
18
+ export declare function getLoggerService(): ILoggerLike;
19
+ export declare function getORMConfig(): ORMConfig;
20
+ //# sourceMappingURL=context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAkB3C,wBAAgB,aAAa,CAAC,OAAO,EAAE;IACrC,MAAM,EAAE,SAAS,CAAC;IAClB,cAAc,EAAE,UAAU,CAAC;IAC3B,mBAAmB,EAAE,UAAU,CAAC;IAChC,aAAa,EAAE,WAAW,CAAC;CAC5B,GAAG,IAAI,CAEP;AAED,wBAAgB,aAAa;YAfnB,SAAS;oBACD,UAAU;yBACL,UAAU;mBAChB,WAAW;EAiB3B;AAGD,wBAAgB,iBAAiB,IAAI,UAAU,CAE9C;AAED,wBAAgB,sBAAsB,IAAI,UAAU,CAEnD;AAED,wBAAgB,gBAAgB,IAAI,WAAW,CAE9C;AAED,wBAAgB,YAAY,IAAI,SAAS,CAExC"}
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.setORMContext = setORMContext;
4
+ exports.getORMContext = getORMContext;
5
+ exports.getDataSourceRead = getDataSourceRead;
6
+ exports.getDataSourceReadWrite = getDataSourceReadWrite;
7
+ exports.getLoggerService = getLoggerService;
8
+ exports.getORMConfig = getORMConfig;
9
+ /**
10
+ * Module-level context holder for the ORM.
11
+ * This is set by createORMContext() and used by services.
12
+ *
13
+ * This pattern allows us to:
14
+ * 1. Remove process.env from the module
15
+ * 2. Keep the factory pattern (config comes from app)
16
+ * 3. Minimize changes to individual services
17
+ */
18
+ let _context = null;
19
+ function setORMContext(context) {
20
+ _context = context;
21
+ }
22
+ function getORMContext() {
23
+ if (!_context) {
24
+ throw new Error("ORM context not initialized. Call createORMContext() first.");
25
+ }
26
+ return _context;
27
+ }
28
+ // Convenience accessors
29
+ function getDataSourceRead() {
30
+ return getORMContext().dataSourceRead;
31
+ }
32
+ function getDataSourceReadWrite() {
33
+ return getORMContext().dataSourceReadWrite;
34
+ }
35
+ function getLoggerService() {
36
+ return getORMContext().loggerService;
37
+ }
38
+ function getORMConfig() {
39
+ return getORMContext().config;
40
+ }
@@ -0,0 +1,101 @@
1
+ import { Account } from "@orm/entities/account/account";
2
+ import { AccountAppStorePurchase } from "@orm/entities/account/accountAppStorePurchase";
3
+ import { AccountCredentials } from "@orm/entities/account/accountCredentials";
4
+ import { AccountFCMDevice } from "@orm/entities/account/accountFCMDevice";
5
+ import { AccountFollowingAccount } from "@orm/entities/account/accountFollowingAccount";
6
+ import { AccountFollowingAddByRSSChannel } from "@orm/entities/account/accountFollowingAddByRSSChannel";
7
+ import { AccountFollowingChannel } from "@orm/entities/account/accountFollowingChannel";
8
+ import { AccountFollowingPlaylist } from "@orm/entities/account/accountFollowingPlaylist";
9
+ import { AccountGooglePlayPurchase } from "@orm/entities/account/accountGooglePlayPurchase";
10
+ import { AccountMembership } from "@orm/entities/account/accountMembership";
11
+ import { AccountMembershipStatus } from "@orm/entities/account/accountMembershipStatus";
12
+ import { AccountNotificationChannelType } from "@orm/entities/account/accountNotificationChannelType";
13
+ import { AccountPayPalOrder } from "@orm/entities/account/accountPayPalOrder";
14
+ import { AccountProfile } from "@orm/entities/account/accountProfile";
15
+ import { AccountResetPassword } from "@orm/entities/account/accountResetPassword";
16
+ import { AccountSettings } from "@orm/entities/account/accountSettings/accountSettings";
17
+ import { AccountSettingsLocale } from "@orm/entities/account/accountSettings/accountSettingsLocale";
18
+ import { AccountSettingsNotification } from "@orm/entities/account/accountSettings/accountSettingsNotification";
19
+ import { AccountSettingsNotificationType } from "@orm/entities/account/accountSettings/accountSettingsNotificationType";
20
+ import { AccountUPDevice } from "@orm/entities/account/accountUPDevice";
21
+ import { AccountWebPushDevice } from "@orm/entities/account/accountWebPushDevice";
22
+ import { AccountVerification } from "@orm/entities/account/accountVerification";
23
+ import { Category } from "@orm/entities/category";
24
+ import { Channel } from "@orm/entities/channel/channel";
25
+ import { ChannelAbout } from "@orm/entities/channel/channelAbout";
26
+ import { ChannelCategory } from "@orm/entities/channel/channelCategory";
27
+ import { ChannelChat } from "@orm/entities/channel/channelChat";
28
+ import { ChannelDescription } from "@orm/entities/channel/channelDescription";
29
+ import { ChannelFunding } from "@orm/entities/channel/channelFunding";
30
+ import { ChannelImage } from "@orm/entities/channel/channelImage";
31
+ import { ChannelInternalSettings } from "@orm/entities/channel/channelInternalSettings";
32
+ import { ChannelItunesType } from "@orm/entities/channel/channelItunesType";
33
+ import { ChannelLicense } from "@orm/entities/channel/channelLicense";
34
+ import { ChannelLocation } from "@orm/entities/channel/channelLocation";
35
+ import { ChannelPerson } from "@orm/entities/channel/channelPerson";
36
+ import { ChannelPodroll } from "@orm/entities/channel/channelPodroll";
37
+ import { ChannelPodrollRemoteItem } from "@orm/entities/channel/channelPodrollRemoteItem";
38
+ import { ChannelPublisher } from "@orm/entities/channel/channelPublisher";
39
+ import { ChannelPublisherRemoteItem } from "@orm/entities/channel/channelPublisherRemoteItem";
40
+ import { ChannelRemoteItem } from "@orm/entities/channel/channelRemoteItem";
41
+ import { ChannelSeason } from "@orm/entities/channel/channelSeason";
42
+ import { ChannelSocialInteract } from "@orm/entities/channel/channelSocialInteract";
43
+ import { ChannelTrailer } from "@orm/entities/channel/channelTrailer";
44
+ import { ChannelValue } from "@orm/entities/channel/channelValue";
45
+ import { ChannelValueRecipient } from "@orm/entities/channel/channelValueRecipient";
46
+ import { Clip } from "@orm/entities/clip";
47
+ import { Feed } from "@orm/entities/feed/feed";
48
+ import { FeedFlagStatus } from "@orm/entities/feed/feedFlagStatus";
49
+ import { FeedLog } from "@orm/entities/feed/feedLog";
50
+ import { Item } from "@orm/entities/item/item";
51
+ import { ItemAbout } from "@orm/entities/item/itemAbout";
52
+ import { ItemChapter } from "@orm/entities/item/itemChapter";
53
+ import { ItemChapterLocation } from "@orm/entities/item/itemChapterLocation";
54
+ import { ItemChaptersFeed } from "@orm/entities/item/itemChaptersFeed";
55
+ import { ItemChaptersFeedLog } from "@orm/entities/item/itemChaptersFeedLog";
56
+ import { ItemChat } from "@orm/entities/item/itemChat";
57
+ import { ItemContentLink } from "@orm/entities/item/itemContentLink";
58
+ import { ItemDescription } from "@orm/entities/item/itemDescription";
59
+ import { ItemEnclosure } from "@orm/entities/item/itemEnclosure";
60
+ import { ItemEnclosureIntegrity } from "@orm/entities/item/itemEnclosureIntegrity";
61
+ import { ItemEnclosureSource } from "@orm/entities/item/itemEnclosureSource";
62
+ import { ItemFlagStatus } from "@orm/entities/item/itemFlagStatus";
63
+ import { ItemFunding } from "@orm/entities/item/itemFunding";
64
+ import { ItemImage } from "@orm/entities/item/itemImage";
65
+ import { ItemItunesEpisodeType } from "@orm/entities/item/itemItunesEpisodeType";
66
+ import { ItemLicense } from "@orm/entities/item/itemLicense";
67
+ import { ItemLocation } from "@orm/entities/item/itemLocation";
68
+ import { ItemPerson } from "@orm/entities/item/itemPerson";
69
+ import { ItemSeason } from "@orm/entities/item/itemSeason";
70
+ import { ItemSeasonEpisode } from "@orm/entities/item/itemSeasonEpisode";
71
+ import { ItemSocialInteract } from "@orm/entities/item/itemSocialInteract";
72
+ import { ItemSoundbite } from "@orm/entities/item/itemSoundbite";
73
+ import { ItemTranscript } from "@orm/entities/item/itemTranscript";
74
+ import { ItemValue } from "@orm/entities/item/itemValue";
75
+ import { ItemValueRecipient } from "@orm/entities/item/itemValueRecipient";
76
+ import { ItemValueTimeSplit } from "@orm/entities/item/itemValueTimeSplit";
77
+ import { ItemValueTimeSplitRecipient } from "@orm/entities/item/itemValueTimeSplitRecipient";
78
+ import { ItemValueTimeSplitRemoteItem } from "@orm/entities/item/itemValueTimeSplitRemoteItem";
79
+ import { LiveItem } from "@orm/entities/liveItem/liveItem";
80
+ import { LiveItemStatus } from "@orm/entities/liveItem/liveItemStatus";
81
+ import { Medium } from "@orm/entities/medium";
82
+ import { MembershipClaimToken } from "@orm/entities/membershipClaimToken";
83
+ import { OnDemandParserEvent } from "@orm/entities/onDemandParserEvent";
84
+ import { Playlist } from "@orm/entities/playlist/playlist";
85
+ import { PlaylistResource } from "@orm/entities/playlist/playlistResource";
86
+ import { Queue } from "@orm/entities/queue/queue";
87
+ import { QueueResource } from "@orm/entities/queue/queueResource";
88
+ import { SharableStatus } from "@orm/entities/sharableStatus";
89
+ import { StatsAggregatedAccount } from "@orm/entities/stats/statsAggregatedAccount";
90
+ import { StatsAggregatedChannel } from "@orm/entities/stats/statsAggregatedChannel";
91
+ import { StatsAggregatedClip } from "@orm/entities/stats/statsAggregatedClip";
92
+ import { StatsAggregatedItem } from "@orm/entities/stats/statsAggregatedItem";
93
+ import { StatsAggregatedPlaylist } from "@orm/entities/stats/statsAggregatedPlaylist";
94
+ import { StatsTrackAccountGuid } from "@orm/entities/stats/statsTrackAccountGuid";
95
+ import { StatsTrackEventAccount } from "@orm/entities/stats/statsTrackEventAccount";
96
+ import { StatsTrackEventChannel } from "@orm/entities/stats/statsTrackEventChannel";
97
+ import { StatsTrackEventClip } from "@orm/entities/stats/statsTrackEventClip";
98
+ import { StatsTrackEventItem } from "@orm/entities/stats/statsTrackEventItem";
99
+ import { StatsTrackEventPlaylist } from "@orm/entities/stats/statsTrackEventPlaylist";
100
+ export declare const entities: (typeof AccountAppStorePurchase | typeof Account | typeof AccountFCMDevice | typeof AccountFollowingAccount | typeof AccountFollowingAddByRSSChannel | typeof ChannelItunesType | typeof ChannelAbout | typeof Channel | typeof Category | typeof ChannelCategory | typeof ChannelChat | typeof ChannelDescription | typeof ChannelFunding | typeof ChannelImage | typeof ChannelInternalSettings | typeof ChannelLicense | typeof ChannelLocation | typeof ChannelPerson | typeof ChannelPodrollRemoteItem | typeof ChannelPodroll | typeof ChannelPublisherRemoteItem | typeof ChannelPublisher | typeof ChannelRemoteItem | typeof ChannelSeason | typeof ChannelSocialInteract | typeof ChannelTrailer | typeof ChannelValueRecipient | typeof ChannelValue | typeof FeedFlagStatus | typeof Feed | typeof FeedLog | typeof Medium | typeof LiveItemStatus | typeof LiveItem | typeof Item | typeof ItemChaptersFeedLog | typeof ItemChaptersFeed | typeof ItemChapter | typeof ItemValueTimeSplitRemoteItem | typeof ItemValueTimeSplit | typeof ItemValueTimeSplitRecipient | typeof ItemValue | typeof ItemValueRecipient | typeof ItemItunesEpisodeType | typeof ItemAbout | typeof ItemChat | typeof ItemContentLink | typeof ItemDescription | typeof ItemEnclosureSource | typeof ItemEnclosure | typeof ItemEnclosureIntegrity | typeof ItemFunding | typeof ItemImage | typeof ItemLicense | typeof ItemLocation | typeof ItemPerson | typeof ItemSeason | typeof ItemSeasonEpisode | typeof ItemSocialInteract | typeof ItemSoundbite | typeof ItemTranscript | typeof ItemFlagStatus | typeof AccountFollowingChannel | typeof SharableStatus | typeof Clip | typeof PlaylistResource | typeof Playlist | typeof AccountFollowingPlaylist | typeof AccountGooglePlayPurchase | typeof AccountMembershipStatus | typeof AccountMembership | typeof AccountNotificationChannelType | typeof AccountPayPalOrder | typeof AccountProfile | typeof AccountResetPassword | typeof AccountSettingsLocale | typeof AccountSettings | typeof AccountSettingsNotificationType | typeof AccountSettingsNotification | typeof AccountUPDevice | typeof AccountVerification | typeof AccountWebPushDevice | typeof ItemChapterLocation | typeof Queue | typeof QueueResource | typeof MembershipClaimToken | typeof StatsAggregatedAccount | typeof StatsAggregatedChannel | typeof StatsAggregatedClip | typeof StatsAggregatedItem | typeof StatsAggregatedPlaylist | typeof StatsTrackAccountGuid | typeof StatsTrackEventAccount | typeof StatsTrackEventChannel | typeof StatsTrackEventClip | typeof StatsTrackEventItem | typeof StatsTrackEventPlaylist | typeof AccountCredentials | typeof OnDemandParserEvent)[];
101
+ //# sourceMappingURL=entities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../src/db/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAE9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,+BAA+B,EAAE,MAAM,uDAAuD,CAAC;AACxG,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAC1F,OAAO,EAAE,yBAAyB,EAAE,MAAM,iDAAiD,CAAC;AAC5F,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,EAAE,uBAAuB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B,EAAE,MAAM,oCAAoC,CAAC;AAC1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAC3E,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AAEtF,eAAO,MAAM,QAAQ,+jFAwGpB,CAAC"}
@@ -0,0 +1,211 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.entities = void 0;
4
+ const account_1 = require("@orm/entities/account/account");
5
+ const accountAppStorePurchase_1 = require("@orm/entities/account/accountAppStorePurchase");
6
+ const accountCredentials_1 = require("@orm/entities/account/accountCredentials");
7
+ const accountEmailChangeVerification_1 = require("@orm/entities/account/accountEmailChangeVerification");
8
+ const accountFCMDevice_1 = require("@orm/entities/account/accountFCMDevice");
9
+ const accountFollowingAccount_1 = require("@orm/entities/account/accountFollowingAccount");
10
+ const accountFollowingAddByRSSChannel_1 = require("@orm/entities/account/accountFollowingAddByRSSChannel");
11
+ const accountFollowingChannel_1 = require("@orm/entities/account/accountFollowingChannel");
12
+ const accountFollowingPlaylist_1 = require("@orm/entities/account/accountFollowingPlaylist");
13
+ const accountGooglePlayPurchase_1 = require("@orm/entities/account/accountGooglePlayPurchase");
14
+ const accountMembership_1 = require("@orm/entities/account/accountMembership");
15
+ const accountMembershipStatus_1 = require("@orm/entities/account/accountMembershipStatus");
16
+ const accountNotificationChannel_1 = require("@orm/entities/account/accountNotificationChannel");
17
+ const accountNotificationChannelType_1 = require("@orm/entities/account/accountNotificationChannelType");
18
+ const accountPayPalOrder_1 = require("@orm/entities/account/accountPayPalOrder");
19
+ const accountProfile_1 = require("@orm/entities/account/accountProfile");
20
+ const accountResetPassword_1 = require("@orm/entities/account/accountResetPassword");
21
+ const accountSettings_1 = require("@orm/entities/account/accountSettings/accountSettings");
22
+ const accountSettingsLocale_1 = require("@orm/entities/account/accountSettings/accountSettingsLocale");
23
+ const accountSettingsNotification_1 = require("@orm/entities/account/accountSettings/accountSettingsNotification");
24
+ const accountSettingsNotificationType_1 = require("@orm/entities/account/accountSettings/accountSettingsNotificationType");
25
+ const accountUPDevice_1 = require("@orm/entities/account/accountUPDevice");
26
+ const accountWebPushDevice_1 = require("@orm/entities/account/accountWebPushDevice");
27
+ const accountVerification_1 = require("@orm/entities/account/accountVerification");
28
+ const category_1 = require("@orm/entities/category");
29
+ const channel_1 = require("@orm/entities/channel/channel");
30
+ const channelAbout_1 = require("@orm/entities/channel/channelAbout");
31
+ const channelCategory_1 = require("@orm/entities/channel/channelCategory");
32
+ const channelChat_1 = require("@orm/entities/channel/channelChat");
33
+ const channelDescription_1 = require("@orm/entities/channel/channelDescription");
34
+ const channelFunding_1 = require("@orm/entities/channel/channelFunding");
35
+ const channelImage_1 = require("@orm/entities/channel/channelImage");
36
+ const channelInternalSettings_1 = require("@orm/entities/channel/channelInternalSettings");
37
+ const channelItunesType_1 = require("@orm/entities/channel/channelItunesType");
38
+ const channelLicense_1 = require("@orm/entities/channel/channelLicense");
39
+ const channelLocation_1 = require("@orm/entities/channel/channelLocation");
40
+ const channelPerson_1 = require("@orm/entities/channel/channelPerson");
41
+ const channelPodroll_1 = require("@orm/entities/channel/channelPodroll");
42
+ const channelPodrollRemoteItem_1 = require("@orm/entities/channel/channelPodrollRemoteItem");
43
+ const channelPublisher_1 = require("@orm/entities/channel/channelPublisher");
44
+ const channelPublisherRemoteItem_1 = require("@orm/entities/channel/channelPublisherRemoteItem");
45
+ const channelRemoteItem_1 = require("@orm/entities/channel/channelRemoteItem");
46
+ const channelSeason_1 = require("@orm/entities/channel/channelSeason");
47
+ const channelSocialInteract_1 = require("@orm/entities/channel/channelSocialInteract");
48
+ const channelTrailer_1 = require("@orm/entities/channel/channelTrailer");
49
+ const channelTxt_1 = require("@orm/entities/channel/channelTxt");
50
+ const channelValue_1 = require("@orm/entities/channel/channelValue");
51
+ const channelValueRecipient_1 = require("@orm/entities/channel/channelValueRecipient");
52
+ const clip_1 = require("@orm/entities/clip");
53
+ const feed_1 = require("@orm/entities/feed/feed");
54
+ const feedFlagStatus_1 = require("@orm/entities/feed/feedFlagStatus");
55
+ const feedLog_1 = require("@orm/entities/feed/feedLog");
56
+ const item_1 = require("@orm/entities/item/item");
57
+ const itemAbout_1 = require("@orm/entities/item/itemAbout");
58
+ const itemChapter_1 = require("@orm/entities/item/itemChapter");
59
+ const itemChapterLocation_1 = require("@orm/entities/item/itemChapterLocation");
60
+ const itemChaptersFeed_1 = require("@orm/entities/item/itemChaptersFeed");
61
+ const itemChaptersFeedLog_1 = require("@orm/entities/item/itemChaptersFeedLog");
62
+ const itemChat_1 = require("@orm/entities/item/itemChat");
63
+ const itemContentLink_1 = require("@orm/entities/item/itemContentLink");
64
+ const itemDescription_1 = require("@orm/entities/item/itemDescription");
65
+ const itemEnclosure_1 = require("@orm/entities/item/itemEnclosure");
66
+ const itemEnclosureIntegrity_1 = require("@orm/entities/item/itemEnclosureIntegrity");
67
+ const itemEnclosureSource_1 = require("@orm/entities/item/itemEnclosureSource");
68
+ const itemFlagStatus_1 = require("@orm/entities/item/itemFlagStatus");
69
+ const itemFunding_1 = require("@orm/entities/item/itemFunding");
70
+ const itemImage_1 = require("@orm/entities/item/itemImage");
71
+ const itemItunesEpisodeType_1 = require("@orm/entities/item/itemItunesEpisodeType");
72
+ const itemLicense_1 = require("@orm/entities/item/itemLicense");
73
+ const itemLocation_1 = require("@orm/entities/item/itemLocation");
74
+ const itemPerson_1 = require("@orm/entities/item/itemPerson");
75
+ const itemSeason_1 = require("@orm/entities/item/itemSeason");
76
+ const itemSeasonEpisode_1 = require("@orm/entities/item/itemSeasonEpisode");
77
+ const itemSocialInteract_1 = require("@orm/entities/item/itemSocialInteract");
78
+ const itemSoundbite_1 = require("@orm/entities/item/itemSoundbite");
79
+ const itemTranscript_1 = require("@orm/entities/item/itemTranscript");
80
+ const itemTxt_1 = require("@orm/entities/item/itemTxt");
81
+ const itemValue_1 = require("@orm/entities/item/itemValue");
82
+ const itemValueRecipient_1 = require("@orm/entities/item/itemValueRecipient");
83
+ const itemValueTimeSplit_1 = require("@orm/entities/item/itemValueTimeSplit");
84
+ const itemValueTimeSplitRecipient_1 = require("@orm/entities/item/itemValueTimeSplitRecipient");
85
+ const itemValueTimeSplitRemoteItem_1 = require("@orm/entities/item/itemValueTimeSplitRemoteItem");
86
+ const liveItem_1 = require("@orm/entities/liveItem/liveItem");
87
+ const liveItemStatus_1 = require("@orm/entities/liveItem/liveItemStatus");
88
+ const medium_1 = require("@orm/entities/medium");
89
+ const membershipClaimToken_1 = require("@orm/entities/membershipClaimToken");
90
+ const onDemandParserEvent_1 = require("@orm/entities/onDemandParserEvent");
91
+ const playlist_1 = require("@orm/entities/playlist/playlist");
92
+ const playlistResource_1 = require("@orm/entities/playlist/playlistResource");
93
+ const queue_1 = require("@orm/entities/queue/queue");
94
+ const queueResource_1 = require("@orm/entities/queue/queueResource");
95
+ const sharableStatus_1 = require("@orm/entities/sharableStatus");
96
+ const statsAggregatedAccount_1 = require("@orm/entities/stats/statsAggregatedAccount");
97
+ const statsAggregatedChannel_1 = require("@orm/entities/stats/statsAggregatedChannel");
98
+ const statsAggregatedClip_1 = require("@orm/entities/stats/statsAggregatedClip");
99
+ const statsAggregatedItem_1 = require("@orm/entities/stats/statsAggregatedItem");
100
+ const statsAggregatedPlaylist_1 = require("@orm/entities/stats/statsAggregatedPlaylist");
101
+ const statsTrackAccountGuid_1 = require("@orm/entities/stats/statsTrackAccountGuid");
102
+ const statsTrackEventAccount_1 = require("@orm/entities/stats/statsTrackEventAccount");
103
+ const statsTrackEventChannel_1 = require("@orm/entities/stats/statsTrackEventChannel");
104
+ const statsTrackEventClip_1 = require("@orm/entities/stats/statsTrackEventClip");
105
+ const statsTrackEventItem_1 = require("@orm/entities/stats/statsTrackEventItem");
106
+ const statsTrackEventPlaylist_1 = require("@orm/entities/stats/statsTrackEventPlaylist");
107
+ exports.entities = [
108
+ account_1.Account,
109
+ accountAppStorePurchase_1.AccountAppStorePurchase,
110
+ accountCredentials_1.AccountCredentials,
111
+ accountEmailChangeVerification_1.AccountEmailChangeVerification,
112
+ accountFCMDevice_1.AccountFCMDevice,
113
+ accountFollowingAccount_1.AccountFollowingAccount,
114
+ accountFollowingAddByRSSChannel_1.AccountFollowingAddByRSSChannel,
115
+ accountFollowingChannel_1.AccountFollowingChannel,
116
+ accountFollowingPlaylist_1.AccountFollowingPlaylist,
117
+ accountGooglePlayPurchase_1.AccountGooglePlayPurchase,
118
+ accountMembership_1.AccountMembership,
119
+ accountMembershipStatus_1.AccountMembershipStatus,
120
+ accountNotificationChannel_1.AccountNotificationChannel,
121
+ accountNotificationChannelType_1.AccountNotificationChannelType,
122
+ accountPayPalOrder_1.AccountPayPalOrder,
123
+ accountProfile_1.AccountProfile,
124
+ accountResetPassword_1.AccountResetPassword,
125
+ accountSettings_1.AccountSettings,
126
+ accountSettingsLocale_1.AccountSettingsLocale,
127
+ accountSettingsNotification_1.AccountSettingsNotification,
128
+ accountSettingsNotificationType_1.AccountSettingsNotificationType,
129
+ accountUPDevice_1.AccountUPDevice,
130
+ accountWebPushDevice_1.AccountWebPushDevice,
131
+ accountVerification_1.AccountVerification,
132
+ category_1.Category,
133
+ channel_1.Channel,
134
+ channelAbout_1.ChannelAbout,
135
+ channelCategory_1.ChannelCategory,
136
+ channelChat_1.ChannelChat,
137
+ channelDescription_1.ChannelDescription,
138
+ channelFunding_1.ChannelFunding,
139
+ channelImage_1.ChannelImage,
140
+ channelInternalSettings_1.ChannelInternalSettings,
141
+ channelItunesType_1.ChannelItunesType,
142
+ channelLicense_1.ChannelLicense,
143
+ channelLocation_1.ChannelLocation,
144
+ channelPerson_1.ChannelPerson,
145
+ channelPodroll_1.ChannelPodroll,
146
+ channelPodrollRemoteItem_1.ChannelPodrollRemoteItem,
147
+ channelPublisher_1.ChannelPublisher,
148
+ channelPublisherRemoteItem_1.ChannelPublisherRemoteItem,
149
+ channelRemoteItem_1.ChannelRemoteItem,
150
+ channelSeason_1.ChannelSeason,
151
+ channelSocialInteract_1.ChannelSocialInteract,
152
+ channelTrailer_1.ChannelTrailer,
153
+ channelTxt_1.ChannelTxt,
154
+ channelValue_1.ChannelValue,
155
+ channelValueRecipient_1.ChannelValueRecipient,
156
+ clip_1.Clip,
157
+ feed_1.Feed,
158
+ feedFlagStatus_1.FeedFlagStatus,
159
+ feedLog_1.FeedLog,
160
+ item_1.Item,
161
+ itemAbout_1.ItemAbout,
162
+ itemChapter_1.ItemChapter,
163
+ itemChapterLocation_1.ItemChapterLocation,
164
+ itemChaptersFeed_1.ItemChaptersFeed,
165
+ itemChaptersFeedLog_1.ItemChaptersFeedLog,
166
+ itemChat_1.ItemChat,
167
+ itemContentLink_1.ItemContentLink,
168
+ itemDescription_1.ItemDescription,
169
+ itemEnclosure_1.ItemEnclosure,
170
+ itemEnclosureIntegrity_1.ItemEnclosureIntegrity,
171
+ itemEnclosureSource_1.ItemEnclosureSource,
172
+ itemFlagStatus_1.ItemFlagStatus,
173
+ itemFunding_1.ItemFunding,
174
+ itemImage_1.ItemImage,
175
+ itemItunesEpisodeType_1.ItemItunesEpisodeType,
176
+ itemLicense_1.ItemLicense,
177
+ itemLocation_1.ItemLocation,
178
+ itemPerson_1.ItemPerson,
179
+ itemSeason_1.ItemSeason,
180
+ itemSeasonEpisode_1.ItemSeasonEpisode,
181
+ itemSocialInteract_1.ItemSocialInteract,
182
+ itemSoundbite_1.ItemSoundbite,
183
+ itemTranscript_1.ItemTranscript,
184
+ itemTxt_1.ItemTxt,
185
+ itemValue_1.ItemValue,
186
+ itemValueRecipient_1.ItemValueRecipient,
187
+ itemValueTimeSplit_1.ItemValueTimeSplit,
188
+ itemValueTimeSplitRecipient_1.ItemValueTimeSplitRecipient,
189
+ itemValueTimeSplitRemoteItem_1.ItemValueTimeSplitRemoteItem,
190
+ liveItem_1.LiveItem,
191
+ liveItemStatus_1.LiveItemStatus,
192
+ membershipClaimToken_1.MembershipClaimToken,
193
+ medium_1.Medium,
194
+ onDemandParserEvent_1.OnDemandParserEvent,
195
+ playlist_1.Playlist,
196
+ playlistResource_1.PlaylistResource,
197
+ queue_1.Queue,
198
+ queueResource_1.QueueResource,
199
+ sharableStatus_1.SharableStatus,
200
+ statsAggregatedAccount_1.StatsAggregatedAccount,
201
+ statsAggregatedChannel_1.StatsAggregatedChannel,
202
+ statsAggregatedClip_1.StatsAggregatedClip,
203
+ statsAggregatedItem_1.StatsAggregatedItem,
204
+ statsAggregatedPlaylist_1.StatsAggregatedPlaylist,
205
+ statsTrackAccountGuid_1.StatsTrackAccountGuid,
206
+ statsTrackEventAccount_1.StatsTrackEventAccount,
207
+ statsTrackEventChannel_1.StatsTrackEventChannel,
208
+ statsTrackEventClip_1.StatsTrackEventClip,
209
+ statsTrackEventItem_1.StatsTrackEventItem,
210
+ statsTrackEventPlaylist_1.StatsTrackEventPlaylist,
211
+ ];
@@ -1,6 +1,15 @@
1
- import { DataSource } from "typeorm";
2
- export declare const AppDataSourceRead: DataSource;
3
- export declare const AppDataSourceReadWrite: DataSource;
1
+ import { DataSource, EntityTarget, ObjectLiteral, Repository } from "typeorm";
2
+ export { entities } from "./entities";
3
+ type DataSourceProxy = {
4
+ readonly isInitialized: boolean;
5
+ getRepository<Entity extends ObjectLiteral>(target: EntityTarget<Entity>): Repository<Entity>;
6
+ initialize(): Promise<DataSource>;
7
+ destroy(): Promise<void>;
8
+ createQueryRunner(): ReturnType<DataSource['createQueryRunner']>;
9
+ readonly manager: DataSource['manager'];
10
+ };
11
+ export declare const AppDataSourceRead: DataSourceProxy;
12
+ export declare const AppDataSourceReadWrite: DataSourceProxy;
4
13
  export interface RepositoryOptions {
5
14
  dbuser: 'read' | 'read_write';
6
15
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/db/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAqB,MAAM,SAAS,CAAC;AA6OxD,eAAO,MAAM,iBAAiB,YAA6B,CAAC;AAC5D,eAAO,MAAM,sBAAsB,YAAkC,CAAC;AAEtE,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,GAAG,YAAY,CAAC;CAC/B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/db/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAI9E,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAGtC,KAAK,eAAe,GAAG;IACrB,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC;IAChC,aAAa,CAAC,MAAM,SAAS,aAAa,EAAE,MAAM,EAAE,YAAY,CAAC,MAAM,CAAC,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC;IAC9F,UAAU,IAAI,OAAO,CAAC,UAAU,CAAC,CAAC;IAClC,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACzB,iBAAiB,IAAI,UAAU,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC,CAAC;IACjE,QAAQ,CAAC,OAAO,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;CACzC,CAAC;AAIF,eAAO,MAAM,iBAAiB,EAAE,eAmB/B,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,eAmBpC,CAAC;AAEF,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,GAAG,YAAY,CAAC;CAC/B"}