jp.ms.common.modules 1.0.40 → 1.0.41
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-table/bids-panel-item.dto.d.ts +6 -0
- package/dist/dto/app-table/bids-panel-item.dto.js +52 -0
- package/dist/dto/app-table/bids-panel-item.dto.js.map +1 -0
- package/dist/dto/app-table/bids-panel.dto.d.ts +7 -0
- package/dist/dto/app-table/bids-panel.dto.js +50 -0
- package/dist/dto/app-table/bids-panel.dto.js.map +1 -0
- package/dist/dto/app-table/index.d.ts +2 -0
- package/dist/dto/app-table/index.js +5 -1
- package/dist/dto/app-table/index.js.map +1 -1
- package/dist/dto/games/poker/poker-table.dto.d.ts +2 -1
- package/dist/dto/games/poker/poker-table.dto.js +6 -0
- package/dist/dto/games/poker/poker-table.dto.js.map +1 -1
- package/dist/modules/base-achievements/base-achievements.module.js +3 -3
- package/dist/modules/base-achievements/base-achievements.module.js.map +1 -1
- package/dist/modules/main/main.service.js +1 -1
- package/dist/modules/menu/menu-screen.view.js +1 -1
- package/dist/modules/menu/menu-screen.view.js.map +1 -1
- package/dist/modules/menu/menu.service.js +1 -1
- package/dist/modules/menu/menu.service.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +57 -57
- package/src/dto/app-screen/app-screen-app-bar.dto.ts +36 -36
- package/src/dto/app-screen/app-screen-dialog.dto.ts +64 -64
- package/src/dto/app-screen/app-screen-field-list-item.dto.ts +42 -42
- package/src/dto/app-screen/app-screen-field.dto.ts +59 -59
- package/src/dto/app-screen/app-screen-section-button.dto.ts +60 -60
- package/src/dto/app-screen/app-screen-section-buttons.dto.ts +14 -14
- package/src/dto/app-screen/app-screen-section-image.dto.ts +33 -33
- package/src/dto/app-screen/app-screen-section-list-item.dto.ts +105 -105
- package/src/dto/app-screen/app-screen-section-req.dto.ts +33 -33
- package/src/dto/app-screen/app-screen-section.dto.ts +76 -76
- package/src/dto/app-screen/app-screen.dto.ts +50 -50
- package/src/dto/app-screen/base-app-screen.dto.ts +16 -16
- package/src/dto/app-screen/index.ts +10 -10
- package/src/dto/app-table/bids-panel-item.dto.ts +33 -0
- package/src/dto/app-table/bids-panel.dto.ts +32 -0
- package/src/dto/app-table/card.dto.ts +54 -54
- package/src/dto/app-table/cards-deck.dto.ts +22 -22
- package/src/dto/app-table/cards-pair-slots-item.dto.ts +45 -45
- package/src/dto/app-table/cards-pair-slots.dto.ts +13 -13
- package/src/dto/app-table/cards-panel.dto.ts +48 -48
- package/src/dto/app-table/cards-player.dto.ts +14 -14
- package/src/dto/app-table/cards-slots-item.dto.ts +40 -40
- package/src/dto/app-table/cards-slots.dto.ts +13 -13
- package/src/dto/app-table/index.ts +15 -13
- package/src/dto/app-table/moves-panel-button.dto.ts +24 -24
- package/src/dto/app-table/moves-panel.dto.ts +23 -23
- package/src/dto/app-table/player.dto.ts +69 -69
- package/src/dto/app-table/summary-item.dto.ts +51 -51
- package/src/dto/app-table/summary.dto.ts +13 -13
- package/src/dto/common/find-free-table.dto.ts +3 -3
- package/src/dto/common/index.ts +2 -2
- package/src/dto/common/join-tournament.dto.ts +33 -33
- package/src/dto/common/log.dto.ts +9 -9
- package/src/dto/common/many-tables-tournament-create.dto.ts +125 -125
- package/src/dto/common/many-tables-tournament-update.dto.ts +3 -3
- package/src/dto/common/player-check-state.dto.ts +33 -33
- package/src/dto/common/player-connected.dto.ts +58 -58
- package/src/dto/games/fool/fool-player.dto.ts +3 -3
- package/src/dto/games/fool/fool-table.dto.ts +81 -81
- package/src/dto/games/index.ts +2 -2
- package/src/dto/games/poker/poker-player.dto.ts +3 -3
- package/src/dto/games/poker/poker-table.dto.ts +81 -76
- package/src/dto/index.ts +4 -4
- package/src/exception/error-code.enum.ts +4 -4
- package/src/exception/global-exception-filter.ts +53 -53
- package/src/exception/http-exception-wth-snackbar.ts +27 -27
- package/src/exception/index.ts +4 -4
- package/src/exception/not-enough-money-for-purchase.exception.ts +14 -14
- package/src/exception/not-found-free-room-for-fast-game.exception.ts +14 -14
- package/src/index.ts +4 -4
- package/src/modules/anti-freeze-system/anti-freeze-system.constants.ts +1 -1
- package/src/modules/anti-freeze-system/anti-freeze-system.interfaces.ts +20 -20
- package/src/modules/anti-freeze-system/anti-freeze-system.module.ts +55 -55
- package/src/modules/anti-freeze-system/anti-freeze-system.service.ts +105 -105
- package/src/modules/anti-freeze-system/index.ts +1 -1
- package/src/modules/base-achievements/base-achievements.module.ts +322 -322
- package/src/modules/base-achievements/index.ts +1 -1
- package/src/modules/event-bus/events-bus.app.subscribe.service.ts +20 -20
- package/src/modules/event-bus/events-bus.main-tables.subscribe.service.ts +34 -34
- package/src/modules/event-bus/events-bus.many-tables-tournament.subscribe.service.ts +6 -6
- package/src/modules/event-bus/events-bus.module.ts +23 -23
- package/src/modules/event-bus/events-bus.one-table-tournament.subscribe.service.ts +6 -6
- package/src/modules/event-bus/events-bus.tournament.subscribe.service.ts +18 -18
- package/src/modules/event-bus/index.ts +5 -5
- package/src/modules/events/events.constants.ts +1 -1
- package/src/modules/events/events.gateway.ts +70 -70
- package/src/modules/events/events.interfaces.ts +17 -17
- package/src/modules/events/events.module.ts +32 -32
- package/src/modules/events/index.ts +1 -1
- package/src/modules/index.ts +27 -27
- package/src/modules/logger/index.ts +2 -2
- package/src/modules/logger/jp-logger.module.ts +10 -10
- package/src/modules/logger/jp-logger.service.ts +38 -38
- package/src/modules/main/index.ts +1 -1
- package/src/modules/main/main-tables-list-screen.view.ts +275 -275
- package/src/modules/main/main.constants.ts +1 -1
- package/src/modules/main/main.controller.ts +72 -72
- package/src/modules/main/main.interfaces.ts +17 -17
- package/src/modules/main/main.module.ts +73 -73
- package/src/modules/main/main.service.ts +183 -183
- package/src/modules/many-tables-tournament/index.ts +1 -1
- package/src/modules/many-tables-tournament/many-tables-tournament-status-screen.view.ts +143 -143
- package/src/modules/many-tables-tournament/many-tables-tournament-tables-list-screen.view.ts +63 -63
- package/src/modules/many-tables-tournament/many-tables-tournament.constants.ts +3 -3
- package/src/modules/many-tables-tournament/many-tables-tournament.controller.ts +151 -151
- package/src/modules/many-tables-tournament/many-tables-tournament.interfaces.ts +20 -20
- package/src/modules/many-tables-tournament/many-tables-tournament.module.ts +80 -80
- package/src/modules/many-tables-tournament/many-tables-tournament.service.ts +208 -208
- package/src/modules/many-tables-tournament-rooms-manager/index.ts +2 -2
- package/src/modules/many-tables-tournament-rooms-manager/many-tables-tournament-rooms-manager.constants.ts +3 -3
- package/src/modules/many-tables-tournament-rooms-manager/many-tables-tournament-rooms-manager.interfaces.ts +37 -37
- package/src/modules/many-tables-tournament-rooms-manager/many-tables-tournament-rooms-manager.module.ts +84 -84
- package/src/modules/many-tables-tournament-rooms-manager/many-tables-tournament-rooms-manager.service.ts +331 -331
- package/src/modules/menu/index.ts +1 -1
- package/src/modules/menu/menu-screen.view.ts +71 -71
- package/src/modules/menu/menu.constants.ts +1 -1
- package/src/modules/menu/menu.controller.ts +16 -16
- package/src/modules/menu/menu.interfaces.ts +17 -17
- package/src/modules/menu/menu.module.ts +39 -39
- package/src/modules/menu/menu.service.ts +39 -35
- package/src/modules/one-table-tournament/index.ts +1 -1
- package/src/modules/one-table-tournament/one-table-tournament-status-screen.view.ts +166 -166
- package/src/modules/one-table-tournament/one-table-tournament.constants.ts +3 -3
- package/src/modules/one-table-tournament/one-table-tournament.controller.ts +104 -104
- package/src/modules/one-table-tournament/one-table-tournament.interfaces.ts +20 -20
- package/src/modules/one-table-tournament/one-table-tournament.module.ts +76 -76
- package/src/modules/one-table-tournament/one-table-tournament.service.ts +146 -146
- package/src/modules/one-table-tournament-rooms-manager/index.ts +2 -2
- package/src/modules/one-table-tournament-rooms-manager/one-table-tournament-rooms-manager.constants.ts +3 -3
- package/src/modules/one-table-tournament-rooms-manager/one-table-tournament-rooms-manager.interfaces.ts +31 -31
- package/src/modules/one-table-tournament-rooms-manager/one-table-tournament-rooms-manager.module.ts +66 -66
- package/src/modules/one-table-tournament-rooms-manager/one-table-tournament-rooms-manager.service.ts +220 -220
- package/src/modules/players-manager/index.ts +2 -2
- package/src/modules/players-manager/players-manager.module.ts +9 -9
- package/src/modules/players-manager/players-manager.service.ts +27 -27
- package/src/modules/simple-rooms/index.ts +1 -1
- package/src/modules/simple-rooms/simple-rooms.constants.ts +1 -1
- package/src/modules/simple-rooms/simple-rooms.controller.ts +63 -63
- package/src/modules/simple-rooms/simple-rooms.interfaces.ts +20 -20
- package/src/modules/simple-rooms/simple-rooms.module.ts +39 -39
- package/src/modules/simple-rooms/simple-rooms.service.ts +95 -95
- package/src/modules/simple-rooms-manager/index.ts +2 -2
- package/src/modules/simple-rooms-manager/simple-rooms-manager.constants.ts +3 -3
- package/src/modules/simple-rooms-manager/simple-rooms-manager.interfaces.ts +26 -26
- package/src/modules/simple-rooms-manager/simple-rooms-manager.module.ts +60 -60
- package/src/modules/simple-rooms-manager/simple-rooms-manager.service.ts +190 -190
- package/src/modules/support/dump.service.ts +11 -11
- package/src/modules/support/index.ts +1 -1
- package/src/modules/support/metric.service.ts +41 -41
- package/src/modules/support/support.constants.ts +1 -1
- package/src/modules/support/support.controller.ts +79 -79
- package/src/modules/support/support.interfaces.ts +16 -16
- package/src/modules/support/support.module.ts +35 -35
- package/src/modules/support/support.service.ts +27 -27
- package/src/utils/date.ts +7 -7
- package/src/utils/game-table-result.ts +129 -129
- package/src/views/index.ts +5 -5
- package/src/views/many-tables-tournament-conifrm-exit-dialog.view.ts +37 -37
- package/src/views/one-table-tournament-conifrm-exit-dialog.view.ts +37 -37
- package/src/views/simple-room-conifrm-exit-dialog.view.ts +37 -37
- package/src/views/table-summary.view.ts +104 -104
- package/src/views/tournament-buy-ticket-dialog.view.ts +34 -34
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { ApiProperty } from '@nestjs/swagger';
|
|
2
|
-
import { Expose } from 'class-transformer';
|
|
3
|
-
import { IsString } from 'class-validator';
|
|
4
|
-
import { IAppScreenSectionImage } from 'jp.common.models';
|
|
5
|
-
|
|
6
|
-
export class AppScreenSectionImageDto implements IAppScreenSectionImage {
|
|
7
|
-
@ApiProperty({
|
|
8
|
-
description: 'icon',
|
|
9
|
-
required: false,
|
|
10
|
-
type: String,
|
|
11
|
-
})
|
|
12
|
-
@Expose()
|
|
13
|
-
@IsString()
|
|
14
|
-
icon?: string;
|
|
15
|
-
|
|
16
|
-
@ApiProperty({
|
|
17
|
-
description: 'iconText',
|
|
18
|
-
required: false,
|
|
19
|
-
type: String,
|
|
20
|
-
})
|
|
21
|
-
@Expose()
|
|
22
|
-
@IsString()
|
|
23
|
-
iconText?: string;
|
|
24
|
-
|
|
25
|
-
@ApiProperty({
|
|
26
|
-
description: 'imageUrl',
|
|
27
|
-
required: false,
|
|
28
|
-
type: String,
|
|
29
|
-
})
|
|
30
|
-
@Expose()
|
|
31
|
-
@IsString()
|
|
32
|
-
imageUrl?: string;
|
|
33
|
-
}
|
|
1
|
+
import { ApiProperty } from '@nestjs/swagger';
|
|
2
|
+
import { Expose } from 'class-transformer';
|
|
3
|
+
import { IsString } from 'class-validator';
|
|
4
|
+
import { IAppScreenSectionImage } from 'jp.common.models';
|
|
5
|
+
|
|
6
|
+
export class AppScreenSectionImageDto implements IAppScreenSectionImage {
|
|
7
|
+
@ApiProperty({
|
|
8
|
+
description: 'icon',
|
|
9
|
+
required: false,
|
|
10
|
+
type: String,
|
|
11
|
+
})
|
|
12
|
+
@Expose()
|
|
13
|
+
@IsString()
|
|
14
|
+
icon?: string;
|
|
15
|
+
|
|
16
|
+
@ApiProperty({
|
|
17
|
+
description: 'iconText',
|
|
18
|
+
required: false,
|
|
19
|
+
type: String,
|
|
20
|
+
})
|
|
21
|
+
@Expose()
|
|
22
|
+
@IsString()
|
|
23
|
+
iconText?: string;
|
|
24
|
+
|
|
25
|
+
@ApiProperty({
|
|
26
|
+
description: 'imageUrl',
|
|
27
|
+
required: false,
|
|
28
|
+
type: String,
|
|
29
|
+
})
|
|
30
|
+
@Expose()
|
|
31
|
+
@IsString()
|
|
32
|
+
imageUrl?: string;
|
|
33
|
+
}
|
|
@@ -1,105 +1,105 @@
|
|
|
1
|
-
import { ApiProperty } from '@nestjs/swagger';
|
|
2
|
-
import { Expose, Type } from 'class-transformer';
|
|
3
|
-
import { IsBoolean, IsString, ValidateNested } from 'class-validator';
|
|
4
|
-
import { IAppScreenSectionListItem } from 'jp.common.models';
|
|
5
|
-
|
|
6
|
-
import { AppScreenSectionImageDto } from './app-screen-section-image.dto';
|
|
7
|
-
import { AppScreenSectionButtonsDto } from './app-screen-section-buttons.dto';
|
|
8
|
-
|
|
9
|
-
export class AppScreenSectionListItemDto implements IAppScreenSectionListItem {
|
|
10
|
-
@ApiProperty({
|
|
11
|
-
description: 'id',
|
|
12
|
-
required: true,
|
|
13
|
-
type: String,
|
|
14
|
-
})
|
|
15
|
-
@Expose()
|
|
16
|
-
@IsString()
|
|
17
|
-
id: string;
|
|
18
|
-
|
|
19
|
-
@ApiProperty({
|
|
20
|
-
description: 'type',
|
|
21
|
-
required: true,
|
|
22
|
-
type: String,
|
|
23
|
-
})
|
|
24
|
-
@Expose()
|
|
25
|
-
@IsString()
|
|
26
|
-
type: string;
|
|
27
|
-
|
|
28
|
-
@ApiProperty({
|
|
29
|
-
description: 'title',
|
|
30
|
-
required: true,
|
|
31
|
-
type: String,
|
|
32
|
-
})
|
|
33
|
-
@Expose()
|
|
34
|
-
@IsString()
|
|
35
|
-
title: string;
|
|
36
|
-
|
|
37
|
-
@ApiProperty({
|
|
38
|
-
description: 'subtitle',
|
|
39
|
-
required: true,
|
|
40
|
-
type: String,
|
|
41
|
-
})
|
|
42
|
-
@Expose()
|
|
43
|
-
@IsString()
|
|
44
|
-
subtitle: string;
|
|
45
|
-
|
|
46
|
-
@ApiProperty({
|
|
47
|
-
description: 'buttonId',
|
|
48
|
-
required: true,
|
|
49
|
-
type: String,
|
|
50
|
-
})
|
|
51
|
-
@Expose()
|
|
52
|
-
@IsString()
|
|
53
|
-
buttonId: string;
|
|
54
|
-
|
|
55
|
-
@ApiProperty({
|
|
56
|
-
description: 'url',
|
|
57
|
-
required: false,
|
|
58
|
-
type: String,
|
|
59
|
-
})
|
|
60
|
-
@Expose()
|
|
61
|
-
@IsString()
|
|
62
|
-
url?: string;
|
|
63
|
-
|
|
64
|
-
@ApiProperty({
|
|
65
|
-
description: 'active',
|
|
66
|
-
required: false,
|
|
67
|
-
type: Boolean,
|
|
68
|
-
})
|
|
69
|
-
@Expose()
|
|
70
|
-
@IsBoolean()
|
|
71
|
-
active: boolean;
|
|
72
|
-
|
|
73
|
-
@ApiProperty({
|
|
74
|
-
description: 'hasChevron',
|
|
75
|
-
required: false,
|
|
76
|
-
type: Boolean,
|
|
77
|
-
})
|
|
78
|
-
@Expose()
|
|
79
|
-
@IsBoolean()
|
|
80
|
-
hasChevron: boolean;
|
|
81
|
-
|
|
82
|
-
@ValidateNested()
|
|
83
|
-
@Type(() => AppScreenSectionImageDto)
|
|
84
|
-
@Expose()
|
|
85
|
-
image?: AppScreenSectionImageDto;
|
|
86
|
-
|
|
87
|
-
@ValidateNested()
|
|
88
|
-
@Type(() => AppScreenSectionImageDto)
|
|
89
|
-
@Expose()
|
|
90
|
-
extendedImage?: AppScreenSectionImageDto;
|
|
91
|
-
|
|
92
|
-
@ValidateNested()
|
|
93
|
-
@Type(() => AppScreenSectionButtonsDto)
|
|
94
|
-
@Expose()
|
|
95
|
-
extendedButtons: AppScreenSectionButtonsDto;
|
|
96
|
-
|
|
97
|
-
@ApiProperty({
|
|
98
|
-
description: 'extendedDescription',
|
|
99
|
-
required: false,
|
|
100
|
-
type: String,
|
|
101
|
-
})
|
|
102
|
-
@Expose()
|
|
103
|
-
@IsString()
|
|
104
|
-
extendedDescription?: string;
|
|
105
|
-
}
|
|
1
|
+
import { ApiProperty } from '@nestjs/swagger';
|
|
2
|
+
import { Expose, Type } from 'class-transformer';
|
|
3
|
+
import { IsBoolean, IsString, ValidateNested } from 'class-validator';
|
|
4
|
+
import { IAppScreenSectionListItem } from 'jp.common.models';
|
|
5
|
+
|
|
6
|
+
import { AppScreenSectionImageDto } from './app-screen-section-image.dto';
|
|
7
|
+
import { AppScreenSectionButtonsDto } from './app-screen-section-buttons.dto';
|
|
8
|
+
|
|
9
|
+
export class AppScreenSectionListItemDto implements IAppScreenSectionListItem {
|
|
10
|
+
@ApiProperty({
|
|
11
|
+
description: 'id',
|
|
12
|
+
required: true,
|
|
13
|
+
type: String,
|
|
14
|
+
})
|
|
15
|
+
@Expose()
|
|
16
|
+
@IsString()
|
|
17
|
+
id: string;
|
|
18
|
+
|
|
19
|
+
@ApiProperty({
|
|
20
|
+
description: 'type',
|
|
21
|
+
required: true,
|
|
22
|
+
type: String,
|
|
23
|
+
})
|
|
24
|
+
@Expose()
|
|
25
|
+
@IsString()
|
|
26
|
+
type: string;
|
|
27
|
+
|
|
28
|
+
@ApiProperty({
|
|
29
|
+
description: 'title',
|
|
30
|
+
required: true,
|
|
31
|
+
type: String,
|
|
32
|
+
})
|
|
33
|
+
@Expose()
|
|
34
|
+
@IsString()
|
|
35
|
+
title: string;
|
|
36
|
+
|
|
37
|
+
@ApiProperty({
|
|
38
|
+
description: 'subtitle',
|
|
39
|
+
required: true,
|
|
40
|
+
type: String,
|
|
41
|
+
})
|
|
42
|
+
@Expose()
|
|
43
|
+
@IsString()
|
|
44
|
+
subtitle: string;
|
|
45
|
+
|
|
46
|
+
@ApiProperty({
|
|
47
|
+
description: 'buttonId',
|
|
48
|
+
required: true,
|
|
49
|
+
type: String,
|
|
50
|
+
})
|
|
51
|
+
@Expose()
|
|
52
|
+
@IsString()
|
|
53
|
+
buttonId: string;
|
|
54
|
+
|
|
55
|
+
@ApiProperty({
|
|
56
|
+
description: 'url',
|
|
57
|
+
required: false,
|
|
58
|
+
type: String,
|
|
59
|
+
})
|
|
60
|
+
@Expose()
|
|
61
|
+
@IsString()
|
|
62
|
+
url?: string;
|
|
63
|
+
|
|
64
|
+
@ApiProperty({
|
|
65
|
+
description: 'active',
|
|
66
|
+
required: false,
|
|
67
|
+
type: Boolean,
|
|
68
|
+
})
|
|
69
|
+
@Expose()
|
|
70
|
+
@IsBoolean()
|
|
71
|
+
active: boolean;
|
|
72
|
+
|
|
73
|
+
@ApiProperty({
|
|
74
|
+
description: 'hasChevron',
|
|
75
|
+
required: false,
|
|
76
|
+
type: Boolean,
|
|
77
|
+
})
|
|
78
|
+
@Expose()
|
|
79
|
+
@IsBoolean()
|
|
80
|
+
hasChevron: boolean;
|
|
81
|
+
|
|
82
|
+
@ValidateNested()
|
|
83
|
+
@Type(() => AppScreenSectionImageDto)
|
|
84
|
+
@Expose()
|
|
85
|
+
image?: AppScreenSectionImageDto;
|
|
86
|
+
|
|
87
|
+
@ValidateNested()
|
|
88
|
+
@Type(() => AppScreenSectionImageDto)
|
|
89
|
+
@Expose()
|
|
90
|
+
extendedImage?: AppScreenSectionImageDto;
|
|
91
|
+
|
|
92
|
+
@ValidateNested()
|
|
93
|
+
@Type(() => AppScreenSectionButtonsDto)
|
|
94
|
+
@Expose()
|
|
95
|
+
extendedButtons: AppScreenSectionButtonsDto;
|
|
96
|
+
|
|
97
|
+
@ApiProperty({
|
|
98
|
+
description: 'extendedDescription',
|
|
99
|
+
required: false,
|
|
100
|
+
type: String,
|
|
101
|
+
})
|
|
102
|
+
@Expose()
|
|
103
|
+
@IsString()
|
|
104
|
+
extendedDescription?: string;
|
|
105
|
+
}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { ApiProperty } from '@nestjs/swagger';
|
|
2
|
-
import { Expose } from 'class-transformer';
|
|
3
|
-
import { IsString } from 'class-validator';
|
|
4
|
-
import { IAppScreenSectionReq } from 'jp.common.models';
|
|
5
|
-
|
|
6
|
-
export class AppScreenSectionReqDto implements IAppScreenSectionReq {
|
|
7
|
-
@ApiProperty({
|
|
8
|
-
description: 'id',
|
|
9
|
-
required: true,
|
|
10
|
-
type: String,
|
|
11
|
-
})
|
|
12
|
-
@Expose()
|
|
13
|
-
@IsString()
|
|
14
|
-
id: string;
|
|
15
|
-
|
|
16
|
-
@ApiProperty({
|
|
17
|
-
description: 'label',
|
|
18
|
-
required: true,
|
|
19
|
-
type: String,
|
|
20
|
-
})
|
|
21
|
-
@Expose()
|
|
22
|
-
@IsString()
|
|
23
|
-
label: string;
|
|
24
|
-
|
|
25
|
-
@ApiProperty({
|
|
26
|
-
description: 'value',
|
|
27
|
-
required: true,
|
|
28
|
-
type: String,
|
|
29
|
-
})
|
|
30
|
-
@Expose()
|
|
31
|
-
@IsString()
|
|
32
|
-
value: string;
|
|
33
|
-
}
|
|
1
|
+
import { ApiProperty } from '@nestjs/swagger';
|
|
2
|
+
import { Expose } from 'class-transformer';
|
|
3
|
+
import { IsString } from 'class-validator';
|
|
4
|
+
import { IAppScreenSectionReq } from 'jp.common.models';
|
|
5
|
+
|
|
6
|
+
export class AppScreenSectionReqDto implements IAppScreenSectionReq {
|
|
7
|
+
@ApiProperty({
|
|
8
|
+
description: 'id',
|
|
9
|
+
required: true,
|
|
10
|
+
type: String,
|
|
11
|
+
})
|
|
12
|
+
@Expose()
|
|
13
|
+
@IsString()
|
|
14
|
+
id: string;
|
|
15
|
+
|
|
16
|
+
@ApiProperty({
|
|
17
|
+
description: 'label',
|
|
18
|
+
required: true,
|
|
19
|
+
type: String,
|
|
20
|
+
})
|
|
21
|
+
@Expose()
|
|
22
|
+
@IsString()
|
|
23
|
+
label: string;
|
|
24
|
+
|
|
25
|
+
@ApiProperty({
|
|
26
|
+
description: 'value',
|
|
27
|
+
required: true,
|
|
28
|
+
type: String,
|
|
29
|
+
})
|
|
30
|
+
@Expose()
|
|
31
|
+
@IsString()
|
|
32
|
+
value: string;
|
|
33
|
+
}
|
|
@@ -1,76 +1,76 @@
|
|
|
1
|
-
import { ApiProperty } from '@nestjs/swagger';
|
|
2
|
-
import { Expose, Type } from 'class-transformer';
|
|
3
|
-
import { IsArray, IsString, ValidateNested } from 'class-validator';
|
|
4
|
-
import { IAppScreenSection } from 'jp.common.models';
|
|
5
|
-
|
|
6
|
-
import { AppScreenSectionButtonsDto } from './app-screen-section-buttons.dto';
|
|
7
|
-
import { AppScreenSectionListItemDto } from './app-screen-section-list-item.dto';
|
|
8
|
-
import { AppScreenSectionReqDto } from './app-screen-section-req.dto';
|
|
9
|
-
import { AppScreenSectionImageDto } from './app-screen-section-image.dto';
|
|
10
|
-
|
|
11
|
-
export class AppScreenSectionDto implements IAppScreenSection {
|
|
12
|
-
@ApiProperty({
|
|
13
|
-
description: 'id',
|
|
14
|
-
required: true,
|
|
15
|
-
type: String,
|
|
16
|
-
})
|
|
17
|
-
@Expose()
|
|
18
|
-
@IsString()
|
|
19
|
-
id: string;
|
|
20
|
-
|
|
21
|
-
@ApiProperty({
|
|
22
|
-
description: 'type',
|
|
23
|
-
required: true,
|
|
24
|
-
type: String,
|
|
25
|
-
})
|
|
26
|
-
@Expose()
|
|
27
|
-
@IsString()
|
|
28
|
-
type: string;
|
|
29
|
-
|
|
30
|
-
@ApiProperty({
|
|
31
|
-
description: 'text',
|
|
32
|
-
required: false,
|
|
33
|
-
type: String,
|
|
34
|
-
})
|
|
35
|
-
@Expose()
|
|
36
|
-
@IsString()
|
|
37
|
-
text?: string;
|
|
38
|
-
|
|
39
|
-
@ApiProperty({
|
|
40
|
-
description: 'value',
|
|
41
|
-
required: false,
|
|
42
|
-
type: String,
|
|
43
|
-
})
|
|
44
|
-
@Expose()
|
|
45
|
-
@IsString()
|
|
46
|
-
value?: string;
|
|
47
|
-
|
|
48
|
-
@ApiProperty({
|
|
49
|
-
description: 'description',
|
|
50
|
-
required: false,
|
|
51
|
-
type: String,
|
|
52
|
-
})
|
|
53
|
-
@Expose()
|
|
54
|
-
@IsString()
|
|
55
|
-
description?: string;
|
|
56
|
-
|
|
57
|
-
@Type(() => AppScreenSectionButtonsDto)
|
|
58
|
-
@Expose()
|
|
59
|
-
buttons?: AppScreenSectionButtonsDto;
|
|
60
|
-
|
|
61
|
-
@Type(() => AppScreenSectionImageDto)
|
|
62
|
-
@Expose()
|
|
63
|
-
image?: AppScreenSectionImageDto;
|
|
64
|
-
|
|
65
|
-
@IsArray()
|
|
66
|
-
@ValidateNested({ each: true })
|
|
67
|
-
@Type(() => AppScreenSectionListItemDto)
|
|
68
|
-
@Expose()
|
|
69
|
-
list: Array<AppScreenSectionListItemDto>;
|
|
70
|
-
|
|
71
|
-
@IsArray()
|
|
72
|
-
@ValidateNested({ each: true })
|
|
73
|
-
@Type(() => AppScreenSectionReqDto)
|
|
74
|
-
@Expose()
|
|
75
|
-
reqs: Array<AppScreenSectionReqDto>;
|
|
76
|
-
}
|
|
1
|
+
import { ApiProperty } from '@nestjs/swagger';
|
|
2
|
+
import { Expose, Type } from 'class-transformer';
|
|
3
|
+
import { IsArray, IsString, ValidateNested } from 'class-validator';
|
|
4
|
+
import { IAppScreenSection } from 'jp.common.models';
|
|
5
|
+
|
|
6
|
+
import { AppScreenSectionButtonsDto } from './app-screen-section-buttons.dto';
|
|
7
|
+
import { AppScreenSectionListItemDto } from './app-screen-section-list-item.dto';
|
|
8
|
+
import { AppScreenSectionReqDto } from './app-screen-section-req.dto';
|
|
9
|
+
import { AppScreenSectionImageDto } from './app-screen-section-image.dto';
|
|
10
|
+
|
|
11
|
+
export class AppScreenSectionDto implements IAppScreenSection {
|
|
12
|
+
@ApiProperty({
|
|
13
|
+
description: 'id',
|
|
14
|
+
required: true,
|
|
15
|
+
type: String,
|
|
16
|
+
})
|
|
17
|
+
@Expose()
|
|
18
|
+
@IsString()
|
|
19
|
+
id: string;
|
|
20
|
+
|
|
21
|
+
@ApiProperty({
|
|
22
|
+
description: 'type',
|
|
23
|
+
required: true,
|
|
24
|
+
type: String,
|
|
25
|
+
})
|
|
26
|
+
@Expose()
|
|
27
|
+
@IsString()
|
|
28
|
+
type: string;
|
|
29
|
+
|
|
30
|
+
@ApiProperty({
|
|
31
|
+
description: 'text',
|
|
32
|
+
required: false,
|
|
33
|
+
type: String,
|
|
34
|
+
})
|
|
35
|
+
@Expose()
|
|
36
|
+
@IsString()
|
|
37
|
+
text?: string;
|
|
38
|
+
|
|
39
|
+
@ApiProperty({
|
|
40
|
+
description: 'value',
|
|
41
|
+
required: false,
|
|
42
|
+
type: String,
|
|
43
|
+
})
|
|
44
|
+
@Expose()
|
|
45
|
+
@IsString()
|
|
46
|
+
value?: string;
|
|
47
|
+
|
|
48
|
+
@ApiProperty({
|
|
49
|
+
description: 'description',
|
|
50
|
+
required: false,
|
|
51
|
+
type: String,
|
|
52
|
+
})
|
|
53
|
+
@Expose()
|
|
54
|
+
@IsString()
|
|
55
|
+
description?: string;
|
|
56
|
+
|
|
57
|
+
@Type(() => AppScreenSectionButtonsDto)
|
|
58
|
+
@Expose()
|
|
59
|
+
buttons?: AppScreenSectionButtonsDto;
|
|
60
|
+
|
|
61
|
+
@Type(() => AppScreenSectionImageDto)
|
|
62
|
+
@Expose()
|
|
63
|
+
image?: AppScreenSectionImageDto;
|
|
64
|
+
|
|
65
|
+
@IsArray()
|
|
66
|
+
@ValidateNested({ each: true })
|
|
67
|
+
@Type(() => AppScreenSectionListItemDto)
|
|
68
|
+
@Expose()
|
|
69
|
+
list: Array<AppScreenSectionListItemDto>;
|
|
70
|
+
|
|
71
|
+
@IsArray()
|
|
72
|
+
@ValidateNested({ each: true })
|
|
73
|
+
@Type(() => AppScreenSectionReqDto)
|
|
74
|
+
@Expose()
|
|
75
|
+
reqs: Array<AppScreenSectionReqDto>;
|
|
76
|
+
}
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import { ApiProperty } from '@nestjs/swagger';
|
|
2
|
-
import { Expose, plainToInstance, Type } from 'class-transformer';
|
|
3
|
-
import { IsArray, IsString, ValidateNested } from 'class-validator';
|
|
4
|
-
import { IAppScreen } from 'jp.common.models';
|
|
5
|
-
|
|
6
|
-
import { AppScreenSectionDto } from './app-screen-section.dto';
|
|
7
|
-
import { AppScreenAppBarDto } from './app-screen-app-bar.dto';
|
|
8
|
-
import { AppScreenDialogDto } from './app-screen-dialog.dto';
|
|
9
|
-
|
|
10
|
-
export class AppScreenDto implements IAppScreen {
|
|
11
|
-
@ApiProperty({
|
|
12
|
-
description: 'ID',
|
|
13
|
-
required: true,
|
|
14
|
-
type: String,
|
|
15
|
-
})
|
|
16
|
-
@Expose()
|
|
17
|
-
@IsString()
|
|
18
|
-
id: string;
|
|
19
|
-
|
|
20
|
-
@ApiProperty({
|
|
21
|
-
description: 'type',
|
|
22
|
-
required: true,
|
|
23
|
-
type: String,
|
|
24
|
-
})
|
|
25
|
-
@Expose()
|
|
26
|
-
@IsString()
|
|
27
|
-
type: string;
|
|
28
|
-
|
|
29
|
-
@IsArray()
|
|
30
|
-
@ValidateNested({ each: true })
|
|
31
|
-
@Type(() => AppScreenSectionDto)
|
|
32
|
-
@Expose()
|
|
33
|
-
sections: Array<AppScreenSectionDto>;
|
|
34
|
-
|
|
35
|
-
@IsArray()
|
|
36
|
-
@ValidateNested({ each: true })
|
|
37
|
-
@Type(() => AppScreenDialogDto)
|
|
38
|
-
@Expose()
|
|
39
|
-
dialogs?: Array<AppScreenDialogDto>;
|
|
40
|
-
|
|
41
|
-
@Type(() => AppScreenAppBarDto)
|
|
42
|
-
@Expose()
|
|
43
|
-
appBar?: AppScreenAppBarDto;
|
|
44
|
-
|
|
45
|
-
constructor(screen: IAppScreen) {
|
|
46
|
-
return plainToInstance(AppScreenDto, screen, {
|
|
47
|
-
excludeExtraneousValues: true,
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
}
|
|
1
|
+
import { ApiProperty } from '@nestjs/swagger';
|
|
2
|
+
import { Expose, plainToInstance, Type } from 'class-transformer';
|
|
3
|
+
import { IsArray, IsString, ValidateNested } from 'class-validator';
|
|
4
|
+
import { IAppScreen } from 'jp.common.models';
|
|
5
|
+
|
|
6
|
+
import { AppScreenSectionDto } from './app-screen-section.dto';
|
|
7
|
+
import { AppScreenAppBarDto } from './app-screen-app-bar.dto';
|
|
8
|
+
import { AppScreenDialogDto } from './app-screen-dialog.dto';
|
|
9
|
+
|
|
10
|
+
export class AppScreenDto implements IAppScreen {
|
|
11
|
+
@ApiProperty({
|
|
12
|
+
description: 'ID',
|
|
13
|
+
required: true,
|
|
14
|
+
type: String,
|
|
15
|
+
})
|
|
16
|
+
@Expose()
|
|
17
|
+
@IsString()
|
|
18
|
+
id: string;
|
|
19
|
+
|
|
20
|
+
@ApiProperty({
|
|
21
|
+
description: 'type',
|
|
22
|
+
required: true,
|
|
23
|
+
type: String,
|
|
24
|
+
})
|
|
25
|
+
@Expose()
|
|
26
|
+
@IsString()
|
|
27
|
+
type: string;
|
|
28
|
+
|
|
29
|
+
@IsArray()
|
|
30
|
+
@ValidateNested({ each: true })
|
|
31
|
+
@Type(() => AppScreenSectionDto)
|
|
32
|
+
@Expose()
|
|
33
|
+
sections: Array<AppScreenSectionDto>;
|
|
34
|
+
|
|
35
|
+
@IsArray()
|
|
36
|
+
@ValidateNested({ each: true })
|
|
37
|
+
@Type(() => AppScreenDialogDto)
|
|
38
|
+
@Expose()
|
|
39
|
+
dialogs?: Array<AppScreenDialogDto>;
|
|
40
|
+
|
|
41
|
+
@Type(() => AppScreenAppBarDto)
|
|
42
|
+
@Expose()
|
|
43
|
+
appBar?: AppScreenAppBarDto;
|
|
44
|
+
|
|
45
|
+
constructor(screen: IAppScreen) {
|
|
46
|
+
return plainToInstance(AppScreenDto, screen, {
|
|
47
|
+
excludeExtraneousValues: true,
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { Expose, plainToInstance, Type } from 'class-transformer';
|
|
2
|
-
import { IBaseAppScreen } from 'jp.common.models';
|
|
3
|
-
|
|
4
|
-
import { AppScreenDto } from './app-screen.dto';
|
|
5
|
-
|
|
6
|
-
export class BaseAppScreenDto implements IBaseAppScreen {
|
|
7
|
-
@Type(() => AppScreenDto)
|
|
8
|
-
@Expose()
|
|
9
|
-
screen: AppScreenDto;
|
|
10
|
-
|
|
11
|
-
constructor(screen: IBaseAppScreen) {
|
|
12
|
-
return plainToInstance(BaseAppScreenDto, screen, {
|
|
13
|
-
excludeExtraneousValues: true,
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
}
|
|
1
|
+
import { Expose, plainToInstance, Type } from 'class-transformer';
|
|
2
|
+
import { IBaseAppScreen } from 'jp.common.models';
|
|
3
|
+
|
|
4
|
+
import { AppScreenDto } from './app-screen.dto';
|
|
5
|
+
|
|
6
|
+
export class BaseAppScreenDto implements IBaseAppScreen {
|
|
7
|
+
@Type(() => AppScreenDto)
|
|
8
|
+
@Expose()
|
|
9
|
+
screen: AppScreenDto;
|
|
10
|
+
|
|
11
|
+
constructor(screen: IBaseAppScreen) {
|
|
12
|
+
return plainToInstance(BaseAppScreenDto, screen, {
|
|
13
|
+
excludeExtraneousValues: true,
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { BaseAppScreenDto } from './base-app-screen.dto';
|
|
2
|
-
export { AppScreenDto } from './app-screen.dto';
|
|
3
|
-
export { AppScreenAppBarDto } from './app-screen-app-bar.dto';
|
|
4
|
-
export { AppScreenSectionDto } from './app-screen-section.dto';
|
|
5
|
-
export { AppScreenSectionButtonDto } from './app-screen-section-button.dto';
|
|
6
|
-
export { AppScreenSectionButtonsDto } from './app-screen-section-buttons.dto';
|
|
7
|
-
export { AppScreenSectionImageDto } from './app-screen-section-image.dto';
|
|
8
|
-
export { AppScreenSectionListItemDto } from './app-screen-section-list-item.dto';
|
|
9
|
-
export { AppScreenSectionReqDto } from './app-screen-section-req.dto';
|
|
10
|
-
export { AppScreenDialogDto } from './app-screen-dialog.dto';
|
|
1
|
+
export { BaseAppScreenDto } from './base-app-screen.dto';
|
|
2
|
+
export { AppScreenDto } from './app-screen.dto';
|
|
3
|
+
export { AppScreenAppBarDto } from './app-screen-app-bar.dto';
|
|
4
|
+
export { AppScreenSectionDto } from './app-screen-section.dto';
|
|
5
|
+
export { AppScreenSectionButtonDto } from './app-screen-section-button.dto';
|
|
6
|
+
export { AppScreenSectionButtonsDto } from './app-screen-section-buttons.dto';
|
|
7
|
+
export { AppScreenSectionImageDto } from './app-screen-section-image.dto';
|
|
8
|
+
export { AppScreenSectionListItemDto } from './app-screen-section-list-item.dto';
|
|
9
|
+
export { AppScreenSectionReqDto } from './app-screen-section-req.dto';
|
|
10
|
+
export { AppScreenDialogDto } from './app-screen-dialog.dto';
|