tering-serieuze-types 1.22.3 → 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 })
@@ -412,5 +415,6 @@ var P2000Payload = class {
412
415
  User,
413
416
  VerificationResponseDto,
414
417
  WebsocketAction,
415
- WindowState
418
+ WindowState,
419
+ WindowStateApplication
416
420
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tering-serieuze-types",
3
- "version": "1.22.3",
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;