jp.db.schemas 2.2.9 → 2.2.11
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.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/models/activity-log-user-login.interface.d.ts.map +1 -1
- package/dist/models/activity-log.enum.d.ts.map +1 -1
- package/dist/models/activity-log.enum.js.map +1 -1
- package/dist/models/currency.enum.d.ts.map +1 -1
- package/dist/models/currency.enum.js.map +1 -1
- package/dist/models/rating-add-bulk-item.interface.d.ts.map +1 -1
- package/dist/models/rating-monthly-result.interface.d.ts.map +1 -1
- package/dist/models/tournament-participant.interface.d.ts.map +1 -1
- package/dist/models/tournament-status.enum.d.ts.map +1 -1
- package/dist/models/tournament-status.enum.js.map +1 -1
- package/dist/models/tournament-template.enum.d.ts.map +1 -1
- package/dist/models/tournament-template.enum.js.map +1 -1
- package/dist/models/tournament-winner.interface.d.ts.map +1 -1
- package/dist/models/users-balance-reason.enum.d.ts.map +1 -1
- package/dist/models/users-balance-reason.enum.js.map +1 -1
- package/dist/repositories/achievement.repository.d.ts.map +1 -1
- package/dist/repositories/achievement.repository.js +1 -3
- package/dist/repositories/achievement.repository.js.map +1 -1
- package/dist/repositories/activity-log.repository.d.ts.map +1 -1
- package/dist/repositories/activity-log.repository.js +78 -26
- package/dist/repositories/activity-log.repository.js.map +1 -1
- package/dist/repositories/admin.repository.d.ts.map +1 -1
- package/dist/repositories/admin.repository.js +2 -6
- package/dist/repositories/admin.repository.js.map +1 -1
- package/dist/repositories/article.repository.d.ts.map +1 -1
- package/dist/repositories/article.repository.js +3 -13
- package/dist/repositories/article.repository.js.map +1 -1
- package/dist/repositories/banners.repository.d.ts.map +1 -1
- package/dist/repositories/banners.repository.js +7 -12
- package/dist/repositories/banners.repository.js.map +1 -1
- package/dist/repositories/complains.repository.d.ts.map +1 -1
- package/dist/repositories/complains.repository.js +1 -4
- package/dist/repositories/complains.repository.js.map +1 -1
- package/dist/repositories/daily-bonus.repository.d.ts.map +1 -1
- package/dist/repositories/daily-bonus.repository.js +1 -3
- package/dist/repositories/daily-bonus.repository.js.map +1 -1
- package/dist/repositories/friend.repository.d.ts.map +1 -1
- package/dist/repositories/friend.repository.js.map +1 -1
- package/dist/repositories/game-result.repository.d.ts.map +1 -1
- package/dist/repositories/game-result.repository.js.map +1 -1
- package/dist/repositories/game-statistic.repository.d.ts.map +1 -1
- package/dist/repositories/game-statistic.repository.js.map +1 -1
- package/dist/repositories/index.d.ts +1 -1
- package/dist/repositories/index.d.ts.map +1 -1
- package/dist/repositories/index.js.map +1 -1
- package/dist/repositories/menu.repository.d.ts.map +1 -1
- package/dist/repositories/menu.repository.js.map +1 -1
- package/dist/repositories/notification.repository.d.ts.map +1 -1
- package/dist/repositories/notification.repository.js +6 -9
- package/dist/repositories/notification.repository.js.map +1 -1
- package/dist/repositories/premium.repository.d.ts.map +1 -1
- package/dist/repositories/premium.repository.js +1 -3
- package/dist/repositories/premium.repository.js.map +1 -1
- package/dist/repositories/products.repository.d.ts.map +1 -1
- package/dist/repositories/products.repository.js +1 -3
- package/dist/repositories/products.repository.js.map +1 -1
- package/dist/repositories/purchase.repository.d.ts.map +1 -1
- package/dist/repositories/purchase.repository.js +7 -11
- package/dist/repositories/purchase.repository.js.map +1 -1
- package/dist/repositories/rating.repository.d.ts.map +1 -1
- package/dist/repositories/rating.repository.js +21 -21
- package/dist/repositories/rating.repository.js.map +1 -1
- package/dist/repositories/rooms.repository.d.ts.map +1 -1
- package/dist/repositories/rooms.repository.js +1 -3
- package/dist/repositories/rooms.repository.js.map +1 -1
- package/dist/repositories/rule.repository.d.ts.map +1 -1
- package/dist/repositories/rule.repository.js +1 -3
- package/dist/repositories/rule.repository.js.map +1 -1
- package/dist/repositories/scheduled-tournaments.repository.d.ts.map +1 -1
- package/dist/repositories/scheduled-tournaments.repository.js.map +1 -1
- package/dist/repositories/servers.repository.d.ts.map +1 -1
- package/dist/repositories/servers.repository.js +1 -3
- package/dist/repositories/servers.repository.js.map +1 -1
- package/dist/repositories/setting.repository.d.ts.map +1 -1
- package/dist/repositories/setting.repository.js.map +1 -1
- package/dist/repositories/settings-options.repository.d.ts.map +1 -1
- package/dist/repositories/settings-options.repository.js +1 -3
- package/dist/repositories/settings-options.repository.js.map +1 -1
- package/dist/repositories/simple-rooms.repository.d.ts.map +1 -1
- package/dist/repositories/simple-rooms.repository.js +1 -3
- package/dist/repositories/simple-rooms.repository.js.map +1 -1
- package/dist/repositories/tournament-many-tables-rooms.repository.d.ts.map +1 -1
- package/dist/repositories/tournament-many-tables-rooms.repository.js +23 -18
- package/dist/repositories/tournament-many-tables-rooms.repository.js.map +1 -1
- package/dist/repositories/tournament-one-table-rooms.repository.d.ts.map +1 -1
- package/dist/repositories/tournament-one-table-rooms.repository.js +16 -12
- package/dist/repositories/tournament-one-table-rooms.repository.js.map +1 -1
- package/dist/repositories/users-achievements.repository.d.ts.map +1 -1
- package/dist/repositories/users-achievements.repository.js +2 -6
- package/dist/repositories/users-achievements.repository.js.map +1 -1
- package/dist/repositories/users-balances.repository.d.ts.map +1 -1
- package/dist/repositories/users-balances.repository.js +21 -3
- package/dist/repositories/users-balances.repository.js.map +1 -1
- package/dist/repositories/users.repository.d.ts.map +1 -1
- package/dist/repositories/users.repository.js +28 -34
- package/dist/repositories/users.repository.js.map +1 -1
- package/dist/repositories/welcome.repository.d.ts.map +1 -1
- package/dist/repositories/welcome.repository.js +1 -3
- package/dist/repositories/welcome.repository.js.map +1 -1
- package/dist/schemas/achievement.schema.d.ts.map +1 -1
- package/dist/schemas/achievement.schema.js.map +1 -1
- package/dist/schemas/activity_log.schema.d.ts.map +1 -1
- package/dist/schemas/activity_log.schema.js.map +1 -1
- package/dist/schemas/admin.schema.d.ts.map +1 -1
- package/dist/schemas/admin.schema.js.map +1 -1
- package/dist/schemas/article.schema.d.ts.map +1 -1
- package/dist/schemas/article.schema.js.map +1 -1
- package/dist/schemas/banner.schema.d.ts.map +1 -1
- package/dist/schemas/banner.schema.js.map +1 -1
- package/dist/schemas/channel_message.schema.d.ts.map +1 -1
- package/dist/schemas/channel_message.schema.js.map +1 -1
- package/dist/schemas/complain.schema.d.ts.map +1 -1
- package/dist/schemas/complain.schema.js.map +1 -1
- package/dist/schemas/daily_bonus.schema.d.ts +4 -16
- package/dist/schemas/daily_bonus.schema.d.ts.map +1 -1
- package/dist/schemas/daily_bonus.schema.js +4 -12
- package/dist/schemas/daily_bonus.schema.js.map +1 -1
- package/dist/schemas/feature.schema.d.ts.map +1 -1
- package/dist/schemas/feature.schema.js.map +1 -1
- package/dist/schemas/friend.schema.d.ts.map +1 -1
- package/dist/schemas/friend.schema.js.map +1 -1
- package/dist/schemas/game_result.schema.d.ts +14 -14
- package/dist/schemas/game_result.schema.d.ts.map +1 -1
- package/dist/schemas/game_result.schema.js.map +1 -1
- package/dist/schemas/game_statistic.schema.d.ts.map +1 -1
- package/dist/schemas/game_statistic.schema.js.map +1 -1
- package/dist/schemas/menu.schema.d.ts +2 -12
- package/dist/schemas/menu.schema.d.ts.map +1 -1
- package/dist/schemas/menu.schema.js +2 -6
- package/dist/schemas/menu.schema.js.map +1 -1
- package/dist/schemas/notification.schema.d.ts.map +1 -1
- package/dist/schemas/notification.schema.js.map +1 -1
- package/dist/schemas/premium.schema.d.ts +4 -16
- package/dist/schemas/premium.schema.d.ts.map +1 -1
- package/dist/schemas/premium.schema.js +4 -12
- package/dist/schemas/premium.schema.js.map +1 -1
- package/dist/schemas/product.schema.d.ts +12 -72
- package/dist/schemas/product.schema.d.ts.map +1 -1
- package/dist/schemas/product.schema.js +12 -36
- package/dist/schemas/product.schema.js.map +1 -1
- package/dist/schemas/purchase.schema.d.ts +20 -20
- package/dist/schemas/purchase.schema.d.ts.map +1 -1
- package/dist/schemas/purchase.schema.js.map +1 -1
- package/dist/schemas/purchase_channel.schema.d.ts.map +1 -1
- package/dist/schemas/purchase_channel.schema.js.map +1 -1
- package/dist/schemas/rating.schema.d.ts.map +1 -1
- package/dist/schemas/rating.schema.js.map +1 -1
- package/dist/schemas/rooms.schema.d.ts.map +1 -1
- package/dist/schemas/rooms.schema.js.map +1 -1
- package/dist/schemas/rule.schema.d.ts +4 -16
- package/dist/schemas/rule.schema.d.ts.map +1 -1
- package/dist/schemas/rule.schema.js +4 -12
- package/dist/schemas/rule.schema.js.map +1 -1
- package/dist/schemas/scheduled_tournament.schema.d.ts.map +1 -1
- package/dist/schemas/scheduled_tournament.schema.js.map +1 -1
- package/dist/schemas/server.schema.d.ts.map +1 -1
- package/dist/schemas/server.schema.js.map +1 -1
- package/dist/schemas/setting.schema.d.ts +4 -24
- package/dist/schemas/setting.schema.d.ts.map +1 -1
- package/dist/schemas/setting.schema.js +4 -12
- package/dist/schemas/setting.schema.js.map +1 -1
- package/dist/schemas/settings_option.schema.d.ts +2 -12
- package/dist/schemas/settings_option.schema.d.ts.map +1 -1
- package/dist/schemas/settings_option.schema.js +2 -6
- package/dist/schemas/settings_option.schema.js.map +1 -1
- package/dist/schemas/simple_rooms.schema.d.ts.map +1 -1
- package/dist/schemas/simple_rooms.schema.js.map +1 -1
- package/dist/schemas/tournament_many_tables_rooms.schema.d.ts.map +1 -1
- package/dist/schemas/tournament_many_tables_rooms.schema.js.map +1 -1
- package/dist/schemas/tournament_one_table_rooms.schema.d.ts.map +1 -1
- package/dist/schemas/tournament_one_table_rooms.schema.js.map +1 -1
- package/dist/schemas/user.fb.schema.d.ts.map +1 -1
- package/dist/schemas/user.fb.schema.js.map +1 -1
- package/dist/schemas/user.google.schema.d.ts.map +1 -1
- package/dist/schemas/user.google.schema.js.map +1 -1
- package/dist/schemas/user.ok.schema.d.ts +8 -8
- package/dist/schemas/user.ok.schema.d.ts.map +1 -1
- package/dist/schemas/user.ok.schema.js.map +1 -1
- package/dist/schemas/user.schema.d.ts.map +1 -1
- package/dist/schemas/user.schema.js +1 -1
- package/dist/schemas/user.schema.js.map +1 -1
- package/dist/schemas/user.tg.schema.d.ts.map +1 -1
- package/dist/schemas/user.tg.schema.js.map +1 -1
- package/dist/schemas/user.vk.schema.d.ts.map +1 -1
- package/dist/schemas/user.vk.schema.js.map +1 -1
- package/dist/schemas/user.ya.schema.d.ts.map +1 -1
- package/dist/schemas/user.ya.schema.js.map +1 -1
- package/dist/schemas/users_achievement.schema.d.ts.map +1 -1
- package/dist/schemas/users_achievement.schema.js.map +1 -1
- package/dist/schemas/users_balance.schema.d.ts.map +1 -1
- package/dist/schemas/users_balance.schema.js.map +1 -1
- package/dist/schemas/welcome.schema.d.ts +4 -16
- package/dist/schemas/welcome.schema.d.ts.map +1 -1
- package/dist/schemas/welcome.schema.js +4 -12
- package/dist/schemas/welcome.schema.js.map +1 -1
- package/dist/utils.js.map +1 -1
- package/package.json +11 -4
- package/src/index.ts +218 -188
- package/src/models/account-type.enum.ts +1 -1
- package/src/models/activity-log-user-login.interface.ts +9 -9
- package/src/models/activity-log.enum.ts +7 -7
- package/src/models/currency.enum.ts +5 -5
- package/src/models/rating-add-bulk-item.interface.ts +6 -6
- package/src/models/rating-monthly-result.interface.ts +10 -10
- package/src/models/tournament-participant.interface.ts +3 -3
- package/src/models/tournament-status.enum.ts +4 -4
- package/src/models/tournament-template.enum.ts +1 -1
- package/src/models/tournament-winner.interface.ts +5 -5
- package/src/models/users-balance-reason.enum.ts +7 -7
- package/src/repositories/achievement.repository.ts +7 -8
- package/src/repositories/activity-log.repository.ts +197 -112
- package/src/repositories/admin.repository.ts +7 -10
- package/src/repositories/article.repository.ts +9 -18
- package/src/repositories/banners.repository.ts +25 -25
- package/src/repositories/complains.repository.ts +10 -9
- package/src/repositories/daily-bonus.repository.ts +21 -15
- package/src/repositories/friend.repository.ts +14 -10
- package/src/repositories/game-result.repository.ts +9 -5
- package/src/repositories/game-statistic.repository.ts +14 -10
- package/src/repositories/index.ts +30 -30
- package/src/repositories/menu.repository.ts +8 -10
- package/src/repositories/notification.repository.ts +25 -20
- package/src/repositories/premium.repository.ts +7 -9
- package/src/repositories/products.repository.ts +18 -17
- package/src/repositories/purchase.repository.ts +93 -97
- package/src/repositories/rating.repository.ts +76 -70
- package/src/repositories/rooms.repository.ts +4 -7
- package/src/repositories/rule.repository.ts +5 -9
- package/src/repositories/scheduled-tournaments.repository.ts +12 -7
- package/src/repositories/servers.repository.ts +6 -8
- package/src/repositories/setting.repository.ts +14 -10
- package/src/repositories/settings-options.repository.ts +8 -9
- package/src/repositories/simple-rooms.repository.ts +6 -7
- package/src/repositories/tournament-many-tables-rooms.repository.ts +143 -118
- package/src/repositories/tournament-one-table-rooms.repository.ts +118 -96
- package/src/repositories/users-achievements.repository.ts +35 -32
- package/src/repositories/users-balances.repository.ts +51 -14
- package/src/repositories/users.repository.ts +137 -128
- package/src/repositories/welcome.repository.ts +7 -9
- package/src/schemas/achievement.schema.ts +22 -22
- package/src/schemas/activity_log.schema.ts +20 -20
- package/src/schemas/admin.schema.ts +10 -10
- package/src/schemas/article.schema.ts +20 -20
- package/src/schemas/banner.schema.ts +22 -22
- package/src/schemas/channel_message.schema.ts +18 -17
- package/src/schemas/complain.schema.ts +26 -26
- package/src/schemas/daily_bonus.schema.ts +29 -37
- package/src/schemas/feature.schema.ts +14 -14
- package/src/schemas/friend.schema.ts +29 -31
- package/src/schemas/game_result.schema.ts +41 -41
- package/src/schemas/game_statistic.schema.ts +22 -22
- package/src/schemas/menu.schema.ts +20 -23
- package/src/schemas/notification.schema.ts +36 -36
- package/src/schemas/premium.schema.ts +21 -30
- package/src/schemas/product.schema.ts +69 -87
- package/src/schemas/purchase.schema.ts +37 -37
- package/src/schemas/purchase_channel.schema.ts +18 -17
- package/src/schemas/rating.schema.ts +20 -20
- package/src/schemas/rooms.schema.ts +37 -37
- package/src/schemas/rule.schema.ts +21 -30
- package/src/schemas/scheduled_tournament.schema.ts +58 -57
- package/src/schemas/server.schema.ts +10 -10
- package/src/schemas/setting.schema.ts +28 -34
- package/src/schemas/settings_option.schema.ts +24 -26
- package/src/schemas/simple_rooms.schema.ts +28 -28
- package/src/schemas/tournament_many_tables_rooms.schema.ts +54 -51
- package/src/schemas/tournament_one_table_rooms.schema.ts +52 -49
- package/src/schemas/user.fb.schema.ts +16 -16
- package/src/schemas/user.google.schema.ts +10 -10
- package/src/schemas/user.ok.schema.ts +26 -25
- package/src/schemas/user.schema.ts +127 -125
- package/src/schemas/user.tg.schema.ts +14 -14
- package/src/schemas/user.vk.schema.ts +36 -36
- package/src/schemas/user.ya.schema.ts +10 -10
- package/src/schemas/users_achievement.schema.ts +24 -23
- package/src/schemas/users_balance.schema.ts +18 -18
- package/src/schemas/welcome.schema.ts +21 -30
- package/src/utils.ts +1 -1
|
@@ -5,42 +5,33 @@ export type RuleDocument = HydratedDocument<Rule>;
|
|
|
5
5
|
|
|
6
6
|
@Schema({ collection: 'rules' })
|
|
7
7
|
export class Rule {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
@Virtual({
|
|
9
|
+
get: function (this: Document) {
|
|
10
|
+
return this._id.toString();
|
|
11
|
+
},
|
|
12
|
+
})
|
|
13
|
+
readonly ruleId: string;
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
@Prop()
|
|
16
|
+
id: string;
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
@Prop({type: Object})
|
|
19
|
+
description: Record<string, string>;
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
@Prop({type: Object})
|
|
22
|
+
text: Record<string, string>;
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
@Prop()
|
|
25
|
+
icon: string;
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
@Prop()
|
|
31
|
-
icon: string;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
@Prop()
|
|
35
|
-
url: string;
|
|
36
|
-
|
|
37
|
-
@Prop()
|
|
38
|
-
game: string;
|
|
39
|
-
|
|
40
|
-
@Prop()
|
|
41
|
-
channel: string;
|
|
27
|
+
@Prop()
|
|
28
|
+
url: string;
|
|
42
29
|
|
|
30
|
+
@Prop()
|
|
31
|
+
game: string;
|
|
43
32
|
|
|
33
|
+
@Prop()
|
|
34
|
+
channel: string;
|
|
44
35
|
}
|
|
45
36
|
|
|
46
|
-
export const RuleSchema = SchemaFactory.createForClass(Rule);
|
|
37
|
+
export const RuleSchema = SchemaFactory.createForClass(Rule);
|
|
@@ -4,90 +4,91 @@ import { Document, HydratedDocument } from 'mongoose';
|
|
|
4
4
|
export type ScheduledTournamentDocument = HydratedDocument<ScheduledTournament>;
|
|
5
5
|
|
|
6
6
|
export interface IScheduledTournamentWinner {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
userId: string;
|
|
8
|
+
userName: string;
|
|
9
|
+
userAvatarUrl: string;
|
|
10
|
+
prize: number;
|
|
11
|
+
rank: number;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
export interface IScheduledTournamentParticipant {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
userId: string;
|
|
16
|
+
userName: string;
|
|
17
|
+
userAvatarUrl: string;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
@Schema({ collection: 'scheduled_tournaments' })
|
|
21
21
|
export class ScheduledTournament {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
@Virtual({
|
|
23
|
+
get: function (this: Document) {
|
|
24
|
+
return this._id.toString();
|
|
25
|
+
},
|
|
26
|
+
})
|
|
27
|
+
readonly tournamentId: string;
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
@Prop()
|
|
30
|
+
type: string;
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
@Prop()
|
|
33
|
+
name: string;
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
@Prop()
|
|
36
|
+
nameEn: string;
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
@Prop()
|
|
39
|
+
roomType: string;
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
@Prop()
|
|
42
|
+
tableSize: number;
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
@Prop()
|
|
45
|
+
bet: number;
|
|
46
46
|
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
@Prop()
|
|
48
|
+
halfBet: number;
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
@Prop()
|
|
51
|
+
ticketPrice: number;
|
|
52
52
|
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
@Prop()
|
|
54
|
+
ticketProductId: string;
|
|
55
55
|
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
@Prop()
|
|
57
|
+
date: Date;
|
|
58
58
|
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
@Prop()
|
|
60
|
+
prizeRu: string;
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
@Prop()
|
|
63
|
+
prizeEn: string;
|
|
64
64
|
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
@Prop()
|
|
66
|
+
participants: Array<IScheduledTournamentParticipant>;
|
|
67
67
|
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
@Prop()
|
|
69
|
+
winners: Array<IScheduledTournamentWinner>;
|
|
70
70
|
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
@Prop()
|
|
72
|
+
maxParticipants: number;
|
|
73
73
|
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
@Prop()
|
|
75
|
+
status: string;
|
|
76
76
|
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
@Prop()
|
|
78
|
+
category: string;
|
|
79
79
|
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
@Prop()
|
|
81
|
+
invitedPlayers: Array<string>;
|
|
82
82
|
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
@Prop()
|
|
84
|
+
ownerId?: string;
|
|
85
85
|
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
@Prop()
|
|
87
|
+
schedule: boolean;
|
|
88
88
|
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
@Prop()
|
|
90
|
+
game: string;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
export const ScheduledTournamentSchema =
|
|
93
|
+
export const ScheduledTournamentSchema =
|
|
94
|
+
SchemaFactory.createForClass(ScheduledTournament);
|
|
@@ -5,18 +5,18 @@ export type ServerDocument = HydratedDocument<Server>;
|
|
|
5
5
|
|
|
6
6
|
@Schema()
|
|
7
7
|
export class Server {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
@Virtual({
|
|
9
|
+
get: function (this: Document) {
|
|
10
|
+
return this._id.toString();
|
|
11
|
+
},
|
|
12
|
+
})
|
|
13
|
+
readonly serverId: string;
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
@Prop()
|
|
16
|
+
http: string;
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
@Prop()
|
|
19
|
+
ws: string;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
export const ServerSchema = SchemaFactory.createForClass(Server);
|
|
@@ -5,51 +5,45 @@ export type SettingDocument = HydratedDocument<Setting>;
|
|
|
5
5
|
|
|
6
6
|
@Schema({ collection: 'settings' })
|
|
7
7
|
export class Setting {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
@Virtual({
|
|
9
|
+
get: function (this: Document) {
|
|
10
|
+
return this._id.toString();
|
|
11
|
+
},
|
|
12
|
+
})
|
|
13
|
+
readonly settingId: string;
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
@Prop()
|
|
16
|
+
position: number;
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
@Prop()
|
|
19
|
+
code: string;
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
@Prop()
|
|
22
|
+
type: string;
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
@Prop()
|
|
25
|
+
modalType?: string;
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
@Prop({type: Object})
|
|
28
|
+
title: Record<string, string>;
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
@Prop({type: Object})
|
|
31
|
+
subtitle: Record<string, string>;
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
@Prop()
|
|
34
|
+
icon: string;
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
@Prop()
|
|
37
|
+
hasChevron: boolean;
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
@Prop()
|
|
40
|
+
url: string;
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
@Prop()
|
|
43
|
+
game: string;
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
@Prop()
|
|
49
|
-
game: string;
|
|
50
|
-
|
|
51
|
-
@Prop()
|
|
52
|
-
channel: string;
|
|
45
|
+
@Prop()
|
|
46
|
+
channel: string;
|
|
53
47
|
}
|
|
54
48
|
|
|
55
49
|
export const SettingSchema = SchemaFactory.createForClass(Setting);
|
|
@@ -5,39 +5,37 @@ export type SettingsOptionDocument = HydratedDocument<SettingsOption>;
|
|
|
5
5
|
|
|
6
6
|
@Schema({ collection: 'settings_options' })
|
|
7
7
|
export class SettingsOption {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
@Virtual({
|
|
9
|
+
get: function (this: Document) {
|
|
10
|
+
return this._id.toString();
|
|
11
|
+
},
|
|
12
|
+
})
|
|
13
|
+
readonly settingOptionId: string;
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
@Prop()
|
|
16
|
+
type: string;
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
@Prop()
|
|
19
|
+
position: number;
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
@Prop({type: Object})
|
|
22
|
+
title: Record<string, string>;
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
@Prop()
|
|
25
|
+
payd?: boolean;
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
@Prop()
|
|
28
|
+
code: string;
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
@Prop()
|
|
31
|
+
productId?: string;
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
@Prop()
|
|
34
|
+
premium?: boolean;
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
@Prop()
|
|
40
|
-
platformAvatar?: boolean;
|
|
36
|
+
@Prop()
|
|
37
|
+
platformAvatar?: boolean;
|
|
41
38
|
}
|
|
42
39
|
|
|
43
|
-
export const SettingsOptionSchema =
|
|
40
|
+
export const SettingsOptionSchema =
|
|
41
|
+
SchemaFactory.createForClass(SettingsOption);
|
|
@@ -5,45 +5,45 @@ export type SimpleRoomDocument = HydratedDocument<SimpleRoom>;
|
|
|
5
5
|
|
|
6
6
|
@Schema({ collection: 'simple_rooms' })
|
|
7
7
|
export class SimpleRoom {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
@Virtual({
|
|
9
|
+
get: function (this: Document) {
|
|
10
|
+
return this._id.toString();
|
|
11
|
+
},
|
|
12
|
+
})
|
|
13
|
+
readonly roomId: string;
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
@Prop({ type: Object })
|
|
16
|
+
title: Record<string, string>;
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
@Prop({ type: Object })
|
|
19
|
+
subtitle: Record<string, string>;
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
@Prop({ type: Object })
|
|
22
|
+
description: Record<string, string>;
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
@Prop()
|
|
25
|
+
tableSize: number;
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
@Prop()
|
|
28
|
+
bet: number;
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
@Prop()
|
|
31
|
+
ticketPrice: number;
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
@Prop()
|
|
34
|
+
roomType: string;
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
@Prop()
|
|
37
|
+
gameType: string;
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
@Prop()
|
|
40
|
+
rulesType: string;
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
@Prop()
|
|
43
|
+
deckType?: string;
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
@Prop()
|
|
46
|
+
enableForFastGame?: boolean;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
export const SimpleRoomSchema = SchemaFactory.createForClass(SimpleRoom);
|
|
@@ -4,81 +4,84 @@ import { Document, HydratedDocument } from 'mongoose';
|
|
|
4
4
|
import { ITournamentParticipant } from '../models/tournament-participant.interface';
|
|
5
5
|
import { ITournamentWinner } from '../models/tournament-winner.interface';
|
|
6
6
|
|
|
7
|
-
export type TournamentManyTablesRoomDocument =
|
|
7
|
+
export type TournamentManyTablesRoomDocument =
|
|
8
|
+
HydratedDocument<TournamentManyTablesRoom>;
|
|
8
9
|
|
|
9
10
|
@Schema({ collection: 'tournament_many_tables_rooms' })
|
|
10
11
|
export class TournamentManyTablesRoom {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
@Virtual({
|
|
13
|
+
get: function (this: Document) {
|
|
14
|
+
return this._id.toString();
|
|
15
|
+
},
|
|
16
|
+
})
|
|
17
|
+
readonly tournamentId: string;
|
|
17
18
|
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
@Prop({ type: Object })
|
|
20
|
+
title: Record<string, string>;
|
|
20
21
|
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
@Prop({ type: Object })
|
|
23
|
+
subtitle: Record<string, string>;
|
|
23
24
|
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
@Prop({ type: Object })
|
|
26
|
+
description: Record<string, string>;
|
|
26
27
|
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
@Prop()
|
|
29
|
+
tableSize: number;
|
|
29
30
|
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
@Prop()
|
|
32
|
+
bet: number;
|
|
32
33
|
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
@Prop()
|
|
35
|
+
ticketPrice: number;
|
|
35
36
|
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
@Prop()
|
|
38
|
+
roomType: string;
|
|
38
39
|
|
|
39
|
-
|
|
40
|
-
|
|
40
|
+
@Prop()
|
|
41
|
+
gameType: string;
|
|
41
42
|
|
|
42
|
-
|
|
43
|
-
|
|
43
|
+
@Prop()
|
|
44
|
+
rulesType: string;
|
|
44
45
|
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
@Prop()
|
|
47
|
+
deckType?: string;
|
|
47
48
|
|
|
48
|
-
|
|
49
|
+
// tournament props
|
|
49
50
|
|
|
50
|
-
|
|
51
|
-
|
|
51
|
+
@Prop()
|
|
52
|
+
isTemplate: boolean;
|
|
52
53
|
|
|
53
|
-
|
|
54
|
-
|
|
54
|
+
@Prop()
|
|
55
|
+
templateId?: string;
|
|
55
56
|
|
|
56
|
-
|
|
57
|
-
|
|
57
|
+
@Prop()
|
|
58
|
+
type: string;
|
|
58
59
|
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
@Prop()
|
|
61
|
+
participants: Array<ITournamentParticipant>;
|
|
61
62
|
|
|
62
|
-
|
|
63
|
-
|
|
63
|
+
@Prop()
|
|
64
|
+
maxParticipants: number;
|
|
64
65
|
|
|
65
|
-
|
|
66
|
-
|
|
66
|
+
@Prop()
|
|
67
|
+
status: string;
|
|
67
68
|
|
|
68
|
-
|
|
69
|
-
|
|
69
|
+
@Prop()
|
|
70
|
+
winners: Array<ITournamentWinner>;
|
|
70
71
|
|
|
71
|
-
|
|
72
|
-
|
|
72
|
+
@Prop()
|
|
73
|
+
createDate: Date;
|
|
73
74
|
|
|
74
|
-
|
|
75
|
-
|
|
75
|
+
@Prop()
|
|
76
|
+
startDate: Date;
|
|
76
77
|
|
|
77
|
-
|
|
78
|
-
|
|
78
|
+
@Prop()
|
|
79
|
+
finishDate: Date;
|
|
79
80
|
|
|
80
|
-
|
|
81
|
-
|
|
81
|
+
@Prop()
|
|
82
|
+
scheduleDate: Date;
|
|
82
83
|
}
|
|
83
84
|
|
|
84
|
-
export const TournamentManyTablesRoomSchema = SchemaFactory.createForClass(
|
|
85
|
+
export const TournamentManyTablesRoomSchema = SchemaFactory.createForClass(
|
|
86
|
+
TournamentManyTablesRoom,
|
|
87
|
+
);
|