jp.db.schemas 1.0.19 → 1.0.21
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 +6 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/repositories/index.d.ts +3 -1
- package/dist/repositories/index.d.ts.map +1 -1
- package/dist/repositories/index.js +5 -1
- package/dist/repositories/index.js.map +1 -1
- package/dist/repositories/menu.repository.d.ts +8 -0
- package/dist/repositories/menu.repository.d.ts.map +1 -0
- package/dist/repositories/menu.repository.js +39 -0
- package/dist/repositories/menu.repository.js.map +1 -0
- package/dist/repositories/rooms.repository.d.ts +8 -0
- package/dist/repositories/rooms.repository.d.ts.map +1 -0
- package/dist/repositories/rooms.repository.js +36 -0
- package/dist/repositories/rooms.repository.js.map +1 -0
- package/dist/schemas/menu.schema.d.ts +23 -0
- package/dist/schemas/menu.schema.d.ts.map +1 -0
- package/dist/schemas/menu.schema.js +61 -0
- package/dist/schemas/menu.schema.js.map +1 -0
- package/package.json +1 -1
- package/src/index.ts +9 -0
- package/src/repositories/index.ts +4 -0
- package/src/repositories/menu.repository.ts +21 -0
- package/src/repositories/rooms.repository.ts +17 -0
- package/src/schemas/menu.schema.ts +40 -0
package/dist/index.d.ts
CHANGED
|
@@ -44,8 +44,10 @@ import { Rating, RatingSchema } from './schemas/rating.schema';
|
|
|
44
44
|
import type { RatingDocument } from './schemas/rating.schema';
|
|
45
45
|
import { Setting, SettingSchema } from './schemas/setting.schema';
|
|
46
46
|
import type { SettingDocument } from './schemas/setting.schema';
|
|
47
|
-
import {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
export {
|
|
47
|
+
import { Menu, MenuSchema } from './schemas/menu.schema';
|
|
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, };
|
|
51
53
|
//# 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,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N,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,GACb,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,GAClB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.UsersRepository = exports.ServersRepository = exports.ScheduledTournamentsRepository = exports.ProductsRepository = exports.NotificationRepository = void 0;
|
|
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;
|
|
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; } });
|
|
@@ -71,6 +71,9 @@ Object.defineProperty(exports, "RatingSchema", { enumerable: true, get: function
|
|
|
71
71
|
const setting_schema_1 = require("./schemas/setting.schema");
|
|
72
72
|
Object.defineProperty(exports, "Setting", { enumerable: true, get: function () { return setting_schema_1.Setting; } });
|
|
73
73
|
Object.defineProperty(exports, "SettingSchema", { enumerable: true, get: function () { return setting_schema_1.SettingSchema; } });
|
|
74
|
+
const menu_schema_1 = require("./schemas/menu.schema");
|
|
75
|
+
Object.defineProperty(exports, "Menu", { enumerable: true, get: function () { return menu_schema_1.Menu; } });
|
|
76
|
+
Object.defineProperty(exports, "MenuSchema", { enumerable: true, get: function () { return menu_schema_1.MenuSchema; } });
|
|
74
77
|
const repositories_1 = require("./repositories");
|
|
75
78
|
Object.defineProperty(exports, "AdminRepository", { enumerable: true, get: function () { return repositories_1.AdminRepository; } });
|
|
76
79
|
Object.defineProperty(exports, "ArticleRepository", { enumerable: true, get: function () { return repositories_1.ArticleRepository; } });
|
|
@@ -81,4 +84,6 @@ Object.defineProperty(exports, "ProductsRepository", { enumerable: true, get: fu
|
|
|
81
84
|
Object.defineProperty(exports, "ScheduledTournamentsRepository", { enumerable: true, get: function () { return repositories_1.ScheduledTournamentsRepository; } });
|
|
82
85
|
Object.defineProperty(exports, "ServersRepository", { enumerable: true, get: function () { return repositories_1.ServersRepository; } });
|
|
83
86
|
Object.defineProperty(exports, "UsersRepository", { enumerable: true, get: function () { return repositories_1.UsersRepository; } });
|
|
87
|
+
Object.defineProperty(exports, "MenuRepository", { enumerable: true, get: function () { return repositories_1.MenuRepository; } });
|
|
88
|
+
Object.defineProperty(exports, "RoomsRepository", { enumerable: true, get: function () { return repositories_1.RoomsRepository; } });
|
|
84
89
|
//# 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;AA2FrD,qFA3FK,kBAAI,OA2FL;AACJ,2FA5FW,wBAAU,OA4FX;AA1Fd,6DAAgE;AA2F5D,uFA3FK,uBAAM,OA2FL;AACN,6FA5Fa,6BAAY,OA4Fb;AA1FhB,qEAA4E;AA2FxE,2FA3FK,+BAAU,OA2FL;AACV,iGA5FiB,qCAAgB,OA4FjB;AA1FpB,6DAAgE;AA2F5D,uFA3FK,uBAAM,OA2FL;AACN,6FA5Fa,6BAAY,OA4Fb;AA1FhB,6DAAgE;AA2F5D,uFA3FK,uBAAM,OA2FL;AACN,6FA5Fa,6BAAY,OA4Fb;AA1FhB,6DAAgE;AA2F5D,uFA3FK,uBAAM,OA2FL;AACN,6FA5Fa,6BAAY,OA4Fb;AA1FhB,6DAAgE;AA2F5D,uFA3FK,uBAAM,OA2FL;AACN,6FA5Fa,6BAAY,OA4Fb;AA1FhB,+DAAqE;AA2FjE,yFA3FK,0BAAQ,OA2FL;AACR,+FA5Fe,gCAAc,OA4Ff;AA1FlB,+DAAqE;AA2FjE,yFA3F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d,iDAYuB;AAiFnB,gGA5FA,8BAAe,OA4FA;AACf,kGA5FA,gCAAiB,OA4FA;AACjB,kGA5FA,gCAAiB,OA4FA;AACjB,oGA5FA,kCAAmB,OA4FA;AACnB,uGA5FA,qCAAsB,OA4FA;AACtB,mGA5FA,iCAAkB,OA4FA;AAClB,+GA5FA,6CAA8B,OA4FA;AAC9B,kGA5FA,gCAAiB,OA4FA;AACjB,gGA5FA,8BAAe,OA4FA;AACf,+FA5FA,6BAAc,OA4FA;AACd,gGA5FA,8BAAe,OA4FA"}
|
|
@@ -7,5 +7,7 @@ import { ProductsRepository } from './products.repository';
|
|
|
7
7
|
import { ScheduledTournamentsRepository } from './scheduled-tournaments.repository';
|
|
8
8
|
import { ServersRepository } from './servers.repository';
|
|
9
9
|
import { UsersRepository } from './users.repository';
|
|
10
|
-
|
|
10
|
+
import { MenuRepository } from './menu.repository';
|
|
11
|
+
import { RoomsRepository } from './rooms.repository';
|
|
12
|
+
export { AdminRepository, ArticleRepository, BannersRepository, ComplainsRepository, NotificationRepository, ProductsRepository, ScheduledTournamentsRepository, ServersRepository, UsersRepository, MenuRepository, RoomsRepository, };
|
|
11
13
|
//# 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;AAErD,OAAO,EACH,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,EACtB,kBAAkB,EAClB,8BAA8B,EAC9B,iBAAiB,EACjB,eAAe,GAClB,CAAA"}
|
|
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;AAErD,OAAO,EACH,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,EACtB,kBAAkB,EAClB,8BAA8B,EAC9B,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,eAAe,GAClB,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UsersRepository = exports.ServersRepository = exports.ScheduledTournamentsRepository = exports.ProductsRepository = exports.NotificationRepository = exports.ComplainsRepository = exports.BannersRepository = exports.ArticleRepository = exports.AdminRepository = void 0;
|
|
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;
|
|
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");
|
|
@@ -19,4 +19,8 @@ const servers_repository_1 = require("./servers.repository");
|
|
|
19
19
|
Object.defineProperty(exports, "ServersRepository", { enumerable: true, get: function () { return servers_repository_1.ServersRepository; } });
|
|
20
20
|
const users_repository_1 = require("./users.repository");
|
|
21
21
|
Object.defineProperty(exports, "UsersRepository", { enumerable: true, get: function () { return users_repository_1.UsersRepository; } });
|
|
22
|
+
const menu_repository_1 = require("./menu.repository");
|
|
23
|
+
Object.defineProperty(exports, "MenuRepository", { enumerable: true, get: function () { return menu_repository_1.MenuRepository; } });
|
|
24
|
+
const rooms_repository_1 = require("./rooms.repository");
|
|
25
|
+
Object.defineProperty(exports, "RoomsRepository", { enumerable: true, get: function () { return rooms_repository_1.RoomsRepository; } });
|
|
22
26
|
//# 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;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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Model } from 'mongoose';
|
|
2
|
+
import { Menu, MenuDocument } from '../';
|
|
3
|
+
export declare class MenuRepository {
|
|
4
|
+
private menuModel;
|
|
5
|
+
constructor(menuModel: Model<MenuDocument>);
|
|
6
|
+
findMenus(channel: string, game: string): Promise<Array<Menu> | null>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=menu.repository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu.repository.d.ts","sourceRoot":"","sources":["../../src/repositories/menu.repository.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,KAAK,CAAC;AAGzC,qBACa,cAAc;IACc,OAAO,CAAC,SAAS;gBAAT,SAAS,EAAE,KAAK,CAAC,YAAY,CAAC;IAGrE,SAAS,CAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;CAO/E"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.MenuRepository = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
18
|
+
const mongoose_2 = require("mongoose");
|
|
19
|
+
const __1 = require("../");
|
|
20
|
+
const utils_1 = require("../utils");
|
|
21
|
+
let MenuRepository = class MenuRepository {
|
|
22
|
+
constructor(menuModel) {
|
|
23
|
+
this.menuModel = menuModel;
|
|
24
|
+
}
|
|
25
|
+
async findMenus(channel, game) {
|
|
26
|
+
return this.menuModel
|
|
27
|
+
.find({
|
|
28
|
+
channels: (0, utils_1.getChannelRegExpFilter)(channel),
|
|
29
|
+
})
|
|
30
|
+
.exec();
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
exports.MenuRepository = MenuRepository;
|
|
34
|
+
exports.MenuRepository = MenuRepository = __decorate([
|
|
35
|
+
(0, common_1.Injectable)(),
|
|
36
|
+
__param(0, (0, mongoose_1.InjectModel)(__1.Menu.name)),
|
|
37
|
+
__metadata("design:paramtypes", [mongoose_2.Model])
|
|
38
|
+
], MenuRepository);
|
|
39
|
+
//# sourceMappingURL=menu.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu.repository.js","sourceRoot":"","sources":["../../src/repositories/menu.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,+CAA+C;AAC/C,uCAAiC;AAEjC,2BAAyC;AACzC,oCAAkD;AAG3C,IAAM,cAAc,GAApB,MAAM,cAAc;IACvB,YAA6C,SAA8B;QAA9B,cAAS,GAAT,SAAS,CAAqB;IAC3E,CAAC;IAED,KAAK,CAAC,SAAS,CAAE,OAAe,EAAE,IAAY;QAC1C,OAAO,IAAI,CAAC,SAAS;aAChB,IAAI,CAAC;YACF,QAAQ,EAAE,IAAA,8BAAsB,EAAC,OAAO,CAAC;SAC5C,CAAC;aACD,IAAI,EAAE,CAAC;IAChB,CAAC;CACJ,CAAA;AAXY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,mBAAU,GAAE;IAEK,WAAA,IAAA,sBAAW,EAAC,QAAI,CAAC,IAAI,CAAC,CAAA;qCAAoB,gBAAK;GADpD,cAAc,CAW1B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Model } from 'mongoose';
|
|
2
|
+
import { RoomDocument } from '../';
|
|
3
|
+
export declare class RoomsRepository {
|
|
4
|
+
private roomModel;
|
|
5
|
+
constructor(roomModel: Model<RoomDocument>);
|
|
6
|
+
findRooms(): Promise<Array<RoomDocument>>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=rooms.repository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rooms.repository.d.ts","sourceRoot":"","sources":["../../src/repositories/rooms.repository.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,OAAO,EAAQ,YAAY,EAAE,MAAM,KAAK,CAAC;AAEzC,qBACa,eAAe;IACW,OAAO,CAAC,SAAS;gBAAT,SAAS,EAAE,KAAK,CAAC,YAAY,CAAC;IAGrE,SAAS,IAAK,OAAO,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;CAKjD"}
|
|
@@ -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.RoomsRepository = 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 RoomsRepository = class RoomsRepository {
|
|
21
|
+
constructor(roomModel) {
|
|
22
|
+
this.roomModel = roomModel;
|
|
23
|
+
}
|
|
24
|
+
async findRooms() {
|
|
25
|
+
return this.roomModel
|
|
26
|
+
.find()
|
|
27
|
+
.exec();
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
exports.RoomsRepository = RoomsRepository;
|
|
31
|
+
exports.RoomsRepository = RoomsRepository = __decorate([
|
|
32
|
+
(0, common_1.Injectable)(),
|
|
33
|
+
__param(0, (0, mongoose_1.InjectModel)(__1.Room.name)),
|
|
34
|
+
__metadata("design:paramtypes", [mongoose_2.Model])
|
|
35
|
+
], RoomsRepository);
|
|
36
|
+
//# sourceMappingURL=rooms.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rooms.repository.js","sourceRoot":"","sources":["../../src/repositories/rooms.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,+CAA+C;AAC/C,uCAAiC;AAEjC,2BAAyC;AAGlC,IAAM,eAAe,GAArB,MAAM,eAAe;IAC1B,YAA6C,SAA8B;QAA9B,cAAS,GAAT,SAAS,CAAqB;IAC3E,CAAC;IAED,KAAK,CAAC,SAAS;QACb,OAAO,IAAI,CAAC,SAAS;aAClB,IAAI,EAAE;aACN,IAAI,EAAE,CAAC;IACZ,CAAC;CACF,CAAA;AATY,0CAAe;0BAAf,eAAe;IAD3B,IAAA,mBAAU,GAAE;IAEG,WAAA,IAAA,sBAAW,EAAC,QAAI,CAAC,IAAI,CAAC,CAAA;qCAAoB,gBAAK;GADlD,eAAe,CAS3B"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Document, HydratedDocument } from 'mongoose';
|
|
2
|
+
export type MenuDocument = HydratedDocument<Menu>;
|
|
3
|
+
export declare class Menu {
|
|
4
|
+
readonly menuId: string;
|
|
5
|
+
code: string;
|
|
6
|
+
title: string;
|
|
7
|
+
titleEn: string;
|
|
8
|
+
icon: string;
|
|
9
|
+
url: string;
|
|
10
|
+
position: number;
|
|
11
|
+
game: string;
|
|
12
|
+
channel: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const MenuSchema: import("mongoose").Schema<Menu, import("mongoose").Model<Menu, any, any, any, Document<unknown, any, Menu, any> & Menu & {
|
|
15
|
+
_id: import("mongoose").Types.ObjectId;
|
|
16
|
+
} & {
|
|
17
|
+
__v: number;
|
|
18
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Menu, Document<unknown, {}, import("mongoose").FlatRecord<Menu>, {}> & import("mongoose").FlatRecord<Menu> & {
|
|
19
|
+
_id: import("mongoose").Types.ObjectId;
|
|
20
|
+
} & {
|
|
21
|
+
__v: number;
|
|
22
|
+
}>;
|
|
23
|
+
//# sourceMappingURL=menu.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/menu.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEtD,MAAM,MAAM,YAAY,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC;AAElD,qBACa,IAAI;IAMb,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAGxB,IAAI,EAAE,MAAM,CAAC;IAGb,KAAK,EAAE,MAAM,CAAC;IAGd,OAAO,EAAE,MAAM,CAAC;IAGhB,IAAI,EAAE,MAAM,CAAC;IAGb,GAAG,EAAE,MAAM,CAAC;IAGZ,QAAQ,EAAE,MAAM,CAAC;IAGjB,IAAI,EAAE,MAAM,CAAC;IAGb,OAAO,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,UAAU;;;;;;;;EAAqC,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.MenuSchema = exports.Menu = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
let Menu = class Menu {
|
|
15
|
+
};
|
|
16
|
+
exports.Menu = Menu;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, mongoose_1.Virtual)({
|
|
19
|
+
get: function () {
|
|
20
|
+
return this.id;
|
|
21
|
+
},
|
|
22
|
+
}),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], Menu.prototype, "menuId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, mongoose_1.Prop)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], Menu.prototype, "code", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, mongoose_1.Prop)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], Menu.prototype, "title", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, mongoose_1.Prop)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], Menu.prototype, "titleEn", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, mongoose_1.Prop)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], Menu.prototype, "icon", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, mongoose_1.Prop)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], Menu.prototype, "url", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, mongoose_1.Prop)(),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], Menu.prototype, "position", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, mongoose_1.Prop)(),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], Menu.prototype, "game", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, mongoose_1.Prop)(),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], Menu.prototype, "channel", void 0);
|
|
57
|
+
exports.Menu = Menu = __decorate([
|
|
58
|
+
(0, mongoose_1.Schema)()
|
|
59
|
+
], Menu);
|
|
60
|
+
exports.MenuSchema = mongoose_1.SchemaFactory.createForClass(Menu);
|
|
61
|
+
//# sourceMappingURL=menu.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu.schema.js","sourceRoot":"","sources":["../../src/schemas/menu.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAwE;AAMjE,IAAM,IAAI,GAAV,MAAM,IAAI;CA+BhB,CAAA;AA/BY,oBAAI;AAMJ;IALR,IAAA,kBAAO,EAAC;QACL,GAAG,EAAE;YACD,OAAO,IAAI,CAAC,EAAE,CAAC;QACnB,CAAC;KACJ,CAAC;;oCACsB;AAGxB;IADC,IAAA,eAAI,GAAE;;kCACM;AAGb;IADC,IAAA,eAAI,GAAE;;mCACO;AAGd;IADC,IAAA,eAAI,GAAE;;qCACS;AAGhB;IADC,IAAA,eAAI,GAAE;;kCACM;AAGb;IADC,IAAA,eAAI,GAAE;;iCACK;AAGZ;IADC,IAAA,eAAI,GAAE;;sCACU;AAGjB;IADC,IAAA,eAAI,GAAE;;kCACM;AAGb;IADC,IAAA,eAAI,GAAE;;qCACS;eA9BP,IAAI;IADhB,IAAA,iBAAM,GAAE;GACI,IAAI,CA+BhB;AAEY,QAAA,UAAU,GAAG,wBAAa,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC"}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -44,6 +44,8 @@ import { Rating, RatingSchema } from './schemas/rating.schema';
|
|
|
44
44
|
import type { RatingDocument } from './schemas/rating.schema';
|
|
45
45
|
import { Setting, SettingSchema } from './schemas/setting.schema';
|
|
46
46
|
import type { SettingDocument } from './schemas/setting.schema';
|
|
47
|
+
import { Menu, MenuSchema } from './schemas/menu.schema';
|
|
48
|
+
import type { MenuDocument } from './schemas/menu.schema';
|
|
47
49
|
|
|
48
50
|
import {
|
|
49
51
|
AdminRepository,
|
|
@@ -55,6 +57,8 @@ import {
|
|
|
55
57
|
ScheduledTournamentsRepository,
|
|
56
58
|
ServersRepository,
|
|
57
59
|
UsersRepository,
|
|
60
|
+
MenuRepository,
|
|
61
|
+
RoomsRepository,
|
|
58
62
|
} from './repositories'
|
|
59
63
|
|
|
60
64
|
export type {
|
|
@@ -81,6 +85,7 @@ export type {
|
|
|
81
85
|
PurchaseChannelDocument,
|
|
82
86
|
RatingDocument,
|
|
83
87
|
SettingDocument,
|
|
88
|
+
MenuDocument,
|
|
84
89
|
}
|
|
85
90
|
|
|
86
91
|
export {
|
|
@@ -130,6 +135,8 @@ export {
|
|
|
130
135
|
RatingSchema,
|
|
131
136
|
Setting,
|
|
132
137
|
SettingSchema,
|
|
138
|
+
Menu,
|
|
139
|
+
MenuSchema,
|
|
133
140
|
}
|
|
134
141
|
|
|
135
142
|
export {
|
|
@@ -142,4 +149,6 @@ export {
|
|
|
142
149
|
ScheduledTournamentsRepository,
|
|
143
150
|
ServersRepository,
|
|
144
151
|
UsersRepository,
|
|
152
|
+
MenuRepository,
|
|
153
|
+
RoomsRepository,
|
|
145
154
|
}
|
|
@@ -7,6 +7,8 @@ import { ProductsRepository } from './products.repository';
|
|
|
7
7
|
import { ScheduledTournamentsRepository } from './scheduled-tournaments.repository';
|
|
8
8
|
import { ServersRepository } from './servers.repository';
|
|
9
9
|
import { UsersRepository } from './users.repository';
|
|
10
|
+
import { MenuRepository } from './menu.repository';
|
|
11
|
+
import { RoomsRepository } from './rooms.repository';
|
|
10
12
|
|
|
11
13
|
export {
|
|
12
14
|
AdminRepository,
|
|
@@ -18,4 +20,6 @@ export {
|
|
|
18
20
|
ScheduledTournamentsRepository,
|
|
19
21
|
ServersRepository,
|
|
20
22
|
UsersRepository,
|
|
23
|
+
MenuRepository,
|
|
24
|
+
RoomsRepository,
|
|
21
25
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Injectable } from '@nestjs/common';
|
|
2
|
+
import { InjectModel } from '@nestjs/mongoose';
|
|
3
|
+
import { Model } from 'mongoose';
|
|
4
|
+
|
|
5
|
+
import { Menu, MenuDocument } from '../';
|
|
6
|
+
import { getChannelRegExpFilter } from '../utils';
|
|
7
|
+
|
|
8
|
+
@Injectable()
|
|
9
|
+
export class MenuRepository {
|
|
10
|
+
constructor (@InjectModel(Menu.name) private menuModel: Model<MenuDocument>) {
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
async findMenus (channel: string, game: string): Promise<Array<Menu> | null> {
|
|
14
|
+
return this.menuModel
|
|
15
|
+
.find({
|
|
16
|
+
channels: getChannelRegExpFilter(channel),
|
|
17
|
+
})
|
|
18
|
+
.exec();
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Injectable } from '@nestjs/common';
|
|
2
|
+
import { InjectModel } from '@nestjs/mongoose';
|
|
3
|
+
import { Model } from 'mongoose';
|
|
4
|
+
|
|
5
|
+
import { Room, RoomDocument } from '../';
|
|
6
|
+
|
|
7
|
+
@Injectable()
|
|
8
|
+
export class RoomsRepository {
|
|
9
|
+
constructor (@InjectModel(Room.name) private roomModel: Model<RoomDocument>) {
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
async findRooms (): Promise<Array<RoomDocument>> {
|
|
13
|
+
return this.roomModel
|
|
14
|
+
.find()
|
|
15
|
+
.exec();
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Prop, Schema, SchemaFactory, Virtual } from '@nestjs/mongoose';
|
|
2
|
+
import { Document, HydratedDocument } from 'mongoose';
|
|
3
|
+
|
|
4
|
+
export type MenuDocument = HydratedDocument<Menu>;
|
|
5
|
+
|
|
6
|
+
@Schema()
|
|
7
|
+
export class Menu {
|
|
8
|
+
@Virtual({
|
|
9
|
+
get: function (this: Document) {
|
|
10
|
+
return this.id;
|
|
11
|
+
},
|
|
12
|
+
})
|
|
13
|
+
readonly menuId: string;
|
|
14
|
+
|
|
15
|
+
@Prop()
|
|
16
|
+
code: string;
|
|
17
|
+
|
|
18
|
+
@Prop()
|
|
19
|
+
title: string;
|
|
20
|
+
|
|
21
|
+
@Prop()
|
|
22
|
+
titleEn: string;
|
|
23
|
+
|
|
24
|
+
@Prop()
|
|
25
|
+
icon: string;
|
|
26
|
+
|
|
27
|
+
@Prop()
|
|
28
|
+
url: string;
|
|
29
|
+
|
|
30
|
+
@Prop()
|
|
31
|
+
position: number;
|
|
32
|
+
|
|
33
|
+
@Prop()
|
|
34
|
+
game: string;
|
|
35
|
+
|
|
36
|
+
@Prop()
|
|
37
|
+
channel: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export const MenuSchema = SchemaFactory.createForClass(Menu);
|