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
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ApiProperty } from '@nestjs/swagger';
|
|
2
|
+
import { Expose } from 'class-transformer';
|
|
3
|
+
import { IsString } from 'class-validator';
|
|
4
|
+
import { IAppTableBidsPanelItem } from 'jp.common.models';
|
|
5
|
+
|
|
6
|
+
export class BidsPanelItemDto implements IAppTableBidsPanelItem {
|
|
7
|
+
@ApiProperty({
|
|
8
|
+
description: 'key',
|
|
9
|
+
required: true,
|
|
10
|
+
type: String,
|
|
11
|
+
})
|
|
12
|
+
@Expose()
|
|
13
|
+
@IsString()
|
|
14
|
+
key: string;
|
|
15
|
+
|
|
16
|
+
@ApiProperty({
|
|
17
|
+
description: 'value',
|
|
18
|
+
required: true,
|
|
19
|
+
type: String,
|
|
20
|
+
})
|
|
21
|
+
@Expose()
|
|
22
|
+
@IsString()
|
|
23
|
+
value: string;
|
|
24
|
+
|
|
25
|
+
@ApiProperty({
|
|
26
|
+
description: 'Title',
|
|
27
|
+
required: true,
|
|
28
|
+
type: String,
|
|
29
|
+
})
|
|
30
|
+
@Expose()
|
|
31
|
+
@IsString()
|
|
32
|
+
title: string;
|
|
33
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Expose, Type } from 'class-transformer';
|
|
2
|
+
import { IsArray, IsBoolean, IsString, ValidateNested } from 'class-validator';
|
|
3
|
+
import { IAppTableBidsPanel } from 'jp.common.models';
|
|
4
|
+
import { ApiProperty } from '@nestjs/swagger';
|
|
5
|
+
|
|
6
|
+
import { BidsPanelItemDto } from './bids-panel-item.dto';
|
|
7
|
+
|
|
8
|
+
export class BidsPanelDto implements IAppTableBidsPanel {
|
|
9
|
+
@ApiProperty({
|
|
10
|
+
description: 'description',
|
|
11
|
+
required: true,
|
|
12
|
+
type: String,
|
|
13
|
+
})
|
|
14
|
+
@Expose()
|
|
15
|
+
@IsString()
|
|
16
|
+
description: string;
|
|
17
|
+
|
|
18
|
+
@ApiProperty({
|
|
19
|
+
description: 'isOpen',
|
|
20
|
+
required: true,
|
|
21
|
+
type: Boolean,
|
|
22
|
+
})
|
|
23
|
+
@Expose()
|
|
24
|
+
@IsBoolean()
|
|
25
|
+
isOpen: boolean;
|
|
26
|
+
|
|
27
|
+
@IsArray()
|
|
28
|
+
@ValidateNested({ each: true })
|
|
29
|
+
@Type(() => BidsPanelItemDto)
|
|
30
|
+
@Expose()
|
|
31
|
+
bids: Array<BidsPanelItemDto>;
|
|
32
|
+
}
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import { ApiProperty } from '@nestjs/swagger';
|
|
2
|
-
import { Expose, Type } from 'class-transformer';
|
|
3
|
-
import {
|
|
4
|
-
IsString,
|
|
5
|
-
IsNumber,
|
|
6
|
-
IsBoolean,
|
|
7
|
-
IsArray,
|
|
8
|
-
ValidateNested,
|
|
9
|
-
} from 'class-validator';
|
|
10
|
-
import { IAppTableCard } from 'jp.common.models';
|
|
11
|
-
|
|
12
|
-
export class CardDto implements IAppTableCard {
|
|
13
|
-
@ApiProperty({
|
|
14
|
-
description: 'card ID',
|
|
15
|
-
required: true,
|
|
16
|
-
type: Number,
|
|
17
|
-
})
|
|
18
|
-
@Expose()
|
|
19
|
-
@IsNumber()
|
|
20
|
-
id: number;
|
|
21
|
-
|
|
22
|
-
@ApiProperty({
|
|
23
|
-
description: 'rank',
|
|
24
|
-
required: true,
|
|
25
|
-
type: Number,
|
|
26
|
-
})
|
|
27
|
-
@Expose()
|
|
28
|
-
@IsNumber()
|
|
29
|
-
rank: number;
|
|
30
|
-
|
|
31
|
-
@ApiProperty({
|
|
32
|
-
description: 'suit',
|
|
33
|
-
required: true,
|
|
34
|
-
type: String,
|
|
35
|
-
})
|
|
36
|
-
@Expose()
|
|
37
|
-
@IsString()
|
|
38
|
-
suit: string;
|
|
39
|
-
|
|
40
|
-
@ApiProperty({
|
|
41
|
-
description: 'disabled',
|
|
42
|
-
required: true,
|
|
43
|
-
type: Boolean,
|
|
44
|
-
})
|
|
45
|
-
@Expose()
|
|
46
|
-
@IsBoolean()
|
|
47
|
-
isDisable: boolean;
|
|
48
|
-
|
|
49
|
-
@IsArray()
|
|
50
|
-
@ValidateNested({ each: true })
|
|
51
|
-
@Type(() => Number)
|
|
52
|
-
@Expose()
|
|
53
|
-
targets: Array<number>;
|
|
54
|
-
}
|
|
1
|
+
import { ApiProperty } from '@nestjs/swagger';
|
|
2
|
+
import { Expose, Type } from 'class-transformer';
|
|
3
|
+
import {
|
|
4
|
+
IsString,
|
|
5
|
+
IsNumber,
|
|
6
|
+
IsBoolean,
|
|
7
|
+
IsArray,
|
|
8
|
+
ValidateNested,
|
|
9
|
+
} from 'class-validator';
|
|
10
|
+
import { IAppTableCard } from 'jp.common.models';
|
|
11
|
+
|
|
12
|
+
export class CardDto implements IAppTableCard {
|
|
13
|
+
@ApiProperty({
|
|
14
|
+
description: 'card ID',
|
|
15
|
+
required: true,
|
|
16
|
+
type: Number,
|
|
17
|
+
})
|
|
18
|
+
@Expose()
|
|
19
|
+
@IsNumber()
|
|
20
|
+
id: number;
|
|
21
|
+
|
|
22
|
+
@ApiProperty({
|
|
23
|
+
description: 'rank',
|
|
24
|
+
required: true,
|
|
25
|
+
type: Number,
|
|
26
|
+
})
|
|
27
|
+
@Expose()
|
|
28
|
+
@IsNumber()
|
|
29
|
+
rank: number;
|
|
30
|
+
|
|
31
|
+
@ApiProperty({
|
|
32
|
+
description: 'suit',
|
|
33
|
+
required: true,
|
|
34
|
+
type: String,
|
|
35
|
+
})
|
|
36
|
+
@Expose()
|
|
37
|
+
@IsString()
|
|
38
|
+
suit: string;
|
|
39
|
+
|
|
40
|
+
@ApiProperty({
|
|
41
|
+
description: 'disabled',
|
|
42
|
+
required: true,
|
|
43
|
+
type: Boolean,
|
|
44
|
+
})
|
|
45
|
+
@Expose()
|
|
46
|
+
@IsBoolean()
|
|
47
|
+
isDisable: boolean;
|
|
48
|
+
|
|
49
|
+
@IsArray()
|
|
50
|
+
@ValidateNested({ each: true })
|
|
51
|
+
@Type(() => Number)
|
|
52
|
+
@Expose()
|
|
53
|
+
targets: Array<number>;
|
|
54
|
+
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { Type, Expose } from 'class-transformer';
|
|
2
|
-
import { IsString, ValidateNested } from 'class-validator';
|
|
3
|
-
import { ApiProperty } from '@nestjs/swagger';
|
|
4
|
-
import { IAppTableCardsDeck } from 'jp.common.models';
|
|
5
|
-
|
|
6
|
-
import { CardDto } from './card.dto';
|
|
7
|
-
|
|
8
|
-
export class CardsDeckDto implements IAppTableCardsDeck {
|
|
9
|
-
@ApiProperty({
|
|
10
|
-
description: 'trumpSuit',
|
|
11
|
-
required: true,
|
|
12
|
-
type: String,
|
|
13
|
-
})
|
|
14
|
-
@Expose()
|
|
15
|
-
@IsString()
|
|
16
|
-
trumpSuit: string;
|
|
17
|
-
|
|
18
|
-
@ValidateNested()
|
|
19
|
-
@Type(() => CardDto)
|
|
20
|
-
@Expose()
|
|
21
|
-
trump?: CardDto | undefined;
|
|
22
|
-
}
|
|
1
|
+
import { Type, Expose } from 'class-transformer';
|
|
2
|
+
import { IsString, ValidateNested } from 'class-validator';
|
|
3
|
+
import { ApiProperty } from '@nestjs/swagger';
|
|
4
|
+
import { IAppTableCardsDeck } from 'jp.common.models';
|
|
5
|
+
|
|
6
|
+
import { CardDto } from './card.dto';
|
|
7
|
+
|
|
8
|
+
export class CardsDeckDto implements IAppTableCardsDeck {
|
|
9
|
+
@ApiProperty({
|
|
10
|
+
description: 'trumpSuit',
|
|
11
|
+
required: true,
|
|
12
|
+
type: String,
|
|
13
|
+
})
|
|
14
|
+
@Expose()
|
|
15
|
+
@IsString()
|
|
16
|
+
trumpSuit: string;
|
|
17
|
+
|
|
18
|
+
@ValidateNested()
|
|
19
|
+
@Type(() => CardDto)
|
|
20
|
+
@Expose()
|
|
21
|
+
trump?: CardDto | undefined;
|
|
22
|
+
}
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import { Expose, Type } from 'class-transformer';
|
|
2
|
-
import { IsBoolean, IsNumber, ValidateNested } from 'class-validator';
|
|
3
|
-
import { ApiProperty } from '@nestjs/swagger';
|
|
4
|
-
import { IAppTableCardsPairSlotsItem } from 'jp.common.models';
|
|
5
|
-
|
|
6
|
-
import { CardDto } from './card.dto';
|
|
7
|
-
|
|
8
|
-
export class CardPairSlotItemDto implements IAppTableCardsPairSlotsItem {
|
|
9
|
-
@ApiProperty({
|
|
10
|
-
description: 'id',
|
|
11
|
-
required: true,
|
|
12
|
-
type: Number,
|
|
13
|
-
})
|
|
14
|
-
@Expose()
|
|
15
|
-
@IsNumber()
|
|
16
|
-
id: number;
|
|
17
|
-
|
|
18
|
-
@ValidateNested()
|
|
19
|
-
@Type(() => CardDto)
|
|
20
|
-
@Expose()
|
|
21
|
-
top: CardDto | null;
|
|
22
|
-
|
|
23
|
-
@ValidateNested()
|
|
24
|
-
@Type(() => CardDto)
|
|
25
|
-
@Expose()
|
|
26
|
-
bottom: CardDto | null;
|
|
27
|
-
|
|
28
|
-
@ApiProperty({
|
|
29
|
-
description: 'activated',
|
|
30
|
-
required: true,
|
|
31
|
-
type: Boolean,
|
|
32
|
-
})
|
|
33
|
-
@Expose()
|
|
34
|
-
@IsBoolean()
|
|
35
|
-
activated: boolean;
|
|
36
|
-
|
|
37
|
-
@ApiProperty({
|
|
38
|
-
description: 'disabled',
|
|
39
|
-
required: true,
|
|
40
|
-
type: Boolean,
|
|
41
|
-
})
|
|
42
|
-
@Expose()
|
|
43
|
-
@IsBoolean()
|
|
44
|
-
disabled: boolean;
|
|
45
|
-
}
|
|
1
|
+
import { Expose, Type } from 'class-transformer';
|
|
2
|
+
import { IsBoolean, IsNumber, ValidateNested } from 'class-validator';
|
|
3
|
+
import { ApiProperty } from '@nestjs/swagger';
|
|
4
|
+
import { IAppTableCardsPairSlotsItem } from 'jp.common.models';
|
|
5
|
+
|
|
6
|
+
import { CardDto } from './card.dto';
|
|
7
|
+
|
|
8
|
+
export class CardPairSlotItemDto implements IAppTableCardsPairSlotsItem {
|
|
9
|
+
@ApiProperty({
|
|
10
|
+
description: 'id',
|
|
11
|
+
required: true,
|
|
12
|
+
type: Number,
|
|
13
|
+
})
|
|
14
|
+
@Expose()
|
|
15
|
+
@IsNumber()
|
|
16
|
+
id: number;
|
|
17
|
+
|
|
18
|
+
@ValidateNested()
|
|
19
|
+
@Type(() => CardDto)
|
|
20
|
+
@Expose()
|
|
21
|
+
top: CardDto | null;
|
|
22
|
+
|
|
23
|
+
@ValidateNested()
|
|
24
|
+
@Type(() => CardDto)
|
|
25
|
+
@Expose()
|
|
26
|
+
bottom: CardDto | null;
|
|
27
|
+
|
|
28
|
+
@ApiProperty({
|
|
29
|
+
description: 'activated',
|
|
30
|
+
required: true,
|
|
31
|
+
type: Boolean,
|
|
32
|
+
})
|
|
33
|
+
@Expose()
|
|
34
|
+
@IsBoolean()
|
|
35
|
+
activated: boolean;
|
|
36
|
+
|
|
37
|
+
@ApiProperty({
|
|
38
|
+
description: 'disabled',
|
|
39
|
+
required: true,
|
|
40
|
+
type: Boolean,
|
|
41
|
+
})
|
|
42
|
+
@Expose()
|
|
43
|
+
@IsBoolean()
|
|
44
|
+
disabled: boolean;
|
|
45
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Expose, Type } from 'class-transformer';
|
|
2
|
-
import { IsArray, ValidateNested } from 'class-validator';
|
|
3
|
-
import { IAppTableCardsPairSlots } from 'jp.common.models';
|
|
4
|
-
|
|
5
|
-
import { CardPairSlotItemDto } from './cards-pair-slots-item.dto';
|
|
6
|
-
|
|
7
|
-
export class CardsPairSlotsDto implements IAppTableCardsPairSlots {
|
|
8
|
-
@IsArray()
|
|
9
|
-
@ValidateNested({ each: true })
|
|
10
|
-
@Type(() => CardPairSlotItemDto)
|
|
11
|
-
@Expose()
|
|
12
|
-
slots: Array<CardPairSlotItemDto>;
|
|
13
|
-
}
|
|
1
|
+
import { Expose, Type } from 'class-transformer';
|
|
2
|
+
import { IsArray, ValidateNested } from 'class-validator';
|
|
3
|
+
import { IAppTableCardsPairSlots } from 'jp.common.models';
|
|
4
|
+
|
|
5
|
+
import { CardPairSlotItemDto } from './cards-pair-slots-item.dto';
|
|
6
|
+
|
|
7
|
+
export class CardsPairSlotsDto implements IAppTableCardsPairSlots {
|
|
8
|
+
@IsArray()
|
|
9
|
+
@ValidateNested({ each: true })
|
|
10
|
+
@Type(() => CardPairSlotItemDto)
|
|
11
|
+
@Expose()
|
|
12
|
+
slots: Array<CardPairSlotItemDto>;
|
|
13
|
+
}
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import { Expose, Type } from 'class-transformer';
|
|
2
|
-
import { IsArray, IsBoolean, IsString, ValidateNested } from 'class-validator';
|
|
3
|
-
import { ApiProperty } from '@nestjs/swagger';
|
|
4
|
-
import { IAppTableCardsPanel } from 'jp.common.models';
|
|
5
|
-
|
|
6
|
-
import { CardDto } from './card.dto';
|
|
7
|
-
import { MovesPanelButtonDto } from './moves-panel-button.dto';
|
|
8
|
-
|
|
9
|
-
export class CardsPanelDto implements IAppTableCardsPanel {
|
|
10
|
-
@ApiProperty({
|
|
11
|
-
description: 'isOpen',
|
|
12
|
-
required: true,
|
|
13
|
-
type: Boolean,
|
|
14
|
-
})
|
|
15
|
-
@Expose()
|
|
16
|
-
@IsBoolean()
|
|
17
|
-
isOpen: boolean;
|
|
18
|
-
|
|
19
|
-
@ApiProperty({
|
|
20
|
-
description: 'enableDragging',
|
|
21
|
-
required: true,
|
|
22
|
-
type: Boolean,
|
|
23
|
-
})
|
|
24
|
-
@Expose()
|
|
25
|
-
@IsBoolean()
|
|
26
|
-
enableDragging: boolean;
|
|
27
|
-
|
|
28
|
-
@IsArray()
|
|
29
|
-
@ValidateNested({ each: true })
|
|
30
|
-
@Type(() => MovesPanelButtonDto)
|
|
31
|
-
@Expose()
|
|
32
|
-
buttons: Array<MovesPanelButtonDto>;
|
|
33
|
-
|
|
34
|
-
@IsArray()
|
|
35
|
-
@ValidateNested({ each: true })
|
|
36
|
-
@Type(() => CardDto)
|
|
37
|
-
@Expose()
|
|
38
|
-
cards: Array<CardDto>;
|
|
39
|
-
|
|
40
|
-
@ApiProperty({
|
|
41
|
-
description: 'description',
|
|
42
|
-
required: true,
|
|
43
|
-
type: String,
|
|
44
|
-
})
|
|
45
|
-
@Expose()
|
|
46
|
-
@IsString()
|
|
47
|
-
description: string;
|
|
48
|
-
}
|
|
1
|
+
import { Expose, Type } from 'class-transformer';
|
|
2
|
+
import { IsArray, IsBoolean, IsString, ValidateNested } from 'class-validator';
|
|
3
|
+
import { ApiProperty } from '@nestjs/swagger';
|
|
4
|
+
import { IAppTableCardsPanel } from 'jp.common.models';
|
|
5
|
+
|
|
6
|
+
import { CardDto } from './card.dto';
|
|
7
|
+
import { MovesPanelButtonDto } from './moves-panel-button.dto';
|
|
8
|
+
|
|
9
|
+
export class CardsPanelDto implements IAppTableCardsPanel {
|
|
10
|
+
@ApiProperty({
|
|
11
|
+
description: 'isOpen',
|
|
12
|
+
required: true,
|
|
13
|
+
type: Boolean,
|
|
14
|
+
})
|
|
15
|
+
@Expose()
|
|
16
|
+
@IsBoolean()
|
|
17
|
+
isOpen: boolean;
|
|
18
|
+
|
|
19
|
+
@ApiProperty({
|
|
20
|
+
description: 'enableDragging',
|
|
21
|
+
required: true,
|
|
22
|
+
type: Boolean,
|
|
23
|
+
})
|
|
24
|
+
@Expose()
|
|
25
|
+
@IsBoolean()
|
|
26
|
+
enableDragging: boolean;
|
|
27
|
+
|
|
28
|
+
@IsArray()
|
|
29
|
+
@ValidateNested({ each: true })
|
|
30
|
+
@Type(() => MovesPanelButtonDto)
|
|
31
|
+
@Expose()
|
|
32
|
+
buttons: Array<MovesPanelButtonDto>;
|
|
33
|
+
|
|
34
|
+
@IsArray()
|
|
35
|
+
@ValidateNested({ each: true })
|
|
36
|
+
@Type(() => CardDto)
|
|
37
|
+
@Expose()
|
|
38
|
+
cards: Array<CardDto>;
|
|
39
|
+
|
|
40
|
+
@ApiProperty({
|
|
41
|
+
description: 'description',
|
|
42
|
+
required: true,
|
|
43
|
+
type: String,
|
|
44
|
+
})
|
|
45
|
+
@Expose()
|
|
46
|
+
@IsString()
|
|
47
|
+
description: string;
|
|
48
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Expose, Type } from 'class-transformer';
|
|
2
|
-
import { IsArray, ValidateNested } from 'class-validator';
|
|
3
|
-
import { IAppTableCardsPlayer } from 'jp.common.models';
|
|
4
|
-
|
|
5
|
-
import { CardDto } from './card.dto';
|
|
6
|
-
import { PlayerDto } from './player.dto';
|
|
7
|
-
|
|
8
|
-
export class CardsPlayerDto extends PlayerDto implements IAppTableCardsPlayer {
|
|
9
|
-
@IsArray()
|
|
10
|
-
@ValidateNested({ each: true })
|
|
11
|
-
@Type(() => CardDto)
|
|
12
|
-
@Expose()
|
|
13
|
-
cards: Array<CardDto>;
|
|
14
|
-
}
|
|
1
|
+
import { Expose, Type } from 'class-transformer';
|
|
2
|
+
import { IsArray, ValidateNested } from 'class-validator';
|
|
3
|
+
import { IAppTableCardsPlayer } from 'jp.common.models';
|
|
4
|
+
|
|
5
|
+
import { CardDto } from './card.dto';
|
|
6
|
+
import { PlayerDto } from './player.dto';
|
|
7
|
+
|
|
8
|
+
export class CardsPlayerDto extends PlayerDto implements IAppTableCardsPlayer {
|
|
9
|
+
@IsArray()
|
|
10
|
+
@ValidateNested({ each: true })
|
|
11
|
+
@Type(() => CardDto)
|
|
12
|
+
@Expose()
|
|
13
|
+
cards: Array<CardDto>;
|
|
14
|
+
}
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { Expose, Type } from 'class-transformer';
|
|
2
|
-
import { IsBoolean, IsNumber, ValidateNested } from 'class-validator';
|
|
3
|
-
import { ApiProperty } from '@nestjs/swagger';
|
|
4
|
-
import { IAppTableCardsSlotsItem } from 'jp.common.models';
|
|
5
|
-
|
|
6
|
-
import { CardDto } from './card.dto';
|
|
7
|
-
|
|
8
|
-
export class CardSlotItemDto implements IAppTableCardsSlotsItem {
|
|
9
|
-
@ApiProperty({
|
|
10
|
-
description: 'id',
|
|
11
|
-
required: true,
|
|
12
|
-
type: Number,
|
|
13
|
-
})
|
|
14
|
-
@Expose()
|
|
15
|
-
@IsNumber()
|
|
16
|
-
id: number;
|
|
17
|
-
|
|
18
|
-
@ValidateNested()
|
|
19
|
-
@Type(() => CardDto)
|
|
20
|
-
@Expose()
|
|
21
|
-
card: CardDto | null;
|
|
22
|
-
|
|
23
|
-
@ApiProperty({
|
|
24
|
-
description: 'activated',
|
|
25
|
-
required: true,
|
|
26
|
-
type: Boolean,
|
|
27
|
-
})
|
|
28
|
-
@Expose()
|
|
29
|
-
@IsBoolean()
|
|
30
|
-
activated: boolean;
|
|
31
|
-
|
|
32
|
-
@ApiProperty({
|
|
33
|
-
description: 'disabled',
|
|
34
|
-
required: true,
|
|
35
|
-
type: Boolean,
|
|
36
|
-
})
|
|
37
|
-
@Expose()
|
|
38
|
-
@IsBoolean()
|
|
39
|
-
disabled: boolean;
|
|
40
|
-
}
|
|
1
|
+
import { Expose, Type } from 'class-transformer';
|
|
2
|
+
import { IsBoolean, IsNumber, ValidateNested } from 'class-validator';
|
|
3
|
+
import { ApiProperty } from '@nestjs/swagger';
|
|
4
|
+
import { IAppTableCardsSlotsItem } from 'jp.common.models';
|
|
5
|
+
|
|
6
|
+
import { CardDto } from './card.dto';
|
|
7
|
+
|
|
8
|
+
export class CardSlotItemDto implements IAppTableCardsSlotsItem {
|
|
9
|
+
@ApiProperty({
|
|
10
|
+
description: 'id',
|
|
11
|
+
required: true,
|
|
12
|
+
type: Number,
|
|
13
|
+
})
|
|
14
|
+
@Expose()
|
|
15
|
+
@IsNumber()
|
|
16
|
+
id: number;
|
|
17
|
+
|
|
18
|
+
@ValidateNested()
|
|
19
|
+
@Type(() => CardDto)
|
|
20
|
+
@Expose()
|
|
21
|
+
card: CardDto | null;
|
|
22
|
+
|
|
23
|
+
@ApiProperty({
|
|
24
|
+
description: 'activated',
|
|
25
|
+
required: true,
|
|
26
|
+
type: Boolean,
|
|
27
|
+
})
|
|
28
|
+
@Expose()
|
|
29
|
+
@IsBoolean()
|
|
30
|
+
activated: boolean;
|
|
31
|
+
|
|
32
|
+
@ApiProperty({
|
|
33
|
+
description: 'disabled',
|
|
34
|
+
required: true,
|
|
35
|
+
type: Boolean,
|
|
36
|
+
})
|
|
37
|
+
@Expose()
|
|
38
|
+
@IsBoolean()
|
|
39
|
+
disabled: boolean;
|
|
40
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Expose, Type } from 'class-transformer';
|
|
2
|
-
import { IsArray, ValidateNested } from 'class-validator';
|
|
3
|
-
import { IAppTableCardsSlots } from 'jp.common.models';
|
|
4
|
-
|
|
5
|
-
import { CardSlotItemDto } from './cards-slots-item.dto';
|
|
6
|
-
|
|
7
|
-
export class CardsSlotsDto implements IAppTableCardsSlots {
|
|
8
|
-
@IsArray()
|
|
9
|
-
@ValidateNested({ each: true })
|
|
10
|
-
@Type(() => CardSlotItemDto)
|
|
11
|
-
@Expose()
|
|
12
|
-
slots: Array<CardSlotItemDto>;
|
|
13
|
-
}
|
|
1
|
+
import { Expose, Type } from 'class-transformer';
|
|
2
|
+
import { IsArray, ValidateNested } from 'class-validator';
|
|
3
|
+
import { IAppTableCardsSlots } from 'jp.common.models';
|
|
4
|
+
|
|
5
|
+
import { CardSlotItemDto } from './cards-slots-item.dto';
|
|
6
|
+
|
|
7
|
+
export class CardsSlotsDto implements IAppTableCardsSlots {
|
|
8
|
+
@IsArray()
|
|
9
|
+
@ValidateNested({ each: true })
|
|
10
|
+
@Type(() => CardSlotItemDto)
|
|
11
|
+
@Expose()
|
|
12
|
+
slots: Array<CardSlotItemDto>;
|
|
13
|
+
}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
export { CardDto } from './card.dto';
|
|
2
|
-
export { CardsDeckDto } from './cards-deck.dto';
|
|
3
|
-
export { CardPairSlotItemDto } from './cards-pair-slots-item.dto';
|
|
4
|
-
export { CardsPairSlotsDto } from './cards-pair-slots.dto';
|
|
5
|
-
export { CardSlotItemDto } from './cards-slots-item.dto';
|
|
6
|
-
export { CardsSlotsDto } from './cards-slots.dto';
|
|
7
|
-
export { CardsPanelDto } from './cards-panel.dto';
|
|
8
|
-
export { CardsPlayerDto } from './cards-player.dto';
|
|
9
|
-
export { MovesPanelButtonDto } from './moves-panel-button.dto';
|
|
10
|
-
export { MovesPanelDto } from './moves-panel.dto';
|
|
11
|
-
export { PlayerDto } from './player.dto';
|
|
12
|
-
export { SummaryDto } from './summary.dto';
|
|
13
|
-
export { SummaryItemDto } from './summary-item.dto';
|
|
1
|
+
export { CardDto } from './card.dto';
|
|
2
|
+
export { CardsDeckDto } from './cards-deck.dto';
|
|
3
|
+
export { CardPairSlotItemDto } from './cards-pair-slots-item.dto';
|
|
4
|
+
export { CardsPairSlotsDto } from './cards-pair-slots.dto';
|
|
5
|
+
export { CardSlotItemDto } from './cards-slots-item.dto';
|
|
6
|
+
export { CardsSlotsDto } from './cards-slots.dto';
|
|
7
|
+
export { CardsPanelDto } from './cards-panel.dto';
|
|
8
|
+
export { CardsPlayerDto } from './cards-player.dto';
|
|
9
|
+
export { MovesPanelButtonDto } from './moves-panel-button.dto';
|
|
10
|
+
export { MovesPanelDto } from './moves-panel.dto';
|
|
11
|
+
export { PlayerDto } from './player.dto';
|
|
12
|
+
export { SummaryDto } from './summary.dto';
|
|
13
|
+
export { SummaryItemDto } from './summary-item.dto';
|
|
14
|
+
export { BidsPanelDto } from './bids-panel.dto';
|
|
15
|
+
export { BidsPanelItemDto } from './bids-panel-item.dto';
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { ApiProperty } from '@nestjs/swagger';
|
|
2
|
-
import { Expose } from 'class-transformer';
|
|
3
|
-
import { IsString } from 'class-validator';
|
|
4
|
-
import { IAppTableMovesPanelButton } from 'jp.common.models';
|
|
5
|
-
|
|
6
|
-
export class MovesPanelButtonDto implements IAppTableMovesPanelButton {
|
|
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
|
-
}
|
|
1
|
+
import { ApiProperty } from '@nestjs/swagger';
|
|
2
|
+
import { Expose } from 'class-transformer';
|
|
3
|
+
import { IsString } from 'class-validator';
|
|
4
|
+
import { IAppTableMovesPanelButton } from 'jp.common.models';
|
|
5
|
+
|
|
6
|
+
export class MovesPanelButtonDto implements IAppTableMovesPanelButton {
|
|
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
|
+
}
|