tering-serieuze-types 1.22.3 → 1.24.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
@@ -50,11 +50,11 @@ __export(src_exports, {
50
50
  ToggleBoolDto: () => ToggleBoolDto,
51
51
  ToggleableUserProperties: () => ToggleableUserProperties,
52
52
  TokenType: () => TokenType,
53
- Type: () => import_common.Type,
54
53
  User: () => User,
55
54
  VerificationResponseDto: () => VerificationResponseDto,
56
55
  WebsocketAction: () => WebsocketAction,
57
- WindowState: () => WindowState
56
+ WindowState: () => WindowState,
57
+ WindowStateApplication: () => WindowStateApplication
58
58
  });
59
59
  module.exports = __toCommonJS(src_exports);
60
60
 
@@ -98,10 +98,12 @@ __decorateClass([
98
98
  __decorateClass([
99
99
  (0, import_swagger.ApiProperty)({ type: Object })
100
100
  ], Application.prototype, "custom", 2);
101
+ var WindowStateApplication = class extends (0, import_swagger.OmitType)(Application, ["icon", "isAdminOnly"]) {
102
+ };
101
103
  var WindowState = class {
102
104
  };
103
105
  __decorateClass([
104
- (0, import_swagger.ApiProperty)({ type: [Application] })
106
+ (0, import_swagger.ApiProperty)({ type: [WindowStateApplication] })
105
107
  ], WindowState.prototype, "applications", 2);
106
108
  __decorateClass([
107
109
  (0, import_swagger.ApiProperty)({ type: String })
@@ -381,7 +383,6 @@ var DeletePodDto = class extends (0, import_swagger8.PickType)(Pod, ["name"]) {
381
383
  };
382
384
 
383
385
  // src/index.ts
384
- var import_common = require("@nestjs/common");
385
386
  var P2000Payload = class {
386
387
  };
387
388
  // Annotate the CommonJS export names for ESM import in node:
@@ -408,9 +409,9 @@ var P2000Payload = class {
408
409
  ToggleBoolDto,
409
410
  ToggleableUserProperties,
410
411
  TokenType,
411
- Type,
412
412
  User,
413
413
  VerificationResponseDto,
414
414
  WebsocketAction,
415
- WindowState
415
+ WindowState,
416
+ WindowStateApplication
416
417
  });
@@ -1,4 +1,4 @@
1
- import { URLTrack } from './webamp';
1
+ import { type URLTrack } from './webamp';
2
2
 
3
3
  export type PlaybackState = 'playing' | 'paused' | 'stopped';
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tering-serieuze-types",
3
- "version": "1.22.3",
3
+ "version": "1.24.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;
@@ -1,4 +1,4 @@
1
- import {
1
+ import type {
2
2
  AuthenticatorDevice,
3
3
  CredentialDeviceType,
4
4
  PublicKeyCredentialRequestOptionsJSON,
package/src/index.ts CHANGED
@@ -8,7 +8,7 @@ export * from './session';
8
8
  export * from './user';
9
9
 
10
10
  // Prevent 'Inferred type cannot be named' error
11
- export { Type } from '@nestjs/common';
11
+ export type { Type } from '@nestjs/common';
12
12
 
13
13
  export interface Dto {}
14
14
 
package/src/user.ts CHANGED
@@ -2,7 +2,7 @@ import { ApiProperty, PickType } from '@nestjs/swagger';
2
2
  import { IsEmail } from 'class-validator';
3
3
  import { Button } from './button';
4
4
  import { WindowState } from './application';
5
- import { DbAuthenticator } from './authenticator';
5
+ import { type DbAuthenticator } from './authenticator';
6
6
  import { ApiToken, Session } from './session';
7
7
 
8
8
  export class User {