@ttt-productions/q-core 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constants/business.d.ts +12 -0
- package/dist/constants/business.d.ts.map +1 -1
- package/dist/constants/business.js +24 -0
- package/dist/constants/business.js.map +1 -1
- package/dist/constants/media.d.ts +1 -0
- package/dist/constants/media.d.ts.map +1 -1
- package/dist/constants/media.js +5 -0
- package/dist/constants/media.js.map +1 -1
- package/dist/doc-schemas/admin-notifications.d.ts +1 -0
- package/dist/doc-schemas/admin-notifications.d.ts.map +1 -1
- package/dist/doc-schemas/admin-notifications.js +4 -0
- package/dist/doc-schemas/admin-notifications.js.map +1 -1
- package/dist/doc-schemas/atoms.d.ts +2 -0
- package/dist/doc-schemas/atoms.d.ts.map +1 -1
- package/dist/doc-schemas/audit-event.d.ts +2 -0
- package/dist/doc-schemas/audit-event.d.ts.map +1 -1
- package/dist/doc-schemas/gallery.d.ts +1 -0
- package/dist/doc-schemas/gallery.d.ts.map +1 -1
- package/dist/doc-schemas/gallery.js +3 -0
- package/dist/doc-schemas/gallery.js.map +1 -1
- package/dist/doc-schemas/migration-console.d.ts +2 -0
- package/dist/doc-schemas/migration-console.d.ts.map +1 -1
- package/dist/doc-schemas/migration-console.js +5 -0
- package/dist/doc-schemas/migration-console.js.map +1 -1
- package/dist/doc-schemas/pending-media.d.ts +1 -0
- package/dist/doc-schemas/pending-media.d.ts.map +1 -1
- package/dist/doc-schemas/pending-media.js +8 -0
- package/dist/doc-schemas/pending-media.js.map +1 -1
- package/dist/doc-schemas/registry.d.ts +12 -0
- package/dist/doc-schemas/registry.d.ts.map +1 -1
- package/dist/doc-schemas/stats-operation.d.ts.map +1 -1
- package/dist/doc-schemas/stats-operation.js +6 -11
- package/dist/doc-schemas/stats-operation.js.map +1 -1
- package/dist/doc-schemas/system.d.ts +7 -0
- package/dist/doc-schemas/system.d.ts.map +1 -1
- package/dist/doc-schemas/system.js +4 -1
- package/dist/doc-schemas/system.js.map +1 -1
- package/dist/doc-schemas/user-profile.d.ts +1 -0
- package/dist/doc-schemas/user-profile.d.ts.map +1 -1
- package/dist/doc-schemas/user-profile.js +5 -0
- package/dist/doc-schemas/user-profile.js.map +1 -1
- package/dist/doc-schemas/waiver-template.d.ts +1 -0
- package/dist/doc-schemas/waiver-template.d.ts.map +1 -1
- package/dist/doc-schemas/waiver-template.js +10 -1
- package/dist/doc-schemas/waiver-template.js.map +1 -1
- package/dist/doc-schemas/waivers-and-hardware.d.ts +1 -0
- package/dist/doc-schemas/waivers-and-hardware.d.ts.map +1 -1
- package/dist/doc-schemas/waivers-and-hardware.js +17 -9
- package/dist/doc-schemas/waivers-and-hardware.js.map +1 -1
- package/dist/ids/minted-ids.d.ts +1 -0
- package/dist/ids/minted-ids.d.ts.map +1 -1
- package/dist/ids/minted-ids.js +6 -0
- package/dist/ids/minted-ids.js.map +1 -1
- package/dist/input-formats/index.d.ts +2 -2
- package/dist/input-formats/index.d.ts.map +1 -1
- package/dist/input-formats/index.js +2 -2
- package/dist/input-formats/index.js.map +1 -1
- package/dist/migration-console/manifest.d.ts.map +1 -1
- package/dist/migration-console/manifest.js +11 -10
- package/dist/migration-console/manifest.js.map +1 -1
- package/dist/notifications/archive-all.d.ts +2 -0
- package/dist/notifications/archive-all.d.ts.map +1 -0
- package/dist/notifications/archive-all.js +6 -0
- package/dist/notifications/archive-all.js.map +1 -0
- package/dist/notifications/index.d.ts +1 -0
- package/dist/notifications/index.d.ts.map +1 -1
- package/dist/notifications/index.js +1 -0
- package/dist/notifications/index.js.map +1 -1
- package/dist/schemas/admin-notifications.d.ts +1 -0
- package/dist/schemas/admin-notifications.d.ts.map +1 -1
- package/dist/schemas/admin-notifications.js +4 -2
- package/dist/schemas/admin-notifications.js.map +1 -1
- package/dist/schemas/app-config.d.ts +2 -2
- package/dist/schemas/app-config.d.ts.map +1 -1
- package/dist/schemas/app-config.js +9 -5
- package/dist/schemas/app-config.js.map +1 -1
- package/dist/schemas/awards.d.ts +16 -4
- package/dist/schemas/awards.d.ts.map +1 -1
- package/dist/schemas/awards.js +10 -6
- package/dist/schemas/awards.js.map +1 -1
- package/dist/schemas/game-locations.d.ts +4 -4
- package/dist/schemas/game-locations.d.ts.map +1 -1
- package/dist/schemas/game-locations.js +11 -3
- package/dist/schemas/game-locations.js.map +1 -1
- package/dist/schemas/migration-console.d.ts +1 -0
- package/dist/schemas/migration-console.d.ts.map +1 -1
- package/dist/schemas/pictures.d.ts +3 -0
- package/dist/schemas/pictures.d.ts.map +1 -1
- package/dist/schemas/stats.d.ts +2 -0
- package/dist/schemas/stats.d.ts.map +1 -1
- package/dist/schemas/teams.d.ts +3 -2
- package/dist/schemas/teams.d.ts.map +1 -1
- package/dist/schemas/teams.js +22 -11
- package/dist/schemas/teams.js.map +1 -1
- package/dist/schemas/users.d.ts +7 -3
- package/dist/schemas/users.d.ts.map +1 -1
- package/dist/schemas/users.js +10 -3
- package/dist/schemas/users.js.map +1 -1
- package/dist/schemas/waiver-templates.d.ts +1 -0
- package/dist/schemas/waiver-templates.d.ts.map +1 -1
- package/dist/schemas/waiver-templates.js +4 -1
- package/dist/schemas/waiver-templates.js.map +1 -1
- package/dist/sports/index.d.ts +1 -0
- package/dist/sports/index.d.ts.map +1 -1
- package/dist/sports/index.js +1 -0
- package/dist/sports/index.js.map +1 -1
- package/dist/sports/ledger-continuity.d.ts +13 -0
- package/dist/sports/ledger-continuity.d.ts.map +1 -0
- package/dist/sports/ledger-continuity.js +19 -0
- package/dist/sports/ledger-continuity.js.map +1 -0
- package/dist/types/audit.d.ts +1 -1
- package/dist/types/audit.d.ts.map +1 -1
- package/dist/types/audit.js +5 -2
- package/dist/types/audit.js.map +1 -1
- package/dist/types/unions.d.ts +4 -2
- package/dist/types/unions.d.ts.map +1 -1
- package/dist/types/unions.js +6 -0
- package/dist/types/unions.js.map +1 -1
- package/dist/upload-variables/index.d.ts +3 -0
- package/dist/upload-variables/index.d.ts.map +1 -0
- package/dist/upload-variables/index.js +3 -0
- package/dist/upload-variables/index.js.map +1 -0
- package/dist/upload-variables/on-progress.d.ts +4 -0
- package/dist/upload-variables/on-progress.d.ts.map +1 -0
- package/dist/upload-variables/on-progress.js +10 -0
- package/dist/upload-variables/on-progress.js.map +1 -0
- package/dist/upload-variables/picture-upload-variables.d.ts +32 -0
- package/dist/upload-variables/picture-upload-variables.d.ts.map +1 -0
- package/dist/upload-variables/picture-upload-variables.js +21 -0
- package/dist/upload-variables/picture-upload-variables.js.map +1 -0
- package/dist/utils/app-config.d.ts +17 -3
- package/dist/utils/app-config.d.ts.map +1 -1
- package/dist/utils/app-config.js +21 -14
- package/dist/utils/app-config.js.map +1 -1
- package/package.json +6 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"minted-ids.js","sourceRoot":"","sources":["../../src/ids/minted-ids.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,EAAE;AACF,mGAAmG;AACnG,gDAAgD;AAEhD,oGAAoG;AACpG,MAAM,CAAC,MAAM,oBAAoB,GAAG,QAAQ,CAAC;AAE7C,MAAM,UAAU,aAAa,CAAC,MAAc;IAC1C,OAAO,MAAM,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;AACjD,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,KAAa,EAAE,MAAc;IAC5D,OAAO,GAAG,oBAAoB,GAAG,KAAK,IAAI,MAAM,EAAE,CAAC;AACrD,CAAC;AAED,2FAA2F;AAC3F,MAAM,UAAU,gBAAgB,CAAC,KAAa,EAAE,MAAc;IAC5D,OAAO,GAAG,KAAK,IAAI,MAAM,EAAE,CAAC;AAC9B,CAAC;AAED,+FAA+F;AAC/F,qGAAqG;AACrG,yDAAyD;AACzD,MAAM,UAAU,mBAAmB,CAAC,KAAa,EAAE,MAAc;IAC/D,OAAO,QAAQ,KAAK,IAAI,MAAM,EAAE,CAAC;AACnC,CAAC;AAED,4DAA4D;AAC5D,MAAM,CAAC,MAAM,WAAW,GAAG,KAAK,CAAC;AAEjC,gGAAgG;AAChG,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,CAAC;AAEpC,MAAM,UAAU,WAAW,CAAC,MAAc;IACxC,OAAO,MAAM,KAAK,WAAW,CAAC;AAChC,CAAC","sourcesContent":["// Minted identifiers and identity sentinels.\n//\n// Builders take the clock reading and the random suffix as arguments so they stay pure: the caller\n// supplies `Date.now()` and its own randomness.\n\n// A placeholder player carries a `ghost_`-prefixed id and has a publicUsers document (BACKEND-120).\nexport const GHOST_USER_ID_PREFIX = 'ghost_';\n\nexport function isGhostUserId(userId: string): boolean {\n return userId.startsWith(GHOST_USER_ID_PREFIX);\n}\n\nexport function buildGhostUserId(nowMs: number, suffix: string): string {\n return `${GHOST_USER_ID_PREFIX}${nowMs}_${suffix}`;\n}\n\n// A new game's id, `{timestamp}_{suffix}`. A copied game keeps the id it was stored under.\nexport function buildSportGameId(nowMs: number, suffix: string): string {\n return `${nowMs}_${suffix}`;\n}\n\n// A new week's `weekId`, minted by the server when the week is saved. Some stored weeks hold a\n// date-derived `week-{YYYY-MM-DD}` id; a minted id never takes that form, and never derives from the\n// date, so two weeks starting on one day stay two weeks.\nexport function buildScheduleWeekId(nowMs: number, suffix: string): string {\n return `week_${nowMs}_${suffix}`;\n}\n\n// The team slot of a bye week. Never a real leagueTeams id.\nexport const BYE_TEAM_ID = 'bye';\n\n// How the bye slot reads wherever a game or a week names it — a matchup, a schedule, a refusal.\nexport const BYE_TEAM_LABEL = 'Bye';\n\nexport function isByeTeamId(teamId: string): boolean {\n return teamId === BYE_TEAM_ID;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"minted-ids.js","sourceRoot":"","sources":["../../src/ids/minted-ids.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,EAAE;AACF,mGAAmG;AACnG,gDAAgD;AAEhD,oGAAoG;AACpG,MAAM,CAAC,MAAM,oBAAoB,GAAG,QAAQ,CAAC;AAE7C,MAAM,UAAU,aAAa,CAAC,MAAc;IAC1C,OAAO,MAAM,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;AACjD,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,KAAa,EAAE,MAAc;IAC5D,OAAO,GAAG,oBAAoB,GAAG,KAAK,IAAI,MAAM,EAAE,CAAC;AACrD,CAAC;AAED,mGAAmG;AACnG,qGAAqG;AACrG,iGAAiG;AACjG,MAAM,UAAU,0BAA0B,CAAC,SAAiB;IAC1D,OAAO,GAAG,oBAAoB,OAAO,SAAS,EAAE,CAAC;AACnD,CAAC;AAED,2FAA2F;AAC3F,MAAM,UAAU,gBAAgB,CAAC,KAAa,EAAE,MAAc;IAC5D,OAAO,GAAG,KAAK,IAAI,MAAM,EAAE,CAAC;AAC9B,CAAC;AAED,+FAA+F;AAC/F,qGAAqG;AACrG,yDAAyD;AACzD,MAAM,UAAU,mBAAmB,CAAC,KAAa,EAAE,MAAc;IAC/D,OAAO,QAAQ,KAAK,IAAI,MAAM,EAAE,CAAC;AACnC,CAAC;AAED,4DAA4D;AAC5D,MAAM,CAAC,MAAM,WAAW,GAAG,KAAK,CAAC;AAEjC,gGAAgG;AAChG,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,CAAC;AAEpC,MAAM,UAAU,WAAW,CAAC,MAAc;IACxC,OAAO,MAAM,KAAK,WAAW,CAAC;AAChC,CAAC","sourcesContent":["// Minted identifiers and identity sentinels.\n//\n// Builders take the clock reading and the random suffix as arguments so they stay pure: the caller\n// supplies `Date.now()` and its own randomness.\n\n// A placeholder player carries a `ghost_`-prefixed id and has a publicUsers document (BACKEND-120).\nexport const GHOST_USER_ID_PREFIX = 'ghost_';\n\nexport function isGhostUserId(userId: string): boolean {\n return userId.startsWith(GHOST_USER_ID_PREFIX);\n}\n\nexport function buildGhostUserId(nowMs: number, suffix: string): string {\n return `${GHOST_USER_ID_PREFIX}${nowMs}_${suffix}`;\n}\n\n// The ghost a ghost-add request creates: derived from the request id the client mints once per add\n// and re-sends on every retry, so a retry names the same ghost instead of creating a second one. Its\n// `req_` part never reads as a clock reading, so it cannot collide with a `buildGhostUserId` id.\nexport function buildGhostUserIdForRequest(requestId: string): string {\n return `${GHOST_USER_ID_PREFIX}req_${requestId}`;\n}\n\n// A new game's id, `{timestamp}_{suffix}`. A copied game keeps the id it was stored under.\nexport function buildSportGameId(nowMs: number, suffix: string): string {\n return `${nowMs}_${suffix}`;\n}\n\n// A new week's `weekId`, minted by the server when the week is saved. Some stored weeks hold a\n// date-derived `week-{YYYY-MM-DD}` id; a minted id never takes that form, and never derives from the\n// date, so two weeks starting on one day stay two weeks.\nexport function buildScheduleWeekId(nowMs: number, suffix: string): string {\n return `week_${nowMs}_${suffix}`;\n}\n\n// The team slot of a bye week. Never a real leagueTeams id.\nexport const BYE_TEAM_ID = 'bye';\n\n// How the bye slot reads wherever a game or a week names it — a matchup, a schedule, a refusal.\nexport const BYE_TEAM_LABEL = 'Bye';\n\nexport function isByeTeamId(teamId: string): boolean {\n return teamId === BYE_TEAM_ID;\n}\n"]}
|
|
@@ -170,10 +170,10 @@ export declare const WAIVER_TEMPLATE_TEXT_INPUT_FORMAT: import("@ttt-productions
|
|
|
170
170
|
readonly max: 20000;
|
|
171
171
|
readonly keepAsTyped: true;
|
|
172
172
|
}>;
|
|
173
|
-
/** The landing page's hero title: trimmed, one line
|
|
173
|
+
/** The landing page's hero title: trimmed, one line; blank shows the default heading. */
|
|
174
174
|
export declare const LANDING_HERO_TITLE_INPUT_FORMAT: import("@ttt-productions/input-format-core").DeclaredInputFormat<{
|
|
175
175
|
readonly format: "singleLine";
|
|
176
|
-
readonly min:
|
|
176
|
+
readonly min: 0;
|
|
177
177
|
readonly max: 200;
|
|
178
178
|
}>;
|
|
179
179
|
/** The landing page's about text: trimmed, line breaks allowed, empty allowed. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/input-formats/index.ts"],"names":[],"mappings":"AAwCA;;;GAGG;A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I5C,CAAC;AAEH,gFAAgF;AAChF,eAAO,MAAM,wBAAwB;;;;EAInC,CAAC"}
|
|
@@ -178,10 +178,10 @@ export const WAIVER_TEMPLATE_TEXT_INPUT_FORMAT = defineInputFormat({
|
|
|
178
178
|
max: MAX_WAIVER_TEMPLATE_TEXT_LENGTH,
|
|
179
179
|
keepAsTyped: true,
|
|
180
180
|
});
|
|
181
|
-
/** The landing page's hero title: trimmed, one line
|
|
181
|
+
/** The landing page's hero title: trimmed, one line; blank shows the default heading. */
|
|
182
182
|
export const LANDING_HERO_TITLE_INPUT_FORMAT = defineInputFormat({
|
|
183
183
|
format: 'singleLine',
|
|
184
|
-
min:
|
|
184
|
+
min: 0,
|
|
185
185
|
max: MAX_LANDING_HERO_TITLE_LENGTH,
|
|
186
186
|
});
|
|
187
187
|
/** The landing page's about text: trimmed, line breaks allowed, empty allowed. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/input-formats/index.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,gGAAgG;AAChG,gGAAgG;AAChG,oGAAoG;AACpG,mGAAmG;AACnG,6CAA6C;AAE7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EACL,+BAA+B,EAC/B,sBAAsB,EACtB,qBAAqB,EACrB,wBAAwB,EACxB,uBAAuB,EACvB,6BAA6B,EAC7B,6BAA6B,EAC7B,uCAAuC,EACvC,qCAAqC,EACrC,oBAAoB,EACpB,6BAA6B,EAC7B,6BAA6B,EAC7B,6BAA6B,EAC7B,uBAAuB,EACvB,8BAA8B,EAC9B,wBAAwB,EACxB,8BAA8B,EAC9B,kCAAkC,EAClC,oCAAoC,EACpC,oBAAoB,EACpB,+BAA+B,EAC/B,gCAAgC,EAChC,qBAAqB,EACrB,uBAAuB,EACvB,6BAA6B,EAC7B,uBAAuB,EACvB,wBAAwB,EACxB,oCAAoC,EACpC,oBAAoB,GACrB,MAAM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AAE,CAAC;IACN,GAAG,EAAE,+BAA+B;CACrC,CAAC,CAAC;AAEH,gFAAgF;AAChF,MAAM,CAAC,MAAM,wBAAwB,GAAG,iBAAiB,CAAC;IACxD,MAAM,EAAE,MAAM;IACd,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,sBAAsB;CAC5B,CAAC,CAAC","sourcesContent":["// The declared formats of the free-text fields a form takes, each built from the limits the field\n// enforces (ARCH-102). ui-core's text inputs and `ConsequenceDialog`'s reason field take only a\n// declaration, never a bare bound, and a field's wire schema is built from the same declaration\n// through `textFieldSchema`, so the form and the wire run the one check and accept exactly the same\n// text. `input-format-core` is server-safe and has no dependencies, so the declarations sit in the\n// package root, which both app roots import.\n\nimport { defineInputFormat } from '@ttt-productions/input-format-core';\nimport {\n MAX_ANNOUNCEMENT_MESSAGE_LENGTH,\n MAX_APP_VERSION_LENGTH,\n MAX_AWARD_NAME_LENGTH,\n MAX_CONTACT_PHONE_LENGTH,\n MAX_DISPLAY_NAME_LENGTH,\n MAX_GAME_LOCATION_MEMO_LENGTH,\n MAX_GAME_LOCATION_NAME_LENGTH,\n MAX_GAME_LOCATION_STREET_ADDRESS_LENGTH,\n MAX_GAME_LOCATION_SUB_LOCATION_LENGTH,\n MAX_GAME_MEMO_LENGTH,\n MAX_LANDING_ABOUT_TEXT_LENGTH,\n MAX_LANDING_HERO_TITLE_LENGTH,\n MAX_LEAGUE_DESCRIPTION_LENGTH,\n MAX_LEAGUE_TITLE_LENGTH,\n MAX_MAINTENANCE_MESSAGE_LENGTH,\n MAX_REPAIR_REASON_LENGTH,\n MAX_SCHEDULE_WEEK_TITLE_LENGTH,\n MAX_TEAM_INVITATION_MESSAGE_LENGTH,\n MAX_TEAM_JOIN_REQUEST_MESSAGE_LENGTH,\n MAX_TEAM_NAME_LENGTH,\n MAX_WAIVER_TEMPLATE_TEXT_LENGTH,\n MAX_WAIVER_TEMPLATE_TITLE_LENGTH,\n MIN_AWARD_NAME_LENGTH,\n MIN_DISPLAY_NAME_LENGTH,\n MIN_LEAGUE_DESCRIPTION_LENGTH,\n MIN_LEAGUE_TITLE_LENGTH,\n MIN_REPAIR_REASON_LENGTH,\n MIN_TEAM_JOIN_REQUEST_MESSAGE_LENGTH,\n MIN_TEAM_NAME_LENGTH,\n} from '../constants/business.js';\n\n/**\n * The reason an admin gives for a repair action, as `repairReasonSchema` reads it: trimmed, then\n * bounded by the repair-reason limits, with any character and line breaks allowed.\n */\nexport const REPAIR_REASON_INPUT_FORMAT = defineInputFormat({\n format: 'none',\n min: MIN_REPAIR_REASON_LENGTH,\n max: MAX_REPAIR_REASON_LENGTH,\n});\n\n/**\n * The evidence an operator records for a cutover step the console cannot see done — an export's\n * operation name, a revocation's console record: trimmed, then bounded by the repair-reason limits,\n * line breaks allowed.\n */\nexport const MIGRATION_EVIDENCE_INPUT_FORMAT = defineInputFormat({\n format: 'none',\n min: MIN_REPAIR_REASON_LENGTH,\n max: MAX_REPAIR_REASON_LENGTH,\n});\n\n/**\n * A player's message to the team they ask to join, as `teamJoinRequestMessageSchema` reads it:\n * trimmed, then bounded by the join-request message limits, with any character and line breaks\n * allowed.\n */\nexport const TEAM_JOIN_REQUEST_MESSAGE_INPUT_FORMAT = defineInputFormat({\n format: 'none',\n min: MIN_TEAM_JOIN_REQUEST_MESSAGE_LENGTH,\n max: MAX_TEAM_JOIN_REQUEST_MESSAGE_LENGTH,\n});\n\n/**\n * The optional note a team sends with an invitation, as `teamInvitationMessageSchema` reads it:\n * trimmed, empty allowed, then bounded by the invitation note limit, line breaks allowed.\n */\nexport const TEAM_INVITATION_MESSAGE_INPUT_FORMAT = defineInputFormat({\n format: 'none',\n min: 0,\n max: MAX_TEAM_INVITATION_MESSAGE_LENGTH,\n});\n\n/**\n * A scorer's note on one person in a live game (\"red shirt\", \"#9\"), as `gameMemoSchema` reads it:\n * trimmed, one line, empty allowed — an empty memo clears the note — then bounded by the memo cap.\n */\nexport const GAME_MEMO_INPUT_FORMAT = defineInputFormat({\n format: 'singleLine',\n min: 0,\n max: MAX_GAME_MEMO_LENGTH,\n});\n\n/**\n * A person's display name — an account's, or a ghost player's, as both ghost doors and the admin's\n * ghost captain ask for it — as `displayNameSchema` reads it: trimmed, one line, then bounded by the\n * display-name limits.\n */\nexport const DISPLAY_NAME_INPUT_FORMAT = defineInputFormat({\n format: 'singleLine',\n min: MIN_DISPLAY_NAME_LENGTH,\n max: MAX_DISPLAY_NAME_LENGTH,\n});\n\n/**\n * A team's name, as `teamNameSchema` reads it at creation and at an admin's rename: trimmed, one\n * line, then bounded by the team-name limits.\n */\nexport const TEAM_NAME_INPUT_FORMAT = defineInputFormat({\n format: 'singleLine',\n min: MIN_TEAM_NAME_LENGTH,\n max: MAX_TEAM_NAME_LENGTH,\n});\n\n/**\n * The number the league reaches a team on, as `contactPhoneSchema` reads it: trimmed, one line,\n * required, and bounded by the contact-phone cap. It is kept as typed — no format is imposed.\n */\nexport const CONTACT_PHONE_INPUT_FORMAT = defineInputFormat({\n format: 'singleLine',\n min: 1,\n max: MAX_CONTACT_PHONE_LENGTH,\n});\n\n/**\n * The account's optional default contact phone on the settings page: the contact-phone format with\n * empty allowed. Empty means remove the saved number — the form sends it as\n * `UpdateAccountSettingsInput.defaultContactPhone: null` — and any other value is held to\n * `CONTACT_PHONE_INPUT_FORMAT`'s trim, one line, and cap.\n */\nexport const OPTIONAL_CONTACT_PHONE_INPUT_FORMAT = defineInputFormat({\n format: 'singleLine',\n min: 0,\n max: MAX_CONTACT_PHONE_LENGTH,\n});\n\n/**\n * An award's name in the catalog, as `awardNameSchema` reads it — at creation, sent with the award's\n * first badge: trimmed, one line, then bounded by the award-name limits.\n */\nexport const AWARD_NAME_INPUT_FORMAT = defineInputFormat({\n format: 'singleLine',\n min: MIN_AWARD_NAME_LENGTH,\n max: MAX_AWARD_NAME_LENGTH,\n});\n\n/**\n * A league's title, as `leagueTitleSchema` reads it at creation and at the settings edit: trimmed,\n * one line, then bounded by the league-title limits.\n */\nexport const LEAGUE_TITLE_INPUT_FORMAT = defineInputFormat({\n format: 'singleLine',\n min: MIN_LEAGUE_TITLE_LENGTH,\n max: MAX_LEAGUE_TITLE_LENGTH,\n});\n\n/**\n * A league's description, as `leagueDescriptionSchema` reads it at creation and at the settings\n * edit: trimmed, then bounded by the league-description limits, line breaks allowed.\n */\nexport const LEAGUE_DESCRIPTION_INPUT_FORMAT = defineInputFormat({\n format: 'none',\n min: MIN_LEAGUE_DESCRIPTION_LENGTH,\n max: MAX_LEAGUE_DESCRIPTION_LENGTH,\n});\n\n/** A venue's name, as `gameLocationNameSchema` reads it: trimmed, one line, required, within its cap. */\nexport const GAME_LOCATION_NAME_INPUT_FORMAT = defineInputFormat({\n format: 'singleLine',\n min: 1,\n max: MAX_GAME_LOCATION_NAME_LENGTH,\n});\n\n/**\n * A venue's street address, as `gameLocationStreetAddressSchema` reads it: trimmed, one line,\n * required, within its cap.\n */\nexport const GAME_LOCATION_STREET_ADDRESS_INPUT_FORMAT = defineInputFormat({\n format: 'singleLine',\n min: 1,\n max: MAX_GAME_LOCATION_STREET_ADDRESS_LENGTH,\n});\n\n/**\n * One court, sheet, or room of a venue, as `gameLocationSubLocationSchema` reads it: trimmed, one\n * line, required, within its cap.\n */\nexport const GAME_LOCATION_SUB_LOCATION_INPUT_FORMAT = defineInputFormat({\n format: 'singleLine',\n min: 1,\n max: MAX_GAME_LOCATION_SUB_LOCATION_LENGTH,\n});\n\n/**\n * A venue's memo, as `gameLocationMemoSchema` reads it: trimmed, line breaks allowed, empty allowed —\n * an empty memo means the venue has none — within its cap.\n */\nexport const GAME_LOCATION_MEMO_INPUT_FORMAT = defineInputFormat({\n format: 'none',\n min: 0,\n max: MAX_GAME_LOCATION_MEMO_LENGTH,\n});\n\n/** A schedule week's name, as `scheduleWeekTitleSchema` reads it: trimmed, one line, required. */\nexport const SCHEDULE_WEEK_TITLE_INPUT_FORMAT = defineInputFormat({\n format: 'singleLine',\n min: 1,\n max: MAX_SCHEDULE_WEEK_TITLE_LENGTH,\n});\n\n/**\n * A waiver template's title, as `waiverTemplateTitleSchema` reads it. A waiver is a legal artifact a\n * player signs, so its words are kept exactly as typed; it still cannot be blank.\n */\nexport const WAIVER_TEMPLATE_TITLE_INPUT_FORMAT = defineInputFormat({\n format: 'singleLine',\n min: 1,\n max: MAX_WAIVER_TEMPLATE_TITLE_LENGTH,\n keepAsTyped: true,\n});\n\n/**\n * A waiver template's wording, as `waiverTemplateTextSchema` reads it: the legal text a player signs,\n * kept exactly as typed, line breaks allowed, never blank.\n */\nexport const WAIVER_TEMPLATE_TEXT_INPUT_FORMAT = defineInputFormat({\n format: 'none',\n min: 1,\n max: MAX_WAIVER_TEMPLATE_TEXT_LENGTH,\n keepAsTyped: true,\n});\n\n/** The landing page's hero title: trimmed, one line, required. */\nexport const LANDING_HERO_TITLE_INPUT_FORMAT = defineInputFormat({\n format: 'singleLine',\n min: 1,\n max: MAX_LANDING_HERO_TITLE_LENGTH,\n});\n\n/** The landing page's about text: trimmed, line breaks allowed, empty allowed. */\nexport const LANDING_ABOUT_TEXT_INPUT_FORMAT = defineInputFormat({\n format: 'none',\n min: 0,\n max: MAX_LANDING_ABOUT_TEXT_LENGTH,\n});\n\n/** The message shown while the app is in maintenance; empty shows none. */\nexport const MAINTENANCE_MESSAGE_INPUT_FORMAT = defineInputFormat({\n format: 'none',\n min: 0,\n max: MAX_MAINTENANCE_MESSAGE_LENGTH,\n});\n\n/** The site announcement banner; empty clears it. */\nexport const ANNOUNCEMENT_MESSAGE_INPUT_FORMAT = defineInputFormat({\n format: 'none',\n min: 0,\n max: MAX_ANNOUNCEMENT_MESSAGE_LENGTH,\n});\n\n/** The published app version the version gate compares against; never blank. */\nexport const APP_VERSION_INPUT_FORMAT = defineInputFormat({\n format: 'none',\n min: 1,\n max: MAX_APP_VERSION_LENGTH,\n});\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/input-formats/index.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,gGAAgG;AAChG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AAM,CAAC,MAAM,+BAA+B,GAAG,iBAAiB,CAAC;IAC/D,MAAM,EAAE,YAAY;IACpB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,6BAA6B;CACnC,CAAC,CAAC;AAEH,kFAAkF;AAClF,MAAM,CAAC,MAAM,+BAA+B,GAAG,iBAAiB,CAAC;IAC/D,MAAM,EAAE,MAAM;IACd,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,6BAA6B;CACnC,CAAC,CAAC;AAEH,2EAA2E;AAC3E,MAAM,CAAC,MAAM,gCAAgC,GAAG,iBAAiB,CAAC;IAChE,MAAM,EAAE,MAAM;IACd,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,8BAA8B;CACpC,CAAC,CAAC;AAEH,qDAAqD;AACrD,MAAM,CAAC,MAAM,iCAAiC,GAAG,iBAAiB,CAAC;IACjE,MAAM,EAAE,MAAM;IACd,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,+BAA+B;CACrC,CAAC,CAAC;AAEH,gFAAgF;AAChF,MAAM,CAAC,MAAM,wBAAwB,GAAG,iBAAiB,CAAC;IACxD,MAAM,EAAE,MAAM;IACd,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,sBAAsB;CAC5B,CAAC,CAAC","sourcesContent":["// The declared formats of the free-text fields a form takes, each built from the limits the field\n// enforces (ARCH-102). ui-core's text inputs and `ConsequenceDialog`'s reason field take only a\n// declaration, never a bare bound, and a field's wire schema is built from the same declaration\n// through `textFieldSchema`, so the form and the wire run the one check and accept exactly the same\n// text. `input-format-core` is server-safe and has no dependencies, so the declarations sit in the\n// package root, which both app roots import.\n\nimport { defineInputFormat } from '@ttt-productions/input-format-core';\nimport {\n MAX_ANNOUNCEMENT_MESSAGE_LENGTH,\n MAX_APP_VERSION_LENGTH,\n MAX_AWARD_NAME_LENGTH,\n MAX_CONTACT_PHONE_LENGTH,\n MAX_DISPLAY_NAME_LENGTH,\n MAX_GAME_LOCATION_MEMO_LENGTH,\n MAX_GAME_LOCATION_NAME_LENGTH,\n MAX_GAME_LOCATION_STREET_ADDRESS_LENGTH,\n MAX_GAME_LOCATION_SUB_LOCATION_LENGTH,\n MAX_GAME_MEMO_LENGTH,\n MAX_LANDING_ABOUT_TEXT_LENGTH,\n MAX_LANDING_HERO_TITLE_LENGTH,\n MAX_LEAGUE_DESCRIPTION_LENGTH,\n MAX_LEAGUE_TITLE_LENGTH,\n MAX_MAINTENANCE_MESSAGE_LENGTH,\n MAX_REPAIR_REASON_LENGTH,\n MAX_SCHEDULE_WEEK_TITLE_LENGTH,\n MAX_TEAM_INVITATION_MESSAGE_LENGTH,\n MAX_TEAM_JOIN_REQUEST_MESSAGE_LENGTH,\n MAX_TEAM_NAME_LENGTH,\n MAX_WAIVER_TEMPLATE_TEXT_LENGTH,\n MAX_WAIVER_TEMPLATE_TITLE_LENGTH,\n MIN_AWARD_NAME_LENGTH,\n MIN_DISPLAY_NAME_LENGTH,\n MIN_LEAGUE_DESCRIPTION_LENGTH,\n MIN_LEAGUE_TITLE_LENGTH,\n MIN_REPAIR_REASON_LENGTH,\n MIN_TEAM_JOIN_REQUEST_MESSAGE_LENGTH,\n MIN_TEAM_NAME_LENGTH,\n} from '../constants/business.js';\n\n/**\n * The reason an admin gives for a repair action, as `repairReasonSchema` reads it: trimmed, then\n * bounded by the repair-reason limits, with any character and line breaks allowed.\n */\nexport const REPAIR_REASON_INPUT_FORMAT = defineInputFormat({\n format: 'none',\n min: MIN_REPAIR_REASON_LENGTH,\n max: MAX_REPAIR_REASON_LENGTH,\n});\n\n/**\n * The evidence an operator records for a cutover step the console cannot see done — an export's\n * operation name, a revocation's console record: trimmed, then bounded by the repair-reason limits,\n * line breaks allowed.\n */\nexport const MIGRATION_EVIDENCE_INPUT_FORMAT = defineInputFormat({\n format: 'none',\n min: MIN_REPAIR_REASON_LENGTH,\n max: MAX_REPAIR_REASON_LENGTH,\n});\n\n/**\n * A player's message to the team they ask to join, as `teamJoinRequestMessageSchema` reads it:\n * trimmed, then bounded by the join-request message limits, with any character and line breaks\n * allowed.\n */\nexport const TEAM_JOIN_REQUEST_MESSAGE_INPUT_FORMAT = defineInputFormat({\n format: 'none',\n min: MIN_TEAM_JOIN_REQUEST_MESSAGE_LENGTH,\n max: MAX_TEAM_JOIN_REQUEST_MESSAGE_LENGTH,\n});\n\n/**\n * The optional note a team sends with an invitation, as `teamInvitationMessageSchema` reads it:\n * trimmed, empty allowed, then bounded by the invitation note limit, line breaks allowed.\n */\nexport const TEAM_INVITATION_MESSAGE_INPUT_FORMAT = defineInputFormat({\n format: 'none',\n min: 0,\n max: MAX_TEAM_INVITATION_MESSAGE_LENGTH,\n});\n\n/**\n * A scorer's note on one person in a live game (\"red shirt\", \"#9\"), as `gameMemoSchema` reads it:\n * trimmed, one line, empty allowed — an empty memo clears the note — then bounded by the memo cap.\n */\nexport const GAME_MEMO_INPUT_FORMAT = defineInputFormat({\n format: 'singleLine',\n min: 0,\n max: MAX_GAME_MEMO_LENGTH,\n});\n\n/**\n * A person's display name — an account's, or a ghost player's, as both ghost doors and the admin's\n * ghost captain ask for it — as `displayNameSchema` reads it: trimmed, one line, then bounded by the\n * display-name limits.\n */\nexport const DISPLAY_NAME_INPUT_FORMAT = defineInputFormat({\n format: 'singleLine',\n min: MIN_DISPLAY_NAME_LENGTH,\n max: MAX_DISPLAY_NAME_LENGTH,\n});\n\n/**\n * A team's name, as `teamNameSchema` reads it at creation and at an admin's rename: trimmed, one\n * line, then bounded by the team-name limits.\n */\nexport const TEAM_NAME_INPUT_FORMAT = defineInputFormat({\n format: 'singleLine',\n min: MIN_TEAM_NAME_LENGTH,\n max: MAX_TEAM_NAME_LENGTH,\n});\n\n/**\n * The number the league reaches a team on, as `contactPhoneSchema` reads it: trimmed, one line,\n * required, and bounded by the contact-phone cap. It is kept as typed — no format is imposed.\n */\nexport const CONTACT_PHONE_INPUT_FORMAT = defineInputFormat({\n format: 'singleLine',\n min: 1,\n max: MAX_CONTACT_PHONE_LENGTH,\n});\n\n/**\n * The account's optional default contact phone on the settings page: the contact-phone format with\n * empty allowed. Empty means remove the saved number — the form sends it as\n * `UpdateAccountSettingsInput.defaultContactPhone: null` — and any other value is held to\n * `CONTACT_PHONE_INPUT_FORMAT`'s trim, one line, and cap.\n */\nexport const OPTIONAL_CONTACT_PHONE_INPUT_FORMAT = defineInputFormat({\n format: 'singleLine',\n min: 0,\n max: MAX_CONTACT_PHONE_LENGTH,\n});\n\n/**\n * An award's name in the catalog, as `awardNameSchema` reads it — at creation, sent with the award's\n * first badge: trimmed, one line, then bounded by the award-name limits.\n */\nexport const AWARD_NAME_INPUT_FORMAT = defineInputFormat({\n format: 'singleLine',\n min: MIN_AWARD_NAME_LENGTH,\n max: MAX_AWARD_NAME_LENGTH,\n});\n\n/**\n * A league's title, as `leagueTitleSchema` reads it at creation and at the settings edit: trimmed,\n * one line, then bounded by the league-title limits.\n */\nexport const LEAGUE_TITLE_INPUT_FORMAT = defineInputFormat({\n format: 'singleLine',\n min: MIN_LEAGUE_TITLE_LENGTH,\n max: MAX_LEAGUE_TITLE_LENGTH,\n});\n\n/**\n * A league's description, as `leagueDescriptionSchema` reads it at creation and at the settings\n * edit: trimmed, then bounded by the league-description limits, line breaks allowed.\n */\nexport const LEAGUE_DESCRIPTION_INPUT_FORMAT = defineInputFormat({\n format: 'none',\n min: MIN_LEAGUE_DESCRIPTION_LENGTH,\n max: MAX_LEAGUE_DESCRIPTION_LENGTH,\n});\n\n/** A venue's name, as `gameLocationNameSchema` reads it: trimmed, one line, required, within its cap. */\nexport const GAME_LOCATION_NAME_INPUT_FORMAT = defineInputFormat({\n format: 'singleLine',\n min: 1,\n max: MAX_GAME_LOCATION_NAME_LENGTH,\n});\n\n/**\n * A venue's street address, as `gameLocationStreetAddressSchema` reads it: trimmed, one line,\n * required, within its cap.\n */\nexport const GAME_LOCATION_STREET_ADDRESS_INPUT_FORMAT = defineInputFormat({\n format: 'singleLine',\n min: 1,\n max: MAX_GAME_LOCATION_STREET_ADDRESS_LENGTH,\n});\n\n/**\n * One court, sheet, or room of a venue, as `gameLocationSubLocationSchema` reads it: trimmed, one\n * line, required, within its cap.\n */\nexport const GAME_LOCATION_SUB_LOCATION_INPUT_FORMAT = defineInputFormat({\n format: 'singleLine',\n min: 1,\n max: MAX_GAME_LOCATION_SUB_LOCATION_LENGTH,\n});\n\n/**\n * A venue's memo, as `gameLocationMemoSchema` reads it: trimmed, line breaks allowed, empty allowed —\n * an empty memo means the venue has none — within its cap.\n */\nexport const GAME_LOCATION_MEMO_INPUT_FORMAT = defineInputFormat({\n format: 'none',\n min: 0,\n max: MAX_GAME_LOCATION_MEMO_LENGTH,\n});\n\n/** A schedule week's name, as `scheduleWeekTitleSchema` reads it: trimmed, one line, required. */\nexport const SCHEDULE_WEEK_TITLE_INPUT_FORMAT = defineInputFormat({\n format: 'singleLine',\n min: 1,\n max: MAX_SCHEDULE_WEEK_TITLE_LENGTH,\n});\n\n/**\n * A waiver template's title, as `waiverTemplateTitleSchema` reads it. A waiver is a legal artifact a\n * player signs, so its words are kept exactly as typed; it still cannot be blank.\n */\nexport const WAIVER_TEMPLATE_TITLE_INPUT_FORMAT = defineInputFormat({\n format: 'singleLine',\n min: 1,\n max: MAX_WAIVER_TEMPLATE_TITLE_LENGTH,\n keepAsTyped: true,\n});\n\n/**\n * A waiver template's wording, as `waiverTemplateTextSchema` reads it: the legal text a player signs,\n * kept exactly as typed, line breaks allowed, never blank.\n */\nexport const WAIVER_TEMPLATE_TEXT_INPUT_FORMAT = defineInputFormat({\n format: 'none',\n min: 1,\n max: MAX_WAIVER_TEMPLATE_TEXT_LENGTH,\n keepAsTyped: true,\n});\n\n/** The landing page's hero title: trimmed, one line; blank shows the default heading. */\nexport const LANDING_HERO_TITLE_INPUT_FORMAT = defineInputFormat({\n format: 'singleLine',\n min: 0,\n max: MAX_LANDING_HERO_TITLE_LENGTH,\n});\n\n/** The landing page's about text: trimmed, line breaks allowed, empty allowed. */\nexport const LANDING_ABOUT_TEXT_INPUT_FORMAT = defineInputFormat({\n format: 'none',\n min: 0,\n max: MAX_LANDING_ABOUT_TEXT_LENGTH,\n});\n\n/** The message shown while the app is in maintenance; empty shows none. */\nexport const MAINTENANCE_MESSAGE_INPUT_FORMAT = defineInputFormat({\n format: 'none',\n min: 0,\n max: MAX_MAINTENANCE_MESSAGE_LENGTH,\n});\n\n/** The site announcement banner; empty clears it. */\nexport const ANNOUNCEMENT_MESSAGE_INPUT_FORMAT = defineInputFormat({\n format: 'none',\n min: 0,\n max: MAX_ANNOUNCEMENT_MESSAGE_LENGTH,\n});\n\n/** The published app version the version gate compares against; never blank. */\nexport const APP_VERSION_INPUT_FORMAT = defineInputFormat({\n format: 'none',\n min: 1,\n max: MAX_APP_VERSION_LENGTH,\n});\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../src/migration-console/manifest.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAE3E,eAAO,MAAM,wBAAwB,kFAAmF,CAAC;AACzH,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1E,wFAAwF;AACxF,eAAO,MAAM,0BAA0B,oCAAqC,CAAC;AAC7E,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,0BAA0B,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9E,2DAA2D;AAC3D,eAAO,MAAM,+BAA+B,sDAMlC,CAAC;AACX,MAAM,MAAM,wBAAwB,GAAG,CAAC,OAAO,+BAA+B,CAAC,CAAC,MAAM,CAAC,CAAC;AAExF,+EAA+E;AAC/E,eAAO,MAAM,0BAA0B,gKAS7B,CAAC;AACX,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,0BAA0B,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9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C;AAC/E,iGAAiG;AACjG,eAAO,MAAM,8BAA8B,6BAA6B,CAAC;AAEzE,+FAA+F;AAC/F,wBAAgB,2BAA2B,CAAC,EAAE,EAAE,iBAAiB,GAAG,MAAM,CAIzE;AA4HD,eAAO,MAAM,0BAA0B,EAAE,SAAS,aAAa,EAmqB9D,CAAC;AAEF,4BAA4B;AAC5B,eAAO,MAAM,oBAAoB,EAAE,WAAW,CAAC,iBAAiB,EAAE,aAAa,CAE9E,CAAC;AAEF,+CAA+C;AAC/C,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,iBAAiB,EAAE,IAAI,EAAE,CAAC,GAAG,OAAO,CAAC,aAAa,EAAE;IAAE,IAAI,EAAE,CAAC,CAAA;CAAE,CAAC,EAAE,CAEhH"}
|
|
@@ -309,9 +309,9 @@ export const MIGRATION_CUTOVER_MANIFEST = [
|
|
|
309
309
|
}),
|
|
310
310
|
verifyStep(A.verifyPublicUsers, {
|
|
311
311
|
title: 'Verify the public identities',
|
|
312
|
-
summary: 'Each document holds its own uid, ghost flag, and lowercase name.',
|
|
312
|
+
summary: 'Each document holds its own uid, ghost flag, and lowercase name, and shows the featured badges its profile holds.',
|
|
313
313
|
owningStep: 'q-core',
|
|
314
|
-
dependsOn: [A.migratePublicUsers],
|
|
314
|
+
dependsOn: [A.migratePublicUsers, A.copyUserProfiles],
|
|
315
315
|
}),
|
|
316
316
|
copyStep(A.copyAwardDefinitions, {
|
|
317
317
|
title: 'Copy the award catalog',
|
|
@@ -352,36 +352,37 @@ export const MIGRATION_CUTOVER_MANIFEST = [
|
|
|
352
352
|
}),
|
|
353
353
|
copyStep(A.copyTeamMemberships, {
|
|
354
354
|
title: 'Copy the memberships',
|
|
355
|
-
summary: 'Each membership under its compound id, `member` becoming `player
|
|
355
|
+
summary: 'Each membership under its compound id, `member` becoming `player`; one whose team was not copied into its league is left behind and reported.',
|
|
356
356
|
owningStep: 'q-core',
|
|
357
|
+
dependsOn: [A.copyLeagueTeams],
|
|
357
358
|
}),
|
|
358
359
|
verifyStep(A.verifyTeamMemberships, {
|
|
359
360
|
title: 'Verify the memberships',
|
|
360
|
-
summary: 'Every V1 membership copied; a team with two captains and a ghost on two memberships are reported.',
|
|
361
|
+
summary: 'Every V1 membership copied, or absent because its team is gone; a team with two captains and a ghost on two memberships are reported.',
|
|
361
362
|
owningStep: 'q-core',
|
|
362
363
|
dependsOn: [A.copyTeamMemberships],
|
|
363
364
|
}),
|
|
364
365
|
copyStep(A.copyTeamInvitations, {
|
|
365
366
|
title: 'Copy the invitations',
|
|
366
|
-
summary: 'Each invitation by id; a pending one whose invitee is already on the team is written approved.',
|
|
367
|
+
summary: '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.',
|
|
367
368
|
owningStep: 'high-risk-callables',
|
|
368
|
-
dependsOn: [A.copyTeamMemberships],
|
|
369
|
+
dependsOn: [A.copyLeagueTeams, A.copyTeamMemberships],
|
|
369
370
|
}),
|
|
370
371
|
verifyStep(A.verifyTeamInvitations, {
|
|
371
372
|
title: 'Verify the invitations',
|
|
372
|
-
summary: 'Every V1 invitation copied as the transform makes it.',
|
|
373
|
+
summary: 'Every V1 invitation copied as the transform makes it, or absent because its team is gone.',
|
|
373
374
|
owningStep: 'high-risk-callables',
|
|
374
375
|
dependsOn: [A.copyTeamInvitations],
|
|
375
376
|
}),
|
|
376
377
|
copyStep(A.copyTeamJoinRequests, {
|
|
377
378
|
title: 'Copy the join requests',
|
|
378
|
-
summary: 'Each request by id; a pending one whose requester is already on the team is written approved.',
|
|
379
|
+
summary: '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.',
|
|
379
380
|
owningStep: 'high-risk-callables',
|
|
380
|
-
dependsOn: [A.copyTeamMemberships],
|
|
381
|
+
dependsOn: [A.copyLeagueTeams, A.copyTeamMemberships],
|
|
381
382
|
}),
|
|
382
383
|
verifyStep(A.verifyTeamJoinRequests, {
|
|
383
384
|
title: 'Verify the join requests',
|
|
384
|
-
summary: 'Every V1 request copied as the transform makes it.',
|
|
385
|
+
summary: 'Every V1 request copied as the transform makes it, or absent because its team is gone.',
|
|
385
386
|
owningStep: 'high-risk-callables',
|
|
386
387
|
dependsOn: [A.copyTeamJoinRequests],
|
|
387
388
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest.js","sourceRoot":"","sources":["../../src/migration-console/manifest.ts"],"names":[],"mappings":"AAAA,oGAAoG;AACpG,8FAA8F;AAC9F,mGAAmG;AACnG,mCAAmC;AACnC,EAAE;AACF,sBAAsB;AACtB,+FAA+F;AAC/F,mGAAmG;AACnG,6FAA6F;AAC7F,gGAAgG;AAChG,6EAA6E;AAC7E,kGAAkG;AAClG,yFAAyF;AACzF,kGAAkG;AAClG,+DAA+D;AAC/D,8FAA8F;AAC9F,EAAE;AACF,oGAAoG;AACpG,+FAA+F;AAC/F,iFAAiF;AAEjF,OAAO,EAAE,oBAAoB,IAAI,CAAC,EAAE,MAAM,iBAAiB,CAAC;AAI5D,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,YAAY,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,eAAe,CAAU,CAAC;AAGzH,wFAAwF;AACxF,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,OAAO,EAAE,cAAc,CAAU,CAAC;AAG7E,2DAA2D;AAC3D,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC7C,6FAA6F;IAC7F,oBAAoB;IACpB,gBAAgB;IAChB,uEAAuE;IACvE,uBAAuB;CACf,CAAC;AAGX,+EAA+E;AAC/E,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,MAAM;IACN,QAAQ;IACR,iBAAiB;IACjB,qBAAqB;IACrB,mBAAmB;IACnB,wBAAwB;IACxB,mBAAmB;IACnB,mBAAmB;CACX,CAAC;AAkEX,gFAAgF;AAChF,MAAM,CAAC,MAAM,qCAAqC,GAAG,gCAAgC,CAAC;AACtF,0EAA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AC,CAAC,CAAC,iBAAiB,CAAC;QACnC,YAAY,EACV,6TAA6T;QAC/T,QAAQ,EAAE,iEAAiE;QAC3E,gBAAgB,EAAE,qBAAqB;KACxC;CACF,CAAC;AAEF,4BAA4B;AAC5B,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,+CAA+C;AAC/C,MAAM,UAAU,oBAAoB,CAA8B,IAAO;IACvE,OAAO,0BAA0B,CAAC,MAAM,CAAC,CAAC,IAAI,EAA+C,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;AACtH,CAAC","sourcesContent":["// The 2.0 cutover manifest: every step of the coordinated migration, in the order the operator runs\n// them, with what each step needs first. The console's callables enforce it — an action whose\n// dependencies are not satisfied refuses to run — and its screen renders it, so both read this one\n// declaration (ARCH-101, ENG-002).\n//\n// Four kinds of step:\n// executable a console action with its own admin callable: admin-asserted, audited,\n// idempotent, resumable by its operation id, and re-runnable after a partial\n// failure. A write action offers a dry run; a verification only reads.\n// productControl a product callable the operator runs from its own screen (the Fix stats\n// actions and the stats check). The console never runs\n// a second copy of it; it records the run, checking the run's own evidence.\n// operatorCheckpoint external work the app cannot do safely — an export, a credential\n// revocation, a manual re-upload. Recorded with the operator's evidence; it\n// never claims the console performed it.\n// cutoverMarker the console's own record that the product now owns every destination.\n//\n// `dependsOn` is enforced: each id must be satisfied — an executable action's last real run reached\n// its end (a verification's also passed), and a recorded step recorded — before the step runs.\n// `orderedAfter` is display order only: a sequence that is ordering, not a gate.\n\nimport { MIGRATION_ACTION_IDS as A } from './action-ids.js';\nimport type { MigrationActionId } from './action-ids.js';\nimport type { RegisteredCollectionPath } from '../doc-schemas/registry.js';\n\nexport const MIGRATION_STEP_KIND_KEYS = ['executable', 'productControl', 'operatorCheckpoint', 'cutoverMarker'] as const;\nexport type MigrationStepKind = (typeof MIGRATION_STEP_KIND_KEYS)[number];\n\n/** What an executable action's pages return: documents written, or records compared. */\nexport const MIGRATION_RESULT_KIND_KEYS = ['write', 'verification'] as const;\nexport type MigrationResultKind = (typeof MIGRATION_RESULT_KIND_KEYS)[number];\n\n/** Where a product control's completion is proven from. */\nexport const MIGRATION_CONTROL_EVIDENCE_KEYS = [\n // The control's `statsOperations` document: a real run, complete, over the whole scope, that\n // left no game out.\n 'statsOperation',\n // The validation's report: complete, over everything, with no finding.\n 'statsValidationReport',\n] as const;\nexport type MigrationControlEvidence = (typeof MIGRATION_CONTROL_EVIDENCE_KEYS)[number];\n\n/** The step folder under the migration plan that owns a step's correctness. */\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 /** What the step changes or proves, in a sentence or two the operator reads before running it. */\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 /** The callable that runs one page of it. */\n readonly callable: string;\n readonly resultKind: MigrationResultKind;\n /** Whether it removes V1 data or revokes access — run only once its gates have passed. */\n readonly destructive: boolean;\n /** False for an action that is one bounded call, never paged. */\n readonly paged: boolean;\n /** The page size the console proposes; each core refuses a page larger than it can commit. */\n readonly defaultPageSize: number;\n /** A verification that informs the rehearsal and gates nothing. */\n readonly informational: boolean;\n /** Why replaying a page, or the whole action, cannot duplicate an effect. */\n readonly idempotency: string;\n /** The deterministic order it pages in, and what its resume key names. */\n readonly resumeKey: string;\n /** The safe response after a partial run. */\n readonly recovery: string;\n}\n\nexport interface ProductControlMigrationStep extends MigrationStepBase {\n readonly kind: 'productControl';\n /** The product callable the operator runs. */\n readonly callable: string;\n /** Where in the product the operator runs it, and with what scope. */\n readonly instructions: string;\n readonly evidence: MigrationControlEvidence;\n /** The documents it rebuilds, as `COLLECTION_SCHEMAS` templates: a destination no copy writes. */\n readonly destinations: readonly RegisteredCollectionPath[];\n}\n\nexport interface OperatorCheckpointMigrationStep extends MigrationStepBase {\n readonly kind: 'operatorCheckpoint';\n readonly instructions: string;\n /** What the operator records as proof before the next step unlocks. */\n readonly evidence: string;\n /** The point past which the external action cannot be undone, or null when none exists. */\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\n/** The callable that records a product control's run, checking its evidence. */\nexport const RECORD_MIGRATION_CONTROL_RUN_CALLABLE = 'adminRecordMigrationControlRun';\n/** The callable that records an operator checkpoint with its evidence. */\nexport const RECORD_MIGRATION_CHECKPOINT_CALLABLE = 'adminRecordMigrationCheckpoint';\n/** The callable that records the cutover. */\nexport const RECORD_MIGRATION_CUTOVER_CALLABLE = 'adminRecordMigrationCutover';\n/** The callable that reads the console: the cutover marker, the lock, and every step's state. */\nexport const GET_MIGRATION_CONSOLE_CALLABLE = 'adminGetMigrationConsole';\n\n/** The console's callable name for an executable action: `admin` + its verb and its object. */\nexport function migrationActionCallableName(id: MigrationActionId): string {\n const [verb = '', object = ''] = id.split('.');\n const capitalize = (word: string) => word.charAt(0).toUpperCase() + word.slice(1);\n return `admin${capitalize(verb)}${capitalize(object)}`;\n}\n\nconst COPY_IDEMPOTENCY = '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 = 'Deletes by id; a document already gone is skipped, so a re-run removes only what is left.';\nconst BY_DOCUMENT_ID = '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 = 'Repair what it reports, through its copy or its resolution, and verify again.';\nconst DELETE_RECOVERY = 'Forward repair only: the retained V1 Firestore export holds what was deleted.';\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}\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 informational: false,\n idempotency: COPY_IDEMPOTENCY,\n resumeKey: options.resumeKey ?? BY_DOCUMENT_ID,\n recovery: COPY_RECOVERY,\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(id: MigrationActionId, options: ExecutableOptions & { informational?: boolean }): 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 informational: options.informational ?? false,\n idempotency: VERIFY_IDEMPOTENCY,\n resumeKey: options.resumeKey ?? BY_DOCUMENT_ID,\n recovery: VERIFY_RECOVERY,\n title: options.title,\n summary: options.summary,\n owningStep: options.owningStep,\n dependsOn: options.dependsOn ?? [],\n orderedAfter: options.orderedAfter ?? [],\n };\n}\n\nfunction deleteStep(id: MigrationActionId, options: ExecutableOptions): 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 informational: false,\n idempotency: DELETE_IDEMPOTENCY,\n resumeKey: options.resumeKey ?? BY_DOCUMENT_ID,\n recovery: DELETE_RECOVERY,\n title: options.title,\n summary: options.summary,\n owningStep: options.owningStep,\n dependsOn: options.dependsOn ?? [],\n orderedAfter: options.orderedAfter ?? [],\n };\n}\n\n/** The copies whose verifications must pass before the rebuild reads the games they copied. */\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\n/**\n * Every copy's verification. Each must pass before the cutover is recorded: a failed or skipped\n * record keeps the migration from being declared complete.\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 // ── Before anything is read ────────────────────────────────────────────────────────────────────\n {\n kind: 'operatorCheckpoint',\n id: A.checkpointV1FirestoreExport,\n title: 'Keep a managed export of the V1 database',\n summary: '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 // ── Global roles ───────────────────────────────────────────────────────────────────────────────\n copyStep(A.copyAdminList, {\n title: 'Copy the admin and referee rosters',\n summary: '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 // ── App configuration ──────────────────────────────────────────────────────────────────────────\n copyStep(A.copyAppConfig, {\n title: 'Copy the app configuration',\n summary: 'The version and the banner from `landing/base` become `_appConfig/app`, its switches at their open defaults.',\n owningStep: 'q-core',\n resumeKey: SINGLE_DOCUMENT,\n }),\n copyStep(A.copyLandingPageConfig, {\n title: 'Copy the landing page copy',\n summary: 'The hero title and the about text become `_appConfig/landingPage`; its picture arrives with the picture carry.',\n owningStep: 'q-core',\n resumeKey: SINGLE_DOCUMENT,\n }),\n copyStep(A.copyStatsBeacon, {\n title: 'Copy the stats beacon',\n summary: '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: '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 // ── Setup's catalogs ───────────────────────────────────────────────────────────────────────────\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 }),\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: 'Each venue on `landing/admin` becomes a `gameLocations` document under its id; its picture arrives with the picture carry.',\n owningStep: 'q-core',\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 // ── Accounts and identity ──────────────────────────────────────────────────────────────────────\n copyStep(A.copyUserProfiles, {\n title: 'Copy the profiles',\n summary: 'Each `users` document becomes its profile and its owner-only private document, every account active.',\n owningStep: 'auth',\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: '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 }),\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; two names that collide are reported for an admin rename.',\n owningStep: 'auth',\n dependsOn: [A.copyUserProfiles],\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: 'Each `publicUsers` document is rewritten where it sits: epoch timestamps, the recomputed lowercase name, the ghost flag.',\n owningStep: 'q-core',\n }),\n verifyStep(A.verifyPublicUsers, {\n title: 'Verify the public identities',\n summary: 'Each document holds its own uid, ghost flag, and lowercase name.',\n owningStep: 'q-core',\n dependsOn: [A.migratePublicUsers],\n }),\n copyStep(A.copyAwardDefinitions, {\n title: 'Copy the award catalog',\n summary: '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],\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: '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 // ── Leagues and teams ──────────────────────────────────────────────────────────────────────────\n copyStep(A.copySportLeagues, {\n title: 'Copy the leagues',\n summary: 'Each league under its id — closed leagues included; its pictures arrive with the picture carry.',\n owningStep: 'q-core',\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 }),\n verifyStep(A.verifyLeagueTeams, {\n title: 'Verify the teams',\n summary: '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: 'Each membership under its compound id, `member` becoming `player`.',\n owningStep: 'q-core',\n }),\n verifyStep(A.verifyTeamMemberships, {\n title: 'Verify the memberships',\n summary: 'Every V1 membership copied; 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: 'Each invitation by id; a pending one whose invitee is already on the team is written approved.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.copyTeamMemberships],\n }),\n verifyStep(A.verifyTeamInvitations, {\n title: 'Verify the invitations',\n summary: 'Every V1 invitation copied as the transform makes it.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.copyTeamInvitations],\n }),\n copyStep(A.copyTeamJoinRequests, {\n title: 'Copy the join requests',\n summary: 'Each request by id; a pending one whose requester is already on the team is written approved.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.copyTeamMemberships],\n }),\n verifyStep(A.verifyTeamJoinRequests, {\n title: 'Verify the join requests',\n summary: 'Every V1 request copied as the transform makes it.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.copyTeamJoinRequests],\n }),\n copyStep(A.copyLeagueFreeAgents, {\n title: 'Copy the free-agent signups',\n summary: '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 }),\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 // ── Signed waivers and hardware contracts ──────────────────────────────────────────────────────\n copyStep(A.copySignedWaivers, {\n title: 'Copy the signed waivers',\n summary: '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 }),\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: 'Each contract from both V1 collections under its id; its signature file stays where it is.',\n owningStep: 'high-risk-callables',\n resumeKey: 'The V1 collections in turn, each by document id; the resume key is `{collection}/{id}`.',\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: '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: '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 // ── Games ──────────────────────────────────────────────────────────────────────────────────────\n copyStep(A.copyGameRosterPlayers, {\n title: 'Copy the game rosters',\n summary: '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 }),\n {\n kind: 'executable',\n id: A.resolveUnrosteredStatLine,\n callable: migrationActionCallableName(A.resolveUnrosteredStatLine),\n resultKind: 'write',\n destructive: false,\n paged: false,\n defaultPageSize: 1,\n 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 title: 'Resolve a stat line no roster places',\n summary: '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: '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],\n orderedAfter: [A.resolveUnrosteredStatLine],\n resumeKey: 'The V1 games by document id; a game’s documents commit before its id becomes the resume key.',\n defaultPageSize: 20,\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: '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 }),\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 informational: false,\n idempotency: '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: 'Run it again: a game held by another operation is reported and reconciled on the next run.',\n title: 'Reconcile the open games’ rosters',\n summary: '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 // ── Pictures ───────────────────────────────────────────────────────────────────────────────────\n copyStep(A.carryV1Pictures, {\n title: 'Carry the V1 pictures onto the pipeline',\n summary: 'Each league, landing, venue, and award image is staged and accepted through the upload pipeline, which processes and publishes it. A rehearsal reports every source unavailable.',\n owningStep: 'uploads-and-media',\n dependsOn: [A.copySportLeagues, A.copyLandingPageConfig, A.copyGameLocations, A.copyAwardDefinitions],\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: '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 // ── The ghost names V1 left behind ─────────────────────────────────────────────────────────────\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 informational: false,\n idempotency: '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 title: 'Remove the ghost names nothing references',\n summary: '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: [A.verifyPublicUsers, A.verifyTeamMemberships, A.verifyGameRosterPlayers, A.verifyGameStats],\n orderedAfter: [],\n },\n\n // ── The derived statistics ─────────────────────────────────────────────────────────────────────\n {\n kind: 'productControl',\n id: A.rebuildLeagueStats,\n title: 'Rebuild every league’s stats',\n summary: '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: '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: '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: '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: '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: 'Run the hall-of-fame rebuild from Stats › Fix stats once for each sport that keeps a hall of fame, as real runs, and record every run.',\n evidence: 'statsOperation',\n },\n {\n kind: 'productControl',\n id: A.validateStats,\n title: 'Validate the stats',\n summary: 'Check stats over everything; it must report no finding.',\n owningStep: 'stat-data-model',\n dependsOn: [A.rebuildSportHallOfFame],\n orderedAfter: [],\n callable: 'runStatsValidation',\n destinations: ['statsValidationReports/{reportId}'],\n instructions: 'Run “Check stats” over everything from Stats › Fix stats and let it finish.',\n evidence: 'statsValidationReport',\n },\n verifyStep(A.verifyLeaguePlayerStats, {\n title: 'Compare the league player totals with V1',\n summary: '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: '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 // ── The cutover ────────────────────────────────────────────────────────────────────────────────\n {\n kind: 'cutoverMarker',\n id: A.recordCutoverLive,\n callable: RECORD_MIGRATION_CUTOVER_CALLABLE,\n title: 'Record the cutover',\n summary: '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: 'Recording the cutover. It is never undone: every copy refuses a live destination after it.',\n },\n\n // ── Cleanup: each delete gated on the verifications its core asserts ───────────────────────────\n deleteStep(A.deleteV1AdminRoles, {\n title: 'Remove the V1 role maps',\n summary: 'The `isAdmin` and `referees` fields on `landing/admin`; the document goes with its last carried row.',\n owningStep: 'auth',\n dependsOn: [A.verifyAdminList],\n resumeKey: SINGLE_DOCUMENT,\n }),\n deleteStep(A.deleteV1LandingBase, {\n title: 'Delete `landing/base`',\n summary: 'The V1 configuration document, once its three documents and its picture are verified.',\n owningStep: 'q-core',\n dependsOn: [A.verifyAppConfig, A.verifyLandingPageConfig, A.verifyStatsBeacon, A.verifyV1Pictures],\n resumeKey: SINGLE_DOCUMENT,\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 }),\n deleteStep(A.deleteV1GameLocations, {\n title: 'Remove the V1 venues',\n summary: 'The `locations` field on `landing/admin`; the document goes with its last carried row.',\n owningStep: 'q-core',\n dependsOn: [A.verifyGameLocations, A.verifyV1Pictures],\n resumeKey: SINGLE_DOCUMENT,\n }),\n deleteStep(A.deleteV1AwardCatalog, {\n title: 'Remove the V1 award catalog',\n summary: 'The `awards` field on `landing/admin`; the document goes with its last carried row.',\n owningStep: 'uploads-and-media',\n dependsOn: [A.verifyAwardDefinitions, A.verifyUserProfiles, A.verifyPublicUsers, A.verifyV1Pictures],\n resumeKey: SINGLE_DOCUMENT,\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 }),\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 }),\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 }),\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 }),\n deleteStep(A.deleteV1TeamMembers, {\n title: 'Delete the V1 memberships',\n summary: 'The `teamMembers` collection.',\n owningStep: 'q-core',\n dependsOn: [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 }),\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 informational: false,\n idempotency: '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 title: 'Revoke the V1 signature download links',\n summary: '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: [A.verifySignedWaivers, A.verifyHardwareLoanContracts, A.verifySignatureFilesResolvable],\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 }),\n deleteStep(A.deleteV1HardwareContracts, {\n title: 'Delete the V1 hardware contracts',\n summary: 'Both V1 contract collections; the signature files stay, named by the copied contracts.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.verifyHardwareLoanContracts],\n resumeKey: 'The V1 collections in turn, each by document id; the resume key is `{collection}/{id}`.',\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 }),\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: [A.verifySportGames, A.verifyGameStats, A.verifyGameRosterPlayers, A.validateStats, A.deleteV1GameRosters],\n }),\n deleteStep(A.deleteV1LeagueChats, {\n title: 'Delete the V1 league chats',\n summary: '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: 'The V1 leagues by document id; the resume key is the last league id, or `{leagueId}/unfinished` while a league holds more chats than one page deletes.',\n defaultPageSize: 50,\n }),\n deleteStep(A.deleteV1Leagues, {\n title: 'Delete the V1 leagues',\n summary: '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 }),\n deleteStep(A.deleteV1HallOfFame, {\n title: 'Delete the V1 hall of fame',\n summary: '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 }),\n deleteStep(A.deleteV1ValidationReports, {\n title: 'Delete the V1 validation reports',\n summary: '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 }),\n deleteStep(A.deleteV1AdminStats, {\n title: 'Delete the V1 dashboard counts',\n summary: 'The `adminStats` collection. Nothing is copied: the dashboard counts are counted live.',\n owningStep: 'q-core',\n dependsOn: [A.checkpointV1FirestoreExport],\n }),\n verifyStep(A.verifyV1CommerceDiscardable, {\n title: 'Check the V1 store holds no purchase',\n summary: '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 }),\n\n // ── After the cutover ──────────────────────────────────────────────────────────────────────────\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: '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: '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: '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\n/** Every step by its id. */\nexport const MIGRATION_STEP_BY_ID: ReadonlyMap<MigrationActionId, MigrationStep> = new Map(\n MIGRATION_CUTOVER_MANIFEST.map((step) => [step.id, step]),\n);\n\n/** The steps of one kind, in cutover order. */\nexport function migrationStepsOfKind<K extends MigrationStepKind>(kind: K): Extract<MigrationStep, { kind: K }>[] {\n return MIGRATION_CUTOVER_MANIFEST.filter((step): step is Extract<MigrationStep, { kind: K }> => step.kind === kind);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"manifest.js","sourceRoot":"","sources":["../../src/migration-console/manifest.ts"],"names":[],"mappings":"AAAA,oGAAoG;AACpG,8FAA8F;AAC9F,mGAAmG;AACnG,mCAAmC;AACnC,EAAE;AACF,sBAAsB;AACtB,+FAA+F;AAC/F,mGAAmG;AACnG,6FAA6F;AAC7F,gGAAgG;AAChG,6EAA6E;AAC7E,kGAAkG;AAClG,yFAAyF;AACzF,kGAAkG;AAClG,+DAA+D;AAC/D,8FAA8F;AAC9F,EAAE;AACF,oGAAoG;AACpG,+FAA+F;AAC/F,iFAAiF;AAEjF,OAAO,EAAE,oBAAoB,IAAI,CAAC,EAAE,MAAM,iBAAiB,CAAC;AAI5D,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,YAAY,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,eAAe,CAAU,CAAC;AAGzH,wFAAwF;AACxF,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,OAAO,EAAE,cAAc,CAAU,CAAC;AAG7E,2DAA2D;AAC3D,MAAM,CAAC,MAAM,+BAA+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,KAAK,EAAE,wCAAwC;QAC/C,OAAO,EAAE,oHAAoH;QAC7H,UAAU,EAAE,mBAAmB;QAC/B,SAAS,EAAE,CAAC,CAAC,CAAC,iBAAiB,CAAC;QAChC,YAAY,EAAE,EAAE;QAChB,YAAY,EACV,yUAAyU;QAC3U,QAAQ,EAAE,+IAA+I;QACzJ,gBAAgB,EAAE,4BAA4B;KAC/C;IACD;QACE,IAAI,EAAE,oBAAoB;QAC1B,EAAE,EAAE,CAAC,CAAC,kCAAkC;QACxC,KAAK,EAAE,oDAAoD;QAC3D,OAAO,EAAE,sJAAsJ;QAC/J,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,4BAA4B;AAC5B,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,+CAA+C;AAC/C,MAAM,UAAU,oBAAoB,CAA8B,IAAO;IACvE,OAAO,0BAA0B,CAAC,MAAM,CAAC,CAAC,IAAI,EAA+C,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;AACtH,CAAC","sourcesContent":["// The 2.0 cutover manifest: every step of the coordinated migration, in the order the operator runs\n// them, with what each step needs first. The console's callables enforce it — an action whose\n// dependencies are not satisfied refuses to run — and its screen renders it, so both read this one\n// declaration (ARCH-101, ENG-002).\n//\n// Four kinds of step:\n// executable a console action with its own admin callable: admin-asserted, audited,\n// idempotent, resumable by its operation id, and re-runnable after a partial\n// failure. A write action offers a dry run; a verification only reads.\n// productControl a product callable the operator runs from its own screen (the Fix stats\n// actions and the stats check). The console never runs\n// a second copy of it; it records the run, checking the run's own evidence.\n// operatorCheckpoint external work the app cannot do safely — an export, a credential\n// revocation, a manual re-upload. Recorded with the operator's evidence; it\n// never claims the console performed it.\n// cutoverMarker the console's own record that the product now owns every destination.\n//\n// `dependsOn` is enforced: each id must be satisfied — an executable action's last real run reached\n// its end (a verification's also passed), and a recorded step recorded — before the step runs.\n// `orderedAfter` is display order only: a sequence that is ordering, not a gate.\n\nimport { MIGRATION_ACTION_IDS as A } from './action-ids.js';\nimport type { MigrationActionId } from './action-ids.js';\nimport type { RegisteredCollectionPath } from '../doc-schemas/registry.js';\n\nexport const MIGRATION_STEP_KIND_KEYS = ['executable', 'productControl', 'operatorCheckpoint', 'cutoverMarker'] as const;\nexport type MigrationStepKind = (typeof MIGRATION_STEP_KIND_KEYS)[number];\n\n/** What an executable action's pages return: documents written, or records compared. */\nexport const MIGRATION_RESULT_KIND_KEYS = ['write', 'verification'] as const;\nexport type MigrationResultKind = (typeof MIGRATION_RESULT_KIND_KEYS)[number];\n\n/** Where a product control's completion is proven from. */\nexport const MIGRATION_CONTROL_EVIDENCE_KEYS = [\n // The control's `statsOperations` document: a real run, complete, over the whole scope, that\n // left no game out.\n 'statsOperation',\n // The validation's report: complete, over everything, with no finding.\n 'statsValidationReport',\n] as const;\nexport type MigrationControlEvidence = (typeof MIGRATION_CONTROL_EVIDENCE_KEYS)[number];\n\n/** The step folder under the migration plan that owns a step's correctness. */\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 /** What the step changes or proves, in a sentence or two the operator reads before running it. */\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 /** The callable that runs one page of it. */\n readonly callable: string;\n readonly resultKind: MigrationResultKind;\n /** Whether it removes V1 data or revokes access — run only once its gates have passed. */\n readonly destructive: boolean;\n /** False for an action that is one bounded call, never paged. */\n readonly paged: boolean;\n /** The page size the console proposes; each core refuses a page larger than it can commit. */\n readonly defaultPageSize: number;\n /** A verification that informs the rehearsal and gates nothing. */\n readonly informational: boolean;\n /** Why replaying a page, or the whole action, cannot duplicate an effect. */\n readonly idempotency: string;\n /** The deterministic order it pages in, and what its resume key names. */\n readonly resumeKey: string;\n /** The safe response after a partial run. */\n readonly recovery: string;\n}\n\nexport interface ProductControlMigrationStep extends MigrationStepBase {\n readonly kind: 'productControl';\n /** The product callable the operator runs. */\n readonly callable: string;\n /** Where in the product the operator runs it, and with what scope. */\n readonly instructions: string;\n readonly evidence: MigrationControlEvidence;\n /** The documents it rebuilds, as `COLLECTION_SCHEMAS` templates: a destination no copy writes. */\n readonly destinations: readonly RegisteredCollectionPath[];\n}\n\nexport interface OperatorCheckpointMigrationStep extends MigrationStepBase {\n readonly kind: 'operatorCheckpoint';\n readonly instructions: string;\n /** What the operator records as proof before the next step unlocks. */\n readonly evidence: string;\n /** The point past which the external action cannot be undone, or null when none exists. */\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\n/** The callable that records a product control's run, checking its evidence. */\nexport const RECORD_MIGRATION_CONTROL_RUN_CALLABLE = 'adminRecordMigrationControlRun';\n/** The callable that records an operator checkpoint with its evidence. */\nexport const RECORD_MIGRATION_CHECKPOINT_CALLABLE = 'adminRecordMigrationCheckpoint';\n/** The callable that records the cutover. */\nexport const RECORD_MIGRATION_CUTOVER_CALLABLE = 'adminRecordMigrationCutover';\n/** The callable that reads the console: the cutover marker, the lock, and every step's state. */\nexport const GET_MIGRATION_CONSOLE_CALLABLE = 'adminGetMigrationConsole';\n\n/** The console's callable name for an executable action: `admin` + its verb and its object. */\nexport function migrationActionCallableName(id: MigrationActionId): string {\n const [verb = '', object = ''] = id.split('.');\n const capitalize = (word: string) => word.charAt(0).toUpperCase() + word.slice(1);\n return `admin${capitalize(verb)}${capitalize(object)}`;\n}\n\nconst COPY_IDEMPOTENCY = '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 = 'Deletes by id; a document already gone is skipped, so a re-run removes only what is left.';\nconst BY_DOCUMENT_ID = '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 = 'Repair what it reports, through its copy or its resolution, and verify again.';\nconst DELETE_RECOVERY = 'Forward repair only: the retained V1 Firestore export holds what was deleted.';\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}\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 informational: false,\n idempotency: COPY_IDEMPOTENCY,\n resumeKey: options.resumeKey ?? BY_DOCUMENT_ID,\n recovery: COPY_RECOVERY,\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(id: MigrationActionId, options: ExecutableOptions & { informational?: boolean }): 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 informational: options.informational ?? false,\n idempotency: VERIFY_IDEMPOTENCY,\n resumeKey: options.resumeKey ?? BY_DOCUMENT_ID,\n recovery: VERIFY_RECOVERY,\n title: options.title,\n summary: options.summary,\n owningStep: options.owningStep,\n dependsOn: options.dependsOn ?? [],\n orderedAfter: options.orderedAfter ?? [],\n };\n}\n\nfunction deleteStep(id: MigrationActionId, options: ExecutableOptions): 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 informational: false,\n idempotency: DELETE_IDEMPOTENCY,\n resumeKey: options.resumeKey ?? BY_DOCUMENT_ID,\n recovery: DELETE_RECOVERY,\n title: options.title,\n summary: options.summary,\n owningStep: options.owningStep,\n dependsOn: options.dependsOn ?? [],\n orderedAfter: options.orderedAfter ?? [],\n };\n}\n\n/** The copies whose verifications must pass before the rebuild reads the games they copied. */\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\n/**\n * Every copy's verification. Each must pass before the cutover is recorded: a failed or skipped\n * record keeps the migration from being declared complete.\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 // ── Before anything is read ────────────────────────────────────────────────────────────────────\n {\n kind: 'operatorCheckpoint',\n id: A.checkpointV1FirestoreExport,\n title: 'Keep a managed export of the V1 database',\n summary: '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 // ── Global roles ───────────────────────────────────────────────────────────────────────────────\n copyStep(A.copyAdminList, {\n title: 'Copy the admin and referee rosters',\n summary: '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 // ── App configuration ──────────────────────────────────────────────────────────────────────────\n copyStep(A.copyAppConfig, {\n title: 'Copy the app configuration',\n summary: 'The version and the banner from `landing/base` become `_appConfig/app`, its switches at their open defaults.',\n owningStep: 'q-core',\n resumeKey: SINGLE_DOCUMENT,\n }),\n copyStep(A.copyLandingPageConfig, {\n title: 'Copy the landing page copy',\n summary: 'The hero title and the about text become `_appConfig/landingPage`; its picture arrives with the picture carry.',\n owningStep: 'q-core',\n resumeKey: SINGLE_DOCUMENT,\n }),\n copyStep(A.copyStatsBeacon, {\n title: 'Copy the stats beacon',\n summary: '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: '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 // ── Setup's catalogs ───────────────────────────────────────────────────────────────────────────\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 }),\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: 'Each venue on `landing/admin` becomes a `gameLocations` document under its id; its picture arrives with the picture carry.',\n owningStep: 'q-core',\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 // ── Accounts and identity ──────────────────────────────────────────────────────────────────────\n copyStep(A.copyUserProfiles, {\n title: 'Copy the profiles',\n summary: 'Each `users` document becomes its profile and its owner-only private document, every account active.',\n owningStep: 'auth',\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: '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 }),\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; two names that collide are reported for an admin rename.',\n owningStep: 'auth',\n dependsOn: [A.copyUserProfiles],\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: 'Each `publicUsers` document is rewritten where it sits: epoch timestamps, the recomputed lowercase name, the ghost flag.',\n owningStep: 'q-core',\n }),\n verifyStep(A.verifyPublicUsers, {\n title: 'Verify the public identities',\n summary: '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: '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],\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: '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 // ── Leagues and teams ──────────────────────────────────────────────────────────────────────────\n copyStep(A.copySportLeagues, {\n title: 'Copy the leagues',\n summary: 'Each league under its id — closed leagues included; its pictures arrive with the picture carry.',\n owningStep: 'q-core',\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 }),\n verifyStep(A.verifyLeagueTeams, {\n title: 'Verify the teams',\n summary: '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: '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 }),\n verifyStep(A.verifyTeamMemberships, {\n title: 'Verify the memberships',\n summary: '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: 'Each invitation by id; a pending one whose invitee is already on the team is written approved, and a pending one whose team was not copied into its league is left behind and reported.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.copyLeagueTeams, A.copyTeamMemberships],\n }),\n verifyStep(A.verifyTeamInvitations, {\n title: 'Verify the invitations',\n summary: '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: 'Each request by id; a pending one whose requester is already on the team is written approved, and a pending one whose team was not copied into its league is left behind and reported.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.copyLeagueTeams, A.copyTeamMemberships],\n }),\n verifyStep(A.verifyTeamJoinRequests, {\n title: 'Verify the join requests',\n summary: '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: '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 }),\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 // ── Signed waivers and hardware contracts ──────────────────────────────────────────────────────\n copyStep(A.copySignedWaivers, {\n title: 'Copy the signed waivers',\n summary: '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 }),\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: 'Each contract from both V1 collections under its id; its signature file stays where it is.',\n owningStep: 'high-risk-callables',\n resumeKey: 'The V1 collections in turn, each by document id; the resume key is `{collection}/{id}`.',\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: '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: '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 // ── Games ──────────────────────────────────────────────────────────────────────────────────────\n copyStep(A.copyGameRosterPlayers, {\n title: 'Copy the game rosters',\n summary: '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 }),\n {\n kind: 'executable',\n id: A.resolveUnrosteredStatLine,\n callable: migrationActionCallableName(A.resolveUnrosteredStatLine),\n resultKind: 'write',\n destructive: false,\n paged: false,\n defaultPageSize: 1,\n 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 title: 'Resolve a stat line no roster places',\n summary: '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: '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],\n orderedAfter: [A.resolveUnrosteredStatLine],\n resumeKey: 'The V1 games by document id; a game’s documents commit before its id becomes the resume key.',\n defaultPageSize: 20,\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: '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 }),\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 informational: false,\n idempotency: '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: 'Run it again: a game held by another operation is reported and reconciled on the next run.',\n title: 'Reconcile the open games’ rosters',\n summary: '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 // ── Pictures ───────────────────────────────────────────────────────────────────────────────────\n copyStep(A.carryV1Pictures, {\n title: 'Carry the V1 pictures onto the pipeline',\n summary: 'Each league, landing, venue, and award image is staged and accepted through the upload pipeline, which processes and publishes it. A rehearsal reports every source unavailable.',\n owningStep: 'uploads-and-media',\n dependsOn: [A.copySportLeagues, A.copyLandingPageConfig, A.copyGameLocations, A.copyAwardDefinitions],\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: '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 // ── The ghost names V1 left behind ─────────────────────────────────────────────────────────────\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 informational: false,\n idempotency: '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 title: 'Remove the ghost names nothing references',\n summary: '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: [A.verifyPublicUsers, A.verifyTeamMemberships, A.verifyGameRosterPlayers, A.verifyGameStats],\n orderedAfter: [],\n },\n\n // ── The derived statistics ─────────────────────────────────────────────────────────────────────\n {\n kind: 'productControl',\n id: A.rebuildLeagueStats,\n title: 'Rebuild every league’s stats',\n summary: '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: '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: '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: '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: '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: 'Run the hall-of-fame rebuild from Stats › Fix stats once for each sport that keeps a hall of fame, as real runs, and record every run.',\n evidence: 'statsOperation',\n },\n {\n kind: 'productControl',\n id: A.validateStats,\n title: 'Validate the stats',\n summary: 'Check stats over everything; it must report no finding.',\n owningStep: 'stat-data-model',\n dependsOn: [A.rebuildSportHallOfFame],\n orderedAfter: [],\n callable: 'runStatsValidation',\n destinations: ['statsValidationReports/{reportId}'],\n instructions: 'Run “Check stats” over everything from Stats › Fix stats and let it finish.',\n evidence: 'statsValidationReport',\n },\n verifyStep(A.verifyLeaguePlayerStats, {\n title: 'Compare the league player totals with V1',\n summary: '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: '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 // ── The cutover ────────────────────────────────────────────────────────────────────────────────\n {\n kind: 'cutoverMarker',\n id: A.recordCutoverLive,\n callable: RECORD_MIGRATION_CUTOVER_CALLABLE,\n title: 'Record the cutover',\n summary: '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: 'Recording the cutover. It is never undone: every copy refuses a live destination after it.',\n },\n\n // ── Cleanup: each delete gated on the verifications its core asserts ───────────────────────────\n deleteStep(A.deleteV1AdminRoles, {\n title: 'Remove the V1 role maps',\n summary: 'The `isAdmin` and `referees` fields on `landing/admin`; the document goes with its last carried row.',\n owningStep: 'auth',\n dependsOn: [A.verifyAdminList],\n resumeKey: SINGLE_DOCUMENT,\n }),\n deleteStep(A.deleteV1LandingBase, {\n title: 'Delete `landing/base`',\n summary: 'The V1 configuration document, once its three documents and its picture are verified.',\n owningStep: 'q-core',\n dependsOn: [A.verifyAppConfig, A.verifyLandingPageConfig, A.verifyStatsBeacon, A.verifyV1Pictures],\n resumeKey: SINGLE_DOCUMENT,\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 }),\n deleteStep(A.deleteV1GameLocations, {\n title: 'Remove the V1 venues',\n summary: 'The `locations` field on `landing/admin`; the document goes with its last carried row.',\n owningStep: 'q-core',\n dependsOn: [A.verifyGameLocations, A.verifyV1Pictures],\n resumeKey: SINGLE_DOCUMENT,\n }),\n deleteStep(A.deleteV1AwardCatalog, {\n title: 'Remove the V1 award catalog',\n summary: 'The `awards` field on `landing/admin`; the document goes with its last carried row.',\n owningStep: 'uploads-and-media',\n dependsOn: [A.verifyAwardDefinitions, A.verifyUserProfiles, A.verifyPublicUsers, A.verifyV1Pictures],\n resumeKey: SINGLE_DOCUMENT,\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 }),\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 }),\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 }),\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 }),\n deleteStep(A.deleteV1TeamMembers, {\n title: 'Delete the V1 memberships',\n summary: 'The `teamMembers` collection.',\n owningStep: 'q-core',\n dependsOn: [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 }),\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 informational: false,\n idempotency: '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 title: 'Revoke the V1 signature download links',\n summary: '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: [A.verifySignedWaivers, A.verifyHardwareLoanContracts, A.verifySignatureFilesResolvable],\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 }),\n deleteStep(A.deleteV1HardwareContracts, {\n title: 'Delete the V1 hardware contracts',\n summary: 'Both V1 contract collections; the signature files stay, named by the copied contracts.',\n owningStep: 'high-risk-callables',\n dependsOn: [A.verifyHardwareLoanContracts],\n resumeKey: 'The V1 collections in turn, each by document id; the resume key is `{collection}/{id}`.',\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 }),\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: [A.verifySportGames, A.verifyGameStats, A.verifyGameRosterPlayers, A.validateStats, A.deleteV1GameRosters],\n }),\n deleteStep(A.deleteV1LeagueChats, {\n title: 'Delete the V1 league chats',\n summary: '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: 'The V1 leagues by document id; the resume key is the last league id, or `{leagueId}/unfinished` while a league holds more chats than one page deletes.',\n defaultPageSize: 50,\n }),\n deleteStep(A.deleteV1Leagues, {\n title: 'Delete the V1 leagues',\n summary: '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 }),\n deleteStep(A.deleteV1HallOfFame, {\n title: 'Delete the V1 hall of fame',\n summary: '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 }),\n deleteStep(A.deleteV1ValidationReports, {\n title: 'Delete the V1 validation reports',\n summary: '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 }),\n deleteStep(A.deleteV1AdminStats, {\n title: 'Delete the V1 dashboard counts',\n summary: 'The `adminStats` collection. Nothing is copied: the dashboard counts are counted live.',\n owningStep: 'q-core',\n dependsOn: [A.checkpointV1FirestoreExport],\n }),\n verifyStep(A.verifyV1CommerceDiscardable, {\n title: 'Check the V1 store holds no purchase',\n summary: '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 }),\n\n // ── After the cutover ──────────────────────────────────────────────────────────────────────────\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: '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: '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: '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\n/** Every step by its id. */\nexport const MIGRATION_STEP_BY_ID: ReadonlyMap<MigrationActionId, MigrationStep> = new Map(\n MIGRATION_CUTOVER_MANIFEST.map((step) => [step.id, step]),\n);\n\n/** The steps of one kind, in cutover order. */\nexport function migrationStepsOfKind<K extends MigrationStepKind>(kind: K): Extract<MigrationStep, { kind: K }>[] {\n return MIGRATION_CUTOVER_MANIFEST.filter((step): step is Extract<MigrationStep, { kind: K }> => step.kind === kind);\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"archive-all.d.ts","sourceRoot":"","sources":["../../src/notifications/archive-all.ts"],"names":[],"mappings":"AAEA,wBAAgB,+BAA+B,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,CAE7F"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// How a finished Archive all reads when some cards could not be archived: each failed on its own and
|
|
2
|
+
// stays in the list for a one-at-a-time archive.
|
|
3
|
+
export function archiveAllPartialOutcomeMessage(archived, notArchived) {
|
|
4
|
+
return `Archived ${archived}. ${notArchived} couldn't be archived and ${notArchived === 1 ? 'is' : 'are'} still in the list.`;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=archive-all.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"archive-all.js","sourceRoot":"","sources":["../../src/notifications/archive-all.ts"],"names":[],"mappings":"AAAA,qGAAqG;AACrG,iDAAiD;AACjD,MAAM,UAAU,+BAA+B,CAAC,QAAgB,EAAE,WAAmB;IACnF,OAAO,YAAY,QAAQ,KAAK,WAAW,6BAA6B,WAAW,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,qBAAqB,CAAC;AAChI,CAAC","sourcesContent":["// How a finished Archive all reads when some cards could not be archived: each failed on its own and\n// stays in the list for a one-at-a-time archive.\nexport function archiveAllPartialOutcomeMessage(archived: number, notArchived: number): string {\n return `Archived ${archived}. ${notArchived} couldn't be archived and ${notArchived === 1 ? 'is' : 'are'} still in the list.`;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/notifications/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/notifications/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/notifications/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC","sourcesContent":["export * from './admin-notification-config.js';\nexport * from './occurrences.js';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/notifications/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC","sourcesContent":["export * from './admin-notification-config.js';\nexport * from './archive-all.js';\nexport * from './occurrences.js';\n"]}
|
|
@@ -34,6 +34,7 @@ export declare const AdminGetNotificationArchiveAllStatusResultSchema: z.ZodObje
|
|
|
34
34
|
}>;
|
|
35
35
|
category: z.ZodLiteral<"admin">;
|
|
36
36
|
archived: z.ZodNumber;
|
|
37
|
+
notArchived: z.ZodOptional<z.ZodNumber>;
|
|
37
38
|
error: z.ZodOptional<z.ZodString>;
|
|
38
39
|
}, z.core.$strict>;
|
|
39
40
|
export type AdminGetNotificationArchiveAllStatusResult = z.infer<typeof AdminGetNotificationArchiveAllStatusResultSchema>;
|