jp.db.schemas 1.0.17 → 1.0.19
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 +18 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +33 -1
- package/dist/index.js.map +1 -1
- package/dist/repositories/admin.repository.d.ts +9 -0
- package/dist/repositories/admin.repository.d.ts.map +1 -0
- package/dist/repositories/admin.repository.js +41 -0
- package/dist/repositories/admin.repository.js.map +1 -0
- package/dist/repositories/article.repository.d.ts +10 -0
- package/dist/repositories/article.repository.d.ts.map +1 -0
- package/dist/repositories/article.repository.js +50 -0
- package/dist/repositories/article.repository.js.map +1 -0
- package/dist/repositories/banners.repository.d.ts +15 -0
- package/dist/repositories/banners.repository.d.ts.map +1 -0
- package/dist/repositories/banners.repository.js +60 -0
- package/dist/repositories/banners.repository.js.map +1 -0
- package/dist/repositories/complains.repository.d.ts +11 -0
- package/dist/repositories/complains.repository.d.ts.map +1 -0
- package/dist/repositories/complains.repository.js +44 -0
- package/dist/repositories/complains.repository.js.map +1 -0
- package/dist/repositories/index.d.ts +11 -0
- package/dist/repositories/index.d.ts.map +1 -0
- package/dist/repositories/index.js +22 -0
- package/dist/repositories/index.js.map +1 -0
- package/dist/repositories/notification.repository.d.ts +15 -0
- package/dist/repositories/notification.repository.d.ts.map +1 -0
- package/dist/repositories/notification.repository.js +60 -0
- package/dist/repositories/notification.repository.js.map +1 -0
- package/dist/repositories/products.repository.d.ts +9 -0
- package/dist/repositories/products.repository.d.ts.map +1 -0
- package/dist/repositories/products.repository.js +46 -0
- package/dist/repositories/products.repository.js.map +1 -0
- package/dist/repositories/scheduled-tournaments.repository.d.ts +11 -0
- package/dist/repositories/scheduled-tournaments.repository.d.ts.map +1 -0
- package/dist/repositories/scheduled-tournaments.repository.js +44 -0
- package/dist/repositories/scheduled-tournaments.repository.js.map +1 -0
- package/dist/repositories/servers.repository.d.ts +8 -0
- package/dist/repositories/servers.repository.d.ts.map +1 -0
- package/dist/repositories/servers.repository.js +36 -0
- package/dist/repositories/servers.repository.js.map +1 -0
- package/dist/repositories/users.repository.d.ts +15 -0
- package/dist/repositories/users.repository.d.ts.map +1 -0
- package/dist/repositories/users.repository.js +70 -0
- package/dist/repositories/users.repository.js.map +1 -0
- package/dist/schemas/achievement.schema.d.ts +23 -0
- package/dist/schemas/achievement.schema.d.ts.map +1 -0
- package/dist/schemas/achievement.schema.js +61 -0
- package/dist/schemas/achievement.schema.js.map +1 -0
- package/dist/schemas/banner.schema.d.ts +1 -0
- package/dist/schemas/banner.schema.d.ts.map +1 -1
- package/dist/schemas/banner.schema.js +4 -0
- package/dist/schemas/banner.schema.js.map +1 -1
- package/dist/schemas/channel_message.schema.d.ts +20 -0
- package/dist/schemas/channel_message.schema.d.ts.map +1 -0
- package/dist/schemas/channel_message.schema.js +49 -0
- package/dist/schemas/channel_message.schema.js.map +1 -0
- package/dist/schemas/feature.schema.d.ts +19 -0
- package/dist/schemas/feature.schema.d.ts.map +1 -0
- package/dist/schemas/feature.schema.js +45 -0
- package/dist/schemas/feature.schema.js.map +1 -0
- package/dist/schemas/notification.schema.d.ts +1 -0
- package/dist/schemas/notification.schema.d.ts.map +1 -1
- package/dist/schemas/notification.schema.js +4 -0
- package/dist/schemas/notification.schema.js.map +1 -1
- package/dist/schemas/product.schema.d.ts +50 -0
- package/dist/schemas/product.schema.d.ts.map +1 -0
- package/dist/schemas/product.schema.js +169 -0
- package/dist/schemas/product.schema.js.map +1 -0
- package/dist/schemas/purchase.schema.d.ts +1 -0
- package/dist/schemas/purchase.schema.d.ts.map +1 -1
- package/dist/schemas/purchase.schema.js +4 -0
- package/dist/schemas/purchase.schema.js.map +1 -1
- package/dist/schemas/purchase_channel.schema.d.ts +20 -0
- package/dist/schemas/purchase_channel.schema.d.ts.map +1 -0
- package/dist/schemas/purchase_channel.schema.js +49 -0
- package/dist/schemas/purchase_channel.schema.js.map +1 -0
- package/dist/schemas/rating.schema.d.ts +25 -0
- package/dist/schemas/rating.schema.d.ts.map +1 -0
- package/dist/schemas/rating.schema.js +69 -0
- package/dist/schemas/rating.schema.js.map +1 -0
- package/dist/schemas/rooms.schema.d.ts +1 -0
- package/dist/schemas/rooms.schema.d.ts.map +1 -1
- package/dist/schemas/rooms.schema.js +4 -0
- package/dist/schemas/rooms.schema.js.map +1 -1
- package/dist/schemas/scheduled_tournament.schema.d.ts +1 -0
- package/dist/schemas/scheduled_tournament.schema.d.ts.map +1 -1
- package/dist/schemas/scheduled_tournament.schema.js +4 -0
- package/dist/schemas/scheduled_tournament.schema.js.map +1 -1
- package/dist/schemas/setting.schema.d.ts +24 -0
- package/dist/schemas/setting.schema.d.ts.map +1 -0
- package/dist/schemas/setting.schema.js +65 -0
- package/dist/schemas/setting.schema.js.map +1 -0
- package/dist/utils.d.ts +2 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +7 -0
- package/dist/utils.js.map +1 -0
- package/package.json +1 -1
- package/src/index.ts +59 -0
- package/src/repositories/admin.repository.ts +23 -0
- package/src/repositories/article.repository.ts +33 -0
- package/src/repositories/banners.repository.ts +54 -0
- package/src/repositories/complains.repository.ts +30 -0
- package/src/repositories/index.ts +21 -0
- package/src/repositories/notification.repository.ts +54 -0
- package/src/repositories/products.repository.ts +29 -0
- package/src/repositories/scheduled-tournaments.repository.ts +30 -0
- package/src/repositories/servers.repository.ts +18 -0
- package/src/repositories/users.repository.ts +69 -0
- package/src/schemas/achievement.schema.ts +40 -0
- package/src/schemas/banner.schema.ts +3 -0
- package/src/schemas/channel_message.schema.ts +31 -0
- package/src/schemas/feature.schema.ts +28 -0
- package/src/schemas/notification.schema.ts +3 -0
- package/src/schemas/product.schema.ts +123 -0
- package/src/schemas/purchase.schema.ts +3 -0
- package/src/schemas/purchase_channel.schema.ts +31 -0
- package/src/schemas/rating.schema.ts +46 -0
- package/src/schemas/rooms.schema.ts +3 -0
- package/src/schemas/scheduled_tournament.schema.ts +3 -0
- package/src/schemas/setting.schema.ts +43 -0
- package/src/utils.ts +3 -0
|
@@ -0,0 +1,44 @@
|
|
|
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.ScheduledTournamentsRepository = 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 ScheduledTournamentsRepository = class ScheduledTournamentsRepository {
|
|
21
|
+
constructor(scheduledTournamentModel) {
|
|
22
|
+
this.scheduledTournamentModel = scheduledTournamentModel;
|
|
23
|
+
}
|
|
24
|
+
async findAndCount(limit, skip) {
|
|
25
|
+
const items = await this.scheduledTournamentModel
|
|
26
|
+
.find({ category: 'global' })
|
|
27
|
+
.sort({ date: -1 })
|
|
28
|
+
.limit(limit)
|
|
29
|
+
.skip(skip)
|
|
30
|
+
.exec();
|
|
31
|
+
const total = await this.scheduledTournamentModel
|
|
32
|
+
.find({ category: 'global' })
|
|
33
|
+
.countDocuments()
|
|
34
|
+
.exec();
|
|
35
|
+
return { items, total };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
exports.ScheduledTournamentsRepository = ScheduledTournamentsRepository;
|
|
39
|
+
exports.ScheduledTournamentsRepository = ScheduledTournamentsRepository = __decorate([
|
|
40
|
+
(0, common_1.Injectable)(),
|
|
41
|
+
__param(0, (0, mongoose_1.InjectModel)(__1.ScheduledTournament.name)),
|
|
42
|
+
__metadata("design:paramtypes", [mongoose_2.Model])
|
|
43
|
+
], ScheduledTournamentsRepository);
|
|
44
|
+
//# sourceMappingURL=scheduled-tournaments.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scheduled-tournaments.repository.js","sourceRoot":"","sources":["../../src/repositories/scheduled-tournaments.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,+CAA+C;AAC/C,uCAAiC;AAEjC,2BAAuE;AAGhE,IAAM,8BAA8B,GAApC,MAAM,8BAA8B;IACzC,YAA4D,wBAA4D;QAA5D,6BAAwB,GAAxB,wBAAwB,CAAoC;IACxH,CAAC;IAED,KAAK,CAAC,YAAY,CAAE,KAAa,EAAE,IAAY;QAI7C,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,wBAAwB;aAC9C,IAAI,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAC,CAAC;aAC3B,IAAI,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC;aAClB,KAAK,CAAC,KAAK,CAAC;aACZ,IAAI,CAAC,IAAI,CAAC;aACV,IAAI,EAAE,CAAC;QAEV,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,wBAAwB;aAC9C,IAAI,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAC,CAAC;aAC3B,cAAc,EAAE;aAChB,IAAI,EAAE,CAAC;QAEV,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;IAC1B,CAAC;CACF,CAAA;AAtBY,wEAA8B;yCAA9B,8BAA8B;IAD1C,IAAA,mBAAU,GAAE;IAEG,WAAA,IAAA,sBAAW,EAAC,uBAAmB,CAAC,IAAI,CAAC,CAAA;qCAAmC,gBAAK;GADhF,8BAA8B,CAsB1C"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Model } from 'mongoose';
|
|
2
|
+
import { Server, ServerDocument } from '../';
|
|
3
|
+
export declare class ServersRepository {
|
|
4
|
+
private serverModel;
|
|
5
|
+
constructor(serverModel: Model<ServerDocument>);
|
|
6
|
+
findServerByName(name: string): Promise<Server | null>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=servers.repository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"servers.repository.d.ts","sourceRoot":"","sources":["../../src/repositories/servers.repository.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAE7C,qBACa,iBAAiB;IACa,OAAO,CAAC,WAAW;gBAAX,WAAW,EAAE,KAAK,CAAC,cAAc,CAAC;IAG3E,gBAAgB,CAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;CAKhE"}
|
|
@@ -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.ServersRepository = 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 ServersRepository = class ServersRepository {
|
|
21
|
+
constructor(serverModel) {
|
|
22
|
+
this.serverModel = serverModel;
|
|
23
|
+
}
|
|
24
|
+
async findServerByName(name) {
|
|
25
|
+
return this.serverModel
|
|
26
|
+
.findOne({ name })
|
|
27
|
+
.exec();
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
exports.ServersRepository = ServersRepository;
|
|
31
|
+
exports.ServersRepository = ServersRepository = __decorate([
|
|
32
|
+
(0, common_1.Injectable)(),
|
|
33
|
+
__param(0, (0, mongoose_1.InjectModel)(__1.Server.name)),
|
|
34
|
+
__metadata("design:paramtypes", [mongoose_2.Model])
|
|
35
|
+
], ServersRepository);
|
|
36
|
+
//# sourceMappingURL=servers.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"servers.repository.js","sourceRoot":"","sources":["../../src/repositories/servers.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,+CAA+C;AAC/C,uCAAiC;AAEjC,2BAA6C;AAGtC,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAC1B,YAA+C,WAAkC;QAAlC,gBAAW,GAAX,WAAW,CAAuB;IACjF,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAE,IAAY;QAChC,OAAO,IAAI,CAAC,WAAW;aAClB,OAAO,CAAC,EAAC,IAAI,EAAC,CAAC;aACf,IAAI,EAAE,CAAC;IAChB,CAAC;CACJ,CAAA;AATY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;IAEK,WAAA,IAAA,sBAAW,EAAC,UAAM,CAAC,IAAI,CAAC,CAAA;qCAAsB,gBAAK;GADxD,iBAAiB,CAS7B"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Model } from 'mongoose';
|
|
2
|
+
import { User, UserDocument } from '../';
|
|
3
|
+
export declare class UsersRepository {
|
|
4
|
+
private userModel;
|
|
5
|
+
constructor(userModel: Model<UserDocument>);
|
|
6
|
+
findById(id: string): Promise<User | null>;
|
|
7
|
+
findByVKId(vkId: number): Promise<User | null>;
|
|
8
|
+
findAndCount(userName: string, limit: number, skip: number): Promise<{
|
|
9
|
+
items: Array<User>;
|
|
10
|
+
total: number;
|
|
11
|
+
}>;
|
|
12
|
+
createUser(user: User): Promise<User>;
|
|
13
|
+
updateUser(userId: string, user: Partial<User>, balanceAdding?: number): Promise<UserDocument | null>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=users.repository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"users.repository.d.ts","sourceRoot":"","sources":["../../src/repositories/users.repository.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,KAAK,CAAC;AAWzC,qBACa,eAAe;IACa,OAAO,CAAC,SAAS;gBAAT,SAAS,EAAE,KAAK,CAAC,YAAY,CAAC;IAGrE,QAAQ,CAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC;IAM3C,UAAU,CAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC;IAM/C,YAAY,CAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;QACxE,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;QACnB,KAAK,EAAE,MAAM,CAAA;KAChB,CAAC;IAeI,UAAU,CAAE,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAItC,UAAU,CAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,EAAE,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;CAc/G"}
|
|
@@ -0,0 +1,70 @@
|
|
|
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.UsersRepository = 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
|
+
function getFullNameFilter(userName) {
|
|
21
|
+
const regexpName = {
|
|
22
|
+
'$regex': userName,
|
|
23
|
+
'$options': 'i',
|
|
24
|
+
};
|
|
25
|
+
return userName ? { $or: [{ fullName: regexpName }, { fullNameAlias: regexpName }] } : {};
|
|
26
|
+
}
|
|
27
|
+
let UsersRepository = class UsersRepository {
|
|
28
|
+
constructor(userModel) {
|
|
29
|
+
this.userModel = userModel;
|
|
30
|
+
}
|
|
31
|
+
async findById(id) {
|
|
32
|
+
return this.userModel
|
|
33
|
+
.findById(id)
|
|
34
|
+
.exec();
|
|
35
|
+
}
|
|
36
|
+
async findByVKId(vkId) {
|
|
37
|
+
return this.userModel
|
|
38
|
+
.findOne({ 'vkUser.id': vkId })
|
|
39
|
+
.exec();
|
|
40
|
+
}
|
|
41
|
+
async findAndCount(userName, limit, skip) {
|
|
42
|
+
const items = await this.userModel
|
|
43
|
+
.find(getFullNameFilter(userName))
|
|
44
|
+
.limit(limit)
|
|
45
|
+
.skip(skip)
|
|
46
|
+
.exec();
|
|
47
|
+
const total = await this.userModel
|
|
48
|
+
.find(getFullNameFilter(userName))
|
|
49
|
+
.countDocuments()
|
|
50
|
+
.exec();
|
|
51
|
+
return { items, total };
|
|
52
|
+
}
|
|
53
|
+
async createUser(user) {
|
|
54
|
+
return this.userModel.create(user);
|
|
55
|
+
}
|
|
56
|
+
async updateUser(userId, user, balanceAdding) {
|
|
57
|
+
delete user.balance;
|
|
58
|
+
return this.userModel.findByIdAndUpdate(userId, {
|
|
59
|
+
$set: Object.assign({}, user),
|
|
60
|
+
$inc: { balance: balanceAdding !== null && balanceAdding !== void 0 ? balanceAdding : 0 }
|
|
61
|
+
}, { new: true }).exec();
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
exports.UsersRepository = UsersRepository;
|
|
65
|
+
exports.UsersRepository = UsersRepository = __decorate([
|
|
66
|
+
(0, common_1.Injectable)(),
|
|
67
|
+
__param(0, (0, mongoose_1.InjectModel)(__1.User.name)),
|
|
68
|
+
__metadata("design:paramtypes", [mongoose_2.Model])
|
|
69
|
+
], UsersRepository);
|
|
70
|
+
//# sourceMappingURL=users.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"users.repository.js","sourceRoot":"","sources":["../../src/repositories/users.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,+CAA+C;AAC/C,uCAAiC;AAEjC,2BAAyC;AAEzC,SAAS,iBAAiB,CAAE,QAAgB;IACxC,MAAM,UAAU,GAAG;QACf,QAAQ,EAAE,QAAQ;QAClB,UAAU,EAAE,GAAG;KAClB,CAAC;IAEF,OAAO,QAAQ,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,EAAE,aAAa,EAAE,UAAU,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;AAC9F,CAAC;AAGM,IAAM,eAAe,GAArB,MAAM,eAAe;IACxB,YAA6C,SAA8B;QAA9B,cAAS,GAAT,SAAS,CAAqB;IAC3E,CAAC;IAED,KAAK,CAAC,QAAQ,CAAE,EAAU;QACtB,OAAO,IAAI,CAAC,SAAS;aAChB,QAAQ,CAAC,EAAE,CAAC;aACZ,IAAI,EAAE,CAAC;IAChB,CAAC;IAED,KAAK,CAAC,UAAU,CAAE,IAAY;QAC1B,OAAO,IAAI,CAAC,SAAS;aAChB,OAAO,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;aAC9B,IAAI,EAAE,CAAC;IAChB,CAAC;IAED,KAAK,CAAC,YAAY,CAAE,QAAgB,EAAE,KAAa,EAAE,IAAY;QAI7D,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,SAAS;aAC7B,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC;aACjC,KAAK,CAAC,KAAK,CAAC;aACZ,IAAI,CAAC,IAAI,CAAC;aACV,IAAI,EAAE,CAAC;QAEZ,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,SAAS;aAC7B,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC;aACjC,cAAc,EAAE;aAChB,IAAI,EAAE,CAAC;QAEZ,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;IAC5B,CAAC;IAED,KAAK,CAAC,UAAU,CAAE,IAAU;QACxB,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC;IAED,KAAK,CAAC,UAAU,CAAE,MAAc,EAAE,IAAmB,EAAE,aAAsB;QACzE,OAAO,IAAI,CAAC,OAAO,CAAC;QAEpB,OAAO,IAAI,CAAC,SAAS,CAAC,iBAAiB,CACnC,MAAM,EACN;YACI,IAAI,oBACG,IAAI,CACV;YACD,IAAI,EAAE,EAAE,OAAO,EAAE,aAAa,aAAb,aAAa,cAAb,aAAa,GAAI,CAAC,EAAE;SACxC,EACD,EAAE,GAAG,EAAE,IAAI,EAAE,CAChB,CAAC,IAAI,EAAE,CAAC;IACb,CAAC;CACJ,CAAA;AApDY,0CAAe;0BAAf,eAAe;IAD3B,IAAA,mBAAU,GAAE;IAEK,WAAA,IAAA,sBAAW,EAAC,QAAI,CAAC,IAAI,CAAC,CAAA;qCAAoB,gBAAK;GADpD,eAAe,CAoD3B"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Document, HydratedDocument } from 'mongoose';
|
|
2
|
+
export type AchievementDocument = HydratedDocument<Achievement>;
|
|
3
|
+
export declare class Achievement {
|
|
4
|
+
readonly achievementId: string;
|
|
5
|
+
title: string;
|
|
6
|
+
titleEn: string;
|
|
7
|
+
description: string;
|
|
8
|
+
descriptionEn: string;
|
|
9
|
+
code: string;
|
|
10
|
+
vkId: string;
|
|
11
|
+
prize: number;
|
|
12
|
+
game?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const AchievementSchema: import("mongoose").Schema<Achievement, import("mongoose").Model<Achievement, any, any, any, Document<unknown, any, Achievement, any> & Achievement & {
|
|
15
|
+
_id: import("mongoose").Types.ObjectId;
|
|
16
|
+
} & {
|
|
17
|
+
__v: number;
|
|
18
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Achievement, Document<unknown, {}, import("mongoose").FlatRecord<Achievement>, {}> & import("mongoose").FlatRecord<Achievement> & {
|
|
19
|
+
_id: import("mongoose").Types.ObjectId;
|
|
20
|
+
} & {
|
|
21
|
+
__v: number;
|
|
22
|
+
}>;
|
|
23
|
+
//# sourceMappingURL=achievement.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"achievement.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/achievement.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEtD,MAAM,MAAM,mBAAmB,GAAG,gBAAgB,CAAC,WAAW,CAAC,CAAC;AAEhE,qBACa,WAAW;IAMpB,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAG/B,KAAK,EAAE,MAAM,CAAC;IAGd,OAAO,EAAE,MAAM,CAAC;IAGhB,WAAW,EAAE,MAAM,CAAC;IAGpB,aAAa,EAAE,MAAM,CAAC;IAGtB,IAAI,EAAE,MAAM,CAAC;IAGb,IAAI,EAAE,MAAM,CAAC;IAGb,KAAK,EAAE,MAAM,CAAC;IAGd,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,iBAAiB;;;;;;;;EAA4C,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.AchievementSchema = exports.Achievement = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
let Achievement = class Achievement {
|
|
15
|
+
};
|
|
16
|
+
exports.Achievement = Achievement;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, mongoose_1.Virtual)({
|
|
19
|
+
get: function () {
|
|
20
|
+
return this.id;
|
|
21
|
+
},
|
|
22
|
+
}),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], Achievement.prototype, "achievementId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, mongoose_1.Prop)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], Achievement.prototype, "title", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, mongoose_1.Prop)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], Achievement.prototype, "titleEn", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, mongoose_1.Prop)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], Achievement.prototype, "description", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, mongoose_1.Prop)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], Achievement.prototype, "descriptionEn", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, mongoose_1.Prop)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], Achievement.prototype, "code", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, mongoose_1.Prop)(),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], Achievement.prototype, "vkId", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, mongoose_1.Prop)(),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], Achievement.prototype, "prize", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, mongoose_1.Prop)(),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], Achievement.prototype, "game", void 0);
|
|
57
|
+
exports.Achievement = Achievement = __decorate([
|
|
58
|
+
(0, mongoose_1.Schema)()
|
|
59
|
+
], Achievement);
|
|
60
|
+
exports.AchievementSchema = mongoose_1.SchemaFactory.createForClass(Achievement);
|
|
61
|
+
//# sourceMappingURL=achievement.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"achievement.schema.js","sourceRoot":"","sources":["../../src/schemas/achievement.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAwE;AAMjE,IAAM,WAAW,GAAjB,MAAM,WAAW;CA+BvB,CAAA;AA/BY,kCAAW;AAMX;IALR,IAAA,kBAAO,EAAC;QACL,GAAG,EAAE;YACD,OAAO,IAAI,CAAC,EAAE,CAAC;QACnB,CAAC;KACJ,CAAC;;kDAC6B;AAG/B;IADC,IAAA,eAAI,GAAE;;0CACO;AAGd;IADC,IAAA,eAAI,GAAE;;4CACS;AAGhB;IADC,IAAA,eAAI,GAAE;;gDACa;AAGpB;IADC,IAAA,eAAI,GAAE;;kDACe;AAGtB;IADC,IAAA,eAAI,GAAE;;yCACM;AAGb;IADC,IAAA,eAAI,GAAE;;yCACM;AAGb;IADC,IAAA,eAAI,GAAE;;0CACO;AAGd;IADC,IAAA,eAAI,GAAE;;yCACO;sBA9BL,WAAW;IADvB,IAAA,iBAAM,GAAE;GACI,WAAW,CA+BvB;AAEY,QAAA,iBAAiB,GAAG,wBAAa,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC"}
|
|
@@ -9,6 +9,7 @@ export declare class Banner {
|
|
|
9
9
|
enabled: boolean;
|
|
10
10
|
isShowing: boolean;
|
|
11
11
|
createDate: Date;
|
|
12
|
+
game?: string;
|
|
12
13
|
}
|
|
13
14
|
export declare const BannerSchema: import("mongoose").Schema<Banner, import("mongoose").Model<Banner, any, any, any, Document<unknown, any, Banner, any> & Banner & {
|
|
14
15
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"banner.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/banner.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,QAAQ,EAAE,MAAM,CAAC;IAG1B,OAAO,EAAE,MAAM,CAAC;IAGhB,OAAO,EAAE,MAAM,CAAC;IAGhB,KAAK,EAAE,MAAM,CAAC;IAGd,IAAI,EAAE,MAAM,CAAC;IAGb,OAAO,EAAE,OAAO,CAAC;IAGjB,SAAS,EAAE,OAAO,CAAC;IAGnB,UAAU,EAAE,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"banner.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/banner.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,QAAQ,EAAE,MAAM,CAAC;IAG1B,OAAO,EAAE,MAAM,CAAC;IAGhB,OAAO,EAAE,MAAM,CAAC;IAGhB,KAAK,EAAE,MAAM,CAAC;IAGd,IAAI,EAAE,MAAM,CAAC;IAGb,OAAO,EAAE,OAAO,CAAC;IAGjB,SAAS,EAAE,OAAO,CAAC;IAGnB,UAAU,EAAE,IAAI,CAAC;IAGjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,YAAY;;;;;;;;EAAuC,CAAC"}
|
|
@@ -50,6 +50,10 @@ __decorate([
|
|
|
50
50
|
(0, mongoose_1.Prop)(),
|
|
51
51
|
__metadata("design:type", Date)
|
|
52
52
|
], Banner.prototype, "createDate", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, mongoose_1.Prop)(),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], Banner.prototype, "game", void 0);
|
|
53
57
|
exports.Banner = Banner = __decorate([
|
|
54
58
|
(0, mongoose_1.Schema)()
|
|
55
59
|
], Banner);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"banner.schema.js","sourceRoot":"","sources":["../../src/schemas/banner.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAwE;AAMjE,IAAM,MAAM,GAAZ,MAAM,MAAM;
|
|
1
|
+
{"version":3,"file":"banner.schema.js","sourceRoot":"","sources":["../../src/schemas/banner.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,EAAE,CAAC;QACnB,CAAC;KACJ,CAAC;;wCACwB;AAG1B;IADC,IAAA,eAAI,GAAE;;uCACS;AAGhB;IADC,IAAA,eAAI,GAAE;;uCACS;AAGhB;IADC,IAAA,eAAI,GAAE;;qCACO;AAGd;IADC,IAAA,eAAI,GAAE;;oCACM;AAGb;IADC,IAAA,eAAI,GAAE;;uCACU;AAGjB;IADC,IAAA,eAAI,GAAE;;yCACY;AAGnB;IADC,IAAA,eAAI,GAAE;8BACK,IAAI;0CAAC;AAGjB;IADC,IAAA,eAAI,GAAE;;oCACO;iBA9BL,MAAM;IADlB,IAAA,iBAAM,GAAE;GACI,MAAM,CA+BlB;AAEY,QAAA,YAAY,GAAG,wBAAa,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Document, HydratedDocument } from 'mongoose';
|
|
2
|
+
export type ChannelMessageDocument = HydratedDocument<ChannelMessage>;
|
|
3
|
+
export declare class ChannelMessage {
|
|
4
|
+
readonly channelMessageId: string;
|
|
5
|
+
channelId: string;
|
|
6
|
+
date: Date;
|
|
7
|
+
text: string;
|
|
8
|
+
userId: string;
|
|
9
|
+
read: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const ChannelMessageSchema: import("mongoose").Schema<ChannelMessage, import("mongoose").Model<ChannelMessage, any, any, any, Document<unknown, any, ChannelMessage, any> & ChannelMessage & {
|
|
12
|
+
_id: import("mongoose").Types.ObjectId;
|
|
13
|
+
} & {
|
|
14
|
+
__v: number;
|
|
15
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ChannelMessage, Document<unknown, {}, import("mongoose").FlatRecord<ChannelMessage>, {}> & import("mongoose").FlatRecord<ChannelMessage> & {
|
|
16
|
+
_id: import("mongoose").Types.ObjectId;
|
|
17
|
+
} & {
|
|
18
|
+
__v: number;
|
|
19
|
+
}>;
|
|
20
|
+
//# sourceMappingURL=channel_message.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"channel_message.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/channel_message.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEtD,MAAM,MAAM,sBAAsB,GAAG,gBAAgB,CAAC,cAAc,CAAC,CAAC;AAEtE,qBACa,cAAc;IAMvB,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAGlC,SAAS,EAAE,MAAM,CAAC;IAGlB,IAAI,EAAE,IAAI,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;IAGb,MAAM,EAAE,MAAM,CAAC;IAGf,IAAI,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,MAAM,oBAAoB;;;;;;;;EAA+C,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
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.ChannelMessageSchema = exports.ChannelMessage = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
let ChannelMessage = class ChannelMessage {
|
|
15
|
+
};
|
|
16
|
+
exports.ChannelMessage = ChannelMessage;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, mongoose_1.Virtual)({
|
|
19
|
+
get: function () {
|
|
20
|
+
return this.id;
|
|
21
|
+
},
|
|
22
|
+
}),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], ChannelMessage.prototype, "channelMessageId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, mongoose_1.Prop)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], ChannelMessage.prototype, "channelId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, mongoose_1.Prop)(),
|
|
31
|
+
__metadata("design:type", Date)
|
|
32
|
+
], ChannelMessage.prototype, "date", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, mongoose_1.Prop)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], ChannelMessage.prototype, "text", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, mongoose_1.Prop)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], ChannelMessage.prototype, "userId", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, mongoose_1.Prop)(),
|
|
43
|
+
__metadata("design:type", Boolean)
|
|
44
|
+
], ChannelMessage.prototype, "read", void 0);
|
|
45
|
+
exports.ChannelMessage = ChannelMessage = __decorate([
|
|
46
|
+
(0, mongoose_1.Schema)()
|
|
47
|
+
], ChannelMessage);
|
|
48
|
+
exports.ChannelMessageSchema = mongoose_1.SchemaFactory.createForClass(ChannelMessage);
|
|
49
|
+
//# sourceMappingURL=channel_message.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"channel_message.schema.js","sourceRoot":"","sources":["../../src/schemas/channel_message.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAwE;AAMjE,IAAM,cAAc,GAApB,MAAM,cAAc;CAsB1B,CAAA;AAtBY,wCAAc;AAMd;IALR,IAAA,kBAAO,EAAC;QACL,GAAG,EAAE;YACD,OAAO,IAAI,CAAC,EAAE,CAAC;QACnB,CAAC;KACJ,CAAC;;wDACgC;AAGlC;IADC,IAAA,eAAI,GAAE;;iDACW;AAGlB;IADC,IAAA,eAAI,GAAE;8BACD,IAAI;4CAAC;AAGX;IADC,IAAA,eAAI,GAAE;;4CACM;AAGb;IADC,IAAA,eAAI,GAAE;;8CACQ;AAGf;IADC,IAAA,eAAI,GAAE;;4CACO;yBArBL,cAAc;IAD1B,IAAA,iBAAM,GAAE;GACI,cAAc,CAsB1B;AAEY,QAAA,oBAAoB,GAAG,wBAAa,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Document, HydratedDocument } from 'mongoose';
|
|
2
|
+
export type FeatureDocument = HydratedDocument<Feature>;
|
|
3
|
+
export declare class Feature {
|
|
4
|
+
readonly featureId: string;
|
|
5
|
+
name: string;
|
|
6
|
+
enabled: boolean;
|
|
7
|
+
channels: string;
|
|
8
|
+
game?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const FeatureSchema: import("mongoose").Schema<Feature, import("mongoose").Model<Feature, any, any, any, Document<unknown, any, Feature, any> & Feature & {
|
|
11
|
+
_id: import("mongoose").Types.ObjectId;
|
|
12
|
+
} & {
|
|
13
|
+
__v: number;
|
|
14
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Feature, Document<unknown, {}, import("mongoose").FlatRecord<Feature>, {}> & import("mongoose").FlatRecord<Feature> & {
|
|
15
|
+
_id: import("mongoose").Types.ObjectId;
|
|
16
|
+
} & {
|
|
17
|
+
__v: number;
|
|
18
|
+
}>;
|
|
19
|
+
//# sourceMappingURL=feature.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feature.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/feature.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,IAAI,EAAE,MAAM,CAAC;IAGb,OAAO,EAAE,OAAO,CAAC;IAGjB,QAAQ,EAAE,MAAM,CAAC;IAGjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,aAAa;;;;;;;;EAAwC,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
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.FeatureSchema = exports.Feature = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
let Feature = class Feature {
|
|
15
|
+
};
|
|
16
|
+
exports.Feature = Feature;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, mongoose_1.Virtual)({
|
|
19
|
+
get: function () {
|
|
20
|
+
return this.id;
|
|
21
|
+
},
|
|
22
|
+
}),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], Feature.prototype, "featureId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, mongoose_1.Prop)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], Feature.prototype, "name", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, mongoose_1.Prop)(),
|
|
31
|
+
__metadata("design:type", Boolean)
|
|
32
|
+
], Feature.prototype, "enabled", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, mongoose_1.Prop)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], Feature.prototype, "channels", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, mongoose_1.Prop)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], Feature.prototype, "game", void 0);
|
|
41
|
+
exports.Feature = Feature = __decorate([
|
|
42
|
+
(0, mongoose_1.Schema)()
|
|
43
|
+
], Feature);
|
|
44
|
+
exports.FeatureSchema = mongoose_1.SchemaFactory.createForClass(Feature);
|
|
45
|
+
//# sourceMappingURL=feature.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feature.schema.js","sourceRoot":"","sources":["../../src/schemas/feature.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAwE;AAMjE,IAAM,OAAO,GAAb,MAAM,OAAO;CAmBnB,CAAA;AAnBY,0BAAO;AAMP;IALR,IAAA,kBAAO,EAAC;QACL,GAAG,EAAE;YACD,OAAO,IAAI,CAAC,EAAE,CAAC;QACnB,CAAC;KACJ,CAAC;;0CACyB;AAG3B;IADC,IAAA,eAAI,GAAE;;qCACM;AAGb;IADC,IAAA,eAAI,GAAE;;wCACU;AAGjB;IADC,IAAA,eAAI,GAAE;;yCACU;AAGjB;IADC,IAAA,eAAI,GAAE;;qCACO;kBAlBL,OAAO;IADnB,IAAA,iBAAM,GAAE;GACI,OAAO,CAmBnB;AAEY,QAAA,aAAa,GAAG,wBAAa,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC"}
|
|
@@ -16,6 +16,7 @@ export declare class Notification {
|
|
|
16
16
|
linkTG?: string;
|
|
17
17
|
category: string;
|
|
18
18
|
channels: string;
|
|
19
|
+
game?: string;
|
|
19
20
|
}
|
|
20
21
|
export declare const NotificationSchema: import("mongoose").Schema<Notification, import("mongoose").Model<Notification, any, any, any, Document<unknown, any, Notification, any> & Notification & {
|
|
21
22
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/notification.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEtD,MAAM,MAAM,oBAAoB,GAAG,gBAAgB,CAAC,YAAY,CAAC,CAAC;AAElE,qBACa,YAAY;IAMrB,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAGhC,KAAK,EAAE,MAAM,CAAC;IAGd,OAAO,EAAE,MAAM,CAAC;IAGhB,WAAW,EAAE,MAAM,CAAC;IAGpB,aAAa,EAAE,MAAM,CAAC;IAGtB,UAAU,EAAE,IAAI,CAAC;IAGjB,SAAS,EAAE,MAAM,CAAC;IAGlB,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,QAAQ,EAAE,MAAM,CAAC;IAGjB,QAAQ,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"notification.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/notification.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEtD,MAAM,MAAM,oBAAoB,GAAG,gBAAgB,CAAC,YAAY,CAAC,CAAC;AAElE,qBACa,YAAY;IAMrB,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAGhC,KAAK,EAAE,MAAM,CAAC;IAGd,OAAO,EAAE,MAAM,CAAC;IAGhB,WAAW,EAAE,MAAM,CAAC;IAGpB,aAAa,EAAE,MAAM,CAAC;IAGtB,UAAU,EAAE,IAAI,CAAC;IAGjB,SAAS,EAAE,MAAM,CAAC;IAGlB,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,QAAQ,EAAE,MAAM,CAAC;IAGjB,QAAQ,EAAE,MAAM,CAAC;IAGjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,kBAAkB;;;;;;;;EAA6C,CAAC"}
|
|
@@ -78,6 +78,10 @@ __decorate([
|
|
|
78
78
|
(0, mongoose_1.Prop)(),
|
|
79
79
|
__metadata("design:type", String)
|
|
80
80
|
], Notification.prototype, "channels", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, mongoose_1.Prop)(),
|
|
83
|
+
__metadata("design:type", String)
|
|
84
|
+
], Notification.prototype, "game", void 0);
|
|
81
85
|
exports.Notification = Notification = __decorate([
|
|
82
86
|
(0, mongoose_1.Schema)()
|
|
83
87
|
], Notification);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.schema.js","sourceRoot":"","sources":["../../src/schemas/notification.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAwE;AAMjE,IAAM,YAAY,GAAlB,MAAM,YAAY;
|
|
1
|
+
{"version":3,"file":"notification.schema.js","sourceRoot":"","sources":["../../src/schemas/notification.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAwE;AAMjE,IAAM,YAAY,GAAlB,MAAM,YAAY;CAoDxB,CAAA;AApDY,oCAAY;AAMZ;IALR,IAAA,kBAAO,EAAC;QACL,GAAG,EAAE;YACD,OAAO,IAAI,CAAC,EAAE,CAAC;QACnB,CAAC;KACJ,CAAC;;oDAC8B;AAGhC;IADC,IAAA,eAAI,GAAE;;2CACO;AAGd;IADC,IAAA,eAAI,GAAE;;6CACS;AAGhB;IADC,IAAA,eAAI,GAAE;;iDACa;AAGpB;IADC,IAAA,eAAI,GAAE;;mDACe;AAGtB;IADC,IAAA,eAAI,GAAE;8BACK,IAAI;gDAAC;AAGjB;IADC,IAAA,eAAI,GAAE;;+CACW;AAGlB;IADC,IAAA,eAAI,GAAE;;4CACS;AAGhB;IADC,IAAA,eAAI,GAAE;;4CACS;AAGhB;IADC,IAAA,eAAI,GAAE;;4CACS;AAGhB;IADC,IAAA,eAAI,GAAE;;6CACU;AAGjB;IADC,IAAA,eAAI,GAAE;;iDACc;AAGrB;IADC,IAAA,eAAI,GAAE;;4CACS;AAGhB;IADC,IAAA,eAAI,GAAE;;8CACU;AAGjB;IADC,IAAA,eAAI,GAAE;;8CACU;AAGjB;IADC,IAAA,eAAI,GAAE;;0CACO;uBAnDL,YAAY;IADxB,IAAA,iBAAM,GAAE;GACI,YAAY,CAoDxB;AAEY,QAAA,kBAAkB,GAAG,wBAAa,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Document, HydratedDocument } from 'mongoose';
|
|
2
|
+
export type ProductDocument = HydratedDocument<Product>;
|
|
3
|
+
export declare class Product {
|
|
4
|
+
readonly productId: string;
|
|
5
|
+
title: string;
|
|
6
|
+
titleEn: string;
|
|
7
|
+
subtitle: string;
|
|
8
|
+
subtitleEn: string;
|
|
9
|
+
description: string;
|
|
10
|
+
descriptionEn: string;
|
|
11
|
+
descriptionAcquired: string;
|
|
12
|
+
descriptionAcquiredEn: string;
|
|
13
|
+
buttonAcquired: string;
|
|
14
|
+
buttonAcquiredEn: string;
|
|
15
|
+
button: string;
|
|
16
|
+
buttonEn: string;
|
|
17
|
+
link: string;
|
|
18
|
+
linkVK: string;
|
|
19
|
+
channels: string;
|
|
20
|
+
code: string;
|
|
21
|
+
position: number;
|
|
22
|
+
active: boolean;
|
|
23
|
+
image: string;
|
|
24
|
+
icon: string;
|
|
25
|
+
external: boolean;
|
|
26
|
+
isConsumable: boolean;
|
|
27
|
+
parentId?: string | null;
|
|
28
|
+
price?: number;
|
|
29
|
+
priceVK?: number;
|
|
30
|
+
priceOK?: number;
|
|
31
|
+
priceYA?: number;
|
|
32
|
+
priceGooglePlay?: number;
|
|
33
|
+
priceFB?: number;
|
|
34
|
+
priceTG?: number;
|
|
35
|
+
priceRuStore?: number;
|
|
36
|
+
value?: number;
|
|
37
|
+
period?: string;
|
|
38
|
+
type?: string;
|
|
39
|
+
game?: string;
|
|
40
|
+
}
|
|
41
|
+
export declare const ProductSchema: import("mongoose").Schema<Product, import("mongoose").Model<Product, any, any, any, Document<unknown, any, Product, any> & Product & {
|
|
42
|
+
_id: import("mongoose").Types.ObjectId;
|
|
43
|
+
} & {
|
|
44
|
+
__v: number;
|
|
45
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Product, Document<unknown, {}, import("mongoose").FlatRecord<Product>, {}> & import("mongoose").FlatRecord<Product> & {
|
|
46
|
+
_id: import("mongoose").Types.ObjectId;
|
|
47
|
+
} & {
|
|
48
|
+
__v: number;
|
|
49
|
+
}>;
|
|
50
|
+
//# sourceMappingURL=product.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/product.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,KAAK,EAAE,MAAM,CAAC;IAGd,OAAO,EAAE,MAAM,CAAC;IAGhB,QAAQ,EAAE,MAAM,CAAC;IAGjB,UAAU,EAAE,MAAM,CAAC;IAGnB,WAAW,EAAE,MAAM,CAAC;IAGpB,aAAa,EAAE,MAAM,CAAC;IAGtB,mBAAmB,EAAE,MAAM,CAAC;IAG5B,qBAAqB,EAAE,MAAM,CAAC;IAG9B,cAAc,EAAE,MAAM,CAAC;IAGvB,gBAAgB,EAAE,MAAM,CAAC;IAGzB,MAAM,EAAE,MAAM,CAAC;IAGf,QAAQ,EAAE,MAAM,CAAC;IAGjB,IAAI,EAAE,MAAM,CAAC;IAGb,MAAM,EAAE,MAAM,CAAC;IAGf,QAAQ,EAAE,MAAM,CAAC;IAGjB,IAAI,EAAE,MAAM,CAAC;IAGb,QAAQ,EAAE,MAAM,CAAC;IAGjB,MAAM,EAAE,OAAO,CAAC;IAGhB,KAAK,EAAE,MAAM,CAAC;IAGd,IAAI,EAAE,MAAM,CAAC;IAGb,QAAQ,EAAE,OAAO,CAAC;IAGlB,YAAY,EAAE,OAAO,CAAC;IAKtB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAGzB,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,eAAe,CAAC,EAAE,MAAM,CAAC;IAGzB,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,YAAY,CAAC,EAAE,MAAM,CAAC;IAGtB,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,aAAa;;;;;;;;EAAwC,CAAC"}
|