jp.db.schemas 1.0.32 → 1.0.34
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.
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { Document, HydratedDocument } from 'mongoose';
|
|
2
2
|
export type RoomDocument = HydratedDocument<Room>;
|
|
3
|
+
export interface Locale {
|
|
4
|
+
ru: string;
|
|
5
|
+
en: string;
|
|
6
|
+
}
|
|
3
7
|
export declare class Room {
|
|
4
8
|
readonly roomId: string;
|
|
5
9
|
type: string;
|
|
6
10
|
name: string;
|
|
7
11
|
nameEn: string;
|
|
8
|
-
title:
|
|
9
|
-
subtitle:
|
|
12
|
+
title: Locale;
|
|
13
|
+
subtitle: Locale;
|
|
10
14
|
roomType: string;
|
|
11
15
|
maxPlayers: number;
|
|
12
16
|
bet: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rooms.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/rooms.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"rooms.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/rooms.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEtD,MAAM,MAAM,YAAY,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC;AAElD,MAAM,WAAW,MAAM;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;CACd;AAED,qBACa,IAAI;IAMb,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAGxB,IAAI,EAAE,MAAM,CAAC;IAGb,IAAI,EAAE,MAAM,CAAC;IAGb,MAAM,EAAE,MAAM,CAAC;IAGf,KAAK,EAAE,MAAM,CAAC;IAGd,QAAQ,EAAE,MAAM,CAAC;IAGjB,QAAQ,EAAE,MAAM,CAAC;IAGjB,UAAU,EAAE,MAAM,CAAC;IAGnB,GAAG,EAAE,MAAM,CAAC;IAGZ,OAAO,EAAE,MAAM,CAAC;IAGhB,KAAK,EAAE,MAAM,CAAC;IAGd,gBAAgB,EAAE,MAAM,CAAC;IAGzB,IAAI,EAAE,MAAM,CAAC;IAGb,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,UAAU;;;;;;;;EAAqC,CAAC"}
|
|
@@ -11,7 +11,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.RoomSchema = exports.Room = void 0;
|
|
13
13
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
-
const mongoose_2 = require("mongoose");
|
|
15
14
|
let Room = class Room {
|
|
16
15
|
};
|
|
17
16
|
exports.Room = Room;
|
|
@@ -36,11 +35,11 @@ __decorate([
|
|
|
36
35
|
__metadata("design:type", String)
|
|
37
36
|
], Room.prototype, "nameEn", void 0);
|
|
38
37
|
__decorate([
|
|
39
|
-
(0, mongoose_1.Prop)(
|
|
38
|
+
(0, mongoose_1.Prop)(),
|
|
40
39
|
__metadata("design:type", Object)
|
|
41
40
|
], Room.prototype, "title", void 0);
|
|
42
41
|
__decorate([
|
|
43
|
-
(0, mongoose_1.Prop)(
|
|
42
|
+
(0, mongoose_1.Prop)(),
|
|
44
43
|
__metadata("design:type", Object)
|
|
45
44
|
], Room.prototype, "subtitle", void 0);
|
|
46
45
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rooms.schema.js","sourceRoot":"","sources":["../../src/schemas/rooms.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAwE;
|
|
1
|
+
{"version":3,"file":"rooms.schema.js","sourceRoot":"","sources":["../../src/schemas/rooms.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAwE;AAWjE,IAAM,IAAI,GAAV,MAAM,IAAI;CA8ChB,CAAA;AA9CY,oBAAI;AAMJ;IALR,IAAA,kBAAO,EAAC;QACL,GAAG,EAAE;YACD,OAAO,IAAI,CAAC,EAAE,CAAC;QACnB,CAAC;KACJ,CAAC;;oCACsB;AAGxB;IADC,IAAA,eAAI,GAAE;;kCACM;AAGb;IADC,IAAA,eAAI,GAAE;;kCACM;AAGb;IADC,IAAA,eAAI,GAAE;;oCACQ;AAGf;IADC,IAAA,eAAI,GAAE;;mCACO;AAGd;IADC,IAAA,eAAI,GAAE;;sCACU;AAGjB;IADC,IAAA,eAAI,GAAE;;sCACU;AAGjB;IADC,IAAA,eAAI,GAAE;;wCACY;AAGnB;IADC,IAAA,eAAI,GAAE;;iCACK;AAGZ;IADC,IAAA,eAAI,GAAE;;qCACS;AAGhB;IADC,IAAA,eAAI,GAAE;;mCACO;AAGd;IADC,IAAA,eAAI,GAAE;;8CACkB;AAGzB;IADC,IAAA,eAAI,GAAE;;kCACM;AAGb;IADC,IAAA,eAAI,GAAE;;uCACW;eA7CT,IAAI;IADhB,IAAA,iBAAM,GAAE;GACI,IAAI,CA8ChB;AAEY,QAAA,UAAU,GAAG,wBAAa,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { Prop, Schema, SchemaFactory, Virtual } from '@nestjs/mongoose';
|
|
2
|
-
import { Document, HydratedDocument
|
|
2
|
+
import { Document, HydratedDocument } from 'mongoose';
|
|
3
3
|
|
|
4
4
|
export type RoomDocument = HydratedDocument<Room>;
|
|
5
5
|
|
|
6
|
+
export interface Locale {
|
|
7
|
+
ru: string;
|
|
8
|
+
en: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
6
11
|
@Schema()
|
|
7
12
|
export class Room {
|
|
8
13
|
@Virtual({
|
|
@@ -21,11 +26,11 @@ export class Room {
|
|
|
21
26
|
@Prop()
|
|
22
27
|
nameEn: string;
|
|
23
28
|
|
|
24
|
-
@Prop(
|
|
25
|
-
title:
|
|
29
|
+
@Prop()
|
|
30
|
+
title: Locale;
|
|
26
31
|
|
|
27
|
-
@Prop(
|
|
28
|
-
subtitle:
|
|
32
|
+
@Prop()
|
|
33
|
+
subtitle: Locale;
|
|
29
34
|
|
|
30
35
|
@Prop()
|
|
31
36
|
roomType: string;
|