tering-serieuze-types 1.22.2 → 1.23.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 CHANGED
@@ -54,7 +54,8 @@ __export(src_exports, {
54
54
  User: () => User,
55
55
  VerificationResponseDto: () => VerificationResponseDto,
56
56
  WebsocketAction: () => WebsocketAction,
57
- WindowState: () => WindowState
57
+ WindowState: () => WindowState,
58
+ WindowStateApplication: () => WindowStateApplication
58
59
  });
59
60
  module.exports = __toCommonJS(src_exports);
60
61
 
@@ -98,10 +99,12 @@ __decorateClass([
98
99
  __decorateClass([
99
100
  (0, import_swagger.ApiProperty)({ type: Object })
100
101
  ], Application.prototype, "custom", 2);
102
+ var WindowStateApplication = class extends (0, import_swagger.OmitType)(Application, ["icon", "isAdminOnly"]) {
103
+ };
101
104
  var WindowState = class {
102
105
  };
103
106
  __decorateClass([
104
- (0, import_swagger.ApiProperty)({ type: [Application] })
107
+ (0, import_swagger.ApiProperty)({ type: [WindowStateApplication] })
105
108
  ], WindowState.prototype, "applications", 2);
106
109
  __decorateClass([
107
110
  (0, import_swagger.ApiProperty)({ type: String })
@@ -345,6 +348,9 @@ var PlayJingleDto = class extends (0, import_swagger7.PickType)(Jingle, ["folder
345
348
  };
346
349
  var BigBrotherItem = class {
347
350
  };
351
+ __decorateClass([
352
+ (0, import_swagger7.ApiProperty)({ type: String, example: "internet-gekkies/mand.mp3", description: "Path of the played jingle" })
353
+ ], BigBrotherItem.prototype, "data", 2);
348
354
  __decorateClass([
349
355
  (0, import_swagger7.ApiProperty)({ type: String, example: "frank@maxserv.com", description: "User's email" })
350
356
  ], BigBrotherItem.prototype, "user", 2);
@@ -409,5 +415,6 @@ var P2000Payload = class {
409
415
  User,
410
416
  VerificationResponseDto,
411
417
  WebsocketAction,
412
- WindowState
418
+ WindowState,
419
+ WindowStateApplication
413
420
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tering-serieuze-types",
3
- "version": "1.22.2",
3
+ "version": "1.23.0",
4
4
  "description": "Tering serieuze types",
5
5
  "author": "Frank",
6
6
  "repository": {
@@ -1,4 +1,4 @@
1
- import { ApiProperty } from '@nestjs/swagger';
1
+ import { ApiProperty, OmitType } from '@nestjs/swagger';
2
2
 
3
3
  export class Application {
4
4
  @ApiProperty({ type: String })
@@ -38,9 +38,11 @@ export class Application {
38
38
  custom: any;
39
39
  }
40
40
 
41
+ export class WindowStateApplication extends OmitType(Application, ['icon', 'isAdminOnly']) {}
42
+
41
43
  export class WindowState {
42
- @ApiProperty({ type: [Application] })
43
- applications: Application[];
44
+ @ApiProperty({ type: [WindowStateApplication] })
45
+ applications: WindowStateApplication[];
44
46
 
45
47
  @ApiProperty({ type: String })
46
48
  activeApplication: string;
package/src/jingle.ts CHANGED
@@ -28,6 +28,9 @@ export class JingleFolder {
28
28
  export class PlayJingleDto extends PickType(Jingle, ['folder', 'file'] as const) {}
29
29
 
30
30
  export class BigBrotherItem {
31
+ @ApiProperty({ type: String, example: 'internet-gekkies/mand.mp3', description: 'Path of the played jingle' })
32
+ data: string;
33
+
31
34
  @ApiProperty({ type: String, example: 'frank@maxserv.com', description: "User's email" })
32
35
  user: string;
33
36