jp.db.schemas 2.0.2 → 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.
- package/dist/index.d.ts +4 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -5
- package/dist/index.js.map +1 -1
- package/dist/models/tournament-participant.interface.d.ts +6 -0
- package/dist/models/tournament-participant.interface.d.ts.map +1 -0
- package/dist/models/tournament-participant.interface.js +3 -0
- package/dist/models/tournament-participant.interface.js.map +1 -0
- package/dist/models/tournament-status.enum.d.ts +7 -0
- package/dist/models/tournament-status.enum.d.ts.map +1 -0
- package/dist/models/tournament-status.enum.js +11 -0
- package/dist/models/tournament-status.enum.js.map +1 -0
- package/dist/models/tournament-winner.interface.d.ts +8 -0
- package/dist/models/tournament-winner.interface.d.ts.map +1 -0
- package/dist/models/tournament-winner.interface.js +3 -0
- package/dist/models/tournament-winner.interface.js.map +1 -0
- package/dist/repositories/index.d.ts +1 -2
- package/dist/repositories/index.d.ts.map +1 -1
- package/dist/repositories/index.js +1 -3
- package/dist/repositories/index.js.map +1 -1
- package/dist/repositories/tournament-many-tables-rooms.repository.d.ts +14 -4
- package/dist/repositories/tournament-many-tables-rooms.repository.d.ts.map +1 -1
- package/dist/repositories/tournament-many-tables-rooms.repository.js +53 -5
- package/dist/repositories/tournament-many-tables-rooms.repository.js.map +1 -1
- package/dist/repositories/tournament-one-table-rooms.repository.d.ts +12 -4
- package/dist/repositories/tournament-one-table-rooms.repository.d.ts.map +1 -1
- package/dist/repositories/tournament-one-table-rooms.repository.js +45 -5
- package/dist/repositories/tournament-one-table-rooms.repository.js.map +1 -1
- package/dist/schemas/tournament_many_tables_rooms.schema.d.ts +52 -15
- package/dist/schemas/tournament_many_tables_rooms.schema.d.ts.map +1 -1
- package/dist/schemas/tournament_many_tables_rooms.schema.js +23 -7
- package/dist/schemas/tournament_many_tables_rooms.schema.js.map +1 -1
- package/dist/schemas/tournament_one_table_rooms.schema.d.ts +114 -2
- package/dist/schemas/tournament_one_table_rooms.schema.d.ts.map +1 -1
- package/dist/schemas/tournament_one_table_rooms.schema.js +45 -1
- package/dist/schemas/tournament_one_table_rooms.schema.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +0 -7
- package/src/models/tournament-participant.interface.ts +5 -0
- package/src/models/tournament-status.enum.ts +6 -0
- package/src/models/tournament-winner.interface.ts +7 -0
- package/src/repositories/index.ts +0 -2
- package/src/repositories/tournament-many-tables-rooms.repository.ts +77 -5
- package/src/repositories/tournament-one-table-rooms.repository.ts +58 -4
- package/src/schemas/tournament_many_tables_rooms.schema.ts +22 -11
- package/src/schemas/tournament_one_table_rooms.schema.ts +39 -1
- package/dist/repositories/tournament-result.repository.d.ts +0 -9
- package/dist/repositories/tournament-result.repository.d.ts.map +0 -1
- package/dist/repositories/tournament-result.repository.js +0 -39
- package/dist/repositories/tournament-result.repository.js.map +0 -1
- package/dist/schemas/tournament_result.schema.d.ts +0 -82
- package/dist/schemas/tournament_result.schema.d.ts.map +0 -1
- package/dist/schemas/tournament_result.schema.js +0 -45
- package/dist/schemas/tournament_result.schema.js.map +0 -1
- package/src/repositories/tournament-result.repository.ts +0 -21
- package/src/schemas/tournament_result.schema.ts +0 -36
package/dist/index.d.ts
CHANGED
|
@@ -56,10 +56,8 @@ import { TournamentOneTableRoom, TournamentOneTableRoomSchema } from './schemas/
|
|
|
56
56
|
import type { TournamentOneTableRoomDocument } from './schemas/tournament_one_table_rooms.schema';
|
|
57
57
|
import { TournamentManyTablesRoom, TournamentManyTablesRoomSchema } from './schemas/tournament_many_tables_rooms.schema';
|
|
58
58
|
import type { TournamentManyTablesRoomDocument } from './schemas/tournament_many_tables_rooms.schema';
|
|
59
|
-
import {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
export
|
|
63
|
-
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, TournamentResult, TournamentResultSchema, };
|
|
64
|
-
export { AdminRepository, ArticleRepository, BannersRepository, ComplainsRepository, NotificationRepository, ProductsRepository, ScheduledTournamentsRepository, ServersRepository, UsersRepository, MenuRepository, RoomsRepository, GameResultRepository, BalanceHistoryRepository, SimpleRoomsRepository, TournamentOneTableRoomsRepository, TournamentManyTablesRoomsRepository, TournamentResultRepository, };
|
|
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, };
|
|
65
63
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -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,MAA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gCAAgC,GACnC,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,EACpB,UAAU,EACV,gBAAgB,EAChB,sBAAsB,EACtB,4BAA4B,EAC5B,wBAAwB,EACxB,8BAA8B,GACjC,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,EACxB,qBAAqB,EACrB,iCAAiC,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.
|
|
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; } });
|
|
@@ -89,9 +89,6 @@ Object.defineProperty(exports, "TournamentOneTableRoomSchema", { enumerable: tru
|
|
|
89
89
|
const tournament_many_tables_rooms_schema_1 = require("./schemas/tournament_many_tables_rooms.schema");
|
|
90
90
|
Object.defineProperty(exports, "TournamentManyTablesRoom", { enumerable: true, get: function () { return tournament_many_tables_rooms_schema_1.TournamentManyTablesRoom; } });
|
|
91
91
|
Object.defineProperty(exports, "TournamentManyTablesRoomSchema", { enumerable: true, get: function () { return tournament_many_tables_rooms_schema_1.TournamentManyTablesRoomSchema; } });
|
|
92
|
-
const tournament_result_schema_1 = require("./schemas/tournament_result.schema");
|
|
93
|
-
Object.defineProperty(exports, "TournamentResult", { enumerable: true, get: function () { return tournament_result_schema_1.TournamentResult; } });
|
|
94
|
-
Object.defineProperty(exports, "TournamentResultSchema", { enumerable: true, get: function () { return tournament_result_schema_1.TournamentResultSchema; } });
|
|
95
92
|
const repositories_1 = require("./repositories");
|
|
96
93
|
Object.defineProperty(exports, "AdminRepository", { enumerable: true, get: function () { return repositories_1.AdminRepository; } });
|
|
97
94
|
Object.defineProperty(exports, "ArticleRepository", { enumerable: true, get: function () { return repositories_1.ArticleRepository; } });
|
|
@@ -109,5 +106,4 @@ Object.defineProperty(exports, "BalanceHistoryRepository", { enumerable: true, g
|
|
|
109
106
|
Object.defineProperty(exports, "SimpleRoomsRepository", { enumerable: true, get: function () { return repositories_1.SimpleRoomsRepository; } });
|
|
110
107
|
Object.defineProperty(exports, "TournamentOneTableRoomsRepository", { enumerable: true, get: function () { return repositories_1.TournamentOneTableRoomsRepository; } });
|
|
111
108
|
Object.defineProperty(exports, "TournamentManyTablesRoomsRepository", { enumerable: true, get: function () { return repositories_1.TournamentManyTablesRoomsRepository; } });
|
|
112
|
-
Object.defineProperty(exports, "TournamentResultRepository", { enumerable: true, get: function () { return repositories_1.TournamentResultRepository; } });
|
|
113
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;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,uDAAyD;AA+GrD,qFA/GK,kBAAI,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,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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"tournament-winner.interface.js","sourceRoot":"","sources":["../../src/models/tournament-winner.interface.ts"],"names":[],"mappings":""}
|
|
@@ -14,6 +14,5 @@ import { BalanceHistoryRepository } from './balance-history.repository';
|
|
|
14
14
|
import { SimpleRoomsRepository } from './simple-rooms.repository';
|
|
15
15
|
import { TournamentOneTableRoomsRepository } from './tournament-one-table-rooms.repository';
|
|
16
16
|
import { TournamentManyTablesRoomsRepository } from './tournament-many-tables-rooms.repository';
|
|
17
|
-
|
|
18
|
-
export { AdminRepository, ArticleRepository, BannersRepository, ComplainsRepository, NotificationRepository, ProductsRepository, ScheduledTournamentsRepository, ServersRepository, UsersRepository, MenuRepository, RoomsRepository, GameResultRepository, BalanceHistoryRepository, SimpleRoomsRepository, TournamentOneTableRoomsRepository, TournamentManyTablesRoomsRepository, TournamentResultRepository, };
|
|
17
|
+
export { AdminRepository, ArticleRepository, BannersRepository, ComplainsRepository, NotificationRepository, ProductsRepository, ScheduledTournamentsRepository, ServersRepository, UsersRepository, MenuRepository, RoomsRepository, GameResultRepository, BalanceHistoryRepository, SimpleRoomsRepository, TournamentOneTableRoomsRepository, TournamentManyTablesRoomsRepository, };
|
|
19
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,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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,EACxB,qBAAqB,EACrB,iCAAiC,EACjC,mCAAmC,GACtC,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
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");
|
|
@@ -33,6 +33,4 @@ const tournament_one_table_rooms_repository_1 = require("./tournament-one-table-
|
|
|
33
33
|
Object.defineProperty(exports, "TournamentOneTableRoomsRepository", { enumerable: true, get: function () { return tournament_one_table_rooms_repository_1.TournamentOneTableRoomsRepository; } });
|
|
34
34
|
const tournament_many_tables_rooms_repository_1 = require("./tournament-many-tables-rooms.repository");
|
|
35
35
|
Object.defineProperty(exports, "TournamentManyTablesRoomsRepository", { enumerable: true, get: function () { return tournament_many_tables_rooms_repository_1.TournamentManyTablesRoomsRepository; } });
|
|
36
|
-
const tournament_result_repository_1 = require("./tournament-result.repository");
|
|
37
|
-
Object.defineProperty(exports, "TournamentResultRepository", { enumerable: true, get: function () { return tournament_result_repository_1.TournamentResultRepository; } });
|
|
38
36
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/repositories/index.ts"],"names":[],"mappings":";;;AAAA,yDAAqD;
|
|
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"}
|
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
import { Model } from 'mongoose';
|
|
2
|
-
import { TournamentManyTablesRoomDocument } from '../';
|
|
2
|
+
import { TournamentManyTablesRoom, TournamentManyTablesRoomDocument, TournamentOneTableRoomDocument } from '../';
|
|
3
|
+
import { ITournamentParticipant } from '../models/tournament-participant.interface';
|
|
4
|
+
import { ITournamentWinner } from '../models/tournament-winner.interface';
|
|
3
5
|
export declare class TournamentManyTablesRoomsRepository {
|
|
4
|
-
private
|
|
5
|
-
constructor(
|
|
6
|
-
|
|
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>;
|
|
7
17
|
}
|
|
8
18
|
//# sourceMappingURL=tournament-many-tables-rooms.repository.d.ts.map
|
|
@@ -1 +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,
|
|
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"}
|
|
@@ -17,15 +17,63 @@ const common_1 = require("@nestjs/common");
|
|
|
17
17
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
18
18
|
const mongoose_2 = require("mongoose");
|
|
19
19
|
const __1 = require("../");
|
|
20
|
+
const tournament_status_enum_1 = require("../models/tournament-status.enum");
|
|
20
21
|
let TournamentManyTablesRoomsRepository = class TournamentManyTablesRoomsRepository {
|
|
21
|
-
constructor(
|
|
22
|
-
this.
|
|
22
|
+
constructor(tournamentModel) {
|
|
23
|
+
this.tournamentModel = tournamentModel;
|
|
23
24
|
}
|
|
24
|
-
async
|
|
25
|
-
return this.
|
|
26
|
-
.
|
|
25
|
+
async findTemplateById(templateId, gameType) {
|
|
26
|
+
return this.tournamentModel
|
|
27
|
+
.findOne({ templateId, gameType })
|
|
27
28
|
.exec();
|
|
28
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
|
+
}
|
|
29
77
|
};
|
|
30
78
|
exports.TournamentManyTablesRoomsRepository = TournamentManyTablesRoomsRepository;
|
|
31
79
|
exports.TournamentManyTablesRoomsRepository = TournamentManyTablesRoomsRepository = __decorate([
|
|
@@ -1 +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,
|
|
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,CAAC;IAED,KAAK,CAAC,kBAAkB,CAAE,YAAoB;QAC1C,OAAO,IAAI,CAAC,eAAe;aACtB,QAAQ,CAAC,Y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AM,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"}
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import { Model } from 'mongoose';
|
|
2
|
-
import { TournamentOneTableRoomDocument } from '../';
|
|
2
|
+
import { TournamentOneTableRoom, TournamentOneTableRoomDocument } from '../';
|
|
3
|
+
import { ITournamentParticipant } from '../models/tournament-participant.interface';
|
|
4
|
+
import { ITournamentWinner } from '../models/tournament-winner.interface';
|
|
3
5
|
export declare class TournamentOneTableRoomsRepository {
|
|
4
|
-
private
|
|
5
|
-
constructor(
|
|
6
|
-
|
|
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>;
|
|
7
15
|
}
|
|
8
16
|
//# sourceMappingURL=tournament-one-table-rooms.repository.d.ts.map
|
|
@@ -1 +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,
|
|
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"}
|
|
@@ -17,15 +17,55 @@ const common_1 = require("@nestjs/common");
|
|
|
17
17
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
18
18
|
const mongoose_2 = require("mongoose");
|
|
19
19
|
const __1 = require("../");
|
|
20
|
+
const tournament_status_enum_1 = require("../models/tournament-status.enum");
|
|
20
21
|
let TournamentOneTableRoomsRepository = class TournamentOneTableRoomsRepository {
|
|
21
|
-
constructor(
|
|
22
|
-
this.
|
|
22
|
+
constructor(tournamentModel) {
|
|
23
|
+
this.tournamentModel = tournamentModel;
|
|
23
24
|
}
|
|
24
|
-
async
|
|
25
|
-
return this.
|
|
26
|
-
.
|
|
25
|
+
async findTemplateById(templateId, gameType) {
|
|
26
|
+
return this.tournamentModel
|
|
27
|
+
.findOne({ templateId, gameType })
|
|
27
28
|
.exec();
|
|
28
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
|
+
}
|
|
29
69
|
};
|
|
30
70
|
exports.TournamentOneTableRoomsRepository = TournamentOneTableRoomsRepository;
|
|
31
71
|
exports.TournamentOneTableRoomsRepository = TournamentOneTableRoomsRepository = __decorate([
|
|
@@ -1 +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;
|
|
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,C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,iCAAiC;IAD7C,IAAA,mBAAU,GAAE;IAEK,WAAA,IAAA,sBAAW,EAAC,0BAAsB,CAAC,IAAI,CAAC,CAAA;qCAA0B,gBAAK;GAD5E,iCAAiC,CA4D7C"}
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { Document, HydratedDocument } from 'mongoose';
|
|
2
|
+
import { ITournamentParticipant } from '../models/tournament-participant.interface';
|
|
3
|
+
import { ITournamentWinner } from '../models/tournament-winner.interface';
|
|
2
4
|
export type TournamentManyTablesRoomDocument = HydratedDocument<TournamentManyTablesRoom>;
|
|
3
|
-
export interface IParticipant {
|
|
4
|
-
userId: string;
|
|
5
|
-
userName: string;
|
|
6
|
-
userAvatarUrl: string;
|
|
7
|
-
}
|
|
8
5
|
export declare class TournamentManyTablesRoom {
|
|
9
|
-
readonly
|
|
6
|
+
readonly tournamentId: string;
|
|
10
7
|
title: Record<string, string>;
|
|
11
8
|
subtitle: Record<string, string>;
|
|
12
9
|
tableSize: number;
|
|
@@ -16,13 +13,17 @@ export declare class TournamentManyTablesRoom {
|
|
|
16
13
|
gameType: string;
|
|
17
14
|
rulesType: string;
|
|
18
15
|
deckType?: string;
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
isTemplate: boolean;
|
|
17
|
+
templateId?: string;
|
|
18
|
+
type: string;
|
|
21
19
|
description: Record<string, string>;
|
|
22
|
-
participants: Array<
|
|
20
|
+
participants: Array<ITournamentParticipant>;
|
|
23
21
|
maxParticipants: number;
|
|
24
22
|
status: string;
|
|
25
|
-
|
|
23
|
+
winners: Array<ITournamentWinner>;
|
|
24
|
+
createDate: Date;
|
|
25
|
+
startDate: Date;
|
|
26
|
+
finishDate: Date;
|
|
26
27
|
}
|
|
27
28
|
export declare const TournamentManyTablesRoomSchema: import("mongoose").Schema<TournamentManyTablesRoom, import("mongoose").Model<TournamentManyTablesRoom, any, any, any, (Document<unknown, any, TournamentManyTablesRoom, any, import("mongoose").DefaultSchemaOptions> & TournamentManyTablesRoom & {
|
|
28
29
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -43,7 +44,7 @@ export declare const TournamentManyTablesRoomSchema: import("mongoose").Schema<T
|
|
|
43
44
|
}, "id"> & {
|
|
44
45
|
id: string;
|
|
45
46
|
}, {
|
|
46
|
-
readonly
|
|
47
|
+
readonly tournamentId?: import("mongoose").SchemaDefinitionProperty<string, TournamentManyTablesRoom, Document<unknown, {}, TournamentManyTablesRoom, {
|
|
47
48
|
id: string;
|
|
48
49
|
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<TournamentManyTablesRoom & {
|
|
49
50
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -133,7 +134,7 @@ export declare const TournamentManyTablesRoomSchema: import("mongoose").Schema<T
|
|
|
133
134
|
}, "id"> & {
|
|
134
135
|
id: string;
|
|
135
136
|
}>;
|
|
136
|
-
|
|
137
|
+
isTemplate?: import("mongoose").SchemaDefinitionProperty<boolean, TournamentManyTablesRoom, Document<unknown, {}, TournamentManyTablesRoom, {
|
|
137
138
|
id: string;
|
|
138
139
|
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<TournamentManyTablesRoom & {
|
|
139
140
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -142,7 +143,16 @@ export declare const TournamentManyTablesRoomSchema: import("mongoose").Schema<T
|
|
|
142
143
|
}, "id"> & {
|
|
143
144
|
id: string;
|
|
144
145
|
}>;
|
|
145
|
-
|
|
146
|
+
templateId?: import("mongoose").SchemaDefinitionProperty<string, TournamentManyTablesRoom, Document<unknown, {}, TournamentManyTablesRoom, {
|
|
147
|
+
id: string;
|
|
148
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<TournamentManyTablesRoom & {
|
|
149
|
+
_id: import("mongoose").Types.ObjectId;
|
|
150
|
+
} & {
|
|
151
|
+
__v: number;
|
|
152
|
+
}, "id"> & {
|
|
153
|
+
id: string;
|
|
154
|
+
}>;
|
|
155
|
+
type?: import("mongoose").SchemaDefinitionProperty<string, TournamentManyTablesRoom, Document<unknown, {}, TournamentManyTablesRoom, {
|
|
146
156
|
id: string;
|
|
147
157
|
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<TournamentManyTablesRoom & {
|
|
148
158
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -160,7 +170,7 @@ export declare const TournamentManyTablesRoomSchema: import("mongoose").Schema<T
|
|
|
160
170
|
}, "id"> & {
|
|
161
171
|
id: string;
|
|
162
172
|
}>;
|
|
163
|
-
participants?: import("mongoose").SchemaDefinitionProperty<
|
|
173
|
+
participants?: import("mongoose").SchemaDefinitionProperty<ITournamentParticipant[], TournamentManyTablesRoom, Document<unknown, {}, TournamentManyTablesRoom, {
|
|
164
174
|
id: string;
|
|
165
175
|
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<TournamentManyTablesRoom & {
|
|
166
176
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -187,7 +197,34 @@ export declare const TournamentManyTablesRoomSchema: import("mongoose").Schema<T
|
|
|
187
197
|
}, "id"> & {
|
|
188
198
|
id: string;
|
|
189
199
|
}>;
|
|
190
|
-
|
|
200
|
+
winners?: import("mongoose").SchemaDefinitionProperty<ITournamentWinner[], TournamentManyTablesRoom, Document<unknown, {}, TournamentManyTablesRoom, {
|
|
201
|
+
id: string;
|
|
202
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<TournamentManyTablesRoom & {
|
|
203
|
+
_id: import("mongoose").Types.ObjectId;
|
|
204
|
+
} & {
|
|
205
|
+
__v: number;
|
|
206
|
+
}, "id"> & {
|
|
207
|
+
id: string;
|
|
208
|
+
}>;
|
|
209
|
+
createDate?: import("mongoose").SchemaDefinitionProperty<Date, TournamentManyTablesRoom, Document<unknown, {}, TournamentManyTablesRoom, {
|
|
210
|
+
id: string;
|
|
211
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<TournamentManyTablesRoom & {
|
|
212
|
+
_id: import("mongoose").Types.ObjectId;
|
|
213
|
+
} & {
|
|
214
|
+
__v: number;
|
|
215
|
+
}, "id"> & {
|
|
216
|
+
id: string;
|
|
217
|
+
}>;
|
|
218
|
+
startDate?: import("mongoose").SchemaDefinitionProperty<Date, TournamentManyTablesRoom, Document<unknown, {}, TournamentManyTablesRoom, {
|
|
219
|
+
id: string;
|
|
220
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<TournamentManyTablesRoom & {
|
|
221
|
+
_id: import("mongoose").Types.ObjectId;
|
|
222
|
+
} & {
|
|
223
|
+
__v: number;
|
|
224
|
+
}, "id"> & {
|
|
225
|
+
id: string;
|
|
226
|
+
}>;
|
|
227
|
+
finishDate?: import("mongoose").SchemaDefinitionProperty<Date, TournamentManyTablesRoom, Document<unknown, {}, TournamentManyTablesRoom, {
|
|
191
228
|
id: string;
|
|
192
229
|
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<TournamentManyTablesRoom & {
|
|
193
230
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tournament_many_tables_rooms.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/tournament_many_tables_rooms.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEtD,
|
|
1
|
+
{"version":3,"file":"tournament_many_tables_rooms.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/tournament_many_tables_rooms.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAE,iBAAiB,EAAE,MA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