@earbug/db-models 0.0.8 → 0.0.10
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/AppUser.d.ts +35 -0
- package/dist/CanonGenre.d.ts +12 -0
- package/dist/CanonTrack.d.ts +12 -0
- package/dist/JukeboxSession.d.ts +12 -0
- package/dist/Notification.d.ts +62 -0
- package/dist/Notification.js +163 -0
- package/dist/NotificationType.d.ts +26 -0
- package/dist/NotificationType.js +42 -0
- package/dist/RadioShow.d.ts +80 -0
- package/dist/RadioShow.js +93 -0
- package/dist/RadioShowGenres.d.ts +29 -0
- package/dist/RadioShowGenres.js +53 -0
- package/dist/RadioShowMedia.d.ts +30 -0
- package/dist/RadioShowMedia.js +89 -0
- package/dist/RadioShowPlacement.d.ts +35 -0
- package/dist/RadioShowPlacement.js +69 -0
- package/dist/RadioShowPublishRequests.d.ts +26 -0
- package/dist/RadioShowPublishRequests.js +80 -0
- package/dist/init-models.d.ts +23 -2
- package/dist/init-models.js +52 -2
- package/models/AppUser.ts +38 -0
- package/models/CanonGenre.ts +13 -0
- package/models/CanonTrack.ts +13 -0
- package/models/JukeboxSession.ts +13 -0
- package/models/Notification.ts +202 -0
- package/models/NotificationType.ts +66 -0
- package/models/RadioShow.ts +151 -0
- package/models/RadioShowGenres.ts +81 -0
- package/models/RadioShowMedia.ts +93 -0
- package/models/RadioShowPlacement.ts +103 -0
- package/models/RadioShowPublishRequests.ts +80 -0
- package/models/init-models.ts +71 -0
- package/package.json +1 -1
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RadioShowGenres = void 0;
|
|
4
|
+
const sequelize_1 = require("sequelize");
|
|
5
|
+
class RadioShowGenres extends sequelize_1.Model {
|
|
6
|
+
static initModel(sequelize) {
|
|
7
|
+
return RadioShowGenres.init({
|
|
8
|
+
canonGenreId: {
|
|
9
|
+
type: sequelize_1.DataTypes.UUID,
|
|
10
|
+
allowNull: false,
|
|
11
|
+
references: {
|
|
12
|
+
model: 'canon_genre',
|
|
13
|
+
key: 'id'
|
|
14
|
+
},
|
|
15
|
+
field: 'canon_genre_id'
|
|
16
|
+
},
|
|
17
|
+
radioShowId: {
|
|
18
|
+
type: sequelize_1.DataTypes.UUID,
|
|
19
|
+
allowNull: false,
|
|
20
|
+
references: {
|
|
21
|
+
model: 'radio_show',
|
|
22
|
+
key: 'id'
|
|
23
|
+
},
|
|
24
|
+
field: 'radio_show_id'
|
|
25
|
+
},
|
|
26
|
+
title: {
|
|
27
|
+
type: sequelize_1.DataTypes.STRING(40),
|
|
28
|
+
allowNull: false
|
|
29
|
+
},
|
|
30
|
+
id: {
|
|
31
|
+
type: sequelize_1.DataTypes.UUID,
|
|
32
|
+
allowNull: false,
|
|
33
|
+
defaultValue: sequelize_1.DataTypes.UUIDV4,
|
|
34
|
+
primaryKey: true
|
|
35
|
+
}
|
|
36
|
+
}, {
|
|
37
|
+
sequelize,
|
|
38
|
+
tableName: 'radio_show_genres',
|
|
39
|
+
schema: 'eb',
|
|
40
|
+
timestamps: false,
|
|
41
|
+
indexes: [
|
|
42
|
+
{
|
|
43
|
+
name: "radio_show_genres_pkey",
|
|
44
|
+
unique: true,
|
|
45
|
+
fields: [
|
|
46
|
+
{ name: "id" },
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
]
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
exports.RadioShowGenres = RadioShowGenres;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { Model, Optional } from 'sequelize';
|
|
3
|
+
import type { RadioShow, RadioShowId } from './RadioShow';
|
|
4
|
+
export interface RadioShowMediaAttributes {
|
|
5
|
+
radioShowId: string;
|
|
6
|
+
originalMediaType?: number;
|
|
7
|
+
s3VideoUrl?: string;
|
|
8
|
+
s3AudioUrl: string;
|
|
9
|
+
approved?: boolean;
|
|
10
|
+
id: string;
|
|
11
|
+
createDate: Date;
|
|
12
|
+
}
|
|
13
|
+
export type RadioShowMediaPk = "id";
|
|
14
|
+
export type RadioShowMediaId = RadioShowMedia[RadioShowMediaPk];
|
|
15
|
+
export type RadioShowMediaOptionalAttributes = "originalMediaType" | "s3VideoUrl" | "approved" | "id" | "createDate";
|
|
16
|
+
export type RadioShowMediaCreationAttributes = Optional<RadioShowMediaAttributes, RadioShowMediaOptionalAttributes>;
|
|
17
|
+
export declare class RadioShowMedia extends Model<RadioShowMediaAttributes, RadioShowMediaCreationAttributes> implements RadioShowMediaAttributes {
|
|
18
|
+
radioShowId: string;
|
|
19
|
+
originalMediaType?: number;
|
|
20
|
+
s3VideoUrl?: string;
|
|
21
|
+
s3AudioUrl: string;
|
|
22
|
+
approved?: boolean;
|
|
23
|
+
id: string;
|
|
24
|
+
createDate: Date;
|
|
25
|
+
radioShow: RadioShow;
|
|
26
|
+
getRadioShow: Sequelize.BelongsToGetAssociationMixin<RadioShow>;
|
|
27
|
+
setRadioShow: Sequelize.BelongsToSetAssociationMixin<RadioShow, RadioShowId>;
|
|
28
|
+
createRadioShow: Sequelize.BelongsToCreateAssociationMixin<RadioShow>;
|
|
29
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof RadioShowMedia;
|
|
30
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.RadioShowMedia = void 0;
|
|
27
|
+
const Sequelize = __importStar(require("sequelize"));
|
|
28
|
+
const sequelize_1 = require("sequelize");
|
|
29
|
+
class RadioShowMedia extends sequelize_1.Model {
|
|
30
|
+
static initModel(sequelize) {
|
|
31
|
+
return RadioShowMedia.init({
|
|
32
|
+
radioShowId: {
|
|
33
|
+
type: sequelize_1.DataTypes.UUID,
|
|
34
|
+
allowNull: false,
|
|
35
|
+
references: {
|
|
36
|
+
model: 'radio_show',
|
|
37
|
+
key: 'id'
|
|
38
|
+
},
|
|
39
|
+
field: 'radio_show_id'
|
|
40
|
+
},
|
|
41
|
+
originalMediaType: {
|
|
42
|
+
type: sequelize_1.DataTypes.INTEGER,
|
|
43
|
+
allowNull: true,
|
|
44
|
+
field: 'original_media_type'
|
|
45
|
+
},
|
|
46
|
+
s3VideoUrl: {
|
|
47
|
+
type: sequelize_1.DataTypes.TEXT,
|
|
48
|
+
allowNull: true,
|
|
49
|
+
field: 's3_video_url'
|
|
50
|
+
},
|
|
51
|
+
s3AudioUrl: {
|
|
52
|
+
type: sequelize_1.DataTypes.TEXT,
|
|
53
|
+
allowNull: false,
|
|
54
|
+
field: 's3_audio_url'
|
|
55
|
+
},
|
|
56
|
+
approved: {
|
|
57
|
+
type: sequelize_1.DataTypes.BOOLEAN,
|
|
58
|
+
allowNull: true
|
|
59
|
+
},
|
|
60
|
+
id: {
|
|
61
|
+
type: sequelize_1.DataTypes.UUID,
|
|
62
|
+
allowNull: false,
|
|
63
|
+
defaultValue: sequelize_1.DataTypes.UUIDV4,
|
|
64
|
+
primaryKey: true
|
|
65
|
+
},
|
|
66
|
+
createDate: {
|
|
67
|
+
type: sequelize_1.DataTypes.DATE,
|
|
68
|
+
allowNull: false,
|
|
69
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
70
|
+
field: 'create_date'
|
|
71
|
+
}
|
|
72
|
+
}, {
|
|
73
|
+
sequelize,
|
|
74
|
+
tableName: 'radio_show_media',
|
|
75
|
+
schema: 'eb',
|
|
76
|
+
timestamps: false,
|
|
77
|
+
indexes: [
|
|
78
|
+
{
|
|
79
|
+
name: "radio_show_media_pkey",
|
|
80
|
+
unique: true,
|
|
81
|
+
fields: [
|
|
82
|
+
{ name: "id" },
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
]
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
exports.RadioShowMedia = RadioShowMedia;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { Model, Optional } from 'sequelize';
|
|
3
|
+
import type { CanonTrack, CanonTrackId } from './CanonTrack';
|
|
4
|
+
import type { RadioShow, RadioShowId } from './RadioShow';
|
|
5
|
+
export interface RadioShowPlacementAttributes {
|
|
6
|
+
radioShowId: string;
|
|
7
|
+
canonTrackId?: string;
|
|
8
|
+
radioShowMediaId?: string;
|
|
9
|
+
seqNum: number;
|
|
10
|
+
startTime?: string;
|
|
11
|
+
endTime?: string;
|
|
12
|
+
id: string;
|
|
13
|
+
}
|
|
14
|
+
export type RadioShowPlacementPk = "id";
|
|
15
|
+
export type RadioShowPlacementId = RadioShowPlacement[RadioShowPlacementPk];
|
|
16
|
+
export type RadioShowPlacementOptionalAttributes = "canonTrackId" | "radioShowMediaId" | "startTime" | "endTime" | "id";
|
|
17
|
+
export type RadioShowPlacementCreationAttributes = Optional<RadioShowPlacementAttributes, RadioShowPlacementOptionalAttributes>;
|
|
18
|
+
export declare class RadioShowPlacement extends Model<RadioShowPlacementAttributes, RadioShowPlacementCreationAttributes> implements RadioShowPlacementAttributes {
|
|
19
|
+
radioShowId: string;
|
|
20
|
+
canonTrackId?: string;
|
|
21
|
+
radioShowMediaId?: string;
|
|
22
|
+
seqNum: number;
|
|
23
|
+
startTime?: string;
|
|
24
|
+
endTime?: string;
|
|
25
|
+
id: string;
|
|
26
|
+
canonTrack: CanonTrack;
|
|
27
|
+
getCanonTrack: Sequelize.BelongsToGetAssociationMixin<CanonTrack>;
|
|
28
|
+
setCanonTrack: Sequelize.BelongsToSetAssociationMixin<CanonTrack, CanonTrackId>;
|
|
29
|
+
createCanonTrack: Sequelize.BelongsToCreateAssociationMixin<CanonTrack>;
|
|
30
|
+
radioShow: RadioShow;
|
|
31
|
+
getRadioShow: Sequelize.BelongsToGetAssociationMixin<RadioShow>;
|
|
32
|
+
setRadioShow: Sequelize.BelongsToSetAssociationMixin<RadioShow, RadioShowId>;
|
|
33
|
+
createRadioShow: Sequelize.BelongsToCreateAssociationMixin<RadioShow>;
|
|
34
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof RadioShowPlacement;
|
|
35
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RadioShowPlacement = void 0;
|
|
4
|
+
const sequelize_1 = require("sequelize");
|
|
5
|
+
class RadioShowPlacement extends sequelize_1.Model {
|
|
6
|
+
static initModel(sequelize) {
|
|
7
|
+
return RadioShowPlacement.init({
|
|
8
|
+
radioShowId: {
|
|
9
|
+
type: sequelize_1.DataTypes.UUID,
|
|
10
|
+
allowNull: false,
|
|
11
|
+
references: {
|
|
12
|
+
model: 'radio_show',
|
|
13
|
+
key: 'id'
|
|
14
|
+
},
|
|
15
|
+
field: 'radio_show_id'
|
|
16
|
+
},
|
|
17
|
+
canonTrackId: {
|
|
18
|
+
type: sequelize_1.DataTypes.UUID,
|
|
19
|
+
allowNull: true,
|
|
20
|
+
references: {
|
|
21
|
+
model: 'canon_track',
|
|
22
|
+
key: 'id'
|
|
23
|
+
},
|
|
24
|
+
field: 'canon_track_id'
|
|
25
|
+
},
|
|
26
|
+
radioShowMediaId: {
|
|
27
|
+
type: sequelize_1.DataTypes.UUID,
|
|
28
|
+
allowNull: true,
|
|
29
|
+
field: 'radio_show_media_id'
|
|
30
|
+
},
|
|
31
|
+
seqNum: {
|
|
32
|
+
type: sequelize_1.DataTypes.INTEGER,
|
|
33
|
+
allowNull: false,
|
|
34
|
+
field: 'seq_num'
|
|
35
|
+
},
|
|
36
|
+
startTime: {
|
|
37
|
+
type: sequelize_1.DataTypes.TIME,
|
|
38
|
+
allowNull: true,
|
|
39
|
+
field: 'start_time'
|
|
40
|
+
},
|
|
41
|
+
endTime: {
|
|
42
|
+
type: sequelize_1.DataTypes.TIME,
|
|
43
|
+
allowNull: true,
|
|
44
|
+
field: 'end_time'
|
|
45
|
+
},
|
|
46
|
+
id: {
|
|
47
|
+
type: sequelize_1.DataTypes.UUID,
|
|
48
|
+
allowNull: false,
|
|
49
|
+
defaultValue: sequelize_1.DataTypes.UUIDV4,
|
|
50
|
+
primaryKey: true
|
|
51
|
+
}
|
|
52
|
+
}, {
|
|
53
|
+
sequelize,
|
|
54
|
+
tableName: 'radio_show_placement',
|
|
55
|
+
schema: 'eb',
|
|
56
|
+
timestamps: false,
|
|
57
|
+
indexes: [
|
|
58
|
+
{
|
|
59
|
+
name: "radio_show_placement_pkey",
|
|
60
|
+
unique: true,
|
|
61
|
+
fields: [
|
|
62
|
+
{ name: "id" },
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
]
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.RadioShowPlacement = RadioShowPlacement;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { Model, Optional } from 'sequelize';
|
|
3
|
+
import type { RadioShow, RadioShowId } from './RadioShow';
|
|
4
|
+
export interface RadioShowPublishRequestsAttributes {
|
|
5
|
+
radioShowId: string;
|
|
6
|
+
approved?: boolean;
|
|
7
|
+
id: string;
|
|
8
|
+
createDate: Date;
|
|
9
|
+
updateDate: Date;
|
|
10
|
+
}
|
|
11
|
+
export type RadioShowPublishRequestsPk = "id";
|
|
12
|
+
export type RadioShowPublishRequestsId = RadioShowPublishRequests[RadioShowPublishRequestsPk];
|
|
13
|
+
export type RadioShowPublishRequestsOptionalAttributes = "approved" | "id" | "createDate" | "updateDate";
|
|
14
|
+
export type RadioShowPublishRequestsCreationAttributes = Optional<RadioShowPublishRequestsAttributes, RadioShowPublishRequestsOptionalAttributes>;
|
|
15
|
+
export declare class RadioShowPublishRequests extends Model<RadioShowPublishRequestsAttributes, RadioShowPublishRequestsCreationAttributes> implements RadioShowPublishRequestsAttributes {
|
|
16
|
+
radioShowId: string;
|
|
17
|
+
approved?: boolean;
|
|
18
|
+
id: string;
|
|
19
|
+
createDate: Date;
|
|
20
|
+
updateDate: Date;
|
|
21
|
+
radioShow: RadioShow;
|
|
22
|
+
getRadioShow: Sequelize.BelongsToGetAssociationMixin<RadioShow>;
|
|
23
|
+
setRadioShow: Sequelize.BelongsToSetAssociationMixin<RadioShow, RadioShowId>;
|
|
24
|
+
createRadioShow: Sequelize.BelongsToCreateAssociationMixin<RadioShow>;
|
|
25
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof RadioShowPublishRequests;
|
|
26
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.RadioShowPublishRequests = void 0;
|
|
27
|
+
const Sequelize = __importStar(require("sequelize"));
|
|
28
|
+
const sequelize_1 = require("sequelize");
|
|
29
|
+
class RadioShowPublishRequests extends sequelize_1.Model {
|
|
30
|
+
static initModel(sequelize) {
|
|
31
|
+
return RadioShowPublishRequests.init({
|
|
32
|
+
radioShowId: {
|
|
33
|
+
type: sequelize_1.DataTypes.UUID,
|
|
34
|
+
allowNull: false,
|
|
35
|
+
references: {
|
|
36
|
+
model: 'radio_show',
|
|
37
|
+
key: 'id'
|
|
38
|
+
},
|
|
39
|
+
field: 'radio_show_id'
|
|
40
|
+
},
|
|
41
|
+
approved: {
|
|
42
|
+
type: sequelize_1.DataTypes.BOOLEAN,
|
|
43
|
+
allowNull: true
|
|
44
|
+
},
|
|
45
|
+
id: {
|
|
46
|
+
type: sequelize_1.DataTypes.UUID,
|
|
47
|
+
allowNull: false,
|
|
48
|
+
defaultValue: sequelize_1.DataTypes.UUIDV4,
|
|
49
|
+
primaryKey: true
|
|
50
|
+
},
|
|
51
|
+
createDate: {
|
|
52
|
+
type: sequelize_1.DataTypes.DATE,
|
|
53
|
+
allowNull: false,
|
|
54
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
55
|
+
field: 'create_date'
|
|
56
|
+
},
|
|
57
|
+
updateDate: {
|
|
58
|
+
type: sequelize_1.DataTypes.DATE,
|
|
59
|
+
allowNull: false,
|
|
60
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
61
|
+
field: 'update_date'
|
|
62
|
+
}
|
|
63
|
+
}, {
|
|
64
|
+
sequelize,
|
|
65
|
+
tableName: 'radio_show_publish_requests',
|
|
66
|
+
schema: 'eb',
|
|
67
|
+
timestamps: false,
|
|
68
|
+
indexes: [
|
|
69
|
+
{
|
|
70
|
+
name: "radio_show_publish_requests_pkey",
|
|
71
|
+
unique: true,
|
|
72
|
+
fields: [
|
|
73
|
+
{ name: "id" },
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
]
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
exports.RadioShowPublishRequests = RadioShowPublishRequests;
|
package/dist/init-models.d.ts
CHANGED
|
@@ -91,6 +91,10 @@ import { MetricsEvent as _MetricsEvent } from "./MetricsEvent";
|
|
|
91
91
|
import type { MetricsEventAttributes, MetricsEventCreationAttributes } from "./MetricsEvent";
|
|
92
92
|
import { NewsSite as _NewsSite } from "./NewsSite";
|
|
93
93
|
import type { NewsSiteAttributes, NewsSiteCreationAttributes } from "./NewsSite";
|
|
94
|
+
import { Notification as _Notification } from "./Notification";
|
|
95
|
+
import type { NotificationAttributes, NotificationCreationAttributes } from "./Notification";
|
|
96
|
+
import { NotificationType as _NotificationType } from "./NotificationType";
|
|
97
|
+
import type { NotificationTypeAttributes, NotificationTypeCreationAttributes } from "./NotificationType";
|
|
94
98
|
import { PauseStatusType as _PauseStatusType } from "./PauseStatusType";
|
|
95
99
|
import type { PauseStatusTypeAttributes, PauseStatusTypeCreationAttributes } from "./PauseStatusType";
|
|
96
100
|
import { Platform as _Platform } from "./Platform";
|
|
@@ -127,6 +131,16 @@ import { PlaybackStatus as _PlaybackStatus } from "./PlaybackStatus";
|
|
|
127
131
|
import type { PlaybackStatusAttributes, PlaybackStatusCreationAttributes } from "./PlaybackStatus";
|
|
128
132
|
import { PlaybackStatusType as _PlaybackStatusType } from "./PlaybackStatusType";
|
|
129
133
|
import type { PlaybackStatusTypeAttributes, PlaybackStatusTypeCreationAttributes } from "./PlaybackStatusType";
|
|
134
|
+
import { RadioShow as _RadioShow } from "./RadioShow";
|
|
135
|
+
import type { RadioShowAttributes, RadioShowCreationAttributes } from "./RadioShow";
|
|
136
|
+
import { RadioShowGenres as _RadioShowGenres } from "./RadioShowGenres";
|
|
137
|
+
import type { RadioShowGenresAttributes, RadioShowGenresCreationAttributes } from "./RadioShowGenres";
|
|
138
|
+
import { RadioShowMedia as _RadioShowMedia } from "./RadioShowMedia";
|
|
139
|
+
import type { RadioShowMediaAttributes, RadioShowMediaCreationAttributes } from "./RadioShowMedia";
|
|
140
|
+
import { RadioShowPlacement as _RadioShowPlacement } from "./RadioShowPlacement";
|
|
141
|
+
import type { RadioShowPlacementAttributes, RadioShowPlacementCreationAttributes } from "./RadioShowPlacement";
|
|
142
|
+
import { RadioShowPublishRequests as _RadioShowPublishRequests } from "./RadioShowPublishRequests";
|
|
143
|
+
import type { RadioShowPublishRequestsAttributes, RadioShowPublishRequestsCreationAttributes } from "./RadioShowPublishRequests";
|
|
130
144
|
import { State as _State } from "./State";
|
|
131
145
|
import type { StateAttributes, StateCreationAttributes } from "./State";
|
|
132
146
|
import { TrackDeletionReason as _TrackDeletionReason } from "./TrackDeletionReason";
|
|
@@ -137,8 +151,8 @@ import { UnmatchedArtist as _UnmatchedArtist } from "./UnmatchedArtist";
|
|
|
137
151
|
import type { UnmatchedArtistAttributes, UnmatchedArtistCreationAttributes } from "./UnmatchedArtist";
|
|
138
152
|
import { UserContacts as _UserContacts } from "./UserContacts";
|
|
139
153
|
import type { UserContactsAttributes, UserContactsCreationAttributes } from "./UserContacts";
|
|
140
|
-
export { _AppUser as AppUser, _AppUserDevice as AppUserDevice, _AppUserFollowRelation as AppUserFollowRelation, _AppUserPlatformRelation as AppUserPlatformRelation, _CanonAlbum as CanonAlbum, _CanonAlbumExternalReferenceRelation as CanonAlbumExternalReferenceRelation, _CanonAlbumGenreRelation as CanonAlbumGenreRelation, _CanonAlbumImageHarvested as CanonAlbumImageHarvested, _CanonAlbumLabelRelation as CanonAlbumLabelRelation, _CanonAlbumTrackRelation as CanonAlbumTrackRelation, _CanonArtist as CanonArtist, _CanonArtistAlbumRelation as CanonArtistAlbumRelation, _CanonArtistExternalReferenceRelation as CanonArtistExternalReferenceRelation, _CanonArtistGenreRelation as CanonArtistGenreRelation, _CanonArtistImageHarvested as CanonArtistImageHarvested, _CanonArtistMemberRelation as CanonArtistMemberRelation, _CanonArtistTrackRelation as CanonArtistTrackRelation, _CanonGenre as CanonGenre, _CanonGenreExternalReferenceRelation as CanonGenreExternalReferenceRelation, _CanonLabel as CanonLabel, _CanonLabelExternalReferenceRelation as CanonLabelExternalReferenceRelation, _CanonMember as CanonMember, _CanonMemberExternalReferenceRelation as CanonMemberExternalReferenceRelation, _CanonToPlatformAlbumRelation as CanonToPlatformAlbumRelation, _CanonToPlatformArtistRelation as CanonToPlatformArtistRelation, _CanonToPlatformGenreRelation as CanonToPlatformGenreRelation, _CanonToPlatformTrackRelation as CanonToPlatformTrackRelation, _CanonTrack as CanonTrack, _ConfigParam as ConfigParam, _ExternalReference as ExternalReference, _JukeboxAccessType as JukeboxAccessType, _JukeboxCanonGenreRelation as JukeboxCanonGenreRelation, _JukeboxInvite as JukeboxInvite, _JukeboxQueueEntry as JukeboxQueueEntry, _JukeboxQueueMode as JukeboxQueueMode, _JukeboxSession as JukeboxSession, _JukeboxStatus as JukeboxStatus, _JukeboxTerminationCondition as JukeboxTerminationCondition, _JukeboxType as JukeboxType, _JukeboxUser as JukeboxUser, _JukeboxUserType as JukeboxUserType, _KnexMigrations as KnexMigrations, _KnexMigrationsLock as KnexMigrationsLock, _MetricsDaily as MetricsDaily, _MetricsEvent as MetricsEvent, _NewsSite as NewsSite, _PauseStatusType as PauseStatusType, _Platform as Platform, _PlatformAlbum as PlatformAlbum, _PlatformAlbumGenreRelation as PlatformAlbumGenreRelation, _PlatformAlbumTrackRelation as PlatformAlbumTrackRelation, _PlatformArtist as PlatformArtist, _PlatformArtistAlbumRelation as PlatformArtistAlbumRelation, _PlatformArtistGenreRelation as PlatformArtistGenreRelation, _PlatformArtistTrackRelation as PlatformArtistTrackRelation, _PlatformGenre as PlatformGenre, _PlatformTrack as PlatformTrack, _PlatformTrackGenreRelation as PlatformTrackGenreRelation, _PlatformUserAlbum as PlatformUserAlbum, _PlatformUserAlbumTrack as PlatformUserAlbumTrack, _PlatformUserPlaylist as PlatformUserPlaylist, _PlatformUserPlaylistTrack as PlatformUserPlaylistTrack, _PlaybackStatus as PlaybackStatus, _PlaybackStatusType as PlaybackStatusType, _State as State, _TrackDeletionReason as TrackDeletionReason, _UnmatchedAlbum as UnmatchedAlbum, _UnmatchedArtist as UnmatchedArtist, _UserContacts as UserContacts, };
|
|
141
|
-
export type { AppUserAttributes, AppUserCreationAttributes, AppUserDeviceAttributes, AppUserDeviceCreationAttributes, AppUserFollowRelationAttributes, AppUserFollowRelationCreationAttributes, AppUserPlatformRelationAttributes, AppUserPlatformRelationCreationAttributes, CanonAlbumAttributes, CanonAlbumCreationAttributes, CanonAlbumExternalReferenceRelationAttributes, CanonAlbumExternalReferenceRelationCreationAttributes, CanonAlbumGenreRelationAttributes, CanonAlbumGenreRelationCreationAttributes, CanonAlbumImageHarvestedAttributes, CanonAlbumImageHarvestedCreationAttributes, CanonAlbumLabelRelationAttributes, CanonAlbumLabelRelationCreationAttributes, CanonAlbumTrackRelationAttributes, CanonAlbumTrackRelationCreationAttributes, CanonArtistAttributes, CanonArtistCreationAttributes, CanonArtistAlbumRelationAttributes, CanonArtistAlbumRelationCreationAttributes, CanonArtistExternalReferenceRelationAttributes, CanonArtistExternalReferenceRelationCreationAttributes, CanonArtistGenreRelationAttributes, CanonArtistGenreRelationCreationAttributes, CanonArtistImageHarvestedAttributes, CanonArtistImageHarvestedCreationAttributes, CanonArtistMemberRelationAttributes, CanonArtistMemberRelationCreationAttributes, CanonArtistTrackRelationAttributes, CanonArtistTrackRelationCreationAttributes, CanonGenreAttributes, CanonGenreCreationAttributes, CanonGenreExternalReferenceRelationAttributes, CanonGenreExternalReferenceRelationCreationAttributes, CanonLabelAttributes, CanonLabelCreationAttributes, CanonLabelExternalReferenceRelationAttributes, CanonLabelExternalReferenceRelationCreationAttributes, CanonMemberAttributes, CanonMemberCreationAttributes, CanonMemberExternalReferenceRelationAttributes, CanonMemberExternalReferenceRelationCreationAttributes, CanonToPlatformAlbumRelationAttributes, CanonToPlatformAlbumRelationCreationAttributes, CanonToPlatformArtistRelationAttributes, CanonToPlatformArtistRelationCreationAttributes, CanonToPlatformGenreRelationAttributes, CanonToPlatformGenreRelationCreationAttributes, CanonToPlatformTrackRelationAttributes, CanonToPlatformTrackRelationCreationAttributes, CanonTrackAttributes, CanonTrackCreationAttributes, ConfigParamAttributes, ConfigParamCreationAttributes, ExternalReferenceAttributes, ExternalReferenceCreationAttributes, JukeboxAccessTypeAttributes, JukeboxAccessTypeCreationAttributes, JukeboxCanonGenreRelationAttributes, JukeboxCanonGenreRelationCreationAttributes, JukeboxInviteAttributes, JukeboxInviteCreationAttributes, JukeboxQueueEntryAttributes, JukeboxQueueEntryCreationAttributes, JukeboxQueueModeAttributes, JukeboxQueueModeCreationAttributes, JukeboxSessionAttributes, JukeboxSessionCreationAttributes, JukeboxStatusAttributes, JukeboxStatusCreationAttributes, JukeboxTerminationConditionAttributes, JukeboxTerminationConditionCreationAttributes, JukeboxTypeAttributes, JukeboxTypeCreationAttributes, JukeboxUserAttributes, JukeboxUserCreationAttributes, JukeboxUserTypeAttributes, JukeboxUserTypeCreationAttributes, KnexMigrationsAttributes, KnexMigrationsCreationAttributes, KnexMigrationsLockAttributes, KnexMigrationsLockCreationAttributes, MetricsDailyAttributes, MetricsDailyCreationAttributes, MetricsEventAttributes, MetricsEventCreationAttributes, NewsSiteAttributes, NewsSiteCreationAttributes, PauseStatusTypeAttributes, PauseStatusTypeCreationAttributes, PlatformAttributes, PlatformCreationAttributes, PlatformAlbumAttributes, PlatformAlbumCreationAttributes, PlatformAlbumGenreRelationAttributes, PlatformAlbumGenreRelationCreationAttributes, PlatformAlbumTrackRelationAttributes, PlatformAlbumTrackRelationCreationAttributes, PlatformArtistAttributes, PlatformArtistCreationAttributes, PlatformArtistAlbumRelationAttributes, PlatformArtistAlbumRelationCreationAttributes, PlatformArtistGenreRelationAttributes, PlatformArtistGenreRelationCreationAttributes, PlatformArtistTrackRelationAttributes, PlatformArtistTrackRelationCreationAttributes, PlatformGenreAttributes, PlatformGenreCreationAttributes, PlatformTrackAttributes, PlatformTrackCreationAttributes, PlatformTrackGenreRelationAttributes, PlatformTrackGenreRelationCreationAttributes, PlatformUserAlbumAttributes, PlatformUserAlbumCreationAttributes, PlatformUserAlbumTrackAttributes, PlatformUserAlbumTrackCreationAttributes, PlatformUserPlaylistAttributes, PlatformUserPlaylistCreationAttributes, PlatformUserPlaylistTrackAttributes, PlatformUserPlaylistTrackCreationAttributes, PlaybackStatusAttributes, PlaybackStatusCreationAttributes, PlaybackStatusTypeAttributes, PlaybackStatusTypeCreationAttributes, StateAttributes, StateCreationAttributes, TrackDeletionReasonAttributes, TrackDeletionReasonCreationAttributes, UnmatchedAlbumAttributes, UnmatchedAlbumCreationAttributes, UnmatchedArtistAttributes, UnmatchedArtistCreationAttributes, UserContactsAttributes, UserContactsCreationAttributes, };
|
|
154
|
+
export { _AppUser as AppUser, _AppUserDevice as AppUserDevice, _AppUserFollowRelation as AppUserFollowRelation, _AppUserPlatformRelation as AppUserPlatformRelation, _CanonAlbum as CanonAlbum, _CanonAlbumExternalReferenceRelation as CanonAlbumExternalReferenceRelation, _CanonAlbumGenreRelation as CanonAlbumGenreRelation, _CanonAlbumImageHarvested as CanonAlbumImageHarvested, _CanonAlbumLabelRelation as CanonAlbumLabelRelation, _CanonAlbumTrackRelation as CanonAlbumTrackRelation, _CanonArtist as CanonArtist, _CanonArtistAlbumRelation as CanonArtistAlbumRelation, _CanonArtistExternalReferenceRelation as CanonArtistExternalReferenceRelation, _CanonArtistGenreRelation as CanonArtistGenreRelation, _CanonArtistImageHarvested as CanonArtistImageHarvested, _CanonArtistMemberRelation as CanonArtistMemberRelation, _CanonArtistTrackRelation as CanonArtistTrackRelation, _CanonGenre as CanonGenre, _CanonGenreExternalReferenceRelation as CanonGenreExternalReferenceRelation, _CanonLabel as CanonLabel, _CanonLabelExternalReferenceRelation as CanonLabelExternalReferenceRelation, _CanonMember as CanonMember, _CanonMemberExternalReferenceRelation as CanonMemberExternalReferenceRelation, _CanonToPlatformAlbumRelation as CanonToPlatformAlbumRelation, _CanonToPlatformArtistRelation as CanonToPlatformArtistRelation, _CanonToPlatformGenreRelation as CanonToPlatformGenreRelation, _CanonToPlatformTrackRelation as CanonToPlatformTrackRelation, _CanonTrack as CanonTrack, _ConfigParam as ConfigParam, _ExternalReference as ExternalReference, _JukeboxAccessType as JukeboxAccessType, _JukeboxCanonGenreRelation as JukeboxCanonGenreRelation, _JukeboxInvite as JukeboxInvite, _JukeboxQueueEntry as JukeboxQueueEntry, _JukeboxQueueMode as JukeboxQueueMode, _JukeboxSession as JukeboxSession, _JukeboxStatus as JukeboxStatus, _JukeboxTerminationCondition as JukeboxTerminationCondition, _JukeboxType as JukeboxType, _JukeboxUser as JukeboxUser, _JukeboxUserType as JukeboxUserType, _KnexMigrations as KnexMigrations, _KnexMigrationsLock as KnexMigrationsLock, _MetricsDaily as MetricsDaily, _MetricsEvent as MetricsEvent, _NewsSite as NewsSite, _Notification as Notification, _NotificationType as NotificationType, _PauseStatusType as PauseStatusType, _Platform as Platform, _PlatformAlbum as PlatformAlbum, _PlatformAlbumGenreRelation as PlatformAlbumGenreRelation, _PlatformAlbumTrackRelation as PlatformAlbumTrackRelation, _PlatformArtist as PlatformArtist, _PlatformArtistAlbumRelation as PlatformArtistAlbumRelation, _PlatformArtistGenreRelation as PlatformArtistGenreRelation, _PlatformArtistTrackRelation as PlatformArtistTrackRelation, _PlatformGenre as PlatformGenre, _PlatformTrack as PlatformTrack, _PlatformTrackGenreRelation as PlatformTrackGenreRelation, _PlatformUserAlbum as PlatformUserAlbum, _PlatformUserAlbumTrack as PlatformUserAlbumTrack, _PlatformUserPlaylist as PlatformUserPlaylist, _PlatformUserPlaylistTrack as PlatformUserPlaylistTrack, _PlaybackStatus as PlaybackStatus, _PlaybackStatusType as PlaybackStatusType, _RadioShow as RadioShow, _RadioShowGenres as RadioShowGenres, _RadioShowMedia as RadioShowMedia, _RadioShowPlacement as RadioShowPlacement, _RadioShowPublishRequests as RadioShowPublishRequests, _State as State, _TrackDeletionReason as TrackDeletionReason, _UnmatchedAlbum as UnmatchedAlbum, _UnmatchedArtist as UnmatchedArtist, _UserContacts as UserContacts, };
|
|
155
|
+
export type { AppUserAttributes, AppUserCreationAttributes, AppUserDeviceAttributes, AppUserDeviceCreationAttributes, AppUserFollowRelationAttributes, AppUserFollowRelationCreationAttributes, AppUserPlatformRelationAttributes, AppUserPlatformRelationCreationAttributes, CanonAlbumAttributes, CanonAlbumCreationAttributes, CanonAlbumExternalReferenceRelationAttributes, CanonAlbumExternalReferenceRelationCreationAttributes, CanonAlbumGenreRelationAttributes, CanonAlbumGenreRelationCreationAttributes, CanonAlbumImageHarvestedAttributes, CanonAlbumImageHarvestedCreationAttributes, CanonAlbumLabelRelationAttributes, CanonAlbumLabelRelationCreationAttributes, CanonAlbumTrackRelationAttributes, CanonAlbumTrackRelationCreationAttributes, CanonArtistAttributes, CanonArtistCreationAttributes, CanonArtistAlbumRelationAttributes, CanonArtistAlbumRelationCreationAttributes, CanonArtistExternalReferenceRelationAttributes, CanonArtistExternalReferenceRelationCreationAttributes, CanonArtistGenreRelationAttributes, CanonArtistGenreRelationCreationAttributes, CanonArtistImageHarvestedAttributes, CanonArtistImageHarvestedCreationAttributes, CanonArtistMemberRelationAttributes, CanonArtistMemberRelationCreationAttributes, CanonArtistTrackRelationAttributes, CanonArtistTrackRelationCreationAttributes, CanonGenreAttributes, CanonGenreCreationAttributes, CanonGenreExternalReferenceRelationAttributes, CanonGenreExternalReferenceRelationCreationAttributes, CanonLabelAttributes, CanonLabelCreationAttributes, CanonLabelExternalReferenceRelationAttributes, CanonLabelExternalReferenceRelationCreationAttributes, CanonMemberAttributes, CanonMemberCreationAttributes, CanonMemberExternalReferenceRelationAttributes, CanonMemberExternalReferenceRelationCreationAttributes, CanonToPlatformAlbumRelationAttributes, CanonToPlatformAlbumRelationCreationAttributes, CanonToPlatformArtistRelationAttributes, CanonToPlatformArtistRelationCreationAttributes, CanonToPlatformGenreRelationAttributes, CanonToPlatformGenreRelationCreationAttributes, CanonToPlatformTrackRelationAttributes, CanonToPlatformTrackRelationCreationAttributes, CanonTrackAttributes, CanonTrackCreationAttributes, ConfigParamAttributes, ConfigParamCreationAttributes, ExternalReferenceAttributes, ExternalReferenceCreationAttributes, JukeboxAccessTypeAttributes, JukeboxAccessTypeCreationAttributes, JukeboxCanonGenreRelationAttributes, JukeboxCanonGenreRelationCreationAttributes, JukeboxInviteAttributes, JukeboxInviteCreationAttributes, JukeboxQueueEntryAttributes, JukeboxQueueEntryCreationAttributes, JukeboxQueueModeAttributes, JukeboxQueueModeCreationAttributes, JukeboxSessionAttributes, JukeboxSessionCreationAttributes, JukeboxStatusAttributes, JukeboxStatusCreationAttributes, JukeboxTerminationConditionAttributes, JukeboxTerminationConditionCreationAttributes, JukeboxTypeAttributes, JukeboxTypeCreationAttributes, JukeboxUserAttributes, JukeboxUserCreationAttributes, JukeboxUserTypeAttributes, JukeboxUserTypeCreationAttributes, KnexMigrationsAttributes, KnexMigrationsCreationAttributes, KnexMigrationsLockAttributes, KnexMigrationsLockCreationAttributes, MetricsDailyAttributes, MetricsDailyCreationAttributes, MetricsEventAttributes, MetricsEventCreationAttributes, NewsSiteAttributes, NewsSiteCreationAttributes, NotificationAttributes, NotificationCreationAttributes, NotificationTypeAttributes, NotificationTypeCreationAttributes, PauseStatusTypeAttributes, PauseStatusTypeCreationAttributes, PlatformAttributes, PlatformCreationAttributes, PlatformAlbumAttributes, PlatformAlbumCreationAttributes, PlatformAlbumGenreRelationAttributes, PlatformAlbumGenreRelationCreationAttributes, PlatformAlbumTrackRelationAttributes, PlatformAlbumTrackRelationCreationAttributes, PlatformArtistAttributes, PlatformArtistCreationAttributes, PlatformArtistAlbumRelationAttributes, PlatformArtistAlbumRelationCreationAttributes, PlatformArtistGenreRelationAttributes, PlatformArtistGenreRelationCreationAttributes, PlatformArtistTrackRelationAttributes, PlatformArtistTrackRelationCreationAttributes, PlatformGenreAttributes, PlatformGenreCreationAttributes, PlatformTrackAttributes, PlatformTrackCreationAttributes, PlatformTrackGenreRelationAttributes, PlatformTrackGenreRelationCreationAttributes, PlatformUserAlbumAttributes, PlatformUserAlbumCreationAttributes, PlatformUserAlbumTrackAttributes, PlatformUserAlbumTrackCreationAttributes, PlatformUserPlaylistAttributes, PlatformUserPlaylistCreationAttributes, PlatformUserPlaylistTrackAttributes, PlatformUserPlaylistTrackCreationAttributes, PlaybackStatusAttributes, PlaybackStatusCreationAttributes, PlaybackStatusTypeAttributes, PlaybackStatusTypeCreationAttributes, RadioShowAttributes, RadioShowCreationAttributes, RadioShowGenresAttributes, RadioShowGenresCreationAttributes, RadioShowMediaAttributes, RadioShowMediaCreationAttributes, RadioShowPlacementAttributes, RadioShowPlacementCreationAttributes, RadioShowPublishRequestsAttributes, RadioShowPublishRequestsCreationAttributes, StateAttributes, StateCreationAttributes, TrackDeletionReasonAttributes, TrackDeletionReasonCreationAttributes, UnmatchedAlbumAttributes, UnmatchedAlbumCreationAttributes, UnmatchedArtistAttributes, UnmatchedArtistCreationAttributes, UserContactsAttributes, UserContactsCreationAttributes, };
|
|
142
156
|
export declare function initModels(sequelize: Sequelize): {
|
|
143
157
|
AppUser: typeof _AppUser;
|
|
144
158
|
AppUserDevice: typeof _AppUserDevice;
|
|
@@ -186,6 +200,8 @@ export declare function initModels(sequelize: Sequelize): {
|
|
|
186
200
|
MetricsDaily: typeof _MetricsDaily;
|
|
187
201
|
MetricsEvent: typeof _MetricsEvent;
|
|
188
202
|
NewsSite: typeof _NewsSite;
|
|
203
|
+
Notification: typeof _Notification;
|
|
204
|
+
NotificationType: typeof _NotificationType;
|
|
189
205
|
PauseStatusType: typeof _PauseStatusType;
|
|
190
206
|
Platform: typeof _Platform;
|
|
191
207
|
PlatformAlbum: typeof _PlatformAlbum;
|
|
@@ -204,6 +220,11 @@ export declare function initModels(sequelize: Sequelize): {
|
|
|
204
220
|
PlatformUserPlaylistTrack: typeof _PlatformUserPlaylistTrack;
|
|
205
221
|
PlaybackStatus: typeof _PlaybackStatus;
|
|
206
222
|
PlaybackStatusType: typeof _PlaybackStatusType;
|
|
223
|
+
RadioShow: typeof _RadioShow;
|
|
224
|
+
RadioShowGenres: typeof _RadioShowGenres;
|
|
225
|
+
RadioShowMedia: typeof _RadioShowMedia;
|
|
226
|
+
RadioShowPlacement: typeof _RadioShowPlacement;
|
|
227
|
+
RadioShowPublishRequests: typeof _RadioShowPublishRequests;
|
|
207
228
|
State: typeof _State;
|
|
208
229
|
TrackDeletionReason: typeof _TrackDeletionReason;
|
|
209
230
|
UnmatchedAlbum: typeof _UnmatchedAlbum;
|
package/dist/init-models.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.UserContacts = exports.UnmatchedArtist = exports.UnmatchedAlbum = exports.TrackDeletionReason = exports.State = exports.PlaybackStatusType = exports.PlaybackStatus = exports.PlatformUserPlaylistTrack = exports.PlatformUserPlaylist = exports.PlatformUserAlbumTrack = exports.PlatformUserAlbum = exports.PlatformTrackGenreRelation = exports.PlatformTrack = exports.PlatformGenre = exports.PlatformArtistTrackRelation = exports.PlatformArtistGenreRelation = exports.PlatformArtistAlbumRelation = exports.PlatformArtist = exports.PlatformAlbumTrackRelation = void 0;
|
|
3
|
+
exports.Platform = exports.PauseStatusType = exports.NotificationType = exports.Notification = exports.NewsSite = exports.MetricsEvent = exports.MetricsDaily = exports.KnexMigrationsLock = exports.KnexMigrations = exports.JukeboxUserType = exports.JukeboxUser = exports.JukeboxType = exports.JukeboxTerminationCondition = exports.JukeboxStatus = exports.JukeboxSession = exports.JukeboxQueueMode = exports.JukeboxQueueEntry = exports.JukeboxInvite = exports.JukeboxCanonGenreRelation = exports.JukeboxAccessType = exports.ExternalReference = exports.ConfigParam = exports.CanonTrack = exports.CanonToPlatformTrackRelation = exports.CanonToPlatformGenreRelation = exports.CanonToPlatformArtistRelation = exports.CanonToPlatformAlbumRelation = exports.CanonMemberExternalReferenceRelation = exports.CanonMember = exports.CanonLabelExternalReferenceRelation = exports.CanonLabel = exports.CanonGenreExternalReferenceRelation = exports.CanonGenre = exports.CanonArtistTrackRelation = exports.CanonArtistMemberRelation = exports.CanonArtistImageHarvested = exports.CanonArtistGenreRelation = exports.CanonArtistExternalReferenceRelation = exports.CanonArtistAlbumRelation = exports.CanonArtist = exports.CanonAlbumTrackRelation = exports.CanonAlbumLabelRelation = exports.CanonAlbumImageHarvested = exports.CanonAlbumGenreRelation = exports.CanonAlbumExternalReferenceRelation = exports.CanonAlbum = exports.AppUserPlatformRelation = exports.AppUserFollowRelation = exports.AppUserDevice = exports.AppUser = void 0;
|
|
4
|
+
exports.UserContacts = exports.UnmatchedArtist = exports.UnmatchedAlbum = exports.TrackDeletionReason = exports.State = exports.RadioShowPublishRequests = exports.RadioShowPlacement = exports.RadioShowMedia = exports.RadioShowGenres = exports.RadioShow = exports.PlaybackStatusType = exports.PlaybackStatus = exports.PlatformUserPlaylistTrack = exports.PlatformUserPlaylist = exports.PlatformUserAlbumTrack = exports.PlatformUserAlbum = exports.PlatformTrackGenreRelation = exports.PlatformTrack = exports.PlatformGenre = exports.PlatformArtistTrackRelation = exports.PlatformArtistGenreRelation = exports.PlatformArtistAlbumRelation = exports.PlatformArtist = exports.PlatformAlbumTrackRelation = exports.PlatformAlbumGenreRelation = exports.PlatformAlbum = void 0;
|
|
5
5
|
exports.initModels = initModels;
|
|
6
6
|
const AppUser_1 = require("./AppUser");
|
|
7
7
|
Object.defineProperty(exports, "AppUser", { enumerable: true, get: function () { return AppUser_1.AppUser; } });
|
|
@@ -95,6 +95,10 @@ const MetricsEvent_1 = require("./MetricsEvent");
|
|
|
95
95
|
Object.defineProperty(exports, "MetricsEvent", { enumerable: true, get: function () { return MetricsEvent_1.MetricsEvent; } });
|
|
96
96
|
const NewsSite_1 = require("./NewsSite");
|
|
97
97
|
Object.defineProperty(exports, "NewsSite", { enumerable: true, get: function () { return NewsSite_1.NewsSite; } });
|
|
98
|
+
const Notification_1 = require("./Notification");
|
|
99
|
+
Object.defineProperty(exports, "Notification", { enumerable: true, get: function () { return Notification_1.Notification; } });
|
|
100
|
+
const NotificationType_1 = require("./NotificationType");
|
|
101
|
+
Object.defineProperty(exports, "NotificationType", { enumerable: true, get: function () { return NotificationType_1.NotificationType; } });
|
|
98
102
|
const PauseStatusType_1 = require("./PauseStatusType");
|
|
99
103
|
Object.defineProperty(exports, "PauseStatusType", { enumerable: true, get: function () { return PauseStatusType_1.PauseStatusType; } });
|
|
100
104
|
const Platform_1 = require("./Platform");
|
|
@@ -131,6 +135,16 @@ const PlaybackStatus_1 = require("./PlaybackStatus");
|
|
|
131
135
|
Object.defineProperty(exports, "PlaybackStatus", { enumerable: true, get: function () { return PlaybackStatus_1.PlaybackStatus; } });
|
|
132
136
|
const PlaybackStatusType_1 = require("./PlaybackStatusType");
|
|
133
137
|
Object.defineProperty(exports, "PlaybackStatusType", { enumerable: true, get: function () { return PlaybackStatusType_1.PlaybackStatusType; } });
|
|
138
|
+
const RadioShow_1 = require("./RadioShow");
|
|
139
|
+
Object.defineProperty(exports, "RadioShow", { enumerable: true, get: function () { return RadioShow_1.RadioShow; } });
|
|
140
|
+
const RadioShowGenres_1 = require("./RadioShowGenres");
|
|
141
|
+
Object.defineProperty(exports, "RadioShowGenres", { enumerable: true, get: function () { return RadioShowGenres_1.RadioShowGenres; } });
|
|
142
|
+
const RadioShowMedia_1 = require("./RadioShowMedia");
|
|
143
|
+
Object.defineProperty(exports, "RadioShowMedia", { enumerable: true, get: function () { return RadioShowMedia_1.RadioShowMedia; } });
|
|
144
|
+
const RadioShowPlacement_1 = require("./RadioShowPlacement");
|
|
145
|
+
Object.defineProperty(exports, "RadioShowPlacement", { enumerable: true, get: function () { return RadioShowPlacement_1.RadioShowPlacement; } });
|
|
146
|
+
const RadioShowPublishRequests_1 = require("./RadioShowPublishRequests");
|
|
147
|
+
Object.defineProperty(exports, "RadioShowPublishRequests", { enumerable: true, get: function () { return RadioShowPublishRequests_1.RadioShowPublishRequests; } });
|
|
134
148
|
const State_1 = require("./State");
|
|
135
149
|
Object.defineProperty(exports, "State", { enumerable: true, get: function () { return State_1.State; } });
|
|
136
150
|
const TrackDeletionReason_1 = require("./TrackDeletionReason");
|
|
@@ -188,6 +202,8 @@ function initModels(sequelize) {
|
|
|
188
202
|
const MetricsDaily = MetricsDaily_1.MetricsDaily.initModel(sequelize);
|
|
189
203
|
const MetricsEvent = MetricsEvent_1.MetricsEvent.initModel(sequelize);
|
|
190
204
|
const NewsSite = NewsSite_1.NewsSite.initModel(sequelize);
|
|
205
|
+
const Notification = Notification_1.Notification.initModel(sequelize);
|
|
206
|
+
const NotificationType = NotificationType_1.NotificationType.initModel(sequelize);
|
|
191
207
|
const PauseStatusType = PauseStatusType_1.PauseStatusType.initModel(sequelize);
|
|
192
208
|
const Platform = Platform_1.Platform.initModel(sequelize);
|
|
193
209
|
const PlatformAlbum = PlatformAlbum_1.PlatformAlbum.initModel(sequelize);
|
|
@@ -206,6 +222,11 @@ function initModels(sequelize) {
|
|
|
206
222
|
const PlatformUserPlaylistTrack = PlatformUserPlaylistTrack_1.PlatformUserPlaylistTrack.initModel(sequelize);
|
|
207
223
|
const PlaybackStatus = PlaybackStatus_1.PlaybackStatus.initModel(sequelize);
|
|
208
224
|
const PlaybackStatusType = PlaybackStatusType_1.PlaybackStatusType.initModel(sequelize);
|
|
225
|
+
const RadioShow = RadioShow_1.RadioShow.initModel(sequelize);
|
|
226
|
+
const RadioShowGenres = RadioShowGenres_1.RadioShowGenres.initModel(sequelize);
|
|
227
|
+
const RadioShowMedia = RadioShowMedia_1.RadioShowMedia.initModel(sequelize);
|
|
228
|
+
const RadioShowPlacement = RadioShowPlacement_1.RadioShowPlacement.initModel(sequelize);
|
|
229
|
+
const RadioShowPublishRequests = RadioShowPublishRequests_1.RadioShowPublishRequests.initModel(sequelize);
|
|
209
230
|
const State = State_1.State.initModel(sequelize);
|
|
210
231
|
const TrackDeletionReason = TrackDeletionReason_1.TrackDeletionReason.initModel(sequelize);
|
|
211
232
|
const UnmatchedAlbum = UnmatchedAlbum_1.UnmatchedAlbum.initModel(sequelize);
|
|
@@ -271,10 +292,16 @@ function initModels(sequelize) {
|
|
|
271
292
|
AppUser.hasMany(JukeboxQueueEntry, { as: "jukeboxQueueEntries", foreignKey: "trackAddedUserId" });
|
|
272
293
|
JukeboxUser.belongsTo(AppUser, { as: "appUser", foreignKey: "appUserId" });
|
|
273
294
|
AppUser.hasMany(JukeboxUser, { as: "jukeboxUsers", foreignKey: "appUserId" });
|
|
295
|
+
Notification.belongsTo(AppUser, { as: "sourceUser", foreignKey: "sourceUserId" });
|
|
296
|
+
AppUser.hasMany(Notification, { as: "notifications", foreignKey: "sourceUserId" });
|
|
297
|
+
Notification.belongsTo(AppUser, { as: "targetUser", foreignKey: "targetUserId" });
|
|
298
|
+
AppUser.hasMany(Notification, { as: "targetUserNotifications", foreignKey: "targetUserId" });
|
|
274
299
|
PlatformUserAlbum.belongsTo(AppUser, { as: "appUser", foreignKey: "appUserId" });
|
|
275
300
|
AppUser.hasMany(PlatformUserAlbum, { as: "platformUserAlbums", foreignKey: "appUserId" });
|
|
276
301
|
PlatformUserPlaylist.belongsTo(AppUser, { as: "appUser", foreignKey: "appUserId" });
|
|
277
302
|
AppUser.hasMany(PlatformUserPlaylist, { as: "platformUserPlaylists", foreignKey: "appUserId" });
|
|
303
|
+
RadioShow.belongsTo(AppUser, { as: "creatorUser", foreignKey: "creatorUserId" });
|
|
304
|
+
AppUser.hasMany(RadioShow, { as: "radioShows", foreignKey: "creatorUserId" });
|
|
278
305
|
UserContacts.belongsTo(AppUser, { as: "appUser", foreignKey: "appUserId" });
|
|
279
306
|
AppUser.hasMany(UserContacts, { as: "userContacts", foreignKey: "appUserId" });
|
|
280
307
|
CanonAlbumExternalReferenceRelation.belongsTo(CanonAlbum, { as: "canonAlbum", foreignKey: "canonAlbumId" });
|
|
@@ -303,6 +330,8 @@ function initModels(sequelize) {
|
|
|
303
330
|
CanonGenre.hasMany(CanonToPlatformGenreRelation, { as: "canonToPlatformGenreRelations", foreignKey: "canonGenreId" });
|
|
304
331
|
JukeboxCanonGenreRelation.belongsTo(CanonGenre, { as: "canonGenre", foreignKey: "canonGenreId" });
|
|
305
332
|
CanonGenre.hasMany(JukeboxCanonGenreRelation, { as: "jukeboxCanonGenreRelations", foreignKey: "canonGenreId" });
|
|
333
|
+
RadioShowGenres.belongsTo(CanonGenre, { as: "canonGenre", foreignKey: "canonGenreId" });
|
|
334
|
+
CanonGenre.hasMany(RadioShowGenres, { as: "radioShowGenres", foreignKey: "canonGenreId" });
|
|
306
335
|
CanonAlbumLabelRelation.belongsTo(CanonLabel, { as: "canonLabel", foreignKey: "canonLabelId" });
|
|
307
336
|
CanonLabel.hasMany(CanonAlbumLabelRelation, { as: "canonAlbumLabelRelations", foreignKey: "canonLabelId" });
|
|
308
337
|
CanonLabelExternalReferenceRelation.belongsTo(CanonLabel, { as: "canonLabel", foreignKey: "canonLabelId" });
|
|
@@ -319,6 +348,8 @@ function initModels(sequelize) {
|
|
|
319
348
|
CanonTrack.hasMany(CanonToPlatformTrackRelation, { as: "canonToPlatformTrackRelations", foreignKey: "canonTrackId" });
|
|
320
349
|
JukeboxQueueEntry.belongsTo(CanonTrack, { as: "track", foreignKey: "trackId" });
|
|
321
350
|
CanonTrack.hasMany(JukeboxQueueEntry, { as: "jukeboxQueueEntries", foreignKey: "trackId" });
|
|
351
|
+
RadioShowPlacement.belongsTo(CanonTrack, { as: "canonTrack", foreignKey: "canonTrackId" });
|
|
352
|
+
CanonTrack.hasMany(RadioShowPlacement, { as: "radioShowPlacements", foreignKey: "canonTrackId" });
|
|
322
353
|
CanonAlbumExternalReferenceRelation.belongsTo(ExternalReference, { as: "externalReference", foreignKey: "externalReferenceId" });
|
|
323
354
|
ExternalReference.hasMany(CanonAlbumExternalReferenceRelation, { as: "canonAlbumExternalReferenceRelations", foreignKey: "externalReferenceId" });
|
|
324
355
|
CanonArtistExternalReferenceRelation.belongsTo(ExternalReference, { as: "externalReference", foreignKey: "externalReferenceId" });
|
|
@@ -343,6 +374,8 @@ function initModels(sequelize) {
|
|
|
343
374
|
JukeboxSession.hasMany(JukeboxQueueEntry, { as: "jukeboxQueueEntries", foreignKey: "jukeboxSessionId" });
|
|
344
375
|
JukeboxUser.belongsTo(JukeboxSession, { as: "jukeboxSession", foreignKey: "jukeboxSessionId" });
|
|
345
376
|
JukeboxSession.hasMany(JukeboxUser, { as: "jukeboxUsers", foreignKey: "jukeboxSessionId" });
|
|
377
|
+
Notification.belongsTo(JukeboxSession, { as: "jukeboxSession", foreignKey: "jukeboxSessionId" });
|
|
378
|
+
JukeboxSession.hasMany(Notification, { as: "notifications", foreignKey: "jukeboxSessionId" });
|
|
346
379
|
JukeboxSession.belongsTo(JukeboxStatus, { as: "jukeboxStatus", foreignKey: "jukeboxStatusId" });
|
|
347
380
|
JukeboxStatus.hasMany(JukeboxSession, { as: "jukeboxSessions", foreignKey: "jukeboxStatusId" });
|
|
348
381
|
JukeboxSession.belongsTo(JukeboxTerminationCondition, { as: "terminationCondition", foreignKey: "terminationConditionId" });
|
|
@@ -351,6 +384,8 @@ function initModels(sequelize) {
|
|
|
351
384
|
JukeboxType.hasMany(JukeboxSession, { as: "jukeboxSessions", foreignKey: "typeId" });
|
|
352
385
|
JukeboxUser.belongsTo(JukeboxUserType, { as: "jukeboxUserType", foreignKey: "jukeboxUserTypeId" });
|
|
353
386
|
JukeboxUserType.hasMany(JukeboxUser, { as: "jukeboxUsers", foreignKey: "jukeboxUserTypeId" });
|
|
387
|
+
Notification.belongsTo(NotificationType, { as: "notificationType", foreignKey: "notificationTypeId" });
|
|
388
|
+
NotificationType.hasMany(Notification, { as: "notifications", foreignKey: "notificationTypeId" });
|
|
354
389
|
JukeboxUser.belongsTo(PauseStatusType, { as: "pauseStatusType", foreignKey: "pauseStatusTypeId" });
|
|
355
390
|
PauseStatusType.hasMany(JukeboxUser, { as: "jukeboxUsers", foreignKey: "pauseStatusTypeId" });
|
|
356
391
|
AppUserPlatformRelation.belongsTo(Platform, { as: "platform", foreignKey: "platformId" });
|
|
@@ -429,6 +464,14 @@ function initModels(sequelize) {
|
|
|
429
464
|
PlatformUserPlaylist.hasMany(PlatformUserPlaylistTrack, { as: "platformUserPlaylistTracks", foreignKey: "platformUserPlaylistId" });
|
|
430
465
|
JukeboxQueueEntry.belongsTo(PlaybackStatusType, { as: "playbackStatusType", foreignKey: "playbackStatusTypeId" });
|
|
431
466
|
PlaybackStatusType.hasMany(JukeboxQueueEntry, { as: "jukeboxQueueEntries", foreignKey: "playbackStatusTypeId" });
|
|
467
|
+
RadioShowGenres.belongsTo(RadioShow, { as: "radioShow", foreignKey: "radioShowId" });
|
|
468
|
+
RadioShow.hasMany(RadioShowGenres, { as: "radioShowGenres", foreignKey: "radioShowId" });
|
|
469
|
+
RadioShowMedia.belongsTo(RadioShow, { as: "radioShow", foreignKey: "radioShowId" });
|
|
470
|
+
RadioShow.hasMany(RadioShowMedia, { as: "radioShowMedia", foreignKey: "radioShowId" });
|
|
471
|
+
RadioShowPlacement.belongsTo(RadioShow, { as: "radioShow", foreignKey: "radioShowId" });
|
|
472
|
+
RadioShow.hasMany(RadioShowPlacement, { as: "radioShowPlacements", foreignKey: "radioShowId" });
|
|
473
|
+
RadioShowPublishRequests.belongsTo(RadioShow, { as: "radioShow", foreignKey: "radioShowId" });
|
|
474
|
+
RadioShow.hasMany(RadioShowPublishRequests, { as: "radioShowPublishRequests", foreignKey: "radioShowId" });
|
|
432
475
|
AppUser.belongsTo(State, { as: "state", foreignKey: "stateId" });
|
|
433
476
|
State.hasMany(AppUser, { as: "appUsers", foreignKey: "stateId" });
|
|
434
477
|
PlatformUserPlaylist.belongsTo(State, { as: "state", foreignKey: "stateId" });
|
|
@@ -484,6 +527,8 @@ function initModels(sequelize) {
|
|
|
484
527
|
MetricsDaily: MetricsDaily,
|
|
485
528
|
MetricsEvent: MetricsEvent,
|
|
486
529
|
NewsSite: NewsSite,
|
|
530
|
+
Notification: Notification,
|
|
531
|
+
NotificationType: NotificationType,
|
|
487
532
|
PauseStatusType: PauseStatusType,
|
|
488
533
|
Platform: Platform,
|
|
489
534
|
PlatformAlbum: PlatformAlbum,
|
|
@@ -502,6 +547,11 @@ function initModels(sequelize) {
|
|
|
502
547
|
PlatformUserPlaylistTrack: PlatformUserPlaylistTrack,
|
|
503
548
|
PlaybackStatus: PlaybackStatus,
|
|
504
549
|
PlaybackStatusType: PlaybackStatusType,
|
|
550
|
+
RadioShow: RadioShow,
|
|
551
|
+
RadioShowGenres: RadioShowGenres,
|
|
552
|
+
RadioShowMedia: RadioShowMedia,
|
|
553
|
+
RadioShowPlacement: RadioShowPlacement,
|
|
554
|
+
RadioShowPublishRequests: RadioShowPublishRequests,
|
|
505
555
|
State: State,
|
|
506
556
|
TrackDeletionReason: TrackDeletionReason,
|
|
507
557
|
UnmatchedAlbum: UnmatchedAlbum,
|