tering-serieuze-types 2.13.3 → 2.14.0
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/index.js +15 -0
- package/interfaces/mopidy.ts +2 -1
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/mopidy.ts +10 -0
package/dist/index.js
CHANGED
|
@@ -44,6 +44,7 @@ __export(src_exports, {
|
|
|
44
44
|
Pod: () => Pod,
|
|
45
45
|
RemoveUserDto: () => RemoveUserDto,
|
|
46
46
|
Session: () => Session,
|
|
47
|
+
SetAlarmschijfDto: () => SetAlarmschijfDto,
|
|
47
48
|
SetChangelogIdDto: () => SetChangelogIdDto,
|
|
48
49
|
SetWindowStateDto: () => SetWindowStateDto,
|
|
49
50
|
ToggleAbleUserPropertyEnum: () => ToggleAbleUserPropertyEnum,
|
|
@@ -551,6 +552,19 @@ __decorateClass([
|
|
|
551
552
|
var DeletePodDto = class extends (0, import_swagger9.PickType)(Pod, ["name"]) {
|
|
552
553
|
};
|
|
553
554
|
|
|
555
|
+
// src/mopidy.ts
|
|
556
|
+
var import_swagger10 = require("@nestjs/swagger");
|
|
557
|
+
var import_class_validator7 = require("class-validator");
|
|
558
|
+
var SetAlarmschijfDto = class {
|
|
559
|
+
uri;
|
|
560
|
+
};
|
|
561
|
+
__decorateClass([
|
|
562
|
+
(0, import_swagger10.ApiProperty)({ description: "URI of the track to set as alarmschijf" }),
|
|
563
|
+
(0, import_class_validator7.IsString)(),
|
|
564
|
+
(0, import_class_validator7.IsNotEmpty)(),
|
|
565
|
+
(0, import_class_validator7.Matches)(/^spotify:track:[a-zA-Z0-9]{22}$/, { message: "URI must be a valid Spotify track URI" })
|
|
566
|
+
], SetAlarmschijfDto.prototype, "uri", 2);
|
|
567
|
+
|
|
554
568
|
// src/index.ts
|
|
555
569
|
var P2000Payload = class {
|
|
556
570
|
message;
|
|
@@ -574,6 +588,7 @@ var P2000Payload = class {
|
|
|
574
588
|
Pod,
|
|
575
589
|
RemoveUserDto,
|
|
576
590
|
Session,
|
|
591
|
+
SetAlarmschijfDto,
|
|
577
592
|
SetChangelogIdDto,
|
|
578
593
|
SetWindowStateDto,
|
|
579
594
|
ToggleAbleUserPropertyEnum,
|
package/interfaces/mopidy.ts
CHANGED
|
@@ -4,8 +4,9 @@ import { type URLTrack } from './webamp';
|
|
|
4
4
|
type Track = Mopidy.models.Track;
|
|
5
5
|
type Artist = Mopidy.models.Artist;
|
|
6
6
|
type Image = Mopidy.models.Image;
|
|
7
|
+
type SearchResult = Mopidy.models.SearchResult;
|
|
7
8
|
|
|
8
|
-
export type { Track, Artist, Image };
|
|
9
|
+
export type { Track, Artist, Image, SearchResult };
|
|
9
10
|
|
|
10
11
|
export enum PlaybackState {
|
|
11
12
|
playing = 'playing',
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
package/src/mopidy.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ApiProperty } from '@nestjs/swagger';
|
|
2
|
+
import { IsNotEmpty, IsString, Matches } from 'class-validator';
|
|
3
|
+
|
|
4
|
+
export class SetAlarmschijfDto {
|
|
5
|
+
@ApiProperty({ description: 'URI of the track to set as alarmschijf' })
|
|
6
|
+
@IsString()
|
|
7
|
+
@IsNotEmpty()
|
|
8
|
+
@Matches(/^spotify:track:[a-zA-Z0-9]{22}$/, { message: 'URI must be a valid Spotify track URI' })
|
|
9
|
+
uri: string;
|
|
10
|
+
}
|