jp.ms.common.modules 1.0.21 → 1.0.23
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/dto/app-screen/app-screen-dialog.dto.d.ts +2 -0
- package/dist/dto/app-screen/app-screen-dialog.dto.js +9 -0
- package/dist/dto/app-screen/app-screen-dialog.dto.js.map +1 -1
- package/dist/dto/app-screen/app-screen-field-list-item.dto.d.ts +7 -0
- package/dist/dto/app-screen/app-screen-field-list-item.dto.js +63 -0
- package/dist/dto/app-screen/app-screen-field-list-item.dto.js.map +1 -0
- package/dist/dto/app-screen/app-screen-field.dto.d.ts +10 -0
- package/dist/dto/app-screen/app-screen-field.dto.js +83 -0
- package/dist/dto/app-screen/app-screen-field.dto.js.map +1 -0
- package/dist/modules/one-table-tournament/one-table-tournament-status-screen.view.js +1 -1
- package/dist/modules/one-table-tournament/one-table-tournament-status-screen.view.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +8 -8
- package/src/dto/app-screen/app-screen-dialog.dto.ts +8 -1
- package/src/dto/app-screen/app-screen-field-list-item.dto.ts +42 -0
- package/src/dto/app-screen/app-screen-field.dto.ts +59 -0
- package/src/modules/one-table-tournament/one-table-tournament-status-screen.view.ts +1 -0
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jp.ms.common.modules",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.23",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"author": "",
|
|
8
8
|
"license": "ISC",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@nestjs/common": "11.1.
|
|
11
|
-
"@nestjs/config": "4.0.
|
|
10
|
+
"@nestjs/common": "^11.1.19",
|
|
11
|
+
"@nestjs/config": "^4.0.4",
|
|
12
12
|
"@nestjs/core": "11.1.0",
|
|
13
13
|
"@nestjs/mongoose": "11.0.4",
|
|
14
14
|
"@nestjs/websockets": "11.1.9",
|
|
15
15
|
"dayjs": "1.11.18",
|
|
16
|
-
"jp.common.models": "1.1.
|
|
17
|
-
"jp.common.utils": "1.0.
|
|
18
|
-
"jp.db.schemas": "2.
|
|
16
|
+
"jp.common.models": "1.1.6",
|
|
17
|
+
"jp.common.utils": "1.0.4",
|
|
18
|
+
"jp.db.schemas": "2.2.2",
|
|
19
19
|
"jp.ms.common.engine": "3.0.8",
|
|
20
20
|
"mongoose": "9.1.5",
|
|
21
21
|
"nestjs-i18n": "10.5.1",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"socket.io": "4.8.1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@nestjs/swagger": "11.
|
|
29
|
+
"@nestjs/swagger": "^11.4.1",
|
|
30
30
|
"@types/express": "^5.0.6",
|
|
31
31
|
"@types/node": "22.15.3",
|
|
32
32
|
"@types/node-schedule": "2.1.8",
|
|
@@ -43,4 +43,4 @@
|
|
|
43
43
|
"src",
|
|
44
44
|
"dist"
|
|
45
45
|
]
|
|
46
|
-
}
|
|
46
|
+
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Expose, Type } from 'class-transformer';
|
|
2
2
|
import { IAppScreenDialog } from 'jp.common.models';
|
|
3
3
|
import { ApiProperty } from '@nestjs/swagger';
|
|
4
|
-
import { IsString } from 'class-validator';
|
|
4
|
+
import { IsArray, IsString, ValidateNested } from 'class-validator';
|
|
5
5
|
|
|
6
6
|
import { AppScreenSectionButtonsDto } from './app-screen-section-buttons.dto';
|
|
7
|
+
import { AppScreenFieldDto } from './app-screen-field.dto';
|
|
7
8
|
|
|
8
9
|
export class AppScreenDialogDto implements IAppScreenDialog {
|
|
9
10
|
@ApiProperty({
|
|
@@ -54,4 +55,10 @@ export class AppScreenDialogDto implements IAppScreenDialog {
|
|
|
54
55
|
@Type(() => AppScreenSectionButtonsDto)
|
|
55
56
|
@Expose()
|
|
56
57
|
buttons: AppScreenSectionButtonsDto;
|
|
58
|
+
|
|
59
|
+
@IsArray()
|
|
60
|
+
@ValidateNested({ each: true })
|
|
61
|
+
@Type(() => AppScreenFieldDto)
|
|
62
|
+
@Expose()
|
|
63
|
+
fields?: Array<AppScreenFieldDto>;
|
|
57
64
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ApiProperty } from '@nestjs/swagger';
|
|
2
|
+
import { Expose, Type } from 'class-transformer';
|
|
3
|
+
import { IsBoolean, IsString } from 'class-validator';
|
|
4
|
+
import { IAppScreenFieldListItem } from 'jp.common.models';
|
|
5
|
+
|
|
6
|
+
export class AppScreenFieldListItemDto implements IAppScreenFieldListItem {
|
|
7
|
+
@ApiProperty({
|
|
8
|
+
description: 'id',
|
|
9
|
+
required: true,
|
|
10
|
+
type: String,
|
|
11
|
+
})
|
|
12
|
+
@Expose()
|
|
13
|
+
@IsString()
|
|
14
|
+
id: string;
|
|
15
|
+
|
|
16
|
+
@ApiProperty({
|
|
17
|
+
description: 'title',
|
|
18
|
+
required: true,
|
|
19
|
+
type: String,
|
|
20
|
+
})
|
|
21
|
+
@Expose()
|
|
22
|
+
@IsString()
|
|
23
|
+
title: string;
|
|
24
|
+
|
|
25
|
+
@ApiProperty({
|
|
26
|
+
description: 'imageUrl',
|
|
27
|
+
required: true,
|
|
28
|
+
type: String,
|
|
29
|
+
})
|
|
30
|
+
@Expose()
|
|
31
|
+
@IsString()
|
|
32
|
+
imageUrl: string;
|
|
33
|
+
|
|
34
|
+
@ApiProperty({
|
|
35
|
+
description: 'disabled',
|
|
36
|
+
required: true,
|
|
37
|
+
type: Boolean,
|
|
38
|
+
})
|
|
39
|
+
@Expose()
|
|
40
|
+
@IsBoolean()
|
|
41
|
+
disabled: boolean;
|
|
42
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { ApiProperty } from '@nestjs/swagger';
|
|
2
|
+
import { Expose, Type } from 'class-transformer';
|
|
3
|
+
import { IsArray, IsString, ValidateNested } from 'class-validator';
|
|
4
|
+
import { IAppScreenField } from 'jp.common.models';
|
|
5
|
+
|
|
6
|
+
import { AppScreenFieldListItemDto } from './app-screen-field-list-item.dto';
|
|
7
|
+
|
|
8
|
+
export class AppScreenFieldDto implements IAppScreenField {
|
|
9
|
+
@ApiProperty({
|
|
10
|
+
description: 'id',
|
|
11
|
+
required: true,
|
|
12
|
+
type: String,
|
|
13
|
+
})
|
|
14
|
+
@Expose()
|
|
15
|
+
@IsString()
|
|
16
|
+
id: string;
|
|
17
|
+
|
|
18
|
+
@ApiProperty({
|
|
19
|
+
description: 'type',
|
|
20
|
+
required: true,
|
|
21
|
+
type: String,
|
|
22
|
+
})
|
|
23
|
+
@Expose()
|
|
24
|
+
@IsString()
|
|
25
|
+
type: string;
|
|
26
|
+
|
|
27
|
+
@ApiProperty({
|
|
28
|
+
description: 'label',
|
|
29
|
+
required: false,
|
|
30
|
+
type: String,
|
|
31
|
+
})
|
|
32
|
+
@Expose()
|
|
33
|
+
@IsString()
|
|
34
|
+
label?: string;
|
|
35
|
+
|
|
36
|
+
@ApiProperty({
|
|
37
|
+
description: 'placeholder',
|
|
38
|
+
required: true,
|
|
39
|
+
type: String,
|
|
40
|
+
})
|
|
41
|
+
@Expose()
|
|
42
|
+
@IsString()
|
|
43
|
+
placeholder?: string;
|
|
44
|
+
|
|
45
|
+
@ApiProperty({
|
|
46
|
+
description: 'value',
|
|
47
|
+
required: true,
|
|
48
|
+
type: String,
|
|
49
|
+
})
|
|
50
|
+
@Expose()
|
|
51
|
+
@IsString()
|
|
52
|
+
value: string;
|
|
53
|
+
|
|
54
|
+
@IsArray()
|
|
55
|
+
@ValidateNested({ each: true })
|
|
56
|
+
@Type(() => AppScreenFieldListItemDto)
|
|
57
|
+
@Expose()
|
|
58
|
+
list?: Array<AppScreenFieldListItemDto>;
|
|
59
|
+
}
|