jp.db.schemas 2.1.9 → 2.1.10

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.
Files changed (36) hide show
  1. package/dist/index.d.ts +8 -4
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +11 -2
  4. package/dist/index.js.map +1 -1
  5. package/dist/repositories/friend.repository.d.ts +8 -0
  6. package/dist/repositories/friend.repository.d.ts.map +1 -0
  7. package/dist/repositories/friend.repository.js +39 -0
  8. package/dist/repositories/friend.repository.js.map +1 -0
  9. package/dist/repositories/game-statistic.repository.d.ts +8 -0
  10. package/dist/repositories/game-statistic.repository.d.ts.map +1 -0
  11. package/dist/repositories/game-statistic.repository.js +39 -0
  12. package/dist/repositories/game-statistic.repository.js.map +1 -0
  13. package/dist/repositories/index.d.ts +4 -1
  14. package/dist/repositories/index.d.ts.map +1 -1
  15. package/dist/repositories/index.js +7 -1
  16. package/dist/repositories/index.js.map +1 -1
  17. package/dist/repositories/rating.repository.d.ts +8 -0
  18. package/dist/repositories/rating.repository.d.ts.map +1 -0
  19. package/dist/repositories/rating.repository.js +39 -0
  20. package/dist/repositories/rating.repository.js.map +1 -0
  21. package/dist/schemas/friend.schema.d.ts +87 -0
  22. package/dist/schemas/friend.schema.d.ts.map +1 -0
  23. package/dist/schemas/friend.schema.js +73 -0
  24. package/dist/schemas/friend.schema.js.map +1 -0
  25. package/dist/schemas/game_statistic.schema.d.ts +115 -0
  26. package/dist/schemas/game_statistic.schema.d.ts.map +1 -0
  27. package/dist/schemas/game_statistic.schema.js +61 -0
  28. package/dist/schemas/game_statistic.schema.js.map +1 -0
  29. package/package.json +1 -1
  30. package/src/index.ts +16 -0
  31. package/src/repositories/friend.repository.ts +20 -0
  32. package/src/repositories/game-statistic.repository.ts +21 -0
  33. package/src/repositories/index.ts +6 -0
  34. package/src/repositories/rating.repository.ts +21 -0
  35. package/src/schemas/friend.schema.ts +51 -0
  36. package/src/schemas/game_statistic.schema.ts +40 -0
package/dist/index.d.ts CHANGED
@@ -46,6 +46,8 @@ import { Setting, SettingSchema } from './schemas/setting.schema';
46
46
  import type { SettingDocument } from './schemas/setting.schema';
47
47
  import { Premium, PremiumSchema } from './schemas/premium.schema';
48
48
  import type { PremiumDocument } from './schemas/premium.schema';
49
+ import { GameStatistic, GameStatisticSchema } from './schemas/game_statistic.schema';
50
+ import type { GameStatisticDocument } from './schemas/game_statistic.schema';
49
51
  import { Menu, MenuSchema } from './schemas/menu.schema';
50
52
  import type { MenuDocument } from './schemas/menu.schema';
51
53
  import { GameResult, GameResultSchema } from './schemas/game_result.schema';
@@ -62,13 +64,15 @@ import { DailyBonus, DailyBonusSchema } from './schemas/daily_bonus.schema';
62
64
  import type { DailyBonusDocument } from './schemas/daily_bonus.schema';
63
65
  import { Rule, RuleSchema } from './schemas/rule.schema';
64
66
  import type { RuleDocument } from './schemas/rule.schema';
67
+ import { Friend, FriendSchema } from './schemas/friend.schema';
68
+ import type { FriendDocument } from './schemas/friend.schema';
65
69
  import { Welcome, WelcomeSchema } from './schemas/welcome.schema';
66
70
  import type { WelcomeDocument } from './schemas/welcome.schema';
67
71
  import { ActivityLog, ActivityLogSchema } from './schemas/activity_log.schema';
68
72
  import type { ActivityLogDocument } from './schemas/activity_log.schema';
69
73
  import type { IActivityLogUserLogin } from './models/activity-log-user-login.interface';
70
- import { AdminRepository, ArticleRepository, BannersRepository, ComplainsRepository, NotificationRepository, ProductsRepository, ScheduledTournamentsRepository, ServersRepository, UsersRepository, MenuRepository, WelcomeRepository, PremiumRepository, RuleRepository, DailyBonusRepository, SettingRepository, RoomsRepository, GameResultRepository, BalanceHistoryRepository, SimpleRoomsRepository, TournamentOneTableRoomsRepository, TournamentManyTablesRoomsRepository, ActivityLogRepository, AchievementRepository } from './repositories';
71
- export type { UserDocument, FBUserDocument, GoogleUserDocument, OKUserDocument, TGUserDocument, VKUserDocument, YAUserDocument, PurchaseDocument, ComplainDocument, NotificationDocument, ScheduledTournamentDocument, AdminDocument, RoomDocument, ArticleDocument, BannerDocument, ServerDocument, AchievementDocument, ChannelMessageDocument, FeatureDocument, ProductDocument, PurchaseChannelDocument, RatingDocument, SettingDocument, PremiumDocument, MenuDocument, WelcomeDocument, RuleDocument, DailyBonusDocument, GameResultDocument, BalanceHistoryDocument, SimpleRoomDocument, TournamentOneTableRoomDocument, TournamentManyTablesRoomDocument, ActivityLogDocument, };
72
- export { User, UserSchema, FBUser, FBUserSchema, GoogleUser, GoogleUserSchema, OKUser, OKUserSchema, TGUser, TGUserSchema, VKUser, VKUserSchema, YAUser, YAUserSchema, Purchase, PurchaseSchema, Complain, ComplainSchema, Notification, NotificationSchema, ScheduledTournament, ScheduledTournamentSchema, Admin, AdminSchema, Room, RoomSchema, Article, ArticleSchema, Banner, BannerSchema, Server, ServerSchema, Achievement, AchievementSchema, ChannelMessage, ChannelMessageSchema, Feature, FeatureSchema, Product, ProductSchema, PurchaseChannel, PurchaseChannelSchema, Rating, RatingSchema, Setting, SettingSchema, Menu, MenuSchema, DailyBonus, DailyBonusSchema, Rule, RuleSchema, Premium, PremiumSchema, Welcome, WelcomeSchema, GameResult, GameResultSchema, BalanceHistory, BalanceHistorySchema, SimpleRoom, SimpleRoomSchema, TournamentOneTableRoom, TournamentOneTableRoomSchema, TournamentManyTablesRoom, TournamentManyTablesRoomSchema, ActivityLog, ActivityLogSchema, IActivityLogUserLogin, };
73
- export { AdminRepository, ArticleRepository, BannersRepository, ComplainsRepository, NotificationRepository, ProductsRepository, ScheduledTournamentsRepository, ServersRepository, UsersRepository, MenuRepository, DailyBonusRepository, PremiumRepository, RuleRepository, WelcomeRepository, SettingRepository, RoomsRepository, GameResultRepository, BalanceHistoryRepository, SimpleRoomsRepository, TournamentOneTableRoomsRepository, TournamentManyTablesRoomsRepository, ActivityLogRepository, AchievementRepository, };
74
+ import { AdminRepository, ArticleRepository, BannersRepository, ComplainsRepository, NotificationRepository, ProductsRepository, ScheduledTournamentsRepository, ServersRepository, UsersRepository, MenuRepository, GameStatisticRepository, FriendRepository, WelcomeRepository, RatingRepository, PremiumRepository, RuleRepository, DailyBonusRepository, SettingRepository, RoomsRepository, GameResultRepository, BalanceHistoryRepository, SimpleRoomsRepository, TournamentOneTableRoomsRepository, TournamentManyTablesRoomsRepository, ActivityLogRepository, AchievementRepository } from './repositories';
75
+ export type { UserDocument, FBUserDocument, GoogleUserDocument, OKUserDocument, TGUserDocument, VKUserDocument, YAUserDocument, PurchaseDocument, ComplainDocument, NotificationDocument, ScheduledTournamentDocument, AdminDocument, RoomDocument, ArticleDocument, BannerDocument, ServerDocument, AchievementDocument, ChannelMessageDocument, FeatureDocument, ProductDocument, PurchaseChannelDocument, RatingDocument, GameStatisticDocument, SettingDocument, PremiumDocument, MenuDocument, WelcomeDocument, RuleDocument, FriendDocument, DailyBonusDocument, GameResultDocument, BalanceHistoryDocument, SimpleRoomDocument, TournamentOneTableRoomDocument, TournamentManyTablesRoomDocument, ActivityLogDocument, };
76
+ export { User, UserSchema, FBUser, FBUserSchema, GoogleUser, GoogleUserSchema, OKUser, OKUserSchema, TGUser, TGUserSchema, VKUser, VKUserSchema, YAUser, YAUserSchema, Purchase, PurchaseSchema, Complain, ComplainSchema, Notification, NotificationSchema, ScheduledTournament, ScheduledTournamentSchema, Admin, AdminSchema, Room, RoomSchema, Article, ArticleSchema, Banner, BannerSchema, Server, ServerSchema, Achievement, AchievementSchema, ChannelMessage, ChannelMessageSchema, Feature, FeatureSchema, Product, ProductSchema, PurchaseChannel, PurchaseChannelSchema, Rating, RatingSchema, Setting, SettingSchema, GameStatistic, GameStatisticSchema, Menu, MenuSchema, DailyBonus, DailyBonusSchema, Rule, RuleSchema, Premium, PremiumSchema, Welcome, WelcomeSchema, Friend, FriendSchema, GameResult, GameResultSchema, BalanceHistory, BalanceHistorySchema, SimpleRoom, SimpleRoomSchema, TournamentOneTableRoom, TournamentOneTableRoomSchema, TournamentManyTablesRoom, TournamentManyTablesRoomSchema, ActivityLog, ActivityLogSchema, IActivityLogUserLogin, };
77
+ export { AdminRepository, ArticleRepository, BannersRepository, ComplainsRepository, NotificationRepository, ProductsRepository, ScheduledTournamentsRepository, ServersRepository, UsersRepository, MenuRepository, DailyBonusRepository, PremiumRepository, RuleRepository, RatingRepository, GameStatisticRepository, FriendRepository, WelcomeRepository, SettingRepository, RoomsRepository, GameResultRepository, BalanceHistoryRepository, SimpleRoomsRepository, TournamentOneTableRoomsRepository, TournamentManyTablesRoomsRepository, ActivityLogRepository, AchievementRepository, };
74
78
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAC5E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,EAAE,cA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K,EACL,WAAW,EACX,IAAI,EACJ,UAAU,EACV,OAAO,EACP,aAAa,EACb,MAAM,EACN,YAAY,EACZ,MAAM,EACN,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,cAAc,EACd,oBAAoB,EACpB,OAAO,EACP,aAAa,EACb,OAAO,EACP,aAAa,EACb,eAAe,EACf,qBAAqB,EACrB,MAAM,EACN,YAAY,EACZ,OAAO,EACP,aAAa,EACb,aAAa,EACb,mBAAmB,EACnB,IAAI,EACJ,UAAU,EACV,UAAU,EACV,gBAAgB,EAChB,IAAI,EACJ,UAAU,EACV,OAAO,EACP,aAAa,EACb,OAAO,EACP,aAAa,EACb,MAAM,EACN,YAAY,EACZ,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,oBAAoB,EACpB,UAAU,EACV,gBAAgB,EAChB,sBAAsB,EACtB,4BAA4B,EAC5B,wBAAwB,EACxB,8BAA8B,EAC9B,WAAW,EACX,iBAAiB,EACjB,qBAAqB,GACxB,CAAA;AAED,OAAO,EACH,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,EACtB,kBAAkB,EAClB,8BAA8B,EAC9B,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,uBAAuB,EACvB,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,oBAAoB,EACpB,wBAAwB,EACxB,qBAAqB,EACrB,iCAAiC,EACjC,mCAAmC,EACnC,qBAAqB,EACrB,qBAAqB,GACxB,CAAA"}
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DailyBonusSchema = exports.DailyBonus = exports.MenuSchema = exports.Menu = exports.SettingSchema = exports.Setting = exports.RatingSchema = exports.Rating = exports.PurchaseChannelSchema = exports.PurchaseChannel = exports.ProductSchema = exports.Product = exports.FeatureSchema = exports.Feature = exports.ChannelMessageSchema = exports.ChannelMessage = exports.AchievementSchema = exports.Achievement = exports.ServerSchema = exports.Server = exports.BannerSchema = exports.Banner = exports.ArticleSchema = exports.Article = exports.RoomSchema = exports.Room = exports.AdminSchema = exports.Admin = exports.ScheduledTournamentSchema = exports.ScheduledTournament = exports.NotificationSchema = exports.Notification = exports.ComplainSchema = exports.Complain = exports.PurchaseSchema = exports.Purchase = exports.YAUserSchema = exports.YAUser = exports.VKUserSchema = exports.VKUser = exports.TGUserSchema = exports.TGUser = exports.OKUserSchema = exports.OKUser = exports.GoogleUserSchema = exports.GoogleUser = exports.FBUserSchema = exports.FBUser = exports.UserSchema = exports.User = void 0;
4
- exports.AchievementRepository = exports.ActivityLogRepository = exports.TournamentManyTablesRoomsRepository = exports.TournamentOneTableRoomsRepository = exports.SimpleRoomsRepository = exports.BalanceHistoryRepository = exports.GameResultRepository = exports.RoomsRepository = exports.SettingRepository = exports.WelcomeRepository = exports.RuleRepository = exports.PremiumRepository = exports.DailyBonusRepository = exports.MenuRepository = exports.UsersRepository = exports.ServersRepository = exports.ScheduledTournamentsRepository = exports.ProductsRepository = exports.NotificationRepository = exports.ComplainsRepository = exports.BannersRepository = exports.ArticleRepository = exports.AdminRepository = exports.ActivityLogSchema = exports.ActivityLog = exports.TournamentManyTablesRoomSchema = exports.TournamentManyTablesRoom = exports.TournamentOneTableRoomSchema = exports.TournamentOneTableRoom = exports.SimpleRoomSchema = exports.SimpleRoom = exports.BalanceHistorySchema = exports.BalanceHistory = exports.GameResultSchema = exports.GameResult = exports.WelcomeSchema = exports.Welcome = exports.PremiumSchema = exports.Premium = exports.RuleSchema = exports.Rule = void 0;
3
+ exports.MenuSchema = exports.Menu = exports.GameStatisticSchema = exports.GameStatistic = exports.SettingSchema = exports.Setting = exports.RatingSchema = exports.Rating = exports.PurchaseChannelSchema = exports.PurchaseChannel = exports.ProductSchema = exports.Product = exports.FeatureSchema = exports.Feature = exports.ChannelMessageSchema = exports.ChannelMessage = exports.AchievementSchema = exports.Achievement = exports.ServerSchema = exports.Server = exports.BannerSchema = exports.Banner = exports.ArticleSchema = exports.Article = exports.RoomSchema = exports.Room = exports.AdminSchema = exports.Admin = exports.ScheduledTournamentSchema = exports.ScheduledTournament = exports.NotificationSchema = exports.Notification = exports.ComplainSchema = exports.Complain = exports.PurchaseSchema = exports.Purchase = exports.YAUserSchema = exports.YAUser = exports.VKUserSchema = exports.VKUser = exports.TGUserSchema = exports.TGUser = exports.OKUserSchema = exports.OKUser = exports.GoogleUserSchema = exports.GoogleUser = exports.FBUserSchema = exports.FBUser = exports.UserSchema = exports.User = void 0;
4
+ exports.AchievementRepository = exports.ActivityLogRepository = exports.TournamentManyTablesRoomsRepository = exports.TournamentOneTableRoomsRepository = exports.SimpleRoomsRepository = exports.BalanceHistoryRepository = exports.GameResultRepository = exports.RoomsRepository = exports.SettingRepository = exports.WelcomeRepository = exports.FriendRepository = exports.GameStatisticRepository = exports.RatingRepository = exports.RuleRepository = exports.PremiumRepository = exports.DailyBonusRepository = exports.MenuRepository = exports.UsersRepository = exports.ServersRepository = exports.ScheduledTournamentsRepository = exports.ProductsRepository = exports.NotificationRepository = exports.ComplainsRepository = exports.BannersRepository = exports.ArticleRepository = exports.AdminRepository = exports.ActivityLogSchema = exports.ActivityLog = exports.TournamentManyTablesRoomSchema = exports.TournamentManyTablesRoom = exports.TournamentOneTableRoomSchema = exports.TournamentOneTableRoom = exports.SimpleRoomSchema = exports.SimpleRoom = exports.BalanceHistorySchema = exports.BalanceHistory = exports.GameResultSchema = exports.GameResult = exports.FriendSchema = exports.Friend = exports.WelcomeSchema = exports.Welcome = exports.PremiumSchema = exports.Premium = exports.RuleSchema = exports.Rule = exports.DailyBonusSchema = exports.DailyBonus = void 0;
5
5
  const user_schema_1 = require("./schemas/user.schema");
6
6
  Object.defineProperty(exports, "User", { enumerable: true, get: function () { return user_schema_1.User; } });
7
7
  Object.defineProperty(exports, "UserSchema", { enumerable: true, get: function () { return user_schema_1.UserSchema; } });
@@ -74,6 +74,9 @@ Object.defineProperty(exports, "SettingSchema", { enumerable: true, get: functio
74
74
  const premium_schema_1 = require("./schemas/premium.schema");
75
75
  Object.defineProperty(exports, "Premium", { enumerable: true, get: function () { return premium_schema_1.Premium; } });
76
76
  Object.defineProperty(exports, "PremiumSchema", { enumerable: true, get: function () { return premium_schema_1.PremiumSchema; } });
77
+ const game_statistic_schema_1 = require("./schemas/game_statistic.schema");
78
+ Object.defineProperty(exports, "GameStatistic", { enumerable: true, get: function () { return game_statistic_schema_1.GameStatistic; } });
79
+ Object.defineProperty(exports, "GameStatisticSchema", { enumerable: true, get: function () { return game_statistic_schema_1.GameStatisticSchema; } });
77
80
  const menu_schema_1 = require("./schemas/menu.schema");
78
81
  Object.defineProperty(exports, "Menu", { enumerable: true, get: function () { return menu_schema_1.Menu; } });
79
82
  Object.defineProperty(exports, "MenuSchema", { enumerable: true, get: function () { return menu_schema_1.MenuSchema; } });
@@ -98,6 +101,9 @@ Object.defineProperty(exports, "DailyBonusSchema", { enumerable: true, get: func
98
101
  const rule_schema_1 = require("./schemas/rule.schema");
99
102
  Object.defineProperty(exports, "Rule", { enumerable: true, get: function () { return rule_schema_1.Rule; } });
100
103
  Object.defineProperty(exports, "RuleSchema", { enumerable: true, get: function () { return rule_schema_1.RuleSchema; } });
104
+ const friend_schema_1 = require("./schemas/friend.schema");
105
+ Object.defineProperty(exports, "Friend", { enumerable: true, get: function () { return friend_schema_1.Friend; } });
106
+ Object.defineProperty(exports, "FriendSchema", { enumerable: true, get: function () { return friend_schema_1.FriendSchema; } });
101
107
  const welcome_schema_1 = require("./schemas/welcome.schema");
102
108
  Object.defineProperty(exports, "Welcome", { enumerable: true, get: function () { return welcome_schema_1.Welcome; } });
103
109
  Object.defineProperty(exports, "WelcomeSchema", { enumerable: true, get: function () { return welcome_schema_1.WelcomeSchema; } });
@@ -115,7 +121,10 @@ Object.defineProperty(exports, "ScheduledTournamentsRepository", { enumerable: t
115
121
  Object.defineProperty(exports, "ServersRepository", { enumerable: true, get: function () { return repositories_1.ServersRepository; } });
116
122
  Object.defineProperty(exports, "UsersRepository", { enumerable: true, get: function () { return repositories_1.UsersRepository; } });
117
123
  Object.defineProperty(exports, "MenuRepository", { enumerable: true, get: function () { return repositories_1.MenuRepository; } });
124
+ Object.defineProperty(exports, "GameStatisticRepository", { enumerable: true, get: function () { return repositories_1.GameStatisticRepository; } });
125
+ Object.defineProperty(exports, "FriendRepository", { enumerable: true, get: function () { return repositories_1.FriendRepository; } });
118
126
  Object.defineProperty(exports, "WelcomeRepository", { enumerable: true, get: function () { return repositories_1.WelcomeRepository; } });
127
+ Object.defineProperty(exports, "RatingRepository", { enumerable: true, get: function () { return repositories_1.RatingRepository; } });
119
128
  Object.defineProperty(exports, "PremiumRepository", { enumerable: true, get: function () { return repositories_1.PremiumRepository; } });
120
129
  Object.defineProperty(exports, "RuleRepository", { enumerable: true, get: function () { return repositories_1.RuleRepository; } });
121
130
  Object.defineProperty(exports, "DailyBonusRepository", { enumerable: true, get: function () { return repositories_1.DailyBonusRepository; } });
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,uDAAyD;AAsIrD,qFAtIK,kBAAI,OAsIL;AACJ,2FAvIW,wBAAU,OAuIX;AArId,6DAAgE;AAsI5D,uFAtIK,uBAAM,OAsIL;AACN,6FAvIa,6BAAY,OAuIb;AArIhB,qEAA4E;AAsIxE,2FAtIK,+BAAU,OAsIL;AACV,iGAvIiB,qCAAgB,OAuIjB;AArIpB,6DAAgE;AAsI5D,uFAtIK,uBAAM,OAsIL;AACN,6FAvIa,6BAAY,OAuIb;AArIhB,6DAAgE;AAsI5D,uFAtIK,uBAAM,OAsIL;AACN,6FAvIa,6BAAY,OAuIb;AArIhB,6DAAgE;AAsI5D,uFAtIK,uBAAM,OAsIL;AACN,6FAvIa,6BAAY,OAuIb;AArIhB,6DAAgE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A7IA,6BAAc,OA6IA;AAFd,qGA1IA,mCAAoB,OA0IA;AAOpB,kGAhJA,gCAAiB,OAgJA;AACjB,gGAhJA,8BAAe,OAgJA;AACf,qGAhJA,mCAAoB,OAgJA;AACpB,yGAhJA,uCAAwB,OAgJA;AACxB,sGAhJA,oCAAqB,OAgJA;AACrB,kHAhJA,gDAAiC,OAgJA;AACjC,oHAhJA,kDAAmC,OAgJA;AACnC,sGAhJA,oCAAqB,OAgJA;AACrB,sGAhJA,oCAAqB,OAgJA"}
@@ -0,0 +1,8 @@
1
+ import { Model } from 'mongoose';
2
+ import { Friend, FriendDocument } from '..';
3
+ export declare class FriendRepository {
4
+ private friendModel;
5
+ constructor(friendModel: Model<FriendDocument>);
6
+ findFriend(channel: string, game: string): Promise<Array<Friend> | null>;
7
+ }
8
+ //# sourceMappingURL=friend.repository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"friend.repository.d.ts","sourceRoot":"","sources":["../../src/repositories/friend.repository.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAG5C,qBACa,gBAAgB;IACc,OAAO,CAAC,WAAW;gBAAX,WAAW,EAAE,KAAK,CAAC,cAAc,CAAC;IAG3E,UAAU,CAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;CAOlF"}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.FriendRepository = void 0;
16
+ const common_1 = require("@nestjs/common");
17
+ const mongoose_1 = require("@nestjs/mongoose");
18
+ const mongoose_2 = require("mongoose");
19
+ const __1 = require("..");
20
+ const utils_1 = require("../utils");
21
+ let FriendRepository = class FriendRepository {
22
+ constructor(friendModel) {
23
+ this.friendModel = friendModel;
24
+ }
25
+ async findFriend(channel, game) {
26
+ return this.friendModel
27
+ .find({
28
+ channels: (0, utils_1.getChannelRegExpFilter)(channel),
29
+ })
30
+ .exec();
31
+ }
32
+ };
33
+ exports.FriendRepository = FriendRepository;
34
+ exports.FriendRepository = FriendRepository = __decorate([
35
+ (0, common_1.Injectable)(),
36
+ __param(0, (0, mongoose_1.InjectModel)(__1.Friend.name)),
37
+ __metadata("design:paramtypes", [mongoose_2.Model])
38
+ ], FriendRepository);
39
+ //# sourceMappingURL=friend.repository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"friend.repository.js","sourceRoot":"","sources":["../../src/repositories/friend.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,+CAA+C;AAC/C,uCAAiC;AAEjC,0BAA4C;AAC5C,oCAAkD;AAG3C,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IACzB,YAA+C,WAAkC;QAAlC,gBAAW,GAAX,WAAW,CAAuB;IACjF,CAAC;IAED,KAAK,CAAC,UAAU,CAAE,OAAe,EAAE,IAAY;QAC3C,OAAO,IAAI,CAAC,WAAW;aAClB,IAAI,CAAC;YACF,QAAQ,EAAE,IAAA,8BAAsB,EAAC,OAAO,CAAC;SAC5C,CAAC;aACD,IAAI,EAAE,CAAC;IAChB,CAAC;CACJ,CAAA;AAXY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,mBAAU,GAAE;IAEK,WAAA,IAAA,sBAAW,EAAC,UAAM,CAAC,IAAI,CAAC,CAAA;qCAAsB,gBAAK;GADxD,gBAAgB,CAW5B"}
@@ -0,0 +1,8 @@
1
+ import { Model } from 'mongoose';
2
+ import { GameStatistic, GameStatisticDocument } from '..';
3
+ export declare class GameStatisticRepository {
4
+ private gameStatisticModel;
5
+ constructor(gameStatisticModel: Model<GameStatisticDocument>);
6
+ findGameStatistic(channel: string, game: string): Promise<Array<GameStatistic> | null>;
7
+ }
8
+ //# sourceMappingURL=game-statistic.repository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"game-statistic.repository.d.ts","sourceRoot":"","sources":["../../src/repositories/game-statistic.repository.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,IAAI,CAAC;AAG1D,qBACa,uBAAuB;IACc,OAAO,CAAC,kBAAkB;gBAAlB,kBAAkB,EAAE,KAAK,CAAC,qBAAqB,CAAC;IAGhG,iBAAiB,CAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC;CAOhG"}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.GameStatisticRepository = void 0;
16
+ const common_1 = require("@nestjs/common");
17
+ const mongoose_1 = require("@nestjs/mongoose");
18
+ const mongoose_2 = require("mongoose");
19
+ const __1 = require("..");
20
+ const utils_1 = require("../utils");
21
+ let GameStatisticRepository = class GameStatisticRepository {
22
+ constructor(gameStatisticModel) {
23
+ this.gameStatisticModel = gameStatisticModel;
24
+ }
25
+ async findGameStatistic(channel, game) {
26
+ return this.gameStatisticModel
27
+ .find({
28
+ channels: (0, utils_1.getChannelRegExpFilter)(channel),
29
+ })
30
+ .exec();
31
+ }
32
+ };
33
+ exports.GameStatisticRepository = GameStatisticRepository;
34
+ exports.GameStatisticRepository = GameStatisticRepository = __decorate([
35
+ (0, common_1.Injectable)(),
36
+ __param(0, (0, mongoose_1.InjectModel)(__1.GameStatistic.name)),
37
+ __metadata("design:paramtypes", [mongoose_2.Model])
38
+ ], GameStatisticRepository);
39
+ //# sourceMappingURL=game-statistic.repository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"game-statistic.repository.js","sourceRoot":"","sources":["../../src/repositories/game-statistic.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,+CAA+C;AAC/C,uCAAiC;AAEjC,0BAA0D;AAC1D,oCAAkD;AAG3C,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAChC,YAAsD,kBAAgD;QAAhD,uBAAkB,GAAlB,kBAAkB,CAA8B;IACtG,CAAC;IAED,KAAK,CAAC,iBAAiB,CAAE,OAAe,EAAE,IAAY;QAClD,OAAO,IAAI,CAAC,kBAAkB;aACzB,IAAI,CAAC;YACF,QAAQ,EAAE,IAAA,8BAAsB,EAAC,OAAO,CAAC;SAC5C,CAAC;aACD,IAAI,EAAE,CAAC;IAChB,CAAC;CACJ,CAAA;AAXY,0DAAuB;kCAAvB,uBAAuB;IADnC,IAAA,mBAAU,GAAE;IAEK,WAAA,IAAA,sBAAW,EAAC,iBAAa,CAAC,IAAI,CAAC,CAAA;qCAA6B,gBAAK;GADtE,uBAAuB,CAWnC"}
@@ -9,6 +9,9 @@ import { ServersRepository } from './servers.repository';
9
9
  import { UsersRepository } from './users.repository';
10
10
  import { MenuRepository } from './menu.repository';
11
11
  import { RuleRepository } from './rule.repository';
12
+ import { RatingRepository } from './rating.repository';
13
+ import { GameStatisticRepository } from './game-statistic.repository';
14
+ import { FriendRepository } from './friend.repository';
12
15
  import { SettingRepository } from './setting.repository';
13
16
  import { PremiumRepository } from './premium.repository';
14
17
  import { WelcomeRepository } from './welcome.repository';
@@ -21,5 +24,5 @@ import { TournamentOneTableRoomsRepository } from './tournament-one-table-rooms.
21
24
  import { TournamentManyTablesRoomsRepository } from './tournament-many-tables-rooms.repository';
22
25
  import { ActivityLogRepository } from './activity-log.repository';
23
26
  import { AchievementRepository } from './achievement.repository';
24
- export { AdminRepository, ArticleRepository, BannersRepository, ComplainsRepository, NotificationRepository, ProductsRepository, ScheduledTournamentsRepository, ServersRepository, UsersRepository, MenuRepository, RuleRepository, SettingRepository, PremiumRepository, WelcomeRepository, DailyBonusRepository, RoomsRepository, GameResultRepository, BalanceHistoryRepository, SimpleRoomsRepository, TournamentOneTableRoomsRepository, TournamentManyTablesRoomsRepository, ActivityLogRepository, AchievementRepository, };
27
+ export { AdminRepository, ArticleRepository, BannersRepository, ComplainsRepository, NotificationRepository, ProductsRepository, ScheduledTournamentsRepository, ServersRepository, UsersRepository, MenuRepository, RatingRepository, GameStatisticRepository, RuleRepository, FriendRepository, SettingRepository, PremiumRepository, WelcomeRepository, DailyBonusRepository, RoomsRepository, GameResultRepository, BalanceHistoryRepository, SimpleRoomsRepository, TournamentOneTableRoomsRepository, TournamentManyTablesRoomsRepository, ActivityLogRepository, AchievementRepository, };
25
28
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/repositories/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,8BAA8B,EAAE,MAAM,oCAAoC,CAAC;AACpF,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAAE,qBAAqB,EAA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: true });
3
- exports.AchievementRepository = exports.ActivityLogRepository = exports.TournamentManyTablesRoomsRepository = exports.TournamentOneTableRoomsRepository = exports.SimpleRoomsRepository = exports.BalanceHistoryRepository = exports.GameResultRepository = exports.RoomsRepository = exports.DailyBonusRepository = exports.WelcomeRepository = exports.PremiumRepository = exports.SettingRepository = exports.RuleRepository = exports.MenuRepository = exports.UsersRepository = exports.ServersRepository = exports.ScheduledTournamentsRepository = exports.ProductsRepository = exports.NotificationRepository = exports.ComplainsRepository = exports.BannersRepository = exports.ArticleRepository = exports.AdminRepository = void 0;
3
+ exports.AchievementRepository = exports.ActivityLogRepository = exports.TournamentManyTablesRoomsRepository = exports.TournamentOneTableRoomsRepository = exports.SimpleRoomsRepository = exports.BalanceHistoryRepository = exports.GameResultRepository = exports.RoomsRepository = exports.DailyBonusRepository = exports.WelcomeRepository = exports.PremiumRepository = exports.SettingRepository = exports.FriendRepository = exports.RuleRepository = exports.GameStatisticRepository = exports.RatingRepository = exports.MenuRepository = exports.UsersRepository = exports.ServersRepository = exports.ScheduledTournamentsRepository = exports.ProductsRepository = exports.NotificationRepository = exports.ComplainsRepository = exports.BannersRepository = exports.ArticleRepository = exports.AdminRepository = void 0;
4
4
  const admin_repository_1 = require("./admin.repository");
5
5
  Object.defineProperty(exports, "AdminRepository", { enumerable: true, get: function () { return admin_repository_1.AdminRepository; } });
6
6
  const article_repository_1 = require("./article.repository");
@@ -23,6 +23,12 @@ const menu_repository_1 = require("./menu.repository");
23
23
  Object.defineProperty(exports, "MenuRepository", { enumerable: true, get: function () { return menu_repository_1.MenuRepository; } });
24
24
  const rule_repository_1 = require("./rule.repository");
25
25
  Object.defineProperty(exports, "RuleRepository", { enumerable: true, get: function () { return rule_repository_1.RuleRepository; } });
26
+ const rating_repository_1 = require("./rating.repository");
27
+ Object.defineProperty(exports, "RatingRepository", { enumerable: true, get: function () { return rating_repository_1.RatingRepository; } });
28
+ const game_statistic_repository_1 = require("./game-statistic.repository");
29
+ Object.defineProperty(exports, "GameStatisticRepository", { enumerable: true, get: function () { return game_statistic_repository_1.GameStatisticRepository; } });
30
+ const friend_repository_1 = require("./friend.repository");
31
+ Object.defineProperty(exports, "FriendRepository", { enumerable: true, get: function () { return friend_repository_1.FriendRepository; } });
26
32
  const setting_repository_1 = require("./setting.repository");
27
33
  Object.defineProperty(exports, "SettingRepository", { enumerable: true, get: function () { return setting_repository_1.SettingRepository; } });
28
34
  const premium_repository_1 = require("./premium.repository");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/repositories/index.ts"],"names":[],"mappings":";;;AAAA,yDAAqD;AAyBjD,gGAzBK,kCAAe,OAyBL;AAxBnB,6DAAyD;AAyBrD,kGAzBK,sCAAiB,OAyBL;AAxBrB,6DAAyD;AAyBrD,kGAzBK,sCAAiB,OAyBL;AAxBrB,iEAA6D;AAyBzD,oGAzBK,0CAAmB,OAyBL;AAxBvB,uEAAmE;AAyB/D,uGAzBK,gDAAsB,OAyBL;AAxB1B,+DAA2D;AAyBvD,mGAzBK,wCAAkB,OAyBL;AAxBtB,yFAAoF;AAyBhF,+GAzBK,iEAA8B,OAyBL;AAxBlC,6DAAyD;AAyBrD,kGAzBK,sCAAiB,OAyBL;AAxBrB,yDAAqD;AAyBjD,gGAzBK,kCAAe,OAyBL;AAxBnB,uDAAmD;AAyB/C,+FAzBK,gCAAc,OAyBL;AAxBlB,uDAAmD;AAyB/C,+FAzBK,gCAAc,OAyBL;AAxBlB,6DAAyD;AAyBrD,kGAzBK,sCAAiB,OAyBL;AAxBrB,6DAAyD;AAyBrD,kGAzBK,sCAAiB,OAyBL;AAxBrB,6DAAyD;AAyBrD,kGAzBK,sCAAiB,OAyBL;AAxBrB,qEAAgE;AAyB5D,qGAzBK,6CAAoB,OAyBL;AAxBxB,yDAAqD;AAyBjD,gGAzBK,kCAAe,OAyBL;AAxBnB,qEAAgE;AAyB5D,qGAzBK,6CAAoB,OAyBL;AAxBxB,6EAAwE;AAyBpE,yGAzBK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;AA4BjD,gGA5BK,kCAAe,OA4BL;AA3BnB,qEAAgE;AA4B5D,qGA5BK,6CAAoB,OA4BL;AA3BxB,6EAAwE;AA4BpE,yGA5BK,qDAAwB,OA4BL;AA3B5B,uEAAkE;AA4B9D,sGA5BK,+CAAqB,OA4BL;AA3BzB,mGAA4F;AA4BxF,kHA5BK,yEAAiC,OA4BL;AA3BrC,uGAAgG;AA4B5F,oHA5BK,6EAAmC,OA4BL;AA3BvC,uEAAkE;AA4B9D,sGA5BK,+CAAqB,OA4BL;AA3BzB,qEAAiE;AA4B7D,sGA5BK,8CAAqB,OA4BL"}
@@ -0,0 +1,8 @@
1
+ import { Model } from 'mongoose';
2
+ import { Rating, RatingDocument } from '..';
3
+ export declare class RatingRepository {
4
+ private ratingModel;
5
+ constructor(ratingModel: Model<RatingDocument>);
6
+ findRating(channel: string, game: string): Promise<Array<Rating> | null>;
7
+ }
8
+ //# sourceMappingURL=rating.repository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rating.repository.d.ts","sourceRoot":"","sources":["../../src/repositories/rating.repository.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAG5C,qBACa,gBAAgB;IACc,OAAO,CAAC,WAAW;gBAAX,WAAW,EAAE,KAAK,CAAC,cAAc,CAAC;IAG3E,UAAU,CAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;CAQlF"}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.RatingRepository = void 0;
16
+ const common_1 = require("@nestjs/common");
17
+ const mongoose_1 = require("@nestjs/mongoose");
18
+ const mongoose_2 = require("mongoose");
19
+ const __1 = require("..");
20
+ const utils_1 = require("../utils");
21
+ let RatingRepository = class RatingRepository {
22
+ constructor(ratingModel) {
23
+ this.ratingModel = ratingModel;
24
+ }
25
+ async findRating(channel, game) {
26
+ return this.ratingModel
27
+ .find({
28
+ channels: (0, utils_1.getChannelRegExpFilter)(channel),
29
+ })
30
+ .exec();
31
+ }
32
+ };
33
+ exports.RatingRepository = RatingRepository;
34
+ exports.RatingRepository = RatingRepository = __decorate([
35
+ (0, common_1.Injectable)(),
36
+ __param(0, (0, mongoose_1.InjectModel)(__1.Rating.name)),
37
+ __metadata("design:paramtypes", [mongoose_2.Model])
38
+ ], RatingRepository);
39
+ //# sourceMappingURL=rating.repository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rating.repository.js","sourceRoot":"","sources":["../../src/repositories/rating.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,+CAA+C;AAC/C,uCAAiC;AAEjC,0BAA4C;AAC5C,oCAAkD;AAG3C,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IACzB,YAA+C,WAAkC;QAAlC,gBAAW,GAAX,WAAW,CAAuB;IACjF,CAAC;IAED,KAAK,CAAC,UAAU,CAAE,OAAe,EAAE,IAAY;QAC3C,OAAO,IAAI,CAAC,WAAW;aAClB,IAAI,CAAC;YACF,QAAQ,EAAE,IAAA,8BAAsB,EAAC,OAAO,CAAC;SAE5C,CAAC;aACD,IAAI,EAAE,CAAC;IAChB,CAAC;CACJ,CAAA;AAZY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,mBAAU,GAAE;IAEK,WAAA,IAAA,sBAAW,EAAC,UAAM,CAAC,IAAI,CAAC,CAAA;qCAAsB,gBAAK;GADxD,gBAAgB,CAY5B"}
@@ -0,0 +1,87 @@
1
+ import { Document, HydratedDocument } from 'mongoose';
2
+ export type FriendDocument = HydratedDocument<Friend>;
3
+ export declare class Friend {
4
+ readonly ruleId: string;
5
+ id: string;
6
+ icon: string;
7
+ title: string;
8
+ titleEn: string;
9
+ userId: string;
10
+ avatarUrl: string;
11
+ userName: string;
12
+ level: number;
13
+ url: string;
14
+ game: string;
15
+ channel: string;
16
+ }
17
+ export declare const FriendSchema: import("mongoose").Schema<Friend, import("mongoose").Model<Friend, any, any, any, Document<unknown, any, Friend, any, import("mongoose").DefaultSchemaOptions> & Friend & {
18
+ _id: import("mongoose").Types.ObjectId;
19
+ } & {
20
+ __v: number;
21
+ }, any, Friend>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Friend, Document<unknown, {}, Friend, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Friend & {
22
+ _id: import("mongoose").Types.ObjectId;
23
+ } & {
24
+ __v: number;
25
+ }, {
26
+ readonly ruleId?: import("mongoose").SchemaDefinitionProperty<string, Friend, Document<unknown, {}, Friend, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Friend & {
27
+ _id: import("mongoose").Types.ObjectId;
28
+ } & {
29
+ __v: number;
30
+ }>;
31
+ id?: import("mongoose").SchemaDefinitionProperty<string, Friend, Document<unknown, {}, Friend, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Friend & {
32
+ _id: import("mongoose").Types.ObjectId;
33
+ } & {
34
+ __v: number;
35
+ }>;
36
+ icon?: import("mongoose").SchemaDefinitionProperty<string, Friend, Document<unknown, {}, Friend, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Friend & {
37
+ _id: import("mongoose").Types.ObjectId;
38
+ } & {
39
+ __v: number;
40
+ }>;
41
+ title?: import("mongoose").SchemaDefinitionProperty<string, Friend, Document<unknown, {}, Friend, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Friend & {
42
+ _id: import("mongoose").Types.ObjectId;
43
+ } & {
44
+ __v: number;
45
+ }>;
46
+ titleEn?: import("mongoose").SchemaDefinitionProperty<string, Friend, Document<unknown, {}, Friend, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Friend & {
47
+ _id: import("mongoose").Types.ObjectId;
48
+ } & {
49
+ __v: number;
50
+ }>;
51
+ userId?: import("mongoose").SchemaDefinitionProperty<string, Friend, Document<unknown, {}, Friend, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Friend & {
52
+ _id: import("mongoose").Types.ObjectId;
53
+ } & {
54
+ __v: number;
55
+ }>;
56
+ avatarUrl?: import("mongoose").SchemaDefinitionProperty<string, Friend, Document<unknown, {}, Friend, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Friend & {
57
+ _id: import("mongoose").Types.ObjectId;
58
+ } & {
59
+ __v: number;
60
+ }>;
61
+ userName?: import("mongoose").SchemaDefinitionProperty<string, Friend, Document<unknown, {}, Friend, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Friend & {
62
+ _id: import("mongoose").Types.ObjectId;
63
+ } & {
64
+ __v: number;
65
+ }>;
66
+ level?: import("mongoose").SchemaDefinitionProperty<number, Friend, Document<unknown, {}, Friend, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Friend & {
67
+ _id: import("mongoose").Types.ObjectId;
68
+ } & {
69
+ __v: number;
70
+ }>;
71
+ url?: import("mongoose").SchemaDefinitionProperty<string, Friend, Document<unknown, {}, Friend, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Friend & {
72
+ _id: import("mongoose").Types.ObjectId;
73
+ } & {
74
+ __v: number;
75
+ }>;
76
+ game?: import("mongoose").SchemaDefinitionProperty<string, Friend, Document<unknown, {}, Friend, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Friend & {
77
+ _id: import("mongoose").Types.ObjectId;
78
+ } & {
79
+ __v: number;
80
+ }>;
81
+ channel?: import("mongoose").SchemaDefinitionProperty<string, Friend, Document<unknown, {}, Friend, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Friend & {
82
+ _id: import("mongoose").Types.ObjectId;
83
+ } & {
84
+ __v: number;
85
+ }>;
86
+ }, Friend>;
87
+ //# sourceMappingURL=friend.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"friend.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/friend.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEtD,MAAM,MAAM,cAAc,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAEtD,qBACa,MAAM;IAMf,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAGxB,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;IAGb,KAAK,EAAE,MAAM,CAAC;IAGd,OAAO,EAAE,MAAM,CAAC;IAGhB,MAAM,EAAE,MAAM,CAAC;IAGf,SAAS,EAAE,MAAM,CAAC;IAGlB,QAAQ,EAAE,MAAM,CAAC;IAGjB,KAAK,EAAE,MAAM,CAAC;IAGd,GAAG,EAAE,MAAM,CAAC;IAGZ,IAAI,EAAE,MAAM,CAAC;IAGb,OAAO,EAAE,MAAM,CAAC;CAGnB;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAAuC,CAAC"}
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.FriendSchema = exports.Friend = void 0;
13
+ const mongoose_1 = require("@nestjs/mongoose");
14
+ let Friend = class Friend {
15
+ };
16
+ exports.Friend = Friend;
17
+ __decorate([
18
+ (0, mongoose_1.Virtual)({
19
+ get: function () {
20
+ return this._id.toString();
21
+ },
22
+ }),
23
+ __metadata("design:type", String)
24
+ ], Friend.prototype, "ruleId", void 0);
25
+ __decorate([
26
+ (0, mongoose_1.Prop)(),
27
+ __metadata("design:type", String)
28
+ ], Friend.prototype, "id", void 0);
29
+ __decorate([
30
+ (0, mongoose_1.Prop)(),
31
+ __metadata("design:type", String)
32
+ ], Friend.prototype, "icon", void 0);
33
+ __decorate([
34
+ (0, mongoose_1.Prop)(),
35
+ __metadata("design:type", String)
36
+ ], Friend.prototype, "title", void 0);
37
+ __decorate([
38
+ (0, mongoose_1.Prop)(),
39
+ __metadata("design:type", String)
40
+ ], Friend.prototype, "titleEn", void 0);
41
+ __decorate([
42
+ (0, mongoose_1.Prop)(),
43
+ __metadata("design:type", String)
44
+ ], Friend.prototype, "userId", void 0);
45
+ __decorate([
46
+ (0, mongoose_1.Prop)(),
47
+ __metadata("design:type", String)
48
+ ], Friend.prototype, "avatarUrl", void 0);
49
+ __decorate([
50
+ (0, mongoose_1.Prop)(),
51
+ __metadata("design:type", String)
52
+ ], Friend.prototype, "userName", void 0);
53
+ __decorate([
54
+ (0, mongoose_1.Prop)(),
55
+ __metadata("design:type", Number)
56
+ ], Friend.prototype, "level", void 0);
57
+ __decorate([
58
+ (0, mongoose_1.Prop)(),
59
+ __metadata("design:type", String)
60
+ ], Friend.prototype, "url", void 0);
61
+ __decorate([
62
+ (0, mongoose_1.Prop)(),
63
+ __metadata("design:type", String)
64
+ ], Friend.prototype, "game", void 0);
65
+ __decorate([
66
+ (0, mongoose_1.Prop)(),
67
+ __metadata("design:type", String)
68
+ ], Friend.prototype, "channel", void 0);
69
+ exports.Friend = Friend = __decorate([
70
+ (0, mongoose_1.Schema)({ collection: 'friends' })
71
+ ], Friend);
72
+ exports.FriendSchema = mongoose_1.SchemaFactory.createForClass(Friend);
73
+ //# sourceMappingURL=friend.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"friend.schema.js","sourceRoot":"","sources":["../../src/schemas/friend.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAwE;AAMjE,IAAM,MAAM,GAAZ,MAAM,MAAM;CA0ClB,CAAA;AA1CY,wBAAM;AAMN;IALR,IAAA,kBAAO,EAAC;QACL,GAAG,EAAE;YACD,OAAO,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;QAC/B,CAAC;KACJ,CAAC;;sCACsB;AAGxB;IADC,IAAA,eAAI,GAAE;;kCACI;AAGX;IADC,IAAA,eAAI,GAAE;;oCACM;AAGb;IADC,IAAA,eAAI,GAAE;;qCACO;AAGd;IADC,IAAA,eAAI,GAAE;;uCACS;AAGhB;IADC,IAAA,eAAI,GAAE;;sCACQ;AAGf;IADC,IAAA,eAAI,GAAE;;yCACW;AAGlB;IADC,IAAA,eAAI,GAAE;;wCACU;AAGjB;IADC,IAAA,eAAI,GAAE;;qCACO;AAGd;IADC,IAAA,eAAI,GAAE;;mCACK;AAGZ;IADC,IAAA,eAAI,GAAE;;oCACM;AAGb;IADC,IAAA,eAAI,GAAE;;uCACS;iBAvCP,MAAM;IADlB,IAAA,iBAAM,EAAC,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC;GACrB,MAAM,CA0ClB;AAEY,QAAA,YAAY,GAAG,wBAAa,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC"}
@@ -0,0 +1,115 @@
1
+ import { Document, HydratedDocument } from 'mongoose';
2
+ export type GameStatisticDocument = HydratedDocument<GameStatistic>;
3
+ export declare class GameStatistic {
4
+ readonly gameStatisticId: string;
5
+ code: string;
6
+ title: string;
7
+ titleEn: string;
8
+ icon: string;
9
+ url: string;
10
+ position: number;
11
+ game: string;
12
+ channel: string;
13
+ }
14
+ export declare const GameStatisticSchema: import("mongoose").Schema<GameStatistic, import("mongoose").Model<GameStatistic, any, any, any, (Document<unknown, any, GameStatistic, any, import("mongoose").DefaultSchemaOptions> & GameStatistic & {
15
+ _id: import("mongoose").Types.ObjectId;
16
+ } & {
17
+ __v: number;
18
+ } & {
19
+ id: string;
20
+ }) | (Document<unknown, any, GameStatistic, any, import("mongoose").DefaultSchemaOptions> & GameStatistic & {
21
+ _id: import("mongoose").Types.ObjectId;
22
+ } & {
23
+ __v: number;
24
+ }), any, GameStatistic>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, GameStatistic, Document<unknown, {}, GameStatistic, {
25
+ id: string;
26
+ }, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<GameStatistic & {
27
+ _id: import("mongoose").Types.ObjectId;
28
+ } & {
29
+ __v: number;
30
+ }, "id"> & {
31
+ id: string;
32
+ }, {
33
+ readonly gameStatisticId?: import("mongoose").SchemaDefinitionProperty<string, GameStatistic, Document<unknown, {}, GameStatistic, {
34
+ id: string;
35
+ }, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<GameStatistic & {
36
+ _id: import("mongoose").Types.ObjectId;
37
+ } & {
38
+ __v: number;
39
+ }, "id"> & {
40
+ id: string;
41
+ }>;
42
+ code?: import("mongoose").SchemaDefinitionProperty<string, GameStatistic, Document<unknown, {}, GameStatistic, {
43
+ id: string;
44
+ }, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<GameStatistic & {
45
+ _id: import("mongoose").Types.ObjectId;
46
+ } & {
47
+ __v: number;
48
+ }, "id"> & {
49
+ id: string;
50
+ }>;
51
+ title?: import("mongoose").SchemaDefinitionProperty<string, GameStatistic, Document<unknown, {}, GameStatistic, {
52
+ id: string;
53
+ }, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<GameStatistic & {
54
+ _id: import("mongoose").Types.ObjectId;
55
+ } & {
56
+ __v: number;
57
+ }, "id"> & {
58
+ id: string;
59
+ }>;
60
+ titleEn?: import("mongoose").SchemaDefinitionProperty<string, GameStatistic, Document<unknown, {}, GameStatistic, {
61
+ id: string;
62
+ }, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<GameStatistic & {
63
+ _id: import("mongoose").Types.ObjectId;
64
+ } & {
65
+ __v: number;
66
+ }, "id"> & {
67
+ id: string;
68
+ }>;
69
+ icon?: import("mongoose").SchemaDefinitionProperty<string, GameStatistic, Document<unknown, {}, GameStatistic, {
70
+ id: string;
71
+ }, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<GameStatistic & {
72
+ _id: import("mongoose").Types.ObjectId;
73
+ } & {
74
+ __v: number;
75
+ }, "id"> & {
76
+ id: string;
77
+ }>;
78
+ url?: import("mongoose").SchemaDefinitionProperty<string, GameStatistic, Document<unknown, {}, GameStatistic, {
79
+ id: string;
80
+ }, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<GameStatistic & {
81
+ _id: import("mongoose").Types.ObjectId;
82
+ } & {
83
+ __v: number;
84
+ }, "id"> & {
85
+ id: string;
86
+ }>;
87
+ position?: import("mongoose").SchemaDefinitionProperty<number, GameStatistic, Document<unknown, {}, GameStatistic, {
88
+ id: string;
89
+ }, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<GameStatistic & {
90
+ _id: import("mongoose").Types.ObjectId;
91
+ } & {
92
+ __v: number;
93
+ }, "id"> & {
94
+ id: string;
95
+ }>;
96
+ game?: import("mongoose").SchemaDefinitionProperty<string, GameStatistic, Document<unknown, {}, GameStatistic, {
97
+ id: string;
98
+ }, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<GameStatistic & {
99
+ _id: import("mongoose").Types.ObjectId;
100
+ } & {
101
+ __v: number;
102
+ }, "id"> & {
103
+ id: string;
104
+ }>;
105
+ channel?: import("mongoose").SchemaDefinitionProperty<string, GameStatistic, Document<unknown, {}, GameStatistic, {
106
+ id: string;
107
+ }, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<GameStatistic & {
108
+ _id: import("mongoose").Types.ObjectId;
109
+ } & {
110
+ __v: number;
111
+ }, "id"> & {
112
+ id: string;
113
+ }>;
114
+ }, GameStatistic>;
115
+ //# sourceMappingURL=game_statistic.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"game_statistic.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/game_statistic.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEtD,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC,aAAa,CAAC,CAAC;AAEpE,qBACa,aAAa;IAMtB,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IAGjC,IAAI,EAAE,MAAM,CAAC;IAGb,KAAK,EAAE,MAAM,CAAC;IAGd,OAAO,EAAE,MAAM,CAAC;IAGhB,IAAI,EAAE,MAAM,CAAC;IAGb,GAAG,EAAE,MAAM,CAAC;IAGZ,QAAQ,EAAE,MAAM,CAAC;IAGjB,IAAI,EAAE,MAAM,CAAC;IAGb,OAAO,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA8C,CAAC"}
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.GameStatisticSchema = exports.GameStatistic = void 0;
13
+ const mongoose_1 = require("@nestjs/mongoose");
14
+ let GameStatistic = class GameStatistic {
15
+ };
16
+ exports.GameStatistic = GameStatistic;
17
+ __decorate([
18
+ (0, mongoose_1.Virtual)({
19
+ get: function () {
20
+ return this._id.toString();
21
+ },
22
+ }),
23
+ __metadata("design:type", String)
24
+ ], GameStatistic.prototype, "gameStatisticId", void 0);
25
+ __decorate([
26
+ (0, mongoose_1.Prop)(),
27
+ __metadata("design:type", String)
28
+ ], GameStatistic.prototype, "code", void 0);
29
+ __decorate([
30
+ (0, mongoose_1.Prop)(),
31
+ __metadata("design:type", String)
32
+ ], GameStatistic.prototype, "title", void 0);
33
+ __decorate([
34
+ (0, mongoose_1.Prop)(),
35
+ __metadata("design:type", String)
36
+ ], GameStatistic.prototype, "titleEn", void 0);
37
+ __decorate([
38
+ (0, mongoose_1.Prop)(),
39
+ __metadata("design:type", String)
40
+ ], GameStatistic.prototype, "icon", void 0);
41
+ __decorate([
42
+ (0, mongoose_1.Prop)(),
43
+ __metadata("design:type", String)
44
+ ], GameStatistic.prototype, "url", void 0);
45
+ __decorate([
46
+ (0, mongoose_1.Prop)(),
47
+ __metadata("design:type", Number)
48
+ ], GameStatistic.prototype, "position", void 0);
49
+ __decorate([
50
+ (0, mongoose_1.Prop)(),
51
+ __metadata("design:type", String)
52
+ ], GameStatistic.prototype, "game", void 0);
53
+ __decorate([
54
+ (0, mongoose_1.Prop)(),
55
+ __metadata("design:type", String)
56
+ ], GameStatistic.prototype, "channel", void 0);
57
+ exports.GameStatistic = GameStatistic = __decorate([
58
+ (0, mongoose_1.Schema)({ collection: 'game_statistics' })
59
+ ], GameStatistic);
60
+ exports.GameStatisticSchema = mongoose_1.SchemaFactory.createForClass(GameStatistic);
61
+ //# sourceMappingURL=game_statistic.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"game_statistic.schema.js","sourceRoot":"","sources":["../../src/schemas/game_statistic.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAwE;AAMjE,IAAM,aAAa,GAAnB,MAAM,aAAa;CA+BzB,CAAA;AA/BY,sCAAa;AAMb;IALR,IAAA,kBAAO,EAAC;QACL,GAAG,EAAE;YACD,OAAO,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;QAC/B,CAAC;KACJ,CAAC;;sDAC+B;AAGjC;IADC,IAAA,eAAI,GAAE;;2CACM;AAGb;IADC,IAAA,eAAI,GAAE;;4CACO;AAGd;IADC,IAAA,eAAI,GAAE;;8CACS;AAGhB;IADC,IAAA,eAAI,GAAE;;2CACM;AAGb;IADC,IAAA,eAAI,GAAE;;0CACK;AAGZ;IADC,IAAA,eAAI,GAAE;;+CACU;AAGjB;IADC,IAAA,eAAI,GAAE;;2CACM;AAGb;IADC,IAAA,eAAI,GAAE;;8CACS;wBA9BP,aAAa;IADzB,IAAA,iBAAM,EAAC,EAAE,UAAU,EAAE,iBAAiB,EAAE,CAAC;GAC7B,aAAa,CA+BzB;AAEY,QAAA,mBAAmB,GAAG,wBAAa,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jp.db.schemas",
3
- "version": "2.1.9",
3
+ "version": "2.1.10",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -46,6 +46,8 @@ import { Setting, SettingSchema } from './schemas/setting.schema';
46
46
  import type { SettingDocument } from './schemas/setting.schema';
47
47
  import { Premium, PremiumSchema } from './schemas/premium.schema';
48
48
  import type { PremiumDocument } from './schemas/premium.schema';
49
+ import { GameStatistic, GameStatisticSchema } from './schemas/game_statistic.schema';
50
+ import type { GameStatisticDocument } from './schemas/game_statistic.schema';
49
51
  import { Menu, MenuSchema } from './schemas/menu.schema';
50
52
  import type { MenuDocument } from './schemas/menu.schema';
51
53
  import { GameResult, GameResultSchema } from './schemas/game_result.schema';
@@ -62,6 +64,8 @@ import { DailyBonus, DailyBonusSchema } from './schemas/daily_bonus.schema';
62
64
  import type { DailyBonusDocument } from './schemas/daily_bonus.schema';
63
65
  import { Rule, RuleSchema } from './schemas/rule.schema';
64
66
  import type { RuleDocument } from './schemas/rule.schema';
67
+ import { Friend, FriendSchema } from './schemas/friend.schema';
68
+ import type { FriendDocument } from './schemas/friend.schema';
65
69
  import { Welcome, WelcomeSchema } from './schemas/welcome.schema';
66
70
  import type { WelcomeDocument } from './schemas/welcome.schema';
67
71
  import { ActivityLog, ActivityLogSchema } from './schemas/activity_log.schema';
@@ -79,7 +83,10 @@ import {
79
83
  ServersRepository,
80
84
  UsersRepository,
81
85
  MenuRepository,
86
+ GameStatisticRepository,
87
+ FriendRepository,
82
88
  WelcomeRepository,
89
+ RatingRepository,
83
90
  PremiumRepository,
84
91
  RuleRepository,
85
92
  DailyBonusRepository,
@@ -117,11 +124,13 @@ export type {
117
124
  ProductDocument,
118
125
  PurchaseChannelDocument,
119
126
  RatingDocument,
127
+ GameStatisticDocument,
120
128
  SettingDocument,
121
129
  PremiumDocument,
122
130
  MenuDocument,
123
131
  WelcomeDocument,
124
132
  RuleDocument,
133
+ FriendDocument,
125
134
  DailyBonusDocument,
126
135
  GameResultDocument,
127
136
  BalanceHistoryDocument,
@@ -178,6 +187,8 @@ export {
178
187
  RatingSchema,
179
188
  Setting,
180
189
  SettingSchema,
190
+ GameStatistic,
191
+ GameStatisticSchema,
181
192
  Menu,
182
193
  MenuSchema,
183
194
  DailyBonus,
@@ -188,6 +199,8 @@ export {
188
199
  PremiumSchema,
189
200
  Welcome,
190
201
  WelcomeSchema,
202
+ Friend,
203
+ FriendSchema,
191
204
  GameResult,
192
205
  GameResultSchema,
193
206
  BalanceHistory,
@@ -217,6 +230,9 @@ export {
217
230
  DailyBonusRepository,
218
231
  PremiumRepository,
219
232
  RuleRepository,
233
+ RatingRepository,
234
+ GameStatisticRepository,
235
+ FriendRepository,
220
236
  WelcomeRepository,
221
237
  SettingRepository,
222
238
  RoomsRepository,
@@ -0,0 +1,20 @@
1
+ import { Injectable } from '@nestjs/common';
2
+ import { InjectModel } from '@nestjs/mongoose';
3
+ import { Model } from 'mongoose';
4
+
5
+ import { Friend, FriendDocument } from '..';
6
+ import { getChannelRegExpFilter } from '../utils';
7
+
8
+ @Injectable()
9
+ export class FriendRepository {
10
+ constructor (@InjectModel(Friend.name) private friendModel: Model<FriendDocument>) {
11
+ }
12
+
13
+ async findFriend (channel: string, game: string): Promise<Array<Friend> | null> {
14
+ return this.friendModel
15
+ .find({
16
+ channels: getChannelRegExpFilter(channel),
17
+ })
18
+ .exec();
19
+ }
20
+ }
@@ -0,0 +1,21 @@
1
+ import { Injectable } from '@nestjs/common';
2
+ import { InjectModel } from '@nestjs/mongoose';
3
+ import { Model } from 'mongoose';
4
+
5
+ import { GameStatistic, GameStatisticDocument } from '..';
6
+ import { getChannelRegExpFilter } from '../utils';
7
+
8
+ @Injectable()
9
+ export class GameStatisticRepository {
10
+ constructor (@InjectModel(GameStatistic.name) private gameStatisticModel: Model<GameStatisticDocument>) {
11
+ }
12
+
13
+ async findGameStatistic (channel: string, game: string): Promise<Array<GameStatistic> | null> {
14
+ return this.gameStatisticModel
15
+ .find({
16
+ channels: getChannelRegExpFilter(channel),
17
+ })
18
+ .exec();
19
+ }
20
+ }
21
+
@@ -9,6 +9,9 @@ import { ServersRepository } from './servers.repository';
9
9
  import { UsersRepository } from './users.repository';
10
10
  import { MenuRepository } from './menu.repository';
11
11
  import { RuleRepository } from './rule.repository';
12
+ import { RatingRepository } from './rating.repository';
13
+ import { GameStatisticRepository } from './game-statistic.repository';
14
+ import { FriendRepository } from './friend.repository';
12
15
  import { SettingRepository } from './setting.repository';
13
16
  import { PremiumRepository } from './premium.repository';
14
17
  import { WelcomeRepository } from './welcome.repository';
@@ -33,7 +36,10 @@ export {
33
36
  ServersRepository,
34
37
  UsersRepository,
35
38
  MenuRepository,
39
+ RatingRepository,
40
+ GameStatisticRepository,
36
41
  RuleRepository,
42
+ FriendRepository,
37
43
  SettingRepository,
38
44
  PremiumRepository,
39
45
  WelcomeRepository,
@@ -0,0 +1,21 @@
1
+ import { Injectable } from '@nestjs/common';
2
+ import { InjectModel } from '@nestjs/mongoose';
3
+ import { Model } from 'mongoose';
4
+
5
+ import { Rating, RatingDocument } from '..';
6
+ import { getChannelRegExpFilter } from '../utils';
7
+
8
+ @Injectable()
9
+ export class RatingRepository {
10
+ constructor (@InjectModel(Rating.name) private ratingModel: Model<RatingDocument>) {
11
+ }
12
+
13
+ async findRating (channel: string, game: string): Promise<Array<Rating> | null> {
14
+ return this.ratingModel
15
+ .find({
16
+ channels: getChannelRegExpFilter(channel),
17
+
18
+ })
19
+ .exec();
20
+ }
21
+ }
@@ -0,0 +1,51 @@
1
+ import { Prop, Schema, SchemaFactory, Virtual } from '@nestjs/mongoose';
2
+ import { Document, HydratedDocument } from 'mongoose';
3
+
4
+ export type FriendDocument = HydratedDocument<Friend>;
5
+
6
+ @Schema({ collection: 'friends' })
7
+ export class Friend {
8
+ @Virtual({
9
+ get: function (this: Document) {
10
+ return this._id.toString();
11
+ },
12
+ })
13
+ readonly ruleId: string;
14
+
15
+ @Prop()
16
+ id: string;
17
+
18
+ @Prop()
19
+ icon: string;
20
+
21
+ @Prop()
22
+ title: string;
23
+
24
+ @Prop()
25
+ titleEn: string;
26
+
27
+ @Prop()
28
+ userId: string;
29
+
30
+ @Prop()
31
+ avatarUrl: string;
32
+
33
+ @Prop()
34
+ userName: string;
35
+
36
+ @Prop()
37
+ level: number;
38
+
39
+ @Prop()
40
+ url: string;
41
+
42
+ @Prop()
43
+ game: string;
44
+
45
+ @Prop()
46
+ channel: string;
47
+
48
+
49
+ }
50
+
51
+ export const FriendSchema = SchemaFactory.createForClass(Friend);
@@ -0,0 +1,40 @@
1
+ import { Prop, Schema, SchemaFactory, Virtual } from '@nestjs/mongoose';
2
+ import { Document, HydratedDocument } from 'mongoose';
3
+
4
+ export type GameStatisticDocument = HydratedDocument<GameStatistic>;
5
+
6
+ @Schema({ collection: 'game_statistics' })
7
+ export class GameStatistic {
8
+ @Virtual({
9
+ get: function (this: Document) {
10
+ return this._id.toString();
11
+ },
12
+ })
13
+ readonly gameStatisticId: string;
14
+
15
+ @Prop()
16
+ code: string;
17
+
18
+ @Prop()
19
+ title: string;
20
+
21
+ @Prop()
22
+ titleEn: string;
23
+
24
+ @Prop()
25
+ icon: string;
26
+
27
+ @Prop()
28
+ url: string;
29
+
30
+ @Prop()
31
+ position: number;
32
+
33
+ @Prop()
34
+ game: string;
35
+
36
+ @Prop()
37
+ channel: string;
38
+ }
39
+
40
+ export const GameStatisticSchema = SchemaFactory.createForClass(GameStatistic);