@earbug/db-models 0.0.40 → 0.0.41
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/JukeboxSession.d.ts
CHANGED
|
@@ -29,10 +29,11 @@ export interface JukeboxSessionAttributes {
|
|
|
29
29
|
description?: string;
|
|
30
30
|
jukeboxStatusId: number;
|
|
31
31
|
durationMs: number;
|
|
32
|
+
pausedAt?: Date;
|
|
32
33
|
}
|
|
33
34
|
export type JukeboxSessionPk = "id";
|
|
34
35
|
export type JukeboxSessionId = JukeboxSession[JukeboxSessionPk];
|
|
35
|
-
export type JukeboxSessionOptionalAttributes = "trackQueue" | "stateMachineArn" | "id" | "createdAt" | "updatedAt" | "description" | "jukeboxStatusId" | "durationMs";
|
|
36
|
+
export type JukeboxSessionOptionalAttributes = "trackQueue" | "stateMachineArn" | "id" | "createdAt" | "updatedAt" | "description" | "jukeboxStatusId" | "durationMs" | "pausedAt";
|
|
36
37
|
export type JukeboxSessionCreationAttributes = Optional<JukeboxSessionAttributes, JukeboxSessionOptionalAttributes>;
|
|
37
38
|
export declare class JukeboxSession extends Model<JukeboxSessionAttributes, JukeboxSessionCreationAttributes> implements JukeboxSessionAttributes {
|
|
38
39
|
typeId: number;
|
|
@@ -47,6 +48,7 @@ export declare class JukeboxSession extends Model<JukeboxSessionAttributes, Juke
|
|
|
47
48
|
description?: string;
|
|
48
49
|
jukeboxStatusId: number;
|
|
49
50
|
durationMs: number;
|
|
51
|
+
pausedAt?: Date;
|
|
50
52
|
accessType: JukeboxAccessType;
|
|
51
53
|
getAccessType: Sequelize.BelongsToGetAssociationMixin<JukeboxAccessType>;
|
|
52
54
|
setAccessType: Sequelize.BelongsToSetAssociationMixin<JukeboxAccessType, JukeboxAccessTypeId>;
|
package/dist/JukeboxSession.js
CHANGED
|
@@ -112,6 +112,11 @@ class JukeboxSession extends sequelize_1.Model {
|
|
|
112
112
|
allowNull: false,
|
|
113
113
|
defaultValue: 0,
|
|
114
114
|
field: 'duration_ms'
|
|
115
|
+
},
|
|
116
|
+
pausedAt: {
|
|
117
|
+
type: sequelize_1.DataTypes.DATE,
|
|
118
|
+
allowNull: true,
|
|
119
|
+
field: 'paused_at'
|
|
115
120
|
}
|
|
116
121
|
}, {
|
|
117
122
|
sequelize,
|
package/models/JukeboxSession.ts
CHANGED
|
@@ -30,11 +30,12 @@ export interface JukeboxSessionAttributes {
|
|
|
30
30
|
description?: string;
|
|
31
31
|
jukeboxStatusId: number;
|
|
32
32
|
durationMs: number;
|
|
33
|
+
pausedAt?: Date;
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
export type JukeboxSessionPk = "id";
|
|
36
37
|
export type JukeboxSessionId = JukeboxSession[JukeboxSessionPk];
|
|
37
|
-
export type JukeboxSessionOptionalAttributes = "trackQueue" | "stateMachineArn" | "id" | "createdAt" | "updatedAt" | "description" | "jukeboxStatusId" | "durationMs";
|
|
38
|
+
export type JukeboxSessionOptionalAttributes = "trackQueue" | "stateMachineArn" | "id" | "createdAt" | "updatedAt" | "description" | "jukeboxStatusId" | "durationMs" | "pausedAt";
|
|
38
39
|
export type JukeboxSessionCreationAttributes = Optional<JukeboxSessionAttributes, JukeboxSessionOptionalAttributes>;
|
|
39
40
|
|
|
40
41
|
export class JukeboxSession extends Model<JukeboxSessionAttributes, JukeboxSessionCreationAttributes> implements JukeboxSessionAttributes {
|
|
@@ -50,6 +51,7 @@ export class JukeboxSession extends Model<JukeboxSessionAttributes, JukeboxSessi
|
|
|
50
51
|
description?: string;
|
|
51
52
|
jukeboxStatusId!: number;
|
|
52
53
|
durationMs!: number;
|
|
54
|
+
pausedAt?: Date;
|
|
53
55
|
|
|
54
56
|
// JukeboxSession belongsTo JukeboxAccessType via accessTypeId
|
|
55
57
|
accessType!: JukeboxAccessType;
|
|
@@ -294,6 +296,11 @@ export class JukeboxSession extends Model<JukeboxSessionAttributes, JukeboxSessi
|
|
|
294
296
|
allowNull: false,
|
|
295
297
|
defaultValue: 0,
|
|
296
298
|
field: 'duration_ms'
|
|
299
|
+
},
|
|
300
|
+
pausedAt: {
|
|
301
|
+
type: DataTypes.DATE,
|
|
302
|
+
allowNull: true,
|
|
303
|
+
field: 'paused_at'
|
|
297
304
|
}
|
|
298
305
|
}, {
|
|
299
306
|
sequelize,
|