@ttt-productions/q-core 0.1.24 → 0.1.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/dist/constants/admin-views.d.ts +3 -0
  2. package/dist/constants/admin-views.d.ts.map +1 -0
  3. package/dist/constants/admin-views.js +11 -0
  4. package/dist/constants/admin-views.js.map +1 -0
  5. package/dist/constants/index.d.ts +1 -0
  6. package/dist/constants/index.d.ts.map +1 -1
  7. package/dist/constants/index.js +1 -0
  8. package/dist/constants/index.js.map +1 -1
  9. package/dist/constants/scheduled-jobs.d.ts +7 -0
  10. package/dist/constants/scheduled-jobs.d.ts.map +1 -1
  11. package/dist/constants/scheduled-jobs.js +7 -0
  12. package/dist/constants/scheduled-jobs.js.map +1 -1
  13. package/dist/doc-schemas/audit-event.d.ts +4 -0
  14. package/dist/doc-schemas/audit-event.d.ts.map +1 -1
  15. package/dist/doc-schemas/pending-media.d.ts +0 -25
  16. package/dist/doc-schemas/pending-media.d.ts.map +1 -1
  17. package/dist/doc-schemas/registry.d.ts +6 -10
  18. package/dist/doc-schemas/registry.d.ts.map +1 -1
  19. package/dist/doc-schemas/sweep-state.d.ts +9 -0
  20. package/dist/doc-schemas/sweep-state.d.ts.map +1 -1
  21. package/dist/doc-schemas/sweep-state.js +11 -1
  22. package/dist/doc-schemas/sweep-state.js.map +1 -1
  23. package/dist/domain-events/domain-events.d.ts +0 -11
  24. package/dist/domain-events/domain-events.d.ts.map +1 -1
  25. package/dist/domain-events/domain-events.js +0 -7
  26. package/dist/domain-events/domain-events.js.map +1 -1
  27. package/dist/notifications/admin-notification-config.d.ts.map +1 -1
  28. package/dist/notifications/admin-notification-config.js +3 -3
  29. package/dist/notifications/admin-notification-config.js.map +1 -1
  30. package/dist/paths/app-routes.d.ts +40 -0
  31. package/dist/paths/app-routes.d.ts.map +1 -0
  32. package/dist/paths/app-routes.js +67 -0
  33. package/dist/paths/app-routes.js.map +1 -0
  34. package/dist/paths/index.d.ts +1 -0
  35. package/dist/paths/index.d.ts.map +1 -1
  36. package/dist/paths/index.js +1 -0
  37. package/dist/paths/index.js.map +1 -1
  38. package/dist/schemas/pictures.d.ts +0 -15
  39. package/dist/schemas/pictures.d.ts.map +1 -1
  40. package/dist/schemas/users.d.ts +1 -0
  41. package/dist/schemas/users.d.ts.map +1 -1
  42. package/dist/schemas/users.js +3 -0
  43. package/dist/schemas/users.js.map +1 -1
  44. package/dist/types/audit.d.ts +1 -1
  45. package/dist/types/audit.d.ts.map +1 -1
  46. package/dist/types/audit.js +4 -0
  47. package/dist/types/audit.js.map +1 -1
  48. package/dist/types/claims.d.ts +12 -3
  49. package/dist/types/claims.d.ts.map +1 -1
  50. package/dist/types/claims.js +15 -6
  51. package/dist/types/claims.js.map +1 -1
  52. package/dist/utils/index.d.ts +0 -1
  53. package/dist/utils/index.d.ts.map +1 -1
  54. package/dist/utils/index.js +0 -1
  55. package/dist/utils/index.js.map +1 -1
  56. package/package.json +2 -2
  57. package/dist/utils/app-routes.d.ts +0 -32
  58. package/dist/utils/app-routes.d.ts.map +0 -1
  59. package/dist/utils/app-routes.js +0 -59
  60. package/dist/utils/app-routes.js.map +0 -1
@@ -0,0 +1,3 @@
1
+ export declare const ADMIN_VIEWS: readonly ["dashboard", "leagues", "people", "stats", "setup", "migration"];
2
+ export type AdminView = (typeof ADMIN_VIEWS)[number];
3
+ //# sourceMappingURL=admin-views.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-views.d.ts","sourceRoot":"","sources":["../../src/constants/admin-views.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,4EAOd,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ // The admin area's views. The admin area is one page, and each view is chosen by its `?view=` slug;
2
+ // the dashboard is the bare page. Both roots link into a view, so the slugs are declared here once.
3
+ export const ADMIN_VIEWS = [
4
+ 'dashboard',
5
+ 'leagues',
6
+ 'people',
7
+ 'stats',
8
+ 'setup',
9
+ 'migration',
10
+ ];
11
+ //# sourceMappingURL=admin-views.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-views.js","sourceRoot":"","sources":["../../src/constants/admin-views.ts"],"names":[],"mappings":"AAAA,oGAAoG;AACpG,oGAAoG;AAEpG,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,WAAW;IACX,SAAS;IACT,QAAQ;IACR,OAAO;IACP,OAAO;IACP,WAAW;CACH,CAAC","sourcesContent":["// The admin area's views. The admin area is one page, and each view is chosen by its `?view=` slug;\n// the dashboard is the bare page. Both roots link into a view, so the slugs are declared here once.\n\nexport const ADMIN_VIEWS = [\n 'dashboard',\n 'leagues',\n 'people',\n 'stats',\n 'setup',\n 'migration',\n] as const;\n\nexport type AdminView = (typeof ADMIN_VIEWS)[number];\n"]}
@@ -5,4 +5,5 @@ export * from './media.js';
5
5
  export * from './telemetry.js';
6
6
  export * from './scheduled-jobs.js';
7
7
  export * from './deployment.js';
8
+ export * from './admin-views.js';
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC"}
@@ -5,4 +5,5 @@ export * from './media.js';
5
5
  export * from './telemetry.js';
6
6
  export * from './scheduled-jobs.js';
7
7
  export * from './deployment.js';
8
+ export * from './admin-views.js';
8
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC","sourcesContent":["export * from './business.js';\nexport * from './sports.js';\nexport * from './storage-keys.js';\nexport * from './media.js';\nexport * from './telemetry.js';\nexport * from './scheduled-jobs.js';\nexport * from './deployment.js';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC","sourcesContent":["export * from './business.js';\nexport * from './sports.js';\nexport * from './storage-keys.js';\nexport * from './media.js';\nexport * from './telemetry.js';\nexport * from './scheduled-jobs.js';\nexport * from './deployment.js';\nexport * from './admin-views.js';\n"]}
@@ -10,6 +10,13 @@ export type SweepStateName = (typeof SWEEP_STATE_NAMES)[number];
10
10
  * to stop and report, not to keep growing the list. It also keeps the document a few kilobytes.
11
11
  */
12
12
  export declare const SWEEP_STATE_MAX_DEFERRED = 50;
13
+ /** The most Firebase Auth `listUsers()` returns in one call. */
14
+ export declare const AUTH_LIST_USERS_PAGE_SIZE = 1000;
15
+ /**
16
+ * Sign-in accounts one run of a weekly full Auth scan examines before it saves its lap position and
17
+ * stops; the next run resumes the same lap.
18
+ */
19
+ export declare const AUTH_FULL_SCAN_EXAMINED_PER_RUN: number;
13
20
  /** Profiles one `reconcilePublicUsers` pass reads after its cursor. */
14
21
  export declare const RECONCILE_PUBLIC_USERS_PAGE_SIZE = 200;
15
22
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"scheduled-jobs.d.ts","sourceRoot":"","sources":["../../src/constants/scheduled-jobs.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,iBAAiB,wJAOpB,CAAC;AACX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEhE;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAE3C,uEAAuE;AACvE,eAAO,MAAM,gCAAgC,MAAM,CAAC;AAEpD;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,QAAiB,CAAC;AAE3D,iFAAiF;AACjF,eAAO,MAAM,oCAAoC,iBAAiB,CAAC;AAEnE;;;GAGG;AACH,eAAO,MAAM,yBAAyB,QAAsB,CAAC"}
1
+ {"version":3,"file":"scheduled-jobs.d.ts","sourceRoot":"","sources":["../../src/constants/scheduled-jobs.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,iBAAiB,wJAOpB,CAAC;AACX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEhE;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAE3C,gEAAgE;AAChE,eAAO,MAAM,yBAAyB,OAAO,CAAC;AAE9C;;;GAGG;AACH,eAAO,MAAM,+BAA+B,QAAgC,CAAC;AAE7E,uEAAuE;AACvE,eAAO,MAAM,gCAAgC,MAAM,CAAC;AAEpD;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,QAAiB,CAAC;AAE3D,iFAAiF;AACjF,eAAO,MAAM,oCAAoC,iBAAiB,CAAC;AAEnE;;;GAGG;AACH,eAAO,MAAM,yBAAyB,QAAsB,CAAC"}
@@ -17,6 +17,13 @@ export const SWEEP_STATE_NAMES = [
17
17
  * to stop and report, not to keep growing the list. It also keeps the document a few kilobytes.
18
18
  */
19
19
  export const SWEEP_STATE_MAX_DEFERRED = 50;
20
+ /** The most Firebase Auth `listUsers()` returns in one call. */
21
+ export const AUTH_LIST_USERS_PAGE_SIZE = 1000;
22
+ /**
23
+ * Sign-in accounts one run of a weekly full Auth scan examines before it saves its lap position and
24
+ * stops; the next run resumes the same lap.
25
+ */
26
+ export const AUTH_FULL_SCAN_EXAMINED_PER_RUN = 2 * AUTH_LIST_USERS_PAGE_SIZE;
20
27
  /** Profiles one `reconcilePublicUsers` pass reads after its cursor. */
21
28
  export const RECONCILE_PUBLIC_USERS_PAGE_SIZE = 200;
22
29
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"scheduled-jobs.js","sourceRoot":"","sources":["../../src/constants/scheduled-jobs.ts"],"names":[],"mappings":"AAAA,mDAAmD;AAEnD;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,sBAAsB;IACtB,2BAA2B;IAC3B,wBAAwB;IACxB,mBAAmB;IACnB,mBAAmB;IACnB,kBAAkB;CACV,CAAC;AAGX;;;;GAIG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,EAAE,CAAC;AAE3C,uEAAuE;AACvE,MAAM,CAAC,MAAM,gCAAgC,GAAG,GAAG,CAAC;AAEpD;;;;GAIG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAE3D,iFAAiF;AACjF,MAAM,CAAC,MAAM,oCAAoC,GAAG,cAAc,CAAC;AAEnE;;;GAGG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC","sourcesContent":["// Scheduled passes that keep a persisted position.\n\n/**\n * The `sweepState/{sweepName}` document ids: one per scheduled pass that keeps a rolling cursor\n * (`SweepStateSchema`), so each pass owns exactly one document and its cursor is never shared.\n */\nexport const SWEEP_STATE_NAMES = [\n 'reconcilePublicUsers',\n 'orphanRegistrationCleanup',\n 'reconcileAccountStatus',\n 'pictureRetirement',\n 'stalePendingMedia',\n 'abandonedStaging',\n] as const;\nexport type SweepStateName = (typeof SWEEP_STATE_NAMES)[number];\n\n/**\n * Most rows one pass holds in its `deferred` set — the rows its cursor moved past without clearing.\n * A row a pass cannot clear is rare, so a full set means something systemic is failing: the signal\n * to stop and report, not to keep growing the list. It also keeps the document a few kilobytes.\n */\nexport const SWEEP_STATE_MAX_DEFERRED = 50;\n\n/** Profiles one `reconcilePublicUsers` pass reads after its cursor. */\nexport const RECONCILE_PUBLIC_USERS_PAGE_SIZE = 200;\n\n/**\n * How long a login may hold no profile after its registration started before the orphan-login\n * cleanup deletes it. A taken name is refused before the login is created, so a registration that\n * does not finish within this window was abandoned.\n */\nexport const ORPHAN_REGISTRATION_GRACE_MS = 30 * 60 * 1000;\n\n/** How often the orphan-login cleanup runs (cron, in the leagues' time zone). */\nexport const ORPHAN_REGISTRATION_CLEANUP_SCHEDULE = '*/15 * * * *';\n\n/**\n * How long a registration-start record lives before its native-TTL policy removes it. Far longer than\n * the grace window, so every abandoned registration is still on the cleanup's work list when it is due.\n */\nexport const REGISTRATION_START_TTL_MS = 24 * 60 * 60 * 1000;\n"]}
1
+ {"version":3,"file":"scheduled-jobs.js","sourceRoot":"","sources":["../../src/constants/scheduled-jobs.ts"],"names":[],"mappings":"AAAA,mDAAmD;AAEnD;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,sBAAsB;IACtB,2BAA2B;IAC3B,wBAAwB;IACxB,mBAAmB;IACnB,mBAAmB;IACnB,kBAAkB;CACV,CAAC;AAGX;;;;GAIG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,EAAE,CAAC;AAE3C,gEAAgE;AAChE,MAAM,CAAC,MAAM,yBAAyB,GAAG,IAAI,CAAC;AAE9C;;;GAGG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,GAAG,yBAAyB,CAAC;AAE7E,uEAAuE;AACvE,MAAM,CAAC,MAAM,gCAAgC,GAAG,GAAG,CAAC;AAEpD;;;;GAIG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAE3D,iFAAiF;AACjF,MAAM,CAAC,MAAM,oCAAoC,GAAG,cAAc,CAAC;AAEnE;;;GAGG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC","sourcesContent":["// Scheduled passes that keep a persisted position.\n\n/**\n * The `sweepState/{sweepName}` document ids: one per scheduled pass that keeps a rolling cursor\n * (`SweepStateSchema`), so each pass owns exactly one document and its cursor is never shared.\n */\nexport const SWEEP_STATE_NAMES = [\n 'reconcilePublicUsers',\n 'orphanRegistrationCleanup',\n 'reconcileAccountStatus',\n 'pictureRetirement',\n 'stalePendingMedia',\n 'abandonedStaging',\n] as const;\nexport type SweepStateName = (typeof SWEEP_STATE_NAMES)[number];\n\n/**\n * Most rows one pass holds in its `deferred` set — the rows its cursor moved past without clearing.\n * A row a pass cannot clear is rare, so a full set means something systemic is failing: the signal\n * to stop and report, not to keep growing the list. It also keeps the document a few kilobytes.\n */\nexport const SWEEP_STATE_MAX_DEFERRED = 50;\n\n/** The most Firebase Auth `listUsers()` returns in one call. */\nexport const AUTH_LIST_USERS_PAGE_SIZE = 1000;\n\n/**\n * Sign-in accounts one run of a weekly full Auth scan examines before it saves its lap position and\n * stops; the next run resumes the same lap.\n */\nexport const AUTH_FULL_SCAN_EXAMINED_PER_RUN = 2 * AUTH_LIST_USERS_PAGE_SIZE;\n\n/** Profiles one `reconcilePublicUsers` pass reads after its cursor. */\nexport const RECONCILE_PUBLIC_USERS_PAGE_SIZE = 200;\n\n/**\n * How long a login may hold no profile after its registration started before the orphan-login\n * cleanup deletes it. A taken name is refused before the login is created, so a registration that\n * does not finish within this window was abandoned.\n */\nexport const ORPHAN_REGISTRATION_GRACE_MS = 30 * 60 * 1000;\n\n/** How often the orphan-login cleanup runs (cron, in the leagues' time zone). */\nexport const ORPHAN_REGISTRATION_CLEANUP_SCHEDULE = '*/15 * * * *';\n\n/**\n * How long a registration-start record lives before its native-TTL policy removes it. Far longer than\n * the grace window, so every abandoned registration is still on the cleanup's work list when it is due.\n */\nexport const REGISTRATION_START_TTL_MS = 24 * 60 * 60 * 1000;\n"]}
@@ -28,6 +28,8 @@ export declare const auditEventTypeSchema: z.ZodEnum<{
28
28
  "user.accountRegistered": "user.accountRegistered";
29
29
  "user.displayNameChanged": "user.displayNameChanged";
30
30
  "user.abandonedRegistrationDeleted": "user.abandonedRegistrationDeleted";
31
+ "user.signedIn": "user.signedIn";
32
+ "user.passwordResetCompleted": "user.passwordResetCompleted";
31
33
  "user.accountBanned": "user.accountBanned";
32
34
  "user.accountUnbanned": "user.accountUnbanned";
33
35
  "admin.systemRoleGranted": "admin.systemRoleGranted";
@@ -142,6 +144,8 @@ export declare const AuditEventSchema: z.ZodObject<{
142
144
  "user.accountRegistered": "user.accountRegistered";
143
145
  "user.displayNameChanged": "user.displayNameChanged";
144
146
  "user.abandonedRegistrationDeleted": "user.abandonedRegistrationDeleted";
147
+ "user.signedIn": "user.signedIn";
148
+ "user.passwordResetCompleted": "user.passwordResetCompleted";
145
149
  "user.accountBanned": "user.accountBanned";
146
150
  "user.accountUnbanned": "user.accountUnbanned";
147
151
  "admin.systemRoleGranted": "admin.systemRoleGranted";
@@ -1 +1 @@
1
- {"version":3,"file":"audit-event.d.ts","sourceRoot":"","sources":["../../src/doc-schemas/audit-event.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAgC,CAAC;AAElE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;iCAgB3B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;iBAG5B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAe3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
1
+ {"version":3,"file":"audit-event.d.ts","sourceRoot":"","sources":["../../src/doc-schemas/audit-event.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAgC,CAAC;AAElE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;iCAgB3B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;iBAG5B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAe3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
@@ -276,11 +276,6 @@ export declare const PendingMediaResultSchema: z.ZodObject<{
276
276
  contractId: z.ZodString;
277
277
  refereeUserId: z.ZodString;
278
278
  }, z.core.$strict>;
279
- }, z.core.$strict>, z.ZodObject<{
280
- type: z.ZodLiteral<"adminList.changed">;
281
- ids: z.ZodObject<{
282
- userId: z.ZodString;
283
- }, z.core.$strict>;
284
279
  }, z.core.$strict>, z.ZodObject<{
285
280
  type: z.ZodLiteral<"user.registered">;
286
281
  ids: z.ZodObject<{
@@ -715,11 +710,6 @@ export declare const PendingMediaCompletedSchema: z.ZodObject<{
715
710
  contractId: z.ZodString;
716
711
  refereeUserId: z.ZodString;
717
712
  }, z.core.$strict>;
718
- }, z.core.$strict>, z.ZodObject<{
719
- type: z.ZodLiteral<"adminList.changed">;
720
- ids: z.ZodObject<{
721
- userId: z.ZodString;
722
- }, z.core.$strict>;
723
713
  }, z.core.$strict>, z.ZodObject<{
724
714
  type: z.ZodLiteral<"user.registered">;
725
715
  ids: z.ZodObject<{
@@ -1171,11 +1161,6 @@ export declare const PendingMediaRejectedSchema: z.ZodObject<{
1171
1161
  contractId: z.ZodString;
1172
1162
  refereeUserId: z.ZodString;
1173
1163
  }, z.core.$strict>;
1174
- }, z.core.$strict>, z.ZodObject<{
1175
- type: z.ZodLiteral<"adminList.changed">;
1176
- ids: z.ZodObject<{
1177
- userId: z.ZodString;
1178
- }, z.core.$strict>;
1179
1164
  }, z.core.$strict>, z.ZodObject<{
1180
1165
  type: z.ZodLiteral<"user.registered">;
1181
1166
  ids: z.ZodObject<{
@@ -1656,11 +1641,6 @@ export declare const PendingMediaSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1656
1641
  contractId: z.ZodString;
1657
1642
  refereeUserId: z.ZodString;
1658
1643
  }, z.core.$strict>;
1659
- }, z.core.$strict>, z.ZodObject<{
1660
- type: z.ZodLiteral<"adminList.changed">;
1661
- ids: z.ZodObject<{
1662
- userId: z.ZodString;
1663
- }, z.core.$strict>;
1664
1644
  }, z.core.$strict>, z.ZodObject<{
1665
1645
  type: z.ZodLiteral<"user.registered">;
1666
1646
  ids: z.ZodObject<{
@@ -2110,11 +2090,6 @@ export declare const PendingMediaSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2110
2090
  contractId: z.ZodString;
2111
2091
  refereeUserId: z.ZodString;
2112
2092
  }, z.core.$strict>;
2113
- }, z.core.$strict>, z.ZodObject<{
2114
- type: z.ZodLiteral<"adminList.changed">;
2115
- ids: z.ZodObject<{
2116
- userId: z.ZodString;
2117
- }, z.core.$strict>;
2118
2093
  }, z.core.$strict>, z.ZodObject<{
2119
2094
  type: z.ZodLiteral<"user.registered">;
2120
2095
  ids: z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"pending-media.d.ts","sourceRoot":"","sources":["../../src/doc-schemas/pending-media.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,gBAAgB;;;;;;;;EAA2B,CAAC;AACzD,eAAO,MAAM,mBAAmB;;;;;;EAA8B,CAAC;AAI/D,eAAO,MAAM,sBAAsB;;;kBAExB,CAAC;AACZ,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAGtE,eAAO,MAAM,qBAAqB;;;;;;;;;kBAEvB,CAAC;AACZ,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;kBAyBjC,CAAC;AACL,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAO1E,eAAO,MAAM,+BAA+B;;;;;;;EAA0C,CAAC;AACvF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
@@ -1900,11 +1900,6 @@ export declare const COLLECTION_SCHEMAS: {
1900
1900
  contractId: z.ZodString;
1901
1901
  refereeUserId: z.ZodString;
1902
1902
  }, z.core.$strict>;
1903
- }, z.core.$strict>, z.ZodObject<{
1904
- type: z.ZodLiteral<"adminList.changed">;
1905
- ids: z.ZodObject<{
1906
- userId: z.ZodString;
1907
- }, z.core.$strict>;
1908
1903
  }, z.core.$strict>, z.ZodObject<{
1909
1904
  type: z.ZodLiteral<"user.registered">;
1910
1905
  ids: z.ZodObject<{
@@ -2354,11 +2349,6 @@ export declare const COLLECTION_SCHEMAS: {
2354
2349
  contractId: z.ZodString;
2355
2350
  refereeUserId: z.ZodString;
2356
2351
  }, z.core.$strict>;
2357
- }, z.core.$strict>, z.ZodObject<{
2358
- type: z.ZodLiteral<"adminList.changed">;
2359
- ids: z.ZodObject<{
2360
- userId: z.ZodString;
2361
- }, z.core.$strict>;
2362
2352
  }, z.core.$strict>, z.ZodObject<{
2363
2353
  type: z.ZodLiteral<"user.registered">;
2364
2354
  ids: z.ZodObject<{
@@ -2566,6 +2556,8 @@ export declare const COLLECTION_SCHEMAS: {
2566
2556
  "user.accountRegistered": "user.accountRegistered";
2567
2557
  "user.displayNameChanged": "user.displayNameChanged";
2568
2558
  "user.abandonedRegistrationDeleted": "user.abandonedRegistrationDeleted";
2559
+ "user.signedIn": "user.signedIn";
2560
+ "user.passwordResetCompleted": "user.passwordResetCompleted";
2569
2561
  "user.accountBanned": "user.accountBanned";
2570
2562
  "user.accountUnbanned": "user.accountUnbanned";
2571
2563
  "admin.systemRoleGranted": "admin.systemRoleGranted";
@@ -3085,6 +3077,10 @@ export declare const COLLECTION_SCHEMAS: {
3085
3077
  }, z.core.$strict>;
3086
3078
  readonly 'sweepState/{sweepName}': z.ZodObject<{
3087
3079
  fullScanLastRunAt: z.ZodOptional<z.ZodNumber>;
3080
+ fullScanLap: z.ZodOptional<z.ZodObject<{
3081
+ pageToken: z.ZodString;
3082
+ lapStartedAt: z.ZodNumber;
3083
+ }, z.core.$strict>>;
3088
3084
  rollingCursor: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3089
3085
  state: z.ZodLiteral<"inLap">;
3090
3086
  afterKey: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/doc-schemas/registry.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiD7B,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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RowSchema: z.ZodObject<{
17
17
  attemptCount: z.ZodNumber;
18
18
  }, z.core.$strict>;
19
19
  export type SweepDeferredRow = z.infer<typeof SweepDeferredRowSchema>;
20
+ export declare const SweepAuthScanLapSchema: z.ZodObject<{
21
+ pageToken: z.ZodString;
22
+ lapStartedAt: z.ZodNumber;
23
+ }, z.core.$strict>;
24
+ export type SweepAuthScanLap = z.infer<typeof SweepAuthScanLapSchema>;
20
25
  export declare const SweepStateSchema: z.ZodObject<{
21
26
  fullScanLastRunAt: z.ZodOptional<z.ZodNumber>;
27
+ fullScanLap: z.ZodOptional<z.ZodObject<{
28
+ pageToken: z.ZodString;
29
+ lapStartedAt: z.ZodNumber;
30
+ }, z.core.$strict>>;
22
31
  rollingCursor: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
23
32
  state: z.ZodLiteral<"inLap">;
24
33
  afterKey: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"sweep-state.d.ts","sourceRoot":"","sources":["../../src/doc-schemas/sweep-state.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAaxB,eAAO,MAAM,wBAAwB;;;;;;;;;6BA0BjC,CAAC;AACL,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAI1E,eAAO,MAAM,sBAAsB;;;;;kBASxB,CAAC;AACZ,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;iBAoBzB,CAAC;AACL,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
1
+ {"version":3,"file":"sweep-state.d.ts","sourceRoot":"","sources":["../../src/doc-schemas/sweep-state.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAaxB,eAAO,MAAM,wBAAwB;;;;;;;;;6BA0BjC,CAAC;AACL,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAI1E,eAAO,MAAM,sBAAsB;;;;;kBASxB,CAAC;AACZ,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAItE,eAAO,MAAM,sBAAsB;;;kBAKxB,CAAC;AACZ,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;iBAsBzB,CAAC;AACL,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
@@ -52,10 +52,20 @@ export const SweepDeferredRowSchema = z
52
52
  attemptCount: z.number().int().positive(),
53
53
  })
54
54
  .strict();
55
+ // Where a weekly full sign-in account scan stands in its lap. Firebase Auth lists accounts only by
56
+ // page token, with no key to resume after; a token it no longer accepts restarts the lap.
57
+ export const SweepAuthScanLapSchema = z
58
+ .object({
59
+ pageToken: z.string().min(1),
60
+ lapStartedAt: epochMsSchema,
61
+ })
62
+ .strict();
55
63
  export const SweepStateSchema = z
56
64
  .object({
57
- /** Wall-clock ms the last full sign-in account scan ran (absent = never). */
65
+ /** Wall-clock ms the last full sign-in account scan reached the end of its lap (absent = never). */
58
66
  fullScanLastRunAt: epochMsSchema.optional(),
67
+ /** The full scan's lap in progress; absent between laps. */
68
+ fullScanLap: SweepAuthScanLapSchema.optional(),
59
69
  rollingCursor: SweepRollingCursorSchema.optional(),
60
70
  deferred: z.array(SweepDeferredRowSchema).max(SWEEP_STATE_MAX_DEFERRED).optional(),
61
71
  updatedAt: epochMsSchema,
@@ -1 +1 @@
1
- {"version":3,"file":"sweep-state.js","sourceRoot":"","sources":["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,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["// `sweepState/{sweepName}` — where a scheduled pass over a bounded, ordered source keeps its\n// position (RULE-STD-BACKEND-112), one document per `SWEEP_STATE_NAMES` name. Backend-only: no client reads\n// or writes it.\n\nimport { z } from 'zod';\nimport { SWEEP_STATE_MAX_DEFERRED } from '../constants/scheduled-jobs.js';\nimport { epochMsSchema } from './atoms.js';\n\n// Where a pass stands in its source.\n// absent — no lap has run: the next pass starts one at the beginning.\n// inLap — the next page starts strictly after the last row the lap moved past. `afterKey` is\n// that row's document id; `afterValue` is its value of the numeric field the query\n// orders by first, when it orders by one. The query orders by the field and then by the\n// key and resumes after both, never `field > value`, which skips every row tied with it.\n// done — the last lap reached the end of its source. The pass that exhausted it records that\n// here rather than starting page one again in the same run; the next pass starts a new\n// lap, so rows added behind the cursor are reached on the next lap.\nexport const SweepRollingCursorSchema = z\n .discriminatedUnion('state', [\n z\n .object({\n state: z.literal('inLap'),\n afterKey: z.string().min(1),\n afterValue: z.number().optional(),\n lapStartedAt: epochMsSchema,\n })\n .strict(),\n z\n .object({\n state: z.literal('done'),\n lapStartedAt: epochMsSchema,\n lapCompletedAt: epochMsSchema,\n })\n .strict(),\n ])\n .superRefine((value, ctx) => {\n if (value.state === 'done' && value.lapCompletedAt < value.lapStartedAt) {\n ctx.addIssue({\n code: 'custom',\n path: ['lapCompletedAt'],\n message: 'a lap completes no earlier than it started',\n });\n }\n });\nexport type SweepRollingCursor = z.infer<typeof SweepRollingCursorSchema>;\n\n// A row the cursor moved past without clearing it (a failed read or write). The pass retries it from\n// here once it is due instead of stopping at it, so one failing row never pins the window (RULE-STD-BACKEND-309).\nexport const SweepDeferredRowSchema = z\n .object({\n key: z.string().min(1),\n value: z.number().optional(),\n /** Epoch ms from which a pass may retry it. */\n nextAttemptAt: epochMsSchema,\n /** Passes that examined it without clearing it; the pass that deferred it is the first. */\n attemptCount: z.number().int().positive(),\n })\n .strict();\nexport type SweepDeferredRow = z.infer<typeof SweepDeferredRowSchema>;\n\nexport const SweepStateSchema = z\n .object({\n /** Wall-clock ms the last full sign-in account scan ran (absent = never). */\n fullScanLastRunAt: epochMsSchema.optional(),\n rollingCursor: SweepRollingCursorSchema.optional(),\n deferred: z.array(SweepDeferredRowSchema).max(SWEEP_STATE_MAX_DEFERRED).optional(),\n updatedAt: epochMsSchema,\n })\n .superRefine((value, ctx) => {\n const seen = new Set<string>();\n (value.deferred ?? []).forEach((row, index) => {\n if (seen.has(row.key)) {\n ctx.addIssue({\n code: 'custom',\n path: ['deferred', index, 'key'],\n message: 'a row is deferred at most once',\n });\n }\n seen.add(row.key);\n });\n });\nexport type SweepState = z.infer<typeof SweepStateSchema>;\n"]}
1
+ {"version":3,"file":"sweep-state.js","sourceRoot":"","sources":["../../src/doc-schemas/sweep-state.ts"],"names":[],"mappings":"AAAA,6FAA6F;AAC7F,4GAA4G;AAC5G,gBAAgB;AAEhB,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,qCAAqC;AACrC,wEAAwE;AACxE,gGAAgG;AAChG,8FAA8F;AAC9F,mGAAmG;AACnG,oGAAoG;AACpG,iGAAiG;AACjG,kGAAkG;AAClG,+EAA+E;AAC/E,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC;KACtC,kBAAkB,CAAC,OAAO,EAAE;IAC3B,CAAC;SACE,MAAM,CAAC;QACN,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;QACzB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;QAC3B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACjC,YAAY,EAAE,aAAa;KAC5B,CAAC;SACD,MAAM,EAAE;IACX,CAAC;SACE,MAAM,CAAC;QACN,KA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D,WAAW,EAAE,sBAAsB,CAAC,QAAQ,EAAE;IAC9C,aAAa,EAAE,wBAAwB,CAAC,QAAQ,EAAE;IAClD,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC,QAAQ,EAAE;IAClF,SAAS,EAAE,aAAa;CACzB,CAAC;KACD,WAAW,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IAC1B,MAAM,IAAI,GAAG,IAAI,GAAG,EAAU,CAAC;IAC/B,CAAC,KAAK,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE;QAC5C,IAAI,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;YACtB,GAAG,CAAC,QAAQ,CAAC;gBACX,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC;gBAChC,OAAO,EAAE,gCAAgC;aAC1C,CAAC,CAAC;QACL,CAAC;QACD,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACpB,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["// `sweepState/{sweepName}` — where a scheduled pass over a bounded, ordered source keeps its\n// position (RULE-STD-BACKEND-112), one document per `SWEEP_STATE_NAMES` name. Backend-only: no client reads\n// or writes it.\n\nimport { z } from 'zod';\nimport { SWEEP_STATE_MAX_DEFERRED } from '../constants/scheduled-jobs.js';\nimport { epochMsSchema } from './atoms.js';\n\n// Where a pass stands in its source.\n// absent — no lap has run: the next pass starts one at the beginning.\n// inLap — the next page starts strictly after the last row the lap moved past. `afterKey` is\n// that row's document id; `afterValue` is its value of the numeric field the query\n// orders by first, when it orders by one. The query orders by the field and then by the\n// key and resumes after both, never `field > value`, which skips every row tied with it.\n// done — the last lap reached the end of its source. The pass that exhausted it records that\n// here rather than starting page one again in the same run; the next pass starts a new\n// lap, so rows added behind the cursor are reached on the next lap.\nexport const SweepRollingCursorSchema = z\n .discriminatedUnion('state', [\n z\n .object({\n state: z.literal('inLap'),\n afterKey: z.string().min(1),\n afterValue: z.number().optional(),\n lapStartedAt: epochMsSchema,\n })\n .strict(),\n z\n .object({\n state: z.literal('done'),\n lapStartedAt: epochMsSchema,\n lapCompletedAt: epochMsSchema,\n })\n .strict(),\n ])\n .superRefine((value, ctx) => {\n if (value.state === 'done' && value.lapCompletedAt < value.lapStartedAt) {\n ctx.addIssue({\n code: 'custom',\n path: ['lapCompletedAt'],\n message: 'a lap completes no earlier than it started',\n });\n }\n });\nexport type SweepRollingCursor = z.infer<typeof SweepRollingCursorSchema>;\n\n// A row the cursor moved past without clearing it (a failed read or write). The pass retries it from\n// here once it is due instead of stopping at it, so one failing row never pins the window (RULE-STD-BACKEND-309).\nexport const SweepDeferredRowSchema = z\n .object({\n key: z.string().min(1),\n value: z.number().optional(),\n /** Epoch ms from which a pass may retry it. */\n nextAttemptAt: epochMsSchema,\n /** Passes that examined it without clearing it; the pass that deferred it is the first. */\n attemptCount: z.number().int().positive(),\n })\n .strict();\nexport type SweepDeferredRow = z.infer<typeof SweepDeferredRowSchema>;\n\n// Where a weekly full sign-in account scan stands in its lap. Firebase Auth lists accounts only by\n// page token, with no key to resume after; a token it no longer accepts restarts the lap.\nexport const SweepAuthScanLapSchema = z\n .object({\n pageToken: z.string().min(1),\n lapStartedAt: epochMsSchema,\n })\n .strict();\nexport type SweepAuthScanLap = z.infer<typeof SweepAuthScanLapSchema>;\n\nexport const SweepStateSchema = z\n .object({\n /** Wall-clock ms the last full sign-in account scan reached the end of its lap (absent = never). */\n fullScanLastRunAt: epochMsSchema.optional(),\n /** The full scan's lap in progress; absent between laps. */\n fullScanLap: SweepAuthScanLapSchema.optional(),\n rollingCursor: SweepRollingCursorSchema.optional(),\n deferred: z.array(SweepDeferredRowSchema).max(SWEEP_STATE_MAX_DEFERRED).optional(),\n updatedAt: epochMsSchema,\n })\n .superRefine((value, ctx) => {\n const seen = new Set<string>();\n (value.deferred ?? []).forEach((row, index) => {\n if (seen.has(row.key)) {\n ctx.addIssue({\n code: 'custom',\n path: ['deferred', index, 'key'],\n message: 'a row is deferred at most once',\n });\n }\n seen.add(row.key);\n });\n });\nexport type SweepState = z.infer<typeof SweepStateSchema>;\n"]}
@@ -252,12 +252,6 @@ export declare const HardwareLoanContractChangedEventSchema: z.ZodObject<{
252
252
  refereeUserId: z.ZodString;
253
253
  }, z.core.$strict>;
254
254
  }, z.core.$strict>;
255
- export declare const AdminListChangedEventSchema: z.ZodObject<{
256
- type: z.ZodLiteral<"adminList.changed">;
257
- ids: z.ZodObject<{
258
- userId: z.ZodString;
259
- }, z.core.$strict>;
260
- }, z.core.$strict>;
261
255
  export declare const UserRegisteredEventSchema: z.ZodObject<{
262
256
  type: z.ZodLiteral<"user.registered">;
263
257
  ids: z.ZodObject<{
@@ -589,11 +583,6 @@ export declare const DomainEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
589
583
  contractId: z.ZodString;
590
584
  refereeUserId: z.ZodString;
591
585
  }, z.core.$strict>;
592
- }, z.core.$strict>, z.ZodObject<{
593
- type: z.ZodLiteral<"adminList.changed">;
594
- ids: z.ZodObject<{
595
- userId: z.ZodString;
596
- }, z.core.$strict>;
597
586
  }, z.core.$strict>, z.ZodObject<{
598
587
  type: z.ZodLiteral<"user.registered">;
599
588
  ids: z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"domain-events.d.ts","sourceRoot":"","sources":["../../src/domain-events/domain-events.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgBxB,eAAO,MAAM,wBAAwB;;;;;kBAK1B,CAAC;AAEZ,eAAO,MAAM,wBAAwB;;;;;kBAK1B,CAAC;AAGZ,eAAO,MAAM,6BAA6B;;;;;kBAK/B,CAAC;AAEZ,eAAO,MAAM,4BA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,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,MAAM,MAAM,eAAe,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC"}
@@ -289,12 +289,6 @@ export const HardwareLoanContractChangedEventSchema = z
289
289
  .strict(),
290
290
  })
291
291
  .strict();
292
- export const AdminListChangedEventSchema = z
293
- .object({
294
- type: z.literal('adminList.changed'),
295
- ids: z.object({ userId: userIdSchema }).strict(),
296
- })
297
- .strict();
298
292
  // A new account finished registration: its profile and public identity now exist.
299
293
  export const UserRegisteredEventSchema = z
300
294
  .object({ type: z.literal('user.registered'), ids: z.object({ userId: userIdSchema }).strict() })
@@ -462,7 +456,6 @@ export const DomainEventSchema = z.discriminatedUnion('type', [
462
456
  AwardGrantsChangedEventSchema,
463
457
  FeaturedAwardsChangedEventSchema,
464
458
  HardwareLoanContractChangedEventSchema,
465
- AdminListChangedEventSchema,
466
459
  UserRegisteredEventSchema,
467
460
  DisplayNameChangedEventSchema,
468
461
  StatsBeaconChangedEventSchema,
@@ -1 +1 @@
1
- {"version":3,"file":"domain-events.js","sourceRoot":"","sources":["../../src/domain-events/domain-events.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,EAAE;AACF,mGAAmG;AACnG,iHAAiH;AACjH,6CAA6C;AAE7C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,aAAa,EACb,YAAY,EACZ,4BAA4B,EAC5B,cAAc,EACd,cAAc,EACd,6BAA6B,EAC7B,YAAY,EACZ,YAAY,GACb,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAA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AAG,CAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IAC5D,wBAAwB;IACxB,wBAAwB;IACxB,6BAA6B;IAC7B,4BAA4B;IAC5B,4BAA4B;IAC5B,8BAA8B;IAC9B,4BAA4B;IAC5B,mCAAmC;IACnC,mCAAmC;IACnC,kCAAkC;IAClC,6BAA6B;IAC7B,kCAAkC;IAClC,iCAAiC;IACjC,kCAAkC;IAClC,iCAAiC;IACjC,6BAA6B;IAC7B,4BAA4B;IAC5B,sCAAsC;IACtC,kCAAkC;IAClC,+BAA+B;IAC/B,mCAAmC;IACnC,gCAAgC;IAChC,2BAA2B;IAC3B,2BAA2B;IAC3B,4BAA4B;IAC5B,kCAAkC;IAClC,kCAAkC;IAClC,uCAAuC;IACvC,iCAAiC;IACjC,4BAA4B;IAC5B,iCAAiC;IACjC,iCAAiC;IACjC,iCAAiC;IACjC,6BAA6B;IAC7B,gCAAgC;IAChC,sCAAsC;IACtC,2BAA2B;IAC3B,yBAAyB;IACzB,6BAA6B;IAC7B,6BAA6B;IAC7B,gCAAgC;IAChC,gCAAgC;IAChC,gCAAgC;IAChC,8BAA8B;IAC9B,8BAA8B;IAC9B,8BAA8B;IAC9B,4BAA4B;IAC5B,4BAA4B;IAC5B,qCAAqC;IACrC,4CAA4C;IAC5C,mCAAmC;IACnC,6BAA6B;IAC7B,8BAA8B;IAC9B,6BAA6B;IAC7B,kCAAkC;CACnC,CAAC,CAAC","sourcesContent":["// The DomainEvent union — the vocabulary of \"what happened\" that both sides of the boundary share.\n//\n// A callable or trigger names what it changed with one of these; the client alone maps an event to\n// the query-key families it makes stale (the invalidation registry is app-local, RULE-STD-FRONTEND-102). The two\n// sides share event names, never cache keys.\n\nimport { z } from 'zod';\nimport {\n epochMsSchema,\n gameIdSchema,\n hardwareLoanContractIdSchema,\n leagueIdSchema,\n sportKeySchema,\n statsValidationReportIdSchema,\n teamIdSchema,\n userIdSchema,\n} from '../doc-schemas/atoms.js';\nimport { awardIdSchema } from '../doc-schemas/catalogs.js';\nimport { gameLocationIdSchema } from '../doc-schemas/game-location.js';\nimport { galleryOwnerKindSchema, pictureIdSchema } from '../doc-schemas/gallery.js';\nimport { waiverTemplateIdSchema } from '../doc-schemas/waiver-template.js';\n\nexport const LeagueCreatedEventSchema = z\n .object({\n type: z.literal('league.created'),\n ids: z.object({ leagueId: leagueIdSchema }).strict(),\n })\n .strict();\n\nexport const LeagueUpdatedEventSchema = z\n .object({\n type: z.literal('league.updated'),\n ids: z.object({ leagueId: leagueIdSchema }).strict(),\n })\n .strict();\n\n// The league changed mode, and with it the `teamType` of every one of its teams.\nexport const LeagueModeSwitchedEventSchema = z\n .object({\n type: z.literal('league.modeSwitched'),\n ids: z.object({ leagueId: leagueIdSchema }).strict(),\n })\n .strict();\n\nexport const LeagueTeamCreatedEventSchema = z\n .object({\n type: z.literal('leagueTeam.created'),\n ids: z.object({ leagueId: leagueIdSchema, teamId: teamIdSchema }).strict(),\n })\n .strict();\n\n// A member was added, removed, or changed role on a team — by any path, ghosts included.\nexport const TeamRosterChangedEventSchema = z\n .object({\n type: z.literal('teamRoster.changed'),\n ids: z\n .object({ leagueId: leagueIdSchema, teamId: teamIdSchema, userId: userIdSchema })\n .strict(),\n })\n .strict();\n\n// A waiver was signed for a person in a league — by them, or for a ghost by a witness.\nexport const SignedWaiverCreatedEventSchema = z\n .object({\n type: z.literal('signedWaiver.created'),\n ids: z.object({ leagueId: leagueIdSchema, userId: userIdSchema }).strict(),\n })\n .strict();\n\nexport const GhostPlayerLinkedEventSchema = z\n .object({\n type: z.literal('ghostPlayer.linked'),\n ids: z\n .object({\n leagueId: leagueIdSchema,\n teamId: teamIdSchema,\n ghostUserId: userIdSchema,\n realUserId: userIdSchema,\n })\n .strict(),\n })\n .strict();\n\nexport const TeamJoinRequestSubmittedEventSchema = z\n .object({\n type: z.literal('teamJoinRequest.submitted'),\n ids: z\n .object({ leagueId: leagueIdSchema, teamId: teamIdSchema, userId: userIdSchema })\n .strict(),\n })\n .strict();\n\n// The requester withdrew their join request.\nexport const TeamJoinRequestCancelledEventSchema = z\n .object({\n type: z.literal('teamJoinRequest.cancelled'),\n ids: z\n .object({ leagueId: leagueIdSchema, teamId: teamIdSchema, userId: userIdSchema })\n .strict(),\n })\n .strict();\n\n// The team accepted or rejected a join request. An acceptance also changed the roster.\nexport const TeamJoinRequestAnsweredEventSchema = z\n .object({\n type: z.literal('teamJoinRequest.answered'),\n ids: z\n .object({ leagueId: leagueIdSchema, teamId: teamIdSchema, userId: userIdSchema })\n .strict(),\n })\n .strict();\n\n// The team invited a person. `userId` is the invitee.\nexport const TeamInvitationSentEventSchema = z\n .object({\n type: z.literal('teamInvitation.sent'),\n ids: z\n .object({ leagueId: leagueIdSchema, teamId: teamIdSchema, userId: userIdSchema })\n .strict(),\n })\n .strict();\n\n// The team withdrew an invitation. `userId` is the invitee.\nexport const TeamInvitationCancelledEventSchema = z\n .object({\n type: z.literal('teamInvitation.cancelled'),\n ids: z\n .object({ leagueId: leagueIdSchema, teamId: teamIdSchema, userId: userIdSchema })\n .strict(),\n })\n .strict();\n\n// The invitee accepted or declined an invitation. An acceptance also changed the roster.\nexport const TeamInvitationAnsweredEventSchema = z\n .object({\n type: z.literal('teamInvitation.answered'),\n ids: z\n .object({ leagueId: leagueIdSchema, teamId: teamIdSchema, userId: userIdSchema })\n .strict(),\n })\n .strict();\n\n// A player signed up as a free agent in a league.\nexport const LeagueFreeAgentSignedUpEventSchema = z\n .object({\n type: z.literal('leagueFreeAgent.signedUp'),\n ids: z.object({ leagueId: leagueIdSchema, userId: userIdSchema }).strict(),\n })\n .strict();\n\n// A player's free-agent signup ended: they withdrew it, or an admin placed them on a team.\nexport const LeagueFreeAgentRemovedEventSchema = z\n .object({\n type: z.literal('leagueFreeAgent.removed'),\n ids: z.object({ leagueId: leagueIdSchema, userId: userIdSchema }).strict(),\n })\n .strict();\n\nexport const SportGameFinalizedEventSchema = z\n .object({\n type: z.literal('sportGame.finalized'),\n ids: z.object({ leagueId: leagueIdSchema, gameId: gameIdSchema }).strict(),\n })\n .strict();\n\nexport const SportGameReopenedEventSchema = z\n .object({\n type: z.literal('sportGame.reopened'),\n ids: z.object({ leagueId: leagueIdSchema, gameId: gameIdSchema }).strict(),\n })\n .strict();\n\n// A scoring write stored stat events on a live game: its rollup and score moved.\nexport const SportGameStatEventsRecordedEventSchema = z\n .object({\n type: z.literal('sportGame.statEventsRecorded'),\n ids: z.object({ leagueId: leagueIdSchema, gameId: gameIdSchema }).strict(),\n })\n .strict();\n\n// A roster entry of a live game was marked absent or present.\nexport const SportGameAbsenceChangedEventSchema = z\n .object({\n type: z.literal('sportGame.absenceChanged'),\n ids: z.object({ leagueId: leagueIdSchema, gameId: gameIdSchema }).strict(),\n })\n .strict();\n\n// A scorer's note on one person in a live game changed.\nexport const SportGameMemoUpdatedEventSchema = z\n .object({\n type: z.literal('sportGame.memoUpdated'),\n ids: z.object({ leagueId: leagueIdSchema, gameId: gameIdSchema }).strict(),\n })\n .strict();\n\n// The jump-ball possession arrow of a live basketball game moved.\nexport const SportGameJumpBallChangedEventSchema = z\n .object({\n type: z.literal('sportGame.jumpBallChanged'),\n ids: z.object({ leagueId: leagueIdSchema, gameId: gameIdSchema }).strict(),\n })\n .strict();\n\n// A league's schedule changed as a whole: a week was created, its shared fields edited, or it was\n// deleted, or a game was added to a week. Any of the league's games may have been added, changed, or\n// removed.\nexport const LeagueScheduleChangedEventSchema = z\n .object({\n type: z.literal('leagueSchedule.changed'),\n ids: z.object({ leagueId: leagueIdSchema }).strict(),\n })\n .strict();\n\n// One game's schedule changed — its week, start time, or venue — or its teams were replaced, which\n// replaces their roster entries and stat lines too.\nexport const SportGameUpdatedEventSchema = z\n .object({\n type: z.literal('sportGame.updated'),\n ids: z.object({ leagueId: leagueIdSchema, gameId: gameIdSchema }).strict(),\n })\n .strict();\n\n// One game was deleted with its events and roster.\nexport const SportGameDeletedEventSchema = z\n .object({\n type: z.literal('sportGame.deleted'),\n ids: z.object({ leagueId: leagueIdSchema, gameId: gameIdSchema }).strict(),\n })\n .strict();\n\n// A rebuild ran. Every scope id is optional: a rebuild covers one league, every league, one user,\n// every user, or one sport's hall of fame (for one user or the whole sport).\nexport const StatsRecalculatedEventSchema = z\n .object({\n type: z.literal('stats.recalculated'),\n ids: z\n .object({\n userId: userIdSchema.optional(),\n leagueId: leagueIdSchema.optional(),\n sportKey: sportKeySchema.optional(),\n })\n .strict(),\n })\n .strict();\n\n// A game's numbers were corrected or restored from its events in Fix stats; for a completed game,\n// every destination it feeds moved with them.\nexport const SportGameStatsCorrectedEventSchema = z\n .object({\n type: z.literal('sportGame.statsCorrected'),\n ids: z.object({ leagueId: leagueIdSchema, gameId: gameIdSchema }).strict(),\n })\n .strict();\n\n// A stats check wrote or advanced its report.\nexport const StatsValidationReportedEventSchema = z\n .object({\n type: z.literal('statsValidation.reported'),\n ids: z.object({ reportId: z.string().min(1) }).strict(),\n })\n .strict();\n\n// An admin deleted a stats check's report.\nexport const StatsValidationReportDeletedEventSchema = z\n .object({\n type: z.literal('statsValidation.reportDeleted'),\n ids: z.object({ reportId: statsValidationReportIdSchema }).strict(),\n })\n .strict();\n\n// A person's pre-Q-Sports baseline was written, and their career line and hall-of-fame entry rebuilt.\nexport const HistoricalStatsUpdatedEventSchema = z\n .object({\n type: z.literal('historicalStats.updated'),\n ids: z.object({ userId: userIdSchema }).strict(),\n })\n .strict();\n\n// An admin banned an account or lifted its ban.\nexport const UserStatusChangedEventSchema = z\n .object({\n type: z.literal('user.statusChanged'),\n ids: z.object({ userId: userIdSchema }).strict(),\n })\n .strict();\n\n// An award joined the catalog — its first badge was published.\nexport const AwardDefinitionCreatedEventSchema = z\n .object({\n type: z.literal('awardDefinition.created'),\n ids: z.object({ awardId: awardIdSchema }).strict(),\n })\n .strict();\n\n// An award's document changed: its badge was replaced, or its holder count moved.\nexport const AwardDefinitionUpdatedEventSchema = z\n .object({\n type: z.literal('awardDefinition.updated'),\n ids: z.object({ awardId: awardIdSchema }).strict(),\n })\n .strict();\n\nexport const AwardDefinitionDeletedEventSchema = z\n .object({\n type: z.literal('awardDefinition.deleted'),\n ids: z.object({ awardId: awardIdSchema }).strict(),\n })\n .strict();\n\n// An award was granted to or revoked from some accounts, which may have cleared a featured badge.\n// The accounts are many, so the event names the award; a client holding any profile's awards\n// refreshes them.\nexport const AwardGrantsChangedEventSchema = z\n .object({\n type: z.literal('awardGrants.changed'),\n ids: z.object({ awardId: awardIdSchema }).strict(),\n })\n .strict();\n\n// An account chose which of its awards to feature beside its name.\nexport const FeaturedAwardsChangedEventSchema = z\n .object({\n type: z.literal('featuredAwards.changed'),\n ids: z.object({ userId: userIdSchema }).strict(),\n })\n .strict();\n\n// A hardware loan contract was created, signed, returned, or deleted.\nexport const HardwareLoanContractChangedEventSchema = z\n .object({\n type: z.literal('hardwareLoanContract.changed'),\n ids: z\n .object({ contractId: hardwareLoanContractIdSchema, refereeUserId: userIdSchema })\n .strict(),\n })\n .strict();\n\nexport const AdminListChangedEventSchema = z\n .object({\n type: z.literal('adminList.changed'),\n ids: z.object({ userId: userIdSchema }).strict(),\n })\n .strict();\n\n// A new account finished registration: its profile and public identity now exist.\nexport const UserRegisteredEventSchema = z\n .object({ type: z.literal('user.registered'), ids: z.object({ userId: userIdSchema }).strict() })\n .strict();\n\nexport const DisplayNameChangedEventSchema = z\n .object({\n type: z.literal('displayName.changed'),\n ids: z.object({ userId: userIdSchema }).strict(),\n })\n .strict();\n\n// The shared stats beacon moved: stats changed somewhere. The beacon holds only its latest change,\n// not a log of them, so the event names no scope and a watching client refreshes every\n// stats-bearing read.\nexport const StatsBeaconChangedEventSchema = z\n .object({ type: z.literal('statsBeacon.changed'), ids: z.object({}).strict() })\n .strict();\n\nexport const WaiverTemplateCreatedEventSchema = z\n .object({\n type: z.literal('waiverTemplate.created'),\n ids: z.object({ waiverTemplateId: waiverTemplateIdSchema }).strict(),\n })\n .strict();\n\n// A template's wording changed: a new version was published.\nexport const WaiverTemplateUpdatedEventSchema = z\n .object({\n type: z.literal('waiverTemplate.updated'),\n ids: z.object({ waiverTemplateId: waiverTemplateIdSchema }).strict(),\n })\n .strict();\n\n// A template left the admin's list — deleted, or retired because something still names it.\nexport const WaiverTemplateDeletedEventSchema = z\n .object({\n type: z.literal('waiverTemplate.deleted'),\n ids: z.object({ waiverTemplateId: waiverTemplateIdSchema }).strict(),\n })\n .strict();\n\nexport const GameLocationCreatedEventSchema = z\n .object({\n type: z.literal('gameLocation.created'),\n ids: z.object({ gameLocationId: gameLocationIdSchema }).strict(),\n })\n .strict();\n\n// A venue's document changed — its own fields through the location callables, or its picture\n// through the upload pipeline.\nexport const GameLocationUpdatedEventSchema = z\n .object({\n type: z.literal('gameLocation.updated'),\n ids: z.object({ gameLocationId: gameLocationIdSchema }).strict(),\n })\n .strict();\n\nexport const GameLocationDeletedEventSchema = z\n .object({\n type: z.literal('gameLocation.deleted'),\n ids: z.object({ gameLocationId: gameLocationIdSchema }).strict(),\n })\n .strict();\n\n// A team's document changed: an admin renamed it or changed its type, or the picture core changed its\n// gallery summary.\nexport const LeagueTeamUpdatedEventSchema = z\n .object({\n type: z.literal('leagueTeam.updated'),\n ids: z.object({ leagueId: leagueIdSchema, teamId: teamIdSchema }).strict(),\n })\n .strict();\n\n// An admin deleted a team that never played, with its memberships, ghosts, invitations, join\n// requests, contact phone, gallery, and unplayed games.\nexport const LeagueTeamDeletedEventSchema = z\n .object({\n type: z.literal('leagueTeam.deleted'),\n ids: z.object({ leagueId: leagueIdSchema, teamId: teamIdSchema }).strict(),\n })\n .strict();\n\n// An admin's deletion of a team stopped short: some of the team's games, ghost players, invitations,\n// join requests, or memberships are gone, and the team, with its contact phone, still stands.\nexport const LeagueTeamDeletionAdvancedEventSchema = z\n .object({\n type: z.literal('leagueTeam.deletionAdvanced'),\n ids: z.object({ leagueId: leagueIdSchema, teamId: teamIdSchema }).strict(),\n })\n .strict();\n\n// A ghost player's removal took the ghost's entries off finished games of its team — each one it sat\n// out without a stat, so no result or total changed, but the games' finalized records no longer name\n// it. The event names no game.\nexport const GhostPlayerFinishedEntriesRemovedEventSchema = z\n .object({\n type: z.literal('ghostPlayer.finishedEntriesRemoved'),\n ids: z\n .object({ leagueId: leagueIdSchema, teamId: teamIdSchema, ghostUserId: userIdSchema })\n .strict(),\n })\n .strict();\n\n// An admin set a team's contact phone, which only admins read.\nexport const LeagueTeamContactUpdatedEventSchema = z\n .object({\n type: z.literal('leagueTeamContact.updated'),\n ids: z.object({ leagueId: leagueIdSchema, teamId: teamIdSchema }).strict(),\n })\n .strict();\n\n// The landing page's document changed — its copy, or its gallery summary. There is one landing page,\n// so the event names none.\nexport const LandingPageUpdatedEventSchema = z\n .object({ type: z.literal('landingPage.updated'), ids: z.object({}).strict() })\n .strict();\n\n// A picture joined a gallery. It carries the whole new entry, so a client holding that gallery's\n// pages patches the entry in where its position sorts, and no gallery page is ever refetched for it\n// (RULE-STD-FRONTEND-103). The owner's summary changed too, and the owner's own update event says so.\nexport const GalleryPictureAddedEventSchema = z\n .object({\n type: z.literal('galleryPicture.added'),\n ids: z\n .object({\n ownerKind: galleryOwnerKindSchema,\n ownerId: z.string().min(1),\n pictureId: pictureIdSchema,\n })\n .strict(),\n position: z.string().min(1),\n createdAt: epochMsSchema,\n })\n .strict();\n\n// A dead-lettered row was replayed back onto its pipeline's queue, so the operator's dead-letter list\n// loses it. The list spans every lane, so the event names none.\nexport const DeadLetterReplayedEventSchema = z\n .object({ type: z.literal('deadLetter.replayed'), ids: z.object({}).strict() })\n .strict();\n\n// The migration console's state moved: an action ran a page, a step was recorded, or the cutover\n// was. There is one console, so the event names none.\nexport const MigrationConsoleChangedEventSchema = z\n .object({ type: z.literal('migrationConsole.changed'), ids: z.object({}).strict() })\n .strict();\n\nexport const DomainEventSchema = z.discriminatedUnion('type', [\n LeagueCreatedEventSchema,\n LeagueUpdatedEventSchema,\n LeagueModeSwitchedEventSchema,\n LeagueTeamCreatedEventSchema,\n TeamRosterChangedEventSchema,\n SignedWaiverCreatedEventSchema,\n GhostPlayerLinkedEventSchema,\n TeamJoinRequestSubmittedEventSchema,\n TeamJoinRequestCancelledEventSchema,\n TeamJoinRequestAnsweredEventSchema,\n TeamInvitationSentEventSchema,\n TeamInvitationCancelledEventSchema,\n TeamInvitationAnsweredEventSchema,\n LeagueFreeAgentSignedUpEventSchema,\n LeagueFreeAgentRemovedEventSchema,\n SportGameFinalizedEventSchema,\n SportGameReopenedEventSchema,\n SportGameStatEventsRecordedEventSchema,\n SportGameAbsenceChangedEventSchema,\n SportGameMemoUpdatedEventSchema,\n SportGameJumpBallChangedEventSchema,\n LeagueScheduleChangedEventSchema,\n SportGameUpdatedEventSchema,\n SportGameDeletedEventSchema,\n StatsRecalculatedEventSchema,\n SportGameStatsCorrectedEventSchema,\n StatsValidationReportedEventSchema,\n StatsValidationReportDeletedEventSchema,\n HistoricalStatsUpdatedEventSchema,\n UserStatusChangedEventSchema,\n AwardDefinitionCreatedEventSchema,\n AwardDefinitionUpdatedEventSchema,\n AwardDefinitionDeletedEventSchema,\n AwardGrantsChangedEventSchema,\n FeaturedAwardsChangedEventSchema,\n HardwareLoanContractChangedEventSchema,\n AdminListChangedEventSchema,\n UserRegisteredEventSchema,\n DisplayNameChangedEventSchema,\n StatsBeaconChangedEventSchema,\n WaiverTemplateCreatedEventSchema,\n WaiverTemplateUpdatedEventSchema,\n WaiverTemplateDeletedEventSchema,\n GameLocationCreatedEventSchema,\n GameLocationUpdatedEventSchema,\n GameLocationDeletedEventSchema,\n LeagueTeamUpdatedEventSchema,\n LeagueTeamDeletedEventSchema,\n LeagueTeamDeletionAdvancedEventSchema,\n GhostPlayerFinishedEntriesRemovedEventSchema,\n LeagueTeamContactUpdatedEventSchema,\n LandingPageUpdatedEventSchema,\n GalleryPictureAddedEventSchema,\n DeadLetterReplayedEventSchema,\n MigrationConsoleChangedEventSchema,\n]);\nexport type DomainEvent = z.infer<typeof DomainEventSchema>;\nexport type DomainEventType = DomainEvent['type'];\n"]}
1
+ {"version":3,"file":"domain-events.js","sourceRoot":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D,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC;KAChD,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,0BAA0B,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC;KACnF,MAAM,EAAE,CAAC;AAEZ,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IAC5D,wBAAwB;IACxB,wBAAwB;IACxB,6BAA6B;IAC7B,4BAA4B;IAC5B,4BAA4B;IAC5B,8BAA8B;IAC9B,4BAA4B;IAC5B,mCAAmC;IACnC,mCAAmC;IACnC,kCAAkC;IAClC,6BAA6B;IAC7B,kCAAkC;IAClC,iCAAiC;IACjC,kCAAkC;IAClC,iCAAiC;IACjC,6BAA6B;IAC7B,4BAA4B;IAC5B,sCAAsC;IACtC,kCAAkC;IAClC,+BAA+B;IAC/B,mCAAmC;IACnC,gCAAgC;IAChC,2BAA2B;IAC3B,2BAA2B;IAC3B,4BAA4B;IAC5B,kCAAkC;IAClC,kCAAkC;IAClC,uCAAuC;IACvC,iCAAiC;IACjC,4BAA4B;IAC5B,iCAAiC;IACjC,iCAAiC;IACjC,iCAAiC;IACjC,6BAA6B;IAC7B,gCAAgC;IAChC,sCAAsC;IACtC,yBAAyB;IACzB,6BAA6B;IAC7B,6BAA6B;IAC7B,gCAAgC;IAChC,gCAAgC;IAChC,gCAAgC;IAChC,8BAA8B;IAC9B,8BAA8B;IAC9B,8BAA8B;IAC9B,4BAA4B;IAC5B,4BAA4B;IAC5B,qCAAqC;IACrC,4CAA4C;IAC5C,mCAAmC;IACnC,6BAA6B;IAC7B,8BAA8B;IAC9B,6BAA6B;IAC7B,kCAAkC;CACnC,CAAC,CAAC","sourcesContent":["// The DomainEvent union — the vocabulary of \"what happened\" that both sides of the boundary share.\n//\n// A callable or trigger names what it changed with one of these; the client alone maps an event to\n// the query-key families it makes stale (the invalidation registry is app-local, RULE-STD-FRONTEND-102). The two\n// sides share event names, never cache keys.\n\nimport { z } from 'zod';\nimport {\n epochMsSchema,\n gameIdSchema,\n hardwareLoanContractIdSchema,\n leagueIdSchema,\n sportKeySchema,\n statsValidationReportIdSchema,\n teamIdSchema,\n userIdSchema,\n} from '../doc-schemas/atoms.js';\nimport { awardIdSchema } from '../doc-schemas/catalogs.js';\nimport { gameLocationIdSchema } from '../doc-schemas/game-location.js';\nimport { galleryOwnerKindSchema, pictureIdSchema } from '../doc-schemas/gallery.js';\nimport { waiverTemplateIdSchema } from '../doc-schemas/waiver-template.js';\n\nexport const LeagueCreatedEventSchema = z\n .object({\n type: z.literal('league.created'),\n ids: z.object({ leagueId: leagueIdSchema }).strict(),\n })\n .strict();\n\nexport const LeagueUpdatedEventSchema = z\n .object({\n type: z.literal('league.updated'),\n ids: z.object({ leagueId: leagueIdSchema }).strict(),\n })\n .strict();\n\n// The league changed mode, and with it the `teamType` of every one of its teams.\nexport const LeagueModeSwitchedEventSchema = z\n .object({\n type: z.literal('league.modeSwitched'),\n ids: z.object({ leagueId: leagueIdSchema }).strict(),\n })\n .strict();\n\nexport const LeagueTeamCreatedEventSchema = z\n .object({\n type: z.literal('leagueTeam.created'),\n ids: z.object({ leagueId: leagueIdSchema, teamId: teamIdSchema }).strict(),\n })\n .strict();\n\n// A member was added, removed, or changed role on a team — by any path, ghosts included.\nexport const TeamRosterChangedEventSchema = z\n .object({\n type: z.literal('teamRoster.changed'),\n ids: z\n .object({ leagueId: leagueIdSchema, teamId: teamIdSchema, userId: userIdSchema })\n .strict(),\n })\n .strict();\n\n// A waiver was signed for a person in a league — by them, or for a ghost by a witness.\nexport const SignedWaiverCreatedEventSchema = z\n .object({\n type: z.literal('signedWaiver.created'),\n ids: z.object({ leagueId: leagueIdSchema, userId: userIdSchema }).strict(),\n })\n .strict();\n\nexport const GhostPlayerLinkedEventSchema = z\n .object({\n type: z.literal('ghostPlayer.linked'),\n ids: z\n .object({\n leagueId: leagueIdSchema,\n teamId: teamIdSchema,\n ghostUserId: userIdSchema,\n realUserId: userIdSchema,\n })\n .strict(),\n })\n .strict();\n\nexport const TeamJoinRequestSubmittedEventSchema = z\n .object({\n type: z.literal('teamJoinRequest.submitted'),\n ids: z\n .object({ leagueId: leagueIdSchema, teamId: teamIdSchema, userId: userIdSchema })\n .strict(),\n })\n .strict();\n\n// The requester withdrew their join request.\nexport const TeamJoinRequestCancelledEventSchema = z\n .object({\n type: z.literal('teamJoinRequest.cancelled'),\n ids: z\n .object({ leagueId: leagueIdSchema, teamId: teamIdSchema, userId: userIdSchema })\n .strict(),\n })\n .strict();\n\n// The team accepted or rejected a join request. An acceptance also changed the roster.\nexport const TeamJoinRequestAnsweredEventSchema = z\n .object({\n type: z.literal('teamJoinRequest.answered'),\n ids: z\n .object({ leagueId: leagueIdSchema, teamId: teamIdSchema, userId: userIdSchema })\n .strict(),\n })\n .strict();\n\n// The team invited a person. `userId` is the invitee.\nexport const TeamInvitationSentEventSchema = z\n .object({\n type: z.literal('teamInvitation.sent'),\n ids: z\n .object({ leagueId: leagueIdSchema, teamId: teamIdSchema, userId: userIdSchema })\n .strict(),\n })\n .strict();\n\n// The team withdrew an invitation. `userId` is the invitee.\nexport const TeamInvitationCancelledEventSchema = z\n .object({\n type: z.literal('teamInvitation.cancelled'),\n ids: z\n .object({ leagueId: leagueIdSchema, teamId: teamIdSchema, userId: userIdSchema })\n .strict(),\n })\n .strict();\n\n// The invitee accepted or declined an invitation. An acceptance also changed the roster.\nexport const TeamInvitationAnsweredEventSchema = z\n .object({\n type: z.literal('teamInvitation.answered'),\n ids: z\n .object({ leagueId: leagueIdSchema, teamId: teamIdSchema, userId: userIdSchema })\n .strict(),\n })\n .strict();\n\n// A player signed up as a free agent in a league.\nexport const LeagueFreeAgentSignedUpEventSchema = z\n .object({\n type: z.literal('leagueFreeAgent.signedUp'),\n ids: z.object({ leagueId: leagueIdSchema, userId: userIdSchema }).strict(),\n })\n .strict();\n\n// A player's free-agent signup ended: they withdrew it, or an admin placed them on a team.\nexport const LeagueFreeAgentRemovedEventSchema = z\n .object({\n type: z.literal('leagueFreeAgent.removed'),\n ids: z.object({ leagueId: leagueIdSchema, userId: userIdSchema }).strict(),\n })\n .strict();\n\nexport const SportGameFinalizedEventSchema = z\n .object({\n type: z.literal('sportGame.finalized'),\n ids: z.object({ leagueId: leagueIdSchema, gameId: gameIdSchema }).strict(),\n })\n .strict();\n\nexport const SportGameReopenedEventSchema = z\n .object({\n type: z.literal('sportGame.reopened'),\n ids: z.object({ leagueId: leagueIdSchema, gameId: gameIdSchema }).strict(),\n })\n .strict();\n\n// A scoring write stored stat events on a live game: its rollup and score moved.\nexport const SportGameStatEventsRecordedEventSchema = z\n .object({\n type: z.literal('sportGame.statEventsRecorded'),\n ids: z.object({ leagueId: leagueIdSchema, gameId: gameIdSchema }).strict(),\n })\n .strict();\n\n// A roster entry of a live game was marked absent or present.\nexport const SportGameAbsenceChangedEventSchema = z\n .object({\n type: z.literal('sportGame.absenceChanged'),\n ids: z.object({ leagueId: leagueIdSchema, gameId: gameIdSchema }).strict(),\n })\n .strict();\n\n// A scorer's note on one person in a live game changed.\nexport const SportGameMemoUpdatedEventSchema = z\n .object({\n type: z.literal('sportGame.memoUpdated'),\n ids: z.object({ leagueId: leagueIdSchema, gameId: gameIdSchema }).strict(),\n })\n .strict();\n\n// The jump-ball possession arrow of a live basketball game moved.\nexport const SportGameJumpBallChangedEventSchema = z\n .object({\n type: z.literal('sportGame.jumpBallChanged'),\n ids: z.object({ leagueId: leagueIdSchema, gameId: gameIdSchema }).strict(),\n })\n .strict();\n\n// A league's schedule changed as a whole: a week was created, its shared fields edited, or it was\n// deleted, or a game was added to a week. Any of the league's games may have been added, changed, or\n// removed.\nexport const LeagueScheduleChangedEventSchema = z\n .object({\n type: z.literal('leagueSchedule.changed'),\n ids: z.object({ leagueId: leagueIdSchema }).strict(),\n })\n .strict();\n\n// One game's schedule changed — its week, start time, or venue — or its teams were replaced, which\n// replaces their roster entries and stat lines too.\nexport const SportGameUpdatedEventSchema = z\n .object({\n type: z.literal('sportGame.updated'),\n ids: z.object({ leagueId: leagueIdSchema, gameId: gameIdSchema }).strict(),\n })\n .strict();\n\n// One game was deleted with its events and roster.\nexport const SportGameDeletedEventSchema = z\n .object({\n type: z.literal('sportGame.deleted'),\n ids: z.object({ leagueId: leagueIdSchema, gameId: gameIdSchema }).strict(),\n })\n .strict();\n\n// A rebuild ran. Every scope id is optional: a rebuild covers one league, every league, one user,\n// every user, or one sport's hall of fame (for one user or the whole sport).\nexport const StatsRecalculatedEventSchema = z\n .object({\n type: z.literal('stats.recalculated'),\n ids: z\n .object({\n userId: userIdSchema.optional(),\n leagueId: leagueIdSchema.optional(),\n sportKey: sportKeySchema.optional(),\n })\n .strict(),\n })\n .strict();\n\n// A game's numbers were corrected or restored from its events in Fix stats; for a completed game,\n// every destination it feeds moved with them.\nexport const SportGameStatsCorrectedEventSchema = z\n .object({\n type: z.literal('sportGame.statsCorrected'),\n ids: z.object({ leagueId: leagueIdSchema, gameId: gameIdSchema }).strict(),\n })\n .strict();\n\n// A stats check wrote or advanced its report.\nexport const StatsValidationReportedEventSchema = z\n .object({\n type: z.literal('statsValidation.reported'),\n ids: z.object({ reportId: z.string().min(1) }).strict(),\n })\n .strict();\n\n// An admin deleted a stats check's report.\nexport const StatsValidationReportDeletedEventSchema = z\n .object({\n type: z.literal('statsValidation.reportDeleted'),\n ids: z.object({ reportId: statsValidationReportIdSchema }).strict(),\n })\n .strict();\n\n// A person's pre-Q-Sports baseline was written, and their career line and hall-of-fame entry rebuilt.\nexport const HistoricalStatsUpdatedEventSchema = z\n .object({\n type: z.literal('historicalStats.updated'),\n ids: z.object({ userId: userIdSchema }).strict(),\n })\n .strict();\n\n// An admin banned an account or lifted its ban.\nexport const UserStatusChangedEventSchema = z\n .object({\n type: z.literal('user.statusChanged'),\n ids: z.object({ userId: userIdSchema }).strict(),\n })\n .strict();\n\n// An award joined the catalog — its first badge was published.\nexport const AwardDefinitionCreatedEventSchema = z\n .object({\n type: z.literal('awardDefinition.created'),\n ids: z.object({ awardId: awardIdSchema }).strict(),\n })\n .strict();\n\n// An award's document changed: its badge was replaced, or its holder count moved.\nexport const AwardDefinitionUpdatedEventSchema = z\n .object({\n type: z.literal('awardDefinition.updated'),\n ids: z.object({ awardId: awardIdSchema }).strict(),\n })\n .strict();\n\nexport const AwardDefinitionDeletedEventSchema = z\n .object({\n type: z.literal('awardDefinition.deleted'),\n ids: z.object({ awardId: awardIdSchema }).strict(),\n })\n .strict();\n\n// An award was granted to or revoked from some accounts, which may have cleared a featured badge.\n// The accounts are many, so the event names the award; a client holding any profile's awards\n// refreshes them.\nexport const AwardGrantsChangedEventSchema = z\n .object({\n type: z.literal('awardGrants.changed'),\n ids: z.object({ awardId: awardIdSchema }).strict(),\n })\n .strict();\n\n// An account chose which of its awards to feature beside its name.\nexport const FeaturedAwardsChangedEventSchema = z\n .object({\n type: z.literal('featuredAwards.changed'),\n ids: z.object({ userId: userIdSchema }).strict(),\n })\n .strict();\n\n// A hardware loan contract was created, signed, returned, or deleted.\nexport const HardwareLoanContractChangedEventSchema = z\n .object({\n type: z.literal('hardwareLoanContract.changed'),\n ids: z\n .object({ contractId: hardwareLoanContractIdSchema, refereeUserId: userIdSchema })\n .strict(),\n })\n .strict();\n\n// A new account finished registration: its profile and public identity now exist.\nexport const UserRegisteredEventSchema = z\n .object({ type: z.literal('user.registered'), ids: z.object({ userId: userIdSchema }).strict() })\n .strict();\n\nexport const DisplayNameChangedEventSchema = z\n .object({\n type: z.literal('displayName.changed'),\n ids: z.object({ userId: userIdSchema }).strict(),\n })\n .strict();\n\n// The shared stats beacon moved: stats changed somewhere. The beacon holds only its latest change,\n// not a log of them, so the event names no scope and a watching client refreshes every\n// stats-bearing read.\nexport const StatsBeaconChangedEventSchema = z\n .object({ type: z.literal('statsBeacon.changed'), ids: z.object({}).strict() })\n .strict();\n\nexport const WaiverTemplateCreatedEventSchema = z\n .object({\n type: z.literal('waiverTemplate.created'),\n ids: z.object({ waiverTemplateId: waiverTemplateIdSchema }).strict(),\n })\n .strict();\n\n// A template's wording changed: a new version was published.\nexport const WaiverTemplateUpdatedEventSchema = z\n .object({\n type: z.literal('waiverTemplate.updated'),\n ids: z.object({ waiverTemplateId: waiverTemplateIdSchema }).strict(),\n })\n .strict();\n\n// A template left the admin's list — deleted, or retired because something still names it.\nexport const WaiverTemplateDeletedEventSchema = z\n .object({\n type: z.literal('waiverTemplate.deleted'),\n ids: z.object({ waiverTemplateId: waiverTemplateIdSchema }).strict(),\n })\n .strict();\n\nexport const GameLocationCreatedEventSchema = z\n .object({\n type: z.literal('gameLocation.created'),\n ids: z.object({ gameLocationId: gameLocationIdSchema }).strict(),\n })\n .strict();\n\n// A venue's document changed — its own fields through the location callables, or its picture\n// through the upload pipeline.\nexport const GameLocationUpdatedEventSchema = z\n .object({\n type: z.literal('gameLocation.updated'),\n ids: z.object({ gameLocationId: gameLocationIdSchema }).strict(),\n })\n .strict();\n\nexport const GameLocationDeletedEventSchema = z\n .object({\n type: z.literal('gameLocation.deleted'),\n ids: z.object({ gameLocationId: gameLocationIdSchema }).strict(),\n })\n .strict();\n\n// A team's document changed: an admin renamed it or changed its type, or the picture core changed its\n// gallery summary.\nexport const LeagueTeamUpdatedEventSchema = z\n .object({\n type: z.literal('leagueTeam.updated'),\n ids: z.object({ leagueId: leagueIdSchema, teamId: teamIdSchema }).strict(),\n })\n .strict();\n\n// An admin deleted a team that never played, with its memberships, ghosts, invitations, join\n// requests, contact phone, gallery, and unplayed games.\nexport const LeagueTeamDeletedEventSchema = z\n .object({\n type: z.literal('leagueTeam.deleted'),\n ids: z.object({ leagueId: leagueIdSchema, teamId: teamIdSchema }).strict(),\n })\n .strict();\n\n// An admin's deletion of a team stopped short: some of the team's games, ghost players, invitations,\n// join requests, or memberships are gone, and the team, with its contact phone, still stands.\nexport const LeagueTeamDeletionAdvancedEventSchema = z\n .object({\n type: z.literal('leagueTeam.deletionAdvanced'),\n ids: z.object({ leagueId: leagueIdSchema, teamId: teamIdSchema }).strict(),\n })\n .strict();\n\n// A ghost player's removal took the ghost's entries off finished games of its team — each one it sat\n// out without a stat, so no result or total changed, but the games' finalized records no longer name\n// it. The event names no game.\nexport const GhostPlayerFinishedEntriesRemovedEventSchema = z\n .object({\n type: z.literal('ghostPlayer.finishedEntriesRemoved'),\n ids: z\n .object({ leagueId: leagueIdSchema, teamId: teamIdSchema, ghostUserId: userIdSchema })\n .strict(),\n })\n .strict();\n\n// An admin set a team's contact phone, which only admins read.\nexport const LeagueTeamContactUpdatedEventSchema = z\n .object({\n type: z.literal('leagueTeamContact.updated'),\n ids: z.object({ leagueId: leagueIdSchema, teamId: teamIdSchema }).strict(),\n })\n .strict();\n\n// The landing page's document changed — its copy, or its gallery summary. There is one landing page,\n// so the event names none.\nexport const LandingPageUpdatedEventSchema = z\n .object({ type: z.literal('landingPage.updated'), ids: z.object({}).strict() })\n .strict();\n\n// A picture joined a gallery. It carries the whole new entry, so a client holding that gallery's\n// pages patches the entry in where its position sorts, and no gallery page is ever refetched for it\n// (RULE-STD-FRONTEND-103). The owner's summary changed too, and the owner's own update event says so.\nexport const GalleryPictureAddedEventSchema = z\n .object({\n type: z.literal('galleryPicture.added'),\n ids: z\n .object({\n ownerKind: galleryOwnerKindSchema,\n ownerId: z.string().min(1),\n pictureId: pictureIdSchema,\n })\n .strict(),\n position: z.string().min(1),\n createdAt: epochMsSchema,\n })\n .strict();\n\n// A dead-lettered row was replayed back onto its pipeline's queue, so the operator's dead-letter list\n// loses it. The list spans every lane, so the event names none.\nexport const DeadLetterReplayedEventSchema = z\n .object({ type: z.literal('deadLetter.replayed'), ids: z.object({}).strict() })\n .strict();\n\n// The migration console's state moved: an action ran a page, a step was recorded, or the cutover\n// was. There is one console, so the event names none.\nexport const MigrationConsoleChangedEventSchema = z\n .object({ type: z.literal('migrationConsole.changed'), ids: z.object({}).strict() })\n .strict();\n\nexport const DomainEventSchema = z.discriminatedUnion('type', [\n LeagueCreatedEventSchema,\n LeagueUpdatedEventSchema,\n LeagueModeSwitchedEventSchema,\n LeagueTeamCreatedEventSchema,\n TeamRosterChangedEventSchema,\n SignedWaiverCreatedEventSchema,\n GhostPlayerLinkedEventSchema,\n TeamJoinRequestSubmittedEventSchema,\n TeamJoinRequestCancelledEventSchema,\n TeamJoinRequestAnsweredEventSchema,\n TeamInvitationSentEventSchema,\n TeamInvitationCancelledEventSchema,\n TeamInvitationAnsweredEventSchema,\n LeagueFreeAgentSignedUpEventSchema,\n LeagueFreeAgentRemovedEventSchema,\n SportGameFinalizedEventSchema,\n SportGameReopenedEventSchema,\n SportGameStatEventsRecordedEventSchema,\n SportGameAbsenceChangedEventSchema,\n SportGameMemoUpdatedEventSchema,\n SportGameJumpBallChangedEventSchema,\n LeagueScheduleChangedEventSchema,\n SportGameUpdatedEventSchema,\n SportGameDeletedEventSchema,\n StatsRecalculatedEventSchema,\n SportGameStatsCorrectedEventSchema,\n StatsValidationReportedEventSchema,\n StatsValidationReportDeletedEventSchema,\n HistoricalStatsUpdatedEventSchema,\n UserStatusChangedEventSchema,\n AwardDefinitionCreatedEventSchema,\n AwardDefinitionUpdatedEventSchema,\n AwardDefinitionDeletedEventSchema,\n AwardGrantsChangedEventSchema,\n FeaturedAwardsChangedEventSchema,\n HardwareLoanContractChangedEventSchema,\n UserRegisteredEventSchema,\n DisplayNameChangedEventSchema,\n StatsBeaconChangedEventSchema,\n WaiverTemplateCreatedEventSchema,\n WaiverTemplateUpdatedEventSchema,\n WaiverTemplateDeletedEventSchema,\n GameLocationCreatedEventSchema,\n GameLocationUpdatedEventSchema,\n GameLocationDeletedEventSchema,\n LeagueTeamUpdatedEventSchema,\n LeagueTeamDeletedEventSchema,\n LeagueTeamDeletionAdvancedEventSchema,\n GhostPlayerFinishedEntriesRemovedEventSchema,\n LeagueTeamContactUpdatedEventSchema,\n LandingPageUpdatedEventSchema,\n GalleryPictureAddedEventSchema,\n DeadLetterReplayedEventSchema,\n MigrationConsoleChangedEventSchema,\n]);\nexport type DomainEvent = z.infer<typeof DomainEventSchema>;\nexport type DomainEventType = DomainEvent['type'];\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"admin-notification-config.d.ts","sourceRoot":"","sources":["../../src/notifications/admin-notification-config.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,wBAAwB,EACxB,sBAAsB,EACvB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AAQ7F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAOvE,MAAM,WAAW,2BAA2B,CAAC,CAAC,SAAS,qBAAqB;IAC1E;;;OAGG;IACH,cAAc,EAAE,CAAC,QAAQ,EAAE,+BAA+B,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC;IACzE;;;OAGG;IACH,QAAQ,EAAE,sBAAsB,CAAC,UAAU,CAAC,CAAC;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,mDAAmD;IACnD,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACnC,kCAAkC;IAClC,UAAU,EAAE,CAAC,QAAQ,EAAE,+BAA+B,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC;IACrE,mDAAmD;IACnD,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,8BAA8B,EAAE;KAC1C,CAAC,IAAI,qBAAqB,GAAG,2BAA2B,CAAC,CAAC,CAAC;CAyB7D,CAAC;AAqBF,eAAO,MAAM,0BAA0B,EAAE,wBAUxC,CAAC"}
1
+ {"version":3,"file":"admin-notification-config.d.ts","sourceRoot":"","sources":["../../src/notifications/admin-notification-config.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,wBAAwB,EACxB,sBAAsB,EACvB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AAQ7F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAGvE,MAAM,WAAW,2BAA2B,CAAC,CAAC,SAAS,qBAAqB;IAC1E;;;OAGG;IACH,cAAc,EAAE,CAAC,QAAQ,EAAE,+BAA+B,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC;IACzE;;;OAGG;IACH,QAAQ,EAAE,sBAAsB,CAAC,UAAU,CAAC,CAAC;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,mDAAmD;IACnD,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACnC,kCAAkC;IAClC,UAAU,EAAE,CAAC,QAAQ,EAAE,+BAA+B,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC;IACrE,mDAAmD;IACnD,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,8BAA8B,EAAE;KAC1C,CAAC,IAAI,qBAAqB,GAAG,2BAA2B,CAAC,CAAC,CAAC;CAyB7D,CAAC;AAqBF,eAAO,MAAM,0BAA0B,EAAE,wBAUxC,CAAC"}