@ttt-productions/q-core 0.1.28 → 0.1.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constants/admin-views.d.ts.map +1 -1
- package/dist/constants/admin-views.js +0 -3
- package/dist/constants/admin-views.js.map +1 -1
- package/dist/constants/business.d.ts.map +1 -1
- package/dist/constants/business.js +0 -52
- package/dist/constants/business.js.map +1 -1
- package/dist/constants/deployment.d.ts +0 -2
- package/dist/constants/deployment.d.ts.map +1 -1
- package/dist/constants/deployment.js +0 -2
- package/dist/constants/deployment.js.map +1 -1
- package/dist/constants/media.d.ts.map +1 -1
- package/dist/constants/media.js +4 -30
- package/dist/constants/media.js.map +1 -1
- package/dist/constants/scheduled-jobs.d.ts +0 -25
- package/dist/constants/scheduled-jobs.d.ts.map +1 -1
- package/dist/constants/scheduled-jobs.js +0 -26
- package/dist/constants/scheduled-jobs.js.map +1 -1
- package/dist/constants/sports.d.ts +1 -0
- package/dist/constants/sports.d.ts.map +1 -1
- package/dist/constants/sports.js +4 -25
- package/dist/constants/sports.js.map +1 -1
- package/dist/constants/storage-keys.d.ts +0 -38
- package/dist/constants/storage-keys.d.ts.map +1 -1
- package/dist/constants/storage-keys.js +0 -41
- package/dist/constants/storage-keys.js.map +1 -1
- package/dist/constants/telemetry.d.ts +0 -3
- package/dist/constants/telemetry.d.ts.map +1 -1
- package/dist/constants/telemetry.js +2 -11
- package/dist/constants/telemetry.js.map +1 -1
- package/dist/doc-schemas/admin-notifications.d.ts +1 -2
- package/dist/doc-schemas/admin-notifications.d.ts.map +1 -1
- package/dist/doc-schemas/admin-notifications.js +0 -41
- package/dist/doc-schemas/admin-notifications.js.map +1 -1
- package/dist/doc-schemas/aggregate-stats.d.ts.map +1 -1
- package/dist/doc-schemas/aggregate-stats.js +0 -35
- package/dist/doc-schemas/aggregate-stats.js.map +1 -1
- package/dist/doc-schemas/atoms.d.ts +0 -17
- package/dist/doc-schemas/atoms.d.ts.map +1 -1
- package/dist/doc-schemas/atoms.js +0 -36
- package/dist/doc-schemas/atoms.js.map +1 -1
- package/dist/doc-schemas/audit-event.d.ts +2 -0
- package/dist/doc-schemas/audit-event.d.ts.map +1 -1
- package/dist/doc-schemas/audit-event.js +0 -8
- package/dist/doc-schemas/audit-event.js.map +1 -1
- package/dist/doc-schemas/award-group-grant.d.ts +2 -8
- package/dist/doc-schemas/award-group-grant.d.ts.map +1 -1
- package/dist/doc-schemas/award-group-grant.js +0 -25
- package/dist/doc-schemas/award-group-grant.js.map +1 -1
- package/dist/doc-schemas/catalogs.d.ts.map +1 -1
- package/dist/doc-schemas/catalogs.js +0 -12
- package/dist/doc-schemas/catalogs.js.map +1 -1
- package/dist/doc-schemas/firestore-primitives.d.ts.map +1 -1
- package/dist/doc-schemas/firestore-primitives.js +0 -5
- package/dist/doc-schemas/firestore-primitives.js.map +1 -1
- package/dist/doc-schemas/gallery.d.ts.map +1 -1
- package/dist/doc-schemas/gallery.js +9 -18
- package/dist/doc-schemas/gallery.js.map +1 -1
- package/dist/doc-schemas/game-location.d.ts.map +1 -1
- package/dist/doc-schemas/game-location.js +2 -11
- package/dist/doc-schemas/game-location.js.map +1 -1
- package/dist/doc-schemas/game-stat-history.d.ts.map +1 -1
- package/dist/doc-schemas/game-stat-history.js +2 -11
- package/dist/doc-schemas/game-stat-history.js.map +1 -1
- package/dist/doc-schemas/game-stats.d.ts.map +1 -1
- package/dist/doc-schemas/game-stats.js +0 -56
- package/dist/doc-schemas/game-stats.js.map +1 -1
- package/dist/doc-schemas/league-team.d.ts.map +1 -1
- package/dist/doc-schemas/league-team.js +6 -29
- package/dist/doc-schemas/league-team.js.map +1 -1
- package/dist/doc-schemas/membership-roster-sync.d.ts.map +1 -1
- package/dist/doc-schemas/membership-roster-sync.js +0 -17
- package/dist/doc-schemas/membership-roster-sync.js.map +1 -1
- package/dist/doc-schemas/migration-console.d.ts +21 -15
- package/dist/doc-schemas/migration-console.d.ts.map +1 -1
- package/dist/doc-schemas/migration-console.js +0 -32
- package/dist/doc-schemas/migration-console.js.map +1 -1
- package/dist/doc-schemas/pending-media.d.ts.map +1 -1
- package/dist/doc-schemas/pending-media.js +8 -20
- package/dist/doc-schemas/pending-media.js.map +1 -1
- package/dist/doc-schemas/picture-retirement.d.ts.map +1 -1
- package/dist/doc-schemas/picture-retirement.js +8 -13
- package/dist/doc-schemas/picture-retirement.js.map +1 -1
- package/dist/doc-schemas/publicUser.d.ts.map +1 -1
- package/dist/doc-schemas/publicUser.js +0 -5
- package/dist/doc-schemas/publicUser.js.map +1 -1
- package/dist/doc-schemas/registration-start.d.ts.map +1 -1
- package/dist/doc-schemas/registration-start.js +2 -5
- package/dist/doc-schemas/registration-start.js.map +1 -1
- package/dist/doc-schemas/registry.d.ts +25 -14
- package/dist/doc-schemas/registry.d.ts.map +1 -1
- package/dist/doc-schemas/registry.js +0 -10
- package/dist/doc-schemas/registry.js.map +1 -1
- package/dist/doc-schemas/reserved-display-name.d.ts.map +1 -1
- package/dist/doc-schemas/reserved-display-name.js +0 -5
- package/dist/doc-schemas/reserved-display-name.js.map +1 -1
- package/dist/doc-schemas/sport-game.d.ts.map +1 -1
- package/dist/doc-schemas/sport-game.js +1 -29
- package/dist/doc-schemas/sport-game.js.map +1 -1
- package/dist/doc-schemas/sport-league.d.ts +0 -9
- package/dist/doc-schemas/sport-league.d.ts.map +1 -1
- package/dist/doc-schemas/sport-league.js +4 -26
- package/dist/doc-schemas/sport-league.js.map +1 -1
- package/dist/doc-schemas/stats-operation.d.ts +22 -18
- package/dist/doc-schemas/stats-operation.d.ts.map +1 -1
- package/dist/doc-schemas/stats-operation.js +7 -44
- package/dist/doc-schemas/stats-operation.js.map +1 -1
- package/dist/doc-schemas/status-reconcile-queue.d.ts +0 -6
- package/dist/doc-schemas/status-reconcile-queue.d.ts.map +1 -1
- package/dist/doc-schemas/status-reconcile-queue.js +0 -13
- package/dist/doc-schemas/status-reconcile-queue.js.map +1 -1
- package/dist/doc-schemas/sweep-state.d.ts.map +1 -1
- package/dist/doc-schemas/sweep-state.js +4 -20
- package/dist/doc-schemas/sweep-state.js.map +1 -1
- package/dist/doc-schemas/system.d.ts.map +1 -1
- package/dist/doc-schemas/system.js +1 -27
- package/dist/doc-schemas/system.js.map +1 -1
- package/dist/doc-schemas/team-membership.d.ts.map +1 -1
- package/dist/doc-schemas/team-membership.js +0 -10
- package/dist/doc-schemas/team-membership.js.map +1 -1
- package/dist/doc-schemas/user-profile.d.ts +0 -1
- package/dist/doc-schemas/user-profile.d.ts.map +1 -1
- package/dist/doc-schemas/user-profile.js +0 -28
- package/dist/doc-schemas/user-profile.js.map +1 -1
- package/dist/doc-schemas/waiver-template.d.ts.map +1 -1
- package/dist/doc-schemas/waiver-template.js +4 -25
- package/dist/doc-schemas/waiver-template.js.map +1 -1
- package/dist/doc-schemas/waivers-and-hardware.d.ts.map +1 -1
- package/dist/doc-schemas/waivers-and-hardware.js +0 -20
- package/dist/doc-schemas/waivers-and-hardware.js.map +1 -1
- package/dist/domain-events/domain-events.d.ts.map +1 -1
- package/dist/domain-events/domain-events.js +0 -67
- package/dist/domain-events/domain-events.js.map +1 -1
- package/dist/ids/award-grant-ids.d.ts.map +1 -1
- package/dist/ids/award-grant-ids.js +0 -7
- package/dist/ids/award-grant-ids.js.map +1 -1
- package/dist/ids/compound-ids.d.ts.map +1 -1
- package/dist/ids/compound-ids.js +0 -7
- package/dist/ids/compound-ids.js.map +1 -1
- package/dist/ids/minted-ids.d.ts.map +1 -1
- package/dist/ids/minted-ids.js +4 -14
- package/dist/ids/minted-ids.js.map +1 -1
- package/dist/ids/notification-ids.d.ts.map +1 -1
- package/dist/ids/notification-ids.js +0 -15
- package/dist/ids/notification-ids.js.map +1 -1
- package/dist/ids/picture-ids.d.ts +0 -5
- package/dist/ids/picture-ids.d.ts.map +1 -1
- package/dist/ids/picture-ids.js +0 -11
- package/dist/ids/picture-ids.js.map +1 -1
- package/dist/ids/stat-event-ids.d.ts +0 -6
- package/dist/ids/stat-event-ids.d.ts.map +1 -1
- package/dist/ids/stat-event-ids.js +0 -15
- package/dist/ids/stat-event-ids.js.map +1 -1
- package/dist/ids/stats-operation-ids.d.ts.map +1 -1
- package/dist/ids/stats-operation-ids.js +0 -7
- package/dist/ids/stats-operation-ids.js.map +1 -1
- package/dist/ids/waiver-template-ids.d.ts +0 -1
- package/dist/ids/waiver-template-ids.d.ts.map +1 -1
- package/dist/ids/waiver-template-ids.js +0 -2
- package/dist/ids/waiver-template-ids.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/input-formats/input-formats.d.ts +0 -80
- package/dist/input-formats/input-formats.d.ts.map +1 -1
- package/dist/input-formats/input-formats.js +0 -86
- package/dist/input-formats/input-formats.js.map +1 -1
- package/dist/media/file-origins.d.ts +0 -3
- package/dist/media/file-origins.d.ts.map +1 -1
- package/dist/media/file-origins.js +0 -26
- package/dist/media/file-origins.js.map +1 -1
- package/dist/media/picture-aspects.d.ts +0 -2
- package/dist/media/picture-aspects.d.ts.map +1 -1
- package/dist/media/picture-aspects.js +0 -5
- package/dist/media/picture-aspects.js.map +1 -1
- package/dist/media/picture-url.d.ts +0 -6
- package/dist/media/picture-url.d.ts.map +1 -1
- package/dist/media/picture-url.js +0 -9
- package/dist/media/picture-url.js.map +1 -1
- package/dist/media/upload-tray-display.d.ts +0 -3
- package/dist/media/upload-tray-display.d.ts.map +1 -1
- package/dist/media/upload-tray-display.js +0 -6
- package/dist/media/upload-tray-display.js.map +1 -1
- package/dist/migration-console/action-ids.d.ts +4 -1
- package/dist/migration-console/action-ids.d.ts.map +1 -1
- package/dist/migration-console/action-ids.js +8 -45
- package/dist/migration-console/action-ids.js.map +1 -1
- package/dist/migration-console/console-lock.d.ts +10 -0
- package/dist/migration-console/console-lock.d.ts.map +1 -0
- package/dist/migration-console/console-lock.js +14 -0
- package/dist/migration-console/console-lock.js.map +1 -0
- package/dist/migration-console/consumed-source.d.ts +4 -0
- package/dist/migration-console/consumed-source.d.ts.map +1 -0
- package/dist/migration-console/consumed-source.js +10 -0
- package/dist/migration-console/consumed-source.js.map +1 -0
- package/dist/migration-console/manifest.d.ts +2 -24
- package/dist/migration-console/manifest.d.ts.map +1 -1
- package/dist/migration-console/manifest.js +174 -61
- package/dist/migration-console/manifest.js.map +1 -1
- package/dist/migration-console/run-state.d.ts +2 -14
- package/dist/migration-console/run-state.d.ts.map +1 -1
- package/dist/migration-console/run-state.js +3 -16
- package/dist/migration-console/run-state.js.map +1 -1
- package/dist/notifications/admin-notification-config.d.ts +0 -11
- package/dist/notifications/admin-notification-config.d.ts.map +1 -1
- package/dist/notifications/admin-notification-config.js +2 -13
- package/dist/notifications/admin-notification-config.js.map +1 -1
- package/dist/notifications/archive-all.d.ts.map +1 -1
- package/dist/notifications/archive-all.js +0 -2
- package/dist/notifications/archive-all.js.map +1 -1
- package/dist/notifications/occurrences.d.ts +0 -3
- package/dist/notifications/occurrences.d.ts.map +1 -1
- package/dist/notifications/occurrences.js +0 -7
- package/dist/notifications/occurrences.js.map +1 -1
- package/dist/paths/app-routes.d.ts +0 -12
- package/dist/paths/app-routes.d.ts.map +1 -1
- package/dist/paths/app-routes.js +0 -18
- package/dist/paths/app-routes.js.map +1 -1
- package/dist/paths/collection-groups.d.ts.map +1 -1
- package/dist/paths/collection-groups.js +0 -5
- package/dist/paths/collection-groups.js.map +1 -1
- package/dist/paths/collection-refs.d.ts.map +1 -1
- package/dist/paths/collection-refs.js +0 -4
- package/dist/paths/collection-refs.js.map +1 -1
- package/dist/paths/collections.d.ts +0 -5
- package/dist/paths/collections.d.ts.map +1 -1
- package/dist/paths/collections.js +0 -68
- package/dist/paths/collections.js.map +1 -1
- package/dist/paths/path-builders.d.ts.map +1 -1
- package/dist/paths/path-builders.js +0 -16
- package/dist/paths/path-builders.js.map +1 -1
- package/dist/paths/picture-owner-paths.d.ts +0 -4
- package/dist/paths/picture-owner-paths.d.ts.map +1 -1
- package/dist/paths/picture-owner-paths.js +2 -11
- package/dist/paths/picture-owner-paths.js.map +1 -1
- package/dist/paths/storage-paths.d.ts +0 -18
- package/dist/paths/storage-paths.d.ts.map +1 -1
- package/dist/paths/storage-paths.js +0 -23
- package/dist/paths/storage-paths.js.map +1 -1
- package/dist/paths/utils.d.ts +0 -6
- package/dist/paths/utils.d.ts.map +1 -1
- package/dist/paths/utils.js +0 -9
- package/dist/paths/utils.js.map +1 -1
- package/dist/schemas/account-settings.d.ts.map +1 -1
- package/dist/schemas/account-settings.js +0 -7
- package/dist/schemas/account-settings.js.map +1 -1
- package/dist/schemas/admin-notifications.d.ts.map +1 -1
- package/dist/schemas/admin-notifications.js +0 -17
- package/dist/schemas/admin-notifications.js.map +1 -1
- package/dist/schemas/admin-stats.d.ts.map +1 -1
- package/dist/schemas/admin-stats.js +0 -9
- package/dist/schemas/admin-stats.js.map +1 -1
- package/dist/schemas/app-config.d.ts.map +1 -1
- package/dist/schemas/app-config.js +0 -10
- package/dist/schemas/app-config.js.map +1 -1
- package/dist/schemas/atoms.d.ts.map +1 -1
- package/dist/schemas/atoms.js +0 -10
- package/dist/schemas/atoms.js.map +1 -1
- package/dist/schemas/awards.d.ts +3 -3
- package/dist/schemas/awards.d.ts.map +1 -1
- package/dist/schemas/awards.js +0 -29
- package/dist/schemas/awards.js.map +1 -1
- package/dist/schemas/dead-letters.d.ts +0 -3
- package/dist/schemas/dead-letters.d.ts.map +1 -1
- package/dist/schemas/dead-letters.js +0 -15
- package/dist/schemas/dead-letters.js.map +1 -1
- package/dist/schemas/game-locations.d.ts.map +1 -1
- package/dist/schemas/game-locations.js +0 -6
- package/dist/schemas/game-locations.js.map +1 -1
- package/dist/schemas/hardware-loan-contracts.d.ts.map +1 -1
- package/dist/schemas/hardware-loan-contracts.js +0 -13
- package/dist/schemas/hardware-loan-contracts.js.map +1 -1
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +0 -2
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/leagues.d.ts.map +1 -1
- package/dist/schemas/leagues.js +0 -24
- package/dist/schemas/leagues.js.map +1 -1
- package/dist/schemas/migration-console.d.ts +58 -15
- package/dist/schemas/migration-console.d.ts.map +1 -1
- package/dist/schemas/migration-console.js +4 -34
- package/dist/schemas/migration-console.js.map +1 -1
- package/dist/schemas/pictures.d.ts.map +1 -1
- package/dist/schemas/pictures.js +0 -10
- package/dist/schemas/pictures.js.map +1 -1
- package/dist/schemas/schedules.d.ts.map +1 -1
- package/dist/schemas/schedules.js +0 -26
- package/dist/schemas/schedules.js.map +1 -1
- package/dist/schemas/scoring.d.ts +20 -26
- package/dist/schemas/scoring.d.ts.map +1 -1
- package/dist/schemas/scoring.js +0 -33
- package/dist/schemas/scoring.js.map +1 -1
- package/dist/schemas/signed-waivers.d.ts.map +1 -1
- package/dist/schemas/signed-waivers.js +0 -22
- package/dist/schemas/signed-waivers.js.map +1 -1
- package/dist/schemas/stats.d.ts +12 -0
- package/dist/schemas/stats.d.ts.map +1 -1
- package/dist/schemas/stats.js +21 -61
- package/dist/schemas/stats.js.map +1 -1
- package/dist/schemas/team-joining.d.ts.map +1 -1
- package/dist/schemas/team-joining.js +0 -30
- package/dist/schemas/team-joining.js.map +1 -1
- package/dist/schemas/teams.d.ts +0 -1
- package/dist/schemas/teams.d.ts.map +1 -1
- package/dist/schemas/teams.js +0 -83
- package/dist/schemas/teams.js.map +1 -1
- package/dist/schemas/uploads.d.ts +0 -8
- package/dist/schemas/uploads.d.ts.map +1 -1
- package/dist/schemas/uploads.js +0 -29
- package/dist/schemas/uploads.js.map +1 -1
- package/dist/schemas/users.d.ts +0 -1
- package/dist/schemas/users.d.ts.map +1 -1
- package/dist/schemas/users.js +0 -41
- package/dist/schemas/users.js.map +1 -1
- package/dist/schemas/waiver-templates.d.ts.map +1 -1
- package/dist/schemas/waiver-templates.js +0 -7
- package/dist/schemas/waiver-templates.js.map +1 -1
- package/dist/sports/basketball-scoring.d.ts +0 -4
- package/dist/sports/basketball-scoring.d.ts.map +1 -1
- package/dist/sports/basketball-scoring.js +0 -34
- package/dist/sports/basketball-scoring.js.map +1 -1
- package/dist/sports/basketball.d.ts.map +1 -1
- package/dist/sports/basketball.js +0 -5
- package/dist/sports/basketball.js.map +1 -1
- package/dist/sports/bulk-entry.d.ts +0 -22
- package/dist/sports/bulk-entry.d.ts.map +1 -1
- package/dist/sports/bulk-entry.js +0 -10
- package/dist/sports/bulk-entry.js.map +1 -1
- package/dist/sports/column-catalog.d.ts +0 -17
- package/dist/sports/column-catalog.d.ts.map +1 -1
- package/dist/sports/column-catalog.js +0 -10
- package/dist/sports/column-catalog.js.map +1 -1
- package/dist/sports/contribution.d.ts +2 -59
- package/dist/sports/contribution.d.ts.map +1 -1
- package/dist/sports/contribution.js +2 -45
- package/dist/sports/contribution.js.map +1 -1
- package/dist/sports/curling-scoring.d.ts +0 -1
- package/dist/sports/curling-scoring.d.ts.map +1 -1
- package/dist/sports/curling-scoring.js +0 -27
- package/dist/sports/curling-scoring.js.map +1 -1
- package/dist/sports/curling.d.ts.map +1 -1
- package/dist/sports/curling.js +0 -4
- package/dist/sports/curling.js.map +1 -1
- package/dist/sports/finalized-record.d.ts +2 -19
- package/dist/sports/finalized-record.d.ts.map +1 -1
- package/dist/sports/finalized-record.js +21 -22
- package/dist/sports/finalized-record.js.map +1 -1
- package/dist/sports/football-scoring.d.ts.map +1 -1
- package/dist/sports/football-scoring.js +0 -21
- package/dist/sports/football-scoring.js.map +1 -1
- package/dist/sports/football.d.ts.map +1 -1
- package/dist/sports/football.js +0 -4
- package/dist/sports/football.js.map +1 -1
- package/dist/sports/index.d.ts.map +1 -1
- package/dist/sports/index.js +0 -2
- package/dist/sports/index.js.map +1 -1
- package/dist/sports/ledger-continuity.d.ts +0 -2
- package/dist/sports/ledger-continuity.d.ts.map +1 -1
- package/dist/sports/ledger-continuity.js +0 -5
- package/dist/sports/ledger-continuity.js.map +1 -1
- package/dist/sports/lifetime-summary.d.ts +0 -6
- package/dist/sports/lifetime-summary.d.ts.map +1 -1
- package/dist/sports/lifetime-summary.js +0 -7
- package/dist/sports/lifetime-summary.js.map +1 -1
- package/dist/sports/rankings.d.ts +0 -12
- package/dist/sports/rankings.d.ts.map +1 -1
- package/dist/sports/rankings.js +0 -15
- package/dist/sports/rankings.js.map +1 -1
- package/dist/sports/registry.d.ts +0 -10
- package/dist/sports/registry.d.ts.map +1 -1
- package/dist/sports/registry.js +0 -9
- package/dist/sports/registry.js.map +1 -1
- package/dist/sports/replay.d.ts +0 -11
- package/dist/sports/replay.d.ts.map +1 -1
- package/dist/sports/replay.js +0 -16
- package/dist/sports/replay.js.map +1 -1
- package/dist/sports/rollup-check.d.ts +0 -7
- package/dist/sports/rollup-check.d.ts.map +1 -1
- package/dist/sports/rollup-check.js +0 -14
- package/dist/sports/rollup-check.js.map +1 -1
- package/dist/sports/score-mirror.d.ts +0 -1
- package/dist/sports/score-mirror.d.ts.map +1 -1
- package/dist/sports/score-mirror.js +0 -4
- package/dist/sports/score-mirror.js.map +1 -1
- package/dist/sports/scoring-display.d.ts +0 -30
- package/dist/sports/scoring-display.d.ts.map +1 -1
- package/dist/sports/scoring-display.js +0 -9
- package/dist/sports/scoring-display.js.map +1 -1
- package/dist/sports/scoring.d.ts +0 -36
- package/dist/sports/scoring.d.ts.map +1 -1
- package/dist/sports/scoring.js +0 -10
- package/dist/sports/scoring.js.map +1 -1
- package/dist/sports/shared-columns.d.ts +0 -1
- package/dist/sports/shared-columns.d.ts.map +1 -1
- package/dist/sports/shared-columns.js +0 -7
- package/dist/sports/shared-columns.js.map +1 -1
- package/dist/sports/sport-adapter.d.ts +0 -32
- package/dist/sports/sport-adapter.d.ts.map +1 -1
- package/dist/sports/sport-adapter.js +0 -7
- package/dist/sports/sport-adapter.js.map +1 -1
- package/dist/sports/store-driver.d.ts +0 -28
- package/dist/sports/store-driver.d.ts.map +1 -1
- package/dist/sports/store-driver.js +0 -38
- package/dist/sports/store-driver.js.map +1 -1
- package/dist/types/audit.d.ts +1 -1
- package/dist/types/audit.d.ts.map +1 -1
- package/dist/types/audit.js +1 -67
- package/dist/types/audit.js.map +1 -1
- package/dist/types/claims.d.ts +0 -10
- package/dist/types/claims.d.ts.map +1 -1
- package/dist/types/claims.js +0 -16
- package/dist/types/claims.js.map +1 -1
- package/dist/types/notifications.d.ts.map +1 -1
- package/dist/types/notifications.js +7 -25
- package/dist/types/notifications.js.map +1 -1
- package/dist/types/picture-owners.d.ts +0 -1
- package/dist/types/picture-owners.d.ts.map +1 -1
- package/dist/types/picture-owners.js +0 -6
- package/dist/types/picture-owners.js.map +1 -1
- package/dist/types/schedules.d.ts.map +1 -1
- package/dist/types/schedules.js +0 -9
- package/dist/types/schedules.js.map +1 -1
- package/dist/types/sports.d.ts.map +1 -1
- package/dist/types/sports.js +0 -24
- package/dist/types/sports.js.map +1 -1
- package/dist/types/stats.d.ts.map +1 -1
- package/dist/types/stats.js +0 -65
- package/dist/types/stats.js.map +1 -1
- package/dist/types/unions.d.ts +0 -2
- package/dist/types/unions.d.ts.map +1 -1
- package/dist/types/unions.js +3 -91
- package/dist/types/unions.js.map +1 -1
- package/dist/types/uploads.d.ts.map +1 -1
- package/dist/types/uploads.js +0 -7
- package/dist/types/uploads.js.map +1 -1
- package/dist/upload-variables/on-progress.d.ts.map +1 -1
- package/dist/upload-variables/on-progress.js +2 -5
- package/dist/upload-variables/on-progress.js.map +1 -1
- package/dist/upload-variables/picture-upload-variables.d.ts +0 -1
- package/dist/upload-variables/picture-upload-variables.d.ts.map +1 -1
- package/dist/upload-variables/picture-upload-variables.js +0 -4
- package/dist/upload-variables/picture-upload-variables.js.map +1 -1
- package/dist/upload-variables/sign-hardware-contract-variables.d.ts.map +1 -1
- package/dist/upload-variables/sign-hardware-contract-variables.js +0 -2
- package/dist/upload-variables/sign-hardware-contract-variables.js.map +1 -1
- package/dist/upload-variables/sign-waiver-variables.d.ts.map +1 -1
- package/dist/upload-variables/sign-waiver-variables.js +0 -4
- package/dist/upload-variables/sign-waiver-variables.js.map +1 -1
- package/dist/utils/account-status.d.ts.map +1 -1
- package/dist/utils/account-status.js +0 -4
- package/dist/utils/account-status.js.map +1 -1
- package/dist/utils/app-config.d.ts +0 -53
- package/dist/utils/app-config.d.ts.map +1 -1
- package/dist/utils/app-config.js +0 -62
- package/dist/utils/app-config.js.map +1 -1
- package/dist/utils/display-name.d.ts +0 -7
- package/dist/utils/display-name.d.ts.map +1 -1
- package/dist/utils/display-name.js +0 -8
- package/dist/utils/display-name.js.map +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/league-calendar.d.ts +0 -11
- package/dist/utils/league-calendar.d.ts.map +1 -1
- package/dist/utils/league-calendar.js +7 -19
- package/dist/utils/league-calendar.js.map +1 -1
- package/dist/utils/league-join-warning.d.ts +0 -11
- package/dist/utils/league-join-warning.d.ts.map +1 -1
- package/dist/utils/league-join-warning.js +0 -28
- package/dist/utils/league-join-warning.js.map +1 -1
- package/dist/utils/league-joining.d.ts +0 -1
- package/dist/utils/league-joining.d.ts.map +1 -1
- package/dist/utils/league-joining.js +0 -7
- package/dist/utils/league-joining.js.map +1 -1
- package/dist/utils/league-mode.d.ts +0 -1
- package/dist/utils/league-mode.d.ts.map +1 -1
- package/dist/utils/league-mode.js +0 -4
- package/dist/utils/league-mode.js.map +1 -1
- package/dist/utils/schedules.d.ts +0 -15
- package/dist/utils/schedules.d.ts.map +1 -1
- package/dist/utils/schedules.js +0 -19
- package/dist/utils/schedules.js.map +1 -1
- package/dist/utils/stats-operation-request.d.ts +20 -0
- package/dist/utils/stats-operation-request.d.ts.map +1 -0
- package/dist/utils/stats-operation-request.js +10 -0
- package/dist/utils/stats-operation-request.js.map +1 -0
- package/dist/utils/team-creation.d.ts +0 -2
- package/dist/utils/team-creation.d.ts.map +1 -1
- package/dist/utils/team-creation.js +0 -6
- package/dist/utils/team-creation.js.map +1 -1
- package/dist/utils/team-member-actions.d.ts +0 -6
- package/dist/utils/team-member-actions.d.ts.map +1 -1
- package/dist/utils/team-member-actions.js +0 -12
- package/dist/utils/team-member-actions.js.map +1 -1
- package/package.json +2 -1
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
// One builder per notification type, taking the committed action's own record. The occurrence it
|
|
2
|
-
// returns is what the owning callable writes to the delivery ledger in the action's transaction
|
|
3
|
-
// (RULE-STD-BACKEND-306): its id is derived from the action, never minted, so a retried write is the same
|
|
4
|
-
// occurrence; and its aggregation key is declared apart from that id, so a later action of the
|
|
5
|
-
// same kind is never mistaken for a retry of an earlier one.
|
|
6
1
|
import { buildLeagueFreeAgentSignedUpEventId } from '../ids/notification-ids.js';
|
|
7
2
|
import { ADMIN_NOTIFICATION_DEFINITIONS } from './admin-notification-config.js';
|
|
8
|
-
/** A team joined a league. A team is created once, so the team's id identifies its creation. */
|
|
9
3
|
export function leagueTeamCreatedNotification(teamId, team) {
|
|
10
4
|
const metadata = { leagueId: team.leagueId, teamId };
|
|
11
5
|
return {
|
|
@@ -17,7 +11,6 @@ export function leagueTeamCreatedNotification(teamId, team) {
|
|
|
17
11
|
occurredAt: team.createdAt,
|
|
18
12
|
};
|
|
19
13
|
}
|
|
20
|
-
/** A player signed up as a free agent in a league. */
|
|
21
14
|
export function leagueFreeAgentSignedUpNotification(signup) {
|
|
22
15
|
const metadata = { leagueId: signup.leagueId, userId: signup.userId };
|
|
23
16
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"occurrences.js","sourceRoot":"","sources":["../../src/notifications/occurrences.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"occurrences.js","sourceRoot":"","sources":["../../src/notifications/occurrences.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mCAAmC,EAAE,MAAM,4BAA4B,CAAC;AAEjF,OAAO,EAAE,8BAA8B,EAAE,MAAM,gCAAgC,CAAC;AAahF,MAAM,UAAU,6BAA6B,CAC3C,MAAc,EACd,IAAoE;IAEpE,MAAM,QAAQ,GAAG,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE,CAAC;IACrD,OAAO;QACL,IAAI,EAAE,mBAAmB;QACzB,OAAO,EAAE,MAAM;QACf,cAAc,EAAE,8BAA8B,CAAC,iBAAiB,CAAC,cAAc,CAAC,QAAQ,CAAC;QACzF,WAAW,EAAE,IAAI,CAAC,eAAe;QACjC,QAAQ;QACR,UAAU,EAAE,IAAI,CAAC,SAAS;KAC3B,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,mCAAmC,CACjD,MAAuB;IAEvB,MAAM,QAAQ,GAAG,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC;IACtE,OAAO;QACL,IAAI,EAAE,yBAAyB;QAC/B,OAAO,EAAE,mCAAmC,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,SAAS,CAAC;QAC9F,cAAc,EAAE,8BAA8B,CAAC,uBAAuB,CAAC,cAAc,CAAC,QAAQ,CAAC;QAC/F,WAAW,EAAE,MAAM,CAAC,MAAM;QAC1B,QAAQ;QACR,UAAU,EAAE,MAAM,CAAC,SAAS;KAC7B,CAAC;AACJ,CAAC","sourcesContent":["import type { AdminNotificationMetadataByType } from '../doc-schemas/admin-notifications.js';\nimport type { LeagueTeam } from '../doc-schemas/league-team.js';\nimport type { LeagueFreeAgent } from '../doc-schemas/team-membership.js';\nimport { buildLeagueFreeAgentSignedUpEventId } from '../ids/notification-ids.js';\nimport type { AdminNotificationType } from '../types/notifications.js';\nimport { ADMIN_NOTIFICATION_DEFINITIONS } from './admin-notification-config.js';\n\nexport interface AdminNotificationOccurrence<\n T extends AdminNotificationType = AdminNotificationType,\n> {\n type: T;\n eventId: string;\n aggregationKey: string;\n actorUserId: string;\n metadata: AdminNotificationMetadataByType[T];\n occurredAt: number;\n}\n\nexport function leagueTeamCreatedNotification(\n teamId: string,\n team: Pick<LeagueTeam, 'leagueId' | 'createdByUserId' | 'createdAt'>,\n): AdminNotificationOccurrence<'leagueTeamCreated'> {\n const metadata = { leagueId: team.leagueId, teamId };\n return {\n type: 'leagueTeamCreated',\n eventId: teamId,\n aggregationKey: ADMIN_NOTIFICATION_DEFINITIONS.leagueTeamCreated.aggregationKey(metadata),\n actorUserId: team.createdByUserId,\n metadata,\n occurredAt: team.createdAt,\n };\n}\n\nexport function leagueFreeAgentSignedUpNotification(\n signup: LeagueFreeAgent,\n): AdminNotificationOccurrence<'leagueFreeAgentSignedUp'> {\n const metadata = { leagueId: signup.leagueId, userId: signup.userId };\n return {\n type: 'leagueFreeAgentSignedUp',\n eventId: buildLeagueFreeAgentSignedUpEventId(signup.leagueId, signup.userId, signup.createdAt),\n aggregationKey: ADMIN_NOTIFICATION_DEFINITIONS.leagueFreeAgentSignedUp.aggregationKey(metadata),\n actorUserId: signup.userId,\n metadata,\n occurredAt: signup.createdAt,\n };\n}\n"]}
|
|
@@ -1,22 +1,14 @@
|
|
|
1
1
|
import type { AdminView } from '../constants/admin-views.js';
|
|
2
2
|
import type { SportKey } from '../types/sports.js';
|
|
3
|
-
/** The query-string key the hall of fame names its sport under. */
|
|
4
3
|
export declare const HALL_OF_FAME_SPORT_PARAM = "sport";
|
|
5
|
-
/** The query-string key the admin page's views live under. */
|
|
6
4
|
export declare const ADMIN_VIEW_PARAM = "view";
|
|
7
|
-
/** The query-string key a league workspace's sections live under. */
|
|
8
5
|
export declare const ADMIN_SECTION_PARAM = "section";
|
|
9
|
-
/** The query-string key the Leagues view names the league whose workspace is open under. */
|
|
10
6
|
export declare const ADMIN_LEAGUE_PARAM = "league";
|
|
11
|
-
/** The query-string key the Teams section names the team whose admin view is open under. */
|
|
12
7
|
export declare const ADMIN_TEAM_PARAM = "team";
|
|
13
8
|
export declare const ADMIN_LEAGUE_WORKSPACE_SECTION_KEYS: readonly ["settings", "schedule", "teams", "free-agents"];
|
|
14
9
|
export type AdminLeagueWorkspaceSection = (typeof ADMIN_LEAGUE_WORKSPACE_SECTION_KEYS)[number];
|
|
15
|
-
/** The league workspace's section holding the league's weeks and games. */
|
|
16
10
|
export declare const LEAGUE_SCHEDULE_SECTION = "schedule";
|
|
17
|
-
/** The league workspace's section listing the league's teams, each opening its admin view. */
|
|
18
11
|
export declare const LEAGUE_TEAMS_SECTION = "teams";
|
|
19
|
-
/** The league workspace's section listing the league's free-agent signups. */
|
|
20
12
|
export declare const LEAGUE_FREE_AGENTS_SECTION = "free-agents";
|
|
21
13
|
export declare const APP_ROUTES: {
|
|
22
14
|
readonly home: () => string;
|
|
@@ -28,13 +20,9 @@ export declare const APP_ROUTES: {
|
|
|
28
20
|
readonly league: (leagueId: string) => string;
|
|
29
21
|
readonly leagueTeam: (leagueId: string, teamId: string) => string;
|
|
30
22
|
readonly sportGame: (leagueId: string, gameId: string) => string;
|
|
31
|
-
/** A game's scoring page, where a scorer records its stats. */
|
|
32
23
|
readonly sportGameScoring: (leagueId: string, gameId: string) => string;
|
|
33
|
-
/** An admin view; the dashboard is the bare page. */
|
|
34
24
|
readonly admin: (view?: AdminView) => string;
|
|
35
|
-
/** A league's admin workspace, on one of its sections when one is named. */
|
|
36
25
|
readonly adminLeague: (leagueId: string, section?: AdminLeagueWorkspaceSection) => string;
|
|
37
|
-
/** One team's admin view, inside its league's workspace on the Teams section. */
|
|
38
26
|
readonly adminLeagueTeam: (leagueId: string, teamId: string) => string;
|
|
39
27
|
};
|
|
40
28
|
//# sourceMappingURL=app-routes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-routes.d.ts","sourceRoot":"","sources":["../../src/paths/app-routes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"app-routes.d.ts","sourceRoot":"","sources":["../../src/paths/app-routes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD,eAAO,MAAM,wBAAwB,UAAU,CAAC;AAEhD,eAAO,MAAM,gBAAgB,SAAS,CAAC;AAEvC,eAAO,MAAM,mBAAmB,YAAY,CAAC;AAE7C,eAAO,MAAM,kBAAkB,WAAW,CAAC;AAE3C,eAAO,MAAM,gBAAgB,SAAS,CAAC;AAEvC,eAAO,MAAM,mCAAmC,2DAKtC,CAAC;AACX,MAAM,MAAM,2BAA2B,GAAG,CAAC,OAAO,mCAAmC,CAAC,CAAC,MAAM,CAAC,CAAC;AAE/F,eAAO,MAAM,uBAAuB,aAAmD,CAAC;AAExF,eAAO,MAAM,oBAAoB,UAAgD,CAAC;AAElF,eAAO,MAAM,0BAA0B,gBAAsD,CAAC;AAoB9F,eAAO,MAAM,UAAU;yBACX,MAAM;kCACK,QAAQ,KAAG,MAAM;8BAEvB,MAAM;6BACP,MAAM;0BACT,MAAM;4BACF,MAAM,KAAG,MAAM;gCACX,MAAM,KAAG,MAAM;oCACX,MAAM,UAAU,MAAM,KAAG,MAAM;mCAEhC,MAAM,UAAU,MAAM,KAAG,MAAM;0CAExB,MAAM,UAAU,MAAM,KAAG,MAAM;4BAE7C,SAAS,KAAG,MAAM;qCAKT,MAAM,YAAY,2BAA2B,KAAG,MAAM;yCAElD,MAAM,UAAU,MAAM,KAAG,MAAM;CAKnD,CAAC"}
|
package/dist/paths/app-routes.js
CHANGED
|
@@ -1,30 +1,16 @@
|
|
|
1
|
-
// Every app page address, declared once and built through `APP_ROUTES`. Both roots build these
|
|
2
|
-
// links: the server writes one onto an admin notification card, and the app links to every one of
|
|
3
|
-
// them, so each address shape has one change point (RULE-STD-ARCH-101). Every id is encoded, so an id
|
|
4
|
-
// holding a `/` or a space still addresses its own page.
|
|
5
|
-
/** The query-string key the hall of fame names its sport under. */
|
|
6
1
|
export const HALL_OF_FAME_SPORT_PARAM = 'sport';
|
|
7
|
-
/** The query-string key the admin page's views live under. */
|
|
8
2
|
export const ADMIN_VIEW_PARAM = 'view';
|
|
9
|
-
/** The query-string key a league workspace's sections live under. */
|
|
10
3
|
export const ADMIN_SECTION_PARAM = 'section';
|
|
11
|
-
/** The query-string key the Leagues view names the league whose workspace is open under. */
|
|
12
4
|
export const ADMIN_LEAGUE_PARAM = 'league';
|
|
13
|
-
/** The query-string key the Teams section names the team whose admin view is open under. */
|
|
14
5
|
export const ADMIN_TEAM_PARAM = 'team';
|
|
15
|
-
// The sections a league's admin workspace is addressed by. The workspace declares which of them it
|
|
16
|
-
// has built as tabs; a link may name any of them.
|
|
17
6
|
export const ADMIN_LEAGUE_WORKSPACE_SECTION_KEYS = [
|
|
18
7
|
'settings',
|
|
19
8
|
'schedule',
|
|
20
9
|
'teams',
|
|
21
10
|
'free-agents',
|
|
22
11
|
];
|
|
23
|
-
/** The league workspace's section holding the league's weeks and games. */
|
|
24
12
|
export const LEAGUE_SCHEDULE_SECTION = 'schedule';
|
|
25
|
-
/** The league workspace's section listing the league's teams, each opening its admin view. */
|
|
26
13
|
export const LEAGUE_TEAMS_SECTION = 'teams';
|
|
27
|
-
/** The league workspace's section listing the league's free-agent signups. */
|
|
28
14
|
export const LEAGUE_FREE_AGENTS_SECTION = 'free-agents';
|
|
29
15
|
const enc = encodeURIComponent;
|
|
30
16
|
function withQuery(path, entries) {
|
|
@@ -49,13 +35,9 @@ export const APP_ROUTES = {
|
|
|
49
35
|
league: (leagueId) => `/league/${enc(leagueId)}`,
|
|
50
36
|
leagueTeam: (leagueId, teamId) => `/league/${enc(leagueId)}/team/${enc(teamId)}`,
|
|
51
37
|
sportGame: (leagueId, gameId) => `/league/${enc(leagueId)}/game/${enc(gameId)}`,
|
|
52
|
-
/** A game's scoring page, where a scorer records its stats. */
|
|
53
38
|
sportGameScoring: (leagueId, gameId) => `/league/${enc(leagueId)}/game/${enc(gameId)}/stats`,
|
|
54
|
-
/** An admin view; the dashboard is the bare page. */
|
|
55
39
|
admin: (view) => withQuery('/admin', view === undefined || view === 'dashboard' ? [] : [[ADMIN_VIEW_PARAM, view]]),
|
|
56
|
-
/** A league's admin workspace, on one of its sections when one is named. */
|
|
57
40
|
adminLeague: (leagueId, section) => withQuery('/admin', adminLeagueEntries(leagueId, section)),
|
|
58
|
-
/** One team's admin view, inside its league's workspace on the Teams section. */
|
|
59
41
|
adminLeagueTeam: (leagueId, teamId) => withQuery('/admin', [
|
|
60
42
|
...adminLeagueEntries(leagueId, LEAGUE_TEAMS_SECTION),
|
|
61
43
|
[ADMIN_TEAM_PARAM, teamId],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-routes.js","sourceRoot":"","sources":["../../src/paths/app-routes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"app-routes.js","sourceRoot":"","sources":["../../src/paths/app-routes.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,wBAAwB,GAAG,OAAO,CAAC;AAEhD,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC;AAEvC,MAAM,CAAC,MAAM,mBAAmB,GAAG,SAAS,CAAC;AAE7C,MAAM,CAAC,MAAM,kBAAkB,GAAG,QAAQ,CAAC;AAE3C,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC;AAEvC,MAAM,CAAC,MAAM,mCAAmC,GAAG;IACjD,UAAU;IACV,UAAU;IACV,OAAO;IACP,aAAa;CACL,CAAC;AAGX,MAAM,CAAC,MAAM,uBAAuB,GAAG,UAAgD,CAAC;AAExF,MAAM,CAAC,MAAM,oBAAoB,GAAG,OAA6C,CAAC;AAElF,MAAM,CAAC,MAAM,0BAA0B,GAAG,aAAmD,CAAC;AAE9F,MAAM,GAAG,GAAG,kBAAkB,CAAC;AAE/B,SAAS,SAAS,CAAC,IAAY,EAAE,OAA+C;IAC9E,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IACtC,OAAO,GAAG,IAAI,IAA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,WAAW,GAAG,CAAC,QAAQ,CAAC,SAAS,GAAG,CAAC,MAAM,CAAC,EAAE;IAChD,gBAAgB,EAAE,CAAC,QAAgB,EAAE,MAAc,EAAU,EAAE,CAC7D,WAAW,GAAG,CAAC,QAAQ,CAAC,SAAS,GAAG,CAAC,MAAM,CAAC,QAAQ;IACtD,KAAK,EAAE,CAAC,IAAgB,EAAU,EAAE,CAClC,SAAS,CACP,QAAQ,EACR,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,gBAAgB,EAAE,IAAI,CAAC,CAAC,CAC7E;IACH,WAAW,EAAE,CAAC,QAAgB,EAAE,OAAqC,EAAU,EAAE,CAC/E,SAAS,CAAC,QAAQ,EAAE,kBAAkB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC5D,eAAe,EAAE,CAAC,QAAgB,EAAE,MAAc,EAAU,EAAE,CAC5D,SAAS,CAAC,QAAQ,EAAE;QAClB,GAAG,kBAAkB,CAAC,QAAQ,EAAE,oBAAoB,CAAC;QACrD,CAAC,gBAAgB,EAAE,MAAM,CAAC;KAC3B,CAAC;CACI,CAAC","sourcesContent":["import type { AdminView } from '../constants/admin-views.js';\nimport type { SportKey } from '../types/sports.js';\n\nexport const HALL_OF_FAME_SPORT_PARAM = 'sport';\n\nexport const ADMIN_VIEW_PARAM = 'view';\n\nexport const ADMIN_SECTION_PARAM = 'section';\n\nexport const ADMIN_LEAGUE_PARAM = 'league';\n\nexport const ADMIN_TEAM_PARAM = 'team';\n\nexport const ADMIN_LEAGUE_WORKSPACE_SECTION_KEYS = [\n 'settings',\n 'schedule',\n 'teams',\n 'free-agents',\n] as const;\nexport type AdminLeagueWorkspaceSection = (typeof ADMIN_LEAGUE_WORKSPACE_SECTION_KEYS)[number];\n\nexport const LEAGUE_SCHEDULE_SECTION = 'schedule' satisfies AdminLeagueWorkspaceSection;\n\nexport const LEAGUE_TEAMS_SECTION = 'teams' satisfies AdminLeagueWorkspaceSection;\n\nexport const LEAGUE_FREE_AGENTS_SECTION = 'free-agents' satisfies AdminLeagueWorkspaceSection;\n\nconst enc = encodeURIComponent;\n\nfunction withQuery(path: string, entries: readonly (readonly [string, string])[]): string {\n if (entries.length === 0) return path;\n return `${path}?${entries.map(([key, value]) => `${key}=${enc(value)}`).join('&')}`;\n}\n\nfunction adminLeagueEntries(\n leagueId: string,\n section?: AdminLeagueWorkspaceSection,\n): (readonly [string, string])[] {\n return [\n [ADMIN_VIEW_PARAM, 'leagues' satisfies AdminView],\n [ADMIN_LEAGUE_PARAM, leagueId],\n ...(section === undefined ? [] : [[ADMIN_SECTION_PARAM, section] as const]),\n ];\n}\n\nexport const APP_ROUTES = {\n home: (): string => '/',\n hallOfFame: (sport?: SportKey): string =>\n withQuery('/hall-of-fame', sport === undefined ? [] : [[HALL_OF_FAME_SPORT_PARAM, sport]]),\n locations: (): string => '/locations',\n settings: (): string => '/settings',\n terms: (): string => '/terms',\n user: (userId: string): string => `/user/${enc(userId)}`,\n league: (leagueId: string): string => `/league/${enc(leagueId)}`,\n leagueTeam: (leagueId: string, teamId: string): string =>\n `/league/${enc(leagueId)}/team/${enc(teamId)}`,\n sportGame: (leagueId: string, gameId: string): string =>\n `/league/${enc(leagueId)}/game/${enc(gameId)}`,\n sportGameScoring: (leagueId: string, gameId: string): string =>\n `/league/${enc(leagueId)}/game/${enc(gameId)}/stats`,\n admin: (view?: AdminView): string =>\n withQuery(\n '/admin',\n view === undefined || view === 'dashboard' ? [] : [[ADMIN_VIEW_PARAM, view]],\n ),\n adminLeague: (leagueId: string, section?: AdminLeagueWorkspaceSection): string =>\n withQuery('/admin', adminLeagueEntries(leagueId, section)),\n adminLeagueTeam: (leagueId: string, teamId: string): string =>\n withQuery('/admin', [\n ...adminLeagueEntries(leagueId, LEAGUE_TEAMS_SECTION),\n [ADMIN_TEAM_PARAM, teamId],\n ]),\n} as const;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collection-groups.d.ts","sourceRoot":"","sources":["../../src/paths/collection-groups.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"collection-groups.d.ts","sourceRoot":"","sources":["../../src/paths/collection-groups.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB;;;;CAIpB,CAAC"}
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
// Collection group names — derived from the subcollection constants, never re-typed.
|
|
2
|
-
//
|
|
3
|
-
// Frontend: collectionGroup(db, COLLECTION_GROUPS.GAME_ROSTER_PLAYERS)
|
|
4
|
-
// Backend: db.collectionGroup(COLLECTION_GROUPS.GAME_ROSTER_PLAYERS)
|
|
5
1
|
import { AWARD_GROUP_GRANT_SUBCOLLECTIONS, SPORT_GAME_SUBCOLLECTIONS } from './collections.js';
|
|
6
2
|
export const COLLECTION_GROUPS = {
|
|
7
|
-
// Every grant's record of one person: a revoke asks whether another group's grant still holds them.
|
|
8
3
|
AWARD_GROUP_GRANT_PEOPLE: AWARD_GROUP_GRANT_SUBCOLLECTIONS.AWARD_GROUP_GRANT_PEOPLE,
|
|
9
4
|
GAME_ROSTER_PLAYERS: SPORT_GAME_SUBCOLLECTIONS.GAME_ROSTER_PLAYERS,
|
|
10
5
|
GAME_STAT_EVENTS: SPORT_GAME_SUBCOLLECTIONS.GAME_STAT_EVENTS,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collection-groups.js","sourceRoot":"","sources":["../../src/paths/collection-groups.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"collection-groups.js","sourceRoot":"","sources":["../../src/paths/collection-groups.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAE/F,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,wBAAwB,EAAE,gCAAgC,CAAC,wBAAwB;IACnF,mBAAmB,EAAE,yBAAyB,CAAC,mBAAmB;IAClE,gBAAgB,EAAE,yBAAyB,CAAC,gBAAgB;CACpD,CAAC","sourcesContent":["import { AWARD_GROUP_GRANT_SUBCOLLECTIONS, SPORT_GAME_SUBCOLLECTIONS } from './collections.js';\n\nexport const COLLECTION_GROUPS = {\n AWARD_GROUP_GRANT_PEOPLE: AWARD_GROUP_GRANT_SUBCOLLECTIONS.AWARD_GROUP_GRANT_PEOPLE,\n GAME_ROSTER_PLAYERS: SPORT_GAME_SUBCOLLECTIONS.GAME_ROSTER_PLAYERS,\n GAME_STAT_EVENTS: SPORT_GAME_SUBCOLLECTIONS.GAME_STAT_EVENTS,\n} as const;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collection-refs.d.ts","sourceRoot":"","sources":["../../src/paths/collection-refs.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"collection-refs.d.ts","sourceRoot":"","sources":["../../src/paths/collection-refs.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;iCACR,CAAC,MAAM,CAAC;gCACT,CAAC,MAAM,CAAC;yCACC,CAAC,MAAM,CAAC;uCACV,CAAC,MAAM,CAAC;yCACN,CAAC,MAAM,CAAC;iCAChB,CAAC,MAAM,CAAC;gCACT,CAAC,MAAM,CAAC;uCACD,CAAC,MAAM,CAAC;oCACX,CAAC,MAAM,CAAC;oCACR,CAAC,MAAM,CAAC;qCACP,CAAC,MAAM,CAAC;qCACR,CAAC,MAAM,CAAC;0CACH,CAAC,MAAM,CAAC;+BACnB,CAAC,MAAM,CAAC;kCACL,CAAC,MAAM,CAAC;oCACN,CAAC,MAAM,CAAC;kCACV,CAAC,MAAM,CAAC;0CACA,CAAC,MAAM,CAAC;qCACb,CAAC,MAAM,CAAC;qCACR,CAAC,MAAM,CAAC;2CACF,CAAC,MAAM,CAAC;oCACf,CAAC,MAAM,CAAC;wCACJ,CAAC,MAAM,CAAC;oCACZ,CAAC,MAAM,CAAC;iCACX,CAAC,MAAM,CAAC;uCACF,CAAC,MAAM,CAAC;gCACf,CAAC,MAAM,CAAC;6CACK,CAAC,MAAM,CAAC;6CACR,CAAC,MAAM,CAAC;2CACV,CAAC,MAAM,CAAC;+CACJ,CAAC,MAAM,CAAC;CAChC,CAAC"}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
// Collection reference builders — for collection-level operations.
|
|
2
|
-
//
|
|
3
|
-
// Frontend: collection(db, ...COLLECTION_REFS.userProfiles())
|
|
4
|
-
// Backend: db.collection(toPath(COLLECTION_REFS.userProfiles()))
|
|
5
1
|
import { COLLECTIONS } from './collections.js';
|
|
6
2
|
export const COLLECTION_REFS = {
|
|
7
3
|
userProfiles: () => [COLLECTIONS.USER_PROFILES],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collection-refs.js","sourceRoot":"","sources":["../../src/paths/collection-refs.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"collection-refs.js","sourceRoot":"","sources":["../../src/paths/collection-refs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,YAAY,EAAE,GAAa,EAAE,CAAC,CAAC,WAAW,CAAC,aAAa,CAAC;IACzD,WAAW,EAAE,GAAa,EAAE,CAAC,CAAC,WAAW,CAAC,YAAY,CAAC;IACvD,oBAAoB,EAAE,GAAa,EAAE,CAAC,CAAC,WAAW,CAAC,sBAAsB,CAAC;IAC1E,kBAAkB,EAAE,GAAa,EAAE,CAAC,CAAC,WAAW,CAAC,mBAAmB,CAAC;IACrE,oBAAoB,EAAE,GAAa,EAAE,CAAC,CAAC,WAAW,CAAC,sBAAsB,CAAC;IAC1E,YAAY,EAAE,GAAa,EAAE,CAAC,CAAC,WAAW,CAAC,aAAa,CAAC;IACzD,WAAW,EAAE,GAAa,EAAE,CAAC,CAAC,WAAW,CAAC,YAAY,CAAC;IACvD,kBAAkB,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aAAa,CAAC;IACzD,kBAAkB,EAAE,GAAa,EAAE,CAAC,CAAC,WAAW,CAAC,mBAAmB,CAAC;IACrE,WAAW,EAAE,GAAa,EAAE,CAAC,CAAC,WAAW,CAAC,YAAY,CAAC;IACvD,wBAAwB,EAAE,GAAa,EAAE,CAAC,CAAC,WAAW,CAAC,0BAA0B,CAAC;IAClF,wBAAwB,EAAE,GAAa,EAAE,CAAC,CAAC,WAAW,CAAC,0BAA0B,CAAC;IAClF,sBAAsB,EAAE,GAAa,EAAE,CAAC,CAAC,WAAW,CAAC,uBAAuB,CAAC;IAC7E,0BAA0B,EAAE,GAAa,EAAE,CAAC,CAAC,WAAW,CAAC,6BAA6B,CAAC;CAC/E,CAAC","sourcesContent":["import { COLLECTIONS } from './collections.js';\n\nexport const COLLECTION_REFS = {\n userProfiles: (): [string] => [COLLECTIONS.USER_PROFILES],\n publicUsers: (): [string] => [COLLECTIONS.PUBLIC_USERS],\n statusReconcileQueue: (): [string] => [COLLECTIONS.STATUS_RECONCILE_QUEUE],\n registrationStarts: (): [string] => [COLLECTIONS.REGISTRATION_STARTS],\n reservedDisplayNames: (): [string] => [COLLECTIONS.RESERVED_DISPLAY_NAMES],\n sportLeagues: (): [string] => [COLLECTIONS.SPORT_LEAGUES],\n leagueTeams: (): [string] => [COLLECTIONS.LEAGUE_TEAMS],\n leagueTeamContacts: (): [string] => [COLLECTIONS.LEAGUE_TEAM_CONTACTS],\n teamMemberships: (): [string] => [COLLECTIONS.TEAM_MEMBERSHIPS],\n teamInvitations: (): [string] => [COLLECTIONS.TEAM_INVITATIONS],\n teamJoinRequests: (): [string] => [COLLECTIONS.TEAM_JOIN_REQUESTS],\n leagueFreeAgents: (): [string] => [COLLECTIONS.LEAGUE_FREE_AGENTS],\n membershipRosterSyncs: (): [string] => [COLLECTIONS.MEMBERSHIP_ROSTER_SYNCS],\n sportGames: (): [string] => [COLLECTIONS.SPORT_GAMES],\n gameLocations: (): [string] => [COLLECTIONS.GAME_LOCATIONS],\n waiverTemplates: (): [string] => [COLLECTIONS.WAIVER_TEMPLATES],\n signedWaivers: (): [string] => [COLLECTIONS.SIGNED_WAIVERS],\n hardwareLoanContracts: (): [string] => [COLLECTIONS.HARDWARE_LOAN_CONTRACTS],\n awardDefinitions: (): [string] => [COLLECTIONS.AWARD_DEFINITIONS],\n awardGroupGrants: (): [string] => [COLLECTIONS.AWARD_GROUP_GRANTS],\n statsValidationReports: (): [string] => [COLLECTIONS.STATS_VALIDATION_REPORTS],\n statsOperations: (): [string] => [COLLECTIONS.STATS_OPERATIONS],\n migrationActionRuns: (): [string] => [COLLECTIONS.MIGRATION_ACTION_RUNS],\n galleryPictures: (): [string] => [COLLECTIONS.GALLERY_PICTURES],\n pendingMedia: (): [string] => [COLLECTIONS.PENDING_MEDIA],\n pictureRetirements: (): [string] => [COLLECTIONS.PICTURE_RETIREMENTS],\n auditEvents: (): [string] => [COLLECTIONS.AUDIT_EVENTS],\n activeAdminNotifications: (): [string] => [COLLECTIONS.ACTIVE_ADMIN_NOTIFICATIONS],\n adminNotificationHistory: (): [string] => [COLLECTIONS.ADMIN_NOTIFICATION_HISTORY],\n notificationDeliveries: (): [string] => [COLLECTIONS.NOTIFICATION_DELIVERIES],\n notificationArchiveAllJobs: (): [string] => [COLLECTIONS.NOTIFICATION_ARCHIVE_ALL_JOBS],\n} as const;\n"]}
|
|
@@ -37,26 +37,21 @@ export declare const COLLECTIONS: {
|
|
|
37
37
|
readonly SERVER_DATA: "_serverData";
|
|
38
38
|
};
|
|
39
39
|
export type CollectionName = (typeof COLLECTIONS)[keyof typeof COLLECTIONS];
|
|
40
|
-
/** Subcollections of `userProfiles/{userId}`. */
|
|
41
40
|
export declare const USER_PROFILE_SUBCOLLECTIONS: {
|
|
42
41
|
readonly HISTORICAL_STATS: "historicalStats";
|
|
43
42
|
readonly PRIVATE_DATA: "privateData";
|
|
44
43
|
};
|
|
45
|
-
/** Subcollections of `sportGames/{gameId}`. */
|
|
46
44
|
export declare const SPORT_GAME_SUBCOLLECTIONS: {
|
|
47
45
|
readonly GAME_ROSTER_PLAYERS: "gameRosterPlayers";
|
|
48
46
|
readonly GAME_STAT_EVENTS: "gameStatEvents";
|
|
49
47
|
readonly GAME_STAT_HISTORY: "gameStatHistory";
|
|
50
48
|
};
|
|
51
|
-
/** Subcollections of `waiverTemplates/{waiverTemplateId}`. */
|
|
52
49
|
export declare const WAIVER_TEMPLATE_SUBCOLLECTIONS: {
|
|
53
50
|
readonly WAIVER_TEMPLATE_VERSIONS: "waiverTemplateVersions";
|
|
54
51
|
};
|
|
55
|
-
/** Subcollections of `awardGroupGrants/{grantId}`. */
|
|
56
52
|
export declare const AWARD_GROUP_GRANT_SUBCOLLECTIONS: {
|
|
57
53
|
readonly AWARD_GROUP_GRANT_PEOPLE: "awardGroupGrantPeople";
|
|
58
54
|
};
|
|
59
|
-
/** Static document IDs for fixed-ID documents. */
|
|
60
55
|
export declare const SPECIAL_DOCS: {
|
|
61
56
|
readonly APP_CONFIG: "app";
|
|
62
57
|
readonly LANDING_PAGE: "landingPage";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collections.d.ts","sourceRoot":"","sources":["../../src/paths/collections.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"collections.d.ts","sourceRoot":"","sources":["../../src/paths/collections.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8Cd,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAE5E,eAAO,MAAM,2BAA2B;;;CAG9B,CAAC;AAEX,eAAO,MAAM,yBAAyB;;;;CAI5B,CAAC;AAEX,eAAO,MAAM,8BAA8B;;CAEjC,CAAC;AAEX,eAAO,MAAM,gCAAgC;;CAEnC,CAAC;AAEX,eAAO,MAAM,YAAY;;;;;;;;CAUf,CAAC"}
|
|
@@ -1,131 +1,63 @@
|
|
|
1
|
-
// Firestore collection, subcollection, and fixed-document name constants for Q-Sports.
|
|
2
|
-
//
|
|
3
|
-
// Every collection value is compound camelCase — it says what the documents are, never a single
|
|
4
|
-
// bare word (guarded by __tests__/collections.test.ts). The three underscore buckets hold fixed-ID
|
|
5
|
-
// system documents and are placed by who reads them; every one of them is callable-only for writes
|
|
6
|
-
// (RULE-STD-BACKEND-108). An admin-only document is server-only, read by an admin through a callable:
|
|
7
|
-
// _appConfig public read
|
|
8
|
-
// _systemData signed-in read
|
|
9
|
-
// _serverData no client access
|
|
10
1
|
export const COLLECTIONS = {
|
|
11
|
-
// People
|
|
12
2
|
USER_PROFILES: 'userProfiles',
|
|
13
3
|
PUBLIC_USERS: 'publicUsers',
|
|
14
|
-
// One document per taken display name, keyed by its normalized form — the uniqueness lock.
|
|
15
4
|
RESERVED_DISPLAY_NAMES: 'reservedDisplayNames',
|
|
16
|
-
// One entry per account owed a post-commit Firebase Auth effect, id = the userId: a status
|
|
17
|
-
// change's sign-in half, or a failed role-claim write. Backend-only.
|
|
18
5
|
STATUS_RECONCILE_QUEUE: 'statusReconcileQueue',
|
|
19
|
-
// One document per login whose registration started, id = the userId: the orphan-login cleanup's
|
|
20
|
-
// work list. Backend-only.
|
|
21
6
|
REGISTRATION_STARTS: 'registrationStarts',
|
|
22
|
-
// One document per scheduled pass that keeps a rolling cursor, id = its `SWEEP_STATE_NAMES` name.
|
|
23
|
-
// Backend-only.
|
|
24
7
|
SWEEP_STATE: 'sweepState',
|
|
25
|
-
// Leagues, teams, membership
|
|
26
8
|
SPORT_LEAGUES: 'sportLeagues',
|
|
27
9
|
LEAGUE_TEAMS: 'leagueTeams',
|
|
28
|
-
// One admin-only document per team, id = the team id: how the league reaches the team. The team
|
|
29
|
-
// itself is publicly readable, so no contact detail lives on it (RULE-STD-BACKEND-105); a league's contacts
|
|
30
|
-
// are one query on `leagueId`.
|
|
31
10
|
LEAGUE_TEAM_CONTACTS: 'leagueTeamContacts',
|
|
32
11
|
TEAM_MEMBERSHIPS: 'teamMemberships',
|
|
33
12
|
TEAM_INVITATIONS: 'teamInvitations',
|
|
34
13
|
TEAM_JOIN_REQUESTS: 'teamJoinRequests',
|
|
35
14
|
LEAGUE_FREE_AGENTS: 'leagueFreeAgents',
|
|
36
|
-
// One document per team membership, id = the membership's id: the durable obligation to bring
|
|
37
|
-
// that membership's open game rosters in line with it. Backend-only.
|
|
38
15
|
MEMBERSHIP_ROSTER_SYNCS: 'membershipRosterSyncs',
|
|
39
|
-
// Games
|
|
40
16
|
SPORT_GAMES: 'sportGames',
|
|
41
17
|
GAME_LOCATIONS: 'gameLocations',
|
|
42
|
-
// Waivers and hardware
|
|
43
18
|
WAIVER_TEMPLATES: 'waiverTemplates',
|
|
44
19
|
SIGNED_WAIVERS: 'signedWaivers',
|
|
45
20
|
HARDWARE_LOAN_CONTRACTS: 'hardwareLoanContracts',
|
|
46
|
-
// Awards and derived stats
|
|
47
21
|
AWARD_DEFINITIONS: 'awardDefinitions',
|
|
48
|
-
// One decision on one award for one group — a team, or a whole league — granted or taken back a
|
|
49
|
-
// page of people at a time, id `buildAwardGroupGrantId`. Backend-only.
|
|
50
22
|
AWARD_GROUP_GRANTS: 'awardGroupGrants',
|
|
51
23
|
SPORT_HALL_OF_FAME: 'sportHallOfFame',
|
|
52
24
|
STATS_VALIDATION_REPORTS: 'statsValidationReports',
|
|
53
|
-
// One logical run of a stats action: its status, its resume position, and the hold it places on
|
|
54
|
-
// a game. Admin read; written only by the stats cores.
|
|
55
25
|
STATS_OPERATIONS: 'statsOperations',
|
|
56
|
-
// One document per cutover action, id = the action id: where its latest real run stands, its
|
|
57
|
-
// last preview, and what it reported. Admin read; written only by the migration console.
|
|
58
26
|
MIGRATION_ACTION_RUNS: 'migrationActionRuns',
|
|
59
|
-
// One document per picture in a league, team, or landing page gallery. Public read; written only
|
|
60
|
-
// by the picture core.
|
|
61
27
|
GALLERY_PICTURES: 'galleryPictures',
|
|
62
|
-
// One accepted picture upload, id = its staging id = the picture id. Read by its uploader and
|
|
63
|
-
// admins; written only by the accept core (the upload callable and the picture carry), the
|
|
64
|
-
// processing trigger, and the maintenance sweep's stale-upload pass; never deleted.
|
|
65
28
|
PENDING_MEDIA: 'pendingMedia',
|
|
66
|
-
// The durable obligation to delete a picture's files, or a deleted owner's whole gallery. No
|
|
67
|
-
// client access; carried out by the media maintenance sweep.
|
|
68
29
|
PICTURE_RETIREMENTS: 'pictureRetirements',
|
|
69
|
-
// Append-only record of sensitive actions. No client access; written only by Cloud Functions.
|
|
70
30
|
AUDIT_EVENTS: 'auditEvents',
|
|
71
|
-
// Admin notifications, all written only by Cloud Functions. The shared cards every admin reads and
|
|
72
|
-
// their archived history are admin read; the delivery ledger the owning callables write each
|
|
73
|
-
// occurrence into, and each admin's archive-all job, have no client access.
|
|
74
31
|
ACTIVE_ADMIN_NOTIFICATIONS: 'activeAdminNotifications',
|
|
75
32
|
ADMIN_NOTIFICATION_HISTORY: 'adminNotificationHistory',
|
|
76
33
|
NOTIFICATION_DELIVERIES: 'notificationDeliveries',
|
|
77
34
|
NOTIFICATION_ARCHIVE_ALL_JOBS: 'notificationArchiveAllJobs',
|
|
78
|
-
// Fixed-ID system document buckets
|
|
79
35
|
APP_CONFIG: '_appConfig',
|
|
80
36
|
SYSTEM_DATA: '_systemData',
|
|
81
37
|
SERVER_DATA: '_serverData',
|
|
82
38
|
};
|
|
83
|
-
/** Subcollections of `userProfiles/{userId}`. */
|
|
84
39
|
export const USER_PROFILE_SUBCOLLECTIONS = {
|
|
85
|
-
// One document per sport key: pre-Q-Sports career totals folded into lifetime recalculation.
|
|
86
40
|
HISTORICAL_STATS: 'historicalStats',
|
|
87
|
-
// One owner-only document, id = the userId: email and contact details. The profile itself is
|
|
88
|
-
// publicly readable, so nothing personal lives on it (RULE-STD-BACKEND-105).
|
|
89
41
|
PRIVATE_DATA: 'privateData',
|
|
90
42
|
};
|
|
91
|
-
/** Subcollections of `sportGames/{gameId}`. */
|
|
92
43
|
export const SPORT_GAME_SUBCOLLECTIONS = {
|
|
93
|
-
// Who participated in the game: one entry per team per person, id `buildGameRosterPlayerId`.
|
|
94
44
|
GAME_ROSTER_PLAYERS: 'gameRosterPlayers',
|
|
95
|
-
// One stat event per document, keyed by the event id minted at the tap.
|
|
96
45
|
GAME_STAT_EVENTS: 'gameStatEvents',
|
|
97
|
-
// A completed game's finalized record, in pages, id `buildStatHistoryPageId`.
|
|
98
46
|
GAME_STAT_HISTORY: 'gameStatHistory',
|
|
99
47
|
};
|
|
100
|
-
/** Subcollections of `waiverTemplates/{waiverTemplateId}`. */
|
|
101
48
|
export const WAIVER_TEMPLATE_SUBCOLLECTIONS = {
|
|
102
|
-
// One immutable document per published wording, id `buildWaiverTemplateVersionId(version)`.
|
|
103
49
|
WAIVER_TEMPLATE_VERSIONS: 'waiverTemplateVersions',
|
|
104
50
|
};
|
|
105
|
-
/** Subcollections of `awardGroupGrants/{grantId}`. */
|
|
106
51
|
export const AWARD_GROUP_GRANT_SUBCOLLECTIONS = {
|
|
107
|
-
// One document per person the grant reached, id = the userId, recorded before their profile changed.
|
|
108
52
|
AWARD_GROUP_GRANT_PEOPLE: 'awardGroupGrantPeople',
|
|
109
53
|
};
|
|
110
|
-
/** Static document IDs for fixed-ID documents. */
|
|
111
54
|
export const SPECIAL_DOCS = {
|
|
112
|
-
// _appConfig — public read
|
|
113
|
-
// The app-wide operational levers: version gate, maintenance mode, registration switch, banner.
|
|
114
55
|
APP_CONFIG: 'app',
|
|
115
56
|
LANDING_PAGE: 'landingPage',
|
|
116
|
-
// Public because signed-out spectators follow it for live updates.
|
|
117
57
|
STATS_BEACON: 'statsBeacon',
|
|
118
|
-
// _systemData — signed-in read
|
|
119
|
-
// The admin and referee rosters — source of truth for the `admin` / `referee` custom claims.
|
|
120
58
|
ADMIN_LIST: 'adminList',
|
|
121
|
-
// _serverData — no client access
|
|
122
|
-
// The migration console: the cutover marker and the lock that keeps two actions from running at
|
|
123
|
-
// once.
|
|
124
59
|
MIGRATION_CONSOLE: 'migrationConsole',
|
|
125
|
-
// The fence every venue creation writes, so two creations at MAX_GAME_LOCATIONS conflict.
|
|
126
60
|
GAME_LOCATION_REGISTRY: 'gameLocationRegistry',
|
|
127
|
-
// The fence every waiver-template creation writes, so two creations at MAX_OFFERED_WAIVER_TEMPLATES
|
|
128
|
-
// conflict.
|
|
129
61
|
WAIVER_TEMPLATE_REGISTRY: 'waiverTemplateRegistry',
|
|
130
62
|
};
|
|
131
63
|
//# sourceMappingURL=collections.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collections.js","sourceRoot":"","sources":["../../src/paths/collections.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"collections.js","sourceRoot":"","sources":["../../src/paths/collections.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,aAAa,EAAE,cAAc;IAC7B,YAAY,EAAE,aAAa;IAC3B,sBAAsB,EAAE,sBAAsB;IAC9C,sBAAsB,EAAE,sBAAsB;IAC9C,mBAAmB,EAAE,oBAAoB;IACzC,WAAW,EAAE,YAAY;IAEzB,aAAa,EAAE,cAAc;IAC7B,YAAY,EAAE,aAAa;IAC3B,oBAAoB,EAAE,oBAAoB;IAC1C,gBAAgB,EAAE,iBAAiB;IACnC,gBAAgB,EAAE,iBAAiB;IACnC,kBAAkB,EAAE,kBAAkB;IACtC,kBAAkB,EAAE,kBAAkB;IACtC,uBAAuB,EAAE,uBAAuB;IAEhD,WAAW,EAAE,YAAY;IACzB,cAAc,EAAE,eAAe;IAE/B,gBAAgB,EAAE,iBAAiB;IACnC,cAAc,EAAE,eAAe;IAC/B,uBAAuB,EAAE,uBAAuB;IAEhD,iBAAiB,EAAE,kBAAkB;IACrC,kBAAkB,EAAE,kBAAkB;IACtC,kBAAkB,EAAE,iBAAiB;IACrC,wBAAwB,EAAE,wBAAwB;IAClD,gBAAgB,EAAE,iBAAiB;IAEnC,qBAAqB,EAAE,qBAAqB;IAE5C,gBAAgB,EAAE,iBAAiB;IACnC,aAAa,EAAE,cAAc;IAC7B,mBAAmB,EAAE,oBAAoB;IAEzC,YAAY,EAAE,aAAa;IAE3B,0BAA0B,EAAE,0BAA0B;IACtD,0BAA0B,EAAE,0BAA0B;IACtD,uBAAuB,EAAE,wBAAwB;IACjD,6BAA6B,EAAE,4BAA4B;IAE3D,UAAU,EAAE,YAAY;IACxB,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,aAAa;CAClB,CAAC;AAIX,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,gBAAgB,EAAE,iBAAiB;IACnC,YAAY,EAAE,aAAa;CACnB,CAAC;AAEX,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,mBAAmB,EAAE,mBAAmB;IACxC,gBAAgB,EAAE,gBAAgB;IAClC,iBAAiB,EAAE,iBAAiB;CAC5B,CAAC;AAEX,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,wBAAwB,EAAE,wBAAwB;CAC1C,CAAC;AAEX,MAAM,CAAC,MAAM,gCAAgC,GAAG;IAC9C,wBAAwB,EAAE,uBAAuB;CACzC,CAAC;AAEX,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,UAAU,EAAE,KAAK;IACjB,YAAY,EAAE,aAAa;IAC3B,YAAY,EAAE,aAAa;IAE3B,UAAU,EAAE,WAAW;IAEvB,iBAAiB,EAAE,kBAAkB;IACrC,sBAAsB,EAAE,sBAAsB;IAC9C,wBAAwB,EAAE,wBAAwB;CAC1C,CAAC","sourcesContent":["export const COLLECTIONS = {\n USER_PROFILES: 'userProfiles',\n PUBLIC_USERS: 'publicUsers',\n RESERVED_DISPLAY_NAMES: 'reservedDisplayNames',\n STATUS_RECONCILE_QUEUE: 'statusReconcileQueue',\n REGISTRATION_STARTS: 'registrationStarts',\n SWEEP_STATE: 'sweepState',\n\n SPORT_LEAGUES: 'sportLeagues',\n LEAGUE_TEAMS: 'leagueTeams',\n LEAGUE_TEAM_CONTACTS: 'leagueTeamContacts',\n TEAM_MEMBERSHIPS: 'teamMemberships',\n TEAM_INVITATIONS: 'teamInvitations',\n TEAM_JOIN_REQUESTS: 'teamJoinRequests',\n LEAGUE_FREE_AGENTS: 'leagueFreeAgents',\n MEMBERSHIP_ROSTER_SYNCS: 'membershipRosterSyncs',\n\n SPORT_GAMES: 'sportGames',\n GAME_LOCATIONS: 'gameLocations',\n\n WAIVER_TEMPLATES: 'waiverTemplates',\n SIGNED_WAIVERS: 'signedWaivers',\n HARDWARE_LOAN_CONTRACTS: 'hardwareLoanContracts',\n\n AWARD_DEFINITIONS: 'awardDefinitions',\n AWARD_GROUP_GRANTS: 'awardGroupGrants',\n SPORT_HALL_OF_FAME: 'sportHallOfFame',\n STATS_VALIDATION_REPORTS: 'statsValidationReports',\n STATS_OPERATIONS: 'statsOperations',\n\n MIGRATION_ACTION_RUNS: 'migrationActionRuns',\n\n GALLERY_PICTURES: 'galleryPictures',\n PENDING_MEDIA: 'pendingMedia',\n PICTURE_RETIREMENTS: 'pictureRetirements',\n\n AUDIT_EVENTS: 'auditEvents',\n\n ACTIVE_ADMIN_NOTIFICATIONS: 'activeAdminNotifications',\n ADMIN_NOTIFICATION_HISTORY: 'adminNotificationHistory',\n NOTIFICATION_DELIVERIES: 'notificationDeliveries',\n NOTIFICATION_ARCHIVE_ALL_JOBS: 'notificationArchiveAllJobs',\n\n APP_CONFIG: '_appConfig',\n SYSTEM_DATA: '_systemData',\n SERVER_DATA: '_serverData',\n} as const;\n\nexport type CollectionName = (typeof COLLECTIONS)[keyof typeof COLLECTIONS];\n\nexport const USER_PROFILE_SUBCOLLECTIONS = {\n HISTORICAL_STATS: 'historicalStats',\n PRIVATE_DATA: 'privateData',\n} as const;\n\nexport const SPORT_GAME_SUBCOLLECTIONS = {\n GAME_ROSTER_PLAYERS: 'gameRosterPlayers',\n GAME_STAT_EVENTS: 'gameStatEvents',\n GAME_STAT_HISTORY: 'gameStatHistory',\n} as const;\n\nexport const WAIVER_TEMPLATE_SUBCOLLECTIONS = {\n WAIVER_TEMPLATE_VERSIONS: 'waiverTemplateVersions',\n} as const;\n\nexport const AWARD_GROUP_GRANT_SUBCOLLECTIONS = {\n AWARD_GROUP_GRANT_PEOPLE: 'awardGroupGrantPeople',\n} as const;\n\nexport const SPECIAL_DOCS = {\n APP_CONFIG: 'app',\n LANDING_PAGE: 'landingPage',\n STATS_BEACON: 'statsBeacon',\n\n ADMIN_LIST: 'adminList',\n\n MIGRATION_CONSOLE: 'migrationConsole',\n GAME_LOCATION_REGISTRY: 'gameLocationRegistry',\n WAIVER_TEMPLATE_REGISTRY: 'waiverTemplateRegistry',\n} as const;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"path-builders.d.ts","sourceRoot":"","sources":["../../src/paths/path-builders.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"path-builders.d.ts","sourceRoot":"","sources":["../../src/paths/path-builders.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAQrE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAGnD,eAAO,MAAM,aAAa;mCACF,MAAM,KAAG,CAAC,MAAM,EAAE,MAAM,CAAC;uCACrB,MAAM,KAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;sCAM1C,MAAM,YAAY,QAAQ,KAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;uCAM5D,MAAM,KAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;kCAKtC,MAAM,KAAG,CAAC,MAAM,EAAE,MAAM,CAAC;iDACV,MAAM,KAAG,CAAC,MAAM,EAAE,MAAM,CAAC;yCAIjC,MAAM,KAAG,CAAC,MAAM,EAAE,MAAM,CAAC;gCAIlC,cAAc,KAAG,CAAC,MAAM,EAAE,MAAM,CA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AC,MAAM,EAAE,MAAM,CAAC;CAIpC,CAAC"}
|
|
@@ -1,17 +1,8 @@
|
|
|
1
|
-
// Document path builders — segment tuples, the one path family.
|
|
2
|
-
//
|
|
3
|
-
// Frontend: doc(db, ...PATH_BUILDERS.userProfile(userId))
|
|
4
|
-
// Backend: db.doc(toPath(PATH_BUILDERS.userProfile(userId)))
|
|
5
|
-
//
|
|
6
|
-
// A singular name builds a document path; its plural builds the parent collection path where the
|
|
7
|
-
// parent is a subcollection (top-level collections are in COLLECTION_REFS). A compound document ID
|
|
8
|
-
// is assembled here through its one builder in ../ids — never at a call site.
|
|
9
1
|
import { AWARD_GROUP_GRANT_SUBCOLLECTIONS, COLLECTIONS, SPORT_GAME_SUBCOLLECTIONS, SPECIAL_DOCS, USER_PROFILE_SUBCOLLECTIONS, WAIVER_TEMPLATE_SUBCOLLECTIONS, } from './collections.js';
|
|
10
2
|
import { buildGameRosterPlayerId, buildLeagueFreeAgentId, buildTeamMembershipId, buildSignedWaiverId, } from '../ids/compound-ids.js';
|
|
11
3
|
import { buildWaiverTemplateVersionId } from '../ids/waiver-template-ids.js';
|
|
12
4
|
import { toReservedDisplayNameKey } from '../utils/display-name.js';
|
|
13
5
|
export const PATH_BUILDERS = {
|
|
14
|
-
// People
|
|
15
6
|
userProfile: (userId) => [COLLECTIONS.USER_PROFILES, userId],
|
|
16
7
|
userPrivateData: (userId) => [
|
|
17
8
|
COLLECTIONS.USER_PROFILES,
|
|
@@ -44,7 +35,6 @@ export const PATH_BUILDERS = {
|
|
|
44
35
|
COLLECTIONS.RESERVED_DISPLAY_NAMES,
|
|
45
36
|
toReservedDisplayNameKey(displayName),
|
|
46
37
|
],
|
|
47
|
-
// Leagues, teams, membership
|
|
48
38
|
sportLeague: (leagueId) => [COLLECTIONS.SPORT_LEAGUES, leagueId],
|
|
49
39
|
leagueTeam: (teamId) => [COLLECTIONS.LEAGUE_TEAMS, teamId],
|
|
50
40
|
leagueTeamContact: (teamId) => [
|
|
@@ -68,7 +58,6 @@ export const PATH_BUILDERS = {
|
|
|
68
58
|
COLLECTIONS.LEAGUE_FREE_AGENTS,
|
|
69
59
|
buildLeagueFreeAgentId(leagueId, userId),
|
|
70
60
|
],
|
|
71
|
-
// Games
|
|
72
61
|
sportGame: (gameId) => [COLLECTIONS.SPORT_GAMES, gameId],
|
|
73
62
|
gameRosterPlayer: (gameId, teamId, userId) => [
|
|
74
63
|
COLLECTIONS.SPORT_GAMES,
|
|
@@ -107,7 +96,6 @@ export const PATH_BUILDERS = {
|
|
|
107
96
|
COLLECTIONS.GAME_LOCATIONS,
|
|
108
97
|
gameLocationId,
|
|
109
98
|
],
|
|
110
|
-
// Waivers and hardware
|
|
111
99
|
waiverTemplate: (waiverTemplateId) => [
|
|
112
100
|
COLLECTIONS.WAIVER_TEMPLATES,
|
|
113
101
|
waiverTemplateId,
|
|
@@ -131,7 +119,6 @@ export const PATH_BUILDERS = {
|
|
|
131
119
|
COLLECTIONS.HARDWARE_LOAN_CONTRACTS,
|
|
132
120
|
contractId,
|
|
133
121
|
],
|
|
134
|
-
// Awards and derived stats
|
|
135
122
|
awardDefinition: (awardId) => [COLLECTIONS.AWARD_DEFINITIONS, awardId],
|
|
136
123
|
awardGroupGrant: (grantId) => [COLLECTIONS.AWARD_GROUP_GRANTS, grantId],
|
|
137
124
|
awardGroupGrantPerson: (grantId, userId) => [
|
|
@@ -169,13 +156,11 @@ export const PATH_BUILDERS = {
|
|
|
169
156
|
COLLECTIONS.PENDING_MEDIA,
|
|
170
157
|
pendingMediaId,
|
|
171
158
|
],
|
|
172
|
-
// A picture's retirement is keyed by the picture id; a whole gallery's by `buildGalleryRetirementId`.
|
|
173
159
|
pictureRetirement: (retirementId) => [
|
|
174
160
|
COLLECTIONS.PICTURE_RETIREMENTS,
|
|
175
161
|
retirementId,
|
|
176
162
|
],
|
|
177
163
|
auditEvent: (auditEventId) => [COLLECTIONS.AUDIT_EVENTS, auditEventId],
|
|
178
|
-
// Admin notifications. A card's id is notification-core's; the others come from ../ids.
|
|
179
164
|
activeAdminNotification: (notificationId) => [
|
|
180
165
|
COLLECTIONS.ACTIVE_ADMIN_NOTIFICATIONS,
|
|
181
166
|
notificationId,
|
|
@@ -192,7 +177,6 @@ export const PATH_BUILDERS = {
|
|
|
192
177
|
COLLECTIONS.NOTIFICATION_ARCHIVE_ALL_JOBS,
|
|
193
178
|
jobId,
|
|
194
179
|
],
|
|
195
|
-
// Fixed-ID system documents
|
|
196
180
|
landingPageConfig: () => [COLLECTIONS.APP_CONFIG, SPECIAL_DOCS.LANDING_PAGE],
|
|
197
181
|
appConfig: () => [COLLECTIONS.APP_CONFIG, SPECIAL_DOCS.APP_CONFIG],
|
|
198
182
|
statsBeacon: () => [COLLECTIONS.APP_CONFIG, SPECIAL_DOCS.STATS_BEACON],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"path-builders.js","sourceRoot":"","sources":["../../src/paths/path-builders.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,EAAE;AACF,0DAA0D;AAC1D,8DAA8D;AAC9D,EAAE;AACF,iGAAiG;AACjG,mGAAmG;AACnG,8EAA8E;AAE9E,OAAO,EACL,gCAAgC,EAChC,WAAW,EACX,yBAAyB,EACzB,YAAY,EACZ,2BAA2B,EAC3B,8BAA8B,GAC/B,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACL,uBAAuB,EACvB,sBAAsB,EACtB,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,4BAA4B,EAAE,MAAM,+BAA+B,CAAC;AAE7E,OAAO,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAEpE,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,SAAS;IACT,WAAW,EAAE,CAAC,MAAc,EAAoB,EAAE,CAAC,CAAC,WAAW,CAAC,aAAa,EAAE,MAAM,CAAC;IACtF,eAAe,EAAE,CAAC,MAAc,EAAoC,EAAE,CAAC;QACrE,WAA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ACD,oBAAoB,EAAE,CAAC,UAAkB,EAAoB,EAAE,CAAC;QAC9D,WAAW,CAAC,uBAAuB;QACnC,UAAU;KACX;IACD,yBAAyB,EAAE,CAAC,KAAa,EAAoB,EAAE,CAAC;QAC9D,WAAW,CAAC,6BAA6B;QACzC,KAAK;KACN;IAED,4BAA4B;IAC5B,iBAAiB,EAAE,GAAqB,EAAE,CAAC,CAAC,WAAW,CAAC,UAAU,EAAE,YAAY,CAAC,YAAY,CAAC;IAC9F,SAAS,EAAE,GAAqB,EAAE,CAAC,CAAC,WAAW,CAAC,UAAU,EAAE,YAAY,CAAC,UAAU,CAAC;IACpF,WAAW,EAAE,GAAqB,EAAE,CAAC,CAAC,WAAW,CAAC,UAAU,EAAE,YAAY,CAAC,YAAY,CAAC;IACxF,SAAS,EAAE,GAAqB,EAAE,CAAC,CAAC,WAAW,CAAC,WAAW,EAAE,YAAY,CAAC,UAAU,CAAC;IACrF,gBAAgB,EAAE,GAAqB,EAAE,CAAC;QACxC,WAAW,CAAC,WAAW;QACvB,YAAY,CAAC,iBAAiB;KAC/B;IACD,oBAAoB,EAAE,GAAqB,EAAE,CAAC;QAC5C,WAAW,CAAC,WAAW;QACvB,YAAY,CAAC,sBAAsB;KACpC;IACD,sBAAsB,EAAE,GAAqB,EAAE,CAAC;QAC9C,WAAW,CAAC,WAAW;QACvB,YAAY,CAAC,wBAAwB;KACtC;CACO,CAAC","sourcesContent":["// Document path builders — segment tuples, the one path family.\n//\n// Frontend: doc(db, ...PATH_BUILDERS.userProfile(userId))\n// Backend: db.doc(toPath(PATH_BUILDERS.userProfile(userId)))\n//\n// A singular name builds a document path; its plural builds the parent collection path where the\n// parent is a subcollection (top-level collections are in COLLECTION_REFS). A compound document ID\n// is assembled here through its one builder in ../ids — never at a call site.\n\nimport {\n AWARD_GROUP_GRANT_SUBCOLLECTIONS,\n COLLECTIONS,\n SPORT_GAME_SUBCOLLECTIONS,\n SPECIAL_DOCS,\n USER_PROFILE_SUBCOLLECTIONS,\n WAIVER_TEMPLATE_SUBCOLLECTIONS,\n} from './collections.js';\nimport type { SweepStateName } from '../constants/scheduled-jobs.js';\nimport {\n buildGameRosterPlayerId,\n buildLeagueFreeAgentId,\n buildTeamMembershipId,\n buildSignedWaiverId,\n} from '../ids/compound-ids.js';\nimport { buildWaiverTemplateVersionId } from '../ids/waiver-template-ids.js';\nimport type { SportKey } from '../types/sports.js';\nimport { toReservedDisplayNameKey } from '../utils/display-name.js';\n\nexport const PATH_BUILDERS = {\n // People\n userProfile: (userId: string): [string, string] => [COLLECTIONS.USER_PROFILES, userId],\n userPrivateData: (userId: string): [string, string, string, string] => [\n COLLECTIONS.USER_PROFILES,\n userId,\n USER_PROFILE_SUBCOLLECTIONS.PRIVATE_DATA,\n userId,\n ],\n historicalStat: (userId: string, sportKey: SportKey): [string, string, string, string] => [\n COLLECTIONS.USER_PROFILES,\n userId,\n USER_PROFILE_SUBCOLLECTIONS.HISTORICAL_STATS,\n sportKey,\n ],\n historicalStats: (userId: string): [string, string, string] => [\n COLLECTIONS.USER_PROFILES,\n userId,\n USER_PROFILE_SUBCOLLECTIONS.HISTORICAL_STATS,\n ],\n publicUser: (userId: string): [string, string] => [COLLECTIONS.PUBLIC_USERS, userId],\n statusReconcileQueueEntry: (userId: string): [string, string] => [\n COLLECTIONS.STATUS_RECONCILE_QUEUE,\n userId,\n ],\n registrationStart: (userId: string): [string, string] => [\n COLLECTIONS.REGISTRATION_STARTS,\n userId,\n ],\n sweepState: (name: SweepStateName): [string, string] => [COLLECTIONS.SWEEP_STATE, name],\n reservedDisplayName: (displayName: string): [string, string] => [\n COLLECTIONS.RESERVED_DISPLAY_NAMES,\n toReservedDisplayNameKey(displayName),\n ],\n\n // Leagues, teams, membership\n sportLeague: (leagueId: string): [string, string] => [COLLECTIONS.SPORT_LEAGUES, leagueId],\n leagueTeam: (teamId: string): [string, string] => [COLLECTIONS.LEAGUE_TEAMS, teamId],\n leagueTeamContact: (teamId: string): [string, string] => [\n COLLECTIONS.LEAGUE_TEAM_CONTACTS,\n teamId,\n ],\n teamMembership: (leagueId: string, teamId: string, userId: string): [string, string] => [\n COLLECTIONS.TEAM_MEMBERSHIPS,\n buildTeamMembershipId(leagueId, teamId, userId),\n ],\n membershipRosterSync: (leagueId: string, teamId: string, userId: string): [string, string] => [\n COLLECTIONS.MEMBERSHIP_ROSTER_SYNCS,\n buildTeamMembershipId(leagueId, teamId, userId),\n ],\n teamInvitation: (inviteId: string): [string, string] => [COLLECTIONS.TEAM_INVITATIONS, inviteId],\n teamJoinRequest: (requestId: string): [string, string] => [\n COLLECTIONS.TEAM_JOIN_REQUESTS,\n requestId,\n ],\n leagueFreeAgent: (leagueId: string, userId: string): [string, string] => [\n COLLECTIONS.LEAGUE_FREE_AGENTS,\n buildLeagueFreeAgentId(leagueId, userId),\n ],\n\n // Games\n sportGame: (gameId: string): [string, string] => [COLLECTIONS.SPORT_GAMES, gameId],\n gameRosterPlayer: (\n gameId: string,\n teamId: string,\n userId: string,\n ): [string, string, string, string] => [\n COLLECTIONS.SPORT_GAMES,\n gameId,\n SPORT_GAME_SUBCOLLECTIONS.GAME_ROSTER_PLAYERS,\n buildGameRosterPlayerId(teamId, userId),\n ],\n gameRosterPlayers: (gameId: string): [string, string, string] => [\n COLLECTIONS.SPORT_GAMES,\n gameId,\n SPORT_GAME_SUBCOLLECTIONS.GAME_ROSTER_PLAYERS,\n ],\n gameStatEvent: (gameId: string, eventId: string): [string, string, string, string] => [\n COLLECTIONS.SPORT_GAMES,\n gameId,\n SPORT_GAME_SUBCOLLECTIONS.GAME_STAT_EVENTS,\n eventId,\n ],\n gameStatEvents: (gameId: string): [string, string, string] => [\n COLLECTIONS.SPORT_GAMES,\n gameId,\n SPORT_GAME_SUBCOLLECTIONS.GAME_STAT_EVENTS,\n ],\n gameStatHistoryPage: (gameId: string, pageId: string): [string, string, string, string] => [\n COLLECTIONS.SPORT_GAMES,\n gameId,\n SPORT_GAME_SUBCOLLECTIONS.GAME_STAT_HISTORY,\n pageId,\n ],\n gameStatHistory: (gameId: string): [string, string, string] => [\n COLLECTIONS.SPORT_GAMES,\n gameId,\n SPORT_GAME_SUBCOLLECTIONS.GAME_STAT_HISTORY,\n ],\n gameLocation: (gameLocationId: string): [string, string] => [\n COLLECTIONS.GAME_LOCATIONS,\n gameLocationId,\n ],\n\n // Waivers and hardware\n waiverTemplate: (waiverTemplateId: string): [string, string] => [\n COLLECTIONS.WAIVER_TEMPLATES,\n waiverTemplateId,\n ],\n waiverTemplateVersion: (\n waiverTemplateId: string,\n version: number,\n ): [string, string, string, string] => [\n COLLECTIONS.WAIVER_TEMPLATES,\n waiverTemplateId,\n WAIVER_TEMPLATE_SUBCOLLECTIONS.WAIVER_TEMPLATE_VERSIONS,\n buildWaiverTemplateVersionId(version),\n ],\n waiverTemplateVersions: (waiverTemplateId: string): [string, string, string] => [\n COLLECTIONS.WAIVER_TEMPLATES,\n waiverTemplateId,\n WAIVER_TEMPLATE_SUBCOLLECTIONS.WAIVER_TEMPLATE_VERSIONS,\n ],\n signedWaiver: (leagueId: string, userId: string): [string, string] => [\n COLLECTIONS.SIGNED_WAIVERS,\n buildSignedWaiverId(leagueId, userId),\n ],\n hardwareLoanContract: (contractId: string): [string, string] => [\n COLLECTIONS.HARDWARE_LOAN_CONTRACTS,\n contractId,\n ],\n\n // Awards and derived stats\n awardDefinition: (awardId: string): [string, string] => [COLLECTIONS.AWARD_DEFINITIONS, awardId],\n awardGroupGrant: (grantId: string): [string, string] => [COLLECTIONS.AWARD_GROUP_GRANTS, grantId],\n awardGroupGrantPerson: (grantId: string, userId: string): [string, string, string, string] => [\n COLLECTIONS.AWARD_GROUP_GRANTS,\n grantId,\n AWARD_GROUP_GRANT_SUBCOLLECTIONS.AWARD_GROUP_GRANT_PEOPLE,\n userId,\n ],\n awardGroupGrantPeople: (grantId: string): [string, string, string] => [\n COLLECTIONS.AWARD_GROUP_GRANTS,\n grantId,\n AWARD_GROUP_GRANT_SUBCOLLECTIONS.AWARD_GROUP_GRANT_PEOPLE,\n ],\n sportHallOfFame: (sportKey: SportKey): [string, string] => [\n COLLECTIONS.SPORT_HALL_OF_FAME,\n sportKey,\n ],\n statsValidationReport: (reportId: string): [string, string] => [\n COLLECTIONS.STATS_VALIDATION_REPORTS,\n reportId,\n ],\n statsOperation: (operationId: string): [string, string] => [\n COLLECTIONS.STATS_OPERATIONS,\n operationId,\n ],\n migrationActionRun: (actionId: string): [string, string] => [\n COLLECTIONS.MIGRATION_ACTION_RUNS,\n actionId,\n ],\n\n galleryPicture: (pictureId: string): [string, string] => [\n COLLECTIONS.GALLERY_PICTURES,\n pictureId,\n ],\n pendingMedia: (pendingMediaId: string): [string, string] => [\n COLLECTIONS.PENDING_MEDIA,\n pendingMediaId,\n ],\n // A picture's retirement is keyed by the picture id; a whole gallery's by `buildGalleryRetirementId`.\n pictureRetirement: (retirementId: string): [string, string] => [\n COLLECTIONS.PICTURE_RETIREMENTS,\n retirementId,\n ],\n\n auditEvent: (auditEventId: string): [string, string] => [COLLECTIONS.AUDIT_EVENTS, auditEventId],\n\n // Admin notifications. A card's id is notification-core's; the others come from ../ids.\n activeAdminNotification: (notificationId: string): [string, string] => [\n COLLECTIONS.ACTIVE_ADMIN_NOTIFICATIONS,\n notificationId,\n ],\n adminNotificationHistoryEntry: (historyId: string): [string, string] => [\n COLLECTIONS.ADMIN_NOTIFICATION_HISTORY,\n historyId,\n ],\n notificationDelivery: (deliveryId: string): [string, string] => [\n COLLECTIONS.NOTIFICATION_DELIVERIES,\n deliveryId,\n ],\n notificationArchiveAllJob: (jobId: string): [string, string] => [\n COLLECTIONS.NOTIFICATION_ARCHIVE_ALL_JOBS,\n jobId,\n ],\n\n // Fixed-ID system documents\n landingPageConfig: (): [string, string] => [COLLECTIONS.APP_CONFIG, SPECIAL_DOCS.LANDING_PAGE],\n appConfig: (): [string, string] => [COLLECTIONS.APP_CONFIG, SPECIAL_DOCS.APP_CONFIG],\n statsBeacon: (): [string, string] => [COLLECTIONS.APP_CONFIG, SPECIAL_DOCS.STATS_BEACON],\n adminList: (): [string, string] => [COLLECTIONS.SYSTEM_DATA, SPECIAL_DOCS.ADMIN_LIST],\n migrationConsole: (): [string, string] => [\n COLLECTIONS.SERVER_DATA,\n SPECIAL_DOCS.MIGRATION_CONSOLE,\n ],\n gameLocationRegistry: (): [string, string] => [\n COLLECTIONS.SERVER_DATA,\n SPECIAL_DOCS.GAME_LOCATION_REGISTRY,\n ],\n waiverTemplateRegistry: (): [string, string] => [\n COLLECTIONS.SERVER_DATA,\n SPECIAL_DOCS.WAIVER_TEMPLATE_REGISTRY,\n ],\n} as const;\n"]}
|
|
1
|
+
{"version":3,"file":"path-builders.js","sourceRoot":"","sources":["../../src/paths/path-builders.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gCAAgC,EAChC,WAAW,EACX,yBAAyB,EACzB,YAAY,EACZ,2BAA2B,EAC3B,8BAA8B,GAC/B,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACL,uBAAuB,EACvB,sBAAsB,EACtB,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,4BAA4B,EAAE,MAAM,+BAA+B,CAAC;AAE7E,OAAO,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAEpE,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,WAAW,EAAE,CAAC,MAAc,EAAoB,EAAE,CAAC,CAAC,WAAW,CAAC,aAAa,EAAE,MAAM,CAAC;IACtF,eAAe,EAAE,CAAC,MAAc,EAAoC,EAAE,CAAC;QACrE,WAAW,CAAC,aAAa;QACzB,MAAM;QACN,2BAA2B,CAAC,YAAY;QACxC,MAAM;KACP;IACD,cAAc,EAAE,CAAC,MAAc,EAAE,QAAkB,EAAoC,EAAE,CAAC;QACxF,WAAW,CAAC,aAAa;QACzB,MAAM;QACN,2BAA2B,CAAC,gBAAgB;QAC5C,QAAQ;KACT;IACD,eAAe,EAAE,CAAC,MAAc,EAA4B,EAAE,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AU,EAAE,YAAY,CAAC,UAAU,CAAC;IACpF,WAAW,EAAE,GAAqB,EAAE,CAAC,CAAC,WAAW,CAAC,UAAU,EAAE,YAAY,CAAC,YAAY,CAAC;IACxF,SAAS,EAAE,GAAqB,EAAE,CAAC,CAAC,WAAW,CAAC,WAAW,EAAE,YAAY,CAAC,UAAU,CAAC;IACrF,gBAAgB,EAAE,GAAqB,EAAE,CAAC;QACxC,WAAW,CAAC,WAAW;QACvB,YAAY,CAAC,iBAAiB;KAC/B;IACD,oBAAoB,EAAE,GAAqB,EAAE,CAAC;QAC5C,WAAW,CAAC,WAAW;QACvB,YAAY,CAAC,sBAAsB;KACpC;IACD,sBAAsB,EAAE,GAAqB,EAAE,CAAC;QAC9C,WAAW,CAAC,WAAW;QACvB,YAAY,CAAC,wBAAwB;KACtC;CACO,CAAC","sourcesContent":["import {\n AWARD_GROUP_GRANT_SUBCOLLECTIONS,\n COLLECTIONS,\n SPORT_GAME_SUBCOLLECTIONS,\n SPECIAL_DOCS,\n USER_PROFILE_SUBCOLLECTIONS,\n WAIVER_TEMPLATE_SUBCOLLECTIONS,\n} from './collections.js';\nimport type { SweepStateName } from '../constants/scheduled-jobs.js';\nimport {\n buildGameRosterPlayerId,\n buildLeagueFreeAgentId,\n buildTeamMembershipId,\n buildSignedWaiverId,\n} from '../ids/compound-ids.js';\nimport { buildWaiverTemplateVersionId } from '../ids/waiver-template-ids.js';\nimport type { SportKey } from '../types/sports.js';\nimport { toReservedDisplayNameKey } from '../utils/display-name.js';\n\nexport const PATH_BUILDERS = {\n userProfile: (userId: string): [string, string] => [COLLECTIONS.USER_PROFILES, userId],\n userPrivateData: (userId: string): [string, string, string, string] => [\n COLLECTIONS.USER_PROFILES,\n userId,\n USER_PROFILE_SUBCOLLECTIONS.PRIVATE_DATA,\n userId,\n ],\n historicalStat: (userId: string, sportKey: SportKey): [string, string, string, string] => [\n COLLECTIONS.USER_PROFILES,\n userId,\n USER_PROFILE_SUBCOLLECTIONS.HISTORICAL_STATS,\n sportKey,\n ],\n historicalStats: (userId: string): [string, string, string] => [\n COLLECTIONS.USER_PROFILES,\n userId,\n USER_PROFILE_SUBCOLLECTIONS.HISTORICAL_STATS,\n ],\n publicUser: (userId: string): [string, string] => [COLLECTIONS.PUBLIC_USERS, userId],\n statusReconcileQueueEntry: (userId: string): [string, string] => [\n COLLECTIONS.STATUS_RECONCILE_QUEUE,\n userId,\n ],\n registrationStart: (userId: string): [string, string] => [\n COLLECTIONS.REGISTRATION_STARTS,\n userId,\n ],\n sweepState: (name: SweepStateName): [string, string] => [COLLECTIONS.SWEEP_STATE, name],\n reservedDisplayName: (displayName: string): [string, string] => [\n COLLECTIONS.RESERVED_DISPLAY_NAMES,\n toReservedDisplayNameKey(displayName),\n ],\n\n sportLeague: (leagueId: string): [string, string] => [COLLECTIONS.SPORT_LEAGUES, leagueId],\n leagueTeam: (teamId: string): [string, string] => [COLLECTIONS.LEAGUE_TEAMS, teamId],\n leagueTeamContact: (teamId: string): [string, string] => [\n COLLECTIONS.LEAGUE_TEAM_CONTACTS,\n teamId,\n ],\n teamMembership: (leagueId: string, teamId: string, userId: string): [string, string] => [\n COLLECTIONS.TEAM_MEMBERSHIPS,\n buildTeamMembershipId(leagueId, teamId, userId),\n ],\n membershipRosterSync: (leagueId: string, teamId: string, userId: string): [string, string] => [\n COLLECTIONS.MEMBERSHIP_ROSTER_SYNCS,\n buildTeamMembershipId(leagueId, teamId, userId),\n ],\n teamInvitation: (inviteId: string): [string, string] => [COLLECTIONS.TEAM_INVITATIONS, inviteId],\n teamJoinRequest: (requestId: string): [string, string] => [\n COLLECTIONS.TEAM_JOIN_REQUESTS,\n requestId,\n ],\n leagueFreeAgent: (leagueId: string, userId: string): [string, string] => [\n COLLECTIONS.LEAGUE_FREE_AGENTS,\n buildLeagueFreeAgentId(leagueId, userId),\n ],\n\n sportGame: (gameId: string): [string, string] => [COLLECTIONS.SPORT_GAMES, gameId],\n gameRosterPlayer: (\n gameId: string,\n teamId: string,\n userId: string,\n ): [string, string, string, string] => [\n COLLECTIONS.SPORT_GAMES,\n gameId,\n SPORT_GAME_SUBCOLLECTIONS.GAME_ROSTER_PLAYERS,\n buildGameRosterPlayerId(teamId, userId),\n ],\n gameRosterPlayers: (gameId: string): [string, string, string] => [\n COLLECTIONS.SPORT_GAMES,\n gameId,\n SPORT_GAME_SUBCOLLECTIONS.GAME_ROSTER_PLAYERS,\n ],\n gameStatEvent: (gameId: string, eventId: string): [string, string, string, string] => [\n COLLECTIONS.SPORT_GAMES,\n gameId,\n SPORT_GAME_SUBCOLLECTIONS.GAME_STAT_EVENTS,\n eventId,\n ],\n gameStatEvents: (gameId: string): [string, string, string] => [\n COLLECTIONS.SPORT_GAMES,\n gameId,\n SPORT_GAME_SUBCOLLECTIONS.GAME_STAT_EVENTS,\n ],\n gameStatHistoryPage: (gameId: string, pageId: string): [string, string, string, string] => [\n COLLECTIONS.SPORT_GAMES,\n gameId,\n SPORT_GAME_SUBCOLLECTIONS.GAME_STAT_HISTORY,\n pageId,\n ],\n gameStatHistory: (gameId: string): [string, string, string] => [\n COLLECTIONS.SPORT_GAMES,\n gameId,\n SPORT_GAME_SUBCOLLECTIONS.GAME_STAT_HISTORY,\n ],\n gameLocation: (gameLocationId: string): [string, string] => [\n COLLECTIONS.GAME_LOCATIONS,\n gameLocationId,\n ],\n\n waiverTemplate: (waiverTemplateId: string): [string, string] => [\n COLLECTIONS.WAIVER_TEMPLATES,\n waiverTemplateId,\n ],\n waiverTemplateVersion: (\n waiverTemplateId: string,\n version: number,\n ): [string, string, string, string] => [\n COLLECTIONS.WAIVER_TEMPLATES,\n waiverTemplateId,\n WAIVER_TEMPLATE_SUBCOLLECTIONS.WAIVER_TEMPLATE_VERSIONS,\n buildWaiverTemplateVersionId(version),\n ],\n waiverTemplateVersions: (waiverTemplateId: string): [string, string, string] => [\n COLLECTIONS.WAIVER_TEMPLATES,\n waiverTemplateId,\n WAIVER_TEMPLATE_SUBCOLLECTIONS.WAIVER_TEMPLATE_VERSIONS,\n ],\n signedWaiver: (leagueId: string, userId: string): [string, string] => [\n COLLECTIONS.SIGNED_WAIVERS,\n buildSignedWaiverId(leagueId, userId),\n ],\n hardwareLoanContract: (contractId: string): [string, string] => [\n COLLECTIONS.HARDWARE_LOAN_CONTRACTS,\n contractId,\n ],\n\n awardDefinition: (awardId: string): [string, string] => [COLLECTIONS.AWARD_DEFINITIONS, awardId],\n awardGroupGrant: (grantId: string): [string, string] => [COLLECTIONS.AWARD_GROUP_GRANTS, grantId],\n awardGroupGrantPerson: (grantId: string, userId: string): [string, string, string, string] => [\n COLLECTIONS.AWARD_GROUP_GRANTS,\n grantId,\n AWARD_GROUP_GRANT_SUBCOLLECTIONS.AWARD_GROUP_GRANT_PEOPLE,\n userId,\n ],\n awardGroupGrantPeople: (grantId: string): [string, string, string] => [\n COLLECTIONS.AWARD_GROUP_GRANTS,\n grantId,\n AWARD_GROUP_GRANT_SUBCOLLECTIONS.AWARD_GROUP_GRANT_PEOPLE,\n ],\n sportHallOfFame: (sportKey: SportKey): [string, string] => [\n COLLECTIONS.SPORT_HALL_OF_FAME,\n sportKey,\n ],\n statsValidationReport: (reportId: string): [string, string] => [\n COLLECTIONS.STATS_VALIDATION_REPORTS,\n reportId,\n ],\n statsOperation: (operationId: string): [string, string] => [\n COLLECTIONS.STATS_OPERATIONS,\n operationId,\n ],\n migrationActionRun: (actionId: string): [string, string] => [\n COLLECTIONS.MIGRATION_ACTION_RUNS,\n actionId,\n ],\n\n galleryPicture: (pictureId: string): [string, string] => [\n COLLECTIONS.GALLERY_PICTURES,\n pictureId,\n ],\n pendingMedia: (pendingMediaId: string): [string, string] => [\n COLLECTIONS.PENDING_MEDIA,\n pendingMediaId,\n ],\n pictureRetirement: (retirementId: string): [string, string] => [\n COLLECTIONS.PICTURE_RETIREMENTS,\n retirementId,\n ],\n\n auditEvent: (auditEventId: string): [string, string] => [COLLECTIONS.AUDIT_EVENTS, auditEventId],\n\n activeAdminNotification: (notificationId: string): [string, string] => [\n COLLECTIONS.ACTIVE_ADMIN_NOTIFICATIONS,\n notificationId,\n ],\n adminNotificationHistoryEntry: (historyId: string): [string, string] => [\n COLLECTIONS.ADMIN_NOTIFICATION_HISTORY,\n historyId,\n ],\n notificationDelivery: (deliveryId: string): [string, string] => [\n COLLECTIONS.NOTIFICATION_DELIVERIES,\n deliveryId,\n ],\n notificationArchiveAllJob: (jobId: string): [string, string] => [\n COLLECTIONS.NOTIFICATION_ARCHIVE_ALL_JOBS,\n jobId,\n ],\n\n landingPageConfig: (): [string, string] => [COLLECTIONS.APP_CONFIG, SPECIAL_DOCS.LANDING_PAGE],\n appConfig: (): [string, string] => [COLLECTIONS.APP_CONFIG, SPECIAL_DOCS.APP_CONFIG],\n statsBeacon: (): [string, string] => [COLLECTIONS.APP_CONFIG, SPECIAL_DOCS.STATS_BEACON],\n adminList: (): [string, string] => [COLLECTIONS.SYSTEM_DATA, SPECIAL_DOCS.ADMIN_LIST],\n migrationConsole: (): [string, string] => [\n COLLECTIONS.SERVER_DATA,\n SPECIAL_DOCS.MIGRATION_CONSOLE,\n ],\n gameLocationRegistry: (): [string, string] => [\n COLLECTIONS.SERVER_DATA,\n SPECIAL_DOCS.GAME_LOCATION_REGISTRY,\n ],\n waiverTemplateRegistry: (): [string, string] => [\n COLLECTIONS.SERVER_DATA,\n SPECIAL_DOCS.WAIVER_TEMPLATE_REGISTRY,\n ],\n} as const;\n"]}
|
|
@@ -39,9 +39,5 @@ export declare const PICTURE_OWNER_PATHS: {
|
|
|
39
39
|
readonly ownerDoc: () => [string, string];
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
|
-
/**
|
|
43
|
-
* Whether an owner id can name an owner of its kind. Every kind but the landing page takes any
|
|
44
|
-
* document id; the landing page is the one document `SPECIAL_DOCS.LANDING_PAGE` names.
|
|
45
|
-
*/
|
|
46
42
|
export declare function isPictureOwnerId(kind: PictureOwnerKind, ownerId: string): boolean;
|
|
47
43
|
//# sourceMappingURL=picture-owner-paths.d.ts.map
|