@ttt-productions/q-core 0.1.28 → 0.1.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constants/admin-views.d.ts.map +1 -1
- package/dist/constants/admin-views.js +0 -3
- package/dist/constants/admin-views.js.map +1 -1
- package/dist/constants/business.d.ts.map +1 -1
- package/dist/constants/business.js +0 -52
- package/dist/constants/business.js.map +1 -1
- package/dist/constants/deployment.d.ts +0 -2
- package/dist/constants/deployment.d.ts.map +1 -1
- package/dist/constants/deployment.js +0 -2
- package/dist/constants/deployment.js.map +1 -1
- package/dist/constants/media.d.ts.map +1 -1
- package/dist/constants/media.js +4 -30
- package/dist/constants/media.js.map +1 -1
- package/dist/constants/scheduled-jobs.d.ts +0 -25
- package/dist/constants/scheduled-jobs.d.ts.map +1 -1
- package/dist/constants/scheduled-jobs.js +0 -26
- package/dist/constants/scheduled-jobs.js.map +1 -1
- package/dist/constants/sports.d.ts +1 -0
- package/dist/constants/sports.d.ts.map +1 -1
- package/dist/constants/sports.js +4 -25
- package/dist/constants/sports.js.map +1 -1
- package/dist/constants/storage-keys.d.ts +0 -38
- package/dist/constants/storage-keys.d.ts.map +1 -1
- package/dist/constants/storage-keys.js +0 -41
- package/dist/constants/storage-keys.js.map +1 -1
- package/dist/constants/telemetry.d.ts +0 -3
- package/dist/constants/telemetry.d.ts.map +1 -1
- package/dist/constants/telemetry.js +2 -11
- package/dist/constants/telemetry.js.map +1 -1
- package/dist/doc-schemas/admin-notifications.d.ts +1 -2
- package/dist/doc-schemas/admin-notifications.d.ts.map +1 -1
- package/dist/doc-schemas/admin-notifications.js +0 -41
- package/dist/doc-schemas/admin-notifications.js.map +1 -1
- package/dist/doc-schemas/aggregate-stats.d.ts.map +1 -1
- package/dist/doc-schemas/aggregate-stats.js +0 -35
- package/dist/doc-schemas/aggregate-stats.js.map +1 -1
- package/dist/doc-schemas/atoms.d.ts +0 -17
- package/dist/doc-schemas/atoms.d.ts.map +1 -1
- package/dist/doc-schemas/atoms.js +0 -36
- package/dist/doc-schemas/atoms.js.map +1 -1
- package/dist/doc-schemas/audit-event.d.ts +2 -0
- package/dist/doc-schemas/audit-event.d.ts.map +1 -1
- package/dist/doc-schemas/audit-event.js +0 -8
- package/dist/doc-schemas/audit-event.js.map +1 -1
- package/dist/doc-schemas/award-group-grant.d.ts +2 -8
- package/dist/doc-schemas/award-group-grant.d.ts.map +1 -1
- package/dist/doc-schemas/award-group-grant.js +0 -25
- package/dist/doc-schemas/award-group-grant.js.map +1 -1
- package/dist/doc-schemas/catalogs.d.ts.map +1 -1
- package/dist/doc-schemas/catalogs.js +0 -12
- package/dist/doc-schemas/catalogs.js.map +1 -1
- package/dist/doc-schemas/firestore-primitives.d.ts.map +1 -1
- package/dist/doc-schemas/firestore-primitives.js +0 -5
- package/dist/doc-schemas/firestore-primitives.js.map +1 -1
- package/dist/doc-schemas/gallery.d.ts.map +1 -1
- package/dist/doc-schemas/gallery.js +9 -18
- package/dist/doc-schemas/gallery.js.map +1 -1
- package/dist/doc-schemas/game-location.d.ts.map +1 -1
- package/dist/doc-schemas/game-location.js +2 -11
- package/dist/doc-schemas/game-location.js.map +1 -1
- package/dist/doc-schemas/game-stat-history.d.ts.map +1 -1
- package/dist/doc-schemas/game-stat-history.js +2 -11
- package/dist/doc-schemas/game-stat-history.js.map +1 -1
- package/dist/doc-schemas/game-stats.d.ts.map +1 -1
- package/dist/doc-schemas/game-stats.js +0 -56
- package/dist/doc-schemas/game-stats.js.map +1 -1
- package/dist/doc-schemas/league-team.d.ts.map +1 -1
- package/dist/doc-schemas/league-team.js +6 -29
- package/dist/doc-schemas/league-team.js.map +1 -1
- package/dist/doc-schemas/membership-roster-sync.d.ts.map +1 -1
- package/dist/doc-schemas/membership-roster-sync.js +0 -17
- package/dist/doc-schemas/membership-roster-sync.js.map +1 -1
- package/dist/doc-schemas/migration-console.d.ts +21 -15
- package/dist/doc-schemas/migration-console.d.ts.map +1 -1
- package/dist/doc-schemas/migration-console.js +0 -32
- package/dist/doc-schemas/migration-console.js.map +1 -1
- package/dist/doc-schemas/pending-media.d.ts.map +1 -1
- package/dist/doc-schemas/pending-media.js +8 -20
- package/dist/doc-schemas/pending-media.js.map +1 -1
- package/dist/doc-schemas/picture-retirement.d.ts.map +1 -1
- package/dist/doc-schemas/picture-retirement.js +8 -13
- package/dist/doc-schemas/picture-retirement.js.map +1 -1
- package/dist/doc-schemas/publicUser.d.ts.map +1 -1
- package/dist/doc-schemas/publicUser.js +0 -5
- package/dist/doc-schemas/publicUser.js.map +1 -1
- package/dist/doc-schemas/registration-start.d.ts.map +1 -1
- package/dist/doc-schemas/registration-start.js +2 -5
- package/dist/doc-schemas/registration-start.js.map +1 -1
- package/dist/doc-schemas/registry.d.ts +25 -14
- package/dist/doc-schemas/registry.d.ts.map +1 -1
- package/dist/doc-schemas/registry.js +0 -10
- package/dist/doc-schemas/registry.js.map +1 -1
- package/dist/doc-schemas/reserved-display-name.d.ts.map +1 -1
- package/dist/doc-schemas/reserved-display-name.js +0 -5
- package/dist/doc-schemas/reserved-display-name.js.map +1 -1
- package/dist/doc-schemas/sport-game.d.ts.map +1 -1
- package/dist/doc-schemas/sport-game.js +1 -29
- package/dist/doc-schemas/sport-game.js.map +1 -1
- package/dist/doc-schemas/sport-league.d.ts +0 -9
- package/dist/doc-schemas/sport-league.d.ts.map +1 -1
- package/dist/doc-schemas/sport-league.js +4 -26
- package/dist/doc-schemas/sport-league.js.map +1 -1
- package/dist/doc-schemas/stats-operation.d.ts +22 -18
- package/dist/doc-schemas/stats-operation.d.ts.map +1 -1
- package/dist/doc-schemas/stats-operation.js +7 -44
- package/dist/doc-schemas/stats-operation.js.map +1 -1
- package/dist/doc-schemas/status-reconcile-queue.d.ts +0 -6
- package/dist/doc-schemas/status-reconcile-queue.d.ts.map +1 -1
- package/dist/doc-schemas/status-reconcile-queue.js +0 -13
- package/dist/doc-schemas/status-reconcile-queue.js.map +1 -1
- package/dist/doc-schemas/sweep-state.d.ts.map +1 -1
- package/dist/doc-schemas/sweep-state.js +4 -20
- package/dist/doc-schemas/sweep-state.js.map +1 -1
- package/dist/doc-schemas/system.d.ts.map +1 -1
- package/dist/doc-schemas/system.js +1 -27
- package/dist/doc-schemas/system.js.map +1 -1
- package/dist/doc-schemas/team-membership.d.ts.map +1 -1
- package/dist/doc-schemas/team-membership.js +0 -10
- package/dist/doc-schemas/team-membership.js.map +1 -1
- package/dist/doc-schemas/user-profile.d.ts +0 -1
- package/dist/doc-schemas/user-profile.d.ts.map +1 -1
- package/dist/doc-schemas/user-profile.js +0 -28
- package/dist/doc-schemas/user-profile.js.map +1 -1
- package/dist/doc-schemas/waiver-template.d.ts.map +1 -1
- package/dist/doc-schemas/waiver-template.js +4 -25
- package/dist/doc-schemas/waiver-template.js.map +1 -1
- package/dist/doc-schemas/waivers-and-hardware.d.ts.map +1 -1
- package/dist/doc-schemas/waivers-and-hardware.js +0 -20
- package/dist/doc-schemas/waivers-and-hardware.js.map +1 -1
- package/dist/domain-events/domain-events.d.ts.map +1 -1
- package/dist/domain-events/domain-events.js +0 -67
- package/dist/domain-events/domain-events.js.map +1 -1
- package/dist/ids/award-grant-ids.d.ts.map +1 -1
- package/dist/ids/award-grant-ids.js +0 -7
- package/dist/ids/award-grant-ids.js.map +1 -1
- package/dist/ids/compound-ids.d.ts.map +1 -1
- package/dist/ids/compound-ids.js +0 -7
- package/dist/ids/compound-ids.js.map +1 -1
- package/dist/ids/minted-ids.d.ts.map +1 -1
- package/dist/ids/minted-ids.js +4 -14
- package/dist/ids/minted-ids.js.map +1 -1
- package/dist/ids/notification-ids.d.ts.map +1 -1
- package/dist/ids/notification-ids.js +0 -15
- package/dist/ids/notification-ids.js.map +1 -1
- package/dist/ids/picture-ids.d.ts +0 -5
- package/dist/ids/picture-ids.d.ts.map +1 -1
- package/dist/ids/picture-ids.js +0 -11
- package/dist/ids/picture-ids.js.map +1 -1
- package/dist/ids/stat-event-ids.d.ts +0 -6
- package/dist/ids/stat-event-ids.d.ts.map +1 -1
- package/dist/ids/stat-event-ids.js +0 -15
- package/dist/ids/stat-event-ids.js.map +1 -1
- package/dist/ids/stats-operation-ids.d.ts.map +1 -1
- package/dist/ids/stats-operation-ids.js +0 -7
- package/dist/ids/stats-operation-ids.js.map +1 -1
- package/dist/ids/waiver-template-ids.d.ts +0 -1
- package/dist/ids/waiver-template-ids.d.ts.map +1 -1
- package/dist/ids/waiver-template-ids.js +0 -2
- package/dist/ids/waiver-template-ids.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/input-formats/input-formats.d.ts +0 -80
- package/dist/input-formats/input-formats.d.ts.map +1 -1
- package/dist/input-formats/input-formats.js +0 -86
- package/dist/input-formats/input-formats.js.map +1 -1
- package/dist/media/file-origins.d.ts +0 -3
- package/dist/media/file-origins.d.ts.map +1 -1
- package/dist/media/file-origins.js +0 -26
- package/dist/media/file-origins.js.map +1 -1
- package/dist/media/picture-aspects.d.ts +0 -2
- package/dist/media/picture-aspects.d.ts.map +1 -1
- package/dist/media/picture-aspects.js +0 -5
- package/dist/media/picture-aspects.js.map +1 -1
- package/dist/media/picture-url.d.ts +0 -6
- package/dist/media/picture-url.d.ts.map +1 -1
- package/dist/media/picture-url.js +0 -9
- package/dist/media/picture-url.js.map +1 -1
- package/dist/media/upload-tray-display.d.ts +0 -3
- package/dist/media/upload-tray-display.d.ts.map +1 -1
- package/dist/media/upload-tray-display.js +0 -6
- package/dist/media/upload-tray-display.js.map +1 -1
- package/dist/migration-console/action-ids.d.ts +4 -1
- package/dist/migration-console/action-ids.d.ts.map +1 -1
- package/dist/migration-console/action-ids.js +8 -45
- package/dist/migration-console/action-ids.js.map +1 -1
- package/dist/migration-console/console-lock.d.ts +10 -0
- package/dist/migration-console/console-lock.d.ts.map +1 -0
- package/dist/migration-console/console-lock.js +14 -0
- package/dist/migration-console/console-lock.js.map +1 -0
- package/dist/migration-console/consumed-source.d.ts +4 -0
- package/dist/migration-console/consumed-source.d.ts.map +1 -0
- package/dist/migration-console/consumed-source.js +10 -0
- package/dist/migration-console/consumed-source.js.map +1 -0
- package/dist/migration-console/manifest.d.ts +2 -24
- package/dist/migration-console/manifest.d.ts.map +1 -1
- package/dist/migration-console/manifest.js +174 -61
- package/dist/migration-console/manifest.js.map +1 -1
- package/dist/migration-console/run-state.d.ts +2 -14
- package/dist/migration-console/run-state.d.ts.map +1 -1
- package/dist/migration-console/run-state.js +3 -16
- package/dist/migration-console/run-state.js.map +1 -1
- package/dist/notifications/admin-notification-config.d.ts +0 -11
- package/dist/notifications/admin-notification-config.d.ts.map +1 -1
- package/dist/notifications/admin-notification-config.js +2 -13
- package/dist/notifications/admin-notification-config.js.map +1 -1
- package/dist/notifications/archive-all.d.ts.map +1 -1
- package/dist/notifications/archive-all.js +0 -2
- package/dist/notifications/archive-all.js.map +1 -1
- package/dist/notifications/occurrences.d.ts +0 -3
- package/dist/notifications/occurrences.d.ts.map +1 -1
- package/dist/notifications/occurrences.js +0 -7
- package/dist/notifications/occurrences.js.map +1 -1
- package/dist/paths/app-routes.d.ts +0 -12
- package/dist/paths/app-routes.d.ts.map +1 -1
- package/dist/paths/app-routes.js +0 -18
- package/dist/paths/app-routes.js.map +1 -1
- package/dist/paths/collection-groups.d.ts.map +1 -1
- package/dist/paths/collection-groups.js +0 -5
- package/dist/paths/collection-groups.js.map +1 -1
- package/dist/paths/collection-refs.d.ts.map +1 -1
- package/dist/paths/collection-refs.js +0 -4
- package/dist/paths/collection-refs.js.map +1 -1
- package/dist/paths/collections.d.ts +0 -5
- package/dist/paths/collections.d.ts.map +1 -1
- package/dist/paths/collections.js +0 -68
- package/dist/paths/collections.js.map +1 -1
- package/dist/paths/path-builders.d.ts.map +1 -1
- package/dist/paths/path-builders.js +0 -16
- package/dist/paths/path-builders.js.map +1 -1
- package/dist/paths/picture-owner-paths.d.ts +0 -4
- package/dist/paths/picture-owner-paths.d.ts.map +1 -1
- package/dist/paths/picture-owner-paths.js +2 -11
- package/dist/paths/picture-owner-paths.js.map +1 -1
- package/dist/paths/storage-paths.d.ts +0 -18
- package/dist/paths/storage-paths.d.ts.map +1 -1
- package/dist/paths/storage-paths.js +0 -23
- package/dist/paths/storage-paths.js.map +1 -1
- package/dist/paths/utils.d.ts +0 -6
- package/dist/paths/utils.d.ts.map +1 -1
- package/dist/paths/utils.js +0 -9
- package/dist/paths/utils.js.map +1 -1
- package/dist/schemas/account-settings.d.ts.map +1 -1
- package/dist/schemas/account-settings.js +0 -7
- package/dist/schemas/account-settings.js.map +1 -1
- package/dist/schemas/admin-notifications.d.ts.map +1 -1
- package/dist/schemas/admin-notifications.js +0 -17
- package/dist/schemas/admin-notifications.js.map +1 -1
- package/dist/schemas/admin-stats.d.ts.map +1 -1
- package/dist/schemas/admin-stats.js +0 -9
- package/dist/schemas/admin-stats.js.map +1 -1
- package/dist/schemas/app-config.d.ts.map +1 -1
- package/dist/schemas/app-config.js +0 -10
- package/dist/schemas/app-config.js.map +1 -1
- package/dist/schemas/atoms.d.ts.map +1 -1
- package/dist/schemas/atoms.js +0 -10
- package/dist/schemas/atoms.js.map +1 -1
- package/dist/schemas/awards.d.ts +3 -3
- package/dist/schemas/awards.d.ts.map +1 -1
- package/dist/schemas/awards.js +0 -29
- package/dist/schemas/awards.js.map +1 -1
- package/dist/schemas/dead-letters.d.ts +0 -3
- package/dist/schemas/dead-letters.d.ts.map +1 -1
- package/dist/schemas/dead-letters.js +0 -15
- package/dist/schemas/dead-letters.js.map +1 -1
- package/dist/schemas/game-locations.d.ts.map +1 -1
- package/dist/schemas/game-locations.js +0 -6
- package/dist/schemas/game-locations.js.map +1 -1
- package/dist/schemas/hardware-loan-contracts.d.ts.map +1 -1
- package/dist/schemas/hardware-loan-contracts.js +0 -13
- package/dist/schemas/hardware-loan-contracts.js.map +1 -1
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +0 -2
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/leagues.d.ts.map +1 -1
- package/dist/schemas/leagues.js +0 -24
- package/dist/schemas/leagues.js.map +1 -1
- package/dist/schemas/migration-console.d.ts +58 -15
- package/dist/schemas/migration-console.d.ts.map +1 -1
- package/dist/schemas/migration-console.js +4 -34
- package/dist/schemas/migration-console.js.map +1 -1
- package/dist/schemas/pictures.d.ts.map +1 -1
- package/dist/schemas/pictures.js +0 -10
- package/dist/schemas/pictures.js.map +1 -1
- package/dist/schemas/schedules.d.ts.map +1 -1
- package/dist/schemas/schedules.js +0 -26
- package/dist/schemas/schedules.js.map +1 -1
- package/dist/schemas/scoring.d.ts +20 -26
- package/dist/schemas/scoring.d.ts.map +1 -1
- package/dist/schemas/scoring.js +0 -33
- package/dist/schemas/scoring.js.map +1 -1
- package/dist/schemas/signed-waivers.d.ts.map +1 -1
- package/dist/schemas/signed-waivers.js +0 -22
- package/dist/schemas/signed-waivers.js.map +1 -1
- package/dist/schemas/stats.d.ts +12 -0
- package/dist/schemas/stats.d.ts.map +1 -1
- package/dist/schemas/stats.js +21 -61
- package/dist/schemas/stats.js.map +1 -1
- package/dist/schemas/team-joining.d.ts.map +1 -1
- package/dist/schemas/team-joining.js +0 -30
- package/dist/schemas/team-joining.js.map +1 -1
- package/dist/schemas/teams.d.ts +0 -1
- package/dist/schemas/teams.d.ts.map +1 -1
- package/dist/schemas/teams.js +0 -83
- package/dist/schemas/teams.js.map +1 -1
- package/dist/schemas/uploads.d.ts +0 -8
- package/dist/schemas/uploads.d.ts.map +1 -1
- package/dist/schemas/uploads.js +0 -29
- package/dist/schemas/uploads.js.map +1 -1
- package/dist/schemas/users.d.ts +0 -1
- package/dist/schemas/users.d.ts.map +1 -1
- package/dist/schemas/users.js +0 -41
- package/dist/schemas/users.js.map +1 -1
- package/dist/schemas/waiver-templates.d.ts.map +1 -1
- package/dist/schemas/waiver-templates.js +0 -7
- package/dist/schemas/waiver-templates.js.map +1 -1
- package/dist/sports/basketball-scoring.d.ts +0 -4
- package/dist/sports/basketball-scoring.d.ts.map +1 -1
- package/dist/sports/basketball-scoring.js +0 -34
- package/dist/sports/basketball-scoring.js.map +1 -1
- package/dist/sports/basketball.d.ts.map +1 -1
- package/dist/sports/basketball.js +0 -5
- package/dist/sports/basketball.js.map +1 -1
- package/dist/sports/bulk-entry.d.ts +0 -22
- package/dist/sports/bulk-entry.d.ts.map +1 -1
- package/dist/sports/bulk-entry.js +0 -10
- package/dist/sports/bulk-entry.js.map +1 -1
- package/dist/sports/column-catalog.d.ts +0 -17
- package/dist/sports/column-catalog.d.ts.map +1 -1
- package/dist/sports/column-catalog.js +0 -10
- package/dist/sports/column-catalog.js.map +1 -1
- package/dist/sports/contribution.d.ts +2 -59
- package/dist/sports/contribution.d.ts.map +1 -1
- package/dist/sports/contribution.js +2 -45
- package/dist/sports/contribution.js.map +1 -1
- package/dist/sports/curling-scoring.d.ts +0 -1
- package/dist/sports/curling-scoring.d.ts.map +1 -1
- package/dist/sports/curling-scoring.js +0 -27
- package/dist/sports/curling-scoring.js.map +1 -1
- package/dist/sports/curling.d.ts.map +1 -1
- package/dist/sports/curling.js +0 -4
- package/dist/sports/curling.js.map +1 -1
- package/dist/sports/finalized-record.d.ts +2 -19
- package/dist/sports/finalized-record.d.ts.map +1 -1
- package/dist/sports/finalized-record.js +21 -22
- package/dist/sports/finalized-record.js.map +1 -1
- package/dist/sports/football-scoring.d.ts.map +1 -1
- package/dist/sports/football-scoring.js +0 -21
- package/dist/sports/football-scoring.js.map +1 -1
- package/dist/sports/football.d.ts.map +1 -1
- package/dist/sports/football.js +0 -4
- package/dist/sports/football.js.map +1 -1
- package/dist/sports/index.d.ts.map +1 -1
- package/dist/sports/index.js +0 -2
- package/dist/sports/index.js.map +1 -1
- package/dist/sports/ledger-continuity.d.ts +0 -2
- package/dist/sports/ledger-continuity.d.ts.map +1 -1
- package/dist/sports/ledger-continuity.js +0 -5
- package/dist/sports/ledger-continuity.js.map +1 -1
- package/dist/sports/lifetime-summary.d.ts +0 -6
- package/dist/sports/lifetime-summary.d.ts.map +1 -1
- package/dist/sports/lifetime-summary.js +0 -7
- package/dist/sports/lifetime-summary.js.map +1 -1
- package/dist/sports/rankings.d.ts +0 -12
- package/dist/sports/rankings.d.ts.map +1 -1
- package/dist/sports/rankings.js +0 -15
- package/dist/sports/rankings.js.map +1 -1
- package/dist/sports/registry.d.ts +0 -10
- package/dist/sports/registry.d.ts.map +1 -1
- package/dist/sports/registry.js +0 -9
- package/dist/sports/registry.js.map +1 -1
- package/dist/sports/replay.d.ts +0 -11
- package/dist/sports/replay.d.ts.map +1 -1
- package/dist/sports/replay.js +0 -16
- package/dist/sports/replay.js.map +1 -1
- package/dist/sports/rollup-check.d.ts +0 -7
- package/dist/sports/rollup-check.d.ts.map +1 -1
- package/dist/sports/rollup-check.js +0 -14
- package/dist/sports/rollup-check.js.map +1 -1
- package/dist/sports/score-mirror.d.ts +0 -1
- package/dist/sports/score-mirror.d.ts.map +1 -1
- package/dist/sports/score-mirror.js +0 -4
- package/dist/sports/score-mirror.js.map +1 -1
- package/dist/sports/scoring-display.d.ts +0 -30
- package/dist/sports/scoring-display.d.ts.map +1 -1
- package/dist/sports/scoring-display.js +0 -9
- package/dist/sports/scoring-display.js.map +1 -1
- package/dist/sports/scoring.d.ts +0 -36
- package/dist/sports/scoring.d.ts.map +1 -1
- package/dist/sports/scoring.js +0 -10
- package/dist/sports/scoring.js.map +1 -1
- package/dist/sports/shared-columns.d.ts +0 -1
- package/dist/sports/shared-columns.d.ts.map +1 -1
- package/dist/sports/shared-columns.js +0 -7
- package/dist/sports/shared-columns.js.map +1 -1
- package/dist/sports/sport-adapter.d.ts +0 -32
- package/dist/sports/sport-adapter.d.ts.map +1 -1
- package/dist/sports/sport-adapter.js +0 -7
- package/dist/sports/sport-adapter.js.map +1 -1
- package/dist/sports/store-driver.d.ts +0 -28
- package/dist/sports/store-driver.d.ts.map +1 -1
- package/dist/sports/store-driver.js +0 -38
- package/dist/sports/store-driver.js.map +1 -1
- package/dist/types/audit.d.ts +1 -1
- package/dist/types/audit.d.ts.map +1 -1
- package/dist/types/audit.js +1 -67
- package/dist/types/audit.js.map +1 -1
- package/dist/types/claims.d.ts +0 -10
- package/dist/types/claims.d.ts.map +1 -1
- package/dist/types/claims.js +0 -16
- package/dist/types/claims.js.map +1 -1
- package/dist/types/notifications.d.ts.map +1 -1
- package/dist/types/notifications.js +7 -25
- package/dist/types/notifications.js.map +1 -1
- package/dist/types/picture-owners.d.ts +0 -1
- package/dist/types/picture-owners.d.ts.map +1 -1
- package/dist/types/picture-owners.js +0 -6
- package/dist/types/picture-owners.js.map +1 -1
- package/dist/types/schedules.d.ts.map +1 -1
- package/dist/types/schedules.js +0 -9
- package/dist/types/schedules.js.map +1 -1
- package/dist/types/sports.d.ts.map +1 -1
- package/dist/types/sports.js +0 -24
- package/dist/types/sports.js.map +1 -1
- package/dist/types/stats.d.ts.map +1 -1
- package/dist/types/stats.js +0 -65
- package/dist/types/stats.js.map +1 -1
- package/dist/types/unions.d.ts +0 -2
- package/dist/types/unions.d.ts.map +1 -1
- package/dist/types/unions.js +3 -91
- package/dist/types/unions.js.map +1 -1
- package/dist/types/uploads.d.ts.map +1 -1
- package/dist/types/uploads.js +0 -7
- package/dist/types/uploads.js.map +1 -1
- package/dist/upload-variables/on-progress.d.ts.map +1 -1
- package/dist/upload-variables/on-progress.js +2 -5
- package/dist/upload-variables/on-progress.js.map +1 -1
- package/dist/upload-variables/picture-upload-variables.d.ts +0 -1
- package/dist/upload-variables/picture-upload-variables.d.ts.map +1 -1
- package/dist/upload-variables/picture-upload-variables.js +0 -4
- package/dist/upload-variables/picture-upload-variables.js.map +1 -1
- package/dist/upload-variables/sign-hardware-contract-variables.d.ts.map +1 -1
- package/dist/upload-variables/sign-hardware-contract-variables.js +0 -2
- package/dist/upload-variables/sign-hardware-contract-variables.js.map +1 -1
- package/dist/upload-variables/sign-waiver-variables.d.ts.map +1 -1
- package/dist/upload-variables/sign-waiver-variables.js +0 -4
- package/dist/upload-variables/sign-waiver-variables.js.map +1 -1
- package/dist/utils/account-status.d.ts.map +1 -1
- package/dist/utils/account-status.js +0 -4
- package/dist/utils/account-status.js.map +1 -1
- package/dist/utils/app-config.d.ts +0 -53
- package/dist/utils/app-config.d.ts.map +1 -1
- package/dist/utils/app-config.js +0 -62
- package/dist/utils/app-config.js.map +1 -1
- package/dist/utils/display-name.d.ts +0 -7
- package/dist/utils/display-name.d.ts.map +1 -1
- package/dist/utils/display-name.js +0 -8
- package/dist/utils/display-name.js.map +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/league-calendar.d.ts +0 -11
- package/dist/utils/league-calendar.d.ts.map +1 -1
- package/dist/utils/league-calendar.js +7 -19
- package/dist/utils/league-calendar.js.map +1 -1
- package/dist/utils/league-join-warning.d.ts +0 -11
- package/dist/utils/league-join-warning.d.ts.map +1 -1
- package/dist/utils/league-join-warning.js +0 -28
- package/dist/utils/league-join-warning.js.map +1 -1
- package/dist/utils/league-joining.d.ts +0 -1
- package/dist/utils/league-joining.d.ts.map +1 -1
- package/dist/utils/league-joining.js +0 -7
- package/dist/utils/league-joining.js.map +1 -1
- package/dist/utils/league-mode.d.ts +0 -1
- package/dist/utils/league-mode.d.ts.map +1 -1
- package/dist/utils/league-mode.js +0 -4
- package/dist/utils/league-mode.js.map +1 -1
- package/dist/utils/schedules.d.ts +0 -15
- package/dist/utils/schedules.d.ts.map +1 -1
- package/dist/utils/schedules.js +0 -19
- package/dist/utils/schedules.js.map +1 -1
- package/dist/utils/stats-operation-request.d.ts +20 -0
- package/dist/utils/stats-operation-request.d.ts.map +1 -0
- package/dist/utils/stats-operation-request.js +10 -0
- package/dist/utils/stats-operation-request.js.map +1 -0
- package/dist/utils/team-creation.d.ts +0 -2
- package/dist/utils/team-creation.d.ts.map +1 -1
- package/dist/utils/team-creation.js +0 -6
- package/dist/utils/team-creation.js.map +1 -1
- package/dist/utils/team-member-actions.d.ts +0 -6
- package/dist/utils/team-member-actions.d.ts.map +1 -1
- package/dist/utils/team-member-actions.js +0 -12
- package/dist/utils/team-member-actions.js.map +1 -1
- package/package.json +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domain-events.js","sourceRoot":"","sources":["../../src/domain-events/domain-events.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,EAAE;AACF,mGAAmG;AACnG,iHAAiH;AACjH,6CAA6C;AAE7C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,aAAa,EACb,YAAY,EACZ,4BAA4B,EAC5B,cAAc,EACd,cAAc,EACd,6BAA6B,EAC7B,YAAY,EACZ,YAAY,GACb,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAE3E,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC;KACtC,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC;IACjC,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;CACrD,CAAC;KACD,MAAM,EAAE,CAAC;AAEZ,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC;KACtC,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC;IACjC,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;CACrD,CAAC;KACD,MAAM,EAAE,CAAC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;IACrC,4CAA4C;IAC5C,mCAAmC;IACnC,6BAA6B;IAC7B,8BAA8B;IAC9B,6BAA6B;IAC7B,kCAAkC;CACnC,CAAC,CAAC","sourcesContent":["// The DomainEvent union — the vocabulary of \"what happened\" that both sides of the boundary share.\n//\n// A callable or trigger names what it changed with one of these; the client alone maps an event to\n// the query-key families it makes stale (the invalidation registry is app-local, RULE-STD-FRONTEND-102). The two\n// sides share event names, never cache keys.\n\nimport { z } from 'zod';\nimport {\n epochMsSchema,\n gameIdSchema,\n hardwareLoanContractIdSchema,\n leagueIdSchema,\n sportKeySchema,\n statsValidationReportIdSchema,\n teamIdSchema,\n userIdSchema,\n} from '../doc-schemas/atoms.js';\nimport { awardIdSchema } from '../doc-schemas/catalogs.js';\nimport { gameLocationIdSchema } from '../doc-schemas/game-location.js';\nimport { galleryOwnerKindSchema, pictureIdSchema } from '../doc-schemas/gallery.js';\nimport { waiverTemplateIdSchema } from '../doc-schemas/waiver-template.js';\n\nexport const LeagueCreatedEventSchema = z\n .object({\n type: z.literal('league.created'),\n ids: z.object({ leagueId: leagueIdSchema }).strict(),\n })\n .strict();\n\nexport const LeagueUpdatedEventSchema = z\n .object({\n type: z.literal('league.updated'),\n ids: z.object({ leagueId: leagueIdSchema }).strict(),\n })\n .strict();\n\n// The league changed mode, and with it the `teamType` of every one of its teams.\nexport const LeagueModeSwitchedEventSchema = z\n .object({\n type: z.literal('league.modeSwitched'),\n ids: z.object({ leagueId: leagueIdSchema }).strict(),\n })\n .strict();\n\nexport const LeagueTeamCreatedEventSchema = z\n .object({\n type: z.literal('leagueTeam.created'),\n ids: z.object({ leagueId: leagueIdSchema, teamId: teamIdSchema }).strict(),\n })\n .strict();\n\n// A member was added, removed, or changed role on a team — by any path, ghosts included.\nexport const TeamRosterChangedEventSchema = z\n .object({\n type: z.literal('teamRoster.changed'),\n ids: z\n .object({ leagueId: leagueIdSchema, teamId: teamIdSchema, userId: userIdSchema })\n .strict(),\n })\n .strict();\n\n// A waiver was signed for a person in a league — by them, or for a ghost by a witness.\nexport const SignedWaiverCreatedEventSchema = z\n .object({\n type: z.literal('signedWaiver.created'),\n ids: z.object({ leagueId: leagueIdSchema, userId: userIdSchema }).strict(),\n })\n .strict();\n\nexport const GhostPlayerLinkedEventSchema = z\n .object({\n type: z.literal('ghostPlayer.linked'),\n ids: z\n .object({\n leagueId: leagueIdSchema,\n teamId: teamIdSchema,\n ghostUserId: userIdSchema,\n realUserId: userIdSchema,\n })\n .strict(),\n })\n .strict();\n\nexport const TeamJoinRequestSubmittedEventSchema = z\n .object({\n type: z.literal('teamJoinRequest.submitted'),\n ids: z\n .object({ leagueId: leagueIdSchema, teamId: teamIdSchema, userId: userIdSchema })\n .strict(),\n })\n .strict();\n\n// The requester withdrew their join request.\nexport const TeamJoinRequestCancelledEventSchema = z\n .object({\n type: z.literal('teamJoinRequest.cancelled'),\n ids: z\n .object({ leagueId: leagueIdSchema, teamId: teamIdSchema, userId: userIdSchema })\n .strict(),\n })\n .strict();\n\n// The team accepted or rejected a join request. An acceptance also changed the roster.\nexport const TeamJoinRequestAnsweredEventSchema = z\n .object({\n type: z.literal('teamJoinRequest.answered'),\n ids: z\n .object({ leagueId: leagueIdSchema, teamId: teamIdSchema, userId: userIdSchema })\n .strict(),\n })\n .strict();\n\n// The team invited a person. `userId` is the invitee.\nexport const TeamInvitationSentEventSchema = z\n .object({\n type: z.literal('teamInvitation.sent'),\n ids: z\n .object({ leagueId: leagueIdSchema, teamId: teamIdSchema, userId: userIdSchema })\n .strict(),\n })\n .strict();\n\n// The team withdrew an invitation. `userId` is the invitee.\nexport const TeamInvitationCancelledEventSchema = z\n .object({\n type: z.literal('teamInvitation.cancelled'),\n ids: z\n .object({ leagueId: leagueIdSchema, teamId: teamIdSchema, userId: userIdSchema })\n .strict(),\n })\n .strict();\n\n// The invitee accepted or declined an invitation. An acceptance also changed the roster.\nexport const TeamInvitationAnsweredEventSchema = z\n .object({\n type: z.literal('teamInvitation.answered'),\n ids: z\n .object({ leagueId: leagueIdSchema, teamId: teamIdSchema, userId: userIdSchema })\n .strict(),\n })\n .strict();\n\n// A player signed up as a free agent in a league.\nexport const LeagueFreeAgentSignedUpEventSchema = z\n .object({\n type: z.literal('leagueFreeAgent.signedUp'),\n ids: z.object({ leagueId: leagueIdSchema, userId: userIdSchema }).strict(),\n })\n .strict();\n\n// A player's free-agent signup ended: they withdrew it, or an admin placed them on a team.\nexport const LeagueFreeAgentRemovedEventSchema = z\n .object({\n type: z.literal('leagueFreeAgent.removed'),\n ids: z.object({ leagueId: leagueIdSchema, userId: userIdSchema }).strict(),\n })\n .strict();\n\nexport const SportGameFinalizedEventSchema = z\n .object({\n type: z.literal('sportGame.finalized'),\n ids: z.object({ leagueId: leagueIdSchema, gameId: gameIdSchema }).strict(),\n })\n .strict();\n\nexport const SportGameReopenedEventSchema = z\n .object({\n type: z.literal('sportGame.reopened'),\n ids: z.object({ leagueId: leagueIdSchema, gameId: gameIdSchema }).strict(),\n })\n .strict();\n\n// A scoring write stored stat events on a live game: its rollup and score moved.\nexport const SportGameStatEventsRecordedEventSchema = z\n .object({\n type: z.literal('sportGame.statEventsRecorded'),\n ids: z.object({ leagueId: leagueIdSchema, gameId: gameIdSchema }).strict(),\n })\n .strict();\n\n// A roster entry of a live game was marked absent or present.\nexport const SportGameAbsenceChangedEventSchema = z\n .object({\n type: z.literal('sportGame.absenceChanged'),\n ids: z.object({ leagueId: leagueIdSchema, gameId: gameIdSchema }).strict(),\n })\n .strict();\n\n// A scorer's note on one person in a live game changed.\nexport const SportGameMemoUpdatedEventSchema = z\n .object({\n type: z.literal('sportGame.memoUpdated'),\n ids: z.object({ leagueId: leagueIdSchema, gameId: gameIdSchema }).strict(),\n })\n .strict();\n\n// The jump-ball possession arrow of a live basketball game moved.\nexport const SportGameJumpBallChangedEventSchema = z\n .object({\n type: z.literal('sportGame.jumpBallChanged'),\n ids: z.object({ leagueId: leagueIdSchema, gameId: gameIdSchema }).strict(),\n })\n .strict();\n\n// A league's schedule changed as a whole: a week was created, its shared fields edited, or it was\n// deleted, or a game was added to a week. Any of the league's games may have been added, changed, or\n// removed.\nexport const LeagueScheduleChangedEventSchema = z\n .object({\n type: z.literal('leagueSchedule.changed'),\n ids: z.object({ leagueId: leagueIdSchema }).strict(),\n })\n .strict();\n\n// One game's schedule changed — its week, start time, or venue — or its teams were replaced, which\n// replaces their roster entries and stat lines too.\nexport const SportGameUpdatedEventSchema = z\n .object({\n type: z.literal('sportGame.updated'),\n ids: z.object({ leagueId: leagueIdSchema, gameId: gameIdSchema }).strict(),\n })\n .strict();\n\n// One game was deleted with its events and roster.\nexport const SportGameDeletedEventSchema = z\n .object({\n type: z.literal('sportGame.deleted'),\n ids: z.object({ leagueId: leagueIdSchema, gameId: gameIdSchema }).strict(),\n })\n .strict();\n\n// A rebuild ran. Every scope id is optional: a rebuild covers one league, every league, one user,\n// every user, or one sport's hall of fame (for one user or the whole sport).\nexport const StatsRecalculatedEventSchema = z\n .object({\n type: z.literal('stats.recalculated'),\n ids: z\n .object({\n userId: userIdSchema.optional(),\n leagueId: leagueIdSchema.optional(),\n sportKey: sportKeySchema.optional(),\n })\n .strict(),\n })\n .strict();\n\n// A game's numbers were corrected or restored from its events in Fix stats; for a completed game,\n// every destination it feeds moved with them.\nexport const SportGameStatsCorrectedEventSchema = z\n .object({\n type: z.literal('sportGame.statsCorrected'),\n ids: z.object({ leagueId: leagueIdSchema, gameId: gameIdSchema }).strict(),\n })\n .strict();\n\n// A stats check wrote or advanced its report.\nexport const StatsValidationReportedEventSchema = z\n .object({\n type: z.literal('statsValidation.reported'),\n ids: z.object({ reportId: z.string().min(1) }).strict(),\n })\n .strict();\n\n// An admin deleted a stats check's report.\nexport const StatsValidationReportDeletedEventSchema = z\n .object({\n type: z.literal('statsValidation.reportDeleted'),\n ids: z.object({ reportId: statsValidationReportIdSchema }).strict(),\n })\n .strict();\n\n// A person's pre-Q-Sports baseline was written, and their career line and hall-of-fame entry rebuilt.\nexport const HistoricalStatsUpdatedEventSchema = z\n .object({\n type: z.literal('historicalStats.updated'),\n ids: z.object({ userId: userIdSchema }).strict(),\n })\n .strict();\n\n// An admin banned an account or lifted its ban.\nexport const UserStatusChangedEventSchema = z\n .object({\n type: z.literal('user.statusChanged'),\n ids: z.object({ userId: userIdSchema }).strict(),\n })\n .strict();\n\n// An award joined the catalog — its first badge was published.\nexport const AwardDefinitionCreatedEventSchema = z\n .object({\n type: z.literal('awardDefinition.created'),\n ids: z.object({ awardId: awardIdSchema }).strict(),\n })\n .strict();\n\n// An award's document changed: its badge was replaced, or its holder count moved.\nexport const AwardDefinitionUpdatedEventSchema = z\n .object({\n type: z.literal('awardDefinition.updated'),\n ids: z.object({ awardId: awardIdSchema }).strict(),\n })\n .strict();\n\nexport const AwardDefinitionDeletedEventSchema = z\n .object({\n type: z.literal('awardDefinition.deleted'),\n ids: z.object({ awardId: awardIdSchema }).strict(),\n })\n .strict();\n\n// An award was granted to or revoked from some accounts, which may have cleared a featured badge.\n// The accounts are many, so the event names the award; a client holding any profile's awards\n// refreshes them.\nexport const AwardGrantsChangedEventSchema = z\n .object({\n type: z.literal('awardGrants.changed'),\n ids: z.object({ awardId: awardIdSchema }).strict(),\n })\n .strict();\n\n// An account chose which of its awards to feature beside its name.\nexport const FeaturedAwardsChangedEventSchema = z\n .object({\n type: z.literal('featuredAwards.changed'),\n ids: z.object({ userId: userIdSchema }).strict(),\n })\n .strict();\n\n// A hardware loan contract was created, signed, returned, or deleted.\nexport const HardwareLoanContractChangedEventSchema = z\n .object({\n type: z.literal('hardwareLoanContract.changed'),\n ids: z\n .object({ contractId: hardwareLoanContractIdSchema, refereeUserId: userIdSchema })\n .strict(),\n })\n .strict();\n\n// A new account finished registration: its profile and public identity now exist.\nexport const UserRegisteredEventSchema = z\n .object({ type: z.literal('user.registered'), ids: z.object({ userId: userIdSchema }).strict() })\n .strict();\n\nexport const DisplayNameChangedEventSchema = z\n .object({\n type: z.literal('displayName.changed'),\n ids: z.object({ userId: userIdSchema }).strict(),\n })\n .strict();\n\n// The shared stats beacon moved: stats changed somewhere. The beacon holds only its latest change,\n// not a log of them, so the event names no scope and a watching client refreshes every\n// stats-bearing read.\nexport const StatsBeaconChangedEventSchema = z\n .object({ type: z.literal('statsBeacon.changed'), ids: z.object({}).strict() })\n .strict();\n\nexport const WaiverTemplateCreatedEventSchema = z\n .object({\n type: z.literal('waiverTemplate.created'),\n ids: z.object({ waiverTemplateId: waiverTemplateIdSchema }).strict(),\n })\n .strict();\n\n// A template's wording changed: a new version was published.\nexport const WaiverTemplateUpdatedEventSchema = z\n .object({\n type: z.literal('waiverTemplate.updated'),\n ids: z.object({ waiverTemplateId: waiverTemplateIdSchema }).strict(),\n })\n .strict();\n\n// A template left the admin's list — deleted, or retired because something still names it.\nexport const WaiverTemplateDeletedEventSchema = z\n .object({\n type: z.literal('waiverTemplate.deleted'),\n ids: z.object({ waiverTemplateId: waiverTemplateIdSchema }).strict(),\n })\n .strict();\n\nexport const GameLocationCreatedEventSchema = z\n .object({\n type: z.literal('gameLocation.created'),\n ids: z.object({ gameLocationId: gameLocationIdSchema }).strict(),\n })\n .strict();\n\n// A venue's document changed — its own fields through the location callables, or its picture\n// through the upload pipeline.\nexport const GameLocationUpdatedEventSchema = z\n .object({\n type: z.literal('gameLocation.updated'),\n ids: z.object({ gameLocationId: gameLocationIdSchema }).strict(),\n })\n .strict();\n\nexport const GameLocationDeletedEventSchema = z\n .object({\n type: z.literal('gameLocation.deleted'),\n ids: z.object({ gameLocationId: gameLocationIdSchema }).strict(),\n })\n .strict();\n\n// A team's document changed: an admin renamed it or changed its type, or the picture core changed its\n// gallery summary.\nexport const LeagueTeamUpdatedEventSchema = z\n .object({\n type: z.literal('leagueTeam.updated'),\n ids: z.object({ leagueId: leagueIdSchema, teamId: teamIdSchema }).strict(),\n })\n .strict();\n\n// An admin deleted a team that never played, with its memberships, ghosts, invitations, join\n// requests, contact phone, gallery, and unplayed games.\nexport const LeagueTeamDeletedEventSchema = z\n .object({\n type: z.literal('leagueTeam.deleted'),\n ids: z.object({ leagueId: leagueIdSchema, teamId: teamIdSchema }).strict(),\n })\n .strict();\n\n// An admin's deletion of a team stopped short: some of the team's games, ghost players, invitations,\n// join requests, or memberships are gone, and the team, with its contact phone, still stands.\nexport const LeagueTeamDeletionAdvancedEventSchema = z\n .object({\n type: z.literal('leagueTeam.deletionAdvanced'),\n ids: z.object({ leagueId: leagueIdSchema, teamId: teamIdSchema }).strict(),\n })\n .strict();\n\n// A ghost player's removal took the ghost's entries off finished games of its team — each one it sat\n// out without a stat, so no result or total changed, but the games' finalized records no longer name\n// it. The event names no game.\nexport const GhostPlayerFinishedEntriesRemovedEventSchema = z\n .object({\n type: z.literal('ghostPlayer.finishedEntriesRemoved'),\n ids: z\n .object({ leagueId: leagueIdSchema, teamId: teamIdSchema, ghostUserId: userIdSchema })\n .strict(),\n })\n .strict();\n\n// An admin set a team's contact phone, which only admins read.\nexport const LeagueTeamContactUpdatedEventSchema = z\n .object({\n type: z.literal('leagueTeamContact.updated'),\n ids: z.object({ leagueId: leagueIdSchema, teamId: teamIdSchema }).strict(),\n })\n .strict();\n\n// The landing page's document changed — its copy, or its gallery summary. There is one landing page,\n// so the event names none.\nexport const LandingPageUpdatedEventSchema = z\n .object({ type: z.literal('landingPage.updated'), ids: z.object({}).strict() })\n .strict();\n\n// A picture joined a gallery. It carries the whole new entry, so a client holding that gallery's\n// pages patches the entry in where its position sorts, and no gallery page is ever refetched for it\n// (RULE-STD-FRONTEND-103). The owner's summary changed too, and the owner's own update event says so.\nexport const GalleryPictureAddedEventSchema = z\n .object({\n type: z.literal('galleryPicture.added'),\n ids: z\n .object({\n ownerKind: galleryOwnerKindSchema,\n ownerId: z.string().min(1),\n pictureId: pictureIdSchema,\n })\n .strict(),\n position: z.string().min(1),\n createdAt: epochMsSchema,\n })\n .strict();\n\n// A dead-lettered row was replayed back onto its pipeline's queue, so the operator's dead-letter list\n// loses it. The list spans every lane, so the event names none.\nexport const DeadLetterReplayedEventSchema = z\n .object({ type: z.literal('deadLetter.replayed'), ids: z.object({}).strict() })\n .strict();\n\n// The migration console's state moved: an action ran a page, a step was recorded, or the cutover\n// was. There is one console, so the event names none.\nexport const MigrationConsoleChangedEventSchema = z\n .object({ type: z.literal('migrationConsole.changed'), ids: z.object({}).strict() })\n .strict();\n\nexport const DomainEventSchema = z.discriminatedUnion('type', [\n LeagueCreatedEventSchema,\n LeagueUpdatedEventSchema,\n LeagueModeSwitchedEventSchema,\n LeagueTeamCreatedEventSchema,\n TeamRosterChangedEventSchema,\n SignedWaiverCreatedEventSchema,\n GhostPlayerLinkedEventSchema,\n TeamJoinRequestSubmittedEventSchema,\n TeamJoinRequestCancelledEventSchema,\n TeamJoinRequestAnsweredEventSchema,\n TeamInvitationSentEventSchema,\n TeamInvitationCancelledEventSchema,\n TeamInvitationAnsweredEventSchema,\n LeagueFreeAgentSignedUpEventSchema,\n LeagueFreeAgentRemovedEventSchema,\n SportGameFinalizedEventSchema,\n SportGameReopenedEventSchema,\n SportGameStatEventsRecordedEventSchema,\n SportGameAbsenceChangedEventSchema,\n SportGameMemoUpdatedEventSchema,\n SportGameJumpBallChangedEventSchema,\n LeagueScheduleChangedEventSchema,\n SportGameUpdatedEventSchema,\n SportGameDeletedEventSchema,\n StatsRecalculatedEventSchema,\n SportGameStatsCorrectedEventSchema,\n StatsValidationReportedEventSchema,\n StatsValidationReportDeletedEventSchema,\n HistoricalStatsUpdatedEventSchema,\n UserStatusChangedEventSchema,\n AwardDefinitionCreatedEventSchema,\n AwardDefinitionUpdatedEventSchema,\n AwardDefinitionDeletedEventSchema,\n AwardGrantsChangedEventSchema,\n FeaturedAwardsChangedEventSchema,\n HardwareLoanContractChangedEventSchema,\n UserRegisteredEventSchema,\n DisplayNameChangedEventSchema,\n StatsBeaconChangedEventSchema,\n WaiverTemplateCreatedEventSchema,\n WaiverTemplateUpdatedEventSchema,\n WaiverTemplateDeletedEventSchema,\n GameLocationCreatedEventSchema,\n GameLocationUpdatedEventSchema,\n GameLocationDeletedEventSchema,\n LeagueTeamUpdatedEventSchema,\n LeagueTeamDeletedEventSchema,\n LeagueTeamDeletionAdvancedEventSchema,\n GhostPlayerFinishedEntriesRemovedEventSchema,\n LeagueTeamContactUpdatedEventSchema,\n LandingPageUpdatedEventSchema,\n GalleryPictureAddedEventSchema,\n DeadLetterReplayedEventSchema,\n MigrationConsoleChangedEventSchema,\n]);\nexport type DomainEvent = z.infer<typeof DomainEventSchema>;\nexport type DomainEventType = DomainEvent['type'];\n"]}
|
|
1
|
+
{"version":3,"file":"domain-events.js","sourceRoot":"","sources":["../../src/domain-events/domain-events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,aAAa,EACb,YAAY,EACZ,4BAA4B,EAC5B,cAAc,EACd,cAAc,EACd,6BAA6B,EAC7B,YAAY,EACZ,YAAY,GACb,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAE3E,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC;KACtC,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC;IACjC,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;CACrD,CAAC;KACD,MAAM,EAAE,CAAC;AAEZ,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC;KACtC,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC;IACjC,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,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AChC,2BAA2B;IAC3B,2BAA2B;IAC3B,4BAA4B;IAC5B,kCAAkC;IAClC,kCAAkC;IAClC,uCAAuC;IACvC,iCAAiC;IACjC,4BAA4B;IAC5B,iCAAiC;IACjC,iCAAiC;IACjC,iCAAiC;IACjC,6BAA6B;IAC7B,gCAAgC;IAChC,sCAAsC;IACtC,yBAAyB;IACzB,6BAA6B;IAC7B,6BAA6B;IAC7B,gCAAgC;IAChC,gCAAgC;IAChC,gCAAgC;IAChC,8BAA8B;IAC9B,8BAA8B;IAC9B,8BAA8B;IAC9B,4BAA4B;IAC5B,4BAA4B;IAC5B,qCAAqC;IACrC,4CAA4C;IAC5C,mCAAmC;IACnC,6BAA6B;IAC7B,8BAA8B;IAC9B,6BAA6B;IAC7B,kCAAkC;CACnC,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport {\n epochMsSchema,\n gameIdSchema,\n hardwareLoanContractIdSchema,\n leagueIdSchema,\n sportKeySchema,\n statsValidationReportIdSchema,\n teamIdSchema,\n userIdSchema,\n} from '../doc-schemas/atoms.js';\nimport { awardIdSchema } from '../doc-schemas/catalogs.js';\nimport { gameLocationIdSchema } from '../doc-schemas/game-location.js';\nimport { galleryOwnerKindSchema, pictureIdSchema } from '../doc-schemas/gallery.js';\nimport { waiverTemplateIdSchema } from '../doc-schemas/waiver-template.js';\n\nexport const LeagueCreatedEventSchema = z\n .object({\n type: z.literal('league.created'),\n ids: z.object({ leagueId: leagueIdSchema }).strict(),\n })\n .strict();\n\nexport const LeagueUpdatedEventSchema = z\n .object({\n type: z.literal('league.updated'),\n ids: z.object({ leagueId: leagueIdSchema }).strict(),\n })\n .strict();\n\nexport const LeagueModeSwitchedEventSchema = z\n .object({\n type: z.literal('league.modeSwitched'),\n ids: z.object({ leagueId: leagueIdSchema }).strict(),\n })\n .strict();\n\nexport const LeagueTeamCreatedEventSchema = z\n .object({\n type: z.literal('leagueTeam.created'),\n ids: z.object({ leagueId: leagueIdSchema, teamId: teamIdSchema }).strict(),\n })\n .strict();\n\nexport const TeamRosterChangedEventSchema = z\n .object({\n type: z.literal('teamRoster.changed'),\n ids: z\n .object({ leagueId: leagueIdSchema, teamId: teamIdSchema, userId: userIdSchema })\n .strict(),\n })\n .strict();\n\nexport const SignedWaiverCreatedEventSchema = z\n .object({\n type: z.literal('signedWaiver.created'),\n ids: z.object({ leagueId: leagueIdSchema, userId: userIdSchema }).strict(),\n })\n .strict();\n\nexport const GhostPlayerLinkedEventSchema = z\n .object({\n type: z.literal('ghostPlayer.linked'),\n ids: z\n .object({\n leagueId: leagueIdSchema,\n teamId: teamIdSchema,\n ghostUserId: userIdSchema,\n realUserId: userIdSchema,\n })\n .strict(),\n })\n .strict();\n\nexport const TeamJoinRequestSubmittedEventSchema = z\n .object({\n type: z.literal('teamJoinRequest.submitted'),\n ids: z\n .object({ leagueId: leagueIdSchema, teamId: teamIdSchema, userId: userIdSchema })\n .strict(),\n })\n .strict();\n\nexport const TeamJoinRequestCancelledEventSchema = z\n .object({\n type: z.literal('teamJoinRequest.cancelled'),\n ids: z\n .object({ leagueId: leagueIdSchema, teamId: teamIdSchema, userId: userIdSchema })\n .strict(),\n })\n .strict();\n\nexport const TeamJoinRequestAnsweredEventSchema = z\n .object({\n type: z.literal('teamJoinRequest.answered'),\n ids: z\n .object({ leagueId: leagueIdSchema, teamId: teamIdSchema, userId: userIdSchema })\n .strict(),\n })\n .strict();\n\nexport const TeamInvitationSentEventSchema = z\n .object({\n type: z.literal('teamInvitation.sent'),\n ids: z\n .object({ leagueId: leagueIdSchema, teamId: teamIdSchema, userId: userIdSchema })\n .strict(),\n })\n .strict();\n\nexport const TeamInvitationCancelledEventSchema = z\n .object({\n type: z.literal('teamInvitation.cancelled'),\n ids: z\n .object({ leagueId: leagueIdSchema, teamId: teamIdSchema, userId: userIdSchema })\n .strict(),\n })\n .strict();\n\nexport const TeamInvitationAnsweredEventSchema = z\n .object({\n type: z.literal('teamInvitation.answered'),\n ids: z\n .object({ leagueId: leagueIdSchema, teamId: teamIdSchema, userId: userIdSchema })\n .strict(),\n })\n .strict();\n\nexport const LeagueFreeAgentSignedUpEventSchema = z\n .object({\n type: z.literal('leagueFreeAgent.signedUp'),\n ids: z.object({ leagueId: leagueIdSchema, userId: userIdSchema }).strict(),\n })\n .strict();\n\nexport const LeagueFreeAgentRemovedEventSchema = z\n .object({\n type: z.literal('leagueFreeAgent.removed'),\n ids: z.object({ leagueId: leagueIdSchema, userId: userIdSchema }).strict(),\n })\n .strict();\n\nexport const SportGameFinalizedEventSchema = z\n .object({\n type: z.literal('sportGame.finalized'),\n ids: z.object({ leagueId: leagueIdSchema, gameId: gameIdSchema }).strict(),\n })\n .strict();\n\nexport const SportGameReopenedEventSchema = z\n .object({\n type: z.literal('sportGame.reopened'),\n ids: z.object({ leagueId: leagueIdSchema, gameId: gameIdSchema }).strict(),\n })\n .strict();\n\nexport const SportGameStatEventsRecordedEventSchema = z\n .object({\n type: z.literal('sportGame.statEventsRecorded'),\n ids: z.object({ leagueId: leagueIdSchema, gameId: gameIdSchema }).strict(),\n })\n .strict();\n\nexport const SportGameAbsenceChangedEventSchema = z\n .object({\n type: z.literal('sportGame.absenceChanged'),\n ids: z.object({ leagueId: leagueIdSchema, gameId: gameIdSchema }).strict(),\n })\n .strict();\n\nexport const SportGameMemoUpdatedEventSchema = z\n .object({\n type: z.literal('sportGame.memoUpdated'),\n ids: z.object({ leagueId: leagueIdSchema, gameId: gameIdSchema }).strict(),\n })\n .strict();\n\nexport const SportGameJumpBallChangedEventSchema = z\n .object({\n type: z.literal('sportGame.jumpBallChanged'),\n ids: z.object({ leagueId: leagueIdSchema, gameId: gameIdSchema }).strict(),\n })\n .strict();\n\nexport const LeagueScheduleChangedEventSchema = z\n .object({\n type: z.literal('leagueSchedule.changed'),\n ids: z.object({ leagueId: leagueIdSchema }).strict(),\n })\n .strict();\n\nexport const SportGameUpdatedEventSchema = z\n .object({\n type: z.literal('sportGame.updated'),\n ids: z.object({ leagueId: leagueIdSchema, gameId: gameIdSchema }).strict(),\n })\n .strict();\n\nexport const SportGameDeletedEventSchema = z\n .object({\n type: z.literal('sportGame.deleted'),\n ids: z.object({ leagueId: leagueIdSchema, gameId: gameIdSchema }).strict(),\n })\n .strict();\n\nexport const StatsRecalculatedEventSchema = z\n .object({\n type: z.literal('stats.recalculated'),\n ids: z\n .object({\n userId: userIdSchema.optional(),\n leagueId: leagueIdSchema.optional(),\n sportKey: sportKeySchema.optional(),\n })\n .strict(),\n })\n .strict();\n\nexport const SportGameStatsCorrectedEventSchema = z\n .object({\n type: z.literal('sportGame.statsCorrected'),\n ids: z.object({ leagueId: leagueIdSchema, gameId: gameIdSchema }).strict(),\n })\n .strict();\n\nexport const StatsValidationReportedEventSchema = z\n .object({\n type: z.literal('statsValidation.reported'),\n ids: z.object({ reportId: z.string().min(1) }).strict(),\n })\n .strict();\n\nexport const StatsValidationReportDeletedEventSchema = z\n .object({\n type: z.literal('statsValidation.reportDeleted'),\n ids: z.object({ reportId: statsValidationReportIdSchema }).strict(),\n })\n .strict();\n\nexport const HistoricalStatsUpdatedEventSchema = z\n .object({\n type: z.literal('historicalStats.updated'),\n ids: z.object({ userId: userIdSchema }).strict(),\n })\n .strict();\n\nexport const UserStatusChangedEventSchema = z\n .object({\n type: z.literal('user.statusChanged'),\n ids: z.object({ userId: userIdSchema }).strict(),\n })\n .strict();\n\nexport const AwardDefinitionCreatedEventSchema = z\n .object({\n type: z.literal('awardDefinition.created'),\n ids: z.object({ awardId: awardIdSchema }).strict(),\n })\n .strict();\n\nexport const AwardDefinitionUpdatedEventSchema = z\n .object({\n type: z.literal('awardDefinition.updated'),\n ids: z.object({ awardId: awardIdSchema }).strict(),\n })\n .strict();\n\nexport const AwardDefinitionDeletedEventSchema = z\n .object({\n type: z.literal('awardDefinition.deleted'),\n ids: z.object({ awardId: awardIdSchema }).strict(),\n })\n .strict();\n\nexport const AwardGrantsChangedEventSchema = z\n .object({\n type: z.literal('awardGrants.changed'),\n ids: z.object({ awardId: awardIdSchema }).strict(),\n })\n .strict();\n\nexport const FeaturedAwardsChangedEventSchema = z\n .object({\n type: z.literal('featuredAwards.changed'),\n ids: z.object({ userId: userIdSchema }).strict(),\n })\n .strict();\n\nexport const HardwareLoanContractChangedEventSchema = z\n .object({\n type: z.literal('hardwareLoanContract.changed'),\n ids: z\n .object({ contractId: hardwareLoanContractIdSchema, refereeUserId: userIdSchema })\n .strict(),\n })\n .strict();\n\nexport const UserRegisteredEventSchema = z\n .object({ type: z.literal('user.registered'), ids: z.object({ userId: userIdSchema }).strict() })\n .strict();\n\nexport const DisplayNameChangedEventSchema = z\n .object({\n type: z.literal('displayName.changed'),\n ids: z.object({ userId: userIdSchema }).strict(),\n })\n .strict();\n\nexport const StatsBeaconChangedEventSchema = z\n .object({ type: z.literal('statsBeacon.changed'), ids: z.object({}).strict() })\n .strict();\n\nexport const WaiverTemplateCreatedEventSchema = z\n .object({\n type: z.literal('waiverTemplate.created'),\n ids: z.object({ waiverTemplateId: waiverTemplateIdSchema }).strict(),\n })\n .strict();\n\nexport const WaiverTemplateUpdatedEventSchema = z\n .object({\n type: z.literal('waiverTemplate.updated'),\n ids: z.object({ waiverTemplateId: waiverTemplateIdSchema }).strict(),\n })\n .strict();\n\nexport const WaiverTemplateDeletedEventSchema = z\n .object({\n type: z.literal('waiverTemplate.deleted'),\n ids: z.object({ waiverTemplateId: waiverTemplateIdSchema }).strict(),\n })\n .strict();\n\nexport const GameLocationCreatedEventSchema = z\n .object({\n type: z.literal('gameLocation.created'),\n ids: z.object({ gameLocationId: gameLocationIdSchema }).strict(),\n })\n .strict();\n\nexport const GameLocationUpdatedEventSchema = z\n .object({\n type: z.literal('gameLocation.updated'),\n ids: z.object({ gameLocationId: gameLocationIdSchema }).strict(),\n })\n .strict();\n\nexport const GameLocationDeletedEventSchema = z\n .object({\n type: z.literal('gameLocation.deleted'),\n ids: z.object({ gameLocationId: gameLocationIdSchema }).strict(),\n })\n .strict();\n\nexport const LeagueTeamUpdatedEventSchema = z\n .object({\n type: z.literal('leagueTeam.updated'),\n ids: z.object({ leagueId: leagueIdSchema, teamId: teamIdSchema }).strict(),\n })\n .strict();\n\nexport const LeagueTeamDeletedEventSchema = z\n .object({\n type: z.literal('leagueTeam.deleted'),\n ids: z.object({ leagueId: leagueIdSchema, teamId: teamIdSchema }).strict(),\n })\n .strict();\n\nexport const LeagueTeamDeletionAdvancedEventSchema = z\n .object({\n type: z.literal('leagueTeam.deletionAdvanced'),\n ids: z.object({ leagueId: leagueIdSchema, teamId: teamIdSchema }).strict(),\n })\n .strict();\n\nexport const GhostPlayerFinishedEntriesRemovedEventSchema = z\n .object({\n type: z.literal('ghostPlayer.finishedEntriesRemoved'),\n ids: z\n .object({ leagueId: leagueIdSchema, teamId: teamIdSchema, ghostUserId: userIdSchema })\n .strict(),\n })\n .strict();\n\nexport const LeagueTeamContactUpdatedEventSchema = z\n .object({\n type: z.literal('leagueTeamContact.updated'),\n ids: z.object({ leagueId: leagueIdSchema, teamId: teamIdSchema }).strict(),\n })\n .strict();\n\nexport const LandingPageUpdatedEventSchema = z\n .object({ type: z.literal('landingPage.updated'), ids: z.object({}).strict() })\n .strict();\n\nexport const GalleryPictureAddedEventSchema = z\n .object({\n type: z.literal('galleryPicture.added'),\n ids: z\n .object({\n ownerKind: galleryOwnerKindSchema,\n ownerId: z.string().min(1),\n pictureId: pictureIdSchema,\n })\n .strict(),\n position: z.string().min(1),\n createdAt: epochMsSchema,\n })\n .strict();\n\nexport const DeadLetterReplayedEventSchema = z\n .object({ type: z.literal('deadLetter.replayed'), ids: z.object({}).strict() })\n .strict();\n\nexport const MigrationConsoleChangedEventSchema = z\n .object({ type: z.literal('migrationConsole.changed'), ids: z.object({}).strict() })\n .strict();\n\nexport const DomainEventSchema = z.discriminatedUnion('type', [\n LeagueCreatedEventSchema,\n LeagueUpdatedEventSchema,\n LeagueModeSwitchedEventSchema,\n LeagueTeamCreatedEventSchema,\n TeamRosterChangedEventSchema,\n SignedWaiverCreatedEventSchema,\n GhostPlayerLinkedEventSchema,\n TeamJoinRequestSubmittedEventSchema,\n TeamJoinRequestCancelledEventSchema,\n TeamJoinRequestAnsweredEventSchema,\n TeamInvitationSentEventSchema,\n TeamInvitationCancelledEventSchema,\n TeamInvitationAnsweredEventSchema,\n LeagueFreeAgentSignedUpEventSchema,\n LeagueFreeAgentRemovedEventSchema,\n SportGameFinalizedEventSchema,\n SportGameReopenedEventSchema,\n SportGameStatEventsRecordedEventSchema,\n SportGameAbsenceChangedEventSchema,\n SportGameMemoUpdatedEventSchema,\n SportGameJumpBallChangedEventSchema,\n LeagueScheduleChangedEventSchema,\n SportGameUpdatedEventSchema,\n SportGameDeletedEventSchema,\n StatsRecalculatedEventSchema,\n SportGameStatsCorrectedEventSchema,\n StatsValidationReportedEventSchema,\n StatsValidationReportDeletedEventSchema,\n HistoricalStatsUpdatedEventSchema,\n UserStatusChangedEventSchema,\n AwardDefinitionCreatedEventSchema,\n AwardDefinitionUpdatedEventSchema,\n AwardDefinitionDeletedEventSchema,\n AwardGrantsChangedEventSchema,\n FeaturedAwardsChangedEventSchema,\n HardwareLoanContractChangedEventSchema,\n UserRegisteredEventSchema,\n DisplayNameChangedEventSchema,\n StatsBeaconChangedEventSchema,\n WaiverTemplateCreatedEventSchema,\n WaiverTemplateUpdatedEventSchema,\n WaiverTemplateDeletedEventSchema,\n GameLocationCreatedEventSchema,\n GameLocationUpdatedEventSchema,\n GameLocationDeletedEventSchema,\n LeagueTeamUpdatedEventSchema,\n LeagueTeamDeletedEventSchema,\n LeagueTeamDeletionAdvancedEventSchema,\n GhostPlayerFinishedEntriesRemovedEventSchema,\n LeagueTeamContactUpdatedEventSchema,\n LandingPageUpdatedEventSchema,\n GalleryPictureAddedEventSchema,\n DeadLetterReplayedEventSchema,\n MigrationConsoleChangedEventSchema,\n]);\nexport type DomainEvent = z.infer<typeof DomainEventSchema>;\nexport type DomainEventType = DomainEvent['type'];\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"award-grant-ids.d.ts","sourceRoot":"","sources":["../../src/ids/award-grant-ids.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"award-grant-ids.d.ts","sourceRoot":"","sources":["../../src/ids/award-grant-ids.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,SAAS,EAAE,cAAc,CAAC;IACnC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAOD,wBAAgB,6BAA6B,CAAC,MAAM,EAAE,qBAAqB,GAAG,MAAM,CAEnF;AAED,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAElF"}
|
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
// Award group grant ids. Every decision on one award for one group shares that pair's target key,
|
|
2
|
-
// and each decision's record id is the key plus its decision number — deterministic, so two
|
|
3
|
-
// decisions racing for the same number write the same document and conflict instead of both
|
|
4
|
-
// committing (RULE-STD-BACKEND-304).
|
|
5
1
|
// A part prefixed by its length, so parts that contain any character still decode one way.
|
|
6
2
|
const lengthPrefixed = (part) => `${part.length}:${part}`;
|
|
7
3
|
const DECISION_SEPARATOR = '~';
|
|
8
|
-
// The key every decision on one award for one group shares.
|
|
9
4
|
export function buildAwardGroupGrantTargetKey(target) {
|
|
10
5
|
return [target.awardId, target.groupType, target.groupId].map(lengthPrefixed).join('');
|
|
11
6
|
}
|
|
12
|
-
// awardGroupGrants/{targetKey}~{decision}. The target key is length-prefixed throughout, so the
|
|
13
|
-
// decision after the last separator decodes one way.
|
|
14
7
|
export function buildAwardGroupGrantId(targetKey, decision) {
|
|
15
8
|
return `${targetKey}${DECISION_SEPARATOR}${decision}`;
|
|
16
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"award-grant-ids.js","sourceRoot":"","sources":["../../src/ids/award-grant-ids.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"award-grant-ids.js","sourceRoot":"","sources":["../../src/ids/award-grant-ids.ts"],"names":[],"mappings":"AAQA,2FAA2F;AAC3F,MAAM,cAAc,GAAG,CAAC,IAAY,EAAU,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE,CAAC;AAE1E,MAAM,kBAAkB,GAAG,GAAG,CAAC;AAE/B,MAAM,UAAU,6BAA6B,CAAC,MAA6B;IACzE,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzF,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,SAAiB,EAAE,QAAgB;IACxE,OAAO,GAAG,SAAS,GAAG,kBAAkB,GAAG,QAAQ,EAAE,CAAC;AACxD,CAAC","sourcesContent":["import type { AwardGroupType } from '../types/unions.js';\n\nexport interface AwardGroupGrantTarget {\n readonly awardId: string;\n readonly groupType: AwardGroupType;\n readonly groupId: string;\n}\n\n// A part prefixed by its length, so parts that contain any character still decode one way.\nconst lengthPrefixed = (part: string): string => `${part.length}:${part}`;\n\nconst DECISION_SEPARATOR = '~';\n\nexport function buildAwardGroupGrantTargetKey(target: AwardGroupGrantTarget): string {\n return [target.awardId, target.groupType, target.groupId].map(lengthPrefixed).join('');\n}\n\nexport function buildAwardGroupGrantId(targetKey: string, decision: number): string {\n return `${targetKey}${DECISION_SEPARATOR}${decision}`;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compound-ids.d.ts","sourceRoot":"","sources":["../../src/ids/compound-ids.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"compound-ids.d.ts","sourceRoot":"","sources":["../../src/ids/compound-ids.ts"],"names":[],"m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per relationship (RULE-STD-ARCH-109).
|
|
2
|
-
//
|
|
3
|
-
// `firestore.rules` restates these formats, because a rules file cannot import them.
|
|
4
|
-
//
|
|
5
|
-
// League and team ids are Firestore auto ids and never contain the separator. A user id can: a
|
|
6
|
-
// ghost id is `ghost_<timestamp>_<suffix>`. So the user id is always the LAST part, and a parser
|
|
7
|
-
// splits only on the leading separators and keeps the remainder whole.
|
|
8
1
|
export const COMPOUND_ID_SEPARATOR = '_';
|
|
9
2
|
function splitLeading(id, leadingParts) {
|
|
10
3
|
const parts = [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compound-ids.js","sourceRoot":"","sources":["../../src/ids/compound-ids.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"compound-ids.js","sourceRoot":"","sources":["../../src/ids/compound-ids.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,CAAC;AAEzC,SAAS,YAAY,CAAC,EAAU,EAAE,YAAoB;IACpD,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,IAAI,IAAI,GAAG,EAAE,CAAC;IACd,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,YAAY,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;QACzC,MAAM,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC;QAC/C,IAAI,EAAE,IAAI,CAAC;YAAE,OAAO,IAAI,CAAC;QACzB,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;QAC9B,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG,qBAAqB,CAAC,MAAM,CAAC,CAAC;IACvD,CAAC;IACD,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IACnC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACjB,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AE,KAAK,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;AAC/D,CAAC;AAOD,MAAM,UAAU,mBAAmB,CAAC,QAAgB,EAAE,MAAc;IAClE,OAAO,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;AACxD,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,EAAU;IAC5C,MAAM,KAAK,GAAG,YAAY,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;IAClC,OAAO,KAAK,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;AACjE,CAAC","sourcesContent":["export const COMPOUND_ID_SEPARATOR = '_';\n\nfunction splitLeading(id: string, leadingParts: number): string[] | null {\n const parts: string[] = [];\n let rest = id;\n for (let i = 0; i < leadingParts; i += 1) {\n const at = rest.indexOf(COMPOUND_ID_SEPARATOR);\n if (at <= 0) return null;\n parts.push(rest.slice(0, at));\n rest = rest.slice(at + COMPOUND_ID_SEPARATOR.length);\n }\n if (rest.length === 0) return null;\n parts.push(rest);\n return parts;\n}\n\nexport interface TeamMembershipIdParts {\n leagueId: string;\n teamId: string;\n userId: string;\n}\n\nexport function buildTeamMembershipId(leagueId: string, teamId: string, userId: string): string {\n return [leagueId, teamId, userId].join(COMPOUND_ID_SEPARATOR);\n}\n\nexport function parseTeamMembershipId(id: string): TeamMembershipIdParts | null {\n const parts = splitLeading(id, 2);\n return parts ? { leagueId: parts[0], teamId: parts[1], userId: parts[2] } : null;\n}\n\nexport interface LeagueFreeAgentIdParts {\n leagueId: string;\n userId: string;\n}\n\nexport function buildLeagueFreeAgentId(leagueId: string, userId: string): string {\n return [leagueId, userId].join(COMPOUND_ID_SEPARATOR);\n}\n\nexport function parseLeagueFreeAgentId(id: string): LeagueFreeAgentIdParts | null {\n const parts = splitLeading(id, 1);\n return parts ? { leagueId: parts[0], userId: parts[1] } : null;\n}\n\nexport interface GameRosterPlayerIdParts {\n teamId: string;\n userId: string;\n}\n\nexport function buildGameRosterPlayerId(teamId: string, userId: string): string {\n return [teamId, userId].join(COMPOUND_ID_SEPARATOR);\n}\n\nexport function parseGameRosterPlayerId(id: string): GameRosterPlayerIdParts | null {\n const parts = splitLeading(id, 1);\n return parts ? { teamId: parts[0], userId: parts[1] } : null;\n}\n\nexport interface SignedWaiverIdParts {\n leagueId: string;\n userId: string;\n}\n\nexport function buildSignedWaiverId(leagueId: string, userId: string): string {\n return [leagueId, userId].join(COMPOUND_ID_SEPARATOR);\n}\n\nexport function parseSignedWaiverId(id: string): SignedWaiverIdParts | null {\n const parts = splitLeading(id, 1);\n return parts ? { leagueId: parts[0], userId: parts[1] } : null;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"minted-ids.d.ts","sourceRoot":"","sources":["../../src/ids/minted-ids.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"minted-ids.d.ts","sourceRoot":"","sources":["../../src/ids/minted-ids.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,WAAW,CAAC;AAE7C,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAErD;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAEtE;AAID,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAEpE;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAEtE;AAID,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAEzE;AAED,eAAO,MAAM,WAAW,QAAQ,CAAC;AAEjC,eAAO,MAAM,cAAc,QAAQ,CAAC;AAEpC,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAEnD"}
|
package/dist/ids/minted-ids.js
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
// Minted identifiers and identity sentinels.
|
|
2
|
-
//
|
|
3
|
-
// Builders take the clock reading and the random suffix as arguments so they stay pure: the caller
|
|
4
|
-
// supplies `Date.now()` and its own randomness.
|
|
5
|
-
// A placeholder player carries a `ghost_`-prefixed id and has a publicUsers document (RULE-QS-BACKEND-903).
|
|
6
1
|
export const GHOST_USER_ID_PREFIX = 'ghost_';
|
|
7
2
|
export function isGhostUserId(userId) {
|
|
8
3
|
return userId.startsWith(GHOST_USER_ID_PREFIX);
|
|
@@ -10,25 +5,20 @@ export function isGhostUserId(userId) {
|
|
|
10
5
|
export function buildGhostUserId(nowMs, suffix) {
|
|
11
6
|
return `${GHOST_USER_ID_PREFIX}${nowMs}_${suffix}`;
|
|
12
7
|
}
|
|
13
|
-
//
|
|
14
|
-
//
|
|
15
|
-
// `req_` part never reads as a clock reading, so it cannot collide with a `buildGhostUserId` id.
|
|
8
|
+
// Its `req_` part never reads as a clock reading, so it cannot collide with a `buildGhostUserId`
|
|
9
|
+
// id.
|
|
16
10
|
export function buildGhostUserIdForRequest(requestId) {
|
|
17
11
|
return `${GHOST_USER_ID_PREFIX}req_${requestId}`;
|
|
18
12
|
}
|
|
19
|
-
// A new game's id, `{timestamp}_{suffix}`. A copied game keeps the id it was stored under.
|
|
20
13
|
export function buildSportGameId(nowMs, suffix) {
|
|
21
14
|
return `${nowMs}_${suffix}`;
|
|
22
15
|
}
|
|
23
|
-
//
|
|
24
|
-
//
|
|
25
|
-
// date, so two weeks starting on one day stay two weeks.
|
|
16
|
+
// Some stored weeks hold a date-derived `week-{YYYY-MM-DD}` id; a minted id never takes that form,
|
|
17
|
+
// and never derives from the date, so two weeks starting on one day stay two weeks.
|
|
26
18
|
export function buildScheduleWeekId(nowMs, suffix) {
|
|
27
19
|
return `week_${nowMs}_${suffix}`;
|
|
28
20
|
}
|
|
29
|
-
// The team slot of a bye week. Never a real leagueTeams id.
|
|
30
21
|
export const BYE_TEAM_ID = 'bye';
|
|
31
|
-
// How the bye slot reads wherever a game or a week names it — a matchup, a schedule, a refusal.
|
|
32
22
|
export const BYE_TEAM_LABEL = 'Bye';
|
|
33
23
|
export function isByeTeamId(teamId) {
|
|
34
24
|
return teamId === BYE_TEAM_ID;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"minted-ids.js","sourceRoot":"","sources":["../../src/ids/minted-ids.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"minted-ids.js","sourceRoot":"","sources":["../../src/ids/minted-ids.ts"],"names":[],"mappings":"AAAA,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,iGAAiG;AACjG,MAAM;AACN,MAAM,UAAU,0BAA0B,CAAC,SAAiB;IAC1D,OAAO,GAAG,oBAAoB,OAAO,SAAS,EAAE,CAAC;AACnD,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,KAAa,EAAE,MAAc;IAC5D,OAAO,GAAG,KAAK,IAAI,MAAM,EAAE,CAAC;AAC9B,CAAC;AAED,mGAAmG;AACnG,oFAAoF;AACpF,MAAM,UAAU,mBAAmB,CAAC,KAAa,EAAE,MAAc;IAC/D,OAAO,QAAQ,KAAK,IAAI,MAAM,EAAE,CAAC;AACnC,CAAC;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,KAAK,CAAC;AAEjC,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,CAAC;AAEpC,MAAM,UAAU,WAAW,CAAC,MAAc;IACxC,OAAO,MAAM,KAAK,WAAW,CAAC;AAChC,CAAC","sourcesContent":["export 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// Its `req_` part never reads as a clock reading, so it cannot collide with a `buildGhostUserId`\n// id.\nexport function buildGhostUserIdForRequest(requestId: string): string {\n return `${GHOST_USER_ID_PREFIX}req_${requestId}`;\n}\n\nexport function buildSportGameId(nowMs: number, suffix: string): string {\n return `${nowMs}_${suffix}`;\n}\n\n// Some stored weeks hold a date-derived `week-{YYYY-MM-DD}` id; a minted id never takes that form,\n// and never derives from the 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\nexport const BYE_TEAM_ID = 'bye';\n\nexport const BYE_TEAM_LABEL = 'Bye';\n\nexport function isByeTeamId(teamId: string): boolean {\n return teamId === BYE_TEAM_ID;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification-ids.d.ts","sourceRoot":"","sources":["../../src/ids/notification-ids.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"notification-ids.d.ts","sourceRoot":"","sources":["../../src/ids/notification-ids.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAKvE,wBAAgB,2BAA2B,CACzC,gBAAgB,EAAE,qBAAqB,EACvC,OAAO,EAAE,MAAM,GACd,MAAM,CAER;AAED,wBAAgB,mCAAmC,CACjD,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,GACjB,MAAM,CAER;AAED,wBAAgB,+BAA+B,CAAC,SAAS,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,MAAM,CAEjG;AAED,wBAAgB,gCAAgC,CAC9C,cAAc,EAAE,MAAM,EACtB,0BAA0B,EAAE,MAAM,GACjC,MAAM,CAER;AAED,MAAM,WAAW,gCAAgC;IAC/C,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACnB;AAID,wBAAgB,gCAAgC,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAE1F;AAED,wBAAgB,gCAAgC,CAC9C,EAAE,EAAE,MAAM,GACT,gCAAgC,GAAG,IAAI,CAOzC"}
|
|
@@ -1,30 +1,15 @@
|
|
|
1
|
-
// Admin notification ids. Each is deterministic from what it names, so a retried write lands on the
|
|
2
|
-
// document the first attempt wrote and never beside it (RULE-STD-BACKEND-304, RULE-STD-BACKEND-306).
|
|
3
|
-
//
|
|
4
|
-
// A shared card's own id is not here: notification-core derives it from the notification type and
|
|
5
|
-
// the aggregation key.
|
|
6
1
|
import { z } from 'zod';
|
|
7
2
|
import { COMPOUND_ID_SEPARATOR } from './compound-ids.js';
|
|
8
3
|
const requestIdSchema = z.uuid();
|
|
9
|
-
// notificationDeliveries/{notificationType}_{eventId} — one occurrence of one notification type. The
|
|
10
|
-
// type leads, so two types recording the same action never share a row.
|
|
11
4
|
export function buildNotificationDeliveryId(notificationType, eventId) {
|
|
12
5
|
return [notificationType, eventId].join(COMPOUND_ID_SEPARATOR);
|
|
13
6
|
}
|
|
14
|
-
// A player's free-agent signup in a league. A player can sign up, be placed on a team, and sign up
|
|
15
|
-
// again later, so the signup's time is part of the id: a later signup is a new occurrence, while a
|
|
16
|
-
// retry of the same signup is the same one.
|
|
17
7
|
export function buildLeagueFreeAgentSignedUpEventId(leagueId, userId, signedUpAt) {
|
|
18
8
|
return [leagueId, String(signedUpAt), userId].join(COMPOUND_ID_SEPARATOR);
|
|
19
9
|
}
|
|
20
|
-
// adminNotificationHistory/{requestId}_{notificationId} — one archive of one card. The archive's
|
|
21
|
-
// request id alone would let one "archive all" run's cards collide on one entry.
|
|
22
10
|
export function buildAdminNotificationHistoryId(requestId, notificationId) {
|
|
23
11
|
return [requestId, notificationId].join(COMPOUND_ID_SEPARATOR);
|
|
24
12
|
}
|
|
25
|
-
// The replay key an archive stores on its history entry: the card, and the generation of it the
|
|
26
|
-
// admin saw. An archive replayed with the same request finds its entry and the same key, and changes
|
|
27
|
-
// nothing.
|
|
28
13
|
export function buildAdminNotificationArchiveKey(notificationId, observedActivityGeneration) {
|
|
29
14
|
return [notificationId, observedActivityGeneration].join(COMPOUND_ID_SEPARATOR);
|
|
30
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification-ids.js","sourceRoot":"","sources":["../../src/ids/notification-ids.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"notification-ids.js","sourceRoot":"","sources":["../../src/ids/notification-ids.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAE1D,MAAM,eAAe,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;AAEjC,MAAM,UAAU,2BAA2B,CACzC,gBAAuC,EACvC,OAAe;IAEf,OAAO,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;AACjE,CAAC;AAED,MAAM,UAAU,mCAAmC,CACjD,QAAgB,EAChB,MAAc,EACd,UAAkB;IAElB,OAAO,CAAC,QAAQ,EAAE,MAAM,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;AAC5E,CAAC;AAED,MAAM,UAAU,+BAA+B,CAAC,SAAiB,EAAE,cAAsB;IACvF,OAAO,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;AACjE,CAAC;AAED,MAAM,UAAU,gCAAgC,CAC9C,cAAsB,EACtB,0BAAkC;IAElC,OAAO,CAAC,cAAc,EAAE,0BAA0B,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;AAClF,CAAC;AAOD,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAE7B,MAAM,UAAU,gCAAgC,CAAC,MAAc,EAAE,SAAiB;IAChF,OAAO,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;AACzD,CAAC;AAED,MAAM,UAAU,gCAAgC,CAC9C,EAAU;IAEV,MAAM,WAAW,GAAG,EAAE,CAAC,MAAM,GAAG,iBAAiB,GAAG,qBAAqB,CAAC,MAAM,CAAC;IACjF,IAAI,WAAW,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,qBAAqB,EAAE,WAAW,CAAC;QAAE,OAAO,IAAI,CAAC;IACvF,MAAM,MAAM,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC;IACxC,MAAM,SAAS,GAAG,EAAE,CAAC,KAAK,CAAC,WAAW,GAAG,qBAAqB,CAAC,MAAM,CAAC,CAAC;IACvE,IAAI,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,OAAO;QAAE,OAAO,IAAI,CAAC;IACvF,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;AAC/B,CAAC","sourcesContent":["import { z } from 'zod';\nimport type { AdminNotificationType } from '../types/notifications.js';\nimport { COMPOUND_ID_SEPARATOR } from './compound-ids.js';\n\nconst requestIdSchema = z.uuid();\n\nexport function buildNotificationDeliveryId(\n notificationType: AdminNotificationType,\n eventId: string,\n): string {\n return [notificationType, eventId].join(COMPOUND_ID_SEPARATOR);\n}\n\nexport function buildLeagueFreeAgentSignedUpEventId(\n leagueId: string,\n userId: string,\n signedUpAt: number,\n): string {\n return [leagueId, String(signedUpAt), userId].join(COMPOUND_ID_SEPARATOR);\n}\n\nexport function buildAdminNotificationHistoryId(requestId: string, notificationId: string): string {\n return [requestId, notificationId].join(COMPOUND_ID_SEPARATOR);\n}\n\nexport function buildAdminNotificationArchiveKey(\n notificationId: string,\n observedActivityGeneration: string,\n): string {\n return [notificationId, observedActivityGeneration].join(COMPOUND_ID_SEPARATOR);\n}\n\nexport interface NotificationArchiveAllJobIdParts {\n userId: string;\n requestId: string;\n}\n\nconst REQUEST_ID_LENGTH = 36;\n\nexport function buildNotificationArchiveAllJobId(userId: string, requestId: string): string {\n return [userId, requestId].join(COMPOUND_ID_SEPARATOR);\n}\n\nexport function parseNotificationArchiveAllJobId(\n id: string,\n): NotificationArchiveAllJobIdParts | null {\n const separatorAt = id.length - REQUEST_ID_LENGTH - COMPOUND_ID_SEPARATOR.length;\n if (separatorAt < 1 || !id.startsWith(COMPOUND_ID_SEPARATOR, separatorAt)) return null;\n const userId = id.slice(0, separatorAt);\n const requestId = id.slice(separatorAt + COMPOUND_ID_SEPARATOR.length);\n if (userId.includes('/') || !requestIdSchema.safeParse(requestId).success) return null;\n return { userId, requestId };\n}\n"]}
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import type { GalleryOwnerKind } from '../types/picture-owners.js';
|
|
2
2
|
export declare function isStagingId(value: string): boolean;
|
|
3
|
-
/**
|
|
4
|
-
* The `pictureRetirements` id of a whole gallery, written when its owner is deleted. A single
|
|
5
|
-
* picture's retirement is keyed by the picture id, which is a UUID and never starts with this
|
|
6
|
-
* prefix, so the two families cannot collide.
|
|
7
|
-
*/
|
|
8
3
|
export declare function buildGalleryRetirementId(ownerKind: GalleryOwnerKind, ownerId: string): string;
|
|
9
4
|
//# sourceMappingURL=picture-ids.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"picture-ids.d.ts","sourceRoot":"","sources":["../../src/ids/picture-ids.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"picture-ids.d.ts","sourceRoot":"","sources":["../../src/ids/picture-ids.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAKnE,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAElD;AAID,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAE7F"}
|
package/dist/ids/picture-ids.js
CHANGED
|
@@ -1,19 +1,8 @@
|
|
|
1
|
-
// Upload and picture ids.
|
|
2
|
-
//
|
|
3
|
-
// A staging id is minted by the uploading client as a UUID (the migration console's picture carry
|
|
4
|
-
// mints name-based ones). It names the staged object, and for a picture it is also the upload row's
|
|
5
|
-
// id and the picture's id for as long as the picture exists. Only the lowercase form is accepted, so
|
|
6
|
-
// a path the server rebuilds from the id can be compared for exact equality.
|
|
7
1
|
const STAGING_ID_PATTERN = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/;
|
|
8
2
|
export function isStagingId(value) {
|
|
9
3
|
return STAGING_ID_PATTERN.test(value);
|
|
10
4
|
}
|
|
11
5
|
const GALLERY_RETIREMENT_ID_PREFIX = 'gallery';
|
|
12
|
-
/**
|
|
13
|
-
* The `pictureRetirements` id of a whole gallery, written when its owner is deleted. A single
|
|
14
|
-
* picture's retirement is keyed by the picture id, which is a UUID and never starts with this
|
|
15
|
-
* prefix, so the two families cannot collide.
|
|
16
|
-
*/
|
|
17
6
|
export function buildGalleryRetirementId(ownerKind, ownerId) {
|
|
18
7
|
return `${GALLERY_RETIREMENT_ID_PREFIX}_${ownerKind}_${ownerId}`;
|
|
19
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"picture-ids.js","sourceRoot":"","sources":["../../src/ids/picture-ids.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"picture-ids.js","sourceRoot":"","sources":["../../src/ids/picture-ids.ts"],"names":[],"mappings":"AAEA,MAAM,kBAAkB,GACtB,2EAA2E,CAAC;AAE9E,MAAM,UAAU,WAAW,CAAC,KAAa;IACvC,OAAO,kBAAkB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AACxC,CAAC;AAED,MAAM,4BAA4B,GAAG,SAAS,CAAC;AAE/C,MAAM,UAAU,wBAAwB,CAAC,SAA2B,EAAE,OAAe;IACnF,OAAO,GAAG,4BAA4B,IAAI,SAAS,IAAI,OAAO,EAAE,CAAC;AACnE,CAAC","sourcesContent":["import type { GalleryOwnerKind } from '../types/picture-owners.js';\n\nconst STAGING_ID_PATTERN =\n /^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/;\n\nexport function isStagingId(value: string): boolean {\n return STAGING_ID_PATTERN.test(value);\n}\n\nconst GALLERY_RETIREMENT_ID_PREFIX = 'gallery';\n\nexport function buildGalleryRetirementId(ownerKind: GalleryOwnerKind, ownerId: string): string {\n return `${GALLERY_RETIREMENT_ID_PREFIX}_${ownerKind}_${ownerId}`;\n}\n"]}
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import type { StatCounterKey } from '../types/sports.js';
|
|
2
2
|
export declare function buildStatEventId(nowMs: number, suffix: string): string;
|
|
3
3
|
export declare const MAX_SPORT_STAT_EVENT_ID_LENGTH = 200;
|
|
4
|
-
/**
|
|
5
|
-
* Whether `id` can be a sport event's id — minted at the tap, or kept by a copied event: it begins
|
|
6
|
-
* with a digit and holds no path separator, so it names one document of the game's event
|
|
7
|
-
* subcollection and never a void's or a correction's id. A scoring write accepts no other id from
|
|
8
|
-
* its caller, because the id becomes a document path (RULE-STD-ARCH-106).
|
|
9
|
-
*/
|
|
10
4
|
export declare function isSportStatEventId(id: string): boolean;
|
|
11
5
|
export declare function buildStatVoidId(targetEventId: string): string;
|
|
12
6
|
export declare function buildStatCorrectionId(operationId: string, lineKey: string, field: StatCounterKey): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stat-event-ids.d.ts","sourceRoot":"","sources":["../../src/ids/stat-event-ids.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"stat-event-ids.d.ts","sourceRoot":"","sources":["../../src/ids/stat-event-ids.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAEtE;AAED,eAAO,MAAM,8BAA8B,MAAM,CAAC;AAElD,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAEtD;AAOD,wBAAgB,eAAe,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAE7D;AAED,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,cAAc,GACpB,MAAM,CAER;AAKD,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAK5D"}
|
|
@@ -1,22 +1,8 @@
|
|
|
1
|
-
// Ids of the stat event store: `sportGames/{gameId}/gameStatEvents/{eventId}` and the pages of a
|
|
2
|
-
// completed game's finalized record, `sportGames/{gameId}/gameStatHistory/{pageId}`.
|
|
3
|
-
//
|
|
4
|
-
// A sport event's id is minted once, at the tap, and every retry of that event reuses it — the id is
|
|
5
|
-
// what makes a re-send an acknowledgement rather than a second application (RULE-QS-SPORT-912). The two
|
|
6
|
-
// store-level events take ids derived from what they act on, so a target has at most one void and a
|
|
7
|
-
// correction operation writes at most one correction per line and field.
|
|
8
1
|
import { COMPOUND_ID_SEPARATOR } from './compound-ids.js';
|
|
9
2
|
export function buildStatEventId(nowMs, suffix) {
|
|
10
3
|
return `${nowMs}${COMPOUND_ID_SEPARATOR}${suffix}`;
|
|
11
4
|
}
|
|
12
|
-
// The longest sport event id a scoring write accepts — far past a minted id or a copied one.
|
|
13
5
|
export const MAX_SPORT_STAT_EVENT_ID_LENGTH = 200;
|
|
14
|
-
/**
|
|
15
|
-
* Whether `id` can be a sport event's id — minted at the tap, or kept by a copied event: it begins
|
|
16
|
-
* with a digit and holds no path separator, so it names one document of the game's event
|
|
17
|
-
* subcollection and never a void's or a correction's id. A scoring write accepts no other id from
|
|
18
|
-
* its caller, because the id becomes a document path (RULE-STD-ARCH-106).
|
|
19
|
-
*/
|
|
20
6
|
export function isSportStatEventId(id) {
|
|
21
7
|
return id.length <= MAX_SPORT_STAT_EVENT_ID_LENGTH && /^[0-9]/.test(id) && !id.includes('/');
|
|
22
8
|
}
|
|
@@ -27,7 +13,6 @@ const STAT_CORRECTION_ID_PREFIX = 'correction';
|
|
|
27
13
|
export function buildStatVoidId(targetEventId) {
|
|
28
14
|
return [STAT_VOID_ID_PREFIX, targetEventId].join(COMPOUND_ID_SEPARATOR);
|
|
29
15
|
}
|
|
30
|
-
// `lineKey` is the roster-entry id of a player line, or the team id of a team line.
|
|
31
16
|
export function buildStatCorrectionId(operationId, lineKey, field) {
|
|
32
17
|
return [STAT_CORRECTION_ID_PREFIX, operationId, lineKey, field].join(COMPOUND_ID_SEPARATOR);
|
|
33
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stat-event-ids.js","sourceRoot":"","sources":["../../src/ids/stat-event-ids.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"stat-event-ids.js","sourceRoot":"","sources":["../../src/ids/stat-event-ids.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAG1D,MAAM,UAAU,gBAAgB,CAAC,KAAa,EAAE,MAAc;IAC5D,OAAO,GAAG,KAAK,GAAG,qBAAqB,GAAG,MAAM,EAAE,CAAC;AACrD,CAAC;AAED,MAAM,CAAC,MAAM,8BAA8B,GAAG,GAAG,CAAC;AAElD,MAAM,UAAU,kBAAkB,CAAC,EAAU;IAC3C,OAAO,EAAE,CAAC,MAAM,IAAI,8BAA8B,IAAI,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;AAC/F,CAAC;AAED,kGAAkG;AAClG,YAAY;AACZ,MAAM,mBAAmB,GAAG,MAAM,CAAC;AACnC,MAAM,yBAAyB,GAAG,YAAY,CAAC;AAE/C,MAAM,UAAU,eAAe,CAAC,aAAqB;IACnD,OAAO,CAAC,mBAAmB,EAAE,aAAa,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;AAC1E,CAAC;AAED,MAAM,UAAU,qBAAqB,CACnC,WAAmB,EACnB,OAAe,EACf,KAAqB;IAErB,OAAO,CAAC,yBAAyB,EAAE,WAAW,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;AAC9F,CAAC;AAED,mEAAmE;AACnE,MAAM,6BAA6B,GAAG,CAAC,CAAC;AAExC,MAAM,UAAU,sBAAsB,CAAC,KAAa;IAClD,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC;QAC9C,MAAM,IAAI,UAAU,CAAC,+DAA+D,KAAK,GAAG,CAAC,CAAC;IAChG,CAAC;IACD,OAAO,OAAO,qBAAqB,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,6BAA6B,EAAE,GAAG,CAAC,EAAE,CAAC;AACrG,CAAC","sourcesContent":["import { COMPOUND_ID_SEPARATOR } from './compound-ids.js';\nimport type { StatCounterKey } from '../types/sports.js';\n\nexport function buildStatEventId(nowMs: number, suffix: string): string {\n return `${nowMs}${COMPOUND_ID_SEPARATOR}${suffix}`;\n}\n\nexport const MAX_SPORT_STAT_EVENT_ID_LENGTH = 200;\n\nexport function isSportStatEventId(id: string): boolean {\n return id.length <= MAX_SPORT_STAT_EVENT_ID_LENGTH && /^[0-9]/.test(id) && !id.includes('/');\n}\n\n// Minted event ids — and the ids copied events keep — begin with a digit, so these prefixes never\n// meet one.\nconst STAT_VOID_ID_PREFIX = 'void';\nconst STAT_CORRECTION_ID_PREFIX = 'correction';\n\nexport function buildStatVoidId(targetEventId: string): string {\n return [STAT_VOID_ID_PREFIX, targetEventId].join(COMPOUND_ID_SEPARATOR);\n}\n\nexport function buildStatCorrectionId(\n operationId: string,\n lineKey: string,\n field: StatCounterKey,\n): string {\n return [STAT_CORRECTION_ID_PREFIX, operationId, lineKey, field].join(COMPOUND_ID_SEPARATOR);\n}\n\n// Zero-padded so the pages of one record sort in page order by id.\nconst STAT_HISTORY_PAGE_INDEX_WIDTH = 4;\n\nexport function buildStatHistoryPageId(index: number): string {\n if (!Number.isSafeInteger(index) || index < 0) {\n throw new RangeError(`A finalized-record page index is a whole number from 0, not ${index}.`);\n }\n return `page${COMPOUND_ID_SEPARATOR}${String(index).padStart(STAT_HISTORY_PAGE_INDEX_WIDTH, '0')}`;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stats-operation-ids.d.ts","sourceRoot":"","sources":["../../src/ids/stats-operation-ids.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"stats-operation-ids.d.ts","sourceRoot":"","sources":["../../src/ids/stats-operation-ids.ts"],"names":[],"mappings":"AAIA,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEnE;AAID,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,CAErF"}
|
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
// `statsOperations` ids the server derives from what the operation acts on, so a retried call finds
|
|
2
|
-
// the operation it started instead of starting a second one, and no client names the document.
|
|
3
1
|
import { COMPOUND_ID_SEPARATOR } from './compound-ids.js';
|
|
4
2
|
const GAME_DELETION_OPERATION_ID_PREFIX = 'gameDeletion';
|
|
5
|
-
// A game is deleted at most once, so its id names the one deletion it can have; a client-minted id
|
|
6
|
-
// would let a caller address another action's operation document (RULE-STD-BACKEND-102).
|
|
7
3
|
export function buildGameDeletionOperationId(gameId) {
|
|
8
4
|
return [GAME_DELETION_OPERATION_ID_PREFIX, gameId].join(COMPOUND_ID_SEPARATOR);
|
|
9
5
|
}
|
|
10
6
|
const GHOST_PLAYER_OPERATION_ID_PREFIX = 'ghostPlayer';
|
|
11
|
-
// A ghost has exactly one operation for both of its ways out — a link to a real account, or its
|
|
12
|
-
// removal — so two links of one ghost, or a link and a removal, find the same document and refuse
|
|
13
|
-
// each other instead of interleaving. The team is part of it because a link acts on one team.
|
|
14
7
|
export function buildGhostLinkOperationId(teamId, ghostUserId) {
|
|
15
8
|
return [GHOST_PLAYER_OPERATION_ID_PREFIX, teamId, ghostUserId].join(COMPOUND_ID_SEPARATOR);
|
|
16
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stats-operation-ids.js","sourceRoot":"","sources":["../../src/ids/stats-operation-ids.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"stats-operation-ids.js","sourceRoot":"","sources":["../../src/ids/stats-operation-ids.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAE1D,MAAM,iCAAiC,GAAG,cAAc,CAAC;AAEzD,MAAM,UAAU,4BAA4B,CAAC,MAAc;IACzD,OAAO,CAAC,iCAAiC,EAAE,MAAM,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;AACjF,CAAC;AAED,MAAM,gCAAgC,GAAG,aAAa,CAAC;AAEvD,MAAM,UAAU,yBAAyB,CAAC,MAAc,EAAE,WAAmB;IAC3E,OAAO,CAAC,gCAAgC,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;AAC7F,CAAC","sourcesContent":["import { COMPOUND_ID_SEPARATOR } from './compound-ids.js';\n\nconst GAME_DELETION_OPERATION_ID_PREFIX = 'gameDeletion';\n\nexport function buildGameDeletionOperationId(gameId: string): string {\n return [GAME_DELETION_OPERATION_ID_PREFIX, gameId].join(COMPOUND_ID_SEPARATOR);\n}\n\nconst GHOST_PLAYER_OPERATION_ID_PREFIX = 'ghostPlayer';\n\nexport function buildGhostLinkOperationId(teamId: string, ghostUserId: string): string {\n return [GHOST_PLAYER_OPERATION_ID_PREFIX, teamId, ghostUserId].join(COMPOUND_ID_SEPARATOR);\n}\n"]}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export declare function buildWaiverTemplateVersionId(version: number): string;
|
|
2
|
-
/** The version a `v{version}` id names, or `null` when the id is not one. */
|
|
3
2
|
export declare function parseWaiverTemplateVersionId(versionId: string): number | null;
|
|
4
3
|
//# sourceMappingURL=waiver-template-ids.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"waiver-template-ids.d.ts","sourceRoot":"","sources":["../../src/ids/waiver-template-ids.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"waiver-template-ids.d.ts","sourceRoot":"","sources":["../../src/ids/waiver-template-ids.ts"],"names":[],"mappings":"AAKA,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAKpE;AAED,wBAAgB,4BAA4B,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAG7E"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// The id of one published version of a waiver template: `v{version}`, version counting from 1.
|
|
2
1
|
const WAIVER_TEMPLATE_VERSION_ID_PREFIX = 'v';
|
|
3
2
|
const WAIVER_TEMPLATE_VERSION_ID_PATTERN = new RegExp(`^${WAIVER_TEMPLATE_VERSION_ID_PREFIX}([1-9]\\d*)$`);
|
|
4
3
|
export function buildWaiverTemplateVersionId(version) {
|
|
@@ -7,7 +6,6 @@ export function buildWaiverTemplateVersionId(version) {
|
|
|
7
6
|
}
|
|
8
7
|
return `${WAIVER_TEMPLATE_VERSION_ID_PREFIX}${version}`;
|
|
9
8
|
}
|
|
10
|
-
/** The version a `v{version}` id names, or `null` when the id is not one. */
|
|
11
9
|
export function parseWaiverTemplateVersionId(versionId) {
|
|
12
10
|
const match = WAIVER_TEMPLATE_VERSION_ID_PATTERN.exec(versionId);
|
|
13
11
|
return match ? Number(match[1]) : null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"waiver-template-ids.js","sourceRoot":"","sources":["../../src/ids/waiver-template-ids.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"waiver-template-ids.js","sourceRoot":"","sources":["../../src/ids/waiver-template-ids.ts"],"names":[],"mappings":"AAAA,MAAM,iCAAiC,GAAG,GAAG,CAAC;AAC9C,MAAM,kCAAkC,GAAG,IAAI,MAAM,CACnD,IAAI,iCAAiC,cAAc,CACpD,CAAC;AAEF,MAAM,UAAU,4BAA4B,CAAC,OAAe;IAC1D,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,OAAO,GAAG,CAAC,EAAE,CAAC;QAC9C,MAAM,IAAI,KAAK,CAAC,2DAA2D,OAAO,GAAG,CAAC,CAAC;IACzF,CAAC;IACD,OAAO,GAAG,iCAAiC,GAAG,OAAO,EAAE,CAAC;AAC1D,CAAC;AAED,MAAM,UAAU,4BAA4B,CAAC,SAAiB;IAC5D,MAAM,KAAK,GAAG,kCAAkC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACjE,OAAO,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AACzC,CAAC","sourcesContent":["const WAIVER_TEMPLATE_VERSION_ID_PREFIX = 'v';\nconst WAIVER_TEMPLATE_VERSION_ID_PATTERN = new RegExp(\n `^${WAIVER_TEMPLATE_VERSION_ID_PREFIX}([1-9]\\\\d*)$`,\n);\n\nexport function buildWaiverTemplateVersionId(version: number): string {\n if (!Number.isInteger(version) || version < 1) {\n throw new Error(`A waiver template version is a whole number from 1; got ${version}.`);\n }\n return `${WAIVER_TEMPLATE_VERSION_ID_PREFIX}${version}`;\n}\n\nexport function parseWaiverTemplateVersionId(versionId: string): number | null {\n const match = WAIVER_TEMPLATE_VERSION_ID_PATTERN.exec(versionId);\n return match ? Number(match[1]) : null;\n}\n"]}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from './input-formats/input-formats.js';
|
|
2
2
|
export * from './migration-console/action-ids.js';
|
|
3
|
+
export * from './migration-console/console-lock.js';
|
|
4
|
+
export * from './migration-console/consumed-source.js';
|
|
3
5
|
export * from './migration-console/manifest.js';
|
|
4
6
|
export * from './migration-console/run-state.js';
|
|
5
7
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,qCAAqC,CAAC;AACpD,cAAc,wCAAwC,CAAC;AACvD,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
// The package root carries only the modules no folder entry owns; every other definition is exported
|
|
2
|
-
// by its own folder's entry alone (RULE-STD-ARCH-203).
|
|
3
1
|
export * from './input-formats/input-formats.js';
|
|
4
2
|
export * from './migration-console/action-ids.js';
|
|
3
|
+
export * from './migration-console/console-lock.js';
|
|
4
|
+
export * from './migration-console/consumed-source.js';
|
|
5
5
|
export * from './migration-console/manifest.js';
|
|
6
6
|
export * from './migration-console/run-state.js';
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,qCAAqC,CAAC;AACpD,cAAc,wCAAwC,CAAC;AACvD,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC","sourcesContent":["export * from './input-formats/input-formats.js';\nexport * from './migration-console/action-ids.js';\nexport * from './migration-console/console-lock.js';\nexport * from './migration-console/consumed-source.js';\nexport * from './migration-console/manifest.js';\nexport * from './migration-console/run-state.js';\n"]}
|