@earbug/db-models 0.0.31 → 0.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AffinityTier.d.ts +24 -0
- package/dist/CanonArtist.d.ts +12 -0
- package/dist/CanonGenre.d.ts +12 -0
- package/dist/PlatformUserPlaylist.d.ts +24 -0
- package/dist/PlatformUserPlaylistArtistAffinity.d.ts +40 -0
- package/dist/PlatformUserPlaylistArtistAffinity.js +120 -0
- package/dist/PlatformUserPlaylistGenreAffinity.d.ts +40 -0
- package/dist/PlatformUserPlaylistGenreAffinity.js +120 -0
- package/dist/RadioShowMedia.d.ts +11 -1
- package/dist/RadioShowMedia.js +23 -0
- package/dist/RadioShowPlacement.d.ts +3 -1
- package/dist/RadioShowPlacement.js +4 -0
- package/dist/init-models.d.ts +8 -2
- package/dist/init-models.js +21 -1
- package/models/AffinityTier.ts +26 -0
- package/models/CanonArtist.ts +13 -0
- package/models/CanonGenre.ts +13 -0
- package/models/PlatformUserPlaylist.ts +26 -0
- package/models/PlatformUserPlaylistArtistAffinity.ts +136 -0
- package/models/PlatformUserPlaylistGenreAffinity.ts +136 -0
- package/models/RadioShowMedia.ts +34 -1
- package/models/RadioShowPlacement.ts +7 -1
- package/models/init-models.ts +26 -0
- package/package.json +1 -1
package/models/init-models.ts
CHANGED
|
@@ -153,6 +153,10 @@ import { PlatformUserAlbumTrack as _PlatformUserAlbumTrack } from "./PlatformUse
|
|
|
153
153
|
import type { PlatformUserAlbumTrackAttributes, PlatformUserAlbumTrackCreationAttributes } from "./PlatformUserAlbumTrack";
|
|
154
154
|
import { PlatformUserPlaylist as _PlatformUserPlaylist } from "./PlatformUserPlaylist";
|
|
155
155
|
import type { PlatformUserPlaylistAttributes, PlatformUserPlaylistCreationAttributes } from "./PlatformUserPlaylist";
|
|
156
|
+
import { PlatformUserPlaylistArtistAffinity as _PlatformUserPlaylistArtistAffinity } from "./PlatformUserPlaylistArtistAffinity";
|
|
157
|
+
import type { PlatformUserPlaylistArtistAffinityAttributes, PlatformUserPlaylistArtistAffinityCreationAttributes } from "./PlatformUserPlaylistArtistAffinity";
|
|
158
|
+
import { PlatformUserPlaylistGenreAffinity as _PlatformUserPlaylistGenreAffinity } from "./PlatformUserPlaylistGenreAffinity";
|
|
159
|
+
import type { PlatformUserPlaylistGenreAffinityAttributes, PlatformUserPlaylistGenreAffinityCreationAttributes } from "./PlatformUserPlaylistGenreAffinity";
|
|
156
160
|
import { PlatformUserPlaylistTrack as _PlatformUserPlaylistTrack } from "./PlatformUserPlaylistTrack";
|
|
157
161
|
import type { PlatformUserPlaylistTrackAttributes, PlatformUserPlaylistTrackCreationAttributes } from "./PlatformUserPlaylistTrack";
|
|
158
162
|
import { PlaybackStatus as _PlaybackStatus } from "./PlaybackStatus";
|
|
@@ -270,6 +274,8 @@ export {
|
|
|
270
274
|
_PlatformUserAlbum as PlatformUserAlbum,
|
|
271
275
|
_PlatformUserAlbumTrack as PlatformUserAlbumTrack,
|
|
272
276
|
_PlatformUserPlaylist as PlatformUserPlaylist,
|
|
277
|
+
_PlatformUserPlaylistArtistAffinity as PlatformUserPlaylistArtistAffinity,
|
|
278
|
+
_PlatformUserPlaylistGenreAffinity as PlatformUserPlaylistGenreAffinity,
|
|
273
279
|
_PlatformUserPlaylistTrack as PlatformUserPlaylistTrack,
|
|
274
280
|
_PlaybackStatus as PlaybackStatus,
|
|
275
281
|
_PlaybackStatusType as PlaybackStatusType,
|
|
@@ -446,6 +452,10 @@ export type {
|
|
|
446
452
|
PlatformUserAlbumTrackCreationAttributes,
|
|
447
453
|
PlatformUserPlaylistAttributes,
|
|
448
454
|
PlatformUserPlaylistCreationAttributes,
|
|
455
|
+
PlatformUserPlaylistArtistAffinityAttributes,
|
|
456
|
+
PlatformUserPlaylistArtistAffinityCreationAttributes,
|
|
457
|
+
PlatformUserPlaylistGenreAffinityAttributes,
|
|
458
|
+
PlatformUserPlaylistGenreAffinityCreationAttributes,
|
|
449
459
|
PlatformUserPlaylistTrackAttributes,
|
|
450
460
|
PlatformUserPlaylistTrackCreationAttributes,
|
|
451
461
|
PlaybackStatusAttributes,
|
|
@@ -564,6 +574,8 @@ export function initModels(sequelize: Sequelize) {
|
|
|
564
574
|
const PlatformUserAlbum = _PlatformUserAlbum.initModel(sequelize);
|
|
565
575
|
const PlatformUserAlbumTrack = _PlatformUserAlbumTrack.initModel(sequelize);
|
|
566
576
|
const PlatformUserPlaylist = _PlatformUserPlaylist.initModel(sequelize);
|
|
577
|
+
const PlatformUserPlaylistArtistAffinity = _PlatformUserPlaylistArtistAffinity.initModel(sequelize);
|
|
578
|
+
const PlatformUserPlaylistGenreAffinity = _PlatformUserPlaylistGenreAffinity.initModel(sequelize);
|
|
567
579
|
const PlatformUserPlaylistTrack = _PlatformUserPlaylistTrack.initModel(sequelize);
|
|
568
580
|
const PlaybackStatus = _PlaybackStatus.initModel(sequelize);
|
|
569
581
|
const PlaybackStatusType = _PlaybackStatusType.initModel(sequelize);
|
|
@@ -634,6 +646,10 @@ export function initModels(sequelize: Sequelize) {
|
|
|
634
646
|
AffinityTier.hasMany(JukeboxSessionArtistAffinity, { as: "jukeboxSessionArtistAffinities", foreignKey: "affinityTierId"});
|
|
635
647
|
JukeboxSessionGenreAffinity.belongsTo(AffinityTier, { as: "affinityTier", foreignKey: "affinityTierId"});
|
|
636
648
|
AffinityTier.hasMany(JukeboxSessionGenreAffinity, { as: "jukeboxSessionGenreAffinities", foreignKey: "affinityTierId"});
|
|
649
|
+
PlatformUserPlaylistArtistAffinity.belongsTo(AffinityTier, { as: "affinityTier", foreignKey: "affinityTierId"});
|
|
650
|
+
AffinityTier.hasMany(PlatformUserPlaylistArtistAffinity, { as: "platformUserPlaylistArtistAffinities", foreignKey: "affinityTierId"});
|
|
651
|
+
PlatformUserPlaylistGenreAffinity.belongsTo(AffinityTier, { as: "affinityTier", foreignKey: "affinityTierId"});
|
|
652
|
+
AffinityTier.hasMany(PlatformUserPlaylistGenreAffinity, { as: "platformUserPlaylistGenreAffinities", foreignKey: "affinityTierId"});
|
|
637
653
|
UserArtistAffinity.belongsTo(AffinityTier, { as: "affinityTier", foreignKey: "affinityTierId"});
|
|
638
654
|
AffinityTier.hasMany(UserArtistAffinity, { as: "userArtistAffinities", foreignKey: "affinityTierId"});
|
|
639
655
|
UserGenreAffinity.belongsTo(AffinityTier, { as: "affinityTier", foreignKey: "affinityTierId"});
|
|
@@ -702,6 +718,8 @@ export function initModels(sequelize: Sequelize) {
|
|
|
702
718
|
CanonArtist.hasMany(MerchOrchestration, { as: "merchOrchestrations", foreignKey: "canonArtistId"});
|
|
703
719
|
NewsArticle.belongsTo(CanonArtist, { as: "canonArtist", foreignKey: "canonArtistId"});
|
|
704
720
|
CanonArtist.hasMany(NewsArticle, { as: "newsArticles", foreignKey: "canonArtistId"});
|
|
721
|
+
PlatformUserPlaylistArtistAffinity.belongsTo(CanonArtist, { as: "canonArtist", foreignKey: "canonArtistId"});
|
|
722
|
+
CanonArtist.hasMany(PlatformUserPlaylistArtistAffinity, { as: "platformUserPlaylistArtistAffinities", foreignKey: "canonArtistId"});
|
|
705
723
|
UserArtistAffinity.belongsTo(CanonArtist, { as: "canonArtist", foreignKey: "canonArtistId"});
|
|
706
724
|
CanonArtist.hasMany(UserArtistAffinity, { as: "userArtistAffinities", foreignKey: "canonArtistId"});
|
|
707
725
|
CanonAlbumGenreRelation.belongsTo(CanonGenre, { as: "canonGenre", foreignKey: "canonGenreId"});
|
|
@@ -716,6 +734,8 @@ export function initModels(sequelize: Sequelize) {
|
|
|
716
734
|
CanonGenre.hasMany(JukeboxCanonGenreRelation, { as: "jukeboxCanonGenreRelations", foreignKey: "canonGenreId"});
|
|
717
735
|
JukeboxSessionGenreAffinity.belongsTo(CanonGenre, { as: "canonGenre", foreignKey: "canonGenreId"});
|
|
718
736
|
CanonGenre.hasMany(JukeboxSessionGenreAffinity, { as: "jukeboxSessionGenreAffinities", foreignKey: "canonGenreId"});
|
|
737
|
+
PlatformUserPlaylistGenreAffinity.belongsTo(CanonGenre, { as: "canonGenre", foreignKey: "canonGenreId"});
|
|
738
|
+
CanonGenre.hasMany(PlatformUserPlaylistGenreAffinity, { as: "platformUserPlaylistGenreAffinities", foreignKey: "canonGenreId"});
|
|
719
739
|
RadioShowGenres.belongsTo(CanonGenre, { as: "canonGenre", foreignKey: "canonGenreId"});
|
|
720
740
|
CanonGenre.hasMany(RadioShowGenres, { as: "radioShowGenres", foreignKey: "canonGenreId"});
|
|
721
741
|
UserGenreAffinity.belongsTo(CanonGenre, { as: "canonGenre", foreignKey: "canonGenreId"});
|
|
@@ -874,6 +894,10 @@ export function initModels(sequelize: Sequelize) {
|
|
|
874
894
|
PlatformTrack.hasMany(PlatformUserPlaylistTrack, { as: "platformUserPlaylistTracks", foreignKey: "platformTrackId"});
|
|
875
895
|
PlatformUserAlbumTrack.belongsTo(PlatformUserAlbum, { as: "platformUserAlbum", foreignKey: "platformUserAlbumId"});
|
|
876
896
|
PlatformUserAlbum.hasMany(PlatformUserAlbumTrack, { as: "platformUserAlbumTracks", foreignKey: "platformUserAlbumId"});
|
|
897
|
+
PlatformUserPlaylistArtistAffinity.belongsTo(PlatformUserPlaylist, { as: "platformUserPlaylist", foreignKey: "platformUserPlaylistId"});
|
|
898
|
+
PlatformUserPlaylist.hasMany(PlatformUserPlaylistArtistAffinity, { as: "platformUserPlaylistArtistAffinities", foreignKey: "platformUserPlaylistId"});
|
|
899
|
+
PlatformUserPlaylistGenreAffinity.belongsTo(PlatformUserPlaylist, { as: "platformUserPlaylist", foreignKey: "platformUserPlaylistId"});
|
|
900
|
+
PlatformUserPlaylist.hasMany(PlatformUserPlaylistGenreAffinity, { as: "platformUserPlaylistGenreAffinities", foreignKey: "platformUserPlaylistId"});
|
|
877
901
|
PlatformUserPlaylistTrack.belongsTo(PlatformUserPlaylist, { as: "platformUserPlaylist", foreignKey: "platformUserPlaylistId"});
|
|
878
902
|
PlatformUserPlaylist.hasMany(PlatformUserPlaylistTrack, { as: "platformUserPlaylistTracks", foreignKey: "platformUserPlaylistId"});
|
|
879
903
|
UserComments.belongsTo(PlatformUserPlaylist, { as: "playlist", foreignKey: "playlistId"});
|
|
@@ -983,6 +1007,8 @@ export function initModels(sequelize: Sequelize) {
|
|
|
983
1007
|
PlatformUserAlbum: PlatformUserAlbum,
|
|
984
1008
|
PlatformUserAlbumTrack: PlatformUserAlbumTrack,
|
|
985
1009
|
PlatformUserPlaylist: PlatformUserPlaylist,
|
|
1010
|
+
PlatformUserPlaylistArtistAffinity: PlatformUserPlaylistArtistAffinity,
|
|
1011
|
+
PlatformUserPlaylistGenreAffinity: PlatformUserPlaylistGenreAffinity,
|
|
986
1012
|
PlatformUserPlaylistTrack: PlatformUserPlaylistTrack,
|
|
987
1013
|
PlaybackStatus: PlaybackStatus,
|
|
988
1014
|
PlaybackStatusType: PlaybackStatusType,
|