diff --git a/dist/dataTypes.d.ts b/dist/dataTypes.d.ts index 7489189..d947f71 100644 --- a/dist/dataTypes.d.ts +++ b/dist/dataTypes.d.ts @@ -7,17 +7,20 @@ export declare class Song { title: string; songId: string; image: string; - constructor(type: SongType, title: string, songId: string, image: string); + inAutoPlay: boolean; + constructor(type: SongType, title: string, songId: string, image: string, inAutoPlay: boolean); } export declare class QueuedSong extends Song { listener: string; - constructor(type: SongType, title: string, songId: string, image: string, listener: string); + inAutoPlay: boolean; + constructor(type: SongType, title: string, songId: string, image: string, listener: string, inAutoPlay: boolean); } export declare class PlayingSong extends QueuedSong { length: number; position: number; tags: string[]; - constructor(type: SongType, title: string, songId: string, image: string, listener: string, length: number, position: number, tags: string[]); + inAutoPlay: boolean; + constructor(type: SongType, title: string, songId: string, image: string, listener: string, length: number, position: number, tags: string[], inAutoPlay: boolean); } export declare class Playlist { title: string; diff --git a/dist/dataTypes.js b/dist/dataTypes.js index 1d68c7a..4bb7bb7 100644 --- a/dist/dataTypes.js +++ b/dist/dataTypes.js @@ -22,20 +22,22 @@ var SongType; SongType[SongType["Spotify"] = 1] = "Spotify"; })(SongType || (exports.SongType = SongType = {})); var Song = /** @class */ (function () { - function Song(type, title, songId, image) { + function Song(type, title, songId, image, inAutoPlay) { this.type = type; this.title = title; this.songId = songId; this.image = image; + this.inAutoPlay = inAutoPlay; } return Song; }()); exports.Song = Song; var QueuedSong = /** @class */ (function (_super) { __extends(QueuedSong, _super); - function QueuedSong(type, title, songId, image, listener) { - var _this = _super.call(this, type, title, songId, image) || this; + function QueuedSong(type, title, songId, image, listener, inAutoPlay) { + var _this = _super.call(this, type, title, songId, image, inAutoPlay) || this; _this.listener = listener; + _this.inAutoPlay = inAutoPlay; return _this; } return QueuedSong; @@ -43,11 +45,12 @@ var QueuedSong = /** @class */ (function (_super) { exports.QueuedSong = QueuedSong; var PlayingSong = /** @class */ (function (_super) { __extends(PlayingSong, _super); - function PlayingSong(type, title, songId, image, listener, length, position, tags) { - var _this = _super.call(this, type, title, songId, image, listener) || this; + function PlayingSong(type, title, songId, image, listener, length, position, tags, inAutoPlay) { + var _this = _super.call(this, type, title, songId, image, listener, inAutoPlay) || this; _this.length = length; _this.position = position; _this.tags = tags; + _this.inAutoPlay = inAutoPlay; return _this; } return PlayingSong; diff --git a/package.json b/package.json index cc8a875..53af2ab 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "stuen-common", - "version": "1.2.11", + "version": "1.2.12", "main": "dist/common.js", "type": "commonjs", "types": "dist/common.d.ts",