jp.db.schemas 2.1.9 → 2.1.11
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 +9 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -2
- package/dist/index.js.map +1 -1
- package/dist/models/rating-add-bulk-item.interface.d.ts +8 -0
- package/dist/models/rating-add-bulk-item.interface.d.ts.map +1 -0
- package/dist/models/rating-add-bulk-item.interface.js +3 -0
- package/dist/models/rating-add-bulk-item.interface.js.map +1 -0
- package/dist/models/rating-monthly-result.interface.d.ts +12 -0
- package/dist/models/rating-monthly-result.interface.d.ts.map +1 -0
- package/dist/models/rating-monthly-result.interface.js +3 -0
- package/dist/models/rating-monthly-result.interface.js.map +1 -0
- package/dist/repositories/activity-log.repository.d.ts +6 -6
- package/dist/repositories/activity-log.repository.d.ts.map +1 -1
- package/dist/repositories/activity-log.repository.js +13 -13
- package/dist/repositories/activity-log.repository.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/game-statistic.repository.d.ts +8 -0
- package/dist/repositories/game-statistic.repository.d.ts.map +1 -0
- package/dist/repositories/game-statistic.repository.js +39 -0
- package/dist/repositories/game-statistic.repository.js.map +1 -0
- package/dist/repositories/index.d.ts +4 -1
- package/dist/repositories/index.d.ts.map +1 -1
- package/dist/repositories/index.js +7 -1
- package/dist/repositories/index.js.map +1 -1
- package/dist/repositories/rating.repository.d.ts +11 -0
- package/dist/repositories/rating.repository.d.ts.map +1 -0
- package/dist/repositories/rating.repository.js +98 -0
- package/dist/repositories/rating.repository.js.map +1 -0
- package/dist/schemas/activity_log.schema.d.ts +2 -2
- package/dist/schemas/activity_log.schema.d.ts.map +1 -1
- package/dist/schemas/activity_log.schema.js +1 -1
- package/dist/schemas/activity_log.schema.js.map +1 -1
- package/dist/schemas/friend.schema.d.ts +87 -0
- package/dist/schemas/friend.schema.d.ts.map +1 -0
- package/dist/schemas/friend.schema.js +73 -0
- package/dist/schemas/friend.schema.js.map +1 -0
- package/dist/schemas/game_statistic.schema.d.ts +115 -0
- package/dist/schemas/game_statistic.schema.d.ts.map +1 -0
- package/dist/schemas/game_statistic.schema.js +61 -0
- package/dist/schemas/game_statistic.schema.js.map +1 -0
- package/dist/schemas/rating.schema.d.ts +5 -35
- package/dist/schemas/rating.schema.d.ts.map +1 -1
- package/dist/schemas/rating.schema.js +5 -17
- package/dist/schemas/rating.schema.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +18 -0
- package/src/models/rating-add-bulk-item.interface.ts +7 -0
- package/src/models/rating-monthly-result.interface.ts +11 -0
- package/src/repositories/activity-log.repository.ts +13 -13
- package/src/repositories/friend.repository.ts +20 -0
- package/src/repositories/game-statistic.repository.ts +21 -0
- package/src/repositories/index.ts +6 -0
- package/src/repositories/rating.repository.ts +84 -0
- package/src/schemas/activity_log.schema.ts +1 -1
- package/src/schemas/friend.schema.ts +51 -0
- package/src/schemas/game_statistic.schema.ts +40 -0
- package/src/schemas/rating.schema.ts +3 -12
|
@@ -0,0 +1,98 @@
|
|
|
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.RatingRepository = 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 RatingRepository = class RatingRepository {
|
|
22
|
+
constructor(ratingModel) {
|
|
23
|
+
this.ratingModel = ratingModel;
|
|
24
|
+
}
|
|
25
|
+
async findRating(channel, game) {
|
|
26
|
+
return this.ratingModel
|
|
27
|
+
.find({
|
|
28
|
+
channels: (0, utils_1.getChannelRegExpFilter)(channel),
|
|
29
|
+
})
|
|
30
|
+
.exec();
|
|
31
|
+
}
|
|
32
|
+
async addBulkPlayerRating(items) {
|
|
33
|
+
this.ratingModel.insertMany(items);
|
|
34
|
+
}
|
|
35
|
+
async getMonthlyRatingList(game, startDate, endDate) {
|
|
36
|
+
return this.ratingModel.aggregate([
|
|
37
|
+
{
|
|
38
|
+
$match: {
|
|
39
|
+
game,
|
|
40
|
+
date: {
|
|
41
|
+
$gte: startDate,
|
|
42
|
+
$lte: endDate,
|
|
43
|
+
},
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
$group: {
|
|
48
|
+
_id: {
|
|
49
|
+
userId: "$userId",
|
|
50
|
+
date: {
|
|
51
|
+
$dateToString: {
|
|
52
|
+
format: "%Y-%m",
|
|
53
|
+
date: "$date"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
userId: { $first: "$userId" },
|
|
58
|
+
userName: { $first: "$userName" },
|
|
59
|
+
userAvatarUrl: { $first: "$userAvatarUrl" },
|
|
60
|
+
game: { $first: "$game" },
|
|
61
|
+
channels: { $first: "$channels" },
|
|
62
|
+
count: { $sum: 1 },
|
|
63
|
+
profit: { $sum: "$profit" }
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
$sort: { profit: -1 }
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
$setWindowFields: {
|
|
71
|
+
sortBy: { profit: -1 },
|
|
72
|
+
output: { rank: { $rank: {} } }
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
$project: {
|
|
77
|
+
_id: 0,
|
|
78
|
+
id: { $concat: ["$_id.userId", "_", "$_id.date"] },
|
|
79
|
+
userId: 1,
|
|
80
|
+
userName: 1,
|
|
81
|
+
userAvatarUrl: 1,
|
|
82
|
+
game: 1,
|
|
83
|
+
channels: 1,
|
|
84
|
+
count: 1,
|
|
85
|
+
date: "$_id.date",
|
|
86
|
+
rank: 1,
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
]);
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
exports.RatingRepository = RatingRepository;
|
|
93
|
+
exports.RatingRepository = RatingRepository = __decorate([
|
|
94
|
+
(0, common_1.Injectable)(),
|
|
95
|
+
__param(0, (0, mongoose_1.InjectModel)(__1.Rating.name)),
|
|
96
|
+
__metadata("design:paramtypes", [mongoose_2.Model])
|
|
97
|
+
], RatingRepository);
|
|
98
|
+
//# sourceMappingURL=rating.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rating.repository.js","sourceRoot":"","sources":["../../src/repositories/rating.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,+CAA+C;AAC/C,uCAAiC;AAEjC,0BAA4C;AAC5C,oCAAkD;AAI3C,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IACzB,YAA8C,WAAkC;QAAlC,gBAAW,GAAX,WAAW,CAAuB;IAChF,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,OAAe,EAAE,IAAY;QAC1C,OAAO,IAAI,CAAC,WAAW;aAClB,IAAI,CAAC;YACF,QAAQ,EAAE,IAAA,8BAAsB,EAAC,OAAO,CAAC;SAE5C,CAAC;aACD,IAAI,EAAE,CAAC;IAChB,CAAC;IAED,KAAK,CAAC,mBAAmB,CAAC,KAAoB;QAC1C,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;IACvC,CAAC;IAED,KAAK,CAAC,oBAAoB,CAAC,IAAY,EAAE,SAAe,EAAE,OAAa;QACnE,OAAO,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC;YAC9B;gBACI,MAAM,EAAE;oBACJ,IAAI;oBACJ,IAAI,EAAE;wBACF,IAAI,EAAE,SAAS;wBACf,IAAI,EAAE,OAAO;qBAChB;iBACJ;aACJ;YACD;gBACI,MAAM,EACN;oBACI,GAAG,EAAE;wBACD,MAAM,EAAE,SAAS;wBACjB,IAAI,EAAE;4BACF,aAAa,EAAE;gCACX,MAAM,EAAE,OAAO;gCACf,IAAI,EAAE,OAAO;6BAChB;yBACJ;qBACJ;oBACD,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE;oBAC7B,QAAQ,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE;oBACjC,aAAa,EAAE,EAAE,MAAM,EAAE,gBAAgB,EAAE;oBAC3C,IAAI,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE;oBACzB,QAAQ,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE;oBACjC,KAAK,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;oBAClB,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;iBAC9B;aACJ;YACD;gBACI,KAAK,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE;aACxB;YACD;gBACI,gBAAgB,EAAE;oBACd,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE;oBACtB,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE;iBAClC;aACJ;YACD;gBACI,QAAQ,EAAE;oBACN,GAAG,EAAE,CAAC;oBACN,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,aAAa,EAAE,GAAG,EAAE,WAAW,CAAC,EAAE;oBAClD,MAAM,EAAE,CAAC;oBACT,QAAQ,EAAE,CAAC;oBACX,aAAa,EAAE,CAAC;oBAChB,IAAI,EAAE,CAAC;oBACP,QAAQ,EAAE,CAAC;oBACX,KAAK,EAAE,CAAC;oBACR,IAAI,EAAE,WAAW;oBACjB,IAAI,EAAE,CAAC;iBACV;aACJ;SACJ,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AA1EY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,mBAAU,GAAE;IAEI,WAAA,IAAA,sBAAW,EAAC,UAAM,CAAC,IAAI,CAAC,CAAA;qCAAsB,gBAAK;GADvD,gBAAgB,CA0E5B"}
|
|
@@ -8,7 +8,7 @@ export declare class ActivityLog {
|
|
|
8
8
|
userName: string;
|
|
9
9
|
amount?: number;
|
|
10
10
|
game: string;
|
|
11
|
-
|
|
11
|
+
channels: string;
|
|
12
12
|
}
|
|
13
13
|
export declare const ActivityLogSchema: import("mongoose").Schema<ActivityLog, import("mongoose").Model<ActivityLog, any, any, any, (Document<unknown, any, ActivityLog, any, import("mongoose").DefaultSchemaOptions> & ActivityLog & {
|
|
14
14
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -92,7 +92,7 @@ export declare const ActivityLogSchema: import("mongoose").Schema<ActivityLog, i
|
|
|
92
92
|
}, "id"> & {
|
|
93
93
|
id: string;
|
|
94
94
|
}>;
|
|
95
|
-
|
|
95
|
+
channels?: import("mongoose").SchemaDefinitionProperty<string, ActivityLog, Document<unknown, {}, ActivityLog, {
|
|
96
96
|
id: string;
|
|
97
97
|
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<ActivityLog & {
|
|
98
98
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activity_log.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/activity_log.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,IAAI,EAAE,IAAI,CAAC;IAGX,KAAK,EAAE,MAAM,CAAC;IAGd,MAAM,EAAE,MAAM,CAAC;IAGf,QAAQ,EAAE,MAAM,CAAC;IAGjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,IAAI,EAAE,MAAM,CAAC;IAGb,
|
|
1
|
+
{"version":3,"file":"activity_log.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/activity_log.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,IAAI,EAAE,IAAI,CAAC;IAGX,KAAK,EAAE,MAAM,CAAC;IAGd,MAAM,EAAE,MAAM,CAAC;IAGf,QAAQ,EAAE,MAAM,CAAC;IAGjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,IAAI,EAAE,MAAM,CAAC;IAGb,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAA4C,CAAC"}
|
|
@@ -49,7 +49,7 @@ __decorate([
|
|
|
49
49
|
__decorate([
|
|
50
50
|
(0, mongoose_1.Prop)(),
|
|
51
51
|
__metadata("design:type", String)
|
|
52
|
-
], ActivityLog.prototype, "
|
|
52
|
+
], ActivityLog.prototype, "channels", void 0);
|
|
53
53
|
exports.ActivityLog = ActivityLog = __decorate([
|
|
54
54
|
(0, mongoose_1.Schema)({ collection: 'activity_log' })
|
|
55
55
|
], ActivityLog);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activity_log.schema.js","sourceRoot":"","sources":["../../src/schemas/activity_log.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAwE;AAMjE,IAAM,WAAW,GAAjB,MAAM,WAAW;CA4BvB,CAAA;AA5BY,kCAAW;AAMX;IALR,IAAA,kBAAO,EAAC;QACL,GAAG,EAAE;YACD,OAAO,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;QAC/B,CAAC;KACJ,CAAC;;kDAC6B;AAG/B;IADC,IAAA,eAAI,GAAE;8BACD,IAAI;yCAAC;AAGX;IADC,IAAA,eAAI,GAAE;;0CACO;AAGd;IADC,IAAA,eAAI,GAAE;;2CACQ;AAGf;IADC,IAAA,eAAI,GAAE;;6CACU;AAGjB;IADC,IAAA,eAAI,GAAE;;2CACS;AAGhB;IADC,IAAA,eAAI,GAAE;;yCACM;AAGb;IADC,IAAA,eAAI,GAAE;;
|
|
1
|
+
{"version":3,"file":"activity_log.schema.js","sourceRoot":"","sources":["../../src/schemas/activity_log.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAwE;AAMjE,IAAM,WAAW,GAAjB,MAAM,WAAW;CA4BvB,CAAA;AA5BY,kCAAW;AAMX;IALR,IAAA,kBAAO,EAAC;QACL,GAAG,EAAE;YACD,OAAO,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;QAC/B,CAAC;KACJ,CAAC;;kDAC6B;AAG/B;IADC,IAAA,eAAI,GAAE;8BACD,IAAI;yCAAC;AAGX;IADC,IAAA,eAAI,GAAE;;0CACO;AAGd;IADC,IAAA,eAAI,GAAE;;2CACQ;AAGf;IADC,IAAA,eAAI,GAAE;;6CACU;AAGjB;IADC,IAAA,eAAI,GAAE;;2CACS;AAGhB;IADC,IAAA,eAAI,GAAE;;yCACM;AAGb;IADC,IAAA,eAAI,GAAE;;6CACU;sBA3BR,WAAW;IADvB,IAAA,iBAAM,EAAC,EAAE,UAAU,EAAE,cAAc,EAAE,CAAC;GAC1B,WAAW,CA4BvB;AAEY,QAAA,iBAAiB,GAAG,wBAAa,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC"}
|
|
@@ -0,0 +1,87 @@
|
|
|
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
|
+
icon: string;
|
|
7
|
+
title: string;
|
|
8
|
+
titleEn: string;
|
|
9
|
+
userId: string;
|
|
10
|
+
avatarUrl: string;
|
|
11
|
+
userName: string;
|
|
12
|
+
level: number;
|
|
13
|
+
url: string;
|
|
14
|
+
game: string;
|
|
15
|
+
channel: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const FriendSchema: import("mongoose").Schema<Friend, import("mongoose").Model<Friend, any, any, any, Document<unknown, any, Friend, any, import("mongoose").DefaultSchemaOptions> & Friend & {
|
|
18
|
+
_id: import("mongoose").Types.ObjectId;
|
|
19
|
+
} & {
|
|
20
|
+
__v: number;
|
|
21
|
+
}, any, Friend>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Friend, Document<unknown, {}, Friend, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Friend & {
|
|
22
|
+
_id: import("mongoose").Types.ObjectId;
|
|
23
|
+
} & {
|
|
24
|
+
__v: number;
|
|
25
|
+
}, {
|
|
26
|
+
readonly ruleId?: import("mongoose").SchemaDefinitionProperty<string, Friend, Document<unknown, {}, Friend, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Friend & {
|
|
27
|
+
_id: import("mongoose").Types.ObjectId;
|
|
28
|
+
} & {
|
|
29
|
+
__v: number;
|
|
30
|
+
}>;
|
|
31
|
+
id?: import("mongoose").SchemaDefinitionProperty<string, Friend, Document<unknown, {}, Friend, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Friend & {
|
|
32
|
+
_id: import("mongoose").Types.ObjectId;
|
|
33
|
+
} & {
|
|
34
|
+
__v: number;
|
|
35
|
+
}>;
|
|
36
|
+
icon?: import("mongoose").SchemaDefinitionProperty<string, Friend, Document<unknown, {}, Friend, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Friend & {
|
|
37
|
+
_id: import("mongoose").Types.ObjectId;
|
|
38
|
+
} & {
|
|
39
|
+
__v: number;
|
|
40
|
+
}>;
|
|
41
|
+
title?: import("mongoose").SchemaDefinitionProperty<string, Friend, Document<unknown, {}, Friend, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Friend & {
|
|
42
|
+
_id: import("mongoose").Types.ObjectId;
|
|
43
|
+
} & {
|
|
44
|
+
__v: number;
|
|
45
|
+
}>;
|
|
46
|
+
titleEn?: import("mongoose").SchemaDefinitionProperty<string, Friend, Document<unknown, {}, Friend, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Friend & {
|
|
47
|
+
_id: import("mongoose").Types.ObjectId;
|
|
48
|
+
} & {
|
|
49
|
+
__v: number;
|
|
50
|
+
}>;
|
|
51
|
+
userId?: import("mongoose").SchemaDefinitionProperty<string, Friend, Document<unknown, {}, Friend, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Friend & {
|
|
52
|
+
_id: import("mongoose").Types.ObjectId;
|
|
53
|
+
} & {
|
|
54
|
+
__v: number;
|
|
55
|
+
}>;
|
|
56
|
+
avatarUrl?: import("mongoose").SchemaDefinitionProperty<string, Friend, Document<unknown, {}, Friend, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Friend & {
|
|
57
|
+
_id: import("mongoose").Types.ObjectId;
|
|
58
|
+
} & {
|
|
59
|
+
__v: number;
|
|
60
|
+
}>;
|
|
61
|
+
userName?: import("mongoose").SchemaDefinitionProperty<string, Friend, Document<unknown, {}, Friend, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Friend & {
|
|
62
|
+
_id: import("mongoose").Types.ObjectId;
|
|
63
|
+
} & {
|
|
64
|
+
__v: number;
|
|
65
|
+
}>;
|
|
66
|
+
level?: import("mongoose").SchemaDefinitionProperty<number, Friend, Document<unknown, {}, Friend, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Friend & {
|
|
67
|
+
_id: import("mongoose").Types.ObjectId;
|
|
68
|
+
} & {
|
|
69
|
+
__v: number;
|
|
70
|
+
}>;
|
|
71
|
+
url?: import("mongoose").SchemaDefinitionProperty<string, Friend, Document<unknown, {}, Friend, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Friend & {
|
|
72
|
+
_id: import("mongoose").Types.ObjectId;
|
|
73
|
+
} & {
|
|
74
|
+
__v: number;
|
|
75
|
+
}>;
|
|
76
|
+
game?: import("mongoose").SchemaDefinitionProperty<string, Friend, Document<unknown, {}, Friend, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Friend & {
|
|
77
|
+
_id: import("mongoose").Types.ObjectId;
|
|
78
|
+
} & {
|
|
79
|
+
__v: number;
|
|
80
|
+
}>;
|
|
81
|
+
channel?: import("mongoose").SchemaDefinitionProperty<string, Friend, Document<unknown, {}, Friend, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Friend & {
|
|
82
|
+
_id: import("mongoose").Types.ObjectId;
|
|
83
|
+
} & {
|
|
84
|
+
__v: number;
|
|
85
|
+
}>;
|
|
86
|
+
}, Friend>;
|
|
87
|
+
//# 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,KAAK,EAAE,MAAM,CAAC;IAGd,OAAO,EAAE,MAAM,CAAC;IAGhB,MAAM,EAAE,MAAM,CAAC;IAGf,SAAS,EAAE,MAAM,CAAC;IAGlB,QAAQ,EAAE,MAAM,CAAC;IAGjB,KAAK,EAAE,MAAM,CAAC;IAGd,GAAG,EAAE,MAAM,CAAC;IAGZ,IAAI,EAAE,MAAM,CAAC;IAGb,OAAO,EAAE,MAAM,CAAC;CAGnB;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAAuC,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
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, "icon", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, mongoose_1.Prop)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], Friend.prototype, "title", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, mongoose_1.Prop)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], Friend.prototype, "titleEn", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, mongoose_1.Prop)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], Friend.prototype, "userId", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, mongoose_1.Prop)(),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], Friend.prototype, "avatarUrl", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, mongoose_1.Prop)(),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], Friend.prototype, "userName", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, mongoose_1.Prop)(),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], Friend.prototype, "level", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, mongoose_1.Prop)(),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], Friend.prototype, "url", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, mongoose_1.Prop)(),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], Friend.prototype, "game", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, mongoose_1.Prop)(),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], Friend.prototype, "channel", void 0);
|
|
69
|
+
exports.Friend = Friend = __decorate([
|
|
70
|
+
(0, mongoose_1.Schema)({ collection: 'friends' })
|
|
71
|
+
], Friend);
|
|
72
|
+
exports.FriendSchema = mongoose_1.SchemaFactory.createForClass(Friend);
|
|
73
|
+
//# 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;CA0ClB,CAAA;AA1CY,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;;qCACO;AAGd;IADC,IAAA,eAAI,GAAE;;uCACS;AAGhB;IADC,IAAA,eAAI,GAAE;;sCACQ;AAGf;IADC,IAAA,eAAI,GAAE;;yCACW;AAGlB;IADC,IAAA,eAAI,GAAE;;wCACU;AAGjB;IADC,IAAA,eAAI,GAAE;;qCACO;AAGd;IADC,IAAA,eAAI,GAAE;;mCACK;AAGZ;IADC,IAAA,eAAI,GAAE;;oCACM;AAGb;IADC,IAAA,eAAI,GAAE;;uCACS;iBAvCP,MAAM;IADlB,IAAA,iBAAM,EAAC,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC;GACrB,MAAM,CA0ClB;AAEY,QAAA,YAAY,GAAG,wBAAa,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { Document, HydratedDocument } from 'mongoose';
|
|
2
|
+
export type GameStatisticDocument = HydratedDocument<GameStatistic>;
|
|
3
|
+
export declare class GameStatistic {
|
|
4
|
+
readonly gameStatisticId: string;
|
|
5
|
+
code: string;
|
|
6
|
+
title: string;
|
|
7
|
+
titleEn: string;
|
|
8
|
+
icon: string;
|
|
9
|
+
url: string;
|
|
10
|
+
position: number;
|
|
11
|
+
game: string;
|
|
12
|
+
channel: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const GameStatisticSchema: import("mongoose").Schema<GameStatistic, import("mongoose").Model<GameStatistic, any, any, any, (Document<unknown, any, GameStatistic, any, import("mongoose").DefaultSchemaOptions> & GameStatistic & {
|
|
15
|
+
_id: import("mongoose").Types.ObjectId;
|
|
16
|
+
} & {
|
|
17
|
+
__v: number;
|
|
18
|
+
} & {
|
|
19
|
+
id: string;
|
|
20
|
+
}) | (Document<unknown, any, GameStatistic, any, import("mongoose").DefaultSchemaOptions> & GameStatistic & {
|
|
21
|
+
_id: import("mongoose").Types.ObjectId;
|
|
22
|
+
} & {
|
|
23
|
+
__v: number;
|
|
24
|
+
}), any, GameStatistic>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, GameStatistic, Document<unknown, {}, GameStatistic, {
|
|
25
|
+
id: string;
|
|
26
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<GameStatistic & {
|
|
27
|
+
_id: import("mongoose").Types.ObjectId;
|
|
28
|
+
} & {
|
|
29
|
+
__v: number;
|
|
30
|
+
}, "id"> & {
|
|
31
|
+
id: string;
|
|
32
|
+
}, {
|
|
33
|
+
readonly gameStatisticId?: import("mongoose").SchemaDefinitionProperty<string, GameStatistic, Document<unknown, {}, GameStatistic, {
|
|
34
|
+
id: string;
|
|
35
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<GameStatistic & {
|
|
36
|
+
_id: import("mongoose").Types.ObjectId;
|
|
37
|
+
} & {
|
|
38
|
+
__v: number;
|
|
39
|
+
}, "id"> & {
|
|
40
|
+
id: string;
|
|
41
|
+
}>;
|
|
42
|
+
code?: import("mongoose").SchemaDefinitionProperty<string, GameStatistic, Document<unknown, {}, GameStatistic, {
|
|
43
|
+
id: string;
|
|
44
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<GameStatistic & {
|
|
45
|
+
_id: import("mongoose").Types.ObjectId;
|
|
46
|
+
} & {
|
|
47
|
+
__v: number;
|
|
48
|
+
}, "id"> & {
|
|
49
|
+
id: string;
|
|
50
|
+
}>;
|
|
51
|
+
title?: import("mongoose").SchemaDefinitionProperty<string, GameStatistic, Document<unknown, {}, GameStatistic, {
|
|
52
|
+
id: string;
|
|
53
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<GameStatistic & {
|
|
54
|
+
_id: import("mongoose").Types.ObjectId;
|
|
55
|
+
} & {
|
|
56
|
+
__v: number;
|
|
57
|
+
}, "id"> & {
|
|
58
|
+
id: string;
|
|
59
|
+
}>;
|
|
60
|
+
titleEn?: import("mongoose").SchemaDefinitionProperty<string, GameStatistic, Document<unknown, {}, GameStatistic, {
|
|
61
|
+
id: string;
|
|
62
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<GameStatistic & {
|
|
63
|
+
_id: import("mongoose").Types.ObjectId;
|
|
64
|
+
} & {
|
|
65
|
+
__v: number;
|
|
66
|
+
}, "id"> & {
|
|
67
|
+
id: string;
|
|
68
|
+
}>;
|
|
69
|
+
icon?: import("mongoose").SchemaDefinitionProperty<string, GameStatistic, Document<unknown, {}, GameStatistic, {
|
|
70
|
+
id: string;
|
|
71
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<GameStatistic & {
|
|
72
|
+
_id: import("mongoose").Types.ObjectId;
|
|
73
|
+
} & {
|
|
74
|
+
__v: number;
|
|
75
|
+
}, "id"> & {
|
|
76
|
+
id: string;
|
|
77
|
+
}>;
|
|
78
|
+
url?: import("mongoose").SchemaDefinitionProperty<string, GameStatistic, Document<unknown, {}, GameStatistic, {
|
|
79
|
+
id: string;
|
|
80
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<GameStatistic & {
|
|
81
|
+
_id: import("mongoose").Types.ObjectId;
|
|
82
|
+
} & {
|
|
83
|
+
__v: number;
|
|
84
|
+
}, "id"> & {
|
|
85
|
+
id: string;
|
|
86
|
+
}>;
|
|
87
|
+
position?: import("mongoose").SchemaDefinitionProperty<number, GameStatistic, Document<unknown, {}, GameStatistic, {
|
|
88
|
+
id: string;
|
|
89
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<GameStatistic & {
|
|
90
|
+
_id: import("mongoose").Types.ObjectId;
|
|
91
|
+
} & {
|
|
92
|
+
__v: number;
|
|
93
|
+
}, "id"> & {
|
|
94
|
+
id: string;
|
|
95
|
+
}>;
|
|
96
|
+
game?: import("mongoose").SchemaDefinitionProperty<string, GameStatistic, Document<unknown, {}, GameStatistic, {
|
|
97
|
+
id: string;
|
|
98
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<GameStatistic & {
|
|
99
|
+
_id: import("mongoose").Types.ObjectId;
|
|
100
|
+
} & {
|
|
101
|
+
__v: number;
|
|
102
|
+
}, "id"> & {
|
|
103
|
+
id: string;
|
|
104
|
+
}>;
|
|
105
|
+
channel?: import("mongoose").SchemaDefinitionProperty<string, GameStatistic, Document<unknown, {}, GameStatistic, {
|
|
106
|
+
id: string;
|
|
107
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<GameStatistic & {
|
|
108
|
+
_id: import("mongoose").Types.ObjectId;
|
|
109
|
+
} & {
|
|
110
|
+
__v: number;
|
|
111
|
+
}, "id"> & {
|
|
112
|
+
id: string;
|
|
113
|
+
}>;
|
|
114
|
+
}, GameStatistic>;
|
|
115
|
+
//# sourceMappingURL=game_statistic.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"game_statistic.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/game_statistic.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEtD,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC,aAAa,CAAC,CAAC;AAEpE,qBACa,aAAa;IAMtB,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IAGjC,IAAI,EAAE,MAAM,CAAC;IAGb,KAAK,EAAE,MAAM,CAAC;IAGd,OAAO,EAAE,MAAM,CAAC;IAGhB,IAAI,EAAE,MAAM,CAAC;IAGb,GAAG,EAAE,MAAM,CAAC;IAGZ,QAAQ,EAAE,MAAM,CAAC;IAGjB,IAAI,EAAE,MAAM,CAAC;IAGb,OAAO,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA8C,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.GameStatisticSchema = exports.GameStatistic = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
let GameStatistic = class GameStatistic {
|
|
15
|
+
};
|
|
16
|
+
exports.GameStatistic = GameStatistic;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, mongoose_1.Virtual)({
|
|
19
|
+
get: function () {
|
|
20
|
+
return this._id.toString();
|
|
21
|
+
},
|
|
22
|
+
}),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], GameStatistic.prototype, "gameStatisticId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, mongoose_1.Prop)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], GameStatistic.prototype, "code", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, mongoose_1.Prop)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], GameStatistic.prototype, "title", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, mongoose_1.Prop)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], GameStatistic.prototype, "titleEn", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, mongoose_1.Prop)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], GameStatistic.prototype, "icon", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, mongoose_1.Prop)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], GameStatistic.prototype, "url", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, mongoose_1.Prop)(),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], GameStatistic.prototype, "position", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, mongoose_1.Prop)(),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], GameStatistic.prototype, "game", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, mongoose_1.Prop)(),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], GameStatistic.prototype, "channel", void 0);
|
|
57
|
+
exports.GameStatistic = GameStatistic = __decorate([
|
|
58
|
+
(0, mongoose_1.Schema)({ collection: 'game_statistics' })
|
|
59
|
+
], GameStatistic);
|
|
60
|
+
exports.GameStatisticSchema = mongoose_1.SchemaFactory.createForClass(GameStatistic);
|
|
61
|
+
//# sourceMappingURL=game_statistic.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"game_statistic.schema.js","sourceRoot":"","sources":["../../src/schemas/game_statistic.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAwE;AAMjE,IAAM,aAAa,GAAnB,MAAM,aAAa;CA+BzB,CAAA;AA/BY,sCAAa;AAMb;IALR,IAAA,kBAAO,EAAC;QACL,GAAG,EAAE;YACD,OAAO,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;QAC/B,CAAC;KACJ,CAAC;;sDAC+B;AAGjC;IADC,IAAA,eAAI,GAAE;;2CACM;AAGb;IADC,IAAA,eAAI,GAAE;;4CACO;AAGd;IADC,IAAA,eAAI,GAAE;;8CACS;AAGhB;IADC,IAAA,eAAI,GAAE;;2CACM;AAGb;IADC,IAAA,eAAI,GAAE;;0CACK;AAGZ;IADC,IAAA,eAAI,GAAE;;+CACU;AAGjB;IADC,IAAA,eAAI,GAAE;;2CACM;AAGb;IADC,IAAA,eAAI,GAAE;;8CACS;wBA9BP,aAAa;IADzB,IAAA,iBAAM,EAAC,EAAE,UAAU,EAAE,iBAAiB,EAAE,CAAC;GAC7B,aAAa,CA+BzB;AAEY,QAAA,mBAAmB,GAAG,wBAAa,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC"}
|
|
@@ -2,16 +2,13 @@ import { Document, HydratedDocument } from 'mongoose';
|
|
|
2
2
|
export type RatingDocument = HydratedDocument<Rating>;
|
|
3
3
|
export declare class Rating {
|
|
4
4
|
readonly achievementId: string;
|
|
5
|
-
|
|
6
|
-
month: string;
|
|
5
|
+
date: Date;
|
|
7
6
|
userId: string;
|
|
8
7
|
userName: string;
|
|
9
8
|
userAvatarUrl: string;
|
|
10
9
|
profit: number;
|
|
11
|
-
lost: number;
|
|
12
|
-
gamesPlayed: number;
|
|
13
|
-
gamesWon: number;
|
|
14
10
|
game: string;
|
|
11
|
+
channels: string;
|
|
15
12
|
}
|
|
16
13
|
export declare const RatingSchema: import("mongoose").Schema<Rating, import("mongoose").Model<Rating, any, any, any, (Document<unknown, any, Rating, any, import("mongoose").DefaultSchemaOptions> & Rating & {
|
|
17
14
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -41,16 +38,7 @@ export declare const RatingSchema: import("mongoose").Schema<Rating, import("mon
|
|
|
41
38
|
}, "id"> & {
|
|
42
39
|
id: string;
|
|
43
40
|
}>;
|
|
44
|
-
|
|
45
|
-
id: string;
|
|
46
|
-
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<Rating & {
|
|
47
|
-
_id: import("mongoose").Types.ObjectId;
|
|
48
|
-
} & {
|
|
49
|
-
__v: number;
|
|
50
|
-
}, "id"> & {
|
|
51
|
-
id: string;
|
|
52
|
-
}>;
|
|
53
|
-
month?: import("mongoose").SchemaDefinitionProperty<string, Rating, Document<unknown, {}, Rating, {
|
|
41
|
+
date?: import("mongoose").SchemaDefinitionProperty<Date, Rating, Document<unknown, {}, Rating, {
|
|
54
42
|
id: string;
|
|
55
43
|
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<Rating & {
|
|
56
44
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -95,25 +83,7 @@ export declare const RatingSchema: import("mongoose").Schema<Rating, import("mon
|
|
|
95
83
|
}, "id"> & {
|
|
96
84
|
id: string;
|
|
97
85
|
}>;
|
|
98
|
-
|
|
99
|
-
id: string;
|
|
100
|
-
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<Rating & {
|
|
101
|
-
_id: import("mongoose").Types.ObjectId;
|
|
102
|
-
} & {
|
|
103
|
-
__v: number;
|
|
104
|
-
}, "id"> & {
|
|
105
|
-
id: string;
|
|
106
|
-
}>;
|
|
107
|
-
gamesPlayed?: import("mongoose").SchemaDefinitionProperty<number, Rating, Document<unknown, {}, Rating, {
|
|
108
|
-
id: string;
|
|
109
|
-
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<Rating & {
|
|
110
|
-
_id: import("mongoose").Types.ObjectId;
|
|
111
|
-
} & {
|
|
112
|
-
__v: number;
|
|
113
|
-
}, "id"> & {
|
|
114
|
-
id: string;
|
|
115
|
-
}>;
|
|
116
|
-
gamesWon?: import("mongoose").SchemaDefinitionProperty<number, Rating, Document<unknown, {}, Rating, {
|
|
86
|
+
game?: import("mongoose").SchemaDefinitionProperty<string, Rating, Document<unknown, {}, Rating, {
|
|
117
87
|
id: string;
|
|
118
88
|
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<Rating & {
|
|
119
89
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -122,7 +92,7 @@ export declare const RatingSchema: import("mongoose").Schema<Rating, import("mon
|
|
|
122
92
|
}, "id"> & {
|
|
123
93
|
id: string;
|
|
124
94
|
}>;
|
|
125
|
-
|
|
95
|
+
channels?: import("mongoose").SchemaDefinitionProperty<string, Rating, Document<unknown, {}, Rating, {
|
|
126
96
|
id: string;
|
|
127
97
|
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<Rating & {
|
|
128
98
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rating.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/rating.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,aAAa,EAAE,MAAM,CAAC;IAG/B,
|
|
1
|
+
{"version":3,"file":"rating.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/rating.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,aAAa,EAAE,MAAM,CAAC;IAG/B,IAAI,EAAE,IAAI,CAAC;IAGX,MAAM,EAAE,MAAM,CAAC;IAGf,QAAQ,EAAE,MAAM,CAAC;IAGjB,aAAa,EAAE,MAAM,CAAC;IAGtB,MAAM,EAAE,MAAM,CAAC;IAGf,IAAI,EAAE,MAAM,CAAC;IAGb,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAAuC,CAAC"}
|
|
@@ -24,12 +24,8 @@ __decorate([
|
|
|
24
24
|
], Rating.prototype, "achievementId", void 0);
|
|
25
25
|
__decorate([
|
|
26
26
|
(0, mongoose_1.Prop)(),
|
|
27
|
-
__metadata("design:type",
|
|
28
|
-
], Rating.prototype, "
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, mongoose_1.Prop)(),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], Rating.prototype, "month", void 0);
|
|
27
|
+
__metadata("design:type", Date)
|
|
28
|
+
], Rating.prototype, "date", void 0);
|
|
33
29
|
__decorate([
|
|
34
30
|
(0, mongoose_1.Prop)(),
|
|
35
31
|
__metadata("design:type", String)
|
|
@@ -48,20 +44,12 @@ __decorate([
|
|
|
48
44
|
], Rating.prototype, "profit", void 0);
|
|
49
45
|
__decorate([
|
|
50
46
|
(0, mongoose_1.Prop)(),
|
|
51
|
-
__metadata("design:type",
|
|
52
|
-
], Rating.prototype, "
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, mongoose_1.Prop)(),
|
|
55
|
-
__metadata("design:type", Number)
|
|
56
|
-
], Rating.prototype, "gamesPlayed", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, mongoose_1.Prop)(),
|
|
59
|
-
__metadata("design:type", Number)
|
|
60
|
-
], Rating.prototype, "gamesWon", void 0);
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], Rating.prototype, "game", void 0);
|
|
61
49
|
__decorate([
|
|
62
50
|
(0, mongoose_1.Prop)(),
|
|
63
51
|
__metadata("design:type", String)
|
|
64
|
-
], Rating.prototype, "
|
|
52
|
+
], Rating.prototype, "channels", void 0);
|
|
65
53
|
exports.Rating = Rating = __decorate([
|
|
66
54
|
(0, mongoose_1.Schema)()
|
|
67
55
|
], Rating);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rating.schema.js","sourceRoot":"","sources":["../../src/schemas/rating.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAwE;AAMjE,IAAM,MAAM,GAAZ,MAAM,MAAM;
|
|
1
|
+
{"version":3,"file":"rating.schema.js","sourceRoot":"","sources":["../../src/schemas/rating.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAwE;AAMjE,IAAM,MAAM,GAAZ,MAAM,MAAM;CA4BlB,CAAA;AA5BY,wBAAM;AAMN;IALR,IAAA,kBAAO,EAAC;QACL,GAAG,EAAE;YACD,OAAO,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;QAC/B,CAAC;KACJ,CAAC;;6CAC6B;AAG/B;IADC,IAAA,eAAI,GAAE;8BACD,IAAI;oCAAC;AAGX;IADC,IAAA,eAAI,GAAE;;sCACQ;AAGf;IADC,IAAA,eAAI,GAAE;;wCACU;AAGjB;IADC,IAAA,eAAI,GAAE;;6CACe;AAGtB;IADC,IAAA,eAAI,GAAE;;sCACQ;AAGf;IADC,IAAA,eAAI,GAAE;;oCACM;AAGb;IADC,IAAA,eAAI,GAAE;;wCACU;iBA3BR,MAAM;IADlB,IAAA,iBAAM,GAAE;GACI,MAAM,CA4BlB;AAEY,QAAA,YAAY,GAAG,wBAAa,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC"}
|