jp.db.schemas 1.0.22 → 1.0.23
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/repositories/users.repository.d.ts +1 -1
- package/dist/repositories/users.repository.d.ts.map +1 -1
- package/dist/repositories/users.repository.js.map +1 -1
- package/dist/schemas/user.schema.d.ts +40 -40
- package/dist/schemas/user.schema.d.ts.map +1 -1
- package/dist/schemas/user.schema.js +60 -180
- package/dist/schemas/user.schema.js.map +1 -1
- package/package.json +1 -1
- package/src/repositories/users.repository.ts +1 -1
- package/src/schemas/user.schema.ts +86 -136
|
@@ -9,7 +9,7 @@ export declare class UsersRepository {
|
|
|
9
9
|
items: Array<User>;
|
|
10
10
|
total: number;
|
|
11
11
|
}>;
|
|
12
|
-
createUser(user: User): Promise<User>;
|
|
12
|
+
createUser(user: Partial<User>): Promise<User>;
|
|
13
13
|
updateUser(userId: string, user: Partial<User>, balanceAdding?: number): Promise<UserDocument | null>;
|
|
14
14
|
}
|
|
15
15
|
//# sourceMappingURL=users.repository.d.ts.map
|
|
@@ -1 +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;
|
|
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,OAAO,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAI/C,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"}
|
|
@@ -1 +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,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CAAC;IAC5B,CAAC;IAED,KAAK,CAAC,UAAU,CAAE,IAAmB;QACjC,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"}
|
|
@@ -20,28 +20,7 @@ export type IUserFriend = {
|
|
|
20
20
|
channelId: string;
|
|
21
21
|
lastVisitChannel?: Date;
|
|
22
22
|
};
|
|
23
|
-
export
|
|
24
|
-
readonly userId: string;
|
|
25
|
-
login?: string;
|
|
26
|
-
password?: string;
|
|
27
|
-
fullName: string;
|
|
28
|
-
fullNameAlias: string;
|
|
29
|
-
balance: number;
|
|
30
|
-
avatarUrl: string;
|
|
31
|
-
avatarAliasUrl: string;
|
|
32
|
-
avatarFrame: string;
|
|
33
|
-
theme: string;
|
|
34
|
-
language: string;
|
|
35
|
-
cardSkin: string;
|
|
36
|
-
gameSounds: string;
|
|
37
|
-
vkUser?: VKUser;
|
|
38
|
-
okUser?: OKUserLocation;
|
|
39
|
-
yaUser?: YAUser;
|
|
40
|
-
googleUser?: GoogleUser;
|
|
41
|
-
fbUser?: FBUser;
|
|
42
|
-
tgUser?: TGUser;
|
|
43
|
-
everydayEnterCount: number;
|
|
44
|
-
lastEnter: Date;
|
|
23
|
+
export type ILastLogin = {
|
|
45
24
|
lastLoginClientVersion: string;
|
|
46
25
|
lastLoginClientChannel: string;
|
|
47
26
|
lastLoginClientDevice: string;
|
|
@@ -50,26 +29,12 @@ export declare class User {
|
|
|
50
29
|
lastLoginClientDeviceWidth: number;
|
|
51
30
|
lastLoginClientDeviceHeight: number;
|
|
52
31
|
lastLoginClientIsMobile: boolean;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
lastReadNotificationsDate?: Date;
|
|
56
|
-
experience: number;
|
|
57
|
-
level: number;
|
|
32
|
+
};
|
|
33
|
+
export type IGameStatistics = {
|
|
58
34
|
gamesPlayed: number;
|
|
59
35
|
gamesWon: number;
|
|
60
36
|
gamesTheBestSet: number;
|
|
61
37
|
gamesMaxProfit: number;
|
|
62
|
-
isBannedInChat: boolean;
|
|
63
|
-
friends: IUserFriend[];
|
|
64
|
-
roomTable: string;
|
|
65
|
-
disableEditName: boolean;
|
|
66
|
-
winnerRatings: Array<IUserWinnerRating>;
|
|
67
|
-
colorSchema: string;
|
|
68
|
-
registerDate: Date;
|
|
69
|
-
premiumExpired: Date;
|
|
70
|
-
watchedPremiumExpiredScreenCounter: number;
|
|
71
|
-
lastRewardAdvView?: Date;
|
|
72
|
-
achievements?: Array<string>;
|
|
73
38
|
earnProfitCount: number;
|
|
74
39
|
winSharksCount: number;
|
|
75
40
|
fastTournamentsWonCount: number;
|
|
@@ -84,9 +49,44 @@ export declare class User {
|
|
|
84
49
|
setFullHouseCount: number;
|
|
85
50
|
setFourOfAKindCount: number;
|
|
86
51
|
setStraightFlushCount: number;
|
|
87
|
-
|
|
52
|
+
};
|
|
53
|
+
export declare class User {
|
|
54
|
+
readonly userId: string;
|
|
55
|
+
fullName: string;
|
|
56
|
+
balance: number;
|
|
57
|
+
avatarUrl: string;
|
|
58
|
+
premiumExpired: Date;
|
|
59
|
+
fullNameAlias: string;
|
|
60
|
+
avatarAliasUrl: string;
|
|
61
|
+
theme: string;
|
|
62
|
+
language: string;
|
|
63
|
+
avatarFrame: string;
|
|
64
|
+
cardSkin: string;
|
|
65
|
+
gameSounds: string;
|
|
88
66
|
bgPattern: string;
|
|
89
|
-
|
|
67
|
+
roomTable: string;
|
|
68
|
+
colorSchema: string;
|
|
69
|
+
vkUser?: VKUser;
|
|
70
|
+
okUser?: OKUserLocation;
|
|
71
|
+
yaUser?: YAUser;
|
|
72
|
+
googleUser?: GoogleUser;
|
|
73
|
+
fbUser?: FBUser;
|
|
74
|
+
tgUser?: TGUser;
|
|
75
|
+
experience: number;
|
|
76
|
+
level: number;
|
|
77
|
+
everydayEnterCount: number;
|
|
78
|
+
lastEnter: Date;
|
|
79
|
+
isBannedInChat: boolean;
|
|
80
|
+
registerDate: Date;
|
|
81
|
+
watchedPremiumExpiredScreenCounter: number;
|
|
82
|
+
lastRewardAdvView?: Date;
|
|
83
|
+
lastLogin: ILastLogin;
|
|
84
|
+
gameStatistics: IGameStatistics;
|
|
85
|
+
purchases: Array<Purchase>;
|
|
86
|
+
friends: Array<IUserFriend>;
|
|
87
|
+
winnerRatings: Array<IUserWinnerRating>;
|
|
88
|
+
achievements: Array<string>;
|
|
89
|
+
bannedUsers: Array<string>;
|
|
90
90
|
}
|
|
91
91
|
export declare const UserSchema: import("mongoose").Schema<User, import("mongoose").Model<User, any, any, any, Document<unknown, any, User, any> & User & {
|
|
92
92
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/user.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEtD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;A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;IAGxC,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAG5B,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC9B;AAED,eAAO,MAAM,UAAU;;;;;;;;EAAqC,CAAC"}
|
|
@@ -29,53 +29,61 @@ __decorate([
|
|
|
29
29
|
__metadata("design:type", String)
|
|
30
30
|
], User.prototype, "userId", void 0);
|
|
31
31
|
__decorate([
|
|
32
|
-
(0, mongoose_1.Prop)(),
|
|
33
|
-
__metadata("design:type", String)
|
|
34
|
-
], User.prototype, "login", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, mongoose_1.Prop)(),
|
|
37
|
-
__metadata("design:type", String)
|
|
38
|
-
], User.prototype, "password", void 0);
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, mongoose_1.Prop)(),
|
|
32
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
41
33
|
__metadata("design:type", String)
|
|
42
34
|
], User.prototype, "fullName", void 0);
|
|
43
35
|
__decorate([
|
|
44
|
-
(0, mongoose_1.Prop)(),
|
|
45
|
-
__metadata("design:type", String)
|
|
46
|
-
], User.prototype, "fullNameAlias", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, mongoose_1.Prop)(),
|
|
36
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
49
37
|
__metadata("design:type", Number)
|
|
50
38
|
], User.prototype, "balance", void 0);
|
|
51
39
|
__decorate([
|
|
52
|
-
(0, mongoose_1.Prop)(),
|
|
40
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
53
41
|
__metadata("design:type", String)
|
|
54
42
|
], User.prototype, "avatarUrl", void 0);
|
|
55
43
|
__decorate([
|
|
56
|
-
(0, mongoose_1.Prop)(),
|
|
44
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
45
|
+
__metadata("design:type", Date)
|
|
46
|
+
], User.prototype, "premiumExpired", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, mongoose_1.Prop)({ default: '' }),
|
|
57
49
|
__metadata("design:type", String)
|
|
58
|
-
], User.prototype, "
|
|
50
|
+
], User.prototype, "fullNameAlias", void 0);
|
|
59
51
|
__decorate([
|
|
60
|
-
(0, mongoose_1.Prop)(),
|
|
52
|
+
(0, mongoose_1.Prop)({ default: '' }),
|
|
61
53
|
__metadata("design:type", String)
|
|
62
|
-
], User.prototype, "
|
|
54
|
+
], User.prototype, "avatarAliasUrl", void 0);
|
|
63
55
|
__decorate([
|
|
64
|
-
(0, mongoose_1.Prop)(),
|
|
56
|
+
(0, mongoose_1.Prop)({ default: 'theme__light' }),
|
|
65
57
|
__metadata("design:type", String)
|
|
66
58
|
], User.prototype, "theme", void 0);
|
|
67
59
|
__decorate([
|
|
68
|
-
(0, mongoose_1.Prop)(),
|
|
60
|
+
(0, mongoose_1.Prop)({ default: 'language__ru' }),
|
|
69
61
|
__metadata("design:type", String)
|
|
70
62
|
], User.prototype, "language", void 0);
|
|
71
63
|
__decorate([
|
|
72
|
-
(0, mongoose_1.Prop)(),
|
|
64
|
+
(0, mongoose_1.Prop)({ default: 'avatar_frame__default' }),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], User.prototype, "avatarFrame", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, mongoose_1.Prop)({ default: 'card_skin__default' }),
|
|
73
69
|
__metadata("design:type", String)
|
|
74
70
|
], User.prototype, "cardSkin", void 0);
|
|
75
71
|
__decorate([
|
|
76
|
-
(0, mongoose_1.Prop)(),
|
|
72
|
+
(0, mongoose_1.Prop)({ default: 'game_sounds__on' }),
|
|
77
73
|
__metadata("design:type", String)
|
|
78
74
|
], User.prototype, "gameSounds", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, mongoose_1.Prop)({ default: 'bg_pattern__default' }),
|
|
77
|
+
__metadata("design:type", String)
|
|
78
|
+
], User.prototype, "bgPattern", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, mongoose_1.Prop)({ default: 'room_table__on' }),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], User.prototype, "roomTable", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, mongoose_1.Prop)({ default: 'color_schema__default' }),
|
|
85
|
+
__metadata("design:type", String)
|
|
86
|
+
], User.prototype, "colorSchema", void 0);
|
|
79
87
|
__decorate([
|
|
80
88
|
(0, mongoose_1.Prop)({ type: user_vk_schema_1.VKUser }),
|
|
81
89
|
__metadata("design:type", user_vk_schema_1.VKUser)
|
|
@@ -101,115 +109,31 @@ __decorate([
|
|
|
101
109
|
__metadata("design:type", user_tg_schema_1.TGUser)
|
|
102
110
|
], User.prototype, "tgUser", void 0);
|
|
103
111
|
__decorate([
|
|
104
|
-
(0, mongoose_1.Prop)(),
|
|
105
|
-
__metadata("design:type", Number)
|
|
106
|
-
], User.prototype, "everydayEnterCount", void 0);
|
|
107
|
-
__decorate([
|
|
108
|
-
(0, mongoose_1.Prop)(),
|
|
109
|
-
__metadata("design:type", Date)
|
|
110
|
-
], User.prototype, "lastEnter", void 0);
|
|
111
|
-
__decorate([
|
|
112
|
-
(0, mongoose_1.Prop)(),
|
|
113
|
-
__metadata("design:type", String)
|
|
114
|
-
], User.prototype, "lastLoginClientVersion", void 0);
|
|
115
|
-
__decorate([
|
|
116
|
-
(0, mongoose_1.Prop)(),
|
|
117
|
-
__metadata("design:type", String)
|
|
118
|
-
], User.prototype, "lastLoginClientChannel", void 0);
|
|
119
|
-
__decorate([
|
|
120
|
-
(0, mongoose_1.Prop)(),
|
|
121
|
-
__metadata("design:type", String)
|
|
122
|
-
], User.prototype, "lastLoginClientDevice", void 0);
|
|
123
|
-
__decorate([
|
|
124
|
-
(0, mongoose_1.Prop)(),
|
|
125
|
-
__metadata("design:type", String)
|
|
126
|
-
], User.prototype, "lastLoginClientOS", void 0);
|
|
127
|
-
__decorate([
|
|
128
|
-
(0, mongoose_1.Prop)(),
|
|
129
|
-
__metadata("design:type", String)
|
|
130
|
-
], User.prototype, "lastLoginClientBrowser", void 0);
|
|
131
|
-
__decorate([
|
|
132
|
-
(0, mongoose_1.Prop)(),
|
|
133
|
-
__metadata("design:type", Number)
|
|
134
|
-
], User.prototype, "lastLoginClientDeviceWidth", void 0);
|
|
135
|
-
__decorate([
|
|
136
|
-
(0, mongoose_1.Prop)(),
|
|
137
|
-
__metadata("design:type", Number)
|
|
138
|
-
], User.prototype, "lastLoginClientDeviceHeight", void 0);
|
|
139
|
-
__decorate([
|
|
140
|
-
(0, mongoose_1.Prop)(),
|
|
141
|
-
__metadata("design:type", Boolean)
|
|
142
|
-
], User.prototype, "lastLoginClientIsMobile", void 0);
|
|
143
|
-
__decorate([
|
|
144
|
-
(0, mongoose_1.Prop)({ type: (Array) }),
|
|
145
|
-
__metadata("design:type", Array)
|
|
146
|
-
], User.prototype, "purchases", void 0);
|
|
147
|
-
__decorate([
|
|
148
|
-
(0, mongoose_1.Prop)(),
|
|
149
|
-
__metadata("design:type", Array)
|
|
150
|
-
], User.prototype, "likedNotifications", void 0);
|
|
151
|
-
__decorate([
|
|
152
|
-
(0, mongoose_1.Prop)(),
|
|
153
|
-
__metadata("design:type", Date)
|
|
154
|
-
], User.prototype, "lastReadNotificationsDate", void 0);
|
|
155
|
-
__decorate([
|
|
156
|
-
(0, mongoose_1.Prop)(),
|
|
112
|
+
(0, mongoose_1.Prop)({ default: 0 }),
|
|
157
113
|
__metadata("design:type", Number)
|
|
158
114
|
], User.prototype, "experience", void 0);
|
|
159
115
|
__decorate([
|
|
160
|
-
(0, mongoose_1.Prop)(),
|
|
116
|
+
(0, mongoose_1.Prop)({ default: 1 }),
|
|
161
117
|
__metadata("design:type", Number)
|
|
162
118
|
], User.prototype, "level", void 0);
|
|
163
119
|
__decorate([
|
|
164
|
-
(0, mongoose_1.Prop)(),
|
|
165
|
-
__metadata("design:type", Number)
|
|
166
|
-
], User.prototype, "gamesPlayed", void 0);
|
|
167
|
-
__decorate([
|
|
168
|
-
(0, mongoose_1.Prop)(),
|
|
169
|
-
__metadata("design:type", Number)
|
|
170
|
-
], User.prototype, "gamesWon", void 0);
|
|
171
|
-
__decorate([
|
|
172
|
-
(0, mongoose_1.Prop)(),
|
|
120
|
+
(0, mongoose_1.Prop)({ default: '' }),
|
|
173
121
|
__metadata("design:type", Number)
|
|
174
|
-
], User.prototype, "
|
|
122
|
+
], User.prototype, "everydayEnterCount", void 0);
|
|
175
123
|
__decorate([
|
|
176
|
-
(0, mongoose_1.Prop)(),
|
|
177
|
-
__metadata("design:type",
|
|
178
|
-
], User.prototype, "
|
|
124
|
+
(0, mongoose_1.Prop)({ default: new Date() }),
|
|
125
|
+
__metadata("design:type", Date)
|
|
126
|
+
], User.prototype, "lastEnter", void 0);
|
|
179
127
|
__decorate([
|
|
180
|
-
(0, mongoose_1.Prop)(),
|
|
128
|
+
(0, mongoose_1.Prop)({ default: false }),
|
|
181
129
|
__metadata("design:type", Boolean)
|
|
182
130
|
], User.prototype, "isBannedInChat", void 0);
|
|
183
131
|
__decorate([
|
|
184
|
-
(0, mongoose_1.Prop)(),
|
|
185
|
-
__metadata("design:type", Array)
|
|
186
|
-
], User.prototype, "friends", void 0);
|
|
187
|
-
__decorate([
|
|
188
|
-
(0, mongoose_1.Prop)(),
|
|
189
|
-
__metadata("design:type", String)
|
|
190
|
-
], User.prototype, "roomTable", void 0);
|
|
191
|
-
__decorate([
|
|
192
|
-
(0, mongoose_1.Prop)(),
|
|
193
|
-
__metadata("design:type", Boolean)
|
|
194
|
-
], User.prototype, "disableEditName", void 0);
|
|
195
|
-
__decorate([
|
|
196
|
-
(0, mongoose_1.Prop)(),
|
|
197
|
-
__metadata("design:type", Array)
|
|
198
|
-
], User.prototype, "winnerRatings", void 0);
|
|
199
|
-
__decorate([
|
|
200
|
-
(0, mongoose_1.Prop)(),
|
|
201
|
-
__metadata("design:type", String)
|
|
202
|
-
], User.prototype, "colorSchema", void 0);
|
|
203
|
-
__decorate([
|
|
204
|
-
(0, mongoose_1.Prop)(),
|
|
132
|
+
(0, mongoose_1.Prop)({ default: new Date() }),
|
|
205
133
|
__metadata("design:type", Date)
|
|
206
134
|
], User.prototype, "registerDate", void 0);
|
|
207
135
|
__decorate([
|
|
208
|
-
(0, mongoose_1.Prop)(),
|
|
209
|
-
__metadata("design:type", Date)
|
|
210
|
-
], User.prototype, "premiumExpired", void 0);
|
|
211
|
-
__decorate([
|
|
212
|
-
(0, mongoose_1.Prop)(),
|
|
136
|
+
(0, mongoose_1.Prop)({ default: 0 }),
|
|
213
137
|
__metadata("design:type", Number)
|
|
214
138
|
], User.prototype, "watchedPremiumExpiredScreenCounter", void 0);
|
|
215
139
|
__decorate([
|
|
@@ -217,77 +141,33 @@ __decorate([
|
|
|
217
141
|
__metadata("design:type", Date)
|
|
218
142
|
], User.prototype, "lastRewardAdvView", void 0);
|
|
219
143
|
__decorate([
|
|
220
|
-
(0, mongoose_1.Prop)(),
|
|
221
|
-
__metadata("design:type",
|
|
222
|
-
], User.prototype, "
|
|
223
|
-
__decorate([
|
|
224
|
-
(0, mongoose_1.Prop)(),
|
|
225
|
-
__metadata("design:type", Number)
|
|
226
|
-
], User.prototype, "earnProfitCount", void 0);
|
|
144
|
+
(0, mongoose_1.Prop)({ default: {} }),
|
|
145
|
+
__metadata("design:type", Object)
|
|
146
|
+
], User.prototype, "lastLogin", void 0);
|
|
227
147
|
__decorate([
|
|
228
|
-
(0, mongoose_1.Prop)(),
|
|
229
|
-
__metadata("design:type",
|
|
230
|
-
], User.prototype, "
|
|
148
|
+
(0, mongoose_1.Prop)({ default: {} }),
|
|
149
|
+
__metadata("design:type", Object)
|
|
150
|
+
], User.prototype, "gameStatistics", void 0);
|
|
231
151
|
__decorate([
|
|
232
|
-
(0, mongoose_1.Prop)(),
|
|
233
|
-
__metadata("design:type",
|
|
234
|
-
], User.prototype, "
|
|
235
|
-
__decorate([
|
|
236
|
-
(0, mongoose_1.Prop)(),
|
|
237
|
-
__metadata("design:type", Number)
|
|
238
|
-
], User.prototype, "allInWinCount", void 0);
|
|
239
|
-
__decorate([
|
|
240
|
-
(0, mongoose_1.Prop)(),
|
|
241
|
-
__metadata("design:type", Number)
|
|
242
|
-
], User.prototype, "watchedAdvRewardCount", void 0);
|
|
243
|
-
__decorate([
|
|
244
|
-
(0, mongoose_1.Prop)(),
|
|
245
|
-
__metadata("design:type", Number)
|
|
246
|
-
], User.prototype, "textedMessagesCount", void 0);
|
|
247
|
-
__decorate([
|
|
248
|
-
(0, mongoose_1.Prop)(),
|
|
249
|
-
__metadata("design:type", Number)
|
|
250
|
-
], User.prototype, "sentReactionsCount", void 0);
|
|
251
|
-
__decorate([
|
|
252
|
-
(0, mongoose_1.Prop)(),
|
|
253
|
-
__metadata("design:type", Number)
|
|
254
|
-
], User.prototype, "setTwoPairCount", void 0);
|
|
255
|
-
__decorate([
|
|
256
|
-
(0, mongoose_1.Prop)(),
|
|
257
|
-
__metadata("design:type", Number)
|
|
258
|
-
], User.prototype, "setThreeOfAKind", void 0);
|
|
259
|
-
__decorate([
|
|
260
|
-
(0, mongoose_1.Prop)(),
|
|
261
|
-
__metadata("design:type", Number)
|
|
262
|
-
], User.prototype, "setStraightCount", void 0);
|
|
263
|
-
__decorate([
|
|
264
|
-
(0, mongoose_1.Prop)(),
|
|
265
|
-
__metadata("design:type", Number)
|
|
266
|
-
], User.prototype, "setFlushCount", void 0);
|
|
152
|
+
(0, mongoose_1.Prop)({ type: (Array), default: [] }),
|
|
153
|
+
__metadata("design:type", Array)
|
|
154
|
+
], User.prototype, "purchases", void 0);
|
|
267
155
|
__decorate([
|
|
268
|
-
(0, mongoose_1.Prop)(),
|
|
269
|
-
__metadata("design:type",
|
|
270
|
-
], User.prototype, "
|
|
156
|
+
(0, mongoose_1.Prop)({ default: [] }),
|
|
157
|
+
__metadata("design:type", Array)
|
|
158
|
+
], User.prototype, "friends", void 0);
|
|
271
159
|
__decorate([
|
|
272
|
-
(0, mongoose_1.Prop)(),
|
|
273
|
-
__metadata("design:type",
|
|
274
|
-
], User.prototype, "
|
|
160
|
+
(0, mongoose_1.Prop)({ default: [] }),
|
|
161
|
+
__metadata("design:type", Array)
|
|
162
|
+
], User.prototype, "winnerRatings", void 0);
|
|
275
163
|
__decorate([
|
|
276
|
-
(0, mongoose_1.Prop)(),
|
|
277
|
-
__metadata("design:type",
|
|
278
|
-
], User.prototype, "
|
|
164
|
+
(0, mongoose_1.Prop)({ default: [] }),
|
|
165
|
+
__metadata("design:type", Array)
|
|
166
|
+
], User.prototype, "achievements", void 0);
|
|
279
167
|
__decorate([
|
|
280
|
-
(0, mongoose_1.Prop)(),
|
|
168
|
+
(0, mongoose_1.Prop)({ default: [] }),
|
|
281
169
|
__metadata("design:type", Array)
|
|
282
170
|
], User.prototype, "bannedUsers", void 0);
|
|
283
|
-
__decorate([
|
|
284
|
-
(0, mongoose_1.Prop)(),
|
|
285
|
-
__metadata("design:type", String)
|
|
286
|
-
], User.prototype, "bgPattern", void 0);
|
|
287
|
-
__decorate([
|
|
288
|
-
(0, mongoose_1.Prop)(),
|
|
289
|
-
__metadata("design:type", Boolean)
|
|
290
|
-
], User.prototype, "isNewUser", void 0);
|
|
291
171
|
exports.User = User = __decorate([
|
|
292
172
|
(0, mongoose_1.Schema)()
|
|
293
173
|
], User);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.schema.js","sourceRoot":"","sources":["../../src/schemas/user.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAwE;AAGxE,qDAA0C;AAE1C,qDAAkD;AAClD,qDAA0C;AAC1C,qDAA0C;AAC1C,6DAAkD;AAClD,qDAA0C;
|
|
1
|
+
{"version":3,"file":"user.schema.js","sourceRoot":"","sources":["../../src/schemas/user.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAwE;AAGxE,qDAA0C;AAE1C,qDAAkD;AAClD,qDAA0C;AAC1C,qDAA0C;AAC1C,6DAAkD;AAClD,qDAA0C;AAoDnC,IAAM,IAAI,GAAV,MAAM,IAAI;CAwHhB,CAAA;AAx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AAE,CAAC;;4CACU;AAGhC;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,CAAA,KAAe,CAAA,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;8BAClC,KAAK;uCAAW;AAG3B;IADC,IAAA,eAAI,EAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;8BACb,KAAK;qCAAc;AAG5B;IADC,IAAA,eAAI,EAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;8BACP,KAAK;2CAAoB;AAGxC;IADC,IAAA,eAAI,EAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;8BACR,KAAK;0CAAS;AAG5B;IADC,IAAA,eAAI,EAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;8BACT,KAAK;yCAAS;eAvHlB,IAAI;IADhB,IAAA,iBAAM,GAAE;GACI,IAAI,CAwHhB;AAEY,QAAA,UAAU,GAAG,wBAAa,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -26,6 +26,38 @@ export type IUserFriend = {
|
|
|
26
26
|
lastVisitChannel?: Date;
|
|
27
27
|
};
|
|
28
28
|
|
|
29
|
+
export type ILastLogin = {
|
|
30
|
+
lastLoginClientVersion: string;
|
|
31
|
+
lastLoginClientChannel: string;
|
|
32
|
+
lastLoginClientDevice: string;
|
|
33
|
+
lastLoginClientOS: string;
|
|
34
|
+
lastLoginClientBrowser: string;
|
|
35
|
+
lastLoginClientDeviceWidth: number;
|
|
36
|
+
lastLoginClientDeviceHeight: number;
|
|
37
|
+
lastLoginClientIsMobile: boolean;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export type IGameStatistics = {
|
|
41
|
+
gamesPlayed: number;
|
|
42
|
+
gamesWon: number;
|
|
43
|
+
gamesTheBestSet: number;
|
|
44
|
+
gamesMaxProfit: number;
|
|
45
|
+
earnProfitCount: number;
|
|
46
|
+
winSharksCount: number;
|
|
47
|
+
fastTournamentsWonCount: number;
|
|
48
|
+
allInWinCount: number;
|
|
49
|
+
watchedAdvRewardCount: number;
|
|
50
|
+
textedMessagesCount: number;
|
|
51
|
+
sentReactionsCount: number;
|
|
52
|
+
setTwoPairCount: number;
|
|
53
|
+
setThreeOfAKind: number;
|
|
54
|
+
setStraightCount: number;
|
|
55
|
+
setFlushCount: number;
|
|
56
|
+
setFullHouseCount: number;
|
|
57
|
+
setFourOfAKindCount: number;
|
|
58
|
+
setStraightFlushCount: number;
|
|
59
|
+
}
|
|
60
|
+
|
|
29
61
|
@Schema()
|
|
30
62
|
export class User {
|
|
31
63
|
@Virtual({
|
|
@@ -35,42 +67,52 @@ export class User {
|
|
|
35
67
|
})
|
|
36
68
|
readonly userId: string;
|
|
37
69
|
|
|
38
|
-
@Prop()
|
|
39
|
-
login?: string;
|
|
40
|
-
|
|
41
|
-
@Prop()
|
|
42
|
-
password?: string;
|
|
43
|
-
|
|
44
|
-
@Prop()
|
|
70
|
+
@Prop({ required: true })
|
|
45
71
|
fullName: string;
|
|
46
72
|
|
|
47
|
-
@Prop()
|
|
48
|
-
fullNameAlias: string;
|
|
49
|
-
|
|
50
|
-
@Prop()
|
|
73
|
+
@Prop({ required: true })
|
|
51
74
|
balance: number;
|
|
52
75
|
|
|
53
|
-
@Prop()
|
|
76
|
+
@Prop({ required: true })
|
|
54
77
|
avatarUrl: string;
|
|
55
78
|
|
|
56
|
-
@Prop()
|
|
57
|
-
|
|
79
|
+
@Prop({ required: true })
|
|
80
|
+
premiumExpired: Date;
|
|
58
81
|
|
|
59
|
-
|
|
60
|
-
avatarFrame: string;
|
|
82
|
+
// settings
|
|
61
83
|
|
|
62
|
-
@Prop()
|
|
84
|
+
@Prop({ default: '' })
|
|
85
|
+
fullNameAlias: string;
|
|
86
|
+
|
|
87
|
+
@Prop({ default: '' })
|
|
88
|
+
avatarAliasUrl: string;
|
|
89
|
+
|
|
90
|
+
@Prop({ default: 'theme__light' })
|
|
63
91
|
theme: string;
|
|
64
92
|
|
|
65
|
-
@Prop()
|
|
93
|
+
@Prop({ default: 'language__ru' })
|
|
66
94
|
language: string;
|
|
67
95
|
|
|
68
|
-
@Prop()
|
|
96
|
+
@Prop({ default: 'avatar_frame__default' })
|
|
97
|
+
avatarFrame: string;
|
|
98
|
+
|
|
99
|
+
@Prop({ default: 'card_skin__default' })
|
|
69
100
|
cardSkin: string;
|
|
70
101
|
|
|
71
|
-
@Prop()
|
|
102
|
+
@Prop({ default: 'game_sounds__on' })
|
|
72
103
|
gameSounds: string;
|
|
73
104
|
|
|
105
|
+
@Prop({ default: 'bg_pattern__default' })
|
|
106
|
+
bgPattern: string;
|
|
107
|
+
|
|
108
|
+
@Prop({ default: 'room_table__on' })
|
|
109
|
+
roomTable: string;
|
|
110
|
+
|
|
111
|
+
@Prop({ default: 'color_schema__default' })
|
|
112
|
+
colorSchema: string;
|
|
113
|
+
|
|
114
|
+
// users
|
|
115
|
+
|
|
74
116
|
@Prop({ type: VKUser })
|
|
75
117
|
vkUser?: VKUser;
|
|
76
118
|
|
|
@@ -89,146 +131,54 @@ export class User {
|
|
|
89
131
|
@Prop({ type: TGUser })
|
|
90
132
|
tgUser?: TGUser;
|
|
91
133
|
|
|
92
|
-
|
|
93
|
-
everydayEnterCount: number;
|
|
94
|
-
|
|
95
|
-
@Prop()
|
|
96
|
-
lastEnter: Date;
|
|
97
|
-
|
|
98
|
-
@Prop()
|
|
99
|
-
lastLoginClientVersion: string;
|
|
100
|
-
|
|
101
|
-
@Prop()
|
|
102
|
-
lastLoginClientChannel: string;
|
|
103
|
-
|
|
104
|
-
@Prop()
|
|
105
|
-
lastLoginClientDevice: string;
|
|
106
|
-
|
|
107
|
-
@Prop()
|
|
108
|
-
lastLoginClientOS: string;
|
|
109
|
-
|
|
110
|
-
@Prop()
|
|
111
|
-
lastLoginClientBrowser: string;
|
|
112
|
-
|
|
113
|
-
@Prop()
|
|
114
|
-
lastLoginClientDeviceWidth: number;
|
|
115
|
-
|
|
116
|
-
@Prop()
|
|
117
|
-
lastLoginClientDeviceHeight: number;
|
|
134
|
+
// other
|
|
118
135
|
|
|
119
|
-
@Prop()
|
|
120
|
-
lastLoginClientIsMobile: boolean;
|
|
121
|
-
|
|
122
|
-
@Prop({ type: Array<Purchase> })
|
|
123
|
-
purchases: Array<Purchase>;
|
|
124
|
-
|
|
125
|
-
@Prop()
|
|
126
|
-
likedNotifications: Array<string>;
|
|
127
|
-
|
|
128
|
-
@Prop()
|
|
129
|
-
lastReadNotificationsDate?: Date;
|
|
130
|
-
|
|
131
|
-
@Prop()
|
|
136
|
+
@Prop({ default: 0 })
|
|
132
137
|
experience: number;
|
|
133
138
|
|
|
134
|
-
@Prop()
|
|
139
|
+
@Prop({ default: 1 })
|
|
135
140
|
level: number;
|
|
136
141
|
|
|
137
|
-
@Prop()
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
@Prop()
|
|
141
|
-
gamesWon: number;
|
|
142
|
-
|
|
143
|
-
@Prop()
|
|
144
|
-
gamesTheBestSet: number;
|
|
142
|
+
@Prop({ default: '' })
|
|
143
|
+
everydayEnterCount: number;
|
|
145
144
|
|
|
146
|
-
@Prop()
|
|
147
|
-
|
|
145
|
+
@Prop({ default: new Date() })
|
|
146
|
+
lastEnter: Date;
|
|
148
147
|
|
|
149
|
-
@Prop()
|
|
148
|
+
@Prop({ default: false })
|
|
150
149
|
isBannedInChat: boolean;
|
|
151
150
|
|
|
152
|
-
@Prop()
|
|
153
|
-
friends: IUserFriend[];
|
|
154
|
-
|
|
155
|
-
@Prop()
|
|
156
|
-
roomTable: string;
|
|
157
|
-
|
|
158
|
-
@Prop()
|
|
159
|
-
disableEditName: boolean;
|
|
160
|
-
|
|
161
|
-
@Prop()
|
|
162
|
-
winnerRatings: Array<IUserWinnerRating>;
|
|
163
|
-
|
|
164
|
-
@Prop()
|
|
165
|
-
colorSchema: string;
|
|
166
|
-
|
|
167
|
-
@Prop()
|
|
151
|
+
@Prop({ default: new Date() })
|
|
168
152
|
registerDate: Date;
|
|
169
153
|
|
|
170
|
-
@Prop()
|
|
171
|
-
premiumExpired: Date;
|
|
172
|
-
|
|
173
|
-
@Prop()
|
|
154
|
+
@Prop({ default: 0 })
|
|
174
155
|
watchedPremiumExpiredScreenCounter: number;
|
|
175
156
|
|
|
176
157
|
@Prop()
|
|
177
158
|
lastRewardAdvView?: Date;
|
|
178
159
|
|
|
179
|
-
|
|
180
|
-
achievements?: Array<string>;
|
|
160
|
+
// objects
|
|
181
161
|
|
|
182
|
-
@Prop()
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
@Prop()
|
|
186
|
-
winSharksCount: number;
|
|
187
|
-
|
|
188
|
-
@Prop()
|
|
189
|
-
fastTournamentsWonCount: number;
|
|
190
|
-
|
|
191
|
-
@Prop()
|
|
192
|
-
allInWinCount: number;
|
|
193
|
-
|
|
194
|
-
@Prop()
|
|
195
|
-
watchedAdvRewardCount: number;
|
|
162
|
+
@Prop({ default: {} })
|
|
163
|
+
lastLogin: ILastLogin;
|
|
196
164
|
|
|
197
|
-
@Prop()
|
|
198
|
-
|
|
165
|
+
@Prop({ default: {} })
|
|
166
|
+
gameStatistics: IGameStatistics;
|
|
199
167
|
|
|
200
|
-
@Prop()
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
@Prop()
|
|
204
|
-
setTwoPairCount: number;
|
|
205
|
-
|
|
206
|
-
@Prop()
|
|
207
|
-
setThreeOfAKind: number;
|
|
208
|
-
|
|
209
|
-
@Prop()
|
|
210
|
-
setStraightCount: number;
|
|
211
|
-
|
|
212
|
-
@Prop()
|
|
213
|
-
setFlushCount: number;
|
|
168
|
+
@Prop({ type: Array<Purchase>, default: [] })
|
|
169
|
+
purchases: Array<Purchase>;
|
|
214
170
|
|
|
215
|
-
@Prop()
|
|
216
|
-
|
|
171
|
+
@Prop({ default: [] })
|
|
172
|
+
friends: Array<IUserFriend>;
|
|
217
173
|
|
|
218
|
-
@Prop()
|
|
219
|
-
|
|
174
|
+
@Prop({ default: [] })
|
|
175
|
+
winnerRatings: Array<IUserWinnerRating>;
|
|
220
176
|
|
|
221
|
-
@Prop()
|
|
222
|
-
|
|
177
|
+
@Prop({ default: [] })
|
|
178
|
+
achievements: Array<string>;
|
|
223
179
|
|
|
224
|
-
@Prop()
|
|
180
|
+
@Prop({ default: [] })
|
|
225
181
|
bannedUsers: Array<string>;
|
|
226
|
-
|
|
227
|
-
@Prop()
|
|
228
|
-
bgPattern: string;
|
|
229
|
-
|
|
230
|
-
@Prop()
|
|
231
|
-
isNewUser: boolean;
|
|
232
182
|
}
|
|
233
183
|
|
|
234
184
|
export const UserSchema = SchemaFactory.createForClass(User);
|