@earbug/db-models 0.0.43 → 0.0.44
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/CanonArtist.d.ts +5 -3
- package/dist/CanonArtist.js +11 -5
- package/models/CanonArtist.ts +16 -8
- package/package.json +1 -1
package/dist/CanonArtist.d.ts
CHANGED
|
@@ -28,13 +28,14 @@ export interface CanonArtistAttributes {
|
|
|
28
28
|
lastImageHarvestAttempt?: Date;
|
|
29
29
|
merchHarvestDay?: number;
|
|
30
30
|
newsHarvestDay?: number;
|
|
31
|
-
harvestPopularity?: number;
|
|
32
31
|
lastGenreHarvestAttempt?: Date;
|
|
33
32
|
genreHarvestCount: number;
|
|
33
|
+
popularityRank?: number;
|
|
34
|
+
popularityScore: number;
|
|
34
35
|
}
|
|
35
36
|
export type CanonArtistPk = "id";
|
|
36
37
|
export type CanonArtistId = CanonArtist[CanonArtistPk];
|
|
37
|
-
export type CanonArtistOptionalAttributes = "description" | "id" | "createDate" | "updateDate" | "hasThumbnailPhoto" | "images" | "lastImageHarvestAttempt" | "merchHarvestDay" | "newsHarvestDay" | "
|
|
38
|
+
export type CanonArtistOptionalAttributes = "description" | "id" | "createDate" | "updateDate" | "hasThumbnailPhoto" | "images" | "lastImageHarvestAttempt" | "merchHarvestDay" | "newsHarvestDay" | "lastGenreHarvestAttempt" | "genreHarvestCount" | "popularityRank" | "popularityScore";
|
|
38
39
|
export type CanonArtistCreationAttributes = Optional<CanonArtistAttributes, CanonArtistOptionalAttributes>;
|
|
39
40
|
export declare class CanonArtist extends Model<CanonArtistAttributes, CanonArtistCreationAttributes> implements CanonArtistAttributes {
|
|
40
41
|
name: string;
|
|
@@ -49,9 +50,10 @@ export declare class CanonArtist extends Model<CanonArtistAttributes, CanonArtis
|
|
|
49
50
|
lastImageHarvestAttempt?: Date;
|
|
50
51
|
merchHarvestDay?: number;
|
|
51
52
|
newsHarvestDay?: number;
|
|
52
|
-
harvestPopularity?: number;
|
|
53
53
|
lastGenreHarvestAttempt?: Date;
|
|
54
54
|
genreHarvestCount: number;
|
|
55
|
+
popularityRank?: number;
|
|
56
|
+
popularityScore: number;
|
|
55
57
|
canonArtistAlbumRelations: CanonArtistAlbumRelation[];
|
|
56
58
|
getCanonArtistAlbumRelations: Sequelize.HasManyGetAssociationsMixin<CanonArtistAlbumRelation>;
|
|
57
59
|
setCanonArtistAlbumRelations: Sequelize.HasManySetAssociationsMixin<CanonArtistAlbumRelation, CanonArtistAlbumRelationId>;
|
package/dist/CanonArtist.js
CHANGED
|
@@ -91,11 +91,6 @@ class CanonArtist extends sequelize_1.Model {
|
|
|
91
91
|
allowNull: true,
|
|
92
92
|
field: 'news_harvest_day'
|
|
93
93
|
},
|
|
94
|
-
harvestPopularity: {
|
|
95
|
-
type: sequelize_1.DataTypes.INTEGER,
|
|
96
|
-
allowNull: true,
|
|
97
|
-
field: 'harvest_popularity'
|
|
98
|
-
},
|
|
99
94
|
lastGenreHarvestAttempt: {
|
|
100
95
|
type: sequelize_1.DataTypes.DATE,
|
|
101
96
|
allowNull: true,
|
|
@@ -106,6 +101,17 @@ class CanonArtist extends sequelize_1.Model {
|
|
|
106
101
|
allowNull: false,
|
|
107
102
|
defaultValue: 0,
|
|
108
103
|
field: 'genre_harvest_count'
|
|
104
|
+
},
|
|
105
|
+
popularityRank: {
|
|
106
|
+
type: sequelize_1.DataTypes.INTEGER,
|
|
107
|
+
allowNull: true,
|
|
108
|
+
field: 'popularity_rank'
|
|
109
|
+
},
|
|
110
|
+
popularityScore: {
|
|
111
|
+
type: sequelize_1.DataTypes.INTEGER,
|
|
112
|
+
allowNull: false,
|
|
113
|
+
defaultValue: 0,
|
|
114
|
+
field: 'popularity_score'
|
|
109
115
|
}
|
|
110
116
|
}, {
|
|
111
117
|
sequelize,
|
package/models/CanonArtist.ts
CHANGED
|
@@ -29,14 +29,15 @@ export interface CanonArtistAttributes {
|
|
|
29
29
|
lastImageHarvestAttempt?: Date;
|
|
30
30
|
merchHarvestDay?: number;
|
|
31
31
|
newsHarvestDay?: number;
|
|
32
|
-
harvestPopularity?: number;
|
|
33
32
|
lastGenreHarvestAttempt?: Date;
|
|
34
33
|
genreHarvestCount: number;
|
|
34
|
+
popularityRank?: number;
|
|
35
|
+
popularityScore: number;
|
|
35
36
|
}
|
|
36
37
|
|
|
37
38
|
export type CanonArtistPk = "id";
|
|
38
39
|
export type CanonArtistId = CanonArtist[CanonArtistPk];
|
|
39
|
-
export type CanonArtistOptionalAttributes = "description" | "id" | "createDate" | "updateDate" | "hasThumbnailPhoto" | "images" | "lastImageHarvestAttempt" | "merchHarvestDay" | "newsHarvestDay" | "
|
|
40
|
+
export type CanonArtistOptionalAttributes = "description" | "id" | "createDate" | "updateDate" | "hasThumbnailPhoto" | "images" | "lastImageHarvestAttempt" | "merchHarvestDay" | "newsHarvestDay" | "lastGenreHarvestAttempt" | "genreHarvestCount" | "popularityRank" | "popularityScore";
|
|
40
41
|
export type CanonArtistCreationAttributes = Optional<CanonArtistAttributes, CanonArtistOptionalAttributes>;
|
|
41
42
|
|
|
42
43
|
export class CanonArtist extends Model<CanonArtistAttributes, CanonArtistCreationAttributes> implements CanonArtistAttributes {
|
|
@@ -52,9 +53,10 @@ export class CanonArtist extends Model<CanonArtistAttributes, CanonArtistCreatio
|
|
|
52
53
|
lastImageHarvestAttempt?: Date;
|
|
53
54
|
merchHarvestDay?: number;
|
|
54
55
|
newsHarvestDay?: number;
|
|
55
|
-
harvestPopularity?: number;
|
|
56
56
|
lastGenreHarvestAttempt?: Date;
|
|
57
57
|
genreHarvestCount!: number;
|
|
58
|
+
popularityRank?: number;
|
|
59
|
+
popularityScore!: number;
|
|
58
60
|
|
|
59
61
|
// CanonArtist hasMany CanonArtistAlbumRelation via canonArtistId
|
|
60
62
|
canonArtistAlbumRelations!: CanonArtistAlbumRelation[];
|
|
@@ -301,11 +303,6 @@ export class CanonArtist extends Model<CanonArtistAttributes, CanonArtistCreatio
|
|
|
301
303
|
allowNull: true,
|
|
302
304
|
field: 'news_harvest_day'
|
|
303
305
|
},
|
|
304
|
-
harvestPopularity: {
|
|
305
|
-
type: DataTypes.INTEGER,
|
|
306
|
-
allowNull: true,
|
|
307
|
-
field: 'harvest_popularity'
|
|
308
|
-
},
|
|
309
306
|
lastGenreHarvestAttempt: {
|
|
310
307
|
type: DataTypes.DATE,
|
|
311
308
|
allowNull: true,
|
|
@@ -316,6 +313,17 @@ export class CanonArtist extends Model<CanonArtistAttributes, CanonArtistCreatio
|
|
|
316
313
|
allowNull: false,
|
|
317
314
|
defaultValue: 0,
|
|
318
315
|
field: 'genre_harvest_count'
|
|
316
|
+
},
|
|
317
|
+
popularityRank: {
|
|
318
|
+
type: DataTypes.INTEGER,
|
|
319
|
+
allowNull: true,
|
|
320
|
+
field: 'popularity_rank'
|
|
321
|
+
},
|
|
322
|
+
popularityScore: {
|
|
323
|
+
type: DataTypes.INTEGER,
|
|
324
|
+
allowNull: false,
|
|
325
|
+
defaultValue: 0,
|
|
326
|
+
field: 'popularity_score'
|
|
319
327
|
}
|
|
320
328
|
}, {
|
|
321
329
|
sequelize,
|