jp.db.schemas 2.1.13 → 2.1.15
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/models/activity-log-user-login.interface copy.d.ts +11 -0
- package/dist/models/activity-log-user-login.interface copy.d.ts.map +1 -0
- package/dist/models/activity-log-user-login.interface copy.js +3 -0
- package/dist/models/activity-log-user-login.interface copy.js.map +1 -0
- package/dist/repositories/premium.repository.d.ts +1 -1
- package/dist/repositories/premium.repository.d.ts.map +1 -1
- package/dist/repositories/premium.repository.js +2 -5
- package/dist/repositories/premium.repository.js.map +1 -1
- package/dist/repositories/purchase.repository.d.ts +1 -1
- package/dist/repositories/purchase.repository.js +1 -1
- package/dist/repositories/rule.repository.d.ts +1 -1
- package/dist/repositories/rule.repository.d.ts.map +1 -1
- package/dist/repositories/rule.repository.js +2 -5
- package/dist/repositories/rule.repository.js.map +1 -1
- package/dist/repositories/welcome.repository.d.ts +1 -1
- package/dist/repositories/welcome.repository.d.ts.map +1 -1
- package/dist/repositories/welcome.repository.js +2 -5
- package/dist/repositories/welcome.repository.js.map +1 -1
- package/package.json +31 -31
- package/readme.md +3 -3
- package/src/index.ts +251 -251
- package/src/models/activity-log-user-login.interface copy.ts +10 -0
- 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 +4 -4
- 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 +5 -5
- package/src/models/tournament-status.enum.ts +6 -6
- package/src/models/tournament-template.enum.ts +3 -3
- package/src/models/tournament-winner.interface.ts +7 -7
- package/src/repositories/achievement.repository.ts +18 -18
- package/src/repositories/activity-log.repository.ts +110 -110
- package/src/repositories/admin.repository.ts +23 -23
- package/src/repositories/article.repository.ts +33 -33
- package/src/repositories/balance-history.repository.ts +15 -15
- package/src/repositories/banners.repository.ts +54 -54
- package/src/repositories/complains.repository.ts +30 -30
- package/src/repositories/daily-bonus.repository.ts +25 -25
- package/src/repositories/friend.repository.ts +19 -19
- package/src/repositories/game-result.repository.ts +15 -15
- package/src/repositories/game-statistic.repository.ts +21 -21
- package/src/repositories/index.ts +57 -57
- package/src/repositories/menu.repository.ts +21 -21
- package/src/repositories/notification.repository.ts +54 -54
- package/src/repositories/premium.repository.ts +17 -19
- package/src/repositories/products.repository.ts +29 -29
- package/src/repositories/purchase.repository.ts +95 -95
- package/src/repositories/rating.repository.ts +83 -83
- package/src/repositories/rooms.repository.ts +17 -17
- package/src/repositories/rule.repository.ts +17 -19
- package/src/repositories/scheduled-tournaments.repository.ts +30 -30
- package/src/repositories/servers.repository.ts +18 -18
- package/src/repositories/setting.repository.ts +19 -19
- package/src/repositories/simple-rooms.repository.ts +17 -17
- package/src/repositories/tournament-many-tables-rooms.repository.ts +132 -132
- package/src/repositories/tournament-one-table-rooms.repository.ts +106 -106
- package/src/repositories/users.repository.ts +151 -151
- package/src/repositories/welcome.repository.ts +17 -19
- package/src/schemas/achievement.schema.ts +40 -40
- package/src/schemas/activity_log.schema.ts +37 -37
- package/src/schemas/admin.schema.ts +22 -22
- package/src/schemas/article.schema.ts +37 -37
- package/src/schemas/balance_history.schema.ts +37 -37
- package/src/schemas/banner.schema.ts +40 -40
- package/src/schemas/channel_message.schema.ts +31 -31
- package/src/schemas/complain.schema.ts +46 -46
- package/src/schemas/daily_bonus.schema.ts +56 -56
- package/src/schemas/feature.schema.ts +28 -28
- package/src/schemas/friend.schema.ts +50 -50
- package/src/schemas/game_result.schema.ts +68 -68
- package/src/schemas/game_statistic.schema.ts +40 -40
- package/src/schemas/menu.schema.ts +40 -40
- package/src/schemas/notification.schema.ts +61 -61
- package/src/schemas/premium.schema.ts +45 -45
- package/src/schemas/product.schema.ts +123 -123
- package/src/schemas/purchase.schema.ts +58 -58
- package/src/schemas/purchase_channel.schema.ts +31 -31
- package/src/schemas/rating.schema.ts +37 -37
- package/src/schemas/rooms.schema.ts +63 -63
- package/src/schemas/rule.schema.ts +45 -45
- package/src/schemas/scheduled_tournament.schema.ts +93 -93
- package/src/schemas/server.schema.ts +22 -22
- package/src/schemas/setting.schema.ts +55 -55
- package/src/schemas/simple_rooms.schema.ts +46 -46
- package/src/schemas/tournament_many_tables_rooms.schema.ts +84 -84
- package/src/schemas/tournament_one_table_rooms.schema.ts +81 -81
- package/src/schemas/user.fb.schema.ts +33 -33
- package/src/schemas/user.google.schema.ts +24 -24
- package/src/schemas/user.ok.schema.ts +52 -52
- package/src/schemas/user.schema.ts +182 -182
- package/src/schemas/user.tg.schema.ts +30 -30
- package/src/schemas/user.vk.schema.ts +70 -70
- package/src/schemas/user.ya.schema.ts +24 -24
- package/src/schemas/welcome.schema.ts +45 -45
- package/src/utils.ts +3 -3
package/src/index.ts
CHANGED
|
@@ -1,251 +1,251 @@
|
|
|
1
|
-
import { User, UserSchema } from './schemas/user.schema';
|
|
2
|
-
import type { UserDocument } from './schemas/user.schema';
|
|
3
|
-
import { FBUser, FBUserSchema } from './schemas/user.fb.schema';
|
|
4
|
-
import type { FBUserDocument } from './schemas/user.fb.schema';
|
|
5
|
-
import { GoogleUser, GoogleUserSchema } from './schemas/user.google.schema';
|
|
6
|
-
import type { GoogleUserDocument } from './schemas/user.google.schema';
|
|
7
|
-
import { OKUser, OKUserSchema } from './schemas/user.ok.schema';
|
|
8
|
-
import type { OKUserDocument } from './schemas/user.ok.schema';
|
|
9
|
-
import { TGUser, TGUserSchema } from './schemas/user.tg.schema';
|
|
10
|
-
import type { TGUserDocument } from './schemas/user.tg.schema';
|
|
11
|
-
import { VKUser, VKUserSchema } from './schemas/user.vk.schema';
|
|
12
|
-
import type { VKUserDocument } from './schemas/user.vk.schema';
|
|
13
|
-
import { YAUser, YAUserSchema } from './schemas/user.ya.schema';
|
|
14
|
-
import type { YAUserDocument } from './schemas/user.ya.schema';
|
|
15
|
-
import { Purchase, PurchaseSchema } from './schemas/purchase.schema';
|
|
16
|
-
import type { PurchaseDocument } from './schemas/purchase.schema';
|
|
17
|
-
import { Complain, ComplainSchema } from './schemas/complain.schema';
|
|
18
|
-
import type { ComplainDocument } from './schemas/complain.schema';
|
|
19
|
-
import { Notification, NotificationSchema } from './schemas/notification.schema';
|
|
20
|
-
import type { NotificationDocument } from './schemas/notification.schema';
|
|
21
|
-
import { ScheduledTournament, ScheduledTournamentSchema } from './schemas/scheduled_tournament.schema';
|
|
22
|
-
import type { ScheduledTournamentDocument } from './schemas/scheduled_tournament.schema';
|
|
23
|
-
import { Admin, AdminSchema } from './schemas/admin.schema';
|
|
24
|
-
import type { AdminDocument } from './schemas/admin.schema';
|
|
25
|
-
import { Room, RoomSchema } from './schemas/rooms.schema';
|
|
26
|
-
import type { RoomDocument } from './schemas/rooms.schema';
|
|
27
|
-
import { Article, ArticleSchema } from './schemas/article.schema';
|
|
28
|
-
import type { ArticleDocument } from './schemas/article.schema';
|
|
29
|
-
import { Banner, BannerSchema } from './schemas/banner.schema';
|
|
30
|
-
import type { BannerDocument } from './schemas/banner.schema';
|
|
31
|
-
import { Server, ServerSchema } from './schemas/server.schema';
|
|
32
|
-
import type { ServerDocument } from './schemas/server.schema';
|
|
33
|
-
import { Achievement, AchievementSchema } from './schemas/achievement.schema';
|
|
34
|
-
import type { AchievementDocument } from './schemas/achievement.schema';
|
|
35
|
-
import { ChannelMessage, ChannelMessageSchema } from './schemas/channel_message.schema';
|
|
36
|
-
import type { ChannelMessageDocument } from './schemas/channel_message.schema';
|
|
37
|
-
import { Feature, FeatureSchema } from './schemas/feature.schema';
|
|
38
|
-
import type { FeatureDocument } from './schemas/feature.schema';
|
|
39
|
-
import { Product, ProductSchema } from './schemas/product.schema';
|
|
40
|
-
import type { ProductDocument } from './schemas/product.schema';
|
|
41
|
-
import { PurchaseChannel, PurchaseChannelSchema } from './schemas/purchase_channel.schema';
|
|
42
|
-
import type { PurchaseChannelDocument } from './schemas/purchase_channel.schema';
|
|
43
|
-
import { Rating, RatingSchema } from './schemas/rating.schema';
|
|
44
|
-
import type { RatingDocument } from './schemas/rating.schema';
|
|
45
|
-
import type { IRatingMonthlyResult } from './models/rating-monthly-result.interface';
|
|
46
|
-
import { Setting, SettingSchema } from './schemas/setting.schema';
|
|
47
|
-
import type { SettingDocument } from './schemas/setting.schema';
|
|
48
|
-
import { Premium, PremiumSchema } from './schemas/premium.schema';
|
|
49
|
-
import type { PremiumDocument } from './schemas/premium.schema';
|
|
50
|
-
import { GameStatistic, GameStatisticSchema } from './schemas/game_statistic.schema';
|
|
51
|
-
import type { GameStatisticDocument } from './schemas/game_statistic.schema';
|
|
52
|
-
import { Menu, MenuSchema } from './schemas/menu.schema';
|
|
53
|
-
import type { MenuDocument } from './schemas/menu.schema';
|
|
54
|
-
import { GameResult, GameResultSchema } from './schemas/game_result.schema';
|
|
55
|
-
import type { GameResultDocument } from './schemas/game_result.schema';
|
|
56
|
-
import { BalanceHistory, BalanceHistorySchema } from './schemas/balance_history.schema';
|
|
57
|
-
import type { BalanceHistoryDocument } from './schemas/balance_history.schema';
|
|
58
|
-
import { SimpleRoom, SimpleRoomSchema } from './schemas/simple_rooms.schema';
|
|
59
|
-
import type { SimpleRoomDocument } from './schemas/simple_rooms.schema';
|
|
60
|
-
import { TournamentOneTableRoom, TournamentOneTableRoomSchema, } from './schemas/tournament_one_table_rooms.schema';
|
|
61
|
-
import type { TournamentOneTableRoomDocument } from './schemas/tournament_one_table_rooms.schema';
|
|
62
|
-
import { TournamentManyTablesRoom, TournamentManyTablesRoomSchema } from './schemas/tournament_many_tables_rooms.schema';
|
|
63
|
-
import type { TournamentManyTablesRoomDocument } from './schemas/tournament_many_tables_rooms.schema';
|
|
64
|
-
import { DailyBonus, DailyBonusSchema } from './schemas/daily_bonus.schema';
|
|
65
|
-
import type { DailyBonusDocument } from './schemas/daily_bonus.schema';
|
|
66
|
-
import { Rule, RuleSchema } from './schemas/rule.schema';
|
|
67
|
-
import type { RuleDocument } from './schemas/rule.schema';
|
|
68
|
-
import { Friend, FriendSchema } from './schemas/friend.schema';
|
|
69
|
-
import type { FriendDocument } from './schemas/friend.schema';
|
|
70
|
-
import { Welcome, WelcomeSchema } from './schemas/welcome.schema';
|
|
71
|
-
import type { WelcomeDocument } from './schemas/welcome.schema';
|
|
72
|
-
import { ActivityLog, ActivityLogSchema } from './schemas/activity_log.schema';
|
|
73
|
-
import type { ActivityLogDocument } from './schemas/activity_log.schema';
|
|
74
|
-
import type { IActivityLogUserLogin } from './models/activity-log-user-login.interface';
|
|
75
|
-
|
|
76
|
-
import {
|
|
77
|
-
AdminRepository,
|
|
78
|
-
ArticleRepository,
|
|
79
|
-
BannersRepository,
|
|
80
|
-
ComplainsRepository,
|
|
81
|
-
NotificationRepository,
|
|
82
|
-
ProductsRepository,
|
|
83
|
-
ScheduledTournamentsRepository,
|
|
84
|
-
ServersRepository,
|
|
85
|
-
UsersRepository,
|
|
86
|
-
MenuRepository,
|
|
87
|
-
GameStatisticRepository,
|
|
88
|
-
FriendRepository,
|
|
89
|
-
WelcomeRepository,
|
|
90
|
-
RatingRepository,
|
|
91
|
-
PremiumRepository,
|
|
92
|
-
RuleRepository,
|
|
93
|
-
DailyBonusRepository,
|
|
94
|
-
SettingRepository,
|
|
95
|
-
RoomsRepository,
|
|
96
|
-
GameResultRepository,
|
|
97
|
-
BalanceHistoryRepository,
|
|
98
|
-
SimpleRoomsRepository,
|
|
99
|
-
TournamentOneTableRoomsRepository,
|
|
100
|
-
TournamentManyTablesRoomsRepository,
|
|
101
|
-
ActivityLogRepository,
|
|
102
|
-
AchievementRepository,
|
|
103
|
-
PurchaseRepository,
|
|
104
|
-
} from './repositories'
|
|
105
|
-
|
|
106
|
-
export type {
|
|
107
|
-
UserDocument,
|
|
108
|
-
FBUserDocument,
|
|
109
|
-
GoogleUserDocument,
|
|
110
|
-
OKUserDocument,
|
|
111
|
-
TGUserDocument,
|
|
112
|
-
VKUserDocument,
|
|
113
|
-
YAUserDocument,
|
|
114
|
-
PurchaseDocument,
|
|
115
|
-
ComplainDocument,
|
|
116
|
-
NotificationDocument,
|
|
117
|
-
ScheduledTournamentDocument,
|
|
118
|
-
AdminDocument,
|
|
119
|
-
RoomDocument,
|
|
120
|
-
ArticleDocument,
|
|
121
|
-
BannerDocument,
|
|
122
|
-
ServerDocument,
|
|
123
|
-
AchievementDocument,
|
|
124
|
-
ChannelMessageDocument,
|
|
125
|
-
FeatureDocument,
|
|
126
|
-
ProductDocument,
|
|
127
|
-
PurchaseChannelDocument,
|
|
128
|
-
RatingDocument,
|
|
129
|
-
GameStatisticDocument,
|
|
130
|
-
SettingDocument,
|
|
131
|
-
PremiumDocument,
|
|
132
|
-
MenuDocument,
|
|
133
|
-
WelcomeDocument,
|
|
134
|
-
RuleDocument,
|
|
135
|
-
FriendDocument,
|
|
136
|
-
DailyBonusDocument,
|
|
137
|
-
GameResultDocument,
|
|
138
|
-
BalanceHistoryDocument,
|
|
139
|
-
SimpleRoomDocument,
|
|
140
|
-
TournamentOneTableRoomDocument,
|
|
141
|
-
TournamentManyTablesRoomDocument,
|
|
142
|
-
ActivityLogDocument,
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
export {
|
|
146
|
-
User,
|
|
147
|
-
UserSchema,
|
|
148
|
-
FBUser,
|
|
149
|
-
FBUserSchema,
|
|
150
|
-
GoogleUser,
|
|
151
|
-
GoogleUserSchema,
|
|
152
|
-
OKUser,
|
|
153
|
-
OKUserSchema,
|
|
154
|
-
TGUser,
|
|
155
|
-
TGUserSchema,
|
|
156
|
-
VKUser,
|
|
157
|
-
VKUserSchema,
|
|
158
|
-
YAUser,
|
|
159
|
-
YAUserSchema,
|
|
160
|
-
Purchase,
|
|
161
|
-
PurchaseSchema,
|
|
162
|
-
Complain,
|
|
163
|
-
ComplainSchema,
|
|
164
|
-
Notification,
|
|
165
|
-
NotificationSchema,
|
|
166
|
-
ScheduledTournament,
|
|
167
|
-
ScheduledTournamentSchema,
|
|
168
|
-
Admin,
|
|
169
|
-
AdminSchema,
|
|
170
|
-
Room,
|
|
171
|
-
RoomSchema,
|
|
172
|
-
Article,
|
|
173
|
-
ArticleSchema,
|
|
174
|
-
Banner,
|
|
175
|
-
BannerSchema,
|
|
176
|
-
Server,
|
|
177
|
-
ServerSchema,
|
|
178
|
-
Achievement,
|
|
179
|
-
AchievementSchema,
|
|
180
|
-
ChannelMessage,
|
|
181
|
-
ChannelMessageSchema,
|
|
182
|
-
Feature,
|
|
183
|
-
FeatureSchema,
|
|
184
|
-
Product,
|
|
185
|
-
ProductSchema,
|
|
186
|
-
PurchaseChannel,
|
|
187
|
-
PurchaseChannelSchema,
|
|
188
|
-
Rating,
|
|
189
|
-
RatingSchema,
|
|
190
|
-
IRatingMonthlyResult,
|
|
191
|
-
Setting,
|
|
192
|
-
SettingSchema,
|
|
193
|
-
GameStatistic,
|
|
194
|
-
GameStatisticSchema,
|
|
195
|
-
Menu,
|
|
196
|
-
MenuSchema,
|
|
197
|
-
DailyBonus,
|
|
198
|
-
DailyBonusSchema,
|
|
199
|
-
Rule,
|
|
200
|
-
RuleSchema,
|
|
201
|
-
Premium,
|
|
202
|
-
PremiumSchema,
|
|
203
|
-
Welcome,
|
|
204
|
-
WelcomeSchema,
|
|
205
|
-
Friend,
|
|
206
|
-
FriendSchema,
|
|
207
|
-
GameResult,
|
|
208
|
-
GameResultSchema,
|
|
209
|
-
BalanceHistory,
|
|
210
|
-
BalanceHistorySchema,
|
|
211
|
-
SimpleRoom,
|
|
212
|
-
SimpleRoomSchema,
|
|
213
|
-
TournamentOneTableRoom,
|
|
214
|
-
TournamentOneTableRoomSchema,
|
|
215
|
-
TournamentManyTablesRoom,
|
|
216
|
-
TournamentManyTablesRoomSchema,
|
|
217
|
-
ActivityLog,
|
|
218
|
-
ActivityLogSchema,
|
|
219
|
-
IActivityLogUserLogin,
|
|
220
|
-
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
export {
|
|
224
|
-
AdminRepository,
|
|
225
|
-
ArticleRepository,
|
|
226
|
-
BannersRepository,
|
|
227
|
-
ComplainsRepository,
|
|
228
|
-
NotificationRepository,
|
|
229
|
-
ProductsRepository,
|
|
230
|
-
ScheduledTournamentsRepository,
|
|
231
|
-
ServersRepository,
|
|
232
|
-
UsersRepository,
|
|
233
|
-
MenuRepository,
|
|
234
|
-
DailyBonusRepository,
|
|
235
|
-
PremiumRepository,
|
|
236
|
-
RuleRepository,
|
|
237
|
-
RatingRepository,
|
|
238
|
-
GameStatisticRepository,
|
|
239
|
-
FriendRepository,
|
|
240
|
-
WelcomeRepository,
|
|
241
|
-
SettingRepository,
|
|
242
|
-
RoomsRepository,
|
|
243
|
-
GameResultRepository,
|
|
244
|
-
BalanceHistoryRepository,
|
|
245
|
-
SimpleRoomsRepository,
|
|
246
|
-
TournamentOneTableRoomsRepository,
|
|
247
|
-
TournamentManyTablesRoomsRepository,
|
|
248
|
-
ActivityLogRepository,
|
|
249
|
-
AchievementRepository,
|
|
250
|
-
PurchaseRepository,
|
|
251
|
-
}
|
|
1
|
+
import { User, UserSchema } from './schemas/user.schema';
|
|
2
|
+
import type { UserDocument } from './schemas/user.schema';
|
|
3
|
+
import { FBUser, FBUserSchema } from './schemas/user.fb.schema';
|
|
4
|
+
import type { FBUserDocument } from './schemas/user.fb.schema';
|
|
5
|
+
import { GoogleUser, GoogleUserSchema } from './schemas/user.google.schema';
|
|
6
|
+
import type { GoogleUserDocument } from './schemas/user.google.schema';
|
|
7
|
+
import { OKUser, OKUserSchema } from './schemas/user.ok.schema';
|
|
8
|
+
import type { OKUserDocument } from './schemas/user.ok.schema';
|
|
9
|
+
import { TGUser, TGUserSchema } from './schemas/user.tg.schema';
|
|
10
|
+
import type { TGUserDocument } from './schemas/user.tg.schema';
|
|
11
|
+
import { VKUser, VKUserSchema } from './schemas/user.vk.schema';
|
|
12
|
+
import type { VKUserDocument } from './schemas/user.vk.schema';
|
|
13
|
+
import { YAUser, YAUserSchema } from './schemas/user.ya.schema';
|
|
14
|
+
import type { YAUserDocument } from './schemas/user.ya.schema';
|
|
15
|
+
import { Purchase, PurchaseSchema } from './schemas/purchase.schema';
|
|
16
|
+
import type { PurchaseDocument } from './schemas/purchase.schema';
|
|
17
|
+
import { Complain, ComplainSchema } from './schemas/complain.schema';
|
|
18
|
+
import type { ComplainDocument } from './schemas/complain.schema';
|
|
19
|
+
import { Notification, NotificationSchema } from './schemas/notification.schema';
|
|
20
|
+
import type { NotificationDocument } from './schemas/notification.schema';
|
|
21
|
+
import { ScheduledTournament, ScheduledTournamentSchema } from './schemas/scheduled_tournament.schema';
|
|
22
|
+
import type { ScheduledTournamentDocument } from './schemas/scheduled_tournament.schema';
|
|
23
|
+
import { Admin, AdminSchema } from './schemas/admin.schema';
|
|
24
|
+
import type { AdminDocument } from './schemas/admin.schema';
|
|
25
|
+
import { Room, RoomSchema } from './schemas/rooms.schema';
|
|
26
|
+
import type { RoomDocument } from './schemas/rooms.schema';
|
|
27
|
+
import { Article, ArticleSchema } from './schemas/article.schema';
|
|
28
|
+
import type { ArticleDocument } from './schemas/article.schema';
|
|
29
|
+
import { Banner, BannerSchema } from './schemas/banner.schema';
|
|
30
|
+
import type { BannerDocument } from './schemas/banner.schema';
|
|
31
|
+
import { Server, ServerSchema } from './schemas/server.schema';
|
|
32
|
+
import type { ServerDocument } from './schemas/server.schema';
|
|
33
|
+
import { Achievement, AchievementSchema } from './schemas/achievement.schema';
|
|
34
|
+
import type { AchievementDocument } from './schemas/achievement.schema';
|
|
35
|
+
import { ChannelMessage, ChannelMessageSchema } from './schemas/channel_message.schema';
|
|
36
|
+
import type { ChannelMessageDocument } from './schemas/channel_message.schema';
|
|
37
|
+
import { Feature, FeatureSchema } from './schemas/feature.schema';
|
|
38
|
+
import type { FeatureDocument } from './schemas/feature.schema';
|
|
39
|
+
import { Product, ProductSchema } from './schemas/product.schema';
|
|
40
|
+
import type { ProductDocument } from './schemas/product.schema';
|
|
41
|
+
import { PurchaseChannel, PurchaseChannelSchema } from './schemas/purchase_channel.schema';
|
|
42
|
+
import type { PurchaseChannelDocument } from './schemas/purchase_channel.schema';
|
|
43
|
+
import { Rating, RatingSchema } from './schemas/rating.schema';
|
|
44
|
+
import type { RatingDocument } from './schemas/rating.schema';
|
|
45
|
+
import type { IRatingMonthlyResult } from './models/rating-monthly-result.interface';
|
|
46
|
+
import { Setting, SettingSchema } from './schemas/setting.schema';
|
|
47
|
+
import type { SettingDocument } from './schemas/setting.schema';
|
|
48
|
+
import { Premium, PremiumSchema } from './schemas/premium.schema';
|
|
49
|
+
import type { PremiumDocument } from './schemas/premium.schema';
|
|
50
|
+
import { GameStatistic, GameStatisticSchema } from './schemas/game_statistic.schema';
|
|
51
|
+
import type { GameStatisticDocument } from './schemas/game_statistic.schema';
|
|
52
|
+
import { Menu, MenuSchema } from './schemas/menu.schema';
|
|
53
|
+
import type { MenuDocument } from './schemas/menu.schema';
|
|
54
|
+
import { GameResult, GameResultSchema } from './schemas/game_result.schema';
|
|
55
|
+
import type { GameResultDocument } from './schemas/game_result.schema';
|
|
56
|
+
import { BalanceHistory, BalanceHistorySchema } from './schemas/balance_history.schema';
|
|
57
|
+
import type { BalanceHistoryDocument } from './schemas/balance_history.schema';
|
|
58
|
+
import { SimpleRoom, SimpleRoomSchema } from './schemas/simple_rooms.schema';
|
|
59
|
+
import type { SimpleRoomDocument } from './schemas/simple_rooms.schema';
|
|
60
|
+
import { TournamentOneTableRoom, TournamentOneTableRoomSchema, } from './schemas/tournament_one_table_rooms.schema';
|
|
61
|
+
import type { TournamentOneTableRoomDocument } from './schemas/tournament_one_table_rooms.schema';
|
|
62
|
+
import { TournamentManyTablesRoom, TournamentManyTablesRoomSchema } from './schemas/tournament_many_tables_rooms.schema';
|
|
63
|
+
import type { TournamentManyTablesRoomDocument } from './schemas/tournament_many_tables_rooms.schema';
|
|
64
|
+
import { DailyBonus, DailyBonusSchema } from './schemas/daily_bonus.schema';
|
|
65
|
+
import type { DailyBonusDocument } from './schemas/daily_bonus.schema';
|
|
66
|
+
import { Rule, RuleSchema } from './schemas/rule.schema';
|
|
67
|
+
import type { RuleDocument } from './schemas/rule.schema';
|
|
68
|
+
import { Friend, FriendSchema } from './schemas/friend.schema';
|
|
69
|
+
import type { FriendDocument } from './schemas/friend.schema';
|
|
70
|
+
import { Welcome, WelcomeSchema } from './schemas/welcome.schema';
|
|
71
|
+
import type { WelcomeDocument } from './schemas/welcome.schema';
|
|
72
|
+
import { ActivityLog, ActivityLogSchema } from './schemas/activity_log.schema';
|
|
73
|
+
import type { ActivityLogDocument } from './schemas/activity_log.schema';
|
|
74
|
+
import type { IActivityLogUserLogin } from './models/activity-log-user-login.interface';
|
|
75
|
+
|
|
76
|
+
import {
|
|
77
|
+
AdminRepository,
|
|
78
|
+
ArticleRepository,
|
|
79
|
+
BannersRepository,
|
|
80
|
+
ComplainsRepository,
|
|
81
|
+
NotificationRepository,
|
|
82
|
+
ProductsRepository,
|
|
83
|
+
ScheduledTournamentsRepository,
|
|
84
|
+
ServersRepository,
|
|
85
|
+
UsersRepository,
|
|
86
|
+
MenuRepository,
|
|
87
|
+
GameStatisticRepository,
|
|
88
|
+
FriendRepository,
|
|
89
|
+
WelcomeRepository,
|
|
90
|
+
RatingRepository,
|
|
91
|
+
PremiumRepository,
|
|
92
|
+
RuleRepository,
|
|
93
|
+
DailyBonusRepository,
|
|
94
|
+
SettingRepository,
|
|
95
|
+
RoomsRepository,
|
|
96
|
+
GameResultRepository,
|
|
97
|
+
BalanceHistoryRepository,
|
|
98
|
+
SimpleRoomsRepository,
|
|
99
|
+
TournamentOneTableRoomsRepository,
|
|
100
|
+
TournamentManyTablesRoomsRepository,
|
|
101
|
+
ActivityLogRepository,
|
|
102
|
+
AchievementRepository,
|
|
103
|
+
PurchaseRepository,
|
|
104
|
+
} from './repositories'
|
|
105
|
+
|
|
106
|
+
export type {
|
|
107
|
+
UserDocument,
|
|
108
|
+
FBUserDocument,
|
|
109
|
+
GoogleUserDocument,
|
|
110
|
+
OKUserDocument,
|
|
111
|
+
TGUserDocument,
|
|
112
|
+
VKUserDocument,
|
|
113
|
+
YAUserDocument,
|
|
114
|
+
PurchaseDocument,
|
|
115
|
+
ComplainDocument,
|
|
116
|
+
NotificationDocument,
|
|
117
|
+
ScheduledTournamentDocument,
|
|
118
|
+
AdminDocument,
|
|
119
|
+
RoomDocument,
|
|
120
|
+
ArticleDocument,
|
|
121
|
+
BannerDocument,
|
|
122
|
+
ServerDocument,
|
|
123
|
+
AchievementDocument,
|
|
124
|
+
ChannelMessageDocument,
|
|
125
|
+
FeatureDocument,
|
|
126
|
+
ProductDocument,
|
|
127
|
+
PurchaseChannelDocument,
|
|
128
|
+
RatingDocument,
|
|
129
|
+
GameStatisticDocument,
|
|
130
|
+
SettingDocument,
|
|
131
|
+
PremiumDocument,
|
|
132
|
+
MenuDocument,
|
|
133
|
+
WelcomeDocument,
|
|
134
|
+
RuleDocument,
|
|
135
|
+
FriendDocument,
|
|
136
|
+
DailyBonusDocument,
|
|
137
|
+
GameResultDocument,
|
|
138
|
+
BalanceHistoryDocument,
|
|
139
|
+
SimpleRoomDocument,
|
|
140
|
+
TournamentOneTableRoomDocument,
|
|
141
|
+
TournamentManyTablesRoomDocument,
|
|
142
|
+
ActivityLogDocument,
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export {
|
|
146
|
+
User,
|
|
147
|
+
UserSchema,
|
|
148
|
+
FBUser,
|
|
149
|
+
FBUserSchema,
|
|
150
|
+
GoogleUser,
|
|
151
|
+
GoogleUserSchema,
|
|
152
|
+
OKUser,
|
|
153
|
+
OKUserSchema,
|
|
154
|
+
TGUser,
|
|
155
|
+
TGUserSchema,
|
|
156
|
+
VKUser,
|
|
157
|
+
VKUserSchema,
|
|
158
|
+
YAUser,
|
|
159
|
+
YAUserSchema,
|
|
160
|
+
Purchase,
|
|
161
|
+
PurchaseSchema,
|
|
162
|
+
Complain,
|
|
163
|
+
ComplainSchema,
|
|
164
|
+
Notification,
|
|
165
|
+
NotificationSchema,
|
|
166
|
+
ScheduledTournament,
|
|
167
|
+
ScheduledTournamentSchema,
|
|
168
|
+
Admin,
|
|
169
|
+
AdminSchema,
|
|
170
|
+
Room,
|
|
171
|
+
RoomSchema,
|
|
172
|
+
Article,
|
|
173
|
+
ArticleSchema,
|
|
174
|
+
Banner,
|
|
175
|
+
BannerSchema,
|
|
176
|
+
Server,
|
|
177
|
+
ServerSchema,
|
|
178
|
+
Achievement,
|
|
179
|
+
AchievementSchema,
|
|
180
|
+
ChannelMessage,
|
|
181
|
+
ChannelMessageSchema,
|
|
182
|
+
Feature,
|
|
183
|
+
FeatureSchema,
|
|
184
|
+
Product,
|
|
185
|
+
ProductSchema,
|
|
186
|
+
PurchaseChannel,
|
|
187
|
+
PurchaseChannelSchema,
|
|
188
|
+
Rating,
|
|
189
|
+
RatingSchema,
|
|
190
|
+
IRatingMonthlyResult,
|
|
191
|
+
Setting,
|
|
192
|
+
SettingSchema,
|
|
193
|
+
GameStatistic,
|
|
194
|
+
GameStatisticSchema,
|
|
195
|
+
Menu,
|
|
196
|
+
MenuSchema,
|
|
197
|
+
DailyBonus,
|
|
198
|
+
DailyBonusSchema,
|
|
199
|
+
Rule,
|
|
200
|
+
RuleSchema,
|
|
201
|
+
Premium,
|
|
202
|
+
PremiumSchema,
|
|
203
|
+
Welcome,
|
|
204
|
+
WelcomeSchema,
|
|
205
|
+
Friend,
|
|
206
|
+
FriendSchema,
|
|
207
|
+
GameResult,
|
|
208
|
+
GameResultSchema,
|
|
209
|
+
BalanceHistory,
|
|
210
|
+
BalanceHistorySchema,
|
|
211
|
+
SimpleRoom,
|
|
212
|
+
SimpleRoomSchema,
|
|
213
|
+
TournamentOneTableRoom,
|
|
214
|
+
TournamentOneTableRoomSchema,
|
|
215
|
+
TournamentManyTablesRoom,
|
|
216
|
+
TournamentManyTablesRoomSchema,
|
|
217
|
+
ActivityLog,
|
|
218
|
+
ActivityLogSchema,
|
|
219
|
+
IActivityLogUserLogin,
|
|
220
|
+
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export {
|
|
224
|
+
AdminRepository,
|
|
225
|
+
ArticleRepository,
|
|
226
|
+
BannersRepository,
|
|
227
|
+
ComplainsRepository,
|
|
228
|
+
NotificationRepository,
|
|
229
|
+
ProductsRepository,
|
|
230
|
+
ScheduledTournamentsRepository,
|
|
231
|
+
ServersRepository,
|
|
232
|
+
UsersRepository,
|
|
233
|
+
MenuRepository,
|
|
234
|
+
DailyBonusRepository,
|
|
235
|
+
PremiumRepository,
|
|
236
|
+
RuleRepository,
|
|
237
|
+
RatingRepository,
|
|
238
|
+
GameStatisticRepository,
|
|
239
|
+
FriendRepository,
|
|
240
|
+
WelcomeRepository,
|
|
241
|
+
SettingRepository,
|
|
242
|
+
RoomsRepository,
|
|
243
|
+
GameResultRepository,
|
|
244
|
+
BalanceHistoryRepository,
|
|
245
|
+
SimpleRoomsRepository,
|
|
246
|
+
TournamentOneTableRoomsRepository,
|
|
247
|
+
TournamentManyTablesRoomsRepository,
|
|
248
|
+
ActivityLogRepository,
|
|
249
|
+
AchievementRepository,
|
|
250
|
+
PurchaseRepository,
|
|
251
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export interface IActivityLogUserLogin {
|
|
2
|
-
id: string;
|
|
3
|
-
userId: string;
|
|
4
|
-
userName: string;
|
|
5
|
-
event: string;
|
|
6
|
-
game: string;
|
|
7
|
-
channel: string;
|
|
8
|
-
count: number;
|
|
9
|
-
date: string;
|
|
1
|
+
export interface IActivityLogUserLogin {
|
|
2
|
+
id: string;
|
|
3
|
+
userId: string;
|
|
4
|
+
userName: string;
|
|
5
|
+
event: string;
|
|
6
|
+
game: string;
|
|
7
|
+
channel: string;
|
|
8
|
+
count: number;
|
|
9
|
+
date: string;
|
|
10
10
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export enum ActivityLogEnum {
|
|
2
|
-
USER_LOGIN = 'USER_LOGIN',
|
|
3
|
-
USER_GOT_BONUS = 'USER_GOT_BONUS',
|
|
4
|
-
USER_PLAYED_GAME = 'USER_PLAYED_GAME',
|
|
5
|
-
USER_WON_GAME = 'USER_WON_GAME',
|
|
6
|
-
USER_WON_PROFI = 'USER_WON_PROFI',
|
|
7
|
-
USER_WON_ONE_TABLE_TOURNAMENT = 'USER_WON_ONE_TABLE_TOURNAMENT',
|
|
1
|
+
export enum ActivityLogEnum {
|
|
2
|
+
USER_LOGIN = 'USER_LOGIN',
|
|
3
|
+
USER_GOT_BONUS = 'USER_GOT_BONUS',
|
|
4
|
+
USER_PLAYED_GAME = 'USER_PLAYED_GAME',
|
|
5
|
+
USER_WON_GAME = 'USER_WON_GAME',
|
|
6
|
+
USER_WON_PROFI = 'USER_WON_PROFI',
|
|
7
|
+
USER_WON_ONE_TABLE_TOURNAMENT = 'USER_WON_ONE_TABLE_TOURNAMENT',
|
|
8
8
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export enum CurrencyEnum {
|
|
2
|
-
VK_VOTES = 'VK_VOTES',
|
|
3
|
-
YAN = 'YAN',
|
|
4
|
-
RUB = 'RUB',
|
|
1
|
+
export enum CurrencyEnum {
|
|
2
|
+
VK_VOTES = 'VK_VOTES',
|
|
3
|
+
YAN = 'YAN',
|
|
4
|
+
RUB = 'RUB',
|
|
5
5
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export interface IRatingAddBulkItem {
|
|
2
|
-
userId: string;
|
|
3
|
-
userName: string;
|
|
4
|
-
userAvatarUrl: string
|
|
5
|
-
game: string;
|
|
6
|
-
channels: string;
|
|
1
|
+
export interface IRatingAddBulkItem {
|
|
2
|
+
userId: string;
|
|
3
|
+
userName: string;
|
|
4
|
+
userAvatarUrl: string
|
|
5
|
+
game: string;
|
|
6
|
+
channels: string;
|
|
7
7
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export interface IRatingMonthlyResult {
|
|
2
|
-
id: string;
|
|
3
|
-
userId: string;
|
|
4
|
-
userName: string;
|
|
5
|
-
userAvatarUrl: string
|
|
6
|
-
game: string;
|
|
7
|
-
channels: string;
|
|
8
|
-
count: number;
|
|
9
|
-
date: string;
|
|
10
|
-
rank: number;
|
|
1
|
+
export interface IRatingMonthlyResult {
|
|
2
|
+
id: string;
|
|
3
|
+
userId: string;
|
|
4
|
+
userName: string;
|
|
5
|
+
userAvatarUrl: string
|
|
6
|
+
game: string;
|
|
7
|
+
channels: string;
|
|
8
|
+
count: number;
|
|
9
|
+
date: string;
|
|
10
|
+
rank: number;
|
|
11
11
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export interface ITournamentParticipant {
|
|
2
|
-
playerId: string;
|
|
3
|
-
playerName: string;
|
|
4
|
-
playerAvatarUrl: string;
|
|
5
|
-
}
|
|
1
|
+
export interface ITournamentParticipant {
|
|
2
|
+
playerId: string;
|
|
3
|
+
playerName: string;
|
|
4
|
+
playerAvatarUrl: string;
|
|
5
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export enum TournamentStatusEnum {
|
|
2
|
-
STATE_WAITING_FOR_START = 'STATE_WAITING_FOR_START',
|
|
3
|
-
STATE_IN_PROGRESS = 'STATE_IN_PROGRESS',
|
|
4
|
-
STATE_FINISHED = 'STATE_FINISHED',
|
|
5
|
-
STATE_CANCELLED = 'STATE_CANCELLED',
|
|
6
|
-
}
|
|
1
|
+
export enum TournamentStatusEnum {
|
|
2
|
+
STATE_WAITING_FOR_START = 'STATE_WAITING_FOR_START',
|
|
3
|
+
STATE_IN_PROGRESS = 'STATE_IN_PROGRESS',
|
|
4
|
+
STATE_FINISHED = 'STATE_FINISHED',
|
|
5
|
+
STATE_CANCELLED = 'STATE_CANCELLED',
|
|
6
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export enum TournamentTemplateEnum {
|
|
2
|
-
MASTER = 'MASTER',
|
|
3
|
-
}
|
|
1
|
+
export enum TournamentTemplateEnum {
|
|
2
|
+
MASTER = 'MASTER',
|
|
3
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export interface ITournamentWinner {
|
|
2
|
-
playerId: string;
|
|
3
|
-
playerName: string;
|
|
4
|
-
playerAvatarUrl: string;
|
|
5
|
-
profit: number;
|
|
6
|
-
rank: number;
|
|
7
|
-
}
|
|
1
|
+
export interface ITournamentWinner {
|
|
2
|
+
playerId: string;
|
|
3
|
+
playerName: string;
|
|
4
|
+
playerAvatarUrl: string;
|
|
5
|
+
profit: number;
|
|
6
|
+
rank: number;
|
|
7
|
+
}
|