@ttt-productions/q-core 0.1.28 → 0.1.30

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 (496) hide show
  1. package/dist/constants/admin-views.d.ts.map +1 -1
  2. package/dist/constants/admin-views.js +0 -3
  3. package/dist/constants/admin-views.js.map +1 -1
  4. package/dist/constants/business.d.ts.map +1 -1
  5. package/dist/constants/business.js +0 -52
  6. package/dist/constants/business.js.map +1 -1
  7. package/dist/constants/deployment.d.ts +0 -2
  8. package/dist/constants/deployment.d.ts.map +1 -1
  9. package/dist/constants/deployment.js +0 -2
  10. package/dist/constants/deployment.js.map +1 -1
  11. package/dist/constants/media.d.ts.map +1 -1
  12. package/dist/constants/media.js +4 -30
  13. package/dist/constants/media.js.map +1 -1
  14. package/dist/constants/scheduled-jobs.d.ts +0 -25
  15. package/dist/constants/scheduled-jobs.d.ts.map +1 -1
  16. package/dist/constants/scheduled-jobs.js +0 -26
  17. package/dist/constants/scheduled-jobs.js.map +1 -1
  18. package/dist/constants/sports.d.ts +1 -0
  19. package/dist/constants/sports.d.ts.map +1 -1
  20. package/dist/constants/sports.js +4 -25
  21. package/dist/constants/sports.js.map +1 -1
  22. package/dist/constants/storage-keys.d.ts +0 -38
  23. package/dist/constants/storage-keys.d.ts.map +1 -1
  24. package/dist/constants/storage-keys.js +0 -41
  25. package/dist/constants/storage-keys.js.map +1 -1
  26. package/dist/constants/telemetry.d.ts +0 -3
  27. package/dist/constants/telemetry.d.ts.map +1 -1
  28. package/dist/constants/telemetry.js +2 -11
  29. package/dist/constants/telemetry.js.map +1 -1
  30. package/dist/doc-schemas/admin-notifications.d.ts +1 -2
  31. package/dist/doc-schemas/admin-notifications.d.ts.map +1 -1
  32. package/dist/doc-schemas/admin-notifications.js +0 -41
  33. package/dist/doc-schemas/admin-notifications.js.map +1 -1
  34. package/dist/doc-schemas/aggregate-stats.d.ts.map +1 -1
  35. package/dist/doc-schemas/aggregate-stats.js +0 -35
  36. package/dist/doc-schemas/aggregate-stats.js.map +1 -1
  37. package/dist/doc-schemas/atoms.d.ts +0 -17
  38. package/dist/doc-schemas/atoms.d.ts.map +1 -1
  39. package/dist/doc-schemas/atoms.js +0 -36
  40. package/dist/doc-schemas/atoms.js.map +1 -1
  41. package/dist/doc-schemas/audit-event.d.ts +2 -0
  42. package/dist/doc-schemas/audit-event.d.ts.map +1 -1
  43. package/dist/doc-schemas/audit-event.js +0 -8
  44. package/dist/doc-schemas/audit-event.js.map +1 -1
  45. package/dist/doc-schemas/award-group-grant.d.ts +2 -8
  46. package/dist/doc-schemas/award-group-grant.d.ts.map +1 -1
  47. package/dist/doc-schemas/award-group-grant.js +0 -25
  48. package/dist/doc-schemas/award-group-grant.js.map +1 -1
  49. package/dist/doc-schemas/catalogs.d.ts.map +1 -1
  50. package/dist/doc-schemas/catalogs.js +0 -12
  51. package/dist/doc-schemas/catalogs.js.map +1 -1
  52. package/dist/doc-schemas/firestore-primitives.d.ts.map +1 -1
  53. package/dist/doc-schemas/firestore-primitives.js +0 -5
  54. package/dist/doc-schemas/firestore-primitives.js.map +1 -1
  55. package/dist/doc-schemas/gallery.d.ts.map +1 -1
  56. package/dist/doc-schemas/gallery.js +9 -18
  57. package/dist/doc-schemas/gallery.js.map +1 -1
  58. package/dist/doc-schemas/game-location.d.ts.map +1 -1
  59. package/dist/doc-schemas/game-location.js +2 -11
  60. package/dist/doc-schemas/game-location.js.map +1 -1
  61. package/dist/doc-schemas/game-stat-history.d.ts.map +1 -1
  62. package/dist/doc-schemas/game-stat-history.js +2 -11
  63. package/dist/doc-schemas/game-stat-history.js.map +1 -1
  64. package/dist/doc-schemas/game-stats.d.ts.map +1 -1
  65. package/dist/doc-schemas/game-stats.js +0 -56
  66. package/dist/doc-schemas/game-stats.js.map +1 -1
  67. package/dist/doc-schemas/league-team.d.ts.map +1 -1
  68. package/dist/doc-schemas/league-team.js +6 -29
  69. package/dist/doc-schemas/league-team.js.map +1 -1
  70. package/dist/doc-schemas/membership-roster-sync.d.ts.map +1 -1
  71. package/dist/doc-schemas/membership-roster-sync.js +0 -17
  72. package/dist/doc-schemas/membership-roster-sync.js.map +1 -1
  73. package/dist/doc-schemas/migration-console.d.ts +21 -15
  74. package/dist/doc-schemas/migration-console.d.ts.map +1 -1
  75. package/dist/doc-schemas/migration-console.js +0 -32
  76. package/dist/doc-schemas/migration-console.js.map +1 -1
  77. package/dist/doc-schemas/pending-media.d.ts.map +1 -1
  78. package/dist/doc-schemas/pending-media.js +8 -20
  79. package/dist/doc-schemas/pending-media.js.map +1 -1
  80. package/dist/doc-schemas/picture-retirement.d.ts.map +1 -1
  81. package/dist/doc-schemas/picture-retirement.js +8 -13
  82. package/dist/doc-schemas/picture-retirement.js.map +1 -1
  83. package/dist/doc-schemas/publicUser.d.ts.map +1 -1
  84. package/dist/doc-schemas/publicUser.js +0 -5
  85. package/dist/doc-schemas/publicUser.js.map +1 -1
  86. package/dist/doc-schemas/registration-start.d.ts.map +1 -1
  87. package/dist/doc-schemas/registration-start.js +2 -5
  88. package/dist/doc-schemas/registration-start.js.map +1 -1
  89. package/dist/doc-schemas/registry.d.ts +25 -14
  90. package/dist/doc-schemas/registry.d.ts.map +1 -1
  91. package/dist/doc-schemas/registry.js +0 -10
  92. package/dist/doc-schemas/registry.js.map +1 -1
  93. package/dist/doc-schemas/reserved-display-name.d.ts.map +1 -1
  94. package/dist/doc-schemas/reserved-display-name.js +0 -5
  95. package/dist/doc-schemas/reserved-display-name.js.map +1 -1
  96. package/dist/doc-schemas/sport-game.d.ts.map +1 -1
  97. package/dist/doc-schemas/sport-game.js +1 -29
  98. package/dist/doc-schemas/sport-game.js.map +1 -1
  99. package/dist/doc-schemas/sport-league.d.ts +0 -9
  100. package/dist/doc-schemas/sport-league.d.ts.map +1 -1
  101. package/dist/doc-schemas/sport-league.js +4 -26
  102. package/dist/doc-schemas/sport-league.js.map +1 -1
  103. package/dist/doc-schemas/stats-operation.d.ts +22 -18
  104. package/dist/doc-schemas/stats-operation.d.ts.map +1 -1
  105. package/dist/doc-schemas/stats-operation.js +7 -44
  106. package/dist/doc-schemas/stats-operation.js.map +1 -1
  107. package/dist/doc-schemas/status-reconcile-queue.d.ts +0 -6
  108. package/dist/doc-schemas/status-reconcile-queue.d.ts.map +1 -1
  109. package/dist/doc-schemas/status-reconcile-queue.js +0 -13
  110. package/dist/doc-schemas/status-reconcile-queue.js.map +1 -1
  111. package/dist/doc-schemas/sweep-state.d.ts.map +1 -1
  112. package/dist/doc-schemas/sweep-state.js +4 -20
  113. package/dist/doc-schemas/sweep-state.js.map +1 -1
  114. package/dist/doc-schemas/system.d.ts.map +1 -1
  115. package/dist/doc-schemas/system.js +1 -27
  116. package/dist/doc-schemas/system.js.map +1 -1
  117. package/dist/doc-schemas/team-membership.d.ts.map +1 -1
  118. package/dist/doc-schemas/team-membership.js +0 -10
  119. package/dist/doc-schemas/team-membership.js.map +1 -1
  120. package/dist/doc-schemas/user-profile.d.ts +0 -1
  121. package/dist/doc-schemas/user-profile.d.ts.map +1 -1
  122. package/dist/doc-schemas/user-profile.js +0 -28
  123. package/dist/doc-schemas/user-profile.js.map +1 -1
  124. package/dist/doc-schemas/waiver-template.d.ts.map +1 -1
  125. package/dist/doc-schemas/waiver-template.js +4 -25
  126. package/dist/doc-schemas/waiver-template.js.map +1 -1
  127. package/dist/doc-schemas/waivers-and-hardware.d.ts.map +1 -1
  128. package/dist/doc-schemas/waivers-and-hardware.js +0 -20
  129. package/dist/doc-schemas/waivers-and-hardware.js.map +1 -1
  130. package/dist/domain-events/domain-events.d.ts.map +1 -1
  131. package/dist/domain-events/domain-events.js +0 -67
  132. package/dist/domain-events/domain-events.js.map +1 -1
  133. package/dist/ids/award-grant-ids.d.ts.map +1 -1
  134. package/dist/ids/award-grant-ids.js +0 -7
  135. package/dist/ids/award-grant-ids.js.map +1 -1
  136. package/dist/ids/compound-ids.d.ts.map +1 -1
  137. package/dist/ids/compound-ids.js +0 -7
  138. package/dist/ids/compound-ids.js.map +1 -1
  139. package/dist/ids/minted-ids.d.ts.map +1 -1
  140. package/dist/ids/minted-ids.js +4 -14
  141. package/dist/ids/minted-ids.js.map +1 -1
  142. package/dist/ids/notification-ids.d.ts.map +1 -1
  143. package/dist/ids/notification-ids.js +0 -15
  144. package/dist/ids/notification-ids.js.map +1 -1
  145. package/dist/ids/picture-ids.d.ts +0 -5
  146. package/dist/ids/picture-ids.d.ts.map +1 -1
  147. package/dist/ids/picture-ids.js +0 -11
  148. package/dist/ids/picture-ids.js.map +1 -1
  149. package/dist/ids/stat-event-ids.d.ts +0 -6
  150. package/dist/ids/stat-event-ids.d.ts.map +1 -1
  151. package/dist/ids/stat-event-ids.js +0 -15
  152. package/dist/ids/stat-event-ids.js.map +1 -1
  153. package/dist/ids/stats-operation-ids.d.ts.map +1 -1
  154. package/dist/ids/stats-operation-ids.js +0 -7
  155. package/dist/ids/stats-operation-ids.js.map +1 -1
  156. package/dist/ids/waiver-template-ids.d.ts +0 -1
  157. package/dist/ids/waiver-template-ids.d.ts.map +1 -1
  158. package/dist/ids/waiver-template-ids.js +0 -2
  159. package/dist/ids/waiver-template-ids.js.map +1 -1
  160. package/dist/index.d.ts +2 -0
  161. package/dist/index.d.ts.map +1 -1
  162. package/dist/index.js +2 -2
  163. package/dist/index.js.map +1 -1
  164. package/dist/input-formats/input-formats.d.ts +0 -80
  165. package/dist/input-formats/input-formats.d.ts.map +1 -1
  166. package/dist/input-formats/input-formats.js +0 -86
  167. package/dist/input-formats/input-formats.js.map +1 -1
  168. package/dist/media/file-origins.d.ts +0 -3
  169. package/dist/media/file-origins.d.ts.map +1 -1
  170. package/dist/media/file-origins.js +0 -26
  171. package/dist/media/file-origins.js.map +1 -1
  172. package/dist/media/picture-aspects.d.ts +0 -2
  173. package/dist/media/picture-aspects.d.ts.map +1 -1
  174. package/dist/media/picture-aspects.js +0 -5
  175. package/dist/media/picture-aspects.js.map +1 -1
  176. package/dist/media/picture-url.d.ts +0 -6
  177. package/dist/media/picture-url.d.ts.map +1 -1
  178. package/dist/media/picture-url.js +0 -9
  179. package/dist/media/picture-url.js.map +1 -1
  180. package/dist/media/upload-tray-display.d.ts +0 -3
  181. package/dist/media/upload-tray-display.d.ts.map +1 -1
  182. package/dist/media/upload-tray-display.js +0 -6
  183. package/dist/media/upload-tray-display.js.map +1 -1
  184. package/dist/migration-console/action-ids.d.ts +4 -1
  185. package/dist/migration-console/action-ids.d.ts.map +1 -1
  186. package/dist/migration-console/action-ids.js +8 -45
  187. package/dist/migration-console/action-ids.js.map +1 -1
  188. package/dist/migration-console/console-lock.d.ts +10 -0
  189. package/dist/migration-console/console-lock.d.ts.map +1 -0
  190. package/dist/migration-console/console-lock.js +14 -0
  191. package/dist/migration-console/console-lock.js.map +1 -0
  192. package/dist/migration-console/consumed-source.d.ts +4 -0
  193. package/dist/migration-console/consumed-source.d.ts.map +1 -0
  194. package/dist/migration-console/consumed-source.js +10 -0
  195. package/dist/migration-console/consumed-source.js.map +1 -0
  196. package/dist/migration-console/manifest.d.ts +2 -24
  197. package/dist/migration-console/manifest.d.ts.map +1 -1
  198. package/dist/migration-console/manifest.js +174 -61
  199. package/dist/migration-console/manifest.js.map +1 -1
  200. package/dist/migration-console/run-state.d.ts +2 -14
  201. package/dist/migration-console/run-state.d.ts.map +1 -1
  202. package/dist/migration-console/run-state.js +3 -16
  203. package/dist/migration-console/run-state.js.map +1 -1
  204. package/dist/notifications/admin-notification-config.d.ts +0 -11
  205. package/dist/notifications/admin-notification-config.d.ts.map +1 -1
  206. package/dist/notifications/admin-notification-config.js +2 -13
  207. package/dist/notifications/admin-notification-config.js.map +1 -1
  208. package/dist/notifications/archive-all.d.ts.map +1 -1
  209. package/dist/notifications/archive-all.js +0 -2
  210. package/dist/notifications/archive-all.js.map +1 -1
  211. package/dist/notifications/occurrences.d.ts +0 -3
  212. package/dist/notifications/occurrences.d.ts.map +1 -1
  213. package/dist/notifications/occurrences.js +0 -7
  214. package/dist/notifications/occurrences.js.map +1 -1
  215. package/dist/paths/app-routes.d.ts +0 -12
  216. package/dist/paths/app-routes.d.ts.map +1 -1
  217. package/dist/paths/app-routes.js +0 -18
  218. package/dist/paths/app-routes.js.map +1 -1
  219. package/dist/paths/collection-groups.d.ts.map +1 -1
  220. package/dist/paths/collection-groups.js +0 -5
  221. package/dist/paths/collection-groups.js.map +1 -1
  222. package/dist/paths/collection-refs.d.ts.map +1 -1
  223. package/dist/paths/collection-refs.js +0 -4
  224. package/dist/paths/collection-refs.js.map +1 -1
  225. package/dist/paths/collections.d.ts +0 -5
  226. package/dist/paths/collections.d.ts.map +1 -1
  227. package/dist/paths/collections.js +0 -68
  228. package/dist/paths/collections.js.map +1 -1
  229. package/dist/paths/path-builders.d.ts.map +1 -1
  230. package/dist/paths/path-builders.js +0 -16
  231. package/dist/paths/path-builders.js.map +1 -1
  232. package/dist/paths/picture-owner-paths.d.ts +0 -4
  233. package/dist/paths/picture-owner-paths.d.ts.map +1 -1
  234. package/dist/paths/picture-owner-paths.js +2 -11
  235. package/dist/paths/picture-owner-paths.js.map +1 -1
  236. package/dist/paths/storage-paths.d.ts +0 -18
  237. package/dist/paths/storage-paths.d.ts.map +1 -1
  238. package/dist/paths/storage-paths.js +0 -23
  239. package/dist/paths/storage-paths.js.map +1 -1
  240. package/dist/paths/utils.d.ts +0 -6
  241. package/dist/paths/utils.d.ts.map +1 -1
  242. package/dist/paths/utils.js +0 -9
  243. package/dist/paths/utils.js.map +1 -1
  244. package/dist/schemas/account-settings.d.ts.map +1 -1
  245. package/dist/schemas/account-settings.js +0 -7
  246. package/dist/schemas/account-settings.js.map +1 -1
  247. package/dist/schemas/admin-notifications.d.ts.map +1 -1
  248. package/dist/schemas/admin-notifications.js +0 -17
  249. package/dist/schemas/admin-notifications.js.map +1 -1
  250. package/dist/schemas/admin-stats.d.ts.map +1 -1
  251. package/dist/schemas/admin-stats.js +0 -9
  252. package/dist/schemas/admin-stats.js.map +1 -1
  253. package/dist/schemas/app-config.d.ts.map +1 -1
  254. package/dist/schemas/app-config.js +0 -10
  255. package/dist/schemas/app-config.js.map +1 -1
  256. package/dist/schemas/atoms.d.ts.map +1 -1
  257. package/dist/schemas/atoms.js +0 -10
  258. package/dist/schemas/atoms.js.map +1 -1
  259. package/dist/schemas/awards.d.ts +3 -3
  260. package/dist/schemas/awards.d.ts.map +1 -1
  261. package/dist/schemas/awards.js +0 -29
  262. package/dist/schemas/awards.js.map +1 -1
  263. package/dist/schemas/dead-letters.d.ts +0 -3
  264. package/dist/schemas/dead-letters.d.ts.map +1 -1
  265. package/dist/schemas/dead-letters.js +0 -15
  266. package/dist/schemas/dead-letters.js.map +1 -1
  267. package/dist/schemas/game-locations.d.ts.map +1 -1
  268. package/dist/schemas/game-locations.js +0 -6
  269. package/dist/schemas/game-locations.js.map +1 -1
  270. package/dist/schemas/hardware-loan-contracts.d.ts.map +1 -1
  271. package/dist/schemas/hardware-loan-contracts.js +0 -13
  272. package/dist/schemas/hardware-loan-contracts.js.map +1 -1
  273. package/dist/schemas/index.d.ts.map +1 -1
  274. package/dist/schemas/index.js +0 -2
  275. package/dist/schemas/index.js.map +1 -1
  276. package/dist/schemas/leagues.d.ts.map +1 -1
  277. package/dist/schemas/leagues.js +0 -24
  278. package/dist/schemas/leagues.js.map +1 -1
  279. package/dist/schemas/migration-console.d.ts +58 -15
  280. package/dist/schemas/migration-console.d.ts.map +1 -1
  281. package/dist/schemas/migration-console.js +4 -34
  282. package/dist/schemas/migration-console.js.map +1 -1
  283. package/dist/schemas/pictures.d.ts.map +1 -1
  284. package/dist/schemas/pictures.js +0 -10
  285. package/dist/schemas/pictures.js.map +1 -1
  286. package/dist/schemas/schedules.d.ts.map +1 -1
  287. package/dist/schemas/schedules.js +0 -26
  288. package/dist/schemas/schedules.js.map +1 -1
  289. package/dist/schemas/scoring.d.ts +20 -26
  290. package/dist/schemas/scoring.d.ts.map +1 -1
  291. package/dist/schemas/scoring.js +0 -33
  292. package/dist/schemas/scoring.js.map +1 -1
  293. package/dist/schemas/signed-waivers.d.ts.map +1 -1
  294. package/dist/schemas/signed-waivers.js +0 -22
  295. package/dist/schemas/signed-waivers.js.map +1 -1
  296. package/dist/schemas/stats.d.ts +12 -0
  297. package/dist/schemas/stats.d.ts.map +1 -1
  298. package/dist/schemas/stats.js +21 -61
  299. package/dist/schemas/stats.js.map +1 -1
  300. package/dist/schemas/team-joining.d.ts.map +1 -1
  301. package/dist/schemas/team-joining.js +0 -30
  302. package/dist/schemas/team-joining.js.map +1 -1
  303. package/dist/schemas/teams.d.ts +0 -1
  304. package/dist/schemas/teams.d.ts.map +1 -1
  305. package/dist/schemas/teams.js +0 -83
  306. package/dist/schemas/teams.js.map +1 -1
  307. package/dist/schemas/uploads.d.ts +0 -8
  308. package/dist/schemas/uploads.d.ts.map +1 -1
  309. package/dist/schemas/uploads.js +0 -29
  310. package/dist/schemas/uploads.js.map +1 -1
  311. package/dist/schemas/users.d.ts +0 -1
  312. package/dist/schemas/users.d.ts.map +1 -1
  313. package/dist/schemas/users.js +0 -41
  314. package/dist/schemas/users.js.map +1 -1
  315. package/dist/schemas/waiver-templates.d.ts.map +1 -1
  316. package/dist/schemas/waiver-templates.js +0 -7
  317. package/dist/schemas/waiver-templates.js.map +1 -1
  318. package/dist/sports/basketball-scoring.d.ts +0 -4
  319. package/dist/sports/basketball-scoring.d.ts.map +1 -1
  320. package/dist/sports/basketball-scoring.js +0 -34
  321. package/dist/sports/basketball-scoring.js.map +1 -1
  322. package/dist/sports/basketball.d.ts.map +1 -1
  323. package/dist/sports/basketball.js +0 -5
  324. package/dist/sports/basketball.js.map +1 -1
  325. package/dist/sports/bulk-entry.d.ts +0 -22
  326. package/dist/sports/bulk-entry.d.ts.map +1 -1
  327. package/dist/sports/bulk-entry.js +0 -10
  328. package/dist/sports/bulk-entry.js.map +1 -1
  329. package/dist/sports/column-catalog.d.ts +0 -17
  330. package/dist/sports/column-catalog.d.ts.map +1 -1
  331. package/dist/sports/column-catalog.js +0 -10
  332. package/dist/sports/column-catalog.js.map +1 -1
  333. package/dist/sports/contribution.d.ts +2 -59
  334. package/dist/sports/contribution.d.ts.map +1 -1
  335. package/dist/sports/contribution.js +2 -45
  336. package/dist/sports/contribution.js.map +1 -1
  337. package/dist/sports/curling-scoring.d.ts +0 -1
  338. package/dist/sports/curling-scoring.d.ts.map +1 -1
  339. package/dist/sports/curling-scoring.js +0 -27
  340. package/dist/sports/curling-scoring.js.map +1 -1
  341. package/dist/sports/curling.d.ts.map +1 -1
  342. package/dist/sports/curling.js +0 -4
  343. package/dist/sports/curling.js.map +1 -1
  344. package/dist/sports/finalized-record.d.ts +2 -19
  345. package/dist/sports/finalized-record.d.ts.map +1 -1
  346. package/dist/sports/finalized-record.js +21 -22
  347. package/dist/sports/finalized-record.js.map +1 -1
  348. package/dist/sports/football-scoring.d.ts.map +1 -1
  349. package/dist/sports/football-scoring.js +0 -21
  350. package/dist/sports/football-scoring.js.map +1 -1
  351. package/dist/sports/football.d.ts.map +1 -1
  352. package/dist/sports/football.js +0 -4
  353. package/dist/sports/football.js.map +1 -1
  354. package/dist/sports/index.d.ts.map +1 -1
  355. package/dist/sports/index.js +0 -2
  356. package/dist/sports/index.js.map +1 -1
  357. package/dist/sports/ledger-continuity.d.ts +0 -2
  358. package/dist/sports/ledger-continuity.d.ts.map +1 -1
  359. package/dist/sports/ledger-continuity.js +0 -5
  360. package/dist/sports/ledger-continuity.js.map +1 -1
  361. package/dist/sports/lifetime-summary.d.ts +0 -6
  362. package/dist/sports/lifetime-summary.d.ts.map +1 -1
  363. package/dist/sports/lifetime-summary.js +0 -7
  364. package/dist/sports/lifetime-summary.js.map +1 -1
  365. package/dist/sports/rankings.d.ts +0 -12
  366. package/dist/sports/rankings.d.ts.map +1 -1
  367. package/dist/sports/rankings.js +0 -15
  368. package/dist/sports/rankings.js.map +1 -1
  369. package/dist/sports/registry.d.ts +0 -10
  370. package/dist/sports/registry.d.ts.map +1 -1
  371. package/dist/sports/registry.js +0 -9
  372. package/dist/sports/registry.js.map +1 -1
  373. package/dist/sports/replay.d.ts +0 -11
  374. package/dist/sports/replay.d.ts.map +1 -1
  375. package/dist/sports/replay.js +0 -16
  376. package/dist/sports/replay.js.map +1 -1
  377. package/dist/sports/rollup-check.d.ts +0 -7
  378. package/dist/sports/rollup-check.d.ts.map +1 -1
  379. package/dist/sports/rollup-check.js +0 -14
  380. package/dist/sports/rollup-check.js.map +1 -1
  381. package/dist/sports/score-mirror.d.ts +0 -1
  382. package/dist/sports/score-mirror.d.ts.map +1 -1
  383. package/dist/sports/score-mirror.js +0 -4
  384. package/dist/sports/score-mirror.js.map +1 -1
  385. package/dist/sports/scoring-display.d.ts +0 -30
  386. package/dist/sports/scoring-display.d.ts.map +1 -1
  387. package/dist/sports/scoring-display.js +0 -9
  388. package/dist/sports/scoring-display.js.map +1 -1
  389. package/dist/sports/scoring.d.ts +0 -36
  390. package/dist/sports/scoring.d.ts.map +1 -1
  391. package/dist/sports/scoring.js +0 -10
  392. package/dist/sports/scoring.js.map +1 -1
  393. package/dist/sports/shared-columns.d.ts +0 -1
  394. package/dist/sports/shared-columns.d.ts.map +1 -1
  395. package/dist/sports/shared-columns.js +0 -7
  396. package/dist/sports/shared-columns.js.map +1 -1
  397. package/dist/sports/sport-adapter.d.ts +0 -32
  398. package/dist/sports/sport-adapter.d.ts.map +1 -1
  399. package/dist/sports/sport-adapter.js +0 -7
  400. package/dist/sports/sport-adapter.js.map +1 -1
  401. package/dist/sports/store-driver.d.ts +0 -28
  402. package/dist/sports/store-driver.d.ts.map +1 -1
  403. package/dist/sports/store-driver.js +0 -38
  404. package/dist/sports/store-driver.js.map +1 -1
  405. package/dist/types/audit.d.ts +1 -1
  406. package/dist/types/audit.d.ts.map +1 -1
  407. package/dist/types/audit.js +1 -67
  408. package/dist/types/audit.js.map +1 -1
  409. package/dist/types/claims.d.ts +0 -10
  410. package/dist/types/claims.d.ts.map +1 -1
  411. package/dist/types/claims.js +0 -16
  412. package/dist/types/claims.js.map +1 -1
  413. package/dist/types/notifications.d.ts.map +1 -1
  414. package/dist/types/notifications.js +7 -25
  415. package/dist/types/notifications.js.map +1 -1
  416. package/dist/types/picture-owners.d.ts +0 -1
  417. package/dist/types/picture-owners.d.ts.map +1 -1
  418. package/dist/types/picture-owners.js +0 -6
  419. package/dist/types/picture-owners.js.map +1 -1
  420. package/dist/types/schedules.d.ts.map +1 -1
  421. package/dist/types/schedules.js +0 -9
  422. package/dist/types/schedules.js.map +1 -1
  423. package/dist/types/sports.d.ts.map +1 -1
  424. package/dist/types/sports.js +0 -24
  425. package/dist/types/sports.js.map +1 -1
  426. package/dist/types/stats.d.ts.map +1 -1
  427. package/dist/types/stats.js +0 -65
  428. package/dist/types/stats.js.map +1 -1
  429. package/dist/types/unions.d.ts +0 -2
  430. package/dist/types/unions.d.ts.map +1 -1
  431. package/dist/types/unions.js +3 -91
  432. package/dist/types/unions.js.map +1 -1
  433. package/dist/types/uploads.d.ts.map +1 -1
  434. package/dist/types/uploads.js +0 -7
  435. package/dist/types/uploads.js.map +1 -1
  436. package/dist/upload-variables/on-progress.d.ts.map +1 -1
  437. package/dist/upload-variables/on-progress.js +2 -5
  438. package/dist/upload-variables/on-progress.js.map +1 -1
  439. package/dist/upload-variables/picture-upload-variables.d.ts +0 -1
  440. package/dist/upload-variables/picture-upload-variables.d.ts.map +1 -1
  441. package/dist/upload-variables/picture-upload-variables.js +0 -4
  442. package/dist/upload-variables/picture-upload-variables.js.map +1 -1
  443. package/dist/upload-variables/sign-hardware-contract-variables.d.ts.map +1 -1
  444. package/dist/upload-variables/sign-hardware-contract-variables.js +0 -2
  445. package/dist/upload-variables/sign-hardware-contract-variables.js.map +1 -1
  446. package/dist/upload-variables/sign-waiver-variables.d.ts.map +1 -1
  447. package/dist/upload-variables/sign-waiver-variables.js +0 -4
  448. package/dist/upload-variables/sign-waiver-variables.js.map +1 -1
  449. package/dist/utils/account-status.d.ts.map +1 -1
  450. package/dist/utils/account-status.js +0 -4
  451. package/dist/utils/account-status.js.map +1 -1
  452. package/dist/utils/app-config.d.ts +0 -53
  453. package/dist/utils/app-config.d.ts.map +1 -1
  454. package/dist/utils/app-config.js +0 -62
  455. package/dist/utils/app-config.js.map +1 -1
  456. package/dist/utils/display-name.d.ts +0 -7
  457. package/dist/utils/display-name.d.ts.map +1 -1
  458. package/dist/utils/display-name.js +0 -8
  459. package/dist/utils/display-name.js.map +1 -1
  460. package/dist/utils/index.d.ts +1 -0
  461. package/dist/utils/index.d.ts.map +1 -1
  462. package/dist/utils/index.js +1 -0
  463. package/dist/utils/index.js.map +1 -1
  464. package/dist/utils/league-calendar.d.ts +0 -11
  465. package/dist/utils/league-calendar.d.ts.map +1 -1
  466. package/dist/utils/league-calendar.js +7 -19
  467. package/dist/utils/league-calendar.js.map +1 -1
  468. package/dist/utils/league-join-warning.d.ts +0 -11
  469. package/dist/utils/league-join-warning.d.ts.map +1 -1
  470. package/dist/utils/league-join-warning.js +0 -28
  471. package/dist/utils/league-join-warning.js.map +1 -1
  472. package/dist/utils/league-joining.d.ts +0 -1
  473. package/dist/utils/league-joining.d.ts.map +1 -1
  474. package/dist/utils/league-joining.js +0 -7
  475. package/dist/utils/league-joining.js.map +1 -1
  476. package/dist/utils/league-mode.d.ts +0 -1
  477. package/dist/utils/league-mode.d.ts.map +1 -1
  478. package/dist/utils/league-mode.js +0 -4
  479. package/dist/utils/league-mode.js.map +1 -1
  480. package/dist/utils/schedules.d.ts +0 -15
  481. package/dist/utils/schedules.d.ts.map +1 -1
  482. package/dist/utils/schedules.js +0 -19
  483. package/dist/utils/schedules.js.map +1 -1
  484. package/dist/utils/stats-operation-request.d.ts +20 -0
  485. package/dist/utils/stats-operation-request.d.ts.map +1 -0
  486. package/dist/utils/stats-operation-request.js +10 -0
  487. package/dist/utils/stats-operation-request.js.map +1 -0
  488. package/dist/utils/team-creation.d.ts +0 -2
  489. package/dist/utils/team-creation.d.ts.map +1 -1
  490. package/dist/utils/team-creation.js +0 -6
  491. package/dist/utils/team-creation.js.map +1 -1
  492. package/dist/utils/team-member-actions.d.ts +0 -6
  493. package/dist/utils/team-member-actions.d.ts.map +1 -1
  494. package/dist/utils/team-member-actions.js +0 -12
  495. package/dist/utils/team-member-actions.js.map +1 -1
  496. package/package.json +2 -1
@@ -1 +1 @@
1
- {"version":3,"file":"picture-owners.js","sourceRoot":"","sources":["../../src/types/picture-owners.ts"],"names":[],"mappings":"AAAA,sGAAsG;AACtG,iGAAiG;AACjG,iGAAiG;AAEjG,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,aAAa;IACb,YAAY;IACZ,aAAa;IACb,cAAc;IACd,iBAAiB;CACT,CAAC;AAGX,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,aAAa;IACb,YAAY;IACZ,aAAa;CACiC,CAAC;AAIjD,mEAAmE;AACnE,MAAM,CAAC,MAAM,2BAA2B,GAAG,iBAAqD,CAAC;AAEjG,6DAA6D;AAC7D,MAAM,CAAC,MAAM,8BAA8B,GAAG,YAAgD,CAAC;AAE/F,6EAA6E;AAC7E,MAAM,UAAU,kBAAkB,CAAC,IAAsB;IACvD,OAAQ,uBAAuD,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AACjF,CAAC","sourcesContent":["// Which document owns a picture (RULE-STD-ARCH-102). An upload's target, its indexes, and a picture's\n// removal take the full union; a gallery picture document takes the gallery subset, because only\n// those three owners hold a gallery — a location and an award hold one picture in a single slot.\n\nexport const PICTURE_OWNER_KIND_KEYS = [\n 'sportLeague',\n 'leagueTeam',\n 'landingPage',\n 'gameLocation',\n 'awardDefinition',\n] as const;\nexport type PictureOwnerKind = (typeof PICTURE_OWNER_KIND_KEYS)[number];\n\nexport const GALLERY_OWNER_KIND_KEYS = [\n 'sportLeague',\n 'leagueTeam',\n 'landingPage',\n] as const satisfies readonly PictureOwnerKind[];\nexport type GalleryOwnerKind = (typeof GALLERY_OWNER_KIND_KEYS)[number];\nexport type PictureSlotOwnerKind = Exclude<PictureOwnerKind, GalleryOwnerKind>;\n\n// An award's badge slot, which the award catalog's own core fills.\nexport const AWARD_DEFINITION_OWNER_KIND = 'awardDefinition' as const satisfies PictureOwnerKind;\n\n// A team's gallery, which the team's deletion retires whole.\nexport const LEAGUE_TEAM_GALLERY_OWNER_KIND = 'leagueTeam' as const satisfies GalleryOwnerKind;\n\n/** Whether an owner holds a gallery, as opposed to a single picture slot. */\nexport function isGalleryOwnerKind(kind: PictureOwnerKind): kind is GalleryOwnerKind {\n return (GALLERY_OWNER_KIND_KEYS as readonly PictureOwnerKind[]).includes(kind);\n}\n"]}
1
+ {"version":3,"file":"picture-owners.js","sourceRoot":"","sources":["../../src/types/picture-owners.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,aAAa;IACb,YAAY;IACZ,aAAa;IACb,cAAc;IACd,iBAAiB;CACT,CAAC;AAGX,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,aAAa;IACb,YAAY;IACZ,aAAa;CACiC,CAAC;AAIjD,MAAM,CAAC,MAAM,2BAA2B,GAAG,iBAAqD,CAAC;AAEjG,MAAM,CAAC,MAAM,8BAA8B,GAAG,YAAgD,CAAC;AAE/F,MAAM,UAAU,kBAAkB,CAAC,IAAsB;IACvD,OAAQ,uBAAuD,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AACjF,CAAC","sourcesContent":["export const PICTURE_OWNER_KIND_KEYS = [\n 'sportLeague',\n 'leagueTeam',\n 'landingPage',\n 'gameLocation',\n 'awardDefinition',\n] as const;\nexport type PictureOwnerKind = (typeof PICTURE_OWNER_KIND_KEYS)[number];\n\nexport const GALLERY_OWNER_KIND_KEYS = [\n 'sportLeague',\n 'leagueTeam',\n 'landingPage',\n] as const satisfies readonly PictureOwnerKind[];\nexport type GalleryOwnerKind = (typeof GALLERY_OWNER_KIND_KEYS)[number];\nexport type PictureSlotOwnerKind = Exclude<PictureOwnerKind, GalleryOwnerKind>;\n\nexport const AWARD_DEFINITION_OWNER_KIND = 'awardDefinition' as const satisfies PictureOwnerKind;\n\nexport const LEAGUE_TEAM_GALLERY_OWNER_KIND = 'leagueTeam' as const satisfies GalleryOwnerKind;\n\nexport function isGalleryOwnerKind(kind: PictureOwnerKind): kind is GalleryOwnerKind {\n return (GALLERY_OWNER_KIND_KEYS as readonly PictureOwnerKind[]).includes(kind);\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"schedules.d.ts","sourceRoot":"","sources":["../../src/types/schedules.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,2BAA2B,iDAAkD,CAAC;AAC3F,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC,MAAM,CAAC,CAAC;AAChF,eAAO,MAAM,wBAAwB,kBAA2D,CAAC;AACjG,eAAO,MAAM,2BAA2B,oBACoB,CAAC;AAI7D,eAAO,MAAM,8BAA8B,mCAAoC,CAAC;AAChF,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,8BAA8B,CAAC,CAAC,MAAM,CAAC,CAAC;AAGrF,eAAO,MAAM,8BAA8B,6FAOjC,CAAC;AACX,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,8BAA8B,CAAC,CAAC,MAAM,CAAC,CAAC;AAGrF,eAAO,MAAM,wBAAwB,yDAA0D,CAAC;AAChG,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC;AAI1E,eAAO,MAAM,4BAA4B,gHAM/B,CAAC;AACX,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,4BAA4B,CAAC,CAAC,MAAM,CAAC,CAAC"}
1
+ {"version":3,"file":"schedules.d.ts","sourceRoot":"","sources":["../../src/types/schedules.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B,iDAAkD,CAAC;AAC3F,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC,MAAM,CAAC,CAAC;AAChF,eAAO,MAAM,wBAAwB,kBAA2D,CAAC;AACjG,eAAO,MAAM,2BAA2B,oBACoB,CAAC;AAE7D,eAAO,MAAM,8BAA8B,mCAAoC,CAAC;AAChF,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,8BAA8B,CAAC,CAAC,MAAM,CAAC,CAAC;AAErF,eAAO,MAAM,8BAA8B,6FAOjC,CAAC;AACX,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,8BAA8B,CAAC,CAAC,MAAM,CAAC,CAAC;AAErF,eAAO,MAAM,wBAAwB,yDAA0D,CAAC;AAChG,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1E,eAAO,MAAM,4BAA4B,gHAM/B,CAAC;AACX,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,4BAA4B,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -1,13 +1,7 @@
1
- // Canonical unions of a league's schedule: its weeks and the games in them (RULE-STD-ARCH-102).
2
- // The two kinds of scheduling conflict the week form warns about, never blocks on: two games at one
3
- // venue court at one start time, and one team booked into two games at one start time.
4
1
  export const SCHEDULE_CONFLICT_KIND_KEYS = ['sharedLocation', 'teamDoubleBooked'];
5
2
  export const SHARED_LOCATION_CONFLICT = 'sharedLocation';
6
3
  export const TEAM_DOUBLE_BOOKED_CONFLICT = 'teamDoubleBooked';
7
- // What a game's deletion was part of: the game alone, its whole week, or its team's deletion. The
8
- // deletion's audit event records it.
9
4
  export const SPORT_GAME_DELETION_SCOPE_KEYS = ['game', 'week', 'team'];
10
- // A game's schedule fields an admin edits, in the order the edit's result and audit event list them.
11
5
  export const SPORT_GAME_SCHEDULE_FIELD_KEYS = [
12
6
  'weekId',
13
7
  'teams',
@@ -16,10 +10,7 @@ export const SPORT_GAME_SCHEDULE_FIELD_KEYS = [
16
10
  'subLocation',
17
11
  'locationLabel',
18
12
  ];
19
- // The fields a week carries on every one of its games, which the week edit rewrites together.
20
13
  export const SCHEDULE_WEEK_FIELD_KEYS = ['weekTitle', 'weekStartDate', 'weekLocation'];
21
- // Why the schedule callables refused, carried in the refusal's details so the admin screen can mark
22
- // the games it names.
23
14
  export const SCHEDULE_REFUSAL_REASON_KEYS = [
24
15
  'gameCompleted',
25
16
  'gameHeld',
@@ -1 +1 @@
1
- {"version":3,"file":"schedules.js","sourceRoot":"","sources":["../../src/types/schedules.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAEhG,oGAAoG;AACpG,uFAAuF;AACvF,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,gBAAgB,EAAE,kBAAkB,CAAU,CAAC;AAE3F,MAAM,CAAC,MAAM,wBAAwB,GAAG,gBAAwD,CAAC;AACjG,MAAM,CAAC,MAAM,2BAA2B,GACtC,kBAA0D,CAAC;AAE7D,kGAAkG;AAClG,qCAAqC;AACrC,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAU,CAAC;AAGhF,qGAAqG;AACrG,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,QAAQ;IACR,OAAO;IACP,WAAW;IACX,gBAAgB;IAChB,aAAa;IACb,eAAe;CACP,CAAC;AAGX,8FAA8F;AAC9F,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,WAAW,EAAE,eAAe,EAAE,cAAc,CAAU,CAAC;AAGhG,oGAAoG;AACpG,sBAAsB;AACtB,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,eAAe;IACf,UAAU;IACV,uBAAuB;IACvB,sBAAsB;IACtB,qBAAqB;CACb,CAAC","sourcesContent":["// Canonical unions of a league's schedule: its weeks and the games in them (RULE-STD-ARCH-102).\n\n// The two kinds of scheduling conflict the week form warns about, never blocks on: two games at one\n// venue court at one start time, and one team booked into two games at one start time.\nexport const SCHEDULE_CONFLICT_KIND_KEYS = ['sharedLocation', 'teamDoubleBooked'] as const;\nexport type ScheduleConflictKind = (typeof SCHEDULE_CONFLICT_KIND_KEYS)[number];\nexport const SHARED_LOCATION_CONFLICT = 'sharedLocation' as const satisfies ScheduleConflictKind;\nexport const TEAM_DOUBLE_BOOKED_CONFLICT =\n 'teamDoubleBooked' as const satisfies ScheduleConflictKind;\n\n// What a game's deletion was part of: the game alone, its whole week, or its team's deletion. The\n// deletion's audit event records it.\nexport const SPORT_GAME_DELETION_SCOPE_KEYS = ['game', 'week', 'team'] as const;\nexport type SportGameDeletionScope = (typeof SPORT_GAME_DELETION_SCOPE_KEYS)[number];\n\n// A game's schedule fields an admin edits, in the order the edit's result and audit event list them.\nexport const SPORT_GAME_SCHEDULE_FIELD_KEYS = [\n 'weekId',\n 'teams',\n 'startTime',\n 'gameLocationId',\n 'subLocation',\n 'locationLabel',\n] as const;\nexport type SportGameScheduleField = (typeof SPORT_GAME_SCHEDULE_FIELD_KEYS)[number];\n\n// The fields a week carries on every one of its games, which the week edit rewrites together.\nexport const SCHEDULE_WEEK_FIELD_KEYS = ['weekTitle', 'weekStartDate', 'weekLocation'] as const;\nexport type ScheduleWeekField = (typeof SCHEDULE_WEEK_FIELD_KEYS)[number];\n\n// Why the schedule callables refused, carried in the refusal's details so the admin screen can mark\n// the games it names.\nexport const SCHEDULE_REFUSAL_REASON_KEYS = [\n 'gameCompleted',\n 'gameHeld',\n 'weekHasCompletedGames',\n 'teamHasRecordedStats',\n 'gameHasRecordedPlay',\n] as const;\nexport type ScheduleRefusalReason = (typeof SCHEDULE_REFUSAL_REASON_KEYS)[number];\n"]}
1
+ {"version":3,"file":"schedules.js","sourceRoot":"","sources":["../../src/types/schedules.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,gBAAgB,EAAE,kBAAkB,CAAU,CAAC;AAE3F,MAAM,CAAC,MAAM,wBAAwB,GAAG,gBAAwD,CAAC;AACjG,MAAM,CAAC,MAAM,2BAA2B,GACtC,kBAA0D,CAAC;AAE7D,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAU,CAAC;AAGhF,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,QAAQ;IACR,OAAO;IACP,WAAW;IACX,gBAAgB;IAChB,aAAa;IACb,eAAe;CACP,CAAC;AAGX,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,WAAW,EAAE,eAAe,EAAE,cAAc,CAAU,CAAC;AAGhG,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,eAAe;IACf,UAAU;IACV,uBAAuB;IACvB,sBAAsB;IACtB,qBAAqB;CACb,CAAC","sourcesContent":["export const SCHEDULE_CONFLICT_KIND_KEYS = ['sharedLocation', 'teamDoubleBooked'] as const;\nexport type ScheduleConflictKind = (typeof SCHEDULE_CONFLICT_KIND_KEYS)[number];\nexport const SHARED_LOCATION_CONFLICT = 'sharedLocation' as const satisfies ScheduleConflictKind;\nexport const TEAM_DOUBLE_BOOKED_CONFLICT =\n 'teamDoubleBooked' as const satisfies ScheduleConflictKind;\n\nexport const SPORT_GAME_DELETION_SCOPE_KEYS = ['game', 'week', 'team'] as const;\nexport type SportGameDeletionScope = (typeof SPORT_GAME_DELETION_SCOPE_KEYS)[number];\n\nexport const SPORT_GAME_SCHEDULE_FIELD_KEYS = [\n 'weekId',\n 'teams',\n 'startTime',\n 'gameLocationId',\n 'subLocation',\n 'locationLabel',\n] as const;\nexport type SportGameScheduleField = (typeof SPORT_GAME_SCHEDULE_FIELD_KEYS)[number];\n\nexport const SCHEDULE_WEEK_FIELD_KEYS = ['weekTitle', 'weekStartDate', 'weekLocation'] as const;\nexport type ScheduleWeekField = (typeof SCHEDULE_WEEK_FIELD_KEYS)[number];\n\nexport const SCHEDULE_REFUSAL_REASON_KEYS = [\n 'gameCompleted',\n 'gameHeld',\n 'weekHasCompletedGames',\n 'teamHasRecordedStats',\n 'gameHasRecordedPlay',\n] as const;\nexport type ScheduleRefusalReason = (typeof SCHEDULE_REFUSAL_REASON_KEYS)[number];\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"sports.d.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MAAM,+BAA+B,cAAc,CAAC;AAE3D,eAAO,MAAM,+BAA+B,6EAKlC,CAAC;AACX,MAAM,MAAM,uBAAuB,GAAG,CAAC,OAAO,+BAA+B,CAAC,CAAC,MAAM,CAAC,CAAC;AAEvF,eAAO,MAAM,sBAAsB,oBAAyD,CAAC;AAC7F,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAC;AACzE,eAAO,MAAM,wBAAwB,aAAkD,CAAC;AAExF,eAAO,MAAM,8BAA8B,wBAAwB,CAAC;AACpE,eAAO,MAAM,8BAA8B,wBAAwB,CAAC;AACpE,eAAO,MAAM,4BAA4B,yDAG/B,CAAC;AACX,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,4BAA4B,CAAC,CAAC,MAAM,CAAC,CAAC;AAEjF,eAAO,MAAM,uBAAuB,oBAAyD,CAAC;AAC9F,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC;AAC3E,eAAO,MAAM,yBAAyB,aAAkD,CAAC;AAEzF,eAAO,MAAM,6BAA6B,iBAAiB,CAAC;AAC5D,eAAO,MAAM,6BAA6B,iBAAiB,CAAC;AAC5D,eAAO,MAAM,6BAA6B,iBAAiB,CAAC;AAC5D,eAAO,MAAM,8BAA8B,2DAIjC,CAAC;AACX,eAAO,MAAM,6BAA6B,uBAAuB,CAAC;AAClE,eAAO,MAAM,6BAA6B,iFAGhC,CAAC;AACX,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,6BAA6B,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -1,9 +1,3 @@
1
- // The canonical sport discriminator (RULE-QS-SPORT-902), and each sport's declared vocabulary (RULE-QS-SPORT-907).
2
- //
3
- // `leagueType` identifies a sport everywhere. The lowercase sport key is the storage key derived
4
- // from it — the `sportHallOfFame/{sportKey}` and `historicalStats/{sportKey}` document ids and the
5
- // `lifetimeStats.{sportKey}` field. Both directions of the mapping live here, never in an inline
6
- // conditional. What each sport DOES belongs to its sport adapter (RULE-QS-SPORT-903), not to this file.
7
1
  export const LEAGUE_TYPE_KEYS = ['Basketball', 'Curling', 'Football'];
8
2
  export const SPORT_KEYS = ['basketball', 'curling', 'football'];
9
3
  export const SPORT_KEY_BY_LEAGUE_TYPE = {
@@ -16,15 +10,8 @@ export const LEAGUE_TYPE_BY_SPORT_KEY = {
16
10
  curling: 'Curling',
17
11
  football: 'Football',
18
12
  };
19
- // The glyph a sport renders, named by its adapter's `display.iconKey`. The app's one sport-icon
20
- // component maps each key to a glyph, so no surface picks an icon by sport.
21
13
  export const SPORT_ICON_KEYS = ['basketballBall', 'curlingStone', 'footballBall'];
22
- // Every counter a stat line holds, across every sport. Each sport's team and player counters are a
23
- // subset; a derived field (basketball's `fantasyPoints`) is not a counter.
24
14
  export const STAT_COUNTER_KEYS = ['score', 'timeouts', 'points', 'rebounds', 'assists'];
25
- // ---------------------------------------------------------------------------------------------
26
- // Basketball — player-scored: a team's score is the sum of its players' points.
27
- // ---------------------------------------------------------------------------------------------
28
15
  export const BASKETBALL_TEAM_STAT_KEYS = [
29
16
  'score',
30
17
  'timeouts',
@@ -34,12 +21,10 @@ export const BASKETBALL_PLAYER_STAT_KEYS = [
34
21
  'rebounds',
35
22
  'assists',
36
23
  ];
37
- // A bulk edit names the player counter it moves.
38
24
  export const BASKETBALL_BULK_STAT_KEYS = BASKETBALL_PLAYER_STAT_KEYS;
39
25
  export const BASKETBALL_ONE_POINT_EVENT_TYPE = '1PT';
40
26
  export const BASKETBALL_TWO_POINT_EVENT_TYPE = '2PT';
41
27
  export const BASKETBALL_THREE_POINT_EVENT_TYPE = '3PT';
42
- // Only a two- or three-point shot may name the teammate who assisted it.
43
28
  export const BASKETBALL_ASSISTABLE_SHOT_EVENT_TYPE_KEYS = [
44
29
  BASKETBALL_TWO_POINT_EVENT_TYPE,
45
30
  BASKETBALL_THREE_POINT_EVENT_TYPE,
@@ -54,7 +39,6 @@ export const BASKETBALL_PLAYER_TALLY_EVENT_TYPE_KEYS = [
54
39
  BASKETBALL_REBOUND_EVENT_TYPE,
55
40
  BASKETBALL_ASSIST_EVENT_TYPE,
56
41
  ];
57
- // A timeout is the team's; it names no player.
58
42
  export const BASKETBALL_TIMEOUT_EVENT_TYPE = 'TIMEOUT';
59
43
  export const BASKETBALL_BULK_EDIT_EVENT_TYPE = 'BULK_EDIT';
60
44
  export const BASKETBALL_STAT_EVENT_TYPE_KEYS = [
@@ -63,24 +47,16 @@ export const BASKETBALL_STAT_EVENT_TYPE_KEYS = [
63
47
  BASKETBALL_TIMEOUT_EVENT_TYPE,
64
48
  BASKETBALL_BULK_EDIT_EVENT_TYPE,
65
49
  ];
66
- // ---------------------------------------------------------------------------------------------
67
- // Curling — team-scored by end; no player lines.
68
- // ---------------------------------------------------------------------------------------------
69
50
  export const CURLING_TEAM_STAT_KEYS = ['score'];
70
51
  export const CURLING_PLAYER_STAT_KEYS = [];
71
52
  export const CURLING_ROUND_SCORE_EVENT_TYPE = 'CURLING_ROUND_SCORE';
72
- // An end nobody scored; it names no team.
73
53
  export const CURLING_ROUND_BLANK_EVENT_TYPE = 'CURLING_ROUND_BLANK';
74
54
  export const CURLING_STAT_EVENT_TYPE_KEYS = [
75
55
  CURLING_ROUND_SCORE_EVENT_TYPE,
76
56
  CURLING_ROUND_BLANK_EVENT_TYPE,
77
57
  ];
78
- // ---------------------------------------------------------------------------------------------
79
- // Football — team-scored; no player lines.
80
- // ---------------------------------------------------------------------------------------------
81
58
  export const FOOTBALL_TEAM_STAT_KEYS = ['score'];
82
59
  export const FOOTBALL_PLAYER_STAT_KEYS = [];
83
- // Named by the points each adds: a +2 is a safety or a conversion, and the game records only points.
84
60
  export const FOOTBALL_SIX_POINT_EVENT_TYPE = 'FOOTBALL_6PT';
85
61
  export const FOOTBALL_TWO_POINT_EVENT_TYPE = 'FOOTBALL_2PT';
86
62
  export const FOOTBALL_ONE_POINT_EVENT_TYPE =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BAA6B,GAAG,cAAc,CAAC;AAC5D,MAAM,CAAC,MAAM,6BAA6B,GAAG,cAAc,CAAC;AAC5D,MAAM,CAAC,MAAM,6BAA6B,GAAG,cAAc,CAAC;AAC5D,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,6BAA6B;IAC7B,6BAA6B;IAC7B,6BAA6B;CACrB,CAAC;AACX,MAAM,CAAC,MAAM,6BAA6B,GAAG,oBAAoB,CAAC;AAClE,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,GAAG,8BAA8B;IACjC,6BAA6B;CACrB,CAAC","sourcesContent":["// The canonical sport discriminator (RULE-QS-SPORT-902), and each sport's declared vocabulary (RULE-QS-SPORT-907).\n//\n// `leagueType` identifies a sport everywhere. The lowercase sport key is the storage key derived\n// from it — the `sportHallOfFame/{sportKey}` and `historicalStats/{sportKey}` document ids and the\n// `lifetimeStats.{sportKey}` field. Both directions of the mapping live here, never in an inline\n// conditional. What each sport DOES belongs to its sport adapter (RULE-QS-SPORT-903), not to this file.\n\nexport const LEAGUE_TYPE_KEYS = ['Basketball', 'Curling', 'Football'] as const;\nexport type LeagueType = (typeof LEAGUE_TYPE_KEYS)[number];\n\nexport const SPORT_KEYS = ['basketball', 'curling', 'football'] as const;\nexport type SportKey = (typeof SPORT_KEYS)[number];\n\nexport const SPORT_KEY_BY_LEAGUE_TYPE = {\n Basketball: 'basketball',\n Curling: 'curling',\n Football: 'football',\n} as const satisfies Record<LeagueType, SportKey>;\n\nexport const LEAGUE_TYPE_BY_SPORT_KEY = {\n basketball: 'Basketball',\n curling: 'Curling',\n football: 'Football',\n} as const satisfies Record<SportKey, LeagueType>;\n\n// The glyph a sport renders, named by its adapter's `display.iconKey`. The app's one sport-icon\n// component maps each key to a glyph, so no surface picks an icon by sport.\nexport const SPORT_ICON_KEYS = ['basketballBall', 'curlingStone', 'footballBall'] as const;\nexport type SportIconKey = (typeof SPORT_ICON_KEYS)[number];\n\n// Every counter a stat line holds, across every sport. Each sport's team and player counters are a\n// subset; a derived field (basketball's `fantasyPoints`) is not a counter.\nexport const STAT_COUNTER_KEYS = ['score', 'timeouts', 'points', 'rebounds', 'assists'] as const;\nexport type StatCounterKey = (typeof STAT_COUNTER_KEYS)[number];\n\n// ---------------------------------------------------------------------------------------------\n// Basketball — player-scored: a team's score is the sum of its players' points.\n// ---------------------------------------------------------------------------------------------\n\nexport const BASKETBALL_TEAM_STAT_KEYS = [\n 'score',\n 'timeouts',\n] as const satisfies readonly StatCounterKey[];\nexport type BasketballTeamStatKey = (typeof BASKETBALL_TEAM_STAT_KEYS)[number];\n\nexport const BASKETBALL_PLAYER_STAT_KEYS = [\n 'points',\n 'rebounds',\n 'assists',\n] as const satisfies readonly StatCounterKey[];\nexport type BasketballPlayerStatKey = (typeof BASKETBALL_PLAYER_STAT_KEYS)[number];\n\n// A bulk edit names the player counter it moves.\nexport const BASKETBALL_BULK_STAT_KEYS = BASKETBALL_PLAYER_STAT_KEYS;\nexport type BasketballBulkStatKey = BasketballPlayerStatKey;\n\nexport const BASKETBALL_ONE_POINT_EVENT_TYPE = '1PT';\nexport const BASKETBALL_TWO_POINT_EVENT_TYPE = '2PT';\nexport const BASKETBALL_THREE_POINT_EVENT_TYPE = '3PT';\n// Only a two- or three-point shot may name the teammate who assisted it.\nexport const BASKETBALL_ASSISTABLE_SHOT_EVENT_TYPE_KEYS = [\n BASKETBALL_TWO_POINT_EVENT_TYPE,\n BASKETBALL_THREE_POINT_EVENT_TYPE,\n] as const;\nexport const BASKETBALL_SCORE_EVENT_TYPE_KEYS = [\n BASKETBALL_ONE_POINT_EVENT_TYPE,\n ...BASKETBALL_ASSISTABLE_SHOT_EVENT_TYPE_KEYS,\n] as const;\nexport const BASKETBALL_REBOUND_EVENT_TYPE = 'REBOUND';\nexport const BASKETBALL_ASSIST_EVENT_TYPE = 'ASSIST';\nexport const BASKETBALL_PLAYER_TALLY_EVENT_TYPE_KEYS = [\n BASKETBALL_REBOUND_EVENT_TYPE,\n BASKETBALL_ASSIST_EVENT_TYPE,\n] as const;\n// A timeout is the team's; it names no player.\nexport const BASKETBALL_TIMEOUT_EVENT_TYPE = 'TIMEOUT';\nexport const BASKETBALL_BULK_EDIT_EVENT_TYPE = 'BULK_EDIT';\n\nexport const BASKETBALL_STAT_EVENT_TYPE_KEYS = [\n ...BASKETBALL_SCORE_EVENT_TYPE_KEYS,\n ...BASKETBALL_PLAYER_TALLY_EVENT_TYPE_KEYS,\n BASKETBALL_TIMEOUT_EVENT_TYPE,\n BASKETBALL_BULK_EDIT_EVENT_TYPE,\n] as const;\nexport type BasketballStatEventType = (typeof BASKETBALL_STAT_EVENT_TYPE_KEYS)[number];\n\n// ---------------------------------------------------------------------------------------------\n// Curling — team-scored by end; no player lines.\n// ---------------------------------------------------------------------------------------------\n\nexport const CURLING_TEAM_STAT_KEYS = ['score'] as const satisfies readonly StatCounterKey[];\nexport type CurlingTeamStatKey = (typeof CURLING_TEAM_STAT_KEYS)[number];\nexport const CURLING_PLAYER_STAT_KEYS = [] as const satisfies readonly StatCounterKey[];\n\nexport const CURLING_ROUND_SCORE_EVENT_TYPE = 'CURLING_ROUND_SCORE';\n// An end nobody scored; it names no team.\nexport const CURLING_ROUND_BLANK_EVENT_TYPE = 'CURLING_ROUND_BLANK';\nexport const CURLING_STAT_EVENT_TYPE_KEYS = [\n CURLING_ROUND_SCORE_EVENT_TYPE,\n CURLING_ROUND_BLANK_EVENT_TYPE,\n] as const;\nexport type CurlingStatEventType = (typeof CURLING_STAT_EVENT_TYPE_KEYS)[number];\n\n// ---------------------------------------------------------------------------------------------\n// Football — team-scored; no player lines.\n// ---------------------------------------------------------------------------------------------\n\nexport const FOOTBALL_TEAM_STAT_KEYS = ['score'] as const satisfies readonly StatCounterKey[];\nexport type FootballTeamStatKey = (typeof FOOTBALL_TEAM_STAT_KEYS)[number];\nexport const FOOTBALL_PLAYER_STAT_KEYS = [] as const satisfies readonly StatCounterKey[];\n\n// Named by the points each adds: a +2 is a safety or a conversion, and the game records only points.\nexport const FOOTBALL_SIX_POINT_EVENT_TYPE = 'FOOTBALL_6PT';\nexport const FOOTBALL_TWO_POINT_EVENT_TYPE = 'FOOTBALL_2PT';\nexport const FOOTBALL_ONE_POINT_EVENT_TYPE = 'FOOTBALL_1PT';\nexport const FOOTBALL_SCORE_EVENT_TYPE_KEYS = [\n FOOTBALL_SIX_POINT_EVENT_TYPE,\n FOOTBALL_TWO_POINT_EVENT_TYPE,\n FOOTBALL_ONE_POINT_EVENT_TYPE,\n] as const;\nexport const FOOTBALL_BULK_EDIT_EVENT_TYPE = 'FOOTBALL_BULK_EDIT';\nexport const FOOTBALL_STAT_EVENT_TYPE_KEYS = [\n ...FOOTBALL_SCORE_EVENT_TYPE_KEYS,\n FOOTBALL_BULK_EDIT_EVENT_TYPE,\n] as const;\nexport type FootballStatEventType = (typeof FOOTBALL_STAT_EVENT_TYPE_KEYS)[number];\n"]}
1
+ {"version":3,"file":"sports.js","sourceRoot":"","sources":["../../src/types/sports.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,YAAY,EAAE,SAAS,EAAE,UAAU,CAAU,CAAC;AAG/E,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,YAAY,EAAE,SAAS,EAAE,UAAU,CAAU,CAAC;AAGzE,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,UAAU,EAAE,YAAY;IACxB,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;CAC2B,CAAC;AAElD,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,UAAU,EAAE,YAAY;IACxB,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;CAC2B,CAAC;AAElD,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,gBAAgB,EAAE,cAAc,EAAE,cAAc,CAAU,CAAC;AAG3F,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,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A8B;IAC9B,8BAA8B;CACtB,CAAC;AAGX,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,OAAO,CAA8C,CAAC;AAE9F,MAAM,CAAC,MAAM,yBAAyB,GAAG,EAA+C,CAAC;AAEzF,MAAM,CAAC,MAAM,6BAA6B,GAAG,cAAc,CAAC;AAC5D,MAAM,CAAC,MAAM,6BAA6B,GAAG,cAAc,CAAC;AAC5D,MAAM,CAAC,MAAM,6BAA6B,GAAG,cAAc,CAAC;AAC5D,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,6BAA6B;IAC7B,6BAA6B;IAC7B,6BAA6B;CACrB,CAAC;AACX,MAAM,CAAC,MAAM,6BAA6B,GAAG,oBAAoB,CAAC;AAClE,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,GAAG,8BAA8B;IACjC,6BAA6B;CACrB,CAAC","sourcesContent":["export const LEAGUE_TYPE_KEYS = ['Basketball', 'Curling', 'Football'] as const;\nexport type LeagueType = (typeof LEAGUE_TYPE_KEYS)[number];\n\nexport const SPORT_KEYS = ['basketball', 'curling', 'football'] as const;\nexport type SportKey = (typeof SPORT_KEYS)[number];\n\nexport const SPORT_KEY_BY_LEAGUE_TYPE = {\n Basketball: 'basketball',\n Curling: 'curling',\n Football: 'football',\n} as const satisfies Record<LeagueType, SportKey>;\n\nexport const LEAGUE_TYPE_BY_SPORT_KEY = {\n basketball: 'Basketball',\n curling: 'Curling',\n football: 'Football',\n} as const satisfies Record<SportKey, LeagueType>;\n\nexport const SPORT_ICON_KEYS = ['basketballBall', 'curlingStone', 'footballBall'] as const;\nexport type SportIconKey = (typeof SPORT_ICON_KEYS)[number];\n\nexport const STAT_COUNTER_KEYS = ['score', 'timeouts', 'points', 'rebounds', 'assists'] as const;\nexport type StatCounterKey = (typeof STAT_COUNTER_KEYS)[number];\n\nexport const BASKETBALL_TEAM_STAT_KEYS = [\n 'score',\n 'timeouts',\n] as const satisfies readonly StatCounterKey[];\nexport type BasketballTeamStatKey = (typeof BASKETBALL_TEAM_STAT_KEYS)[number];\n\nexport const BASKETBALL_PLAYER_STAT_KEYS = [\n 'points',\n 'rebounds',\n 'assists',\n] as const satisfies readonly StatCounterKey[];\nexport type BasketballPlayerStatKey = (typeof BASKETBALL_PLAYER_STAT_KEYS)[number];\n\nexport const BASKETBALL_BULK_STAT_KEYS = BASKETBALL_PLAYER_STAT_KEYS;\nexport type BasketballBulkStatKey = BasketballPlayerStatKey;\n\nexport const BASKETBALL_ONE_POINT_EVENT_TYPE = '1PT';\nexport const BASKETBALL_TWO_POINT_EVENT_TYPE = '2PT';\nexport const BASKETBALL_THREE_POINT_EVENT_TYPE = '3PT';\nexport const BASKETBALL_ASSISTABLE_SHOT_EVENT_TYPE_KEYS = [\n BASKETBALL_TWO_POINT_EVENT_TYPE,\n BASKETBALL_THREE_POINT_EVENT_TYPE,\n] as const;\nexport const BASKETBALL_SCORE_EVENT_TYPE_KEYS = [\n BASKETBALL_ONE_POINT_EVENT_TYPE,\n ...BASKETBALL_ASSISTABLE_SHOT_EVENT_TYPE_KEYS,\n] as const;\nexport const BASKETBALL_REBOUND_EVENT_TYPE = 'REBOUND';\nexport const BASKETBALL_ASSIST_EVENT_TYPE = 'ASSIST';\nexport const BASKETBALL_PLAYER_TALLY_EVENT_TYPE_KEYS = [\n BASKETBALL_REBOUND_EVENT_TYPE,\n BASKETBALL_ASSIST_EVENT_TYPE,\n] as const;\nexport const BASKETBALL_TIMEOUT_EVENT_TYPE = 'TIMEOUT';\nexport const BASKETBALL_BULK_EDIT_EVENT_TYPE = 'BULK_EDIT';\n\nexport const BASKETBALL_STAT_EVENT_TYPE_KEYS = [\n ...BASKETBALL_SCORE_EVENT_TYPE_KEYS,\n ...BASKETBALL_PLAYER_TALLY_EVENT_TYPE_KEYS,\n BASKETBALL_TIMEOUT_EVENT_TYPE,\n BASKETBALL_BULK_EDIT_EVENT_TYPE,\n] as const;\nexport type BasketballStatEventType = (typeof BASKETBALL_STAT_EVENT_TYPE_KEYS)[number];\n\nexport const CURLING_TEAM_STAT_KEYS = ['score'] as const satisfies readonly StatCounterKey[];\nexport type CurlingTeamStatKey = (typeof CURLING_TEAM_STAT_KEYS)[number];\nexport const CURLING_PLAYER_STAT_KEYS = [] as const satisfies readonly StatCounterKey[];\n\nexport const CURLING_ROUND_SCORE_EVENT_TYPE = 'CURLING_ROUND_SCORE';\nexport const CURLING_ROUND_BLANK_EVENT_TYPE = 'CURLING_ROUND_BLANK';\nexport const CURLING_STAT_EVENT_TYPE_KEYS = [\n CURLING_ROUND_SCORE_EVENT_TYPE,\n CURLING_ROUND_BLANK_EVENT_TYPE,\n] as const;\nexport type CurlingStatEventType = (typeof CURLING_STAT_EVENT_TYPE_KEYS)[number];\n\nexport const FOOTBALL_TEAM_STAT_KEYS = ['score'] as const satisfies readonly StatCounterKey[];\nexport type FootballTeamStatKey = (typeof FOOTBALL_TEAM_STAT_KEYS)[number];\nexport const FOOTBALL_PLAYER_STAT_KEYS = [] as const satisfies readonly StatCounterKey[];\n\nexport const FOOTBALL_SIX_POINT_EVENT_TYPE = 'FOOTBALL_6PT';\nexport const FOOTBALL_TWO_POINT_EVENT_TYPE = 'FOOTBALL_2PT';\nexport const FOOTBALL_ONE_POINT_EVENT_TYPE = 'FOOTBALL_1PT';\nexport const FOOTBALL_SCORE_EVENT_TYPE_KEYS = [\n FOOTBALL_SIX_POINT_EVENT_TYPE,\n FOOTBALL_TWO_POINT_EVENT_TYPE,\n FOOTBALL_ONE_POINT_EVENT_TYPE,\n] as const;\nexport const FOOTBALL_BULK_EDIT_EVENT_TYPE = 'FOOTBALL_BULK_EDIT';\nexport const FOOTBALL_STAT_EVENT_TYPE_KEYS = [\n ...FOOTBALL_SCORE_EVENT_TYPE_KEYS,\n FOOTBALL_BULK_EDIT_EVENT_TYPE,\n] as const;\nexport type FootballStatEventType = (typeof FOOTBALL_STAT_EVENT_TYPE_KEYS)[number];\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"stats.d.ts","source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wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1E,eAAO,MAAM,kCAAkC,sDAKrC,CAAC;AACX,MAAM,MAAM,0BAA0B,GAAG,CAAC,OAAO,kCAAkC,CAAC,CAAC,MAAM,CAAC,CAAC;AAE7F,eAAO,MAAM,4CAA4C,0CAG/C,CAAC;AACX,MAAM,MAAM,mCAAmC,GAC7C,CAAC,OAAO,4CAA4C,CAAC,CAAC,MAAM,CAAC,CAAC;AAEhE,eAAO,MAAM,0BAA0B,sGAM7B,CAAC;AACX,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,0BAA0B,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -1,16 +1,10 @@
1
- // Canonical unions of the stat event store and the stats operations (RULE-STD-ARCH-102). What each sport's
2
- // own events and lines are is ./sports.ts; these are the sport-agnostic halves every sport shares.
3
1
  import { CAPTAIN_TEAM_ROLES, SYSTEM_ROLE_KEYS } from './unions.js';
4
- // The two store-level events, members of every sport's event union. A void undoes the one event it
5
- // targets; a correction adds a signed value to one correctable field of one line.
6
2
  export const STAT_VOID_EVENT_TYPE = 'STAT_VOID';
7
3
  export const STAT_CORRECTION_EVENT_TYPE = 'STAT_CORRECTION';
8
4
  export const STAT_STORE_EVENT_TYPE_KEYS = [
9
5
  STAT_VOID_EVENT_TYPE,
10
6
  STAT_CORRECTION_EVENT_TYPE,
11
7
  ];
12
- // The fields of a stored stat event the writing core derives — its place in the replay, and who
13
- // recorded it under which authority — so a caller never sends them (RULE-STD-ARCH-106).
14
8
  export const STAT_EVENT_RECORDER_FIELD_KEYS = [
15
9
  'sequence',
16
10
  'acceptedAt',
@@ -18,19 +12,12 @@ export const STAT_EVENT_RECORDER_FIELD_KEYS = [
18
12
  'recordedByAuthority',
19
13
  'recordedByTeamId',
20
14
  ];
21
- // The name snapshots only a copied event carries; nothing writes one on a new event (RULE-QS-SPORT-914).
22
15
  export const STAT_EVENT_SNAPSHOT_FIELD_KEYS = [
23
16
  'displayNameSnapshot',
24
17
  'assistedByDisplayNameSnapshot',
25
18
  ];
26
- // Who appended a correction: an admin reconciling a game, or the copy that carries a recorded
27
- // result its events do not explain.
28
19
  export const STAT_CORRECTION_SOURCE_KEYS = ['admin', 'migration'];
29
- // The authority the writing core confirmed for an event: a global role, or a team role on one of
30
- // the game's teams.
31
20
  export const STAT_EVENT_AUTHORITY_KEYS = [...SYSTEM_ROLE_KEYS, ...CAPTAIN_TEAM_ROLES];
32
- // Every kind of stat line: the four player kinds, then the two team kinds. A sport's line of each
33
- // kind is declared once, in `SPORT_LINE_SCHEMAS`; a kind a sport has no line for is `never` there.
34
21
  export const PLAYER_STAT_LINE_KIND_KEYS = [
35
22
  'gamePlayer',
36
23
  'membershipRow',
@@ -42,7 +29,6 @@ export const STAT_LINE_KIND_KEYS = [
42
29
  ...PLAYER_STAT_LINE_KIND_KEYS,
43
30
  ...TEAM_STAT_LINE_KIND_KEYS,
44
31
  ];
45
- // One logical run of a stats action, recorded on its `statsOperations` document.
46
32
  export const STATS_OPERATION_KIND_KEYS = [
47
33
  'leagueStatsRebuild',
48
34
  'lifetimeStatsRebuild',
@@ -54,23 +40,14 @@ export const STATS_OPERATION_KIND_KEYS = [
54
40
  'ghostPlayerStats',
55
41
  'gameDeletion',
56
42
  ];
57
- // The rebuilds: each replaces one destination from the finalized games, a unit at a time, and shares
58
- // one paged run.
59
43
  export const STATS_REBUILD_OPERATION_KIND_KEYS = [
60
44
  'leagueStatsRebuild',
61
45
  'lifetimeStatsRebuild',
62
46
  'hallOfFameRebuild',
63
47
  ];
64
48
  export const STATS_OPERATION_STATUS_KEYS = ['running', 'complete', 'stopped'];
65
- // A validation run checks every game first, then the destinations those games feed.
66
49
  export const STATS_VALIDATION_PHASE_KEYS = ['games', 'destinations'];
67
- // A ghost has one operation for both of its ways out, so a link and a removal refuse each other.
68
50
  export const GHOST_STATS_OPERATION_ACTION_KEYS = ['link', 'removal'];
69
- // Why a scoring write refused an event. The first ten are a sport adapter's `validate`; the last
70
- // four are the store driver's own: an id already stored, or earlier in the batch, with different
71
- // content; a void whose target is missing, a void, or a correction; a correction sent to a scoring
72
- // entry, which only the game-reconcile core appends; and a void that would leave a stat below zero,
73
- // because a later edit already moved its target's field down.
74
51
  export const STAT_EVENT_REFUSAL_KEYS = [
75
52
  'eventTypeNotInSport',
76
53
  'teamNotInGame',
@@ -87,54 +64,22 @@ export const STAT_EVENT_REFUSAL_KEYS = [
87
64
  'correctionNotAccepted',
88
65
  'undoBelowZero',
89
66
  ];
90
- // Why a game may not be finalized yet — a sport played in rounds with an end still unrecorded.
91
67
  export const FINALIZATION_NOT_READY_KEYS = ['roundsIncomplete'];
92
- // The scoring panel a sport's adapter names; the scoring screen renders one component per kind.
93
68
  export const SCORING_PANEL_KIND_KEYS = ['playerEvents', 'teamPoints', 'rounds'];
94
- // The bulk-entry form body a sport's adapter names; the bulk-entry dialog renders one per kind.
95
69
  export const BULK_ENTRY_KIND_KEYS = ['playerLines', 'teamScores', 'rounds'];
96
- // What a scoring write did with each event it was sent: stored it now, or found it already stored
97
- // by an earlier send and acknowledged it without applying it again.
98
70
  export const RECORDED_STAT_EVENT_OUTCOME_KEYS = ['recorded', 'alreadyRecorded'];
99
- // What finalize did: made the game's numbers permanent, or found it already finalized and changed
100
- // nothing (RULE-QS-SPORT-923).
101
71
  export const GAME_FINALIZE_OUTCOME_KEYS = ['finalized', 'alreadyFinalized'];
102
- // What reopen did: took a finalized game's numbers back out, or found the game already open and
103
- // changed nothing.
104
72
  export const GAME_REOPEN_OUTCOME_KEYS = ['reopened', 'alreadyOpen'];
105
- // Why a path that makes numbers permanent, or takes them back, refused a game whose stored numbers
106
- // disagree with what produced them — something changed them outside the app, and an admin
107
- // reconciles the game in Fix stats first. Finalize, reopen, and a ghost link never adopt or discard
108
- // an unexplained difference (RULE-STD-ENG-009):
109
- // statsOutOfBand the rollup or score mirror is not the replay of the game's events or record
110
- // finalRecordMissing a completed game has no finalized record
111
- // aggregateBelowZero a stored derived line holds less than the game put into it
112
73
  export const STATS_INTEGRITY_REFUSAL_KEYS = [
113
74
  'statsOutOfBand',
114
75
  'finalRecordMissing',
115
76
  'aggregateBelowZero',
116
77
  ];
117
- // What a game repair in Fix stats did: changed the game (`reconciled`), found nothing to change
118
- // (`unchanged`), or found its operation already committed and acknowledged the retry
119
- // (`alreadyApplied`).
120
78
  export const GAME_STATS_REPAIR_OUTCOME_KEYS = [
121
79
  'reconciled',
122
80
  'unchanged',
123
81
  'alreadyApplied',
124
82
  ];
125
- // Why a game repair in Fix stats was refused, in the refusal's details, so the form says what to do:
126
- // eventUnreadable an event document no longer parses or replays — fix it in the console first
127
- // eventSequenceGap the events do not hold exactly the sequences 1..n — a gap or a repeat — which
128
- // a repair never renumbers: fix the event documents in the console first
129
- // sourcesDisagree the record, the stored rollup, and the events all disagree: no one of them
130
- // says what finalize applied
131
- // scoreAmbiguous keep-stored: the team line's score and the score mirror were both edited, to
132
- // different values — give the score as a target instead
133
- // fieldNotCorrectable a field the sport's adapter does not let a correction change — restore from
134
- // the events instead, or reopen and re-score
135
- // lineNotRostered a line for someone not on the game's roster
136
- // teamNotInGame a target names a team the game does not hold
137
- // gameTooLarge the repair would not fit in one commit
138
83
  export const GAME_REPAIR_REFUSAL_KEYS = [
139
84
  'eventUnreadable',
140
85
  'eventSequenceGap',
@@ -145,26 +90,16 @@ export const GAME_REPAIR_REFUSAL_KEYS = [
145
90
  'teamNotInGame',
146
91
  'gameTooLarge',
147
92
  ];
148
- // What a ghost link did with the team's memberships: the ghost's membership became the account's
149
- // (`handedOver`); the account had none and the ghost none either, so the closed-league link gave the
150
- // account one (`created`); both held one and one survives with the higher role (`merged`); or only
151
- // the account held one, and it stands (`kept`).
152
93
  export const GHOST_LINK_MEMBERSHIP_OUTCOME_KEYS = [
153
94
  'handedOver',
154
95
  'created',
155
96
  'merged',
156
97
  'kept',
157
98
  ];
158
- // What the migration's placement of an unplaceable V1 stat line did: `alreadyResolved` when the game
159
- // already held the entry it would write — nothing was written.
160
99
  export const UNROSTERED_STAT_LINE_RESOLUTION_OUTCOME_KEYS = [
161
100
  'resolved',
162
101
  'alreadyResolved',
163
102
  ];
164
- // Why a ghost's removal was refused, in the refusal's details, so the client answers each one: the
165
- // ghost has played (link it instead) or its removal stopped on finding it had; a game the removal
166
- // needs is held by another operation (try again shortly); the ghost is being, or was, linked; the
167
- // ghost is the team's captain (change the captain first).
168
103
  export const GHOST_REMOVAL_REFUSAL_KEYS = [
169
104
  'ghostHasPlayed',
170
105
  'removalStopped',
@@ -1 +1 @@
1
- {"version":3,"file":"stats.js","sourceRoot":"","sources":["../../src/types/stats.ts"],"names":[],"mappings":"AAAA,2GAA2G;AAC3G,mGAAmG;AAEnG,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEnE,mGAAmG;AACnG,kFAAkF;AAClF,MAAM,CAAC,MAAM,oBAAoB,GAAG,WAAW,CAAC;AAChD,MAAM,CAAC,MAAM,0BAA0B,GAAG,iBAAiB,CAAC;AAC5D,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,oBAAoB;IACpB,0BAA0B;CAClB,CAAC;AAGX,gGAAgG;AAChG,wFAAwF;AACxF,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,UAAU;IACV,YAAY;IACZ,kBAAkB;IAClB,qBAAqB;IACrB,kBAAkB;CACV,CAAC;AAGX,yGAAyG;AACzG,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,qBAAqB;IACrB,+BAA+B;CACvB,CAAC;AAGX,8FAA8F;AAC9F,oCAAoC;AACpC,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,OAAO,EAAE,WAAW,CAAU,CAAC;AAG3E,iGAAiG;AACjG,oBAAoB;AACpB,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,GAAG,gBAAgB,EAAE,GAAG,kBAAkB,CAAU,CAAC;AAG/F,kGAAkG;AAClG,mGAAmG;AACnG,MAAM,CAAC,MAAM,0BAA0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nG,gDAAgD;AAChD,MAAM,CAAC,MAAM,kCAAkC,GAAG;IAChD,YAAY;IACZ,SAAS;IACT,QAAQ;IACR,MAAM;CACE,CAAC;AAGX,qGAAqG;AACrG,+DAA+D;AAC/D,MAAM,CAAC,MAAM,4CAA4C,GAAG;IAC1D,UAAU;IACV,iBAAiB;CACT,CAAC;AAIX,mGAAmG;AACnG,kGAAkG;AAClG,kGAAkG;AAClG,0DAA0D;AAC1D,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,gBAAgB;IAChB,gBAAgB;IAChB,UAAU;IACV,kBAAkB;IAClB,qBAAqB;CACb,CAAC","sourcesContent":["// Canonical unions of the stat event store and the stats operations (RULE-STD-ARCH-102). What each sport's\n// own events and lines are is ./sports.ts; these are the sport-agnostic halves every sport shares.\n\nimport { CAPTAIN_TEAM_ROLES, SYSTEM_ROLE_KEYS } from './unions.js';\n\n// The two store-level events, members of every sport's event union. A void undoes the one event it\n// targets; a correction adds a signed value to one correctable field of one line.\nexport const STAT_VOID_EVENT_TYPE = 'STAT_VOID';\nexport const STAT_CORRECTION_EVENT_TYPE = 'STAT_CORRECTION';\nexport const STAT_STORE_EVENT_TYPE_KEYS = [\n STAT_VOID_EVENT_TYPE,\n STAT_CORRECTION_EVENT_TYPE,\n] as const;\nexport type StatStoreEventType = (typeof STAT_STORE_EVENT_TYPE_KEYS)[number];\n\n// The fields of a stored stat event the writing core derives — its place in the replay, and who\n// recorded it under which authority — so a caller never sends them (RULE-STD-ARCH-106).\nexport const STAT_EVENT_RECORDER_FIELD_KEYS = [\n 'sequence',\n 'acceptedAt',\n 'recordedByUserId',\n 'recordedByAuthority',\n 'recordedByTeamId',\n] as const;\nexport type StatEventRecorderField = (typeof STAT_EVENT_RECORDER_FIELD_KEYS)[number];\n\n// The name snapshots only a copied event carries; nothing writes one on a new event (RULE-QS-SPORT-914).\nexport const STAT_EVENT_SNAPSHOT_FIELD_KEYS = [\n 'displayNameSnapshot',\n 'assistedByDisplayNameSnapshot',\n] as const;\nexport type StatEventSnapshotField = (typeof STAT_EVENT_SNAPSHOT_FIELD_KEYS)[number];\n\n// Who appended a correction: an admin reconciling a game, or the copy that carries a recorded\n// result its events do not explain.\nexport const STAT_CORRECTION_SOURCE_KEYS = ['admin', 'migration'] as const;\nexport type StatCorrectionSource = (typeof STAT_CORRECTION_SOURCE_KEYS)[number];\n\n// The authority the writing core confirmed for an event: a global role, or a team role on one of\n// the game's teams.\nexport const STAT_EVENT_AUTHORITY_KEYS = [...SYSTEM_ROLE_KEYS, ...CAPTAIN_TEAM_ROLES] as const;\nexport type StatEventAuthority = (typeof STAT_EVENT_AUTHORITY_KEYS)[number];\n\n// Every kind of stat line: the four player kinds, then the two team kinds. A sport's line of each\n// kind is declared once, in `SPORT_LINE_SCHEMAS`; a kind a sport has no line for is `never` there.\nexport const PLAYER_STAT_LINE_KIND_KEYS = [\n 'gamePlayer',\n 'membershipRow',\n 'lifetime',\n 'hallOfFame',\n] as const;\nexport const TEAM_STAT_LINE_KIND_KEYS = ['gameTeam', 'teamSeason'] as const;\nexport const STAT_LINE_KIND_KEYS = [\n ...PLAYER_STAT_LINE_KIND_KEYS,\n ...TEAM_STAT_LINE_KIND_KEYS,\n] as const;\nexport type StatLineKind = (typeof STAT_LINE_KIND_KEYS)[number];\nexport type PlayerStatLineKind = (typeof PLAYER_STAT_LINE_KIND_KEYS)[number];\n\n// One logical run of a stats action, recorded on its `statsOperations` document.\nexport const STATS_OPERATION_KIND_KEYS = [\n 'leagueStatsRebuild',\n 'lifetimeStatsRebuild',\n 'hallOfFameRebuild',\n 'statsValidation',\n 'gameStatsCorrection',\n 'gameStatsRecalculation',\n 'historicalStatsUpdate',\n 'ghostPlayerStats',\n 'gameDeletion',\n] as const;\nexport type StatsOperationKind = (typeof STATS_OPERATION_KIND_KEYS)[number];\n\n// The rebuilds: each replaces one destination from the finalized games, a unit at a time, and shares\n// one paged run.\nexport const STATS_REBUILD_OPERATION_KIND_KEYS = [\n 'leagueStatsRebuild',\n 'lifetimeStatsRebuild',\n 'hallOfFameRebuild',\n] as const satisfies readonly StatsOperationKind[];\nexport type StatsRebuildOperationKind = (typeof STATS_REBUILD_OPERATION_KIND_KEYS)[number];\n\nexport const STATS_OPERATION_STATUS_KEYS = ['running', 'complete', 'stopped'] as const;\nexport type StatsOperationStatus = (typeof STATS_OPERATION_STATUS_KEYS)[number];\n\n// A validation run checks every game first, then the destinations those games feed.\nexport const STATS_VALIDATION_PHASE_KEYS = ['games', 'destinations'] as const;\nexport type StatsValidationPhase = (typeof STATS_VALIDATION_PHASE_KEYS)[number];\n\n// A ghost has one operation for both of its ways out, so a link and a removal refuse each other.\nexport const GHOST_STATS_OPERATION_ACTION_KEYS = ['link', 'removal'] as const;\nexport type GhostStatsOperationAction = (typeof GHOST_STATS_OPERATION_ACTION_KEYS)[number];\n\n// Why a scoring write refused an event. The first ten are a sport adapter's `validate`; the last\n// four are the store driver's own: an id already stored, or earlier in the batch, with different\n// content; a void whose target is missing, a void, or a correction; a correction sent to a scoring\n// entry, which only the game-reconcile core appends; and a void that would leave a stat below zero,\n// because a later edit already moved its target's field down.\nexport const STAT_EVENT_REFUSAL_KEYS = [\n 'eventTypeNotInSport',\n 'teamNotInGame',\n 'playerNotRostered',\n 'assisterNotRostered',\n 'assistNotAllowed',\n 'playerNotAllowed',\n 'roundNotNext',\n 'roundsComplete',\n 'bulkValueInvalid',\n 'bulkStale',\n 'eventIdConflict',\n 'voidTargetNotSportEvent',\n 'correctionNotAccepted',\n 'undoBelowZero',\n] as const;\nexport type StatEventRefusalCode = (typeof STAT_EVENT_REFUSAL_KEYS)[number];\n\n// Why a game may not be finalized yet — a sport played in rounds with an end still unrecorded.\nexport const FINALIZATION_NOT_READY_KEYS = ['roundsIncomplete'] as const;\nexport type FinalizationNotReadyReason = (typeof FINALIZATION_NOT_READY_KEYS)[number];\n\n// The scoring panel a sport's adapter names; the scoring screen renders one component per kind.\nexport const SCORING_PANEL_KIND_KEYS = ['playerEvents', 'teamPoints', 'rounds'] as const;\nexport type ScoringPanelKind = (typeof SCORING_PANEL_KIND_KEYS)[number];\n\n// The bulk-entry form body a sport's adapter names; the bulk-entry dialog renders one per kind.\nexport const BULK_ENTRY_KIND_KEYS = ['playerLines', 'teamScores', 'rounds'] as const;\nexport type BulkEntryKind = (typeof BULK_ENTRY_KIND_KEYS)[number];\n\n// What a scoring write did with each event it was sent: stored it now, or found it already stored\n// by an earlier send and acknowledged it without applying it again.\nexport const RECORDED_STAT_EVENT_OUTCOME_KEYS = ['recorded', 'alreadyRecorded'] as const;\nexport type RecordedStatEventOutcome = (typeof RECORDED_STAT_EVENT_OUTCOME_KEYS)[number];\n\n// What finalize did: made the game's numbers permanent, or found it already finalized and changed\n// nothing (RULE-QS-SPORT-923).\nexport const GAME_FINALIZE_OUTCOME_KEYS = ['finalized', 'alreadyFinalized'] as const;\nexport type GameFinalizeOutcome = (typeof GAME_FINALIZE_OUTCOME_KEYS)[number];\n\n// What reopen did: took a finalized game's numbers back out, or found the game already open and\n// changed nothing.\nexport const GAME_REOPEN_OUTCOME_KEYS = ['reopened', 'alreadyOpen'] as const;\nexport type GameReopenOutcome = (typeof GAME_REOPEN_OUTCOME_KEYS)[number];\n\n// Why a path that makes numbers permanent, or takes them back, refused a game whose stored numbers\n// disagree with what produced them — something changed them outside the app, and an admin\n// reconciles the game in Fix stats first. Finalize, reopen, and a ghost link never adopt or discard\n// an unexplained difference (RULE-STD-ENG-009):\n// statsOutOfBand the rollup or score mirror is not the replay of the game's events or record\n// finalRecordMissing a completed game has no finalized record\n// aggregateBelowZero a stored derived line holds less than the game put into it\nexport const STATS_INTEGRITY_REFUSAL_KEYS = [\n 'statsOutOfBand',\n 'finalRecordMissing',\n 'aggregateBelowZero',\n] as const;\nexport type StatsIntegrityRefusal = (typeof STATS_INTEGRITY_REFUSAL_KEYS)[number];\n\n// What a game repair in Fix stats did: changed the game (`reconciled`), found nothing to change\n// (`unchanged`), or found its operation already committed and acknowledged the retry\n// (`alreadyApplied`).\nexport const GAME_STATS_REPAIR_OUTCOME_KEYS = [\n 'reconciled',\n 'unchanged',\n 'alreadyApplied',\n] as const;\nexport type GameStatsRepairOutcome = (typeof GAME_STATS_REPAIR_OUTCOME_KEYS)[number];\n\n// Why a game repair in Fix stats was refused, in the refusal's details, so the form says what to do:\n// eventUnreadable an event document no longer parses or replays — fix it in the console first\n// eventSequenceGap the events do not hold exactly the sequences 1..n — a gap or a repeat — which\n// a repair never renumbers: fix the event documents in the console first\n// sourcesDisagree the record, the stored rollup, and the events all disagree: no one of them\n// says what finalize applied\n// scoreAmbiguous keep-stored: the team line's score and the score mirror were both edited, to\n// different values — give the score as a target instead\n// fieldNotCorrectable a field the sport's adapter does not let a correction change — restore from\n// the events instead, or reopen and re-score\n// lineNotRostered a line for someone not on the game's roster\n// teamNotInGame a target names a team the game does not hold\n// gameTooLarge the repair would not fit in one commit\nexport const GAME_REPAIR_REFUSAL_KEYS = [\n 'eventUnreadable',\n 'eventSequenceGap',\n 'sourcesDisagree',\n 'scoreAmbiguous',\n 'fieldNotCorrectable',\n 'lineNotRostered',\n 'teamNotInGame',\n 'gameTooLarge',\n] as const;\nexport type GameRepairRefusal = (typeof GAME_REPAIR_REFUSAL_KEYS)[number];\n\n// What a ghost link did with the team's memberships: the ghost's membership became the account's\n// (`handedOver`); the account had none and the ghost none either, so the closed-league link gave the\n// account one (`created`); both held one and one survives with the higher role (`merged`); or only\n// the account held one, and it stands (`kept`).\nexport const GHOST_LINK_MEMBERSHIP_OUTCOME_KEYS = [\n 'handedOver',\n 'created',\n 'merged',\n 'kept',\n] as const;\nexport type GhostLinkMembershipOutcome = (typeof GHOST_LINK_MEMBERSHIP_OUTCOME_KEYS)[number];\n\n// What the migration's placement of an unplaceable V1 stat line did: `alreadyResolved` when the game\n// already held the entry it would write — nothing was written.\nexport const UNROSTERED_STAT_LINE_RESOLUTION_OUTCOME_KEYS = [\n 'resolved',\n 'alreadyResolved',\n] as const;\nexport type UnrosteredStatLineResolutionOutcome =\n (typeof UNROSTERED_STAT_LINE_RESOLUTION_OUTCOME_KEYS)[number];\n\n// Why a ghost's removal was refused, in the refusal's details, so the client answers each one: the\n// ghost has played (link it instead) or its removal stopped on finding it had; a game the removal\n// needs is held by another operation (try again shortly); the ghost is being, or was, linked; the\n// ghost is the team's captain (change the captain first).\nexport const GHOST_REMOVAL_REFUSAL_KEYS = [\n 'ghostHasPlayed',\n 'removalStopped',\n 'gameHeld',\n 'ghostBeingLinked',\n 'captainNotRemovable',\n] as const;\nexport type GhostRemovalRefusal = (typeof GHOST_REMOVAL_REFUSAL_KEYS)[number];\n"]}
1
+ {"version":3,"file":"stats.js","sourceRoot":"","sources":["../../src/types/stats.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEnE,MAAM,CAAC,MAAM,oBAAoB,GAAG,WAAW,CAAC;AAChD,MAAM,CAAC,MAAM,0BAA0B,GAAG,iBAAiB,CAAC;AAC5D,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,oBAAoB;IACpB,0BAA0B;CAClB,CAAC;AAGX,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,UAAU;IACV,YAAY;IACZ,kBAAkB;IAClB,qBAAqB;IACrB,kBAAkB;CACV,CAAC;AAGX,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,qBAAqB;IACrB,+BAA+B;CACvB,CAAC;AAGX,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,OAAO,EAAE,WAAW,CAAU,CAAC;AAG3E,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,GAAG,gBAAgB,EAAE,GAAG,kBAAkB,CAAU,CAAC;AAG/F,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,YAAY;IACZ,eAAe;IACf,UAAU;IACV,YAAY;CACJ,CAAC;AACX,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,UAAU,EAAE,YAAY,CAAU,CAAC;A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CAAU,CAAC;AAGrF,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,UAAU,EAAE,aAAa,CAAU,CAAC;AAG7E,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,gBAAgB;IAChB,oBAAoB;IACpB,oBAAoB;CACZ,CAAC;AAGX,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,YAAY;IACZ,WAAW;IACX,gBAAgB;CACR,CAAC;AAGX,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,iBAAiB;IACjB,kBAAkB;IAClB,iBAAiB;IACjB,gBAAgB;IAChB,qBAAqB;IACrB,iBAAiB;IACjB,eAAe;IACf,cAAc;CACN,CAAC;AAGX,MAAM,CAAC,MAAM,kCAAkC,GAAG;IAChD,YAAY;IACZ,SAAS;IACT,QAAQ;IACR,MAAM;CACE,CAAC;AAGX,MAAM,CAAC,MAAM,4CAA4C,GAAG;IAC1D,UAAU;IACV,iBAAiB;CACT,CAAC;AAIX,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,gBAAgB;IAChB,gBAAgB;IAChB,UAAU;IACV,kBAAkB;IAClB,qBAAqB;CACb,CAAC","sourcesContent":["import { CAPTAIN_TEAM_ROLES, SYSTEM_ROLE_KEYS } from './unions.js';\n\nexport const STAT_VOID_EVENT_TYPE = 'STAT_VOID';\nexport const STAT_CORRECTION_EVENT_TYPE = 'STAT_CORRECTION';\nexport const STAT_STORE_EVENT_TYPE_KEYS = [\n STAT_VOID_EVENT_TYPE,\n STAT_CORRECTION_EVENT_TYPE,\n] as const;\nexport type StatStoreEventType = (typeof STAT_STORE_EVENT_TYPE_KEYS)[number];\n\nexport const STAT_EVENT_RECORDER_FIELD_KEYS = [\n 'sequence',\n 'acceptedAt',\n 'recordedByUserId',\n 'recordedByAuthority',\n 'recordedByTeamId',\n] as const;\nexport type StatEventRecorderField = (typeof STAT_EVENT_RECORDER_FIELD_KEYS)[number];\n\nexport const STAT_EVENT_SNAPSHOT_FIELD_KEYS = [\n 'displayNameSnapshot',\n 'assistedByDisplayNameSnapshot',\n] as const;\nexport type StatEventSnapshotField = (typeof STAT_EVENT_SNAPSHOT_FIELD_KEYS)[number];\n\nexport const STAT_CORRECTION_SOURCE_KEYS = ['admin', 'migration'] as const;\nexport type StatCorrectionSource = (typeof STAT_CORRECTION_SOURCE_KEYS)[number];\n\nexport const STAT_EVENT_AUTHORITY_KEYS = [...SYSTEM_ROLE_KEYS, ...CAPTAIN_TEAM_ROLES] as const;\nexport type StatEventAuthority = (typeof STAT_EVENT_AUTHORITY_KEYS)[number];\n\nexport const PLAYER_STAT_LINE_KIND_KEYS = [\n 'gamePlayer',\n 'membershipRow',\n 'lifetime',\n 'hallOfFame',\n] as const;\nexport const TEAM_STAT_LINE_KIND_KEYS = ['gameTeam', 'teamSeason'] as const;\nexport const STAT_LINE_KIND_KEYS = [\n ...PLAYER_STAT_LINE_KIND_KEYS,\n ...TEAM_STAT_LINE_KIND_KEYS,\n] as const;\nexport type StatLineKind = (typeof STAT_LINE_KIND_KEYS)[number];\nexport type PlayerStatLineKind = (typeof PLAYER_STAT_LINE_KIND_KEYS)[number];\n\nexport const STATS_OPERATION_KIND_KEYS = [\n 'leagueStatsRebuild',\n 'lifetimeStatsRebuild',\n 'hallOfFameRebuild',\n 'statsValidation',\n 'gameStatsCorrection',\n 'gameStatsRecalculation',\n 'historicalStatsUpdate',\n 'ghostPlayerStats',\n 'gameDeletion',\n] as const;\nexport type StatsOperationKind = (typeof STATS_OPERATION_KIND_KEYS)[number];\n\nexport const STATS_REBUILD_OPERATION_KIND_KEYS = [\n 'leagueStatsRebuild',\n 'lifetimeStatsRebuild',\n 'hallOfFameRebuild',\n] as const satisfies readonly StatsOperationKind[];\nexport type StatsRebuildOperationKind = (typeof STATS_REBUILD_OPERATION_KIND_KEYS)[number];\n\nexport const STATS_OPERATION_STATUS_KEYS = ['running', 'complete', 'stopped'] as const;\nexport type StatsOperationStatus = (typeof STATS_OPERATION_STATUS_KEYS)[number];\n\nexport const STATS_VALIDATION_PHASE_KEYS = ['games', 'destinations'] as const;\nexport type StatsValidationPhase = (typeof STATS_VALIDATION_PHASE_KEYS)[number];\n\nexport const GHOST_STATS_OPERATION_ACTION_KEYS = ['link', 'removal'] as const;\nexport type GhostStatsOperationAction = (typeof GHOST_STATS_OPERATION_ACTION_KEYS)[number];\n\nexport const STAT_EVENT_REFUSAL_KEYS = [\n 'eventTypeNotInSport',\n 'teamNotInGame',\n 'playerNotRostered',\n 'assisterNotRostered',\n 'assistNotAllowed',\n 'playerNotAllowed',\n 'roundNotNext',\n 'roundsComplete',\n 'bulkValueInvalid',\n 'bulkStale',\n 'eventIdConflict',\n 'voidTargetNotSportEvent',\n 'correctionNotAccepted',\n 'undoBelowZero',\n] as const;\nexport type StatEventRefusalCode = (typeof STAT_EVENT_REFUSAL_KEYS)[number];\n\nexport const FINALIZATION_NOT_READY_KEYS = ['roundsIncomplete'] as const;\nexport type FinalizationNotReadyReason = (typeof FINALIZATION_NOT_READY_KEYS)[number];\n\nexport const SCORING_PANEL_KIND_KEYS = ['playerEvents', 'teamPoints', 'rounds'] as const;\nexport type ScoringPanelKind = (typeof SCORING_PANEL_KIND_KEYS)[number];\n\nexport const BULK_ENTRY_KIND_KEYS = ['playerLines', 'teamScores', 'rounds'] as const;\nexport type BulkEntryKind = (typeof BULK_ENTRY_KIND_KEYS)[number];\n\nexport const RECORDED_STAT_EVENT_OUTCOME_KEYS = ['recorded', 'alreadyRecorded'] as const;\nexport type RecordedStatEventOutcome = (typeof RECORDED_STAT_EVENT_OUTCOME_KEYS)[number];\n\nexport const GAME_FINALIZE_OUTCOME_KEYS = ['finalized', 'alreadyFinalized'] as const;\nexport type GameFinalizeOutcome = (typeof GAME_FINALIZE_OUTCOME_KEYS)[number];\n\nexport const GAME_REOPEN_OUTCOME_KEYS = ['reopened', 'alreadyOpen'] as const;\nexport type GameReopenOutcome = (typeof GAME_REOPEN_OUTCOME_KEYS)[number];\n\nexport const STATS_INTEGRITY_REFUSAL_KEYS = [\n 'statsOutOfBand',\n 'finalRecordMissing',\n 'aggregateBelowZero',\n] as const;\nexport type StatsIntegrityRefusal = (typeof STATS_INTEGRITY_REFUSAL_KEYS)[number];\n\nexport const GAME_STATS_REPAIR_OUTCOME_KEYS = [\n 'reconciled',\n 'unchanged',\n 'alreadyApplied',\n] as const;\nexport type GameStatsRepairOutcome = (typeof GAME_STATS_REPAIR_OUTCOME_KEYS)[number];\n\nexport const GAME_REPAIR_REFUSAL_KEYS = [\n 'eventUnreadable',\n 'eventSequenceGap',\n 'sourcesDisagree',\n 'scoreAmbiguous',\n 'fieldNotCorrectable',\n 'lineNotRostered',\n 'teamNotInGame',\n 'gameTooLarge',\n] as const;\nexport type GameRepairRefusal = (typeof GAME_REPAIR_REFUSAL_KEYS)[number];\n\nexport const GHOST_LINK_MEMBERSHIP_OUTCOME_KEYS = [\n 'handedOver',\n 'created',\n 'merged',\n 'kept',\n] as const;\nexport type GhostLinkMembershipOutcome = (typeof GHOST_LINK_MEMBERSHIP_OUTCOME_KEYS)[number];\n\nexport const UNROSTERED_STAT_LINE_RESOLUTION_OUTCOME_KEYS = [\n 'resolved',\n 'alreadyResolved',\n] as const;\nexport type UnrosteredStatLineResolutionOutcome =\n (typeof UNROSTERED_STAT_LINE_RESOLUTION_OUTCOME_KEYS)[number];\n\nexport const GHOST_REMOVAL_REFUSAL_KEYS = [\n 'ghostHasPlayed',\n 'removalStopped',\n 'gameHeld',\n 'ghostBeingLinked',\n 'captainNotRemovable',\n] as const;\nexport type GhostRemovalRefusal = (typeof GHOST_REMOVAL_REFUSAL_KEYS)[number];\n"]}
@@ -2,9 +2,7 @@ export declare const SYSTEM_ROLE_KEYS: readonly ["admin", "referee"];
2
2
  export type SystemRole = (typeof SYSTEM_ROLE_KEYS)[number];
3
3
  export declare const USER_STATUS_KEYS: readonly ["active", "banned"];
4
4
  export type UserStatus = (typeof USER_STATUS_KEYS)[number];
5
- /** The one status that lets an account act. */
6
5
  export declare const ACTIVE_USER_STATUS = "active";
7
- /** The status an admin's ban sets: the account keeps its data and cannot sign in. */
8
6
  export declare const BANNED_USER_STATUS = "banned";
9
7
  export declare const STATUS_RECONCILE_QUEUE_AUTH_EFFECTS: readonly ["accountStatus", "roleClaims"];
10
8
  export type StatusReconcileQueueAuthEffect = (typeof STATUS_RECONCILE_QUEUE_AUTH_EFFECTS)[number];
@@ -1 +1 @@
1
- {"version":3,"file":"unions.d.ts","sourceRoot":"","sources":["../../src/types/unions.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB,+BAAgC,CAAC;AAC9D,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAG3D,eAAO,MAAM,gBAAgB,+BAAgC,CAAC;AAC9D,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAC3D,+CAA+C;AAC/C,eAAO,MAAM,kBAAkB,WAAgC,CAAC;AAChE,qFAAqF;AACrF,eAAO,MAAM,kBAAkB,WAAgC,CAAC;AAMhE,eAAO,MAAM,mCAAmC,0CAA2C,CAAC;AAC5F,MAAM,MAAM,8BAA8B,GAAG,CAAC,OAAO,mCAAmC,CAAC,CAAC,MAAM,CAAC,CAAC;AAClG,eAAO,MAAM,0BAA0B,iBAC4B,CAAC;AACpE,eAAO,MAAM,kBAAkB,cAAiE,CAAC;AAEjG,eAAO,MAAM,cAAc,6CAA8C,CAAC;AAC1E,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAIvD,eAAO,MAAM,kBAAkB,mCAAkE,CAAC;AAIlG,eAAO,MAAM,iBAAiB,WAAwC,CAAC;AAIvE,eAAO,MAAM,oBAAoB,aAA0C,CAAC;AAC5E,eAAO,MAAM,gBAAgB,UAAuC,CAAC;AAKrE,eAAO,MAAM,4BAA4B,kCAGD,CAAC;AACzC,MAAM,MAAM,wBAAw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