jp.db.schemas 1.0.0
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 +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +28 -0
- package/dist/index.js.map +1 -0
- package/dist/schemas/purchase.schema.d.ts +29 -0
- package/dist/schemas/purchase.schema.d.ts.map +1 -0
- package/dist/schemas/purchase.schema.js +82 -0
- package/dist/schemas/purchase.schema.js.map +1 -0
- package/dist/schemas/user.fb.schema.d.ts +22 -0
- package/dist/schemas/user.fb.schema.d.ts.map +1 -0
- package/dist/schemas/user.fb.schema.js +53 -0
- package/dist/schemas/user.fb.schema.js.map +1 -0
- package/dist/schemas/user.google.schema.d.ts +19 -0
- package/dist/schemas/user.google.schema.d.ts.map +1 -0
- package/dist/schemas/user.google.schema.js +41 -0
- package/dist/schemas/user.google.schema.js.map +1 -0
- package/dist/schemas/user.ok.schema.d.ts +39 -0
- package/dist/schemas/user.ok.schema.d.ts.map +1 -0
- package/dist/schemas/user.ok.schema.js +80 -0
- package/dist/schemas/user.ok.schema.js.map +1 -0
- package/dist/schemas/user.schema.d.ts +99 -0
- package/dist/schemas/user.schema.d.ts.map +1 -0
- package/dist/schemas/user.schema.js +287 -0
- package/dist/schemas/user.schema.js.map +1 -0
- package/dist/schemas/user.tg.schema.d.ts +21 -0
- package/dist/schemas/user.tg.schema.d.ts.map +1 -0
- package/dist/schemas/user.tg.schema.js +49 -0
- package/dist/schemas/user.tg.schema.js.map +1 -0
- package/dist/schemas/user.vk.schema.d.ts +44 -0
- package/dist/schemas/user.vk.schema.d.ts.map +1 -0
- package/dist/schemas/user.vk.schema.js +100 -0
- package/dist/schemas/user.vk.schema.js.map +1 -0
- package/dist/schemas/user.ya.schema.d.ts +19 -0
- package/dist/schemas/user.ya.schema.d.ts.map +1 -0
- package/dist/schemas/user.ya.schema.js +41 -0
- package/dist/schemas/user.ya.schema.js.map +1 -0
- package/package.json +30 -0
- package/readme.md +3 -0
- package/src/index.ts +27 -0
- package/src/schemas/purchase.schema.ts +54 -0
- package/src/schemas/user.fb.schema.ts +33 -0
- package/src/schemas/user.google.schema.ts +24 -0
- package/src/schemas/user.ok.schema.ts +55 -0
- package/src/schemas/user.schema.ts +227 -0
- package/src/schemas/user.tg.schema.ts +30 -0
- package/src/schemas/user.vk.schema.ts +70 -0
- package/src/schemas/user.ya.schema.ts +24 -0
|
@@ -0,0 +1,287 @@
|
|
|
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.UserSchema = exports.User = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
const user_vk_schema_1 = require("./user.vk.schema");
|
|
15
|
+
const user_ok_schema_1 = require("./user.ok.schema");
|
|
16
|
+
const user_ya_schema_1 = require("./user.ya.schema");
|
|
17
|
+
const user_tg_schema_1 = require("./user.tg.schema");
|
|
18
|
+
const user_google_schema_1 = require("./user.google.schema");
|
|
19
|
+
const user_fb_schema_1 = require("./user.fb.schema");
|
|
20
|
+
let User = class User {
|
|
21
|
+
};
|
|
22
|
+
exports.User = User;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, mongoose_1.Prop)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], User.prototype, "login", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, mongoose_1.Prop)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], User.prototype, "password", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, mongoose_1.Prop)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], User.prototype, "fullName", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, mongoose_1.Prop)(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], User.prototype, "fullNameAlias", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, mongoose_1.Prop)(),
|
|
41
|
+
__metadata("design:type", Number)
|
|
42
|
+
], User.prototype, "balance", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, mongoose_1.Prop)(),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], User.prototype, "avatarUrl", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, mongoose_1.Prop)(),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], User.prototype, "avatarAliasUrl", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, mongoose_1.Prop)(),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], User.prototype, "avatarFrame", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, mongoose_1.Prop)(),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], User.prototype, "theme", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, mongoose_1.Prop)(),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], User.prototype, "language", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, mongoose_1.Prop)(),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], User.prototype, "cardSkin", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, mongoose_1.Prop)(),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], User.prototype, "gameSounds", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, mongoose_1.Prop)({ type: user_vk_schema_1.VKUser }),
|
|
73
|
+
__metadata("design:type", user_vk_schema_1.VKUser)
|
|
74
|
+
], User.prototype, "vkUser", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, mongoose_1.Prop)({ type: user_ok_schema_1.OKUserLocation }),
|
|
77
|
+
__metadata("design:type", user_ok_schema_1.OKUserLocation)
|
|
78
|
+
], User.prototype, "okUser", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, mongoose_1.Prop)({ type: user_ya_schema_1.YAUser }),
|
|
81
|
+
__metadata("design:type", user_ya_schema_1.YAUser)
|
|
82
|
+
], User.prototype, "yaUser", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, mongoose_1.Prop)({ type: user_google_schema_1.GoogleUser }),
|
|
85
|
+
__metadata("design:type", user_google_schema_1.GoogleUser)
|
|
86
|
+
], User.prototype, "googleUser", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, mongoose_1.Prop)({ type: user_fb_schema_1.FBUser }),
|
|
89
|
+
__metadata("design:type", user_fb_schema_1.FBUser)
|
|
90
|
+
], User.prototype, "fbUser", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, mongoose_1.Prop)({ type: user_tg_schema_1.TGUser }),
|
|
93
|
+
__metadata("design:type", user_tg_schema_1.TGUser)
|
|
94
|
+
], User.prototype, "tgUser", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, mongoose_1.Prop)(),
|
|
97
|
+
__metadata("design:type", Number)
|
|
98
|
+
], User.prototype, "everydayEnterCount", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, mongoose_1.Prop)(),
|
|
101
|
+
__metadata("design:type", Date)
|
|
102
|
+
], User.prototype, "lastEnter", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, mongoose_1.Prop)(),
|
|
105
|
+
__metadata("design:type", String)
|
|
106
|
+
], User.prototype, "lastLoginClientVersion", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, mongoose_1.Prop)(),
|
|
109
|
+
__metadata("design:type", String)
|
|
110
|
+
], User.prototype, "lastLoginClientChannel", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, mongoose_1.Prop)(),
|
|
113
|
+
__metadata("design:type", String)
|
|
114
|
+
], User.prototype, "lastLoginClientDevice", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
(0, mongoose_1.Prop)(),
|
|
117
|
+
__metadata("design:type", String)
|
|
118
|
+
], User.prototype, "lastLoginClientOS", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, mongoose_1.Prop)(),
|
|
121
|
+
__metadata("design:type", String)
|
|
122
|
+
], User.prototype, "lastLoginClientBrowser", void 0);
|
|
123
|
+
__decorate([
|
|
124
|
+
(0, mongoose_1.Prop)(),
|
|
125
|
+
__metadata("design:type", Number)
|
|
126
|
+
], User.prototype, "lastLoginClientDeviceWidth", void 0);
|
|
127
|
+
__decorate([
|
|
128
|
+
(0, mongoose_1.Prop)(),
|
|
129
|
+
__metadata("design:type", Number)
|
|
130
|
+
], User.prototype, "lastLoginClientDeviceHeight", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, mongoose_1.Prop)(),
|
|
133
|
+
__metadata("design:type", Boolean)
|
|
134
|
+
], User.prototype, "lastLoginClientIsMobile", void 0);
|
|
135
|
+
__decorate([
|
|
136
|
+
(0, mongoose_1.Prop)({ type: (Array) }),
|
|
137
|
+
__metadata("design:type", Array)
|
|
138
|
+
], User.prototype, "purchases", void 0);
|
|
139
|
+
__decorate([
|
|
140
|
+
(0, mongoose_1.Prop)(),
|
|
141
|
+
__metadata("design:type", Array)
|
|
142
|
+
], User.prototype, "likedNotifications", void 0);
|
|
143
|
+
__decorate([
|
|
144
|
+
(0, mongoose_1.Prop)(),
|
|
145
|
+
__metadata("design:type", Date)
|
|
146
|
+
], User.prototype, "lastReadNotificationsDate", void 0);
|
|
147
|
+
__decorate([
|
|
148
|
+
(0, mongoose_1.Prop)(),
|
|
149
|
+
__metadata("design:type", Number)
|
|
150
|
+
], User.prototype, "experience", void 0);
|
|
151
|
+
__decorate([
|
|
152
|
+
(0, mongoose_1.Prop)(),
|
|
153
|
+
__metadata("design:type", Number)
|
|
154
|
+
], User.prototype, "level", void 0);
|
|
155
|
+
__decorate([
|
|
156
|
+
(0, mongoose_1.Prop)(),
|
|
157
|
+
__metadata("design:type", Number)
|
|
158
|
+
], User.prototype, "gamesPlayed", void 0);
|
|
159
|
+
__decorate([
|
|
160
|
+
(0, mongoose_1.Prop)(),
|
|
161
|
+
__metadata("design:type", Number)
|
|
162
|
+
], User.prototype, "gamesWon", void 0);
|
|
163
|
+
__decorate([
|
|
164
|
+
(0, mongoose_1.Prop)(),
|
|
165
|
+
__metadata("design:type", Number)
|
|
166
|
+
], User.prototype, "gamesTheBestSet", void 0);
|
|
167
|
+
__decorate([
|
|
168
|
+
(0, mongoose_1.Prop)(),
|
|
169
|
+
__metadata("design:type", Number)
|
|
170
|
+
], User.prototype, "gamesMaxProfit", void 0);
|
|
171
|
+
__decorate([
|
|
172
|
+
(0, mongoose_1.Prop)(),
|
|
173
|
+
__metadata("design:type", Boolean)
|
|
174
|
+
], User.prototype, "isBannedInChat", void 0);
|
|
175
|
+
__decorate([
|
|
176
|
+
(0, mongoose_1.Prop)(),
|
|
177
|
+
__metadata("design:type", Array)
|
|
178
|
+
], User.prototype, "friends", void 0);
|
|
179
|
+
__decorate([
|
|
180
|
+
(0, mongoose_1.Prop)(),
|
|
181
|
+
__metadata("design:type", String)
|
|
182
|
+
], User.prototype, "roomTable", void 0);
|
|
183
|
+
__decorate([
|
|
184
|
+
(0, mongoose_1.Prop)(),
|
|
185
|
+
__metadata("design:type", Boolean)
|
|
186
|
+
], User.prototype, "disableEditName", void 0);
|
|
187
|
+
__decorate([
|
|
188
|
+
(0, mongoose_1.Prop)(),
|
|
189
|
+
__metadata("design:type", Array)
|
|
190
|
+
], User.prototype, "winnerRatings", void 0);
|
|
191
|
+
__decorate([
|
|
192
|
+
(0, mongoose_1.Prop)(),
|
|
193
|
+
__metadata("design:type", String)
|
|
194
|
+
], User.prototype, "colorSchema", void 0);
|
|
195
|
+
__decorate([
|
|
196
|
+
(0, mongoose_1.Prop)(),
|
|
197
|
+
__metadata("design:type", Date)
|
|
198
|
+
], User.prototype, "registerDate", void 0);
|
|
199
|
+
__decorate([
|
|
200
|
+
(0, mongoose_1.Prop)(),
|
|
201
|
+
__metadata("design:type", Date)
|
|
202
|
+
], User.prototype, "premiumExpired", void 0);
|
|
203
|
+
__decorate([
|
|
204
|
+
(0, mongoose_1.Prop)(),
|
|
205
|
+
__metadata("design:type", Number)
|
|
206
|
+
], User.prototype, "watchedPremiumExpiredScreenCounter", void 0);
|
|
207
|
+
__decorate([
|
|
208
|
+
(0, mongoose_1.Prop)(),
|
|
209
|
+
__metadata("design:type", Date)
|
|
210
|
+
], User.prototype, "lastRewardAdvView", void 0);
|
|
211
|
+
__decorate([
|
|
212
|
+
(0, mongoose_1.Prop)(),
|
|
213
|
+
__metadata("design:type", Array)
|
|
214
|
+
], User.prototype, "achievements", void 0);
|
|
215
|
+
__decorate([
|
|
216
|
+
(0, mongoose_1.Prop)(),
|
|
217
|
+
__metadata("design:type", Number)
|
|
218
|
+
], User.prototype, "earnProfitCount", void 0);
|
|
219
|
+
__decorate([
|
|
220
|
+
(0, mongoose_1.Prop)(),
|
|
221
|
+
__metadata("design:type", Number)
|
|
222
|
+
], User.prototype, "winSharksCount", void 0);
|
|
223
|
+
__decorate([
|
|
224
|
+
(0, mongoose_1.Prop)(),
|
|
225
|
+
__metadata("design:type", Number)
|
|
226
|
+
], User.prototype, "fastTournamentsWonCount", void 0);
|
|
227
|
+
__decorate([
|
|
228
|
+
(0, mongoose_1.Prop)(),
|
|
229
|
+
__metadata("design:type", Number)
|
|
230
|
+
], User.prototype, "allInWinCount", void 0);
|
|
231
|
+
__decorate([
|
|
232
|
+
(0, mongoose_1.Prop)(),
|
|
233
|
+
__metadata("design:type", Number)
|
|
234
|
+
], User.prototype, "watchedAdvRewardCount", void 0);
|
|
235
|
+
__decorate([
|
|
236
|
+
(0, mongoose_1.Prop)(),
|
|
237
|
+
__metadata("design:type", Number)
|
|
238
|
+
], User.prototype, "textedMessagesCount", void 0);
|
|
239
|
+
__decorate([
|
|
240
|
+
(0, mongoose_1.Prop)(),
|
|
241
|
+
__metadata("design:type", Number)
|
|
242
|
+
], User.prototype, "sentReactionsCount", void 0);
|
|
243
|
+
__decorate([
|
|
244
|
+
(0, mongoose_1.Prop)(),
|
|
245
|
+
__metadata("design:type", Number)
|
|
246
|
+
], User.prototype, "setTwoPairCount", void 0);
|
|
247
|
+
__decorate([
|
|
248
|
+
(0, mongoose_1.Prop)(),
|
|
249
|
+
__metadata("design:type", Number)
|
|
250
|
+
], User.prototype, "setThreeOfAKind", void 0);
|
|
251
|
+
__decorate([
|
|
252
|
+
(0, mongoose_1.Prop)(),
|
|
253
|
+
__metadata("design:type", Number)
|
|
254
|
+
], User.prototype, "setStraightCount", void 0);
|
|
255
|
+
__decorate([
|
|
256
|
+
(0, mongoose_1.Prop)(),
|
|
257
|
+
__metadata("design:type", Number)
|
|
258
|
+
], User.prototype, "setFlushCount", void 0);
|
|
259
|
+
__decorate([
|
|
260
|
+
(0, mongoose_1.Prop)(),
|
|
261
|
+
__metadata("design:type", Number)
|
|
262
|
+
], User.prototype, "setFullHouseCount", void 0);
|
|
263
|
+
__decorate([
|
|
264
|
+
(0, mongoose_1.Prop)(),
|
|
265
|
+
__metadata("design:type", Number)
|
|
266
|
+
], User.prototype, "setFourOfAKindCount", void 0);
|
|
267
|
+
__decorate([
|
|
268
|
+
(0, mongoose_1.Prop)(),
|
|
269
|
+
__metadata("design:type", Number)
|
|
270
|
+
], User.prototype, "setStraightFlushCount", void 0);
|
|
271
|
+
__decorate([
|
|
272
|
+
(0, mongoose_1.Prop)(),
|
|
273
|
+
__metadata("design:type", Array)
|
|
274
|
+
], User.prototype, "bannedUsers", void 0);
|
|
275
|
+
__decorate([
|
|
276
|
+
(0, mongoose_1.Prop)(),
|
|
277
|
+
__metadata("design:type", String)
|
|
278
|
+
], User.prototype, "bgPattern", void 0);
|
|
279
|
+
__decorate([
|
|
280
|
+
(0, mongoose_1.Prop)(),
|
|
281
|
+
__metadata("design:type", Boolean)
|
|
282
|
+
], User.prototype, "isNewUser", void 0);
|
|
283
|
+
exports.User = User = __decorate([
|
|
284
|
+
(0, mongoose_1.Schema)()
|
|
285
|
+
], User);
|
|
286
|
+
exports.UserSchema = mongoose_1.SchemaFactory.createForClass(User);
|
|
287
|
+
//# sourceMappingURL=user.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.schema.js","sourceRoot":"","sources":["../../src/schemas/user.schema.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { HydratedDocument } from 'mongoose';
|
|
2
|
+
export type TGUserDocument = HydratedDocument<TGUser>;
|
|
3
|
+
export declare class TGUser {
|
|
4
|
+
id: number;
|
|
5
|
+
firstName: string;
|
|
6
|
+
lastName: string;
|
|
7
|
+
username: string;
|
|
8
|
+
languageCode: string;
|
|
9
|
+
photoUrl: string;
|
|
10
|
+
allowsWriteToPm: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const TGUserSchema: import("mongoose").Schema<TGUser, import("mongoose").Model<TGUser, any, any, any, import("mongoose").Document<unknown, any, TGUser, any> & TGUser & {
|
|
13
|
+
_id: import("mongoose").Types.ObjectId;
|
|
14
|
+
} & {
|
|
15
|
+
__v: number;
|
|
16
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, TGUser, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<TGUser>, {}> & import("mongoose").FlatRecord<TGUser> & {
|
|
17
|
+
_id: import("mongoose").Types.ObjectId;
|
|
18
|
+
} & {
|
|
19
|
+
__v: number;
|
|
20
|
+
}>;
|
|
21
|
+
//# sourceMappingURL=user.tg.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.tg.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/user.tg.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,MAAM,cAAc,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAEtD,qBACa,MAAM;IAEjB,EAAE,EAAE,MAAM,CAAC;IAGX,SAAS,EAAE,MAAM,CAAC;IAGlB,QAAQ,EAAE,MAAM,CAAC;IAGjB,QAAQ,EAAE,MAAM,CAAC;IAGjB,YAAY,EAAE,MAAM,CAAC;IAGrB,QAAQ,EAAE,MAAM,CAAC;IAGjB,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED,eAAO,MAAM,YAAY;;;;;;;;EAAuC,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.TGUserSchema = exports.TGUser = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
let TGUser = class TGUser {
|
|
15
|
+
};
|
|
16
|
+
exports.TGUser = TGUser;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, mongoose_1.Prop)(),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], TGUser.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, mongoose_1.Prop)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], TGUser.prototype, "firstName", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, mongoose_1.Prop)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], TGUser.prototype, "lastName", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, mongoose_1.Prop)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], TGUser.prototype, "username", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, mongoose_1.Prop)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], TGUser.prototype, "languageCode", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, mongoose_1.Prop)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], TGUser.prototype, "photoUrl", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, mongoose_1.Prop)(),
|
|
43
|
+
__metadata("design:type", Boolean)
|
|
44
|
+
], TGUser.prototype, "allowsWriteToPm", void 0);
|
|
45
|
+
exports.TGUser = TGUser = __decorate([
|
|
46
|
+
(0, mongoose_1.Schema)()
|
|
47
|
+
], TGUser);
|
|
48
|
+
exports.TGUserSchema = mongoose_1.SchemaFactory.createForClass(TGUser);
|
|
49
|
+
//# sourceMappingURL=user.tg.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.tg.schema.js","sourceRoot":"","sources":["../../src/schemas/user.tg.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAMxD,IAAM,MAAM,GAAZ,MAAM,MAAM;CAqBlB,CAAA;AArBY,wBAAM;AAEjB;IADC,IAAA,eAAI,GAAE;;kCACI;AAGX;IADC,IAAA,eAAI,GAAE;;yCACW;AAGlB;IADC,IAAA,eAAI,GAAE;;wCACU;AAGjB;IADC,IAAA,eAAI,GAAE;;wCACU;AAGjB;IADC,IAAA,eAAI,GAAE;;4CACc;AAGrB;IADC,IAAA,eAAI,GAAE;;wCACU;AAGjB;IADC,IAAA,eAAI,GAAE;;+CACkB;iBApBd,MAAM;IADlB,IAAA,iBAAM,GAAE;GACI,MAAM,CAqBlB;AAEY,QAAA,YAAY,GAAG,wBAAa,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { HydratedDocument } from 'mongoose';
|
|
2
|
+
export type VKUserCityDocument = HydratedDocument<VKUserCity>;
|
|
3
|
+
export declare class VKUserCity {
|
|
4
|
+
id: number;
|
|
5
|
+
title: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const VKUserCitySchema: import("mongoose").Schema<VKUserCity, import("mongoose").Model<VKUserCity, any, any, any, import("mongoose").Document<unknown, any, VKUserCity, any> & VKUserCity & {
|
|
8
|
+
_id: import("mongoose").Types.ObjectId;
|
|
9
|
+
} & {
|
|
10
|
+
__v: number;
|
|
11
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, VKUserCity, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<VKUserCity>, {}> & import("mongoose").FlatRecord<VKUserCity> & {
|
|
12
|
+
_id: import("mongoose").Types.ObjectId;
|
|
13
|
+
} & {
|
|
14
|
+
__v: number;
|
|
15
|
+
}>;
|
|
16
|
+
export type VKUserDocument = HydratedDocument<VKUser>;
|
|
17
|
+
export declare class VKUser {
|
|
18
|
+
id: number;
|
|
19
|
+
first_name: string;
|
|
20
|
+
last_name: string;
|
|
21
|
+
sex: number;
|
|
22
|
+
bdate: string;
|
|
23
|
+
city: VKUserCity;
|
|
24
|
+
country: VKUserCity;
|
|
25
|
+
photo_100: string;
|
|
26
|
+
photo_200: string;
|
|
27
|
+
photo_max_orig: string;
|
|
28
|
+
timezone: number;
|
|
29
|
+
is_closed: boolean;
|
|
30
|
+
can_access_closed: boolean;
|
|
31
|
+
can_invite_to_chats: boolean;
|
|
32
|
+
is_app_ios: boolean;
|
|
33
|
+
is_vk_user_id?: boolean;
|
|
34
|
+
}
|
|
35
|
+
export declare const VKUserSchema: import("mongoose").Schema<VKUser, import("mongoose").Model<VKUser, any, any, any, import("mongoose").Document<unknown, any, VKUser, any> & VKUser & {
|
|
36
|
+
_id: import("mongoose").Types.ObjectId;
|
|
37
|
+
} & {
|
|
38
|
+
__v: number;
|
|
39
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, VKUser, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<VKUser>, {}> & import("mongoose").FlatRecord<VKUser> & {
|
|
40
|
+
_id: import("mongoose").Types.ObjectId;
|
|
41
|
+
} & {
|
|
42
|
+
__v: number;
|
|
43
|
+
}>;
|
|
44
|
+
//# sourceMappingURL=user.vk.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.vk.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/user.vk.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,UAAU,CAAC,CAAC;AAE9D,qBACa,UAAU;IAErB,EAAE,EAAE,MAAM,CAAC;IAGX,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,gBAAgB;;;;;;;;EAA2C,CAAC;AAEzE,MAAM,MAAM,cAAc,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAEtD,qBACa,MAAM;IAEjB,EAAE,EAAE,MAAM,CAAC;IAGX,UAAU,EAAE,MAAM,CAAC;IAGnB,SAAS,EAAE,MAAM,CAAC;IAGlB,GAAG,EAAE,MAAM,CAAC;IAGZ,KAAK,EAAE,MAAM,CAAC;IAGd,IAAI,EAAE,UAAU,CAAC;IAGjB,OAAO,EAAE,UAAU,CAAC;IAGpB,SAAS,EAAE,MAAM,CAAC;IAGlB,SAAS,EAAE,MAAM,CAAC;IAGlB,cAAc,EAAE,MAAM,CAAC;IAGvB,QAAQ,EAAE,MAAM,CAAC;IAGjB,SAAS,EAAE,OAAO,CAAC;IAGnB,iBAAiB,EAAE,OAAO,CAAC;IAG3B,mBAAmB,EAAE,OAAO,CAAC;IAG7B,UAAU,EAAE,OAAO,CAAC;IAGpB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,eAAO,MAAM,YAAY;;;;;;;;EAAuC,CAAC"}
|
|
@@ -0,0 +1,100 @@
|
|
|
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.VKUserSchema = exports.VKUser = exports.VKUserCitySchema = exports.VKUserCity = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
let VKUserCity = class VKUserCity {
|
|
15
|
+
};
|
|
16
|
+
exports.VKUserCity = VKUserCity;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, mongoose_1.Prop)(),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], VKUserCity.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, mongoose_1.Prop)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], VKUserCity.prototype, "title", void 0);
|
|
25
|
+
exports.VKUserCity = VKUserCity = __decorate([
|
|
26
|
+
(0, mongoose_1.Schema)()
|
|
27
|
+
], VKUserCity);
|
|
28
|
+
exports.VKUserCitySchema = mongoose_1.SchemaFactory.createForClass(VKUserCity);
|
|
29
|
+
let VKUser = class VKUser {
|
|
30
|
+
};
|
|
31
|
+
exports.VKUser = VKUser;
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, mongoose_1.Prop)(),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], VKUser.prototype, "id", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, mongoose_1.Prop)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], VKUser.prototype, "first_name", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, mongoose_1.Prop)(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], VKUser.prototype, "last_name", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, mongoose_1.Prop)(),
|
|
46
|
+
__metadata("design:type", Number)
|
|
47
|
+
], VKUser.prototype, "sex", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, mongoose_1.Prop)(),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], VKUser.prototype, "bdate", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, mongoose_1.Prop)(),
|
|
54
|
+
__metadata("design:type", VKUserCity)
|
|
55
|
+
], VKUser.prototype, "city", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, mongoose_1.Prop)(),
|
|
58
|
+
__metadata("design:type", VKUserCity)
|
|
59
|
+
], VKUser.prototype, "country", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, mongoose_1.Prop)(),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], VKUser.prototype, "photo_100", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, mongoose_1.Prop)(),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], VKUser.prototype, "photo_200", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, mongoose_1.Prop)(),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], VKUser.prototype, "photo_max_orig", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, mongoose_1.Prop)(),
|
|
74
|
+
__metadata("design:type", Number)
|
|
75
|
+
], VKUser.prototype, "timezone", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, mongoose_1.Prop)(),
|
|
78
|
+
__metadata("design:type", Boolean)
|
|
79
|
+
], VKUser.prototype, "is_closed", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, mongoose_1.Prop)(),
|
|
82
|
+
__metadata("design:type", Boolean)
|
|
83
|
+
], VKUser.prototype, "can_access_closed", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, mongoose_1.Prop)(),
|
|
86
|
+
__metadata("design:type", Boolean)
|
|
87
|
+
], VKUser.prototype, "can_invite_to_chats", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, mongoose_1.Prop)(),
|
|
90
|
+
__metadata("design:type", Boolean)
|
|
91
|
+
], VKUser.prototype, "is_app_ios", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, mongoose_1.Prop)(),
|
|
94
|
+
__metadata("design:type", Boolean)
|
|
95
|
+
], VKUser.prototype, "is_vk_user_id", void 0);
|
|
96
|
+
exports.VKUser = VKUser = __decorate([
|
|
97
|
+
(0, mongoose_1.Schema)()
|
|
98
|
+
], VKUser);
|
|
99
|
+
exports.VKUserSchema = mongoose_1.SchemaFactory.createForClass(VKUser);
|
|
100
|
+
//# sourceMappingURL=user.vk.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.vk.schema.js","sourceRoot":"","sources":["../../src/schemas/user.vk.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAMxD,IAAM,UAAU,GAAhB,MAAM,UAAU;CAMtB,CAAA;AANY,gCAAU;AAErB;IADC,IAAA,eAAI,GAAE;;sCACI;AAGX;IADC,IAAA,eAAI,GAAE;;yCACO;qBALH,UAAU;IADtB,IAAA,iBAAM,GAAE;GACI,UAAU,CAMtB;AAEY,QAAA,gBAAgB,GAAG,wBAAa,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;AAKlE,IAAM,MAAM,GAAZ,MAAM,MAAM;CAgDlB,CAAA;AAhDY,wBAAM;AAEjB;IADC,IAAA,eAAI,GAAE;;kCACI;AAGX;IADC,IAAA,eAAI,GAAE;;0CACY;AAGnB;IADC,IAAA,eAAI,GAAE;;yCACW;AAGlB;IADC,IAAA,eAAI,GAAE;;mCACK;AAGZ;IADC,IAAA,eAAI,GAAE;;qCACO;AAGd;IADC,IAAA,eAAI,GAAE;8BACD,UAAU;oCAAC;AAGjB;IADC,IAAA,eAAI,GAAE;8BACE,UAAU;uCAAC;AAGpB;IADC,IAAA,eAAI,GAAE;;yCACW;AAGlB;IADC,IAAA,eAAI,GAAE;;yCACW;AAGlB;IADC,IAAA,eAAI,GAAE;;8CACgB;AAGvB;IADC,IAAA,eAAI,GAAE;;wCACU;AAGjB;IADC,IAAA,eAAI,GAAE;;yCACY;AAGnB;IADC,IAAA,eAAI,GAAE;;iDACoB;AAG3B;IADC,IAAA,eAAI,GAAE;;mDACsB;AAG7B;IADC,IAAA,eAAI,GAAE;;0CACa;AAGpB;IADC,IAAA,eAAI,GAAE;;6CACiB;iBA/Cb,MAAM;IADlB,IAAA,iBAAM,GAAE;GACI,MAAM,CAgDlB;AAEY,QAAA,YAAY,GAAG,wBAAa,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { HydratedDocument } from 'mongoose';
|
|
2
|
+
export type YAUserDocument = HydratedDocument<YAUser>;
|
|
3
|
+
export declare class YAUser {
|
|
4
|
+
userId: string;
|
|
5
|
+
fullName: string;
|
|
6
|
+
language: string;
|
|
7
|
+
avatarUrl: string;
|
|
8
|
+
isGuest: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const YAUserSchema: import("mongoose").Schema<YAUser, import("mongoose").Model<YAUser, any, any, any, import("mongoose").Document<unknown, any, YAUser, any> & YAUser & {
|
|
11
|
+
_id: import("mongoose").Types.ObjectId;
|
|
12
|
+
} & {
|
|
13
|
+
__v: number;
|
|
14
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, YAUser, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<YAUser>, {}> & import("mongoose").FlatRecord<YAUser> & {
|
|
15
|
+
_id: import("mongoose").Types.ObjectId;
|
|
16
|
+
} & {
|
|
17
|
+
__v: number;
|
|
18
|
+
}>;
|
|
19
|
+
//# sourceMappingURL=user.ya.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.ya.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/user.ya.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,MAAM,cAAc,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAEtD,qBACa,MAAM;IAEjB,MAAM,EAAE,MAAM,CAAC;IAGf,QAAQ,EAAE,MAAM,CAAC;IAGjB,QAAQ,EAAE,MAAM,CAAC;IAGjB,SAAS,EAAE,MAAM,CAAC;IAGlB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,YAAY;;;;;;;;EAAuC,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
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.YAUserSchema = exports.YAUser = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
let YAUser = class YAUser {
|
|
15
|
+
};
|
|
16
|
+
exports.YAUser = YAUser;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, mongoose_1.Prop)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], YAUser.prototype, "userId", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, mongoose_1.Prop)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], YAUser.prototype, "fullName", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, mongoose_1.Prop)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], YAUser.prototype, "language", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, mongoose_1.Prop)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], YAUser.prototype, "avatarUrl", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, mongoose_1.Prop)(),
|
|
35
|
+
__metadata("design:type", Boolean)
|
|
36
|
+
], YAUser.prototype, "isGuest", void 0);
|
|
37
|
+
exports.YAUser = YAUser = __decorate([
|
|
38
|
+
(0, mongoose_1.Schema)()
|
|
39
|
+
], YAUser);
|
|
40
|
+
exports.YAUserSchema = mongoose_1.SchemaFactory.createForClass(YAUser);
|
|
41
|
+
//# sourceMappingURL=user.ya.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.ya.schema.js","sourceRoot":"","sources":["../../src/schemas/user.ya.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAMxD,IAAM,MAAM,GAAZ,MAAM,MAAM;CAelB,CAAA;AAfY,wBAAM;AAEjB;IADC,IAAA,eAAI,GAAE;;sCACQ;AAGf;IADC,IAAA,eAAI,GAAE;;wCACU;AAGjB;IADC,IAAA,eAAI,GAAE;;wCACU;AAGjB;IADC,IAAA,eAAI,GAAE;;yCACW;AAGlB;IADC,IAAA,eAAI,GAAE;;uCACU;iBAdN,MAAM;IADlB,IAAA,iBAAM,GAAE;GACI,MAAM,CAelB;AAEY,QAAA,YAAY,GAAG,wBAAa,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "jp.db.schemas",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"author": "",
|
|
8
|
+
"license": "ISC",
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"@nestjs/common": "11.1.0",
|
|
11
|
+
"@nestjs/core": "11.1.0",
|
|
12
|
+
"@nestjs/mongoose": "11.0.3",
|
|
13
|
+
"mongoose": "8.14.1",
|
|
14
|
+
"reflect-metadata": "0.2.2",
|
|
15
|
+
"rxjs": "7.8.2"
|
|
16
|
+
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@types/node": "22.15.3",
|
|
19
|
+
"rimraf": "6.0.1",
|
|
20
|
+
"typescript": "5.8.3"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "rimraf dist && tsc",
|
|
24
|
+
"prepublish": "npm run build"
|
|
25
|
+
},
|
|
26
|
+
"files": [
|
|
27
|
+
"src",
|
|
28
|
+
"dist"
|
|
29
|
+
]
|
|
30
|
+
}
|
package/readme.md
ADDED
package/src/index.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { User, UserSchema } from './schemas/user.schema';
|
|
2
|
+
import { FBUser, FBUserSchema } from './schemas/user.fb.schema';
|
|
3
|
+
import { GoogleUser, GoogleUserSchema } from './schemas/user.google.schema';
|
|
4
|
+
import { OKUser, OKUserSchema } from './schemas/user.ok.schema';
|
|
5
|
+
import { TGUser, TGUserSchema } from './schemas/user.tg.schema';
|
|
6
|
+
import { VKUser, VKUserSchema } from './schemas/user.vk.schema';
|
|
7
|
+
import { YAUser, YAUserSchema } from './schemas/user.ya.schema';
|
|
8
|
+
import { Purchase, PurchaseSchema } from './schemas/purchase.schema';
|
|
9
|
+
|
|
10
|
+
export {
|
|
11
|
+
User,
|
|
12
|
+
UserSchema,
|
|
13
|
+
FBUser,
|
|
14
|
+
FBUserSchema,
|
|
15
|
+
GoogleUser,
|
|
16
|
+
GoogleUserSchema,
|
|
17
|
+
OKUser,
|
|
18
|
+
OKUserSchema,
|
|
19
|
+
TGUser,
|
|
20
|
+
TGUserSchema,
|
|
21
|
+
VKUser,
|
|
22
|
+
VKUserSchema,
|
|
23
|
+
YAUser,
|
|
24
|
+
YAUserSchema,
|
|
25
|
+
Purchase,
|
|
26
|
+
PurchaseSchema,
|
|
27
|
+
}
|