jp.db.schemas 2.0.1 → 2.0.2
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 +12 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -1
- package/dist/index.js.map +1 -1
- package/dist/repositories/index.d.ts +5 -1
- package/dist/repositories/index.d.ts.map +1 -1
- package/dist/repositories/index.js +9 -1
- package/dist/repositories/index.js.map +1 -1
- package/dist/repositories/simple-rooms.repository.d.ts +8 -0
- package/dist/repositories/simple-rooms.repository.d.ts.map +1 -0
- package/dist/repositories/simple-rooms.repository.js +36 -0
- package/dist/repositories/simple-rooms.repository.js.map +1 -0
- package/dist/repositories/tournament-many-tables-rooms.repository.d.ts +8 -0
- package/dist/repositories/tournament-many-tables-rooms.repository.d.ts.map +1 -0
- package/dist/repositories/tournament-many-tables-rooms.repository.js +36 -0
- package/dist/repositories/tournament-many-tables-rooms.repository.js.map +1 -0
- package/dist/repositories/tournament-one-table-rooms.repository.d.ts +8 -0
- package/dist/repositories/tournament-one-table-rooms.repository.d.ts.map +1 -0
- package/dist/repositories/tournament-one-table-rooms.repository.js +36 -0
- package/dist/repositories/tournament-one-table-rooms.repository.js.map +1 -0
- package/dist/repositories/tournament-result.repository.d.ts +9 -0
- package/dist/repositories/tournament-result.repository.d.ts.map +1 -0
- package/dist/repositories/tournament-result.repository.js +39 -0
- package/dist/repositories/tournament-result.repository.js.map +1 -0
- package/dist/schemas/simple_rooms.schema.d.ts +125 -0
- package/dist/schemas/simple_rooms.schema.d.ts.map +1 -0
- package/dist/schemas/simple_rooms.schema.js +65 -0
- package/dist/schemas/simple_rooms.schema.js.map +1 -0
- package/dist/schemas/tournament_many_tables_rooms.schema.d.ts +200 -0
- package/dist/schemas/tournament_many_tables_rooms.schema.d.ts.map +1 -0
- package/dist/schemas/tournament_many_tables_rooms.schema.js +93 -0
- package/dist/schemas/tournament_many_tables_rooms.schema.js.map +1 -0
- package/dist/schemas/tournament_one_table_rooms.schema.d.ts +125 -0
- package/dist/schemas/tournament_one_table_rooms.schema.d.ts.map +1 -0
- package/dist/schemas/tournament_one_table_rooms.schema.js +65 -0
- package/dist/schemas/tournament_one_table_rooms.schema.js.map +1 -0
- package/dist/schemas/tournament_result.schema.d.ts +82 -0
- package/dist/schemas/tournament_result.schema.d.ts.map +1 -0
- package/dist/schemas/tournament_result.schema.js +45 -0
- package/dist/schemas/tournament_result.schema.js.map +1 -0
- package/package.json +1 -1
- package/src/index.ts +28 -0
- package/src/repositories/index.ts +8 -0
- package/src/repositories/simple-rooms.repository.ts +17 -0
- package/src/repositories/tournament-many-tables-rooms.repository.ts +17 -0
- package/src/repositories/tournament-one-table-rooms.repository.ts +17 -0
- package/src/repositories/tournament-result.repository.ts +21 -0
- package/src/schemas/simple_rooms.schema.ts +43 -0
- package/src/schemas/tournament_many_tables_rooms.schema.ts +70 -0
- package/src/schemas/tournament_one_table_rooms.schema.ts +43 -0
- package/src/schemas/tournament_result.schema.ts +36 -0
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { Document, HydratedDocument } from 'mongoose';
|
|
2
|
+
export type TournamentManyTablesRoomDocument = HydratedDocument<TournamentManyTablesRoom>;
|
|
3
|
+
export interface IParticipant {
|
|
4
|
+
userId: string;
|
|
5
|
+
userName: string;
|
|
6
|
+
userAvatarUrl: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class TournamentManyTablesRoom {
|
|
9
|
+
readonly roomId: string;
|
|
10
|
+
title: Record<string, string>;
|
|
11
|
+
subtitle: Record<string, string>;
|
|
12
|
+
tableSize: number;
|
|
13
|
+
bet: number;
|
|
14
|
+
ticketPrice: number;
|
|
15
|
+
roomType: string;
|
|
16
|
+
gameType: string;
|
|
17
|
+
rulesType: string;
|
|
18
|
+
deckType?: string;
|
|
19
|
+
createDate: Date;
|
|
20
|
+
startDate: Date;
|
|
21
|
+
description: Record<string, string>;
|
|
22
|
+
participants: Array<IParticipant>;
|
|
23
|
+
maxParticipants: number;
|
|
24
|
+
status: string;
|
|
25
|
+
type: string;
|
|
26
|
+
}
|
|
27
|
+
export declare const TournamentManyTablesRoomSchema: import("mongoose").Schema<TournamentManyTablesRoom, import("mongoose").Model<TournamentManyTablesRoom, any, any, any, (Document<unknown, any, TournamentManyTablesRoom, any, import("mongoose").DefaultSchemaOptions> & TournamentManyTablesRoom & {
|
|
28
|
+
_id: import("mongoose").Types.ObjectId;
|
|
29
|
+
} & {
|
|
30
|
+
__v: number;
|
|
31
|
+
} & {
|
|
32
|
+
id: string;
|
|
33
|
+
}) | (Document<unknown, any, TournamentManyTablesRoom, any, import("mongoose").DefaultSchemaOptions> & TournamentManyTablesRoom & {
|
|
34
|
+
_id: import("mongoose").Types.ObjectId;
|
|
35
|
+
} & {
|
|
36
|
+
__v: number;
|
|
37
|
+
}), any, TournamentManyTablesRoom>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, TournamentManyTablesRoom, Document<unknown, {}, TournamentManyTablesRoom, {
|
|
38
|
+
id: string;
|
|
39
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<TournamentManyTablesRoom & {
|
|
40
|
+
_id: import("mongoose").Types.ObjectId;
|
|
41
|
+
} & {
|
|
42
|
+
__v: number;
|
|
43
|
+
}, "id"> & {
|
|
44
|
+
id: string;
|
|
45
|
+
}, {
|
|
46
|
+
readonly roomId?: import("mongoose").SchemaDefinitionProperty<string, TournamentManyTablesRoom, Document<unknown, {}, TournamentManyTablesRoom, {
|
|
47
|
+
id: string;
|
|
48
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<TournamentManyTablesRoom & {
|
|
49
|
+
_id: import("mongoose").Types.ObjectId;
|
|
50
|
+
} & {
|
|
51
|
+
__v: number;
|
|
52
|
+
}, "id"> & {
|
|
53
|
+
id: string;
|
|
54
|
+
}>;
|
|
55
|
+
title?: import("mongoose").SchemaDefinitionProperty<Record<string, string>, TournamentManyTablesRoom, Document<unknown, {}, TournamentManyTablesRoom, {
|
|
56
|
+
id: string;
|
|
57
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<TournamentManyTablesRoom & {
|
|
58
|
+
_id: import("mongoose").Types.ObjectId;
|
|
59
|
+
} & {
|
|
60
|
+
__v: number;
|
|
61
|
+
}, "id"> & {
|
|
62
|
+
id: string;
|
|
63
|
+
}>;
|
|
64
|
+
subtitle?: import("mongoose").SchemaDefinitionProperty<Record<string, string>, TournamentManyTablesRoom, Document<unknown, {}, TournamentManyTablesRoom, {
|
|
65
|
+
id: string;
|
|
66
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<TournamentManyTablesRoom & {
|
|
67
|
+
_id: import("mongoose").Types.ObjectId;
|
|
68
|
+
} & {
|
|
69
|
+
__v: number;
|
|
70
|
+
}, "id"> & {
|
|
71
|
+
id: string;
|
|
72
|
+
}>;
|
|
73
|
+
tableSize?: import("mongoose").SchemaDefinitionProperty<number, TournamentManyTablesRoom, Document<unknown, {}, TournamentManyTablesRoom, {
|
|
74
|
+
id: string;
|
|
75
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<TournamentManyTablesRoom & {
|
|
76
|
+
_id: import("mongoose").Types.ObjectId;
|
|
77
|
+
} & {
|
|
78
|
+
__v: number;
|
|
79
|
+
}, "id"> & {
|
|
80
|
+
id: string;
|
|
81
|
+
}>;
|
|
82
|
+
bet?: import("mongoose").SchemaDefinitionProperty<number, TournamentManyTablesRoom, Document<unknown, {}, TournamentManyTablesRoom, {
|
|
83
|
+
id: string;
|
|
84
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<TournamentManyTablesRoom & {
|
|
85
|
+
_id: import("mongoose").Types.ObjectId;
|
|
86
|
+
} & {
|
|
87
|
+
__v: number;
|
|
88
|
+
}, "id"> & {
|
|
89
|
+
id: string;
|
|
90
|
+
}>;
|
|
91
|
+
ticketPrice?: import("mongoose").SchemaDefinitionProperty<number, TournamentManyTablesRoom, Document<unknown, {}, TournamentManyTablesRoom, {
|
|
92
|
+
id: string;
|
|
93
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<TournamentManyTablesRoom & {
|
|
94
|
+
_id: import("mongoose").Types.ObjectId;
|
|
95
|
+
} & {
|
|
96
|
+
__v: number;
|
|
97
|
+
}, "id"> & {
|
|
98
|
+
id: string;
|
|
99
|
+
}>;
|
|
100
|
+
roomType?: import("mongoose").SchemaDefinitionProperty<string, TournamentManyTablesRoom, Document<unknown, {}, TournamentManyTablesRoom, {
|
|
101
|
+
id: string;
|
|
102
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<TournamentManyTablesRoom & {
|
|
103
|
+
_id: import("mongoose").Types.ObjectId;
|
|
104
|
+
} & {
|
|
105
|
+
__v: number;
|
|
106
|
+
}, "id"> & {
|
|
107
|
+
id: string;
|
|
108
|
+
}>;
|
|
109
|
+
gameType?: import("mongoose").SchemaDefinitionProperty<string, TournamentManyTablesRoom, Document<unknown, {}, TournamentManyTablesRoom, {
|
|
110
|
+
id: string;
|
|
111
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<TournamentManyTablesRoom & {
|
|
112
|
+
_id: import("mongoose").Types.ObjectId;
|
|
113
|
+
} & {
|
|
114
|
+
__v: number;
|
|
115
|
+
}, "id"> & {
|
|
116
|
+
id: string;
|
|
117
|
+
}>;
|
|
118
|
+
rulesType?: import("mongoose").SchemaDefinitionProperty<string, TournamentManyTablesRoom, Document<unknown, {}, TournamentManyTablesRoom, {
|
|
119
|
+
id: string;
|
|
120
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<TournamentManyTablesRoom & {
|
|
121
|
+
_id: import("mongoose").Types.ObjectId;
|
|
122
|
+
} & {
|
|
123
|
+
__v: number;
|
|
124
|
+
}, "id"> & {
|
|
125
|
+
id: string;
|
|
126
|
+
}>;
|
|
127
|
+
deckType?: import("mongoose").SchemaDefinitionProperty<string, TournamentManyTablesRoom, Document<unknown, {}, TournamentManyTablesRoom, {
|
|
128
|
+
id: string;
|
|
129
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<TournamentManyTablesRoom & {
|
|
130
|
+
_id: import("mongoose").Types.ObjectId;
|
|
131
|
+
} & {
|
|
132
|
+
__v: number;
|
|
133
|
+
}, "id"> & {
|
|
134
|
+
id: string;
|
|
135
|
+
}>;
|
|
136
|
+
createDate?: import("mongoose").SchemaDefinitionProperty<Date, TournamentManyTablesRoom, Document<unknown, {}, TournamentManyTablesRoom, {
|
|
137
|
+
id: string;
|
|
138
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<TournamentManyTablesRoom & {
|
|
139
|
+
_id: import("mongoose").Types.ObjectId;
|
|
140
|
+
} & {
|
|
141
|
+
__v: number;
|
|
142
|
+
}, "id"> & {
|
|
143
|
+
id: string;
|
|
144
|
+
}>;
|
|
145
|
+
startDate?: import("mongoose").SchemaDefinitionProperty<Date, TournamentManyTablesRoom, Document<unknown, {}, TournamentManyTablesRoom, {
|
|
146
|
+
id: string;
|
|
147
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<TournamentManyTablesRoom & {
|
|
148
|
+
_id: import("mongoose").Types.ObjectId;
|
|
149
|
+
} & {
|
|
150
|
+
__v: number;
|
|
151
|
+
}, "id"> & {
|
|
152
|
+
id: string;
|
|
153
|
+
}>;
|
|
154
|
+
description?: import("mongoose").SchemaDefinitionProperty<Record<string, string>, TournamentManyTablesRoom, Document<unknown, {}, TournamentManyTablesRoom, {
|
|
155
|
+
id: string;
|
|
156
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<TournamentManyTablesRoom & {
|
|
157
|
+
_id: import("mongoose").Types.ObjectId;
|
|
158
|
+
} & {
|
|
159
|
+
__v: number;
|
|
160
|
+
}, "id"> & {
|
|
161
|
+
id: string;
|
|
162
|
+
}>;
|
|
163
|
+
participants?: import("mongoose").SchemaDefinitionProperty<IParticipant[], TournamentManyTablesRoom, Document<unknown, {}, TournamentManyTablesRoom, {
|
|
164
|
+
id: string;
|
|
165
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<TournamentManyTablesRoom & {
|
|
166
|
+
_id: import("mongoose").Types.ObjectId;
|
|
167
|
+
} & {
|
|
168
|
+
__v: number;
|
|
169
|
+
}, "id"> & {
|
|
170
|
+
id: string;
|
|
171
|
+
}>;
|
|
172
|
+
maxParticipants?: import("mongoose").SchemaDefinitionProperty<number, TournamentManyTablesRoom, Document<unknown, {}, TournamentManyTablesRoom, {
|
|
173
|
+
id: string;
|
|
174
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<TournamentManyTablesRoom & {
|
|
175
|
+
_id: import("mongoose").Types.ObjectId;
|
|
176
|
+
} & {
|
|
177
|
+
__v: number;
|
|
178
|
+
}, "id"> & {
|
|
179
|
+
id: string;
|
|
180
|
+
}>;
|
|
181
|
+
status?: import("mongoose").SchemaDefinitionProperty<string, TournamentManyTablesRoom, Document<unknown, {}, TournamentManyTablesRoom, {
|
|
182
|
+
id: string;
|
|
183
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<TournamentManyTablesRoom & {
|
|
184
|
+
_id: import("mongoose").Types.ObjectId;
|
|
185
|
+
} & {
|
|
186
|
+
__v: number;
|
|
187
|
+
}, "id"> & {
|
|
188
|
+
id: string;
|
|
189
|
+
}>;
|
|
190
|
+
type?: import("mongoose").SchemaDefinitionProperty<string, TournamentManyTablesRoom, Document<unknown, {}, TournamentManyTablesRoom, {
|
|
191
|
+
id: string;
|
|
192
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<TournamentManyTablesRoom & {
|
|
193
|
+
_id: import("mongoose").Types.ObjectId;
|
|
194
|
+
} & {
|
|
195
|
+
__v: number;
|
|
196
|
+
}, "id"> & {
|
|
197
|
+
id: string;
|
|
198
|
+
}>;
|
|
199
|
+
}, TournamentManyTablesRoom>;
|
|
200
|
+
//# sourceMappingURL=tournament_many_tables_rooms.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tournament_many_tables_rooms.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/tournament_many_tables_rooms.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEtD,MAAM,MAAM,gCAAgC,GAAG,gBAAgB,CAAC,wBAAwB,CAAC,CAAC;AAE1F,MAAM,WAAW,YAAY;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;CACzB;AAED,qBACa,wBAAwB;IAMjC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAGxB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAG9B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAGjC,SAAS,EAAE,MAAM,CAAC;IAGlB,GAAG,EAAE,MAAM,CAAC;IAGZ,WAAW,EAAE,MAAM,CAAC;IAGpB,QAAQ,EAAE,MAAM,CAAC;IAGjB,QAAQ,EAAE,MAAM,CAAC;IAGjB,SAAS,EAAE,MAAM,CAAC;IAGlB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,UAAU,EAAE,IAAI,CAAC;IAGjB,SAAS,EAAE,IAAI,CAAC;IAGhB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAGpC,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;IAGlC,eAAe,EAAE,MAAM,CAAC;IAGxB,MAAM,EAAE,MAAM,CAAC;IAGf,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAAyD,CAAC"}
|
|
@@ -0,0 +1,93 @@
|
|
|
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.TournamentManyTablesRoomSchema = exports.TournamentManyTablesRoom = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
let TournamentManyTablesRoom = class TournamentManyTablesRoom {
|
|
15
|
+
};
|
|
16
|
+
exports.TournamentManyTablesRoom = TournamentManyTablesRoom;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, mongoose_1.Virtual)({
|
|
19
|
+
get: function () {
|
|
20
|
+
return this._id.toString();
|
|
21
|
+
},
|
|
22
|
+
}),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], TournamentManyTablesRoom.prototype, "roomId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, mongoose_1.Prop)({ type: Object }),
|
|
27
|
+
__metadata("design:type", Object)
|
|
28
|
+
], TournamentManyTablesRoom.prototype, "title", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, mongoose_1.Prop)({ type: Object }),
|
|
31
|
+
__metadata("design:type", Object)
|
|
32
|
+
], TournamentManyTablesRoom.prototype, "subtitle", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, mongoose_1.Prop)(),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], TournamentManyTablesRoom.prototype, "tableSize", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, mongoose_1.Prop)(),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], TournamentManyTablesRoom.prototype, "bet", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, mongoose_1.Prop)(),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], TournamentManyTablesRoom.prototype, "ticketPrice", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, mongoose_1.Prop)(),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], TournamentManyTablesRoom.prototype, "roomType", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, mongoose_1.Prop)(),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], TournamentManyTablesRoom.prototype, "gameType", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, mongoose_1.Prop)(),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], TournamentManyTablesRoom.prototype, "rulesType", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, mongoose_1.Prop)(),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], TournamentManyTablesRoom.prototype, "deckType", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, mongoose_1.Prop)(),
|
|
63
|
+
__metadata("design:type", Date)
|
|
64
|
+
], TournamentManyTablesRoom.prototype, "createDate", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, mongoose_1.Prop)(),
|
|
67
|
+
__metadata("design:type", Date)
|
|
68
|
+
], TournamentManyTablesRoom.prototype, "startDate", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, mongoose_1.Prop)({ type: Object }),
|
|
71
|
+
__metadata("design:type", Object)
|
|
72
|
+
], TournamentManyTablesRoom.prototype, "description", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, mongoose_1.Prop)(),
|
|
75
|
+
__metadata("design:type", Array)
|
|
76
|
+
], TournamentManyTablesRoom.prototype, "participants", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, mongoose_1.Prop)(),
|
|
79
|
+
__metadata("design:type", Number)
|
|
80
|
+
], TournamentManyTablesRoom.prototype, "maxParticipants", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, mongoose_1.Prop)(),
|
|
83
|
+
__metadata("design:type", String)
|
|
84
|
+
], TournamentManyTablesRoom.prototype, "status", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, mongoose_1.Prop)(),
|
|
87
|
+
__metadata("design:type", String)
|
|
88
|
+
], TournamentManyTablesRoom.prototype, "type", void 0);
|
|
89
|
+
exports.TournamentManyTablesRoom = TournamentManyTablesRoom = __decorate([
|
|
90
|
+
(0, mongoose_1.Schema)({ collection: 'tournament_many_tables_rooms' })
|
|
91
|
+
], TournamentManyTablesRoom);
|
|
92
|
+
exports.TournamentManyTablesRoomSchema = mongoose_1.SchemaFactory.createForClass(TournamentManyTablesRoom);
|
|
93
|
+
//# sourceMappingURL=tournament_many_tables_rooms.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tournament_many_tables_rooms.schema.js","sourceRoot":"","sources":["../../src/schemas/tournament_many_tables_rooms.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAwE;AAYjE,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;CAuDpC,CAAA;AAvDY,4DAAwB;AAMxB;IALR,IAAA,kBAAO,EAAC;QACL,GAAG,EAAE;YACD,OAAO,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;QAC/B,CAAC;KACJ,CAAC;;wDACsB;AAGxB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;uDACO;AAG9B;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;0DACU;AAGjC;IADC,IAAA,eAAI,GAAE;;2DACW;AAGlB;IADC,IAAA,eAAI,GAAE;;qDACK;AAGZ;IADC,IAAA,eAAI,GAAE;;6DACa;AAGpB;IADC,IAAA,eAAI,GAAE;;0DACU;AAGjB;IADC,IAAA,eAAI,GAAE;;0DACU;AAGjB;IADC,IAAA,eAAI,GAAE;;2DACW;AAGlB;IADC,IAAA,eAAI,GAAE;;0DACW;AAGlB;IADC,IAAA,eAAI,GAAE;8BACK,IAAI;4DAAC;AAGjB;IADC,IAAA,eAAI,GAAE;8BACI,IAAI;2DAAC;AAGhB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;6DACa;AAGpC;IADC,IAAA,eAAI,GAAE;8BACO,KAAK;8DAAe;AAGlC;IADC,IAAA,eAAI,GAAE;;iEACiB;AAGxB;IADC,IAAA,eAAI,GAAE;;wDACQ;AAGf;IADC,IAAA,eAAI,GAAE;;sDACM;mCAtDJ,wBAAwB;IADpC,IAAA,iBAAM,EAAC,EAAE,UAAU,EAAE,8BAA8B,EAAE,CAAC;GAC1C,wBAAwB,CAuDpC;AAEY,QAAA,8BAA8B,GAAG,wBAAa,CAAC,cAAc,CAAC,wBAAwB,CAAC,CAAC"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { Document, HydratedDocument } from 'mongoose';
|
|
2
|
+
export type TournamentOneTableRoomDocument = HydratedDocument<TournamentOneTableRoom>;
|
|
3
|
+
export declare class TournamentOneTableRoom {
|
|
4
|
+
readonly roomId: string;
|
|
5
|
+
title: Record<string, string>;
|
|
6
|
+
subtitle: Record<string, string>;
|
|
7
|
+
tableSize: number;
|
|
8
|
+
bet: number;
|
|
9
|
+
ticketPrice: number;
|
|
10
|
+
roomType: string;
|
|
11
|
+
gameType: string;
|
|
12
|
+
rulesType: string;
|
|
13
|
+
deckType?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const TournamentOneTableRoomSchema: import("mongoose").Schema<TournamentOneTableRoom, import("mongoose").Model<TournamentOneTableRoom, any, any, any, (Document<unknown, any, TournamentOneTableRoom, any, import("mongoose").DefaultSchemaOptions> & TournamentOneTableRoom & {
|
|
16
|
+
_id: import("mongoose").Types.ObjectId;
|
|
17
|
+
} & {
|
|
18
|
+
__v: number;
|
|
19
|
+
} & {
|
|
20
|
+
id: string;
|
|
21
|
+
}) | (Document<unknown, any, TournamentOneTableRoom, any, import("mongoose").DefaultSchemaOptions> & TournamentOneTableRoom & {
|
|
22
|
+
_id: import("mongoose").Types.ObjectId;
|
|
23
|
+
} & {
|
|
24
|
+
__v: number;
|
|
25
|
+
}), any, TournamentOneTableRoom>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, TournamentOneTableRoom, Document<unknown, {}, TournamentOneTableRoom, {
|
|
26
|
+
id: string;
|
|
27
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<TournamentOneTableRoom & {
|
|
28
|
+
_id: import("mongoose").Types.ObjectId;
|
|
29
|
+
} & {
|
|
30
|
+
__v: number;
|
|
31
|
+
}, "id"> & {
|
|
32
|
+
id: string;
|
|
33
|
+
}, {
|
|
34
|
+
readonly roomId?: import("mongoose").SchemaDefinitionProperty<string, TournamentOneTableRoom, Document<unknown, {}, TournamentOneTableRoom, {
|
|
35
|
+
id: string;
|
|
36
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<TournamentOneTableRoom & {
|
|
37
|
+
_id: import("mongoose").Types.ObjectId;
|
|
38
|
+
} & {
|
|
39
|
+
__v: number;
|
|
40
|
+
}, "id"> & {
|
|
41
|
+
id: string;
|
|
42
|
+
}>;
|
|
43
|
+
title?: import("mongoose").SchemaDefinitionProperty<Record<string, string>, TournamentOneTableRoom, Document<unknown, {}, TournamentOneTableRoom, {
|
|
44
|
+
id: string;
|
|
45
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<TournamentOneTableRoom & {
|
|
46
|
+
_id: import("mongoose").Types.ObjectId;
|
|
47
|
+
} & {
|
|
48
|
+
__v: number;
|
|
49
|
+
}, "id"> & {
|
|
50
|
+
id: string;
|
|
51
|
+
}>;
|
|
52
|
+
subtitle?: import("mongoose").SchemaDefinitionProperty<Record<string, string>, TournamentOneTableRoom, Document<unknown, {}, TournamentOneTableRoom, {
|
|
53
|
+
id: string;
|
|
54
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<TournamentOneTableRoom & {
|
|
55
|
+
_id: import("mongoose").Types.ObjectId;
|
|
56
|
+
} & {
|
|
57
|
+
__v: number;
|
|
58
|
+
}, "id"> & {
|
|
59
|
+
id: string;
|
|
60
|
+
}>;
|
|
61
|
+
tableSize?: import("mongoose").SchemaDefinitionProperty<number, TournamentOneTableRoom, Document<unknown, {}, TournamentOneTableRoom, {
|
|
62
|
+
id: string;
|
|
63
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<TournamentOneTableRoom & {
|
|
64
|
+
_id: import("mongoose").Types.ObjectId;
|
|
65
|
+
} & {
|
|
66
|
+
__v: number;
|
|
67
|
+
}, "id"> & {
|
|
68
|
+
id: string;
|
|
69
|
+
}>;
|
|
70
|
+
bet?: import("mongoose").SchemaDefinitionProperty<number, TournamentOneTableRoom, Document<unknown, {}, TournamentOneTableRoom, {
|
|
71
|
+
id: string;
|
|
72
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<TournamentOneTableRoom & {
|
|
73
|
+
_id: import("mongoose").Types.ObjectId;
|
|
74
|
+
} & {
|
|
75
|
+
__v: number;
|
|
76
|
+
}, "id"> & {
|
|
77
|
+
id: string;
|
|
78
|
+
}>;
|
|
79
|
+
ticketPrice?: import("mongoose").SchemaDefinitionProperty<number, TournamentOneTableRoom, Document<unknown, {}, TournamentOneTableRoom, {
|
|
80
|
+
id: string;
|
|
81
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<TournamentOneTableRoom & {
|
|
82
|
+
_id: import("mongoose").Types.ObjectId;
|
|
83
|
+
} & {
|
|
84
|
+
__v: number;
|
|
85
|
+
}, "id"> & {
|
|
86
|
+
id: string;
|
|
87
|
+
}>;
|
|
88
|
+
roomType?: import("mongoose").SchemaDefinitionProperty<string, TournamentOneTableRoom, Document<unknown, {}, TournamentOneTableRoom, {
|
|
89
|
+
id: string;
|
|
90
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<TournamentOneTableRoom & {
|
|
91
|
+
_id: import("mongoose").Types.ObjectId;
|
|
92
|
+
} & {
|
|
93
|
+
__v: number;
|
|
94
|
+
}, "id"> & {
|
|
95
|
+
id: string;
|
|
96
|
+
}>;
|
|
97
|
+
gameType?: import("mongoose").SchemaDefinitionProperty<string, TournamentOneTableRoom, Document<unknown, {}, TournamentOneTableRoom, {
|
|
98
|
+
id: string;
|
|
99
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<TournamentOneTableRoom & {
|
|
100
|
+
_id: import("mongoose").Types.ObjectId;
|
|
101
|
+
} & {
|
|
102
|
+
__v: number;
|
|
103
|
+
}, "id"> & {
|
|
104
|
+
id: string;
|
|
105
|
+
}>;
|
|
106
|
+
rulesType?: import("mongoose").SchemaDefinitionProperty<string, TournamentOneTableRoom, Document<unknown, {}, TournamentOneTableRoom, {
|
|
107
|
+
id: string;
|
|
108
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<TournamentOneTableRoom & {
|
|
109
|
+
_id: import("mongoose").Types.ObjectId;
|
|
110
|
+
} & {
|
|
111
|
+
__v: number;
|
|
112
|
+
}, "id"> & {
|
|
113
|
+
id: string;
|
|
114
|
+
}>;
|
|
115
|
+
deckType?: import("mongoose").SchemaDefinitionProperty<string, TournamentOneTableRoom, Document<unknown, {}, TournamentOneTableRoom, {
|
|
116
|
+
id: string;
|
|
117
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<TournamentOneTableRoom & {
|
|
118
|
+
_id: import("mongoose").Types.ObjectId;
|
|
119
|
+
} & {
|
|
120
|
+
__v: number;
|
|
121
|
+
}, "id"> & {
|
|
122
|
+
id: string;
|
|
123
|
+
}>;
|
|
124
|
+
}, TournamentOneTableRoom>;
|
|
125
|
+
//# sourceMappingURL=tournament_one_table_rooms.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tournament_one_table_rooms.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/tournament_one_table_rooms.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEtD,MAAM,MAAM,8BAA8B,GAAG,gBAAgB,CAAC,sBAAsB,CAAC,CAAC;AAEtF,qBACa,sBAAsB;IAM/B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAGxB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAG9B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAGjC,SAAS,EAAE,MAAM,CAAC;IAGlB,GAAG,EAAE,MAAM,CAAC;IAGZ,WAAW,EAAE,MAAM,CAAC;IAGpB,QAAQ,EAAE,MAAM,CAAC;IAGjB,QAAQ,EAAE,MAAM,CAAC;IAGjB,SAAS,EAAE,MAAM,CAAC;IAGlB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAAuD,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
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.TournamentOneTableRoomSchema = exports.TournamentOneTableRoom = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
let TournamentOneTableRoom = class TournamentOneTableRoom {
|
|
15
|
+
};
|
|
16
|
+
exports.TournamentOneTableRoom = TournamentOneTableRoom;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, mongoose_1.Virtual)({
|
|
19
|
+
get: function () {
|
|
20
|
+
return this._id.toString();
|
|
21
|
+
},
|
|
22
|
+
}),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], TournamentOneTableRoom.prototype, "roomId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, mongoose_1.Prop)({ type: Object }),
|
|
27
|
+
__metadata("design:type", Object)
|
|
28
|
+
], TournamentOneTableRoom.prototype, "title", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, mongoose_1.Prop)({ type: Object }),
|
|
31
|
+
__metadata("design:type", Object)
|
|
32
|
+
], TournamentOneTableRoom.prototype, "subtitle", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, mongoose_1.Prop)(),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], TournamentOneTableRoom.prototype, "tableSize", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, mongoose_1.Prop)(),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], TournamentOneTableRoom.prototype, "bet", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, mongoose_1.Prop)(),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], TournamentOneTableRoom.prototype, "ticketPrice", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, mongoose_1.Prop)(),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], TournamentOneTableRoom.prototype, "roomType", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, mongoose_1.Prop)(),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], TournamentOneTableRoom.prototype, "gameType", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, mongoose_1.Prop)(),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], TournamentOneTableRoom.prototype, "rulesType", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, mongoose_1.Prop)(),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], TournamentOneTableRoom.prototype, "deckType", void 0);
|
|
61
|
+
exports.TournamentOneTableRoom = TournamentOneTableRoom = __decorate([
|
|
62
|
+
(0, mongoose_1.Schema)({ collection: 'tournament_one_table_rooms' })
|
|
63
|
+
], TournamentOneTableRoom);
|
|
64
|
+
exports.TournamentOneTableRoomSchema = mongoose_1.SchemaFactory.createForClass(TournamentOneTableRoom);
|
|
65
|
+
//# sourceMappingURL=tournament_one_table_rooms.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tournament_one_table_rooms.schema.js","sourceRoot":"","sources":["../../src/schemas/tournament_one_table_rooms.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAwE;AAMjE,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;CAkClC,CAAA;AAlCY,wDAAsB;AAMtB;IALR,IAAA,kBAAO,EAAC;QACL,GAAG,EAAE;YACD,OAAO,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;QAC/B,CAAC;KACJ,CAAC;;sDACsB;AAGxB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;qDACO;AAG9B;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;wDACU;AAGjC;IADC,IAAA,eAAI,GAAE;;yDACW;AAGlB;IADC,IAAA,eAAI,GAAE;;mDACK;AAGZ;IADC,IAAA,eAAI,GAAE;;2DACa;AAGpB;IADC,IAAA,eAAI,GAAE;;wDACU;AAGjB;IADC,IAAA,eAAI,GAAE;;wDACU;AAGjB;IADC,IAAA,eAAI,GAAE;;yDACW;AAGlB;IADC,IAAA,eAAI,GAAE;;wDACW;iCAjCT,sBAAsB;IADlC,IAAA,iBAAM,EAAC,EAAE,UAAU,EAAE,4BAA4B,EAAE,CAAC;GACxC,sBAAsB,CAkClC;AAEY,QAAA,4BAA4B,GAAG,wBAAa,CAAC,cAAc,CAAC,sBAAsB,CAAC,CAAC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { Document, HydratedDocument } from 'mongoose';
|
|
2
|
+
export type TournamentResultDocument = HydratedDocument<TournamentResult>;
|
|
3
|
+
export interface IWinner {
|
|
4
|
+
userId: string;
|
|
5
|
+
userName: string;
|
|
6
|
+
userAvatarUrl: string;
|
|
7
|
+
profit: number;
|
|
8
|
+
rank: number;
|
|
9
|
+
}
|
|
10
|
+
export declare class TournamentResult {
|
|
11
|
+
readonly resultId: string;
|
|
12
|
+
tournamentId: String;
|
|
13
|
+
gameType: String;
|
|
14
|
+
winners: Array<IWinner>;
|
|
15
|
+
createDate: Date;
|
|
16
|
+
}
|
|
17
|
+
export declare const TournamentResultSchema: import("mongoose").Schema<TournamentResult, import("mongoose").Model<TournamentResult, any, any, any, (Document<unknown, any, TournamentResult, any, import("mongoose").DefaultSchemaOptions> & TournamentResult & {
|
|
18
|
+
_id: import("mongoose").Types.ObjectId;
|
|
19
|
+
} & {
|
|
20
|
+
__v: number;
|
|
21
|
+
} & {
|
|
22
|
+
id: string;
|
|
23
|
+
}) | (Document<unknown, any, TournamentResult, any, import("mongoose").DefaultSchemaOptions> & TournamentResult & {
|
|
24
|
+
_id: import("mongoose").Types.ObjectId;
|
|
25
|
+
} & {
|
|
26
|
+
__v: number;
|
|
27
|
+
}), any, TournamentResult>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, TournamentResult, Document<unknown, {}, TournamentResult, {
|
|
28
|
+
id: string;
|
|
29
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<TournamentResult & {
|
|
30
|
+
_id: import("mongoose").Types.ObjectId;
|
|
31
|
+
} & {
|
|
32
|
+
__v: number;
|
|
33
|
+
}, "id"> & {
|
|
34
|
+
id: string;
|
|
35
|
+
}, {
|
|
36
|
+
readonly resultId?: import("mongoose").SchemaDefinitionProperty<string, TournamentResult, Document<unknown, {}, TournamentResult, {
|
|
37
|
+
id: string;
|
|
38
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<TournamentResult & {
|
|
39
|
+
_id: import("mongoose").Types.ObjectId;
|
|
40
|
+
} & {
|
|
41
|
+
__v: number;
|
|
42
|
+
}, "id"> & {
|
|
43
|
+
id: string;
|
|
44
|
+
}>;
|
|
45
|
+
tournamentId?: import("mongoose").SchemaDefinitionProperty<String, TournamentResult, Document<unknown, {}, TournamentResult, {
|
|
46
|
+
id: string;
|
|
47
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<TournamentResult & {
|
|
48
|
+
_id: import("mongoose").Types.ObjectId;
|
|
49
|
+
} & {
|
|
50
|
+
__v: number;
|
|
51
|
+
}, "id"> & {
|
|
52
|
+
id: string;
|
|
53
|
+
}>;
|
|
54
|
+
gameType?: import("mongoose").SchemaDefinitionProperty<String, TournamentResult, Document<unknown, {}, TournamentResult, {
|
|
55
|
+
id: string;
|
|
56
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<TournamentResult & {
|
|
57
|
+
_id: import("mongoose").Types.ObjectId;
|
|
58
|
+
} & {
|
|
59
|
+
__v: number;
|
|
60
|
+
}, "id"> & {
|
|
61
|
+
id: string;
|
|
62
|
+
}>;
|
|
63
|
+
winners?: import("mongoose").SchemaDefinitionProperty<IWinner[], TournamentResult, Document<unknown, {}, TournamentResult, {
|
|
64
|
+
id: string;
|
|
65
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<TournamentResult & {
|
|
66
|
+
_id: import("mongoose").Types.ObjectId;
|
|
67
|
+
} & {
|
|
68
|
+
__v: number;
|
|
69
|
+
}, "id"> & {
|
|
70
|
+
id: string;
|
|
71
|
+
}>;
|
|
72
|
+
createDate?: import("mongoose").SchemaDefinitionProperty<Date, TournamentResult, Document<unknown, {}, TournamentResult, {
|
|
73
|
+
id: string;
|
|
74
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<TournamentResult & {
|
|
75
|
+
_id: import("mongoose").Types.ObjectId;
|
|
76
|
+
} & {
|
|
77
|
+
__v: number;
|
|
78
|
+
}, "id"> & {
|
|
79
|
+
id: string;
|
|
80
|
+
}>;
|
|
81
|
+
}, TournamentResult>;
|
|
82
|
+
//# sourceMappingURL=tournament_result.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tournament_result.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/tournament_result.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEtD,MAAM,MAAM,wBAAwB,GAAG,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;AAE1E,MAAM,WAAW,OAAO;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,qBACa,gBAAgB;IAMzB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAG1B,YAAY,EAAE,MAAM,CAAC;IAGrB,QAAQ,EAAE,MAAM,CAAC;IAGjB,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAGxB,UAAU,EAAE,IAAI,CAAC;CACpB;AAED,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAAiD,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
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.TournamentResultSchema = exports.TournamentResult = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
let TournamentResult = class TournamentResult {
|
|
15
|
+
};
|
|
16
|
+
exports.TournamentResult = TournamentResult;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, mongoose_1.Virtual)({
|
|
19
|
+
get: function () {
|
|
20
|
+
return this._id.toString();
|
|
21
|
+
},
|
|
22
|
+
}),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], TournamentResult.prototype, "resultId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, mongoose_1.Prop)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], TournamentResult.prototype, "tournamentId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, mongoose_1.Prop)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], TournamentResult.prototype, "gameType", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, mongoose_1.Prop)(),
|
|
35
|
+
__metadata("design:type", Array)
|
|
36
|
+
], TournamentResult.prototype, "winners", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, mongoose_1.Prop)(),
|
|
39
|
+
__metadata("design:type", Date)
|
|
40
|
+
], TournamentResult.prototype, "createDate", void 0);
|
|
41
|
+
exports.TournamentResult = TournamentResult = __decorate([
|
|
42
|
+
(0, mongoose_1.Schema)({ collection: 'tournament_results' })
|
|
43
|
+
], TournamentResult);
|
|
44
|
+
exports.TournamentResultSchema = mongoose_1.SchemaFactory.createForClass(TournamentResult);
|
|
45
|
+
//# sourceMappingURL=tournament_result.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tournament_result.schema.js","sourceRoot":"","sources":["../../src/schemas/tournament_result.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAwE;AAcjE,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CAmB5B,CAAA;AAnBY,4CAAgB;AAMhB;IALR,IAAA,kBAAO,EAAC;QACL,GAAG,EAAE;YACD,OAAO,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;QAC/B,CAAC;KACJ,CAAC;;kDACwB;AAG1B;IADC,IAAA,eAAI,GAAE;8BACO,MAAM;sDAAC;AAGrB;IADC,IAAA,eAAI,GAAE;8BACG,MAAM;kDAAC;AAGjB;IADC,IAAA,eAAI,GAAE;8BACE,KAAK;iDAAU;AAGxB;IADC,IAAA,eAAI,GAAE;8BACK,IAAI;oDAAC;2BAlBR,gBAAgB;IAD5B,IAAA,iBAAM,EAAC,EAAE,UAAU,EAAE,oBAAoB,EAAE,CAAC;GAChC,gBAAgB,CAmB5B;AAEY,QAAA,sBAAsB,GAAG,wBAAa,CAAC,cAAc,CAAC,gBAAgB,CAAC,CAAC"}
|