jp.db.schemas 1.0.0 → 1.0.1
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 +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/dist/schemas/complain.schema.d.ts +24 -0
- package/dist/schemas/complain.schema.d.ts.map +1 -0
- package/dist/schemas/complain.schema.js +61 -0
- package/dist/schemas/complain.schema.js.map +1 -0
- package/dist/schemas/notification.schema.d.ts +28 -0
- package/dist/schemas/notification.schema.d.ts.map +1 -0
- package/dist/schemas/notification.schema.js +77 -0
- package/dist/schemas/notification.schema.js.map +1 -0
- package/dist/schemas/purchase.schema.d.ts.map +1 -1
- package/dist/schemas/purchase.schema.js.map +1 -1
- package/dist/schemas/scheduled_tournament.schema.d.ts +46 -0
- package/dist/schemas/scheduled_tournament.schema.d.ts.map +1 -0
- package/dist/schemas/scheduled_tournament.schema.js +101 -0
- package/dist/schemas/scheduled_tournament.schema.js.map +1 -0
- package/dist/schemas/user.fb.schema.d.ts.map +1 -1
- package/dist/schemas/user.fb.schema.js.map +1 -1
- package/dist/schemas/user.google.schema.d.ts.map +1 -1
- package/dist/schemas/user.google.schema.js.map +1 -1
- package/dist/schemas/user.ok.schema.d.ts.map +1 -1
- package/dist/schemas/user.ok.schema.js.map +1 -1
- package/dist/schemas/user.schema.d.ts.map +1 -1
- package/dist/schemas/user.schema.js.map +1 -1
- package/dist/schemas/user.tg.schema.d.ts.map +1 -1
- package/dist/schemas/user.tg.schema.js.map +1 -1
- package/dist/schemas/user.vk.schema.d.ts.map +1 -1
- package/dist/schemas/user.vk.schema.js.map +1 -1
- package/dist/schemas/user.ya.schema.d.ts.map +1 -1
- package/dist/schemas/user.ya.schema.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +9 -0
- package/src/schemas/complain.schema.ts +39 -0
- package/src/schemas/notification.schema.ts +51 -0
- package/src/schemas/purchase.schema.ts +30 -30
- package/src/schemas/scheduled_tournament.schema.ts +83 -0
- package/src/schemas/user.fb.schema.ts +16 -16
- package/src/schemas/user.google.schema.ts +10 -10
- package/src/schemas/user.ok.schema.ts +26 -26
- package/src/schemas/user.schema.ts +139 -139
- package/src/schemas/user.tg.schema.ts +14 -14
- package/src/schemas/user.vk.schema.ts +36 -36
- package/src/schemas/user.ya.schema.ts +10 -10
|
@@ -12,216 +12,216 @@ import { FBUser } from './user.fb.schema';
|
|
|
12
12
|
export type UserDocument = HydratedDocument<User>;
|
|
13
13
|
|
|
14
14
|
export type IUserWinnerRating = {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
month: string;
|
|
16
|
+
rank: number;
|
|
17
|
+
profit: number;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export type IUserFriend = {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
userIdWhoAdded: string
|
|
22
|
+
addedUserId: string;
|
|
23
|
+
friendId: string;
|
|
24
|
+
confirmed: boolean;
|
|
25
|
+
channelId: string;
|
|
26
|
+
lastVisitChannel?: Date;
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
@Schema()
|
|
30
30
|
export class User {
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
@Prop()
|
|
32
|
+
login?: string;
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
@Prop()
|
|
35
|
+
password?: string;
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
@Prop()
|
|
38
|
+
fullName: string;
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
@Prop()
|
|
41
|
+
fullNameAlias: string;
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
@Prop()
|
|
44
|
+
balance: number;
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
@Prop()
|
|
47
|
+
avatarUrl: string;
|
|
48
48
|
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
@Prop()
|
|
50
|
+
avatarAliasUrl: string;
|
|
51
51
|
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
@Prop()
|
|
53
|
+
avatarFrame: string;
|
|
54
54
|
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
@Prop()
|
|
56
|
+
theme: string;
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
@Prop()
|
|
59
|
+
language: string;
|
|
60
60
|
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
@Prop()
|
|
62
|
+
cardSkin: string;
|
|
63
63
|
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
@Prop()
|
|
65
|
+
gameSounds: string;
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
@Prop({ type: VKUser })
|
|
68
|
+
vkUser?: VKUser;
|
|
69
69
|
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
@Prop({ type: OKUserLocation })
|
|
71
|
+
okUser?: OKUserLocation;
|
|
72
72
|
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
@Prop({ type: YAUser })
|
|
74
|
+
yaUser?: YAUser;
|
|
75
75
|
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
@Prop({ type: GoogleUser })
|
|
77
|
+
googleUser?: GoogleUser;
|
|
78
78
|
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
@Prop({ type: FBUser })
|
|
80
|
+
fbUser?: FBUser;
|
|
81
81
|
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
@Prop({ type: TGUser })
|
|
83
|
+
tgUser?: TGUser;
|
|
84
84
|
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
@Prop()
|
|
86
|
+
everydayEnterCount: number;
|
|
87
87
|
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
@Prop()
|
|
89
|
+
lastEnter: Date;
|
|
90
90
|
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
@Prop()
|
|
92
|
+
lastLoginClientVersion: string;
|
|
93
93
|
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
@Prop()
|
|
95
|
+
lastLoginClientChannel: string;
|
|
96
96
|
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
@Prop()
|
|
98
|
+
lastLoginClientDevice: string;
|
|
99
99
|
|
|
100
|
-
|
|
101
|
-
|
|
100
|
+
@Prop()
|
|
101
|
+
lastLoginClientOS: string;
|
|
102
102
|
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
@Prop()
|
|
104
|
+
lastLoginClientBrowser: string;
|
|
105
105
|
|
|
106
|
-
|
|
107
|
-
|
|
106
|
+
@Prop()
|
|
107
|
+
lastLoginClientDeviceWidth: number;
|
|
108
108
|
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
@Prop()
|
|
110
|
+
lastLoginClientDeviceHeight: number;
|
|
111
111
|
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
@Prop()
|
|
113
|
+
lastLoginClientIsMobile: boolean;
|
|
114
114
|
|
|
115
|
-
|
|
116
|
-
|
|
115
|
+
@Prop({ type: Array<Purchase> })
|
|
116
|
+
purchases: Array<Purchase>;
|
|
117
117
|
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
@Prop()
|
|
119
|
+
likedNotifications: Array<string>;
|
|
120
120
|
|
|
121
|
-
|
|
122
|
-
|
|
121
|
+
@Prop()
|
|
122
|
+
lastReadNotificationsDate?: Date;
|
|
123
123
|
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
@Prop()
|
|
125
|
+
experience: number;
|
|
126
126
|
|
|
127
|
-
|
|
128
|
-
|
|
127
|
+
@Prop()
|
|
128
|
+
level: number;
|
|
129
129
|
|
|
130
|
-
|
|
131
|
-
|
|
130
|
+
@Prop()
|
|
131
|
+
gamesPlayed: number;
|
|
132
132
|
|
|
133
|
-
|
|
134
|
-
|
|
133
|
+
@Prop()
|
|
134
|
+
gamesWon: number;
|
|
135
135
|
|
|
136
|
-
|
|
137
|
-
|
|
136
|
+
@Prop()
|
|
137
|
+
gamesTheBestSet: number;
|
|
138
138
|
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
@Prop()
|
|
140
|
+
gamesMaxProfit: number;
|
|
141
141
|
|
|
142
|
-
|
|
143
|
-
|
|
142
|
+
@Prop()
|
|
143
|
+
isBannedInChat: boolean;
|
|
144
144
|
|
|
145
|
-
|
|
146
|
-
|
|
145
|
+
@Prop()
|
|
146
|
+
friends: IUserFriend[];
|
|
147
147
|
|
|
148
|
-
|
|
149
|
-
|
|
148
|
+
@Prop()
|
|
149
|
+
roomTable: string;
|
|
150
150
|
|
|
151
|
-
|
|
152
|
-
|
|
151
|
+
@Prop()
|
|
152
|
+
disableEditName: boolean;
|
|
153
153
|
|
|
154
|
-
|
|
155
|
-
|
|
154
|
+
@Prop()
|
|
155
|
+
winnerRatings: Array<IUserWinnerRating>;
|
|
156
156
|
|
|
157
|
-
|
|
158
|
-
|
|
157
|
+
@Prop()
|
|
158
|
+
colorSchema: string;
|
|
159
159
|
|
|
160
|
-
|
|
161
|
-
|
|
160
|
+
@Prop()
|
|
161
|
+
registerDate: Date;
|
|
162
162
|
|
|
163
|
-
|
|
164
|
-
|
|
163
|
+
@Prop()
|
|
164
|
+
premiumExpired: Date;
|
|
165
165
|
|
|
166
|
-
|
|
167
|
-
|
|
166
|
+
@Prop()
|
|
167
|
+
watchedPremiumExpiredScreenCounter: number;
|
|
168
168
|
|
|
169
|
-
|
|
170
|
-
|
|
169
|
+
@Prop()
|
|
170
|
+
lastRewardAdvView?: Date;
|
|
171
171
|
|
|
172
|
-
|
|
173
|
-
|
|
172
|
+
@Prop()
|
|
173
|
+
achievements?: Array<string>;
|
|
174
174
|
|
|
175
|
-
|
|
176
|
-
|
|
175
|
+
@Prop()
|
|
176
|
+
earnProfitCount: number;
|
|
177
177
|
|
|
178
|
-
|
|
179
|
-
|
|
178
|
+
@Prop()
|
|
179
|
+
winSharksCount: number;
|
|
180
180
|
|
|
181
|
-
|
|
182
|
-
|
|
181
|
+
@Prop()
|
|
182
|
+
fastTournamentsWonCount: number;
|
|
183
183
|
|
|
184
|
-
|
|
185
|
-
|
|
184
|
+
@Prop()
|
|
185
|
+
allInWinCount: number;
|
|
186
186
|
|
|
187
|
-
|
|
188
|
-
|
|
187
|
+
@Prop()
|
|
188
|
+
watchedAdvRewardCount: number;
|
|
189
189
|
|
|
190
|
-
|
|
191
|
-
|
|
190
|
+
@Prop()
|
|
191
|
+
textedMessagesCount: number;
|
|
192
192
|
|
|
193
|
-
|
|
194
|
-
|
|
193
|
+
@Prop()
|
|
194
|
+
sentReactionsCount: number;
|
|
195
195
|
|
|
196
|
-
|
|
197
|
-
|
|
196
|
+
@Prop()
|
|
197
|
+
setTwoPairCount: number;
|
|
198
198
|
|
|
199
|
-
|
|
200
|
-
|
|
199
|
+
@Prop()
|
|
200
|
+
setThreeOfAKind: number;
|
|
201
201
|
|
|
202
|
-
|
|
203
|
-
|
|
202
|
+
@Prop()
|
|
203
|
+
setStraightCount: number;
|
|
204
204
|
|
|
205
|
-
|
|
206
|
-
|
|
205
|
+
@Prop()
|
|
206
|
+
setFlushCount: number;
|
|
207
207
|
|
|
208
|
-
|
|
209
|
-
|
|
208
|
+
@Prop()
|
|
209
|
+
setFullHouseCount: number;
|
|
210
210
|
|
|
211
|
-
|
|
212
|
-
|
|
211
|
+
@Prop()
|
|
212
|
+
setFourOfAKindCount: number;
|
|
213
213
|
|
|
214
|
-
|
|
215
|
-
|
|
214
|
+
@Prop()
|
|
215
|
+
setStraightFlushCount: number;
|
|
216
216
|
|
|
217
|
-
|
|
218
|
-
|
|
217
|
+
@Prop()
|
|
218
|
+
bannedUsers: Array<string>;
|
|
219
219
|
|
|
220
|
-
|
|
221
|
-
|
|
220
|
+
@Prop()
|
|
221
|
+
bgPattern: string;
|
|
222
222
|
|
|
223
|
-
|
|
224
|
-
|
|
223
|
+
@Prop()
|
|
224
|
+
isNewUser: boolean;
|
|
225
225
|
}
|
|
226
226
|
|
|
227
227
|
export const UserSchema = SchemaFactory.createForClass(User);
|
|
@@ -5,26 +5,26 @@ export type TGUserDocument = HydratedDocument<TGUser>;
|
|
|
5
5
|
|
|
6
6
|
@Schema()
|
|
7
7
|
export class TGUser {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
@Prop()
|
|
9
|
+
id: number;
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
@Prop()
|
|
12
|
+
firstName: string;
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
@Prop()
|
|
15
|
+
lastName: string;
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
@Prop()
|
|
18
|
+
username: string;
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
@Prop()
|
|
21
|
+
languageCode: string;
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
@Prop()
|
|
24
|
+
photoUrl: string;
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
@Prop()
|
|
27
|
+
allowsWriteToPm: boolean;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
export const TGUserSchema = SchemaFactory.createForClass(TGUser);
|
|
@@ -5,11 +5,11 @@ export type VKUserCityDocument = HydratedDocument<VKUserCity>;
|
|
|
5
5
|
|
|
6
6
|
@Schema()
|
|
7
7
|
export class VKUserCity {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
@Prop()
|
|
9
|
+
id: number;
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
@Prop()
|
|
12
|
+
title: string;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export const VKUserCitySchema = SchemaFactory.createForClass(VKUserCity);
|
|
@@ -18,53 +18,53 @@ export type VKUserDocument = HydratedDocument<VKUser>;
|
|
|
18
18
|
|
|
19
19
|
@Schema()
|
|
20
20
|
export class VKUser {
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
@Prop()
|
|
22
|
+
id: number;
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
@Prop()
|
|
25
|
+
first_name: string;
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
@Prop()
|
|
28
|
+
last_name: string;
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
@Prop()
|
|
31
|
+
sex: number;
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
@Prop()
|
|
34
|
+
bdate: string;
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
@Prop()
|
|
37
|
+
city: VKUserCity;
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
@Prop()
|
|
40
|
+
country: VKUserCity;
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
@Prop()
|
|
43
|
+
photo_100: string;
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
@Prop()
|
|
46
|
+
photo_200: string;
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
@Prop()
|
|
49
|
+
photo_max_orig: string;
|
|
50
50
|
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
@Prop()
|
|
52
|
+
timezone: number;
|
|
53
53
|
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
@Prop()
|
|
55
|
+
is_closed: boolean;
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
@Prop()
|
|
58
|
+
can_access_closed: boolean;
|
|
59
59
|
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
@Prop()
|
|
61
|
+
can_invite_to_chats: boolean;
|
|
62
62
|
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
@Prop()
|
|
64
|
+
is_app_ios: boolean;
|
|
65
65
|
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
@Prop()
|
|
67
|
+
is_vk_user_id?: boolean;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
export const VKUserSchema = SchemaFactory.createForClass(VKUser);
|
|
@@ -5,20 +5,20 @@ export type YAUserDocument = HydratedDocument<YAUser>;
|
|
|
5
5
|
|
|
6
6
|
@Schema()
|
|
7
7
|
export class YAUser {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
@Prop()
|
|
9
|
+
userId: string;
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
@Prop()
|
|
12
|
+
fullName: string;
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
@Prop()
|
|
15
|
+
language: string;
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
@Prop()
|
|
18
|
+
avatarUrl: string;
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
@Prop()
|
|
21
|
+
isGuest: boolean;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
export const YAUserSchema = SchemaFactory.createForClass(YAUser);
|