jp.db.schemas 2.0.27 → 2.0.28
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 +5 -1
- package/dist/index.js.map +1 -1
- package/dist/repositories/friend.repository.d.ts +8 -0
- package/dist/repositories/friend.repository.d.ts.map +1 -0
- package/dist/repositories/friend.repository.js +39 -0
- package/dist/repositories/friend.repository.js.map +1 -0
- package/dist/repositories/index.d.ts +2 -1
- package/dist/repositories/index.d.ts.map +1 -1
- package/dist/repositories/index.js +3 -1
- package/dist/repositories/index.js.map +1 -1
- package/dist/schemas/friend.schema.d.ts +63 -0
- package/dist/schemas/friend.schema.d.ts.map +1 -0
- package/dist/schemas/friend.schema.js +57 -0
- package/dist/schemas/friend.schema.js.map +1 -0
- package/package.json +1 -1
- package/src/index.ts +7 -0
- package/src/repositories/friend.repository.ts +20 -0
- package/src/repositories/index.ts +2 -0
- package/src/schemas/friend.schema.ts +40 -0
package/dist/index.d.ts
CHANGED
|
@@ -62,10 +62,12 @@ import { DailyBonus, DailyBonusSchema } from './schemas/daily_bonus.schema';
|
|
|
62
62
|
import type { DailyBonusDocument } from './schemas/daily_bonus.schema';
|
|
63
63
|
import { Rule, RuleSchema } from './schemas/rule.schema';
|
|
64
64
|
import type { RuleDocument } from './schemas/rule.schema';
|
|
65
|
+
import { Friend, FriendSchema } from './schemas/friend.schema';
|
|
66
|
+
import type { FriendDocument } from './schemas/friend.schema';
|
|
65
67
|
import { Welcome, WelcomeSchema } from './schemas/welcome.schema';
|
|
66
68
|
import type { WelcomeDocument } from './schemas/welcome.schema';
|
|
67
|
-
import { AdminRepository, ArticleRepository, BannersRepository, ComplainsRepository, NotificationRepository, ProductsRepository, ScheduledTournamentsRepository, ServersRepository, UsersRepository, MenuRepository, WelcomeRepository, PremiumRepository, RuleRepository, DailyBonusRepository, SettingRepository, RoomsRepository, GameResultRepository, BalanceHistoryRepository, SimpleRoomsRepository, TournamentOneTableRoomsRepository, TournamentManyTablesRoomsRepository } from './repositories';
|
|
68
|
-
export type { UserDocument, FBUserDocument, GoogleUserDocument, OKUserDocument, TGUserDocument, VKUserDocument, YAUserDocument, PurchaseDocument, ComplainDocument, NotificationDocument, ScheduledTournamentDocument, AdminDocument, RoomDocument, ArticleDocument, BannerDocument, ServerDocument, AchievementDocument, ChannelMessageDocument, FeatureDocument, ProductDocument, PurchaseChannelDocument, RatingDocument, SettingDocument, PremiumDocument, MenuDocument, WelcomeDocument, RuleDocument, DailyBonusDocument, GameResultDocument, BalanceHistoryDocument, SimpleRoomDocument, TournamentOneTableRoomDocument, TournamentManyTablesRoomDocument, };
|
|
69
|
-
export { User, UserSchema, FBUser, FBUserSchema, GoogleUser, GoogleUserSchema, OKUser, OKUserSchema, TGUser, TGUserSchema, VKUser, VKUserSchema, YAUser, YAUserSchema, Purchase, PurchaseSchema, Complain, ComplainSchema, Notification, NotificationSchema, ScheduledTournament, ScheduledTournamentSchema, Admin, AdminSchema, Room, RoomSchema, Article, ArticleSchema, Banner, BannerSchema, Server, ServerSchema, Achievement, AchievementSchema, ChannelMessage, ChannelMessageSchema, Feature, FeatureSchema, Product, ProductSchema, PurchaseChannel, PurchaseChannelSchema, Rating, RatingSchema, Setting, SettingSchema, Menu, MenuSchema, DailyBonus, DailyBonusSchema, Rule, RuleSchema, Premium, PremiumSchema, Welcome, WelcomeSchema, GameResult, GameResultSchema, BalanceHistory, BalanceHistorySchema, SimpleRoom, SimpleRoomSchema, TournamentOneTableRoom, TournamentOneTableRoomSchema, TournamentManyTablesRoom, TournamentManyTablesRoomSchema, };
|
|
70
|
-
export { AdminRepository, ArticleRepository, BannersRepository, ComplainsRepository, NotificationRepository, ProductsRepository, ScheduledTournamentsRepository, ServersRepository, UsersRepository, MenuRepository, DailyBonusRepository, PremiumRepository, RuleRepository, WelcomeRepository, SettingRepository, RoomsRepository, GameResultRepository, BalanceHistoryRepository, SimpleRoomsRepository, TournamentOneTableRoomsRepository, TournamentManyTablesRoomsRepository, };
|
|
69
|
+
import { AdminRepository, ArticleRepository, BannersRepository, ComplainsRepository, NotificationRepository, ProductsRepository, ScheduledTournamentsRepository, ServersRepository, UsersRepository, MenuRepository, FriendRepository, WelcomeRepository, PremiumRepository, RuleRepository, DailyBonusRepository, SettingRepository, RoomsRepository, GameResultRepository, BalanceHistoryRepository, SimpleRoomsRepository, TournamentOneTableRoomsRepository, TournamentManyTablesRoomsRepository } from './repositories';
|
|
70
|
+
export type { UserDocument, FBUserDocument, GoogleUserDocument, OKUserDocument, TGUserDocument, VKUserDocument, YAUserDocument, PurchaseDocument, ComplainDocument, NotificationDocument, ScheduledTournamentDocument, AdminDocument, RoomDocument, ArticleDocument, BannerDocument, ServerDocument, AchievementDocument, ChannelMessageDocument, FeatureDocument, ProductDocument, PurchaseChannelDocument, RatingDocument, SettingDocument, PremiumDocument, MenuDocument, WelcomeDocument, RuleDocument, FriendDocument, DailyBonusDocument, GameResultDocument, BalanceHistoryDocument, SimpleRoomDocument, TournamentOneTableRoomDocument, TournamentManyTablesRoomDocument, };
|
|
71
|
+
export { User, UserSchema, FBUser, FBUserSchema, GoogleUser, GoogleUserSchema, OKUser, OKUserSchema, TGUser, TGUserSchema, VKUser, VKUserSchema, YAUser, YAUserSchema, Purchase, PurchaseSchema, Complain, ComplainSchema, Notification, NotificationSchema, ScheduledTournament, ScheduledTournamentSchema, Admin, AdminSchema, Room, RoomSchema, Article, ArticleSchema, Banner, BannerSchema, Server, ServerSchema, Achievement, AchievementSchema, ChannelMessage, ChannelMessageSchema, Feature, FeatureSchema, Product, ProductSchema, PurchaseChannel, PurchaseChannelSchema, Rating, RatingSchema, Setting, SettingSchema, Menu, MenuSchema, DailyBonus, DailyBonusSchema, Rule, RuleSchema, Premium, PremiumSchema, Welcome, WelcomeSchema, Friend, FriendSchema, GameResult, GameResultSchema, BalanceHistory, BalanceHistorySchema, SimpleRoom, SimpleRoomSchema, TournamentOneTableRoom, TournamentOneTableRoomSchema, TournamentManyTablesRoom, TournamentManyTablesRoomSchema, };
|
|
72
|
+
export { AdminRepository, ArticleRepository, BannersRepository, ComplainsRepository, NotificationRepository, ProductsRepository, ScheduledTournamentsRepository, ServersRepository, UsersRepository, MenuRepository, DailyBonusRepository, PremiumRepository, RuleRepository, FriendRepository, WelcomeRepository, SettingRepository, RoomsRepository, GameResultRepository, BalanceHistoryRepository, SimpleRoomsRepository, TournamentOneTableRoomsRepository, TournamentManyTablesRoomsRepository, };
|
|
71
73
|
//# 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,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,MAAM,EA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BAAsB,EACtB,kBAAkB,EAClB,8BAA8B,EAC9B,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,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.DailyBonusSchema = exports.DailyBonus = exports.MenuSchema = exports.Menu = exports.SettingSchema = exports.Setting = exports.RatingSchema = exports.Rating = exports.PurchaseChannelSchema = exports.PurchaseChannel = exports.ProductSchema = exports.Product = exports.FeatureSchema = exports.Feature = exports.ChannelMessageSchema = exports.ChannelMessage = exports.AchievementSchema = exports.Achievement = exports.ServerSchema = exports.Server = exports.BannerSchema = exports.Banner = exports.ArticleSchema = exports.Article = exports.RoomSchema = exports.Room = exports.AdminSchema = exports.Admin = exports.ScheduledTournamentSchema = exports.ScheduledTournament = exports.NotificationSchema = exports.Notification = exports.ComplainSchema = exports.Complain = exports.PurchaseSchema = exports.Purchase = exports.YAUserSchema = exports.YAUser = exports.VKUserSchema = exports.VKUser = exports.TGUserSchema = exports.TGUser = exports.OKUserSchema = exports.OKUser = exports.GoogleUserSchema = exports.GoogleUser = exports.FBUserSchema = exports.FBUser = exports.UserSchema = exports.User = void 0;
|
|
4
|
-
exports.TournamentManyTablesRoomsRepository = exports.TournamentOneTableRoomsRepository = exports.SimpleRoomsRepository = exports.BalanceHistoryRepository = exports.GameResultRepository = exports.RoomsRepository = exports.SettingRepository = exports.WelcomeRepository = exports.RuleRepository = exports.PremiumRepository = exports.DailyBonusRepository = exports.MenuRepository = exports.UsersRepository = exports.ServersRepository = exports.ScheduledTournamentsRepository = exports.ProductsRepository = exports.NotificationRepository = exports.ComplainsRepository = exports.BannersRepository = exports.ArticleRepository = exports.AdminRepository = exports.TournamentManyTablesRoomSchema = exports.TournamentManyTablesRoom = exports.TournamentOneTableRoomSchema = exports.TournamentOneTableRoom = exports.SimpleRoomSchema = exports.SimpleRoom = exports.BalanceHistorySchema = exports.BalanceHistory = exports.GameResultSchema = exports.GameResult = exports.WelcomeSchema = exports.Welcome = exports.PremiumSchema = exports.Premium = exports.RuleSchema = exports.Rule = void 0;
|
|
4
|
+
exports.TournamentManyTablesRoomsRepository = exports.TournamentOneTableRoomsRepository = exports.SimpleRoomsRepository = exports.BalanceHistoryRepository = exports.GameResultRepository = exports.RoomsRepository = exports.SettingRepository = exports.WelcomeRepository = exports.FriendRepository = exports.RuleRepository = exports.PremiumRepository = exports.DailyBonusRepository = exports.MenuRepository = exports.UsersRepository = exports.ServersRepository = exports.ScheduledTournamentsRepository = exports.ProductsRepository = exports.NotificationRepository = exports.ComplainsRepository = exports.BannersRepository = exports.ArticleRepository = exports.AdminRepository = exports.TournamentManyTablesRoomSchema = exports.TournamentManyTablesRoom = exports.TournamentOneTableRoomSchema = exports.TournamentOneTableRoom = exports.SimpleRoomSchema = exports.SimpleRoom = exports.BalanceHistorySchema = exports.BalanceHistory = exports.GameResultSchema = exports.GameResult = exports.FriendSchema = exports.Friend = exports.WelcomeSchema = exports.Welcome = exports.PremiumSchema = exports.Premium = exports.RuleSchema = exports.Rule = 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; } });
|
|
@@ -98,6 +98,9 @@ Object.defineProperty(exports, "DailyBonusSchema", { enumerable: true, get: func
|
|
|
98
98
|
const rule_schema_1 = require("./schemas/rule.schema");
|
|
99
99
|
Object.defineProperty(exports, "Rule", { enumerable: true, get: function () { return rule_schema_1.Rule; } });
|
|
100
100
|
Object.defineProperty(exports, "RuleSchema", { enumerable: true, get: function () { return rule_schema_1.RuleSchema; } });
|
|
101
|
+
const friend_schema_1 = require("./schemas/friend.schema");
|
|
102
|
+
Object.defineProperty(exports, "Friend", { enumerable: true, get: function () { return friend_schema_1.Friend; } });
|
|
103
|
+
Object.defineProperty(exports, "FriendSchema", { enumerable: true, get: function () { return friend_schema_1.FriendSchema; } });
|
|
101
104
|
const welcome_schema_1 = require("./schemas/welcome.schema");
|
|
102
105
|
Object.defineProperty(exports, "Welcome", { enumerable: true, get: function () { return welcome_schema_1.Welcome; } });
|
|
103
106
|
Object.defineProperty(exports, "WelcomeSchema", { enumerable: true, get: function () { return welcome_schema_1.WelcomeSchema; } });
|
|
@@ -112,6 +115,7 @@ Object.defineProperty(exports, "ScheduledTournamentsRepository", { enumerable: t
|
|
|
112
115
|
Object.defineProperty(exports, "ServersRepository", { enumerable: true, get: function () { return repositories_1.ServersRepository; } });
|
|
113
116
|
Object.defineProperty(exports, "UsersRepository", { enumerable: true, get: function () { return repositories_1.UsersRepository; } });
|
|
114
117
|
Object.defineProperty(exports, "MenuRepository", { enumerable: true, get: function () { return repositories_1.MenuRepository; } });
|
|
118
|
+
Object.defineProperty(exports, "FriendRepository", { enumerable: true, get: function () { return repositories_1.FriendRepository; } });
|
|
115
119
|
Object.defineProperty(exports, "WelcomeRepository", { enumerable: true, get: function () { return repositories_1.WelcomeRepository; } });
|
|
116
120
|
Object.defineProperty(exports, "PremiumRepository", { enumerable: true, get: function () { return repositories_1.PremiumRepository; } });
|
|
117
121
|
Object.defineProperty(exports, "RuleRepository", { enumerable: true, get: function () { return repositories_1.RuleRepository; } });
|
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,u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BAAY,OA6Hb;AA3HhB,6DAAkE;AAwH9D,wFAxHK,wBAAO,OAwHL;AACP,8FAzHc,8BAAa,OAyHd;AAtHjB,iDAuBuB;AA+GnB,gGArIA,8BAAe,OAqIA;AACf,kGArIA,gCAAiB,OAqIA;AACjB,kGArIA,gCAAiB,OAqIA;AACjB,oGArIA,kCAAmB,OAqIA;AACnB,uGArIA,qCAAsB,OAqIA;AACtB,mGArIA,iCAAkB,OAqIA;AAClB,+GArIA,6CAA8B,OAqIA;AAC9B,kGArIA,gCAAiB,OAqIA;AACjB,gGArIA,8BAAe,OAqIA;AACf,+FArIA,6BAAc,OAqIA;AAId,iGAxIA,+BAAgB,OAwIA;AAChB,kGAxIA,gCAAiB,OAwIA;AAHjB,kGApIA,gCAAiB,OAoIA;AACjB,+FApIA,6BAAc,OAoIA;AAFd,qGAjIA,mCAAoB,OAiIA;AAKpB,kGArIA,gCAAiB,OAqIA;AACjB,gGArIA,8BAAe,OAqIA;AACf,qGArIA,mCAAoB,OAqIA;AACpB,yGArIA,uCAAwB,OAqIA;AACxB,sGArIA,oCAAqB,OAqIA;AACrB,kHArIA,gDAAiC,OAqIA;AACjC,oHArIA,kDAAmC,OAqIA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Model } from 'mongoose';
|
|
2
|
+
import { Friend, FriendDocument } from '..';
|
|
3
|
+
export declare class FriendRepository {
|
|
4
|
+
private friendModel;
|
|
5
|
+
constructor(friendModel: Model<FriendDocument>);
|
|
6
|
+
findFriend(channel: string, game: string): Promise<Array<Friend> | null>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=friend.repository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"friend.repository.d.ts","sourceRoot":"","sources":["../../src/repositories/friend.repository.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAG5C,qBACa,gBAAgB;IACc,OAAO,CAAC,WAAW;gBAAX,WAAW,EAAE,KAAK,CAAC,cAAc,CAAC;IAG3E,UAAU,CAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;CAOlF"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.FriendRepository = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
18
|
+
const mongoose_2 = require("mongoose");
|
|
19
|
+
const __1 = require("..");
|
|
20
|
+
const utils_1 = require("../utils");
|
|
21
|
+
let FriendRepository = class FriendRepository {
|
|
22
|
+
constructor(friendModel) {
|
|
23
|
+
this.friendModel = friendModel;
|
|
24
|
+
}
|
|
25
|
+
async findFriend(channel, game) {
|
|
26
|
+
return this.friendModel
|
|
27
|
+
.find({
|
|
28
|
+
channels: (0, utils_1.getChannelRegExpFilter)(channel),
|
|
29
|
+
})
|
|
30
|
+
.exec();
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
exports.FriendRepository = FriendRepository;
|
|
34
|
+
exports.FriendRepository = FriendRepository = __decorate([
|
|
35
|
+
(0, common_1.Injectable)(),
|
|
36
|
+
__param(0, (0, mongoose_1.InjectModel)(__1.Friend.name)),
|
|
37
|
+
__metadata("design:paramtypes", [mongoose_2.Model])
|
|
38
|
+
], FriendRepository);
|
|
39
|
+
//# sourceMappingURL=friend.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"friend.repository.js","sourceRoot":"","sources":["../../src/repositories/friend.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,+CAA+C;AAC/C,uCAAiC;AAEjC,0BAA4C;AAC5C,oCAAkD;AAG3C,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IACzB,YAA+C,WAAkC;QAAlC,gBAAW,GAAX,WAAW,CAAuB;IACjF,CAAC;IAED,KAAK,CAAC,UAAU,CAAE,OAAe,EAAE,IAAY;QAC3C,OAAO,IAAI,CAAC,WAAW;aAClB,IAAI,CAAC;YACF,QAAQ,EAAE,IAAA,8BAAsB,EAAC,OAAO,CAAC;SAC5C,CAAC;aACD,IAAI,EAAE,CAAC;IAChB,CAAC;CACJ,CAAA;AAXY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,mBAAU,GAAE;IAEK,WAAA,IAAA,sBAAW,EAAC,UAAM,CAAC,IAAI,CAAC,CAAA;qCAAsB,gBAAK;GADxD,gBAAgB,CAW5B"}
|
|
@@ -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 { RuleRepository } from './rule.repository';
|
|
12
|
+
import { FriendRepository } from './friend.repository';
|
|
12
13
|
import { SettingRepository } from './setting.repository';
|
|
13
14
|
import { PremiumRepository } from './premium.repository';
|
|
14
15
|
import { WelcomeRepository } from './welcome.repository';
|
|
@@ -19,5 +20,5 @@ import { BalanceHistoryRepository } from './balance-history.repository';
|
|
|
19
20
|
import { SimpleRoomsRepository } from './simple-rooms.repository';
|
|
20
21
|
import { TournamentOneTableRoomsRepository } from './tournament-one-table-rooms.repository';
|
|
21
22
|
import { TournamentManyTablesRoomsRepository } from './tournament-many-tables-rooms.repository';
|
|
22
|
-
export { AdminRepository, ArticleRepository, BannersRepository, ComplainsRepository, NotificationRepository, ProductsRepository, ScheduledTournamentsRepository, ServersRepository, UsersRepository, MenuRepository, RuleRepository, SettingRepository, PremiumRepository, WelcomeRepository, DailyBonusRepository, RoomsRepository, GameResultRepository, BalanceHistoryRepository, SimpleRoomsRepository, TournamentOneTableRoomsRepository, TournamentManyTablesRoomsRepository, };
|
|
23
|
+
export { AdminRepository, ArticleRepository, BannersRepository, ComplainsRepository, NotificationRepository, ProductsRepository, ScheduledTournamentsRepository, ServersRepository, UsersRepository, MenuRepository, RuleRepository, FriendRepository, SettingRepository, PremiumRepository, WelcomeRepository, DailyBonusRepository, RoomsRepository, GameResultRepository, BalanceHistoryRepository, SimpleRoomsRepository, TournamentOneTableRoomsRepository, TournamentManyTablesRoomsRepository, };
|
|
23
24
|
//# 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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B,mBAAmB,EACnB,sBAAsB,EACtB,kBAAkB,EAClB,8BAA8B,EAC9B,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,oBAAoB,EACpB,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.TournamentManyTablesRoomsRepository = exports.TournamentOneTableRoomsRepository = exports.SimpleRoomsRepository = exports.BalanceHistoryRepository = exports.GameResultRepository = exports.RoomsRepository = exports.DailyBonusRepository = exports.WelcomeRepository = exports.PremiumRepository = exports.SettingRepository = exports.RuleRepository = exports.MenuRepository = exports.UsersRepository = exports.ServersRepository = exports.ScheduledTournamentsRepository = exports.ProductsRepository = exports.NotificationRepository = exports.ComplainsRepository = exports.BannersRepository = exports.ArticleRepository = exports.AdminRepository = void 0;
|
|
3
|
+
exports.TournamentManyTablesRoomsRepository = exports.TournamentOneTableRoomsRepository = exports.SimpleRoomsRepository = exports.BalanceHistoryRepository = exports.GameResultRepository = exports.RoomsRepository = exports.DailyBonusRepository = exports.WelcomeRepository = exports.PremiumRepository = exports.SettingRepository = exports.FriendRepository = exports.RuleRepository = exports.MenuRepository = exports.UsersRepository = exports.ServersRepository = exports.ScheduledTournamentsRepository = exports.ProductsRepository = exports.NotificationRepository = exports.ComplainsRepository = exports.BannersRepository = exports.ArticleRepository = exports.AdminRepository = void 0;
|
|
4
4
|
const admin_repository_1 = require("./admin.repository");
|
|
5
5
|
Object.defineProperty(exports, "AdminRepository", { enumerable: true, get: function () { return admin_repository_1.AdminRepository; } });
|
|
6
6
|
const article_repository_1 = require("./article.repository");
|
|
@@ -23,6 +23,8 @@ const menu_repository_1 = require("./menu.repository");
|
|
|
23
23
|
Object.defineProperty(exports, "MenuRepository", { enumerable: true, get: function () { return menu_repository_1.MenuRepository; } });
|
|
24
24
|
const rule_repository_1 = require("./rule.repository");
|
|
25
25
|
Object.defineProperty(exports, "RuleRepository", { enumerable: true, get: function () { return rule_repository_1.RuleRepository; } });
|
|
26
|
+
const friend_repository_1 = require("./friend.repository");
|
|
27
|
+
Object.defineProperty(exports, "FriendRepository", { enumerable: true, get: function () { return friend_repository_1.FriendRepository; } });
|
|
26
28
|
const setting_repository_1 = require("./setting.repository");
|
|
27
29
|
Object.defineProperty(exports, "SettingRepository", { enumerable: true, get: function () { return setting_repository_1.SettingRepository; } });
|
|
28
30
|
const premium_repository_1 = require("./premium.repository");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/repositories/index.ts"],"names":[],"mappings":";;;AAAA,yDAAqD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/repositories/index.ts"],"names":[],"mappings":";;;AAAA,yDAAqD;AAwBjD,gGAxBK,kCAAe,OAwBL;AAvBnB,6DAAyD;AAwBrD,kGAxBK,sCAAiB,OAwBL;AAvBrB,6DAAyD;AAwBrD,kGAxBK,sCAAiB,OAwBL;AAvBrB,iEAA6D;AAwBzD,oGAxBK,0CAAmB,OAwBL;AAvBvB,uEAAmE;AAwB/D,uGAxBK,gDAAsB,OAwBL;AAvB1B,+DAA2D;AAwBvD,mGAxBK,wCAAkB,OAwBL;AAvBtB,yFAAoF;AAwBhF,+GAxBK,iEAA8B,OAwBL;AAvBlC,6DAAyD;AAwBrD,kGAxBK,sCAAiB,OAwBL;AAvBrB,yDAAqD;AAwBjD,gGAxBK,kCAAe,OAwBL;AAvBnB,uDAAmD;AAwB/C,+FAxBK,gCAAc,OAwBL;AAvBlB,uDAAmD;AAwB/C,+FAxBK,gCAAc,OAwBL;AAvBlB,2DAAuD;AAwBnD,iGAxBK,oCAAgB,OAwBL;AAvBpB,6DAAyD;AAwBrD,kGAxBK,sCAAiB,OAwBL;AAvBrB,6DAAyD;AAwBrD,kGAxBK,sCAAiB,OAwBL;AAvBrB,6DAAyD;AAwBrD,kGAxBK,sCAAiB,OAwBL;AAvBrB,qEAAgE;AAwB5D,qGAxBK,6CAAoB,OAwBL;AAvBxB,yDAAqD;AAwBjD,gGAxBK,kCAAe,OAwBL;AAvBnB,qEAAgE;AAwB5D,qGAxBK,6CAAoB,OAwBL;AAvBxB,6EAAwE;AAwBpE,yGAxBK,qDAAwB,OAwBL;AAvB5B,uEAAkE;AAwB9D,sGAxBK,+CAAqB,OAwBL;AAvBzB,mGAA4F;AAwBxF,kHAxBK,yEAAiC,OAwBL;AAvBrC,uGAAgG;AAwB5F,oHAxBK,6EAAmC,OAwBL"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Document, HydratedDocument } from 'mongoose';
|
|
2
|
+
export type FriendDocument = HydratedDocument<Friend>;
|
|
3
|
+
export declare class Friend {
|
|
4
|
+
readonly ruleId: string;
|
|
5
|
+
id: string;
|
|
6
|
+
text: string;
|
|
7
|
+
textEn: string;
|
|
8
|
+
icon: string;
|
|
9
|
+
url: string;
|
|
10
|
+
game: string;
|
|
11
|
+
channel: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const FriendSchema: import("mongoose").Schema<Friend, import("mongoose").Model<Friend, any, any, any, Document<unknown, any, Friend, any, import("mongoose").DefaultSchemaOptions> & Friend & {
|
|
14
|
+
_id: import("mongoose").Types.ObjectId;
|
|
15
|
+
} & {
|
|
16
|
+
__v: number;
|
|
17
|
+
}, any, Friend>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Friend, Document<unknown, {}, Friend, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Friend & {
|
|
18
|
+
_id: import("mongoose").Types.ObjectId;
|
|
19
|
+
} & {
|
|
20
|
+
__v: number;
|
|
21
|
+
}, {
|
|
22
|
+
readonly ruleId?: import("mongoose").SchemaDefinitionProperty<string, Friend, Document<unknown, {}, Friend, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Friend & {
|
|
23
|
+
_id: import("mongoose").Types.ObjectId;
|
|
24
|
+
} & {
|
|
25
|
+
__v: number;
|
|
26
|
+
}>;
|
|
27
|
+
id?: import("mongoose").SchemaDefinitionProperty<string, Friend, Document<unknown, {}, Friend, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Friend & {
|
|
28
|
+
_id: import("mongoose").Types.ObjectId;
|
|
29
|
+
} & {
|
|
30
|
+
__v: number;
|
|
31
|
+
}>;
|
|
32
|
+
text?: import("mongoose").SchemaDefinitionProperty<string, Friend, Document<unknown, {}, Friend, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Friend & {
|
|
33
|
+
_id: import("mongoose").Types.ObjectId;
|
|
34
|
+
} & {
|
|
35
|
+
__v: number;
|
|
36
|
+
}>;
|
|
37
|
+
textEn?: import("mongoose").SchemaDefinitionProperty<string, Friend, Document<unknown, {}, Friend, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Friend & {
|
|
38
|
+
_id: import("mongoose").Types.ObjectId;
|
|
39
|
+
} & {
|
|
40
|
+
__v: number;
|
|
41
|
+
}>;
|
|
42
|
+
icon?: import("mongoose").SchemaDefinitionProperty<string, Friend, Document<unknown, {}, Friend, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Friend & {
|
|
43
|
+
_id: import("mongoose").Types.ObjectId;
|
|
44
|
+
} & {
|
|
45
|
+
__v: number;
|
|
46
|
+
}>;
|
|
47
|
+
url?: import("mongoose").SchemaDefinitionProperty<string, Friend, Document<unknown, {}, Friend, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Friend & {
|
|
48
|
+
_id: import("mongoose").Types.ObjectId;
|
|
49
|
+
} & {
|
|
50
|
+
__v: number;
|
|
51
|
+
}>;
|
|
52
|
+
game?: import("mongoose").SchemaDefinitionProperty<string, Friend, Document<unknown, {}, Friend, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Friend & {
|
|
53
|
+
_id: import("mongoose").Types.ObjectId;
|
|
54
|
+
} & {
|
|
55
|
+
__v: number;
|
|
56
|
+
}>;
|
|
57
|
+
channel?: import("mongoose").SchemaDefinitionProperty<string, Friend, Document<unknown, {}, Friend, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Friend & {
|
|
58
|
+
_id: import("mongoose").Types.ObjectId;
|
|
59
|
+
} & {
|
|
60
|
+
__v: number;
|
|
61
|
+
}>;
|
|
62
|
+
}, Friend>;
|
|
63
|
+
//# sourceMappingURL=friend.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"friend.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/friend.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEtD,MAAM,MAAM,cAAc,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAEtD,qBACa,MAAM;IAMf,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAGxB,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;IAGb,MAAM,EAAE,MAAM,CAAC;IAGf,IAAI,EAAE,MAAM,CAAC;IAIb,GAAG,EAAE,MAAM,CAAC;IAGZ,IAAI,EAAE,MAAM,CAAC;IAGb,OAAO,EAAE,MAAM,CAAC;CAGnB;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAAuC,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.FriendSchema = exports.Friend = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
let Friend = class Friend {
|
|
15
|
+
};
|
|
16
|
+
exports.Friend = Friend;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, mongoose_1.Virtual)({
|
|
19
|
+
get: function () {
|
|
20
|
+
return this._id.toString();
|
|
21
|
+
},
|
|
22
|
+
}),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], Friend.prototype, "ruleId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, mongoose_1.Prop)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], Friend.prototype, "id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, mongoose_1.Prop)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], Friend.prototype, "text", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, mongoose_1.Prop)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], Friend.prototype, "textEn", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, mongoose_1.Prop)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], Friend.prototype, "icon", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, mongoose_1.Prop)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], Friend.prototype, "url", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, mongoose_1.Prop)(),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], Friend.prototype, "game", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, mongoose_1.Prop)(),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], Friend.prototype, "channel", void 0);
|
|
53
|
+
exports.Friend = Friend = __decorate([
|
|
54
|
+
(0, mongoose_1.Schema)({ collection: 'friends' })
|
|
55
|
+
], Friend);
|
|
56
|
+
exports.FriendSchema = mongoose_1.SchemaFactory.createForClass(Friend);
|
|
57
|
+
//# sourceMappingURL=friend.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"friend.schema.js","sourceRoot":"","sources":["../../src/schemas/friend.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAwE;AAMjE,IAAM,MAAM,GAAZ,MAAM,MAAM;CA+BlB,CAAA;AA/BY,wBAAM;AAMN;IALR,IAAA,kBAAO,EAAC;QACL,GAAG,EAAE;YACD,OAAO,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;QAC/B,CAAC;KACJ,CAAC;;sCACsB;AAGxB;IADC,IAAA,eAAI,GAAE;;kCACI;AAGX;IADC,IAAA,eAAI,GAAE;;oCACM;AAGb;IADC,IAAA,eAAI,GAAE;;sCACQ;AAGf;IADC,IAAA,eAAI,GAAE;;oCACM;AAIb;IADC,IAAA,eAAI,GAAE;;mCACK;AAGZ;IADC,IAAA,eAAI,GAAE;;oCACM;AAGb;IADC,IAAA,eAAI,GAAE;;uCACS;iBA5BP,MAAM;IADlB,IAAA,iBAAM,EAAC,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC;GACrB,MAAM,CA+BlB;AAEY,QAAA,YAAY,GAAG,wBAAa,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC"}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -62,6 +62,8 @@ import { DailyBonus, DailyBonusSchema } from './schemas/daily_bonus.schema';
|
|
|
62
62
|
import type { DailyBonusDocument } from './schemas/daily_bonus.schema';
|
|
63
63
|
import { Rule, RuleSchema } from './schemas/rule.schema';
|
|
64
64
|
import type { RuleDocument } from './schemas/rule.schema';
|
|
65
|
+
import { Friend, FriendSchema } from './schemas/friend.schema';
|
|
66
|
+
import type { FriendDocument } from './schemas/friend.schema';
|
|
65
67
|
import { Welcome, WelcomeSchema } from './schemas/welcome.schema';
|
|
66
68
|
import type { WelcomeDocument } from './schemas/welcome.schema';
|
|
67
69
|
|
|
@@ -76,6 +78,7 @@ import {
|
|
|
76
78
|
ServersRepository,
|
|
77
79
|
UsersRepository,
|
|
78
80
|
MenuRepository,
|
|
81
|
+
FriendRepository,
|
|
79
82
|
WelcomeRepository,
|
|
80
83
|
PremiumRepository,
|
|
81
84
|
RuleRepository,
|
|
@@ -117,6 +120,7 @@ export type {
|
|
|
117
120
|
MenuDocument,
|
|
118
121
|
WelcomeDocument,
|
|
119
122
|
RuleDocument,
|
|
123
|
+
FriendDocument,
|
|
120
124
|
DailyBonusDocument,
|
|
121
125
|
GameResultDocument,
|
|
122
126
|
BalanceHistoryDocument,
|
|
@@ -182,6 +186,8 @@ export {
|
|
|
182
186
|
PremiumSchema,
|
|
183
187
|
Welcome,
|
|
184
188
|
WelcomeSchema,
|
|
189
|
+
Friend,
|
|
190
|
+
FriendSchema,
|
|
185
191
|
GameResult,
|
|
186
192
|
GameResultSchema,
|
|
187
193
|
BalanceHistory,
|
|
@@ -208,6 +214,7 @@ export {
|
|
|
208
214
|
DailyBonusRepository,
|
|
209
215
|
PremiumRepository,
|
|
210
216
|
RuleRepository,
|
|
217
|
+
FriendRepository,
|
|
211
218
|
WelcomeRepository,
|
|
212
219
|
SettingRepository,
|
|
213
220
|
RoomsRepository,
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Injectable } from '@nestjs/common';
|
|
2
|
+
import { InjectModel } from '@nestjs/mongoose';
|
|
3
|
+
import { Model } from 'mongoose';
|
|
4
|
+
|
|
5
|
+
import { Friend, FriendDocument } from '..';
|
|
6
|
+
import { getChannelRegExpFilter } from '../utils';
|
|
7
|
+
|
|
8
|
+
@Injectable()
|
|
9
|
+
export class FriendRepository {
|
|
10
|
+
constructor (@InjectModel(Friend.name) private friendModel: Model<FriendDocument>) {
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
async findFriend (channel: string, game: string): Promise<Array<Friend> | null> {
|
|
14
|
+
return this.friendModel
|
|
15
|
+
.find({
|
|
16
|
+
channels: getChannelRegExpFilter(channel),
|
|
17
|
+
})
|
|
18
|
+
.exec();
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -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 { RuleRepository } from './rule.repository';
|
|
12
|
+
import { FriendRepository } from './friend.repository';
|
|
12
13
|
import { SettingRepository } from './setting.repository';
|
|
13
14
|
import { PremiumRepository } from './premium.repository';
|
|
14
15
|
import { WelcomeRepository } from './welcome.repository';
|
|
@@ -32,6 +33,7 @@ export {
|
|
|
32
33
|
UsersRepository,
|
|
33
34
|
MenuRepository,
|
|
34
35
|
RuleRepository,
|
|
36
|
+
FriendRepository,
|
|
35
37
|
SettingRepository,
|
|
36
38
|
PremiumRepository,
|
|
37
39
|
WelcomeRepository,
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Prop, Schema, SchemaFactory, Virtual } from '@nestjs/mongoose';
|
|
2
|
+
import { Document, HydratedDocument } from 'mongoose';
|
|
3
|
+
|
|
4
|
+
export type FriendDocument = HydratedDocument<Friend>;
|
|
5
|
+
|
|
6
|
+
@Schema({ collection: 'friends' })
|
|
7
|
+
export class Friend {
|
|
8
|
+
@Virtual({
|
|
9
|
+
get: function (this: Document) {
|
|
10
|
+
return this._id.toString();
|
|
11
|
+
},
|
|
12
|
+
})
|
|
13
|
+
readonly ruleId: string;
|
|
14
|
+
|
|
15
|
+
@Prop()
|
|
16
|
+
id: string;
|
|
17
|
+
|
|
18
|
+
@Prop()
|
|
19
|
+
text: string;
|
|
20
|
+
|
|
21
|
+
@Prop()
|
|
22
|
+
textEn: string;
|
|
23
|
+
|
|
24
|
+
@Prop()
|
|
25
|
+
icon: string;
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
@Prop()
|
|
29
|
+
url: string;
|
|
30
|
+
|
|
31
|
+
@Prop()
|
|
32
|
+
game: string;
|
|
33
|
+
|
|
34
|
+
@Prop()
|
|
35
|
+
channel: string;
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export const FriendSchema = SchemaFactory.createForClass(Friend);
|