jp.db.schemas 2.0.25 → 2.0.27
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/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/repositories/premium.repository.d.ts +8 -0
- package/dist/repositories/premium.repository.d.ts.map +1 -0
- package/dist/repositories/premium.repository.js +39 -0
- package/dist/repositories/premium.repository.js.map +1 -0
- package/dist/schemas/daily_bonus.schema.d.ts +12 -0
- package/dist/schemas/daily_bonus.schema.d.ts.map +1 -1
- package/dist/schemas/daily_bonus.schema.js +8 -0
- package/dist/schemas/daily_bonus.schema.js.map +1 -1
- package/dist/schemas/premium.schema.d.ts +75 -0
- package/dist/schemas/premium.schema.d.ts.map +1 -0
- package/dist/schemas/premium.schema.js +65 -0
- package/dist/schemas/premium.schema.js.map +1 -0
- package/package.json +1 -1
- package/src/index.ts +7 -0
- package/src/repositories/index.ts +2 -0
- package/src/repositories/premium.repository.ts +20 -0
- package/src/schemas/daily_bonus.schema.ts +6 -0
- package/src/schemas/premium.schema.ts +46 -0
package/dist/index.d.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 { Premium, PremiumSchema } from './schemas/premium.schema';
|
|
48
|
+
import type { PremiumDocument } from './schemas/premium.schema';
|
|
47
49
|
import { Menu, MenuSchema } from './schemas/menu.schema';
|
|
48
50
|
import type { MenuDocument } from './schemas/menu.schema';
|
|
49
51
|
import { GameResult, GameResultSchema } from './schemas/game_result.schema';
|
|
@@ -62,8 +64,8 @@ import { Rule, RuleSchema } from './schemas/rule.schema';
|
|
|
62
64
|
import type { RuleDocument } from './schemas/rule.schema';
|
|
63
65
|
import { Welcome, WelcomeSchema } from './schemas/welcome.schema';
|
|
64
66
|
import type { WelcomeDocument } from './schemas/welcome.schema';
|
|
65
|
-
import { AdminRepository, ArticleRepository, BannersRepository, ComplainsRepository, NotificationRepository, ProductsRepository, ScheduledTournamentsRepository, ServersRepository, UsersRepository, MenuRepository, WelcomeRepository, RuleRepository, DailyBonusRepository, SettingRepository, RoomsRepository, GameResultRepository, BalanceHistoryRepository, SimpleRoomsRepository, TournamentOneTableRoomsRepository, TournamentManyTablesRoomsRepository } from './repositories';
|
|
66
|
-
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, WelcomeDocument, RuleDocument, DailyBonusDocument, GameResultDocument, BalanceHistoryDocument, SimpleRoomDocument, TournamentOneTableRoomDocument, TournamentManyTablesRoomDocument, };
|
|
67
|
-
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, Welcome, WelcomeSchema, GameResult, GameResultSchema, BalanceHistory, BalanceHistorySchema, SimpleRoom, SimpleRoomSchema, TournamentOneTableRoom, TournamentOneTableRoomSchema, TournamentManyTablesRoom, TournamentManyTablesRoomSchema, };
|
|
68
|
-
export { AdminRepository, ArticleRepository, BannersRepository, ComplainsRepository, NotificationRepository, ProductsRepository, ScheduledTournamentsRepository, ServersRepository, UsersRepository, MenuRepository, DailyBonusRepository, RuleRepository, WelcomeRepository, SettingRepository, RoomsRepository, GameResultRepository, BalanceHistoryRepository, SimpleRoomsRepository, TournamentOneTableRoomsRepository, TournamentManyTablesRoomsRepository, };
|
|
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
71
|
//# 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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iB,EACjB,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,iBAAiB,EACjB,cAAc,EACd,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.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.RuleSchema = exports.Rule = 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;
|
|
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 premium_schema_1 = require("./schemas/premium.schema");
|
|
75
|
+
Object.defineProperty(exports, "Premium", { enumerable: true, get: function () { return premium_schema_1.Premium; } });
|
|
76
|
+
Object.defineProperty(exports, "PremiumSchema", { enumerable: true, get: function () { return premium_schema_1.PremiumSchema; } });
|
|
74
77
|
const menu_schema_1 = require("./schemas/menu.schema");
|
|
75
78
|
Object.defineProperty(exports, "Menu", { enumerable: true, get: function () { return menu_schema_1.Menu; } });
|
|
76
79
|
Object.defineProperty(exports, "MenuSchema", { enumerable: true, get: function () { return menu_schema_1.MenuSchema; } });
|
|
@@ -110,6 +113,7 @@ Object.defineProperty(exports, "ServersRepository", { enumerable: true, get: fun
|
|
|
110
113
|
Object.defineProperty(exports, "UsersRepository", { enumerable: true, get: function () { return repositories_1.UsersRepository; } });
|
|
111
114
|
Object.defineProperty(exports, "MenuRepository", { enumerable: true, get: function () { return repositories_1.MenuRepository; } });
|
|
112
115
|
Object.defineProperty(exports, "WelcomeRepository", { enumerable: true, get: function () { return repositories_1.WelcomeRepository; } });
|
|
116
|
+
Object.defineProperty(exports, "PremiumRepository", { enumerable: true, get: function () { return repositories_1.PremiumRepository; } });
|
|
113
117
|
Object.defineProperty(exports, "RuleRepository", { enumerable: true, get: function () { return repositories_1.RuleRepository; } });
|
|
114
118
|
Object.defineProperty(exports, "DailyBonusRepository", { enumerable: true, get: function () { return repositories_1.DailyBonusRepository; } });
|
|
115
119
|
Object.defineProperty(exports, "SettingRepository", { enumerable: true, get: function () { return repositories_1.SettingRepository; } });
|
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;AAgIrD,qFAhIK,kBAAI,OAgIL;AACJ,2FAjIW,wBAAU,OAiIX;AA/Hd,6DAAgE;AAgI5D,uFAhIK,uBAAM,OAgIL;AACN,6FAjIa,6BAAY,OA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;AACjB,kGAjIA,gCAAiB,OAiIA;AACjB,oGAjIA,kCAAmB,OAiIA;AACnB,uGAjIA,qCAAsB,OAiIA;AACtB,mGAjIA,iCAAkB,OAiIA;AAClB,+GAjIA,6CAA8B,OAiIA;AAC9B,kGAjIA,gCAAiB,OAiIA;AACjB,gGAjIA,8BAAe,OAiIA;AACf,+FAjIA,6BAAc,OAiIA;AAId,kGApIA,gCAAiB,OAoIA;AAFjB,kGAjIA,gCAAiB,OAiIA;AACjB,+FAjIA,6BAAc,OAiIA;AAFd,qGA9HA,mCAAoB,OA8HA;AAIpB,kGAjIA,gCAAiB,OAiIA;AACjB,gGAjIA,8BAAe,OAiIA;AACf,qGAjIA,mCAAoB,OAiIA;AACpB,yGAjIA,uCAAwB,OAiIA;AACxB,sGAjIA,oCAAqB,OAiIA;AACrB,kHAjIA,gDAAiC,OAiIA;AACjC,oHAjIA,kDAAmC,OAiIA"}
|
|
@@ -10,6 +10,7 @@ import { UsersRepository } from './users.repository';
|
|
|
10
10
|
import { MenuRepository } from './menu.repository';
|
|
11
11
|
import { RuleRepository } from './rule.repository';
|
|
12
12
|
import { SettingRepository } from './setting.repository';
|
|
13
|
+
import { PremiumRepository } from './premium.repository';
|
|
13
14
|
import { WelcomeRepository } from './welcome.repository';
|
|
14
15
|
import { DailyBonusRepository } from './daily-bonus.repository';
|
|
15
16
|
import { RoomsRepository } from './rooms.repository';
|
|
@@ -18,5 +19,5 @@ import { BalanceHistoryRepository } from './balance-history.repository';
|
|
|
18
19
|
import { SimpleRoomsRepository } from './simple-rooms.repository';
|
|
19
20
|
import { TournamentOneTableRoomsRepository } from './tournament-one-table-rooms.repository';
|
|
20
21
|
import { TournamentManyTablesRoomsRepository } from './tournament-many-tables-rooms.repository';
|
|
21
|
-
export { AdminRepository, ArticleRepository, BannersRepository, ComplainsRepository, NotificationRepository, ProductsRepository, ScheduledTournamentsRepository, ServersRepository, UsersRepository, MenuRepository, RuleRepository, SettingRepository, WelcomeRepository, DailyBonusRepository, RoomsRepository, GameResultRepository, BalanceHistoryRepository, SimpleRoomsRepository, TournamentOneTableRoomsRepository, TournamentManyTablesRoomsRepository, };
|
|
22
|
+
export { AdminRepository, ArticleRepository, BannersRepository, ComplainsRepository, NotificationRepository, ProductsRepository, ScheduledTournamentsRepository, ServersRepository, UsersRepository, MenuRepository, RuleRepository, SettingRepository, PremiumRepository, WelcomeRepository, DailyBonusRepository, RoomsRepository, GameResultRepository, BalanceHistoryRepository, SimpleRoomsRepository, TournamentOneTableRoomsRepository, TournamentManyTablesRoomsRepository, };
|
|
22
23
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/repositories/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,8BAA8B,EAAE,MAAM,oCAAoC,CAAC;AACpF,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE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AAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,iCAAiC,EAAE,MAAM,yCAAyC,CAAC;AAC5F,OAAO,EAAE,mCAAmC,EAAE,MAAM,2CAA2C,CAAC;AAEhG,OAAO,EACH,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,EACtB,kBAAkB,EAClB,8BAA8B,EAC9B,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,cAAc,EACd,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.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.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");
|
|
@@ -25,6 +25,8 @@ const rule_repository_1 = require("./rule.repository");
|
|
|
25
25
|
Object.defineProperty(exports, "RuleRepository", { enumerable: true, get: function () { return rule_repository_1.RuleRepository; } });
|
|
26
26
|
const setting_repository_1 = require("./setting.repository");
|
|
27
27
|
Object.defineProperty(exports, "SettingRepository", { enumerable: true, get: function () { return setting_repository_1.SettingRepository; } });
|
|
28
|
+
const premium_repository_1 = require("./premium.repository");
|
|
29
|
+
Object.defineProperty(exports, "PremiumRepository", { enumerable: true, get: function () { return premium_repository_1.PremiumRepository; } });
|
|
28
30
|
const welcome_repository_1 = require("./welcome.repository");
|
|
29
31
|
Object.defineProperty(exports, "WelcomeRepository", { enumerable: true, get: function () { return welcome_repository_1.WelcomeRepository; } });
|
|
30
32
|
const daily_bonus_repository_1 = require("./daily-bonus.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;AAuBjD,gGAvBK,kCAAe,OAuBL;AAtBnB,6DAAyD;AAuBrD,kGAvBK,sCAAiB,OAuBL;AAtBrB,6DAAyD;AAuBrD,kGAvBK,sCAAiB,OAuBL;AAtBrB,iEAA6D;AAuBzD,oGAvBK,0CAAmB,OAuBL;AAtBvB,uEAAmE;AAuB/D,uGAvBK,gDAAsB,OAuBL;AAtB1B,+DAA2D;AAuBvD,mGAvBK,wCAAkB,OAuBL;AAtBtB,yFAAoF;AAuBhF,+GAvBK,iEAA8B,OAuBL;AAtBlC,6DAAyD;AAuBrD,kGAvBK,sCAAiB,OAuBL;AAtBrB,yDAAqD;AAuBjD,gGAvBK,kCAAe,OAuBL;AAtBnB,uDAAmD;AAuB/C,+FAvBK,gCAAc,OAuBL;AAtBlB,uDAAmD;AAuB/C,+FAvBK,gCAAc,OAuBL;AAtBlB,6DAAyD;AAuBrD,kGAvBK,sCAAiB,OAuBL;AAtBrB,6DAAyD;AAuBrD,kGAvBK,sCAAiB,OAuBL;AAtBrB,6DAAyD;AAuBrD,kGAvBK,sCAAiB,OAuBL;AAtBrB,qEAAgE;AAuB5D,qGAvBK,6CAAoB,OAuBL;AAtBxB,yDAAqD;AAuBjD,gGAvBK,kCAAe,OAuBL;AAtBnB,qEAAgE;AAuB5D,qGAvBK,6CAAoB,OAuBL;AAtBxB,6EAAwE;AAuBpE,yGAvBK,qDAAwB,OAuBL;AAtB5B,uEAAkE;AAuB9D,sGAvBK,+CAAqB,OAuBL;AAtBzB,mGAA4F;AAuBxF,kHAvBK,yEAAiC,OAuBL;AAtBrC,uGAAgG;AAuB5F,oHAvBK,6EAAmC,OAuBL"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Model } from 'mongoose';
|
|
2
|
+
import { Premium, PremiumDocument } from '..';
|
|
3
|
+
export declare class PremiumRepository {
|
|
4
|
+
private premiumModel;
|
|
5
|
+
constructor(premiumModel: Model<PremiumDocument>);
|
|
6
|
+
findPremium(channel: string, game: string): Promise<Array<Premium> | null>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=premium.repository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"premium.repository.d.ts","sourceRoot":"","sources":["../../src/repositories/premium.repository.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,IAAI,CAAC;AAG9C,qBACa,iBAAiB;IACc,OAAO,CAAC,YAAY;gBAAZ,YAAY,EAAE,KAAK,CAAC,eAAe,CAAC;IAG9E,WAAW,CAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;CAOpF"}
|
|
@@ -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.PremiumRepository = 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 PremiumRepository = class PremiumRepository {
|
|
22
|
+
constructor(premiumModel) {
|
|
23
|
+
this.premiumModel = premiumModel;
|
|
24
|
+
}
|
|
25
|
+
async findPremium(channel, game) {
|
|
26
|
+
return this.premiumModel
|
|
27
|
+
.find({
|
|
28
|
+
channels: (0, utils_1.getChannelRegExpFilter)(channel),
|
|
29
|
+
})
|
|
30
|
+
.exec();
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
exports.PremiumRepository = PremiumRepository;
|
|
34
|
+
exports.PremiumRepository = PremiumRepository = __decorate([
|
|
35
|
+
(0, common_1.Injectable)(),
|
|
36
|
+
__param(0, (0, mongoose_1.InjectModel)(__1.Premium.name)),
|
|
37
|
+
__metadata("design:paramtypes", [mongoose_2.Model])
|
|
38
|
+
], PremiumRepository);
|
|
39
|
+
//# sourceMappingURL=premium.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"premium.repository.js","sourceRoot":"","sources":["../../src/repositories/premium.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,+CAA+C;AAC/C,uCAAiC;AAEjC,0BAA8C;AAC9C,oCAAkD;AAG3C,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAC1B,YAAgD,YAAoC;QAApC,iBAAY,GAAZ,YAAY,CAAwB;IACpF,CAAC;IAED,KAAK,CAAC,WAAW,CAAE,OAAe,EAAE,IAAY;QAC5C,OAAO,IAAI,CAAC,YAAY;aACnB,IAAI,CAAC;YACF,QAAQ,EAAE,IAAA,8BAAsB,EAAC,OAAO,CAAC;SAC5C,CAAC;aACD,IAAI,EAAE,CAAC;IAChB,CAAC;CACJ,CAAA;AAXY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;IAEK,WAAA,IAAA,sBAAW,EAAC,WAAO,CAAC,IAAI,CAAC,CAAA;qCAAuB,gBAAK;GAD1D,iBAAiB,CAW7B"}
|
|
@@ -11,6 +11,8 @@ export declare class DailyBonus {
|
|
|
11
11
|
active: boolean;
|
|
12
12
|
url: string;
|
|
13
13
|
position: number;
|
|
14
|
+
amount: number;
|
|
15
|
+
premiumAmount: number;
|
|
14
16
|
game: string;
|
|
15
17
|
channel: string;
|
|
16
18
|
}
|
|
@@ -73,6 +75,16 @@ export declare const DailyBonusSchema: import("mongoose").Schema<DailyBonus, imp
|
|
|
73
75
|
} & {
|
|
74
76
|
__v: number;
|
|
75
77
|
}>;
|
|
78
|
+
amount?: import("mongoose").SchemaDefinitionProperty<number, DailyBonus, Document<unknown, {}, DailyBonus, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & DailyBonus & {
|
|
79
|
+
_id: import("mongoose").Types.ObjectId;
|
|
80
|
+
} & {
|
|
81
|
+
__v: number;
|
|
82
|
+
}>;
|
|
83
|
+
premiumAmount?: import("mongoose").SchemaDefinitionProperty<number, DailyBonus, Document<unknown, {}, DailyBonus, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & DailyBonus & {
|
|
84
|
+
_id: import("mongoose").Types.ObjectId;
|
|
85
|
+
} & {
|
|
86
|
+
__v: number;
|
|
87
|
+
}>;
|
|
76
88
|
game?: import("mongoose").SchemaDefinitionProperty<string, DailyBonus, Document<unknown, {}, DailyBonus, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & DailyBonus & {
|
|
77
89
|
_id: import("mongoose").Types.ObjectId;
|
|
78
90
|
} & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daily_bonus.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/daily_bonus.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,gBA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;AAED,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAA2C,CAAC"}
|
|
@@ -58,6 +58,14 @@ __decorate([
|
|
|
58
58
|
(0, mongoose_1.Prop)(),
|
|
59
59
|
__metadata("design:type", Number)
|
|
60
60
|
], DailyBonus.prototype, "position", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, mongoose_1.Prop)(),
|
|
63
|
+
__metadata("design:type", Number)
|
|
64
|
+
], DailyBonus.prototype, "amount", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, mongoose_1.Prop)(),
|
|
67
|
+
__metadata("design:type", Number)
|
|
68
|
+
], DailyBonus.prototype, "premiumAmount", void 0);
|
|
61
69
|
__decorate([
|
|
62
70
|
(0, mongoose_1.Prop)(),
|
|
63
71
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daily_bonus.schema.js","sourceRoot":"","sources":["../../src/schemas/daily_bonus.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAwE;AAMjE,IAAM,UAAU,GAAhB,MAAM,UAAU;
|
|
1
|
+
{"version":3,"file":"daily_bonus.schema.js","sourceRoot":"","sources":["../../src/schemas/daily_bonus.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAwE;AAMjE,IAAM,UAAU,GAAhB,MAAM,UAAU;CAgDtB,CAAA;AAhDY,gCAAU;AAMV;IALR,IAAA,kBAAO,EAAC;QACL,GAAG,EAAE;YACD,OAAO,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;QAC/B,CAAC;KACJ,CAAC;;gDAC4B;AAG9B;IADC,IAAA,eAAI,GAAE;;sCACI;AAGX;IADC,IAAA,eAAI,GAAE;;yCACO;AAGd;IADC,IAAA,eAAI,GAAE;;2CACS;AAGhB;IADC,IAAA,eAAI,GAAE;;4CACU;AAGjB;IADC,IAAA,eAAI,GAAE;;8CACY;AAGnB;IADC,IAAA,eAAI,GAAE;;wCACM;AAGb;IADC,IAAA,eAAI,GAAE;;0CACS;AAGhB;IADC,IAAA,eAAI,GAAE;;uCACK;AAGZ;IADC,IAAA,eAAI,GAAE;;4CACU;AAGjB;IADC,IAAA,eAAI,GAAE;;0CACQ;AAGf;IADC,IAAA,eAAI,GAAE;;iDACe;AAGtB;IADC,IAAA,eAAI,GAAE;;wCACM;AAGb;IADC,IAAA,eAAI,GAAE;;2CACS;qBA7CP,UAAU;IADtB,IAAA,iBAAM,EAAC,EAAE,UAAU,EAAE,eAAe,EAAE,CAAC;GAC3B,UAAU,CAgDtB;AAEY,QAAA,gBAAgB,GAAG,wBAAa,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { Document, HydratedDocument } from 'mongoose';
|
|
2
|
+
export type PremiumDocument = HydratedDocument<Premium>;
|
|
3
|
+
export declare class Premium {
|
|
4
|
+
readonly premiumId: string;
|
|
5
|
+
id: string;
|
|
6
|
+
description: string;
|
|
7
|
+
descriptionEn: string;
|
|
8
|
+
text: string;
|
|
9
|
+
textEn: string;
|
|
10
|
+
icon: string;
|
|
11
|
+
url: string;
|
|
12
|
+
game: string;
|
|
13
|
+
channel: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const PremiumSchema: import("mongoose").Schema<Premium, import("mongoose").Model<Premium, any, any, any, Document<unknown, any, Premium, any, import("mongoose").DefaultSchemaOptions> & Premium & {
|
|
16
|
+
_id: import("mongoose").Types.ObjectId;
|
|
17
|
+
} & {
|
|
18
|
+
__v: number;
|
|
19
|
+
}, any, Premium>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Premium, Document<unknown, {}, Premium, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Premium & {
|
|
20
|
+
_id: import("mongoose").Types.ObjectId;
|
|
21
|
+
} & {
|
|
22
|
+
__v: number;
|
|
23
|
+
}, {
|
|
24
|
+
readonly premiumId?: import("mongoose").SchemaDefinitionProperty<string, Premium, Document<unknown, {}, Premium, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Premium & {
|
|
25
|
+
_id: import("mongoose").Types.ObjectId;
|
|
26
|
+
} & {
|
|
27
|
+
__v: number;
|
|
28
|
+
}>;
|
|
29
|
+
id?: import("mongoose").SchemaDefinitionProperty<string, Premium, Document<unknown, {}, Premium, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Premium & {
|
|
30
|
+
_id: import("mongoose").Types.ObjectId;
|
|
31
|
+
} & {
|
|
32
|
+
__v: number;
|
|
33
|
+
}>;
|
|
34
|
+
description?: import("mongoose").SchemaDefinitionProperty<string, Premium, Document<unknown, {}, Premium, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Premium & {
|
|
35
|
+
_id: import("mongoose").Types.ObjectId;
|
|
36
|
+
} & {
|
|
37
|
+
__v: number;
|
|
38
|
+
}>;
|
|
39
|
+
descriptionEn?: import("mongoose").SchemaDefinitionProperty<string, Premium, Document<unknown, {}, Premium, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Premium & {
|
|
40
|
+
_id: import("mongoose").Types.ObjectId;
|
|
41
|
+
} & {
|
|
42
|
+
__v: number;
|
|
43
|
+
}>;
|
|
44
|
+
text?: import("mongoose").SchemaDefinitionProperty<string, Premium, Document<unknown, {}, Premium, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Premium & {
|
|
45
|
+
_id: import("mongoose").Types.ObjectId;
|
|
46
|
+
} & {
|
|
47
|
+
__v: number;
|
|
48
|
+
}>;
|
|
49
|
+
textEn?: import("mongoose").SchemaDefinitionProperty<string, Premium, Document<unknown, {}, Premium, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Premium & {
|
|
50
|
+
_id: import("mongoose").Types.ObjectId;
|
|
51
|
+
} & {
|
|
52
|
+
__v: number;
|
|
53
|
+
}>;
|
|
54
|
+
icon?: import("mongoose").SchemaDefinitionProperty<string, Premium, Document<unknown, {}, Premium, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Premium & {
|
|
55
|
+
_id: import("mongoose").Types.ObjectId;
|
|
56
|
+
} & {
|
|
57
|
+
__v: number;
|
|
58
|
+
}>;
|
|
59
|
+
url?: import("mongoose").SchemaDefinitionProperty<string, Premium, Document<unknown, {}, Premium, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Premium & {
|
|
60
|
+
_id: import("mongoose").Types.ObjectId;
|
|
61
|
+
} & {
|
|
62
|
+
__v: number;
|
|
63
|
+
}>;
|
|
64
|
+
game?: import("mongoose").SchemaDefinitionProperty<string, Premium, Document<unknown, {}, Premium, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Premium & {
|
|
65
|
+
_id: import("mongoose").Types.ObjectId;
|
|
66
|
+
} & {
|
|
67
|
+
__v: number;
|
|
68
|
+
}>;
|
|
69
|
+
channel?: import("mongoose").SchemaDefinitionProperty<string, Premium, Document<unknown, {}, Premium, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Premium & {
|
|
70
|
+
_id: import("mongoose").Types.ObjectId;
|
|
71
|
+
} & {
|
|
72
|
+
__v: number;
|
|
73
|
+
}>;
|
|
74
|
+
}, Premium>;
|
|
75
|
+
//# sourceMappingURL=premium.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"premium.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/premium.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEtD,MAAM,MAAM,eAAe,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;AAExD,qBACa,OAAO;IAMhB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAG3B,EAAE,EAAE,MAAM,CAAC;IAGX,WAAW,EAAE,MAAM,CAAC;IAGpB,aAAa,EAAE,MAAM,CAAC;IAGtB,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,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAAwC,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
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.PremiumSchema = exports.Premium = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
let Premium = class Premium {
|
|
15
|
+
};
|
|
16
|
+
exports.Premium = Premium;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, mongoose_1.Virtual)({
|
|
19
|
+
get: function () {
|
|
20
|
+
return this._id.toString();
|
|
21
|
+
},
|
|
22
|
+
}),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], Premium.prototype, "premiumId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, mongoose_1.Prop)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], Premium.prototype, "id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, mongoose_1.Prop)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], Premium.prototype, "description", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, mongoose_1.Prop)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], Premium.prototype, "descriptionEn", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, mongoose_1.Prop)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], Premium.prototype, "text", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, mongoose_1.Prop)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], Premium.prototype, "textEn", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, mongoose_1.Prop)(),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], Premium.prototype, "icon", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, mongoose_1.Prop)(),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], Premium.prototype, "url", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, mongoose_1.Prop)(),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], Premium.prototype, "game", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, mongoose_1.Prop)(),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], Premium.prototype, "channel", void 0);
|
|
61
|
+
exports.Premium = Premium = __decorate([
|
|
62
|
+
(0, mongoose_1.Schema)({ collection: 'premiums' })
|
|
63
|
+
], Premium);
|
|
64
|
+
exports.PremiumSchema = mongoose_1.SchemaFactory.createForClass(Premium);
|
|
65
|
+
//# sourceMappingURL=premium.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"premium.schema.js","sourceRoot":"","sources":["../../src/schemas/premium.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAwE;AAMjE,IAAM,OAAO,GAAb,MAAM,OAAO;CAqCnB,CAAA;AArCY,0BAAO;AAMP;IALR,IAAA,kBAAO,EAAC;QACL,GAAG,EAAE;YACD,OAAO,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;QAC/B,CAAC;KACJ,CAAC;;0CACyB;AAG3B;IADC,IAAA,eAAI,GAAE;;mCACI;AAGX;IADC,IAAA,eAAI,GAAE;;4CACa;AAGpB;IADC,IAAA,eAAI,GAAE;;8CACe;AAGtB;IADC,IAAA,eAAI,GAAE;;qCACM;AAGb;IADC,IAAA,eAAI,GAAE;;uCACQ;AAGf;IADC,IAAA,eAAI,GAAE;;qCACM;AAIb;IADC,IAAA,eAAI,GAAE;;oCACK;AAGZ;IADC,IAAA,eAAI,GAAE;;qCACM;AAGb;IADC,IAAA,eAAI,GAAE;;wCACS;kBAlCP,OAAO;IADnB,IAAA,iBAAM,EAAC,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC;GACtB,OAAO,CAqCnB;AAEY,QAAA,aAAa,GAAG,wBAAa,CAAC,cAAc,CAAC,OAAO,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 { Premium, PremiumSchema } from './schemas/premium.schema';
|
|
48
|
+
import type { PremiumDocument } from './schemas/premium.schema';
|
|
47
49
|
import { Menu, MenuSchema } from './schemas/menu.schema';
|
|
48
50
|
import type { MenuDocument } from './schemas/menu.schema';
|
|
49
51
|
import { GameResult, GameResultSchema } from './schemas/game_result.schema';
|
|
@@ -75,6 +77,7 @@ import {
|
|
|
75
77
|
UsersRepository,
|
|
76
78
|
MenuRepository,
|
|
77
79
|
WelcomeRepository,
|
|
80
|
+
PremiumRepository,
|
|
78
81
|
RuleRepository,
|
|
79
82
|
DailyBonusRepository,
|
|
80
83
|
SettingRepository,
|
|
@@ -110,6 +113,7 @@ export type {
|
|
|
110
113
|
PurchaseChannelDocument,
|
|
111
114
|
RatingDocument,
|
|
112
115
|
SettingDocument,
|
|
116
|
+
PremiumDocument,
|
|
113
117
|
MenuDocument,
|
|
114
118
|
WelcomeDocument,
|
|
115
119
|
RuleDocument,
|
|
@@ -174,6 +178,8 @@ export {
|
|
|
174
178
|
DailyBonusSchema,
|
|
175
179
|
Rule,
|
|
176
180
|
RuleSchema,
|
|
181
|
+
Premium,
|
|
182
|
+
PremiumSchema,
|
|
177
183
|
Welcome,
|
|
178
184
|
WelcomeSchema,
|
|
179
185
|
GameResult,
|
|
@@ -200,6 +206,7 @@ export {
|
|
|
200
206
|
UsersRepository,
|
|
201
207
|
MenuRepository,
|
|
202
208
|
DailyBonusRepository,
|
|
209
|
+
PremiumRepository,
|
|
203
210
|
RuleRepository,
|
|
204
211
|
WelcomeRepository,
|
|
205
212
|
SettingRepository,
|
|
@@ -10,6 +10,7 @@ import { UsersRepository } from './users.repository';
|
|
|
10
10
|
import { MenuRepository } from './menu.repository';
|
|
11
11
|
import { RuleRepository } from './rule.repository';
|
|
12
12
|
import { SettingRepository } from './setting.repository';
|
|
13
|
+
import { PremiumRepository } from './premium.repository';
|
|
13
14
|
import { WelcomeRepository } from './welcome.repository';
|
|
14
15
|
import { DailyBonusRepository } from './daily-bonus.repository';
|
|
15
16
|
import { RoomsRepository } from './rooms.repository';
|
|
@@ -32,6 +33,7 @@ export {
|
|
|
32
33
|
MenuRepository,
|
|
33
34
|
RuleRepository,
|
|
34
35
|
SettingRepository,
|
|
36
|
+
PremiumRepository,
|
|
35
37
|
WelcomeRepository,
|
|
36
38
|
DailyBonusRepository,
|
|
37
39
|
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 { Premium, PremiumDocument } from '..';
|
|
6
|
+
import { getChannelRegExpFilter } from '../utils';
|
|
7
|
+
|
|
8
|
+
@Injectable()
|
|
9
|
+
export class PremiumRepository {
|
|
10
|
+
constructor (@InjectModel(Premium.name) private premiumModel: Model<PremiumDocument>) {
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
async findPremium (channel: string, game: string): Promise<Array<Premium> | null> {
|
|
14
|
+
return this.premiumModel
|
|
15
|
+
.find({
|
|
16
|
+
channels: getChannelRegExpFilter(channel),
|
|
17
|
+
})
|
|
18
|
+
.exec();
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Prop, Schema, SchemaFactory, Virtual } from '@nestjs/mongoose';
|
|
2
|
+
import { Document, HydratedDocument } from 'mongoose';
|
|
3
|
+
|
|
4
|
+
export type PremiumDocument = HydratedDocument<Premium>;
|
|
5
|
+
|
|
6
|
+
@Schema({ collection: 'premiums' })
|
|
7
|
+
export class Premium {
|
|
8
|
+
@Virtual({
|
|
9
|
+
get: function (this: Document) {
|
|
10
|
+
return this._id.toString();
|
|
11
|
+
},
|
|
12
|
+
})
|
|
13
|
+
readonly premiumId: string;
|
|
14
|
+
|
|
15
|
+
@Prop()
|
|
16
|
+
id: string;
|
|
17
|
+
|
|
18
|
+
@Prop()
|
|
19
|
+
description: string;
|
|
20
|
+
|
|
21
|
+
@Prop()
|
|
22
|
+
descriptionEn: string;
|
|
23
|
+
|
|
24
|
+
@Prop()
|
|
25
|
+
text: string;
|
|
26
|
+
|
|
27
|
+
@Prop()
|
|
28
|
+
textEn: string;
|
|
29
|
+
|
|
30
|
+
@Prop()
|
|
31
|
+
icon: string;
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
@Prop()
|
|
35
|
+
url: string;
|
|
36
|
+
|
|
37
|
+
@Prop()
|
|
38
|
+
game: string;
|
|
39
|
+
|
|
40
|
+
@Prop()
|
|
41
|
+
channel: string;
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export const PremiumSchema = SchemaFactory.createForClass(Premium);
|