@earbug/db-models 0.0.7 → 0.0.9

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 (138) hide show
  1. package/dist/AppUser.d.ts +28 -5
  2. package/dist/AppUser.js +13 -13
  3. package/dist/AppUserDevice.d.ts +4 -4
  4. package/dist/AppUserDevice.js +8 -8
  5. package/dist/AppUserFollowRelation.d.ts +3 -3
  6. package/dist/AppUserFollowRelation.js +6 -6
  7. package/dist/AppUserPlatformRelation.d.ts +7 -7
  8. package/dist/AppUserPlatformRelation.js +18 -18
  9. package/dist/CanonAlbum.d.ts +5 -5
  10. package/dist/CanonAlbum.js +10 -10
  11. package/dist/CanonAlbumImageHarvested.d.ts +9 -9
  12. package/dist/CanonAlbumImageHarvested.js +24 -32
  13. package/dist/CanonArtist.d.ts +3 -3
  14. package/dist/CanonArtist.js +6 -6
  15. package/dist/CanonArtistImageHarvested.d.ts +9 -9
  16. package/dist/CanonArtistImageHarvested.js +24 -24
  17. package/dist/CanonGenre.d.ts +3 -3
  18. package/dist/CanonGenre.js +6 -6
  19. package/dist/CanonLabel.d.ts +2 -2
  20. package/dist/CanonLabel.js +6 -6
  21. package/dist/CanonMember.d.ts +3 -3
  22. package/dist/CanonMember.js +6 -6
  23. package/dist/CanonMemberExternalReferenceRelation.d.ts +2 -2
  24. package/dist/CanonMemberExternalReferenceRelation.js +5 -5
  25. package/dist/CanonTrack.d.ts +5 -5
  26. package/dist/CanonTrack.js +11 -11
  27. package/dist/ConfigParam.d.ts +2 -2
  28. package/dist/ConfigParam.js +5 -5
  29. package/dist/ExternalReference.d.ts +2 -2
  30. package/dist/ExternalReference.js +5 -5
  31. package/dist/JukeboxAccessType.d.ts +2 -2
  32. package/dist/JukeboxAccessType.js +4 -4
  33. package/dist/JukeboxCanonGenreRelation.d.ts +2 -2
  34. package/dist/JukeboxCanonGenreRelation.js +6 -6
  35. package/dist/JukeboxInvite.d.ts +3 -3
  36. package/dist/JukeboxInvite.js +6 -6
  37. package/dist/JukeboxQueueEntry.d.ts +10 -10
  38. package/dist/JukeboxQueueEntry.js +12 -12
  39. package/dist/JukeboxQueueMode.d.ts +2 -2
  40. package/dist/JukeboxQueueMode.js +4 -4
  41. package/dist/JukeboxSession.d.ts +21 -9
  42. package/dist/JukeboxSession.js +20 -20
  43. package/dist/JukeboxTerminationCondition.d.ts +2 -2
  44. package/dist/JukeboxTerminationCondition.js +4 -4
  45. package/dist/JukeboxType.d.ts +2 -2
  46. package/dist/JukeboxType.js +4 -4
  47. package/dist/JukeboxUser.d.ts +7 -7
  48. package/dist/JukeboxUser.js +20 -20
  49. package/dist/KnexMigrations.d.ts +3 -3
  50. package/dist/KnexMigrations.js +6 -6
  51. package/dist/KnexMigrationsLock.d.ts +3 -3
  52. package/dist/KnexMigrationsLock.js +5 -5
  53. package/dist/MetricsDaily.d.ts +3 -3
  54. package/dist/MetricsDaily.js +4 -4
  55. package/dist/NewsSite.d.ts +3 -3
  56. package/dist/NewsSite.js +6 -6
  57. package/dist/Notification.d.ts +62 -0
  58. package/dist/Notification.js +163 -0
  59. package/dist/NotificationType.d.ts +26 -0
  60. package/dist/NotificationType.js +42 -0
  61. package/dist/Platform.d.ts +2 -2
  62. package/dist/Platform.js +7 -7
  63. package/dist/PlatformAlbum.d.ts +5 -5
  64. package/dist/PlatformAlbum.js +10 -10
  65. package/dist/PlatformArtist.d.ts +5 -5
  66. package/dist/PlatformArtist.js +10 -10
  67. package/dist/PlatformGenre.d.ts +2 -2
  68. package/dist/PlatformGenre.js +6 -6
  69. package/dist/PlatformTrack.d.ts +3 -3
  70. package/dist/PlatformTrack.js +6 -6
  71. package/dist/PlatformUserAlbum.d.ts +2 -2
  72. package/dist/PlatformUserAlbum.js +6 -6
  73. package/dist/PlatformUserAlbumTrack.d.ts +4 -4
  74. package/dist/PlatformUserAlbumTrack.js +11 -11
  75. package/dist/PlatformUserPlaylist.d.ts +5 -5
  76. package/dist/PlatformUserPlaylist.js +11 -11
  77. package/dist/PlatformUserPlaylistTrack.d.ts +7 -7
  78. package/dist/PlatformUserPlaylistTrack.js +17 -17
  79. package/dist/PlaybackStatus.d.ts +2 -14
  80. package/dist/PlaybackStatus.js +4 -4
  81. package/dist/PlaybackStatusType.d.ts +12 -0
  82. package/dist/State.d.ts +2 -2
  83. package/dist/State.js +4 -4
  84. package/dist/UnmatchedAlbum.d.ts +2 -2
  85. package/dist/UnmatchedAlbum.js +6 -6
  86. package/dist/UnmatchedArtist.d.ts +2 -2
  87. package/dist/UnmatchedArtist.js +6 -6
  88. package/dist/UserContacts.d.ts +3 -3
  89. package/dist/UserContacts.js +7 -7
  90. package/dist/init-models.d.ts +8 -2
  91. package/dist/init-models.js +20 -4
  92. package/models/AppUser.ts +43 -18
  93. package/models/AppUserDevice.ts +12 -12
  94. package/models/AppUserFollowRelation.ts +9 -9
  95. package/models/AppUserPlatformRelation.ts +25 -25
  96. package/models/CanonAlbum.ts +15 -15
  97. package/models/CanonAlbumImageHarvested.ts +33 -41
  98. package/models/CanonArtist.ts +9 -9
  99. package/models/CanonArtistImageHarvested.ts +33 -33
  100. package/models/CanonGenre.ts +9 -9
  101. package/models/CanonLabel.ts +8 -8
  102. package/models/CanonMember.ts +9 -9
  103. package/models/CanonMemberExternalReferenceRelation.ts +7 -7
  104. package/models/CanonTrack.ts +16 -16
  105. package/models/ConfigParam.ts +7 -7
  106. package/models/ExternalReference.ts +7 -7
  107. package/models/JukeboxAccessType.ts +6 -6
  108. package/models/JukeboxCanonGenreRelation.ts +8 -8
  109. package/models/JukeboxInvite.ts +9 -9
  110. package/models/JukeboxQueueEntry.ts +23 -23
  111. package/models/JukeboxQueueMode.ts +6 -6
  112. package/models/JukeboxSession.ts +42 -29
  113. package/models/JukeboxTerminationCondition.ts +6 -6
  114. package/models/JukeboxType.ts +6 -6
  115. package/models/JukeboxUser.ts +27 -27
  116. package/models/KnexMigrations.ts +9 -9
  117. package/models/KnexMigrationsLock.ts +8 -8
  118. package/models/MetricsDaily.ts +7 -7
  119. package/models/NewsSite.ts +9 -9
  120. package/models/Notification.ts +202 -0
  121. package/models/NotificationType.ts +66 -0
  122. package/models/Platform.ts +9 -9
  123. package/models/PlatformAlbum.ts +15 -15
  124. package/models/PlatformArtist.ts +15 -15
  125. package/models/PlatformGenre.ts +8 -8
  126. package/models/PlatformTrack.ts +9 -9
  127. package/models/PlatformUserAlbum.ts +8 -8
  128. package/models/PlatformUserAlbumTrack.ts +15 -15
  129. package/models/PlatformUserPlaylist.ts +16 -16
  130. package/models/PlatformUserPlaylistTrack.ts +24 -24
  131. package/models/PlaybackStatus.ts +6 -19
  132. package/models/PlaybackStatusType.ts +13 -0
  133. package/models/State.ts +6 -6
  134. package/models/UnmatchedAlbum.ts +8 -8
  135. package/models/UnmatchedArtist.ts +8 -8
  136. package/models/UserContacts.ts +10 -10
  137. package/models/init-models.ts +24 -2
  138. package/package.json +1 -1
@@ -29,12 +29,6 @@ const sequelize_1 = require("sequelize");
29
29
  class PlatformUserAlbumTrack extends sequelize_1.Model {
30
30
  static initModel(sequelize) {
31
31
  return PlatformUserAlbumTrack.init({
32
- id: {
33
- type: sequelize_1.DataTypes.UUID,
34
- allowNull: false,
35
- defaultValue: sequelize_1.DataTypes.UUIDV4,
36
- primaryKey: true
37
- },
38
32
  platformUserAlbumId: {
39
33
  type: sequelize_1.DataTypes.UUID,
40
34
  allowNull: false,
@@ -69,6 +63,17 @@ class PlatformUserAlbumTrack extends sequelize_1.Model {
69
63
  unique: "platform_user_album_track_platform_user_album_id_platform_track",
70
64
  field: 'platform_track_id'
71
65
  },
66
+ stateId: {
67
+ type: sequelize_1.DataTypes.SMALLINT,
68
+ allowNull: false,
69
+ field: 'state_id'
70
+ },
71
+ id: {
72
+ type: sequelize_1.DataTypes.UUID,
73
+ allowNull: false,
74
+ defaultValue: sequelize_1.DataTypes.UUIDV4,
75
+ primaryKey: true
76
+ },
72
77
  createdAt: {
73
78
  type: sequelize_1.DataTypes.DATE,
74
79
  allowNull: false,
@@ -80,11 +85,6 @@ class PlatformUserAlbumTrack extends sequelize_1.Model {
80
85
  allowNull: false,
81
86
  defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
82
87
  field: 'updated_at'
83
- },
84
- stateId: {
85
- type: sequelize_1.DataTypes.SMALLINT,
86
- allowNull: false,
87
- field: 'state_id'
88
88
  }
89
89
  }, {
90
90
  sequelize,
@@ -5,14 +5,14 @@ import type { Platform, PlatformId } from './Platform';
5
5
  import type { PlatformUserPlaylistTrack, PlatformUserPlaylistTrackId } from './PlatformUserPlaylistTrack';
6
6
  import type { State, StateId } from './State';
7
7
  export interface PlatformUserPlaylistAttributes {
8
- id: string;
9
8
  appUserId: string;
10
9
  platformId: number;
11
10
  externalPlaylistId: string;
12
11
  name: string;
13
12
  description?: string;
14
- public?: boolean;
15
13
  snapshotId: string;
14
+ id: string;
15
+ public?: boolean;
16
16
  collaborative: boolean;
17
17
  createDate: Date;
18
18
  updateDate: Date;
@@ -20,17 +20,17 @@ export interface PlatformUserPlaylistAttributes {
20
20
  }
21
21
  export type PlatformUserPlaylistPk = "id";
22
22
  export type PlatformUserPlaylistId = PlatformUserPlaylist[PlatformUserPlaylistPk];
23
- export type PlatformUserPlaylistOptionalAttributes = "id" | "description" | "public" | "createDate" | "updateDate" | "stateId";
23
+ export type PlatformUserPlaylistOptionalAttributes = "description" | "id" | "public" | "createDate" | "updateDate" | "stateId";
24
24
  export type PlatformUserPlaylistCreationAttributes = Optional<PlatformUserPlaylistAttributes, PlatformUserPlaylistOptionalAttributes>;
25
25
  export declare class PlatformUserPlaylist extends Model<PlatformUserPlaylistAttributes, PlatformUserPlaylistCreationAttributes> implements PlatformUserPlaylistAttributes {
26
- id: string;
27
26
  appUserId: string;
28
27
  platformId: number;
29
28
  externalPlaylistId: string;
30
29
  name: string;
31
30
  description?: string;
32
- public?: boolean;
33
31
  snapshotId: string;
32
+ id: string;
33
+ public?: boolean;
34
34
  collaborative: boolean;
35
35
  createDate: Date;
36
36
  updateDate: Date;
@@ -29,12 +29,6 @@ const sequelize_1 = require("sequelize");
29
29
  class PlatformUserPlaylist extends sequelize_1.Model {
30
30
  static initModel(sequelize) {
31
31
  return PlatformUserPlaylist.init({
32
- id: {
33
- type: sequelize_1.DataTypes.UUID,
34
- allowNull: false,
35
- defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
36
- primaryKey: true
37
- },
38
32
  appUserId: {
39
33
  type: sequelize_1.DataTypes.UUID,
40
34
  allowNull: false,
@@ -69,16 +63,22 @@ class PlatformUserPlaylist extends sequelize_1.Model {
69
63
  type: sequelize_1.DataTypes.TEXT,
70
64
  allowNull: true
71
65
  },
72
- public: {
73
- type: sequelize_1.DataTypes.BOOLEAN,
74
- allowNull: true,
75
- defaultValue: false
76
- },
77
66
  snapshotId: {
78
67
  type: sequelize_1.DataTypes.TEXT,
79
68
  allowNull: false,
80
69
  field: 'snapshot_id'
81
70
  },
71
+ id: {
72
+ type: sequelize_1.DataTypes.UUID,
73
+ allowNull: false,
74
+ defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
75
+ primaryKey: true
76
+ },
77
+ public: {
78
+ type: sequelize_1.DataTypes.BOOLEAN,
79
+ allowNull: true,
80
+ defaultValue: false
81
+ },
82
82
  collaborative: {
83
83
  type: sequelize_1.DataTypes.BOOLEAN,
84
84
  allowNull: false,
@@ -4,34 +4,34 @@ import type { PlatformTrack, PlatformTrackId } from './PlatformTrack';
4
4
  import type { PlatformUserPlaylist, PlatformUserPlaylistId } from './PlatformUserPlaylist';
5
5
  import type { State, StateId } from './State';
6
6
  export interface PlatformUserPlaylistTrackAttributes {
7
- id: string;
8
7
  platformTrackId: string;
9
8
  platformUserPlaylistId: string;
10
- trackPosition: number;
11
9
  addedDate?: Date;
12
10
  addedByPlatformUserId?: string;
11
+ externalPlaylistTrackId: string;
12
+ id: string;
13
+ trackPosition: number;
13
14
  isLocal: boolean;
14
15
  createDate: Date;
15
16
  updateDate: Date;
16
17
  stateId: number;
17
- externalPlaylistTrackId: string;
18
18
  }
19
19
  export type PlatformUserPlaylistTrackPk = "id";
20
20
  export type PlatformUserPlaylistTrackId = PlatformUserPlaylistTrack[PlatformUserPlaylistTrackPk];
21
- export type PlatformUserPlaylistTrackOptionalAttributes = "id" | "trackPosition" | "addedDate" | "addedByPlatformUserId" | "createDate" | "updateDate" | "stateId";
21
+ export type PlatformUserPlaylistTrackOptionalAttributes = "addedDate" | "addedByPlatformUserId" | "id" | "trackPosition" | "createDate" | "updateDate" | "stateId";
22
22
  export type PlatformUserPlaylistTrackCreationAttributes = Optional<PlatformUserPlaylistTrackAttributes, PlatformUserPlaylistTrackOptionalAttributes>;
23
23
  export declare class PlatformUserPlaylistTrack extends Model<PlatformUserPlaylistTrackAttributes, PlatformUserPlaylistTrackCreationAttributes> implements PlatformUserPlaylistTrackAttributes {
24
- id: string;
25
24
  platformTrackId: string;
26
25
  platformUserPlaylistId: string;
27
- trackPosition: number;
28
26
  addedDate?: Date;
29
27
  addedByPlatformUserId?: string;
28
+ externalPlaylistTrackId: string;
29
+ id: string;
30
+ trackPosition: number;
30
31
  isLocal: boolean;
31
32
  createDate: Date;
32
33
  updateDate: Date;
33
34
  stateId: number;
34
- externalPlaylistTrackId: string;
35
35
  platformTrack: PlatformTrack;
36
36
  getPlatformTrack: Sequelize.BelongsToGetAssociationMixin<PlatformTrack>;
37
37
  setPlatformTrack: Sequelize.BelongsToSetAssociationMixin<PlatformTrack, PlatformTrackId>;
@@ -29,12 +29,6 @@ const sequelize_1 = require("sequelize");
29
29
  class PlatformUserPlaylistTrack extends sequelize_1.Model {
30
30
  static initModel(sequelize) {
31
31
  return PlatformUserPlaylistTrack.init({
32
- id: {
33
- type: sequelize_1.DataTypes.UUID,
34
- allowNull: false,
35
- defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
36
- primaryKey: true
37
- },
38
32
  platformTrackId: {
39
33
  type: sequelize_1.DataTypes.UUID,
40
34
  allowNull: false,
@@ -55,12 +49,6 @@ class PlatformUserPlaylistTrack extends sequelize_1.Model {
55
49
  unique: "uk_playlist_id_track_id",
56
50
  field: 'platform_user_playlist_id'
57
51
  },
58
- trackPosition: {
59
- type: sequelize_1.DataTypes.INTEGER,
60
- allowNull: false,
61
- defaultValue: 0,
62
- field: 'track_position'
63
- },
64
52
  addedDate: {
65
53
  type: sequelize_1.DataTypes.DATE,
66
54
  allowNull: true,
@@ -71,6 +59,23 @@ class PlatformUserPlaylistTrack extends sequelize_1.Model {
71
59
  allowNull: true,
72
60
  field: 'added_by_platform_user_id'
73
61
  },
62
+ externalPlaylistTrackId: {
63
+ type: sequelize_1.DataTypes.STRING(255),
64
+ allowNull: false,
65
+ field: 'external_playlist_track_id'
66
+ },
67
+ id: {
68
+ type: sequelize_1.DataTypes.UUID,
69
+ allowNull: false,
70
+ defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
71
+ primaryKey: true
72
+ },
73
+ trackPosition: {
74
+ type: sequelize_1.DataTypes.INTEGER,
75
+ allowNull: false,
76
+ defaultValue: 0,
77
+ field: 'track_position'
78
+ },
74
79
  isLocal: {
75
80
  type: sequelize_1.DataTypes.BOOLEAN,
76
81
  allowNull: false,
@@ -98,11 +103,6 @@ class PlatformUserPlaylistTrack extends sequelize_1.Model {
98
103
  key: 'id'
99
104
  },
100
105
  field: 'state_id'
101
- },
102
- externalPlaylistTrackId: {
103
- type: sequelize_1.DataTypes.STRING(255),
104
- allowNull: false,
105
- field: 'external_playlist_track_id'
106
106
  }
107
107
  }, {
108
108
  sequelize,
@@ -1,26 +1,14 @@
1
1
  import * as Sequelize from 'sequelize';
2
2
  import { Model } from 'sequelize';
3
- import type { JukeboxQueueEntry, JukeboxQueueEntryId } from './JukeboxQueueEntry';
4
3
  export interface PlaybackStatusAttributes {
5
- id: number;
6
4
  description: string;
5
+ id: number;
7
6
  }
8
7
  export type PlaybackStatusPk = "id";
9
8
  export type PlaybackStatusId = PlaybackStatus[PlaybackStatusPk];
10
9
  export type PlaybackStatusCreationAttributes = PlaybackStatusAttributes;
11
10
  export declare class PlaybackStatus extends Model<PlaybackStatusAttributes, PlaybackStatusCreationAttributes> implements PlaybackStatusAttributes {
12
- id: number;
13
11
  description: string;
14
- jukeboxQueueEntries: JukeboxQueueEntry[];
15
- getJukeboxQueueEntries: Sequelize.HasManyGetAssociationsMixin<JukeboxQueueEntry>;
16
- setJukeboxQueueEntries: Sequelize.HasManySetAssociationsMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
17
- addJukeboxQueueEntry: Sequelize.HasManyAddAssociationMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
18
- addJukeboxQueueEntries: Sequelize.HasManyAddAssociationsMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
19
- createJukeboxQueueEntry: Sequelize.HasManyCreateAssociationMixin<JukeboxQueueEntry>;
20
- removeJukeboxQueueEntry: Sequelize.HasManyRemoveAssociationMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
21
- removeJukeboxQueueEntries: Sequelize.HasManyRemoveAssociationsMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
22
- hasJukeboxQueueEntry: Sequelize.HasManyHasAssociationMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
23
- hasJukeboxQueueEntries: Sequelize.HasManyHasAssociationsMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
24
- countJukeboxQueueEntries: Sequelize.HasManyCountAssociationsMixin;
12
+ id: number;
25
13
  static initModel(sequelize: Sequelize.Sequelize): typeof PlaybackStatus;
26
14
  }
@@ -5,16 +5,16 @@ const sequelize_1 = require("sequelize");
5
5
  class PlaybackStatus extends sequelize_1.Model {
6
6
  static initModel(sequelize) {
7
7
  return PlaybackStatus.init({
8
+ description: {
9
+ type: sequelize_1.DataTypes.TEXT,
10
+ allowNull: false
11
+ },
8
12
  id: {
9
13
  autoIncrement: true,
10
14
  autoIncrementIdentity: true,
11
15
  type: sequelize_1.DataTypes.SMALLINT,
12
16
  allowNull: false,
13
17
  primaryKey: true
14
- },
15
- description: {
16
- type: sequelize_1.DataTypes.TEXT,
17
- allowNull: false
18
18
  }
19
19
  }, {
20
20
  sequelize,
@@ -1,5 +1,6 @@
1
1
  import * as Sequelize from 'sequelize';
2
2
  import { Model } from 'sequelize';
3
+ import type { JukeboxQueueEntry, JukeboxQueueEntryId } from './JukeboxQueueEntry';
3
4
  export interface PlaybackStatusTypeAttributes {
4
5
  id: number;
5
6
  description: string;
@@ -10,5 +11,16 @@ export type PlaybackStatusTypeCreationAttributes = PlaybackStatusTypeAttributes;
10
11
  export declare class PlaybackStatusType extends Model<PlaybackStatusTypeAttributes, PlaybackStatusTypeCreationAttributes> implements PlaybackStatusTypeAttributes {
11
12
  id: number;
12
13
  description: string;
14
+ jukeboxQueueEntries: JukeboxQueueEntry[];
15
+ getJukeboxQueueEntries: Sequelize.HasManyGetAssociationsMixin<JukeboxQueueEntry>;
16
+ setJukeboxQueueEntries: Sequelize.HasManySetAssociationsMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
17
+ addJukeboxQueueEntry: Sequelize.HasManyAddAssociationMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
18
+ addJukeboxQueueEntries: Sequelize.HasManyAddAssociationsMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
19
+ createJukeboxQueueEntry: Sequelize.HasManyCreateAssociationMixin<JukeboxQueueEntry>;
20
+ removeJukeboxQueueEntry: Sequelize.HasManyRemoveAssociationMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
21
+ removeJukeboxQueueEntries: Sequelize.HasManyRemoveAssociationsMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
22
+ hasJukeboxQueueEntry: Sequelize.HasManyHasAssociationMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
23
+ hasJukeboxQueueEntries: Sequelize.HasManyHasAssociationsMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
24
+ countJukeboxQueueEntries: Sequelize.HasManyCountAssociationsMixin;
13
25
  static initModel(sequelize: Sequelize.Sequelize): typeof PlaybackStatusType;
14
26
  }
package/dist/State.d.ts CHANGED
@@ -4,15 +4,15 @@ import type { AppUser, AppUserId } from './AppUser';
4
4
  import type { PlatformUserPlaylist, PlatformUserPlaylistId } from './PlatformUserPlaylist';
5
5
  import type { PlatformUserPlaylistTrack, PlatformUserPlaylistTrackId } from './PlatformUserPlaylistTrack';
6
6
  export interface StateAttributes {
7
- id: number;
8
7
  description: string;
8
+ id: number;
9
9
  }
10
10
  export type StatePk = "id";
11
11
  export type StateId = State[StatePk];
12
12
  export type StateCreationAttributes = StateAttributes;
13
13
  export declare class State extends Model<StateAttributes, StateCreationAttributes> implements StateAttributes {
14
- id: number;
15
14
  description: string;
15
+ id: number;
16
16
  appUsers: AppUser[];
17
17
  getAppUsers: Sequelize.HasManyGetAssociationsMixin<AppUser>;
18
18
  setAppUsers: Sequelize.HasManySetAssociationsMixin<AppUser, AppUserId>;
package/dist/State.js CHANGED
@@ -5,16 +5,16 @@ const sequelize_1 = require("sequelize");
5
5
  class State extends sequelize_1.Model {
6
6
  static initModel(sequelize) {
7
7
  return State.init({
8
+ description: {
9
+ type: sequelize_1.DataTypes.TEXT,
10
+ allowNull: false
11
+ },
8
12
  id: {
9
13
  autoIncrement: true,
10
14
  autoIncrementIdentity: true,
11
15
  type: sequelize_1.DataTypes.SMALLINT,
12
16
  allowNull: false,
13
17
  primaryKey: true
14
- },
15
- description: {
16
- type: sequelize_1.DataTypes.TEXT,
17
- allowNull: false
18
18
  }
19
19
  }, {
20
20
  sequelize,
@@ -2,8 +2,8 @@ import * as Sequelize from 'sequelize';
2
2
  import { Model, Optional } from 'sequelize';
3
3
  import type { PlatformAlbum, PlatformAlbumId } from './PlatformAlbum';
4
4
  export interface UnmatchedAlbumAttributes {
5
- id: string;
6
5
  platformAlbumId: string;
6
+ id: string;
7
7
  createDate: Date;
8
8
  }
9
9
  export type UnmatchedAlbumPk = "id";
@@ -11,8 +11,8 @@ export type UnmatchedAlbumId = UnmatchedAlbum[UnmatchedAlbumPk];
11
11
  export type UnmatchedAlbumOptionalAttributes = "id" | "createDate";
12
12
  export type UnmatchedAlbumCreationAttributes = Optional<UnmatchedAlbumAttributes, UnmatchedAlbumOptionalAttributes>;
13
13
  export declare class UnmatchedAlbum extends Model<UnmatchedAlbumAttributes, UnmatchedAlbumCreationAttributes> implements UnmatchedAlbumAttributes {
14
- id: string;
15
14
  platformAlbumId: string;
15
+ id: string;
16
16
  createDate: Date;
17
17
  platformAlbum: PlatformAlbum;
18
18
  getPlatformAlbum: Sequelize.BelongsToGetAssociationMixin<PlatformAlbum>;
@@ -29,12 +29,6 @@ const sequelize_1 = require("sequelize");
29
29
  class UnmatchedAlbum extends sequelize_1.Model {
30
30
  static initModel(sequelize) {
31
31
  return UnmatchedAlbum.init({
32
- id: {
33
- type: sequelize_1.DataTypes.UUID,
34
- allowNull: false,
35
- defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
36
- primaryKey: true
37
- },
38
32
  platformAlbumId: {
39
33
  type: sequelize_1.DataTypes.UUID,
40
34
  allowNull: false,
@@ -44,6 +38,12 @@ class UnmatchedAlbum extends sequelize_1.Model {
44
38
  },
45
39
  field: 'platform_album_id'
46
40
  },
41
+ id: {
42
+ type: sequelize_1.DataTypes.UUID,
43
+ allowNull: false,
44
+ defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
45
+ primaryKey: true
46
+ },
47
47
  createDate: {
48
48
  type: sequelize_1.DataTypes.DATE,
49
49
  allowNull: false,
@@ -2,9 +2,9 @@ import * as Sequelize from 'sequelize';
2
2
  import { Model, Optional } from 'sequelize';
3
3
  import type { Platform, PlatformId } from './Platform';
4
4
  export interface UnmatchedArtistAttributes {
5
- id: string;
6
5
  platformId: number;
7
6
  externalArtistId: number;
7
+ id: string;
8
8
  createDate: Date;
9
9
  updateDate: Date;
10
10
  }
@@ -13,9 +13,9 @@ export type UnmatchedArtistId = UnmatchedArtist[UnmatchedArtistPk];
13
13
  export type UnmatchedArtistOptionalAttributes = "id" | "createDate" | "updateDate";
14
14
  export type UnmatchedArtistCreationAttributes = Optional<UnmatchedArtistAttributes, UnmatchedArtistOptionalAttributes>;
15
15
  export declare class UnmatchedArtist extends Model<UnmatchedArtistAttributes, UnmatchedArtistCreationAttributes> implements UnmatchedArtistAttributes {
16
- id: string;
17
16
  platformId: number;
18
17
  externalArtistId: number;
18
+ id: string;
19
19
  createDate: Date;
20
20
  updateDate: Date;
21
21
  platform: Platform;
@@ -29,12 +29,6 @@ const sequelize_1 = require("sequelize");
29
29
  class UnmatchedArtist extends sequelize_1.Model {
30
30
  static initModel(sequelize) {
31
31
  return UnmatchedArtist.init({
32
- id: {
33
- type: sequelize_1.DataTypes.UUID,
34
- allowNull: false,
35
- defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
36
- primaryKey: true
37
- },
38
32
  platformId: {
39
33
  type: sequelize_1.DataTypes.SMALLINT,
40
34
  allowNull: false,
@@ -49,6 +43,12 @@ class UnmatchedArtist extends sequelize_1.Model {
49
43
  allowNull: false,
50
44
  field: 'external_artist_id'
51
45
  },
46
+ id: {
47
+ type: sequelize_1.DataTypes.UUID,
48
+ allowNull: false,
49
+ defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
50
+ primaryKey: true
51
+ },
52
52
  createDate: {
53
53
  type: sequelize_1.DataTypes.DATE,
54
54
  allowNull: false,
@@ -3,7 +3,6 @@ import { Model, Optional } from 'sequelize';
3
3
  import type { AppUser, AppUserId } from './AppUser';
4
4
  export interface UserContactsAttributes {
5
5
  appUserId: string;
6
- contactId: string;
7
6
  contactAppUserId?: string;
8
7
  firstName?: string;
9
8
  lastName?: string;
@@ -17,14 +16,14 @@ export interface UserContactsAttributes {
17
16
  contactPhone3?: string;
18
17
  contactPhone3Type?: "mobile" | "work" | "home" | "main";
19
18
  active?: boolean;
19
+ contactId: string;
20
20
  }
21
21
  export type UserContactsPk = "contactId";
22
22
  export type UserContactsId = UserContacts[UserContactsPk];
23
- export type UserContactsOptionalAttributes = "contactId" | "contactAppUserId" | "firstName" | "lastName" | "contactEmail1" | "contactEmail2" | "contactEmail3" | "contactPhone1" | "contactPhone1Type" | "contactPhone2" | "contactPhone2Type" | "contactPhone3" | "contactPhone3Type" | "active";
23
+ export type UserContactsOptionalAttributes = "contactAppUserId" | "firstName" | "lastName" | "contactEmail1" | "contactEmail2" | "contactEmail3" | "contactPhone1" | "contactPhone1Type" | "contactPhone2" | "contactPhone2Type" | "contactPhone3" | "contactPhone3Type" | "active" | "contactId";
24
24
  export type UserContactsCreationAttributes = Optional<UserContactsAttributes, UserContactsOptionalAttributes>;
25
25
  export declare class UserContacts extends Model<UserContactsAttributes, UserContactsCreationAttributes> implements UserContactsAttributes {
26
26
  appUserId: string;
27
- contactId: string;
28
27
  contactAppUserId?: string;
29
28
  firstName?: string;
30
29
  lastName?: string;
@@ -38,6 +37,7 @@ export declare class UserContacts extends Model<UserContactsAttributes, UserCont
38
37
  contactPhone3?: string;
39
38
  contactPhone3Type?: "mobile" | "work" | "home" | "main";
40
39
  active?: boolean;
40
+ contactId: string;
41
41
  appUser: AppUser;
42
42
  getAppUser: Sequelize.BelongsToGetAssociationMixin<AppUser>;
43
43
  setAppUser: Sequelize.BelongsToSetAssociationMixin<AppUser, AppUserId>;
@@ -14,13 +14,6 @@ class UserContacts extends sequelize_1.Model {
14
14
  },
15
15
  field: 'app_user_id'
16
16
  },
17
- contactId: {
18
- type: sequelize_1.DataTypes.UUID,
19
- allowNull: false,
20
- defaultValue: sequelize_1.DataTypes.UUIDV4,
21
- primaryKey: true,
22
- field: 'contact_id'
23
- },
24
17
  contactAppUserId: {
25
18
  type: sequelize_1.DataTypes.UUID,
26
19
  allowNull: true,
@@ -84,6 +77,13 @@ class UserContacts extends sequelize_1.Model {
84
77
  active: {
85
78
  type: sequelize_1.DataTypes.BOOLEAN,
86
79
  allowNull: true
80
+ },
81
+ contactId: {
82
+ type: sequelize_1.DataTypes.UUID,
83
+ allowNull: false,
84
+ defaultValue: sequelize_1.DataTypes.UUIDV4,
85
+ primaryKey: true,
86
+ field: 'contact_id'
87
87
  }
88
88
  }, {
89
89
  sequelize,
@@ -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";
@@ -137,8 +141,8 @@ import { UnmatchedArtist as _UnmatchedArtist } from "./UnmatchedArtist";
137
141
  import type { UnmatchedArtistAttributes, UnmatchedArtistCreationAttributes } from "./UnmatchedArtist";
138
142
  import { UserContacts as _UserContacts } from "./UserContacts";
139
143
  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, };
144
+ 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, _State as State, _TrackDeletionReason as TrackDeletionReason, _UnmatchedAlbum as UnmatchedAlbum, _UnmatchedArtist as UnmatchedArtist, _UserContacts as UserContacts, };
145
+ 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, StateAttributes, StateCreationAttributes, TrackDeletionReasonAttributes, TrackDeletionReasonCreationAttributes, UnmatchedAlbumAttributes, UnmatchedAlbumCreationAttributes, UnmatchedArtistAttributes, UnmatchedArtistCreationAttributes, UserContactsAttributes, UserContactsCreationAttributes, };
142
146
  export declare function initModels(sequelize: Sequelize): {
143
147
  AppUser: typeof _AppUser;
144
148
  AppUserDevice: typeof _AppUserDevice;
@@ -186,6 +190,8 @@ export declare function initModels(sequelize: Sequelize): {
186
190
  MetricsDaily: typeof _MetricsDaily;
187
191
  MetricsEvent: typeof _MetricsEvent;
188
192
  NewsSite: typeof _NewsSite;
193
+ Notification: typeof _Notification;
194
+ NotificationType: typeof _NotificationType;
189
195
  PauseStatusType: typeof _PauseStatusType;
190
196
  Platform: typeof _Platform;
191
197
  PlatformAlbum: typeof _PlatformAlbum;