@mshowes/brackets-manager 1.8.6 → 1.8.8
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/core/base/getter.d.ts +7 -6
- package/dist/core/base/getter.d.ts.map +1 -1
- package/dist/core/base/getter.js +82 -80
- package/dist/core/base/getter.js.map +1 -1
- package/dist/core/base/stage/creator.d.ts +6 -5
- package/dist/core/base/stage/creator.d.ts.map +1 -1
- package/dist/core/base/stage/creator.js +189 -151
- package/dist/core/base/stage/creator.js.map +1 -1
- package/dist/core/base/updater.d.ts +2 -2
- package/dist/core/base/updater.d.ts.map +1 -1
- package/dist/core/base/updater.js +47 -70
- package/dist/core/base/updater.js.map +1 -1
- package/dist/core/create.d.ts +3 -49
- package/dist/core/create.d.ts.map +1 -1
- package/dist/core/create.js +5 -119
- package/dist/core/create.js.map +1 -1
- package/dist/core/db.d.ts +113 -0
- package/dist/core/db.d.ts.map +1 -0
- package/dist/core/db.js +473 -0
- package/dist/core/db.js.map +1 -0
- package/dist/core/delete.d.ts +5 -5
- package/dist/core/delete.d.ts.map +1 -1
- package/dist/core/delete.js +14 -27
- package/dist/core/delete.js.map +1 -1
- package/dist/core/find.d.ts +22 -42
- package/dist/core/find.d.ts.map +1 -1
- package/dist/core/find.js +29 -196
- package/dist/core/find.js.map +1 -1
- package/dist/core/get.d.ts +1 -1
- package/dist/core/get.d.ts.map +1 -1
- package/dist/core/get.js +35 -88
- package/dist/core/get.js.map +1 -1
- package/dist/core/helpers.d.ts +1 -1
- package/dist/core/helpers.js +182 -319
- package/dist/core/helpers.js.map +1 -1
- package/dist/core/manager.d.ts +31 -35
- package/dist/core/manager.d.ts.map +1 -1
- package/dist/core/manager.js +53 -196
- package/dist/core/manager.js.map +1 -1
- package/dist/core/ordering.d.ts +1 -1
- package/dist/core/ordering.js +3 -6
- package/dist/core/ordering.js.map +1 -1
- package/dist/core/reset.d.ts +13 -8
- package/dist/core/reset.d.ts.map +1 -1
- package/dist/core/reset.js +30 -68
- package/dist/core/reset.js.map +1 -1
- package/dist/core/types.d.ts +1 -73
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/types.js +1 -2
- package/dist/core/update.d.ts +1 -1
- package/dist/core/update.d.ts.map +1 -1
- package/dist/core/update.js +36 -79
- package/dist/core/update.js.map +1 -1
- package/dist/index.d.ts +15 -16
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -54
- package/dist/index.js.map +1 -1
- package/dist/model/index.js +4 -20
- package/dist/model/index.js.map +1 -1
- package/dist/model/input.js +1 -2
- package/dist/model/input.js.map +1 -1
- package/dist/model/other.js +2 -5
- package/dist/model/other.js.map +1 -1
- package/dist/model/storage.js +1 -2
- package/dist/model/storage.js.map +1 -1
- package/dist/model/unions.js +1 -2
- package/dist/model/unions.js.map +1 -1
- package/dist/storage/drizzle/db/index.js +7 -37
- package/dist/storage/drizzle/db/index.js.map +1 -1
- package/dist/storage/drizzle/db/schema/enums.js +6 -9
- package/dist/storage/drizzle/db/schema/enums.js.map +1 -1
- package/dist/storage/drizzle/db/schema/group.js +16 -19
- package/dist/storage/drizzle/db/schema/group.js.map +1 -1
- package/dist/storage/drizzle/db/schema/index.js +8 -24
- package/dist/storage/drizzle/db/schema/index.js.map +1 -1
- package/dist/storage/drizzle/db/schema/match-game.d.ts +1 -1
- package/dist/storage/drizzle/db/schema/match-game.js +21 -24
- package/dist/storage/drizzle/db/schema/match-game.js.map +1 -1
- package/dist/storage/drizzle/db/schema/match.d.ts +1 -1
- package/dist/storage/drizzle/db/schema/match.js +30 -33
- package/dist/storage/drizzle/db/schema/match.js.map +1 -1
- package/dist/storage/drizzle/db/schema/participant.js +12 -15
- package/dist/storage/drizzle/db/schema/participant.js.map +1 -1
- package/dist/storage/drizzle/db/schema/round.js +20 -23
- package/dist/storage/drizzle/db/schema/round.js.map +1 -1
- package/dist/storage/drizzle/db/schema/stage.d.ts +20 -20
- package/dist/storage/drizzle/db/schema/stage.d.ts.map +1 -1
- package/dist/storage/drizzle/db/schema/stage.js +24 -27
- package/dist/storage/drizzle/db/schema/stage.js.map +1 -1
- package/dist/storage/drizzle/db/schema/tournament.js +15 -18
- package/dist/storage/drizzle/db/schema/tournament.js.map +1 -1
- package/dist/storage/drizzle/index.js +3 -23
- package/dist/storage/drizzle/index.js.map +1 -1
- package/dist/storage/drizzle/storage-handlers/delete-handlers/group.d.ts +1 -1
- package/dist/storage/drizzle/storage-handlers/delete-handlers/match-game.d.ts +1 -1
- package/dist/storage/drizzle/storage-handlers/delete-handlers/match.d.ts +1 -1
- package/dist/storage/drizzle/storage-handlers/delete-handlers/participant.d.ts +1 -1
- package/dist/storage/drizzle/storage-handlers/delete-handlers/round.d.ts +1 -1
- package/dist/storage/drizzle/storage-handlers/delete-handlers/stage.d.ts +1 -1
- package/dist/storage/drizzle/storage-handlers/delete.d.ts +1 -1
- package/dist/storage/drizzle/storage-handlers/insert-handlers/group.d.ts +1 -1
- package/dist/storage/drizzle/storage-handlers/insert-handlers/match-game.d.ts +1 -1
- package/dist/storage/drizzle/storage-handlers/insert-handlers/match.d.ts +1 -1
- package/dist/storage/drizzle/storage-handlers/insert-handlers/participant.d.ts +1 -1
- package/dist/storage/drizzle/storage-handlers/insert-handlers/round.d.ts +1 -1
- package/dist/storage/drizzle/storage-handlers/insert-handlers/stage.d.ts +1 -1
- package/dist/storage/drizzle/storage-handlers/insert.d.ts +1 -1
- package/dist/storage/drizzle/storage-handlers/select-handlers/group.d.ts +1 -1
- package/dist/storage/drizzle/storage-handlers/select-handlers/match-game.d.ts +1 -1
- package/dist/storage/drizzle/storage-handlers/select-handlers/match.d.ts +1 -1
- package/dist/storage/drizzle/storage-handlers/select-handlers/participant.d.ts +1 -1
- package/dist/storage/drizzle/storage-handlers/select-handlers/round.d.ts +1 -1
- package/dist/storage/drizzle/storage-handlers/select-handlers/stage.d.ts +1 -1
- package/dist/storage/drizzle/storage-handlers/select-handlers/tournament.d.ts +1 -1
- package/dist/storage/drizzle/storage-handlers/select.d.ts +1 -1
- package/dist/storage/drizzle/storage-handlers/update-handlers/group.d.ts +1 -1
- package/dist/storage/drizzle/storage-handlers/update-handlers/match-game.d.ts +1 -1
- package/dist/storage/drizzle/storage-handlers/update-handlers/match.d.ts +1 -1
- package/dist/storage/drizzle/storage-handlers/update-handlers/participant.d.ts +1 -1
- package/dist/storage/drizzle/storage-handlers/update-handlers/round.d.ts +1 -1
- package/dist/storage/drizzle/storage-handlers/update-handlers/stage.d.ts +1 -1
- package/dist/storage/drizzle/storage-handlers/update.d.ts +1 -1
- package/dist/storage/drizzle/storage.d.ts +1 -1
- package/dist/storage/drizzle/storage.d.ts.map +1 -1
- package/dist/storage/drizzle/storage.js +29 -35
- package/dist/storage/drizzle/storage.js.map +1 -1
- package/dist/storage/drizzle/transformers/enum/grand-final-type.d.ts +1 -1
- package/dist/storage/drizzle/transformers/enum/match-result.d.ts +1 -1
- package/dist/storage/drizzle/transformers/enum/match-status.d.ts +1 -1
- package/dist/storage/drizzle/transformers/enum/match-status.js +1 -1
- package/dist/storage/drizzle/transformers/enum/round-robin-mode.d.ts +1 -1
- package/dist/storage/drizzle/transformers/enum/seed-ordering.d.ts +1 -1
- package/dist/storage/drizzle/transformers/enum/stage-type.d.ts +1 -1
- package/dist/storage/drizzle/transformers/model/group.d.ts +2 -2
- package/dist/storage/drizzle/transformers/model/match-game.d.ts +2 -2
- package/dist/storage/drizzle/transformers/model/match.d.ts +2 -2
- package/dist/storage/drizzle/transformers/model/participant-result.d.ts +1 -1
- package/dist/storage/drizzle/transformers/model/participant.d.ts +3 -3
- package/dist/storage/drizzle/transformers/model/round.d.ts +2 -2
- package/dist/storage/drizzle/transformers/model/stage-settings.d.ts +2 -2
- package/dist/storage/drizzle/transformers/model/stage.d.ts +2 -2
- package/dist/storage/drizzle/transformers/model/tournament.d.ts +1 -1
- package/dist/storage/drizzle/types.d.ts +1 -1
- package/dist/storage/drizzle/types.js +1 -2
- package/package.json +12 -17
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"match.js","sourceRoot":"","sources":["../../../../../src/storage/drizzle/db/schema/match.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"match.js","sourceRoot":"","sources":["../../../../../src/storage/drizzle/db/schema/match.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,sBAAsB;AACtB,MAAM,CAAC,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,EAAE;IAClC,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE;IAC3B,0BAA0B;IAC1B,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;SACrB,OAAO,EAAE;SACT,UAAU,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;IAC/B,0BAA0B;IAC1B,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;SACrB,OAAO,EAAE;SACT,UAAU,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;IAC/B,0BAA0B;IAC1B,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;SACrB,OAAO,EAAE;SACT,UAAU,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;IAC/B,uCAAuC;IACvC,MAAM,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC,OAAO,EAAE;IACnC,2CAA2C;IAC3C,WAAW,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC,OAAO,EAAE;IAC7C,yFAAyF;IACzF,MAAM,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC,OAAO,EAAE;IACnC,kDAAkD;IAClD,SAAS,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC,KAAK,EAA4B;IAC/D,mDAAmD;IACnD,SAAS,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC,KAAK,EAA4B;CAClE,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,cAAc,GAAG,SAAS,CAAC,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/D,KAAK,EAAE,GAAG,CAAC,KAAK,EAAE;QACd,MAAM,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC;QACxB,UAAU,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;KACzB,CAAC;IACF,KAAK,EAAE,GAAG,CAAC,KAAK,EAAE;QACd,MAAM,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC;QACxB,UAAU,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;KACzB,CAAC;IACF,KAAK,EAAE,GAAG,CAAC,KAAK,EAAE;QACd,MAAM,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC;QACxB,UAAU,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;KACzB,CAAC;IACF,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC;CACzB,CAAC,CAAC,CAAC"}
|
|
@@ -1,22 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const pg_core_1 = require("drizzle-orm/pg-core");
|
|
5
|
-
const drizzle_orm_1 = require("drizzle-orm");
|
|
6
|
-
const tournament_1 = require("./tournament");
|
|
1
|
+
import { pgTable, text } from 'drizzle-orm/pg-core';
|
|
2
|
+
import { relations } from 'drizzle-orm';
|
|
3
|
+
import { tournament } from './tournament';
|
|
7
4
|
// A participant of a stage (team or individual).
|
|
8
|
-
|
|
9
|
-
id:
|
|
10
|
-
tournament_id:
|
|
5
|
+
export const participant = pgTable('participant', {
|
|
6
|
+
id: text('id').primaryKey(),
|
|
7
|
+
tournament_id: text('tournament_id')
|
|
11
8
|
.notNull()
|
|
12
|
-
.references(() =>
|
|
9
|
+
.references(() => tournament.id),
|
|
13
10
|
// Name of the participant
|
|
14
|
-
name:
|
|
11
|
+
name: text('name').notNull(),
|
|
15
12
|
});
|
|
16
|
-
|
|
17
|
-
tournament: one(
|
|
18
|
-
fields: [
|
|
19
|
-
references: [
|
|
13
|
+
export const participantRelations = relations(participant, ({ one }) => ({
|
|
14
|
+
tournament: one(tournament, {
|
|
15
|
+
fields: [participant.tournament_id],
|
|
16
|
+
references: [tournament.id],
|
|
20
17
|
}),
|
|
21
18
|
}));
|
|
22
19
|
//# sourceMappingURL=participant.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"participant.js","sourceRoot":"","sources":["../../../../../src/storage/drizzle/db/schema/participant.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"participant.js","sourceRoot":"","sources":["../../../../../src/storage/drizzle/db/schema/participant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,iDAAiD;AACjD,MAAM,CAAC,MAAM,WAAW,GAAG,OAAO,CAAC,aAAa,EAAE;IAC9C,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE;IAC3B,aAAa,EAAE,IAAI,CAAC,eAAe,CAAC;SAC/B,OAAO,EAAE;SACT,UAAU,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;IACpC,0BAA0B;IAC1B,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE;CAC/B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAAG,SAAS,CAAC,WAAW,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC;IACrE,UAAU,EAAE,GAAG,CAAC,UAAU,EAAE;QACxB,MAAM,EAAE,CAAC,WAAW,CAAC,aAAa,CAAC;QACnC,UAAU,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;KAC9B,CAAC;CACL,CAAC,CAAC,CAAC"}
|
|
@@ -1,34 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const stage_1 = require("./stage");
|
|
7
|
-
const group_1 = require("./group");
|
|
8
|
-
const match_1 = require("./match");
|
|
1
|
+
import { integer, pgTable, text } from 'drizzle-orm/pg-core';
|
|
2
|
+
import { relations } from 'drizzle-orm';
|
|
3
|
+
import { stage } from './stage';
|
|
4
|
+
import { group } from './group';
|
|
5
|
+
import { match } from './match';
|
|
9
6
|
// A round of a group.
|
|
10
|
-
|
|
11
|
-
id:
|
|
7
|
+
export const round = pgTable('round', {
|
|
8
|
+
id: text('id').primaryKey(),
|
|
12
9
|
// ID of the parent stage.
|
|
13
|
-
stage_id:
|
|
10
|
+
stage_id: text('stage_id')
|
|
14
11
|
.notNull()
|
|
15
|
-
.references(() =>
|
|
12
|
+
.references(() => stage.id),
|
|
16
13
|
// ID of the parent group.
|
|
17
|
-
group_id:
|
|
14
|
+
group_id: text('group_id')
|
|
18
15
|
.notNull()
|
|
19
|
-
.references(() =>
|
|
16
|
+
.references(() => group.id),
|
|
20
17
|
// The number of the round in its group
|
|
21
|
-
number:
|
|
18
|
+
number: integer('number').notNull(),
|
|
22
19
|
});
|
|
23
|
-
|
|
24
|
-
stage: one(
|
|
25
|
-
fields: [
|
|
26
|
-
references: [
|
|
20
|
+
export const roundRelations = relations(round, ({ one, many }) => ({
|
|
21
|
+
stage: one(stage, {
|
|
22
|
+
fields: [round.stage_id],
|
|
23
|
+
references: [stage.id],
|
|
27
24
|
}),
|
|
28
|
-
group: one(
|
|
29
|
-
fields: [
|
|
30
|
-
references: [
|
|
25
|
+
group: one(group, {
|
|
26
|
+
fields: [round.group_id],
|
|
27
|
+
references: [group.id],
|
|
31
28
|
}),
|
|
32
|
-
matches: many(
|
|
29
|
+
matches: many(match),
|
|
33
30
|
}));
|
|
34
31
|
//# sourceMappingURL=round.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"round.js","sourceRoot":"","sources":["../../../../../src/storage/drizzle/db/schema/round.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"round.js","sourceRoot":"","sources":["../../../../../src/storage/drizzle/db/schema/round.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,sBAAsB;AACtB,MAAM,CAAC,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,EAAE;IAClC,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE;IAC3B,0BAA0B;IAC1B,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;SACrB,OAAO,EAAE;SACT,UAAU,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;IAC/B,0BAA0B;IAC1B,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;SACrB,OAAO,EAAE;SACT,UAAU,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;IAC/B,uCAAuC;IACvC,MAAM,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC,OAAO,EAAE;CACtC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,cAAc,GAAG,SAAS,CAAC,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/D,KAAK,EAAE,GAAG,CAAC,KAAK,EAAE;QACd,MAAM,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC;QACxB,UAAU,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;KACzB,CAAC;IACF,KAAK,EAAE,GAAG,CAAC,KAAK,EAAE;QACd,MAAM,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC;QACxB,UAAU,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;KACzB,CAAC;IACF,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC;CACvB,CAAC,CAAC,CAAC"}
|
|
@@ -93,16 +93,16 @@ export declare const stage: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
93
93
|
dataType: "json";
|
|
94
94
|
columnType: "PgJsonb";
|
|
95
95
|
data: {
|
|
96
|
-
size?: number
|
|
97
|
-
seedOrdering?: string[]
|
|
98
|
-
balanceByes?: boolean
|
|
99
|
-
matchesChildCount?: number
|
|
100
|
-
groupCount?: number
|
|
101
|
-
roundRobinMode?: "simple" | "double"
|
|
102
|
-
manualOrdering?: number[][]
|
|
103
|
-
consolationFinal?: boolean
|
|
104
|
-
skipFirstRound?: boolean
|
|
105
|
-
grandFinal?: "none" | "simple" | "double"
|
|
96
|
+
size?: number;
|
|
97
|
+
seedOrdering?: string[];
|
|
98
|
+
balanceByes?: boolean;
|
|
99
|
+
matchesChildCount?: number;
|
|
100
|
+
groupCount?: number;
|
|
101
|
+
roundRobinMode?: "simple" | "double";
|
|
102
|
+
manualOrdering?: number[][];
|
|
103
|
+
consolationFinal?: boolean;
|
|
104
|
+
skipFirstRound?: boolean;
|
|
105
|
+
grandFinal?: "none" | "simple" | "double";
|
|
106
106
|
};
|
|
107
107
|
driverParam: unknown;
|
|
108
108
|
notNull: true;
|
|
@@ -116,16 +116,16 @@ export declare const stage: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
116
116
|
generated: undefined;
|
|
117
117
|
}, {}, {
|
|
118
118
|
$type: {
|
|
119
|
-
size?: number
|
|
120
|
-
seedOrdering?: string[]
|
|
121
|
-
balanceByes?: boolean
|
|
122
|
-
matchesChildCount?: number
|
|
123
|
-
groupCount?: number
|
|
124
|
-
roundRobinMode?: "simple" | "double"
|
|
125
|
-
manualOrdering?: number[][]
|
|
126
|
-
consolationFinal?: boolean
|
|
127
|
-
skipFirstRound?: boolean
|
|
128
|
-
grandFinal?: "none" | "simple" | "double"
|
|
119
|
+
size?: number;
|
|
120
|
+
seedOrdering?: string[];
|
|
121
|
+
balanceByes?: boolean;
|
|
122
|
+
matchesChildCount?: number;
|
|
123
|
+
groupCount?: number;
|
|
124
|
+
roundRobinMode?: "simple" | "double";
|
|
125
|
+
manualOrdering?: number[][];
|
|
126
|
+
consolationFinal?: boolean;
|
|
127
|
+
skipFirstRound?: boolean;
|
|
128
|
+
grandFinal?: "none" | "simple" | "double";
|
|
129
129
|
};
|
|
130
130
|
}>;
|
|
131
131
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stage.d.ts","sourceRoot":"","sources":["../../../../../src/storage/drizzle/db/schema/stage.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,KAAK
|
|
1
|
+
{"version":3,"file":"stage.d.ts","sourceRoot":"","sources":["../../../../../src/storage/drizzle/db/schema/stage.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAaH,MAAM;+BACE,MAAM,EAAE;8BACT,OAAO;oCACD,MAAM;6BACb,MAAM;iCACF,QAAQ,GAAG,QAAQ;iCACnB,MAAM,EAAE,EAAE;mCACR,OAAO;iCACT,OAAO;6BACX,MAAM,GAAG,QAAQ,GAAG,QAAQ;;;;;;;;;;;;;;uBATlC,MAAM;+BACE,MAAM,EAAE;8BACT,OAAO;oCACD,MAAM;6BACb,MAAM;iCACF,QAAQ,GAAG,QAAQ;iCACnB,MAAM,EAAE,EAAE;mCACR,OAAO;iCACT,OAAO;6BACX,MAAM,GAAG,QAAQ,GAAG,QAAQ;;;;;EAE/C,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;EASxB,CAAC;AAEJ,MAAM,MAAM,KAAK,GAAG,OAAO,KAAK,CAAC,YAAY,CAAC;AAC9C,MAAM,MAAM,QAAQ,GAAG,OAAO,KAAK,CAAC,YAAY,CAAC"}
|
|
@@ -1,37 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const round_1 = require("./round");
|
|
10
|
-
const match_1 = require("./match");
|
|
11
|
-
const match_game_1 = require("./match-game");
|
|
1
|
+
import { integer, jsonb, pgTable, text } from 'drizzle-orm/pg-core';
|
|
2
|
+
import { relations } from 'drizzle-orm';
|
|
3
|
+
import { stageTypeEnum } from './enums';
|
|
4
|
+
import { tournament } from './tournament';
|
|
5
|
+
import { group } from './group';
|
|
6
|
+
import { round } from './round';
|
|
7
|
+
import { match } from './match';
|
|
8
|
+
import { matchGame } from './match-game';
|
|
12
9
|
// A stage, which can be a round-robin stage or a single/double elimination stage.
|
|
13
|
-
|
|
14
|
-
id:
|
|
15
|
-
tournament_id:
|
|
10
|
+
export const stage = pgTable('stage', {
|
|
11
|
+
id: text('id').primaryKey(),
|
|
12
|
+
tournament_id: text('tournament_id')
|
|
16
13
|
.notNull()
|
|
17
|
-
.references(() =>
|
|
14
|
+
.references(() => tournament.id),
|
|
18
15
|
// Name of the stage
|
|
19
|
-
name:
|
|
16
|
+
name: text('name').notNull(),
|
|
20
17
|
// Type of the stage
|
|
21
|
-
type:
|
|
18
|
+
type: stageTypeEnum('type').notNull(),
|
|
22
19
|
// The number of the stage in its tournament
|
|
23
|
-
number:
|
|
20
|
+
number: integer('number').notNull(),
|
|
24
21
|
// Settings of the stage (embedded as JSONB to match model)
|
|
25
|
-
settings:
|
|
22
|
+
settings: jsonb('settings').notNull().$type(),
|
|
26
23
|
});
|
|
27
|
-
|
|
28
|
-
tournament: one(
|
|
29
|
-
fields: [
|
|
30
|
-
references: [
|
|
24
|
+
export const stageRelations = relations(stage, ({ one, many }) => ({
|
|
25
|
+
tournament: one(tournament, {
|
|
26
|
+
fields: [stage.tournament_id],
|
|
27
|
+
references: [tournament.id],
|
|
31
28
|
}),
|
|
32
|
-
groups: many(
|
|
33
|
-
rounds: many(
|
|
34
|
-
matches: many(
|
|
35
|
-
matchGames: many(
|
|
29
|
+
groups: many(group),
|
|
30
|
+
rounds: many(round),
|
|
31
|
+
matches: many(match),
|
|
32
|
+
matchGames: many(matchGame),
|
|
36
33
|
}));
|
|
37
34
|
//# sourceMappingURL=stage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stage.js","sourceRoot":"","sources":["../../../../../src/storage/drizzle/db/schema/stage.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"stage.js","sourceRoot":"","sources":["../../../../../src/storage/drizzle/db/schema/stage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,kFAAkF;AAClF,MAAM,CAAC,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,EAAE;IAClC,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE;IAC3B,aAAa,EAAE,IAAI,CAAC,eAAe,CAAC;SAC/B,OAAO,EAAE;SACT,UAAU,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;IACpC,oBAAoB;IACpB,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE;IAC5B,oBAAoB;IACpB,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE;IACrC,4CAA4C;IAC5C,MAAM,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC,OAAO,EAAE;IACnC,2DAA2D;IAC3D,QAAQ,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC,OAAO,EAAE,CAAC,KAAK,EAWvC;CACP,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,cAAc,GAAG,SAAS,CAAC,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/D,UAAU,EAAE,GAAG,CAAC,UAAU,EAAE;QACxB,MAAM,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC;QAC7B,UAAU,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;KAC9B,CAAC;IACF,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC;IACnB,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC;IACnB,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC;IACpB,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC;CAC9B,CAAC,CAAC,CAAC"}
|
|
@@ -1,28 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const drizzle_orm_1 = require("drizzle-orm");
|
|
6
|
-
const stage_1 = require("./stage");
|
|
7
|
-
const participant_1 = require("./participant");
|
|
1
|
+
import { jsonb, pgTable, text, timestamp } from 'drizzle-orm/pg-core';
|
|
2
|
+
import { relations } from 'drizzle-orm';
|
|
3
|
+
import { stage } from './stage';
|
|
4
|
+
import { participant } from './participant';
|
|
8
5
|
// A tournament that can contain multiple stages and participants.
|
|
9
|
-
|
|
10
|
-
id:
|
|
6
|
+
export const tournament = pgTable('tournament', {
|
|
7
|
+
id: text('id').primaryKey(),
|
|
11
8
|
// Name of the tournament
|
|
12
|
-
name:
|
|
9
|
+
name: text('name').notNull(),
|
|
13
10
|
// URL-friendly slug for the tournament
|
|
14
|
-
slug:
|
|
11
|
+
slug: text('slug').notNull(),
|
|
15
12
|
// Description of the tournament
|
|
16
|
-
description:
|
|
13
|
+
description: text('description'),
|
|
17
14
|
// Start date of the tournament
|
|
18
|
-
start_date:
|
|
15
|
+
start_date: timestamp('start_date'),
|
|
19
16
|
// End date of the tournament
|
|
20
|
-
end_date:
|
|
17
|
+
end_date: timestamp('end_date'),
|
|
21
18
|
// Additional data for the tournament
|
|
22
|
-
extra:
|
|
19
|
+
extra: jsonb('extra'),
|
|
23
20
|
});
|
|
24
|
-
|
|
25
|
-
stages: many(
|
|
26
|
-
participants: many(
|
|
21
|
+
export const tournamentRelations = relations(tournament, ({ many }) => ({
|
|
22
|
+
stages: many(stage),
|
|
23
|
+
participants: many(participant),
|
|
27
24
|
}));
|
|
28
25
|
//# sourceMappingURL=tournament.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tournament.js","sourceRoot":"","sources":["../../../../../src/storage/drizzle/db/schema/tournament.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tournament.js","sourceRoot":"","sources":["../../../../../src/storage/drizzle/db/schema/tournament.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,kEAAkE;AAClE,MAAM,CAAC,MAAM,UAAU,GAAG,OAAO,CAAC,YAAY,EAAE;IAC5C,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE;IAC3B,yBAAyB;IACzB,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE;IAC5B,uCAAuC;IACvC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE;IAC5B,gCAAgC;IAChC,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC;IAChC,+BAA+B;IAC/B,UAAU,EAAE,SAAS,CAAC,YAAY,CAAC;IACnC,6BAA6B;IAC7B,QAAQ,EAAE,SAAS,CAAC,UAAU,CAAC;IAC/B,qCAAqC;IACrC,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC;CACxB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;IACpE,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC;IACnB,YAAY,EAAE,IAAI,CAAC,WAAW,CAAC;CAClC,CAAC,CAAC,CAAC"}
|
|
@@ -1,26 +1,6 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.createDatabase = exports.tournamentOperations = exports.createStorage = void 0;
|
|
18
1
|
// Main exports
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
Object.defineProperty(exports, "tournamentOperations", { enumerable: true, get: function () { return storage_1.tournamentOperations; } });
|
|
22
|
-
var db_1 = require("./db");
|
|
23
|
-
Object.defineProperty(exports, "createDatabase", { enumerable: true, get: function () { return db_1.createDatabase; } });
|
|
2
|
+
export { createStorage, tournamentOperations } from './storage';
|
|
3
|
+
export { createDatabase } from './db';
|
|
24
4
|
// Schema exports for migrations and direct access
|
|
25
|
-
|
|
5
|
+
export * from './db/schema';
|
|
26
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/storage/drizzle/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/storage/drizzle/index.ts"],"names":[],"mappings":"AAAA,eAAe;AACf,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAChE,OAAO,EAAE,cAAc,EAAwB,MAAM,MAAM,CAAC;AAE5D,kDAAkD;AAClD,cAAc,aAAa,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataTypes } from '
|
|
1
|
+
import { DataTypes } from '../../../../core/types';
|
|
2
2
|
import type { DrizzleDatabase } from '../../db';
|
|
3
3
|
export declare function handleGroupDelete(db: DrizzleDatabase, filter?: Partial<DataTypes['group']>): Promise<boolean>;
|
|
4
4
|
//# sourceMappingURL=group.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataTypes } from '
|
|
1
|
+
import { DataTypes } from '../../../../core/types';
|
|
2
2
|
import type { DrizzleDatabase } from '../../db';
|
|
3
3
|
export declare function handleMatchGameDelete(db: DrizzleDatabase, filter?: Partial<DataTypes['match_game']>): Promise<boolean>;
|
|
4
4
|
//# sourceMappingURL=match-game.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataTypes } from '
|
|
1
|
+
import { DataTypes } from '../../../../core/types';
|
|
2
2
|
import type { DrizzleDatabase } from '../../db';
|
|
3
3
|
export declare function handleMatchDelete(db: DrizzleDatabase, filter?: Partial<DataTypes['match']>): Promise<boolean>;
|
|
4
4
|
//# sourceMappingURL=match.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataTypes } from '
|
|
1
|
+
import { DataTypes } from '../../../../core/types';
|
|
2
2
|
import type { DrizzleDatabase } from '../../db';
|
|
3
3
|
export declare function handleParticipantDelete(db: DrizzleDatabase, filter?: Partial<DataTypes['participant']>): Promise<boolean>;
|
|
4
4
|
//# sourceMappingURL=participant.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataTypes } from '
|
|
1
|
+
import { DataTypes } from '../../../../core/types';
|
|
2
2
|
import type { DrizzleDatabase } from '../../db';
|
|
3
3
|
export declare function handleRoundDelete(db: DrizzleDatabase, filter?: Partial<DataTypes['round']>): Promise<boolean>;
|
|
4
4
|
//# sourceMappingURL=round.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataTypes } from '
|
|
1
|
+
import { DataTypes } from '../../../../core/types';
|
|
2
2
|
import type { DrizzleDatabase } from '../../db';
|
|
3
3
|
export declare function handleStageDelete(db: DrizzleDatabase, filter?: Partial<DataTypes['stage']>): Promise<boolean>;
|
|
4
4
|
//# sourceMappingURL=stage.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataTypes } from '
|
|
1
|
+
import { DataTypes } from '../../../core/types';
|
|
2
2
|
import type { DrizzleDatabase } from '../db';
|
|
3
3
|
export declare function handleDelete<T extends keyof DataTypes>(db: DrizzleDatabase, table: T | 'tournament', filter?: Partial<DataTypes[T]>): Promise<boolean>;
|
|
4
4
|
//# sourceMappingURL=delete.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataTypes } from '
|
|
1
|
+
import { DataTypes } from '../../../../core/types';
|
|
2
2
|
import type { DrizzleDatabase } from '../../db';
|
|
3
3
|
type GroupInsertInput = DataTypes['group'];
|
|
4
4
|
export declare function handleGroupInsert(db: DrizzleDatabase, values: GroupInsertInput | GroupInsertInput[]): Promise<string | boolean>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DrizzleDatabase } from '../../db';
|
|
2
|
-
import type { MatchGameWithExtra } from '
|
|
2
|
+
import type { MatchGameWithExtra } from '../../types';
|
|
3
3
|
type MatchGameInsertInput = MatchGameWithExtra;
|
|
4
4
|
export declare function handleMatchGameInsert(db: DrizzleDatabase, values: MatchGameInsertInput | MatchGameInsertInput[]): Promise<string | boolean>;
|
|
5
5
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DrizzleDatabase } from '../../db';
|
|
2
|
-
import type { MatchWithExtra } from '
|
|
2
|
+
import type { MatchWithExtra } from '../../types';
|
|
3
3
|
type MatchInsertInput = MatchWithExtra;
|
|
4
4
|
export declare function handleMatchInsert(db: DrizzleDatabase, values: MatchInsertInput | MatchInsertInput[]): Promise<string | boolean>;
|
|
5
5
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataTypes } from '
|
|
1
|
+
import { DataTypes } from '../../../../core/types';
|
|
2
2
|
import type { DrizzleDatabase } from '../../db';
|
|
3
3
|
type ParticipantInsertInput = DataTypes['participant'];
|
|
4
4
|
export declare function handleParticipantInsert(db: DrizzleDatabase, values: ParticipantInsertInput | ParticipantInsertInput[]): Promise<string | boolean>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataTypes } from '
|
|
1
|
+
import { DataTypes } from '../../../../core/types';
|
|
2
2
|
import type { DrizzleDatabase } from '../../db';
|
|
3
3
|
type RoundInsertInput = DataTypes['round'];
|
|
4
4
|
export declare function handleRoundInsert(db: DrizzleDatabase, values: RoundInsertInput | RoundInsertInput[]): Promise<string | boolean>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataTypes } from '
|
|
1
|
+
import { DataTypes } from '../../../../core/types';
|
|
2
2
|
import type { DrizzleDatabase } from '../../db';
|
|
3
3
|
type StageInsertInput = DataTypes['stage'];
|
|
4
4
|
export declare function handleStageInsert(db: DrizzleDatabase, values: StageInsertInput | StageInsertInput[]): Promise<string | boolean>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataTypes } from '
|
|
1
|
+
import { DataTypes } from '../../../core/types';
|
|
2
2
|
import type { DrizzleDatabase } from '../db';
|
|
3
3
|
export declare function handleInsert<T extends keyof DataTypes>(db: DrizzleDatabase, table: T | 'tournament', values: DataTypes[T] | DataTypes[T][]): Promise<string | number | boolean>;
|
|
4
4
|
//# sourceMappingURL=insert.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataTypes } from '
|
|
1
|
+
import { DataTypes } from '../../../../core/types';
|
|
2
2
|
import type { DrizzleDatabase } from '../../db';
|
|
3
3
|
export declare function handleGroupSelect(db: DrizzleDatabase, filter?: Partial<DataTypes['group']> | number | string): Promise<DataTypes['group'][] | DataTypes['group'] | null>;
|
|
4
4
|
//# sourceMappingURL=group.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { DrizzleDatabase } from '../../db';
|
|
2
|
-
import type { MatchGameWithExtra } from '
|
|
2
|
+
import type { MatchGameWithExtra } from '../../types';
|
|
3
3
|
export declare function handleMatchGameSelect(db: DrizzleDatabase, filter?: Partial<MatchGameWithExtra> | number | string): Promise<MatchGameWithExtra[] | MatchGameWithExtra | null>;
|
|
4
4
|
//# sourceMappingURL=match-game.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { DrizzleDatabase } from '../../db';
|
|
2
|
-
import type { MatchWithExtra } from '
|
|
2
|
+
import type { MatchWithExtra } from '../../types';
|
|
3
3
|
export declare function handleMatchSelect(db: DrizzleDatabase, filter?: Partial<MatchWithExtra> | number | string): Promise<MatchWithExtra[] | MatchWithExtra | null>;
|
|
4
4
|
//# sourceMappingURL=match.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataTypes } from '
|
|
1
|
+
import { DataTypes } from '../../../../core/types';
|
|
2
2
|
import type { DrizzleDatabase } from '../../db';
|
|
3
3
|
export declare function handleParticipantSelect(db: DrizzleDatabase, filter?: Partial<DataTypes['participant']> | number | string): Promise<DataTypes['participant'][] | DataTypes['participant'] | null>;
|
|
4
4
|
//# sourceMappingURL=participant.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataTypes } from '
|
|
1
|
+
import { DataTypes } from '../../../../core/types';
|
|
2
2
|
import type { DrizzleDatabase } from '../../db';
|
|
3
3
|
export declare function handleRoundSelect(db: DrizzleDatabase, filter?: Partial<DataTypes['round']> | number | string): Promise<DataTypes['round'][] | DataTypes['round'] | null>;
|
|
4
4
|
//# sourceMappingURL=round.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataTypes } from '
|
|
1
|
+
import { DataTypes } from '../../../../core/types';
|
|
2
2
|
import type { DrizzleDatabase } from '../../db';
|
|
3
3
|
export declare function handleStageSelect(db: DrizzleDatabase, filter?: Partial<DataTypes['stage']> | number | string): Promise<DataTypes['stage'][] | DataTypes['stage'] | null>;
|
|
4
4
|
//# sourceMappingURL=stage.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { DrizzleDatabase } from '../../db';
|
|
2
|
-
import type { Tournament } from '
|
|
2
|
+
import type { Tournament } from '../../../../core/types';
|
|
3
3
|
export declare function handleTournamentSelect(db: DrizzleDatabase, filter?: Partial<Tournament> | number | string): Promise<Tournament[] | Tournament | null>;
|
|
4
4
|
//# sourceMappingURL=tournament.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataTypes } from '
|
|
1
|
+
import { DataTypes } from '../../../core/types';
|
|
2
2
|
import type { DrizzleDatabase } from '../db';
|
|
3
3
|
export declare function handleSelect<T extends keyof DataTypes>(db: DrizzleDatabase, table: T | 'tournament', filter?: Partial<DataTypes[T]> | number | string): Promise<DataTypes[T][] | DataTypes[T] | null>;
|
|
4
4
|
//# sourceMappingURL=select.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataTypes } from '
|
|
1
|
+
import { DataTypes } from '../../../../core/types';
|
|
2
2
|
import type { DrizzleDatabase } from '../../db';
|
|
3
3
|
export declare function handleGroupUpdate(db: DrizzleDatabase, filter: Partial<DataTypes['group']> | number | string, value: Partial<DataTypes['group']> | DataTypes['group']): Promise<boolean>;
|
|
4
4
|
//# sourceMappingURL=group.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { DrizzleDatabase } from '../../db';
|
|
2
|
-
import type { MatchGameWithExtra } from '
|
|
2
|
+
import type { MatchGameWithExtra } from '../../types';
|
|
3
3
|
export declare function handleMatchGameUpdate(db: DrizzleDatabase, filter: Partial<MatchGameWithExtra> | number | string, value: Partial<MatchGameWithExtra> | MatchGameWithExtra): Promise<boolean>;
|
|
4
4
|
//# sourceMappingURL=match-game.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { DrizzleDatabase } from '../../db';
|
|
2
|
-
import type { MatchWithExtra } from '
|
|
2
|
+
import type { MatchWithExtra } from '../../types';
|
|
3
3
|
export declare function handleMatchUpdate(db: DrizzleDatabase, filter: Partial<MatchWithExtra> | number | string, value: Partial<MatchWithExtra> | MatchWithExtra): Promise<boolean>;
|
|
4
4
|
//# sourceMappingURL=match.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataTypes } from '
|
|
1
|
+
import { DataTypes } from '../../../../core/types';
|
|
2
2
|
import type { DrizzleDatabase } from '../../db';
|
|
3
3
|
export declare function handleParticipantUpdate(db: DrizzleDatabase, filter: Partial<DataTypes['participant']> | number | string, value: Partial<DataTypes['participant']> | DataTypes['participant']): Promise<boolean>;
|
|
4
4
|
//# sourceMappingURL=participant.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataTypes } from '
|
|
1
|
+
import { DataTypes } from '../../../../core/types';
|
|
2
2
|
import type { DrizzleDatabase } from '../../db';
|
|
3
3
|
export declare function handleRoundUpdate(db: DrizzleDatabase, filter: Partial<DataTypes['round']> | number | string, value: Partial<DataTypes['round']> | DataTypes['round']): Promise<boolean>;
|
|
4
4
|
//# sourceMappingURL=round.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataTypes } from '
|
|
1
|
+
import { DataTypes } from '../../../../core/types';
|
|
2
2
|
import type { DrizzleDatabase } from '../../db';
|
|
3
3
|
export declare function handleStageUpdate(db: DrizzleDatabase, filter: Partial<DataTypes['stage']> | number | string, value: Partial<DataTypes['stage']> | DataTypes['stage']): Promise<boolean>;
|
|
4
4
|
//# sourceMappingURL=stage.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataTypes } from '
|
|
1
|
+
import { DataTypes } from '../../../core/types';
|
|
2
2
|
import type { DrizzleDatabase } from '../db';
|
|
3
3
|
export declare function handleUpdate<T extends keyof DataTypes>(db: DrizzleDatabase, table: T | 'tournament', filter: Partial<DataTypes[T]> | number, value: Partial<DataTypes[T]> | DataTypes[T]): Promise<boolean>;
|
|
4
4
|
//# sourceMappingURL=update.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../src/storage/drizzle/storage.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAqB,MAAM,cAAc,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAC5C,OAAO,EAQH,KAAK,UAAU,IAAI,aAAa,EAChC,KAAK,aAAa,EACrB,MAAM,aAAa,CAAC;AAuCrB;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,EAAE,EAAE,eAAe,GAAG,aAAa,CA8KhE;AAGD,eAAO,MAAM,oBAAoB;IAC7B;;;;;OAKG;eACc,eAAe,GAAG,
|
|
1
|
+
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../src/storage/drizzle/storage.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAqB,MAAM,cAAc,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAC5C,OAAO,EAQH,KAAK,UAAU,IAAI,aAAa,EAChC,KAAK,aAAa,EACrB,MAAM,aAAa,CAAC;AAuCrB;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,EAAE,EAAE,eAAe,GAAG,aAAa,CA8KhE;AAGD,eAAO,MAAM,oBAAoB;IAC7B;;;;;OAKG;eACc,eAAe,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;IAI3D;;;;;;OAMG;gBAEK,eAAe,MACf,MAAM,GACX,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC;IAShC;;;;;;OAMG;eACc,eAAe,QAAQ,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC;IAKvE;;;;;;;OAOG;eAEK,eAAe,MACf,MAAM,QACJ,OAAO,CAAC,aAAa,CAAC,GAC7B,OAAO,CAAC,OAAO,CAAC;IAKnB;;;;;;OAMG;eACc,eAAe,MAAM,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;CAIlE,CAAC"}
|