@ttt-productions/q-core 0.1.49 → 0.1.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constants/business.d.ts +3 -4
- package/dist/constants/business.d.ts.map +1 -1
- package/dist/constants/business.js +3 -4
- package/dist/constants/business.js.map +1 -1
- 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 +4 -8
- 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 -2
- package/dist/doc-schemas/index.d.ts.map +1 -1
- package/dist/doc-schemas/index.js +2 -2
- 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 +35 -55
- package/dist/doc-schemas/pending-media.d.ts.map +1 -1
- package/dist/doc-schemas/registry.d.ts +49 -229
- package/dist/doc-schemas/registry.d.ts.map +1 -1
- package/dist/doc-schemas/registry.js +3 -7
- 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 +16 -24
- package/dist/domain-events/domain-events.d.ts.map +1 -1
- package/dist/domain-events/domain-events.js +11 -11
- package/dist/domain-events/domain-events.js.map +1 -1
- package/dist/ids/index.d.ts +2 -1
- package/dist/ids/index.d.ts.map +1 -1
- package/dist/ids/index.js +2 -1
- 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 +1 -2
- package/dist/migration-console/manifest.d.ts.map +1 -1
- package/dist/migration-console/manifest.js +12 -43
- package/dist/migration-console/manifest.js.map +1 -1
- package/dist/paths/collection-groups.d.ts +0 -1
- package/dist/paths/collection-groups.d.ts.map +1 -1
- package/dist/paths/collection-groups.js +1 -2
- package/dist/paths/collection-groups.js.map +1 -1
- package/dist/paths/collection-refs.d.ts +1 -2
- package/dist/paths/collection-refs.d.ts.map +1 -1
- package/dist/paths/collection-refs.js +1 -2
- package/dist/paths/collection-refs.js.map +1 -1
- package/dist/paths/collections.d.ts +1 -5
- package/dist/paths/collections.d.ts.map +1 -1
- package/dist/paths/collections.js +1 -5
- package/dist/paths/collections.js.map +1 -1
- package/dist/paths/path-builders.d.ts +1 -4
- package/dist/paths/path-builders.d.ts.map +1 -1
- package/dist/paths/path-builders.js +2 -17
- package/dist/paths/path-builders.js.map +1 -1
- package/dist/schemas/admin-notifications.d.ts +1 -1
- package/dist/schemas/awards.d.ts +5 -75
- package/dist/schemas/awards.d.ts.map +1 -1
- package/dist/schemas/awards.js +6 -30
- package/dist/schemas/awards.js.map +1 -1
- package/dist/schemas/dead-letters.d.ts +7 -1
- package/dist/schemas/dead-letters.d.ts.map +1 -1
- package/dist/schemas/dead-letters.js +2 -1
- package/dist/schemas/dead-letters.js.map +1 -1
- package/dist/schemas/migration-console.d.ts +16 -57
- package/dist/schemas/migration-console.d.ts.map +1 -1
- package/dist/schemas/migration-console.js +3 -10
- package/dist/schemas/migration-console.js.map +1 -1
- package/dist/schemas/pictures.d.ts +21 -33
- package/dist/schemas/pictures.d.ts.map +1 -1
- package/dist/schemas/scoring.d.ts +6 -12
- package/dist/schemas/scoring.d.ts.map +1 -1
- package/dist/schemas/scoring.js +9 -5
- package/dist/schemas/scoring.js.map +1 -1
- package/dist/schemas/stats.d.ts +66 -101
- package/dist/schemas/stats.d.ts.map +1 -1
- package/dist/schemas/stats.js +39 -72
- package/dist/schemas/stats.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 +1 -3
- package/dist/types/audit.js.map +1 -1
- package/dist/types/schedules.d.ts +1 -1
- package/dist/types/schedules.d.ts.map +1 -1
- package/dist/types/schedules.js +1 -2
- package/dist/types/schedules.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/types/unions.d.ts +0 -6
- package/dist/types/unions.d.ts.map +1 -1
- package/dist/types/unions.js +0 -3
- package/dist/types/unions.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/award-group-grant.d.ts +0 -54
- package/dist/doc-schemas/award-group-grant.d.ts.map +0 -1
- package/dist/doc-schemas/award-group-grant.js +0 -55
- package/dist/doc-schemas/award-group-grant.js.map +0 -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/ids/award-grant-ids.d.ts +0 -9
- package/dist/ids/award-grant-ids.d.ts.map +0 -1
- package/dist/ids/award-grant-ids.js +0 -10
- package/dist/ids/award-grant-ids.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
|
@@ -951,7 +951,6 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
951
951
|
migration: "migration";
|
|
952
952
|
}>;
|
|
953
953
|
operationId: z.ZodString;
|
|
954
|
-
reason: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
955
954
|
rekeyedFromGhostUserId: z.ZodOptional<z.ZodString>;
|
|
956
955
|
eventId: z.ZodString;
|
|
957
956
|
sequence: z.ZodNumber;
|
|
@@ -1165,7 +1164,6 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
1165
1164
|
migration: "migration";
|
|
1166
1165
|
}>;
|
|
1167
1166
|
operationId: z.ZodString;
|
|
1168
|
-
reason: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
1169
1167
|
rekeyedFromGhostUserId: z.ZodOptional<z.ZodString>;
|
|
1170
1168
|
eventId: z.ZodString;
|
|
1171
1169
|
sequence: z.ZodNumber;
|
|
@@ -1288,42 +1286,6 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
1288
1286
|
createdAt: z.ZodNumber;
|
|
1289
1287
|
updatedAt: z.ZodNumber;
|
|
1290
1288
|
}, z.core.$strip>;
|
|
1291
|
-
readonly 'awardGroupGrants/{grantId}': z.ZodObject<{
|
|
1292
|
-
grantId: z.ZodString;
|
|
1293
|
-
action: z.ZodEnum<{
|
|
1294
|
-
grant: "grant";
|
|
1295
|
-
revoke: "revoke";
|
|
1296
|
-
}>;
|
|
1297
|
-
awardId: z.ZodString;
|
|
1298
|
-
groupType: z.ZodEnum<{
|
|
1299
|
-
team: "team";
|
|
1300
|
-
league: "league";
|
|
1301
|
-
}>;
|
|
1302
|
-
groupId: z.ZodString;
|
|
1303
|
-
targetKey: z.ZodString;
|
|
1304
|
-
decision: z.ZodNumber;
|
|
1305
|
-
actorUid: z.ZodString;
|
|
1306
|
-
status: z.ZodEnum<{
|
|
1307
|
-
complete: "complete";
|
|
1308
|
-
pending: "pending";
|
|
1309
|
-
}>;
|
|
1310
|
-
createdAt: z.ZodNumber;
|
|
1311
|
-
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
1312
|
-
attemptCount: z.ZodNumber;
|
|
1313
|
-
nextAttemptAt: z.ZodNumber;
|
|
1314
|
-
lastError: z.ZodOptional<z.ZodString>;
|
|
1315
|
-
}, z.core.$strip>;
|
|
1316
|
-
readonly 'awardGroupGrants/{grantId}/awardGroupGrantPeople/{userId}': z.ZodObject<{
|
|
1317
|
-
userId: z.ZodString;
|
|
1318
|
-
heldBefore: z.ZodBoolean;
|
|
1319
|
-
recordedAt: z.ZodNumber;
|
|
1320
|
-
revoked: z.ZodBoolean;
|
|
1321
|
-
revokedAt: z.ZodOptional<z.ZodNumber>;
|
|
1322
|
-
revokeSkipped: z.ZodOptional<z.ZodEnum<{
|
|
1323
|
-
heldBefore: "heldBefore";
|
|
1324
|
-
heldByAnotherGrant: "heldByAnotherGrant";
|
|
1325
|
-
}>>;
|
|
1326
|
-
}, z.core.$strip>;
|
|
1327
1289
|
readonly 'sportHallOfFame/{sportKey}': z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1328
1290
|
leagueType: z.ZodLiteral<"Basketball">;
|
|
1329
1291
|
playerStats: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -1345,7 +1307,7 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
1345
1307
|
}, z.core.$strip>], "leagueType">;
|
|
1346
1308
|
readonly 'statsValidationReports/{reportId}': z.ZodObject<{
|
|
1347
1309
|
reportId: z.ZodString;
|
|
1348
|
-
|
|
1310
|
+
jobId: z.ZodOptional<z.ZodString>;
|
|
1349
1311
|
ranAt: z.ZodNumber;
|
|
1350
1312
|
ranByUserId: z.ZodString;
|
|
1351
1313
|
scope: z.ZodObject<{
|
|
@@ -1403,163 +1365,39 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
1403
1365
|
discrepanciesFound: z.ZodNumber;
|
|
1404
1366
|
}, z.core.$strip>;
|
|
1405
1367
|
}, z.core.$strip>;
|
|
1406
|
-
readonly '
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
reason: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
1412
|
-
startedByUserId: z.ZodString;
|
|
1413
|
-
startedAt: z.ZodNumber;
|
|
1414
|
-
updatedAt: z.ZodNumber;
|
|
1415
|
-
status: z.ZodEnum<{
|
|
1416
|
-
running: "running";
|
|
1417
|
-
complete: "complete";
|
|
1418
|
-
stopped: "stopped";
|
|
1419
|
-
}>;
|
|
1420
|
-
resumeAfter: z.ZodOptional<z.ZodString>;
|
|
1421
|
-
counts: z.ZodObject<{
|
|
1422
|
-
read: z.ZodNumber;
|
|
1423
|
-
changed: z.ZodNumber;
|
|
1424
|
-
skipped: z.ZodNumber;
|
|
1425
|
-
}, z.core.$strip>;
|
|
1426
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1427
|
-
kind: z.ZodLiteral<"lifetimeStatsRebuild">;
|
|
1428
|
-
scope: z.ZodObject<{
|
|
1429
|
-
userId: z.ZodOptional<z.ZodString>;
|
|
1430
|
-
}, z.core.$strip>;
|
|
1431
|
-
reason: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
1432
|
-
startedByUserId: z.ZodString;
|
|
1433
|
-
startedAt: z.ZodNumber;
|
|
1434
|
-
updatedAt: z.ZodNumber;
|
|
1435
|
-
status: z.ZodEnum<{
|
|
1436
|
-
running: "running";
|
|
1437
|
-
complete: "complete";
|
|
1438
|
-
stopped: "stopped";
|
|
1368
|
+
readonly 'statsJobs/{jobId}': z.ZodObject<{
|
|
1369
|
+
jobId: z.ZodString;
|
|
1370
|
+
kind: z.ZodEnum<{
|
|
1371
|
+
rebuild: "rebuild";
|
|
1372
|
+
check: "check";
|
|
1439
1373
|
}>;
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
read: z.ZodNumber;
|
|
1443
|
-
changed: z.ZodNumber;
|
|
1444
|
-
skipped: z.ZodNumber;
|
|
1445
|
-
}, z.core.$strip>;
|
|
1446
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1447
|
-
kind: z.ZodLiteral<"hallOfFameRebuild">;
|
|
1448
|
-
scope: z.ZodObject<{
|
|
1449
|
-
sportKey: z.ZodEnum<{
|
|
1450
|
-
basketball: "basketball";
|
|
1451
|
-
curling: "curling";
|
|
1452
|
-
football: "football";
|
|
1453
|
-
}>;
|
|
1454
|
-
userId: z.ZodOptional<z.ZodString>;
|
|
1455
|
-
}, z.core.$strip>;
|
|
1456
|
-
reason: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
1457
|
-
startedByUserId: z.ZodString;
|
|
1458
|
-
startedAt: z.ZodNumber;
|
|
1459
|
-
updatedAt: z.ZodNumber;
|
|
1460
|
-
status: z.ZodEnum<{
|
|
1461
|
-
running: "running";
|
|
1374
|
+
userId: z.ZodString;
|
|
1375
|
+
state: z.ZodEnum<{
|
|
1462
1376
|
complete: "complete";
|
|
1463
|
-
|
|
1377
|
+
"in-progress": "in-progress";
|
|
1378
|
+
failed: "failed";
|
|
1464
1379
|
}>;
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
read: z.ZodNumber;
|
|
1468
|
-
changed: z.ZodNumber;
|
|
1469
|
-
skipped: z.ZodNumber;
|
|
1470
|
-
}, z.core.$strip>;
|
|
1471
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1472
|
-
kind: z.ZodLiteral<"statsValidation">;
|
|
1473
|
-
scope: z.ZodObject<{
|
|
1474
|
-
gameId: z.ZodOptional<z.ZodString>;
|
|
1475
|
-
leagueId: z.ZodOptional<z.ZodString>;
|
|
1476
|
-
}, z.core.$strip>;
|
|
1477
|
-
phase: z.ZodEnum<{
|
|
1380
|
+
stage: z.ZodEnum<{
|
|
1381
|
+
hallOfFame: "hallOfFame";
|
|
1478
1382
|
games: "games";
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
startedByUserId: z.ZodString;
|
|
1482
|
-
startedAt: z.ZodNumber;
|
|
1483
|
-
updatedAt: z.ZodNumber;
|
|
1484
|
-
status: z.ZodEnum<{
|
|
1485
|
-
running: "running";
|
|
1486
|
-
complete: "complete";
|
|
1487
|
-
stopped: "stopped";
|
|
1383
|
+
leagues: "leagues";
|
|
1384
|
+
people: "people";
|
|
1488
1385
|
}>;
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
}, z.core.$strip>;
|
|
1500
|
-
reason: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
1501
|
-
requestHash: z.ZodOptional<z.ZodString>;
|
|
1502
|
-
startedByUserId: z.ZodString;
|
|
1503
|
-
startedAt: z.ZodNumber;
|
|
1504
|
-
updatedAt: z.ZodNumber;
|
|
1505
|
-
status: z.ZodEnum<{
|
|
1506
|
-
running: "running";
|
|
1507
|
-
complete: "complete";
|
|
1508
|
-
stopped: "stopped";
|
|
1509
|
-
}>;
|
|
1510
|
-
resumeAfter: z.ZodOptional<z.ZodString>;
|
|
1511
|
-
counts: z.ZodObject<{
|
|
1512
|
-
read: z.ZodNumber;
|
|
1513
|
-
changed: z.ZodNumber;
|
|
1514
|
-
skipped: z.ZodNumber;
|
|
1515
|
-
}, z.core.$strip>;
|
|
1516
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1517
|
-
kind: z.ZodLiteral<"gameStatsRecalculation">;
|
|
1518
|
-
scope: z.ZodObject<{
|
|
1519
|
-
gameId: z.ZodString;
|
|
1520
|
-
}, z.core.$strip>;
|
|
1521
|
-
reason: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
1522
|
-
startedByUserId: z.ZodString;
|
|
1523
|
-
startedAt: z.ZodNumber;
|
|
1524
|
-
updatedAt: z.ZodNumber;
|
|
1525
|
-
status: z.ZodEnum<{
|
|
1526
|
-
running: "running";
|
|
1527
|
-
complete: "complete";
|
|
1528
|
-
stopped: "stopped";
|
|
1529
|
-
}>;
|
|
1530
|
-
resumeAfter: z.ZodOptional<z.ZodString>;
|
|
1531
|
-
counts: z.ZodObject<{
|
|
1532
|
-
read: z.ZodNumber;
|
|
1533
|
-
changed: z.ZodNumber;
|
|
1534
|
-
skipped: z.ZodNumber;
|
|
1535
|
-
}, z.core.$strip>;
|
|
1536
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1537
|
-
kind: z.ZodLiteral<"historicalStatsUpdate">;
|
|
1538
|
-
scope: z.ZodObject<{
|
|
1539
|
-
userId: z.ZodString;
|
|
1540
|
-
sportKey: z.ZodEnum<{
|
|
1541
|
-
basketball: "basketball";
|
|
1542
|
-
curling: "curling";
|
|
1543
|
-
football: "football";
|
|
1544
|
-
}>;
|
|
1545
|
-
}, z.core.$strip>;
|
|
1546
|
-
reason: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
1547
|
-
requestHash: z.ZodOptional<z.ZodString>;
|
|
1548
|
-
startedByUserId: z.ZodString;
|
|
1549
|
-
startedAt: z.ZodNumber;
|
|
1386
|
+
cursor: z.ZodNullable<z.ZodString>;
|
|
1387
|
+
stageDone: z.ZodNumber;
|
|
1388
|
+
changed: z.ZodNumber;
|
|
1389
|
+
reportId: z.ZodOptional<z.ZodString>;
|
|
1390
|
+
revision: z.ZodNumber;
|
|
1391
|
+
error: z.ZodNullable<z.ZodString>;
|
|
1392
|
+
attemptCount: z.ZodNumber;
|
|
1393
|
+
nextAttemptAt: z.ZodNumber;
|
|
1394
|
+
deadLettered: z.ZodBoolean;
|
|
1395
|
+
createdAt: z.ZodNumber;
|
|
1550
1396
|
updatedAt: z.ZodNumber;
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
}>;
|
|
1556
|
-
resumeAfter: z.ZodOptional<z.ZodString>;
|
|
1557
|
-
counts: z.ZodObject<{
|
|
1558
|
-
read: z.ZodNumber;
|
|
1559
|
-
changed: z.ZodNumber;
|
|
1560
|
-
skipped: z.ZodNumber;
|
|
1561
|
-
}, z.core.$strip>;
|
|
1562
|
-
}, z.core.$strip>], "kind">;
|
|
1397
|
+
completedAt: z.ZodNullable<z.ZodNumber>;
|
|
1398
|
+
deadLetteredAt: z.ZodNullable<z.ZodNumber>;
|
|
1399
|
+
expireAt: z.ZodOptional<z.ZodCustom<import("./firestore-primitives.js").FirestoreTimestampLike, import("./firestore-primitives.js").FirestoreTimestampLike>>;
|
|
1400
|
+
}, z.core.$strip>;
|
|
1563
1401
|
readonly 'galleryPictures/{pictureId}': z.ZodObject<{
|
|
1564
1402
|
ownerKind: z.ZodEnum<{
|
|
1565
1403
|
sportLeague: "sportLeague";
|
|
@@ -1889,27 +1727,23 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
1889
1727
|
}, z.core.$strip>, z.ZodObject<{
|
|
1890
1728
|
type: z.ZodLiteral<"sportLeague.statsRecalculated">;
|
|
1891
1729
|
ids: z.ZodObject<{
|
|
1892
|
-
leagueId: z.
|
|
1730
|
+
leagueId: z.ZodString;
|
|
1893
1731
|
}, z.core.$strip>;
|
|
1894
1732
|
}, z.core.$strip>, z.ZodObject<{
|
|
1895
1733
|
type: z.ZodLiteral<"userProfile.statsRecalculated">;
|
|
1896
1734
|
ids: z.ZodObject<{
|
|
1897
|
-
userId: z.
|
|
1735
|
+
userId: z.ZodString;
|
|
1898
1736
|
}, z.core.$strip>;
|
|
1899
1737
|
}, z.core.$strip>, z.ZodObject<{
|
|
1900
|
-
type: z.ZodLiteral<"
|
|
1738
|
+
type: z.ZodLiteral<"sportGame.statsRecalculated">;
|
|
1901
1739
|
ids: z.ZodObject<{
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
curling: "curling";
|
|
1905
|
-
football: "football";
|
|
1906
|
-
}>>;
|
|
1740
|
+
leagueId: z.ZodString;
|
|
1741
|
+
gameId: z.ZodString;
|
|
1907
1742
|
}, z.core.$strip>;
|
|
1908
1743
|
}, z.core.$strip>, z.ZodObject<{
|
|
1909
|
-
type: z.ZodLiteral<"
|
|
1744
|
+
type: z.ZodLiteral<"statsJob.created">;
|
|
1910
1745
|
ids: z.ZodObject<{
|
|
1911
|
-
|
|
1912
|
-
gameId: z.ZodString;
|
|
1746
|
+
jobId: z.ZodString;
|
|
1913
1747
|
}, z.core.$strip>;
|
|
1914
1748
|
}, z.core.$strip>, z.ZodObject<{
|
|
1915
1749
|
type: z.ZodLiteral<"statsValidationReport.created">;
|
|
@@ -2448,27 +2282,23 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
2448
2282
|
}, z.core.$strip>, z.ZodObject<{
|
|
2449
2283
|
type: z.ZodLiteral<"sportLeague.statsRecalculated">;
|
|
2450
2284
|
ids: z.ZodObject<{
|
|
2451
|
-
leagueId: z.
|
|
2285
|
+
leagueId: z.ZodString;
|
|
2452
2286
|
}, z.core.$strip>;
|
|
2453
2287
|
}, z.core.$strip>, z.ZodObject<{
|
|
2454
2288
|
type: z.ZodLiteral<"userProfile.statsRecalculated">;
|
|
2455
2289
|
ids: z.ZodObject<{
|
|
2456
|
-
userId: z.
|
|
2290
|
+
userId: z.ZodString;
|
|
2457
2291
|
}, z.core.$strip>;
|
|
2458
2292
|
}, z.core.$strip>, z.ZodObject<{
|
|
2459
|
-
type: z.ZodLiteral<"
|
|
2293
|
+
type: z.ZodLiteral<"sportGame.statsRecalculated">;
|
|
2460
2294
|
ids: z.ZodObject<{
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
curling: "curling";
|
|
2464
|
-
football: "football";
|
|
2465
|
-
}>>;
|
|
2295
|
+
leagueId: z.ZodString;
|
|
2296
|
+
gameId: z.ZodString;
|
|
2466
2297
|
}, z.core.$strip>;
|
|
2467
2298
|
}, z.core.$strip>, z.ZodObject<{
|
|
2468
|
-
type: z.ZodLiteral<"
|
|
2299
|
+
type: z.ZodLiteral<"statsJob.created">;
|
|
2469
2300
|
ids: z.ZodObject<{
|
|
2470
|
-
|
|
2471
|
-
gameId: z.ZodString;
|
|
2301
|
+
jobId: z.ZodString;
|
|
2472
2302
|
}, z.core.$strip>;
|
|
2473
2303
|
}, z.core.$strip>, z.ZodObject<{
|
|
2474
2304
|
type: z.ZodLiteral<"statsValidationReport.created">;
|
|
@@ -2778,8 +2608,8 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
2778
2608
|
"sportGame.deleted": "sportGame.deleted";
|
|
2779
2609
|
"sportLeague.statsRecalculated": "sportLeague.statsRecalculated";
|
|
2780
2610
|
"userProfile.statsRecalculated": "userProfile.statsRecalculated";
|
|
2781
|
-
"
|
|
2782
|
-
"
|
|
2611
|
+
"sportGame.statsRecalculated": "sportGame.statsRecalculated";
|
|
2612
|
+
"statsJob.created": "statsJob.created";
|
|
2783
2613
|
"statsValidationReport.created": "statsValidationReport.created";
|
|
2784
2614
|
"statsValidationReport.deleted": "statsValidationReport.deleted";
|
|
2785
2615
|
"historicalStat.updated": "historicalStat.updated";
|
|
@@ -2827,10 +2657,8 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
2827
2657
|
"galleryPicture.moved": "galleryPicture.moved";
|
|
2828
2658
|
"galleryPicture.featuredChanged": "galleryPicture.featuredChanged";
|
|
2829
2659
|
"galleryPicture.removed": "galleryPicture.removed";
|
|
2830
|
-
"award.groupDecisionOpened": "award.groupDecisionOpened";
|
|
2831
2660
|
"ghostPlayer.closedLeagueLinked": "ghostPlayer.closedLeagueLinked";
|
|
2832
2661
|
"sportGame.statEventsRejected": "sportGame.statEventsRejected";
|
|
2833
|
-
"sportGame.statsRecalculated": "sportGame.statsRecalculated";
|
|
2834
2662
|
"adminNotification.archived": "adminNotification.archived";
|
|
2835
2663
|
"notificationArchiveAllJob.created": "notificationArchiveAllJob.created";
|
|
2836
2664
|
"migrationActionRun.writesCommitted": "migrationActionRun.writesCommitted";
|
|
@@ -2970,8 +2798,8 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
2970
2798
|
state: z.ZodEnum<{
|
|
2971
2799
|
complete: "complete";
|
|
2972
2800
|
"in-progress": "in-progress";
|
|
2973
|
-
incomplete: "incomplete";
|
|
2974
2801
|
failed: "failed";
|
|
2802
|
+
incomplete: "incomplete";
|
|
2975
2803
|
}>;
|
|
2976
2804
|
revision: z.ZodNumber;
|
|
2977
2805
|
archived: z.ZodNumber;
|
|
@@ -3104,9 +2932,7 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
3104
2932
|
"verify.v1LeagueCapacity": "verify.v1LeagueCapacity";
|
|
3105
2933
|
"verify.v1HardwareContractIdsUnique": "verify.v1HardwareContractIdsUnique";
|
|
3106
2934
|
"delete.v1Commerce": "delete.v1Commerce";
|
|
3107
|
-
"rebuild.
|
|
3108
|
-
"rebuild.lifetimeStats": "rebuild.lifetimeStats";
|
|
3109
|
-
"rebuild.sportHallOfFame": "rebuild.sportHallOfFame";
|
|
2935
|
+
"rebuild.stats": "rebuild.stats";
|
|
3110
2936
|
"validate.stats": "validate.stats";
|
|
3111
2937
|
"verify.sportHallOfFame": "verify.sportHallOfFame";
|
|
3112
2938
|
"delete.v1HallOfFame": "delete.v1HallOfFame";
|
|
@@ -3206,9 +3032,7 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
3206
3032
|
"verify.v1LeagueCapacity": "verify.v1LeagueCapacity";
|
|
3207
3033
|
"verify.v1HardwareContractIdsUnique": "verify.v1HardwareContractIdsUnique";
|
|
3208
3034
|
"delete.v1Commerce": "delete.v1Commerce";
|
|
3209
|
-
"rebuild.
|
|
3210
|
-
"rebuild.lifetimeStats": "rebuild.lifetimeStats";
|
|
3211
|
-
"rebuild.sportHallOfFame": "rebuild.sportHallOfFame";
|
|
3035
|
+
"rebuild.stats": "rebuild.stats";
|
|
3212
3036
|
"validate.stats": "validate.stats";
|
|
3213
3037
|
"verify.sportHallOfFame": "verify.sportHallOfFame";
|
|
3214
3038
|
"delete.v1HallOfFame": "delete.v1HallOfFame";
|
|
@@ -3223,7 +3047,6 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
3223
3047
|
run: z.ZodOptional<z.ZodObject<{
|
|
3224
3048
|
operationId: z.ZodString;
|
|
3225
3049
|
dryRun: z.ZodBoolean;
|
|
3226
|
-
reason: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
3227
3050
|
startedByUserId: z.ZodString;
|
|
3228
3051
|
startedAt: z.ZodNumber;
|
|
3229
3052
|
updatedAt: z.ZodNumber;
|
|
@@ -3258,7 +3081,6 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
3258
3081
|
preview: z.ZodOptional<z.ZodObject<{
|
|
3259
3082
|
operationId: z.ZodString;
|
|
3260
3083
|
dryRun: z.ZodBoolean;
|
|
3261
|
-
reason: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
3262
3084
|
startedByUserId: z.ZodString;
|
|
3263
3085
|
startedAt: z.ZodNumber;
|
|
3264
3086
|
updatedAt: z.ZodNumber;
|
|
@@ -3293,8 +3115,7 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
3293
3115
|
recorded: z.ZodOptional<z.ZodObject<{
|
|
3294
3116
|
recordedAt: z.ZodNumber;
|
|
3295
3117
|
recordedByUserId: z.ZodString;
|
|
3296
|
-
|
|
3297
|
-
evidence: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
3118
|
+
statsJobId: z.ZodOptional<z.ZodString>;
|
|
3298
3119
|
}, z.core.$strip>>;
|
|
3299
3120
|
}, z.core.$strip>;
|
|
3300
3121
|
readonly 'sweepState/{sweepName}': z.ZodObject<{
|
|
@@ -3333,8 +3154,7 @@ export declare const COLLECTION_DOC_ID_FIELDS: {
|
|
|
3333
3154
|
readonly 'adminNotificationHistory/{historyId}': "archiveOccurrenceId";
|
|
3334
3155
|
readonly 'notificationDeliveries/{deliveryId}': "deliveryId";
|
|
3335
3156
|
readonly 'notificationArchiveAllJobs/{jobId}': "jobId";
|
|
3336
|
-
readonly '
|
|
3337
|
-
readonly 'awardGroupGrants/{grantId}/awardGroupGrantPeople/{userId}': "userId";
|
|
3157
|
+
readonly 'statsJobs/{jobId}': "jobId";
|
|
3338
3158
|
readonly 'migrationActionRuns/{actionId}': "actionId";
|
|
3339
3159
|
readonly 'signatureCopyIntents/{stagingId}': "stagingId";
|
|
3340
3160
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/doc-schemas/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/doc-schemas/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgD7B,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuDkB,CAAC;AAElD,MAAM,MAAM,wBAAwB,GAAG,MAAM,OAAO,kBAAkB,CAAC;AAEvE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;CAaiC,CAAC;AAEvE,eAAO,MAAM,mBAAmB,EAAE,SAAS,MAAM,EAAO,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { StatusReconcileQueueEntrySchema } from './status-reconcile-queue.js';
|
|
2
2
|
import { ActiveAdminNotificationSchema, AdminNotificationHistorySchema, NotificationArchiveAllJobSchema, NotificationDeliverySchema, } from './admin-notifications.js';
|
|
3
3
|
import { AwardDefinitionSchema } from './catalogs.js';
|
|
4
|
-
import { AwardGroupGrantPersonSchema, AwardGroupGrantSchema } from './award-group-grant.js';
|
|
5
4
|
import { GameLocationRegistrySchema, GameLocationSchema } from './game-location.js';
|
|
6
5
|
import { GalleryPictureSchema } from './gallery.js';
|
|
7
6
|
import { PendingMediaSchema } from './pending-media.js';
|
|
@@ -10,7 +9,7 @@ import { GameRosterPlayerSchema, SportGameSchema } from './sport-game.js';
|
|
|
10
9
|
import { SportHallOfFameSchema } from './aggregate-stats.js';
|
|
11
10
|
import { GameStatHistoryRecordSchema } from './game-stat-history.js';
|
|
12
11
|
import { GameStatEventSchema } from './game-stats.js';
|
|
13
|
-
import {
|
|
12
|
+
import { StatsJobSchema } from './stats-job.js';
|
|
14
13
|
import { LeagueTeamContactSchema, LeagueTeamSchema } from './league-team.js';
|
|
15
14
|
import { MigrationActionRunSchema, MigrationConsoleSchema } from './migration-console.js';
|
|
16
15
|
import { AuditEventSchema } from './audit-event.js';
|
|
@@ -51,11 +50,9 @@ export const COLLECTION_SCHEMAS = {
|
|
|
51
50
|
'hardwareLoanContracts/{contractId}': HardwareLoanContractSchema,
|
|
52
51
|
'signatureCopyIntents/{stagingId}': SignatureCopyIntentSchema,
|
|
53
52
|
'awardDefinitions/{awardId}': AwardDefinitionSchema,
|
|
54
|
-
'awardGroupGrants/{grantId}': AwardGroupGrantSchema,
|
|
55
|
-
'awardGroupGrants/{grantId}/awardGroupGrantPeople/{userId}': AwardGroupGrantPersonSchema,
|
|
56
53
|
'sportHallOfFame/{sportKey}': SportHallOfFameSchema,
|
|
57
54
|
'statsValidationReports/{reportId}': StatsValidationReportSchema,
|
|
58
|
-
'
|
|
55
|
+
'statsJobs/{jobId}': StatsJobSchema,
|
|
59
56
|
'galleryPictures/{pictureId}': GalleryPictureSchema,
|
|
60
57
|
'pendingMedia/{pendingMediaId}': PendingMediaSchema,
|
|
61
58
|
'pictureRetirements/{retirementId}': PictureRetirementSchema,
|
|
@@ -84,8 +81,7 @@ export const COLLECTION_DOC_ID_FIELDS = {
|
|
|
84
81
|
'adminNotificationHistory/{historyId}': 'archiveOccurrenceId',
|
|
85
82
|
'notificationDeliveries/{deliveryId}': 'deliveryId',
|
|
86
83
|
'notificationArchiveAllJobs/{jobId}': 'jobId',
|
|
87
|
-
'
|
|
88
|
-
'awardGroupGrants/{grantId}/awardGroupGrantPeople/{userId}': 'userId',
|
|
84
|
+
'statsJobs/{jobId}': 'jobId',
|
|
89
85
|
'migrationActionRuns/{actionId}': 'actionId',
|
|
90
86
|
'signatureCopyIntents/{stagingId}': 'stagingId',
|
|
91
87
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../src/doc-schemas/registry.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,+BAA+B,EAAE,MAAM,6BAA6B,CAAC;AAC9E,OAAO,EACL,6BAA6B,EAC7B,8BAA8B,EAC9B,+BAA+B,EAC/B,0BAA0B,GAC3B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../src/doc-schemas/registry.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,+BAA+B,EAAE,MAAM,6BAA6B,CAAC;AAC9E,OAAO,EACL,6BAA6B,EAC7B,8BAA8B,EAC9B,+BAA+B,EAC/B,0BAA0B,GAC3B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,0BAA0B,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACpF,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,uB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B,EAAE,sBAAsB;IACtD,kCAAkC,EAAE,0BAA0B;IAC9D,oCAAoC,EAAE,4BAA4B;IAClE,gCAAgC,EAAE,wBAAwB;IAC1D,wBAAwB,EAAE,gBAAgB;CACK,CAAC;AAIlD,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,sBAAsB,EAAE,KAAK;IAC7B,6BAA6B,EAAE,QAAQ;IACvC,8CAA8C,EAAE,SAAS;IACzD,mCAAmC,EAAE,UAAU;IAC/C,4BAA4B,EAAE,IAAI;IAClC,+BAA+B,EAAE,IAAI;IACrC,sCAAsC,EAAE,qBAAqB;IAC7D,qCAAqC,EAAE,YAAY;IACnD,oCAAoC,EAAE,OAAO;IAC7C,mBAAmB,EAAE,OAAO;IAC5B,gCAAgC,EAAE,UAAU;IAC5C,kCAAkC,EAAE,WAAW;CACqB,CAAC;AAEvE,MAAM,CAAC,MAAM,mBAAmB,GAAsB,EAAE,CAAC","sourcesContent":["import type { z } from 'zod';\nimport { StatusReconcileQueueEntrySchema } from './status-reconcile-queue.js';\nimport {\n ActiveAdminNotificationSchema,\n AdminNotificationHistorySchema,\n NotificationArchiveAllJobSchema,\n NotificationDeliverySchema,\n} from './admin-notifications.js';\nimport { AwardDefinitionSchema } from './catalogs.js';\nimport { GameLocationRegistrySchema, GameLocationSchema } from './game-location.js';\nimport { GalleryPictureSchema } from './gallery.js';\nimport { PendingMediaSchema } from './pending-media.js';\nimport { PictureRetirementSchema } from './picture-retirement.js';\nimport { GameRosterPlayerSchema, SportGameSchema } from './sport-game.js';\nimport { SportHallOfFameSchema } from './aggregate-stats.js';\nimport { GameStatHistoryRecordSchema } from './game-stat-history.js';\nimport { GameStatEventSchema } from './game-stats.js';\nimport { StatsJobSchema } from './stats-job.js';\nimport { LeagueTeamContactSchema, LeagueTeamSchema } from './league-team.js';\nimport { MigrationActionRunSchema, MigrationConsoleSchema } from './migration-console.js';\nimport { AuditEventSchema } from './audit-event.js';\nimport { PublicUserSchema } from './publicUser.js';\nimport { RegistrationStartSchema } from './registration-start.js';\nimport { ReservedDisplayNameSchema } from './reserved-display-name.js';\nimport { SportLeagueSchema } from './sport-league.js';\nimport { SweepStateSchema } from './sweep-state.js';\nimport { SignatureCopyIntentSchema } from './signature-copy-intent.js';\nimport {\n AppConfigSchema,\n LandingPageConfigSchema,\n AdminListSchema,\n StatsBeaconSchema,\n StatsValidationReportSchema,\n} from './system.js';\nimport {\n LeagueFreeAgentSchema,\n TeamJoinRequestSchema,\n TeamInvitationSchema,\n TeamMembershipSchema,\n} from './team-membership.js';\nimport { HistoricalStatsSchema, UserPrivateDataSchema, UserProfileSchema } from './user-profile.js';\nimport { HardwareLoanContractSchema, SignedWaiverSchema } from './waivers-and-hardware.js';\nimport {\n WaiverTemplateRegistrySchema,\n WaiverTemplateSchema,\n WaiverTemplateVersionSchema,\n} from './waiver-template.js';\n\nexport const COLLECTION_SCHEMAS = {\n 'userProfiles/{userId}': UserProfileSchema,\n 'userProfiles/{userId}/privateData/{privateDataId}': UserPrivateDataSchema,\n 'userProfiles/{userId}/historicalStats/{sportKey}': HistoricalStatsSchema,\n 'publicUsers/{userId}': PublicUserSchema,\n 'reservedDisplayNames/{reservedDisplayNameKey}': ReservedDisplayNameSchema,\n 'statusReconcileQueue/{userId}': StatusReconcileQueueEntrySchema,\n 'registrationStarts/{userId}': RegistrationStartSchema,\n\n 'sportLeagues/{leagueId}': SportLeagueSchema,\n 'leagueTeams/{teamId}': LeagueTeamSchema,\n 'leagueTeamContacts/{teamId}': LeagueTeamContactSchema,\n 'teamMemberships/{teamMembershipId}': TeamMembershipSchema,\n 'teamInvitations/{inviteId}': TeamInvitationSchema,\n 'teamJoinRequests/{requestId}': TeamJoinRequestSchema,\n 'leagueFreeAgents/{leagueFreeAgentId}': LeagueFreeAgentSchema,\n\n 'sportGames/{gameId}': SportGameSchema,\n 'sportGames/{gameId}/gameRosterPlayers/{gameRosterPlayerId}': GameRosterPlayerSchema,\n 'sportGames/{gameId}/gameStatEvents/{eventId}': GameStatEventSchema,\n 'sportGames/{gameId}/gameStatHistory/record': GameStatHistoryRecordSchema,\n 'gameLocations/{gameLocationId}': GameLocationSchema,\n\n 'waiverTemplates/{waiverTemplateId}': WaiverTemplateSchema,\n 'waiverTemplates/{waiverTemplateId}/waiverTemplateVersions/{versionId}':\n WaiverTemplateVersionSchema,\n 'signedWaivers/{signedWaiverId}': SignedWaiverSchema,\n 'hardwareLoanContracts/{contractId}': HardwareLoanContractSchema,\n 'signatureCopyIntents/{stagingId}': SignatureCopyIntentSchema,\n\n 'awardDefinitions/{awardId}': AwardDefinitionSchema,\n 'sportHallOfFame/{sportKey}': SportHallOfFameSchema,\n 'statsValidationReports/{reportId}': StatsValidationReportSchema,\n 'statsJobs/{jobId}': StatsJobSchema,\n\n 'galleryPictures/{pictureId}': GalleryPictureSchema,\n 'pendingMedia/{pendingMediaId}': PendingMediaSchema,\n 'pictureRetirements/{retirementId}': PictureRetirementSchema,\n\n 'auditEvents/{auditEventId}': AuditEventSchema,\n\n 'activeAdminNotifications/{notificationId}': ActiveAdminNotificationSchema,\n 'adminNotificationHistory/{historyId}': AdminNotificationHistorySchema,\n 'notificationDeliveries/{deliveryId}': NotificationDeliverySchema,\n 'notificationArchiveAllJobs/{jobId}': NotificationArchiveAllJobSchema,\n\n '_appConfig/landingPage': LandingPageConfigSchema,\n '_appConfig/app': AppConfigSchema,\n '_appConfig/statsBeacon': StatsBeaconSchema,\n '_systemData/adminList': AdminListSchema,\n '_serverData/migrationConsole': MigrationConsoleSchema,\n '_serverData/gameLocationRegistry': GameLocationRegistrySchema,\n '_serverData/waiverTemplateRegistry': WaiverTemplateRegistrySchema,\n 'migrationActionRuns/{actionId}': MigrationActionRunSchema,\n 'sweepState/{sweepName}': SweepStateSchema,\n} as const satisfies Record<string, z.ZodTypeAny>;\n\nexport type RegisteredCollectionPath = keyof typeof COLLECTION_SCHEMAS;\n\nexport const COLLECTION_DOC_ID_FIELDS = {\n 'publicUsers/{userId}': 'uid',\n 'registrationStarts/{userId}': 'userId',\n 'sportGames/{gameId}/gameStatEvents/{eventId}': 'eventId',\n 'statsValidationReports/{reportId}': 'reportId',\n 'auditEvents/{auditEventId}': 'id',\n 'pendingMedia/{pendingMediaId}': 'id',\n 'adminNotificationHistory/{historyId}': 'archiveOccurrenceId',\n 'notificationDeliveries/{deliveryId}': 'deliveryId',\n 'notificationArchiveAllJobs/{jobId}': 'jobId',\n 'statsJobs/{jobId}': 'jobId',\n 'migrationActionRuns/{actionId}': 'actionId',\n 'signatureCopyIntents/{stagingId}': 'stagingId',\n} as const satisfies Partial<Record<RegisteredCollectionPath, string>>;\n\nexport const PENDING_COLLECTIONS: readonly string[] = [];\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const GhostRemovedFinishedEntrySchema: z.ZodObject<{
|
|
3
|
+
gameId: z.ZodString;
|
|
4
|
+
wasAbsent: z.ZodBoolean;
|
|
5
|
+
wasNonScoring: z.ZodBoolean;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export type GhostRemovedFinishedEntry = z.infer<typeof GhostRemovedFinishedEntrySchema>;
|
|
8
|
+
export declare const GhostLinkedGameSchema: z.ZodObject<{
|
|
9
|
+
gameId: z.ZodString;
|
|
10
|
+
completed: z.ZodBoolean;
|
|
11
|
+
merged: z.ZodBoolean;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export type GhostLinkedGame = z.infer<typeof GhostLinkedGameSchema>;
|
|
14
|
+
export declare const StatsDestinationChangeSchema: z.ZodObject<{
|
|
15
|
+
ref: z.ZodString;
|
|
16
|
+
field: z.ZodString;
|
|
17
|
+
before: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
18
|
+
after: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
export type StatsDestinationChange = z.infer<typeof StatsDestinationChangeSchema>;
|
|
21
|
+
//# sourceMappingURL=stats-changes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stats-changes.d.ts","sourceRoot":"","sources":["../../src/doc-schemas/stats-changes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,+BAA+B;;;;iBAI1C,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAExF,eAAO,MAAM,qBAAqB;;;;iBAIhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,4BAA4B;;;;;iBAKvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { gameIdSchema } from './atoms.js';
|
|
3
|
+
export const GhostRemovedFinishedEntrySchema = z.object({
|
|
4
|
+
gameId: gameIdSchema,
|
|
5
|
+
wasAbsent: z.boolean(),
|
|
6
|
+
wasNonScoring: z.boolean(),
|
|
7
|
+
});
|
|
8
|
+
export const GhostLinkedGameSchema = z.object({
|
|
9
|
+
gameId: gameIdSchema,
|
|
10
|
+
completed: z.boolean(),
|
|
11
|
+
merged: z.boolean(),
|
|
12
|
+
});
|
|
13
|
+
export const StatsDestinationChangeSchema = z.object({
|
|
14
|
+
ref: z.string().min(1),
|
|
15
|
+
field: z.string().min(1),
|
|
16
|
+
before: z.record(z.string(), z.number()).nullable(),
|
|
17
|
+
after: z.record(z.string(), z.number()).nullable(),
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=stats-changes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stats-changes.js","sourceRoot":"","sources":["../../src/doc-schemas/stats-changes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,MAAM,CAAC;IACtD,MAAM,EAAE,YAAY;IACpB,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE;IACtB,aAAa,EAAE,CAAC,CAAC,OAAO,EAAE;CAC3B,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,MAAM,EAAE,YAAY;IACpB,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE;IACtB,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;CACpB,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IACnD,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACtB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACxB,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACnD,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CACnD,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { gameIdSchema } from './atoms.js';\n\nexport const GhostRemovedFinishedEntrySchema = z.object({\n gameId: gameIdSchema,\n wasAbsent: z.boolean(),\n wasNonScoring: z.boolean(),\n});\nexport type GhostRemovedFinishedEntry = z.infer<typeof GhostRemovedFinishedEntrySchema>;\n\nexport const GhostLinkedGameSchema = z.object({\n gameId: gameIdSchema,\n completed: z.boolean(),\n merged: z.boolean(),\n});\nexport type GhostLinkedGame = z.infer<typeof GhostLinkedGameSchema>;\n\nexport const StatsDestinationChangeSchema = z.object({\n ref: z.string().min(1),\n field: z.string().min(1),\n before: z.record(z.string(), z.number()).nullable(),\n after: z.record(z.string(), z.number()).nullable(),\n});\nexport type StatsDestinationChange = z.infer<typeof StatsDestinationChangeSchema>;\n"]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const StatsJobSchema: z.ZodObject<{
|
|
3
|
+
jobId: z.ZodString;
|
|
4
|
+
kind: z.ZodEnum<{
|
|
5
|
+
rebuild: "rebuild";
|
|
6
|
+
check: "check";
|
|
7
|
+
}>;
|
|
8
|
+
userId: z.ZodString;
|
|
9
|
+
state: z.ZodEnum<{
|
|
10
|
+
complete: "complete";
|
|
11
|
+
"in-progress": "in-progress";
|
|
12
|
+
failed: "failed";
|
|
13
|
+
}>;
|
|
14
|
+
stage: z.ZodEnum<{
|
|
15
|
+
hallOfFame: "hallOfFame";
|
|
16
|
+
games: "games";
|
|
17
|
+
leagues: "leagues";
|
|
18
|
+
people: "people";
|
|
19
|
+
}>;
|
|
20
|
+
cursor: z.ZodNullable<z.ZodString>;
|
|
21
|
+
stageDone: z.ZodNumber;
|
|
22
|
+
changed: z.ZodNumber;
|
|
23
|
+
reportId: z.ZodOptional<z.ZodString>;
|
|
24
|
+
revision: z.ZodNumber;
|
|
25
|
+
error: z.ZodNullable<z.ZodString>;
|
|
26
|
+
attemptCount: z.ZodNumber;
|
|
27
|
+
nextAttemptAt: z.ZodNumber;
|
|
28
|
+
deadLettered: z.ZodBoolean;
|
|
29
|
+
createdAt: z.ZodNumber;
|
|
30
|
+
updatedAt: z.ZodNumber;
|
|
31
|
+
completedAt: z.ZodNullable<z.ZodNumber>;
|
|
32
|
+
deadLetteredAt: z.ZodNullable<z.ZodNumber>;
|
|
33
|
+
expireAt: z.ZodOptional<z.ZodCustom<import("./firestore-primitives.js").FirestoreTimestampLike, import("./firestore-primitives.js").FirestoreTimestampLike>>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
export type StatsJob = z.infer<typeof StatsJobSchema>;
|
|
36
|
+
//# sourceMappingURL=stats-job.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stats-job.d.ts","sourceRoot":"","sources":["../../src/doc-schemas/stats-job.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoBzB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { STATS_JOB_KIND_KEYS, STATS_JOB_STAGE_KEYS, STATS_JOB_STATE_KEYS } from '../types/stats.js';
|
|
3
|
+
import { countSchema, epochMsSchema, statsValidationReportIdSchema, userIdSchema, } from './atoms.js';
|
|
4
|
+
import { FirestoreTimestampSchema } from './firestore-primitives.js';
|
|
5
|
+
export const StatsJobSchema = z.object({
|
|
6
|
+
jobId: z.string().min(1),
|
|
7
|
+
kind: z.enum(STATS_JOB_KIND_KEYS),
|
|
8
|
+
userId: userIdSchema,
|
|
9
|
+
state: z.enum(STATS_JOB_STATE_KEYS),
|
|
10
|
+
stage: z.enum(STATS_JOB_STAGE_KEYS),
|
|
11
|
+
cursor: z.string().min(1).nullable(),
|
|
12
|
+
stageDone: countSchema,
|
|
13
|
+
changed: countSchema,
|
|
14
|
+
reportId: statsValidationReportIdSchema.optional(),
|
|
15
|
+
revision: countSchema,
|
|
16
|
+
error: z.string().nullable(),
|
|
17
|
+
attemptCount: countSchema,
|
|
18
|
+
nextAttemptAt: epochMsSchema,
|
|
19
|
+
deadLettered: z.boolean(),
|
|
20
|
+
createdAt: epochMsSchema,
|
|
21
|
+
updatedAt: epochMsSchema,
|
|
22
|
+
completedAt: epochMsSchema.nullable(),
|
|
23
|
+
deadLetteredAt: epochMsSchema.nullable(),
|
|
24
|
+
expireAt: FirestoreTimestampSchema.optional(),
|
|
25
|
+
});
|
|
26
|
+
//# sourceMappingURL=stats-job.js.map
|