@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.
Files changed (145) hide show
  1. package/dist/core/base/getter.d.ts +7 -6
  2. package/dist/core/base/getter.d.ts.map +1 -1
  3. package/dist/core/base/getter.js +82 -80
  4. package/dist/core/base/getter.js.map +1 -1
  5. package/dist/core/base/stage/creator.d.ts +6 -5
  6. package/dist/core/base/stage/creator.d.ts.map +1 -1
  7. package/dist/core/base/stage/creator.js +189 -151
  8. package/dist/core/base/stage/creator.js.map +1 -1
  9. package/dist/core/base/updater.d.ts +2 -2
  10. package/dist/core/base/updater.d.ts.map +1 -1
  11. package/dist/core/base/updater.js +47 -70
  12. package/dist/core/base/updater.js.map +1 -1
  13. package/dist/core/create.d.ts +3 -49
  14. package/dist/core/create.d.ts.map +1 -1
  15. package/dist/core/create.js +5 -119
  16. package/dist/core/create.js.map +1 -1
  17. package/dist/core/db.d.ts +113 -0
  18. package/dist/core/db.d.ts.map +1 -0
  19. package/dist/core/db.js +473 -0
  20. package/dist/core/db.js.map +1 -0
  21. package/dist/core/delete.d.ts +5 -5
  22. package/dist/core/delete.d.ts.map +1 -1
  23. package/dist/core/delete.js +14 -27
  24. package/dist/core/delete.js.map +1 -1
  25. package/dist/core/find.d.ts +22 -42
  26. package/dist/core/find.d.ts.map +1 -1
  27. package/dist/core/find.js +29 -196
  28. package/dist/core/find.js.map +1 -1
  29. package/dist/core/get.d.ts +1 -1
  30. package/dist/core/get.d.ts.map +1 -1
  31. package/dist/core/get.js +35 -88
  32. package/dist/core/get.js.map +1 -1
  33. package/dist/core/helpers.d.ts +1 -1
  34. package/dist/core/helpers.js +182 -319
  35. package/dist/core/helpers.js.map +1 -1
  36. package/dist/core/manager.d.ts +31 -35
  37. package/dist/core/manager.d.ts.map +1 -1
  38. package/dist/core/manager.js +53 -196
  39. package/dist/core/manager.js.map +1 -1
  40. package/dist/core/ordering.d.ts +1 -1
  41. package/dist/core/ordering.js +3 -6
  42. package/dist/core/ordering.js.map +1 -1
  43. package/dist/core/reset.d.ts +13 -8
  44. package/dist/core/reset.d.ts.map +1 -1
  45. package/dist/core/reset.js +30 -68
  46. package/dist/core/reset.js.map +1 -1
  47. package/dist/core/types.d.ts +1 -73
  48. package/dist/core/types.d.ts.map +1 -1
  49. package/dist/core/types.js +1 -2
  50. package/dist/core/update.d.ts +1 -1
  51. package/dist/core/update.d.ts.map +1 -1
  52. package/dist/core/update.js +36 -79
  53. package/dist/core/update.js.map +1 -1
  54. package/dist/index.d.ts +15 -16
  55. package/dist/index.d.ts.map +1 -1
  56. package/dist/index.js +15 -54
  57. package/dist/index.js.map +1 -1
  58. package/dist/model/index.js +4 -20
  59. package/dist/model/index.js.map +1 -1
  60. package/dist/model/input.js +1 -2
  61. package/dist/model/input.js.map +1 -1
  62. package/dist/model/other.js +2 -5
  63. package/dist/model/other.js.map +1 -1
  64. package/dist/model/storage.js +1 -2
  65. package/dist/model/storage.js.map +1 -1
  66. package/dist/model/unions.js +1 -2
  67. package/dist/model/unions.js.map +1 -1
  68. package/dist/storage/drizzle/db/index.js +7 -37
  69. package/dist/storage/drizzle/db/index.js.map +1 -1
  70. package/dist/storage/drizzle/db/schema/enums.js +6 -9
  71. package/dist/storage/drizzle/db/schema/enums.js.map +1 -1
  72. package/dist/storage/drizzle/db/schema/group.js +16 -19
  73. package/dist/storage/drizzle/db/schema/group.js.map +1 -1
  74. package/dist/storage/drizzle/db/schema/index.js +8 -24
  75. package/dist/storage/drizzle/db/schema/index.js.map +1 -1
  76. package/dist/storage/drizzle/db/schema/match-game.d.ts +1 -1
  77. package/dist/storage/drizzle/db/schema/match-game.js +21 -24
  78. package/dist/storage/drizzle/db/schema/match-game.js.map +1 -1
  79. package/dist/storage/drizzle/db/schema/match.d.ts +1 -1
  80. package/dist/storage/drizzle/db/schema/match.js +30 -33
  81. package/dist/storage/drizzle/db/schema/match.js.map +1 -1
  82. package/dist/storage/drizzle/db/schema/participant.js +12 -15
  83. package/dist/storage/drizzle/db/schema/participant.js.map +1 -1
  84. package/dist/storage/drizzle/db/schema/round.js +20 -23
  85. package/dist/storage/drizzle/db/schema/round.js.map +1 -1
  86. package/dist/storage/drizzle/db/schema/stage.d.ts +20 -20
  87. package/dist/storage/drizzle/db/schema/stage.d.ts.map +1 -1
  88. package/dist/storage/drizzle/db/schema/stage.js +24 -27
  89. package/dist/storage/drizzle/db/schema/stage.js.map +1 -1
  90. package/dist/storage/drizzle/db/schema/tournament.js +15 -18
  91. package/dist/storage/drizzle/db/schema/tournament.js.map +1 -1
  92. package/dist/storage/drizzle/index.js +3 -23
  93. package/dist/storage/drizzle/index.js.map +1 -1
  94. package/dist/storage/drizzle/storage-handlers/delete-handlers/group.d.ts +1 -1
  95. package/dist/storage/drizzle/storage-handlers/delete-handlers/match-game.d.ts +1 -1
  96. package/dist/storage/drizzle/storage-handlers/delete-handlers/match.d.ts +1 -1
  97. package/dist/storage/drizzle/storage-handlers/delete-handlers/participant.d.ts +1 -1
  98. package/dist/storage/drizzle/storage-handlers/delete-handlers/round.d.ts +1 -1
  99. package/dist/storage/drizzle/storage-handlers/delete-handlers/stage.d.ts +1 -1
  100. package/dist/storage/drizzle/storage-handlers/delete.d.ts +1 -1
  101. package/dist/storage/drizzle/storage-handlers/insert-handlers/group.d.ts +1 -1
  102. package/dist/storage/drizzle/storage-handlers/insert-handlers/match-game.d.ts +1 -1
  103. package/dist/storage/drizzle/storage-handlers/insert-handlers/match.d.ts +1 -1
  104. package/dist/storage/drizzle/storage-handlers/insert-handlers/participant.d.ts +1 -1
  105. package/dist/storage/drizzle/storage-handlers/insert-handlers/round.d.ts +1 -1
  106. package/dist/storage/drizzle/storage-handlers/insert-handlers/stage.d.ts +1 -1
  107. package/dist/storage/drizzle/storage-handlers/insert.d.ts +1 -1
  108. package/dist/storage/drizzle/storage-handlers/select-handlers/group.d.ts +1 -1
  109. package/dist/storage/drizzle/storage-handlers/select-handlers/match-game.d.ts +1 -1
  110. package/dist/storage/drizzle/storage-handlers/select-handlers/match.d.ts +1 -1
  111. package/dist/storage/drizzle/storage-handlers/select-handlers/participant.d.ts +1 -1
  112. package/dist/storage/drizzle/storage-handlers/select-handlers/round.d.ts +1 -1
  113. package/dist/storage/drizzle/storage-handlers/select-handlers/stage.d.ts +1 -1
  114. package/dist/storage/drizzle/storage-handlers/select-handlers/tournament.d.ts +1 -1
  115. package/dist/storage/drizzle/storage-handlers/select.d.ts +1 -1
  116. package/dist/storage/drizzle/storage-handlers/update-handlers/group.d.ts +1 -1
  117. package/dist/storage/drizzle/storage-handlers/update-handlers/match-game.d.ts +1 -1
  118. package/dist/storage/drizzle/storage-handlers/update-handlers/match.d.ts +1 -1
  119. package/dist/storage/drizzle/storage-handlers/update-handlers/participant.d.ts +1 -1
  120. package/dist/storage/drizzle/storage-handlers/update-handlers/round.d.ts +1 -1
  121. package/dist/storage/drizzle/storage-handlers/update-handlers/stage.d.ts +1 -1
  122. package/dist/storage/drizzle/storage-handlers/update.d.ts +1 -1
  123. package/dist/storage/drizzle/storage.d.ts +1 -1
  124. package/dist/storage/drizzle/storage.d.ts.map +1 -1
  125. package/dist/storage/drizzle/storage.js +29 -35
  126. package/dist/storage/drizzle/storage.js.map +1 -1
  127. package/dist/storage/drizzle/transformers/enum/grand-final-type.d.ts +1 -1
  128. package/dist/storage/drizzle/transformers/enum/match-result.d.ts +1 -1
  129. package/dist/storage/drizzle/transformers/enum/match-status.d.ts +1 -1
  130. package/dist/storage/drizzle/transformers/enum/match-status.js +1 -1
  131. package/dist/storage/drizzle/transformers/enum/round-robin-mode.d.ts +1 -1
  132. package/dist/storage/drizzle/transformers/enum/seed-ordering.d.ts +1 -1
  133. package/dist/storage/drizzle/transformers/enum/stage-type.d.ts +1 -1
  134. package/dist/storage/drizzle/transformers/model/group.d.ts +2 -2
  135. package/dist/storage/drizzle/transformers/model/match-game.d.ts +2 -2
  136. package/dist/storage/drizzle/transformers/model/match.d.ts +2 -2
  137. package/dist/storage/drizzle/transformers/model/participant-result.d.ts +1 -1
  138. package/dist/storage/drizzle/transformers/model/participant.d.ts +3 -3
  139. package/dist/storage/drizzle/transformers/model/round.d.ts +2 -2
  140. package/dist/storage/drizzle/transformers/model/stage-settings.d.ts +2 -2
  141. package/dist/storage/drizzle/transformers/model/stage.d.ts +2 -2
  142. package/dist/storage/drizzle/transformers/model/tournament.d.ts +1 -1
  143. package/dist/storage/drizzle/types.d.ts +1 -1
  144. package/dist/storage/drizzle/types.js +1 -2
  145. package/package.json +12 -17
@@ -1 +1 @@
1
- {"version":3,"file":"match.js","sourceRoot":"","sources":["../../../../../src/storage/drizzle/db/schema/match.ts"],"names":[],"mappings":";;;AAAA,iDAAoE;AACpE,6CAAwC;AACxC,mCAAgC;AAChC,mCAAgC;AAChC,mCAAgC;AAChC,6CAAyC;AAGzC,sBAAsB;AACT,QAAA,KAAK,GAAG,IAAA,iBAAO,EAAC,OAAO,EAAE;IAClC,EAAE,EAAE,IAAA,cAAI,EAAC,IAAI,CAAC,CAAC,UAAU,EAAE;IAC3B,0BAA0B;IAC1B,QAAQ,EAAE,IAAA,cAAI,EAAC,UAAU,CAAC;SACrB,OAAO,EAAE;SACT,UAAU,CAAC,GAAG,EAAE,CAAC,aAAK,CAAC,EAAE,CAAC;IAC/B,0BAA0B;IAC1B,QAAQ,EAAE,IAAA,cAAI,EAAC,UAAU,CAAC;SACrB,OAAO,EAAE;SACT,UAAU,CAAC,GAAG,EAAE,CAAC,aAAK,CAAC,EAAE,CAAC;IAC/B,0BAA0B;IAC1B,QAAQ,EAAE,IAAA,cAAI,EAAC,UAAU,CAAC;SACrB,OAAO,EAAE;SACT,UAAU,CAAC,GAAG,EAAE,CAAC,aAAK,CAAC,EAAE,CAAC;IAC/B,uCAAuC;IACvC,MAAM,EAAE,IAAA,iBAAO,EAAC,QAAQ,CAAC,CAAC,OAAO,EAAE;IACnC,2CAA2C;IAC3C,WAAW,EAAE,IAAA,iBAAO,EAAC,aAAa,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AAC,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
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.participantRelations = exports.participant = void 0;
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
- exports.participant = (0, pg_core_1.pgTable)('participant', {
9
- id: (0, pg_core_1.text)('id').primaryKey(),
10
- tournament_id: (0, pg_core_1.text)('tournament_id')
5
+ export const participant = pgTable('participant', {
6
+ id: text('id').primaryKey(),
7
+ tournament_id: text('tournament_id')
11
8
  .notNull()
12
- .references(() => tournament_1.tournament.id),
9
+ .references(() => tournament.id),
13
10
  // Name of the participant
14
- name: (0, pg_core_1.text)('name').notNull(),
11
+ name: text('name').notNull(),
15
12
  });
16
- exports.participantRelations = (0, drizzle_orm_1.relations)(exports.participant, ({ one }) => ({
17
- tournament: one(tournament_1.tournament, {
18
- fields: [exports.participant.tournament_id],
19
- references: [tournament_1.tournament.id],
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":";;;AAAA,iDAAoD;AACpD,6CAAwC;AACxC,6CAA0C;AAE1C,iDAAiD;AACpC,QAAA,WAAW,GAAG,IAAA,iBAAO,EAAC,aAAa,EAAE;IAC9C,EAAE,EAAE,IAAA,cAAI,EAAC,IAAI,CAAC,CAAC,UAAU,EAAE;IAC3B,aAAa,EAAE,IAAA,cAAI,EAAC,eAAe,CAAC;SAC/B,OAAO,EAAE;SACT,UAAU,CAAC,GAAG,EAAE,CAAC,uBAAU,CAAC,EAAE,CAAC;IACpC,0BAA0B;IAC1B,IAAI,EAAE,IAAA,cAAI,EAAC,MAAM,CAAC,CAAC,OAAO,EAAE;CAC/B,CAAC,CAAC;AAEU,QAAA,oBAAoB,GAAG,IAAA,uBAAS,EAAC,mBAAW,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC;IACrE,UAAU,EAAE,GAAG,CAAC,uBAAU,EAAE;QACxB,MAAM,EAAE,CAAC,mBAAW,CAAC,aAAa,CAAC;QACnC,UAAU,EAAE,CAAC,uBAAU,CAAC,EAAE,CAAC;KAC9B,CAAC;CACL,CAAC,CAAC,CAAC"}
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
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.roundRelations = exports.round = void 0;
4
- const pg_core_1 = require("drizzle-orm/pg-core");
5
- const drizzle_orm_1 = require("drizzle-orm");
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
- exports.round = (0, pg_core_1.pgTable)('round', {
11
- id: (0, pg_core_1.text)('id').primaryKey(),
7
+ export const round = pgTable('round', {
8
+ id: text('id').primaryKey(),
12
9
  // ID of the parent stage.
13
- stage_id: (0, pg_core_1.text)('stage_id')
10
+ stage_id: text('stage_id')
14
11
  .notNull()
15
- .references(() => stage_1.stage.id),
12
+ .references(() => stage.id),
16
13
  // ID of the parent group.
17
- group_id: (0, pg_core_1.text)('group_id')
14
+ group_id: text('group_id')
18
15
  .notNull()
19
- .references(() => group_1.group.id),
16
+ .references(() => group.id),
20
17
  // The number of the round in its group
21
- number: (0, pg_core_1.integer)('number').notNull(),
18
+ number: integer('number').notNull(),
22
19
  });
23
- exports.roundRelations = (0, drizzle_orm_1.relations)(exports.round, ({ one, many }) => ({
24
- stage: one(stage_1.stage, {
25
- fields: [exports.round.stage_id],
26
- references: [stage_1.stage.id],
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(group_1.group, {
29
- fields: [exports.round.group_id],
30
- references: [group_1.group.id],
25
+ group: one(group, {
26
+ fields: [round.group_id],
27
+ references: [group.id],
31
28
  }),
32
- matches: many(match_1.match),
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":";;;AAAA,iDAA6D;AAC7D,6CAAwC;AACxC,mCAAgC;AAChC,mCAAgC;AAChC,mCAAgC;AAEhC,sBAAsB;AACT,QAAA,KAAK,GAAG,IAAA,iBAAO,EAAC,OAAO,EAAE;IAClC,EAAE,EAAE,IAAA,cAAI,EAAC,IAAI,CAAC,CAAC,UAAU,EAAE;IAC3B,0BAA0B;IAC1B,QAAQ,EAAE,IAAA,cAAI,EAAC,UAAU,CAAC;SACrB,OAAO,EAAE;SACT,UAAU,CAAC,GAAG,EAAE,CAAC,aAAK,CAAC,EAAE,CAAC;IAC/B,0BAA0B;IAC1B,QAAQ,EAAE,IAAA,cAAI,EAAC,UAAU,CAAC;SACrB,OAAO,EAAE;SACT,UAAU,CAAC,GAAG,EAAE,CAAC,aAAK,CAAC,EAAE,CAAC;IAC/B,uCAAuC;IACvC,MAAM,EAAE,IAAA,iBAAO,EAAC,QAAQ,CAAC,CAAC,OAAO,EAAE;CACtC,CAAC,CAAC;AAEU,QAAA,cAAc,GAAG,IAAA,uBAAS,EAAC,aAAK,EAAE,CAAC,EAAE,GAA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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 | undefined;
97
- seedOrdering?: string[] | undefined;
98
- balanceByes?: boolean | undefined;
99
- matchesChildCount?: number | undefined;
100
- groupCount?: number | undefined;
101
- roundRobinMode?: "simple" | "double" | undefined;
102
- manualOrdering?: number[][] | undefined;
103
- consolationFinal?: boolean | undefined;
104
- skipFirstRound?: boolean | undefined;
105
- grandFinal?: "none" | "simple" | "double" | undefined;
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 | undefined;
120
- seedOrdering?: string[] | undefined;
121
- balanceByes?: boolean | undefined;
122
- matchesChildCount?: number | undefined;
123
- groupCount?: number | undefined;
124
- roundRobinMode?: "simple" | "double" | undefined;
125
- manualOrdering?: number[][] | undefined;
126
- consolationFinal?: boolean | undefined;
127
- skipFirstRound?: boolean | undefined;
128
- grandFinal?: "none" | "simple" | "double" | undefined;
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwBhB,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
+ {"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
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.stageRelations = exports.stage = void 0;
4
- const pg_core_1 = require("drizzle-orm/pg-core");
5
- const drizzle_orm_1 = require("drizzle-orm");
6
- const enums_1 = require("./enums");
7
- const tournament_1 = require("./tournament");
8
- const group_1 = require("./group");
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
- exports.stage = (0, pg_core_1.pgTable)('stage', {
14
- id: (0, pg_core_1.text)('id').primaryKey(),
15
- tournament_id: (0, pg_core_1.text)('tournament_id')
10
+ export const stage = pgTable('stage', {
11
+ id: text('id').primaryKey(),
12
+ tournament_id: text('tournament_id')
16
13
  .notNull()
17
- .references(() => tournament_1.tournament.id),
14
+ .references(() => tournament.id),
18
15
  // Name of the stage
19
- name: (0, pg_core_1.text)('name').notNull(),
16
+ name: text('name').notNull(),
20
17
  // Type of the stage
21
- type: (0, enums_1.stageTypeEnum)('type').notNull(),
18
+ type: stageTypeEnum('type').notNull(),
22
19
  // The number of the stage in its tournament
23
- number: (0, pg_core_1.integer)('number').notNull(),
20
+ number: integer('number').notNull(),
24
21
  // Settings of the stage (embedded as JSONB to match model)
25
- settings: (0, pg_core_1.jsonb)('settings').notNull().$type(),
22
+ settings: jsonb('settings').notNull().$type(),
26
23
  });
27
- exports.stageRelations = (0, drizzle_orm_1.relations)(exports.stage, ({ one, many }) => ({
28
- tournament: one(tournament_1.tournament, {
29
- fields: [exports.stage.tournament_id],
30
- references: [tournament_1.tournament.id],
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(group_1.group),
33
- rounds: many(round_1.round),
34
- matches: many(match_1.match),
35
- matchGames: many(match_game_1.matchGame),
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":";;;AAAA,iDAAoE;AACpE,6CAAwC;AACxC,mCAAwC;AACxC,6CAA0C;AAC1C,mCAAgC;AAChC,mCAAgC;AAChC,mCAAgC;AAChC,6CAAyC;AAEzC,kFAAkF;AACrE,QAAA,KAAK,GAAG,IAAA,iBAAO,EAAC,OAAO,EAAE;IAClC,EAAE,EAAE,IAAA,cAAI,EAAC,IAAI,CAAC,CAAC,UAAU,EAAE;IAC3B,aAAa,EAAE,IAAA,cAAI,EAAC,eAAe,CAAC;SAC/B,OAAO,EAAE;SACT,UAAU,CAAC,GAAG,EAAE,CAAC,uBAAU,CAAC,EAAE,CAAC;IACpC,oBAAoB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exports.tournamentRelations = exports.tournament = void 0;
4
- const pg_core_1 = require("drizzle-orm/pg-core");
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
- exports.tournament = (0, pg_core_1.pgTable)('tournament', {
10
- id: (0, pg_core_1.text)('id').primaryKey(),
6
+ export const tournament = pgTable('tournament', {
7
+ id: text('id').primaryKey(),
11
8
  // Name of the tournament
12
- name: (0, pg_core_1.text)('name').notNull(),
9
+ name: text('name').notNull(),
13
10
  // URL-friendly slug for the tournament
14
- slug: (0, pg_core_1.text)('slug').notNull(),
11
+ slug: text('slug').notNull(),
15
12
  // Description of the tournament
16
- description: (0, pg_core_1.text)('description'),
13
+ description: text('description'),
17
14
  // Start date of the tournament
18
- start_date: (0, pg_core_1.timestamp)('start_date'),
15
+ start_date: timestamp('start_date'),
19
16
  // End date of the tournament
20
- end_date: (0, pg_core_1.timestamp)('end_date'),
17
+ end_date: timestamp('end_date'),
21
18
  // Additional data for the tournament
22
- extra: (0, pg_core_1.jsonb)('extra'),
19
+ extra: jsonb('extra'),
23
20
  });
24
- exports.tournamentRelations = (0, drizzle_orm_1.relations)(exports.tournament, ({ many }) => ({
25
- stages: many(stage_1.stage),
26
- participants: many(participant_1.participant),
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":";;;AAAA,iDAAsE;AACtE,6CAAwC;AACxC,mCAAgC;AAChC,+CAA4C;AAE5C,kEAAkE;AACrD,QAAA,UAAU,GAAG,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B,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
- var storage_1 = require("./storage");
20
- Object.defineProperty(exports, "createStorage", { enumerable: true, get: function () { return storage_1.createStorage; } });
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
- __exportStar(require("./db/schema"), exports);
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":";;;;;;;;;;;;;;;;;AAAA,eAAe;AACf,qCAAgE;AAAvD,wGAAA,aAAa,OAAA;AAAE,+GAAA,oBAAoB,OAAA;AAC5C,2BAA4D;AAAnD,oGAAA,cAAc,OAAA;AAEvB,kDAAkD;AAClD,8CAA4B"}
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 '@/core/types';
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 '@/core/types';
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 '@/core/types';
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 '@/core/types';
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 '@/core/types';
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 '@/core/types';
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 '@/core/types';
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 '@/core/types';
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 '@/storage/drizzle/types';
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 '@/storage/drizzle/types';
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 '@/core/types';
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 '@/core/types';
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 '@/core/types';
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 '@/core/types';
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 '@/core/types';
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 '@/storage/drizzle/types';
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 '@/storage/drizzle/types';
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 '@/core/types';
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 '@/core/types';
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 '@/core/types';
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 '@/core/types';
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 '@/core/types';
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 '@/core/types';
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 '@/storage/drizzle/types';
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 '@/storage/drizzle/types';
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 '@/core/types';
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 '@/core/types';
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 '@/core/types';
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 '@/core/types';
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,4 +1,4 @@
1
- import { CrudInterface } from '@/core/types';
1
+ import { CrudInterface } from '../../core/types';
2
2
  import type { DrizzleDatabase } from './db';
3
3
  import { type Tournament as TournamentRow, type NewTournament } from './db/schema';
4
4
  /**
@@ -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,QAAQ,aAAa,EAAE,CAAC;IAI3D;;;;;;OAMG;gBAEK,eAAe,MACf,MAAM,GACX,QAAQ,aAAa,GAAG,IAAI,CAAC;IAShC;;;;;;OAMG;eACc,eAAe,QAAQ,aAAa,GAAG,QAAQ,MAAM,CAAC;IAKvE;;;;;;;OAOG;eAEK,eAAe,MACf,MAAM,QACJ,QAAQ,aAAa,CAAC,GAC7B,QAAQ,OAAO,CAAC;IAKnB;;;;;;OAMG;eACc,eAAe,MAAM,MAAM,GAAG,QAAQ,OAAO,CAAC;CAIlE,CAAC"}
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,GAA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