@ttt-productions/q-core 0.1.28 → 0.1.29

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 (472) 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.map +1 -1
  19. package/dist/constants/sports.js +2 -25
  20. package/dist/constants/sports.js.map +1 -1
  21. package/dist/constants/storage-keys.d.ts +0 -38
  22. package/dist/constants/storage-keys.d.ts.map +1 -1
  23. package/dist/constants/storage-keys.js +0 -41
  24. package/dist/constants/storage-keys.js.map +1 -1
  25. package/dist/constants/telemetry.d.ts +0 -3
  26. package/dist/constants/telemetry.d.ts.map +1 -1
  27. package/dist/constants/telemetry.js +2 -11
  28. package/dist/constants/telemetry.js.map +1 -1
  29. package/dist/doc-schemas/admin-notifications.d.ts +0 -1
  30. package/dist/doc-schemas/admin-notifications.d.ts.map +1 -1
  31. package/dist/doc-schemas/admin-notifications.js +0 -41
  32. package/dist/doc-schemas/admin-notifications.js.map +1 -1
  33. package/dist/doc-schemas/aggregate-stats.d.ts.map +1 -1
  34. package/dist/doc-schemas/aggregate-stats.js +0 -35
  35. package/dist/doc-schemas/aggregate-stats.js.map +1 -1
  36. package/dist/doc-schemas/atoms.d.ts +0 -17
  37. package/dist/doc-schemas/atoms.d.ts.map +1 -1
  38. package/dist/doc-schemas/atoms.js +0 -36
  39. package/dist/doc-schemas/atoms.js.map +1 -1
  40. package/dist/doc-schemas/audit-event.d.ts.map +1 -1
  41. package/dist/doc-schemas/audit-event.js +0 -8
  42. package/dist/doc-schemas/audit-event.js.map +1 -1
  43. package/dist/doc-schemas/award-group-grant.d.ts +0 -6
  44. package/dist/doc-schemas/award-group-grant.d.ts.map +1 -1
  45. package/dist/doc-schemas/award-group-grant.js +0 -25
  46. package/dist/doc-schemas/award-group-grant.js.map +1 -1
  47. package/dist/doc-schemas/catalogs.d.ts.map +1 -1
  48. package/dist/doc-schemas/catalogs.js +0 -12
  49. package/dist/doc-schemas/catalogs.js.map +1 -1
  50. package/dist/doc-schemas/firestore-primitives.d.ts.map +1 -1
  51. package/dist/doc-schemas/firestore-primitives.js +0 -5
  52. package/dist/doc-schemas/firestore-primitives.js.map +1 -1
  53. package/dist/doc-schemas/gallery.d.ts.map +1 -1
  54. package/dist/doc-schemas/gallery.js +0 -15
  55. package/dist/doc-schemas/gallery.js.map +1 -1
  56. package/dist/doc-schemas/game-location.d.ts.map +1 -1
  57. package/dist/doc-schemas/game-location.js +2 -11
  58. package/dist/doc-schemas/game-location.js.map +1 -1
  59. package/dist/doc-schemas/game-stat-history.d.ts.map +1 -1
  60. package/dist/doc-schemas/game-stat-history.js +0 -9
  61. package/dist/doc-schemas/game-stat-history.js.map +1 -1
  62. package/dist/doc-schemas/game-stats.d.ts.map +1 -1
  63. package/dist/doc-schemas/game-stats.js +0 -56
  64. package/dist/doc-schemas/game-stats.js.map +1 -1
  65. package/dist/doc-schemas/league-team.d.ts.map +1 -1
  66. package/dist/doc-schemas/league-team.js +6 -29
  67. package/dist/doc-schemas/league-team.js.map +1 -1
  68. package/dist/doc-schemas/membership-roster-sync.d.ts.map +1 -1
  69. package/dist/doc-schemas/membership-roster-sync.js +0 -17
  70. package/dist/doc-schemas/membership-roster-sync.js.map +1 -1
  71. package/dist/doc-schemas/migration-console.d.ts +0 -10
  72. package/dist/doc-schemas/migration-console.d.ts.map +1 -1
  73. package/dist/doc-schemas/migration-console.js +0 -32
  74. package/dist/doc-schemas/migration-console.js.map +1 -1
  75. package/dist/doc-schemas/pending-media.d.ts.map +1 -1
  76. package/dist/doc-schemas/pending-media.js +0 -17
  77. package/dist/doc-schemas/pending-media.js.map +1 -1
  78. package/dist/doc-schemas/picture-retirement.d.ts.map +1 -1
  79. package/dist/doc-schemas/picture-retirement.js +0 -10
  80. package/dist/doc-schemas/picture-retirement.js.map +1 -1
  81. package/dist/doc-schemas/publicUser.d.ts.map +1 -1
  82. package/dist/doc-schemas/publicUser.js +0 -5
  83. package/dist/doc-schemas/publicUser.js.map +1 -1
  84. package/dist/doc-schemas/registration-start.d.ts.map +1 -1
  85. package/dist/doc-schemas/registration-start.js +2 -5
  86. package/dist/doc-schemas/registration-start.js.map +1 -1
  87. package/dist/doc-schemas/registry.d.ts.map +1 -1
  88. package/dist/doc-schemas/registry.js +0 -10
  89. package/dist/doc-schemas/registry.js.map +1 -1
  90. package/dist/doc-schemas/reserved-display-name.d.ts.map +1 -1
  91. package/dist/doc-schemas/reserved-display-name.js +0 -5
  92. package/dist/doc-schemas/reserved-display-name.js.map +1 -1
  93. package/dist/doc-schemas/sport-game.d.ts.map +1 -1
  94. package/dist/doc-schemas/sport-game.js +1 -29
  95. package/dist/doc-schemas/sport-game.js.map +1 -1
  96. package/dist/doc-schemas/sport-league.d.ts +0 -9
  97. package/dist/doc-schemas/sport-league.d.ts.map +1 -1
  98. package/dist/doc-schemas/sport-league.js +4 -26
  99. package/dist/doc-schemas/sport-league.js.map +1 -1
  100. package/dist/doc-schemas/stats-operation.d.ts.map +1 -1
  101. package/dist/doc-schemas/stats-operation.js +2 -44
  102. package/dist/doc-schemas/stats-operation.js.map +1 -1
  103. package/dist/doc-schemas/status-reconcile-queue.d.ts +0 -6
  104. package/dist/doc-schemas/status-reconcile-queue.d.ts.map +1 -1
  105. package/dist/doc-schemas/status-reconcile-queue.js +0 -13
  106. package/dist/doc-schemas/status-reconcile-queue.js.map +1 -1
  107. package/dist/doc-schemas/sweep-state.d.ts.map +1 -1
  108. package/dist/doc-schemas/sweep-state.js +4 -20
  109. package/dist/doc-schemas/sweep-state.js.map +1 -1
  110. package/dist/doc-schemas/system.d.ts.map +1 -1
  111. package/dist/doc-schemas/system.js +1 -27
  112. package/dist/doc-schemas/system.js.map +1 -1
  113. package/dist/doc-schemas/team-membership.d.ts.map +1 -1
  114. package/dist/doc-schemas/team-membership.js +0 -10
  115. package/dist/doc-schemas/team-membership.js.map +1 -1
  116. package/dist/doc-schemas/user-profile.d.ts +0 -1
  117. package/dist/doc-schemas/user-profile.d.ts.map +1 -1
  118. package/dist/doc-schemas/user-profile.js +0 -28
  119. package/dist/doc-schemas/user-profile.js.map +1 -1
  120. package/dist/doc-schemas/waiver-template.d.ts.map +1 -1
  121. package/dist/doc-schemas/waiver-template.js +4 -25
  122. package/dist/doc-schemas/waiver-template.js.map +1 -1
  123. package/dist/doc-schemas/waivers-and-hardware.d.ts.map +1 -1
  124. package/dist/doc-schemas/waivers-and-hardware.js +0 -20
  125. package/dist/doc-schemas/waivers-and-hardware.js.map +1 -1
  126. package/dist/domain-events/domain-events.d.ts.map +1 -1
  127. package/dist/domain-events/domain-events.js +0 -67
  128. package/dist/domain-events/domain-events.js.map +1 -1
  129. package/dist/ids/award-grant-ids.d.ts.map +1 -1
  130. package/dist/ids/award-grant-ids.js +0 -7
  131. package/dist/ids/award-grant-ids.js.map +1 -1
  132. package/dist/ids/compound-ids.d.ts.map +1 -1
  133. package/dist/ids/compound-ids.js +0 -7
  134. package/dist/ids/compound-ids.js.map +1 -1
  135. package/dist/ids/minted-ids.d.ts.map +1 -1
  136. package/dist/ids/minted-ids.js +4 -14
  137. package/dist/ids/minted-ids.js.map +1 -1
  138. package/dist/ids/notification-ids.d.ts.map +1 -1
  139. package/dist/ids/notification-ids.js +0 -15
  140. package/dist/ids/notification-ids.js.map +1 -1
  141. package/dist/ids/picture-ids.d.ts +0 -5
  142. package/dist/ids/picture-ids.d.ts.map +1 -1
  143. package/dist/ids/picture-ids.js +0 -11
  144. package/dist/ids/picture-ids.js.map +1 -1
  145. package/dist/ids/stat-event-ids.d.ts +0 -6
  146. package/dist/ids/stat-event-ids.d.ts.map +1 -1
  147. package/dist/ids/stat-event-ids.js +0 -15
  148. package/dist/ids/stat-event-ids.js.map +1 -1
  149. package/dist/ids/stats-operation-ids.d.ts.map +1 -1
  150. package/dist/ids/stats-operation-ids.js +0 -7
  151. package/dist/ids/stats-operation-ids.js.map +1 -1
  152. package/dist/ids/waiver-template-ids.d.ts +0 -1
  153. package/dist/ids/waiver-template-ids.d.ts.map +1 -1
  154. package/dist/ids/waiver-template-ids.js +0 -2
  155. package/dist/ids/waiver-template-ids.js.map +1 -1
  156. package/dist/index.d.ts.map +1 -1
  157. package/dist/index.js +0 -2
  158. package/dist/index.js.map +1 -1
  159. package/dist/input-formats/input-formats.d.ts +0 -80
  160. package/dist/input-formats/input-formats.d.ts.map +1 -1
  161. package/dist/input-formats/input-formats.js +0 -86
  162. package/dist/input-formats/input-formats.js.map +1 -1
  163. package/dist/media/file-origins.d.ts +0 -3
  164. package/dist/media/file-origins.d.ts.map +1 -1
  165. package/dist/media/file-origins.js +0 -26
  166. package/dist/media/file-origins.js.map +1 -1
  167. package/dist/media/picture-aspects.d.ts +0 -2
  168. package/dist/media/picture-aspects.d.ts.map +1 -1
  169. package/dist/media/picture-aspects.js +0 -5
  170. package/dist/media/picture-aspects.js.map +1 -1
  171. package/dist/media/picture-url.d.ts +0 -6
  172. package/dist/media/picture-url.d.ts.map +1 -1
  173. package/dist/media/picture-url.js +0 -9
  174. package/dist/media/picture-url.js.map +1 -1
  175. package/dist/media/upload-tray-display.d.ts +0 -3
  176. package/dist/media/upload-tray-display.d.ts.map +1 -1
  177. package/dist/media/upload-tray-display.js +0 -6
  178. package/dist/media/upload-tray-display.js.map +1 -1
  179. package/dist/migration-console/action-ids.d.ts +0 -1
  180. package/dist/migration-console/action-ids.d.ts.map +1 -1
  181. package/dist/migration-console/action-ids.js +2 -45
  182. package/dist/migration-console/action-ids.js.map +1 -1
  183. package/dist/migration-console/manifest.d.ts +0 -24
  184. package/dist/migration-console/manifest.d.ts.map +1 -1
  185. package/dist/migration-console/manifest.js +1 -56
  186. package/dist/migration-console/manifest.js.map +1 -1
  187. package/dist/migration-console/run-state.d.ts +0 -14
  188. package/dist/migration-console/run-state.d.ts.map +1 -1
  189. package/dist/migration-console/run-state.js +0 -16
  190. package/dist/migration-console/run-state.js.map +1 -1
  191. package/dist/notifications/admin-notification-config.d.ts +0 -11
  192. package/dist/notifications/admin-notification-config.d.ts.map +1 -1
  193. package/dist/notifications/admin-notification-config.js +2 -13
  194. package/dist/notifications/admin-notification-config.js.map +1 -1
  195. package/dist/notifications/archive-all.d.ts.map +1 -1
  196. package/dist/notifications/archive-all.js +0 -2
  197. package/dist/notifications/archive-all.js.map +1 -1
  198. package/dist/notifications/occurrences.d.ts +0 -3
  199. package/dist/notifications/occurrences.d.ts.map +1 -1
  200. package/dist/notifications/occurrences.js +0 -7
  201. package/dist/notifications/occurrences.js.map +1 -1
  202. package/dist/paths/app-routes.d.ts +0 -12
  203. package/dist/paths/app-routes.d.ts.map +1 -1
  204. package/dist/paths/app-routes.js +0 -18
  205. package/dist/paths/app-routes.js.map +1 -1
  206. package/dist/paths/collection-groups.d.ts.map +1 -1
  207. package/dist/paths/collection-groups.js +0 -5
  208. package/dist/paths/collection-groups.js.map +1 -1
  209. package/dist/paths/collection-refs.d.ts.map +1 -1
  210. package/dist/paths/collection-refs.js +0 -4
  211. package/dist/paths/collection-refs.js.map +1 -1
  212. package/dist/paths/collections.d.ts +0 -5
  213. package/dist/paths/collections.d.ts.map +1 -1
  214. package/dist/paths/collections.js +0 -68
  215. package/dist/paths/collections.js.map +1 -1
  216. package/dist/paths/path-builders.d.ts.map +1 -1
  217. package/dist/paths/path-builders.js +0 -16
  218. package/dist/paths/path-builders.js.map +1 -1
  219. package/dist/paths/picture-owner-paths.d.ts +0 -4
  220. package/dist/paths/picture-owner-paths.d.ts.map +1 -1
  221. package/dist/paths/picture-owner-paths.js +0 -10
  222. package/dist/paths/picture-owner-paths.js.map +1 -1
  223. package/dist/paths/storage-paths.d.ts +0 -18
  224. package/dist/paths/storage-paths.d.ts.map +1 -1
  225. package/dist/paths/storage-paths.js +0 -23
  226. package/dist/paths/storage-paths.js.map +1 -1
  227. package/dist/paths/utils.d.ts +0 -6
  228. package/dist/paths/utils.d.ts.map +1 -1
  229. package/dist/paths/utils.js +0 -9
  230. package/dist/paths/utils.js.map +1 -1
  231. package/dist/schemas/account-settings.d.ts.map +1 -1
  232. package/dist/schemas/account-settings.js +0 -7
  233. package/dist/schemas/account-settings.js.map +1 -1
  234. package/dist/schemas/admin-notifications.d.ts.map +1 -1
  235. package/dist/schemas/admin-notifications.js +0 -17
  236. package/dist/schemas/admin-notifications.js.map +1 -1
  237. package/dist/schemas/admin-stats.d.ts.map +1 -1
  238. package/dist/schemas/admin-stats.js +0 -9
  239. package/dist/schemas/admin-stats.js.map +1 -1
  240. package/dist/schemas/app-config.d.ts.map +1 -1
  241. package/dist/schemas/app-config.js +0 -10
  242. package/dist/schemas/app-config.js.map +1 -1
  243. package/dist/schemas/atoms.d.ts.map +1 -1
  244. package/dist/schemas/atoms.js +0 -10
  245. package/dist/schemas/atoms.js.map +1 -1
  246. package/dist/schemas/awards.d.ts.map +1 -1
  247. package/dist/schemas/awards.js +0 -29
  248. package/dist/schemas/awards.js.map +1 -1
  249. package/dist/schemas/dead-letters.d.ts +0 -3
  250. package/dist/schemas/dead-letters.d.ts.map +1 -1
  251. package/dist/schemas/dead-letters.js +0 -15
  252. package/dist/schemas/dead-letters.js.map +1 -1
  253. package/dist/schemas/game-locations.d.ts.map +1 -1
  254. package/dist/schemas/game-locations.js +0 -6
  255. package/dist/schemas/game-locations.js.map +1 -1
  256. package/dist/schemas/hardware-loan-contracts.d.ts.map +1 -1
  257. package/dist/schemas/hardware-loan-contracts.js +0 -13
  258. package/dist/schemas/hardware-loan-contracts.js.map +1 -1
  259. package/dist/schemas/index.d.ts.map +1 -1
  260. package/dist/schemas/index.js +0 -2
  261. package/dist/schemas/index.js.map +1 -1
  262. package/dist/schemas/leagues.d.ts.map +1 -1
  263. package/dist/schemas/leagues.js +0 -24
  264. package/dist/schemas/leagues.js.map +1 -1
  265. package/dist/schemas/migration-console.d.ts +0 -7
  266. package/dist/schemas/migration-console.d.ts.map +1 -1
  267. package/dist/schemas/migration-console.js +0 -34
  268. package/dist/schemas/migration-console.js.map +1 -1
  269. package/dist/schemas/pictures.d.ts.map +1 -1
  270. package/dist/schemas/pictures.js +0 -10
  271. package/dist/schemas/pictures.js.map +1 -1
  272. package/dist/schemas/schedules.d.ts.map +1 -1
  273. package/dist/schemas/schedules.js +0 -26
  274. package/dist/schemas/schedules.js.map +1 -1
  275. package/dist/schemas/scoring.d.ts +0 -6
  276. package/dist/schemas/scoring.d.ts.map +1 -1
  277. package/dist/schemas/scoring.js +0 -33
  278. package/dist/schemas/scoring.js.map +1 -1
  279. package/dist/schemas/signed-waivers.d.ts.map +1 -1
  280. package/dist/schemas/signed-waivers.js +0 -22
  281. package/dist/schemas/signed-waivers.js.map +1 -1
  282. package/dist/schemas/stats.d.ts.map +1 -1
  283. package/dist/schemas/stats.js +0 -60
  284. package/dist/schemas/stats.js.map +1 -1
  285. package/dist/schemas/team-joining.d.ts.map +1 -1
  286. package/dist/schemas/team-joining.js +0 -30
  287. package/dist/schemas/team-joining.js.map +1 -1
  288. package/dist/schemas/teams.d.ts +0 -1
  289. package/dist/schemas/teams.d.ts.map +1 -1
  290. package/dist/schemas/teams.js +0 -83
  291. package/dist/schemas/teams.js.map +1 -1
  292. package/dist/schemas/uploads.d.ts +0 -8
  293. package/dist/schemas/uploads.d.ts.map +1 -1
  294. package/dist/schemas/uploads.js +0 -29
  295. package/dist/schemas/uploads.js.map +1 -1
  296. package/dist/schemas/users.d.ts +0 -1
  297. package/dist/schemas/users.d.ts.map +1 -1
  298. package/dist/schemas/users.js +0 -41
  299. package/dist/schemas/users.js.map +1 -1
  300. package/dist/schemas/waiver-templates.d.ts.map +1 -1
  301. package/dist/schemas/waiver-templates.js +0 -7
  302. package/dist/schemas/waiver-templates.js.map +1 -1
  303. package/dist/sports/basketball-scoring.d.ts +0 -4
  304. package/dist/sports/basketball-scoring.d.ts.map +1 -1
  305. package/dist/sports/basketball-scoring.js +0 -34
  306. package/dist/sports/basketball-scoring.js.map +1 -1
  307. package/dist/sports/basketball.d.ts.map +1 -1
  308. package/dist/sports/basketball.js +0 -5
  309. package/dist/sports/basketball.js.map +1 -1
  310. package/dist/sports/bulk-entry.d.ts +0 -22
  311. package/dist/sports/bulk-entry.d.ts.map +1 -1
  312. package/dist/sports/bulk-entry.js +0 -10
  313. package/dist/sports/bulk-entry.js.map +1 -1
  314. package/dist/sports/column-catalog.d.ts +0 -17
  315. package/dist/sports/column-catalog.d.ts.map +1 -1
  316. package/dist/sports/column-catalog.js +0 -10
  317. package/dist/sports/column-catalog.js.map +1 -1
  318. package/dist/sports/contribution.d.ts +2 -59
  319. package/dist/sports/contribution.d.ts.map +1 -1
  320. package/dist/sports/contribution.js +2 -45
  321. package/dist/sports/contribution.js.map +1 -1
  322. package/dist/sports/curling-scoring.d.ts +0 -1
  323. package/dist/sports/curling-scoring.d.ts.map +1 -1
  324. package/dist/sports/curling-scoring.js +0 -27
  325. package/dist/sports/curling-scoring.js.map +1 -1
  326. package/dist/sports/curling.d.ts.map +1 -1
  327. package/dist/sports/curling.js +0 -4
  328. package/dist/sports/curling.js.map +1 -1
  329. package/dist/sports/finalized-record.d.ts +0 -17
  330. package/dist/sports/finalized-record.d.ts.map +1 -1
  331. package/dist/sports/finalized-record.js +0 -20
  332. package/dist/sports/finalized-record.js.map +1 -1
  333. package/dist/sports/football-scoring.d.ts.map +1 -1
  334. package/dist/sports/football-scoring.js +0 -21
  335. package/dist/sports/football-scoring.js.map +1 -1
  336. package/dist/sports/football.d.ts.map +1 -1
  337. package/dist/sports/football.js +0 -4
  338. package/dist/sports/football.js.map +1 -1
  339. package/dist/sports/index.d.ts.map +1 -1
  340. package/dist/sports/index.js +0 -2
  341. package/dist/sports/index.js.map +1 -1
  342. package/dist/sports/ledger-continuity.d.ts +0 -2
  343. package/dist/sports/ledger-continuity.d.ts.map +1 -1
  344. package/dist/sports/ledger-continuity.js +0 -5
  345. package/dist/sports/ledger-continuity.js.map +1 -1
  346. package/dist/sports/lifetime-summary.d.ts +0 -6
  347. package/dist/sports/lifetime-summary.d.ts.map +1 -1
  348. package/dist/sports/lifetime-summary.js +0 -7
  349. package/dist/sports/lifetime-summary.js.map +1 -1
  350. package/dist/sports/rankings.d.ts +0 -12
  351. package/dist/sports/rankings.d.ts.map +1 -1
  352. package/dist/sports/rankings.js +0 -15
  353. package/dist/sports/rankings.js.map +1 -1
  354. package/dist/sports/registry.d.ts +0 -10
  355. package/dist/sports/registry.d.ts.map +1 -1
  356. package/dist/sports/registry.js +0 -9
  357. package/dist/sports/registry.js.map +1 -1
  358. package/dist/sports/replay.d.ts +0 -11
  359. package/dist/sports/replay.d.ts.map +1 -1
  360. package/dist/sports/replay.js +0 -16
  361. package/dist/sports/replay.js.map +1 -1
  362. package/dist/sports/rollup-check.d.ts +0 -7
  363. package/dist/sports/rollup-check.d.ts.map +1 -1
  364. package/dist/sports/rollup-check.js +0 -14
  365. package/dist/sports/rollup-check.js.map +1 -1
  366. package/dist/sports/score-mirror.d.ts +0 -1
  367. package/dist/sports/score-mirror.d.ts.map +1 -1
  368. package/dist/sports/score-mirror.js +0 -4
  369. package/dist/sports/score-mirror.js.map +1 -1
  370. package/dist/sports/scoring-display.d.ts +0 -30
  371. package/dist/sports/scoring-display.d.ts.map +1 -1
  372. package/dist/sports/scoring-display.js +0 -9
  373. package/dist/sports/scoring-display.js.map +1 -1
  374. package/dist/sports/scoring.d.ts +0 -36
  375. package/dist/sports/scoring.d.ts.map +1 -1
  376. package/dist/sports/scoring.js +0 -10
  377. package/dist/sports/scoring.js.map +1 -1
  378. package/dist/sports/shared-columns.d.ts +0 -1
  379. package/dist/sports/shared-columns.d.ts.map +1 -1
  380. package/dist/sports/shared-columns.js +0 -7
  381. package/dist/sports/shared-columns.js.map +1 -1
  382. package/dist/sports/sport-adapter.d.ts +0 -32
  383. package/dist/sports/sport-adapter.d.ts.map +1 -1
  384. package/dist/sports/sport-adapter.js +0 -7
  385. package/dist/sports/sport-adapter.js.map +1 -1
  386. package/dist/sports/store-driver.d.ts +0 -28
  387. package/dist/sports/store-driver.d.ts.map +1 -1
  388. package/dist/sports/store-driver.js +0 -38
  389. package/dist/sports/store-driver.js.map +1 -1
  390. package/dist/types/audit.d.ts.map +1 -1
  391. package/dist/types/audit.js +0 -67
  392. package/dist/types/audit.js.map +1 -1
  393. package/dist/types/claims.d.ts +0 -10
  394. package/dist/types/claims.d.ts.map +1 -1
  395. package/dist/types/claims.js +0 -16
  396. package/dist/types/claims.js.map +1 -1
  397. package/dist/types/notifications.d.ts.map +1 -1
  398. package/dist/types/notifications.js +7 -25
  399. package/dist/types/notifications.js.map +1 -1
  400. package/dist/types/picture-owners.d.ts +0 -1
  401. package/dist/types/picture-owners.d.ts.map +1 -1
  402. package/dist/types/picture-owners.js +0 -6
  403. package/dist/types/picture-owners.js.map +1 -1
  404. package/dist/types/schedules.d.ts.map +1 -1
  405. package/dist/types/schedules.js +0 -9
  406. package/dist/types/schedules.js.map +1 -1
  407. package/dist/types/sports.d.ts.map +1 -1
  408. package/dist/types/sports.js +0 -24
  409. package/dist/types/sports.js.map +1 -1
  410. package/dist/types/stats.d.ts.map +1 -1
  411. package/dist/types/stats.js +0 -65
  412. package/dist/types/stats.js.map +1 -1
  413. package/dist/types/unions.d.ts +0 -2
  414. package/dist/types/unions.d.ts.map +1 -1
  415. package/dist/types/unions.js +3 -91
  416. package/dist/types/unions.js.map +1 -1
  417. package/dist/types/uploads.d.ts.map +1 -1
  418. package/dist/types/uploads.js +0 -7
  419. package/dist/types/uploads.js.map +1 -1
  420. package/dist/upload-variables/on-progress.d.ts.map +1 -1
  421. package/dist/upload-variables/on-progress.js +2 -5
  422. package/dist/upload-variables/on-progress.js.map +1 -1
  423. package/dist/upload-variables/picture-upload-variables.d.ts +0 -1
  424. package/dist/upload-variables/picture-upload-variables.d.ts.map +1 -1
  425. package/dist/upload-variables/picture-upload-variables.js +0 -4
  426. package/dist/upload-variables/picture-upload-variables.js.map +1 -1
  427. package/dist/upload-variables/sign-hardware-contract-variables.d.ts.map +1 -1
  428. package/dist/upload-variables/sign-hardware-contract-variables.js +0 -2
  429. package/dist/upload-variables/sign-hardware-contract-variables.js.map +1 -1
  430. package/dist/upload-variables/sign-waiver-variables.d.ts.map +1 -1
  431. package/dist/upload-variables/sign-waiver-variables.js +0 -4
  432. package/dist/upload-variables/sign-waiver-variables.js.map +1 -1
  433. package/dist/utils/account-status.d.ts.map +1 -1
  434. package/dist/utils/account-status.js +0 -4
  435. package/dist/utils/account-status.js.map +1 -1
  436. package/dist/utils/app-config.d.ts +0 -53
  437. package/dist/utils/app-config.d.ts.map +1 -1
  438. package/dist/utils/app-config.js +0 -62
  439. package/dist/utils/app-config.js.map +1 -1
  440. package/dist/utils/display-name.d.ts +0 -7
  441. package/dist/utils/display-name.d.ts.map +1 -1
  442. package/dist/utils/display-name.js +0 -8
  443. package/dist/utils/display-name.js.map +1 -1
  444. package/dist/utils/league-calendar.d.ts +0 -11
  445. package/dist/utils/league-calendar.d.ts.map +1 -1
  446. package/dist/utils/league-calendar.js +1 -18
  447. package/dist/utils/league-calendar.js.map +1 -1
  448. package/dist/utils/league-join-warning.d.ts +0 -11
  449. package/dist/utils/league-join-warning.d.ts.map +1 -1
  450. package/dist/utils/league-join-warning.js +0 -28
  451. package/dist/utils/league-join-warning.js.map +1 -1
  452. package/dist/utils/league-joining.d.ts +0 -1
  453. package/dist/utils/league-joining.d.ts.map +1 -1
  454. package/dist/utils/league-joining.js +0 -7
  455. package/dist/utils/league-joining.js.map +1 -1
  456. package/dist/utils/league-mode.d.ts +0 -1
  457. package/dist/utils/league-mode.d.ts.map +1 -1
  458. package/dist/utils/league-mode.js +0 -4
  459. package/dist/utils/league-mode.js.map +1 -1
  460. package/dist/utils/schedules.d.ts +0 -15
  461. package/dist/utils/schedules.d.ts.map +1 -1
  462. package/dist/utils/schedules.js +0 -19
  463. package/dist/utils/schedules.js.map +1 -1
  464. package/dist/utils/team-creation.d.ts +0 -2
  465. package/dist/utils/team-creation.d.ts.map +1 -1
  466. package/dist/utils/team-creation.js +0 -6
  467. package/dist/utils/team-creation.js.map +1 -1
  468. package/dist/utils/team-member-actions.d.ts +0 -6
  469. package/dist/utils/team-member-actions.d.ts.map +1 -1
  470. package/dist/utils/team-member-actions.js +0 -12
  471. package/dist/utils/team-member-actions.js.map +1 -1
  472. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"picture-owner-paths.js","sourceRoot":"","sources":["../../src/paths/picture-owner-paths.ts"],"names":[],"mappings":"AAAA,2GAA2G;AAC3G,iGAAiG;AACjG,mGAAmG;AACnG,0EAA0E;AAS1E,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,WAAW,EAAE,EAAE,QAAQ,EAAE,CAAC,OAAe,EAAE,EAAE,CAAC,aAAa,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE;IAClF,UAAU,EAAE,EAAE,QAAQ,EAAE,CAAC,OAAe,EAAE,EAAE,CAAC,aAAa,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE;IAChF,kEAAkE;IAClE,WAAW,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,iBAAiB,EAAE,EAAE;CAC8B,CAAC;AAEnG,iGAAiG;AACjG,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,YAAY,EAAE;QACZ,QAAQ,EAAE,CAAC,OAAe,EAAE,EAAE,CAAC,aAAa,CAAC,YAAY,CAAC,OAAO,CAAC;QAClE,SAAS,EAAE,WAAwC;KACpD;IACD,eAAe,EAAE;QACf,QAAQ,EAAE,CAAC,OAAe,EAAE,EAAE,CAAC,aAAa,CAAC,eAAe,CAAC,OAAO,CAAC;QACrE,SAAS,EAAE,gBAAgD;KAC5D;CAIF,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,GAAG,mBAAmB;IACtB,GAAG,mBAAmB;CAC0E,CAAC;AAEnG;;;GAGG;AACH,MAAM,UAAU,gBAAgB,CAAC,IAAsB,EAAE,OAAe;IACtE,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC;IACvC,OAAO,IAAI,KAAK,aAAa,IAAI,OAAO,KAAK,YAAY,CAAC,YAAY,CAAC;AACzE,CAAC","sourcesContent":["// The document each kind of picture owner is (RULE-STD-ARCH-104), split by what the picture core writes on\n// it: a gallery owner holds a `pictures` summary, and a slot owner holds one picture in its slot\n// field. A writer indexes the map for the owners it writes, so its target is only those documents;\n// the full map, composed from both, serves the reads that take any owner.\n\nimport type { AwardDefinition } from '../doc-schemas/catalogs.js';\nimport type { GameLocation } from '../doc-schemas/game-location.js';\nimport type {\n GalleryOwnerKind,\n PictureOwnerKind,\n PictureSlotOwnerKind,\n} from '../types/picture-owners.js';\nimport { SPECIAL_DOCS } from './collections.js';\nimport { PATH_BUILDERS } from './path-builders.js';\n\nexport const GALLERY_OWNER_PATHS = {\n sportLeague: { ownerDoc: (ownerId: string) => PATH_BUILDERS.sportLeague(ownerId) },\n leagueTeam: { ownerDoc: (ownerId: string) => PATH_BUILDERS.leagueTeam(ownerId) },\n // There is one landing page, and its owner id is its document id.\n landingPage: { ownerDoc: () => PATH_BUILDERS.landingPageConfig() },\n} as const satisfies Record<GalleryOwnerKind, { ownerDoc: (ownerId: string) => [string, string] }>;\n\n// Each slot field is a key of its own document's schema, so a renamed field fails to build here.\nexport const PICTURE_SLOT_OWNERS = {\n gameLocation: {\n ownerDoc: (ownerId: string) => PATH_BUILDERS.gameLocation(ownerId),\n slotField: 'pictureId' satisfies keyof GameLocation,\n },\n awardDefinition: {\n ownerDoc: (ownerId: string) => PATH_BUILDERS.awardDefinition(ownerId),\n slotField: 'badgePictureId' satisfies keyof AwardDefinition,\n },\n} as const satisfies Record<\n PictureSlotOwnerKind,\n { ownerDoc: (ownerId: string) => [string, string]; slotField: string }\n>;\n\nexport const PICTURE_OWNER_PATHS = {\n ...GALLERY_OWNER_PATHS,\n ...PICTURE_SLOT_OWNERS,\n} as const satisfies Record<PictureOwnerKind, { ownerDoc: (ownerId: string) => [string, string] }>;\n\n/**\n * Whether an owner id can name an owner of its kind. Every kind but the landing page takes any\n * document id; the landing page is the one document `SPECIAL_DOCS.LANDING_PAGE` names.\n */\nexport function isPictureOwnerId(kind: PictureOwnerKind, ownerId: string): boolean {\n if (ownerId.length === 0) return false;\n return kind !== 'landingPage' || ownerId === SPECIAL_DOCS.LANDING_PAGE;\n}\n"]}
1
+ {"version":3,"file":"picture-owner-paths.js","sourceRoot":"","sources":["../../src/paths/picture-owner-paths.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,WAAW,EAAE,EAAE,QAAQ,EAAE,CAAC,OAAe,EAAE,EAAE,CAAC,aAAa,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE;IAClF,UAAU,EAAE,EAAE,QAAQ,EAAE,CAAC,OAAe,EAAE,EAAE,CAAC,aAAa,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE;IAChF,WAAW,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,iBAAiB,EAAE,EAAE;CAC8B,CAAC;AAEnG,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,YAAY,EAAE;QACZ,QAAQ,EAAE,CAAC,OAAe,EAAE,EAAE,CAAC,aAAa,CAAC,YAAY,CAAC,OAAO,CAAC;QAClE,SAAS,EAAE,WAAwC;KACpD;IACD,eAAe,EAAE;QACf,QAAQ,EAAE,CAAC,OAAe,EAAE,EAAE,CAAC,aAAa,CAAC,eAAe,CAAC,OAAO,CAAC;QACrE,SAAS,EAAE,gBAAgD;KAC5D;CAIF,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,GAAG,mBAAmB;IACtB,GAAG,mBAAmB;CAC0E,CAAC;AAEnG,MAAM,UAAU,gBAAgB,CAAC,IAAsB,EAAE,OAAe;IACtE,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC;IACvC,OAAO,IAAI,KAAK,aAAa,IAAI,OAAO,KAAK,YAAY,CAAC,YAAY,CAAC;AACzE,CAAC","sourcesContent":["import type { AwardDefinition } from '../doc-schemas/catalogs.js';\nimport type { GameLocation } from '../doc-schemas/game-location.js';\nimport type {\n GalleryOwnerKind,\n PictureOwnerKind,\n PictureSlotOwnerKind,\n} from '../types/picture-owners.js';\nimport { SPECIAL_DOCS } from './collections.js';\nimport { PATH_BUILDERS } from './path-builders.js';\n\nexport const GALLERY_OWNER_PATHS = {\n sportLeague: { ownerDoc: (ownerId: string) => PATH_BUILDERS.sportLeague(ownerId) },\n leagueTeam: { ownerDoc: (ownerId: string) => PATH_BUILDERS.leagueTeam(ownerId) },\n landingPage: { ownerDoc: () => PATH_BUILDERS.landingPageConfig() },\n} as const satisfies Record<GalleryOwnerKind, { ownerDoc: (ownerId: string) => [string, string] }>;\n\nexport const PICTURE_SLOT_OWNERS = {\n gameLocation: {\n ownerDoc: (ownerId: string) => PATH_BUILDERS.gameLocation(ownerId),\n slotField: 'pictureId' satisfies keyof GameLocation,\n },\n awardDefinition: {\n ownerDoc: (ownerId: string) => PATH_BUILDERS.awardDefinition(ownerId),\n slotField: 'badgePictureId' satisfies keyof AwardDefinition,\n },\n} as const satisfies Record<\n PictureSlotOwnerKind,\n { ownerDoc: (ownerId: string) => [string, string]; slotField: string }\n>;\n\nexport const PICTURE_OWNER_PATHS = {\n ...GALLERY_OWNER_PATHS,\n ...PICTURE_SLOT_OWNERS,\n} as const satisfies Record<PictureOwnerKind, { ownerDoc: (ownerId: string) => [string, string] }>;\n\nexport function isPictureOwnerId(kind: PictureOwnerKind, ownerId: string): boolean {\n if (ownerId.length === 0) return false;\n return kind !== 'landingPage' || ownerId === SPECIAL_DOCS.LANDING_PAGE;\n}\n"]}
@@ -1,35 +1,17 @@
1
1
  import type { FileOrigin } from '../media/file-origins.js';
2
2
  import type { PictureVariantKey } from '../types/unions.js';
3
3
  export declare const USER_FILES_PREFIX = "users/";
4
- /** Everything a client uploads lands under this prefix, and nothing else does. */
5
4
  export declare const STAGING_UPLOAD_PREFIX = "uploads/";
6
- /** A real user's own waiver signature for one league. */
7
5
  export declare function buildSignedWaiverPath(userId: string, leagueId: string, fileName: string): string;
8
- /** A ghost player's waiver signature, captured by a witness for the ghost's team, `teamId`. */
9
6
  export declare function buildGhostSignedWaiverPath(ghostUserId: string, leagueId: string, teamId: string, fileName: string): string;
10
- /** A referee's signature on one hardware contract, named for its staging id like every kept signature. */
11
7
  export declare function buildHardwareSignaturePath(userId: string, contractId: string, fileId: string): string;
12
- /** The folder holding every processed size of one picture. */
13
8
  export declare function buildPictureObjectPrefix(pictureId: string): string;
14
- /**
15
- * One processed size of a picture. Every picture kind shares this prefix, and the key carries no
16
- * extension: the object's own content type says what it is.
17
- */
18
9
  export declare function buildPictureObjectPath(pictureId: string, variantKey: PictureVariantKey): string;
19
- /**
20
- * Where a client stages one upload: its origin, the uploader's own uid, and the id it minted. The
21
- * callable that accepts the upload rebuilds this from the AUTHENTICATED uid and refuses anything
22
- * not exactly equal (RULE-STD-MEDIA-002), so a client can only ever name its own staged object.
23
- */
24
10
  export declare function buildStagingUploadPath(fileOrigin: FileOrigin, userId: string, stagingId: string): string;
25
11
  export interface StagingUploadPathParts {
26
12
  fileOrigin: FileOrigin;
27
13
  userId: string;
28
14
  stagingId: string;
29
15
  }
30
- /**
31
- * The parts of a staging path, or `null` for anything that is not one: another prefix, a wrong
32
- * segment count, an unknown origin, an empty uid, or a staging id that is not a lowercase UUID.
33
- */
34
16
  export declare function parseStagingUploadPath(path: string): StagingUploadPathParts | null;
35
17
  //# sourceMappingURL=storage-paths.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"storage-paths.d.ts","sourceRoot":"","sources":["../../src/paths/storage-paths.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAE3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAE5D,eAAO,MAAM,iBAAiB,WAAW,CAAC;AAM1C,kFAAkF;AAClF,eAAO,MAAM,qBAAqB,aAAuB,CAAC;AAE1D,yDAAyD;AACzD,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAEhG;AAED,+FAA+F;AAC/F,wBAAgB,0BAA0B,CACxC,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,GACf,MAAM,CAER;AAED,0GAA0G;AAC1G,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,MAAM,GACb,MAAM,CAER;AAED,8DAA8D;AAC9D,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAElE;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,MA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MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,GAChB,MAAM,CAER;AAED,MAAM,WAAW,sBAAsB;IACrC,UAAU,EAAE,UAAU,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,sBAAsB,GAAG,IAAI,CAOlF"}
@@ -1,8 +1,3 @@
1
- // Cloud Storage path builders. Storage paths are plain slash strings — no SDK takes segments.
2
- //
3
- // The staging path is the one path a client writes. Every other path is derived by the server:
4
- // picture sizes by the picture processor, and signature files — legal artifacts kept under their
5
- // subject's prefix, with no client grant at all — by the callable that records the signing.
6
1
  import { isFileOrigin } from '../media/file-origins.js';
7
2
  import { isStagingId } from '../ids/picture-ids.js';
8
3
  export const USER_FILES_PREFIX = 'users/';
@@ -10,43 +5,25 @@ const SIGNED_WAIVERS_FOLDER = 'waiverSigs';
10
5
  const HARDWARE_SIGNATURES_FOLDER = 'hardwareSigs';
11
6
  const PICTURES_FOLDER = 'pictures';
12
7
  const STAGING_FOLDER = 'uploads';
13
- /** Everything a client uploads lands under this prefix, and nothing else does. */
14
8
  export const STAGING_UPLOAD_PREFIX = `${STAGING_FOLDER}/`;
15
- /** A real user's own waiver signature for one league. */
16
9
  export function buildSignedWaiverPath(userId, leagueId, fileName) {
17
10
  return `${USER_FILES_PREFIX}${userId}/${SIGNED_WAIVERS_FOLDER}/${leagueId}/${fileName}`;
18
11
  }
19
- /** A ghost player's waiver signature, captured by a witness for the ghost's team, `teamId`. */
20
12
  export function buildGhostSignedWaiverPath(ghostUserId, leagueId, teamId, fileName) {
21
13
  return `${USER_FILES_PREFIX}${ghostUserId}/${SIGNED_WAIVERS_FOLDER}/${leagueId}/${teamId}/${fileName}`;
22
14
  }
23
- /** A referee's signature on one hardware contract, named for its staging id like every kept signature. */
24
15
  export function buildHardwareSignaturePath(userId, contractId, fileId) {
25
16
  return `${USER_FILES_PREFIX}${userId}/${HARDWARE_SIGNATURES_FOLDER}/${contractId}/${fileId}`;
26
17
  }
27
- /** The folder holding every processed size of one picture. */
28
18
  export function buildPictureObjectPrefix(pictureId) {
29
19
  return `${PICTURES_FOLDER}/${pictureId}`;
30
20
  }
31
- /**
32
- * One processed size of a picture. Every picture kind shares this prefix, and the key carries no
33
- * extension: the object's own content type says what it is.
34
- */
35
21
  export function buildPictureObjectPath(pictureId, variantKey) {
36
22
  return `${buildPictureObjectPrefix(pictureId)}/${variantKey}`;
37
23
  }
38
- /**
39
- * Where a client stages one upload: its origin, the uploader's own uid, and the id it minted. The
40
- * callable that accepts the upload rebuilds this from the AUTHENTICATED uid and refuses anything
41
- * not exactly equal (RULE-STD-MEDIA-002), so a client can only ever name its own staged object.
42
- */
43
24
  export function buildStagingUploadPath(fileOrigin, userId, stagingId) {
44
25
  return `${STAGING_UPLOAD_PREFIX}${fileOrigin}/${userId}/${stagingId}`;
45
26
  }
46
- /**
47
- * The parts of a staging path, or `null` for anything that is not one: another prefix, a wrong
48
- * segment count, an unknown origin, an empty uid, or a staging id that is not a lowercase UUID.
49
- */
50
27
  export function parseStagingUploadPath(path) {
51
28
  const segments = path.split('/');
52
29
  if (segments.length !== 4)
@@ -1 +1 @@
1
- {"version":3,"file":"storage-paths.js","sourceRoot":"","sources":["../../src/paths/storage-paths.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,EAAE;AACF,+FAA+F;AAC/F,iGAAiG;AACjG,4FAA4F;AAE5F,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAGpD,MAAM,CAAC,MAAM,iBAAiB,GAAG,QAAQ,CAAC;AAC1C,MAAM,qBAAqB,GAAG,YAAY,CAAC;AAC3C,MAAM,0BAA0B,GAAG,cAAc,CAAC;AAClD,MAAM,eAAe,GAAG,UAAU,CAAC;AACnC,MAAM,cAAc,GAAG,SAAS,CAAC;AAEjC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;QAAE,OAAO,IAAI,CAAC;IACvC,MAAM,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,CAAC,GAAG,QAA4C,CAAC;IAC7F,IAAI,MAAM,KAAK,cAAc,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IAC/F,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC;QAAE,OAAO,IAAI,CAAC;IACzC,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;AAC3C,CAAC","sourcesContent":["// Cloud Storage path builders. Storage paths are plain slash strings — no SDK takes segments.\n//\n// The staging path is the one path a client writes. Every other path is derived by the server:\n// picture sizes by the picture processor, and signature files — legal artifacts kept under their\n// subject's prefix, with no client grant at all — by the callable that records the signing.\n\nimport { isFileOrigin } from '../media/file-origins.js';\nimport type { FileOrigin } from '../media/file-origins.js';\nimport { isStagingId } from '../ids/picture-ids.js';\nimport type { PictureVariantKey } from '../types/unions.js';\n\nexport const USER_FILES_PREFIX = 'users/';\nconst SIGNED_WAIVERS_FOLDER = 'waiverSigs';\nconst HARDWARE_SIGNATURES_FOLDER = 'hardwareSigs';\nconst PICTURES_FOLDER = 'pictures';\nconst STAGING_FOLDER = 'uploads';\n\n/** Everything a client uploads lands under this prefix, and nothing else does. */\nexport const STAGING_UPLOAD_PREFIX = `${STAGING_FOLDER}/`;\n\n/** A real user's own waiver signature for one league. */\nexport function buildSignedWaiverPath(userId: string, leagueId: string, fileName: string): string {\n return `${USER_FILES_PREFIX}${userId}/${SIGNED_WAIVERS_FOLDER}/${leagueId}/${fileName}`;\n}\n\n/** A ghost player's waiver signature, captured by a witness for the ghost's team, `teamId`. */\nexport function buildGhostSignedWaiverPath(\n ghostUserId: string,\n leagueId: string,\n teamId: string,\n fileName: string,\n): string {\n return `${USER_FILES_PREFIX}${ghostUserId}/${SIGNED_WAIVERS_FOLDER}/${leagueId}/${teamId}/${fileName}`;\n}\n\n/** A referee's signature on one hardware contract, named for its staging id like every kept signature. */\nexport function buildHardwareSignaturePath(\n userId: string,\n contractId: string,\n fileId: string,\n): string {\n return `${USER_FILES_PREFIX}${userId}/${HARDWARE_SIGNATURES_FOLDER}/${contractId}/${fileId}`;\n}\n\n/** The folder holding every processed size of one picture. */\nexport function buildPictureObjectPrefix(pictureId: string): string {\n return `${PICTURES_FOLDER}/${pictureId}`;\n}\n\n/**\n * One processed size of a picture. Every picture kind shares this prefix, and the key carries no\n * extension: the object's own content type says what it is.\n */\nexport function buildPictureObjectPath(pictureId: string, variantKey: PictureVariantKey): string {\n return `${buildPictureObjectPrefix(pictureId)}/${variantKey}`;\n}\n\n/**\n * Where a client stages one upload: its origin, the uploader's own uid, and the id it minted. The\n * callable that accepts the upload rebuilds this from the AUTHENTICATED uid and refuses anything\n * not exactly equal (RULE-STD-MEDIA-002), so a client can only ever name its own staged object.\n */\nexport function buildStagingUploadPath(\n fileOrigin: FileOrigin,\n userId: string,\n stagingId: string,\n): string {\n return `${STAGING_UPLOAD_PREFIX}${fileOrigin}/${userId}/${stagingId}`;\n}\n\nexport interface StagingUploadPathParts {\n fileOrigin: FileOrigin;\n userId: string;\n stagingId: string;\n}\n\n/**\n * The parts of a staging path, or `null` for anything that is not one: another prefix, a wrong\n * segment count, an unknown origin, an empty uid, or a staging id that is not a lowercase UUID.\n */\nexport function parseStagingUploadPath(path: string): StagingUploadPathParts | null {\n const segments = path.split('/');\n if (segments.length !== 4) return null;\n const [folder, fileOrigin, userId, stagingId] = segments as [string, string, string, string];\n if (folder !== STAGING_FOLDER || !isFileOrigin(fileOrigin) || userId.length === 0) return null;\n if (!isStagingId(stagingId)) return null;\n return { fileOrigin, userId, stagingId };\n}\n"]}
1
+ {"version":3,"file":"storage-paths.js","sourceRoot":"","sources":["../../src/paths/storage-paths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,OA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UAAU,sBAAsB,CAAC,IAAY;IACjD,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACjC,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IACvC,MAAM,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,CAAC,GAAG,QAA4C,CAAC;IAC7F,IAAI,MAAM,KAAK,cAAc,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IAC/F,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC;QAAE,OAAO,IAAI,CAAC;IACzC,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;AAC3C,CAAC","sourcesContent":["import { isFileOrigin } from '../media/file-origins.js';\nimport type { FileOrigin } from '../media/file-origins.js';\nimport { isStagingId } from '../ids/picture-ids.js';\nimport type { PictureVariantKey } from '../types/unions.js';\n\nexport const USER_FILES_PREFIX = 'users/';\nconst SIGNED_WAIVERS_FOLDER = 'waiverSigs';\nconst HARDWARE_SIGNATURES_FOLDER = 'hardwareSigs';\nconst PICTURES_FOLDER = 'pictures';\nconst STAGING_FOLDER = 'uploads';\n\nexport const STAGING_UPLOAD_PREFIX = `${STAGING_FOLDER}/`;\n\nexport function buildSignedWaiverPath(userId: string, leagueId: string, fileName: string): string {\n return `${USER_FILES_PREFIX}${userId}/${SIGNED_WAIVERS_FOLDER}/${leagueId}/${fileName}`;\n}\n\nexport function buildGhostSignedWaiverPath(\n ghostUserId: string,\n leagueId: string,\n teamId: string,\n fileName: string,\n): string {\n return `${USER_FILES_PREFIX}${ghostUserId}/${SIGNED_WAIVERS_FOLDER}/${leagueId}/${teamId}/${fileName}`;\n}\n\nexport function buildHardwareSignaturePath(\n userId: string,\n contractId: string,\n fileId: string,\n): string {\n return `${USER_FILES_PREFIX}${userId}/${HARDWARE_SIGNATURES_FOLDER}/${contractId}/${fileId}`;\n}\n\nexport function buildPictureObjectPrefix(pictureId: string): string {\n return `${PICTURES_FOLDER}/${pictureId}`;\n}\n\nexport function buildPictureObjectPath(pictureId: string, variantKey: PictureVariantKey): string {\n return `${buildPictureObjectPrefix(pictureId)}/${variantKey}`;\n}\n\nexport function buildStagingUploadPath(\n fileOrigin: FileOrigin,\n userId: string,\n stagingId: string,\n): string {\n return `${STAGING_UPLOAD_PREFIX}${fileOrigin}/${userId}/${stagingId}`;\n}\n\nexport interface StagingUploadPathParts {\n fileOrigin: FileOrigin;\n userId: string;\n stagingId: string;\n}\n\nexport function parseStagingUploadPath(path: string): StagingUploadPathParts | null {\n const segments = path.split('/');\n if (segments.length !== 4) return null;\n const [folder, fileOrigin, userId, stagingId] = segments as [string, string, string, string];\n if (folder !== STAGING_FOLDER || !isFileOrigin(fileOrigin) || userId.length === 0) return null;\n if (!isStagingId(stagingId)) return null;\n return { fileOrigin, userId, stagingId };\n}\n"]}
@@ -1,10 +1,4 @@
1
1
  export declare function toPath(segments: readonly string[]): string;
2
2
  export declare const MAX_DOCUMENT_ID_BYTES = 1500;
3
- /**
4
- * Whether `id` names exactly one document under its collection: non-empty, no `/`, at most
5
- * `MAX_DOCUMENT_ID_BYTES` UTF-8 bytes, not `.` or `..`, and not an id Firestore reserves (`__…__`).
6
- * A `/` would address another document or a subcollection, and an empty id the collection itself,
7
- * so every id atom a path is built from checks this before any path exists (RULE-STD-ARCH-106).
8
- */
9
3
  export declare function isDocumentIdSegment(id: string): boolean;
10
4
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/paths/utils.ts"],"names":[],"mappings":"AAIA,wBAAgB,MAAM,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAE1D;AAGD,eAAO,MAAM,qBAAqB,OAAO,CAAC;AAI1C;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAKvD"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/paths/utils.ts"],"names":[],"mappings":"AAAA,wBAAgB,MAAM,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAE1D;AAGD,eAAO,MAAM,qBAAqB,OAAO,CAAC;AAI1C,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAKvD"}
@@ -1,18 +1,9 @@
1
- // Utility to convert path tuples to slash-delimited strings for Admin SDK.
2
- //
3
- // Usage: db.doc(toPath(PATH_BUILDERS.userProfile(userId)))
4
1
  export function toPath(segments) {
5
2
  return segments.join('/');
6
3
  }
7
4
  // Firestore's limit on a document id, in UTF-8 bytes.
8
5
  export const MAX_DOCUMENT_ID_BYTES = 1500;
9
6
  const RESERVED_DOCUMENT_ID_PATTERN = /^__.*__$/;
10
- /**
11
- * Whether `id` names exactly one document under its collection: non-empty, no `/`, at most
12
- * `MAX_DOCUMENT_ID_BYTES` UTF-8 bytes, not `.` or `..`, and not an id Firestore reserves (`__…__`).
13
- * A `/` would address another document or a subcollection, and an empty id the collection itself,
14
- * so every id atom a path is built from checks this before any path exists (RULE-STD-ARCH-106).
15
- */
16
7
  export function isDocumentIdSegment(id) {
17
8
  if (id.length === 0 || id.includes('/'))
18
9
  return false;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/paths/utils.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,EAAE;AACF,2DAA2D;AAE3D,MAAM,UAAU,MAAM,CAAC,QAA2B;IAChD,OAAO,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC5B,CAAC;AAED,sDAAsD;AACtD,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,CAAC;AAE1C,MAAM,4BAA4B,GAAG,UAAU,CAAC;AAEhD;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CAAC,EAAU;IAC5C,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC;QAAE,OAAO,KAAK,CAAC;IACtD,IAAI,EAAE,KAAK,GAAG,IAAI,EAAE,KAAK,IAAI;QAAE,OAAO,KAAK,CAAC;IAC5C,IAAI,4BAA4B,CAAC,IAAI,CAAC,EAAE,CAAC;QAAE,OAAO,KAAK,CAAC;IACxD,OAAO,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,IAAI,qBAAqB,CAAC;AACtE,CAAC","sourcesContent":["// Utility to convert path tuples to slash-delimited strings for Admin SDK.\n//\n// Usage: db.doc(toPath(PATH_BUILDERS.userProfile(userId)))\n\nexport function toPath(segments: readonly string[]): string {\n return segments.join('/');\n}\n\n// Firestore's limit on a document id, in UTF-8 bytes.\nexport const MAX_DOCUMENT_ID_BYTES = 1500;\n\nconst RESERVED_DOCUMENT_ID_PATTERN = /^__.*__$/;\n\n/**\n * Whether `id` names exactly one document under its collection: non-empty, no `/`, at most\n * `MAX_DOCUMENT_ID_BYTES` UTF-8 bytes, not `.` or `..`, and not an id Firestore reserves (`__…__`).\n * A `/` would address another document or a subcollection, and an empty id the collection itself,\n * so every id atom a path is built from checks this before any path exists (RULE-STD-ARCH-106).\n */\nexport function isDocumentIdSegment(id: string): boolean {\n if (id.length === 0 || id.includes('/')) return false;\n if (id === '.' || id === '..') return false;\n if (RESERVED_DOCUMENT_ID_PATTERN.test(id)) return false;\n return new TextEncoder().encode(id).length <= MAX_DOCUMENT_ID_BYTES;\n}\n"]}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/paths/utils.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,MAAM,CAAC,QAA2B;IAChD,OAAO,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC5B,CAAC;AAED,sDAAsD;AACtD,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,CAAC;AAE1C,MAAM,4BAA4B,GAAG,UAAU,CAAC;AAEhD,MAAM,UAAU,mBAAmB,CAAC,EAAU;IAC5C,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC;QAAE,OAAO,KAAK,CAAC;IACtD,IAAI,EAAE,KAAK,GAAG,IAAI,EAAE,KAAK,IAAI;QAAE,OAAO,KAAK,CAAC;IAC5C,IAAI,4BAA4B,CAAC,IAAI,CAAC,EAAE,CAAC;QAAE,OAAO,KAAK,CAAC;IACxD,OAAO,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,IAAI,qBAAqB,CAAC;AACtE,CAAC","sourcesContent":["export function toPath(segments: readonly string[]): string {\n return segments.join('/');\n}\n\n// Firestore's limit on a document id, in UTF-8 bytes.\nexport const MAX_DOCUMENT_ID_BYTES = 1500;\n\nconst RESERVED_DOCUMENT_ID_PATTERN = /^__.*__$/;\n\nexport function isDocumentIdSegment(id: string): boolean {\n if (id.length === 0 || id.includes('/')) return false;\n if (id === '.' || id === '..') return false;\n if (RESERVED_DOCUMENT_ID_PATTERN.test(id)) return false;\n return new TextEncoder().encode(id).length <= MAX_DOCUMENT_ID_BYTES;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"account-settings.d.ts","sourceRoot":"","sources":["../../src/schemas/account-settings.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,gCAAgC;;;;;;;;kBAUzC,CAAC;AACL,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAI1F,eAAO,MAAM,iCAAiC;;;;;;;;;kBAOnC,CAAC;AACZ,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC"}
1
+ {"version":3,"file":"account-settings.d.ts","sourceRoot":"","sources":["../../src/schemas/account-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,gCAAgC;;;;;;;;kBASzC,CAAC;AACL,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAE1F,eAAO,MAAM,iCAAiC;;;;;;;;;kBAOnC,CAAC;AACZ,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC"}
@@ -1,7 +1,3 @@
1
- // Callable contract for the signed-in user's own settings on their owner-only
2
- // `userProfiles/{userId}/privateData/{userId}` document: the account's copy of the viewer's theme
3
- // and motion — the save theme-core's settings sync calls — and the account-only default contact
4
- // phone. The caller is always the account being changed; no user id is ever sent.
5
1
  import { z } from 'zod';
6
2
  import { epochMsSchema } from '../doc-schemas/atoms.js';
7
3
  import { themeNameSchema } from '../doc-schemas/user-profile.js';
@@ -10,15 +6,12 @@ export const UpdateAccountSettingsInputSchema = z
10
6
  .object({
11
7
  theme: themeNameSchema.optional(),
12
8
  reducedMotion: z.boolean().optional(),
13
- // `null` removes the saved number.
14
9
  defaultContactPhone: contactPhoneSchema.nullable().optional(),
15
10
  })
16
11
  .strict()
17
12
  .refine((input) => Object.values(input).some((value) => value !== undefined), {
18
13
  message: 'Change at least one setting.',
19
14
  });
20
- // Every setting as committed, `null` where the account has nothing saved — the shape the settings
21
- // sync reads the account's values in.
22
15
  export const UpdateAccountSettingsResultSchema = z
23
16
  .object({
24
17
  theme: themeNameSchema.nullable(),
@@ -1 +1 @@
1
- {"version":3,"file":"account-settings.js","sourceRoot":"","sources":["../../src/schemas/account-settings.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,kGAAkG;AAClG,gGAAgG;AAChG,kFAAkF;AAElF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC;KAC9C,MAAM,CAAC;IACN,KAAK,EAAE,eAAe,CAAC,QAAQ,EAAE;IACjC,aAAa,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACrC,mCAAmC;IACnC,mBAAmB,EAAE,kBAAkB,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CAC9D,CAAC;KACD,MAAM,EAAE;KACR,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,SAAS,CAAC,EAAE;IAC5E,OAAO,EAAE,8BAA8B;CACxC,CAAC,CAAC;AAGL,kGAAkG;AAClG,sCAAsC;AACtC,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC;KAC/C,MAAM,CAAC;IACN,KAAK,EAAE,eAAe,CAAC,QAAQ,EAAE;IACjC,aAAa,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACrC,mBAAmB,EAAE,kBAAkB,CAAC,QAAQ,EAAE;IAClD,SAAS,EAAE,aAAa;CACzB,CAAC;KACD,MAAM,EAAE,CAAC","sourcesContent":["// Callable contract for the signed-in user's own settings on their owner-only\n// `userProfiles/{userId}/privateData/{userId}` document: the account's copy of the viewer's theme\n// and motion — the save theme-core's settings sync calls — and the account-only default contact\n// phone. The caller is always the account being changed; no user id is ever sent.\n\nimport { z } from 'zod';\nimport { epochMsSchema } from '../doc-schemas/atoms.js';\nimport { themeNameSchema } from '../doc-schemas/user-profile.js';\nimport { contactPhoneSchema } from './atoms.js';\n\nexport const UpdateAccountSettingsInputSchema = z\n .object({\n theme: themeNameSchema.optional(),\n reducedMotion: z.boolean().optional(),\n // `null` removes the saved number.\n defaultContactPhone: contactPhoneSchema.nullable().optional(),\n })\n .strict()\n .refine((input) => Object.values(input).some((value) => value !== undefined), {\n message: 'Change at least one setting.',\n });\nexport type UpdateAccountSettingsInput = z.infer<typeof UpdateAccountSettingsInputSchema>;\n\n// Every setting as committed, `null` where the account has nothing saved — the shape the settings\n// sync reads the account's values in.\nexport const UpdateAccountSettingsResultSchema = z\n .object({\n theme: themeNameSchema.nullable(),\n reducedMotion: z.boolean().nullable(),\n defaultContactPhone: contactPhoneSchema.nullable(),\n updatedAt: epochMsSchema,\n })\n .strict();\nexport type UpdateAccountSettingsResult = z.infer<typeof UpdateAccountSettingsResultSchema>;\n"]}
1
+ {"version":3,"file":"account-settings.js","sourceRoot":"","sources":["../../src/schemas/account-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC;KAC9C,MAAM,CAAC;IACN,KAAK,EAAE,eAAe,CAAC,QAAQ,EAAE;IACjC,aAAa,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACrC,mBAAmB,EAAE,kBAAkB,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CAC9D,CAAC;KACD,MAAM,EAAE;KACR,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,SAAS,CAAC,EAAE;IAC5E,OAAO,EAAE,8BAA8B;CACxC,CAAC,CAAC;AAGL,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC;KAC/C,MAAM,CAAC;IACN,KAAK,EAAE,eAAe,CAAC,QAAQ,EAAE;IACjC,aAAa,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACrC,mBAAmB,EAAE,kBAAkB,CAAC,QAAQ,EAAE;IAClD,SAAS,EAAE,aAAa;CACzB,CAAC;KACD,MAAM,EAAE,CAAC","sourcesContent":["import { z } from 'zod';\nimport { epochMsSchema } from '../doc-schemas/atoms.js';\nimport { themeNameSchema } from '../doc-schemas/user-profile.js';\nimport { contactPhoneSchema } from './atoms.js';\n\nexport const UpdateAccountSettingsInputSchema = z\n .object({\n theme: themeNameSchema.optional(),\n reducedMotion: z.boolean().optional(),\n defaultContactPhone: contactPhoneSchema.nullable().optional(),\n })\n .strict()\n .refine((input) => Object.values(input).some((value) => value !== undefined), {\n message: 'Change at least one setting.',\n });\nexport type UpdateAccountSettingsInput = z.infer<typeof UpdateAccountSettingsInputSchema>;\n\nexport const UpdateAccountSettingsResultSchema = z\n .object({\n theme: themeNameSchema.nullable(),\n reducedMotion: z.boolean().nullable(),\n defaultContactPhone: contactPhoneSchema.nullable(),\n updatedAt: epochMsSchema,\n })\n .strict();\nexport type UpdateAccountSettingsResult = z.infer<typeof UpdateAccountSettingsResultSchema>;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"admin-notifications.d.ts","sourceRoot":"","sources":["../../src/schemas/admin-notifications.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,yBAAyB,aAEoB,CAAC;AAK3D,eAAO,MAAM,wBAAwB,aAA6B,CAAC;AAInE,eAAO,MAAM,2BAA2B,WAAW,CAAC;AAEpD,eAAO,MAAM,iCAAiC,aAEgD,CAAC;AAE/F,eAAO,MAAM,mCAAmC;;;;kBAMrC,CAAC;AACZ,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAA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AAM,uCAAuC;;kBAEzC,CAAC;AACZ,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,uCAAuC,CAC/C,CAAC;AACF,eAAO,MAAM,wCAAwC;;kBAE1C,CAAC;AACZ,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,wCAAwC,CAChD,CAAC;AAEF,eAAO,MAAM,+CAA+C;;kBAEjD,CAAC;AACZ,MAAM,MAAM,yCAAyC,GAAG,CAAC,CAAC,KAAK,CAC7D,OAAO,+CAA+C,CACvD,CAAC;AACF,eAAO,MAAM,gDAAgD;;;;;;;;;;;kBAQlD,CAAC;AACZ,MAAM,MAAM,0CAA0C,GAAG,CAAC,CAAC,KAAK,CAC9D,OAAO,gDAAgD,CACxD,CAAC"}
@@ -1,23 +1,11 @@
1
- // Callable contracts for the shared admin notifications: archiving one, archiving all of them,
2
- // and reading how an archive-all is going. The occurrences the delivery worker gave up on are listed
3
- // and replayed through the operator's dead letters (./dead-letters.ts). Admin only; a card is never
4
- // created by a client — the callable that owns each notified action writes its occurrence
5
- // (RULE-STD-BACKEND-306).
6
1
  import { z } from 'zod';
7
2
  import { parseNotificationArchiveAllJobId } from '../ids/notification-ids.js';
8
3
  import { ADMIN_NOTIFICATION_CATEGORY, NOTIFICATION_ARCHIVE_ALL_JOB_STATE_KEYS, } from '../types/notifications.js';
9
4
  import { countSchema } from '../doc-schemas/atoms.js';
10
- // A card's document id as notification-core derives it: a hex digest. Bounding it to letters and
11
- // digits keeps a client-sent id from addressing anything but a document of the card collection.
12
5
  export const adminNotificationIdSchema = z
13
6
  .string()
14
7
  .regex(/^[A-Za-z0-9]{1,128}$/, 'Not a notification id.');
15
- // The opaque generation token a card carried when the admin saw it. An action on the card applies
16
- // only while the card still carries it, so activity that arrived after the admin looked is never
17
- // archived unseen.
18
8
  export const activityGenerationSchema = z.string().min(1).max(128);
19
- // A fresh UUID per click. An archive's history entry and an archive-all's job are keyed by it, so a
20
- // retry of the same click lands on what the first attempt wrote.
21
9
  export const notificationRequestIdSchema = z.uuid();
22
10
  export const notificationArchiveAllJobIdSchema = z
23
11
  .string()
@@ -29,8 +17,6 @@ export const AdminArchiveNotificationInputSchema = z
29
17
  observedActivityGeneration: activityGenerationSchema,
30
18
  })
31
19
  .strict();
32
- // `archived` is false when there was nothing to archive at the generation named: another admin
33
- // archived the card first, or new activity lit it again, and it stays on the list.
34
20
  export const AdminArchiveNotificationResultSchema = z.object({ archived: z.boolean() }).strict();
35
21
  export const AdminArchiveAllNotificationsInputSchema = z
36
22
  .object({ requestId: notificationRequestIdSchema })
@@ -41,9 +27,6 @@ export const AdminArchiveAllNotificationsResultSchema = z
41
27
  export const AdminGetNotificationArchiveAllStatusInputSchema = z
42
28
  .object({ jobId: notificationArchiveAllJobIdSchema })
43
29
  .strict();
44
- // notification-core's archive-all snapshot: the job's state, the category it drains, how many
45
- // cards it has archived, and — on a completed job that left cards behind — how many it could not.
46
- // A job that ran out of attempts with cards left reads as `incomplete`.
47
30
  export const AdminGetNotificationArchiveAllStatusResultSchema = z
48
31
  .object({
49
32
  state: z.enum(NOTIFICATION_ARCHIVE_ALL_JOB_STATE_KEYS),
@@ -1 +1 @@
1
- {"version":3,"file":"admin-notifications.js","sourceRoot":"","sources":["../../src/schemas/admin-notifications.ts"],"names":[],"mappings":"AAAA,+FAA+F;AAC/F,qGAAqG;AACrG,oGAAoG;AACpG,0FAA0F;AAC1F,0BAA0B;AAE1B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gCAAgC,EAAE,MAAM,4BAA4B,CAAC;AAC9E,OAAO,EACL,2BAA2B,EAC3B,uCAAuC,GACxC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,iGAAiG;AACjG,gGAAgG;AAChG,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC;KACvC,MAAM,EAAE;KACR,KAAK,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AA8F;AAC9F,kGAAkG;AAClG,wEAAwE;AACxE,MAAM,CAAC,MAAM,gDAAgD,GAAG,CAAC;KAC9D,MAAM,CAAC;IACN,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,uCAAuC,CAAC;IACtD,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC,2BAA2B,CAAC;IAChD,QAAQ,EAAE,WAAW;IACrB,WAAW,EAAE,WAAW,CAAC,QAAQ,EAAE;IACnC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAC;KACD,MAAM,EAAE,CAAC","sourcesContent":["// Callable contracts for the shared admin notifications: archiving one, archiving all of them,\n// and reading how an archive-all is going. The occurrences the delivery worker gave up on are listed\n// and replayed through the operator's dead letters (./dead-letters.ts). Admin only; a card is never\n// created by a client — the callable that owns each notified action writes its occurrence\n// (RULE-STD-BACKEND-306).\n\nimport { z } from 'zod';\nimport { parseNotificationArchiveAllJobId } from '../ids/notification-ids.js';\nimport {\n ADMIN_NOTIFICATION_CATEGORY,\n NOTIFICATION_ARCHIVE_ALL_JOB_STATE_KEYS,\n} from '../types/notifications.js';\nimport { countSchema } from '../doc-schemas/atoms.js';\n\n// A card's document id as notification-core derives it: a hex digest. Bounding it to letters and\n// digits keeps a client-sent id from addressing anything but a document of the card collection.\nexport const adminNotificationIdSchema = z\n .string()\n .regex(/^[A-Za-z0-9]{1,128}$/, 'Not a notification id.');\n\n// The opaque generation token a card carried when the admin saw it. An action on the card applies\n// only while the card still carries it, so activity that arrived after the admin looked is never\n// archived unseen.\nexport const activityGenerationSchema = z.string().min(1).max(128);\n\n// A fresh UUID per click. An archive's history entry and an archive-all's job are keyed by it, so a\n// retry of the same click lands on what the first attempt wrote.\nexport const notificationRequestIdSchema = z.uuid();\n\nexport const notificationArchiveAllJobIdSchema = z\n .string()\n .refine((id) => parseNotificationArchiveAllJobId(id) !== null, 'Not an archive-all job id.');\n\nexport const AdminArchiveNotificationInputSchema = z\n .object({\n requestId: notificationRequestIdSchema,\n notificationId: adminNotificationIdSchema,\n observedActivityGeneration: activityGenerationSchema,\n })\n .strict();\nexport type AdminArchiveNotificationInput = z.infer<typeof AdminArchiveNotificationInputSchema>;\n// `archived` is false when there was nothing to archive at the generation named: another admin\n// archived the card first, or new activity lit it again, and it stays on the list.\nexport const AdminArchiveNotificationResultSchema = z.object({ archived: z.boolean() }).strict();\nexport type AdminArchiveNotificationResult = z.infer<typeof AdminArchiveNotificationResultSchema>;\n\nexport const AdminArchiveAllNotificationsInputSchema = z\n .object({ requestId: notificationRequestIdSchema })\n .strict();\nexport type AdminArchiveAllNotificationsInput = z.infer<\n typeof AdminArchiveAllNotificationsInputSchema\n>;\nexport const AdminArchiveAllNotificationsResultSchema = z\n .object({ jobId: notificationArchiveAllJobIdSchema })\n .strict();\nexport type AdminArchiveAllNotificationsResult = z.infer<\n typeof AdminArchiveAllNotificationsResultSchema\n>;\n\nexport const AdminGetNotificationArchiveAllStatusInputSchema = z\n .object({ jobId: notificationArchiveAllJobIdSchema })\n .strict();\nexport type AdminGetNotificationArchiveAllStatusInput = z.infer<\n typeof AdminGetNotificationArchiveAllStatusInputSchema\n>;\n// notification-core's archive-all snapshot: the job's state, the category it drains, how many\n// cards it has archived, and — on a completed job that left cards behind — how many it could not.\n// A job that ran out of attempts with cards left reads as `incomplete`.\nexport const AdminGetNotificationArchiveAllStatusResultSchema = z\n .object({\n state: z.enum(NOTIFICATION_ARCHIVE_ALL_JOB_STATE_KEYS),\n category: z.literal(ADMIN_NOTIFICATION_CATEGORY),\n archived: countSchema,\n notArchived: countSchema.optional(),\n error: z.string().optional(),\n })\n .strict();\nexport type AdminGetNotificationArchiveAllStatusResult = z.infer<\n typeof AdminGetNotificationArchiveAllStatusResultSchema\n>;\n"]}
1
+ {"version":3,"file":"admin-notifications.js","sourceRoot":"","sources":["../../src/schemas/admin-notifications.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;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,CAAC;AAKZ,MAAM,CAAC,MAAM,+CAA+C,GAAG,CAAC;KAC7D,MAAM,CAAC,EAAE,KAAK,EAAE,iCAAiC,EAAE,CAAC;KACpD,MAAM,EAAE,CAAC;AAIZ,MAAM,CAAC,MAAM,gDAAgD,GAAG,CAAC;KAC9D,MAAM,CAAC;IACN,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,uCAAuC,CAAC;IACtD,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC,2BAA2B,CAAC;IAChD,QAAQ,EAAE,WAAW;IACrB,WAAW,EAAE,WAAW,CAAC,QAAQ,EAAE;IACnC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAC;KACD,MAAM,EAAE,CAAC","sourcesContent":["import { z } from 'zod';\nimport { parseNotificationArchiveAllJobId } from '../ids/notification-ids.js';\nimport {\n ADMIN_NOTIFICATION_CATEGORY,\n NOTIFICATION_ARCHIVE_ALL_JOB_STATE_KEYS,\n} from '../types/notifications.js';\nimport { countSchema } from '../doc-schemas/atoms.js';\n\nexport const adminNotificationIdSchema = z\n .string()\n .regex(/^[A-Za-z0-9]{1,128}$/, 'Not a notification id.');\n\nexport const activityGenerationSchema = z.string().min(1).max(128);\n\nexport const notificationRequestIdSchema = z.uuid();\n\nexport const notificationArchiveAllJobIdSchema = z\n .string()\n .refine((id) => parseNotificationArchiveAllJobId(id) !== null, 'Not an archive-all job id.');\n\nexport const AdminArchiveNotificationInputSchema = z\n .object({\n requestId: notificationRequestIdSchema,\n notificationId: adminNotificationIdSchema,\n observedActivityGeneration: activityGenerationSchema,\n })\n .strict();\nexport type AdminArchiveNotificationInput = z.infer<typeof AdminArchiveNotificationInputSchema>;\nexport const AdminArchiveNotificationResultSchema = z.object({ archived: z.boolean() }).strict();\nexport type AdminArchiveNotificationResult = z.infer<typeof AdminArchiveNotificationResultSchema>;\n\nexport const AdminArchiveAllNotificationsInputSchema = z\n .object({ requestId: notificationRequestIdSchema })\n .strict();\nexport type AdminArchiveAllNotificationsInput = z.infer<\n typeof AdminArchiveAllNotificationsInputSchema\n>;\nexport const AdminArchiveAllNotificationsResultSchema = z\n .object({ jobId: notificationArchiveAllJobIdSchema })\n .strict();\nexport type AdminArchiveAllNotificationsResult = z.infer<\n typeof AdminArchiveAllNotificationsResultSchema\n>;\n\nexport const AdminGetNotificationArchiveAllStatusInputSchema = z\n .object({ jobId: notificationArchiveAllJobIdSchema })\n .strict();\nexport type AdminGetNotificationArchiveAllStatusInput = z.infer<\n typeof AdminGetNotificationArchiveAllStatusInputSchema\n>;\nexport const AdminGetNotificationArchiveAllStatusResultSchema = z\n .object({\n state: z.enum(NOTIFICATION_ARCHIVE_ALL_JOB_STATE_KEYS),\n category: z.literal(ADMIN_NOTIFICATION_CATEGORY),\n archived: countSchema,\n notArchived: countSchema.optional(),\n error: z.string().optional(),\n })\n .strict();\nexport type AdminGetNotificationArchiveAllStatusResult = z.infer<\n typeof AdminGetNotificationArchiveAllStatusResultSchema\n>;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"admin-stats.d.ts","sourceRoot":"","sources":["../../src/schemas/admin-stats.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,qBAAqB,aAA8B,CAAC;AAEjE,eAAO,MAAM,gBAAgB;;;;;;;;;;kBAkBlB,CAAC;AACZ,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,wBAAwB,+DAAkC,CAAC;AACxE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,eAAO,MAAM,yBAAyB;;;;;;;;;;;;kBAAiD,CAAC;AACxF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
1
+ {"version":3,"file":"admin-stats.d.ts","sourceRoot":"","sources":["../../src/schemas/admin-stats.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,qBAAqB,aAA8B,CAAC;AAEjE,eAAO,MAAM,gBAAgB;;;;;;;;;;kBAYlB,CAAC;AACZ,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,wBAAwB,+DAAkC,CAAC;AACxE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,eAAO,MAAM,yBAAyB;;;;;;;;;;;;kBAAiD,CAAC;AACxF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
@@ -1,8 +1,5 @@
1
- // Callable contract for the admin dashboard's counts. Nothing stores them: `getAdminStats` counts the
2
- // collections on every read, so the answer is the counts as they stand at `updatedAt`.
3
1
  import { z } from 'zod';
4
2
  import { countSchema, epochMsSchema } from '../doc-schemas/atoms.js';
5
- // The calendar year of a league's `leagueStartDate` — the key of the teams-per-year breakdown.
6
3
  export const leagueStartYearSchema = z.string().regex(/^\d{4}$/);
7
4
  export const AdminStatsSchema = z
8
5
  .object({
@@ -11,15 +8,9 @@ export const AdminStatsSchema = z
11
8
  totalLeagues: countSchema,
12
9
  activeLeagues: countSchema,
13
10
  upcomingLeagues: countSchema,
14
- // Games with the completed status — the one finished status a game holds.
15
11
  totalGamesPlayed: countSchema,
16
- // Free-agent signups in active and upcoming leagues only: a closed league's leftover signups
17
- // are nobody looking for a team.
18
12
  activeFreeAgents: countSchema,
19
- // Teams per year of their league's start date. The years sum to `totalTeams` except for a team
20
- // whose league no longer exists, which has no year to count under.
21
13
  teamsByYear: z.record(leagueStartYearSchema, countSchema),
22
- // When the counts were taken.
23
14
  updatedAt: epochMsSchema,
24
15
  })
25
16
  .strict();
@@ -1 +1 @@
1
- {"version":3,"file":"admin-stats.js","sourceRoot":"","sources":["../../src/schemas/admin-stats.ts"],"names":[],"mappings":"AAAA,sGAAsG;AACtG,uFAAuF;AAEvF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAErE,+FAA+F;AAC/F,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AAEjE,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC;KAC9B,MAAM,CAAC;IACN,UAAU,EAAE,WAAW;IACvB,UAAU,EAAE,WAAW;IACvB,YAAY,EAAE,WAAW;IACzB,aAAa,EAAE,WAAW;IAC1B,eAAe,EAAE,WAAW;IAC5B,0EAA0E;IAC1E,gBAAgB,EAAE,WAAW;IAC7B,6FAA6F;IAC7F,iCAAiC;IACjC,gBAAgB,EAAE,WAAW;IAC7B,+FAA+F;IAC/F,mEAAmE;IACnE,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,qBAAqB,EAAE,WAAW,CAAC;IACzD,8BAA8B;IAC9B,SAAS,EAAE,aAAa;CACzB,CAAC;KACD,MAAM,EAAE,CAAC;AAGZ,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,CAAC;AAExE,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC","sourcesContent":["// Callable contract for the admin dashboard's counts. Nothing stores them: `getAdminStats` counts the\n// collections on every read, so the answer is the counts as they stand at `updatedAt`.\n\nimport { z } from 'zod';\nimport { countSchema, epochMsSchema } from '../doc-schemas/atoms.js';\n\n// The calendar year of a league's `leagueStartDate` — the key of the teams-per-year breakdown.\nexport const leagueStartYearSchema = z.string().regex(/^\\d{4}$/);\n\nexport const AdminStatsSchema = z\n .object({\n totalUsers: countSchema,\n totalTeams: countSchema,\n totalLeagues: countSchema,\n activeLeagues: countSchema,\n upcomingLeagues: countSchema,\n // Games with the completed status — the one finished status a game holds.\n totalGamesPlayed: countSchema,\n // Free-agent signups in active and upcoming leagues only: a closed league's leftover signups\n // are nobody looking for a team.\n activeFreeAgents: countSchema,\n // Teams per year of their league's start date. The years sum to `totalTeams` except for a team\n // whose league no longer exists, which has no year to count under.\n teamsByYear: z.record(leagueStartYearSchema, countSchema),\n // When the counts were taken.\n updatedAt: epochMsSchema,\n })\n .strict();\nexport type AdminStats = z.infer<typeof AdminStatsSchema>;\n\nexport const GetAdminStatsInputSchema = z.object({}).strict().nullish();\nexport type GetAdminStatsInput = z.infer<typeof GetAdminStatsInputSchema>;\nexport const GetAdminStatsResultSchema = z.object({ stats: AdminStatsSchema }).strict();\nexport type GetAdminStatsResult = z.infer<typeof GetAdminStatsResultSchema>;\n"]}
1
+ {"version":3,"file":"admin-stats.js","sourceRoot":"","sources":["../../src/schemas/admin-stats.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAErE,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AAEjE,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC;KAC9B,MAAM,CAAC;IACN,UAAU,EAAE,WAAW;IACvB,UAAU,EAAE,WAAW;IACvB,YAAY,EAAE,WAAW;IACzB,aAAa,EAAE,WAAW;IAC1B,eAAe,EAAE,WAAW;IAC5B,gBAAgB,EAAE,WAAW;IAC7B,gBAAgB,EAAE,WAAW;IAC7B,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,qBAAqB,EAAE,WAAW,CAAC;IACzD,SAAS,EAAE,aAAa;CACzB,CAAC;KACD,MAAM,EAAE,CAAC;AAGZ,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,CAAC;AAExE,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC","sourcesContent":["import { z } from 'zod';\nimport { countSchema, epochMsSchema } from '../doc-schemas/atoms.js';\n\nexport const leagueStartYearSchema = z.string().regex(/^\\d{4}$/);\n\nexport const AdminStatsSchema = z\n .object({\n totalUsers: countSchema,\n totalTeams: countSchema,\n totalLeagues: countSchema,\n activeLeagues: countSchema,\n upcomingLeagues: countSchema,\n totalGamesPlayed: countSchema,\n activeFreeAgents: countSchema,\n teamsByYear: z.record(leagueStartYearSchema, countSchema),\n updatedAt: epochMsSchema,\n })\n .strict();\nexport type AdminStats = z.infer<typeof AdminStatsSchema>;\n\nexport const GetAdminStatsInputSchema = z.object({}).strict().nullish();\nexport type GetAdminStatsInput = z.infer<typeof GetAdminStatsInputSchema>;\nexport const GetAdminStatsResultSchema = z.object({ stats: AdminStatsSchema }).strict();\nexport type GetAdminStatsResult = z.infer<typeof GetAdminStatsResultSchema>;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"app-config.d.ts","sourceRoot":"","sources":["../../src/schemas/app-config.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,eAAO,MAAM,0BAA0B;;;;;;kBAanC,CAAC;AACL,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,2BAA2B;;;;;;;;kBAE7B,CAAC;AACZ,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAKhF,eAAO,MAAM,iCAAiC;;;kBAQ1C,CAAC;AACL,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAG5F,eAAO,MAAM,kCAAkC;;;;kBAMpC,CAAC;AACZ,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC"}
1
+ {"version":3,"file":"app-config.d.ts","sourceRoot":"","sources":["../../src/schemas/app-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,eAAO,MAAM,0BAA0B;;;;;;kBAWnC,CAAC;AACL,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,2BAA2B;;;;;;;;kBAE7B,CAAC;AACZ,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,iCAAiC;;;kBAQ1C,CAAC;AACL,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAE5F,eAAO,MAAM,kCAAkC;;;;kBAMpC,CAAC;AACZ,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC"}
@@ -1,19 +1,13 @@
1
- // Callable contracts for the `_appConfig` documents an admin edits: the app-wide operational levers
2
- // and the landing page copy. Each input is a named field set (RULE-STD-BACKEND-209) — never a document id
3
- // and a `data` blob.
4
1
  import { z } from 'zod';
5
2
  import { epochMsSchema, textFieldSchema } from '../doc-schemas/atoms.js';
6
3
  import { ANNOUNCEMENT_MESSAGE_INPUT_FORMAT, APP_VERSION_INPUT_FORMAT, LANDING_ABOUT_TEXT_INPUT_FORMAT, LANDING_HERO_TITLE_INPUT_FORMAT, MAINTENANCE_MESSAGE_INPUT_FORMAT, } from '../input-formats/input-formats.js';
7
4
  import { AppConfigSchema } from '../doc-schemas/system.js';
8
- // An admin changes one or more levers on `_appConfig/app`. A lever left out keeps its value.
9
5
  export const UpdateAppConfigInputSchema = z
10
6
  .object({
11
- // A published version is never blank: `''` is only the dormant default of a fresh environment.
12
7
  appVersion: textFieldSchema(APP_VERSION_INPUT_FORMAT).optional(),
13
8
  maintenanceMode: z.boolean().optional(),
14
9
  maintenanceMessage: textFieldSchema(MAINTENANCE_MESSAGE_INPUT_FORMAT).optional(),
15
10
  registrationEnabled: z.boolean().optional(),
16
- // `''` clears the banner.
17
11
  announcementMessage: textFieldSchema(ANNOUNCEMENT_MESSAGE_INPUT_FORMAT).optional(),
18
12
  })
19
13
  .strict()
@@ -23,9 +17,6 @@ export const UpdateAppConfigInputSchema = z
23
17
  export const UpdateAppConfigResultSchema = z
24
18
  .object({ updatedFields: z.array(AppConfigSchema.keyof()) })
25
19
  .strict();
26
- // An admin edits the landing page copy on `_appConfig/landingPage`. The editor sends only the
27
- // fields the admin changed, so saving one never rewrites the other with what this editor last read.
28
- // The landing gallery is not part of this: only the picture core writes it.
29
20
  export const AdminUpdateLandingPageInputSchema = z
30
21
  .object({
31
22
  heroTitle: textFieldSchema(LANDING_HERO_TITLE_INPUT_FORMAT).optional(),
@@ -35,7 +26,6 @@ export const AdminUpdateLandingPageInputSchema = z
35
26
  .refine((input) => Object.values(input).some((value) => value !== undefined), {
36
27
  message: 'Change at least one field.',
37
28
  });
38
- // The copy as committed, so the caller can apply it to its cached landing document.
39
29
  export const AdminUpdateLandingPageResultSchema = z
40
30
  .object({
41
31
  heroTitle: z.string(),
@@ -1 +1 @@
1
- {"version":3,"file":"app-config.js","sourceRoot":"","sources":["../../src/schemas/app-config.ts"],"names":[],"mappings":"AAAA,oGAAoG;AACpG,0GAA0G;AAC1G,qBAAq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SAAS,EAAE,eAAe,CAAC,+BAA+B,CAAC,CAAC,QAAQ,EAAE;IACtE,YAAY,EAAE,eAAe,CAAC,+BAA+B,CAAC,CAAC,QAAQ,EAAE;CAC1E,CAAC;KACD,MAAM,EAAE;KACR,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,SAAS,CAAC,EAAE;IAC5E,OAAO,EAAE,4BAA4B;CACtC,CAAC,CAAC;AAGL,oFAAoF;AACpF,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC;KAChD,MAAM,CAAC;IACN,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,SAAS,EAAE,aAAa;CACzB,CAAC;KACD,MAAM,EAAE,CAAC","sourcesContent":["// Callable contracts for the `_appConfig` documents an admin edits: the app-wide operational levers\n// and the landing page copy. Each input is a named field set (RULE-STD-BACKEND-209) — never a document id\n// and a `data` blob.\n\nimport { z } from 'zod';\nimport { epochMsSchema, textFieldSchema } from '../doc-schemas/atoms.js';\nimport {\n ANNOUNCEMENT_MESSAGE_INPUT_FORMAT,\n APP_VERSION_INPUT_FORMAT,\n LANDING_ABOUT_TEXT_INPUT_FORMAT,\n LANDING_HERO_TITLE_INPUT_FORMAT,\n MAINTENANCE_MESSAGE_INPUT_FORMAT,\n} from '../input-formats/input-formats.js';\nimport { AppConfigSchema } from '../doc-schemas/system.js';\n\n// An admin changes one or more levers on `_appConfig/app`. A lever left out keeps its value.\nexport const UpdateAppConfigInputSchema = z\n .object({\n // A published version is never blank: `''` is only the dormant default of a fresh environment.\n appVersion: textFieldSchema(APP_VERSION_INPUT_FORMAT).optional(),\n maintenanceMode: z.boolean().optional(),\n maintenanceMessage: textFieldSchema(MAINTENANCE_MESSAGE_INPUT_FORMAT).optional(),\n registrationEnabled: z.boolean().optional(),\n // `''` clears the banner.\n announcementMessage: textFieldSchema(ANNOUNCEMENT_MESSAGE_INPUT_FORMAT).optional(),\n })\n .strict()\n .refine((input) => Object.values(input).some((value) => value !== undefined), {\n message: 'Change at least one setting.',\n });\nexport type UpdateAppConfigInput = z.infer<typeof UpdateAppConfigInputSchema>;\n\nexport const UpdateAppConfigResultSchema = z\n .object({ updatedFields: z.array(AppConfigSchema.keyof()) })\n .strict();\nexport type UpdateAppConfigResult = z.infer<typeof UpdateAppConfigResultSchema>;\n\n// An admin edits the landing page copy on `_appConfig/landingPage`. The editor sends only the\n// fields the admin changed, so saving one never rewrites the other with what this editor last read.\n// The landing gallery is not part of this: only the picture core writes it.\nexport const AdminUpdateLandingPageInputSchema = z\n .object({\n heroTitle: textFieldSchema(LANDING_HERO_TITLE_INPUT_FORMAT).optional(),\n aboutCompany: textFieldSchema(LANDING_ABOUT_TEXT_INPUT_FORMAT).optional(),\n })\n .strict()\n .refine((input) => Object.values(input).some((value) => value !== undefined), {\n message: 'Change at least one field.',\n });\nexport type AdminUpdateLandingPageInput = z.infer<typeof AdminUpdateLandingPageInputSchema>;\n\n// The copy as committed, so the caller can apply it to its cached landing document.\nexport const AdminUpdateLandingPageResultSchema = z\n .object({\n heroTitle: z.string(),\n aboutCompany: z.string(),\n updatedAt: epochMsSchema,\n })\n .strict();\nexport type AdminUpdateLandingPageResult = z.infer<typeof AdminUpdateLandingPageResultSchema>;\n"]}
1
+ {"version":3,"file":"app-config.js","sourceRoot":"","sources":["../../src/schemas/app-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,EACL,iCAAiC,EACjC,wBAAwB,EACxB,+BAA+B,EAC/B,+BAA+B,EAC/B,gCAAgC,GACjC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,0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C;AAGL,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC;KAChD,MAAM,CAAC;IACN,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,SAAS,EAAE,aAAa;CACzB,CAAC;KACD,MAAM,EAAE,CAAC","sourcesContent":["import { z } from 'zod';\nimport { epochMsSchema, textFieldSchema } from '../doc-schemas/atoms.js';\nimport {\n ANNOUNCEMENT_MESSAGE_INPUT_FORMAT,\n APP_VERSION_INPUT_FORMAT,\n LANDING_ABOUT_TEXT_INPUT_FORMAT,\n LANDING_HERO_TITLE_INPUT_FORMAT,\n MAINTENANCE_MESSAGE_INPUT_FORMAT,\n} from '../input-formats/input-formats.js';\nimport { AppConfigSchema } from '../doc-schemas/system.js';\n\nexport const UpdateAppConfigInputSchema = z\n .object({\n appVersion: textFieldSchema(APP_VERSION_INPUT_FORMAT).optional(),\n maintenanceMode: z.boolean().optional(),\n maintenanceMessage: textFieldSchema(MAINTENANCE_MESSAGE_INPUT_FORMAT).optional(),\n registrationEnabled: z.boolean().optional(),\n announcementMessage: textFieldSchema(ANNOUNCEMENT_MESSAGE_INPUT_FORMAT).optional(),\n })\n .strict()\n .refine((input) => Object.values(input).some((value) => value !== undefined), {\n message: 'Change at least one setting.',\n });\nexport type UpdateAppConfigInput = z.infer<typeof UpdateAppConfigInputSchema>;\n\nexport const UpdateAppConfigResultSchema = z\n .object({ updatedFields: z.array(AppConfigSchema.keyof()) })\n .strict();\nexport type UpdateAppConfigResult = z.infer<typeof UpdateAppConfigResultSchema>;\n\nexport const AdminUpdateLandingPageInputSchema = z\n .object({\n heroTitle: textFieldSchema(LANDING_HERO_TITLE_INPUT_FORMAT).optional(),\n aboutCompany: textFieldSchema(LANDING_ABOUT_TEXT_INPUT_FORMAT).optional(),\n })\n .strict()\n .refine((input) => Object.values(input).some((value) => value !== undefined), {\n message: 'Change at least one field.',\n });\nexport type AdminUpdateLandingPageInput = z.infer<typeof AdminUpdateLandingPageInputSchema>;\n\nexport const AdminUpdateLandingPageResultSchema = z\n .object({\n heroTitle: z.string(),\n aboutCompany: z.string(),\n updatedAt: epochMsSchema,\n })\n .strict();\nexport type AdminUpdateLandingPageResult = z.infer<typeof AdminUpdateLandingPageResultSchema>;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"atoms.d.ts","sourceRoot":"","sources":["../../src/schemas/atoms.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAaxB,eAAO,MAAM,iBAAiB;;;EAA8B,CAAC;AAC7D,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,sBAAsB,aAA0B,CAAC;AAC9D,eAAO,MAAM,uBAAuB,aAA0B,CAAC;AAI/D,eAAO,MAAM,iBAAiB,wDAA6C,CAAC;AAC5E,eAAO,MAAM,cAAc,wDAA0C,CAAC;AAGtE,eAAO,MAAM,4BAA4B,wDAA0D,CAAC;AAEpG,eAAO,MAAM,2BAA2B,wDAAwD,CAAC;AAEjG,eAAO,MAAM,kBAAkB,wDAA8C,CAAC"}
1
+ {"version":3,"file":"atoms.d.ts","sourceRoot":"","sources":["../../src/schemas/atoms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,eAAO,MAAM,iBAAiB;;;EAA8B,CAAC;AAC7D,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,sBAAsB,aAA0B,CAAC;AAC9D,eAAO,MAAM,uBAAuB,aAA0B,CAAC;AAE/D,eAAO,MAAM,iBAAiB,wDAA6C,CAAC;AAC5E,eAAO,MAAM,cAAc,wDAA0C,CAAC;AACtE,eAAO,MAAM,4BAA4B,wDAA0D,CAAC;AACpG,eAAO,MAAM,2BAA2B,wDAAwD,CAAC;AACjG,eAAO,MAAM,kBAAkB,wDAA8C,CAAC"}
@@ -1,22 +1,12 @@
1
- // Atoms only callable wire contracts use. Enums, id atoms, the count, and the repair reason are the
2
- // document atoms, declared once in doc-schemas/atoms.ts and imported from there.
3
1
  import { z } from 'zod';
4
2
  import { CONTACT_PHONE_INPUT_FORMAT, DISPLAY_NAME_INPUT_FORMAT, TEAM_INVITATION_MESSAGE_INPUT_FORMAT, TEAM_JOIN_REQUEST_MESSAGE_INPUT_FORMAT, TEAM_NAME_INPUT_FORMAT, } from '../input-formats/input-formats.js';
5
3
  import { documentIdSegmentSchema, textFieldSchema } from '../doc-schemas/atoms.js';
6
- // Which entry of a member/admin twin pair of callables an action calls: the member entry, which
7
- // re-reads the caller's team membership, or the admin entry, which re-reads the role roster.
8
4
  export const actingEntrySchema = z.enum(['member', 'admin']);
9
5
  export const teamInvitationIdSchema = documentIdSegmentSchema;
10
6
  export const teamJoinRequestIdSchema = documentIdSegmentSchema;
11
- // A display name and a team name, each built from its field's one declaration, so the form and the
12
- // wire run the same check.
13
7
  export const displayNameSchema = textFieldSchema(DISPLAY_NAME_INPUT_FORMAT);
14
8
  export const teamNameSchema = textFieldSchema(TEAM_NAME_INPUT_FORMAT);
15
- // A player's message with a join request, built from the field's one declaration, so the form and
16
- // the wire run the same check.
17
9
  export const teamJoinRequestMessageSchema = textFieldSchema(TEAM_JOIN_REQUEST_MESSAGE_INPUT_FORMAT);
18
- // A captain's note on an invitation is optional — an empty note is stored as the empty string.
19
10
  export const teamInvitationMessageSchema = textFieldSchema(TEAM_INVITATION_MESSAGE_INPUT_FORMAT);
20
- // A team's contact phone, built from its field's one declaration.
21
11
  export const contactPhoneSchema = textFieldSchema(CONTACT_PHONE_INPUT_FORMAT);
22
12
  //# sourceMappingURL=atoms.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"atoms.js","sourceRoot":"","sources":["../../src/schemas/atoms.ts"],"names":[],"mappings":"AAAA,oGAAoG;AACpG,iFAAiF;AAEjF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,0BAA0B,EAC1B,yBAAyB,EACzB,oCAAoC,EACpC,sCAAsC,EACtC,sBAAsB,GACvB,MAAM,mCAAmC,CAAC;AAE3C,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAEnF,gGAAgG;AAChG,6FAA6F;AAC7F,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;AAG7D,MAAM,CAAC,MAAM,sBAAsB,GAAG,uBAAuB,CAAC;AAC9D,MAAM,CAAC,MAAM,uBAAuB,GAAG,uBAAuB,CAAC;AAE/D,mGAAmG;AACnG,2BAA2B;AAC3B,MAAM,CAAC,MAAM,iBAAiB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC5E,MAAM,CAAC,MAAM,cAAc,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAC;AACtE,kGAAkG;AAClG,+BAA+B;AAC/B,MAAM,CAAC,MAAM,4BAA4B,GAAG,eAAe,CAAC,sCAAsC,CAAC,CAAC;AACpG,+FAA+F;AAC/F,MAAM,CAAC,MAAM,2BAA2B,GAAG,eAAe,CAAC,oCAAoC,CAAC,CAAC;AACjG,kEAAkE;AAClE,MAAM,CAAC,MAAM,kBAAkB,GAAG,eAAe,CAAC,0BAA0B,CAAC,CAAC","sourcesContent":["// Atoms only callable wire contracts use. Enums, id atoms, the count, and the repair reason are the\n// document atoms, declared once in doc-schemas/atoms.ts and imported from there.\n\nimport { z } from 'zod';\nimport {\n CONTACT_PHONE_INPUT_FORMAT,\n DISPLAY_NAME_INPUT_FORMAT,\n TEAM_INVITATION_MESSAGE_INPUT_FORMAT,\n TEAM_JOIN_REQUEST_MESSAGE_INPUT_FORMAT,\n TEAM_NAME_INPUT_FORMAT,\n} from '../input-formats/input-formats.js';\n\nimport { documentIdSegmentSchema, textFieldSchema } from '../doc-schemas/atoms.js';\n\n// Which entry of a member/admin twin pair of callables an action calls: the member entry, which\n// re-reads the caller's team membership, or the admin entry, which re-reads the role roster.\nexport const actingEntrySchema = z.enum(['member', 'admin']);\nexport type ActingEntry = z.infer<typeof actingEntrySchema>;\n\nexport const teamInvitationIdSchema = documentIdSegmentSchema;\nexport const teamJoinRequestIdSchema = documentIdSegmentSchema;\n\n// A display name and a team name, each built from its field's one declaration, so the form and the\n// wire run the same check.\nexport const displayNameSchema = textFieldSchema(DISPLAY_NAME_INPUT_FORMAT);\nexport const teamNameSchema = textFieldSchema(TEAM_NAME_INPUT_FORMAT);\n// A player's message with a join request, built from the field's one declaration, so the form and\n// the wire run the same check.\nexport const teamJoinRequestMessageSchema = textFieldSchema(TEAM_JOIN_REQUEST_MESSAGE_INPUT_FORMAT);\n// A captain's note on an invitation is optional — an empty note is stored as the empty string.\nexport const teamInvitationMessageSchema = textFieldSchema(TEAM_INVITATION_MESSAGE_INPUT_FORMAT);\n// A team's contact phone, built from its field's one declaration.\nexport const contactPhoneSchema = textFieldSchema(CONTACT_PHONE_INPUT_FORMAT);\n"]}
1
+ {"version":3,"file":"atoms.js","sourceRoot":"","sources":["../../src/schemas/atoms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,0BAA0B,EAC1B,yBAAyB,EACzB,oCAAoC,EACpC,sCAAsC,EACtC,sBAAsB,GACvB,MAAM,mCAAmC,CAAC;AAE3C,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAEnF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;AAG7D,MAAM,CAAC,MAAM,sBAAsB,GAAG,uBAAuB,CAAC;AAC9D,MAAM,CAAC,MAAM,uBAAuB,GAAG,uBAAuB,CAAC;AAE/D,MAAM,CAAC,MAAM,iBAAiB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC5E,MAAM,CAAC,MAAM,cAAc,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAC;AACtE,MAAM,CAAC,MAAM,4BAA4B,GAAG,eAAe,CAAC,sCAAsC,CAAC,CAAC;AACpG,MAAM,CAAC,MAAM,2BAA2B,GAAG,eAAe,CAAC,oCAAoC,CAAC,CAAC;AACjG,MAAM,CAAC,MAAM,kBAAkB,GAAG,eAAe,CAAC,0BAA0B,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport {\n CONTACT_PHONE_INPUT_FORMAT,\n DISPLAY_NAME_INPUT_FORMAT,\n TEAM_INVITATION_MESSAGE_INPUT_FORMAT,\n TEAM_JOIN_REQUEST_MESSAGE_INPUT_FORMAT,\n TEAM_NAME_INPUT_FORMAT,\n} from '../input-formats/input-formats.js';\n\nimport { documentIdSegmentSchema, textFieldSchema } from '../doc-schemas/atoms.js';\n\nexport const actingEntrySchema = z.enum(['member', 'admin']);\nexport type ActingEntry = z.infer<typeof actingEntrySchema>;\n\nexport const teamInvitationIdSchema = documentIdSegmentSchema;\nexport const teamJoinRequestIdSchema = documentIdSegmentSchema;\n\nexport const displayNameSchema = textFieldSchema(DISPLAY_NAME_INPUT_FORMAT);\nexport const teamNameSchema = textFieldSchema(TEAM_NAME_INPUT_FORMAT);\nexport const teamJoinRequestMessageSchema = textFieldSchema(TEAM_JOIN_REQUEST_MESSAGE_INPUT_FORMAT);\nexport const teamInvitationMessageSchema = textFieldSchema(TEAM_INVITATION_MESSAGE_INPUT_FORMAT);\nexport const contactPhoneSchema = textFieldSchema(CONTACT_PHONE_INPUT_FORMAT);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"awards.d.ts","sourceRoot":"","sources":["../../src/schemas/awards.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAsBxB,eAAO,MAAM,iCAAiC;;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AAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC;AAEpG,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;kBAY/B,CAAC;AACZ,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;kBAMxC,CAAC;AACZ,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,sCAAsC,CAC9C,CAAC;AAEF,eAAO,MAAM,wCAAwC;;;;;;;;;kBAE1C,CAAC;AACZ,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,wCAAwC,CAChD,CAAC;AACF,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;;;;kBAE3C,CAAC;AACZ,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,yCAAyC,CACjD,CAAC;AAEF,eAAO,MAAM,qCAAqC;;kBAAgD,CAAC;AACnG,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC;AAEpG,eAAO,MAAM,sCAAsC;;;kBAExC,CAAC;AACZ,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,sCAAsC,CAC9C,CAAC;AAGF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;8BAM1C,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAExF,eAAO,MAAM,gCAAgC;;;;;kBAOlC,CAAC;AACZ,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
@@ -1,9 +1,3 @@
1
- // Callable contracts for the award catalog, award grants, and the badges an account features.
2
- //
3
- // An award is created by its first badge's publication (the `award-badge` upload, ./uploads.ts), so
4
- // no callable here creates one. Grants and revokes to named accounts share one input — two named
5
- // lists, never an action discriminator (RULE-STD-BACKEND-002) — like the role roster's. A team's or a whole
6
- // league's grant is its own decision, carried out a page of people at a time.
7
1
  import { z } from 'zod';
8
2
  import { MAX_AWARD_GRANT_TARGETS } from '../constants/business.js';
9
3
  import { awardGroupGrantActionSchema, awardGroupGrantDecisionSchema, awardGroupGrantStatusSchema, awardGroupTypeSchema, } from '../doc-schemas/award-group-grant.js';
@@ -11,8 +5,6 @@ import { countSchema, documentIdSegmentSchema, epochMsSchema, userIdSchema, } fr
11
5
  import { awardIdSchema } from '../doc-schemas/catalogs.js';
12
6
  import { AWARD_GRANT_SKIP_REASON_KEYS, FEATURED_AWARD_SLOT_KEYS } from '../types/unions.js';
13
7
  const targetList = (atom) => z.array(atom).max(MAX_AWARD_GRANT_TARGETS).optional();
14
- // An admin grants an award to named accounts and revokes it from named accounts, in one commit.
15
- // Recipients are deduplicated on the server; a ghost holds no account and is skipped.
16
8
  export const AdminUpdateAwardGrantsInputSchema = z
17
9
  .object({
18
10
  awardId: awardIdSchema,
@@ -28,9 +20,6 @@ export const AdminUpdateAwardGrantsInputSchema = z
28
20
  export const AwardGrantSkipSchema = z
29
21
  .object({ userId: userIdSchema, reason: z.enum(AWARD_GRANT_SKIP_REASON_KEYS) })
30
22
  .strict();
31
- // What the change did for each account it reached: granted now, already held, revoked now, not held
32
- // to begin with, or skipped with its reason. A retried call reports the accounts its first call
33
- // changed as already held or not held, and writes nothing again.
34
23
  export const AdminUpdateAwardGrantsResultSchema = z
35
24
  .object({
36
25
  awardId: awardIdSchema,
@@ -41,21 +30,12 @@ export const AdminUpdateAwardGrantsResultSchema = z
41
30
  skipped: z.array(AwardGrantSkipSchema),
42
31
  })
43
32
  .strict();
44
- // The group a group grant reaches: every active member of one team, or of one whole league.
45
- // `groupId` is that team's or league's id.
46
33
  export const AwardGroupSchema = z
47
34
  .object({ groupType: awardGroupTypeSchema, groupId: documentIdSegmentSchema })
48
35
  .strict();
49
- // An admin grants an award to a group, or takes back what the group's grants gave. The decision opens
50
- // at once and its people are reached a page at a time after the answer; a request the group's latest
51
- // decision already settles (granting what is granted, taking back what is not) opens nothing.
52
36
  export const AdminUpdateAwardGroupGrantInputSchema = z
53
37
  .object({ awardId: awardIdSchema, action: awardGroupGrantActionSchema, group: AwardGroupSchema })
54
38
  .strict();
55
- // Where one decision on an award for a group stands. `peopleReached` is how many people it has dealt
56
- // with so far: a grant's recorded people, or the people a revoke has taken the award back from or left
57
- // holding it. A pending decision that failed carries its failure and how many times it has tried; the
58
- // scheduled resume tries it again.
59
39
  export const AwardGroupGrantProgressSchema = z
60
40
  .object({
61
41
  grantId: z.string().min(1),
@@ -69,8 +49,6 @@ export const AwardGroupGrantProgressSchema = z
69
49
  completedAt: epochMsSchema.nullable(),
70
50
  })
71
51
  .strict();
72
- // `opened` is false when the group's latest decision already settled the request; `grant` is then that
73
- // decision, or null when the group has none.
74
52
  export const AdminUpdateAwardGroupGrantResultSchema = z
75
53
  .object({
76
54
  awardId: awardIdSchema,
@@ -78,23 +56,16 @@ export const AdminUpdateAwardGroupGrantResultSchema = z
78
56
  grant: AwardGroupGrantProgressSchema.nullable(),
79
57
  })
80
58
  .strict();
81
- // An admin reads the latest decision on an award for a group, so the progress survives a closed page.
82
59
  export const AdminGetAwardGroupGrantStatusInputSchema = z
83
60
  .object({ awardId: awardIdSchema, group: AwardGroupSchema })
84
61
  .strict();
85
62
  export const AdminGetAwardGroupGrantStatusResultSchema = z
86
63
  .object({ grant: AwardGroupGrantProgressSchema.nullable() })
87
64
  .strict();
88
- // An admin deletes an award nobody holds. Its badge's files are retired with it.
89
65
  export const AdminDeleteAwardDefinitionInputSchema = z.object({ awardId: awardIdSchema }).strict();
90
- // `deleted` is false when the award was already gone: nothing was written.
91
66
  export const AdminDeleteAwardDefinitionResultSchema = z
92
67
  .object({ awardId: awardIdSchema, deleted: z.boolean() })
93
68
  .strict();
94
- // The signed-in account chooses which of its own awards to show beside its name: a primary and a
95
- // secondary badge, each an award it holds, or none. The input is the one change the person made —
96
- // set a slot, clear a slot, or swap the two — and the core applies it to the pair as stored, so a
97
- // change to one slot never writes back a stale value of the other. No user id is ever sent.
98
69
  const featuredAwardSlotSchema = z.enum(FEATURED_AWARD_SLOT_KEYS);
99
70
  export const UpdateFeaturedAwardsInputSchema = z.discriminatedUnion('action', [
100
71
  z