@ttt-productions/q-core 0.1.36 → 0.1.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist/doc-schemas/game-location.d.ts +9 -4
  2. package/dist/doc-schemas/game-location.d.ts.map +1 -1
  3. package/dist/doc-schemas/game-location.js +18 -5
  4. package/dist/doc-schemas/game-location.js.map +1 -1
  5. package/dist/doc-schemas/league-team.d.ts +1 -1
  6. package/dist/doc-schemas/league-team.d.ts.map +1 -1
  7. package/dist/doc-schemas/league-team.js +2 -2
  8. package/dist/doc-schemas/league-team.js.map +1 -1
  9. package/dist/doc-schemas/registry.d.ts +27 -27
  10. package/dist/doc-schemas/sport-game.d.ts +18 -18
  11. package/dist/doc-schemas/sport-game.d.ts.map +1 -1
  12. package/dist/doc-schemas/sport-game.js +6 -5
  13. package/dist/doc-schemas/sport-game.js.map +1 -1
  14. package/dist/doc-schemas/sport-league.d.ts +3 -3
  15. package/dist/doc-schemas/sport-league.d.ts.map +1 -1
  16. package/dist/doc-schemas/sport-league.js +9 -7
  17. package/dist/doc-schemas/sport-league.js.map +1 -1
  18. package/dist/doc-schemas/system.d.ts +4 -4
  19. package/dist/doc-schemas/system.d.ts.map +1 -1
  20. package/dist/doc-schemas/system.js +7 -6
  21. package/dist/doc-schemas/system.js.map +1 -1
  22. package/dist/doc-schemas/team-membership.d.ts +2 -2
  23. package/dist/doc-schemas/team-membership.d.ts.map +1 -1
  24. package/dist/doc-schemas/team-membership.js +4 -3
  25. package/dist/doc-schemas/team-membership.js.map +1 -1
  26. package/dist/doc-schemas/user-profile.d.ts +1 -1
  27. package/dist/doc-schemas/user-profile.d.ts.map +1 -1
  28. package/dist/doc-schemas/user-profile.js +2 -2
  29. package/dist/doc-schemas/user-profile.js.map +1 -1
  30. package/dist/doc-schemas/waiver-template.d.ts +4 -4
  31. package/dist/doc-schemas/waiver-template.d.ts.map +1 -1
  32. package/dist/doc-schemas/waiver-template.js +8 -5
  33. package/dist/doc-schemas/waiver-template.js.map +1 -1
  34. package/dist/migration-console/manifest.d.ts.map +1 -1
  35. package/dist/migration-console/manifest.js +6 -5
  36. package/dist/migration-console/manifest.js.map +1 -1
  37. package/dist/schemas/game-locations.d.ts +0 -5
  38. package/dist/schemas/game-locations.d.ts.map +1 -1
  39. package/dist/schemas/game-locations.js +1 -14
  40. package/dist/schemas/game-locations.js.map +1 -1
  41. package/dist/schemas/leagues.d.ts +0 -1
  42. package/dist/schemas/leagues.d.ts.map +1 -1
  43. package/dist/schemas/leagues.js +1 -3
  44. package/dist/schemas/leagues.js.map +1 -1
  45. package/dist/schemas/migration-console.d.ts +1 -0
  46. package/dist/schemas/migration-console.d.ts.map +1 -1
  47. package/dist/schemas/migration-console.js +1 -1
  48. package/dist/schemas/migration-console.js.map +1 -1
  49. package/dist/schemas/schedules.js +1 -1
  50. package/dist/schemas/schedules.js.map +1 -1
  51. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"manifest.js","sourceRoot":"","sources":["../../src/migration-console/manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,IAAI,CAAC,EAAE,MAAM,iBAAiB,CAAC;AAG5D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,uBAAuB,EAAE,4BAA4B,EAAE,MAAM,gBAAgB,CAAC;AAEvF,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,YAAY;IACZ,gBAAgB;IAChB,oBAAoB;IACpB,eAAe;CACP,CAAC;AAGX,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,OAAO,EAAE,cAAc,CAAU,CAAC;AAG7E,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,gBAAgB,EAAE,uBAAuB,CAAU,CAAC;AAGpG,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,MAAM;IACN,QAAQ;IACR,iBAAiB;IACjB,qBAAqB;IACrB,mBAAmB;IACn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QAC/B,SAAS,EAAE,CAAC,CAAC,CAAC,2BAA2B,CAAC;QAC1C,YAAY,EAAE,CAAC,CAAC,CAAC,iBAAiB,CAAC;QACnC,YAAY,EACV,6TAA6T;QAC/T,QAAQ,EAAE,iEAAiE;QAC3E,gBAAgB,EAAE,qBAAqB;KACxC;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAkD,IAAI,GAAG,CACxF,0BAA0B,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC,CAC1D,CAAC;AAEF,MAAM,UAAU,oBAAoB,CAClC,IAAO;IAEP,OAAO,0BAA0B,CAAC,MAAM,CACtC,CAAC,IAAI,EAA+C,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAC1E,CAAC;AACJ,CAAC","sourcesContent":["import { MIGRATION_ACTION_IDS as A } from './action-ids.js';\nimport type { MigrationActionId } from './action-ids.js';\nimport type { RegisteredCollectionPath } from '../doc-schemas/registry.js';\nimport { SPORT_KEYS } from '../types/sports.js';\nimport { MAX_MIGRATION_PAGE_SIZE, MIGRATION_COMMIT_WRITE_LIMIT } from './run-state.js';\n\nexport const MIGRATION_STEP_KIND_KEYS = [\n 'executable',\n 'productControl',\n 'operatorCheckpoint',\n 'cutoverMarker',\n] as const;\nexport type MigrationStepKind = (typeof MIGRATION_STEP_KIND_KEYS)[number];\n\nexport const MIGRATION_RESULT_KIND_KEYS = ['write', 'verification'] as const;\nexport type MigrationResultKind = (typeof MIGRATION_RESULT_KIND_KEYS)[number];\n\nexport const MIGRATION_CONTROL_EVIDENCE_KEYS = ['statsOperation', 'statsValidationReport'] as const;\nexport type MigrationControlEvidence = (typeof MIGRATION_CONTROL_EVIDENCE_KEYS)[number];\n\nexport const MIGRATION_OWNING_STEP_KEYS = [\n 'auth',\n 'q-core',\n 'stat-data-model',\n 'high-risk-callables',\n 'uploads-and-media',\n 'query-and-invalidation',\n 'secret-management',\n 'migration-console',\n] as const;\nexport type MigrationOwningStep = (typeof MIGRATION_OWNING_STEP_KEYS)[number];\n\ninterface MigrationStepBase {\n readonly id: MigrationActionId;\n readonly title: string;\n readonly summary: string;\n readonly owningStep: MigrationOwningStep;\n readonly dependsOn: readonly MigrationActionId[];\n readonly orderedAfter: readonly MigrationActionId[];\n}\n\nexport interface ExecutableMigrationStep extends MigrationStepBase {\n readonly kind: 'executable';\n readonly callable: string;\n readonly resultKind: MigrationResultKind;\n readonly destructive: boolean;\n readonly paged: boolean;\n readonly defaultPageSize: number;\n readonly maxPageSize: number;\n readonly informational: boolean;\n readonly idempotency: string;\n readonly resumeKey: string;\n readonly recovery: string;\n // The steps whose V1 source this destructive step removes; a non-destructive step consumes none.\n readonly consumes: readonly MigrationActionId[];\n}\n\nexport interface ProductControlMigrationStep extends MigrationStepBase {\n readonly kind: 'productControl';\n readonly callable: string;\n readonly instructions: string;\n readonly evidence: MigrationControlEvidence;\n readonly destinations: readonly RegisteredCollectionPath[];\n}\n\nexport interface OperatorCheckpointMigrationStep extends MigrationStepBase {\n readonly kind: 'operatorCheckpoint';\n readonly instructions: string;\n readonly evidence: string;\n readonly noReturnBoundary: string | null;\n}\n\nexport interface CutoverMarkerMigrationStep extends MigrationStepBase {\n readonly kind: 'cutoverMarker';\n readonly callable: string;\n readonly noReturnBoundary: string;\n}\n\nexport type MigrationStep =\n | ExecutableMigrationStep\n | ProductControlMigrationStep\n | OperatorCheckpointMigrationStep\n | CutoverMarkerMigrationStep;\n\nexport const RECORD_MIGRATION_CONTROL_RUN_CALLABLE = 'adminRecordMigrationControlRun';\nexport const RECORD_MIGRATION_CHECKPOINT_CALLABLE = 'adminRecordMigrationCheckpoint';\nexport const RECORD_MIGRATION_CUTOVER_CALLABLE = 'adminRecordMigrationCutover';\nexport const GET_MIGRATION_CONSOLE_CALLABLE = 'adminGetMigrationConsole';\n\nexport function migrationActionCallableName(id: MigrationActionId): string {\n const [verb = '', object = ''] = id.split('.');\n const capitalize = (word: string) => word.charAt(0).toUpperCase() + word.slice(1);\n return `admin${capitalize(verb)}${capitalize(object)}`;\n}\n\nconst COPY_IDEMPOTENCY =\n 'Deterministic destination ids written whole, so a re-run rewrites the same documents with the same content.';\nconst VERIFY_IDEMPOTENCY = 'Reads only; a re-run compares again.';\nconst DELETE_IDEMPOTENCY =\n 'Deletes by id; a document already gone is skipped, so a re-run removes only what is left.';\nconst BY_DOCUMENT_ID =\n 'Source documents in document-id order; the resume key is the last id consumed.';\nconst SINGLE_DOCUMENT = 'One source document; it is never paged.';\nconst COPY_RECOVERY = 'Fix the transform and run the copy again; it refuses a live destination.';\nconst VERIFY_RECOVERY =\n 'Repair what it reports, through its copy or its resolution, and verify again.';\nconst DELETE_RECOVERY =\n 'Forward repair only: the retained V1 Firestore export holds what was deleted.';\nconst V1_CHECK_RECOVERY = 'Fix what it reports in V1, then run the check again.';\n\ninterface ExecutableOptions {\n title: string;\n summary: string;\n owningStep: MigrationOwningStep;\n dependsOn?: readonly MigrationActionId[];\n orderedAfter?: readonly MigrationActionId[];\n resumeKey?: string;\n defaultPageSize?: number;\n maxPageSize?: number;\n}\n\nfunction copyStep(id: MigrationActionId, options: ExecutableOptions): ExecutableMigrationStep {\n return {\n kind: 'executable',\n id,\n callable: migrationActionCallableName(id),\n resultKind: 'write',\n destructive: false,\n paged: true,\n defaultPageSize: options.defaultPageSize ?? 100,\n maxPageSize: options.maxPageSize ?? MAX_MIGRATION_PAGE_SIZE,\n informational: false,\n idempotency: COPY_IDEMPOTENCY,\n resumeKey: options.resumeKey ?? BY_DOCUMENT_ID,\n recovery: COPY_RECOVERY,\n consumes: [],\n title: options.title,\n summary: options.summary,\n owningStep: options.owningStep,\n dependsOn: options.dependsOn ?? [A.checkpointV1FirestoreExport],\n orderedAfter: options.orderedAfter ?? [],\n };\n}\n\nfunction verifyStep(\n id: MigrationActionId,\n options: ExecutableOptions & { informational?: boolean; recovery?: string },\n): ExecutableMigrationStep {\n return {\n kind: 'executable',\n id,\n callable: migrationActionCallableName(id),\n resultKind: 'verification',\n destructive: false,\n paged: true,\n defaultPageSize: options.defaultPageSize ?? 100,\n maxPageSize: options.maxPageSize ?? MAX_MIGRATION_PAGE_SIZE,\n informational: options.informational ?? false,\n idempotency: VERIFY_IDEMPOTENCY,\n resumeKey: options.resumeKey ?? BY_DOCUMENT_ID,\n recovery: options.recovery ?? VERIFY_RECOVERY,\n consumes: [],\n title: options.title,\n summary: options.summary,\n owningStep: options.owningStep,\n dependsOn: options.dependsOn ?? [],\n orderedAfter: options.orderedAfter ?? [],\n };\n}\n\nfunction v1CheckStep(id: MigrationActionId, options: ExecutableOptions): ExecutableMigrationStep {\n return verifyStep(id, {\n dependsOn: [A.checkpointV1FirestoreExport],\n ...options,\n recovery: V1_CHECK_RECOVERY,\n });\n}\n\nfunction deleteStep(\n id: MigrationActionId,\n options: ExecutableOptions & { consumes: readonly MigrationActionId[] },\n): ExecutableMigrationStep {\n return {\n kind: 'executable',\n id,\n callable: migrationActionCallableName(id),\n resultKind: 'write',\n destructive: true,\n paged: true,\n defaultPageSize: options.defaultPageSize ?? 100,\n maxPageSize: options.maxPageSize ?? MAX_MIGRATION_PAGE_SIZE,\n informational: false,\n idempotency: DELETE_IDEMPOTENCY,\n resumeKey: options.resumeKey ?? BY_DOCUMENT_ID,\n recovery: DELETE_RECOVERY,\n consumes: options.consumes,\n title: options.title,\n summary: options.summary,\n owningStep: options.owningStep,\n dependsOn: options.dependsOn ?? [],\n orderedAfter: options.orderedAfter ?? [],\n };\n}\n\nconst SOURCE_VERIFICATIONS_FOR_REBUILD = [\n A.verifySportLeagues,\n A.verifyLeagueTeams,\n A.verifyTeamMemberships,\n A.verifyGameRosterPlayers,\n A.verifySportGames,\n A.verifyGameStats,\n] as const satisfies readonly MigrationActionId[];\n\nconst COPY_VERIFICATIONS = [\n A.verifyAdminList,\n A.verifyAppConfig,\n A.verifyLandingPageConfig,\n A.verifyStatsBeacon,\n A.verifyWaiverTemplates,\n A.verifyGameLocations,\n A.verifyUserProfiles,\n A.verifyHistoricalStats,\n A.verifyReservedDisplayNames,\n A.verifyPublicUsers,\n A.verifyAwardDefinitions,\n A.verifySportLeagues,\n A.verifyLeagueTeams,\n A.verifyTeamMemberships,\n A.verifyTeamInvitations,\n A.verifyTeamJoinRequests,\n A.verifyLeagueFreeAgents,\n A.verifySignedWaivers,\n A.verifyHardwareLoanContracts,\n A.verifySportGames,\n A.verifyGameStats,\n A.verifyGameRosterPlayers,\n A.verifyV1Pictures,\n] as const satisfies readonly MigrationActionId[];\n\nexport const MIGRATION_CUTOVER_MANIFEST: readonly MigrationStep[] = [\n {\n kind: 'operatorCheckpoint',\n id: A.checkpointV1FirestoreExport,\n title: 'Keep a managed export of the V1 database',\n summary:\n 'The managed Firestore export is the record of V1 and the only recovery after a delete.',\n owningStep: 'migration-console',\n dependsOn: [],\n orderedAfter: [],\n instructions:\n 'In production, with V1 stopped, take a managed Firestore export of the whole database to a Cloud Storage bucket and keep it. In a rehearsal, name the production export the dev copy was imported from.',\n evidence: 'The export operation name and the bucket path it wrote to.',\n noReturnBoundary: null,\n },\n\n v1CheckStep(A.verifyV1DisplayNamesUnique, {\n title: 'Check no two V1 display names collide',\n summary:\n 'Lists every group of V1 accounts whose display names normalize to one reservation key. The profiles are copied only once it finds none.',\n owningStep: 'migration-console',\n }),\n v1CheckStep(A.verifyV1TextFitsLimits, {\n title: 'Check every V1 text fits its V2 field',\n summary:\n 'Lists every V1 text a copy carries into a capped V2 field that is over the field’s limit or that its schema would change. The copies it covers run only once it finds none.',\n owningStep: 'migration-console',\n }),\n v1CheckStep(A.verifyV1LeagueCapacity, {\n title: 'Check no V1 league is over capacity',\n summary:\n 'Lists every V1 league holding more games or teams than a league may. The leagues, teams, and games are copied only once it finds none.',\n owningStep: 'migration-console',\n }),\n v1CheckStep(A.verifyV1HardwareContractIdsUnique, {\n title: 'Check no hardware contract id is in both V1 collections',\n summary:\n 'Lists every contract id found in both V1 hardware collections. The contracts are copied only once it finds none.',\n owningStep: 'migration-console',\n resumeKey:\n 'The V1 collections in turn, each by document id; the resume key is `{collection}/{id}`.',\n }),\n\n copyStep(A.copyAdminList, {\n title: 'Copy the admin and referee rosters',\n summary:\n 'The `landing/admin` role maps become `_systemData/adminList`, the roster every role check reads.',\n owningStep: 'auth',\n resumeKey: SINGLE_DOCUMENT,\n }),\n verifyStep(A.verifyAdminList, {\n title: 'Verify the rosters',\n summary: 'Every V1 admin and referee is on the copied roster, and nobody else is.',\n owningStep: 'auth',\n dependsOn: [A.copyAdminList],\n resumeKey: SINGLE_DOCUMENT,\n }),\n\n copyStep(A.copyAppConfig, {\n title: 'Copy the app configuration',\n summary:\n 'The version and the banner from `landing/base` become `_appConfig/app`, its switches at their open defaults.',\n owningStep: 'q-core',\n dependsOn: [A.verifyV1TextFitsLimits],\n resumeKey: SINGLE_DOCUMENT,\n }),\n copyStep(A.copyLandingPageConfig, {\n title: 'Copy the landing page copy',\n summary:\n 'The hero title and the about text become `_appConfig/landingPage`; its picture arrives with the picture carry.',\n owningStep: 'q-core',\n dependsOn: [A.verifyV1TextFitsLimits],\n resumeKey: SINGLE_DOCUMENT,\n }),\n copyStep(A.copyStatsBeacon, {\n title: 'Copy the stats beacon',\n summary:\n 'The last stats change V1 announced becomes `_appConfig/statsBeacon`, or nothing when V1 never fired one.',\n owningStep: 'query-and-invalidation',\n resumeKey: SINGLE_DOCUMENT,\n }),\n verifyStep(A.verifyAppConfig, {\n title: 'Verify the app configuration',\n summary:\n 'The version and the banner match V1 before the cutover, and the document satisfies its schema after it.',\n owningStep: 'q-core',\n dependsOn: [A.copyAppConfig],\n resumeKey: SINGLE_DOCUMENT,\n }),\n verifyStep(A.verifyLandingPageConfig, {\n title: 'Verify the landing page copy',\n summary: 'The landing copy matches V1 before the cutover, and satisfies its schema after it.',\n owningStep: 'q-core',\n dependsOn: [A.copyLandingPageConfig],\n resumeKey: SINGLE_DOCUMENT,\n }),\n verifyStep(A.verifyStatsBeacon, {\n title: 'Verify the stats beacon',\n summary: 'A beacon at least as recent as V1’s exists, or V1 never fired one.',\n owningStep: 'query-and-invalidation',\n dependsOn: [A.copyStatsBeacon],\n resumeKey: SINGLE_DOCUMENT,\n }),\n\n copyStep(A.copyWaiverTemplates, {\n title: 'Copy the waiver templates',\n summary: 'Each template under its id, its wording as version 1.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.verifyV1TextFitsLimits],\n maxPageSize: 200,\n }),\n verifyStep(A.verifyWaiverTemplates, {\n title: 'Verify the waiver templates',\n summary: 'Every V1 template copied with its first version.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.copyWaiverTemplates],\n }),\n copyStep(A.copyGameLocations, {\n title: 'Copy the game locations',\n summary:\n 'Each venue on `landing/admin` becomes a `gameLocations` document under its id; its picture arrives with the picture carry.',\n owningStep: 'q-core',\n dependsOn: [A.verifyV1TextFitsLimits],\n resumeKey: 'The venues in array order; the resume key is the last venue id.',\n }),\n verifyStep(A.verifyGameLocations, {\n title: 'Verify the game locations',\n summary: 'Every V1 venue copied and equal.',\n owningStep: 'q-core',\n dependsOn: [A.copyGameLocations],\n resumeKey: 'The venues in array order; the resume key is the last venue id.',\n }),\n\n copyStep(A.copyUserProfiles, {\n title: 'Copy the profiles',\n summary:\n 'Each `users` document becomes its profile and its owner-only private document, every account active.',\n owningStep: 'auth',\n dependsOn: [A.verifyV1DisplayNamesUnique, A.verifyV1TextFitsLimits],\n maxPageSize: Math.floor(MIGRATION_COMMIT_WRITE_LIMIT / 2),\n }),\n verifyStep(A.verifyUserProfiles, {\n title: 'Verify the profiles',\n summary: 'Every V1 profile copied with its private document.',\n owningStep: 'auth',\n dependsOn: [A.copyUserProfiles],\n }),\n {\n kind: 'operatorCheckpoint',\n id: A.checkpointAbandonedRegistrationSweepEnabled,\n title: 'Enable the abandoned-registration sweep',\n summary:\n 'The scheduled sweep that deletes a sign-in account still holding no profile after its grace window does nothing until this is recorded, and stops again whenever the profile verification is run anew.',\n owningStep: 'auth',\n dependsOn: [A.verifyUserProfiles],\n orderedAfter: [],\n instructions:\n 'Once the profile verification has passed, confirm every account that should keep its sign-in holds a copied profile, then record this step to let the scheduled sweep delete the sign-in accounts that hold none past their grace window.',\n evidence:\n 'The passing profile verification this step follows, and the count of profiles it checked.',\n noReturnBoundary: 'The sweep’s first deletion of a sign-in account that holds no profile.',\n },\n copyStep(A.copyHistoricalStats, {\n title: 'Copy the historical baselines',\n summary: 'Each pre-Q-Sports career total becomes its sport’s `historicalStats` document.',\n owningStep: 'stat-data-model',\n dependsOn: [A.copyUserProfiles],\n maxPageSize: Math.floor(MIGRATION_COMMIT_WRITE_LIMIT / SPORT_KEYS.length),\n }),\n verifyStep(A.verifyHistoricalStats, {\n title: 'Verify the historical baselines',\n summary: 'Every V1 baseline copied and equal; a database with none is declared empty.',\n owningStep: 'stat-data-model',\n dependsOn: [A.copyHistoricalStats],\n }),\n copyStep(A.deriveReservedDisplayNames, {\n title: 'Reserve the display names',\n summary: 'One reservation per copied profile.',\n owningStep: 'auth',\n dependsOn: [A.copyUserProfiles, A.verifyV1DisplayNamesUnique],\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n }),\n verifyStep(A.verifyReservedDisplayNames, {\n title: 'Verify the display-name reservations',\n summary: 'Every profile holds the reservation of its name.',\n owningStep: 'auth',\n dependsOn: [A.deriveReservedDisplayNames],\n }),\n copyStep(A.migratePublicUsers, {\n title: 'Migrate the public identities in place',\n summary:\n 'Each `publicUsers` document is rewritten where it sits: epoch timestamps, the recomputed lowercase name, the ghost flag.',\n owningStep: 'q-core',\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n }),\n verifyStep(A.verifyPublicUsers, {\n title: 'Verify the public identities',\n summary:\n 'Each document holds its own uid, ghost flag, and lowercase name, and shows the featured badges its profile holds.',\n owningStep: 'q-core',\n dependsOn: [A.migratePublicUsers, A.copyUserProfiles],\n }),\n copyStep(A.copyAwardDefinitions, {\n title: 'Copy the award catalog',\n summary:\n 'Each award on `landing/admin` becomes an `awardDefinitions` document with its holder count; its badge arrives with the picture carry.',\n owningStep: 'uploads-and-media',\n dependsOn: [A.copyUserProfiles, A.verifyV1TextFitsLimits],\n resumeKey: 'The awards in array order; the resume key is the last award id.',\n }),\n verifyStep(A.verifyAwardDefinitions, {\n title: 'Verify the award catalog',\n summary:\n 'Every award copied, every holder count equal to the profiles holding it, every grant, profile award pick, and shown badge naming an award that exists.',\n owningStep: 'uploads-and-media',\n dependsOn: [A.copyAwardDefinitions, A.migratePublicUsers],\n resumeKey: SINGLE_DOCUMENT,\n }),\n\n copyStep(A.copySportLeagues, {\n title: 'Copy the leagues',\n summary:\n 'Each league under its id — closed leagues included; its pictures arrive with the picture carry.',\n owningStep: 'q-core',\n dependsOn: [A.verifyV1LeagueCapacity, A.verifyV1TextFitsLimits],\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n }),\n verifyStep(A.verifySportLeagues, {\n title: 'Verify the leagues',\n summary: 'Every V1 league copied and equal, every waiver template it names existing.',\n owningStep: 'q-core',\n dependsOn: [A.copySportLeagues, A.copyWaiverTemplates],\n }),\n copyStep(A.copyLeagueTeams, {\n title: 'Copy the teams',\n summary: 'Each team under its id, its season lines in its sport’s shape.',\n owningStep: 'q-core',\n dependsOn: [A.verifyV1LeagueCapacity, A.verifyV1TextFitsLimits],\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n }),\n verifyStep(A.verifyLeagueTeams, {\n title: 'Verify the teams',\n summary:\n 'Every V1 team copied; the season lines are held to their schema, since the rebuild replaces them.',\n owningStep: 'q-core',\n dependsOn: [A.copyLeagueTeams],\n }),\n copyStep(A.copyTeamMemberships, {\n title: 'Copy the memberships',\n summary:\n 'Each membership under its compound id, `member` becoming `player`; one whose team was not copied into its league is left behind and reported.',\n owningStep: 'q-core',\n dependsOn: [A.copyLeagueTeams],\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n }),\n verifyStep(A.verifyTeamMemberships, {\n title: 'Verify the memberships',\n summary:\n 'Every V1 membership copied, or absent because its team is gone; a team with two captains and a ghost on two memberships are reported.',\n owningStep: 'q-core',\n dependsOn: [A.copyTeamMemberships],\n }),\n copyStep(A.copyTeamInvitations, {\n title: 'Copy the invitations',\n summary:\n 'Each invitation by id; a pending one whose invitee is already on the team is written approved, and a pending one whose team was not copied into its league is left behind and reported.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.copyLeagueTeams, A.copyTeamMemberships],\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n }),\n verifyStep(A.verifyTeamInvitations, {\n title: 'Verify the invitations',\n summary:\n 'Every V1 invitation copied as the transform makes it, or absent because its team is gone.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.copyTeamInvitations],\n }),\n copyStep(A.copyTeamJoinRequests, {\n title: 'Copy the join requests',\n summary:\n 'Each request by id; a pending one whose requester is already on the team is written approved, and a pending one whose team was not copied into its league is left behind and reported.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.copyLeagueTeams, A.copyTeamMemberships],\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n }),\n verifyStep(A.verifyTeamJoinRequests, {\n title: 'Verify the join requests',\n summary:\n 'Every V1 request copied as the transform makes it, or absent because its team is gone.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.copyTeamJoinRequests],\n }),\n copyStep(A.copyLeagueFreeAgents, {\n title: 'Copy the free-agent signups',\n summary:\n 'Each signup under its built id; a signup whose player already joined a team in the league is left behind and reported.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.copyTeamMemberships],\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n }),\n verifyStep(A.verifyLeagueFreeAgents, {\n title: 'Verify the free-agent signups',\n summary: 'Every V1 signup copied, or absent because joining left it behind.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.copyLeagueFreeAgents],\n }),\n\n copyStep(A.copySignedWaivers, {\n title: 'Copy the signed waivers',\n summary:\n 'Every signed waiver, a ghost’s included, under its id; its signature file stays where it is.',\n owningStep: 'uploads-and-media',\n dependsOn: [A.copyWaiverTemplates],\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n }),\n verifyStep(A.verifySignedWaivers, {\n title: 'Verify the signed waivers',\n summary: 'Every V1 record copied and equal, each template it names existing.',\n owningStep: 'uploads-and-media',\n dependsOn: [A.copySignedWaivers],\n }),\n copyStep(A.copyHardwareLoanContracts, {\n title: 'Copy the hardware loan contracts',\n summary:\n 'Each contract from both V1 collections under its id; its signature file stays where it is.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.verifyV1HardwareContractIdsUnique],\n resumeKey:\n 'The V1 collections in turn, each by document id; the resume key is `{collection}/{id}`.',\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n }),\n verifyStep(A.verifyHardwareLoanContracts, {\n title: 'Verify the hardware loan contracts',\n summary: 'Every V1 contract copied and equal.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.copyHardwareLoanContracts],\n resumeKey:\n 'The V1 collections in turn, each by document id; the resume key is `{collection}/{id}`.',\n }),\n verifyStep(A.verifySignatureFilesResolvable, {\n title: 'Verify the signature files resolve',\n summary:\n 'Each kept signature file is in this project’s bucket and exists. A rehearsal reports every file as another environment’s, which is expected.',\n owningStep: 'uploads-and-media',\n dependsOn: [A.verifySignedWaivers, A.verifyHardwareLoanContracts],\n resumeKey: 'The signed waivers by id, then the contracts; the resume key is the record path.',\n }),\n\n copyStep(A.copyGameRosterPlayers, {\n title: 'Copy the game rosters',\n summary:\n 'One entry per team per person in each game, from each V1 roster document’s own team and user.',\n owningStep: 'high-risk-callables',\n resumeKey: 'The V1 games by document id; the resume key is the last game id.',\n defaultPageSize: 50,\n maxPageSize: 50,\n }),\n {\n kind: 'executable',\n id: A.resolveUnrosteredStatLine,\n callable: migrationActionCallableName(A.resolveUnrosteredStatLine),\n resultKind: 'write',\n destructive: false,\n paged: false,\n defaultPageSize: 1,\n maxPageSize: MAX_MIGRATION_PAGE_SIZE,\n informational: false,\n idempotency: 'A second resolution of the same line is acknowledged and writes nothing.',\n resumeKey: 'One game, one line; it is never paged.',\n recovery: 'Resolve the line again with the right team, then copy the game again.',\n consumes: [],\n title: 'Resolve a stat line no roster places',\n summary:\n 'For a line the game copy stops on, the admin names its team: the missing roster entry is written with its reason, and the game copied again.',\n owningStep: 'stat-data-model',\n dependsOn: [A.copyGameRosterPlayers],\n orderedAfter: [],\n },\n copyStep(A.copySportGames, {\n title: 'Copy the games',\n summary:\n 'Each V1 game with its stats: the event documents, the rollup, the participation lists by roster entry, and a completed game’s finalized record.',\n owningStep: 'stat-data-model',\n dependsOn: [A.copyGameRosterPlayers, A.verifyV1LeagueCapacity],\n orderedAfter: [A.resolveUnrosteredStatLine],\n resumeKey:\n 'The V1 games by document id; a game’s documents commit before its id becomes the resume key.',\n defaultPageSize: 20,\n maxPageSize: 25,\n }),\n verifyStep(A.verifySportGames, {\n title: 'Verify the game schedules',\n summary: 'Every V1 game’s schedule fields as the copy converts them.',\n owningStep: 'q-core',\n dependsOn: [A.copySportGames],\n }),\n verifyStep(A.verifyGameStats, {\n title: 'Verify the game stats',\n summary:\n 'Per game: the events replay to the rollup and to V1’s recorded lines, the finalized record matches, and every line and list names a roster entry.',\n owningStep: 'stat-data-model',\n dependsOn: [A.copySportGames],\n defaultPageSize: 20,\n maxPageSize: 25,\n }),\n {\n kind: 'executable',\n id: A.reconcileOpenGameRosters,\n callable: migrationActionCallableName(A.reconcileOpenGameRosters),\n resultKind: 'write',\n destructive: false,\n paged: true,\n defaultPageSize: 20,\n maxPageSize: 25,\n informational: false,\n idempotency:\n 'Each open game is reconciled through the roster core against the copied memberships; a reconciled game changes nothing on a re-run.',\n resumeKey: 'The open games by document id; the resume key is the last game id.',\n recovery:\n 'Run it again: a game held by another operation is reported and reconciled on the next run.',\n consumes: [],\n title: 'Reconcile the open games’ rosters',\n summary:\n 'Each game open at the cutover: stale stat-free entries removed, missing members added.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.verifyTeamMemberships, A.verifyGameStats],\n orderedAfter: [],\n },\n verifyStep(A.verifyGameRosterPlayers, {\n title: 'Verify the game rosters',\n summary: 'Every V1 roster entry copied; before the cutover, no open game keeps a stale entry.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.copyGameRosterPlayers, A.reconcileOpenGameRosters],\n resumeKey: 'The V1 games by document id; the resume key is the last game id.',\n }),\n\n copyStep(A.carryV1Pictures, {\n title: 'Carry the V1 pictures onto the pipeline',\n summary:\n '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.',\n owningStep: 'uploads-and-media',\n dependsOn: [\n A.copySportLeagues,\n A.copyLandingPageConfig,\n A.copyGameLocations,\n A.copyAwardDefinitions,\n ],\n resumeKey: 'By owner kind, then owner id; the resume key is `{ownerKind}:{ownerId}`.',\n }),\n verifyStep(A.verifyV1Pictures, {\n title: 'Verify the carried pictures',\n summary:\n 'Every V1 reference attached with its three sizes, or reported for a reason no re-run changes; nothing still pending. A source in another bucket, or a page it could examine none of, fails it unless the run acknowledges unexamined sources, as a rehearsal does.',\n owningStep: 'uploads-and-media',\n dependsOn: [A.carryV1Pictures],\n resumeKey: 'By owner kind, then owner id; the resume key is `{ownerKind}:{ownerId}`.',\n }),\n\n {\n kind: 'executable',\n id: A.cleanupOrphanGhostPublicUsers,\n callable: migrationActionCallableName(A.cleanupOrphanGhostPublicUsers),\n resultKind: 'write',\n destructive: true,\n paged: true,\n defaultPageSize: 100,\n maxPageSize: 100,\n informational: false,\n idempotency:\n 'A ghost document is deleted only when nothing references it; a re-run finds nothing further.',\n resumeKey: BY_DOCUMENT_ID,\n recovery: DELETE_RECOVERY,\n consumes: [],\n title: 'Remove the ghost names nothing references',\n summary:\n 'Each ghost `publicUsers` document no membership, roster entry, or unvoided stat event names, reported by disposition first. No signed waiver is touched.',\n owningStep: 'high-risk-callables',\n dependsOn: [\n A.verifyPublicUsers,\n A.verifyTeamMemberships,\n A.verifyGameRosterPlayers,\n A.verifyGameStats,\n ],\n orderedAfter: [],\n },\n\n {\n kind: 'productControl',\n id: A.rebuildLeagueStats,\n title: 'Rebuild every league’s stats',\n summary:\n 'Every team’s season line and per-membership rows, closed leagues included, rebuilt from the copied games.',\n owningStep: 'stat-data-model',\n dependsOn: SOURCE_VERIFICATIONS_FOR_REBUILD,\n orderedAfter: [],\n callable: 'recalculateAllLeagueStats',\n destinations: ['leagueTeams/{teamId}'],\n instructions:\n 'Run “Rebuild every league” from Stats › Fix stats as a real run, not a dry run, and let it reach the end.',\n evidence: 'statsOperation',\n },\n {\n kind: 'productControl',\n id: A.rebuildLifetimeStats,\n title: 'Rebuild every user’s lifetime stats',\n summary:\n 'Every account’s lifetime lines rebuilt from the copied games and historical baselines.',\n owningStep: 'stat-data-model',\n dependsOn: [A.rebuildLeagueStats, A.verifyUserProfiles, A.verifyHistoricalStats],\n orderedAfter: [],\n callable: 'recalculateAllUserStats',\n destinations: ['userProfiles/{userId}'],\n instructions:\n 'Run “Rebuild every user” from Stats › Fix stats as a real run, and let it reach the end.',\n evidence: 'statsOperation',\n },\n {\n kind: 'productControl',\n id: A.rebuildSportHallOfFame,\n title: 'Rebuild the hall of fame',\n summary:\n 'The hall of fame of every sport that keeps one, rebuilt from the copied games and baselines.',\n owningStep: 'stat-data-model',\n dependsOn: [A.rebuildLifetimeStats],\n orderedAfter: [],\n callable: 'recalculateHallOfFame',\n destinations: ['sportHallOfFame/{sportKey}'],\n instructions:\n 'Run the hall-of-fame rebuild from Stats › Fix stats once for each sport that keeps a hall of fame, as real runs, and record every run.',\n evidence: 'statsOperation',\n },\n {\n kind: 'productControl',\n id: A.validateStats,\n title: 'Validate the stats',\n summary: 'Check stats over everything; it must report no finding.',\n owningStep: 'stat-data-model',\n dependsOn: [A.rebuildSportHallOfFame],\n orderedAfter: [],\n callable: 'runStatsValidation',\n destinations: ['statsValidationReports/{reportId}'],\n instructions: 'Run “Check stats” over everything from Stats › Fix stats and let it finish.',\n evidence: 'statsValidationReport',\n },\n verifyStep(A.verifyLeaguePlayerStats, {\n title: 'Compare the league player totals with V1',\n summary:\n 'Lists each player whose V1 league total differs from the sum of their rebuilt rows in that league. It informs the rehearsal and gates nothing.',\n owningStep: 'stat-data-model',\n dependsOn: [A.rebuildLeagueStats],\n informational: true,\n }),\n verifyStep(A.verifySportHallOfFame, {\n title: 'Verify the rebuilt hall of fame',\n summary:\n 'Every V1 hall of fame of a sport that keeps one has its rebuilt document, which satisfies its schema and holds an entry for every V1 player with a non-zero total.',\n owningStep: 'stat-data-model',\n dependsOn: [A.rebuildSportHallOfFame],\n }),\n\n {\n kind: 'cutoverMarker',\n id: A.recordCutoverLive,\n callable: RECORD_MIGRATION_CUTOVER_CALLABLE,\n title: 'Record the cutover',\n summary:\n 'From here on the product owns every destination: no copy runs again, and each verification holds what the product edits to its schema only.',\n owningStep: 'migration-console',\n dependsOn: [...COPY_VERIFICATIONS, A.validateStats],\n orderedAfter: [A.verifySportHallOfFame, A.verifySignatureFilesResolvable],\n noReturnBoundary:\n 'Recording the cutover. It is never undone: every copy refuses a live destination after it.',\n },\n\n deleteStep(A.deleteV1AdminRoles, {\n title: 'Remove the V1 role maps',\n summary:\n 'The `isAdmin` and `referees` fields on `landing/admin`; the document goes with its last carried row.',\n owningStep: 'auth',\n dependsOn: [A.verifyAdminList],\n resumeKey: SINGLE_DOCUMENT,\n consumes: [A.copyAdminList, A.verifyAdminList],\n }),\n deleteStep(A.deleteV1LandingBase, {\n title: 'Delete `landing/base`',\n summary:\n 'The V1 configuration document, once its three documents and its picture are verified.',\n owningStep: 'q-core',\n dependsOn: [\n A.verifyAppConfig,\n A.verifyLandingPageConfig,\n A.verifyStatsBeacon,\n A.verifyV1Pictures,\n ],\n resumeKey: SINGLE_DOCUMENT,\n consumes: [\n A.copyAppConfig,\n A.copyLandingPageConfig,\n A.copyStatsBeacon,\n A.verifyAppConfig,\n A.verifyLandingPageConfig,\n A.verifyStatsBeacon,\n A.carryV1Pictures,\n A.verifyV1Pictures,\n A.verifyV1TextFitsLimits,\n ],\n }),\n deleteStep(A.deleteV1Waivers, {\n title: 'Delete the V1 waiver templates',\n summary: 'The `waivers` collection.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.verifyWaiverTemplates],\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n consumes: [A.copyWaiverTemplates, A.verifyWaiverTemplates, A.verifyV1TextFitsLimits],\n }),\n deleteStep(A.deleteV1GameLocations, {\n title: 'Remove the V1 venues',\n summary:\n 'The `locations` field on `landing/admin`; the document goes with its last carried row.',\n owningStep: 'q-core',\n dependsOn: [A.verifyGameLocations, A.verifyV1Pictures],\n resumeKey: SINGLE_DOCUMENT,\n consumes: [\n A.copyGameLocations,\n A.verifyGameLocations,\n A.carryV1Pictures,\n A.verifyV1Pictures,\n A.verifyV1TextFitsLimits,\n ],\n }),\n deleteStep(A.deleteV1AwardCatalog, {\n title: 'Remove the V1 award catalog',\n summary: 'The `awards` field on `landing/admin`; the document goes with its last carried row.',\n owningStep: 'uploads-and-media',\n dependsOn: [\n A.verifyAwardDefinitions,\n A.verifyUserProfiles,\n A.verifyPublicUsers,\n A.verifyV1Pictures,\n ],\n resumeKey: SINGLE_DOCUMENT,\n consumes: [\n A.copyAwardDefinitions,\n A.verifyAwardDefinitions,\n A.carryV1Pictures,\n A.verifyV1Pictures,\n A.verifyV1TextFitsLimits,\n ],\n }),\n deleteStep(A.deleteV1Users, {\n title: 'Delete the V1 user documents',\n summary: 'Each `users` document with its historical baselines.',\n owningStep: 'auth',\n dependsOn: [A.verifyUserProfiles, A.verifyHistoricalStats, A.verifyReservedDisplayNames],\n maxPageSize: 200,\n consumes: [\n A.copyUserProfiles,\n A.verifyUserProfiles,\n A.copyHistoricalStats,\n A.verifyHistoricalStats,\n A.migratePublicUsers,\n A.verifyPublicUsers,\n A.verifyV1DisplayNamesUnique,\n A.verifyV1TextFitsLimits,\n ],\n }),\n deleteStep(A.deleteV1TeamInvites, {\n title: 'Delete the V1 invitations',\n summary: 'The `teamInvites` collection.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.verifyTeamInvitations],\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n consumes: [A.copyTeamInvitations, A.verifyTeamInvitations],\n }),\n deleteStep(A.deleteV1JoinRequests, {\n title: 'Delete the V1 join requests',\n summary: 'The `joinRequests` collection.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.verifyTeamJoinRequests],\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n consumes: [A.copyTeamJoinRequests, A.verifyTeamJoinRequests],\n }),\n deleteStep(A.deleteV1FreeAgentSignups, {\n title: 'Delete the V1 free-agent signups',\n summary: 'The `freeAgentSignups` collection, left-behind signups included.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.verifyLeagueFreeAgents],\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n consumes: [A.copyLeagueFreeAgents, A.verifyLeagueFreeAgents],\n }),\n deleteStep(A.deleteV1TeamMembers, {\n title: 'Delete the V1 memberships',\n summary: 'The `teamMembers` collection.',\n owningStep: 'q-core',\n dependsOn: [A.verifyTeamMemberships],\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n consumes: [A.copyTeamMemberships, A.verifyTeamMemberships],\n }),\n deleteStep(A.deleteV1Teams, {\n title: 'Delete the V1 teams',\n summary: 'The `teams` collection; a team still holding a subcollection is reported and kept.',\n owningStep: 'q-core',\n dependsOn: [A.verifyLeagueTeams],\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n consumes: [\n A.copyLeagueTeams,\n A.verifyLeagueTeams,\n A.verifyV1LeagueCapacity,\n A.verifyV1TextFitsLimits,\n ],\n }),\n {\n kind: 'executable',\n id: A.revokeV1SignatureDownloadTokens,\n callable: migrationActionCallableName(A.revokeV1SignatureDownloadTokens),\n resultKind: 'write',\n destructive: true,\n paged: true,\n defaultPageSize: 100,\n maxPageSize: 200,\n informational: false,\n idempotency:\n 'Removes a kept file’s download token; a file holding none is skipped. No file is moved or deleted.',\n resumeKey: 'The signed waivers by id, then the contracts; the resume key is the record path.',\n recovery: 'Run it again; a file whose token went is skipped.',\n consumes: [],\n title: 'Revoke the V1 signature download links',\n summary:\n 'Each kept signature file loses the download token V1’s stored links carry, so those links stop resolving.',\n owningStep: 'uploads-and-media',\n dependsOn: [\n A.verifySignedWaivers,\n A.verifyHardwareLoanContracts,\n A.verifySignatureFilesResolvable,\n ],\n orderedAfter: [],\n },\n deleteStep(A.deleteV1WaiverSignatures, {\n title: 'Delete the V1 signed-waiver records',\n summary: 'The `waiverSignatures` records; the files stay, named by the copied records.',\n owningStep: 'uploads-and-media',\n dependsOn: [A.verifySignedWaivers],\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n consumes: [A.copySignedWaivers, A.verifySignedWaivers],\n }),\n deleteStep(A.deleteV1HardwareContracts, {\n title: 'Delete the V1 hardware contracts',\n summary:\n 'Both V1 contract collections; the signature files stay, named by the copied contracts.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.verifyHardwareLoanContracts],\n resumeKey:\n 'The V1 collections in turn, each by document id; the resume key is `{collection}/{id}`.',\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n consumes: [\n A.copyHardwareLoanContracts,\n A.verifyHardwareLoanContracts,\n A.verifyV1HardwareContractIdsUnique,\n ],\n }),\n deleteStep(A.deleteV1GameRosters, {\n title: 'Delete the V1 game rosters',\n summary: 'Each V1 game’s `roster` subcollection — never the game document.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.verifyGameRosterPlayers, A.validateStats],\n resumeKey: 'The V1 games by document id; the resume key is the last game id.',\n defaultPageSize: 50,\n maxPageSize: 50,\n consumes: [\n A.copyGameRosterPlayers,\n A.verifyGameRosterPlayers,\n A.copySportGames,\n A.verifySportGames,\n A.verifyGameStats,\n ],\n }),\n deleteStep(A.deleteV1LeagueGames, {\n title: 'Delete the V1 games',\n summary: 'The `leagueGames` documents; a game still holding its roster is reported and kept.',\n owningStep: 'stat-data-model',\n dependsOn: [\n A.verifySportGames,\n A.verifyGameStats,\n A.verifyGameRosterPlayers,\n A.validateStats,\n A.deleteV1GameRosters,\n ],\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n consumes: [\n A.copySportGames,\n A.verifySportGames,\n A.verifyGameStats,\n A.copyGameRosterPlayers,\n A.verifyGameRosterPlayers,\n A.verifyV1LeagueCapacity,\n ],\n }),\n deleteStep(A.deleteV1LeagueChats, {\n title: 'Delete the V1 league chats',\n summary:\n 'The parked chat documents under each V1 league and its team paths. Any other document found under a league is reported and kept.',\n owningStep: 'migration-console',\n dependsOn: [A.checkpointV1FirestoreExport],\n resumeKey:\n 'The V1 leagues by document id; the resume key is the last league id, or `{leagueId}/unfinished` while a league holds more chats than one page deletes.',\n defaultPageSize: 50,\n maxPageSize: 50,\n consumes: [],\n }),\n deleteStep(A.deleteV1Leagues, {\n title: 'Delete the V1 leagues',\n summary:\n 'The `leagues` collection; a league still holding a subcollection is reported and kept.',\n owningStep: 'q-core',\n dependsOn: [A.verifySportLeagues, A.verifyV1Pictures],\n orderedAfter: [A.verifyLeaguePlayerStats, A.deleteV1LeagueChats],\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n consumes: [\n A.copySportLeagues,\n A.verifySportLeagues,\n A.verifyLeaguePlayerStats,\n A.carryV1Pictures,\n A.verifyV1Pictures,\n A.verifyV1LeagueCapacity,\n A.verifyV1TextFitsLimits,\n ],\n }),\n deleteStep(A.deleteV1HallOfFame, {\n title: 'Delete the V1 hall of fame',\n summary:\n 'The `hallOfFame` collection, once every sport that keeps a hall of fame has its rebuilt document.',\n owningStep: 'stat-data-model',\n dependsOn: [A.verifySportHallOfFame],\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n consumes: [A.verifySportHallOfFame],\n }),\n deleteStep(A.deleteV1ValidationReports, {\n title: 'Delete the V1 validation reports',\n summary:\n 'The `validationReports` collection. Nothing is copied: each report describes V1 aggregates at a past moment.',\n owningStep: 'stat-data-model',\n dependsOn: [A.checkpointV1FirestoreExport],\n orderedAfter: [A.validateStats],\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n consumes: [],\n }),\n deleteStep(A.deleteV1AdminStats, {\n title: 'Delete the V1 dashboard counts',\n summary:\n 'The `adminStats` collection. Nothing is copied: the dashboard counts are counted live.',\n owningStep: 'q-core',\n dependsOn: [A.checkpointV1FirestoreExport],\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n consumes: [],\n }),\n verifyStep(A.verifyV1CommerceDiscardable, {\n title: 'Check the V1 store holds no purchase',\n summary:\n 'Fails on an order that is not cancelled, a completed checkout, or a product holding inventory — any would be a real purchase, and goes to the owner.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.checkpointV1FirestoreExport],\n resumeKey: 'The six store collections in turn, each by document id.',\n }),\n deleteStep(A.deleteV1Commerce, {\n title: 'Delete the V1 store and payments',\n summary: 'The six store collections, nothing copied.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.verifyV1CommerceDiscardable],\n resumeKey: 'The six store collections in turn, each by document id.',\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n consumes: [A.verifyV1CommerceDiscardable],\n }),\n\n {\n kind: 'operatorCheckpoint',\n id: A.checkpointUnattachedPicturesReuploaded,\n title: 'Re-upload the pictures the carry could not attach',\n summary: 'Any V1 image still unattached in production goes back on through its own control.',\n owningStep: 'uploads-and-media',\n dependsOn: [A.verifyV1Pictures, A.recordCutoverLive],\n orderedAfter: [],\n instructions:\n 'For each source the picture verification reported, re-upload the image through its control — Reupload badge for an award, the picture managers for a league, the landing page, or a venue. In a rehearsal, record that this is production-only.',\n evidence: 'Each re-uploaded owner, or that the verification reported none.',\n noReturnBoundary: null,\n },\n {\n kind: 'operatorCheckpoint',\n id: A.checkpointPaymentCredentialsRetired,\n title: 'Retire the payment-service credentials',\n summary:\n 'V2 binds no payment-service credential, so once it is live the three V1 binds are live credentials with no reader.',\n owningStep: 'secret-management',\n dependsOn: [A.recordCutoverLive],\n orderedAfter: [],\n instructions:\n 'Production only, once V2 is live there: revoke the payment service’s secret key and disable its webhook endpoint in its dashboard, then destroy the three secrets V1 binds for it — its secret key, its webhook secret, and APP_URL — in Secret Manager in both Firebase projects. In a rehearsal, record that this is production-only.',\n evidence:\n 'The payment dashboard showing the key revoked and the endpoint disabled, and `gcloud secrets list` in each project showing none of the three.',\n noReturnBoundary: 'The secret key revocation.',\n },\n {\n kind: 'operatorCheckpoint',\n id: A.checkpointServiceAccountKeyRevoked,\n title: 'Revoke the obsolete production service-account key',\n summary:\n 'No script reads the local production key once the export script runs on the signed-in CLI credentials; revoking it makes every copy of it worthless.',\n owningStep: 'secret-management',\n dependsOn: [A.checkpointV1FirestoreExport],\n orderedAfter: [A.recordCutoverLive],\n instructions:\n 'Run the export script on Application Default Credentials against the production project named explicitly, then revoke the q-sports-prod service-account key in the Google Cloud console and delete serviceAccount.json from the machine. No replacement key is minted. In a rehearsal, record that this is production-only.',\n evidence: 'The export run on ADC, and the console showing the key revoked.',\n noReturnBoundary: 'The key revocation.',\n },\n];\n\nexport const MIGRATION_STEP_BY_ID: ReadonlyMap<MigrationActionId, MigrationStep> = new Map(\n MIGRATION_CUTOVER_MANIFEST.map((step) => [step.id, step]),\n);\n\nexport function migrationStepsOfKind<K extends MigrationStepKind>(\n kind: K,\n): Extract<MigrationStep, { kind: K }>[] {\n return MIGRATION_CUTOVER_MANIFEST.filter(\n (step): step is Extract<MigrationStep, { kind: K }> => step.kind === kind,\n );\n}\n"]}
1
+ {"version":3,"file":"manifest.js","sourceRoot":"","sources":["../../src/migration-console/manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,IAAI,CAAC,EAAE,MAAM,iBAAiB,CAAC;AAG5D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,uBAAuB,EAAE,4BAA4B,EAAE,MAAM,gBAAgB,CAAC;AAEvF,MAAM,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AE,iEAAiE;QAC3E,gBAAgB,EAAE,IAAI;KACvB;IACD;QACE,IAAI,EAAE,oBAAoB;QAC1B,EAAE,EAAE,CAAC,CAAC,mCAAmC;QACzC,KAAK,EAAE,wCAAwC;QAC/C,OAAO,EACL,oHAAoH;QACtH,UAAU,EAAE,mBAAmB;QAC/B,SAAS,EAAE,CAAC,CAAC,CAAC,iBAAiB,CAAC;QAChC,YAAY,EAAE,EAAE;QAChB,YAAY,EACV,yUAAyU;QAC3U,QAAQ,EACN,+IAA+I;QACjJ,gBAAgB,EAAE,4BAA4B;KAC/C;IACD;QACE,IAAI,EAAE,oBAAoB;QAC1B,EAAE,EAAE,CAAC,CAAC,kCAAkC;QACxC,KAAK,EAAE,oDAAoD;QAC3D,OAAO,EACL,sJAAsJ;QACxJ,UAAU,EAAE,mBAAmB;QAC/B,SAAS,EAAE,CAAC,CAAC,CAAC,2BAA2B,CAAC;QAC1C,YAAY,EAAE,CAAC,CAAC,CAAC,iBAAiB,CAAC;QACnC,YAAY,EACV,6TAA6T;QAC/T,QAAQ,EAAE,iEAAiE;QAC3E,gBAAgB,EAAE,qBAAqB;KACxC;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAkD,IAAI,GAAG,CACxF,0BAA0B,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC,CAC1D,CAAC;AAEF,MAAM,UAAU,oBAAoB,CAClC,IAAO;IAEP,OAAO,0BAA0B,CAAC,MAAM,CACtC,CAAC,IAAI,EAA+C,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAC1E,CAAC;AACJ,CAAC","sourcesContent":["import { MIGRATION_ACTION_IDS as A } from './action-ids.js';\nimport type { MigrationActionId } from './action-ids.js';\nimport type { RegisteredCollectionPath } from '../doc-schemas/registry.js';\nimport { SPORT_KEYS } from '../types/sports.js';\nimport { MAX_MIGRATION_PAGE_SIZE, MIGRATION_COMMIT_WRITE_LIMIT } from './run-state.js';\n\nexport const MIGRATION_STEP_KIND_KEYS = [\n 'executable',\n 'productControl',\n 'operatorCheckpoint',\n 'cutoverMarker',\n] as const;\nexport type MigrationStepKind = (typeof MIGRATION_STEP_KIND_KEYS)[number];\n\nexport const MIGRATION_RESULT_KIND_KEYS = ['write', 'verification'] as const;\nexport type MigrationResultKind = (typeof MIGRATION_RESULT_KIND_KEYS)[number];\n\nexport const MIGRATION_CONTROL_EVIDENCE_KEYS = ['statsOperation', 'statsValidationReport'] as const;\nexport type MigrationControlEvidence = (typeof MIGRATION_CONTROL_EVIDENCE_KEYS)[number];\n\nexport const MIGRATION_OWNING_STEP_KEYS = [\n 'auth',\n 'q-core',\n 'stat-data-model',\n 'high-risk-callables',\n 'uploads-and-media',\n 'query-and-invalidation',\n 'secret-management',\n 'migration-console',\n] as const;\nexport type MigrationOwningStep = (typeof MIGRATION_OWNING_STEP_KEYS)[number];\n\ninterface MigrationStepBase {\n readonly id: MigrationActionId;\n readonly title: string;\n readonly summary: string;\n readonly owningStep: MigrationOwningStep;\n readonly dependsOn: readonly MigrationActionId[];\n readonly orderedAfter: readonly MigrationActionId[];\n}\n\nexport interface ExecutableMigrationStep extends MigrationStepBase {\n readonly kind: 'executable';\n readonly callable: string;\n readonly resultKind: MigrationResultKind;\n readonly destructive: boolean;\n readonly paged: boolean;\n readonly defaultPageSize: number;\n readonly maxPageSize: number;\n readonly informational: boolean;\n readonly idempotency: string;\n readonly resumeKey: string;\n readonly recovery: string;\n // The steps whose V1 source this destructive step removes; a non-destructive step consumes none.\n readonly consumes: readonly MigrationActionId[];\n}\n\nexport interface ProductControlMigrationStep extends MigrationStepBase {\n readonly kind: 'productControl';\n readonly callable: string;\n readonly instructions: string;\n readonly evidence: MigrationControlEvidence;\n readonly destinations: readonly RegisteredCollectionPath[];\n}\n\nexport interface OperatorCheckpointMigrationStep extends MigrationStepBase {\n readonly kind: 'operatorCheckpoint';\n readonly instructions: string;\n readonly evidence: string;\n readonly noReturnBoundary: string | null;\n}\n\nexport interface CutoverMarkerMigrationStep extends MigrationStepBase {\n readonly kind: 'cutoverMarker';\n readonly callable: string;\n readonly noReturnBoundary: string;\n}\n\nexport type MigrationStep =\n | ExecutableMigrationStep\n | ProductControlMigrationStep\n | OperatorCheckpointMigrationStep\n | CutoverMarkerMigrationStep;\n\nexport const RECORD_MIGRATION_CONTROL_RUN_CALLABLE = 'adminRecordMigrationControlRun';\nexport const RECORD_MIGRATION_CHECKPOINT_CALLABLE = 'adminRecordMigrationCheckpoint';\nexport const RECORD_MIGRATION_CUTOVER_CALLABLE = 'adminRecordMigrationCutover';\nexport const GET_MIGRATION_CONSOLE_CALLABLE = 'adminGetMigrationConsole';\n\nexport function migrationActionCallableName(id: MigrationActionId): string {\n const [verb = '', object = ''] = id.split('.');\n const capitalize = (word: string) => word.charAt(0).toUpperCase() + word.slice(1);\n return `admin${capitalize(verb)}${capitalize(object)}`;\n}\n\nconst COPY_IDEMPOTENCY =\n 'Deterministic destination ids written whole, so a re-run rewrites the same documents with the same content.';\nconst VERIFY_IDEMPOTENCY = 'Reads only; a re-run compares again.';\nconst DELETE_IDEMPOTENCY =\n 'Deletes by id; a document already gone is skipped, so a re-run removes only what is left.';\nconst BY_DOCUMENT_ID =\n 'Source documents in document-id order; the resume key is the last id consumed.';\nconst SINGLE_DOCUMENT = 'One source document; it is never paged.';\nconst COPY_RECOVERY = 'Fix the transform and run the copy again; it refuses a live destination.';\nconst VERIFY_RECOVERY =\n 'Repair what it reports, through its copy or its resolution, and verify again.';\nconst DELETE_RECOVERY =\n 'Forward repair only: the retained V1 Firestore export holds what was deleted.';\nconst V1_CHECK_RECOVERY = 'Fix what it reports in V1, then run the check again.';\n\ninterface ExecutableOptions {\n title: string;\n summary: string;\n owningStep: MigrationOwningStep;\n dependsOn?: readonly MigrationActionId[];\n orderedAfter?: readonly MigrationActionId[];\n resumeKey?: string;\n defaultPageSize?: number;\n maxPageSize?: number;\n}\n\nfunction copyStep(id: MigrationActionId, options: ExecutableOptions): ExecutableMigrationStep {\n return {\n kind: 'executable',\n id,\n callable: migrationActionCallableName(id),\n resultKind: 'write',\n destructive: false,\n paged: true,\n defaultPageSize: options.defaultPageSize ?? 100,\n maxPageSize: options.maxPageSize ?? MAX_MIGRATION_PAGE_SIZE,\n informational: false,\n idempotency: COPY_IDEMPOTENCY,\n resumeKey: options.resumeKey ?? BY_DOCUMENT_ID,\n recovery: COPY_RECOVERY,\n consumes: [],\n title: options.title,\n summary: options.summary,\n owningStep: options.owningStep,\n dependsOn: options.dependsOn ?? [A.checkpointV1FirestoreExport],\n orderedAfter: options.orderedAfter ?? [],\n };\n}\n\nfunction verifyStep(\n id: MigrationActionId,\n options: ExecutableOptions & { informational?: boolean; recovery?: string },\n): ExecutableMigrationStep {\n return {\n kind: 'executable',\n id,\n callable: migrationActionCallableName(id),\n resultKind: 'verification',\n destructive: false,\n paged: true,\n defaultPageSize: options.defaultPageSize ?? 100,\n maxPageSize: options.maxPageSize ?? MAX_MIGRATION_PAGE_SIZE,\n informational: options.informational ?? false,\n idempotency: VERIFY_IDEMPOTENCY,\n resumeKey: options.resumeKey ?? BY_DOCUMENT_ID,\n recovery: options.recovery ?? VERIFY_RECOVERY,\n consumes: [],\n title: options.title,\n summary: options.summary,\n owningStep: options.owningStep,\n dependsOn: options.dependsOn ?? [],\n orderedAfter: options.orderedAfter ?? [],\n };\n}\n\nfunction v1CheckStep(id: MigrationActionId, options: ExecutableOptions): ExecutableMigrationStep {\n return verifyStep(id, {\n dependsOn: [A.checkpointV1FirestoreExport],\n ...options,\n recovery: V1_CHECK_RECOVERY,\n });\n}\n\nfunction deleteStep(\n id: MigrationActionId,\n options: ExecutableOptions & { consumes: readonly MigrationActionId[] },\n): ExecutableMigrationStep {\n return {\n kind: 'executable',\n id,\n callable: migrationActionCallableName(id),\n resultKind: 'write',\n destructive: true,\n paged: true,\n defaultPageSize: options.defaultPageSize ?? 100,\n maxPageSize: options.maxPageSize ?? MAX_MIGRATION_PAGE_SIZE,\n informational: false,\n idempotency: DELETE_IDEMPOTENCY,\n resumeKey: options.resumeKey ?? BY_DOCUMENT_ID,\n recovery: DELETE_RECOVERY,\n consumes: options.consumes,\n title: options.title,\n summary: options.summary,\n owningStep: options.owningStep,\n dependsOn: options.dependsOn ?? [],\n orderedAfter: options.orderedAfter ?? [],\n };\n}\n\nconst SOURCE_VERIFICATIONS_FOR_REBUILD = [\n A.verifySportLeagues,\n A.verifyLeagueTeams,\n A.verifyTeamMemberships,\n A.verifyGameRosterPlayers,\n A.verifySportGames,\n A.verifyGameStats,\n] as const satisfies readonly MigrationActionId[];\n\nconst COPY_VERIFICATIONS = [\n A.verifyAdminList,\n A.verifyAppConfig,\n A.verifyLandingPageConfig,\n A.verifyStatsBeacon,\n A.verifyWaiverTemplates,\n A.verifyGameLocations,\n A.verifyUserProfiles,\n A.verifyHistoricalStats,\n A.verifyReservedDisplayNames,\n A.verifyPublicUsers,\n A.verifyAwardDefinitions,\n A.verifySportLeagues,\n A.verifyLeagueTeams,\n A.verifyTeamMemberships,\n A.verifyTeamInvitations,\n A.verifyTeamJoinRequests,\n A.verifyLeagueFreeAgents,\n A.verifySignedWaivers,\n A.verifyHardwareLoanContracts,\n A.verifySportGames,\n A.verifyGameStats,\n A.verifyGameRosterPlayers,\n A.verifyV1Pictures,\n] as const satisfies readonly MigrationActionId[];\n\nexport const MIGRATION_CUTOVER_MANIFEST: readonly MigrationStep[] = [\n {\n kind: 'operatorCheckpoint',\n id: A.checkpointV1FirestoreExport,\n title: 'Keep a managed export of the V1 database',\n summary:\n 'The managed Firestore export is the record of V1 and the only recovery after a delete.',\n owningStep: 'migration-console',\n dependsOn: [],\n orderedAfter: [],\n instructions:\n 'In production, with V1 stopped, take a managed Firestore export of the whole database to a Cloud Storage bucket and keep it. In a rehearsal, name the production export the dev copy was imported from.',\n evidence: 'The export operation name and the bucket path it wrote to.',\n noReturnBoundary: null,\n },\n\n v1CheckStep(A.verifyV1DisplayNamesUnique, {\n title: 'Check no two V1 display names collide',\n summary:\n 'Lists every group of V1 accounts whose display names normalize to one reservation key. The profiles are copied only once it finds none.',\n owningStep: 'migration-console',\n }),\n v1CheckStep(A.verifyV1TextFitsLimits, {\n title: 'Check every V1 text fits its V2 field',\n summary:\n 'Lists every V1 text a copy carries into a capped V2 field that is over the field’s limit or that its schema would change. The copies it covers run only once it finds none.',\n owningStep: 'migration-console',\n }),\n v1CheckStep(A.verifyV1LeagueCapacity, {\n title: 'Check no V1 league is over capacity',\n summary:\n 'Lists every V1 league holding more games or teams than a league may. The leagues, teams, and games are copied only once it finds none.',\n owningStep: 'migration-console',\n }),\n v1CheckStep(A.verifyV1HardwareContractIdsUnique, {\n title: 'Check no hardware contract id is in both V1 collections',\n summary:\n 'Lists every contract id found in both V1 hardware collections. The contracts are copied only once it finds none.',\n owningStep: 'migration-console',\n resumeKey:\n 'The V1 collections in turn, each by document id; the resume key is `{collection}/{id}`.',\n }),\n\n copyStep(A.copyAdminList, {\n title: 'Copy the admin and referee rosters',\n summary:\n 'The `landing/admin` role maps become `_systemData/adminList`, the roster every role check reads.',\n owningStep: 'auth',\n resumeKey: SINGLE_DOCUMENT,\n }),\n verifyStep(A.verifyAdminList, {\n title: 'Verify the rosters',\n summary: 'Every V1 admin and referee is on the copied roster, and nobody else is.',\n owningStep: 'auth',\n dependsOn: [A.copyAdminList],\n resumeKey: SINGLE_DOCUMENT,\n }),\n\n copyStep(A.copyAppConfig, {\n title: 'Copy the app configuration',\n summary:\n 'The version and the banner from `landing/base` become `_appConfig/app`, its switches at their open defaults.',\n owningStep: 'q-core',\n dependsOn: [A.verifyV1TextFitsLimits],\n resumeKey: SINGLE_DOCUMENT,\n }),\n copyStep(A.copyLandingPageConfig, {\n title: 'Copy the landing page copy',\n summary:\n 'The hero title and the about text become `_appConfig/landingPage`; its picture arrives with the picture carry.',\n owningStep: 'q-core',\n dependsOn: [A.verifyV1TextFitsLimits],\n resumeKey: SINGLE_DOCUMENT,\n }),\n copyStep(A.copyStatsBeacon, {\n title: 'Copy the stats beacon',\n summary:\n 'The last stats change V1 announced becomes `_appConfig/statsBeacon`, or nothing when V1 never fired one.',\n owningStep: 'query-and-invalidation',\n resumeKey: SINGLE_DOCUMENT,\n }),\n verifyStep(A.verifyAppConfig, {\n title: 'Verify the app configuration',\n summary:\n 'The version and the banner match V1 before the cutover, and the document satisfies its schema after it.',\n owningStep: 'q-core',\n dependsOn: [A.copyAppConfig],\n resumeKey: SINGLE_DOCUMENT,\n }),\n verifyStep(A.verifyLandingPageConfig, {\n title: 'Verify the landing page copy',\n summary: 'The landing copy matches V1 before the cutover, and satisfies its schema after it.',\n owningStep: 'q-core',\n dependsOn: [A.copyLandingPageConfig],\n resumeKey: SINGLE_DOCUMENT,\n }),\n verifyStep(A.verifyStatsBeacon, {\n title: 'Verify the stats beacon',\n summary: 'A beacon at least as recent as V1’s exists, or V1 never fired one.',\n owningStep: 'query-and-invalidation',\n dependsOn: [A.copyStatsBeacon],\n resumeKey: SINGLE_DOCUMENT,\n }),\n\n copyStep(A.copyWaiverTemplates, {\n title: 'Copy the waiver templates',\n summary: 'Each template under its id, its wording as version 1.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.verifyV1TextFitsLimits],\n maxPageSize: 200,\n }),\n verifyStep(A.verifyWaiverTemplates, {\n title: 'Verify the waiver templates',\n summary: 'Every V1 template copied with its first version.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.copyWaiverTemplates],\n }),\n copyStep(A.copyGameLocations, {\n title: 'Copy the game locations',\n summary:\n 'Each venue on `landing/admin` becomes a `gameLocations` document under its id; its picture arrives with the picture carry.',\n owningStep: 'q-core',\n dependsOn: [A.verifyV1TextFitsLimits],\n resumeKey: 'The venues in array order; the resume key is the last venue id.',\n }),\n verifyStep(A.verifyGameLocations, {\n title: 'Verify the game locations',\n summary: 'Every V1 venue copied and equal.',\n owningStep: 'q-core',\n dependsOn: [A.copyGameLocations],\n resumeKey: 'The venues in array order; the resume key is the last venue id.',\n }),\n\n copyStep(A.copyUserProfiles, {\n title: 'Copy the profiles',\n summary:\n 'Each `users` document becomes its profile and its owner-only private document, every account active.',\n owningStep: 'auth',\n dependsOn: [A.verifyV1DisplayNamesUnique, A.verifyV1TextFitsLimits],\n maxPageSize: Math.floor(MIGRATION_COMMIT_WRITE_LIMIT / 2),\n }),\n verifyStep(A.verifyUserProfiles, {\n title: 'Verify the profiles',\n summary: 'Every V1 profile copied with its private document.',\n owningStep: 'auth',\n dependsOn: [A.copyUserProfiles],\n }),\n {\n kind: 'operatorCheckpoint',\n id: A.checkpointAbandonedRegistrationSweepEnabled,\n title: 'Enable the abandoned-registration sweep',\n summary:\n 'The scheduled sweep that deletes a sign-in account still holding no profile after its grace window does nothing until this is recorded, and stops again whenever the profile verification is run anew.',\n owningStep: 'auth',\n dependsOn: [A.verifyUserProfiles],\n orderedAfter: [],\n instructions:\n 'Once the profile verification has passed, confirm every account that should keep its sign-in holds a copied profile, then record this step to let the scheduled sweep delete the sign-in accounts that hold none past their grace window.',\n evidence:\n 'The passing profile verification this step follows, and the count of profiles it checked.',\n noReturnBoundary: 'The sweep’s first deletion of a sign-in account that holds no profile.',\n },\n copyStep(A.copyHistoricalStats, {\n title: 'Copy the historical baselines',\n summary: 'Each pre-Q-Sports career total becomes its sport’s `historicalStats` document.',\n owningStep: 'stat-data-model',\n dependsOn: [A.copyUserProfiles],\n maxPageSize: Math.floor(MIGRATION_COMMIT_WRITE_LIMIT / SPORT_KEYS.length),\n }),\n verifyStep(A.verifyHistoricalStats, {\n title: 'Verify the historical baselines',\n summary: 'Every V1 baseline copied and equal; a database with none is declared empty.',\n owningStep: 'stat-data-model',\n dependsOn: [A.copyHistoricalStats],\n }),\n copyStep(A.deriveReservedDisplayNames, {\n title: 'Reserve the display names',\n summary: 'One reservation per copied profile.',\n owningStep: 'auth',\n dependsOn: [A.copyUserProfiles, A.verifyV1DisplayNamesUnique],\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n }),\n verifyStep(A.verifyReservedDisplayNames, {\n title: 'Verify the display-name reservations',\n summary: 'Every profile holds the reservation of its name.',\n owningStep: 'auth',\n dependsOn: [A.deriveReservedDisplayNames],\n }),\n copyStep(A.migratePublicUsers, {\n title: 'Migrate the public identities in place',\n summary:\n 'Each `publicUsers` document is rewritten where it sits: epoch timestamps, the recomputed lowercase name, the ghost flag.',\n owningStep: 'q-core',\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n }),\n verifyStep(A.verifyPublicUsers, {\n title: 'Verify the public identities',\n summary:\n 'Each document holds its own uid, ghost flag, and lowercase name, and shows the featured badges its profile holds.',\n owningStep: 'q-core',\n dependsOn: [A.migratePublicUsers, A.copyUserProfiles],\n }),\n copyStep(A.copyAwardDefinitions, {\n title: 'Copy the award catalog',\n summary:\n 'Each award on `landing/admin` becomes an `awardDefinitions` document with its holder count; its badge arrives with the picture carry.',\n owningStep: 'uploads-and-media',\n dependsOn: [A.copyUserProfiles, A.verifyV1TextFitsLimits],\n resumeKey: 'The awards in array order; the resume key is the last award id.',\n }),\n verifyStep(A.verifyAwardDefinitions, {\n title: 'Verify the award catalog',\n summary:\n 'Every award copied, every holder count equal to the profiles holding it, every grant, profile award pick, and shown badge naming an award that exists.',\n owningStep: 'uploads-and-media',\n dependsOn: [A.copyAwardDefinitions, A.migratePublicUsers],\n resumeKey: SINGLE_DOCUMENT,\n }),\n\n copyStep(A.copySportLeagues, {\n title: 'Copy the leagues',\n summary:\n 'Each league under its id — closed leagues included; its pictures arrive with the picture carry.',\n owningStep: 'q-core',\n dependsOn: [A.verifyV1LeagueCapacity, A.verifyV1TextFitsLimits],\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n }),\n verifyStep(A.verifySportLeagues, {\n title: 'Verify the leagues',\n summary: 'Every V1 league copied and equal, every waiver template it names existing.',\n owningStep: 'q-core',\n dependsOn: [A.copySportLeagues, A.copyWaiverTemplates],\n }),\n copyStep(A.copyLeagueTeams, {\n title: 'Copy the teams',\n summary: 'Each team under its id, its season lines in its sport’s shape.',\n owningStep: 'q-core',\n dependsOn: [A.verifyV1LeagueCapacity, A.verifyV1TextFitsLimits],\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n }),\n verifyStep(A.verifyLeagueTeams, {\n title: 'Verify the teams',\n summary:\n 'Every V1 team copied; the season lines are held to their schema, since the rebuild replaces them.',\n owningStep: 'q-core',\n dependsOn: [A.copyLeagueTeams],\n }),\n copyStep(A.copyTeamMemberships, {\n title: 'Copy the memberships',\n summary:\n 'Each membership under its compound id, `member` becoming `player`; one whose team was not copied into its league is left behind and reported.',\n owningStep: 'q-core',\n dependsOn: [A.copyLeagueTeams],\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n }),\n verifyStep(A.verifyTeamMemberships, {\n title: 'Verify the memberships',\n summary:\n 'Every V1 membership copied, or absent because its team is gone; a team with two captains and a ghost on two memberships are reported.',\n owningStep: 'q-core',\n dependsOn: [A.copyTeamMemberships],\n }),\n copyStep(A.copyTeamInvitations, {\n title: 'Copy the invitations',\n summary:\n 'Each invitation by id; a pending one whose invitee is already on the team is written approved, and a pending one whose team was not copied into its league is left behind and reported.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.copyLeagueTeams, A.copyTeamMemberships, A.verifyV1TextFitsLimits],\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n }),\n verifyStep(A.verifyTeamInvitations, {\n title: 'Verify the invitations',\n summary:\n 'Every V1 invitation copied as the transform makes it, or absent because its team is gone.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.copyTeamInvitations],\n }),\n copyStep(A.copyTeamJoinRequests, {\n title: 'Copy the join requests',\n summary:\n 'Each request by id; a pending one whose requester is already on the team is written approved, and a pending one whose team was not copied into its league is left behind and reported.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.copyLeagueTeams, A.copyTeamMemberships, A.verifyV1TextFitsLimits],\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n }),\n verifyStep(A.verifyTeamJoinRequests, {\n title: 'Verify the join requests',\n summary:\n 'Every V1 request copied as the transform makes it, or absent because its team is gone.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.copyTeamJoinRequests],\n }),\n copyStep(A.copyLeagueFreeAgents, {\n title: 'Copy the free-agent signups',\n summary:\n 'Each signup under its built id; a signup whose player already joined a team in the league is left behind and reported.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.copyTeamMemberships],\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n }),\n verifyStep(A.verifyLeagueFreeAgents, {\n title: 'Verify the free-agent signups',\n summary: 'Every V1 signup copied, or absent because joining left it behind.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.copyLeagueFreeAgents],\n }),\n\n copyStep(A.copySignedWaivers, {\n title: 'Copy the signed waivers',\n summary:\n 'Every signed waiver, a ghost’s included, under its id; its signature file stays where it is.',\n owningStep: 'uploads-and-media',\n dependsOn: [A.copyWaiverTemplates],\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n }),\n verifyStep(A.verifySignedWaivers, {\n title: 'Verify the signed waivers',\n summary: 'Every V1 record copied and equal, each template it names existing.',\n owningStep: 'uploads-and-media',\n dependsOn: [A.copySignedWaivers],\n }),\n copyStep(A.copyHardwareLoanContracts, {\n title: 'Copy the hardware loan contracts',\n summary:\n 'Each contract from both V1 collections under its id; its signature file stays where it is.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.verifyV1HardwareContractIdsUnique],\n resumeKey:\n 'The V1 collections in turn, each by document id; the resume key is `{collection}/{id}`.',\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n }),\n verifyStep(A.verifyHardwareLoanContracts, {\n title: 'Verify the hardware loan contracts',\n summary: 'Every V1 contract copied and equal.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.copyHardwareLoanContracts],\n resumeKey:\n 'The V1 collections in turn, each by document id; the resume key is `{collection}/{id}`.',\n }),\n verifyStep(A.verifySignatureFilesResolvable, {\n title: 'Verify the signature files resolve',\n summary:\n 'Each kept signature file is in this project’s bucket and exists. A rehearsal reports every file as another environment’s, which is expected.',\n owningStep: 'uploads-and-media',\n dependsOn: [A.verifySignedWaivers, A.verifyHardwareLoanContracts],\n resumeKey: 'The signed waivers by id, then the contracts; the resume key is the record path.',\n }),\n\n copyStep(A.copyGameRosterPlayers, {\n title: 'Copy the game rosters',\n summary:\n 'One entry per team per person in each game, from each V1 roster document’s own team and user.',\n owningStep: 'high-risk-callables',\n resumeKey: 'The V1 games by document id; the resume key is the last game id.',\n defaultPageSize: 50,\n maxPageSize: 50,\n }),\n {\n kind: 'executable',\n id: A.resolveUnrosteredStatLine,\n callable: migrationActionCallableName(A.resolveUnrosteredStatLine),\n resultKind: 'write',\n destructive: false,\n paged: false,\n defaultPageSize: 1,\n maxPageSize: MAX_MIGRATION_PAGE_SIZE,\n informational: false,\n idempotency: 'A second resolution of the same line is acknowledged and writes nothing.',\n resumeKey: 'One game, one line; it is never paged.',\n recovery: 'Resolve the line again with the right team, then copy the game again.',\n consumes: [],\n title: 'Resolve a stat line no roster places',\n summary:\n 'For a line the game copy stops on, the admin names its team: the missing roster entry is written with its reason, and the game copied again.',\n owningStep: 'stat-data-model',\n dependsOn: [A.copyGameRosterPlayers],\n orderedAfter: [],\n },\n copyStep(A.copySportGames, {\n title: 'Copy the games',\n summary:\n 'Each V1 game with its stats: the event documents, the rollup, the participation lists by roster entry, and a completed game’s finalized record.',\n owningStep: 'stat-data-model',\n dependsOn: [A.copyGameRosterPlayers, A.verifyV1LeagueCapacity, A.verifyV1TextFitsLimits],\n orderedAfter: [A.resolveUnrosteredStatLine],\n resumeKey:\n 'The V1 games by document id; a game’s documents commit before its id becomes the resume key.',\n defaultPageSize: 20,\n maxPageSize: 25,\n }),\n verifyStep(A.verifySportGames, {\n title: 'Verify the game schedules',\n summary: 'Every V1 game’s schedule fields as the copy converts them.',\n owningStep: 'q-core',\n dependsOn: [A.copySportGames],\n }),\n verifyStep(A.verifyGameStats, {\n title: 'Verify the game stats',\n summary:\n 'Per game: the events replay to the rollup and to V1’s recorded lines, the finalized record matches, and every line and list names a roster entry.',\n owningStep: 'stat-data-model',\n dependsOn: [A.copySportGames],\n defaultPageSize: 20,\n maxPageSize: 25,\n }),\n {\n kind: 'executable',\n id: A.reconcileOpenGameRosters,\n callable: migrationActionCallableName(A.reconcileOpenGameRosters),\n resultKind: 'write',\n destructive: false,\n paged: true,\n defaultPageSize: 20,\n maxPageSize: 25,\n informational: false,\n idempotency:\n 'Each open game is reconciled through the roster core against the copied memberships; a reconciled game changes nothing on a re-run.',\n resumeKey: 'The open games by document id; the resume key is the last game id.',\n recovery:\n 'Run it again: a game held by another operation is reported and reconciled on the next run.',\n consumes: [],\n title: 'Reconcile the open games’ rosters',\n summary:\n 'Each game open at the cutover: stale stat-free entries removed, missing members added.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.verifyTeamMemberships, A.verifyGameStats],\n orderedAfter: [],\n },\n verifyStep(A.verifyGameRosterPlayers, {\n title: 'Verify the game rosters',\n summary: 'Every V1 roster entry copied; before the cutover, no open game keeps a stale entry.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.copyGameRosterPlayers, A.reconcileOpenGameRosters],\n resumeKey: 'The V1 games by document id; the resume key is the last game id.',\n }),\n\n copyStep(A.carryV1Pictures, {\n title: 'Carry the V1 pictures onto the pipeline',\n summary:\n '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.',\n owningStep: 'uploads-and-media',\n dependsOn: [\n A.copySportLeagues,\n A.copyLandingPageConfig,\n A.copyGameLocations,\n A.copyAwardDefinitions,\n ],\n resumeKey: 'By owner kind, then owner id; the resume key is `{ownerKind}:{ownerId}`.',\n }),\n verifyStep(A.verifyV1Pictures, {\n title: 'Verify the carried pictures',\n summary:\n 'Every V1 reference attached with its three sizes, or reported for a reason no re-run changes; nothing still pending. A source in another bucket, or a page it could examine none of, fails it unless the run acknowledges unexamined sources, as a rehearsal does.',\n owningStep: 'uploads-and-media',\n dependsOn: [A.carryV1Pictures],\n resumeKey: 'By owner kind, then owner id; the resume key is `{ownerKind}:{ownerId}`.',\n }),\n\n {\n kind: 'executable',\n id: A.cleanupOrphanGhostPublicUsers,\n callable: migrationActionCallableName(A.cleanupOrphanGhostPublicUsers),\n resultKind: 'write',\n destructive: true,\n paged: true,\n defaultPageSize: 100,\n maxPageSize: 100,\n informational: false,\n idempotency:\n 'A ghost document is deleted only when nothing references it; a re-run finds nothing further.',\n resumeKey: BY_DOCUMENT_ID,\n recovery: DELETE_RECOVERY,\n consumes: [],\n title: 'Remove the ghost names nothing references',\n summary:\n 'Each ghost `publicUsers` document no membership, roster entry, or unvoided stat event names, reported by disposition first. No signed waiver is touched.',\n owningStep: 'high-risk-callables',\n dependsOn: [\n A.verifyPublicUsers,\n A.verifyTeamMemberships,\n A.verifyGameRosterPlayers,\n A.verifyGameStats,\n ],\n orderedAfter: [],\n },\n\n {\n kind: 'productControl',\n id: A.rebuildLeagueStats,\n title: 'Rebuild every league’s stats',\n summary:\n 'Every team’s season line and per-membership rows, closed leagues included, rebuilt from the copied games.',\n owningStep: 'stat-data-model',\n dependsOn: SOURCE_VERIFICATIONS_FOR_REBUILD,\n orderedAfter: [],\n callable: 'recalculateAllLeagueStats',\n destinations: ['leagueTeams/{teamId}'],\n instructions:\n 'Run “Rebuild every league” from Stats › Fix stats as a real run, not a dry run, and let it reach the end.',\n evidence: 'statsOperation',\n },\n {\n kind: 'productControl',\n id: A.rebuildLifetimeStats,\n title: 'Rebuild every user’s lifetime stats',\n summary:\n 'Every account’s lifetime lines rebuilt from the copied games and historical baselines.',\n owningStep: 'stat-data-model',\n dependsOn: [A.rebuildLeagueStats, A.verifyUserProfiles, A.verifyHistoricalStats],\n orderedAfter: [],\n callable: 'recalculateAllUserStats',\n destinations: ['userProfiles/{userId}'],\n instructions:\n 'Run “Rebuild every user” from Stats › Fix stats as a real run, and let it reach the end.',\n evidence: 'statsOperation',\n },\n {\n kind: 'productControl',\n id: A.rebuildSportHallOfFame,\n title: 'Rebuild the hall of fame',\n summary:\n 'The hall of fame of every sport that keeps one, rebuilt from the copied games and baselines.',\n owningStep: 'stat-data-model',\n dependsOn: [A.rebuildLifetimeStats],\n orderedAfter: [],\n callable: 'recalculateHallOfFame',\n destinations: ['sportHallOfFame/{sportKey}'],\n instructions:\n 'Run the hall-of-fame rebuild from Stats › Fix stats once for each sport that keeps a hall of fame, as real runs, and record every run.',\n evidence: 'statsOperation',\n },\n {\n kind: 'productControl',\n id: A.validateStats,\n title: 'Validate the stats',\n summary: 'Check stats over everything; it must report no finding.',\n owningStep: 'stat-data-model',\n dependsOn: [A.rebuildSportHallOfFame],\n orderedAfter: [],\n callable: 'runStatsValidation',\n destinations: ['statsValidationReports/{reportId}'],\n instructions: 'Run “Check stats” over everything from Stats › Fix stats and let it finish.',\n evidence: 'statsValidationReport',\n },\n verifyStep(A.verifyLeaguePlayerStats, {\n title: 'Compare the league player totals with V1',\n summary:\n 'Lists each player whose V1 league total differs from the sum of their rebuilt rows in that league. It informs the rehearsal and gates nothing.',\n owningStep: 'stat-data-model',\n dependsOn: [A.rebuildLeagueStats],\n informational: true,\n }),\n verifyStep(A.verifySportHallOfFame, {\n title: 'Verify the rebuilt hall of fame',\n summary:\n 'Every V1 hall of fame of a sport that keeps one has its rebuilt document, which satisfies its schema and holds an entry for every V1 player with a non-zero total.',\n owningStep: 'stat-data-model',\n dependsOn: [A.rebuildSportHallOfFame],\n }),\n\n {\n kind: 'cutoverMarker',\n id: A.recordCutoverLive,\n callable: RECORD_MIGRATION_CUTOVER_CALLABLE,\n title: 'Record the cutover',\n summary:\n 'From here on the product owns every destination: no copy runs again, and each verification holds what the product edits to its schema only.',\n owningStep: 'migration-console',\n dependsOn: [...COPY_VERIFICATIONS, A.validateStats],\n orderedAfter: [A.verifySportHallOfFame, A.verifySignatureFilesResolvable],\n noReturnBoundary:\n 'Recording the cutover. It is never undone: every copy refuses a live destination after it.',\n },\n\n deleteStep(A.deleteV1AdminRoles, {\n title: 'Remove the V1 role maps',\n summary:\n 'The `isAdmin` and `referees` fields on `landing/admin`; the document goes with its last carried row.',\n owningStep: 'auth',\n dependsOn: [A.verifyAdminList],\n resumeKey: SINGLE_DOCUMENT,\n consumes: [A.copyAdminList, A.verifyAdminList],\n }),\n deleteStep(A.deleteV1LandingBase, {\n title: 'Delete `landing/base`',\n summary:\n 'The V1 configuration document, once its three documents and its picture are verified.',\n owningStep: 'q-core',\n dependsOn: [\n A.verifyAppConfig,\n A.verifyLandingPageConfig,\n A.verifyStatsBeacon,\n A.verifyV1Pictures,\n ],\n resumeKey: SINGLE_DOCUMENT,\n consumes: [\n A.copyAppConfig,\n A.copyLandingPageConfig,\n A.copyStatsBeacon,\n A.verifyAppConfig,\n A.verifyLandingPageConfig,\n A.verifyStatsBeacon,\n A.carryV1Pictures,\n A.verifyV1Pictures,\n A.verifyV1TextFitsLimits,\n ],\n }),\n deleteStep(A.deleteV1Waivers, {\n title: 'Delete the V1 waiver templates',\n summary: 'The `waivers` collection.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.verifyWaiverTemplates],\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n consumes: [A.copyWaiverTemplates, A.verifyWaiverTemplates, A.verifyV1TextFitsLimits],\n }),\n deleteStep(A.deleteV1GameLocations, {\n title: 'Remove the V1 venues',\n summary:\n 'The `locations` field on `landing/admin`; the document goes with its last carried row.',\n owningStep: 'q-core',\n dependsOn: [A.verifyGameLocations, A.verifyV1Pictures],\n resumeKey: SINGLE_DOCUMENT,\n consumes: [\n A.copyGameLocations,\n A.verifyGameLocations,\n A.carryV1Pictures,\n A.verifyV1Pictures,\n A.verifyV1TextFitsLimits,\n ],\n }),\n deleteStep(A.deleteV1AwardCatalog, {\n title: 'Remove the V1 award catalog',\n summary: 'The `awards` field on `landing/admin`; the document goes with its last carried row.',\n owningStep: 'uploads-and-media',\n dependsOn: [\n A.verifyAwardDefinitions,\n A.verifyUserProfiles,\n A.verifyPublicUsers,\n A.verifyV1Pictures,\n ],\n resumeKey: SINGLE_DOCUMENT,\n consumes: [\n A.copyAwardDefinitions,\n A.verifyAwardDefinitions,\n A.carryV1Pictures,\n A.verifyV1Pictures,\n A.verifyV1TextFitsLimits,\n ],\n }),\n deleteStep(A.deleteV1Users, {\n title: 'Delete the V1 user documents',\n summary: 'Each `users` document with its historical baselines.',\n owningStep: 'auth',\n dependsOn: [A.verifyUserProfiles, A.verifyHistoricalStats, A.verifyReservedDisplayNames],\n maxPageSize: 200,\n consumes: [\n A.copyUserProfiles,\n A.verifyUserProfiles,\n A.copyHistoricalStats,\n A.verifyHistoricalStats,\n A.migratePublicUsers,\n A.verifyPublicUsers,\n A.verifyV1DisplayNamesUnique,\n A.verifyV1TextFitsLimits,\n ],\n }),\n deleteStep(A.deleteV1TeamInvites, {\n title: 'Delete the V1 invitations',\n summary: 'The `teamInvites` collection.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.verifyTeamInvitations],\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n consumes: [A.copyTeamInvitations, A.verifyTeamInvitations, A.verifyV1TextFitsLimits],\n }),\n deleteStep(A.deleteV1JoinRequests, {\n title: 'Delete the V1 join requests',\n summary: 'The `joinRequests` collection.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.verifyTeamJoinRequests],\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n consumes: [A.copyTeamJoinRequests, A.verifyTeamJoinRequests, A.verifyV1TextFitsLimits],\n }),\n deleteStep(A.deleteV1FreeAgentSignups, {\n title: 'Delete the V1 free-agent signups',\n summary: 'The `freeAgentSignups` collection, left-behind signups included.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.verifyLeagueFreeAgents],\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n consumes: [A.copyLeagueFreeAgents, A.verifyLeagueFreeAgents],\n }),\n deleteStep(A.deleteV1TeamMembers, {\n title: 'Delete the V1 memberships',\n summary: 'The `teamMembers` collection.',\n owningStep: 'q-core',\n dependsOn: [A.verifyTeamMemberships],\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n consumes: [A.copyTeamMemberships, A.verifyTeamMemberships],\n }),\n deleteStep(A.deleteV1Teams, {\n title: 'Delete the V1 teams',\n summary: 'The `teams` collection; a team still holding a subcollection is reported and kept.',\n owningStep: 'q-core',\n dependsOn: [A.verifyLeagueTeams],\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n consumes: [\n A.copyLeagueTeams,\n A.verifyLeagueTeams,\n A.verifyV1LeagueCapacity,\n A.verifyV1TextFitsLimits,\n ],\n }),\n {\n kind: 'executable',\n id: A.revokeV1SignatureDownloadTokens,\n callable: migrationActionCallableName(A.revokeV1SignatureDownloadTokens),\n resultKind: 'write',\n destructive: true,\n paged: true,\n defaultPageSize: 100,\n maxPageSize: 200,\n informational: false,\n idempotency:\n 'Removes a kept file’s download token; a file holding none is skipped. No file is moved or deleted.',\n resumeKey: 'The signed waivers by id, then the contracts; the resume key is the record path.',\n recovery: 'Run it again; a file whose token went is skipped.',\n consumes: [],\n title: 'Revoke the V1 signature download links',\n summary:\n 'Each kept signature file loses the download token V1’s stored links carry, so those links stop resolving.',\n owningStep: 'uploads-and-media',\n dependsOn: [\n A.verifySignedWaivers,\n A.verifyHardwareLoanContracts,\n A.verifySignatureFilesResolvable,\n ],\n orderedAfter: [],\n },\n deleteStep(A.deleteV1WaiverSignatures, {\n title: 'Delete the V1 signed-waiver records',\n summary: 'The `waiverSignatures` records; the files stay, named by the copied records.',\n owningStep: 'uploads-and-media',\n dependsOn: [A.verifySignedWaivers],\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n consumes: [A.copySignedWaivers, A.verifySignedWaivers],\n }),\n deleteStep(A.deleteV1HardwareContracts, {\n title: 'Delete the V1 hardware contracts',\n summary:\n 'Both V1 contract collections; the signature files stay, named by the copied contracts.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.verifyHardwareLoanContracts],\n resumeKey:\n 'The V1 collections in turn, each by document id; the resume key is `{collection}/{id}`.',\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n consumes: [\n A.copyHardwareLoanContracts,\n A.verifyHardwareLoanContracts,\n A.verifyV1HardwareContractIdsUnique,\n ],\n }),\n deleteStep(A.deleteV1GameRosters, {\n title: 'Delete the V1 game rosters',\n summary: 'Each V1 game’s `roster` subcollection — never the game document.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.verifyGameRosterPlayers, A.validateStats],\n resumeKey: 'The V1 games by document id; the resume key is the last game id.',\n defaultPageSize: 50,\n maxPageSize: 50,\n consumes: [\n A.copyGameRosterPlayers,\n A.verifyGameRosterPlayers,\n A.copySportGames,\n A.verifySportGames,\n A.verifyGameStats,\n ],\n }),\n deleteStep(A.deleteV1LeagueGames, {\n title: 'Delete the V1 games',\n summary: 'The `leagueGames` documents; a game still holding its roster is reported and kept.',\n owningStep: 'stat-data-model',\n dependsOn: [\n A.verifySportGames,\n A.verifyGameStats,\n A.verifyGameRosterPlayers,\n A.validateStats,\n A.deleteV1GameRosters,\n ],\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n consumes: [\n A.copySportGames,\n A.verifySportGames,\n A.verifyGameStats,\n A.copyGameRosterPlayers,\n A.verifyGameRosterPlayers,\n A.verifyV1LeagueCapacity,\n A.verifyV1TextFitsLimits,\n ],\n }),\n deleteStep(A.deleteV1LeagueChats, {\n title: 'Delete the V1 league chats',\n summary:\n 'The parked chat documents under each V1 league and its team paths. Any other document found under a league is reported and kept.',\n owningStep: 'migration-console',\n dependsOn: [A.checkpointV1FirestoreExport],\n resumeKey:\n 'The V1 leagues by document id; the resume key is the last league id, or `{leagueId}/unfinished` while a league holds more chats than one page deletes.',\n defaultPageSize: 50,\n maxPageSize: 50,\n consumes: [],\n }),\n deleteStep(A.deleteV1Leagues, {\n title: 'Delete the V1 leagues',\n summary:\n 'The `leagues` collection; a league still holding a subcollection is reported and kept.',\n owningStep: 'q-core',\n dependsOn: [A.verifySportLeagues, A.verifyV1Pictures],\n orderedAfter: [A.verifyLeaguePlayerStats, A.deleteV1LeagueChats],\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n consumes: [\n A.copySportLeagues,\n A.verifySportLeagues,\n A.verifyLeaguePlayerStats,\n A.carryV1Pictures,\n A.verifyV1Pictures,\n A.verifyV1LeagueCapacity,\n A.verifyV1TextFitsLimits,\n ],\n }),\n deleteStep(A.deleteV1HallOfFame, {\n title: 'Delete the V1 hall of fame',\n summary:\n 'The `hallOfFame` collection, once every sport that keeps a hall of fame has its rebuilt document.',\n owningStep: 'stat-data-model',\n dependsOn: [A.verifySportHallOfFame],\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n consumes: [A.verifySportHallOfFame],\n }),\n deleteStep(A.deleteV1ValidationReports, {\n title: 'Delete the V1 validation reports',\n summary:\n 'The `validationReports` collection. Nothing is copied: each report describes V1 aggregates at a past moment.',\n owningStep: 'stat-data-model',\n dependsOn: [A.checkpointV1FirestoreExport],\n orderedAfter: [A.validateStats],\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n consumes: [],\n }),\n deleteStep(A.deleteV1AdminStats, {\n title: 'Delete the V1 dashboard counts',\n summary:\n 'The `adminStats` collection. Nothing is copied: the dashboard counts are counted live.',\n owningStep: 'q-core',\n dependsOn: [A.checkpointV1FirestoreExport],\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n consumes: [],\n }),\n verifyStep(A.verifyV1CommerceDiscardable, {\n title: 'Check the V1 store holds no purchase',\n summary:\n 'Fails on an order that is not cancelled, a completed checkout, or a product holding inventory — any would be a real purchase, and goes to the owner.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.checkpointV1FirestoreExport],\n resumeKey: 'The six store collections in turn, each by document id.',\n }),\n deleteStep(A.deleteV1Commerce, {\n title: 'Delete the V1 store and payments',\n summary: 'The six store collections, nothing copied.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.verifyV1CommerceDiscardable],\n resumeKey: 'The six store collections in turn, each by document id.',\n maxPageSize: MIGRATION_COMMIT_WRITE_LIMIT,\n consumes: [A.verifyV1CommerceDiscardable],\n }),\n\n {\n kind: 'operatorCheckpoint',\n id: A.checkpointUnattachedPicturesReuploaded,\n title: 'Re-upload the pictures the carry could not attach',\n summary: 'Any V1 image still unattached in production goes back on through its own control.',\n owningStep: 'uploads-and-media',\n dependsOn: [A.verifyV1Pictures, A.recordCutoverLive],\n orderedAfter: [],\n instructions:\n 'For each source the picture verification reported, re-upload the image through its control — Reupload badge for an award, the picture managers for a league, the landing page, or a venue. In a rehearsal, record that this is production-only.',\n evidence: 'Each re-uploaded owner, or that the verification reported none.',\n noReturnBoundary: null,\n },\n {\n kind: 'operatorCheckpoint',\n id: A.checkpointPaymentCredentialsRetired,\n title: 'Retire the payment-service credentials',\n summary:\n 'V2 binds no payment-service credential, so once it is live the three V1 binds are live credentials with no reader.',\n owningStep: 'secret-management',\n dependsOn: [A.recordCutoverLive],\n orderedAfter: [],\n instructions:\n 'Production only, once V2 is live there: revoke the payment service’s secret key and disable its webhook endpoint in its dashboard, then destroy the three secrets V1 binds for it — its secret key, its webhook secret, and APP_URL — in Secret Manager in both Firebase projects. In a rehearsal, record that this is production-only.',\n evidence:\n 'The payment dashboard showing the key revoked and the endpoint disabled, and `gcloud secrets list` in each project showing none of the three.',\n noReturnBoundary: 'The secret key revocation.',\n },\n {\n kind: 'operatorCheckpoint',\n id: A.checkpointServiceAccountKeyRevoked,\n title: 'Revoke the obsolete production service-account key',\n summary:\n 'No script reads the local production key once the export script runs on the signed-in CLI credentials; revoking it makes every copy of it worthless.',\n owningStep: 'secret-management',\n dependsOn: [A.checkpointV1FirestoreExport],\n orderedAfter: [A.recordCutoverLive],\n instructions:\n 'Run the export script on Application Default Credentials against the production project named explicitly, then revoke the q-sports-prod service-account key in the Google Cloud console and delete serviceAccount.json from the machine. No replacement key is minted. In a rehearsal, record that this is production-only.',\n evidence: 'The export run on ADC, and the console showing the key revoked.',\n noReturnBoundary: 'The key revocation.',\n },\n];\n\nexport const MIGRATION_STEP_BY_ID: ReadonlyMap<MigrationActionId, MigrationStep> = new Map(\n MIGRATION_CUTOVER_MANIFEST.map((step) => [step.id, step]),\n);\n\nexport function migrationStepsOfKind<K extends MigrationStepKind>(\n kind: K,\n): Extract<MigrationStep, { kind: K }>[] {\n return MIGRATION_CUTOVER_MANIFEST.filter(\n (step): step is Extract<MigrationStep, { kind: K }> => step.kind === kind,\n );\n}\n"]}
@@ -1,9 +1,4 @@
1
1
  import { z } from 'zod';
2
- export declare const gameLocationNameSchema: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
3
- export declare const gameLocationStreetAddressSchema: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
4
- export declare const gameLocationSubLocationSchema: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
5
- export declare const gameLocationSubLocationsSchema: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
6
- export declare const gameLocationMemoSchema: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
7
2
  export declare const AdminCreateGameLocationInputSchema: z.ZodObject<{
8
3
  name: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
9
4
  streetAddress: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
@@ -1 +1 @@
1
- {"version":3,"file":"game-locations.d.ts","sourceRoot":"","sources":["../../src/schemas/game-locations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,eAAO,MAAM,sBAAsB,wDAAmD,CAAC;AACvF,eAAO,MAAM,+BAA+B,wDAE3C,CAAC;AACF,eAAO,MAAM,6BAA6B,wDAEzC,CAAC;AACF,eAAO,MAAM,8BAA8B,oEAKvC,CAAC;AACL,eAAO,MAAM,sBAAsB,wDAAmD,CAAC;AASvF,eAAO,MAAM,kCAAk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AO,kCAAkC,CAAC,CAAC;AAC9F,eAAO,MAAM,mCAAmC;;kBAErC,CAAC;AACZ,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAEhG,eAAO,MAAM,kCAAkC;;kBAEpC,CAAC;AACZ,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAC9F,eAAO,MAAM,mCAAmC;;kBAErC,CAAC;AACZ,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
@@ -1,18 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { MAX_GAME_LOCATION_SUB_LOCATIONS } from '../constants/business.js';
3
- import { textFieldSchema } from '../doc-schemas/atoms.js';
4
- import { gameLocationIdSchema } from '../doc-schemas/game-location.js';
5
- import { GAME_LOCATION_MEMO_INPUT_FORMAT, GAME_LOCATION_NAME_INPUT_FORMAT, GAME_LOCATION_STREET_ADDRESS_INPUT_FORMAT, GAME_LOCATION_SUB_LOCATION_INPUT_FORMAT, } from '../input-formats/input-formats.js';
6
- export const gameLocationNameSchema = textFieldSchema(GAME_LOCATION_NAME_INPUT_FORMAT);
7
- export const gameLocationStreetAddressSchema = textFieldSchema(GAME_LOCATION_STREET_ADDRESS_INPUT_FORMAT);
8
- export const gameLocationSubLocationSchema = textFieldSchema(GAME_LOCATION_SUB_LOCATION_INPUT_FORMAT);
9
- export const gameLocationSubLocationsSchema = z
10
- .array(gameLocationSubLocationSchema)
11
- .max(MAX_GAME_LOCATION_SUB_LOCATIONS)
12
- .refine((subLocations) => new Set(subLocations).size === subLocations.length, {
13
- message: 'Each sub-location may appear only once.',
14
- });
15
- export const gameLocationMemoSchema = textFieldSchema(GAME_LOCATION_MEMO_INPUT_FORMAT);
2
+ import { gameLocationIdSchema, gameLocationMemoSchema, gameLocationNameSchema, gameLocationStreetAddressSchema, gameLocationSubLocationsSchema, } from '../doc-schemas/game-location.js';
16
3
  const gameLocationFieldsShape = {
17
4
  name: gameLocationNameSchema,
18
5
  streetAddress: gameLocationStreetAddressSchema,
@@ -1 +1 @@
1
- {"version":3,"file":"game-locations.js","sourceRoot":"","sources":["../../src/schemas/game-locations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,+BAA+B,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EACL,+BAA+B,EAC/B,+BAA+B,EAC/B,yCAAyC,EACzC,uCAAuC,GACxC,MAAM,mCAAmC,CAAC;AAE3C,MAAM,CAAC,MAAM,sBAAsB,GAAG,eAAe,CAAC,+BAA+B,CAAC,CAAC;AACvF,MAAM,CAAC,MAAM,+BAA+B,GAAG,eAAe,CAC5D,yCAAyC,CAC1C,CAAC;AACF,MAAM,CAAC,MAAM,6BAA6B,GAAG,eAAe,CAC1D,uCAAuC,CACxC,CAAC;AACF,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC;KAC5C,KAAK,CAAC,6BAA6B,CAAC;KACpC,GAAG,CAAC,+BAA+B,CAAC;KACpC,MAAM,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC,IAAI,GAAG,CAAC,YAAY,CAAC,CAAC,IAAI,KAAK,YAAY,CAAC,MAAM,EAAE;IAC5E,OAAO,EAAE,yCAAyC;CACnD,CAAC,CAAC;AACL,MAAM,CAAC,MAAM,sBAAsB,GAAG,eAAe,CAAC,+BAA+B,CAAC,CAAC;AAEvF,MAAM,uBAAuB,GAAG;IAC9B,IAAI,EAAE,sBAAsB;IAC5B,aAAa,EAAE,+BAA+B;IAC9C,YAAY,EAAE,8BAA8B;IAC5C,IAAI,EAAE,sBAAsB;CAC7B,CAAC;AAEF,MAAM,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'../doc-schemas/atoms.js';\nimport { gameLocationIdSchema } from '../doc-schemas/game-location.js';\nimport {\n GAME_LOCATION_MEMO_INPUT_FORMAT,\n GAME_LOCATION_NAME_INPUT_FORMAT,\n GAME_LOCATION_STREET_ADDRESS_INPUT_FORMAT,\n GAME_LOCATION_SUB_LOCATION_INPUT_FORMAT,\n} from '../input-formats/input-formats.js';\n\nexport const gameLocationNameSchema = textFieldSchema(GAME_LOCATION_NAME_INPUT_FORMAT);\nexport const gameLocationStreetAddressSchema = textFieldSchema(\n GAME_LOCATION_STREET_ADDRESS_INPUT_FORMAT,\n);\nexport const gameLocationSubLocationSchema = textFieldSchema(\n GAME_LOCATION_SUB_LOCATION_INPUT_FORMAT,\n);\nexport const gameLocationSubLocationsSchema = z\n .array(gameLocationSubLocationSchema)\n .max(MAX_GAME_LOCATION_SUB_LOCATIONS)\n .refine((subLocations) => new Set(subLocations).size === subLocations.length, {\n message: 'Each sub-location may appear only once.',\n });\nexport const gameLocationMemoSchema = textFieldSchema(GAME_LOCATION_MEMO_INPUT_FORMAT);\n\nconst gameLocationFieldsShape = {\n name: gameLocationNameSchema,\n streetAddress: gameLocationStreetAddressSchema,\n subLocations: gameLocationSubLocationsSchema,\n memo: gameLocationMemoSchema,\n};\n\nexport const AdminCreateGameLocationInputSchema = z.object(gameLocationFieldsShape).strict();\nexport type AdminCreateGameLocationInput = z.infer<typeof AdminCreateGameLocationInputSchema>;\nexport const AdminCreateGameLocationResultSchema = z\n .object({ gameLocationId: gameLocationIdSchema })\n .strict();\nexport type AdminCreateGameLocationResult = z.infer<typeof AdminCreateGameLocationResultSchema>;\n\nexport const AdminUpdateGameLocationInputSchema = z\n .object({\n gameLocationId: gameLocationIdSchema,\n name: gameLocationNameSchema.optional(),\n streetAddress: gameLocationStreetAddressSchema.optional(),\n subLocations: gameLocationSubLocationsSchema.optional(),\n memo: gameLocationMemoSchema.optional(),\n })\n .strict()\n .refine(\n ({ gameLocationId: _gameLocationId, ...fields }) =>\n Object.values(fields).some((value) => value !== undefined),\n { message: 'Change at least one field.' },\n );\nexport type AdminUpdateGameLocationInput = z.infer<typeof AdminUpdateGameLocationInputSchema>;\nexport const AdminUpdateGameLocationResultSchema = z\n .object({ gameLocationId: gameLocationIdSchema })\n .strict();\nexport type AdminUpdateGameLocationResult = z.infer<typeof AdminUpdateGameLocationResultSchema>;\n\nexport const AdminDeleteGameLocationInputSchema = z\n .object({ gameLocationId: gameLocationIdSchema })\n .strict();\nexport type AdminDeleteGameLocationInput = z.infer<typeof AdminDeleteGameLocationInputSchema>;\nexport const AdminDeleteGameLocationResultSchema = z\n .object({ gameLocationId: gameLocationIdSchema })\n .strict();\nexport type AdminDeleteGameLocationResult = z.infer<typeof AdminDeleteGameLocationResultSchema>;\n"]}
1
+ {"version":3,"file":"game-locations.js","sourceRoot":"","sources":["../../src/schemas/game-locations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,oBAAoB,EACpB,sBAAsB,EACtB,sBAAsB,EACtB,+BAA+B,EAC/B,8BAA8B,GAC/B,MAAM,iCAAiC,CAAC;AAEzC,MAAM,uBAAuB,GAAG;IAC9B,IAAI,EAAE,sBAAsB;IAC5B,aAAa,EAAE,+BAA+B;IAC9C,YAAY,EAAE,8BAA8B;IAC5C,IAAI,EAAE,sBAAsB;CAC7B,CAAC;AAEF,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC,MAAM,EAAE,CAAC;AAE7F,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC;KACjD,MAAM,CAAC,EAAE,cAAc,EAAE,oBAAoB,EAAE,CAAC;KAChD,MAAM,EAAE,CAAC;AAGZ,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC;KAChD,MAAM,CAAC;IACN,cAAc,EAAE,oBAAoB;IACpC,IAAI,EAAE,sBAAsB,CAAC,QAAQ,EAAE;IACvC,aAAa,EAAE,+BAA+B,CAAC,QAAQ,EAAE;IACzD,YAAY,EAAE,8BAA8B,CAAC,QAAQ,EAAE;IACvD,IAAI,EAAE,sBAAsB,CAAC,QAAQ,EAAE;CACxC,CAAC;KACD,MAAM,EAAE;KACR,MAAM,CACL,CAAC,EAAE,cAAc,EAAE,eAAe,EAAE,GAAG,MAAM,EAAE,EAAE,EAAE,CACjD,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,SAAS,CAAC,EAC5D,EAAE,OAAO,EAAE,4BAA4B,EAAE,CAC1C,CAAC;AAEJ,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC;KACjD,MAAM,CAAC,EAAE,cAAc,EAAE,oBAAoB,EAAE,CAAC;KAChD,MAAM,EAAE,CAAC;AAGZ,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC;KAChD,MAAM,CAAC,EAAE,cAAc,EAAE,oBAAoB,EAAE,CAAC;KAChD,MAAM,EAAE,CAAC;AAEZ,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC;KACjD,MAAM,CAAC,EAAE,cAAc,EAAE,oBAAoB,EAAE,CAAC;KAChD,MAAM,EAAE,CAAC","sourcesContent":["import { z } from 'zod';\nimport {\n gameLocationIdSchema,\n gameLocationMemoSchema,\n gameLocationNameSchema,\n gameLocationStreetAddressSchema,\n gameLocationSubLocationsSchema,\n} from '../doc-schemas/game-location.js';\n\nconst gameLocationFieldsShape = {\n name: gameLocationNameSchema,\n streetAddress: gameLocationStreetAddressSchema,\n subLocations: gameLocationSubLocationsSchema,\n memo: gameLocationMemoSchema,\n};\n\nexport const AdminCreateGameLocationInputSchema = z.object(gameLocationFieldsShape).strict();\nexport type AdminCreateGameLocationInput = z.infer<typeof AdminCreateGameLocationInputSchema>;\nexport const AdminCreateGameLocationResultSchema = z\n .object({ gameLocationId: gameLocationIdSchema })\n .strict();\nexport type AdminCreateGameLocationResult = z.infer<typeof AdminCreateGameLocationResultSchema>;\n\nexport const AdminUpdateGameLocationInputSchema = z\n .object({\n gameLocationId: gameLocationIdSchema,\n name: gameLocationNameSchema.optional(),\n streetAddress: gameLocationStreetAddressSchema.optional(),\n subLocations: gameLocationSubLocationsSchema.optional(),\n memo: gameLocationMemoSchema.optional(),\n })\n .strict()\n .refine(\n ({ gameLocationId: _gameLocationId, ...fields }) =>\n Object.values(fields).some((value) => value !== undefined),\n { message: 'Change at least one field.' },\n );\nexport type AdminUpdateGameLocationInput = z.infer<typeof AdminUpdateGameLocationInputSchema>;\nexport const AdminUpdateGameLocationResultSchema = z\n .object({ gameLocationId: gameLocationIdSchema })\n .strict();\nexport type AdminUpdateGameLocationResult = z.infer<typeof AdminUpdateGameLocationResultSchema>;\n\nexport const AdminDeleteGameLocationInputSchema = z\n .object({ gameLocationId: gameLocationIdSchema })\n .strict();\nexport type AdminDeleteGameLocationInput = z.infer<typeof AdminDeleteGameLocationInputSchema>;\nexport const AdminDeleteGameLocationResultSchema = z\n .object({ gameLocationId: gameLocationIdSchema })\n .strict();\nexport type AdminDeleteGameLocationResult = z.infer<typeof AdminDeleteGameLocationResultSchema>;\n"]}
@@ -1,7 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  export declare const leagueTitleSchema: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
3
3
  export declare const leagueDescriptionSchema: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
4
- export declare const playoffCutoffSchema: z.ZodNumber;
5
4
  export declare const LEAGUE_SETTINGS_FIELD_KEYS: readonly ["leagueTitle", "description", "leagueStartDate", "leagueEndDate", "playoffCutoff", "playoffCutoffComp", "playoffCutoffRec", "requiresWaiver", "waiverTemplateId"];
6
5
  export type LeagueSettingsField = (typeof LEAGUE_SETTINGS_FIELD_KEYS)[number];
7
6
  export declare const leagueSettingsFieldSchema: z.ZodEnum<{
@@ -1 +1 @@
1
- {"version":3,"file":"leagues.d.ts","sourceRoot":"","sources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AC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAC5F,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;kBAMpC,CAAC;AACZ,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAE9F,eAAO,MAAM,uCAAuC;;;;;;;;kBAEzC,CAAC;AACZ,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,uCAAuC,CAC/C,CAAC;AAIF,eAAO,MAAM,wCAAwC;;;;;;;;;;kBAE1C,CAAC;AACZ,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,wCAAwC,CAChD,CAAC;AAEF,eAAO,MAAM,2BAA2B;;;;;;kBAE7B,CAAC;AACZ,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,eAAO,MAAM,4BAA4B;;;;;;;;;kBAO9B,CAAC;AACZ,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
@@ -1,12 +1,10 @@
1
1
  import { z } from 'zod';
2
- import { MAX_PLAYOFF_CUTOFF } from '../constants/business.js';
3
2
  import { LEAGUE_DESCRIPTION_INPUT_FORMAT, LEAGUE_TITLE_INPUT_FORMAT, } from '../input-formats/input-formats.js';
4
3
  import { calendarDateSchema, textFieldSchema, countSchema, epochMsSchema, leagueIdSchema, leagueModeSchema, leagueStatusSchema, leagueTypeSchema, } from '../doc-schemas/atoms.js';
5
- import { playoffCutoffCountSchema, refineLeagueSettings } from '../doc-schemas/sport-league.js';
4
+ import { playoffCutoffSchema, refineLeagueSettings } from '../doc-schemas/sport-league.js';
6
5
  import { waiverTemplateIdSchema } from '../doc-schemas/waiver-template.js';
7
6
  export const leagueTitleSchema = textFieldSchema(LEAGUE_TITLE_INPUT_FORMAT);
8
7
  export const leagueDescriptionSchema = textFieldSchema(LEAGUE_DESCRIPTION_INPUT_FORMAT);
9
- export const playoffCutoffSchema = playoffCutoffCountSchema.max(MAX_PLAYOFF_CUTOFF);
10
8
  export const LEAGUE_SETTINGS_FIELD_KEYS = [
11
9
  'leagueTitle',
12
10
  'description',
@@ -1 +1 @@
1
- {"version":3,"file":"leagues.js","sourceRoot":"","sources":["../../src/schemas/leagues.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EACL,+BAA+B,EAC/B,yBAAyB,GAC1B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,kBAAkB,EAClB,eAAe,EACf,WAAW,EACX,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,wBAAwB,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAChG,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAE3E,MAAM,CAAC,MAAM,iBAAiB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC5E,MAAM,CAAC,MAAM,uBAAuB,GAAG,eAAe,CAAC,+BAA+B,CAAC,CAAC;AACxF,MAAM,CAAC,MAAM,mBAAmB,GAAG,wBAAwB,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;AAEpF,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,aAAa;IACb,aAAa;IACb,iBAAiB;IACjB,eAAe;IACf,eAAe;IACf,mBAAmB;IACnB,kBAAkB;IAClB,gBAAgB;IAChB,kBAAkB;CACV,CAAC;AAEX,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC;AAE5E,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,eAAe;I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AAE,kBAAkB,EAAE,CAAC;KAChE,MAAM,EAAE,CAAC;AAKZ,MAAM,wBAAwB,GAAG,EAAE,iBAAiB,EAAE,aAAa,EAAE,SAAS,EAAE,aAAa,EAAE,CAAC;AAEhG,MAAM,CAAC,MAAM,wCAAwC,GAAG,CAAC;KACtD,MAAM,CAAC,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,EAAE,kBAAkB,EAAE,GAAG,wBAAwB,EAAE,CAAC;KAC7F,MAAM,EAAE,CAAC;AAKZ,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC;KACzC,MAAM,CAAC,EAAE,QAAQ,EAAE,cAAc,EAAE,OAAO,EAAE,gBAAgB,EAAE,CAAC;KAC/D,MAAM,EAAE,CAAC;AAEZ,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC;KAC1C,MAAM,CAAC;IACN,QAAQ,EAAE,cAAc;IACxB,UAAU,EAAE,gBAAgB;IAC5B,YAAY,EAAE,WAAW;IACzB,GAAG,wBAAwB;CAC5B,CAAC;KACD,MAAM,EAAE,CAAC","sourcesContent":["import { z } from 'zod';\nimport { MAX_PLAYOFF_CUTOFF } from '../constants/business.js';\nimport {\n LEAGUE_DESCRIPTION_INPUT_FORMAT,\n LEAGUE_TITLE_INPUT_FORMAT,\n} from '../input-formats/input-formats.js';\nimport {\n calendarDateSchema,\n textFieldSchema,\n countSchema,\n epochMsSchema,\n leagueIdSchema,\n leagueModeSchema,\n leagueStatusSchema,\n leagueTypeSchema,\n} from '../doc-schemas/atoms.js';\nimport { playoffCutoffCountSchema, refineLeagueSettings } from '../doc-schemas/sport-league.js';\nimport { waiverTemplateIdSchema } from '../doc-schemas/waiver-template.js';\n\nexport const leagueTitleSchema = textFieldSchema(LEAGUE_TITLE_INPUT_FORMAT);\nexport const leagueDescriptionSchema = textFieldSchema(LEAGUE_DESCRIPTION_INPUT_FORMAT);\nexport const playoffCutoffSchema = playoffCutoffCountSchema.max(MAX_PLAYOFF_CUTOFF);\n\nexport const LEAGUE_SETTINGS_FIELD_KEYS = [\n 'leagueTitle',\n 'description',\n 'leagueStartDate',\n 'leagueEndDate',\n 'playoffCutoff',\n 'playoffCutoffComp',\n 'playoffCutoffRec',\n 'requiresWaiver',\n 'waiverTemplateId',\n] as const;\nexport type LeagueSettingsField = (typeof LEAGUE_SETTINGS_FIELD_KEYS)[number];\nexport const leagueSettingsFieldSchema = z.enum(LEAGUE_SETTINGS_FIELD_KEYS);\n\nexport const PLAYOFF_CUTOFF_FIELD_KEYS = [\n 'playoffCutoff',\n 'playoffCutoffComp',\n 'playoffCutoffRec',\n] as const satisfies readonly LeagueSettingsField[];\nexport type PlayoffCutoffField = (typeof PLAYOFF_CUTOFF_FIELD_KEYS)[number];\n\n// Every cutoff is sent whether or not the league's mode shows it, so a later mode switch finds the\n// other mode's cutoffs already set.\nconst leagueSettingsShape = {\n leagueTitle: leagueTitleSchema,\n description: leagueDescriptionSchema,\n leagueStartDate: calendarDateSchema,\n leagueEndDate: calendarDateSchema,\n playoffCutoff: playoffCutoffSchema,\n playoffCutoffComp: playoffCutoffSchema,\n playoffCutoffRec: playoffCutoffSchema,\n requiresWaiver: z.boolean(),\n waiverTemplateId: waiverTemplateIdSchema.optional(),\n} satisfies Record<LeagueSettingsField, z.ZodType>;\n\nexport const AdminCreateSportLeagueInputSchema = z\n .object({ ...leagueSettingsShape, leagueType: leagueTypeSchema, leagueMode: leagueModeSchema })\n .strict()\n .superRefine(refineLeagueSettings);\nexport type AdminCreateSportLeagueInput = z.infer<typeof AdminCreateSportLeagueInputSchema>;\nexport const AdminCreateSportLeagueResultSchema = z.object({ leagueId: leagueIdSchema }).strict();\nexport type AdminCreateSportLeagueResult = z.infer<typeof AdminCreateSportLeagueResultSchema>;\n\nexport const AdminUpdateSportLeagueInputSchema = z\n .object({ leagueId: leagueIdSchema, expectedUpdatedAt: epochMsSchema, ...leagueSettingsShape })\n .strict()\n .superRefine(refineLeagueSettings);\nexport type AdminUpdateSportLeagueInput = z.infer<typeof AdminUpdateSportLeagueInputSchema>;\nexport const AdminUpdateSportLeagueResultSchema = z\n .object({\n leagueId: leagueIdSchema,\n changedFields: z.array(leagueSettingsFieldSchema),\n updatedAt: epochMsSchema,\n })\n .strict();\nexport type AdminUpdateSportLeagueResult = z.infer<typeof AdminUpdateSportLeagueResultSchema>;\n\nexport const AdminUpdateSportLeagueStatusInputSchema = z\n .object({ leagueId: leagueIdSchema, status: leagueStatusSchema })\n .strict();\nexport type AdminUpdateSportLeagueStatusInput = z.infer<\n typeof AdminUpdateSportLeagueStatusInputSchema\n>;\n\nconst leagueUpdatedAtMoveShape = { previousUpdatedAt: epochMsSchema, updatedAt: epochMsSchema };\n\nexport const AdminUpdateSportLeagueStatusResultSchema = z\n .object({ leagueId: leagueIdSchema, status: leagueStatusSchema, ...leagueUpdatedAtMoveShape })\n .strict();\nexport type AdminUpdateSportLeagueStatusResult = z.infer<\n typeof AdminUpdateSportLeagueStatusResultSchema\n>;\n\nexport const SwitchLeagueModeInputSchema = z\n .object({ leagueId: leagueIdSchema, newMode: leagueModeSchema })\n .strict();\nexport type SwitchLeagueModeInput = z.infer<typeof SwitchLeagueModeInputSchema>;\nexport const SwitchLeagueModeResultSchema = z\n .object({\n leagueId: leagueIdSchema,\n leagueMode: leagueModeSchema,\n teamsUpdated: countSchema,\n ...leagueUpdatedAtMoveShape,\n })\n .strict();\nexport type SwitchLeagueModeResult = z.infer<typeof SwitchLeagueModeResultSchema>;\n"]}
1
+ {"version":3,"file":"leagues.js","sourceRoot":"","sources":["../../src/schemas/leagues.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,+BAA+B,EAC/B,yBAAyB,GAC1B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,kBAAkB,EAClB,eAAe,EACf,WAAW,EACX,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,yBAAyB,CAA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sourcesContent":["import { z } from 'zod';\nimport {\n LEAGUE_DESCRIPTION_INPUT_FORMAT,\n LEAGUE_TITLE_INPUT_FORMAT,\n} from '../input-formats/input-formats.js';\nimport {\n calendarDateSchema,\n textFieldSchema,\n countSchema,\n epochMsSchema,\n leagueIdSchema,\n leagueModeSchema,\n leagueStatusSchema,\n leagueTypeSchema,\n} from '../doc-schemas/atoms.js';\nimport { playoffCutoffSchema, refineLeagueSettings } from '../doc-schemas/sport-league.js';\nimport { waiverTemplateIdSchema } from '../doc-schemas/waiver-template.js';\n\nexport const leagueTitleSchema = textFieldSchema(LEAGUE_TITLE_INPUT_FORMAT);\nexport const leagueDescriptionSchema = textFieldSchema(LEAGUE_DESCRIPTION_INPUT_FORMAT);\n\nexport const LEAGUE_SETTINGS_FIELD_KEYS = [\n 'leagueTitle',\n 'description',\n 'leagueStartDate',\n 'leagueEndDate',\n 'playoffCutoff',\n 'playoffCutoffComp',\n 'playoffCutoffRec',\n 'requiresWaiver',\n 'waiverTemplateId',\n] as const;\nexport type LeagueSettingsField = (typeof LEAGUE_SETTINGS_FIELD_KEYS)[number];\nexport const leagueSettingsFieldSchema = z.enum(LEAGUE_SETTINGS_FIELD_KEYS);\n\nexport const PLAYOFF_CUTOFF_FIELD_KEYS = [\n 'playoffCutoff',\n 'playoffCutoffComp',\n 'playoffCutoffRec',\n] as const satisfies readonly LeagueSettingsField[];\nexport type PlayoffCutoffField = (typeof PLAYOFF_CUTOFF_FIELD_KEYS)[number];\n\n// Every cutoff is sent whether or not the league's mode shows it, so a later mode switch finds the\n// other mode's cutoffs already set.\nconst leagueSettingsShape = {\n leagueTitle: leagueTitleSchema,\n description: leagueDescriptionSchema,\n leagueStartDate: calendarDateSchema,\n leagueEndDate: calendarDateSchema,\n playoffCutoff: playoffCutoffSchema,\n playoffCutoffComp: playoffCutoffSchema,\n playoffCutoffRec: playoffCutoffSchema,\n requiresWaiver: z.boolean(),\n waiverTemplateId: waiverTemplateIdSchema.optional(),\n} satisfies Record<LeagueSettingsField, z.ZodType>;\n\nexport const AdminCreateSportLeagueInputSchema = z\n .object({ ...leagueSettingsShape, leagueType: leagueTypeSchema, leagueMode: leagueModeSchema })\n .strict()\n .superRefine(refineLeagueSettings);\nexport type AdminCreateSportLeagueInput = z.infer<typeof AdminCreateSportLeagueInputSchema>;\nexport const AdminCreateSportLeagueResultSchema = z.object({ leagueId: leagueIdSchema }).strict();\nexport type AdminCreateSportLeagueResult = z.infer<typeof AdminCreateSportLeagueResultSchema>;\n\nexport const AdminUpdateSportLeagueInputSchema = z\n .object({ leagueId: leagueIdSchema, expectedUpdatedAt: epochMsSchema, ...leagueSettingsShape })\n .strict()\n .superRefine(refineLeagueSettings);\nexport type AdminUpdateSportLeagueInput = z.infer<typeof AdminUpdateSportLeagueInputSchema>;\nexport const AdminUpdateSportLeagueResultSchema = z\n .object({\n leagueId: leagueIdSchema,\n changedFields: z.array(leagueSettingsFieldSchema),\n updatedAt: epochMsSchema,\n })\n .strict();\nexport type AdminUpdateSportLeagueResult = z.infer<typeof AdminUpdateSportLeagueResultSchema>;\n\nexport const AdminUpdateSportLeagueStatusInputSchema = z\n .object({ leagueId: leagueIdSchema, status: leagueStatusSchema })\n .strict();\nexport type AdminUpdateSportLeagueStatusInput = z.infer<\n typeof AdminUpdateSportLeagueStatusInputSchema\n>;\n\nconst leagueUpdatedAtMoveShape = { previousUpdatedAt: epochMsSchema, updatedAt: epochMsSchema };\n\nexport const AdminUpdateSportLeagueStatusResultSchema = z\n .object({ leagueId: leagueIdSchema, status: leagueStatusSchema, ...leagueUpdatedAtMoveShape })\n .strict();\nexport type AdminUpdateSportLeagueStatusResult = z.infer<\n typeof AdminUpdateSportLeagueStatusResultSchema\n>;\n\nexport const SwitchLeagueModeInputSchema = z\n .object({ leagueId: leagueIdSchema, newMode: leagueModeSchema })\n .strict();\nexport type SwitchLeagueModeInput = z.infer<typeof SwitchLeagueModeInputSchema>;\nexport const SwitchLeagueModeResultSchema = z\n .object({\n leagueId: leagueIdSchema,\n leagueMode: leagueModeSchema,\n teamsUpdated: countSchema,\n ...leagueUpdatedAtMoveShape,\n })\n .strict();\nexport type SwitchLeagueModeResult = z.infer<typeof SwitchLeagueModeResultSchema>;\n"]}
@@ -1,5 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import type { ExecutableMigrationStep } from '../migration-console/manifest.js';
3
+ export declare const MAX_RECORDED_OPERATION_IDS = 10;
3
4
  export declare const RunMigrationActionInputSchema: z.ZodObject<{
4
5
  operationId: z.ZodString;
5
6
  reason: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
@@ -1 +1 @@
1
- {"version":3,"file":"migration-console.d.ts","sourceRoot":"","sources":["../../src/schemas/migration-console.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAUhF,eAAO,MAAM,6BAA6B;;;;;;;kBAS/B,CAAC;AACZ,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAGpF,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,IAAI,CAAC,uBAAuB,EAAE,aAAa,CAAC,eAEzF;AAED,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAiBjC,CAAC;AACZ,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAExF,eAAO,MAAM,8BAA8B,iCAAwB,CAAC;AACpE,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF,eAAO,MAAM,wBAAwB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O,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAMjC,CAAC;AACZ,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
  import { MigrationActionRunSchema, MigrationConsoleSchema, MigrationFindingSchema, MigrationRunRecordSchema, migrationActionIdSchema, migrationEvidenceSchema, migrationOperationIdSchema, } from '../doc-schemas/migration-console.js';
3
3
  import { MAX_MIGRATION_PAGE_SIZE, MIGRATION_RECORD_OUTCOME_KEYS, } from '../migration-console/run-state.js';
4
4
  import { countSchema, epochMsSchema, repairReasonSchema, statsOperationIdSchema, } from '../doc-schemas/atoms.js';
5
- const MAX_RECORDED_OPERATION_IDS = 10;
5
+ export const MAX_RECORDED_OPERATION_IDS = 10;
6
6
  export const RunMigrationActionInputSchema = z
7
7
  .object({
8
8
  operationId: migrationOperationIdSchema,
@@ -1 +1 @@
1
- {"version":3,"file":"migration-console.js","sourceRoot":"","sources":["../../src/schemas/migration-console.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,wBAAwB,EACxB,sBAAsB,EACtB,sBAAsB,EACtB,wBAAwB,EACxB,uBAAuB,EACvB,uBAAuB,EACvB,0BAA0B,GAC3B,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,uBAAuB,EACvB,6BAA6B,GAC9B,MAAM,mCAAmC,CAAC;AAE3C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C;AAGZ,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;AAGnG,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC;KAC7C,MAAM,CAAC;IACN,QAAQ,EAAE,uBAAuB;IACjC,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,6BAA6B,CAAC;IAC9C,MAAM,EAAE,wBAAwB;CACjC,CAAC;KACD,MAAM,EAAE,CAAC","sourcesContent":["import { z } from 'zod';\nimport {\n MigrationActionRunSchema,\n MigrationConsoleSchema,\n MigrationFindingSchema,\n MigrationRunRecordSchema,\n migrationActionIdSchema,\n migrationEvidenceSchema,\n migrationOperationIdSchema,\n} from '../doc-schemas/migration-console.js';\nimport {\n MAX_MIGRATION_PAGE_SIZE,\n MIGRATION_RECORD_OUTCOME_KEYS,\n} from '../migration-console/run-state.js';\nimport type { ExecutableMigrationStep } from '../migration-console/manifest.js';\nimport {\n countSchema,\n epochMsSchema,\n repairReasonSchema,\n statsOperationIdSchema,\n} from '../doc-schemas/atoms.js';\n\nconst MAX_RECORDED_OPERATION_IDS = 10;\n\nexport const RunMigrationActionInputSchema = z\n .object({\n operationId: migrationOperationIdSchema,\n reason: repairReasonSchema,\n dryRun: z.boolean(),\n pageSize: z.number().int().min(1).max(MAX_MIGRATION_PAGE_SIZE),\n expectEmptySource: z.boolean().optional(),\n acknowledgeUnexaminedSources: z.boolean().optional(),\n })\n .strict();\nexport type RunMigrationActionInput = z.infer<typeof RunMigrationActionInputSchema>;\n\n// Keeps the wire bound of every action and adds the chosen action's own ceiling.\nexport function migrationPageSizeSchema(step: Pick<ExecutableMigrationStep, 'maxPageSize'>) {\n return RunMigrationActionInputSchema.shape.pageSize.max(step.maxPageSize);\n}\n\nexport const MigrationActionPageResultSchema = z\n .object({\n actionId: migrationActionIdSchema,\n operationId: migrationOperationIdSchema,\n dryRun: z.boolean(),\n read: countSchema,\n written: countSchema,\n skipped: countSchema,\n checked: countSchema,\n missing: countSchema,\n mismatched: countSchema,\n details: z.record(z.string().min(1), countSchema),\n findings: z.array(MigrationFindingSchema),\n nextResumeAfter: z.string().min(1).nullable(),\n complete: z.boolean(),\n run: MigrationRunRecordSchema,\n })\n .strict();\nexport type MigrationActionPageResult = z.infer<typeof MigrationActionPageResultSchema>;\n\nexport const GetMigrationConsoleInputSchema = z.object({}).strict();\nexport type GetMigrationConsoleInput = z.infer<typeof GetMigrationConsoleInputSchema>;\n\nexport const MigrationStepStateSchema = z\n .object({\n actionId: migrationActionIdSchema,\n unlocked: z.boolean(),\n satisfied: z.boolean(),\n waitingOn: z.array(migrationActionIdSchema),\n previewCurrent: z.boolean(),\n record: MigrationActionRunSchema.nullable(),\n })\n .strict();\nexport type MigrationStepState = z.infer<typeof MigrationStepStateSchema>;\n\nexport const GetMigrationConsoleResultSchema = z\n .object({\n console: MigrationConsoleSchema,\n steps: z.array(MigrationStepStateSchema),\n readAt: epochMsSchema,\n })\n .strict();\nexport type GetMigrationConsoleResult = z.infer<typeof GetMigrationConsoleResultSchema>;\n\nexport const RecordMigrationControlRunInputSchema = z\n .object({\n actionId: migrationActionIdSchema,\n operationIds: z.array(statsOperationIdSchema).max(MAX_RECORDED_OPERATION_IDS),\n reason: repairReasonSchema,\n })\n .strict();\nexport type RecordMigrationControlRunInput = z.infer<typeof RecordMigrationControlRunInputSchema>;\n\nexport const RecordMigrationCheckpointInputSchema = z\n .object({\n actionId: migrationActionIdSchema,\n evidence: migrationEvidenceSchema,\n })\n .strict();\nexport type RecordMigrationCheckpointInput = z.infer<typeof RecordMigrationCheckpointInputSchema>;\n\nexport const RecordMigrationCutoverInputSchema = z.object({ reason: repairReasonSchema }).strict();\nexport type RecordMigrationCutoverInput = z.infer<typeof RecordMigrationCutoverInputSchema>;\n\nexport const RecordMigrationStepResultSchema = z\n .object({\n actionId: migrationActionIdSchema,\n outcome: z.enum(MIGRATION_RECORD_OUTCOME_KEYS),\n record: MigrationActionRunSchema,\n })\n .strict();\nexport type RecordMigrationStepResult = z.infer<typeof RecordMigrationStepResultSchema>;\n"]}
1
+ {"version":3,"file":"migration-console.js","sourceRoot":"","sources":["../../src/schemas/migration-console.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,wBAAwB,EACxB,sBAAsB,EACtB,sBAAsB,EACtB,wBAAwB,EACxB,uBAAuB,EACvB,uBAAuB,EACvB,0BAA0B,GAC3B,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,uBAAuB,EACvB,6BAA6B,GAC9B,MAAM,mCAAmC,CAAC;AAE3C,OAAO,EACL,WAAW,EACX,aAAa,EACb,kBAAkB,EAClB,sBAAsB,GACvB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,CAAC,MAAM,0BAA0B,GAAG,EAAE,CAAC;AAE7C,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC;KAC3C,MAAM,CAAC;IACN,WAAW,EAAE,0BAA0B;IACvC,MAAM,EAAE,kBAAkB;IAC1B,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;IACnB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,uBAAuB,CAAC;IAC9D,iBAAiB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACzC,4BAA4B,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACrD,CAAC;KACD,MAAM,EAAE,CAAC;AAGZ,iFAAiF;AACjF,MAAM,UAAU,uBAAuB,CAAC,IAAkD;IACxF,OAAO,6BAA6B,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;AAC5E,CAAC;AAED,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC;KAC7C,MAAM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AM,EAAE,aAAa;CACtB,CAAC;KACD,MAAM,EAAE,CAAC;AAGZ,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAC;KAClD,MAAM,CAAC;IACN,QAAQ,EAAE,uBAAuB;IACjC,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC,GAAG,CAAC,0BAA0B,CAAC;IAC7E,MAAM,EAAE,kBAAkB;CAC3B,CAAC;KACD,MAAM,EAAE,CAAC;AAGZ,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAC;KAClD,MAAM,CAAC;IACN,QAAQ,EAAE,uBAAuB;IACjC,QAAQ,EAAE,uBAAuB;CAClC,CAAC;KACD,MAAM,EAAE,CAAC;AAGZ,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;AAGnG,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC;KAC7C,MAAM,CAAC;IACN,QAAQ,EAAE,uBAAuB;IACjC,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,6BAA6B,CAAC;IAC9C,MAAM,EAAE,wBAAwB;CACjC,CAAC;KACD,MAAM,EAAE,CAAC","sourcesContent":["import { z } from 'zod';\nimport {\n MigrationActionRunSchema,\n MigrationConsoleSchema,\n MigrationFindingSchema,\n MigrationRunRecordSchema,\n migrationActionIdSchema,\n migrationEvidenceSchema,\n migrationOperationIdSchema,\n} from '../doc-schemas/migration-console.js';\nimport {\n MAX_MIGRATION_PAGE_SIZE,\n MIGRATION_RECORD_OUTCOME_KEYS,\n} from '../migration-console/run-state.js';\nimport type { ExecutableMigrationStep } from '../migration-console/manifest.js';\nimport {\n countSchema,\n epochMsSchema,\n repairReasonSchema,\n statsOperationIdSchema,\n} from '../doc-schemas/atoms.js';\n\nexport const MAX_RECORDED_OPERATION_IDS = 10;\n\nexport const RunMigrationActionInputSchema = z\n .object({\n operationId: migrationOperationIdSchema,\n reason: repairReasonSchema,\n dryRun: z.boolean(),\n pageSize: z.number().int().min(1).max(MAX_MIGRATION_PAGE_SIZE),\n expectEmptySource: z.boolean().optional(),\n acknowledgeUnexaminedSources: z.boolean().optional(),\n })\n .strict();\nexport type RunMigrationActionInput = z.infer<typeof RunMigrationActionInputSchema>;\n\n// Keeps the wire bound of every action and adds the chosen action's own ceiling.\nexport function migrationPageSizeSchema(step: Pick<ExecutableMigrationStep, 'maxPageSize'>) {\n return RunMigrationActionInputSchema.shape.pageSize.max(step.maxPageSize);\n}\n\nexport const MigrationActionPageResultSchema = z\n .object({\n actionId: migrationActionIdSchema,\n operationId: migrationOperationIdSchema,\n dryRun: z.boolean(),\n read: countSchema,\n written: countSchema,\n skipped: countSchema,\n checked: countSchema,\n missing: countSchema,\n mismatched: countSchema,\n details: z.record(z.string().min(1), countSchema),\n findings: z.array(MigrationFindingSchema),\n nextResumeAfter: z.string().min(1).nullable(),\n complete: z.boolean(),\n run: MigrationRunRecordSchema,\n })\n .strict();\nexport type MigrationActionPageResult = z.infer<typeof MigrationActionPageResultSchema>;\n\nexport const GetMigrationConsoleInputSchema = z.object({}).strict();\nexport type GetMigrationConsoleInput = z.infer<typeof GetMigrationConsoleInputSchema>;\n\nexport const MigrationStepStateSchema = z\n .object({\n actionId: migrationActionIdSchema,\n unlocked: z.boolean(),\n satisfied: z.boolean(),\n waitingOn: z.array(migrationActionIdSchema),\n previewCurrent: z.boolean(),\n record: MigrationActionRunSchema.nullable(),\n })\n .strict();\nexport type MigrationStepState = z.infer<typeof MigrationStepStateSchema>;\n\nexport const GetMigrationConsoleResultSchema = z\n .object({\n console: MigrationConsoleSchema,\n steps: z.array(MigrationStepStateSchema),\n readAt: epochMsSchema,\n })\n .strict();\nexport type GetMigrationConsoleResult = z.infer<typeof GetMigrationConsoleResultSchema>;\n\nexport const RecordMigrationControlRunInputSchema = z\n .object({\n actionId: migrationActionIdSchema,\n operationIds: z.array(statsOperationIdSchema).max(MAX_RECORDED_OPERATION_IDS),\n reason: repairReasonSchema,\n })\n .strict();\nexport type RecordMigrationControlRunInput = z.infer<typeof RecordMigrationControlRunInputSchema>;\n\nexport const RecordMigrationCheckpointInputSchema = z\n .object({\n actionId: migrationActionIdSchema,\n evidence: migrationEvidenceSchema,\n })\n .strict();\nexport type RecordMigrationCheckpointInput = z.infer<typeof RecordMigrationCheckpointInputSchema>;\n\nexport const RecordMigrationCutoverInputSchema = z.object({ reason: repairReasonSchema }).strict();\nexport type RecordMigrationCutoverInput = z.infer<typeof RecordMigrationCutoverInputSchema>;\n\nexport const RecordMigrationStepResultSchema = z\n .object({\n actionId: migrationActionIdSchema,\n outcome: z.enum(MIGRATION_RECORD_OUTCOME_KEYS),\n record: MigrationActionRunSchema,\n })\n .strict();\nexport type RecordMigrationStepResult = z.infer<typeof RecordMigrationStepResultSchema>;\n"]}
@@ -6,7 +6,7 @@ import { countSchema, epochMsSchema, gameIdSchema, leagueIdSchema, scheduleWeekI
6
6
  import { gameLocationIdSchema } from '../doc-schemas/game-location.js';
7
7
  import { isByeTeamId } from '../ids/minted-ids.js';
8
8
  import { SCHEDULE_WEEK_FIELD_KEYS, SPORT_GAME_SCHEDULE_FIELD_KEYS } from '../types/schedules.js';
9
- import { gameLocationSubLocationSchema } from './game-locations.js';
9
+ import { gameLocationSubLocationSchema } from '../doc-schemas/game-location.js';
10
10
  export const scheduleWeekTitleSchema = textFieldSchema(SCHEDULE_WEEK_TITLE_INPUT_FORMAT);
11
11
  export const scheduleGameTeamsSchema = z
12
12
  .tuple([teamIdSchema, teamIdSchema])