@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.
- 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.map +1 -1
- package/dist/constants/sports.js +2 -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 +0 -1
- 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.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 +0 -6
- 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 +0 -15
- 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 +0 -9
- 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 +0 -10
- 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 +0 -17
- 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 +0 -10
- 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.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.map +1 -1
- package/dist/doc-schemas/stats-operation.js +2 -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.map +1 -1
- package/dist/index.js +0 -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 +0 -1
- package/dist/migration-console/action-ids.d.ts.map +1 -1
- package/dist/migration-console/action-ids.js +2 -45
- package/dist/migration-console/action-ids.js.map +1 -1
- package/dist/migration-console/manifest.d.ts +0 -24
- package/dist/migration-console/manifest.d.ts.map +1 -1
- package/dist/migration-console/manifest.js +1 -56
- package/dist/migration-console/manifest.js.map +1 -1
- package/dist/migration-console/run-state.d.ts +0 -14
- package/dist/migration-console/run-state.d.ts.map +1 -1
- package/dist/migration-console/run-state.js +0 -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 +0 -10
- 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.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 +0 -7
- package/dist/schemas/migration-console.d.ts.map +1 -1
- package/dist/schemas/migration-console.js +0 -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 +0 -6
- 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.map +1 -1
- package/dist/schemas/stats.js +0 -60
- 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 +0 -17
- package/dist/sports/finalized-record.d.ts.map +1 -1
- package/dist/sports/finalized-record.js +0 -20
- 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.map +1 -1
- package/dist/types/audit.js +0 -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/league-calendar.d.ts +0 -11
- package/dist/utils/league-calendar.d.ts.map +1 -1
- package/dist/utils/league-calendar.js +1 -18
- 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/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 +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"picture-aspects.d.ts","sourceRoot":"","sources":["../../src/media/picture-aspects.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"picture-aspects.d.ts","sourceRoot":"","sources":["../../src/media/picture-aspects.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,uDAAwD,CAAC;AACzF,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEjE,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;CAK4B,CAAC;AAE/D,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,aAAa,GAAG,MAAM,CAGhE"}
|
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
// The shapes a picture is cropped to. Every picture kind has one: the browser's crop, the server's
|
|
2
|
-
// processing, and every display of that kind all use it, from this one declaration, so a picture and
|
|
3
|
-
// the frame it is shown in can never disagree.
|
|
4
1
|
export const PICTURE_ASPECT_KEYS = ['square', 'landscape', 'classic', 'banner'];
|
|
5
|
-
/** Each shape as whole numbers, width to height — the form a CSS `aspect-ratio` and "16:9" take. */
|
|
6
2
|
export const PICTURE_ASPECT_RATIOS = {
|
|
7
3
|
square: { width: 1, height: 1 },
|
|
8
4
|
landscape: { width: 16, height: 9 },
|
|
9
5
|
classic: { width: 4, height: 3 },
|
|
10
6
|
banner: { width: 3, height: 1 },
|
|
11
7
|
};
|
|
12
|
-
/** The shape as one number, width over height — the form a crop or processing spec takes. */
|
|
13
8
|
export function pictureAspectRatio(aspect) {
|
|
14
9
|
const { width, height } = PICTURE_ASPECT_RATIOS[aspect];
|
|
15
10
|
return width / height;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"picture-aspects.js","sourceRoot":"","sources":["../../src/media/picture-aspects.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"picture-aspects.js","sourceRoot":"","sources":["../../src/media/picture-aspects.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,CAAU,CAAC;AAQzF,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,MAAM,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE;IAC/B,SAAS,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE;IACnC,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE;IAChC,MAAM,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE;CAC6B,CAAC;AAE/D,MAAM,UAAU,kBAAkB,CAAC,MAAqB;IACtD,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,qBAAqB,CAAC,MAAM,CAAC,CAAC;IACxD,OAAO,KAAK,GAAG,MAAM,CAAC;AACxB,CAAC","sourcesContent":["export const PICTURE_ASPECT_KEYS = ['square', 'landscape', 'classic', 'banner'] as const;\nexport type PictureAspect = (typeof PICTURE_ASPECT_KEYS)[number];\n\nexport interface PictureAspectRatio {\n readonly width: number;\n readonly height: number;\n}\n\nexport const PICTURE_ASPECT_RATIOS = {\n square: { width: 1, height: 1 },\n landscape: { width: 16, height: 9 },\n classic: { width: 4, height: 3 },\n banner: { width: 3, height: 1 },\n} as const satisfies Record<PictureAspect, PictureAspectRatio>;\n\nexport function pictureAspectRatio(aspect: PictureAspect): number {\n const { width, height } = PICTURE_ASPECT_RATIOS[aspect];\n return width / height;\n}\n"]}
|
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
import type { PictureVariantKey } from '../types/unions.js';
|
|
2
2
|
export interface PictureUrlBuilderConfig {
|
|
3
|
-
/** The origin serving the bucket's objects: Firebase Storage, or the local Storage emulator. */
|
|
4
3
|
storageOrigin: string;
|
|
5
4
|
bucket: string;
|
|
6
5
|
}
|
|
7
6
|
export type PictureUrlBuilder = (pictureId: string, variantKey: PictureVariantKey) => string;
|
|
8
|
-
/**
|
|
9
|
-
* The URL is the object's media endpoint with no download token, so it resolves only through a
|
|
10
|
-
* public-read `storage.rules` grant on the picture prefix — which is what lets every viewer, signed
|
|
11
|
-
* in or not, load it.
|
|
12
|
-
*/
|
|
13
7
|
export declare function createPictureUrlBuilder(config: PictureUrlBuilderConfig): PictureUrlBuilder;
|
|
14
8
|
//# sourceMappingURL=picture-url.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"picture-url.d.ts","sourceRoot":"","sources":["../../src/media/picture-url.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"picture-url.d.ts","sourceRoot":"","sources":["../../src/media/picture-url.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAE5D,MAAM,WAAW,uBAAuB;IACtC,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,iBAAiB,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,iBAAiB,KAAK,MAAM,CAAC;AAE7F,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,uBAAuB,GAAG,iBAAiB,CAU1F"}
|
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
// Render-time picture URLs, pure and configuration-injected: q-core reads no environment, and the
|
|
2
|
-
// app resolves its Storage origin and bucket once and builds one builder. A document stores picture
|
|
3
|
-
// ids and never a URL; every render builds the URL from the id and the size it needs
|
|
4
|
-
// (RULE-STD-MEDIA-101, RULE-STD-BACKEND-001).
|
|
5
1
|
import { buildPictureObjectPath } from '../paths/storage-paths.js';
|
|
6
|
-
/**
|
|
7
|
-
* The URL is the object's media endpoint with no download token, so it resolves only through a
|
|
8
|
-
* public-read `storage.rules` grant on the picture prefix — which is what lets every viewer, signed
|
|
9
|
-
* in or not, load it.
|
|
10
|
-
*/
|
|
11
2
|
export function createPictureUrlBuilder(config) {
|
|
12
3
|
const origin = config.storageOrigin.replace(/\/+$/, '');
|
|
13
4
|
const { bucket } = config;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"picture-url.js","sourceRoot":"","sources":["../../src/media/picture-url.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"picture-url.js","sourceRoot":"","sources":["../../src/media/picture-url.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAUnE,MAAM,UAAU,uBAAuB,CAAC,MAA+B;IACrE,MAAM,MAAM,GAAG,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IACxD,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IAC1B,IAAI,CAAC,MAAM,IAAI,CAAC,MAAM,EAAE,CAAC;QACvB,MAAM,IAAI,KAAK,CAAC,gEAAgE,CAAC,CAAC;IACpF,CAAC;IACD,OAAO,CAAC,SAAS,EAAE,UAAU,EAAE,EAAE;QAC/B,MAAM,UAAU,GAAG,kBAAkB,CAAC,sBAAsB,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC;QACrF,OAAO,GAAG,MAAM,SAAS,MAAM,MAAM,UAAU,YAAY,CAAC;IAC9D,CAAC,CAAC;AACJ,CAAC","sourcesContent":["import { buildPictureObjectPath } from '../paths/storage-paths.js';\nimport type { PictureVariantKey } from '../types/unions.js';\n\nexport interface PictureUrlBuilderConfig {\n storageOrigin: string;\n bucket: string;\n}\n\nexport type PictureUrlBuilder = (pictureId: string, variantKey: PictureVariantKey) => string;\n\nexport function createPictureUrlBuilder(config: PictureUrlBuilderConfig): PictureUrlBuilder {\n const origin = config.storageOrigin.replace(/\\/+$/, '');\n const { bucket } = config;\n if (!origin || !bucket) {\n throw new Error('createPictureUrlBuilder: storageOrigin and bucket are required');\n }\n return (pictureId, variantKey) => {\n const objectPath = encodeURIComponent(buildPictureObjectPath(pictureId, variantKey));\n return `${origin}/v0/b/${bucket}/o/${objectPath}?alt=media`;\n };\n}\n"]}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import type { FileOrigin } from './file-origins.js';
|
|
2
|
-
/** The tray row's title for each origin's upload. */
|
|
3
2
|
export declare const fileOriginRowLabel: Record<FileOrigin, string>;
|
|
4
|
-
/** How long an upload row's time reads as relative ("5m ago") before it reads as a clock time. */
|
|
5
3
|
export declare const UPLOAD_ROW_RELATIVE_TIME_CUTOFF_MS: number;
|
|
6
|
-
/** An upload row's words for its time and its file's kind, for upload-ui's `createUploadDisplayFormatters`. */
|
|
7
4
|
export declare const UPLOAD_ROW_DISPLAY_COPY: {
|
|
8
5
|
readonly justNow: "just now";
|
|
9
6
|
readonly minutesAgo: (minutes: number) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-tray-display.d.ts","sourceRoot":"","sources":["../../src/media/upload-tray-display.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"upload-tray-display.d.ts","sourceRoot":"","sources":["../../src/media/upload-tray-display.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAQzD,CAAC;AAEF,eAAO,MAAM,kCAAkC,QAAqB,CAAC;AAErE,eAAO,MAAM,uBAAuB;;mCAEZ,MAAM;+BACV,MAAM;iCACJ,MAAM;4BACX,MAAM,QAAQ,MAAM;;;;;;;CAE3B,CAAC"}
|
|
@@ -1,19 +1,13 @@
|
|
|
1
|
-
// What an admin's upload tray shows for one upload row: what it was for, the file's kind, and when it
|
|
2
|
-
// was accepted.
|
|
3
|
-
/** The tray row's title for each origin's upload. */
|
|
4
1
|
export const fileOriginRowLabel = {
|
|
5
2
|
'league-picture': 'League picture',
|
|
6
3
|
'team-picture': 'Team picture',
|
|
7
4
|
'landing-picture': 'Landing picture',
|
|
8
5
|
'location-picture': 'Venue picture',
|
|
9
6
|
'award-badge': 'Award badge',
|
|
10
|
-
// A signature never rides the upload tray: it is kept by its signing callable, with no upload row.
|
|
11
7
|
'waiver-signature': 'Waiver signature',
|
|
12
8
|
'hardware-signature': 'Hardware contract signature',
|
|
13
9
|
};
|
|
14
|
-
/** How long an upload row's time reads as relative ("5m ago") before it reads as a clock time. */
|
|
15
10
|
export const UPLOAD_ROW_RELATIVE_TIME_CUTOFF_MS = 6 * 60 * 60 * 1000;
|
|
16
|
-
/** An upload row's words for its time and its file's kind, for upload-ui's `createUploadDisplayFormatters`. */
|
|
17
11
|
export const UPLOAD_ROW_DISPLAY_COPY = {
|
|
18
12
|
justNow: 'just now',
|
|
19
13
|
minutesAgo: (minutes) => `${minutes}m ago`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-tray-display.js","sourceRoot":"","sources":["../../src/media/upload-tray-display.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"upload-tray-display.js","sourceRoot":"","sources":["../../src/media/upload-tray-display.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,kBAAkB,GAA+B;IAC5D,gBAAgB,EAAE,gBAAgB;IAClC,cAAc,EAAE,cAAc;IAC9B,iBAAiB,EAAE,iBAAiB;IACpC,kBAAkB,EAAE,eAAe;IACnC,aAAa,EAAE,aAAa;IAC5B,kBAAkB,EAAE,kBAAkB;IACtC,oBAAoB,EAAE,6BAA6B;CACpD,CAAC;AAEF,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAErE,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,OAAO,EAAE,UAAU;IACnB,UAAU,EAAE,CAAC,OAAe,EAAE,EAAE,CAAC,GAAG,OAAO,OAAO;IAClD,QAAQ,EAAE,CAAC,KAAa,EAAE,EAAE,CAAC,GAAG,KAAK,OAAO;IAC5C,WAAW,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,aAAa,IAAI,EAAE;IAClD,MAAM,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,EAAE,CAAC,GAAG,IAAI,KAAK,IAAI,EAAE;IAC1D,QAAQ,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE;CACnE,CAAC","sourcesContent":["import type { FileOrigin } from './file-origins.js';\n\nexport const fileOriginRowLabel: Record<FileOrigin, string> = {\n 'league-picture': 'League picture',\n 'team-picture': 'Team picture',\n 'landing-picture': 'Landing picture',\n 'location-picture': 'Venue picture',\n 'award-badge': 'Award badge',\n 'waiver-signature': 'Waiver signature',\n 'hardware-signature': 'Hardware contract signature',\n};\n\nexport const UPLOAD_ROW_RELATIVE_TIME_CUTOFF_MS = 6 * 60 * 60 * 1000;\n\nexport const UPLOAD_ROW_DISPLAY_COPY = {\n justNow: 'just now',\n minutesAgo: (minutes: number) => `${minutes}m ago`,\n hoursAgo: (hours: number) => `${hours}h ago`,\n yesterdayAt: (time: string) => `Yesterday ${time}`,\n dateAt: (date: string, time: string) => `${date}, ${time}`,\n fileType: { image: 'Image', video: 'Video', audio: 'Audio', other: 'File' },\n} as const;\n"]}
|
|
@@ -85,6 +85,5 @@ export declare const MIGRATION_ACTION_IDS: {
|
|
|
85
85
|
readonly checkpointAbandonedRegistrationSweepEnabled: "checkpoint.abandonedRegistrationSweepEnabled";
|
|
86
86
|
};
|
|
87
87
|
export type MigrationActionId = (typeof MIGRATION_ACTION_IDS)[keyof typeof MIGRATION_ACTION_IDS];
|
|
88
|
-
/** Every action id, for the wire schemas that name one. */
|
|
89
88
|
export declare const MIGRATION_ACTION_ID_KEYS: [MigrationActionId, ...MigrationActionId[]];
|
|
90
89
|
//# sourceMappingURL=action-ids.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-ids.d.ts","sourceRoot":"","sources":["../../src/migration-console/action-ids.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"action-ids.d.ts","sourceRoot":"","sources":["../../src/migration-console/action-ids.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyGvB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;AAEjG,eAAO,MAAM,wBAAwB,EAA0C,CAC7E,iBAAiB,EACjB,GAAG,iBAAiB,EAAE,CACvB,CAAC"}
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
// The one declaration of every cutover action id (RULE-STD-ENG-002). The manifest, the console's callables
|
|
2
|
-
// and screen, and every delete gate name an action by the id declared here — never by a string
|
|
3
|
-
// literal at the call site, where a typo is a gate that silently never matches.
|
|
4
|
-
//
|
|
5
|
-
// An id is declared even before its action exists: a destructive core requires its verifications
|
|
6
|
-
// by id, so it refuses to run until each one exists and has passed — failing closed, rather than
|
|
7
|
-
// resting on a precondition written in prose that nothing enforces.
|
|
8
1
|
export const MIGRATION_ACTION_IDS = {
|
|
9
|
-
// Accounts, identity, and global roles.
|
|
10
2
|
copyUserProfiles: 'copy.userProfiles',
|
|
11
3
|
copyHistoricalStats: 'copy.historicalStats',
|
|
12
4
|
deriveReservedDisplayNames: 'derive.reservedDisplayNames',
|
|
@@ -24,15 +16,11 @@ export const MIGRATION_ACTION_IDS = {
|
|
|
24
16
|
// until those copies are verified complete, every ghost reads as unreferenced.
|
|
25
17
|
verifyTeamMemberships: 'verify.teamMemberships',
|
|
26
18
|
verifyGameRosterPlayers: 'verify.gameRosterPlayers',
|
|
27
|
-
// Teams, memberships, and game rosters.
|
|
28
19
|
copyLeagueTeams: 'copy.leagueTeams',
|
|
29
20
|
verifyLeagueTeams: 'verify.leagueTeams',
|
|
30
21
|
deleteV1Teams: 'delete.v1Teams',
|
|
31
22
|
copyTeamMemberships: 'copy.teamMemberships',
|
|
32
23
|
deleteV1TeamMembers: 'delete.v1TeamMembers',
|
|
33
|
-
// The ways onto a team. Each copy reads the copied `teamMemberships` to close a pending invitation
|
|
34
|
-
// or request its player already answered by joining, or to leave out a signup joining left behind,
|
|
35
|
-
// so each runs after `copy.teamMemberships`.
|
|
36
24
|
copyTeamInvitations: 'copy.teamInvitations',
|
|
37
25
|
verifyTeamInvitations: 'verify.teamInvitations',
|
|
38
26
|
deleteV1TeamInvites: 'delete.v1TeamInvites',
|
|
@@ -44,44 +32,29 @@ export const MIGRATION_ACTION_IDS = {
|
|
|
44
32
|
deleteV1FreeAgentSignups: 'delete.v1FreeAgentSignups',
|
|
45
33
|
copyGameRosterPlayers: 'copy.gameRosterPlayers',
|
|
46
34
|
deleteV1GameRosters: 'delete.v1GameRosters',
|
|
47
|
-
//
|
|
48
|
-
//
|
|
49
|
-
// pin an entry holding a recorded stat — to be copied and verified.
|
|
35
|
+
// It removes the stale entries a copied roster holds, so it waits for the memberships and the
|
|
36
|
+
// game stats — which pin an entry holding a recorded stat — to be copied and verified.
|
|
50
37
|
reconcileOpenGameRosters: 'reconcile.openGameRosters',
|
|
51
38
|
verifyGameStats: 'verify.gameStats',
|
|
52
|
-
// Informational: each user whose V1 league total differs from the sum of their rebuilt per-membership
|
|
53
|
-
// rows. It gates nothing; a summary is rebuilt by design.
|
|
54
39
|
verifyLeaguePlayerStats: 'verify.leaguePlayerStats',
|
|
55
|
-
// Games. `copy.sportGames` is the one reader of each V1 game, writing its schedule fields and its
|
|
56
|
-
// stats documents together; the V1 game document goes last, after its roster.
|
|
57
40
|
copySportGames: 'copy.sportGames',
|
|
58
|
-
// A recorded stat line no roster entry or play places: the admin names its team, and the game's
|
|
59
|
-
// copy runs again.
|
|
60
41
|
resolveUnrosteredStatLine: 'resolve.unrosteredStatLine',
|
|
61
42
|
verifySportGames: 'verify.sportGames',
|
|
62
43
|
deleteV1LeagueGames: 'delete.v1LeagueGames',
|
|
63
|
-
// Signed waivers: the records, and their signature files, which stay where V1 put them.
|
|
64
44
|
copySignedWaivers: 'copy.signedWaivers',
|
|
65
45
|
verifySignedWaivers: 'verify.signedWaivers',
|
|
66
46
|
verifySignatureFilesResolvable: 'verify.signatureFilesResolvable',
|
|
67
47
|
revokeV1SignatureDownloadTokens: 'revoke.v1SignatureDownloadTokens',
|
|
68
48
|
deleteV1WaiverSignatures: 'delete.v1WaiverSignatures',
|
|
69
|
-
// Hardware loan contracts: the records, and their signature files, which stay where V1 put them.
|
|
70
|
-
// The two signature-file actions above walk the contracts after the waivers.
|
|
71
49
|
copyHardwareLoanContracts: 'copy.hardwareLoanContracts',
|
|
72
50
|
verifyHardwareLoanContracts: 'verify.hardwareLoanContracts',
|
|
73
51
|
deleteV1HardwareContracts: 'delete.v1HardwareContracts',
|
|
74
|
-
// Leagues.
|
|
75
52
|
copySportLeagues: 'copy.sportLeagues',
|
|
76
53
|
verifySportLeagues: 'verify.sportLeagues',
|
|
77
54
|
deleteV1Leagues: 'delete.v1Leagues',
|
|
78
|
-
// The parked chat documents under a V1 league, which keep the league alive until they go.
|
|
79
55
|
deleteV1LeagueChats: 'delete.v1LeagueChats',
|
|
80
|
-
// The V1 league, landing, venue, and award badge images, fed through the upload pipeline. The
|
|
81
|
-
// verification is required by every V1 delete whose documents the carry reads images from.
|
|
82
56
|
carryV1Pictures: 'carry.v1Pictures',
|
|
83
57
|
verifyV1Pictures: 'verify.v1Pictures',
|
|
84
|
-
// App configuration: `landing/base` splits into the three `_appConfig` documents.
|
|
85
58
|
copyAppConfig: 'copy.appConfig',
|
|
86
59
|
copyLandingPageConfig: 'copy.landingPageConfig',
|
|
87
60
|
copyStatsBeacon: 'copy.statsBeacon',
|
|
@@ -89,47 +62,31 @@ export const MIGRATION_ACTION_IDS = {
|
|
|
89
62
|
verifyLandingPageConfig: 'verify.landingPageConfig',
|
|
90
63
|
verifyStatsBeacon: 'verify.statsBeacon',
|
|
91
64
|
deleteV1LandingBase: 'delete.v1LandingBase',
|
|
92
|
-
// Waiver templates, each carried with its wording as version 1.
|
|
93
65
|
copyWaiverTemplates: 'copy.waiverTemplates',
|
|
94
66
|
verifyWaiverTemplates: 'verify.waiverTemplates',
|
|
95
67
|
deleteV1Waivers: 'delete.v1Waivers',
|
|
96
|
-
// The award catalog: the `landing/admin` awards array becomes one document per award, its badge
|
|
97
|
-
// carried by `carry.v1Pictures`.
|
|
98
68
|
copyAwardDefinitions: 'copy.awardDefinitions',
|
|
99
69
|
verifyAwardDefinitions: 'verify.awardDefinitions',
|
|
100
70
|
deleteV1AwardCatalog: 'delete.v1AwardCatalog',
|
|
101
|
-
// Game locations: the `landing/admin` locations array becomes one document per venue.
|
|
102
71
|
copyGameLocations: 'copy.gameLocations',
|
|
103
72
|
verifyGameLocations: 'verify.gameLocations',
|
|
104
73
|
deleteV1GameLocations: 'delete.v1GameLocations',
|
|
105
|
-
// The admin dashboard counts are counted live, never stored; the V1 collection is deleted.
|
|
106
74
|
deleteV1AdminStats: 'delete.v1AdminStats',
|
|
107
|
-
// The store and team payments are deleted, not copied, once nothing in them is a completed
|
|
108
|
-
// purchase.
|
|
109
75
|
verifyV1CommerceDiscardable: 'verify.v1CommerceDiscardable',
|
|
110
76
|
deleteV1Commerce: 'delete.v1Commerce',
|
|
111
|
-
// The derived statistics, rebuilt from the copied games by the Fix stats actions, then validated.
|
|
112
|
-
// The console records each run the operator makes from the Stats group; it never runs a second
|
|
113
|
-
// calculator of its own.
|
|
114
77
|
rebuildLeagueStats: 'rebuild.leagueStats',
|
|
115
78
|
rebuildLifetimeStats: 'rebuild.lifetimeStats',
|
|
116
79
|
rebuildSportHallOfFame: 'rebuild.sportHallOfFame',
|
|
117
80
|
validateStats: 'validate.stats',
|
|
118
|
-
// The V1 hall of fame is rebuilt, never copied: its delete waits for the rebuilt documents.
|
|
119
81
|
verifySportHallOfFame: 'verify.sportHallOfFame',
|
|
120
82
|
deleteV1HallOfFame: 'delete.v1HallOfFame',
|
|
121
|
-
// V1 validation reports describe V1 aggregates at a past moment; nothing is copied.
|
|
122
83
|
deleteV1ValidationReports: 'delete.v1ValidationReports',
|
|
123
|
-
// The console's own marker: from here on the product owns every destination.
|
|
124
84
|
recordCutoverLive: 'record.cutoverLive',
|
|
125
|
-
// Operator checkpoints — external work the app cannot perform, recorded with its evidence.
|
|
126
85
|
checkpointV1FirestoreExport: 'checkpoint.v1FirestoreExport',
|
|
127
86
|
checkpointPaymentCredentialsRetired: 'checkpoint.paymentCredentialsRetired',
|
|
128
87
|
checkpointServiceAccountKeyRevoked: 'checkpoint.serviceAccountKeyRevoked',
|
|
129
88
|
checkpointUnattachedPicturesReuploaded: 'checkpoint.unattachedPicturesReuploaded',
|
|
130
|
-
// The gate the abandoned-registration sweep reads: it deletes nothing until this is recorded.
|
|
131
89
|
checkpointAbandonedRegistrationSweepEnabled: 'checkpoint.abandonedRegistrationSweepEnabled',
|
|
132
90
|
};
|
|
133
|
-
/** Every action id, for the wire schemas that name one. */
|
|
134
91
|
export const MIGRATION_ACTION_ID_KEYS = Object.values(MIGRATION_ACTION_IDS);
|
|
135
92
|
//# sourceMappingURL=action-ids.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-ids.js","sourceRoot":"","sources":["../../src/migration-console/action-ids.ts"],"names":[],"mappings":"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","sourcesContent":["// The one declaration of every cutover action id (RULE-STD-ENG-002). The manifest, the console's callables\n// and screen, and every delete gate name an action by the id declared here — never by a string\n// literal at the call site, where a typo is a gate that silently never matches.\n//\n// An id is declared even before its action exists: a destructive core requires its verifications\n// by id, so it refuses to run until each one exists and has passed — failing closed, rather than\n// resting on a precondition written in prose that nothing enforces.\n\nexport const MIGRATION_ACTION_IDS = {\n // Accounts, identity, and global roles.\n copyUserProfiles: 'copy.userProfiles',\n copyHistoricalStats: 'copy.historicalStats',\n deriveReservedDisplayNames: 'derive.reservedDisplayNames',\n migratePublicUsers: 'migrate.publicUsers',\n copyAdminList: 'copy.adminList',\n verifyUserProfiles: 'verify.userProfiles',\n verifyHistoricalStats: 'verify.historicalStats',\n verifyReservedDisplayNames: 'verify.reservedDisplayNames',\n verifyPublicUsers: 'verify.publicUsers',\n verifyAdminList: 'verify.adminList',\n cleanupOrphanGhostPublicUsers: 'cleanup.orphanGhostPublicUsers',\n deleteV1Users: 'delete.v1Users',\n deleteV1AdminRoles: 'delete.v1AdminRoles',\n\n // Required by the ghost cleanup, whose probes read `teamMemberships` and `gameRosterPlayers`:\n // until those copies are verified complete, every ghost reads as unreferenced.\n verifyTeamMemberships: 'verify.teamMemberships',\n verifyGameRosterPlayers: 'verify.gameRosterPlayers',\n\n // Teams, memberships, and game rosters.\n copyLeagueTeams: 'copy.leagueTeams',\n verifyLeagueTeams: 'verify.leagueTeams',\n deleteV1Teams: 'delete.v1Teams',\n copyTeamMemberships: 'copy.teamMemberships',\n deleteV1TeamMembers: 'delete.v1TeamMembers',\n // The ways onto a team. Each copy reads the copied `teamMemberships` to close a pending invitation\n // or request its player already answered by joining, or to leave out a signup joining left behind,\n // so each runs after `copy.teamMemberships`.\n copyTeamInvitations: 'copy.teamInvitations',\n verifyTeamInvitations: 'verify.teamInvitations',\n deleteV1TeamInvites: 'delete.v1TeamInvites',\n copyTeamJoinRequests: 'copy.teamJoinRequests',\n verifyTeamJoinRequests: 'verify.teamJoinRequests',\n deleteV1JoinRequests: 'delete.v1JoinRequests',\n copyLeagueFreeAgents: 'copy.leagueFreeAgents',\n verifyLeagueFreeAgents: 'verify.leagueFreeAgents',\n deleteV1FreeAgentSignups: 'delete.v1FreeAgentSignups',\n copyGameRosterPlayers: 'copy.gameRosterPlayers',\n deleteV1GameRosters: 'delete.v1GameRosters',\n // The games open at the cutover, reconciled once against the copied memberships. It removes the\n // stale entries a copied roster holds, so it waits for the memberships and the game stats — which\n // pin an entry holding a recorded stat — to be copied and verified.\n reconcileOpenGameRosters: 'reconcile.openGameRosters',\n verifyGameStats: 'verify.gameStats',\n // Informational: each user whose V1 league total differs from the sum of their rebuilt per-membership\n // rows. It gates nothing; a summary is rebuilt by design.\n verifyLeaguePlayerStats: 'verify.leaguePlayerStats',\n\n // Games. `copy.sportGames` is the one reader of each V1 game, writing its schedule fields and its\n // stats documents together; the V1 game document goes last, after its roster.\n copySportGames: 'copy.sportGames',\n // A recorded stat line no roster entry or play places: the admin names its team, and the game's\n // copy runs again.\n resolveUnrosteredStatLine: 'resolve.unrosteredStatLine',\n verifySportGames: 'verify.sportGames',\n deleteV1LeagueGames: 'delete.v1LeagueGames',\n\n // Signed waivers: the records, and their signature files, which stay where V1 put them.\n copySignedWaivers: 'copy.signedWaivers',\n verifySignedWaivers: 'verify.signedWaivers',\n verifySignatureFilesResolvable: 'verify.signatureFilesResolvable',\n revokeV1SignatureDownloadTokens: 'revoke.v1SignatureDownloadTokens',\n deleteV1WaiverSignatures: 'delete.v1WaiverSignatures',\n\n // Hardware loan contracts: the records, and their signature files, which stay where V1 put them.\n // The two signature-file actions above walk the contracts after the waivers.\n copyHardwareLoanContracts: 'copy.hardwareLoanContracts',\n verifyHardwareLoanContracts: 'verify.hardwareLoanContracts',\n deleteV1HardwareContracts: 'delete.v1HardwareContracts',\n\n // Leagues.\n copySportLeagues: 'copy.sportLeagues',\n verifySportLeagues: 'verify.sportLeagues',\n deleteV1Leagues: 'delete.v1Leagues',\n // The parked chat documents under a V1 league, which keep the league alive until they go.\n deleteV1LeagueChats: 'delete.v1LeagueChats',\n\n // The V1 league, landing, venue, and award badge images, fed through the upload pipeline. The\n // verification is required by every V1 delete whose documents the carry reads images from.\n carryV1Pictures: 'carry.v1Pictures',\n verifyV1Pictures: 'verify.v1Pictures',\n\n // App configuration: `landing/base` splits into the three `_appConfig` documents.\n copyAppConfig: 'copy.appConfig',\n copyLandingPageConfig: 'copy.landingPageConfig',\n copyStatsBeacon: 'copy.statsBeacon',\n verifyAppConfig: 'verify.appConfig',\n verifyLandingPageConfig: 'verify.landingPageConfig',\n verifyStatsBeacon: 'verify.statsBeacon',\n deleteV1LandingBase: 'delete.v1LandingBase',\n\n // Waiver templates, each carried with its wording as version 1.\n copyWaiverTemplates: 'copy.waiverTemplates',\n verifyWaiverTemplates: 'verify.waiverTemplates',\n deleteV1Waivers: 'delete.v1Waivers',\n\n // The award catalog: the `landing/admin` awards array becomes one document per award, its badge\n // carried by `carry.v1Pictures`.\n copyAwardDefinitions: 'copy.awardDefinitions',\n verifyAwardDefinitions: 'verify.awardDefinitions',\n deleteV1AwardCatalog: 'delete.v1AwardCatalog',\n\n // Game locations: the `landing/admin` locations array becomes one document per venue.\n copyGameLocations: 'copy.gameLocations',\n verifyGameLocations: 'verify.gameLocations',\n deleteV1GameLocations: 'delete.v1GameLocations',\n\n // The admin dashboard counts are counted live, never stored; the V1 collection is deleted.\n deleteV1AdminStats: 'delete.v1AdminStats',\n\n // The store and team payments are deleted, not copied, once nothing in them is a completed\n // purchase.\n verifyV1CommerceDiscardable: 'verify.v1CommerceDiscardable',\n deleteV1Commerce: 'delete.v1Commerce',\n\n // The derived statistics, rebuilt from the copied games by the Fix stats actions, then validated.\n // The console records each run the operator makes from the Stats group; it never runs a second\n // calculator of its own.\n rebuildLeagueStats: 'rebuild.leagueStats',\n rebuildLifetimeStats: 'rebuild.lifetimeStats',\n rebuildSportHallOfFame: 'rebuild.sportHallOfFame',\n validateStats: 'validate.stats',\n // The V1 hall of fame is rebuilt, never copied: its delete waits for the rebuilt documents.\n verifySportHallOfFame: 'verify.sportHallOfFame',\n deleteV1HallOfFame: 'delete.v1HallOfFame',\n // V1 validation reports describe V1 aggregates at a past moment; nothing is copied.\n deleteV1ValidationReports: 'delete.v1ValidationReports',\n\n // The console's own marker: from here on the product owns every destination.\n recordCutoverLive: 'record.cutoverLive',\n\n // Operator checkpoints — external work the app cannot perform, recorded with its evidence.\n checkpointV1FirestoreExport: 'checkpoint.v1FirestoreExport',\n checkpointPaymentCredentialsRetired: 'checkpoint.paymentCredentialsRetired',\n checkpointServiceAccountKeyRevoked: 'checkpoint.serviceAccountKeyRevoked',\n checkpointUnattachedPicturesReuploaded: 'checkpoint.unattachedPicturesReuploaded',\n // The gate the abandoned-registration sweep reads: it deletes nothing until this is recorded.\n checkpointAbandonedRegistrationSweepEnabled: 'checkpoint.abandonedRegistrationSweepEnabled',\n} as const;\n\nexport type MigrationActionId = (typeof MIGRATION_ACTION_IDS)[keyof typeof MIGRATION_ACTION_IDS];\n\n/** Every action id, for the wire schemas that name one. */\nexport const MIGRATION_ACTION_ID_KEYS = Object.values(MIGRATION_ACTION_IDS) as [\n MigrationActionId,\n ...MigrationActionId[],\n];\n"]}
|
|
1
|
+
{"version":3,"file":"action-ids.js","sourceRoot":"","sources":["../../src/migration-console/action-ids.ts"],"names":[],"mappings":"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","sourcesContent":["export const MIGRATION_ACTION_IDS = {\n copyUserProfiles: 'copy.userProfiles',\n copyHistoricalStats: 'copy.historicalStats',\n deriveReservedDisplayNames: 'derive.reservedDisplayNames',\n migratePublicUsers: 'migrate.publicUsers',\n copyAdminList: 'copy.adminList',\n verifyUserProfiles: 'verify.userProfiles',\n verifyHistoricalStats: 'verify.historicalStats',\n verifyReservedDisplayNames: 'verify.reservedDisplayNames',\n verifyPublicUsers: 'verify.publicUsers',\n verifyAdminList: 'verify.adminList',\n cleanupOrphanGhostPublicUsers: 'cleanup.orphanGhostPublicUsers',\n deleteV1Users: 'delete.v1Users',\n deleteV1AdminRoles: 'delete.v1AdminRoles',\n\n // Required by the ghost cleanup, whose probes read `teamMemberships` and `gameRosterPlayers`:\n // until those copies are verified complete, every ghost reads as unreferenced.\n verifyTeamMemberships: 'verify.teamMemberships',\n verifyGameRosterPlayers: 'verify.gameRosterPlayers',\n\n copyLeagueTeams: 'copy.leagueTeams',\n verifyLeagueTeams: 'verify.leagueTeams',\n deleteV1Teams: 'delete.v1Teams',\n copyTeamMemberships: 'copy.teamMemberships',\n deleteV1TeamMembers: 'delete.v1TeamMembers',\n copyTeamInvitations: 'copy.teamInvitations',\n verifyTeamInvitations: 'verify.teamInvitations',\n deleteV1TeamInvites: 'delete.v1TeamInvites',\n copyTeamJoinRequests: 'copy.teamJoinRequests',\n verifyTeamJoinRequests: 'verify.teamJoinRequests',\n deleteV1JoinRequests: 'delete.v1JoinRequests',\n copyLeagueFreeAgents: 'copy.leagueFreeAgents',\n verifyLeagueFreeAgents: 'verify.leagueFreeAgents',\n deleteV1FreeAgentSignups: 'delete.v1FreeAgentSignups',\n copyGameRosterPlayers: 'copy.gameRosterPlayers',\n deleteV1GameRosters: 'delete.v1GameRosters',\n // It removes the stale entries a copied roster holds, so it waits for the memberships and the\n // game stats — which pin an entry holding a recorded stat — to be copied and verified.\n reconcileOpenGameRosters: 'reconcile.openGameRosters',\n verifyGameStats: 'verify.gameStats',\n verifyLeaguePlayerStats: 'verify.leaguePlayerStats',\n\n copySportGames: 'copy.sportGames',\n resolveUnrosteredStatLine: 'resolve.unrosteredStatLine',\n verifySportGames: 'verify.sportGames',\n deleteV1LeagueGames: 'delete.v1LeagueGames',\n\n copySignedWaivers: 'copy.signedWaivers',\n verifySignedWaivers: 'verify.signedWaivers',\n verifySignatureFilesResolvable: 'verify.signatureFilesResolvable',\n revokeV1SignatureDownloadTokens: 'revoke.v1SignatureDownloadTokens',\n deleteV1WaiverSignatures: 'delete.v1WaiverSignatures',\n\n copyHardwareLoanContracts: 'copy.hardwareLoanContracts',\n verifyHardwareLoanContracts: 'verify.hardwareLoanContracts',\n deleteV1HardwareContracts: 'delete.v1HardwareContracts',\n\n copySportLeagues: 'copy.sportLeagues',\n verifySportLeagues: 'verify.sportLeagues',\n deleteV1Leagues: 'delete.v1Leagues',\n deleteV1LeagueChats: 'delete.v1LeagueChats',\n\n carryV1Pictures: 'carry.v1Pictures',\n verifyV1Pictures: 'verify.v1Pictures',\n\n copyAppConfig: 'copy.appConfig',\n copyLandingPageConfig: 'copy.landingPageConfig',\n copyStatsBeacon: 'copy.statsBeacon',\n verifyAppConfig: 'verify.appConfig',\n verifyLandingPageConfig: 'verify.landingPageConfig',\n verifyStatsBeacon: 'verify.statsBeacon',\n deleteV1LandingBase: 'delete.v1LandingBase',\n\n copyWaiverTemplates: 'copy.waiverTemplates',\n verifyWaiverTemplates: 'verify.waiverTemplates',\n deleteV1Waivers: 'delete.v1Waivers',\n\n copyAwardDefinitions: 'copy.awardDefinitions',\n verifyAwardDefinitions: 'verify.awardDefinitions',\n deleteV1AwardCatalog: 'delete.v1AwardCatalog',\n\n copyGameLocations: 'copy.gameLocations',\n verifyGameLocations: 'verify.gameLocations',\n deleteV1GameLocations: 'delete.v1GameLocations',\n\n deleteV1AdminStats: 'delete.v1AdminStats',\n\n verifyV1CommerceDiscardable: 'verify.v1CommerceDiscardable',\n deleteV1Commerce: 'delete.v1Commerce',\n\n rebuildLeagueStats: 'rebuild.leagueStats',\n rebuildLifetimeStats: 'rebuild.lifetimeStats',\n rebuildSportHallOfFame: 'rebuild.sportHallOfFame',\n validateStats: 'validate.stats',\n verifySportHallOfFame: 'verify.sportHallOfFame',\n deleteV1HallOfFame: 'delete.v1HallOfFame',\n deleteV1ValidationReports: 'delete.v1ValidationReports',\n\n recordCutoverLive: 'record.cutoverLive',\n\n checkpointV1FirestoreExport: 'checkpoint.v1FirestoreExport',\n checkpointPaymentCredentialsRetired: 'checkpoint.paymentCredentialsRetired',\n checkpointServiceAccountKeyRevoked: 'checkpoint.serviceAccountKeyRevoked',\n checkpointUnattachedPicturesReuploaded: 'checkpoint.unattachedPicturesReuploaded',\n checkpointAbandonedRegistrationSweepEnabled: 'checkpoint.abandonedRegistrationSweepEnabled',\n} as const;\n\nexport type MigrationActionId = (typeof MIGRATION_ACTION_IDS)[keyof typeof MIGRATION_ACTION_IDS];\n\nexport const MIGRATION_ACTION_ID_KEYS = Object.values(MIGRATION_ACTION_IDS) as [\n MigrationActionId,\n ...MigrationActionId[],\n];\n"]}
|
|
@@ -2,19 +2,15 @@ import type { MigrationActionId } from './action-ids.js';
|
|
|
2
2
|
import type { RegisteredCollectionPath } from '../doc-schemas/registry.js';
|
|
3
3
|
export declare const MIGRATION_STEP_KIND_KEYS: readonly ["executable", "productControl", "operatorCheckpoint", "cutoverMarker"];
|
|
4
4
|
export type MigrationStepKind = (typeof MIGRATION_STEP_KIND_KEYS)[number];
|
|
5
|
-
/** What an executable action's pages return: documents written, or records compared. */
|
|
6
5
|
export declare const MIGRATION_RESULT_KIND_KEYS: readonly ["write", "verification"];
|
|
7
6
|
export type MigrationResultKind = (typeof MIGRATION_RESULT_KIND_KEYS)[number];
|
|
8
|
-
/** Where a product control's completion is proven from. */
|
|
9
7
|
export declare const MIGRATION_CONTROL_EVIDENCE_KEYS: readonly ["statsOperation", "statsValidationReport"];
|
|
10
8
|
export type MigrationControlEvidence = (typeof MIGRATION_CONTROL_EVIDENCE_KEYS)[number];
|
|
11
|
-
/** The step folder under the migration plan that owns a step's correctness. */
|
|
12
9
|
export declare const MIGRATION_OWNING_STEP_KEYS: readonly ["auth", "q-core", "stat-data-model", "high-risk-callables", "uploads-and-media", "query-and-invalidation", "secret-management", "migration-console"];
|
|
13
10
|
export type MigrationOwningStep = (typeof MIGRATION_OWNING_STEP_KEYS)[number];
|
|
14
11
|
interface MigrationStepBase {
|
|
15
12
|
readonly id: MigrationActionId;
|
|
16
13
|
readonly title: string;
|
|
17
|
-
/** What the step changes or proves, in a sentence or two the operator reads before running it. */
|
|
18
14
|
readonly summary: string;
|
|
19
15
|
readonly owningStep: MigrationOwningStep;
|
|
20
16
|
readonly dependsOn: readonly MigrationActionId[];
|
|
@@ -22,40 +18,27 @@ interface MigrationStepBase {
|
|
|
22
18
|
}
|
|
23
19
|
export interface ExecutableMigrationStep extends MigrationStepBase {
|
|
24
20
|
readonly kind: 'executable';
|
|
25
|
-
/** The callable that runs one page of it. */
|
|
26
21
|
readonly callable: string;
|
|
27
22
|
readonly resultKind: MigrationResultKind;
|
|
28
|
-
/** Whether it removes V1 data or revokes access — run only once its gates have passed. */
|
|
29
23
|
readonly destructive: boolean;
|
|
30
|
-
/** False for an action that is one bounded call, never paged. */
|
|
31
24
|
readonly paged: boolean;
|
|
32
|
-
/** The page size the console proposes; each core refuses a page larger than it can commit. */
|
|
33
25
|
readonly defaultPageSize: number;
|
|
34
|
-
/** A verification that informs the rehearsal and gates nothing. */
|
|
35
26
|
readonly informational: boolean;
|
|
36
|
-
/** Why replaying a page, or the whole action, cannot duplicate an effect. */
|
|
37
27
|
readonly idempotency: string;
|
|
38
|
-
/** The deterministic order it pages in, and what its resume key names. */
|
|
39
28
|
readonly resumeKey: string;
|
|
40
|
-
/** The safe response after a partial run. */
|
|
41
29
|
readonly recovery: string;
|
|
42
30
|
}
|
|
43
31
|
export interface ProductControlMigrationStep extends MigrationStepBase {
|
|
44
32
|
readonly kind: 'productControl';
|
|
45
|
-
/** The product callable the operator runs. */
|
|
46
33
|
readonly callable: string;
|
|
47
|
-
/** Where in the product the operator runs it, and with what scope. */
|
|
48
34
|
readonly instructions: string;
|
|
49
35
|
readonly evidence: MigrationControlEvidence;
|
|
50
|
-
/** The documents it rebuilds, as `COLLECTION_SCHEMAS` templates: a destination no copy writes. */
|
|
51
36
|
readonly destinations: readonly RegisteredCollectionPath[];
|
|
52
37
|
}
|
|
53
38
|
export interface OperatorCheckpointMigrationStep extends MigrationStepBase {
|
|
54
39
|
readonly kind: 'operatorCheckpoint';
|
|
55
40
|
readonly instructions: string;
|
|
56
|
-
/** What the operator records as proof before the next step unlocks. */
|
|
57
41
|
readonly evidence: string;
|
|
58
|
-
/** The point past which the external action cannot be undone, or null when none exists. */
|
|
59
42
|
readonly noReturnBoundary: string | null;
|
|
60
43
|
}
|
|
61
44
|
export interface CutoverMarkerMigrationStep extends MigrationStepBase {
|
|
@@ -64,20 +47,13 @@ export interface CutoverMarkerMigrationStep extends MigrationStepBase {
|
|
|
64
47
|
readonly noReturnBoundary: string;
|
|
65
48
|
}
|
|
66
49
|
export type MigrationStep = ExecutableMigrationStep | ProductControlMigrationStep | OperatorCheckpointMigrationStep | CutoverMarkerMigrationStep;
|
|
67
|
-
/** The callable that records a product control's run, checking its evidence. */
|
|
68
50
|
export declare const RECORD_MIGRATION_CONTROL_RUN_CALLABLE = "adminRecordMigrationControlRun";
|
|
69
|
-
/** The callable that records an operator checkpoint with its evidence. */
|
|
70
51
|
export declare const RECORD_MIGRATION_CHECKPOINT_CALLABLE = "adminRecordMigrationCheckpoint";
|
|
71
|
-
/** The callable that records the cutover. */
|
|
72
52
|
export declare const RECORD_MIGRATION_CUTOVER_CALLABLE = "adminRecordMigrationCutover";
|
|
73
|
-
/** The callable that reads the console: the cutover marker, the lock, and every step's state. */
|
|
74
53
|
export declare const GET_MIGRATION_CONSOLE_CALLABLE = "adminGetMigrationConsole";
|
|
75
|
-
/** The console's callable name for an executable action: `admin` + its verb and its object. */
|
|
76
54
|
export declare function migrationActionCallableName(id: MigrationActionId): string;
|
|
77
55
|
export declare const MIGRATION_CUTOVER_MANIFEST: readonly MigrationStep[];
|
|
78
|
-
/** Every step by its id. */
|
|
79
56
|
export declare const MIGRATION_STEP_BY_ID: ReadonlyMap<MigrationActionId, MigrationStep>;
|
|
80
|
-
/** The steps of one kind, in cutover order. */
|
|
81
57
|
export declare function migrationStepsOfKind<K extends MigrationStepKind>(kind: K): Extract<MigrationStep, {
|
|
82
58
|
kind: K;
|
|
83
59
|
}>[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../src/migration-console/manifest.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../src/migration-console/manifest.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,23 +1,3 @@
|
|
|
1
|
-
// The 2.0 cutover manifest: every step of the coordinated migration, in the order the operator runs
|
|
2
|
-
// them, with what each step needs first. The console's callables enforce it — an action whose
|
|
3
|
-
// dependencies are not satisfied refuses to run — and its screen renders it, so both read this one
|
|
4
|
-
// declaration (RULE-STD-ARCH-101, RULE-STD-ENG-002).
|
|
5
|
-
//
|
|
6
|
-
// Four kinds of step:
|
|
7
|
-
// executable a console action with its own admin callable: admin-asserted, audited,
|
|
8
|
-
// idempotent, resumable by its operation id, and re-runnable after a partial
|
|
9
|
-
// failure. A write action offers a dry run; a verification only reads.
|
|
10
|
-
// productControl a product callable the operator runs from its own screen (the Fix stats
|
|
11
|
-
// actions and the stats check). The console never runs
|
|
12
|
-
// a second copy of it; it records the run, checking the run's own evidence.
|
|
13
|
-
// operatorCheckpoint external work the app cannot do safely — an export, a credential
|
|
14
|
-
// revocation, a manual re-upload. Recorded with the operator's evidence; it
|
|
15
|
-
// never claims the console performed it.
|
|
16
|
-
// cutoverMarker the console's own record that the product now owns every destination.
|
|
17
|
-
//
|
|
18
|
-
// `dependsOn` is enforced: each id must be satisfied — an executable action's last real run reached
|
|
19
|
-
// its end (a verification's also passed), and a recorded step recorded — before the step runs.
|
|
20
|
-
// `orderedAfter` is display order only: a sequence that is ordering, not a gate.
|
|
21
1
|
import { MIGRATION_ACTION_IDS as A } from './action-ids.js';
|
|
22
2
|
export const MIGRATION_STEP_KIND_KEYS = [
|
|
23
3
|
'executable',
|
|
@@ -25,17 +5,8 @@ export const MIGRATION_STEP_KIND_KEYS = [
|
|
|
25
5
|
'operatorCheckpoint',
|
|
26
6
|
'cutoverMarker',
|
|
27
7
|
];
|
|
28
|
-
/** What an executable action's pages return: documents written, or records compared. */
|
|
29
8
|
export const MIGRATION_RESULT_KIND_KEYS = ['write', 'verification'];
|
|
30
|
-
|
|
31
|
-
export const MIGRATION_CONTROL_EVIDENCE_KEYS = [
|
|
32
|
-
// The control's `statsOperations` document: a real run, complete, over the whole scope, that
|
|
33
|
-
// left no game out.
|
|
34
|
-
'statsOperation',
|
|
35
|
-
// The validation's report: complete, over everything, with no finding.
|
|
36
|
-
'statsValidationReport',
|
|
37
|
-
];
|
|
38
|
-
/** The step folder under the migration plan that owns a step's correctness. */
|
|
9
|
+
export const MIGRATION_CONTROL_EVIDENCE_KEYS = ['statsOperation', 'statsValidationReport'];
|
|
39
10
|
export const MIGRATION_OWNING_STEP_KEYS = [
|
|
40
11
|
'auth',
|
|
41
12
|
'q-core',
|
|
@@ -46,15 +17,10 @@ export const MIGRATION_OWNING_STEP_KEYS = [
|
|
|
46
17
|
'secret-management',
|
|
47
18
|
'migration-console',
|
|
48
19
|
];
|
|
49
|
-
/** The callable that records a product control's run, checking its evidence. */
|
|
50
20
|
export const RECORD_MIGRATION_CONTROL_RUN_CALLABLE = 'adminRecordMigrationControlRun';
|
|
51
|
-
/** The callable that records an operator checkpoint with its evidence. */
|
|
52
21
|
export const RECORD_MIGRATION_CHECKPOINT_CALLABLE = 'adminRecordMigrationCheckpoint';
|
|
53
|
-
/** The callable that records the cutover. */
|
|
54
22
|
export const RECORD_MIGRATION_CUTOVER_CALLABLE = 'adminRecordMigrationCutover';
|
|
55
|
-
/** The callable that reads the console: the cutover marker, the lock, and every step's state. */
|
|
56
23
|
export const GET_MIGRATION_CONSOLE_CALLABLE = 'adminGetMigrationConsole';
|
|
57
|
-
/** The console's callable name for an executable action: `admin` + its verb and its object. */
|
|
58
24
|
export function migrationActionCallableName(id) {
|
|
59
25
|
const [verb = '', object = ''] = id.split('.');
|
|
60
26
|
const capitalize = (word) => word.charAt(0).toUpperCase() + word.slice(1);
|
|
@@ -128,7 +94,6 @@ function deleteStep(id, options) {
|
|
|
128
94
|
orderedAfter: options.orderedAfter ?? [],
|
|
129
95
|
};
|
|
130
96
|
}
|
|
131
|
-
/** The copies whose verifications must pass before the rebuild reads the games they copied. */
|
|
132
97
|
const SOURCE_VERIFICATIONS_FOR_REBUILD = [
|
|
133
98
|
A.verifySportLeagues,
|
|
134
99
|
A.verifyLeagueTeams,
|
|
@@ -137,10 +102,6 @@ const SOURCE_VERIFICATIONS_FOR_REBUILD = [
|
|
|
137
102
|
A.verifySportGames,
|
|
138
103
|
A.verifyGameStats,
|
|
139
104
|
];
|
|
140
|
-
/**
|
|
141
|
-
* Every copy's verification. Each must pass before the cutover is recorded: a failed or skipped
|
|
142
|
-
* record keeps the migration from being declared complete.
|
|
143
|
-
*/
|
|
144
105
|
const COPY_VERIFICATIONS = [
|
|
145
106
|
A.verifyAdminList,
|
|
146
107
|
A.verifyAppConfig,
|
|
@@ -167,7 +128,6 @@ const COPY_VERIFICATIONS = [
|
|
|
167
128
|
A.verifyV1Pictures,
|
|
168
129
|
];
|
|
169
130
|
export const MIGRATION_CUTOVER_MANIFEST = [
|
|
170
|
-
// ── Before anything is read ────────────────────────────────────────────────────────────────────
|
|
171
131
|
{
|
|
172
132
|
kind: 'operatorCheckpoint',
|
|
173
133
|
id: A.checkpointV1FirestoreExport,
|
|
@@ -180,7 +140,6 @@ export const MIGRATION_CUTOVER_MANIFEST = [
|
|
|
180
140
|
evidence: 'The export operation name and the bucket path it wrote to.',
|
|
181
141
|
noReturnBoundary: null,
|
|
182
142
|
},
|
|
183
|
-
// ── Global roles ───────────────────────────────────────────────────────────────────────────────
|
|
184
143
|
copyStep(A.copyAdminList, {
|
|
185
144
|
title: 'Copy the admin and referee rosters',
|
|
186
145
|
summary: 'The `landing/admin` role maps become `_systemData/adminList`, the roster every role check reads.',
|
|
@@ -194,7 +153,6 @@ export const MIGRATION_CUTOVER_MANIFEST = [
|
|
|
194
153
|
dependsOn: [A.copyAdminList],
|
|
195
154
|
resumeKey: SINGLE_DOCUMENT,
|
|
196
155
|
}),
|
|
197
|
-
// ── App configuration ──────────────────────────────────────────────────────────────────────────
|
|
198
156
|
copyStep(A.copyAppConfig, {
|
|
199
157
|
title: 'Copy the app configuration',
|
|
200
158
|
summary: 'The version and the banner from `landing/base` become `_appConfig/app`, its switches at their open defaults.',
|
|
@@ -234,7 +192,6 @@ export const MIGRATION_CUTOVER_MANIFEST = [
|
|
|
234
192
|
dependsOn: [A.copyStatsBeacon],
|
|
235
193
|
resumeKey: SINGLE_DOCUMENT,
|
|
236
194
|
}),
|
|
237
|
-
// ── Setup's catalogs ───────────────────────────────────────────────────────────────────────────
|
|
238
195
|
copyStep(A.copyWaiverTemplates, {
|
|
239
196
|
title: 'Copy the waiver templates',
|
|
240
197
|
summary: 'Each template under its id, its wording as version 1.',
|
|
@@ -259,7 +216,6 @@ export const MIGRATION_CUTOVER_MANIFEST = [
|
|
|
259
216
|
dependsOn: [A.copyGameLocations],
|
|
260
217
|
resumeKey: 'The venues in array order; the resume key is the last venue id.',
|
|
261
218
|
}),
|
|
262
|
-
// ── Accounts and identity ──────────────────────────────────────────────────────────────────────
|
|
263
219
|
copyStep(A.copyUserProfiles, {
|
|
264
220
|
title: 'Copy the profiles',
|
|
265
221
|
summary: 'Each `users` document becomes its profile and its owner-only private document, every account active.',
|
|
@@ -332,7 +288,6 @@ export const MIGRATION_CUTOVER_MANIFEST = [
|
|
|
332
288
|
dependsOn: [A.copyAwardDefinitions, A.migratePublicUsers],
|
|
333
289
|
resumeKey: SINGLE_DOCUMENT,
|
|
334
290
|
}),
|
|
335
|
-
// ── Leagues and teams ──────────────────────────────────────────────────────────────────────────
|
|
336
291
|
copyStep(A.copySportLeagues, {
|
|
337
292
|
title: 'Copy the leagues',
|
|
338
293
|
summary: 'Each league under its id — closed leagues included; its pictures arrive with the picture carry.',
|
|
@@ -403,7 +358,6 @@ export const MIGRATION_CUTOVER_MANIFEST = [
|
|
|
403
358
|
owningStep: 'high-risk-callables',
|
|
404
359
|
dependsOn: [A.copyLeagueFreeAgents],
|
|
405
360
|
}),
|
|
406
|
-
// ── Signed waivers and hardware contracts ──────────────────────────────────────────────────────
|
|
407
361
|
copyStep(A.copySignedWaivers, {
|
|
408
362
|
title: 'Copy the signed waivers',
|
|
409
363
|
summary: 'Every signed waiver, a ghost’s included, under its id; its signature file stays where it is.',
|
|
@@ -436,7 +390,6 @@ export const MIGRATION_CUTOVER_MANIFEST = [
|
|
|
436
390
|
dependsOn: [A.verifySignedWaivers, A.verifyHardwareLoanContracts],
|
|
437
391
|
resumeKey: 'The signed waivers by id, then the contracts; the resume key is the record path.',
|
|
438
392
|
}),
|
|
439
|
-
// ── Games ──────────────────────────────────────────────────────────────────────────────────────
|
|
440
393
|
copyStep(A.copyGameRosterPlayers, {
|
|
441
394
|
title: 'Copy the game rosters',
|
|
442
395
|
summary: 'One entry per team per person in each game, from each V1 roster document’s own team and user.',
|
|
@@ -509,7 +462,6 @@ export const MIGRATION_CUTOVER_MANIFEST = [
|
|
|
509
462
|
dependsOn: [A.copyGameRosterPlayers, A.reconcileOpenGameRosters],
|
|
510
463
|
resumeKey: 'The V1 games by document id; the resume key is the last game id.',
|
|
511
464
|
}),
|
|
512
|
-
// ── Pictures ───────────────────────────────────────────────────────────────────────────────────
|
|
513
465
|
copyStep(A.carryV1Pictures, {
|
|
514
466
|
title: 'Carry the V1 pictures onto the pipeline',
|
|
515
467
|
summary: 'Each league, landing, venue, and award image is staged and accepted through the upload pipeline, which processes and publishes it. A rehearsal reports every source unavailable.',
|
|
@@ -529,7 +481,6 @@ export const MIGRATION_CUTOVER_MANIFEST = [
|
|
|
529
481
|
dependsOn: [A.carryV1Pictures],
|
|
530
482
|
resumeKey: 'By owner kind, then owner id; the resume key is `{ownerKind}:{ownerId}`.',
|
|
531
483
|
}),
|
|
532
|
-
// ── The ghost names V1 left behind ─────────────────────────────────────────────────────────────
|
|
533
484
|
{
|
|
534
485
|
kind: 'executable',
|
|
535
486
|
id: A.cleanupOrphanGhostPublicUsers,
|
|
@@ -553,7 +504,6 @@ export const MIGRATION_CUTOVER_MANIFEST = [
|
|
|
553
504
|
],
|
|
554
505
|
orderedAfter: [],
|
|
555
506
|
},
|
|
556
|
-
// ── The derived statistics ─────────────────────────────────────────────────────────────────────
|
|
557
507
|
{
|
|
558
508
|
kind: 'productControl',
|
|
559
509
|
id: A.rebuildLeagueStats,
|
|
@@ -619,7 +569,6 @@ export const MIGRATION_CUTOVER_MANIFEST = [
|
|
|
619
569
|
owningStep: 'stat-data-model',
|
|
620
570
|
dependsOn: [A.rebuildSportHallOfFame],
|
|
621
571
|
}),
|
|
622
|
-
// ── The cutover ────────────────────────────────────────────────────────────────────────────────
|
|
623
572
|
{
|
|
624
573
|
kind: 'cutoverMarker',
|
|
625
574
|
id: A.recordCutoverLive,
|
|
@@ -631,7 +580,6 @@ export const MIGRATION_CUTOVER_MANIFEST = [
|
|
|
631
580
|
orderedAfter: [A.verifySportHallOfFame, A.verifySignatureFilesResolvable],
|
|
632
581
|
noReturnBoundary: 'Recording the cutover. It is never undone: every copy refuses a live destination after it.',
|
|
633
582
|
},
|
|
634
|
-
// ── Cleanup: each delete gated on the verifications its core asserts ───────────────────────────
|
|
635
583
|
deleteStep(A.deleteV1AdminRoles, {
|
|
636
584
|
title: 'Remove the V1 role maps',
|
|
637
585
|
summary: 'The `isAdmin` and `referees` fields on `landing/admin`; the document goes with its last carried row.',
|
|
@@ -815,7 +763,6 @@ export const MIGRATION_CUTOVER_MANIFEST = [
|
|
|
815
763
|
dependsOn: [A.verifyV1CommerceDiscardable],
|
|
816
764
|
resumeKey: 'The six store collections in turn, each by document id.',
|
|
817
765
|
}),
|
|
818
|
-
// ── After the cutover ──────────────────────────────────────────────────────────────────────────
|
|
819
766
|
{
|
|
820
767
|
kind: 'operatorCheckpoint',
|
|
821
768
|
id: A.checkpointUnattachedPicturesReuploaded,
|
|
@@ -853,9 +800,7 @@ export const MIGRATION_CUTOVER_MANIFEST = [
|
|
|
853
800
|
noReturnBoundary: 'The key revocation.',
|
|
854
801
|
},
|
|
855
802
|
];
|
|
856
|
-
/** Every step by its id. */
|
|
857
803
|
export const MIGRATION_STEP_BY_ID = new Map(MIGRATION_CUTOVER_MANIFEST.map((step) => [step.id, step]));
|
|
858
|
-
/** The steps of one kind, in cutover order. */
|
|
859
804
|
export function migrationStepsOfKind(kind) {
|
|
860
805
|
return MIGRATION_CUTOVER_MANIFEST.filter((step) => step.kind === kind);
|
|
861
806
|
}
|