jp.db.schemas 1.0.31 → 1.0.33
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.
|
@@ -5,8 +5,8 @@ export declare class Room {
|
|
|
5
5
|
type: string;
|
|
6
6
|
name: string;
|
|
7
7
|
nameEn: string;
|
|
8
|
-
title:
|
|
9
|
-
subtitle:
|
|
8
|
+
title: Map<string, string>;
|
|
9
|
+
subtitle: Map<string, string>;
|
|
10
10
|
roomType: string;
|
|
11
11
|
maxPlayers: number;
|
|
12
12
|
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;AAEnE,MAAM,MAAM,YAAY,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC;AAElD,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,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAG3B,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAG9B,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,6 +11,7 @@ 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");
|
|
14
15
|
let Room = class Room {
|
|
15
16
|
};
|
|
16
17
|
exports.Room = Room;
|
|
@@ -35,12 +36,12 @@ __decorate([
|
|
|
35
36
|
__metadata("design:type", String)
|
|
36
37
|
], Room.prototype, "nameEn", void 0);
|
|
37
38
|
__decorate([
|
|
38
|
-
(0, mongoose_1.Prop)(),
|
|
39
|
-
__metadata("design:type",
|
|
39
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.SchemaTypes.Map, of: String }),
|
|
40
|
+
__metadata("design:type", Map)
|
|
40
41
|
], Room.prototype, "title", void 0);
|
|
41
42
|
__decorate([
|
|
42
|
-
(0, mongoose_1.Prop)(),
|
|
43
|
-
__metadata("design:type",
|
|
43
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.SchemaTypes.Map, of: String }),
|
|
44
|
+
__metadata("design:type", Map)
|
|
44
45
|
], Room.prototype, "subtitle", void 0);
|
|
45
46
|
__decorate([
|
|
46
47
|
(0, mongoose_1.Prop)(),
|
|
@@ -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;AACxE,uCAAmE;AAK5D,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,EAAC,EAAE,IAAI,EAAE,sBAAW,CAAC,GAAG,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC;8BACrC,GAAG;mCAAiB;AAG3B;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,sBAAW,CAAC,GAAG,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC;8BAClC,GAAG;sCAAiB;AAG9B;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,5 +1,5 @@
|
|
|
1
1
|
import { Prop, Schema, SchemaFactory, Virtual } from '@nestjs/mongoose';
|
|
2
|
-
import { Document, HydratedDocument } from 'mongoose';
|
|
2
|
+
import { Document, HydratedDocument, SchemaTypes } from 'mongoose';
|
|
3
3
|
|
|
4
4
|
export type RoomDocument = HydratedDocument<Room>;
|
|
5
5
|
|
|
@@ -21,11 +21,11 @@ export class Room {
|
|
|
21
21
|
@Prop()
|
|
22
22
|
nameEn: string;
|
|
23
23
|
|
|
24
|
-
@Prop()
|
|
25
|
-
title:
|
|
24
|
+
@Prop({ type: SchemaTypes.Map, of: String })
|
|
25
|
+
title: Map<string, string>;
|
|
26
26
|
|
|
27
|
-
@Prop()
|
|
28
|
-
subtitle:
|
|
27
|
+
@Prop({ type: SchemaTypes.Map, of: String })
|
|
28
|
+
subtitle: Map<string, string>;
|
|
29
29
|
|
|
30
30
|
@Prop()
|
|
31
31
|
roomType: string;
|