jp.db.schemas 1.0.41 → 1.0.42
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/repositories/game-result.repository.d.ts +1 -1
- package/dist/repositories/game-result.repository.d.ts.map +1 -1
- package/dist/repositories/game-result.repository.js.map +1 -1
- package/dist/schemas/game_result.schema.d.ts +2 -2
- package/dist/schemas/game_result.schema.d.ts.map +1 -1
- package/dist/schemas/game_result.schema.js +1 -1
- package/dist/schemas/game_result.schema.js.map +1 -1
- package/package.json +1 -1
- package/src/repositories/game-result.repository.ts +1 -1
- package/src/schemas/game_result.schema.ts +2 -2
|
@@ -3,6 +3,6 @@ import { GameResult, GameResultDocument } from '../';
|
|
|
3
3
|
export declare class GameResultRepository {
|
|
4
4
|
private gameResultModel;
|
|
5
5
|
constructor(gameResultModel: Model<GameResultDocument>);
|
|
6
|
-
createGameResult(gameResult: GameResult): Promise<GameResult>;
|
|
6
|
+
createGameResult(gameResult: Partial<GameResult>): Promise<GameResult>;
|
|
7
7
|
}
|
|
8
8
|
//# sourceMappingURL=game-result.repository.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"game-result.repository.d.ts","sourceRoot":"","sources":["../../src/repositories/game-result.repository.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,KAAK,CAAC;AAErD,qBACa,oBAAoB;IACc,OAAO,CAAC,eAAe;gBAAf,eAAe,EAAE,KAAK,CAAC,kBAAkB,CAAC;IAGhF,gBAAgB,CAAE,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"game-result.repository.d.ts","sourceRoot":"","sources":["../../src/repositories/game-result.repository.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,KAAK,CAAC;AAErD,qBACa,oBAAoB;IACc,OAAO,CAAC,eAAe;gBAAf,eAAe,EAAE,KAAK,CAAC,kBAAkB,CAAC;IAGhF,gBAAgB,CAAE,UAAU,EAAE,OAAO,CAAC,UAAU,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC;CAGvF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"game-result.repository.js","sourceRoot":"","sources":["../../src/repositories/game-result.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,+CAA+C;AAC/C,uCAAiC;AAEjC,2BAAqD;AAG9C,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC7B,YAAmD,eAA0C;QAA1C,oBAAe,GAAf,eAAe,CAA2B;IAC7F,CAAC;IAEM,KAAK,CAAC,gBAAgB,CAAE,
|
|
1
|
+
{"version":3,"file":"game-result.repository.js","sourceRoot":"","sources":["../../src/repositories/game-result.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,+CAA+C;AAC/C,uCAAiC;AAEjC,2BAAqD;AAG9C,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC7B,YAAmD,eAA0C;QAA1C,oBAAe,GAAf,eAAe,CAA2B;IAC7F,CAAC;IAEM,KAAK,CAAC,gBAAgB,CAAE,UAA+B;QAC1D,OAAO,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IACnD,CAAC;CACJ,CAAA;AAPY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;IAEK,WAAA,IAAA,sBAAW,EAAC,cAAU,CAAC,IAAI,CAAC,CAAA;qCAA0B,gBAAK;GADhE,oBAAoB,CAOhC"}
|
|
@@ -28,11 +28,11 @@ export declare class GameResult {
|
|
|
28
28
|
gameType: string;
|
|
29
29
|
roomId: string;
|
|
30
30
|
gameId: string;
|
|
31
|
-
pot:
|
|
31
|
+
pot: number;
|
|
32
32
|
players: Array<IGameResultPlayer>;
|
|
33
33
|
winners: Array<IGameResultPlayer>;
|
|
34
34
|
history: Array<IGameResultHistoryItem>;
|
|
35
|
-
extraData
|
|
35
|
+
extraData?: object;
|
|
36
36
|
}
|
|
37
37
|
export declare const GameResultSchema: import("mongoose").Schema<GameResult, import("mongoose").Model<GameResult, any, any, any, Document<unknown, any, GameResult, any> & GameResult & {
|
|
38
38
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"game_result.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/game_result.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAe,MAAM,UAAU,CAAC;AAEnE,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,UAAU,CAAC,CAAC;AAE9D,MAAM,WAAW,iBAAiB;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,iBAAiB;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,sBAAsB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,IAAI,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;CACtC;AAED,qBACa,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C,iBAAiB,CAAC,CAAC;CACtC;AAED,qBACa,UAAU;IAMnB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAG9B,IAAI,EAAE,IAAI,CAAC;IAGX,QAAQ,EAAE,MAAM,CAAC;IAGjB,MAAM,EAAE,MAAM,CAAC;IAGf,MAAM,EAAE,MAAM,CAAC;IAGf,GAAG,EAAE,MAAM,CAAC;IAGZ,OAAO,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;IAGlC,OAAO,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;IAGlC,OAAO,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAC;IAGvC,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,gBAAgB;;;;;;;;EAA2C,CAAC"}
|
|
@@ -41,7 +41,7 @@ __decorate([
|
|
|
41
41
|
], GameResult.prototype, "gameId", void 0);
|
|
42
42
|
__decorate([
|
|
43
43
|
(0, mongoose_1.Prop)(),
|
|
44
|
-
__metadata("design:type",
|
|
44
|
+
__metadata("design:type", Number)
|
|
45
45
|
], GameResult.prototype, "pot", void 0);
|
|
46
46
|
__decorate([
|
|
47
47
|
(0, mongoose_1.Prop)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"game_result.schema.js","sourceRoot":"","sources":["../../src/schemas/game_result.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAwE;AACxE,uCAAmE;AA8B5D,IAAM,UAAU,GAAhB,MAAM,UAAU;CAkCtB,CAAA;AAlCY,gCAAU;AAMV;IALR,IAAA,kBAAO,EAAC;QACL,GAAG,EAAE;YACD,OAAO,IAAI,CAAC,EAAE,CAAC;QACnB,CAAC;KACJ,CAAC;;gDAC4B;AAG9B;IADC,IAAA,eAAI,GAAE;8BACD,IAAI;wCAAC;AAGX;IADC,IAAA,eAAI,GAAE;;4CACU;AAGjB;IADC,IAAA,eAAI,GAAE;;0CACQ;AAGf;IADC,IAAA,eAAI,GAAE;;0CACQ;AAGf;IADC,IAAA,eAAI,GAAE;;uCACK;AAGZ;IADC,IAAA,eAAI,GAAE;8BACE,KAAK;2CAAoB;AAGlC;IADC,IAAA,eAAI,GAAE;8BACE,KAAK;2CAAoB;AAGlC;IADC,IAAA,eAAI,GAAE;8BACE,KAAK;2CAAyB;AAGvC;IADC,IAAA,eAAI,EAAC,sBAAW,CAAC,KAAK,CAAC;;
|
|
1
|
+
{"version":3,"file":"game_result.schema.js","sourceRoot":"","sources":["../../src/schemas/game_result.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAwE;AACxE,uCAAmE;AA8B5D,IAAM,UAAU,GAAhB,MAAM,UAAU;CAkCtB,CAAA;AAlCY,gCAAU;AAMV;IALR,IAAA,kBAAO,EAAC;QACL,GAAG,EAAE;YACD,OAAO,IAAI,CAAC,EAAE,CAAC;QACnB,CAAC;KACJ,CAAC;;gDAC4B;AAG9B;IADC,IAAA,eAAI,GAAE;8BACD,IAAI;wCAAC;AAGX;IADC,IAAA,eAAI,GAAE;;4CACU;AAGjB;IADC,IAAA,eAAI,GAAE;;0CACQ;AAGf;IADC,IAAA,eAAI,GAAE;;0CACQ;AAGf;IADC,IAAA,eAAI,GAAE;;uCACK;AAGZ;IADC,IAAA,eAAI,GAAE;8BACE,KAAK;2CAAoB;AAGlC;IADC,IAAA,eAAI,GAAE;8BACE,KAAK;2CAAoB;AAGlC;IADC,IAAA,eAAI,GAAE;8BACE,KAAK;2CAAyB;AAGvC;IADC,IAAA,eAAI,EAAC,sBAAW,CAAC,KAAK,CAAC;;6CACL;qBAjCV,UAAU;IADtB,IAAA,iBAAM,EAAC,EAAE,UAAU,EAAE,cAAc,EAAE,CAAC;GAC1B,UAAU,CAkCtB;AAEY,QAAA,gBAAgB,GAAG,wBAAa,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@ export class GameResultRepository {
|
|
|
9
9
|
constructor (@InjectModel(GameResult.name) private gameResultModel: Model<GameResultDocument>) {
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
public async createGameResult (gameResult: GameResult): Promise<GameResult> {
|
|
12
|
+
public async createGameResult (gameResult: Partial<GameResult>): Promise<GameResult> {
|
|
13
13
|
return this.gameResultModel.create(gameResult);
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -50,7 +50,7 @@ export class GameResult {
|
|
|
50
50
|
gameId: string;
|
|
51
51
|
|
|
52
52
|
@Prop()
|
|
53
|
-
pot:
|
|
53
|
+
pot: number;
|
|
54
54
|
|
|
55
55
|
@Prop()
|
|
56
56
|
players: Array<IGameResultPlayer>;
|
|
@@ -62,7 +62,7 @@ export class GameResult {
|
|
|
62
62
|
history: Array<IGameResultHistoryItem>;
|
|
63
63
|
|
|
64
64
|
@Prop(SchemaTypes.Mixed)
|
|
65
|
-
extraData
|
|
65
|
+
extraData?: object;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
export const GameResultSchema = SchemaFactory.createForClass(GameResult);
|