@ttt-productions/q-core 0.1.48 → 0.1.50
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/sports.d.ts +0 -13
- package/dist/constants/sports.d.ts.map +1 -1
- package/dist/constants/sports.js +0 -13
- package/dist/constants/sports.js.map +1 -1
- package/dist/constants/text-fields.d.ts +0 -6
- package/dist/constants/text-fields.d.ts.map +1 -1
- package/dist/constants/text-fields.js +0 -6
- package/dist/constants/text-fields.js.map +1 -1
- package/dist/doc-schemas/admin-notifications.d.ts +1 -1
- package/dist/doc-schemas/atoms.d.ts.map +1 -1
- package/dist/doc-schemas/atoms.js +1 -1
- package/dist/doc-schemas/atoms.js.map +1 -1
- package/dist/doc-schemas/audit-event.d.ts +124 -122
- package/dist/doc-schemas/audit-event.d.ts.map +1 -1
- package/dist/doc-schemas/game-stat-history.d.ts +0 -1
- package/dist/doc-schemas/game-stat-history.d.ts.map +1 -1
- package/dist/doc-schemas/game-stats.d.ts +0 -2
- package/dist/doc-schemas/game-stats.d.ts.map +1 -1
- package/dist/doc-schemas/game-stats.js +1 -2
- package/dist/doc-schemas/game-stats.js.map +1 -1
- package/dist/doc-schemas/index.d.ts +2 -1
- package/dist/doc-schemas/index.d.ts.map +1 -1
- package/dist/doc-schemas/index.js +2 -1
- package/dist/doc-schemas/index.js.map +1 -1
- package/dist/doc-schemas/migration-console.d.ts +6 -20
- package/dist/doc-schemas/migration-console.d.ts.map +1 -1
- package/dist/doc-schemas/migration-console.js +2 -7
- package/dist/doc-schemas/migration-console.js.map +1 -1
- package/dist/doc-schemas/pending-media.d.ts +725 -165
- package/dist/doc-schemas/pending-media.d.ts.map +1 -1
- package/dist/doc-schemas/registry.d.ts +385 -292
- package/dist/doc-schemas/registry.d.ts.map +1 -1
- package/dist/doc-schemas/registry.js +3 -2
- package/dist/doc-schemas/registry.js.map +1 -1
- package/dist/doc-schemas/stats-changes.d.ts +21 -0
- package/dist/doc-schemas/stats-changes.d.ts.map +1 -0
- package/dist/doc-schemas/stats-changes.js +19 -0
- package/dist/doc-schemas/stats-changes.js.map +1 -0
- package/dist/doc-schemas/stats-job.d.ts +36 -0
- package/dist/doc-schemas/stats-job.d.ts.map +1 -0
- package/dist/doc-schemas/stats-job.js +26 -0
- package/dist/doc-schemas/stats-job.js.map +1 -0
- package/dist/doc-schemas/system.d.ts +1 -1
- package/dist/doc-schemas/system.d.ts.map +1 -1
- package/dist/doc-schemas/system.js +2 -2
- package/dist/doc-schemas/system.js.map +1 -1
- package/dist/domain-events/domain-events.d.ts +337 -91
- package/dist/domain-events/domain-events.d.ts.map +1 -1
- package/dist/domain-events/domain-events.js +189 -83
- package/dist/domain-events/domain-events.js.map +1 -1
- package/dist/ids/index.d.ts +2 -0
- package/dist/ids/index.d.ts.map +1 -1
- package/dist/ids/index.js +2 -0
- package/dist/ids/index.js.map +1 -1
- package/dist/ids/notification-ids.d.ts +2 -4
- package/dist/ids/notification-ids.d.ts.map +1 -1
- package/dist/ids/notification-ids.js +3 -12
- package/dist/ids/notification-ids.js.map +1 -1
- package/dist/ids/request-job-ids.d.ts +7 -0
- package/dist/ids/request-job-ids.d.ts.map +1 -0
- package/dist/ids/request-job-ids.js +18 -0
- package/dist/ids/request-job-ids.js.map +1 -0
- package/dist/ids/stats-ids.d.ts +7 -0
- package/dist/ids/stats-ids.d.ts.map +1 -0
- package/dist/ids/stats-ids.js +17 -0
- package/dist/ids/stats-ids.js.map +1 -0
- package/dist/migration-console/action-ids.d.ts +1 -3
- package/dist/migration-console/action-ids.d.ts.map +1 -1
- package/dist/migration-console/action-ids.js +1 -3
- package/dist/migration-console/action-ids.js.map +1 -1
- package/dist/migration-console/manifest.d.ts +5 -5
- package/dist/migration-console/manifest.d.ts.map +1 -1
- package/dist/migration-console/manifest.js +19 -49
- package/dist/migration-console/manifest.js.map +1 -1
- package/dist/paths/collection-refs.d.ts +1 -1
- package/dist/paths/collection-refs.d.ts.map +1 -1
- package/dist/paths/collection-refs.js +1 -1
- package/dist/paths/collection-refs.js.map +1 -1
- package/dist/paths/collections.d.ts +15 -1
- package/dist/paths/collections.d.ts.map +1 -1
- package/dist/paths/collections.js +29 -1
- package/dist/paths/collections.js.map +1 -1
- package/dist/paths/path-builders.d.ts +1 -1
- package/dist/paths/path-builders.d.ts.map +1 -1
- package/dist/paths/path-builders.js +1 -4
- package/dist/paths/path-builders.js.map +1 -1
- package/dist/schemas/account-settings.d.ts +4 -4
- package/dist/schemas/account-settings.d.ts.map +1 -1
- package/dist/schemas/account-settings.js +2 -2
- package/dist/schemas/account-settings.js.map +1 -1
- package/dist/schemas/admin-notifications.d.ts +13 -13
- package/dist/schemas/admin-notifications.d.ts.map +1 -1
- package/dist/schemas/admin-notifications.js +8 -6
- package/dist/schemas/admin-notifications.js.map +1 -1
- package/dist/schemas/admin-stats.d.ts +6 -6
- package/dist/schemas/admin-stats.d.ts.map +1 -1
- package/dist/schemas/admin-stats.js +3 -3
- package/dist/schemas/admin-stats.js.map +1 -1
- package/dist/schemas/app-config.d.ts +4 -4
- package/dist/schemas/app-config.d.ts.map +1 -1
- package/dist/schemas/app-config.js +2 -2
- package/dist/schemas/app-config.js.map +1 -1
- package/dist/schemas/awards.d.ts +8 -8
- package/dist/schemas/awards.d.ts.map +1 -1
- package/dist/schemas/awards.js +4 -4
- package/dist/schemas/awards.js.map +1 -1
- package/dist/schemas/dead-letters.d.ts +15 -9
- package/dist/schemas/dead-letters.d.ts.map +1 -1
- package/dist/schemas/dead-letters.js +6 -5
- package/dist/schemas/dead-letters.js.map +1 -1
- package/dist/schemas/hardware-loan-contracts.d.ts +8 -8
- package/dist/schemas/hardware-loan-contracts.d.ts.map +1 -1
- package/dist/schemas/hardware-loan-contracts.js +4 -4
- package/dist/schemas/hardware-loan-contracts.js.map +1 -1
- package/dist/schemas/leagues.d.ts +4 -4
- package/dist/schemas/leagues.d.ts.map +1 -1
- package/dist/schemas/leagues.js +2 -2
- package/dist/schemas/leagues.js.map +1 -1
- package/dist/schemas/migration-console.d.ts +21 -62
- package/dist/schemas/migration-console.d.ts.map +1 -1
- package/dist/schemas/migration-console.js +5 -10
- package/dist/schemas/migration-console.js.map +1 -1
- package/dist/schemas/pictures.d.ts +447 -111
- package/dist/schemas/pictures.d.ts.map +1 -1
- package/dist/schemas/pictures.js +6 -6
- package/dist/schemas/pictures.js.map +1 -1
- package/dist/schemas/scoring.d.ts +22 -28
- package/dist/schemas/scoring.d.ts.map +1 -1
- package/dist/schemas/scoring.js +17 -13
- package/dist/schemas/scoring.js.map +1 -1
- package/dist/schemas/stats.d.ts +92 -127
- package/dist/schemas/stats.d.ts.map +1 -1
- package/dist/schemas/stats.js +50 -83
- package/dist/schemas/stats.js.map +1 -1
- package/dist/schemas/team-joining.d.ts +4 -4
- package/dist/schemas/team-joining.d.ts.map +1 -1
- package/dist/schemas/team-joining.js +2 -2
- package/dist/schemas/team-joining.js.map +1 -1
- package/dist/schemas/teams.d.ts +16 -16
- package/dist/schemas/teams.d.ts.map +1 -1
- package/dist/schemas/teams.js +8 -8
- package/dist/schemas/teams.js.map +1 -1
- package/dist/schemas/uploads.d.ts +12 -12
- package/dist/schemas/uploads.d.ts.map +1 -1
- package/dist/schemas/uploads.js +8 -6
- package/dist/schemas/uploads.js.map +1 -1
- package/dist/schemas/users.d.ts +28 -28
- package/dist/schemas/users.d.ts.map +1 -1
- package/dist/schemas/users.js +14 -14
- package/dist/schemas/users.js.map +1 -1
- package/dist/sports/basketball-scoring.d.ts.map +1 -1
- package/dist/sports/basketball-scoring.js +16 -7
- package/dist/sports/basketball-scoring.js.map +1 -1
- package/dist/sports/bulk-entry.d.ts +7 -2
- package/dist/sports/bulk-entry.d.ts.map +1 -1
- package/dist/sports/bulk-entry.js.map +1 -1
- package/dist/sports/football-scoring.d.ts.map +1 -1
- package/dist/sports/football-scoring.js +13 -10
- package/dist/sports/football-scoring.js.map +1 -1
- package/dist/sports/replay.d.ts.map +1 -1
- package/dist/sports/replay.js +16 -1
- package/dist/sports/replay.js.map +1 -1
- package/dist/sports/scoring.d.ts +18 -2
- package/dist/sports/scoring.d.ts.map +1 -1
- package/dist/sports/scoring.js.map +1 -1
- package/dist/sports/store-driver.d.ts +2 -1
- package/dist/sports/store-driver.d.ts.map +1 -1
- package/dist/sports/store-driver.js +30 -15
- 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 +37 -36
- package/dist/types/audit.js.map +1 -1
- package/dist/types/stats.d.ts +13 -13
- package/dist/types/stats.d.ts.map +1 -1
- package/dist/types/stats.js +13 -33
- package/dist/types/stats.js.map +1 -1
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +0 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/doc-schemas/stats-operation.d.ts +0 -348
- package/dist/doc-schemas/stats-operation.d.ts.map +0 -1
- package/dist/doc-schemas/stats-operation.js +0 -92
- package/dist/doc-schemas/stats-operation.js.map +0 -1
- package/dist/utils/stats-operation-request.d.ts +0 -20
- package/dist/utils/stats-operation-request.d.ts.map +0 -1
- package/dist/utils/stats-operation-request.js +0 -10
- package/dist/utils/stats-operation-request.js.map +0 -1
|
@@ -16,7 +16,6 @@ export declare const CURLING_ROUND_COUNT = 14;
|
|
|
16
16
|
export declare const MAX_CURLING_ROUND_POINTS = 4;
|
|
17
17
|
export declare const MAX_STAT_COUNT = 999999;
|
|
18
18
|
export declare const MAX_STAT_EVENTS_PER_WRITE = 200;
|
|
19
|
-
export declare const MAX_GAME_STATS_CORRECTION_TARGETS = 200;
|
|
20
19
|
export declare const MAX_STATS_REPAIR_LISTED_CHANGES = 500;
|
|
21
20
|
export declare const MAX_STATS_VALIDATION_DISCREPANCIES = 500;
|
|
22
21
|
export declare const FOOTBALL_POINTS_BY_EVENT_TYPE: {
|
|
@@ -37,23 +36,11 @@ export declare const STAT_EVENT_REFUSAL_COPY: {
|
|
|
37
36
|
readonly roundNotNext: "That round is not the next one to record.";
|
|
38
37
|
readonly roundsComplete: "Every round is already recorded.";
|
|
39
38
|
readonly bulkValueInvalid: "That entry is not a real result: stats are whole numbers and never go below zero.";
|
|
40
|
-
readonly bulkStale: "The numbers changed while you were editing. Check the flagged values and save again.";
|
|
41
39
|
readonly eventIdConflict: "A different stat was already saved under this one. Discard it and enter it again.";
|
|
42
40
|
readonly voidTargetNotSportEvent: "There is no recorded stat there to undo.";
|
|
43
41
|
readonly correctionNotAccepted: "Corrections are made from Fix stats, not from the scoring screen.";
|
|
44
|
-
readonly undoBelowZero: "Undoing that play would leave a stat below zero, because a later entry already lowered it.";
|
|
45
42
|
};
|
|
46
43
|
export declare const STATS_MIGRATION_OPERATION_ID = "migration";
|
|
47
|
-
export declare const STATS_MIGRATION_CORRECTION_REASON = "The recorded result differs from what its recorded plays add up to; this correction keeps the recorded result.";
|
|
48
|
-
export declare const GAME_REPAIR_REFUSAL_COPY: {
|
|
49
|
-
readonly eventUnreadable: "One of this game's recorded stats can no longer be read. Fix the event in the console, then repair the game.";
|
|
50
|
-
readonly eventSequenceGap: "This game's recorded stats are numbered with a gap or a repeat. Fix the event documents in the console, then restore the game.";
|
|
51
|
-
readonly sourcesDisagree: "This game's record, its stored numbers, and its recorded stats all disagree, so nothing says what was applied. Fix the game in the console first.";
|
|
52
|
-
readonly scoreAmbiguous: "The team's score was edited in two places to different values. Enter the score you want as a correction instead.";
|
|
53
|
-
readonly fieldNotCorrectable: "That number cannot be corrected for this sport. Restore the game from its recorded stats, or reopen it and score it again.";
|
|
54
|
-
readonly lineNotRostered: "That player is not on this game's roster.";
|
|
55
|
-
readonly teamNotInGame: "That team is not playing in this game.";
|
|
56
|
-
};
|
|
57
44
|
export declare const FINALIZATION_NOT_READY_COPY: {
|
|
58
45
|
readonly roundsIncomplete: "Every round must be recorded before the game can be finalized.";
|
|
59
46
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sports.d.ts","sourceRoot":"","sources":["../../src/constants/sports.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sports.d.ts","sourceRoot":"","sources":["../../src/constants/sports.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,+BAA+B;;;;;;;;CAQgB,CAAC;AAI7D,eAAO,MAAM,gCAAgC;;;;CAIe,CAAC;AAE7D,eAAO,MAAM,mBAAmB,KAAK,CAAC;AAEtC,eAAO,MAAM,wBAAwB,IAAI,CAAC;AAE1C,eAAO,MAAM,cAAc,SAAU,CAAC;AAItC,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAE7C,eAAO,MAAM,+BAA+B,MAAM,CAAC;AAEnD,eAAO,MAAM,kCAAkC,MAAM,CAAC;AAEtD,eAAO,MAAM,6BAA6B;;;;;CAKgB,CAAC;AAE3D,eAAO,MAAM,wBAAwB,2CAA2C,CAAC;AAEjF,eAAO,MAAM,0BAA0B,8CAA8C,CAAC;AAEtF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;CAgBqB,CAAC;AAE1D,eAAO,MAAM,4BAA4B,cAAc,CAAC;AACxD,eAAO,MAAM,2BAA2B;;CAEuB,CAAC;AAEhE,eAAO,MAAM,kCAAkC,wBAAyB,CAAC;AACzE,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,kCAAkC,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
package/dist/constants/sports.js
CHANGED
|
@@ -21,7 +21,6 @@ export const MAX_STAT_COUNT = 999_999;
|
|
|
21
21
|
// The most events one scoring write may carry: each event is a document created in the write's one
|
|
22
22
|
// transaction, and a Firestore transaction commits at most 500 writes.
|
|
23
23
|
export const MAX_STAT_EVENTS_PER_WRITE = 200;
|
|
24
|
-
export const MAX_GAME_STATS_CORRECTION_TARGETS = 200;
|
|
25
24
|
export const MAX_STATS_REPAIR_LISTED_CHANGES = 500;
|
|
26
25
|
export const MAX_STATS_VALIDATION_DISCREPANCIES = 500;
|
|
27
26
|
export const FOOTBALL_POINTS_BY_EVENT_TYPE = {
|
|
@@ -42,23 +41,11 @@ export const STAT_EVENT_REFUSAL_COPY = {
|
|
|
42
41
|
roundNotNext: 'That round is not the next one to record.',
|
|
43
42
|
roundsComplete: 'Every round is already recorded.',
|
|
44
43
|
bulkValueInvalid: 'That entry is not a real result: stats are whole numbers and never go below zero.',
|
|
45
|
-
bulkStale: 'The numbers changed while you were editing. Check the flagged values and save again.',
|
|
46
44
|
eventIdConflict: 'A different stat was already saved under this one. Discard it and enter it again.',
|
|
47
45
|
voidTargetNotSportEvent: 'There is no recorded stat there to undo.',
|
|
48
46
|
correctionNotAccepted: 'Corrections are made from Fix stats, not from the scoring screen.',
|
|
49
|
-
undoBelowZero: 'Undoing that play would leave a stat below zero, because a later entry already lowered it.',
|
|
50
47
|
};
|
|
51
48
|
export const STATS_MIGRATION_OPERATION_ID = 'migration';
|
|
52
|
-
export const STATS_MIGRATION_CORRECTION_REASON = 'The recorded result differs from what its recorded plays add up to; this correction keeps the recorded result.';
|
|
53
|
-
export const GAME_REPAIR_REFUSAL_COPY = {
|
|
54
|
-
eventUnreadable: "One of this game's recorded stats can no longer be read. Fix the event in the console, then repair the game.",
|
|
55
|
-
eventSequenceGap: "This game's recorded stats are numbered with a gap or a repeat. Fix the event documents in the console, then restore the game.",
|
|
56
|
-
sourcesDisagree: "This game's record, its stored numbers, and its recorded stats all disagree, so nothing says what was applied. Fix the game in the console first.",
|
|
57
|
-
scoreAmbiguous: "The team's score was edited in two places to different values. Enter the score you want as a correction instead.",
|
|
58
|
-
fieldNotCorrectable: 'That number cannot be corrected for this sport. Restore the game from its recorded stats, or reopen it and score it again.',
|
|
59
|
-
lineNotRostered: "That player is not on this game's roster.",
|
|
60
|
-
teamNotInGame: 'That team is not playing in this game.',
|
|
61
|
-
};
|
|
62
49
|
export const FINALIZATION_NOT_READY_COPY = {
|
|
63
50
|
roundsIncomplete: 'Every round must be recorded before the game can be finalized.',
|
|
64
51
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sports.js","sourceRoot":"","sources":["../../src/constants/sports.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,EAC5B,+BAA+B,EAC/B,+BAA+B,EAC/B,6BAA6B,EAC7B,iCAAiC,EACjC,6BAA6B,EAC7B,+BAA+B,EAC/B,6BAA6B,EAC7B,6BAA6B,EAC7B,6BAA6B,EAC7B,6BAA6B,GAC9B,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"sports.js","sourceRoot":"","sources":["../../src/constants/sports.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,EAC5B,+BAA+B,EAC/B,+BAA+B,EAC/B,6BAA6B,EAC7B,iCAAiC,EACjC,6BAA6B,EAC7B,+BAA+B,EAC/B,6BAA6B,EAC7B,6BAA6B,EAC7B,6BAA6B,EAC7B,6BAA6B,GAC9B,MAAM,oBAAoB,CAAC;AAQ5B,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC7C,CAAC,+BAA+B,CAAC,EAAE,CAAC;IACpC,CAAC,+BAA+B,CAAC,EAAE,CAAC;IACpC,CAAC,iCAAiC,CAAC,EAAE,CAAC;IACtC,CAAC,6BAA6B,CAAC,EAAE,CAAC;IAClC,CAAC,4BAA4B,CAAC,EAAE,CAAC;IACjC,CAAC,6BAA6B,CAAC,EAAE,CAAC;IAClC,CAAC,+BAA+B,CAAC,EAAE,CAAC;CACsB,CAAC;AAE7D,4FAA4F;AAC5F,oBAAoB;AACpB,MAAM,CAAC,MAAM,gCAAgC,GAAG;IAC9C,MAAM,EAAE,CAAC;IACT,QAAQ,EAAE,GAAG;IACb,OAAO,EAAE,CAAC;CACgD,CAAC;AAE7D,MAAM,CAAC,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAEtC,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC;AAE1C,MAAM,CAAC,MAAM,cAAc,GAAG,OAAO,CAAC;AAEtC,mGAAmG;AACnG,uEAAuE;A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_POINT_EVENT_TYPE,\n BASKETBALL_TIMEOUT_EVENT_TYPE,\n BASKETBALL_TWO_POINT_EVENT_TYPE,\n FOOTBALL_BULK_EDIT_EVENT_TYPE,\n FOOTBALL_ONE_POINT_EVENT_TYPE,\n FOOTBALL_SIX_POINT_EVENT_TYPE,\n FOOTBALL_TWO_POINT_EVENT_TYPE,\n} from '../types/sports.js';\nimport type {\n BasketballPlayerStatKey,\n BasketballStatEventType,\n FootballStatEventType,\n} from '../types/sports.js';\nimport type { FinalizationNotReadyReason, StatEventRefusalCode } from '../types/stats.js';\n\nexport const BASKETBALL_POINTS_BY_EVENT_TYPE = {\n [BASKETBALL_ONE_POINT_EVENT_TYPE]: 1,\n [BASKETBALL_TWO_POINT_EVENT_TYPE]: 2,\n [BASKETBALL_THREE_POINT_EVENT_TYPE]: 3,\n [BASKETBALL_REBOUND_EVENT_TYPE]: 0,\n [BASKETBALL_ASSIST_EVENT_TYPE]: 0,\n [BASKETBALL_TIMEOUT_EVENT_TYPE]: 0,\n [BASKETBALL_BULK_EDIT_EVENT_TYPE]: 0,\n} as const satisfies Record<BasketballStatEventType, number>;\n\n// Every weight is a multiple of one half, so FP summed across games equals FP of the summed\n// counters exactly.\nexport const BASKETBALL_FANTASY_POINT_WEIGHTS = {\n points: 1,\n rebounds: 1.5,\n assists: 2,\n} as const satisfies Record<BasketballPlayerStatKey, number>;\n\nexport const CURLING_ROUND_COUNT = 14;\n\nexport const MAX_CURLING_ROUND_POINTS = 4;\n\nexport const MAX_STAT_COUNT = 999_999;\n\n// The most events one scoring write may carry: each event is a document created in the write's one\n// transaction, and a Firestore transaction commits at most 500 writes.\nexport const MAX_STAT_EVENTS_PER_WRITE = 200;\n\nexport const MAX_STATS_REPAIR_LISTED_CHANGES = 500;\n\nexport const MAX_STATS_VALIDATION_DISCREPANCIES = 500;\n\nexport const FOOTBALL_POINTS_BY_EVENT_TYPE = {\n [FOOTBALL_SIX_POINT_EVENT_TYPE]: 6,\n [FOOTBALL_TWO_POINT_EVENT_TYPE]: 2,\n [FOOTBALL_ONE_POINT_EVENT_TYPE]: 1,\n [FOOTBALL_BULK_EDIT_EVENT_TYPE]: 0,\n} as const satisfies Record<FootballStatEventType, number>;\n\nexport const TEAM_NOT_IN_GAME_MESSAGE = 'That team is not playing in this game.';\n\nexport const NOT_ON_GAME_ROSTER_MESSAGE = \"That player is not on this game's roster.\";\n\nexport const STAT_EVENT_REFUSAL_COPY = {\n eventTypeNotInSport: \"That stat does not belong to this game's sport.\",\n teamNotInGame: TEAM_NOT_IN_GAME_MESSAGE,\n playerNotRostered: \"That player is not on this game's roster for that team.\",\n assisterNotRostered: \"The assisting player is not on this game's roster for that team.\",\n assistNotAllowed:\n 'Only a 2- or 3-point basket can be assisted, and never by the player who scored it.',\n playerNotAllowed: \"That stat is the team's; it cannot name a player.\",\n roundNotNext: 'That round is not the next one to record.',\n roundsComplete: 'Every round is already recorded.',\n bulkValueInvalid:\n 'That entry is not a real result: stats are whole numbers and never go below zero.',\n eventIdConflict:\n 'A different stat was already saved under this one. Discard it and enter it again.',\n voidTargetNotSportEvent: 'There is no recorded stat there to undo.',\n correctionNotAccepted: 'Corrections are made from Fix stats, not from the scoring screen.',\n} as const satisfies Record<StatEventRefusalCode, string>;\n\nexport const STATS_MIGRATION_OPERATION_ID = 'migration';\nexport const FINALIZATION_NOT_READY_COPY = {\n roundsIncomplete: 'Every round must be recorded before the game can be finalized.',\n} as const satisfies Record<FinalizationNotReadyReason, string>;\n\nexport const HALL_OF_FAME_MINIMUM_GAMES_CHOICES = [25, 50, 100] as const;\nexport type HallOfFameMinimumGames = (typeof HALL_OF_FAME_MINIMUM_GAMES_CHOICES)[number];\n"]}
|
|
@@ -4,12 +4,6 @@ export declare const REPAIR_REASON_INPUT: import("@ttt-productions/input-format-
|
|
|
4
4
|
readonly min: 3;
|
|
5
5
|
readonly max: 500;
|
|
6
6
|
}>;
|
|
7
|
-
export declare const MIGRATION_EVIDENCE_INPUT: import("@ttt-productions/input-format-core").DeclaredInputFormat<{
|
|
8
|
-
readonly label: "Evidence";
|
|
9
|
-
readonly format: "none";
|
|
10
|
-
readonly min: 3;
|
|
11
|
-
readonly max: 500;
|
|
12
|
-
}>;
|
|
13
7
|
export declare const TEAM_JOIN_REQUEST_MESSAGE_INPUT: import("@ttt-productions/input-format-core").DeclaredInputFormat<{
|
|
14
8
|
readonly label: "Message to the captain";
|
|
15
9
|
readonly format: "none";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-fields.d.ts","sourceRoot":"","sources":["../../src/constants/text-fields.ts"],"names":[],"mappings":"AAiCA,eAAO,MAAM,mBAAmB;;;;;EAK9B,CAAC;AACH,eAAO,MAAM
|
|
1
|
+
{"version":3,"file":"text-fields.d.ts","sourceRoot":"","sources":["../../src/constants/text-fields.ts"],"names":[],"mappings":"AAiCA,eAAO,MAAM,mBAAmB;;;;;EAK9B,CAAC;AACH,eAAO,MAAM,+BAA+B;;;;;EAK1C,CAAC;AACH,eAAO,MAAM,6BAA6B;;;;;EAKxC,CAAC;AACH,eAAO,MAAM,eAAe;;;;;EAK1B,CAAC;AACH,eAAO,MAAM,kBAAkB;;;;;EAK7B,CAAC;AACH,eAAO,MAAM,eAAe;;;;;EAK1B,CAAC;AACH,eAAO,MAAM,mBAAmB;;;;;EAK9B,CAAC;AACH,eAAO,MAAM,4BAA4B;;;;;EAKvC,CAAC;AACH,eAAO,MAAM,gBAAgB;;;;;EAK3B,CAAC;AACH,eAAO,MAAM,kBAAkB;;;;;EAK7B,CAAC;AACH,eAAO,MAAM,wBAAwB;;;;;EAKnC,CAAC;AACH,eAAO,MAAM,wBAAwB;;;;;EAKnC,CAAC;AACH,eAAO,MAAM,kCAAkC;;;;;EAK7C,CAAC;AACH,eAAO,MAAM,gCAAgC;;;;;EAK3C,CAAC;AACH,eAAO,MAAM,wBAAwB;;;;;EAKnC,CAAC;AACH,eAAO,MAAM,yBAAyB;;;;;EAKpC,CAAC;AACH,eAAO,MAAM,2BAA2B;;;;;;EAMtC,CAAC;AACH,eAAO,MAAM,0BAA0B;;;;;;EAMrC,CAAC;AACH,eAAO,MAAM,wBAAwB;;;;;EAKnC,CAAC;AACH,eAAO,MAAM,wBAAwB;;;;;EAKnC,CAAC;AACH,eAAO,MAAM,yBAAyB;;;;;EAKpC,CAAC;AACH,eAAO,MAAM,0BAA0B;;;;;EAKrC,CAAC;AACH,eAAO,MAAM,iBAAiB;;;;;EAK5B,CAAC"}
|
|
@@ -6,12 +6,6 @@ export const REPAIR_REASON_INPUT = defineInputFormat({
|
|
|
6
6
|
min: MIN_REPAIR_REASON_LENGTH,
|
|
7
7
|
max: MAX_REPAIR_REASON_LENGTH,
|
|
8
8
|
});
|
|
9
|
-
export const MIGRATION_EVIDENCE_INPUT = defineInputFormat({
|
|
10
|
-
label: 'Evidence',
|
|
11
|
-
format: 'none',
|
|
12
|
-
min: MIN_REPAIR_REASON_LENGTH,
|
|
13
|
-
max: MAX_REPAIR_REASON_LENGTH,
|
|
14
|
-
});
|
|
15
9
|
export const TEAM_JOIN_REQUEST_MESSAGE_INPUT = defineInputFormat({
|
|
16
10
|
label: 'Message to the captain',
|
|
17
11
|
format: 'none',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-fields.js","sourceRoot":"","sources":["../../src/constants/text-fields.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EACL,+BAA+B,EAC/B,sBAAsB,EACtB,qBAAqB,EACrB,wBAAwB,EACxB,uBAAuB,EACvB,6BAA6B,EAC7B,6BAA6B,EAC7B,uCAAuC,EACvC,qCAAqC,EACrC,oBAAoB,EACpB,6BAA6B,EAC7B,6BAA6B,EAC7B,6BAA6B,EAC7B,uBAAuB,EACvB,8BAA8B,EAC9B,wBAAwB,EACxB,8BAA8B,EAC9B,kCAAkC,EAClC,oCAAoC,EACpC,oBAAoB,EACpB,+BAA+B,EAC/B,gCAAgC,EAChC,qBAAqB,EACrB,uBAAuB,EACvB,6BAA6B,EAC7B,uBAAuB,EACvB,wBAAwB,EACxB,oCAAoC,EACpC,oBAAoB,GACrB,MAAM,eAAe,CAAC;AAEvB,MAAM,CAAC,MAAM,mBAAmB,GAAG,iBAAiB,CAAC;IACnD,KAAK,EAAE,QAAQ;IACf,MAAM,EAAE,MAAM;IACd,GAAG,EAAE,wBAAwB;IAC7B,GAAG,EAAE,wBAAwB;CAC9B,CAAC,CAAC;AACH,MAAM,CAAC,MAAM
|
|
1
|
+
{"version":3,"file":"text-fields.js","sourceRoot":"","sources":["../../src/constants/text-fields.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EACL,+BAA+B,EAC/B,sBAAsB,EACtB,qBAAqB,EACrB,wBAAwB,EACxB,uBAAuB,EACvB,6BAA6B,EAC7B,6BAA6B,EAC7B,uCAAuC,EACvC,qCAAqC,EACrC,oBAAoB,EACpB,6BAA6B,EAC7B,6BAA6B,EAC7B,6BAA6B,EAC7B,uBAAuB,EACvB,8BAA8B,EAC9B,wBAAwB,EACxB,8BAA8B,EAC9B,kCAAkC,EAClC,oCAAoC,EACpC,oBAAoB,EACpB,+BAA+B,EAC/B,gCAAgC,EAChC,qBAAqB,EACrB,uBAAuB,EACvB,6BAA6B,EAC7B,uBAAuB,EACvB,wBAAwB,EACxB,oCAAoC,EACpC,oBAAoB,GACrB,MAAM,eAAe,CAAC;AAEvB,MAAM,CAAC,MAAM,mBAAmB,GAAG,iBAAiB,CAAC;IACnD,KAAK,EAAE,QAAQ;IACf,MAAM,EAAE,MAAM;IACd,GAAG,EAAE,wBAAwB;IAC7B,GAAG,EAAE,wBAAwB;CAC9B,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,iBAAiB,CAAC;IAC/D,KAAK,EAAE,wBAAwB;IAC/B,MAAM,EAAE,MAAM;IACd,GAAG,EAAE,oCAAoC;IACzC,GAAG,E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AK,EAAE,OAAO;IACd,MAAM,EAAE,YAAY;IACpB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,gCAAgC;IACrC,WAAW,EAAE,IAAI;CAClB,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,iBAAiB,CAAC;IAC1D,KAAK,EAAE,aAAa;IACpB,MAAM,EAAE,MAAM;IACd,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,+BAA+B;IACpC,WAAW,EAAE,IAAI;CAClB,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,iBAAiB,CAAC;IACxD,KAAK,EAAE,YAAY;IACnB,MAAM,EAAE,YAAY;IACpB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,6BAA6B;CACnC,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,iBAAiB,CAAC;IACxD,KAAK,EAAE,YAAY;IACnB,MAAM,EAAE,MAAM;IACd,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,6BAA6B;CACnC,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,iBAAiB,CAAC;IACzD,KAAK,EAAE,qBAAqB;IAC5B,MAAM,EAAE,MAAM;IACd,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,8BAA8B;CACpC,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,iBAAiB,CAAC;IAC1D,KAAK,EAAE,cAAc;IACrB,MAAM,EAAE,MAAM;IACd,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,+BAA+B;CACrC,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;IACjD,KAAK,EAAE,aAAa;IACpB,MAAM,EAAE,MAAM;IACd,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,sBAAsB;CAC5B,CAAC,CAAC","sourcesContent":["import { defineInputFormat } from '@ttt-productions/input-format-core';\nimport {\n MAX_ANNOUNCEMENT_MESSAGE_LENGTH,\n MAX_APP_VERSION_LENGTH,\n MAX_AWARD_NAME_LENGTH,\n MAX_CONTACT_PHONE_LENGTH,\n MAX_DISPLAY_NAME_LENGTH,\n MAX_GAME_LOCATION_MEMO_LENGTH,\n MAX_GAME_LOCATION_NAME_LENGTH,\n MAX_GAME_LOCATION_STREET_ADDRESS_LENGTH,\n MAX_GAME_LOCATION_SUB_LOCATION_LENGTH,\n MAX_GAME_MEMO_LENGTH,\n MAX_LANDING_ABOUT_TEXT_LENGTH,\n MAX_LANDING_HERO_TITLE_LENGTH,\n MAX_LEAGUE_DESCRIPTION_LENGTH,\n MAX_LEAGUE_TITLE_LENGTH,\n MAX_MAINTENANCE_MESSAGE_LENGTH,\n MAX_REPAIR_REASON_LENGTH,\n MAX_SCHEDULE_WEEK_TITLE_LENGTH,\n MAX_TEAM_INVITATION_MESSAGE_LENGTH,\n MAX_TEAM_JOIN_REQUEST_MESSAGE_LENGTH,\n MAX_TEAM_NAME_LENGTH,\n MAX_WAIVER_TEMPLATE_TEXT_LENGTH,\n MAX_WAIVER_TEMPLATE_TITLE_LENGTH,\n MIN_AWARD_NAME_LENGTH,\n MIN_DISPLAY_NAME_LENGTH,\n MIN_LEAGUE_DESCRIPTION_LENGTH,\n MIN_LEAGUE_TITLE_LENGTH,\n MIN_REPAIR_REASON_LENGTH,\n MIN_TEAM_JOIN_REQUEST_MESSAGE_LENGTH,\n MIN_TEAM_NAME_LENGTH,\n} from './business.js';\n\nexport const REPAIR_REASON_INPUT = defineInputFormat({\n label: 'Reason',\n format: 'none',\n min: MIN_REPAIR_REASON_LENGTH,\n max: MAX_REPAIR_REASON_LENGTH,\n});\nexport const TEAM_JOIN_REQUEST_MESSAGE_INPUT = defineInputFormat({\n label: 'Message to the captain',\n format: 'none',\n min: MIN_TEAM_JOIN_REQUEST_MESSAGE_LENGTH,\n max: MAX_TEAM_JOIN_REQUEST_MESSAGE_LENGTH,\n});\nexport const TEAM_INVITATION_MESSAGE_INPUT = defineInputFormat({\n label: 'Note',\n format: 'none',\n min: 0,\n max: MAX_TEAM_INVITATION_MESSAGE_LENGTH,\n});\nexport const GAME_MEMO_INPUT = defineInputFormat({\n label: 'Memo',\n format: 'singleLine',\n min: 0,\n max: MAX_GAME_MEMO_LENGTH,\n});\nexport const DISPLAY_NAME_INPUT = defineInputFormat({\n label: 'Name',\n format: 'singleLine',\n min: MIN_DISPLAY_NAME_LENGTH,\n max: MAX_DISPLAY_NAME_LENGTH,\n});\nexport const TEAM_NAME_INPUT = defineInputFormat({\n label: 'Team name',\n format: 'singleLine',\n min: MIN_TEAM_NAME_LENGTH,\n max: MAX_TEAM_NAME_LENGTH,\n});\nexport const CONTACT_PHONE_INPUT = defineInputFormat({\n label: 'Contact phone',\n format: 'singleLine',\n min: 1,\n max: MAX_CONTACT_PHONE_LENGTH,\n});\nexport const OPTIONAL_CONTACT_PHONE_INPUT = defineInputFormat({\n label: 'Default contact phone',\n format: 'singleLine',\n min: 0,\n max: MAX_CONTACT_PHONE_LENGTH,\n});\nexport const AWARD_NAME_INPUT = defineInputFormat({\n label: 'Award name',\n format: 'singleLine',\n min: MIN_AWARD_NAME_LENGTH,\n max: MAX_AWARD_NAME_LENGTH,\n});\nexport const LEAGUE_TITLE_INPUT = defineInputFormat({\n label: 'League name',\n format: 'singleLine',\n min: MIN_LEAGUE_TITLE_LENGTH,\n max: MAX_LEAGUE_TITLE_LENGTH,\n});\nexport const LEAGUE_DESCRIPTION_INPUT = defineInputFormat({\n label: 'Description',\n format: 'none',\n min: MIN_LEAGUE_DESCRIPTION_LENGTH,\n max: MAX_LEAGUE_DESCRIPTION_LENGTH,\n});\nexport const GAME_LOCATION_NAME_INPUT = defineInputFormat({\n label: 'Name',\n format: 'singleLine',\n min: 1,\n max: MAX_GAME_LOCATION_NAME_LENGTH,\n});\nexport const GAME_LOCATION_STREET_ADDRESS_INPUT = defineInputFormat({\n label: 'Street address',\n format: 'singleLine',\n min: 1,\n max: MAX_GAME_LOCATION_STREET_ADDRESS_LENGTH,\n});\nexport const GAME_LOCATION_SUB_LOCATION_INPUT = defineInputFormat({\n label: 'Sub-location',\n format: 'singleLine',\n min: 1,\n max: MAX_GAME_LOCATION_SUB_LOCATION_LENGTH,\n});\nexport const GAME_LOCATION_MEMO_INPUT = defineInputFormat({\n label: 'Memo',\n format: 'none',\n min: 0,\n max: MAX_GAME_LOCATION_MEMO_LENGTH,\n});\nexport const SCHEDULE_WEEK_TITLE_INPUT = defineInputFormat({\n label: 'Week name',\n format: 'singleLine',\n min: 1,\n max: MAX_SCHEDULE_WEEK_TITLE_LENGTH,\n});\nexport const WAIVER_TEMPLATE_TITLE_INPUT = defineInputFormat({\n label: 'Title',\n format: 'singleLine',\n min: 1,\n max: MAX_WAIVER_TEMPLATE_TITLE_LENGTH,\n keepAsTyped: true,\n});\nexport const WAIVER_TEMPLATE_TEXT_INPUT = defineInputFormat({\n label: 'Waiver text',\n format: 'none',\n min: 1,\n max: MAX_WAIVER_TEMPLATE_TEXT_LENGTH,\n keepAsTyped: true,\n});\nexport const LANDING_HERO_TITLE_INPUT = defineInputFormat({\n label: 'Hero title',\n format: 'singleLine',\n min: 0,\n max: MAX_LANDING_HERO_TITLE_LENGTH,\n});\nexport const LANDING_ABOUT_TEXT_INPUT = defineInputFormat({\n label: 'About text',\n format: 'none',\n min: 0,\n max: MAX_LANDING_ABOUT_TEXT_LENGTH,\n});\nexport const MAINTENANCE_MESSAGE_INPUT = defineInputFormat({\n label: 'Maintenance message',\n format: 'none',\n min: 0,\n max: MAX_MAINTENANCE_MESSAGE_LENGTH,\n});\nexport const ANNOUNCEMENT_MESSAGE_INPUT = defineInputFormat({\n label: 'Announcement',\n format: 'none',\n min: 0,\n max: MAX_ANNOUNCEMENT_MESSAGE_LENGTH,\n});\nexport const APP_VERSION_INPUT = defineInputFormat({\n label: 'App version',\n format: 'none',\n min: 1,\n max: MAX_APP_VERSION_LENGTH,\n});\n"]}
|
|
@@ -135,8 +135,8 @@ export declare const NotificationArchiveAllJobSchema: z.ZodObject<{
|
|
|
135
135
|
state: z.ZodEnum<{
|
|
136
136
|
complete: "complete";
|
|
137
137
|
"in-progress": "in-progress";
|
|
138
|
-
incomplete: "incomplete";
|
|
139
138
|
failed: "failed";
|
|
139
|
+
incomplete: "incomplete";
|
|
140
140
|
}>;
|
|
141
141
|
revision: z.ZodNumber;
|
|
142
142
|
archived: z.ZodNumber;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"atoms.d.ts","sourceRoot":"","sources":["../../src/doc-schemas/atoms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgCxB,eAAO,MAAM,aAAa,aAAiC,CAAC;AAE5D,eAAO,MAAM,WAAW,aAAiC,CAAC;AAE1D,eAAO,MAAM,sBAAsB,aAAkC,CAAC;AAEtE,eAAO,MAAM,cAAc,aAA8B,CAAC;AAE1D,eAAO,MAAM,kBAAkB,wDAAuC,CAAC;AAEvE,eAAO,MAAM,qBAAqB,QAAwB,CAAC;AAE3D,eAAO,MAAM,kBAAkB,aAME,CAAC;AAElC,eAAO,MAAM,uBAAuB,aAGgB,CAAC;AAErD,eAAO,MAAM,YAAY,aAA0B,CAAC;AACpD,eAAO,MAAM,cAAc,aAA0B,CAAC;AACtD,eAAO,MAAM,YAAY,aAA0B,CAAC;AACpD,eAAO,MAAM,YAAY,aAA0B,CAAC;AACpD,eAAO,MAAM,oBAAoB,aAA0B,CAAC;AAC5D,eAAO,MAAM,wBAAwB,aAGpC,CAAC;AACF,eAAO,MAAM,iBAAiB,aAA0B,CAAC;AACzD,eAAO,MAAM,sBAAsB,aAA0B,CAAC;AAC9D,eAAO,MAAM,6BAA6B,
|
|
1
|
+
{"version":3,"file":"atoms.d.ts","sourceRoot":"","sources":["../../src/doc-schemas/atoms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgCxB,eAAO,MAAM,aAAa,aAAiC,CAAC;AAE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BAA0B;;EAAsC,CAAC;AAC9E,eAAO,MAAM,oBAAoB;;;;;;EAAgC,CAAC;AAClE,eAAO,MAAM,gBAAgB;;;;EAA2B,CAAC;AACzD,eAAO,MAAM,0BAA0B;;EAAsC,CAAC;AAC9E,eAAO,MAAM,2BAA2B;;EAAwC,CAAC;AACjF,eAAO,MAAM,gCAAgC;;;;EAA6C,CAAC;AAC3F,eAAO,MAAM,4BAA4B;;;;;EAAwC,CAAC;AAClF,eAAO,MAAM,uBAAuB;;;;;;;EAAmC,CAAC;AACxE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;EAAsC,CAAC;AAC9E,eAAO,MAAM,2BAA2B;;;;EAAoC,CAAC;AAC7E,eAAO,MAAM,oBAAoB;;;;;;EAA4B,CAAC"}
|
|
@@ -32,7 +32,7 @@ export const scheduleWeekIdSchema = documentIdSegmentSchema;
|
|
|
32
32
|
export const gameRosterPlayerIdSchema = documentIdSegmentSchema.refine((id) => parseGameRosterPlayerId(id) !== null, 'Not a game roster entry id.');
|
|
33
33
|
export const statEventIdSchema = documentIdSegmentSchema;
|
|
34
34
|
export const statsOperationIdSchema = documentIdSegmentSchema;
|
|
35
|
-
export const statsValidationReportIdSchema =
|
|
35
|
+
export const statsValidationReportIdSchema = documentIdSegmentSchema;
|
|
36
36
|
export const hardwareLoanContractIdSchema = documentIdSegmentSchema;
|
|
37
37
|
export const stagingIdSchema = z.string().refine(isStagingId, 'Not a staging id.');
|
|
38
38
|
export const leagueTypeSchema = z.enum(LEAGUE_TYPE_KEYS);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"atoms.js","sourceRoot":"","sources":["../../src/doc-schemas/atoms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,eAA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4BAA4B,GAAG,CAAC,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC;AAClF,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC;AACxE,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAAC;AAC9E,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC;AAC7E,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { MAX_STAT_COUNT } from '../constants/sports.js';\nimport { REPAIR_REASON_INPUT } from '../constants/text-fields.js';\nimport { textFieldSchema } from '../schemas/text-field.js';\nimport { parseGameRosterPlayerId } from '../ids/compound-ids.js';\nimport { isStagingId } from '../ids/picture-ids.js';\nimport { isDocumentIdSegment } from '../paths/utils.js';\nimport {\n BASKETBALL_BULK_STAT_KEYS,\n LEAGUE_TYPE_KEYS,\n SPORT_KEYS,\n STAT_COUNTER_KEYS,\n} from '../types/sports.js';\nimport {\n GAME_STATUS_KEYS,\n HARDWARE_LOAN_CONTRACT_STATUS_KEYS,\n TEAM_JOIN_REQUEST_STATUS_KEYS,\n LEAGUE_MODE_KEYS,\n LEAGUE_STATUS_KEYS,\n STATS_BEACON_ACTION_KEYS,\n STATS_DISCREPANCY_KIND_KEYS,\n TEAM_ICON_KEYS,\n TEAM_INVITATION_STATUS_KEYS,\n TEAM_JOIN_METHOD_KEYS,\n TEAM_MEMBERSHIP_STATUS_KEYS,\n TEAM_ROLE_KEYS,\n SYSTEM_ROLE_KEYS,\n TEAM_TYPE_KEYS,\n USER_STATUS_KEYS,\n WAIVER_WITNESS_AUTHORITY_KEYS,\n} from '../types/unions.js';\n\nexport const epochMsSchema = z.number().int().nonnegative();\n\nexport const countSchema = z.number().int().nonnegative();\n\nexport const enteredStatCountSchema = countSchema.max(MAX_STAT_COUNT);\n\nexport const revisionSchema = z.number().int().positive();\n\nexport const repairReasonSchema = textFieldSchema(REPAIR_REASON_INPUT);\n\nexport const CALENDAR_DATE_PATTERN = /^\\d{4}-\\d{2}-\\d{2}$/;\n\nexport const calendarDateSchema = z\n .string()\n .regex(CALENDAR_DATE_PATTERN, { abort: true })\n .refine((value) => {\n const day = new Date(`${value}T00:00:00.000Z`);\n return !Number.isNaN(day.getTime()) && day.toISOString().startsWith(value);\n }, 'Not a real calendar date.');\n\nexport const documentIdSegmentSchema = z\n .string()\n .min(1, { abort: true })\n .refine(isDocumentIdSegment, 'Not a document id.');\n\nexport const userIdSchema = documentIdSegmentSchema;\nexport const leagueIdSchema = documentIdSegmentSchema;\nexport const teamIdSchema = documentIdSegmentSchema;\nexport const gameIdSchema = documentIdSegmentSchema;\nexport const scheduleWeekIdSchema = documentIdSegmentSchema;\nexport const gameRosterPlayerIdSchema = documentIdSegmentSchema.refine(\n (id) => parseGameRosterPlayerId(id) !== null,\n 'Not a game roster entry id.',\n);\nexport const statEventIdSchema = documentIdSegmentSchema;\nexport const statsOperationIdSchema = documentIdSegmentSchema;\nexport const statsValidationReportIdSchema = documentIdSegmentSchema;\nexport const hardwareLoanContractIdSchema = documentIdSegmentSchema;\nexport const stagingIdSchema = z.string().refine(isStagingId, 'Not a staging id.');\n\nexport const leagueTypeSchema = z.enum(LEAGUE_TYPE_KEYS);\nexport const sportKeySchema = z.enum(SPORT_KEYS);\nexport const leagueStatusSchema = z.enum(LEAGUE_STATUS_KEYS);\nexport const leagueModeSchema = z.enum(LEAGUE_MODE_KEYS);\nexport const teamTypeSchema = z.enum(TEAM_TYPE_KEYS);\nexport const teamIconSchema = z.enum(TEAM_ICON_KEYS);\nexport const teamRoleSchema = z.enum(TEAM_ROLE_KEYS);\nexport const systemRoleSchema = z.enum(SYSTEM_ROLE_KEYS);\nexport const userStatusSchema = z.enum(USER_STATUS_KEYS);\nexport const teamMembershipStatusSchema = z.enum(TEAM_MEMBERSHIP_STATUS_KEYS);\nexport const teamJoinMethodSchema = z.enum(TEAM_JOIN_METHOD_KEYS);\nexport const gameStatusSchema = z.enum(GAME_STATUS_KEYS);\nexport const teamInvitationStatusSchema = z.enum(TEAM_INVITATION_STATUS_KEYS);\nexport const teamJoinRequestStatusSchema = z.enum(TEAM_JOIN_REQUEST_STATUS_KEYS);\nexport const hardwareLoanContractStatusSchema = z.enum(HARDWARE_LOAN_CONTRACT_STATUS_KEYS);\nexport const waiverWitnessAuthoritySchema = z.enum(WAIVER_WITNESS_AUTHORITY_KEYS);\nexport const statsBeaconActionSchema = z.enum(STATS_BEACON_ACTION_KEYS);\nexport const statsDiscrepancyKindSchema = z.enum(STATS_DISCREPANCY_KIND_KEYS);\nexport const basketballBulkStatKeySchema = z.enum(BASKETBALL_BULK_STAT_KEYS);\nexport const statCounterKeySchema = z.enum(STAT_COUNTER_KEYS);\n"]}
|
|
@@ -1,92 +1,93 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const auditEventTypeSchema: z.ZodEnum<{
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"sportLeague.created": "sportLeague.created";
|
|
4
|
+
"sportLeague.updated": "sportLeague.updated";
|
|
5
|
+
"sportLeague.statusChanged": "sportLeague.statusChanged";
|
|
6
|
+
"sportLeague.modeSwitched": "sportLeague.modeSwitched";
|
|
6
7
|
"leagueTeam.created": "leagueTeam.created";
|
|
8
|
+
"teamMembership.roleChanged": "teamMembership.roleChanged";
|
|
9
|
+
"teamMembership.removed": "teamMembership.removed";
|
|
10
|
+
"ghostPlayer.created": "ghostPlayer.created";
|
|
7
11
|
"signedWaiver.created": "signedWaiver.created";
|
|
8
12
|
"ghostPlayer.linked": "ghostPlayer.linked";
|
|
13
|
+
"teamJoinRequest.created": "teamJoinRequest.created";
|
|
9
14
|
"teamJoinRequest.cancelled": "teamJoinRequest.cancelled";
|
|
15
|
+
"teamJoinRequest.accepted": "teamJoinRequest.accepted";
|
|
16
|
+
"teamJoinRequest.rejected": "teamJoinRequest.rejected";
|
|
17
|
+
"teamInvitation.created": "teamInvitation.created";
|
|
10
18
|
"teamInvitation.cancelled": "teamInvitation.cancelled";
|
|
19
|
+
"teamInvitation.accepted": "teamInvitation.accepted";
|
|
20
|
+
"teamInvitation.rejected": "teamInvitation.rejected";
|
|
21
|
+
"leagueFreeAgent.created": "leagueFreeAgent.created";
|
|
22
|
+
"leagueFreeAgent.deleted": "leagueFreeAgent.deleted";
|
|
23
|
+
"leagueFreeAgent.assigned": "leagueFreeAgent.assigned";
|
|
11
24
|
"sportGame.finalized": "sportGame.finalized";
|
|
12
25
|
"sportGame.reopened": "sportGame.reopened";
|
|
13
26
|
"sportGame.absenceChanged": "sportGame.absenceChanged";
|
|
14
27
|
"sportGame.memoUpdated": "sportGame.memoUpdated";
|
|
15
28
|
"sportGame.jumpBallChanged": "sportGame.jumpBallChanged";
|
|
29
|
+
"scheduleWeek.created": "scheduleWeek.created";
|
|
30
|
+
"scheduleWeek.updated": "scheduleWeek.updated";
|
|
31
|
+
"sportGame.created": "sportGame.created";
|
|
16
32
|
"sportGame.updated": "sportGame.updated";
|
|
17
33
|
"sportGame.deleted": "sportGame.deleted";
|
|
18
|
-
"
|
|
34
|
+
"sportLeague.statsRecalculated": "sportLeague.statsRecalculated";
|
|
35
|
+
"userProfile.statsRecalculated": "userProfile.statsRecalculated";
|
|
36
|
+
"sportGame.statsRecalculated": "sportGame.statsRecalculated";
|
|
37
|
+
"statsJob.created": "statsJob.created";
|
|
38
|
+
"statsValidationReport.created": "statsValidationReport.created";
|
|
39
|
+
"statsValidationReport.deleted": "statsValidationReport.deleted";
|
|
40
|
+
"historicalStat.updated": "historicalStat.updated";
|
|
41
|
+
"userProfile.banned": "userProfile.banned";
|
|
42
|
+
"userProfile.unbanned": "userProfile.unbanned";
|
|
43
|
+
"awardDefinition.created": "awardDefinition.created";
|
|
44
|
+
"awardDefinition.badgeReplaced": "awardDefinition.badgeReplaced";
|
|
45
|
+
"awardDefinition.deleted": "awardDefinition.deleted";
|
|
46
|
+
"awardDefinition.granted": "awardDefinition.granted";
|
|
47
|
+
"awardDefinition.revoked": "awardDefinition.revoked";
|
|
48
|
+
"hardwareLoanContract.created": "hardwareLoanContract.created";
|
|
49
|
+
"hardwareLoanContract.signed": "hardwareLoanContract.signed";
|
|
50
|
+
"hardwareLoanContract.returned": "hardwareLoanContract.returned";
|
|
51
|
+
"hardwareLoanContract.deleted": "hardwareLoanContract.deleted";
|
|
52
|
+
"userProfile.registered": "userProfile.registered";
|
|
53
|
+
"userProfile.displayNameChanged": "userProfile.displayNameChanged";
|
|
19
54
|
"waiverTemplate.created": "waiverTemplate.created";
|
|
55
|
+
"waiverTemplate.versionPublished": "waiverTemplate.versionPublished";
|
|
56
|
+
"waiverTemplate.retired": "waiverTemplate.retired";
|
|
20
57
|
"waiverTemplate.deleted": "waiverTemplate.deleted";
|
|
21
58
|
"gameLocation.created": "gameLocation.created";
|
|
22
59
|
"gameLocation.updated": "gameLocation.updated";
|
|
23
60
|
"gameLocation.deleted": "gameLocation.deleted";
|
|
24
61
|
"leagueTeam.updated": "leagueTeam.updated";
|
|
62
|
+
"leagueTeam.captainChanged": "leagueTeam.captainChanged";
|
|
25
63
|
"leagueTeam.deleted": "leagueTeam.deleted";
|
|
64
|
+
"ghostPlayer.removed": "ghostPlayer.removed";
|
|
26
65
|
"leagueTeamContact.updated": "leagueTeamContact.updated";
|
|
27
66
|
"landingPage.updated": "landingPage.updated";
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
67
|
+
"galleryPicture.added": "galleryPicture.added";
|
|
68
|
+
"deadLetter.replayed": "deadLetter.replayed";
|
|
69
|
+
"migrationActionRun.pageRun": "migrationActionRun.pageRun";
|
|
70
|
+
"migrationActionRun.controlRecorded": "migrationActionRun.controlRecorded";
|
|
71
|
+
"migrationActionRun.checkpointRecorded": "migrationActionRun.checkpointRecorded";
|
|
72
|
+
"migrationConsole.cutoverRecorded": "migrationConsole.cutoverRecorded";
|
|
73
|
+
"gameRosterPlayer.statLineResolved": "gameRosterPlayer.statLineResolved";
|
|
74
|
+
"registrationStart.deleted": "registrationStart.deleted";
|
|
75
|
+
"userProfile.signedIn": "userProfile.signedIn";
|
|
76
|
+
"userProfile.passwordReset": "userProfile.passwordReset";
|
|
77
|
+
"adminList.roleGranted": "adminList.roleGranted";
|
|
78
|
+
"adminList.roleRevoked": "adminList.roleRevoked";
|
|
79
|
+
"adminList.claimSynced": "adminList.claimSynced";
|
|
38
80
|
"appConfig.updated": "appConfig.updated";
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"picture.replaced": "picture.replaced";
|
|
44
|
-
"picture.moved": "picture.moved";
|
|
45
|
-
"picture.featuredChanged": "picture.featuredChanged";
|
|
46
|
-
"picture.removed": "picture.removed";
|
|
47
|
-
"award.created": "award.created";
|
|
48
|
-
"award.badgeReplaced": "award.badgeReplaced";
|
|
49
|
-
"award.deleted": "award.deleted";
|
|
50
|
-
"award.granted": "award.granted";
|
|
51
|
-
"award.revoked": "award.revoked";
|
|
81
|
+
"galleryPicture.replaced": "galleryPicture.replaced";
|
|
82
|
+
"galleryPicture.moved": "galleryPicture.moved";
|
|
83
|
+
"galleryPicture.featuredChanged": "galleryPicture.featuredChanged";
|
|
84
|
+
"galleryPicture.removed": "galleryPicture.removed";
|
|
52
85
|
"award.groupDecisionOpened": "award.groupDecisionOpened";
|
|
53
|
-
"hardwareLoanContract.created": "hardwareLoanContract.created";
|
|
54
|
-
"hardwareLoanContract.signed": "hardwareLoanContract.signed";
|
|
55
|
-
"hardwareLoanContract.returned": "hardwareLoanContract.returned";
|
|
56
|
-
"hardwareLoanContract.deleted": "hardwareLoanContract.deleted";
|
|
57
|
-
"ghostPlayer.created": "ghostPlayer.created";
|
|
58
|
-
"teamMembership.roleChanged": "teamMembership.roleChanged";
|
|
59
|
-
"leagueTeam.captainChanged": "leagueTeam.captainChanged";
|
|
60
|
-
"teamMembership.removed": "teamMembership.removed";
|
|
61
|
-
"ghostPlayer.removed": "ghostPlayer.removed";
|
|
62
86
|
"ghostPlayer.closedLeagueLinked": "ghostPlayer.closedLeagueLinked";
|
|
63
|
-
"teamInvitation.created": "teamInvitation.created";
|
|
64
|
-
"teamInvitation.accepted": "teamInvitation.accepted";
|
|
65
|
-
"teamInvitation.rejected": "teamInvitation.rejected";
|
|
66
|
-
"teamJoinRequest.created": "teamJoinRequest.created";
|
|
67
|
-
"teamJoinRequest.accepted": "teamJoinRequest.accepted";
|
|
68
|
-
"teamJoinRequest.rejected": "teamJoinRequest.rejected";
|
|
69
|
-
"leagueFreeAgent.created": "leagueFreeAgent.created";
|
|
70
|
-
"leagueFreeAgent.deleted": "leagueFreeAgent.deleted";
|
|
71
|
-
"leagueFreeAgent.assigned": "leagueFreeAgent.assigned";
|
|
72
|
-
"scheduleWeek.created": "scheduleWeek.created";
|
|
73
|
-
"scheduleWeek.updated": "scheduleWeek.updated";
|
|
74
|
-
"sportGame.created": "sportGame.created";
|
|
75
87
|
"sportGame.statEventsRejected": "sportGame.statEventsRejected";
|
|
76
|
-
"sportGame.statsRecalculated": "sportGame.statsRecalculated";
|
|
77
|
-
"stats.aggregateRecalculated": "stats.aggregateRecalculated";
|
|
78
|
-
"stats.historicalStatsUpdated": "stats.historicalStatsUpdated";
|
|
79
|
-
"stats.validationRun": "stats.validationRun";
|
|
80
|
-
"stats.validationReportDeleted": "stats.validationReportDeleted";
|
|
81
|
-
"stats.unrosteredStatLineResolved": "stats.unrosteredStatLineResolved";
|
|
82
88
|
"adminNotification.archived": "adminNotification.archived";
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"migrationAction.pageRun": "migrationAction.pageRun";
|
|
86
|
-
"migrationAction.writesCommitted": "migrationAction.writesCommitted";
|
|
87
|
-
"migrationAction.controlRecorded": "migrationAction.controlRecorded";
|
|
88
|
-
"migrationAction.checkpointRecorded": "migrationAction.checkpointRecorded";
|
|
89
|
-
"migrationConsole.cutoverRecorded": "migrationConsole.cutoverRecorded";
|
|
89
|
+
"notificationArchiveAllJob.created": "notificationArchiveAllJob.created";
|
|
90
|
+
"migrationActionRun.writesCommitted": "migrationActionRun.writesCommitted";
|
|
90
91
|
}>;
|
|
91
92
|
export declare const AuditActorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
92
93
|
uid: z.ZodNullable<z.ZodString>;
|
|
@@ -115,93 +116,94 @@ export declare const AuditTargetSchema: z.ZodObject<{
|
|
|
115
116
|
export declare const AuditEventSchema: z.ZodObject<{
|
|
116
117
|
id: z.ZodString;
|
|
117
118
|
type: z.ZodEnum<{
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
"
|
|
119
|
+
"sportLeague.created": "sportLeague.created";
|
|
120
|
+
"sportLeague.updated": "sportLeague.updated";
|
|
121
|
+
"sportLeague.statusChanged": "sportLeague.statusChanged";
|
|
122
|
+
"sportLeague.modeSwitched": "sportLeague.modeSwitched";
|
|
121
123
|
"leagueTeam.created": "leagueTeam.created";
|
|
124
|
+
"teamMembership.roleChanged": "teamMembership.roleChanged";
|
|
125
|
+
"teamMembership.removed": "teamMembership.removed";
|
|
126
|
+
"ghostPlayer.created": "ghostPlayer.created";
|
|
122
127
|
"signedWaiver.created": "signedWaiver.created";
|
|
123
128
|
"ghostPlayer.linked": "ghostPlayer.linked";
|
|
129
|
+
"teamJoinRequest.created": "teamJoinRequest.created";
|
|
124
130
|
"teamJoinRequest.cancelled": "teamJoinRequest.cancelled";
|
|
131
|
+
"teamJoinRequest.accepted": "teamJoinRequest.accepted";
|
|
132
|
+
"teamJoinRequest.rejected": "teamJoinRequest.rejected";
|
|
133
|
+
"teamInvitation.created": "teamInvitation.created";
|
|
125
134
|
"teamInvitation.cancelled": "teamInvitation.cancelled";
|
|
135
|
+
"teamInvitation.accepted": "teamInvitation.accepted";
|
|
136
|
+
"teamInvitation.rejected": "teamInvitation.rejected";
|
|
137
|
+
"leagueFreeAgent.created": "leagueFreeAgent.created";
|
|
138
|
+
"leagueFreeAgent.deleted": "leagueFreeAgent.deleted";
|
|
139
|
+
"leagueFreeAgent.assigned": "leagueFreeAgent.assigned";
|
|
126
140
|
"sportGame.finalized": "sportGame.finalized";
|
|
127
141
|
"sportGame.reopened": "sportGame.reopened";
|
|
128
142
|
"sportGame.absenceChanged": "sportGame.absenceChanged";
|
|
129
143
|
"sportGame.memoUpdated": "sportGame.memoUpdated";
|
|
130
144
|
"sportGame.jumpBallChanged": "sportGame.jumpBallChanged";
|
|
145
|
+
"scheduleWeek.created": "scheduleWeek.created";
|
|
146
|
+
"scheduleWeek.updated": "scheduleWeek.updated";
|
|
147
|
+
"sportGame.created": "sportGame.created";
|
|
131
148
|
"sportGame.updated": "sportGame.updated";
|
|
132
149
|
"sportGame.deleted": "sportGame.deleted";
|
|
133
|
-
"
|
|
150
|
+
"sportLeague.statsRecalculated": "sportLeague.statsRecalculated";
|
|
151
|
+
"userProfile.statsRecalculated": "userProfile.statsRecalculated";
|
|
152
|
+
"sportGame.statsRecalculated": "sportGame.statsRecalculated";
|
|
153
|
+
"statsJob.created": "statsJob.created";
|
|
154
|
+
"statsValidationReport.created": "statsValidationReport.created";
|
|
155
|
+
"statsValidationReport.deleted": "statsValidationReport.deleted";
|
|
156
|
+
"historicalStat.updated": "historicalStat.updated";
|
|
157
|
+
"userProfile.banned": "userProfile.banned";
|
|
158
|
+
"userProfile.unbanned": "userProfile.unbanned";
|
|
159
|
+
"awardDefinition.created": "awardDefinition.created";
|
|
160
|
+
"awardDefinition.badgeReplaced": "awardDefinition.badgeReplaced";
|
|
161
|
+
"awardDefinition.deleted": "awardDefinition.deleted";
|
|
162
|
+
"awardDefinition.granted": "awardDefinition.granted";
|
|
163
|
+
"awardDefinition.revoked": "awardDefinition.revoked";
|
|
164
|
+
"hardwareLoanContract.created": "hardwareLoanContract.created";
|
|
165
|
+
"hardwareLoanContract.signed": "hardwareLoanContract.signed";
|
|
166
|
+
"hardwareLoanContract.returned": "hardwareLoanContract.returned";
|
|
167
|
+
"hardwareLoanContract.deleted": "hardwareLoanContract.deleted";
|
|
168
|
+
"userProfile.registered": "userProfile.registered";
|
|
169
|
+
"userProfile.displayNameChanged": "userProfile.displayNameChanged";
|
|
134
170
|
"waiverTemplate.created": "waiverTemplate.created";
|
|
171
|
+
"waiverTemplate.versionPublished": "waiverTemplate.versionPublished";
|
|
172
|
+
"waiverTemplate.retired": "waiverTemplate.retired";
|
|
135
173
|
"waiverTemplate.deleted": "waiverTemplate.deleted";
|
|
136
174
|
"gameLocation.created": "gameLocation.created";
|
|
137
175
|
"gameLocation.updated": "gameLocation.updated";
|
|
138
176
|
"gameLocation.deleted": "gameLocation.deleted";
|
|
139
177
|
"leagueTeam.updated": "leagueTeam.updated";
|
|
178
|
+
"leagueTeam.captainChanged": "leagueTeam.captainChanged";
|
|
140
179
|
"leagueTeam.deleted": "leagueTeam.deleted";
|
|
180
|
+
"ghostPlayer.removed": "ghostPlayer.removed";
|
|
141
181
|
"leagueTeamContact.updated": "leagueTeamContact.updated";
|
|
142
182
|
"landingPage.updated": "landingPage.updated";
|
|
143
|
-
"
|
|
144
|
-
"
|
|
145
|
-
"
|
|
146
|
-
"
|
|
147
|
-
"
|
|
148
|
-
"
|
|
149
|
-
"
|
|
150
|
-
"
|
|
151
|
-
"
|
|
152
|
-
"
|
|
183
|
+
"galleryPicture.added": "galleryPicture.added";
|
|
184
|
+
"deadLetter.replayed": "deadLetter.replayed";
|
|
185
|
+
"migrationActionRun.pageRun": "migrationActionRun.pageRun";
|
|
186
|
+
"migrationActionRun.controlRecorded": "migrationActionRun.controlRecorded";
|
|
187
|
+
"migrationActionRun.checkpointRecorded": "migrationActionRun.checkpointRecorded";
|
|
188
|
+
"migrationConsole.cutoverRecorded": "migrationConsole.cutoverRecorded";
|
|
189
|
+
"gameRosterPlayer.statLineResolved": "gameRosterPlayer.statLineResolved";
|
|
190
|
+
"registrationStart.deleted": "registrationStart.deleted";
|
|
191
|
+
"userProfile.signedIn": "userProfile.signedIn";
|
|
192
|
+
"userProfile.passwordReset": "userProfile.passwordReset";
|
|
193
|
+
"adminList.roleGranted": "adminList.roleGranted";
|
|
194
|
+
"adminList.roleRevoked": "adminList.roleRevoked";
|
|
195
|
+
"adminList.claimSynced": "adminList.claimSynced";
|
|
153
196
|
"appConfig.updated": "appConfig.updated";
|
|
154
|
-
"
|
|
155
|
-
"
|
|
156
|
-
"
|
|
157
|
-
"
|
|
158
|
-
"picture.replaced": "picture.replaced";
|
|
159
|
-
"picture.moved": "picture.moved";
|
|
160
|
-
"picture.featuredChanged": "picture.featuredChanged";
|
|
161
|
-
"picture.removed": "picture.removed";
|
|
162
|
-
"award.created": "award.created";
|
|
163
|
-
"award.badgeReplaced": "award.badgeReplaced";
|
|
164
|
-
"award.deleted": "award.deleted";
|
|
165
|
-
"award.granted": "award.granted";
|
|
166
|
-
"award.revoked": "award.revoked";
|
|
197
|
+
"galleryPicture.replaced": "galleryPicture.replaced";
|
|
198
|
+
"galleryPicture.moved": "galleryPicture.moved";
|
|
199
|
+
"galleryPicture.featuredChanged": "galleryPicture.featuredChanged";
|
|
200
|
+
"galleryPicture.removed": "galleryPicture.removed";
|
|
167
201
|
"award.groupDecisionOpened": "award.groupDecisionOpened";
|
|
168
|
-
"hardwareLoanContract.created": "hardwareLoanContract.created";
|
|
169
|
-
"hardwareLoanContract.signed": "hardwareLoanContract.signed";
|
|
170
|
-
"hardwareLoanContract.returned": "hardwareLoanContract.returned";
|
|
171
|
-
"hardwareLoanContract.deleted": "hardwareLoanContract.deleted";
|
|
172
|
-
"ghostPlayer.created": "ghostPlayer.created";
|
|
173
|
-
"teamMembership.roleChanged": "teamMembership.roleChanged";
|
|
174
|
-
"leagueTeam.captainChanged": "leagueTeam.captainChanged";
|
|
175
|
-
"teamMembership.removed": "teamMembership.removed";
|
|
176
|
-
"ghostPlayer.removed": "ghostPlayer.removed";
|
|
177
202
|
"ghostPlayer.closedLeagueLinked": "ghostPlayer.closedLeagueLinked";
|
|
178
|
-
"teamInvitation.created": "teamInvitation.created";
|
|
179
|
-
"teamInvitation.accepted": "teamInvitation.accepted";
|
|
180
|
-
"teamInvitation.rejected": "teamInvitation.rejected";
|
|
181
|
-
"teamJoinRequest.created": "teamJoinRequest.created";
|
|
182
|
-
"teamJoinRequest.accepted": "teamJoinRequest.accepted";
|
|
183
|
-
"teamJoinRequest.rejected": "teamJoinRequest.rejected";
|
|
184
|
-
"leagueFreeAgent.created": "leagueFreeAgent.created";
|
|
185
|
-
"leagueFreeAgent.deleted": "leagueFreeAgent.deleted";
|
|
186
|
-
"leagueFreeAgent.assigned": "leagueFreeAgent.assigned";
|
|
187
|
-
"scheduleWeek.created": "scheduleWeek.created";
|
|
188
|
-
"scheduleWeek.updated": "scheduleWeek.updated";
|
|
189
|
-
"sportGame.created": "sportGame.created";
|
|
190
203
|
"sportGame.statEventsRejected": "sportGame.statEventsRejected";
|
|
191
|
-
"sportGame.statsRecalculated": "sportGame.statsRecalculated";
|
|
192
|
-
"stats.aggregateRecalculated": "stats.aggregateRecalculated";
|
|
193
|
-
"stats.historicalStatsUpdated": "stats.historicalStatsUpdated";
|
|
194
|
-
"stats.validationRun": "stats.validationRun";
|
|
195
|
-
"stats.validationReportDeleted": "stats.validationReportDeleted";
|
|
196
|
-
"stats.unrosteredStatLineResolved": "stats.unrosteredStatLineResolved";
|
|
197
204
|
"adminNotification.archived": "adminNotification.archived";
|
|
198
|
-
"
|
|
199
|
-
"
|
|
200
|
-
"migrationAction.pageRun": "migrationAction.pageRun";
|
|
201
|
-
"migrationAction.writesCommitted": "migrationAction.writesCommitted";
|
|
202
|
-
"migrationAction.controlRecorded": "migrationAction.controlRecorded";
|
|
203
|
-
"migrationAction.checkpointRecorded": "migrationAction.checkpointRecorded";
|
|
204
|
-
"migrationConsole.cutoverRecorded": "migrationConsole.cutoverRecorded";
|
|
205
|
+
"notificationArchiveAllJob.created": "notificationArchiveAllJob.created";
|
|
206
|
+
"migrationActionRun.writesCommitted": "migrationActionRun.writesCommitted";
|
|
205
207
|
}>;
|
|
206
208
|
schemaVersion: z.ZodNumber;
|
|
207
209
|
actor: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit-event.d.ts","sourceRoot":"","sources":["../../src/doc-schemas/audit-event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"audit-event.d.ts","sourceRoot":"","sources":["../../src/doc-schemas/audit-event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAgC,CAAC;AAElE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;gCAY3B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;iBAG5B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAc3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -198,7 +198,6 @@ export declare const GameStatHistoryRecordSchema: z.ZodObject<{
|
|
|
198
198
|
migration: "migration";
|
|
199
199
|
}>;
|
|
200
200
|
operationId: z.ZodString;
|
|
201
|
-
reason: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
202
201
|
rekeyedFromGhostUserId: z.ZodOptional<z.ZodString>;
|
|
203
202
|
eventId: z.ZodString;
|
|
204
203
|
sequence: z.ZodNumber;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"game-stat-history.d.ts","sourceRoot":"","sources":["../../src/doc-schemas/game-stat-history.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,2BAA2B
|
|
1
|
+
{"version":3,"file":"game-stat-history.d.ts","sourceRoot":"","sources":["../../src/doc-schemas/game-stat-history.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBActC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|