@ttt-productions/q-core 0.1.49 → 0.1.51

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 (173) hide show
  1. package/dist/constants/business.d.ts +3 -4
  2. package/dist/constants/business.d.ts.map +1 -1
  3. package/dist/constants/business.js +3 -4
  4. package/dist/constants/business.js.map +1 -1
  5. package/dist/constants/sports.d.ts +0 -13
  6. package/dist/constants/sports.d.ts.map +1 -1
  7. package/dist/constants/sports.js +0 -13
  8. package/dist/constants/sports.js.map +1 -1
  9. package/dist/constants/text-fields.d.ts +0 -6
  10. package/dist/constants/text-fields.d.ts.map +1 -1
  11. package/dist/constants/text-fields.js +0 -6
  12. package/dist/constants/text-fields.js.map +1 -1
  13. package/dist/doc-schemas/admin-notifications.d.ts +1 -1
  14. package/dist/doc-schemas/atoms.d.ts.map +1 -1
  15. package/dist/doc-schemas/atoms.js +1 -1
  16. package/dist/doc-schemas/atoms.js.map +1 -1
  17. package/dist/doc-schemas/audit-event.d.ts +4 -8
  18. package/dist/doc-schemas/audit-event.d.ts.map +1 -1
  19. package/dist/doc-schemas/game-stat-history.d.ts +0 -1
  20. package/dist/doc-schemas/game-stat-history.d.ts.map +1 -1
  21. package/dist/doc-schemas/game-stats.d.ts +0 -2
  22. package/dist/doc-schemas/game-stats.d.ts.map +1 -1
  23. package/dist/doc-schemas/game-stats.js +1 -2
  24. package/dist/doc-schemas/game-stats.js.map +1 -1
  25. package/dist/doc-schemas/index.d.ts +2 -2
  26. package/dist/doc-schemas/index.d.ts.map +1 -1
  27. package/dist/doc-schemas/index.js +2 -2
  28. package/dist/doc-schemas/index.js.map +1 -1
  29. package/dist/doc-schemas/migration-console.d.ts +6 -20
  30. package/dist/doc-schemas/migration-console.d.ts.map +1 -1
  31. package/dist/doc-schemas/migration-console.js +2 -7
  32. package/dist/doc-schemas/migration-console.js.map +1 -1
  33. package/dist/doc-schemas/pending-media.d.ts +35 -55
  34. package/dist/doc-schemas/pending-media.d.ts.map +1 -1
  35. package/dist/doc-schemas/registry.d.ts +49 -229
  36. package/dist/doc-schemas/registry.d.ts.map +1 -1
  37. package/dist/doc-schemas/registry.js +3 -7
  38. package/dist/doc-schemas/registry.js.map +1 -1
  39. package/dist/doc-schemas/stats-changes.d.ts +21 -0
  40. package/dist/doc-schemas/stats-changes.d.ts.map +1 -0
  41. package/dist/doc-schemas/stats-changes.js +19 -0
  42. package/dist/doc-schemas/stats-changes.js.map +1 -0
  43. package/dist/doc-schemas/stats-job.d.ts +36 -0
  44. package/dist/doc-schemas/stats-job.d.ts.map +1 -0
  45. package/dist/doc-schemas/stats-job.js +26 -0
  46. package/dist/doc-schemas/stats-job.js.map +1 -0
  47. package/dist/doc-schemas/system.d.ts +1 -1
  48. package/dist/doc-schemas/system.d.ts.map +1 -1
  49. package/dist/doc-schemas/system.js +2 -2
  50. package/dist/doc-schemas/system.js.map +1 -1
  51. package/dist/domain-events/domain-events.d.ts +16 -24
  52. package/dist/domain-events/domain-events.d.ts.map +1 -1
  53. package/dist/domain-events/domain-events.js +11 -11
  54. package/dist/domain-events/domain-events.js.map +1 -1
  55. package/dist/ids/index.d.ts +2 -1
  56. package/dist/ids/index.d.ts.map +1 -1
  57. package/dist/ids/index.js +2 -1
  58. package/dist/ids/index.js.map +1 -1
  59. package/dist/ids/notification-ids.d.ts +2 -4
  60. package/dist/ids/notification-ids.d.ts.map +1 -1
  61. package/dist/ids/notification-ids.js +3 -12
  62. package/dist/ids/notification-ids.js.map +1 -1
  63. package/dist/ids/request-job-ids.d.ts +7 -0
  64. package/dist/ids/request-job-ids.d.ts.map +1 -0
  65. package/dist/ids/request-job-ids.js +18 -0
  66. package/dist/ids/request-job-ids.js.map +1 -0
  67. package/dist/ids/stats-ids.d.ts +7 -0
  68. package/dist/ids/stats-ids.d.ts.map +1 -0
  69. package/dist/ids/stats-ids.js +17 -0
  70. package/dist/ids/stats-ids.js.map +1 -0
  71. package/dist/migration-console/action-ids.d.ts +1 -3
  72. package/dist/migration-console/action-ids.d.ts.map +1 -1
  73. package/dist/migration-console/action-ids.js +1 -3
  74. package/dist/migration-console/action-ids.js.map +1 -1
  75. package/dist/migration-console/manifest.d.ts +1 -2
  76. package/dist/migration-console/manifest.d.ts.map +1 -1
  77. package/dist/migration-console/manifest.js +12 -43
  78. package/dist/migration-console/manifest.js.map +1 -1
  79. package/dist/paths/collection-groups.d.ts +0 -1
  80. package/dist/paths/collection-groups.d.ts.map +1 -1
  81. package/dist/paths/collection-groups.js +1 -2
  82. package/dist/paths/collection-groups.js.map +1 -1
  83. package/dist/paths/collection-refs.d.ts +1 -2
  84. package/dist/paths/collection-refs.d.ts.map +1 -1
  85. package/dist/paths/collection-refs.js +1 -2
  86. package/dist/paths/collection-refs.js.map +1 -1
  87. package/dist/paths/collections.d.ts +1 -5
  88. package/dist/paths/collections.d.ts.map +1 -1
  89. package/dist/paths/collections.js +1 -5
  90. package/dist/paths/collections.js.map +1 -1
  91. package/dist/paths/path-builders.d.ts +1 -4
  92. package/dist/paths/path-builders.d.ts.map +1 -1
  93. package/dist/paths/path-builders.js +2 -17
  94. package/dist/paths/path-builders.js.map +1 -1
  95. package/dist/schemas/admin-notifications.d.ts +1 -1
  96. package/dist/schemas/awards.d.ts +5 -75
  97. package/dist/schemas/awards.d.ts.map +1 -1
  98. package/dist/schemas/awards.js +6 -30
  99. package/dist/schemas/awards.js.map +1 -1
  100. package/dist/schemas/dead-letters.d.ts +7 -1
  101. package/dist/schemas/dead-letters.d.ts.map +1 -1
  102. package/dist/schemas/dead-letters.js +2 -1
  103. package/dist/schemas/dead-letters.js.map +1 -1
  104. package/dist/schemas/migration-console.d.ts +16 -57
  105. package/dist/schemas/migration-console.d.ts.map +1 -1
  106. package/dist/schemas/migration-console.js +3 -10
  107. package/dist/schemas/migration-console.js.map +1 -1
  108. package/dist/schemas/pictures.d.ts +21 -33
  109. package/dist/schemas/pictures.d.ts.map +1 -1
  110. package/dist/schemas/scoring.d.ts +6 -12
  111. package/dist/schemas/scoring.d.ts.map +1 -1
  112. package/dist/schemas/scoring.js +9 -5
  113. package/dist/schemas/scoring.js.map +1 -1
  114. package/dist/schemas/stats.d.ts +66 -101
  115. package/dist/schemas/stats.d.ts.map +1 -1
  116. package/dist/schemas/stats.js +39 -72
  117. package/dist/schemas/stats.js.map +1 -1
  118. package/dist/sports/basketball-scoring.d.ts.map +1 -1
  119. package/dist/sports/basketball-scoring.js +16 -7
  120. package/dist/sports/basketball-scoring.js.map +1 -1
  121. package/dist/sports/bulk-entry.d.ts +7 -2
  122. package/dist/sports/bulk-entry.d.ts.map +1 -1
  123. package/dist/sports/bulk-entry.js.map +1 -1
  124. package/dist/sports/football-scoring.d.ts.map +1 -1
  125. package/dist/sports/football-scoring.js +13 -10
  126. package/dist/sports/football-scoring.js.map +1 -1
  127. package/dist/sports/replay.d.ts.map +1 -1
  128. package/dist/sports/replay.js +16 -1
  129. package/dist/sports/replay.js.map +1 -1
  130. package/dist/sports/scoring.d.ts +18 -2
  131. package/dist/sports/scoring.d.ts.map +1 -1
  132. package/dist/sports/scoring.js.map +1 -1
  133. package/dist/sports/store-driver.d.ts +2 -1
  134. package/dist/sports/store-driver.d.ts.map +1 -1
  135. package/dist/sports/store-driver.js +30 -15
  136. package/dist/sports/store-driver.js.map +1 -1
  137. package/dist/types/audit.d.ts +1 -1
  138. package/dist/types/audit.d.ts.map +1 -1
  139. package/dist/types/audit.js +1 -3
  140. package/dist/types/audit.js.map +1 -1
  141. package/dist/types/schedules.d.ts +1 -1
  142. package/dist/types/schedules.d.ts.map +1 -1
  143. package/dist/types/schedules.js +1 -2
  144. package/dist/types/schedules.js.map +1 -1
  145. package/dist/types/stats.d.ts +13 -13
  146. package/dist/types/stats.d.ts.map +1 -1
  147. package/dist/types/stats.js +13 -33
  148. package/dist/types/stats.js.map +1 -1
  149. package/dist/types/unions.d.ts +0 -6
  150. package/dist/types/unions.d.ts.map +1 -1
  151. package/dist/types/unions.js +0 -3
  152. package/dist/types/unions.js.map +1 -1
  153. package/dist/utils/index.d.ts +0 -1
  154. package/dist/utils/index.d.ts.map +1 -1
  155. package/dist/utils/index.js +0 -1
  156. package/dist/utils/index.js.map +1 -1
  157. package/package.json +1 -1
  158. package/dist/doc-schemas/award-group-grant.d.ts +0 -54
  159. package/dist/doc-schemas/award-group-grant.d.ts.map +0 -1
  160. package/dist/doc-schemas/award-group-grant.js +0 -55
  161. package/dist/doc-schemas/award-group-grant.js.map +0 -1
  162. package/dist/doc-schemas/stats-operation.d.ts +0 -348
  163. package/dist/doc-schemas/stats-operation.d.ts.map +0 -1
  164. package/dist/doc-schemas/stats-operation.js +0 -92
  165. package/dist/doc-schemas/stats-operation.js.map +0 -1
  166. package/dist/ids/award-grant-ids.d.ts +0 -9
  167. package/dist/ids/award-grant-ids.d.ts.map +0 -1
  168. package/dist/ids/award-grant-ids.js +0 -10
  169. package/dist/ids/award-grant-ids.js.map +0 -1
  170. package/dist/utils/stats-operation-request.d.ts +0 -20
  171. package/dist/utils/stats-operation-request.d.ts.map +0 -1
  172. package/dist/utils/stats-operation-request.js +0 -10
  173. package/dist/utils/stats-operation-request.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"action-ids.js","sourceRoot":"","sources":["../../src/migration-console/action-ids.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,gBAAgB,EAAE,mBAAmB;IACrC,mBAAmB,EAAE,sBAAsB;IAC3C,0BAA0B,EAAE,6BAA6B;IACzD,kBAAkB,EAAE,qBAAqB;IACzC,aAAa,EAAE,gBAAgB;IAC/B,kBAAkB,EAAE,qBAAqB;IACzC,qBAAqB,EAAE,wBAAwB;IAC/C,0BAA0B,EAAE,6BAA6B;IACzD,iBAAiB,EAAE,oBAAoB;IACvC,eAAe,EAAE,kBAAkB;IACnC,6BAA6B,EAAE,gCAAgC;IAC/D,aAAa,EAAE,gBAAgB;IAE/B,8FAA8F;IAC9F,+EAA+E;IAC/E,qBAAqB,EAAE,wBA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AAe,EAAE,kBAAkB;IACnC,uBAAuB,EAAE,0BAA0B;IACnD,iBAAiB,EAAE,oBAAoB;IACvC,mBAAmB,EAAE,sBAAsB;IAC3C,oBAAoB,EAAE,uBAAuB;IAE7C,mBAAmB,EAAE,sBAAsB;IAC3C,qBAAqB,EAAE,wBAAwB;IAC/C,eAAe,EAAE,kBAAkB;IAEnC,oBAAoB,EAAE,uBAAuB;IAC7C,sBAAsB,EAAE,yBAAyB;IAEjD,iBAAiB,EAAE,oBAAoB;IACvC,mBAAmB,EAAE,sBAAsB;IAE3C,kBAAkB,EAAE,qBAAqB;IAEzC,2BAA2B,EAAE,8BAA8B;IAE3D,gGAAgG;IAChG,6CAA6C;IAC7C,0BAA0B,EAAE,6BAA6B;IACzD,sBAAsB,EAAE,yBAAyB;IACjD,sBAAsB,EAAE,yBAAyB;IACjD,iCAAiC,EAAE,oCAAoC;IACvE,gBAAgB,EAAE,mBAAmB;IAErC,kBAAkB,EAAE,qBAAqB;IACzC,oBAAoB,EAAE,uBAAuB;IAC7C,sBAAsB,EAAE,yBAAyB;IACjD,aAAa,EAAE,gBAAgB;IAC/B,qBAAqB,EAAE,wBAAwB;IAC/C,kBAAkB,EAAE,qBAAqB;IACzC,yBAAyB,EAAE,4BAA4B;IAEvD,iBAAiB,EAAE,oBAAoB;IAEvC,2BAA2B,EAAE,8BAA8B;IAC3D,mCAAmC,EAAE,sCAAsC;IAC3E,kCAAkC,EAAE,qCAAqC;IACzE,sCAAsC,EAAE,yCAAyC;IACjF,2CAA2C,EAAE,8CAA8C;CACnF,CAAC;AAIX,MAAM,CAAC,MAAM,wBAAwB,GAAG,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAGzE,CAAC","sourcesContent":["export const MIGRATION_ACTION_IDS = {\n copyUserProfiles: 'copy.userProfiles',\n copyHistoricalStats: 'copy.historicalStats',\n deriveReservedDisplayNames: 'derive.reservedDisplayNames',\n migratePublicUsers: 'migrate.publicUsers',\n copyAdminList: 'copy.adminList',\n verifyUserProfiles: 'verify.userProfiles',\n verifyHistoricalStats: 'verify.historicalStats',\n verifyReservedDisplayNames: 'verify.reservedDisplayNames',\n verifyPublicUsers: 'verify.publicUsers',\n verifyAdminList: 'verify.adminList',\n cleanupOrphanGhostPublicUsers: 'cleanup.orphanGhostPublicUsers',\n deleteV1Users: 'delete.v1Users',\n\n // Required by the ghost cleanup, whose probes read `teamMemberships` and `gameRosterPlayers`:\n // until those copies are verified complete, every ghost reads as unreferenced.\n verifyTeamMemberships: 'verify.teamMemberships',\n verifyGameRosterPlayers: 'verify.gameRosterPlayers',\n\n copyLeagueTeams: 'copy.leagueTeams',\n verifyLeagueTeams: 'verify.leagueTeams',\n deleteV1Teams: 'delete.v1Teams',\n copyTeamMemberships: 'copy.teamMemberships',\n deleteV1TeamMembers: 'delete.v1TeamMembers',\n copyTeamInvitations: 'copy.teamInvitations',\n verifyTeamInvitations: 'verify.teamInvitations',\n deleteV1TeamInvites: 'delete.v1TeamInvites',\n copyTeamJoinRequests: 'copy.teamJoinRequests',\n verifyTeamJoinRequests: 'verify.teamJoinRequests',\n deleteV1JoinRequests: 'delete.v1JoinRequests',\n copyLeagueFreeAgents: 'copy.leagueFreeAgents',\n verifyLeagueFreeAgents: 'verify.leagueFreeAgents',\n deleteV1FreeAgentSignups: 'delete.v1FreeAgentSignups',\n copyGameRosterPlayers: 'copy.gameRosterPlayers',\n deleteV1GameRosters: 'delete.v1GameRosters',\n // It removes the stale entries a copied roster holds, so it waits for the memberships and the\n // game stats — which pin an entry holding a recorded stat — to be copied and verified.\n reconcileOpenGameRosters: 'reconcile.openGameRosters',\n verifyGameStats: 'verify.gameStats',\n verifyLeaguePlayerStats: 'verify.leaguePlayerStats',\n\n copySportGames: 'copy.sportGames',\n resolveUnrosteredStatLine: 'resolve.unrosteredStatLine',\n verifySportGames: 'verify.sportGames',\n deleteV1LeagueGames: 'delete.v1LeagueGames',\n\n copySignedWaivers: 'copy.signedWaivers',\n verifySignedWaivers: 'verify.signedWaivers',\n verifySignatureFilesResolvable: 'verify.signatureFilesResolvable',\n revokeV1SignatureDownloadTokens: 'revoke.v1SignatureDownloadTokens',\n deleteV1WaiverSignatures: 'delete.v1WaiverSignatures',\n\n copyHardwareLoanContracts: 'copy.hardwareLoanContracts',\n verifyHardwareLoanContracts: 'verify.hardwareLoanContracts',\n deleteV1HardwareContracts: 'delete.v1HardwareContracts',\n\n copySportLeagues: 'copy.sportLeagues',\n verifySportLeagues: 'verify.sportLeagues',\n deleteV1Leagues: 'delete.v1Leagues',\n deleteV1LeagueChats: 'delete.v1LeagueChats',\n\n carryV1Pictures: 'carry.v1Pictures',\n verifyV1Pictures: 'verify.v1Pictures',\n\n copyAppConfig: 'copy.appConfig',\n copyLandingPageConfig: 'copy.landingPageConfig',\n copyStatsBeacon: 'copy.statsBeacon',\n verifyAppConfig: 'verify.appConfig',\n verifyLandingPageConfig: 'verify.landingPageConfig',\n verifyStatsBeacon: 'verify.statsBeacon',\n deleteV1LandingBase: 'delete.v1LandingBase',\n deleteV1LandingAdmin: 'delete.v1LandingAdmin',\n\n copyWaiverTemplates: 'copy.waiverTemplates',\n verifyWaiverTemplates: 'verify.waiverTemplates',\n deleteV1Waivers: 'delete.v1Waivers',\n\n copyAwardDefinitions: 'copy.awardDefinitions',\n verifyAwardDefinitions: 'verify.awardDefinitions',\n\n copyGameLocations: 'copy.gameLocations',\n verifyGameLocations: 'verify.gameLocations',\n\n deleteV1AdminStats: 'delete.v1AdminStats',\n\n verifyV1CommerceDiscardable: 'verify.v1CommerceDiscardable',\n\n // Read-only checks of V1 data that should never have been stored; the copies they cover wait on\n // them, and what they report is fixed in V1.\n verifyV1DisplayNamesUnique: 'verify.v1DisplayNamesUnique',\n verifyV1TextFitsLimits: 'verify.v1TextFitsLimits',\n verifyV1LeagueCapacity: 'verify.v1LeagueCapacity',\n verifyV1HardwareContractIdsUnique: 'verify.v1HardwareContractIdsUnique',\n deleteV1Commerce: 'delete.v1Commerce',\n\n rebuildLeagueStats: 'rebuild.leagueStats',\n rebuildLifetimeStats: 'rebuild.lifetimeStats',\n rebuildSportHallOfFame: 'rebuild.sportHallOfFame',\n validateStats: 'validate.stats',\n verifySportHallOfFame: 'verify.sportHallOfFame',\n deleteV1HallOfFame: 'delete.v1HallOfFame',\n deleteV1ValidationReports: 'delete.v1ValidationReports',\n\n recordCutoverLive: 'record.cutoverLive',\n\n checkpointV1FirestoreExport: 'checkpoint.v1FirestoreExport',\n checkpointPaymentCredentialsRetired: 'checkpoint.paymentCredentialsRetired',\n checkpointServiceAccountKeyRevoked: 'checkpoint.serviceAccountKeyRevoked',\n checkpointUnattachedPicturesReuploaded: 'checkpoint.unattachedPicturesReuploaded',\n checkpointAbandonedRegistrationSweepEnabled: 'checkpoint.abandonedRegistrationSweepEnabled',\n} as const;\n\nexport type MigrationActionId = (typeof MIGRATION_ACTION_IDS)[keyof typeof MIGRATION_ACTION_IDS];\n\nexport const MIGRATION_ACTION_ID_KEYS = Object.values(MIGRATION_ACTION_IDS) as [\n MigrationActionId,\n ...MigrationActionId[],\n];\n"]}
1
+ {"version":3,"file":"action-ids.js","sourceRoot":"","sources":["../../src/migration-console/action-ids.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,gBAAgB,EAAE,mBAAmB;IACrC,mBAAmB,EAAE,sBAAsB;IAC3C,0BAA0B,EAAE,6BAA6B;IACzD,kBAAkB,EAAE,qBAAqB;IACzC,aAAa,EAAE,gBAAgB;IAC/B,kBAAkB,EAAE,qBAAqB;IACzC,qBAAqB,EAAE,wBAAwB;IAC/C,0BAA0B,EAAE,6BAA6B;IACzD,iBAAiB,EAAE,oBAAoB;IACvC,eAAe,EAAE,kBAAkB;IACnC,6BAA6B,EAAE,gCAAgC;IAC/D,aAAa,EAAE,gBAAgB;IAE/B,8FAA8F;IAC9F,+EAA+E;IAC/E,qBAAqB,EAAE,wBAAwB;IAC/C,uBAAuB,EAAE,0BAA0B;IAEnD,eAAe,EAAE,kBAAk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B,EAAE,oBAAoB;IACvC,mBAAmB,EAAE,sBAAsB;IAC3C,oBAAoB,EAAE,uBAAuB;IAE7C,mBAAmB,EAAE,sBAAsB;IAC3C,qBAAqB,EAAE,wBAAwB;IAC/C,eAAe,EAAE,kBAAkB;IAEnC,oBAAoB,EAAE,uBAAuB;IAC7C,sBAAsB,EAAE,yBAAyB;IAEjD,iBAAiB,EAAE,oBAAoB;IACvC,mBAAmB,EAAE,sBAAsB;IAE3C,kBAAkB,EAAE,qBAAqB;IAEzC,2BAA2B,EAAE,8BAA8B;IAE3D,gGAAgG;IAChG,6CAA6C;IAC7C,0BAA0B,EAAE,6BAA6B;IACzD,sBAAsB,EAAE,yBAAyB;IACjD,sBAAsB,EAAE,yBAAyB;IACjD,iCAAiC,EAAE,oCAAoC;IACvE,gBAAgB,EAAE,mBAAmB;IAErC,YAAY,EAAE,eAAe;IAC7B,aAAa,EAAE,gBAAgB;IAC/B,qBAAqB,EAAE,wBAAwB;IAC/C,kBAAkB,EAAE,qBAAqB;IACzC,yBAAyB,EAAE,4BAA4B;IAEvD,iBAAiB,EAAE,oBAAoB;IAEvC,2BAA2B,EAAE,8BAA8B;IAC3D,mCAAmC,EAAE,sCAAsC;IAC3E,kCAAkC,EAAE,qCAAqC;IACzE,sCAAsC,EAAE,yCAAyC;IACjF,2CAA2C,EAAE,8CAA8C;CACnF,CAAC;AAIX,MAAM,CAAC,MAAM,wBAAwB,GAAG,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAGzE,CAAC","sourcesContent":["export const MIGRATION_ACTION_IDS = {\n copyUserProfiles: 'copy.userProfiles',\n copyHistoricalStats: 'copy.historicalStats',\n deriveReservedDisplayNames: 'derive.reservedDisplayNames',\n migratePublicUsers: 'migrate.publicUsers',\n copyAdminList: 'copy.adminList',\n verifyUserProfiles: 'verify.userProfiles',\n verifyHistoricalStats: 'verify.historicalStats',\n verifyReservedDisplayNames: 'verify.reservedDisplayNames',\n verifyPublicUsers: 'verify.publicUsers',\n verifyAdminList: 'verify.adminList',\n cleanupOrphanGhostPublicUsers: 'cleanup.orphanGhostPublicUsers',\n deleteV1Users: 'delete.v1Users',\n\n // Required by the ghost cleanup, whose probes read `teamMemberships` and `gameRosterPlayers`:\n // until those copies are verified complete, every ghost reads as unreferenced.\n verifyTeamMemberships: 'verify.teamMemberships',\n verifyGameRosterPlayers: 'verify.gameRosterPlayers',\n\n copyLeagueTeams: 'copy.leagueTeams',\n verifyLeagueTeams: 'verify.leagueTeams',\n deleteV1Teams: 'delete.v1Teams',\n copyTeamMemberships: 'copy.teamMemberships',\n deleteV1TeamMembers: 'delete.v1TeamMembers',\n copyTeamInvitations: 'copy.teamInvitations',\n verifyTeamInvitations: 'verify.teamInvitations',\n deleteV1TeamInvites: 'delete.v1TeamInvites',\n copyTeamJoinRequests: 'copy.teamJoinRequests',\n verifyTeamJoinRequests: 'verify.teamJoinRequests',\n deleteV1JoinRequests: 'delete.v1JoinRequests',\n copyLeagueFreeAgents: 'copy.leagueFreeAgents',\n verifyLeagueFreeAgents: 'verify.leagueFreeAgents',\n deleteV1FreeAgentSignups: 'delete.v1FreeAgentSignups',\n copyGameRosterPlayers: 'copy.gameRosterPlayers',\n deleteV1GameRosters: 'delete.v1GameRosters',\n // It removes the stale entries a copied roster holds, so it waits for the memberships and the\n // game stats — which pin an entry holding a recorded stat — to be copied and verified.\n reconcileOpenGameRosters: 'reconcile.openGameRosters',\n verifyGameStats: 'verify.gameStats',\n verifyLeaguePlayerStats: 'verify.leaguePlayerStats',\n\n copySportGames: 'copy.sportGames',\n resolveUnrosteredStatLine: 'resolve.unrosteredStatLine',\n verifySportGames: 'verify.sportGames',\n deleteV1LeagueGames: 'delete.v1LeagueGames',\n\n copySignedWaivers: 'copy.signedWaivers',\n verifySignedWaivers: 'verify.signedWaivers',\n verifySignatureFilesResolvable: 'verify.signatureFilesResolvable',\n revokeV1SignatureDownloadTokens: 'revoke.v1SignatureDownloadTokens',\n deleteV1WaiverSignatures: 'delete.v1WaiverSignatures',\n\n copyHardwareLoanContracts: 'copy.hardwareLoanContracts',\n verifyHardwareLoanContracts: 'verify.hardwareLoanContracts',\n deleteV1HardwareContracts: 'delete.v1HardwareContracts',\n\n copySportLeagues: 'copy.sportLeagues',\n verifySportLeagues: 'verify.sportLeagues',\n deleteV1Leagues: 'delete.v1Leagues',\n deleteV1LeagueChats: 'delete.v1LeagueChats',\n\n carryV1Pictures: 'carry.v1Pictures',\n verifyV1Pictures: 'verify.v1Pictures',\n\n copyAppConfig: 'copy.appConfig',\n copyLandingPageConfig: 'copy.landingPageConfig',\n copyStatsBeacon: 'copy.statsBeacon',\n verifyAppConfig: 'verify.appConfig',\n verifyLandingPageConfig: 'verify.landingPageConfig',\n verifyStatsBeacon: 'verify.statsBeacon',\n deleteV1LandingBase: 'delete.v1LandingBase',\n deleteV1LandingAdmin: 'delete.v1LandingAdmin',\n\n copyWaiverTemplates: 'copy.waiverTemplates',\n verifyWaiverTemplates: 'verify.waiverTemplates',\n deleteV1Waivers: 'delete.v1Waivers',\n\n copyAwardDefinitions: 'copy.awardDefinitions',\n verifyAwardDefinitions: 'verify.awardDefinitions',\n\n copyGameLocations: 'copy.gameLocations',\n verifyGameLocations: 'verify.gameLocations',\n\n deleteV1AdminStats: 'delete.v1AdminStats',\n\n verifyV1CommerceDiscardable: 'verify.v1CommerceDiscardable',\n\n // Read-only checks of V1 data that should never have been stored; the copies they cover wait on\n // them, and what they report is fixed in V1.\n verifyV1DisplayNamesUnique: 'verify.v1DisplayNamesUnique',\n verifyV1TextFitsLimits: 'verify.v1TextFitsLimits',\n verifyV1LeagueCapacity: 'verify.v1LeagueCapacity',\n verifyV1HardwareContractIdsUnique: 'verify.v1HardwareContractIdsUnique',\n deleteV1Commerce: 'delete.v1Commerce',\n\n rebuildStats: 'rebuild.stats',\n validateStats: 'validate.stats',\n verifySportHallOfFame: 'verify.sportHallOfFame',\n deleteV1HallOfFame: 'delete.v1HallOfFame',\n deleteV1ValidationReports: 'delete.v1ValidationReports',\n\n recordCutoverLive: 'record.cutoverLive',\n\n checkpointV1FirestoreExport: 'checkpoint.v1FirestoreExport',\n checkpointPaymentCredentialsRetired: 'checkpoint.paymentCredentialsRetired',\n checkpointServiceAccountKeyRevoked: 'checkpoint.serviceAccountKeyRevoked',\n checkpointUnattachedPicturesReuploaded: 'checkpoint.unattachedPicturesReuploaded',\n checkpointAbandonedRegistrationSweepEnabled: 'checkpoint.abandonedRegistrationSweepEnabled',\n} as const;\n\nexport type MigrationActionId = (typeof MIGRATION_ACTION_IDS)[keyof typeof MIGRATION_ACTION_IDS];\n\nexport const MIGRATION_ACTION_ID_KEYS = Object.values(MIGRATION_ACTION_IDS) as [\n MigrationActionId,\n ...MigrationActionId[],\n];\n"]}
@@ -4,7 +4,7 @@ export declare const MIGRATION_STEP_KIND_KEYS: readonly ["executable", "productC
4
4
  export type MigrationStepKind = (typeof MIGRATION_STEP_KIND_KEYS)[number];
5
5
  export declare const MIGRATION_RESULT_KIND_KEYS: readonly ["write", "verification"];
6
6
  export type MigrationResultKind = (typeof MIGRATION_RESULT_KIND_KEYS)[number];
7
- export declare const MIGRATION_CONTROL_EVIDENCE_KEYS: readonly ["statsOperation", "statsValidationReport"];
7
+ export declare const MIGRATION_CONTROL_EVIDENCE_KEYS: readonly ["statsJob", "statsValidationReport"];
8
8
  export type MigrationControlEvidence = (typeof MIGRATION_CONTROL_EVIDENCE_KEYS)[number];
9
9
  export declare const MIGRATION_OWNING_STEP_KEYS: readonly ["auth", "q-core", "stat-data-model", "high-risk-callables", "uploads-and-media", "query-and-invalidation", "secret-management", "migration-console"];
10
10
  export type MigrationOwningStep = (typeof MIGRATION_OWNING_STEP_KEYS)[number];
@@ -40,7 +40,6 @@ export interface ProductControlMigrationStep extends MigrationStepBase {
40
40
  export interface OperatorCheckpointMigrationStep extends MigrationStepBase {
41
41
  readonly kind: 'operatorCheckpoint';
42
42
  readonly instructions: string;
43
- readonly evidence: string;
44
43
  readonly noReturnBoundary: string | null;
45
44
  }
46
45
  export interface CutoverMarkerMigrationStep extends MigrationStepBase {
@@ -1 +1 @@
1
- {"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../src/migration-console/manifest.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAI3E,eAAO,MAAM,wBAAwB,kFAK3B,CAAC;AACX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1E,eAAO,MAAM,0BAA0B,oCAAqC,CAAC;AAC7E,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,0BAA0B,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9E,eAAO,MAAM,+BAA+B,sDAAuD,CAAC;AACpG,MAAM,MAAM,wBAAwB,GAAG,CAAC,OAAO,+BAA+B,CAAC,CAAC,MAAM,CAAC,CAAC;AAExF,eAAO,MAAM,0BAA0B,gKAS7B,CAAC;AACX,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,0BAA0B,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9E,UAAU,iBAAiB;IACzB,QAAQ,CAAC,EAAE,EAAE,iBAAiB,CAAC;IAC/B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,UAAU,EAAE,mBAAmB,CAAC;IACzC,QAAQ,CAAC,SAAS,EAAE,SAAS,iBAAiB,EAAE,CAAC;IACjD,QAAQ,CAAC,YAAY,EAAE,SAAS,iBAAiB,EAAE,CAAC;CACrD;AAED,MAAM,WAAW,uBAAwB,SAAQ,iBAAiB;IAChE,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,UAAU,EAAE,mBAAm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statsValidationReport'];
11
+ export const MIGRATION_CONTROL_EVIDENCE_KEYS = ['statsJob', 'statsValidationReport'];
12
12
  export const MIGRATION_OWNING_STEP_KEYS = [
13
13
  'auth',
14
14
  'q-core',
@@ -154,7 +154,6 @@ export const MIGRATION_CUTOVER_MANIFEST = [
154
154
  dependsOn: [],
155
155
  orderedAfter: [],
156
156
  instructions: '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.',
157
- evidence: 'The export operation name and the bucket path it wrote to.',
158
157
  noReturnBoundary: null,
159
158
  },
160
159
  v1CheckStep(A.verifyV1DisplayNamesUnique, {
@@ -281,7 +280,6 @@ export const MIGRATION_CUTOVER_MANIFEST = [
281
280
  dependsOn: [A.verifyUserProfiles],
282
281
  orderedAfter: [],
283
282
  instructions: '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.',
284
- evidence: 'The passing profile verification this step follows, and the count of profiles it checked.',
285
283
  noReturnBoundary: 'The sweep’s first deletion of a sign-in account that holds no profile.',
286
284
  },
287
285
  copyStep(A.copyHistoricalStats, {
@@ -574,42 +572,16 @@ export const MIGRATION_CUTOVER_MANIFEST = [
574
572
  },
575
573
  {
576
574
  kind: 'productControl',
577
- id: A.rebuildLeagueStats,
578
- title: 'Rebuild every league’s stats',
579
- summary: 'Every team’s season line and per-membership rows, closed leagues included, rebuilt from the copied games.',
575
+ id: A.rebuildStats,
576
+ title: 'Rebuild every stat',
577
+ summary: 'Every team’s season line and per-membership rows, closed leagues included, every account’s lifetime lines and the hall of fame of every sport that keeps one, rebuilt from the copied games and historical baselines.',
580
578
  owningStep: 'stat-data-model',
581
- dependsOn: SOURCE_VERIFICATIONS_FOR_REBUILD,
579
+ dependsOn: [...SOURCE_VERIFICATIONS_FOR_REBUILD, A.verifyUserProfiles, A.verifyHistoricalStats],
582
580
  orderedAfter: [],
583
- callable: 'recalculateAllLeagueStats',
584
- destinations: ['leagueTeams/{teamId}'],
585
- instructions: 'Run “Rebuild every league” from Stats › Fix stats as a real run, not a dry run, and let it reach the end.',
586
- evidence: 'statsOperation',
587
- },
588
- {
589
- kind: 'productControl',
590
- id: A.rebuildLifetimeStats,
591
- title: 'Rebuild every user’s lifetime stats',
592
- summary: 'Every account’s lifetime lines rebuilt from the copied games and historical baselines.',
593
- owningStep: 'stat-data-model',
594
- dependsOn: [A.rebuildLeagueStats, A.verifyUserProfiles, A.verifyHistoricalStats],
595
- orderedAfter: [],
596
- callable: 'recalculateAllUserStats',
597
- destinations: ['userProfiles/{userId}'],
598
- instructions: 'Run “Rebuild every user” from Stats › Fix stats as a real run, and let it reach the end.',
599
- evidence: 'statsOperation',
600
- },
601
- {
602
- kind: 'productControl',
603
- id: A.rebuildSportHallOfFame,
604
- title: 'Rebuild the hall of fame',
605
- summary: 'The hall of fame of every sport that keeps one, rebuilt from the copied games and baselines.',
606
- owningStep: 'stat-data-model',
607
- dependsOn: [A.rebuildLifetimeStats],
608
- orderedAfter: [],
609
- callable: 'recalculateHallOfFame',
610
- destinations: ['sportHallOfFame/{sportKey}'],
611
- instructions: '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.',
612
- evidence: 'statsOperation',
581
+ callable: 'adminCreateStatsJob',
582
+ destinations: ['leagueTeams/{teamId}', 'userProfiles/{userId}', 'sportHallOfFame/{sportKey}'],
583
+ instructions: 'Run “Rebuild › Everything” from Stats › Fix stats and let it finish.',
584
+ evidence: 'statsJob',
613
585
  },
614
586
  {
615
587
  kind: 'productControl',
@@ -617,7 +589,7 @@ export const MIGRATION_CUTOVER_MANIFEST = [
617
589
  title: 'Validate the stats',
618
590
  summary: 'Check stats over everything; it must report no finding.',
619
591
  owningStep: 'stat-data-model',
620
- dependsOn: [A.rebuildSportHallOfFame],
592
+ dependsOn: [A.rebuildStats],
621
593
  orderedAfter: [],
622
594
  callable: 'adminCreateStatsValidationReport',
623
595
  destinations: ['statsValidationReports/{reportId}'],
@@ -628,14 +600,14 @@ export const MIGRATION_CUTOVER_MANIFEST = [
628
600
  title: 'Compare the league player totals with V1',
629
601
  summary: '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.',
630
602
  owningStep: 'stat-data-model',
631
- dependsOn: [A.rebuildLeagueStats],
603
+ dependsOn: [A.rebuildStats],
632
604
  informational: true,
633
605
  }),
634
606
  verifyStep(A.verifySportHallOfFame, {
635
607
  title: 'Verify the rebuilt hall of fame',
636
608
  summary: '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.',
637
609
  owningStep: 'stat-data-model',
638
- dependsOn: [A.rebuildSportHallOfFame],
610
+ dependsOn: [A.rebuildStats],
639
611
  }),
640
612
  {
641
613
  kind: 'cutoverMarker',
@@ -926,7 +898,6 @@ export const MIGRATION_CUTOVER_MANIFEST = [
926
898
  dependsOn: [A.verifyV1Pictures, A.recordCutoverLive],
927
899
  orderedAfter: [],
928
900
  instructions: '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.',
929
- evidence: 'Each re-uploaded owner, or that the verification reported none.',
930
901
  noReturnBoundary: null,
931
902
  },
932
903
  {
@@ -938,7 +909,6 @@ export const MIGRATION_CUTOVER_MANIFEST = [
938
909
  dependsOn: [A.recordCutoverLive],
939
910
  orderedAfter: [],
940
911
  instructions: '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.',
941
- evidence: 'The payment dashboard showing the key revoked and the endpoint disabled, and `gcloud secrets list` in each project showing none of the three.',
942
912
  noReturnBoundary: 'The secret key revocation.',
943
913
  },
944
914
  {
@@ -950,7 +920,6 @@ export const MIGRATION_CUTOVER_MANIFEST = [
950
920
  dependsOn: [A.checkpointV1FirestoreExport],
951
921
  orderedAfter: [A.recordCutoverLive],
952
922
  instructions: '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.',
953
- evidence: 'The export run on ADC, and the console showing the key revoked.',
954
923
  noReturnBoundary: 'The key revocation.',
955
924
  },
956
925
  ];
@@ -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;IACnB,wBAAwB;IACxB,mBAAmB;IACnB,mBAAmB;CACX,CAAC;AAuDX,MAAM,CAAC,MAAM,qCAAqC,GAAG,sCAAsC,CAAC;AAC5F,MAAM,CAAC,MAAM,oCAAoC,GAAG,yCAAyC,CAAC;AAC9F,MAAM,CAAC,MAAM,iCAAiC,GAAG,oCAAoC,CAAC;AACtF,MAAM,CAAC,MAAM,8BAA8B,GAAG,0BAA0B,CAAC;AACzE,MAAM,CAAC,MAAM,qCAAqC,GAAG,6BAA6B,CA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D,YAAY,EAAE,EAAE;QAChB,YAAY,EACV,iPAAiP;QACnP,QAAQ,EAAE,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 = 'adminUpdateMigrationActionRunControl';\nexport const RECORD_MIGRATION_CHECKPOINT_CALLABLE = 'adminUpdateMigrationActionRunCheckpoint';\nexport const RECORD_MIGRATION_CUTOVER_CALLABLE = 'adminUpdateMigrationConsoleCutover';\nexport const GET_MIGRATION_CONSOLE_CALLABLE = 'adminGetMigrationConsole';\nexport const RESOLVE_UNROSTERED_STAT_LINE_CALLABLE = 'adminCreateGameRosterPlayer';\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 `adminUpdateMigrationActionRun${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: RESOLVE_UNROSTERED_STAT_LINE_CALLABLE,\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: 'adminCreateStatsValidationReport',\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.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.deleteV1LandingAdmin, {\n title: 'Delete `landing/admin`',\n summary:\n 'The V1 admin document — its role maps, venues and award catalog — once the rosters, the venues, the awards and their pictures are verified.',\n owningStep: 'q-core',\n dependsOn: [\n A.verifyAdminList,\n A.verifyGameLocations,\n A.verifyAwardDefinitions,\n A.verifyUserProfiles,\n A.verifyPublicUsers,\n A.verifyV1Pictures,\n ],\n resumeKey: SINGLE_DOCUMENT,\n consumes: [\n A.copyAdminList,\n A.verifyAdminList,\n A.copyGameLocations,\n A.verifyGameLocations,\n A.copyAwardDefinitions,\n A.verifyAwardDefinitions,\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.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, while a league holds more chat than one page examines or deletes, `{leagueId}/unfinished` inside its own chat and `{leagueId}/unfinished/{teamParentId}` from that team path on.',\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,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,UAAU,EAAE,uBAAuB,CAAU,CAAC;AAG9F,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,MAAM;IACN,QAAQ;IACR,iBAAiB;IACjB,qBAAqB;IACrB,mBAAmB;IACnB,wBAAwB;IACxB,mBAAmB;IACnB,mBAAmB;CACX,CAAC;AAsDX,MAAM,CAAC,MAAM,qCAAqC,GAAG,sCAAsC,CAAC;AAC5F,MAAM,CAAC,MAAM,oCAAoC,GAAG,yCAAyC,CAAC;AAC9F,MAAM,CAAC,MAAM,iCAAiC,GAAG,oCAAoC,CAAC;AACtF,MAAM,CAAC,MAAM,8BAA8B,GAAG,0BAA0B,CAAC;AACzE,MAAM,CAAC,MAAM,qCAAqC,GAAG,6BAA6B,CAAC;AAEnF,MAAM,UAAU,2BAA2B,CAAC,EAAqB;IAC/D,MAAM,CAAC,IAAI,GAAG,EAAE,EAAE,MAA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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 = ['statsJob', '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 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 = 'adminUpdateMigrationActionRunControl';\nexport const RECORD_MIGRATION_CHECKPOINT_CALLABLE = 'adminUpdateMigrationActionRunCheckpoint';\nexport const RECORD_MIGRATION_CUTOVER_CALLABLE = 'adminUpdateMigrationConsoleCutover';\nexport const GET_MIGRATION_CONSOLE_CALLABLE = 'adminGetMigrationConsole';\nexport const RESOLVE_UNROSTERED_STAT_LINE_CALLABLE = 'adminCreateGameRosterPlayer';\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 `adminUpdateMigrationActionRun${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 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 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: RESOLVE_UNROSTERED_STAT_LINE_CALLABLE,\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.rebuildStats,\n title: 'Rebuild every stat',\n summary:\n 'Every team’s season line and per-membership rows, closed leagues included, every account’s lifetime lines and the hall of fame of every sport that keeps one, rebuilt from the copied games and historical baselines.',\n owningStep: 'stat-data-model',\n dependsOn: [...SOURCE_VERIFICATIONS_FOR_REBUILD, A.verifyUserProfiles, A.verifyHistoricalStats],\n orderedAfter: [],\n callable: 'adminCreateStatsJob',\n destinations: ['leagueTeams/{teamId}', 'userProfiles/{userId}', 'sportHallOfFame/{sportKey}'],\n instructions: 'Run “Rebuild › Everything” from Stats › Fix stats and let it finish.',\n evidence: 'statsJob',\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.rebuildStats],\n orderedAfter: [],\n callable: 'adminCreateStatsValidationReport',\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.rebuildStats],\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.rebuildStats],\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.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.deleteV1LandingAdmin, {\n title: 'Delete `landing/admin`',\n summary:\n 'The V1 admin document — its role maps, venues and award catalog — once the rosters, the venues, the awards and their pictures are verified.',\n owningStep: 'q-core',\n dependsOn: [\n A.verifyAdminList,\n A.verifyGameLocations,\n A.verifyAwardDefinitions,\n A.verifyUserProfiles,\n A.verifyPublicUsers,\n A.verifyV1Pictures,\n ],\n resumeKey: SINGLE_DOCUMENT,\n consumes: [\n A.copyAdminList,\n A.verifyAdminList,\n A.copyGameLocations,\n A.verifyGameLocations,\n A.copyAwardDefinitions,\n A.verifyAwardDefinitions,\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.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, while a league holds more chat than one page examines or deletes, `{leagueId}/unfinished` inside its own chat and `{leagueId}/unfinished/{teamParentId}` from that team path on.',\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 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 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 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,5 +1,4 @@
1
1
  export declare const COLLECTION_GROUPS: {
2
- readonly AWARD_GROUP_GRANT_PEOPLE: "awardGroupGrantPeople";
3
2
  readonly GAME_ROSTER_PLAYERS: "gameRosterPlayers";
4
3
  readonly GAME_STAT_EVENTS: "gameStatEvents";
5
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"collection-groups.d.ts","sourceRoot":"","sources":["../../src/paths/collection-groups.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB;;;;CAIpB,CAAC"}
1
+ {"version":3,"file":"collection-groups.d.ts","sourceRoot":"","sources":["../../src/paths/collection-groups.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB;;;CAGpB,CAAC"}
@@ -1,6 +1,5 @@
1
- import { AWARD_GROUP_GRANT_SUBCOLLECTIONS, SPORT_GAME_SUBCOLLECTIONS } from './collections.js';
1
+ import { SPORT_GAME_SUBCOLLECTIONS } from './collections.js';
2
2
  export const COLLECTION_GROUPS = {
3
- AWARD_GROUP_GRANT_PEOPLE: AWARD_GROUP_GRANT_SUBCOLLECTIONS.AWARD_GROUP_GRANT_PEOPLE,
4
3
  GAME_ROSTER_PLAYERS: SPORT_GAME_SUBCOLLECTIONS.GAME_ROSTER_PLAYERS,
5
4
  GAME_STAT_EVENTS: SPORT_GAME_SUBCOLLECTIONS.GAME_STAT_EVENTS,
6
5
  };
@@ -1 +1 @@
1
- {"version":3,"file":"collection-groups.js","sourceRoot":"","sources":["../../src/paths/collection-groups.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAE/F,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,wBAAwB,EAAE,gCAAgC,CAAC,wBAAwB;IACnF,mBAAmB,EAAE,yBAAyB,CAAC,mBAAmB;IAClE,gBAAgB,EAAE,yBAAyB,CAAC,gBAAgB;CACpD,CAAC","sourcesContent":["import { AWARD_GROUP_GRANT_SUBCOLLECTIONS, SPORT_GAME_SUBCOLLECTIONS } from './collections.js';\n\nexport const COLLECTION_GROUPS = {\n AWARD_GROUP_GRANT_PEOPLE: AWARD_GROUP_GRANT_SUBCOLLECTIONS.AWARD_GROUP_GRANT_PEOPLE,\n GAME_ROSTER_PLAYERS: SPORT_GAME_SUBCOLLECTIONS.GAME_ROSTER_PLAYERS,\n GAME_STAT_EVENTS: SPORT_GAME_SUBCOLLECTIONS.GAME_STAT_EVENTS,\n} as const;\n"]}
1
+ {"version":3,"file":"collection-groups.js","sourceRoot":"","sources":["../../src/paths/collection-groups.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAE7D,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,mBAAmB,EAAE,yBAAyB,CAAC,mBAAmB;IAClE,gBAAgB,EAAE,yBAAyB,CAAC,gBAAgB;CACpD,CAAC","sourcesContent":["import { SPORT_GAME_SUBCOLLECTIONS } from './collections.js';\n\nexport const COLLECTION_GROUPS = {\n GAME_ROSTER_PLAYERS: SPORT_GAME_SUBCOLLECTIONS.GAME_ROSTER_PLAYERS,\n GAME_STAT_EVENTS: SPORT_GAME_SUBCOLLECTIONS.GAME_STAT_EVENTS,\n} as const;\n"]}
@@ -18,9 +18,8 @@ export declare const COLLECTION_REFS: {
18
18
  readonly hardwareLoanContracts: () => [string];
19
19
  readonly signatureCopyIntents: () => [string];
20
20
  readonly awardDefinitions: () => [string];
21
- readonly awardGroupGrants: () => [string];
22
21
  readonly statsValidationReports: () => [string];
23
- readonly statsOperations: () => [string];
22
+ readonly statsJobs: () => [string];
24
23
  readonly migrationActionRuns: () => [string];
25
24
  readonly galleryPictures: () => [string];
26
25
  readonly pendingMedia: () => [string];
@@ -1 +1 @@
1
- {"version":3,"file":"collection-refs.d.ts","sourceRoot":"","sources":["../../src/paths/collection-refs.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;iCACR,CAAC,MAAM,CAAC;gCACT,CAAC,MAAM,CAAC;yCACC,CAAC,MAAM,CAAC;uCACV,CAAC,MAAM,CAAC;yCACN,CAAC,MAAM,CAAC;iCAChB,CAAC,MAAM,CAAC;gCACT,CAAC,MAAM,CAAC;uCACD,CAAC,MAAM,CAAC;oCACX,CAAC,MAAM,CAAC;oCACR,CAAC,MAAM,CAAC;qCACP,CAAC,MAAM,CAAC;qCACR,CAAC,MAAM,CAAC;+BACd,CAAC,MAAM,CAAC;kCACL,CAAC,MAAM,CAAC;oCACN,CAAC,MAAM,CAAC;kCACV,CAAC,MAAM,CAAC;0CACA,CAAC,MAAM,CAAC;yCACT,CAAC,MAAM,CAAC;qCACZ,CAAC,MAAM,CAAC;qCACR,CAAC,MAAM,CAAC;2CACF,CAAC,MAAM,CAAC;oCACf,CAAC,MAAM,CAAC;wCACJ,CAAC,MAAM,CAAC;oCACZ,CAAC,MAAM,CAAC;iCACX,CAAC,MAAM,CAAC;uCACF,CAAC,MAAM,CAAC;gCACf,CAAC,MAAM,CAAC;6CACK,CAAC,MAAM,CAAC;6CACR,CAAC,MAAM,CAAC;2CACV,CAAC,MAAM,CAAC;+CACJ,CAAC,MAAM,CAAC;CAChC,CAAC"}
1
+ {"version":3,"file":"collection-refs.d.ts","sourceRoot":"","sources":["../../src/paths/collection-refs.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;iCACR,CAAC,MAAM,CAAC;gCACT,CAAC,MAAM,CAAC;yCACC,CAAC,MAAM,CAAC;uCACV,CAAC,MAAM,CAAC;yCACN,CAAC,MAAM,CAAC;iCAChB,CAAC,MAAM,CAAC;gCACT,CAAC,MAAM,CAAC;uCACD,CAAC,MAAM,CAAC;oCACX,CAAC,MAAM,CAAC;oCACR,CAAC,MAAM,CAAC;qCACP,CAAC,MAAM,CAAC;qCACR,CAAC,MAAM,CAAC;+BACd,CAAC,MAAM,CAAC;kCACL,CAAC,MAAM,CAAC;oCACN,CAAC,MAAM,CAAC;kCACV,CAAC,MAAM,CAAC;0CACA,CAAC,MAAM,CAAC;yCACT,CAAC,MAAM,CAAC;qCACZ,CAAC,MAAM,CAAC;2CACF,CAAC,MAAM,CAAC;8BACrB,CAAC,MAAM,CAAC;wCACE,CAAC,MAAM,CAAC;oCACZ,CAAC,MAAM,CAAC;iCACX,CAAC,MAAM,CAAC;uCACF,CAAC,MAAM,CAAC;gCACf,CAAC,MAAM,CAAC;6CACK,CAAC,MAAM,CAAC;6CACR,CAAC,MAAM,CAAC;2CACV,CAAC,MAAM,CAAC;+CACJ,CAAC,MAAM,CAAC;CAChC,CAAC"}