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 +7 -6
- package/interfaces/mopidy.ts +1 -1
- package/package.json +1 -1
- package/src/application.ts +5 -3
- package/src/authenticator.ts +1 -1
- package/src/index.ts +1 -1
- package/src/user.ts +1 -1
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: [
|
|
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
|
});
|
package/interfaces/mopidy.ts
CHANGED
package/package.json
CHANGED
package/src/application.ts
CHANGED
|
@@ -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: [
|
|
43
|
-
applications:
|
|
44
|
+
@ApiProperty({ type: [WindowStateApplication] })
|
|
45
|
+
applications: WindowStateApplication[];
|
|
44
46
|
|
|
45
47
|
@ApiProperty({ type: String })
|
|
46
48
|
activeApplication: string;
|
package/src/authenticator.ts
CHANGED
package/src/index.ts
CHANGED
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 {
|