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,57 +5,57 @@ export type NotificationDocument = HydratedDocument<Notification>;
|
|
|
5
5
|
|
|
6
6
|
@Schema()
|
|
7
7
|
export class Notification {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
@Virtual({
|
|
9
|
+
get: function (this: Document) {
|
|
10
|
+
return this._id.toString();
|
|
11
|
+
},
|
|
12
|
+
})
|
|
13
|
+
readonly notificationId: string;
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
@Prop()
|
|
16
|
+
title: string;
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
@Prop()
|
|
19
|
+
titleEn: string;
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
@Prop()
|
|
22
|
+
description: string;
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
@Prop()
|
|
25
|
+
descriptionEn: string;
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
@Prop()
|
|
28
|
+
createDate: Date;
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
@Prop()
|
|
31
|
+
likeCount: number;
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
@Prop()
|
|
34
|
+
linkVK?: string;
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
@Prop()
|
|
37
|
+
linkOK?: string;
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
@Prop()
|
|
40
|
+
linkYA?: string;
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
@Prop()
|
|
43
|
+
linkWeb?: string;
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
@Prop()
|
|
46
|
+
linkAndroid?: string;
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
@Prop()
|
|
49
|
+
linkTG?: string;
|
|
50
50
|
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
@Prop()
|
|
52
|
+
category: string;
|
|
53
53
|
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
@Prop()
|
|
55
|
+
channels: string;
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
@Prop()
|
|
58
|
+
game?: string;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
export const NotificationSchema = SchemaFactory.createForClass(Notification);
|
|
@@ -5,42 +5,33 @@ export type PremiumDocument = HydratedDocument<Premium>;
|
|
|
5
5
|
|
|
6
6
|
@Schema({ collection: 'premiums' })
|
|
7
7
|
export class Premium {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
@Virtual({
|
|
9
|
+
get: function (this: Document) {
|
|
10
|
+
return this._id.toString();
|
|
11
|
+
},
|
|
12
|
+
})
|
|
13
|
+
readonly premiumId: 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 PremiumSchema = SchemaFactory.createForClass(Premium);
|
|
37
|
+
export const PremiumSchema = SchemaFactory.createForClass(Premium);
|
|
@@ -5,125 +5,107 @@ export type ProductDocument = HydratedDocument<Product>;
|
|
|
5
5
|
|
|
6
6
|
@Schema()
|
|
7
7
|
export class Product {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
@Virtual({
|
|
9
|
+
get: function (this: Document) {
|
|
10
|
+
return this._id.toString();
|
|
11
|
+
},
|
|
12
|
+
})
|
|
13
|
+
readonly productId: 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({type: Object})
|
|
25
|
+
descriptionAcquired: Record<string, string>;
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
@Prop({type: Object})
|
|
28
|
+
buttonAcquired: Record<string, string>;
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
@Prop({type: Object})
|
|
31
|
+
button: Record<string, string>;
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
@Prop()
|
|
34
|
+
link: string;
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
@Prop()
|
|
37
|
+
linkVK: string;
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
@Prop()
|
|
40
|
+
channels: string;
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
@Prop()
|
|
43
|
+
code: string;
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
@Prop()
|
|
46
|
+
position: number;
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
@Prop()
|
|
49
|
+
active: boolean;
|
|
50
50
|
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
@Prop()
|
|
52
|
+
image: string;
|
|
53
53
|
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
@Prop()
|
|
55
|
+
icon: string;
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
@Prop()
|
|
58
|
+
external: boolean;
|
|
59
59
|
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
@Prop()
|
|
61
|
+
isConsumable: boolean;
|
|
62
62
|
|
|
63
|
-
|
|
64
|
-
position: number;
|
|
63
|
+
// поля для товара
|
|
65
64
|
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
@Prop()
|
|
66
|
+
parentId?: string | null;
|
|
68
67
|
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
@Prop()
|
|
69
|
+
price?: number;
|
|
71
70
|
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
@Prop()
|
|
72
|
+
priceVK?: number;
|
|
74
73
|
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
@Prop()
|
|
75
|
+
priceOK?: number;
|
|
77
76
|
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
@Prop()
|
|
78
|
+
priceYA?: number;
|
|
80
79
|
|
|
81
|
-
|
|
80
|
+
@Prop()
|
|
81
|
+
priceGooglePlay?: number;
|
|
82
82
|
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
@Prop()
|
|
84
|
+
priceFB?: number;
|
|
85
85
|
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
@Prop()
|
|
87
|
+
priceTG?: number;
|
|
88
88
|
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
@Prop()
|
|
90
|
+
priceRuStore?: number;
|
|
91
91
|
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
@Prop()
|
|
93
|
+
value?: number;
|
|
94
94
|
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
@Prop()
|
|
96
|
+
period?: string;
|
|
97
97
|
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
@Prop()
|
|
99
|
+
type?: string;
|
|
100
100
|
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
@Prop()
|
|
102
|
+
game?: string;
|
|
103
103
|
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
@Prop({ default: false })
|
|
105
|
+
isProduct: boolean;
|
|
106
106
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
@Prop()
|
|
111
|
-
value?: number;
|
|
112
|
-
|
|
113
|
-
@Prop()
|
|
114
|
-
period?: string;
|
|
115
|
-
|
|
116
|
-
@Prop()
|
|
117
|
-
type?: string;
|
|
118
|
-
|
|
119
|
-
@Prop()
|
|
120
|
-
game?: string;
|
|
121
|
-
|
|
122
|
-
@Prop({ default: false })
|
|
123
|
-
isProduct: boolean;
|
|
124
|
-
|
|
125
|
-
@Prop({ default: false })
|
|
126
|
-
enableOnlyForPremium: boolean;
|
|
107
|
+
@Prop({ default: false })
|
|
108
|
+
enableOnlyForPremium: boolean;
|
|
127
109
|
}
|
|
128
110
|
|
|
129
111
|
export const ProductSchema = SchemaFactory.createForClass(Product);
|
|
@@ -1,61 +1,61 @@
|
|
|
1
1
|
import { Prop, Schema, SchemaFactory, Virtual } from '@nestjs/mongoose';
|
|
2
|
-
import { Document, HydratedDocument
|
|
2
|
+
import { Document, HydratedDocument } from 'mongoose';
|
|
3
3
|
|
|
4
4
|
export type PurchaseDocument = HydratedDocument<Purchase>;
|
|
5
5
|
|
|
6
6
|
@Schema()
|
|
7
7
|
export class Purchase {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
@Virtual({
|
|
9
|
+
get: function (this: Document) {
|
|
10
|
+
return this._id.toString();
|
|
11
|
+
},
|
|
12
|
+
})
|
|
13
|
+
readonly purchaseId: string;
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
@Prop({ default: new Date() })
|
|
16
|
+
date: Date;
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
@Prop()
|
|
19
|
+
userId: string;
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
@Prop()
|
|
22
|
+
userName: string;
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
@Prop()
|
|
25
|
+
productId: string;
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
@Prop()
|
|
28
|
+
productCode: string;
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
@Prop()
|
|
31
|
+
productName: string;
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
@Prop()
|
|
34
|
+
price: number;
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
@Prop()
|
|
37
|
+
currency: string;
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
@Prop()
|
|
40
|
+
vkOrderId?: number;
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
@Prop()
|
|
43
|
+
yaOrderId?: string;
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
@Prop()
|
|
46
|
+
ruStoreOrderId?: string;
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
@Prop()
|
|
49
|
+
token: string;
|
|
50
50
|
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
@Prop()
|
|
52
|
+
game: string;
|
|
53
53
|
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
@Prop()
|
|
55
|
+
removed: boolean;
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
@Prop()
|
|
58
|
+
tournamentId?: string;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
export const PurchaseSchema = SchemaFactory.createForClass(Purchase);
|
|
@@ -5,27 +5,28 @@ export type PurchaseChannelDocument = HydratedDocument<PurchaseChannel>;
|
|
|
5
5
|
|
|
6
6
|
@Schema()
|
|
7
7
|
export class PurchaseChannel {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
@Virtual({
|
|
9
|
+
get: function (this: Document) {
|
|
10
|
+
return this._id.toString();
|
|
11
|
+
},
|
|
12
|
+
})
|
|
13
|
+
readonly achievementId: string;
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
@Prop()
|
|
16
|
+
userId: string;
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
@Prop()
|
|
19
|
+
purchaseId: string;
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
@Prop()
|
|
22
|
+
productId: string;
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
@Prop()
|
|
25
|
+
channel: string;
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
@Prop()
|
|
28
|
+
game: string;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
export const PurchaseChannelSchema =
|
|
31
|
+
export const PurchaseChannelSchema =
|
|
32
|
+
SchemaFactory.createForClass(PurchaseChannel);
|
|
@@ -5,33 +5,33 @@ export type RatingDocument = HydratedDocument<Rating>;
|
|
|
5
5
|
|
|
6
6
|
@Schema()
|
|
7
7
|
export class Rating {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
@Virtual({
|
|
9
|
+
get: function (this: Document) {
|
|
10
|
+
return this._id.toString();
|
|
11
|
+
},
|
|
12
|
+
})
|
|
13
|
+
readonly achievementId: string;
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
@Prop()
|
|
16
|
+
date: Date;
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
@Prop()
|
|
19
|
+
userId: string;
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
@Prop()
|
|
22
|
+
userName: string;
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
@Prop()
|
|
25
|
+
userAvatarUrl: string;
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
@Prop()
|
|
28
|
+
profit: number;
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
@Prop()
|
|
31
|
+
game: string;
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
@Prop()
|
|
34
|
+
channels: string;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
export const RatingSchema = SchemaFactory.createForClass(Rating);
|
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
import { Prop, Schema, SchemaFactory, Virtual } from '@nestjs/mongoose';
|
|
2
|
-
import { Document, HydratedDocument
|
|
2
|
+
import { Document, HydratedDocument } from 'mongoose';
|
|
3
3
|
|
|
4
4
|
export type RoomDocument = HydratedDocument<Room>;
|
|
5
5
|
|
|
6
6
|
export interface Locale {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
ru: string;
|
|
8
|
+
en: string;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
@Schema()
|
|
12
12
|
export class Room {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
@Virtual({
|
|
14
|
+
get: function (this: Document) {
|
|
15
|
+
return this._id.toString();
|
|
16
|
+
},
|
|
17
|
+
})
|
|
18
|
+
readonly roomId: string;
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
@Prop()
|
|
21
|
+
type: string;
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
@Prop()
|
|
24
|
+
name: string;
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
@Prop()
|
|
27
|
+
nameEn: string;
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
@Prop({ type: Object })
|
|
30
|
+
title: Record<string, string>;
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
@Prop({ type: Object })
|
|
33
|
+
subtitle: Record<string, string>;
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
@Prop()
|
|
36
|
+
roomType: string;
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
@Prop()
|
|
39
|
+
maxPlayers: number;
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
@Prop()
|
|
42
|
+
bet: number;
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
@Prop()
|
|
45
|
+
halfBet: number;
|
|
46
46
|
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
@Prop()
|
|
48
|
+
limit: number;
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
@Prop()
|
|
51
|
+
balanceProductId: string;
|
|
52
52
|
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
@Prop()
|
|
54
|
+
gameType: string;
|
|
55
55
|
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
@Prop()
|
|
57
|
+
rulesType: string;
|
|
58
58
|
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
@Prop()
|
|
60
|
+
deckType?: string;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
export const RoomSchema = SchemaFactory.createForClass(Room);
|