jp.db.schemas 1.0.0 → 1.0.2

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