jp.db.schemas 2.0.1 → 2.0.3

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 (56) hide show
  1. package/dist/index.d.ts +10 -4
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +13 -1
  4. package/dist/index.js.map +1 -1
  5. package/dist/models/tournament-participant.interface.d.ts +6 -0
  6. package/dist/models/tournament-participant.interface.d.ts.map +1 -0
  7. package/dist/models/tournament-participant.interface.js +3 -0
  8. package/dist/models/tournament-participant.interface.js.map +1 -0
  9. package/dist/models/tournament-status.enum.d.ts +7 -0
  10. package/dist/models/tournament-status.enum.d.ts.map +1 -0
  11. package/dist/models/tournament-status.enum.js +11 -0
  12. package/dist/models/tournament-status.enum.js.map +1 -0
  13. package/dist/models/tournament-winner.interface.d.ts +8 -0
  14. package/dist/models/tournament-winner.interface.d.ts.map +1 -0
  15. package/dist/models/tournament-winner.interface.js +3 -0
  16. package/dist/models/tournament-winner.interface.js.map +1 -0
  17. package/dist/repositories/index.d.ts +4 -1
  18. package/dist/repositories/index.d.ts.map +1 -1
  19. package/dist/repositories/index.js +7 -1
  20. package/dist/repositories/index.js.map +1 -1
  21. package/dist/repositories/simple-rooms.repository.d.ts +8 -0
  22. package/dist/repositories/simple-rooms.repository.d.ts.map +1 -0
  23. package/dist/repositories/simple-rooms.repository.js +36 -0
  24. package/dist/repositories/simple-rooms.repository.js.map +1 -0
  25. package/dist/repositories/tournament-many-tables-rooms.repository.d.ts +18 -0
  26. package/dist/repositories/tournament-many-tables-rooms.repository.d.ts.map +1 -0
  27. package/dist/repositories/tournament-many-tables-rooms.repository.js +84 -0
  28. package/dist/repositories/tournament-many-tables-rooms.repository.js.map +1 -0
  29. package/dist/repositories/tournament-one-table-rooms.repository.d.ts +16 -0
  30. package/dist/repositories/tournament-one-table-rooms.repository.d.ts.map +1 -0
  31. package/dist/repositories/tournament-one-table-rooms.repository.js +76 -0
  32. package/dist/repositories/tournament-one-table-rooms.repository.js.map +1 -0
  33. package/dist/schemas/simple_rooms.schema.d.ts +125 -0
  34. package/dist/schemas/simple_rooms.schema.d.ts.map +1 -0
  35. package/dist/schemas/simple_rooms.schema.js +65 -0
  36. package/dist/schemas/simple_rooms.schema.js.map +1 -0
  37. package/dist/schemas/tournament_many_tables_rooms.schema.d.ts +237 -0
  38. package/dist/schemas/tournament_many_tables_rooms.schema.d.ts.map +1 -0
  39. package/dist/schemas/tournament_many_tables_rooms.schema.js +109 -0
  40. package/dist/schemas/tournament_many_tables_rooms.schema.js.map +1 -0
  41. package/dist/schemas/tournament_one_table_rooms.schema.d.ts +237 -0
  42. package/dist/schemas/tournament_one_table_rooms.schema.d.ts.map +1 -0
  43. package/dist/schemas/tournament_one_table_rooms.schema.js +109 -0
  44. package/dist/schemas/tournament_one_table_rooms.schema.js.map +1 -0
  45. package/package.json +1 -1
  46. package/src/index.ts +21 -0
  47. package/src/models/tournament-participant.interface.ts +5 -0
  48. package/src/models/tournament-status.enum.ts +6 -0
  49. package/src/models/tournament-winner.interface.ts +7 -0
  50. package/src/repositories/index.ts +6 -0
  51. package/src/repositories/simple-rooms.repository.ts +17 -0
  52. package/src/repositories/tournament-many-tables-rooms.repository.ts +89 -0
  53. package/src/repositories/tournament-one-table-rooms.repository.ts +71 -0
  54. package/src/schemas/simple_rooms.schema.ts +43 -0
  55. package/src/schemas/tournament_many_tables_rooms.schema.ts +81 -0
  56. package/src/schemas/tournament_one_table_rooms.schema.ts +81 -0
package/dist/index.d.ts CHANGED
@@ -50,8 +50,14 @@ import { GameResult, GameResultSchema } from './schemas/game_result.schema';
50
50
  import type { GameResultDocument } from './schemas/game_result.schema';
51
51
  import { BalanceHistory, BalanceHistorySchema } from './schemas/balance_history.schema';
52
52
  import type { BalanceHistoryDocument } from './schemas/balance_history.schema';
53
- import { AdminRepository, ArticleRepository, BannersRepository, ComplainsRepository, NotificationRepository, ProductsRepository, ScheduledTournamentsRepository, ServersRepository, UsersRepository, MenuRepository, RoomsRepository, GameResultRepository, BalanceHistoryRepository } from './repositories';
54
- 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, MenuDocument, GameResultDocument, BalanceHistoryDocument, };
55
- 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, GameResult, GameResultSchema, BalanceHistory, BalanceHistorySchema, };
56
- export { AdminRepository, ArticleRepository, BannersRepository, ComplainsRepository, NotificationRepository, ProductsRepository, ScheduledTournamentsRepository, ServersRepository, UsersRepository, MenuRepository, RoomsRepository, GameResultRepository, BalanceHistoryRepository, };
53
+ import { SimpleRoom, SimpleRoomSchema } from './schemas/simple_rooms.schema';
54
+ import type { SimpleRoomDocument } from './schemas/simple_rooms.schema';
55
+ import { TournamentOneTableRoom, TournamentOneTableRoomSchema } from './schemas/tournament_one_table_rooms.schema';
56
+ import type { TournamentOneTableRoomDocument } from './schemas/tournament_one_table_rooms.schema';
57
+ import { TournamentManyTablesRoom, TournamentManyTablesRoomSchema } from './schemas/tournament_many_tables_rooms.schema';
58
+ import type { TournamentManyTablesRoomDocument } from './schemas/tournament_many_tables_rooms.schema';
59
+ import { AdminRepository, ArticleRepository, BannersRepository, ComplainsRepository, NotificationRepository, ProductsRepository, ScheduledTournamentsRepository, ServersRepository, UsersRepository, MenuRepository, RoomsRepository, GameResultRepository, BalanceHistoryRepository, SimpleRoomsRepository, TournamentOneTableRoomsRepository, TournamentManyTablesRoomsRepository } from './repositories';
60
+ 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, MenuDocument, GameResultDocument, BalanceHistoryDocument, SimpleRoomDocument, TournamentOneTableRoomDocument, TournamentManyTablesRoomDocument, };
61
+ 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, GameResult, GameResultSchema, BalanceHistory, BalanceHistorySchema, SimpleRoom, SimpleRoomSchema, TournamentOneTableRoom, TournamentOneTableRoomSchema, TournamentManyTablesRoom, TournamentManyTablesRoomSchema, };
62
+ export { AdminRepository, ArticleRepository, BannersRepository, ComplainsRepository, NotificationRepository, ProductsRepository, ScheduledTournamentsRepository, ServersRepository, UsersRepository, MenuRepository, RoomsRepository, GameResultRepository, BalanceHistoryRepository, SimpleRoomsRepository, TournamentOneTableRoomsRepository, TournamentManyTablesRoomsRepository, };
57
63
  //# sourceMapp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AAmB,EACnB,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,uBAAuB,EACvB,cAAc,EACd,eAAe,EACf,YAAY,EACZ,kBAAkB,EAClB,sBAAsB,GACzB,CAAA;AAED,OAAO,EACH,IAAI,EACJ,UAAU,EACV,MAAM,EACN,YAAY,EACZ,UAAU,EACV,gBAAgB,EAChB,MAAM,EACN,YAAY,EACZ,MAAM,EACN,YAAY,EACZ,MAAM,EACN,YAAY,EACZ,MAAM,EACN,YAAY,EACZ,QAAQ,EACR,cAAc,EACd,QAAQ,EACR,cAAc,EACd,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,yBAAyB,EACzB,KAAK,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,IAAI,EACJ,UAAU,EACV,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,oBAAoB,GACvB,CAAA;AAED,OAAO,EACH,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,EACtB,kBAAkB,EAClB,8BAA8B,EAC9B,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,eAAe,EACf,oBAAoB,EACpB,wBAAwB,GAC3B,CAAA"}
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,E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EACjC,mCAAmC,GACtC,CAAA"}
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GameResultSchema = exports.GameResult = 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.BalanceHistoryRepository = exports.GameResultRepository = exports.RoomsRepository = exports.MenuRepository = exports.UsersRepository = exports.ServersRepository = exports.ScheduledTournamentsRepository = exports.ProductsRepository = exports.NotificationRepository = exports.ComplainsRepository = exports.BannersRepository = exports.ArticleRepository = exports.AdminRepository = exports.BalanceHistorySchema = exports.BalanceHistory = void 0;
4
+ exports.TournamentManyTablesRoomsRepository = exports.TournamentOneTableRoomsRepository = exports.SimpleRoomsRepository = exports.BalanceHistoryRepository = exports.GameResultRepository = exports.RoomsRepository = exports.MenuRepository = exports.UsersRepository = exports.ServersRepository = exports.ScheduledTournamentsRepository = exports.ProductsRepository = exports.NotificationRepository = exports.ComplainsRepository = exports.BannersRepository = exports.ArticleRepository = exports.AdminRepository = exports.TournamentManyTablesRoomSchema = exports.TournamentManyTablesRoom = exports.TournamentOneTableRoomSchema = exports.TournamentOneTableRoom = exports.SimpleRoomSchema = exports.SimpleRoom = exports.BalanceHistorySchema = exports.BalanceHistory = 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; } });
@@ -80,6 +80,15 @@ Object.defineProperty(exports, "GameResultSchema", { enumerable: true, get: func
80
80
  const balance_history_schema_1 = require("./schemas/balance_history.schema");
81
81
  Object.defineProperty(exports, "BalanceHistory", { enumerable: true, get: function () { return balance_history_schema_1.BalanceHistory; } });
82
82
  Object.defineProperty(exports, "BalanceHistorySchema", { enumerable: true, get: function () { return balance_history_schema_1.BalanceHistorySchema; } });
83
+ const simple_rooms_schema_1 = require("./schemas/simple_rooms.schema");
84
+ Object.defineProperty(exports, "SimpleRoom", { enumerable: true, get: function () { return simple_rooms_schema_1.SimpleRoom; } });
85
+ Object.defineProperty(exports, "SimpleRoomSchema", { enumerable: true, get: function () { return simple_rooms_schema_1.SimpleRoomSchema; } });
86
+ const tournament_one_table_rooms_schema_1 = require("./schemas/tournament_one_table_rooms.schema");
87
+ Object.defineProperty(exports, "TournamentOneTableRoom", { enumerable: true, get: function () { return tournament_one_table_rooms_schema_1.TournamentOneTableRoom; } });
88
+ Object.defineProperty(exports, "TournamentOneTableRoomSchema", { enumerable: true, get: function () { return tournament_one_table_rooms_schema_1.TournamentOneTableRoomSchema; } });
89
+ const tournament_many_tables_rooms_schema_1 = require("./schemas/tournament_many_tables_rooms.schema");
90
+ Object.defineProperty(exports, "TournamentManyTablesRoom", { enumerable: true, get: function () { return tournament_many_tables_rooms_schema_1.TournamentManyTablesRoom; } });
91
+ Object.defineProperty(exports, "TournamentManyTablesRoomSchema", { enumerable: true, get: function () { return tournament_many_tables_rooms_schema_1.TournamentManyTablesRoomSchema; } });
83
92
  const repositories_1 = require("./repositories");
84
93
  Object.defineProperty(exports, "AdminRepository", { enumerable: true, get: function () { return repositories_1.AdminRepository; } });
85
94
  Object.defineProperty(exports, "ArticleRepository", { enumerable: true, get: function () { return repositories_1.ArticleRepository; } });
@@ -94,4 +103,7 @@ Object.defineProperty(exports, "MenuRepository", { enumerable: true, get: functi
94
103
  Object.defineProperty(exports, "RoomsRepository", { enumerable: true, get: function () { return repositories_1.RoomsRepository; } });
95
104
  Object.defineProperty(exports, "GameResultRepository", { enumerable: true, get: function () { return repositories_1.GameResultRepository; } });
96
105
  Object.defineProperty(exports, "BalanceHistoryRepository", { enumerable: true, get: function () { return repositories_1.BalanceHistoryRepository; } });
106
+ Object.defineProperty(exports, "SimpleRoomsRepository", { enumerable: true, get: function () { return repositories_1.SimpleRoomsRepository; } });
107
+ Object.defineProperty(exports, "TournamentOneTableRoomsRepository", { enumerable: true, get: function () { return repositories_1.TournamentOneTableRoomsRepository; } });
108
+ Object.defineProperty(exports, "TournamentManyTablesRoomsRepository", { enumerable: true, get: function () { return repositories_1.TournamentManyTablesRoomsRepository; } });
97
109
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,uDAAyD;AAmGrD,qFAnGK,kBAAI,OAmGL;AACJ,2FApGW,wBAAU,OAoGX;AAlGd,6DAAgE;AAmG5D,uFAnGK,uBAAM,OAmGL;AACN,6FApGa,6BAAY,OAoGb;AAlGhB,qEAA4E;AAmGxE,2FAnGK,+BAAU,OAmGL;AACV,iGApGiB,qCAAgB,OAoGjB;AAlGpB,6DAAgE;AAmG5D,uFAnGK,uBAAM,OAmGL;AACN,6FApGa,6BAAY,OAoGb;AAlGhB,6DAAgE;AAmG5D,uFAnGK,uBAAM,OAmGL;AACN,6FApGa,6BAAY,OAoGb;AAlGhB,6DAAgE;AAmG5D,uFAnGK,uBAAM,OAmGL;AACN,6FApGa,6BAAY,OAoGb;AAlGhB,6DAAgE;AAmG5D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;AACP,8FAhHc,8BAAa,OAgHd;AA9GjB,uDAAyD;AA+GrD,qFA/GK,kBAAI,OA+GL;AACJ,2FAhHW,wBAAU,OAgHX;AA9Gd,qEAA4E;AA+GxE,2FA/GK,+BAAU,OA+GL;AACV,iGAhHiB,qCAAgB,OAgHjB;AA9GpB,6EAAwF;AA+GpF,+FA/GK,uCAAc,OA+GL;AACd,qGAhHqB,6CAAoB,OAgHrB;AA9GxB,uEAA6E;AA+GzE,2FA/GK,gCAAU,OA+GL;AACV,iGAhHiB,sCAAgB,OAgHjB;AA9GpB,mGAAoH;AA+GhH,uGA/GK,0DAAsB,OA+GL;AACtB,6GAhH6B,gEAA4B,OAgH7B;AA9GhC,uGAAyH;AA+GrH,yGA/GK,8DAAwB,OA+GL;AACxB,+GAhH+B,oEAA8B,OAgH/B;AA7GlC,iDAiBuB;AAgGnB,gGAhHA,8BAAe,OAgHA;AACf,kGAhHA,gCAAiB,OAgHA;AACjB,kGAhHA,gCAAiB,OAgHA;AACjB,oGAhHA,kCAAmB,OAgHA;AACnB,uGAhHA,qCAAsB,OAgHA;AACtB,mGAhHA,iCAAkB,OAgHA;AAClB,+GAhHA,6CAA8B,OAgHA;AAC9B,kGAhHA,gCAAiB,OAgHA;AACjB,gGAhHA,8BAAe,OAgHA;AACf,+FAhHA,6BAAc,OAgHA;AACd,gGAhHA,8BAAe,OAgHA;AACf,qGAhHA,mCAAoB,OAgHA;AACpB,yGAhHA,uCAAwB,OAgHA;AACxB,sGAhHA,oCAAqB,OAgHA;AACrB,kHAhHA,gDAAiC,OAgHA;AACjC,oHAhHA,kDAAmC,OAgHA"}
@@ -0,0 +1,6 @@
1
+ export interface ITournamentParticipant {
2
+ userId: string;
3
+ userName: string;
4
+ userAvatarUrl: string;
5
+ }
6
+ //# sourceMappingURL=tournament-participant.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tournament-participant.interface.d.ts","sourceRoot":"","sources":["../../src/models/tournament-participant.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;CACzB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=tournament-participant.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tournament-participant.interface.js","sourceRoot":"","sources":["../../src/models/tournament-participant.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ export declare 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
+ }
7
+ //# sourceMappingURL=tournament-status.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tournament-status.enum.d.ts","sourceRoot":"","sources":["../../src/models/tournament-status.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,oBAAoB;IAC5B,uBAAuB,4BAA4B;IACnD,iBAAiB,sBAAsB;IACvC,cAAc,mBAAmB;IACjC,eAAe,oBAAoB;CACtC"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TournamentStatusEnum = void 0;
4
+ var TournamentStatusEnum;
5
+ (function (TournamentStatusEnum) {
6
+ TournamentStatusEnum["STATE_WAITING_FOR_START"] = "STATE_WAITING_FOR_START";
7
+ TournamentStatusEnum["STATE_IN_PROGRESS"] = "STATE_IN_PROGRESS";
8
+ TournamentStatusEnum["STATE_FINISHED"] = "STATE_FINISHED";
9
+ TournamentStatusEnum["STATE_CANCELLED"] = "STATE_CANCELLED";
10
+ })(TournamentStatusEnum || (exports.TournamentStatusEnum = TournamentStatusEnum = {}));
11
+ //# sourceMappingURL=tournament-status.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tournament-status.enum.js","sourceRoot":"","sources":["../../src/models/tournament-status.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC5B,2EAAmD,CAAA;IACnD,+DAAuC,CAAA;IACvC,yDAAiC,CAAA;IACjC,2DAAmC,CAAA;AACvC,CAAC,EALW,oBAAoB,oCAApB,oBAAoB,QAK/B"}
@@ -0,0 +1,8 @@
1
+ export interface ITournamentWinner {
2
+ userId: string;
3
+ userName: string;
4
+ userAvatarUrl: string;
5
+ profit: number;
6
+ rank: number;
7
+ }
8
+ //# sourceMappingURL=tournament-winner.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tournament-winner.interface.d.ts","sourceRoot":"","sources":["../../src/models/tournament-winner.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CAChB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=tournament-winner.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tournament-winner.interface.js","sourceRoot":"","sources":["../../src/models/tournament-winner.interface.ts"],"names":[],"mappings":""}
@@ -11,5 +11,8 @@ import { MenuRepository } from './menu.repository';
11
11
  import { RoomsRepository } from './rooms.repository';
12
12
  import { GameResultRepository } from './game-result.repository';
13
13
  import { BalanceHistoryRepository } from './balance-history.repository';
14
- export { AdminRepository, ArticleRepository, BannersRepository, ComplainsRepository, NotificationRepository, ProductsRepository, ScheduledTournamentsRepository, ServersRepository, UsersRepository, MenuRepository, RoomsRepository, GameResultRepository, BalanceHistoryRepository, };
14
+ import { SimpleRoomsRepository } from './simple-rooms.repository';
15
+ import { TournamentOneTableRoomsRepository } from './tournament-one-table-rooms.repository';
16
+ import { TournamentManyTablesRoomsRepository } from './tournament-many-tables-rooms.repository';
17
+ export { AdminRepository, ArticleRepository, BannersRepository, ComplainsRepository, NotificationRepository, ProductsRepository, ScheduledTournamentsRepository, ServersRepository, UsersRepository, MenuRepository, RoomsRepository, GameResultRepository, BalanceHistoryRepository, SimpleRoomsRepository, TournamentOneTableRoomsRepository, TournamentManyTablesRoomsRepository, };
15
18
  //# 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,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAExE,OAAO,EACH,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,EACtB,kBAAkB,EAClB,8BAA8B,EAC9B,iBAAiB,EACjB,eAAe,EACf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 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BalanceHistoryRepository = exports.GameResultRepository = exports.RoomsRepository = exports.MenuRepository = exports.UsersRepository = exports.ServersRepository = exports.ScheduledTournamentsRepository = exports.ProductsRepository = exports.NotificationRepository = exports.ComplainsRepository = exports.BannersRepository = exports.ArticleRepository = exports.AdminRepository = void 0;
3
+ exports.TournamentManyTablesRoomsRepository = exports.TournamentOneTableRoomsRepository = exports.SimpleRoomsRepository = exports.BalanceHistoryRepository = exports.GameResultRepository = exports.RoomsRepository = 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");
@@ -27,4 +27,10 @@ const game_result_repository_1 = require("./game-result.repository");
27
27
  Object.defineProperty(exports, "GameResultRepository", { enumerable: true, get: function () { return game_result_repository_1.GameResultRepository; } });
28
28
  const balance_history_repository_1 = require("./balance-history.repository");
29
29
  Object.defineProperty(exports, "BalanceHistoryRepository", { enumerable: true, get: function () { return balance_history_repository_1.BalanceHistoryRepository; } });
30
+ const simple_rooms_repository_1 = require("./simple-rooms.repository");
31
+ Object.defineProperty(exports, "SimpleRoomsRepository", { enumerable: true, get: function () { return simple_rooms_repository_1.SimpleRoomsRepository; } });
32
+ const tournament_one_table_rooms_repository_1 = require("./tournament-one-table-rooms.repository");
33
+ Object.defineProperty(exports, "TournamentOneTableRoomsRepository", { enumerable: true, get: function () { return tournament_one_table_rooms_repository_1.TournamentOneTableRoomsRepository; } });
34
+ const tournament_many_tables_rooms_repository_1 = require("./tournament-many-tables-rooms.repository");
35
+ Object.defineProperty(exports, "TournamentManyTablesRoomsRepository", { enumerable: true, get: function () { return tournament_many_tables_rooms_repository_1.TournamentManyTablesRoomsRepository; } });
30
36
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/repositories/index.ts"],"names":[],"mappings":";;;AAAA,yDAAqD;AAejD,gGAfK,kCAAe,OAeL;AAdnB,6DAAyD;AAerD,kGAfK,sCAAiB,OAeL;AAdrB,6DAAyD;AAerD,kGAfK,sCAAiB,OAeL;AAdrB,iEAA6D;AAezD,oGAfK,0CAAmB,OAeL;AAdvB,uEAAmE;AAe/D,uGAfK,gDAAsB,OAeL;AAd1B,+DAA2D;AAevD,mGAfK,wCAAkB,OAeL;AAdtB,yFAAoF;AAehF,+GAfK,iEAA8B,OAeL;AAdlC,6DAAyD;AAerD,kGAfK,sCAAiB,OAeL;AAdrB,yDAAqD;AAejD,gGAfK,kCAAe,OAeL;AAdnB,uDAAmD;AAe/C,+FAfK,gCAAc,OAeL;AAdlB,yDAAqD;AAejD,gGAfK,kCAAe,OAeL;AAdnB,qEAAgE;AAe5D,qGAfK,6CAAoB,OAeL;AAdxB,6EAAwE;AAepE,yGAfK,qDAAwB,OAeL"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/repositories/index.ts"],"names":[],"mappings":";;;AAAA,yDAAqD;AAkBjD,gGAlBK,kCAAe,OAkBL;AAjBnB,6DAAyD;AAkBrD,kGAlBK,sCAAiB,OAkBL;AAjBrB,6DAAyD;AAkBrD,kGAlBK,sCAAiB,OAkBL;AAjBrB,iEAA6D;AAkBzD,oGAlBK,0CAAmB,OAkBL;AAjBvB,uEAAmE;AAkB/D,uGAlBK,gDAAsB,OAkBL;AAjB1B,+DAA2D;AAkBvD,mGAlBK,wCAAkB,OAkBL;AAjBtB,yFAAoF;AAkBhF,+GAlBK,iEAA8B,OAkBL;AAjBlC,6DAAyD;AAkBrD,kGAlBK,sCAAiB,OAkBL;AAjBrB,yDAAqD;AAkBjD,gGAlBK,kCAAe,OAkBL;AAjBnB,uDAAmD;AAkB/C,+FAlBK,gCAAc,OAkBL;AAjBlB,yDAAqD;AAkBjD,gGAlBK,kCAAe,OAkBL;AAjBnB,qEAAgE;AAkB5D,qGAlBK,6CAAoB,OAkBL;AAjBxB,6EAAwE;AAkBpE,yGAlBK,qDAAwB,OAkBL;AAjB5B,uEAAkE;AAkB9D,sGAlBK,+CAAqB,OAkBL;AAjBzB,mGAA4F;AAkBxF,kHAlBK,yEAAiC,OAkBL;AAjBrC,uGAAgG;AAkB5F,oHAlBK,6EAAmC,OAkBL"}
@@ -0,0 +1,8 @@
1
+ import { Model } from 'mongoose';
2
+ import { SimpleRoomDocument } from '../';
3
+ export declare class SimpleRoomsRepository {
4
+ private roomModel;
5
+ constructor(roomModel: Model<SimpleRoomDocument>);
6
+ findRooms(gameType: string): Promise<Array<SimpleRoomDocument>>;
7
+ }
8
+ //# sourceMappingURL=simple-rooms.repository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"simple-rooms.repository.d.ts","sourceRoot":"","sources":["../../src/repositories/simple-rooms.repository.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,OAAO,EAAc,kBAAkB,EAAE,MAAM,KAAK,CAAC;AAErD,qBACa,qBAAqB;IACa,OAAO,CAAC,SAAS;gBAAT,SAAS,EAAE,KAAK,CAAC,kBAAkB,CAAC;IAGjF,SAAS,CAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;CAKzE"}
@@ -0,0 +1,36 @@
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.SimpleRoomsRepository = 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
+ let SimpleRoomsRepository = class SimpleRoomsRepository {
21
+ constructor(roomModel) {
22
+ this.roomModel = roomModel;
23
+ }
24
+ async findRooms(gameType) {
25
+ return this.roomModel
26
+ .find({ gameType })
27
+ .exec();
28
+ }
29
+ };
30
+ exports.SimpleRoomsRepository = SimpleRoomsRepository;
31
+ exports.SimpleRoomsRepository = SimpleRoomsRepository = __decorate([
32
+ (0, common_1.Injectable)(),
33
+ __param(0, (0, mongoose_1.InjectModel)(__1.SimpleRoom.name)),
34
+ __metadata("design:paramtypes", [mongoose_2.Model])
35
+ ], SimpleRoomsRepository);
36
+ //# sourceMappingURL=simple-rooms.repository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"simple-rooms.repository.js","sourceRoot":"","sources":["../../src/repositories/simple-rooms.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,+CAA+C;AAC/C,uCAAiC;AAEjC,2BAAqD;AAG9C,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAC9B,YAAmD,SAAoC;QAApC,cAAS,GAAT,SAAS,CAA2B;IACvF,CAAC;IAED,KAAK,CAAC,SAAS,CAAE,QAAgB;QAC7B,OAAO,IAAI,CAAC,SAAS;aAChB,IAAI,CAAC,EAAE,QAAQ,EAAE,CAAC;aAClB,IAAI,EAAE,CAAC;IAChB,CAAC;CACJ,CAAA;AATY,sDAAqB;gCAArB,qBAAqB;IADjC,IAAA,mBAAU,GAAE;IAEK,WAAA,IAAA,sBAAW,EAAC,cAAU,CAAC,IAAI,CAAC,CAAA;qCAAoB,gBAAK;GAD1D,qBAAqB,CASjC"}
@@ -0,0 +1,18 @@
1
+ import { Model } from 'mongoose';
2
+ import { TournamentManyTablesRoom, TournamentManyTablesRoomDocument, TournamentOneTableRoomDocument } from '../';
3
+ import { ITournamentParticipant } from '../models/tournament-participant.interface';
4
+ import { ITournamentWinner } from '../models/tournament-winner.interface';
5
+ export declare class TournamentManyTablesRoomsRepository {
6
+ private tournamentModel;
7
+ constructor(tournamentModel: Model<TournamentManyTablesRoomDocument>);
8
+ findTemplateById(templateId: string, gameType: string): Promise<TournamentOneTableRoomDocument | null>;
9
+ findTournamentById(tournamentId: string): Promise<TournamentManyTablesRoomDocument | null>;
10
+ findTournaments(gameType: string): Promise<Array<TournamentManyTablesRoomDocument>>;
11
+ createTournament(tournament: Partial<TournamentManyTablesRoom>): Promise<TournamentManyTablesRoomDocument>;
12
+ updateTournament(tournamentId: string, tournament: Partial<TournamentManyTablesRoom>): Promise<void>;
13
+ removeTournament(tournamentId: string): Promise<void>;
14
+ startTournament(tournamentId: string, participants: Array<ITournamentParticipant>): Promise<void>;
15
+ cancelTournament(tournamentId: string): Promise<void>;
16
+ finishTournament(tournamentId: string, winners: Array<ITournamentWinner>): Promise<void>;
17
+ }
18
+ //# sourceMappingURL=tournament-many-tables-rooms.repository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tournament-many-tables-rooms.repository.d.ts","sourceRoot":"","sources":["../../src/repositories/tournament-many-tables-rooms.repository.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,OAAO,EAEH,wBAAwB,EACxB,gCAAgC,EAAE,8BAA8B,EACnE,MAAM,KAAK,CAAC;AACb,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AAEpF,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAE1E,qBACa,mCAAmC;IACa,OAAO,CAAC,eAAe;gBAAf,eAAe,EAAE,KAAK,CAAC,gCAAgC,CAAC;IAGnH,gBAAgB,CAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,8BAA8B,GAAG,IAAI,CAAC;IAMvG,kBAAkB,CAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,gCAAgC,GAAG,IAAI,CAAC;IAM3F,eAAe,CAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,gCAAgC,CAAC,CAAC;IAMpF,gBAAgB,CAAE,UAAU,EAAE,OAAO,CAAC,wBAAwB,CAAC,GAAG,OAAO,CAAC,gCAAgC,CAAC;IAI3G,gBAAgB,CAAE,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,CAAC,wBAAwB,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAU9F,gBAAgB,CAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI7D,eAAe,CAAE,YAAY,EAAE,MAAM,EAAE,YAAY,EAAE,KAAK,CAAC,sBAAsB,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAYlG,gBAAgB,CAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAWtD,gBAAgB,CAAE,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,iBAAiB,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;CAWlG"}
@@ -0,0 +1,84 @@
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.TournamentManyTablesRoomsRepository = 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 tournament_status_enum_1 = require("../models/tournament-status.enum");
21
+ let TournamentManyTablesRoomsRepository = class TournamentManyTablesRoomsRepository {
22
+ constructor(tournamentModel) {
23
+ this.tournamentModel = tournamentModel;
24
+ }
25
+ async findTemplateById(templateId, gameType) {
26
+ return this.tournamentModel
27
+ .findOne({ templateId, gameType })
28
+ .exec();
29
+ }
30
+ async findTournamentById(tournamentId) {
31
+ return this.tournamentModel
32
+ .findById(tournamentId)
33
+ .exec();
34
+ }
35
+ async findTournaments(gameType) {
36
+ return this.tournamentModel
37
+ .find({ gameType, isTemplate: false })
38
+ .exec();
39
+ }
40
+ async createTournament(tournament) {
41
+ return this.tournamentModel.create(tournament);
42
+ }
43
+ async updateTournament(tournamentId, tournament) {
44
+ await this.tournamentModel.findByIdAndUpdate(tournamentId, {
45
+ $set: Object.assign({}, tournament),
46
+ }).exec();
47
+ }
48
+ async removeTournament(tournamentId) {
49
+ await this.tournamentModel.findByIdAndDelete(tournamentId);
50
+ }
51
+ async startTournament(tournamentId, participants) {
52
+ await this.tournamentModel.findByIdAndUpdate(tournamentId, {
53
+ $set: {
54
+ startDate: new Date(),
55
+ status: tournament_status_enum_1.TournamentStatusEnum.STATE_IN_PROGRESS,
56
+ participants,
57
+ },
58
+ }).exec();
59
+ }
60
+ async cancelTournament(tournamentId) {
61
+ await this.tournamentModel.findByIdAndUpdate(tournamentId, {
62
+ $set: {
63
+ finishDate: new Date(),
64
+ status: tournament_status_enum_1.TournamentStatusEnum.STATE_CANCELLED,
65
+ },
66
+ }).exec();
67
+ }
68
+ async finishTournament(tournamentId, winners) {
69
+ await this.tournamentModel.findByIdAndUpdate(tournamentId, {
70
+ $set: {
71
+ finishDate: new Date(),
72
+ status: tournament_status_enum_1.TournamentStatusEnum.STATE_FINISHED,
73
+ winners,
74
+ },
75
+ }).exec();
76
+ }
77
+ };
78
+ exports.TournamentManyTablesRoomsRepository = TournamentManyTablesRoomsRepository;
79
+ exports.TournamentManyTablesRoomsRepository = TournamentManyTablesRoomsRepository = __decorate([
80
+ (0, common_1.Injectable)(),
81
+ __param(0, (0, mongoose_1.InjectModel)(__1.TournamentManyTablesRoom.name)),
82
+ __metadata("design:paramtypes", [mongoose_2.Model])
83
+ ], TournamentManyTablesRoomsRepository);
84
+ //# sourceMappingURL=tournament-many-tables-rooms.repository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tournament-many-tables-rooms.repository.js","sourceRoot":"","sources":["../../src/repositories/tournament-many-tables-rooms.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,+CAA+C;AAC/C,uCAAiC;AAEjC,2BAIa;AAEb,6EAAwE;AAIjE,IAAM,mCAAmC,GAAzC,MAAM,mCAAmC;IAC5C,YAAiE,eAAwD;QAAxD,oBAAe,GAAf,eAAe,CAAyC;IACzH,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAE,UAAkB,EAAE,QAAgB;QACxD,OAAO,IAAI,CAAC,eAAe;aACtB,OAAO,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAC;aACjC,IAAI,EAAE,CAAC;IAChB,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AAC,IAAI,EAAE,CAAC;IAClB,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAE,YAAoB,EAAE,OAAiC;QAC3E,MAAM,IAAI,CAAC,eAAe,CAAC,iBAAiB,CACxC,YAAY,EACZ;YACI,IAAI,EAAE;gBACF,UAAU,EAAE,IAAI,IAAI,EAAE;gBACtB,MAAM,EAAE,6CAAoB,CAAC,cAAc;gBAC3C,OAAO;aACV;SACJ,CAAC,CAAC,IAAI,EAAE,CAAC;IAClB,CAAC;CACJ,CAAA;AA1EY,kFAAmC;8CAAnC,mCAAmC;IAD/C,IAAA,mBAAU,GAAE;IAEK,WAAA,IAAA,sBAAW,EAAC,4BAAwB,CAAC,IAAI,CAAC,CAAA;qCAA0B,gBAAK;GAD9E,mCAAmC,CA0E/C"}
@@ -0,0 +1,16 @@
1
+ import { Model } from 'mongoose';
2
+ import { TournamentOneTableRoom, TournamentOneTableRoomDocument } from '../';
3
+ import { ITournamentParticipant } from '../models/tournament-participant.interface';
4
+ import { ITournamentWinner } from '../models/tournament-winner.interface';
5
+ export declare class TournamentOneTableRoomsRepository {
6
+ private tournamentModel;
7
+ constructor(tournamentModel: Model<TournamentOneTableRoomDocument>);
8
+ findTemplateById(templateId: string, gameType: string): Promise<TournamentOneTableRoomDocument | null>;
9
+ findTournamentById(tournamentId: string): Promise<TournamentOneTableRoomDocument | null>;
10
+ findTournaments(gameType: string): Promise<Array<TournamentOneTableRoomDocument>>;
11
+ createTournament(tournament: Partial<TournamentOneTableRoom>): Promise<TournamentOneTableRoomDocument>;
12
+ startTournament(tournamentId: string, participants: Array<ITournamentParticipant>): Promise<void>;
13
+ cancelTournament(tournamentId: string): Promise<void>;
14
+ finishTournament(tournamentId: string, winners: Array<ITournamentWinner>): Promise<void>;
15
+ }
16
+ //# sourceMappingURL=tournament-one-table-rooms.repository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tournament-one-table-rooms.repository.d.ts","sourceRoot":"","sources":["../../src/repositories/tournament-one-table-rooms.repository.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,OAAO,EAAE,sBAAsB,EAAE,8BAA8B,EAAE,MAAM,KAAK,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AAEpF,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAE1E,qBACa,iCAAiC;IACa,OAAO,CAAC,eAAe;gBAAf,eAAe,EAAE,KAAK,CAAC,8BAA8B,CAAC;IAG/G,gBAAgB,CAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,8BAA8B,GAAG,IAAI,CAAC;IAMvG,kBAAkB,CAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,8BAA8B,GAAG,IAAI,CAAC;IAMzF,eAAe,CAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC;IAMlF,gBAAgB,CAAE,UAAU,EAAE,OAAO,CAAC,sBAAsB,CAAC,GAAG,OAAO,CAAC,8BAA8B,CAAC;IAIvG,eAAe,CAAE,YAAY,EAAE,MAAM,EAAE,YAAY,EAAE,KAAK,CAAC,sBAAsB,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAYlG,gBAAgB,CAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAWtD,gBAAgB,CAAE,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,iBAAiB,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;CAWlG"}
@@ -0,0 +1,76 @@
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.TournamentOneTableRoomsRepository = 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 tournament_status_enum_1 = require("../models/tournament-status.enum");
21
+ let TournamentOneTableRoomsRepository = class TournamentOneTableRoomsRepository {
22
+ constructor(tournamentModel) {
23
+ this.tournamentModel = tournamentModel;
24
+ }
25
+ async findTemplateById(templateId, gameType) {
26
+ return this.tournamentModel
27
+ .findOne({ templateId, gameType })
28
+ .exec();
29
+ }
30
+ async findTournamentById(tournamentId) {
31
+ return this.tournamentModel
32
+ .findById(tournamentId)
33
+ .exec();
34
+ }
35
+ async findTournaments(gameType) {
36
+ return this.tournamentModel
37
+ .find({ gameType, isTemplate: false })
38
+ .exec();
39
+ }
40
+ async createTournament(tournament) {
41
+ return this.tournamentModel.create(tournament);
42
+ }
43
+ async startTournament(tournamentId, participants) {
44
+ await this.tournamentModel.findByIdAndUpdate(tournamentId, {
45
+ $set: {
46
+ startDate: new Date(),
47
+ status: tournament_status_enum_1.TournamentStatusEnum.STATE_IN_PROGRESS,
48
+ participants,
49
+ },
50
+ }).exec();
51
+ }
52
+ async cancelTournament(tournamentId) {
53
+ await this.tournamentModel.findByIdAndUpdate(tournamentId, {
54
+ $set: {
55
+ finishDate: new Date(),
56
+ status: tournament_status_enum_1.TournamentStatusEnum.STATE_CANCELLED,
57
+ },
58
+ }).exec();
59
+ }
60
+ async finishTournament(tournamentId, winners) {
61
+ await this.tournamentModel.findByIdAndUpdate(tournamentId, {
62
+ $set: {
63
+ finishDate: new Date(),
64
+ status: tournament_status_enum_1.TournamentStatusEnum.STATE_FINISHED,
65
+ winners,
66
+ },
67
+ }).exec();
68
+ }
69
+ };
70
+ exports.TournamentOneTableRoomsRepository = TournamentOneTableRoomsRepository;
71
+ exports.TournamentOneTableRoomsRepository = TournamentOneTableRoomsRepository = __decorate([
72
+ (0, common_1.Injectable)(),
73
+ __param(0, (0, mongoose_1.InjectModel)(__1.TournamentOneTableRoom.name)),
74
+ __metadata("design:paramtypes", [mongoose_2.Model])
75
+ ], TournamentOneTableRoomsRepository);
76
+ //# sourceMappingURL=tournament-one-table-rooms.repository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tournament-one-table-rooms.repository.js","sourceRoot":"","sources":["../../src/repositories/tournament-one-table-rooms.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,+CAA+C;AAC/C,uCAAiC;AAEjC,2BAA6E;AAE7E,6EAAwE;AAIjE,IAAM,iCAAiC,GAAvC,MAAM,iCAAiC;IAC1C,YAA+D,eAAsD;QAAtD,oBAAe,GAAf,eAAe,CAAuC;IACrH,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAE,UAAkB,EAAE,QAAgB;QACxD,OAAO,IAAI,CAAC,eAAe;aACtB,OAAO,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAC;aACjC,IAAI,EAAE,CAAC;IAChB,CAAC;IAED,KAAK,CAAC,kBAAkB,CAAE,YAAoB;QAC1C,OAAO,IAAI,CAAC,eAAe;aACtB,QAAQ,CAAC,YAAY,CAAC;aACtB,IAAI,EAAE,CAAC;IAChB,CAAC;IAED,KAAK,CAAC,eAAe,CAAE,QAAgB;QACnC,OAAO,IAAI,CAAC,eAAe;aACtB,IAAI,CAAC,EAAE,QAAQ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