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
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
export { User, UserSchema, FBUser, FBUserSchema, GoogleUser, GoogleUserSchema, OKUser, OKUserSchema, TGUser, TGUserSchema, VKUser, VKUserSchema, YAUser, YAUserSchema, Purchase, PurchaseSchema, };
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAC5E,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAErE,OAAO,EACH,IAAI,EACJ,UAAU,EACV,MAAM,EACN,YAAY,EACZ,UAAU,EACV,gBAAgB,EAChB,MAAM,EACN,YAAY,EACZ,MAAM,EACN,YAAY,EACZ,MAAM,EACN,YAAY,EACZ,MAAM,EACN,YAAY,EACZ,QAAQ,EACR,cAAc,GACjB,CAAA"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PurchaseSchema = exports.Purchase = exports.YAUserSchema = exports.YAUser = exports.VKUserSchema = exports.VKUser = exports.TGUserSchema = exports.TGUser = exports.OKUserSchema = exports.OKUser = exports.GoogleUserSchema = exports.GoogleUser = exports.FBUserSchema = exports.FBUser = exports.UserSchema = exports.User = void 0;
|
|
4
|
+
const user_schema_1 = require("./schemas/user.schema");
|
|
5
|
+
Object.defineProperty(exports, "User", { enumerable: true, get: function () { return user_schema_1.User; } });
|
|
6
|
+
Object.defineProperty(exports, "UserSchema", { enumerable: true, get: function () { return user_schema_1.UserSchema; } });
|
|
7
|
+
const user_fb_schema_1 = require("./schemas/user.fb.schema");
|
|
8
|
+
Object.defineProperty(exports, "FBUser", { enumerable: true, get: function () { return user_fb_schema_1.FBUser; } });
|
|
9
|
+
Object.defineProperty(exports, "FBUserSchema", { enumerable: true, get: function () { return user_fb_schema_1.FBUserSchema; } });
|
|
10
|
+
const user_google_schema_1 = require("./schemas/user.google.schema");
|
|
11
|
+
Object.defineProperty(exports, "GoogleUser", { enumerable: true, get: function () { return user_google_schema_1.GoogleUser; } });
|
|
12
|
+
Object.defineProperty(exports, "GoogleUserSchema", { enumerable: true, get: function () { return user_google_schema_1.GoogleUserSchema; } });
|
|
13
|
+
const user_ok_schema_1 = require("./schemas/user.ok.schema");
|
|
14
|
+
Object.defineProperty(exports, "OKUser", { enumerable: true, get: function () { return user_ok_schema_1.OKUser; } });
|
|
15
|
+
Object.defineProperty(exports, "OKUserSchema", { enumerable: true, get: function () { return user_ok_schema_1.OKUserSchema; } });
|
|
16
|
+
const user_tg_schema_1 = require("./schemas/user.tg.schema");
|
|
17
|
+
Object.defineProperty(exports, "TGUser", { enumerable: true, get: function () { return user_tg_schema_1.TGUser; } });
|
|
18
|
+
Object.defineProperty(exports, "TGUserSchema", { enumerable: true, get: function () { return user_tg_schema_1.TGUserSchema; } });
|
|
19
|
+
const user_vk_schema_1 = require("./schemas/user.vk.schema");
|
|
20
|
+
Object.defineProperty(exports, "VKUser", { enumerable: true, get: function () { return user_vk_schema_1.VKUser; } });
|
|
21
|
+
Object.defineProperty(exports, "VKUserSchema", { enumerable: true, get: function () { return user_vk_schema_1.VKUserSchema; } });
|
|
22
|
+
const user_ya_schema_1 = require("./schemas/user.ya.schema");
|
|
23
|
+
Object.defineProperty(exports, "YAUser", { enumerable: true, get: function () { return user_ya_schema_1.YAUser; } });
|
|
24
|
+
Object.defineProperty(exports, "YAUserSchema", { enumerable: true, get: function () { return user_ya_schema_1.YAUserSchema; } });
|
|
25
|
+
const purchase_schema_1 = require("./schemas/purchase.schema");
|
|
26
|
+
Object.defineProperty(exports, "Purchase", { enumerable: true, get: function () { return purchase_schema_1.Purchase; } });
|
|
27
|
+
Object.defineProperty(exports, "PurchaseSchema", { enumerable: true, get: function () { return purchase_schema_1.PurchaseSchema; } });
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,uDAAyD;AAUrD,qFAVK,kBAAI,OAUL;AACJ,2FAXW,wBAAU,OAWX;AAVd,6DAAgE;AAW5D,uFAXK,uBAAM,OAWL;AACN,6FAZa,6BAAY,OAYb;AAXhB,qEAA4E;AAYxE,2FAZK,+BAAU,OAYL;AACV,iGAbiB,qCAAgB,OAajB;AAZpB,6DAAgE;AAa5D,uFAbK,uBAAM,OAaL;AACN,6FAda,6BAAY,OAcb;AAbhB,6DAAgE;AAc5D,uFAdK,uBAAM,OAcL;AACN,6FAfa,6BAAY,OAeb;AAdhB,6DAAgE;AAe5D,uFAfK,uBAAM,OAeL;AACN,6FAhBa,6BAAY,OAgBb;AAfhB,6DAAgE;AAgB5D,uFAhBK,uBAAM,OAgBL;AACN,6FAjBa,6BAAY,OAiBb;AAhBhB,+DAAqE;AAiBjE,yFAjBK,0BAAQ,OAiBL;AACR,+FAlBe,gCAAc,OAkBf"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { HydratedDocument, Types } from 'mongoose';
|
|
2
|
+
export type PurchaseDocument = HydratedDocument<Purchase>;
|
|
3
|
+
export declare class Purchase {
|
|
4
|
+
productId: Types.ObjectId;
|
|
5
|
+
title: string;
|
|
6
|
+
amount: number;
|
|
7
|
+
currency: string;
|
|
8
|
+
datetime: Date;
|
|
9
|
+
type: string;
|
|
10
|
+
vkOrderId?: number;
|
|
11
|
+
okOrderId?: string;
|
|
12
|
+
yaOrderId?: string;
|
|
13
|
+
fbOrderId?: string;
|
|
14
|
+
googlePlayOrderId?: string;
|
|
15
|
+
ruStoreOrderId?: string;
|
|
16
|
+
ticketAmount?: number;
|
|
17
|
+
guid: string;
|
|
18
|
+
chips?: number;
|
|
19
|
+
}
|
|
20
|
+
export declare const PurchaseSchema: import("mongoose").Schema<Purchase, import("mongoose").Model<Purchase, any, any, any, import("mongoose").Document<unknown, any, Purchase, any> & Purchase & {
|
|
21
|
+
_id: Types.ObjectId;
|
|
22
|
+
} & {
|
|
23
|
+
__v: number;
|
|
24
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Purchase, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Purchase>, {}> & import("mongoose").FlatRecord<Purchase> & {
|
|
25
|
+
_id: Types.ObjectId;
|
|
26
|
+
} & {
|
|
27
|
+
__v: number;
|
|
28
|
+
}>;
|
|
29
|
+
//# sourceMappingURL=purchase.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"purchase.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/purchase.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAe,KAAK,EAAE,MAAM,UAAU,CAAC;AAEhE,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,CAAC,QAAQ,CAAC,CAAC;AAE1D,qBACa,QAAQ;IAEnB,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC;IAG1B,KAAK,EAAE,MAAM,CAAC;IAGd,MAAM,EAAE,MAAM,CAAC;IAGf,QAAQ,EAAE,MAAM,CAAC;IAGjB,QAAQ,EAAE,IAAI,CAAC;IAGf,IAAI,EAAE,MAAM,CAAC;IAGb,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAG3B,cAAc,CAAC,EAAE,MAAM,CAAC;IAGxB,YAAY,CAAC,EAAE,MAAM,CAAC;IAGtB,IAAI,EAAE,MAAM,CAAC;IAGb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,cAAc;;;;;;;;EAAyC,CAAC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
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.PurchaseSchema = exports.Purchase = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
const mongoose_2 = require("mongoose");
|
|
15
|
+
let Purchase = class Purchase {
|
|
16
|
+
};
|
|
17
|
+
exports.Purchase = Purchase;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.SchemaTypes.ObjectId }),
|
|
20
|
+
__metadata("design:type", mongoose_2.Types.ObjectId)
|
|
21
|
+
], Purchase.prototype, "productId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, mongoose_1.Prop)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], Purchase.prototype, "title", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, mongoose_1.Prop)(),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], Purchase.prototype, "amount", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, mongoose_1.Prop)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], Purchase.prototype, "currency", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, mongoose_1.Prop)(),
|
|
36
|
+
__metadata("design:type", Date)
|
|
37
|
+
], Purchase.prototype, "datetime", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, mongoose_1.Prop)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], Purchase.prototype, "type", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, mongoose_1.Prop)(),
|
|
44
|
+
__metadata("design:type", Number)
|
|
45
|
+
], Purchase.prototype, "vkOrderId", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, mongoose_1.Prop)(),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], Purchase.prototype, "okOrderId", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, mongoose_1.Prop)(),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], Purchase.prototype, "yaOrderId", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, mongoose_1.Prop)(),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], Purchase.prototype, "fbOrderId", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, mongoose_1.Prop)(),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], Purchase.prototype, "googlePlayOrderId", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, mongoose_1.Prop)(),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], Purchase.prototype, "ruStoreOrderId", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, mongoose_1.Prop)(),
|
|
68
|
+
__metadata("design:type", Number)
|
|
69
|
+
], Purchase.prototype, "ticketAmount", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, mongoose_1.Prop)(),
|
|
72
|
+
__metadata("design:type", String)
|
|
73
|
+
], Purchase.prototype, "guid", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, mongoose_1.Prop)(),
|
|
76
|
+
__metadata("design:type", Number)
|
|
77
|
+
], Purchase.prototype, "chips", void 0);
|
|
78
|
+
exports.Purchase = Purchase = __decorate([
|
|
79
|
+
(0, mongoose_1.Schema)()
|
|
80
|
+
], Purchase);
|
|
81
|
+
exports.PurchaseSchema = mongoose_1.SchemaFactory.createForClass(Purchase);
|
|
82
|
+
//# sourceMappingURL=purchase.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"purchase.schema.js","sourceRoot":"","sources":["../../src/schemas/purchase.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAC/D,uCAAgE;AAKzD,IAAM,QAAQ,GAAd,MAAM,QAAQ;CA6CpB,CAAA;AA7CY,4BAAQ;AAEnB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,sBAAW,CAAC,QAAQ,EAAE,CAAC;8BAC1B,gBAAK,CAAC,QAAQ;2CAAC;AAG1B;IADC,IAAA,eAAI,GAAE;;uCACO;AAGd;IADC,IAAA,eAAI,GAAE;;wCACQ;AAGf;IADC,IAAA,eAAI,GAAE;;0CACU;AAGjB;IADC,IAAA,eAAI,GAAE;8BACG,IAAI;0CAAC;AAGf;IADC,IAAA,eAAI,GAAE;;sCACM;AAGb;IADC,IAAA,eAAI,GAAE;;2CACY;AAGnB;IADC,IAAA,eAAI,GAAE;;2CACY;AAGnB;IADC,IAAA,eAAI,GAAE;;2CACY;AAGnB;IADC,IAAA,eAAI,GAAE;;2CACY;AAGnB;IADC,IAAA,eAAI,GAAE;;mDACoB;AAG3B;IADC,IAAA,eAAI,GAAE;;gDACiB;AAGxB;IADC,IAAA,eAAI,GAAE;;8CACe;AAGtB;IADC,IAAA,eAAI,GAAE;;sCACM;AAGb;IADC,IAAA,eAAI,GAAE;;uCACQ;mBA5CJ,QAAQ;IADpB,IAAA,iBAAM,GAAE;GACI,QAAQ,CA6CpB;AAEY,QAAA,cAAc,GAAG,wBAAa,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { HydratedDocument } from 'mongoose';
|
|
2
|
+
export type FBUserDocument = HydratedDocument<FBUser>;
|
|
3
|
+
export declare class FBUser {
|
|
4
|
+
contextId?: string;
|
|
5
|
+
contextType: string;
|
|
6
|
+
locale: string;
|
|
7
|
+
platform: string;
|
|
8
|
+
sdkVersion: string;
|
|
9
|
+
playerName: string;
|
|
10
|
+
playerPic: string;
|
|
11
|
+
playerId: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const FBUserSchema: import("mongoose").Schema<FBUser, import("mongoose").Model<FBUser, any, any, any, import("mongoose").Document<unknown, any, FBUser, any> & FBUser & {
|
|
14
|
+
_id: import("mongoose").Types.ObjectId;
|
|
15
|
+
} & {
|
|
16
|
+
__v: number;
|
|
17
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FBUser, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<FBUser>, {}> & import("mongoose").FlatRecord<FBUser> & {
|
|
18
|
+
_id: import("mongoose").Types.ObjectId;
|
|
19
|
+
} & {
|
|
20
|
+
__v: number;
|
|
21
|
+
}>;
|
|
22
|
+
//# sourceMappingURL=user.fb.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.fb.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/user.fb.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,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,WAAW,EAAE,MAAM,CAAC;IAGpB,MAAM,EAAE,MAAM,CAAC;IAGf,QAAQ,EAAE,MAAM,CAAC;IAGjB,UAAU,EAAE,MAAM,CAAC;IAGnB,UAAU,EAAE,MAAM,CAAC;IAGnB,SAAS,EAAE,MAAM,CAAC;IAGlB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,YAAY;;;;;;;;EAAuC,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
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.FBUserSchema = exports.FBUser = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
let FBUser = class FBUser {
|
|
15
|
+
};
|
|
16
|
+
exports.FBUser = FBUser;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, mongoose_1.Prop)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], FBUser.prototype, "contextId", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, mongoose_1.Prop)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], FBUser.prototype, "contextType", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, mongoose_1.Prop)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], FBUser.prototype, "locale", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, mongoose_1.Prop)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], FBUser.prototype, "platform", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, mongoose_1.Prop)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], FBUser.prototype, "sdkVersion", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, mongoose_1.Prop)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], FBUser.prototype, "playerName", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, mongoose_1.Prop)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], FBUser.prototype, "playerPic", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, mongoose_1.Prop)(),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], FBUser.prototype, "playerId", void 0);
|
|
49
|
+
exports.FBUser = FBUser = __decorate([
|
|
50
|
+
(0, mongoose_1.Schema)()
|
|
51
|
+
], FBUser);
|
|
52
|
+
exports.FBUserSchema = mongoose_1.SchemaFactory.createForClass(FBUser);
|
|
53
|
+
//# sourceMappingURL=user.fb.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.fb.schema.js","sourceRoot":"","sources":["../../src/schemas/user.fb.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAMxD,IAAM,MAAM,GAAZ,MAAM,MAAM;CAwBlB,CAAA;AAxBY,wBAAM;AAEjB;IADC,IAAA,eAAI,GAAE;;yCACY;AAGnB;IADC,IAAA,eAAI,GAAE;;2CACa;AAGpB;IADC,IAAA,eAAI,GAAE;;sCACQ;AAGf;IADC,IAAA,eAAI,GAAE;;wCACU;AAGjB;IADC,IAAA,eAAI,GAAE;;0CACY;AAGnB;IADC,IAAA,eAAI,GAAE;;0CACY;AAGnB;IADC,IAAA,eAAI,GAAE;;yCACW;AAGlB;IADC,IAAA,eAAI,GAAE;;wCACU;iBAvBN,MAAM;IADlB,IAAA,iBAAM,GAAE;GACI,MAAM,CAwBlB;AAEY,QAAA,YAAY,GAAG,wBAAa,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { HydratedDocument } from 'mongoose';
|
|
2
|
+
export type GoogleUserDocument = HydratedDocument<GoogleUser>;
|
|
3
|
+
export declare class GoogleUser {
|
|
4
|
+
userId: string;
|
|
5
|
+
fullName: string;
|
|
6
|
+
language: string;
|
|
7
|
+
avatarUrl: string;
|
|
8
|
+
email: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const GoogleUserSchema: import("mongoose").Schema<GoogleUser, import("mongoose").Model<GoogleUser, any, any, any, import("mongoose").Document<unknown, any, GoogleUser, any> & GoogleUser & {
|
|
11
|
+
_id: import("mongoose").Types.ObjectId;
|
|
12
|
+
} & {
|
|
13
|
+
__v: number;
|
|
14
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, GoogleUser, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<GoogleUser>, {}> & import("mongoose").FlatRecord<GoogleUser> & {
|
|
15
|
+
_id: import("mongoose").Types.ObjectId;
|
|
16
|
+
} & {
|
|
17
|
+
__v: number;
|
|
18
|
+
}>;
|
|
19
|
+
//# sourceMappingURL=user.google.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.google.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/user.google.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,MAAM,EAAE,MAAM,CAAC;IAGf,QAAQ,EAAE,MAAM,CAAC;IAGjB,QAAQ,EAAE,MAAM,CAAC;IAGjB,SAAS,EAAE,MAAM,CAAC;IAGlB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,gBAAgB;;;;;;;;EAA2C,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.GoogleUserSchema = exports.GoogleUser = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
let GoogleUser = class GoogleUser {
|
|
15
|
+
};
|
|
16
|
+
exports.GoogleUser = GoogleUser;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, mongoose_1.Prop)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], GoogleUser.prototype, "userId", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, mongoose_1.Prop)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], GoogleUser.prototype, "fullName", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, mongoose_1.Prop)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], GoogleUser.prototype, "language", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, mongoose_1.Prop)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], GoogleUser.prototype, "avatarUrl", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, mongoose_1.Prop)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], GoogleUser.prototype, "email", void 0);
|
|
37
|
+
exports.GoogleUser = GoogleUser = __decorate([
|
|
38
|
+
(0, mongoose_1.Schema)()
|
|
39
|
+
], GoogleUser);
|
|
40
|
+
exports.GoogleUserSchema = mongoose_1.SchemaFactory.createForClass(GoogleUser);
|
|
41
|
+
//# sourceMappingURL=user.google.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.google.schema.js","sourceRoot":"","sources":["../../src/schemas/user.google.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAMxD,IAAM,UAAU,GAAhB,MAAM,UAAU;CAetB,CAAA;AAfY,gCAAU;AAErB;IADC,IAAA,eAAI,GAAE;;0CACQ;AAGf;IADC,IAAA,eAAI,GAAE;;4CACU;AAGjB;IADC,IAAA,eAAI,GAAE;;4CACU;AAGjB;IADC,IAAA,eAAI,GAAE;;6CACW;AAGlB;IADC,IAAA,eAAI,GAAE;;yCACO;qBAdH,UAAU;IADtB,IAAA,iBAAM,GAAE;GACI,UAAU,CAetB;AAEY,QAAA,gBAAgB,GAAG,wBAAa,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { HydratedDocument } from 'mongoose';
|
|
2
|
+
export type OKUserLocationDocument = HydratedDocument<OKUserLocation>;
|
|
3
|
+
export declare class OKUserLocation {
|
|
4
|
+
id: number;
|
|
5
|
+
city: String;
|
|
6
|
+
country: String;
|
|
7
|
+
countryCode: String;
|
|
8
|
+
countryName: String;
|
|
9
|
+
}
|
|
10
|
+
export declare const OKUserLocationSchema: import("mongoose").Schema<OKUserLocation, import("mongoose").Model<OKUserLocation, any, any, any, import("mongoose").Document<unknown, any, OKUserLocation, any> & OKUserLocation & {
|
|
11
|
+
_id: import("mongoose").Types.ObjectId;
|
|
12
|
+
} & {
|
|
13
|
+
__v: number;
|
|
14
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, OKUserLocation, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<OKUserLocation>, {}> & import("mongoose").FlatRecord<OKUserLocation> & {
|
|
15
|
+
_id: import("mongoose").Types.ObjectId;
|
|
16
|
+
} & {
|
|
17
|
+
__v: number;
|
|
18
|
+
}>;
|
|
19
|
+
export type OKUserDocument = HydratedDocument<OKUser>;
|
|
20
|
+
export declare class OKUser {
|
|
21
|
+
uid: string;
|
|
22
|
+
birthday: string;
|
|
23
|
+
birthdaySet: boolean;
|
|
24
|
+
age: number;
|
|
25
|
+
first_name: string;
|
|
26
|
+
last_name: string;
|
|
27
|
+
location: OKUserLocation;
|
|
28
|
+
pic128x128: string;
|
|
29
|
+
}
|
|
30
|
+
export declare const OKUserSchema: import("mongoose").Schema<OKUser, import("mongoose").Model<OKUser, any, any, any, import("mongoose").Document<unknown, any, OKUser, any> & OKUser & {
|
|
31
|
+
_id: import("mongoose").Types.ObjectId;
|
|
32
|
+
} & {
|
|
33
|
+
__v: number;
|
|
34
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, OKUser, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<OKUser>, {}> & import("mongoose").FlatRecord<OKUser> & {
|
|
35
|
+
_id: import("mongoose").Types.ObjectId;
|
|
36
|
+
} & {
|
|
37
|
+
__v: number;
|
|
38
|
+
}>;
|
|
39
|
+
//# sourceMappingURL=user.ok.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.ok.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/user.ok.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,MAAM,sBAAsB,GAAG,gBAAgB,CAAC,cAAc,CAAC,CAAC;AAEtE,qBACa,cAAc;IAEzB,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;IAGb,OAAO,EAAE,MAAM,CAAC;IAGhB,WAAW,EAAE,MAAM,CAAC;IAGpB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,oBAAoB;;;;;;;;EAA+C,CAAC;AAEjF,MAAM,MAAM,cAAc,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAEtD,qBACa,MAAM;IAEjB,GAAG,EAAE,MAAM,CAAC;IAGZ,QAAQ,EAAE,MAAM,CAAC;IAGjB,WAAW,EAAE,OAAO,CAAC;IAGrB,GAAG,EAAE,MAAM,CAAC;IAGZ,UAAU,EAAE,MAAM,CAAC;IAGnB,SAAS,EAAE,MAAM,CAAC;IAGlB,QAAQ,EAAE,cAAc,CAAC;IAGzB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,YAAY;;;;;;;;EAAuC,CAAC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
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.OKUserSchema = exports.OKUser = exports.OKUserLocationSchema = exports.OKUserLocation = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
let OKUserLocation = class OKUserLocation {
|
|
15
|
+
};
|
|
16
|
+
exports.OKUserLocation = OKUserLocation;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, mongoose_1.Prop)(),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], OKUserLocation.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, mongoose_1.Prop)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], OKUserLocation.prototype, "city", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, mongoose_1.Prop)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], OKUserLocation.prototype, "country", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, mongoose_1.Prop)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], OKUserLocation.prototype, "countryCode", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, mongoose_1.Prop)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], OKUserLocation.prototype, "countryName", void 0);
|
|
37
|
+
exports.OKUserLocation = OKUserLocation = __decorate([
|
|
38
|
+
(0, mongoose_1.Schema)()
|
|
39
|
+
], OKUserLocation);
|
|
40
|
+
exports.OKUserLocationSchema = mongoose_1.SchemaFactory.createForClass(OKUserLocation);
|
|
41
|
+
let OKUser = class OKUser {
|
|
42
|
+
};
|
|
43
|
+
exports.OKUser = OKUser;
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, mongoose_1.Prop)(),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], OKUser.prototype, "uid", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, mongoose_1.Prop)(),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], OKUser.prototype, "birthday", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, mongoose_1.Prop)(),
|
|
54
|
+
__metadata("design:type", Boolean)
|
|
55
|
+
], OKUser.prototype, "birthdaySet", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, mongoose_1.Prop)(),
|
|
58
|
+
__metadata("design:type", Number)
|
|
59
|
+
], OKUser.prototype, "age", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, mongoose_1.Prop)(),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], OKUser.prototype, "first_name", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, mongoose_1.Prop)(),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], OKUser.prototype, "last_name", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, mongoose_1.Prop)(),
|
|
70
|
+
__metadata("design:type", OKUserLocation)
|
|
71
|
+
], OKUser.prototype, "location", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, mongoose_1.Prop)(),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], OKUser.prototype, "pic128x128", void 0);
|
|
76
|
+
exports.OKUser = OKUser = __decorate([
|
|
77
|
+
(0, mongoose_1.Schema)()
|
|
78
|
+
], OKUser);
|
|
79
|
+
exports.OKUserSchema = mongoose_1.SchemaFactory.createForClass(OKUser);
|
|
80
|
+
//# sourceMappingURL=user.ok.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.ok.schema.js","sourceRoot":"","sources":["../../src/schemas/user.ok.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAMxD,IAAM,cAAc,GAApB,MAAM,cAAc;CAe1B,CAAA;AAfY,wCAAc;AAEzB;IADC,IAAA,eAAI,GAAE;;0CACI;AAGX;IADC,IAAA,eAAI,GAAE;8BACD,MAAM;4CAAC;AAGb;IADC,IAAA,eAAI,GAAE;8BACE,MAAM;+CAAC;AAGhB;IADC,IAAA,eAAI,GAAE;8BACM,MAAM;mDAAC;AAGpB;IADC,IAAA,eAAI,GAAE;8BACM,MAAM;mDAAC;yBAdT,cAAc;IAD1B,IAAA,iBAAM,GAAE;GACI,cAAc,CAe1B;AAEY,QAAA,oBAAoB,GAAG,wBAAa,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;AAK1E,IAAM,MAAM,GAAZ,MAAM,MAAM;CAwBlB,CAAA;AAxBY,wBAAM;AAEjB;IADC,IAAA,eAAI,GAAE;;mCACK;AAGZ;IADC,IAAA,eAAI,GAAE;;wCACU;AAGjB;IADC,IAAA,eAAI,GAAE;;2CACc;AAGrB;IADC,IAAA,eAAI,GAAE;;mCACK;AAGZ;IADC,IAAA,eAAI,GAAE;;0CACY;AAGnB;IADC,IAAA,eAAI,GAAE;;yCACW;AAGlB;IADC,IAAA,eAAI,GAAE;8BACG,cAAc;wCAAC;AAGzB;IADC,IAAA,eAAI,GAAE;;0CACY;iBAvBR,MAAM;IADlB,IAAA,iBAAM,GAAE;GACI,MAAM,CAwBlB;AAEY,QAAA,YAAY,GAAG,wBAAa,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { HydratedDocument } from 'mongoose';
|
|
2
|
+
import { VKUser } from './user.vk.schema';
|
|
3
|
+
import { Purchase } from './purchase.schema';
|
|
4
|
+
import { OKUserLocation } from './user.ok.schema';
|
|
5
|
+
import { YAUser } from './user.ya.schema';
|
|
6
|
+
import { TGUser } from './user.tg.schema';
|
|
7
|
+
import { GoogleUser } from './user.google.schema';
|
|
8
|
+
import { FBUser } from './user.fb.schema';
|
|
9
|
+
export type UserDocument = HydratedDocument<User>;
|
|
10
|
+
export type IUserWinnerRating = {
|
|
11
|
+
month: string;
|
|
12
|
+
rank: number;
|
|
13
|
+
profit: number;
|
|
14
|
+
};
|
|
15
|
+
export type IUserFriend = {
|
|
16
|
+
userIdWhoAdded: string;
|
|
17
|
+
addedUserId: string;
|
|
18
|
+
friendId: string;
|
|
19
|
+
confirmed: boolean;
|
|
20
|
+
channelId: string;
|
|
21
|
+
lastVisitChannel?: Date;
|
|
22
|
+
};
|
|
23
|
+
export declare class User {
|
|
24
|
+
login?: string;
|
|
25
|
+
password?: string;
|
|
26
|
+
fullName: string;
|
|
27
|
+
fullNameAlias: string;
|
|
28
|
+
balance: number;
|
|
29
|
+
avatarUrl: string;
|
|
30
|
+
avatarAliasUrl: string;
|
|
31
|
+
avatarFrame: string;
|
|
32
|
+
theme: string;
|
|
33
|
+
language: string;
|
|
34
|
+
cardSkin: string;
|
|
35
|
+
gameSounds: string;
|
|
36
|
+
vkUser?: VKUser;
|
|
37
|
+
okUser?: OKUserLocation;
|
|
38
|
+
yaUser?: YAUser;
|
|
39
|
+
googleUser?: GoogleUser;
|
|
40
|
+
fbUser?: FBUser;
|
|
41
|
+
tgUser?: TGUser;
|
|
42
|
+
everydayEnterCount: number;
|
|
43
|
+
lastEnter: Date;
|
|
44
|
+
lastLoginClientVersion: string;
|
|
45
|
+
lastLoginClientChannel: string;
|
|
46
|
+
lastLoginClientDevice: string;
|
|
47
|
+
lastLoginClientOS: string;
|
|
48
|
+
lastLoginClientBrowser: string;
|
|
49
|
+
lastLoginClientDeviceWidth: number;
|
|
50
|
+
lastLoginClientDeviceHeight: number;
|
|
51
|
+
lastLoginClientIsMobile: boolean;
|
|
52
|
+
purchases: Array<Purchase>;
|
|
53
|
+
likedNotifications: Array<string>;
|
|
54
|
+
lastReadNotificationsDate?: Date;
|
|
55
|
+
experience: number;
|
|
56
|
+
level: number;
|
|
57
|
+
gamesPlayed: number;
|
|
58
|
+
gamesWon: number;
|
|
59
|
+
gamesTheBestSet: number;
|
|
60
|
+
gamesMaxProfit: number;
|
|
61
|
+
isBannedInChat: boolean;
|
|
62
|
+
friends: IUserFriend[];
|
|
63
|
+
roomTable: string;
|
|
64
|
+
disableEditName: boolean;
|
|
65
|
+
winnerRatings: Array<IUserWinnerRating>;
|
|
66
|
+
colorSchema: string;
|
|
67
|
+
registerDate: Date;
|
|
68
|
+
premiumExpired: Date;
|
|
69
|
+
watchedPremiumExpiredScreenCounter: number;
|
|
70
|
+
lastRewardAdvView?: Date;
|
|
71
|
+
achievements?: Array<string>;
|
|
72
|
+
earnProfitCount: number;
|
|
73
|
+
winSharksCount: number;
|
|
74
|
+
fastTournamentsWonCount: number;
|
|
75
|
+
allInWinCount: number;
|
|
76
|
+
watchedAdvRewardCount: number;
|
|
77
|
+
textedMessagesCount: number;
|
|
78
|
+
sentReactionsCount: number;
|
|
79
|
+
setTwoPairCount: number;
|
|
80
|
+
setThreeOfAKind: number;
|
|
81
|
+
setStraightCount: number;
|
|
82
|
+
setFlushCount: number;
|
|
83
|
+
setFullHouseCount: number;
|
|
84
|
+
setFourOfAKindCount: number;
|
|
85
|
+
setStraightFlushCount: number;
|
|
86
|
+
bannedUsers: Array<string>;
|
|
87
|
+
bgPattern: string;
|
|
88
|
+
isNewUser: boolean;
|
|
89
|
+
}
|
|
90
|
+
export declare const UserSchema: import("mongoose").Schema<User, import("mongoose").Model<User, any, any, any, import("mongoose").Document<unknown, any, User, any> & User & {
|
|
91
|
+
_id: import("mongoose").Types.ObjectId;
|
|
92
|
+
} & {
|
|
93
|
+
__v: number;
|
|
94
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, User, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<User>, {}> & import("mongoose").FlatRecord<User> & {
|
|
95
|
+
_id: import("mongoose").Types.ObjectId;
|
|
96
|
+
} & {
|
|
97
|
+
__v: number;
|
|
98
|
+
}>;
|
|
99
|
+
//# sourceMappingURL=user.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/user.schema.ts"],"names":[],"mappings":"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"}
|