jp.db.schemas 1.0.40 → 1.0.41

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 CHANGED
@@ -46,8 +46,10 @@ import { Setting, SettingSchema } from './schemas/setting.schema';
46
46
  import type { SettingDocument } from './schemas/setting.schema';
47
47
  import { Menu, MenuSchema } from './schemas/menu.schema';
48
48
  import type { MenuDocument } from './schemas/menu.schema';
49
- import { AdminRepository, ArticleRepository, BannersRepository, ComplainsRepository, NotificationRepository, ProductsRepository, ScheduledTournamentsRepository, ServersRepository, UsersRepository, MenuRepository, RoomsRepository } from './repositories';
50
- 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, };
51
- 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, };
52
- export { AdminRepository, ArticleRepository, BannersRepository, ComplainsRepository, NotificationRepository, ProductsRepository, ScheduledTournamentsRepository, ServersRepository, UsersRepository, MenuRepository, RoomsRepository, };
49
+ import { GameResult, GameResultSchema } from './schemas/game_result.schema';
50
+ import type { GameResultDocument } from './schemas/game_result.schema';
51
+ import { AdminRepository, ArticleRepository, BannersRepository, ComplainsRepository, NotificationRepository, ProductsRepository, ScheduledTournamentsRepository, ServersRepository, UsersRepository, MenuRepository, RoomsRepository, GameResultRepository } from './repositories';
52
+ 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, };
53
+ 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, };
54
+ export { AdminRepository, ArticleRepository, BannersRepository, ComplainsRepository, NotificationRepository, ProductsRepository, ScheduledTournamentsRepository, ServersRepository, UsersRepository, MenuRepository, RoomsRepository, GameResultRepository, };
53
55
  //# 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,c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ChB,gBAAgB,EAChB,oBAAoB,EACpB,2BAA2B,EAC3B,aAAa,EACb,YAAY,EACZ,eAAe,EACf,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,uBAAuB,EACvB,cAAc,EACd,eAAe,EACf,YAAY,EACZ,kBAAkB,GACrB,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,GACnB,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,GACvB,CAAA"}
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ArticleRepository = exports.AdminRepository = 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.RoomsRepository = exports.MenuRepository = exports.UsersRepository = exports.ServersRepository = exports.ScheduledTournamentsRepository = exports.ProductsRepository = exports.NotificationRepository = exports.ComplainsRepository = exports.BannersRepository = void 0;
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.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;
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 menu_schema_1 = require("./schemas/menu.schema");
75
75
  Object.defineProperty(exports, "Menu", { enumerable: true, get: function () { return menu_schema_1.Menu; } });
76
76
  Object.defineProperty(exports, "MenuSchema", { enumerable: true, get: function () { return menu_schema_1.MenuSchema; } });
77
+ const game_result_schema_1 = require("./schemas/game_result.schema");
78
+ Object.defineProperty(exports, "GameResult", { enumerable: true, get: function () { return game_result_schema_1.GameResult; } });
79
+ Object.defineProperty(exports, "GameResultSchema", { enumerable: true, get: function () { return game_result_schema_1.GameResultSchema; } });
77
80
  const repositories_1 = require("./repositories");
78
81
  Object.defineProperty(exports, "AdminRepository", { enumerable: true, get: function () { return repositories_1.AdminRepository; } });
79
82
  Object.defineProperty(exports, "ArticleRepository", { enumerable: true, get: function () { return repositories_1.ArticleRepository; } });
@@ -86,4 +89,5 @@ Object.defineProperty(exports, "ServersRepository", { enumerable: true, get: fun
86
89
  Object.defineProperty(exports, "UsersRepository", { enumerable: true, get: function () { return repositories_1.UsersRepository; } });
87
90
  Object.defineProperty(exports, "MenuRepository", { enumerable: true, get: function () { return repositories_1.MenuRepository; } });
88
91
  Object.defineProperty(exports, "RoomsRepository", { enumerable: true, get: function () { return repositories_1.RoomsRepository; } });
92
+ Object.defineProperty(exports, "GameResultRepository", { enumerable: true, get: function () { return repositories_1.GameResultRepository; } });
89
93
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources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CAAoB,OAgGrB;AA9FxB,6DAAkE;AA+F9D,wFA/FK,wBAAO,OA+FL;AACP,8FAhGc,8BAAa,OAgGd;AA9FjB,6DAAkE;AA+F9D,wFA/FK,wBAAO,OA+FL;AACP,8FAhGc,8BAAa,OAgGd;AA9FjB,+EAA2F;AA+FvF,gGA/FK,yCAAe,OA+FL;AACf,sGAhGsB,+CAAqB,OAgGtB;AA9FzB,2DAA+D;AA+F3D,uFA/FK,sBAAM,OA+FL;AACN,6FAhGa,4BAAY,OAgGb;AA9FhB,6DAAkE;AA+F9D,wFA/FK,wBAAO,OA+FL;AACP,8FAhGc,8BAAa,OAgGd;AA9FjB,uDAAyD;AA+FrD,qFA/FK,kBAAI,OA+FL;AACJ,2FAhGW,wBAAU,OAgGX;AA9Fd,qEAA4E;AA+FxE,2FA/FK,+BAAU,OA+FL;AACV,iGAhGiB,qCAAgB,OAgGjB;AA7FpB,iDAauB;AAoFnB,gGAhGA,8BAAe,OAgGA;AACf,kGAhGA,gCAAiB,OAgGA;AACjB,kGAhGA,gCAAiB,OAgGA;AACjB,oGAhGA,kCAAmB,OAgGA;AACnB,uGAhGA,qCAAsB,OAgGA;AACtB,mGAhGA,iCAAkB,OAgGA;AAClB,+GAhGA,6CAA8B,OAgGA;AAC9B,kGAhGA,gCAAiB,OAgGA;AACjB,gGAhGA,8BAAe,OAgGA;AACf,+FAhGA,6BAAc,OAgGA;AACd,gGAhGA,8BAAe,OAgGA;AACf,qGAhGA,mCAAoB,OAgGA"}
@@ -0,0 +1,8 @@
1
+ import { Model } from 'mongoose';
2
+ import { GameResult, GameResultDocument } from '../';
3
+ export declare class GameResultRepository {
4
+ private gameResultModel;
5
+ constructor(gameResultModel: Model<GameResultDocument>);
6
+ createGameResult(gameResult: GameResult): Promise<GameResult>;
7
+ }
8
+ //# sourceMappingURL=game-result.repository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"game-result.repository.d.ts","sourceRoot":"","sources":["../../src/repositories/game-result.repository.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,KAAK,CAAC;AAErD,qBACa,oBAAoB;IACc,OAAO,CAAC,eAAe;gBAAf,eAAe,EAAE,KAAK,CAAC,kBAAkB,CAAC;IAGhF,gBAAgB,CAAE,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;CAG9E"}
@@ -0,0 +1,34 @@
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.GameResultRepository = 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 GameResultRepository = class GameResultRepository {
21
+ constructor(gameResultModel) {
22
+ this.gameResultModel = gameResultModel;
23
+ }
24
+ async createGameResult(gameResult) {
25
+ return this.gameResultModel.create(gameResult);
26
+ }
27
+ };
28
+ exports.GameResultRepository = GameResultRepository;
29
+ exports.GameResultRepository = GameResultRepository = __decorate([
30
+ (0, common_1.Injectable)(),
31
+ __param(0, (0, mongoose_1.InjectModel)(__1.GameResult.name)),
32
+ __metadata("design:paramtypes", [mongoose_2.Model])
33
+ ], GameResultRepository);
34
+ //# sourceMappingURL=game-result.repository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"game-result.repository.js","sourceRoot":"","sources":["../../src/repositories/game-result.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,+CAA+C;AAC/C,uCAAiC;AAEjC,2BAAqD;AAG9C,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC7B,YAAmD,eAA0C;QAA1C,oBAAe,GAAf,eAAe,CAA2B;IAC7F,CAAC;IAEM,KAAK,CAAC,gBAAgB,CAAE,UAAsB;QACjD,OAAO,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IACnD,CAAC;CACJ,CAAA;AAPY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;IAEK,WAAA,IAAA,sBAAW,EAAC,cAAU,CAAC,IAAI,CAAC,CAAA;qCAA0B,gBAAK;GADhE,oBAAoB,CAOhC"}
@@ -9,5 +9,6 @@ import { ServersRepository } from './servers.repository';
9
9
  import { UsersRepository } from './users.repository';
10
10
  import { MenuRepository } from './menu.repository';
11
11
  import { RoomsRepository } from './rooms.repository';
12
- export { AdminRepository, ArticleRepository, BannersRepository, ComplainsRepository, NotificationRepository, ProductsRepository, ScheduledTournamentsRepository, ServersRepository, UsersRepository, MenuRepository, RoomsRepository, };
12
+ import { GameResultRepository } from './game-result.repository';
13
+ export { AdminRepository, ArticleRepository, BannersRepository, ComplainsRepository, NotificationRepository, ProductsRepository, ScheduledTournamentsRepository, ServersRepository, UsersRepository, MenuRepository, RoomsRepository, GameResultRepository, };
13
14
  //# 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,M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e,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;AAEhE,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,GACvB,CAAA"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- 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.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");
@@ -23,4 +23,6 @@ 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 rooms_repository_1 = require("./rooms.repository");
25
25
  Object.defineProperty(exports, "RoomsRepository", { enumerable: true, get: function () { return rooms_repository_1.RoomsRepository; } });
26
+ const game_result_repository_1 = require("./game-result.repository");
27
+ Object.defineProperty(exports, "GameResultRepository", { enumerable: true, get: function () { return game_result_repository_1.GameResultRepository; } });
26
28
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/repositories/index.ts"],"names":[],"mappings":";;;AAAA,yDAAqD;AAajD,gGAbK,kCAAe,OAaL;AAZnB,6DAAyD;AAarD,kGAbK,sCAAiB,OAaL;AAZrB,6DAAyD;AAarD,kGAbK,sCAAiB,OAaL;AAZrB,iEAA6D;AAazD,oGAbK,0CAAmB,OAaL;AAZvB,uEAAmE;AAa/D,uGAbK,gDAAsB,OAaL;AAZ1B,+DAA2D;AAavD,mGAbK,wCAAkB,OAaL;AAZtB,yFAAoF;AAahF,+GAbK,iEAA8B,OAaL;AAZlC,6DAAyD;AAarD,kGAbK,sCAAiB,OAaL;AAZrB,yDAAqD;AAajD,gGAbK,kCAAe,OAaL;AAZnB,uDAAmD;AAa/C,+FAbK,gCAAc,OAaL;AAZlB,yDAAqD;AAajD,gGAbK,kCAAe,OAaL"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/repositories/index.ts"],"names":[],"mappings":";;;AAAA,yDAAqD;AAcjD,gGAdK,kCAAe,OAcL;AAbnB,6DAAyD;AAcrD,kGAdK,sCAAiB,OAcL;AAbrB,6DAAyD;AAcrD,kGAdK,sCAAiB,OAcL;AAbrB,iEAA6D;AAczD,oGAdK,0CAAmB,OAcL;AAbvB,uEAAmE;AAc/D,uGAdK,gDAAsB,OAcL;AAb1B,+DAA2D;AAcvD,mGAdK,wCAAkB,OAcL;AAbtB,yFAAoF;AAchF,+GAdK,iEAA8B,OAcL;AAblC,6DAAyD;AAcrD,kGAdK,sCAAiB,OAcL;AAbrB,yDAAqD;AAcjD,gGAdK,kCAAe,OAcL;AAbnB,uDAAmD;AAc/C,+FAdK,gCAAc,OAcL;AAblB,yDAAqD;AAcjD,gGAdK,kCAAe,OAcL;AAbnB,qEAAgE;AAc5D,qGAdK,6CAAoB,OAcL"}
@@ -0,0 +1,46 @@
1
+ import { Document, HydratedDocument } from 'mongoose';
2
+ export type GameResultDocument = HydratedDocument<GameResult>;
3
+ export interface IGameResultFigure {
4
+ figureId: number;
5
+ type: string;
6
+ name: string;
7
+ }
8
+ export interface IGameResultPlayer {
9
+ userId: string;
10
+ fullName: string;
11
+ profit?: number;
12
+ figures?: Array<IGameResultFigure>;
13
+ }
14
+ export interface IGameResultHistoryItem {
15
+ userId: string;
16
+ fullName: string;
17
+ date: Date;
18
+ actionType: string;
19
+ state: string;
20
+ turnNumber: number;
21
+ moveAction?: string;
22
+ moveData?: object;
23
+ figures?: Array<IGameResultFigure>;
24
+ }
25
+ export declare class GameResult {
26
+ readonly gameResultId: string;
27
+ date: Date;
28
+ gameType: string;
29
+ roomId: string;
30
+ gameId: string;
31
+ pot: string;
32
+ players: Array<IGameResultPlayer>;
33
+ winners: Array<IGameResultPlayer>;
34
+ history: Array<IGameResultHistoryItem>;
35
+ extraData: object;
36
+ }
37
+ export declare const GameResultSchema: import("mongoose").Schema<GameResult, import("mongoose").Model<GameResult, any, any, any, Document<unknown, any, GameResult, any> & GameResult & {
38
+ _id: import("mongoose").Types.ObjectId;
39
+ } & {
40
+ __v: number;
41
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, GameResult, Document<unknown, {}, import("mongoose").FlatRecord<GameResult>, {}> & import("mongoose").FlatRecord<GameResult> & {
42
+ _id: import("mongoose").Types.ObjectId;
43
+ } & {
44
+ __v: number;
45
+ }>;
46
+ //# sourceMappingURL=game_result.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"game_result.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/game_result.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAe,MAAM,UAAU,CAAC;AAEnE,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,UAAU,CAAC,CAAC;AAE9D,MAAM,WAAW,iBAAiB;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,iBAAiB;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,sBAAsB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,IAAI,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;CACtC;AAED,qBACa,UAAU;IAMnB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAG9B,IAAI,EAAE,IAAI,CAAC;IAGX,QAAQ,EAAE,MAAM,CAAC;IAGjB,MAAM,EAAE,MAAM,CAAC;IAGf,MAAM,EAAE,MAAM,CAAC;IAGf,GAAG,EAAE,MAAM,CAAC;IAGZ,OAAO,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;IAGlC,OAAO,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;IAGlC,OAAO,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAC;IAGvC,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,gBAAgB;;;;;;;;EAA2C,CAAC"}
@@ -0,0 +1,66 @@
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.GameResultSchema = exports.GameResult = void 0;
13
+ const mongoose_1 = require("@nestjs/mongoose");
14
+ const mongoose_2 = require("mongoose");
15
+ let GameResult = class GameResult {
16
+ };
17
+ exports.GameResult = GameResult;
18
+ __decorate([
19
+ (0, mongoose_1.Virtual)({
20
+ get: function () {
21
+ return this.id;
22
+ },
23
+ }),
24
+ __metadata("design:type", String)
25
+ ], GameResult.prototype, "gameResultId", void 0);
26
+ __decorate([
27
+ (0, mongoose_1.Prop)(),
28
+ __metadata("design:type", Date)
29
+ ], GameResult.prototype, "date", void 0);
30
+ __decorate([
31
+ (0, mongoose_1.Prop)(),
32
+ __metadata("design:type", String)
33
+ ], GameResult.prototype, "gameType", void 0);
34
+ __decorate([
35
+ (0, mongoose_1.Prop)(),
36
+ __metadata("design:type", String)
37
+ ], GameResult.prototype, "roomId", void 0);
38
+ __decorate([
39
+ (0, mongoose_1.Prop)(),
40
+ __metadata("design:type", String)
41
+ ], GameResult.prototype, "gameId", void 0);
42
+ __decorate([
43
+ (0, mongoose_1.Prop)(),
44
+ __metadata("design:type", String)
45
+ ], GameResult.prototype, "pot", void 0);
46
+ __decorate([
47
+ (0, mongoose_1.Prop)(),
48
+ __metadata("design:type", Array)
49
+ ], GameResult.prototype, "players", void 0);
50
+ __decorate([
51
+ (0, mongoose_1.Prop)(),
52
+ __metadata("design:type", Array)
53
+ ], GameResult.prototype, "winners", void 0);
54
+ __decorate([
55
+ (0, mongoose_1.Prop)(),
56
+ __metadata("design:type", Array)
57
+ ], GameResult.prototype, "history", void 0);
58
+ __decorate([
59
+ (0, mongoose_1.Prop)(mongoose_2.SchemaTypes.Mixed),
60
+ __metadata("design:type", Object)
61
+ ], GameResult.prototype, "extraData", void 0);
62
+ exports.GameResult = GameResult = __decorate([
63
+ (0, mongoose_1.Schema)({ collection: 'game_results' })
64
+ ], GameResult);
65
+ exports.GameResultSchema = mongoose_1.SchemaFactory.createForClass(GameResult);
66
+ //# sourceMappingURL=game_result.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"game_result.schema.js","sourceRoot":"","sources":["../../src/schemas/game_result.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAwE;AACxE,uCAAmE;AA8B5D,IAAM,UAAU,GAAhB,MAAM,UAAU;CAkCtB,CAAA;AAlCY,gCAAU;AAMV;IALR,IAAA,kBAAO,EAAC;QACL,GAAG,EAAE;YACD,OAAO,IAAI,CAAC,EAAE,CAAC;QACnB,CAAC;KACJ,CAAC;;gDAC4B;AAG9B;IADC,IAAA,eAAI,GAAE;8BACD,IAAI;wCAAC;AAGX;IADC,IAAA,eAAI,GAAE;;4CACU;AAGjB;IADC,IAAA,eAAI,GAAE;;0CACQ;AAGf;IADC,IAAA,eAAI,GAAE;;0CACQ;AAGf;IADC,IAAA,eAAI,GAAE;;uCACK;AAGZ;IADC,IAAA,eAAI,GAAE;8BACE,KAAK;2CAAoB;AAGlC;IADC,IAAA,eAAI,GAAE;8BACE,KAAK;2CAAoB;AAGlC;IADC,IAAA,eAAI,GAAE;8BACE,KAAK;2CAAyB;AAGvC;IADC,IAAA,eAAI,EAAC,sBAAW,CAAC,KAAK,CAAC;;6CACN;qBAjCT,UAAU;IADtB,IAAA,iBAAM,EAAC,EAAE,UAAU,EAAE,cAAc,EAAE,CAAC;GAC1B,UAAU,CAkCtB;AAEY,QAAA,gBAAgB,GAAG,wBAAa,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jp.db.schemas",
3
- "version": "1.0.40",
3
+ "version": "1.0.41",
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 { Menu, MenuSchema } from './schemas/menu.schema';
48
48
  import type { MenuDocument } from './schemas/menu.schema';
49
+ import { GameResult, GameResultSchema } from './schemas/game_result.schema';
50
+ import type { GameResultDocument } from './schemas/game_result.schema';
49
51
 
50
52
  import {
51
53
  AdminRepository,
@@ -59,6 +61,7 @@ import {
59
61
  UsersRepository,
60
62
  MenuRepository,
61
63
  RoomsRepository,
64
+ GameResultRepository,
62
65
  } from './repositories'
63
66
 
64
67
  export type {
@@ -86,6 +89,7 @@ export type {
86
89
  RatingDocument,
87
90
  SettingDocument,
88
91
  MenuDocument,
92
+ GameResultDocument,
89
93
  }
90
94
 
91
95
  export {
@@ -137,6 +141,8 @@ export {
137
141
  SettingSchema,
138
142
  Menu,
139
143
  MenuSchema,
144
+ GameResult,
145
+ GameResultSchema,
140
146
  }
141
147
 
142
148
  export {
@@ -151,4 +157,5 @@ export {
151
157
  UsersRepository,
152
158
  MenuRepository,
153
159
  RoomsRepository,
160
+ GameResultRepository,
154
161
  }
@@ -0,0 +1,15 @@
1
+ import { Injectable } from '@nestjs/common';
2
+ import { InjectModel } from '@nestjs/mongoose';
3
+ import { Model } from 'mongoose';
4
+
5
+ import { GameResult, GameResultDocument } from '../';
6
+
7
+ @Injectable()
8
+ export class GameResultRepository {
9
+ constructor (@InjectModel(GameResult.name) private gameResultModel: Model<GameResultDocument>) {
10
+ }
11
+
12
+ public async createGameResult (gameResult: GameResult): Promise<GameResult> {
13
+ return this.gameResultModel.create(gameResult);
14
+ }
15
+ }
@@ -9,6 +9,7 @@ import { ServersRepository } from './servers.repository';
9
9
  import { UsersRepository } from './users.repository';
10
10
  import { MenuRepository } from './menu.repository';
11
11
  import { RoomsRepository } from './rooms.repository';
12
+ import { GameResultRepository } from './game-result.repository';
12
13
 
13
14
  export {
14
15
  AdminRepository,
@@ -22,4 +23,5 @@ export {
22
23
  UsersRepository,
23
24
  MenuRepository,
24
25
  RoomsRepository,
26
+ GameResultRepository,
25
27
  }
@@ -0,0 +1,68 @@
1
+ import { Prop, Schema, SchemaFactory, Virtual } from '@nestjs/mongoose';
2
+ import { Document, HydratedDocument, SchemaTypes } from 'mongoose';
3
+
4
+ export type GameResultDocument = HydratedDocument<GameResult>;
5
+
6
+ export interface IGameResultFigure {
7
+ figureId: number;
8
+ type: string;
9
+ name: string;
10
+ }
11
+
12
+ export interface IGameResultPlayer {
13
+ userId: string;
14
+ fullName: string;
15
+ profit?: number;
16
+ figures?: Array<IGameResultFigure>;
17
+ }
18
+
19
+ export interface IGameResultHistoryItem {
20
+ userId: string;
21
+ fullName: string;
22
+ date: Date;
23
+ actionType: string;
24
+ state: string;
25
+ turnNumber: number;
26
+ moveAction?: string;
27
+ moveData?: object;
28
+ figures?: Array<IGameResultFigure>;
29
+ }
30
+
31
+ @Schema({ collection: 'game_results' })
32
+ export class GameResult {
33
+ @Virtual({
34
+ get: function (this: Document) {
35
+ return this.id;
36
+ },
37
+ })
38
+ readonly gameResultId: string;
39
+
40
+ @Prop()
41
+ date: Date;
42
+
43
+ @Prop()
44
+ gameType: string;
45
+
46
+ @Prop()
47
+ roomId: string;
48
+
49
+ @Prop()
50
+ gameId: string;
51
+
52
+ @Prop()
53
+ pot: string;
54
+
55
+ @Prop()
56
+ players: Array<IGameResultPlayer>;
57
+
58
+ @Prop()
59
+ winners: Array<IGameResultPlayer>;
60
+
61
+ @Prop()
62
+ history: Array<IGameResultHistoryItem>;
63
+
64
+ @Prop(SchemaTypes.Mixed)
65
+ extraData: object;
66
+ }
67
+
68
+ export const GameResultSchema = SchemaFactory.createForClass(GameResult);