tering-serieuze-types 2.13.4 → 2.14.1

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 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", type: String }),
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tering-serieuze-types",
3
- "version": "2.13.4",
3
+ "version": "2.14.1",
4
4
  "description": "Tering serieuze types",
5
5
  "author": "Frank",
6
6
  "repository": {
package/src/index.ts CHANGED
@@ -5,6 +5,7 @@ export * from './button';
5
5
  export * from './emulator';
6
6
  export * from './jingle';
7
7
  export * from './k8s';
8
+ export * from './mopidy';
8
9
  export * from './session';
9
10
  export * from './user';
10
11
 
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', type: String })
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
+ }