@ttt-productions/q-core 0.1.38 → 0.1.40
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/index.d.ts +2 -0
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/constants/index.js +2 -0
- package/dist/constants/index.js.map +1 -1
- package/dist/constants/pagination.d.ts +3 -0
- package/dist/constants/pagination.d.ts.map +1 -0
- package/dist/constants/pagination.js +3 -0
- package/dist/constants/pagination.js.map +1 -0
- package/dist/constants/text-fields.d.ts +147 -0
- package/dist/constants/text-fields.d.ts.map +1 -0
- package/dist/{input-formats/input-formats.js → constants/text-fields.js} +50 -26
- package/dist/constants/text-fields.js.map +1 -0
- package/dist/doc-schemas/atoms.d.ts +0 -12
- package/dist/doc-schemas/atoms.d.ts.map +1 -1
- package/dist/doc-schemas/atoms.js +3 -28
- package/dist/doc-schemas/atoms.js.map +1 -1
- package/dist/doc-schemas/catalogs.d.ts.map +1 -1
- package/dist/doc-schemas/catalogs.js +4 -3
- package/dist/doc-schemas/catalogs.js.map +1 -1
- package/dist/doc-schemas/game-location.d.ts.map +1 -1
- package/dist/doc-schemas/game-location.js +7 -6
- package/dist/doc-schemas/game-location.js.map +1 -1
- package/dist/doc-schemas/league-team.d.ts.map +1 -1
- package/dist/doc-schemas/league-team.js +5 -4
- package/dist/doc-schemas/league-team.js.map +1 -1
- package/dist/doc-schemas/migration-console.d.ts +4 -12
- package/dist/doc-schemas/migration-console.d.ts.map +1 -1
- package/dist/doc-schemas/migration-console.js +4 -3
- package/dist/doc-schemas/migration-console.js.map +1 -1
- package/dist/doc-schemas/registry.d.ts +2 -6
- package/dist/doc-schemas/registry.d.ts.map +1 -1
- package/dist/doc-schemas/sport-game.d.ts.map +1 -1
- package/dist/doc-schemas/sport-game.js +5 -4
- package/dist/doc-schemas/sport-game.js.map +1 -1
- package/dist/doc-schemas/sport-league.d.ts.map +1 -1
- package/dist/doc-schemas/sport-league.js +5 -4
- package/dist/doc-schemas/sport-league.js.map +1 -1
- package/dist/doc-schemas/system.js +7 -6
- package/dist/doc-schemas/system.js.map +1 -1
- package/dist/doc-schemas/team-membership.js +5 -4
- package/dist/doc-schemas/team-membership.js.map +1 -1
- package/dist/doc-schemas/user-profile.d.ts.map +1 -1
- package/dist/doc-schemas/user-profile.js +5 -4
- package/dist/doc-schemas/user-profile.js.map +1 -1
- package/dist/doc-schemas/waiver-template.d.ts.map +1 -1
- package/dist/doc-schemas/waiver-template.js +5 -4
- package/dist/doc-schemas/waiver-template.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- 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.map +1 -1
- package/dist/migration-console/manifest.js +18 -34
- package/dist/migration-console/manifest.js.map +1 -1
- package/dist/schemas/app-config.d.ts.map +1 -1
- package/dist/schemas/app-config.js +8 -7
- package/dist/schemas/app-config.js.map +1 -1
- package/dist/schemas/atoms.d.ts.map +1 -1
- package/dist/schemas/atoms.js +8 -7
- package/dist/schemas/atoms.js.map +1 -1
- package/dist/schemas/index.d.ts +1 -0
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +1 -0
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/leagues.d.ts.map +1 -1
- package/dist/schemas/leagues.js +5 -4
- package/dist/schemas/leagues.js.map +1 -1
- package/dist/schemas/migration-console.d.ts +12 -36
- package/dist/schemas/migration-console.d.ts.map +1 -1
- package/dist/schemas/schedules.d.ts.map +1 -1
- package/dist/schemas/schedules.js +3 -3
- package/dist/schemas/schedules.js.map +1 -1
- package/dist/schemas/scoring.d.ts +6 -6
- package/dist/schemas/scoring.d.ts.map +1 -1
- package/dist/schemas/scoring.js +4 -3
- package/dist/schemas/scoring.js.map +1 -1
- package/dist/schemas/text-field.d.ts +4 -0
- package/dist/schemas/text-field.d.ts.map +1 -0
- package/dist/schemas/text-field.js +12 -0
- package/dist/schemas/text-field.js.map +1 -0
- package/dist/schemas/waiver-templates.d.ts.map +1 -1
- package/dist/schemas/waiver-templates.js +4 -4
- package/dist/schemas/waiver-templates.js.map +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/text-field.d.ts +15 -0
- package/dist/utils/text-field.d.ts.map +1 -0
- package/dist/utils/text-field.js +32 -0
- package/dist/utils/text-field.js.map +1 -0
- package/package.json +1 -1
- package/dist/input-formats/input-formats.d.ts +0 -123
- package/dist/input-formats/input-formats.d.ts.map +0 -1
- package/dist/input-formats/input-formats.js.map +0 -1
|
@@ -25,7 +25,6 @@ export declare const MigrationActionPageResultSchema: z.ZodObject<{
|
|
|
25
25
|
"verify.adminList": "verify.adminList";
|
|
26
26
|
"cleanup.orphanGhostPublicUsers": "cleanup.orphanGhostPublicUsers";
|
|
27
27
|
"delete.v1Users": "delete.v1Users";
|
|
28
|
-
"delete.v1AdminRoles": "delete.v1AdminRoles";
|
|
29
28
|
"verify.teamMemberships": "verify.teamMemberships";
|
|
30
29
|
"verify.gameRosterPlayers": "verify.gameRosterPlayers";
|
|
31
30
|
"copy.leagueTeams": "copy.leagueTeams";
|
|
@@ -72,15 +71,14 @@ export declare const MigrationActionPageResultSchema: z.ZodObject<{
|
|
|
72
71
|
"verify.landingPageConfig": "verify.landingPageConfig";
|
|
73
72
|
"verify.statsBeacon": "verify.statsBeacon";
|
|
74
73
|
"delete.v1LandingBase": "delete.v1LandingBase";
|
|
74
|
+
"delete.v1LandingAdmin": "delete.v1LandingAdmin";
|
|
75
75
|
"copy.waiverTemplates": "copy.waiverTemplates";
|
|
76
76
|
"verify.waiverTemplates": "verify.waiverTemplates";
|
|
77
77
|
"delete.v1Waivers": "delete.v1Waivers";
|
|
78
78
|
"copy.awardDefinitions": "copy.awardDefinitions";
|
|
79
79
|
"verify.awardDefinitions": "verify.awardDefinitions";
|
|
80
|
-
"delete.v1AwardCatalog": "delete.v1AwardCatalog";
|
|
81
80
|
"copy.gameLocations": "copy.gameLocations";
|
|
82
81
|
"verify.gameLocations": "verify.gameLocations";
|
|
83
|
-
"delete.v1GameLocations": "delete.v1GameLocations";
|
|
84
82
|
"delete.v1AdminStats": "delete.v1AdminStats";
|
|
85
83
|
"verify.v1CommerceDiscardable": "verify.v1CommerceDiscardable";
|
|
86
84
|
"verify.v1DisplayNamesUnique": "verify.v1DisplayNamesUnique";
|
|
@@ -172,7 +170,6 @@ export declare const MigrationStepStateSchema: z.ZodObject<{
|
|
|
172
170
|
"verify.adminList": "verify.adminList";
|
|
173
171
|
"cleanup.orphanGhostPublicUsers": "cleanup.orphanGhostPublicUsers";
|
|
174
172
|
"delete.v1Users": "delete.v1Users";
|
|
175
|
-
"delete.v1AdminRoles": "delete.v1AdminRoles";
|
|
176
173
|
"verify.teamMemberships": "verify.teamMemberships";
|
|
177
174
|
"verify.gameRosterPlayers": "verify.gameRosterPlayers";
|
|
178
175
|
"copy.leagueTeams": "copy.leagueTeams";
|
|
@@ -219,15 +216,14 @@ export declare const MigrationStepStateSchema: z.ZodObject<{
|
|
|
219
216
|
"verify.landingPageConfig": "verify.landingPageConfig";
|
|
220
217
|
"verify.statsBeacon": "verify.statsBeacon";
|
|
221
218
|
"delete.v1LandingBase": "delete.v1LandingBase";
|
|
219
|
+
"delete.v1LandingAdmin": "delete.v1LandingAdmin";
|
|
222
220
|
"copy.waiverTemplates": "copy.waiverTemplates";
|
|
223
221
|
"verify.waiverTemplates": "verify.waiverTemplates";
|
|
224
222
|
"delete.v1Waivers": "delete.v1Waivers";
|
|
225
223
|
"copy.awardDefinitions": "copy.awardDefinitions";
|
|
226
224
|
"verify.awardDefinitions": "verify.awardDefinitions";
|
|
227
|
-
"delete.v1AwardCatalog": "delete.v1AwardCatalog";
|
|
228
225
|
"copy.gameLocations": "copy.gameLocations";
|
|
229
226
|
"verify.gameLocations": "verify.gameLocations";
|
|
230
|
-
"delete.v1GameLocations": "delete.v1GameLocations";
|
|
231
227
|
"delete.v1AdminStats": "delete.v1AdminStats";
|
|
232
228
|
"verify.v1CommerceDiscardable": "verify.v1CommerceDiscardable";
|
|
233
229
|
"verify.v1DisplayNamesUnique": "verify.v1DisplayNamesUnique";
|
|
@@ -264,7 +260,6 @@ export declare const MigrationStepStateSchema: z.ZodObject<{
|
|
|
264
260
|
"verify.adminList": "verify.adminList";
|
|
265
261
|
"cleanup.orphanGhostPublicUsers": "cleanup.orphanGhostPublicUsers";
|
|
266
262
|
"delete.v1Users": "delete.v1Users";
|
|
267
|
-
"delete.v1AdminRoles": "delete.v1AdminRoles";
|
|
268
263
|
"verify.teamMemberships": "verify.teamMemberships";
|
|
269
264
|
"verify.gameRosterPlayers": "verify.gameRosterPlayers";
|
|
270
265
|
"copy.leagueTeams": "copy.leagueTeams";
|
|
@@ -311,15 +306,14 @@ export declare const MigrationStepStateSchema: z.ZodObject<{
|
|
|
311
306
|
"verify.landingPageConfig": "verify.landingPageConfig";
|
|
312
307
|
"verify.statsBeacon": "verify.statsBeacon";
|
|
313
308
|
"delete.v1LandingBase": "delete.v1LandingBase";
|
|
309
|
+
"delete.v1LandingAdmin": "delete.v1LandingAdmin";
|
|
314
310
|
"copy.waiverTemplates": "copy.waiverTemplates";
|
|
315
311
|
"verify.waiverTemplates": "verify.waiverTemplates";
|
|
316
312
|
"delete.v1Waivers": "delete.v1Waivers";
|
|
317
313
|
"copy.awardDefinitions": "copy.awardDefinitions";
|
|
318
314
|
"verify.awardDefinitions": "verify.awardDefinitions";
|
|
319
|
-
"delete.v1AwardCatalog": "delete.v1AwardCatalog";
|
|
320
315
|
"copy.gameLocations": "copy.gameLocations";
|
|
321
316
|
"verify.gameLocations": "verify.gameLocations";
|
|
322
|
-
"delete.v1GameLocations": "delete.v1GameLocations";
|
|
323
317
|
"delete.v1AdminStats": "delete.v1AdminStats";
|
|
324
318
|
"verify.v1CommerceDiscardable": "verify.v1CommerceDiscardable";
|
|
325
319
|
"verify.v1DisplayNamesUnique": "verify.v1DisplayNamesUnique";
|
|
@@ -356,7 +350,6 @@ export declare const MigrationStepStateSchema: z.ZodObject<{
|
|
|
356
350
|
"verify.adminList": "verify.adminList";
|
|
357
351
|
"cleanup.orphanGhostPublicUsers": "cleanup.orphanGhostPublicUsers";
|
|
358
352
|
"delete.v1Users": "delete.v1Users";
|
|
359
|
-
"delete.v1AdminRoles": "delete.v1AdminRoles";
|
|
360
353
|
"verify.teamMemberships": "verify.teamMemberships";
|
|
361
354
|
"verify.gameRosterPlayers": "verify.gameRosterPlayers";
|
|
362
355
|
"copy.leagueTeams": "copy.leagueTeams";
|
|
@@ -403,15 +396,14 @@ export declare const MigrationStepStateSchema: z.ZodObject<{
|
|
|
403
396
|
"verify.landingPageConfig": "verify.landingPageConfig";
|
|
404
397
|
"verify.statsBeacon": "verify.statsBeacon";
|
|
405
398
|
"delete.v1LandingBase": "delete.v1LandingBase";
|
|
399
|
+
"delete.v1LandingAdmin": "delete.v1LandingAdmin";
|
|
406
400
|
"copy.waiverTemplates": "copy.waiverTemplates";
|
|
407
401
|
"verify.waiverTemplates": "verify.waiverTemplates";
|
|
408
402
|
"delete.v1Waivers": "delete.v1Waivers";
|
|
409
403
|
"copy.awardDefinitions": "copy.awardDefinitions";
|
|
410
404
|
"verify.awardDefinitions": "verify.awardDefinitions";
|
|
411
|
-
"delete.v1AwardCatalog": "delete.v1AwardCatalog";
|
|
412
405
|
"copy.gameLocations": "copy.gameLocations";
|
|
413
406
|
"verify.gameLocations": "verify.gameLocations";
|
|
414
|
-
"delete.v1GameLocations": "delete.v1GameLocations";
|
|
415
407
|
"delete.v1AdminStats": "delete.v1AdminStats";
|
|
416
408
|
"verify.v1CommerceDiscardable": "verify.v1CommerceDiscardable";
|
|
417
409
|
"verify.v1DisplayNamesUnique": "verify.v1DisplayNamesUnique";
|
|
@@ -534,7 +526,6 @@ export declare const GetMigrationConsoleResultSchema: z.ZodObject<{
|
|
|
534
526
|
"verify.adminList": "verify.adminList";
|
|
535
527
|
"cleanup.orphanGhostPublicUsers": "cleanup.orphanGhostPublicUsers";
|
|
536
528
|
"delete.v1Users": "delete.v1Users";
|
|
537
|
-
"delete.v1AdminRoles": "delete.v1AdminRoles";
|
|
538
529
|
"verify.teamMemberships": "verify.teamMemberships";
|
|
539
530
|
"verify.gameRosterPlayers": "verify.gameRosterPlayers";
|
|
540
531
|
"copy.leagueTeams": "copy.leagueTeams";
|
|
@@ -581,15 +572,14 @@ export declare const GetMigrationConsoleResultSchema: z.ZodObject<{
|
|
|
581
572
|
"verify.landingPageConfig": "verify.landingPageConfig";
|
|
582
573
|
"verify.statsBeacon": "verify.statsBeacon";
|
|
583
574
|
"delete.v1LandingBase": "delete.v1LandingBase";
|
|
575
|
+
"delete.v1LandingAdmin": "delete.v1LandingAdmin";
|
|
584
576
|
"copy.waiverTemplates": "copy.waiverTemplates";
|
|
585
577
|
"verify.waiverTemplates": "verify.waiverTemplates";
|
|
586
578
|
"delete.v1Waivers": "delete.v1Waivers";
|
|
587
579
|
"copy.awardDefinitions": "copy.awardDefinitions";
|
|
588
580
|
"verify.awardDefinitions": "verify.awardDefinitions";
|
|
589
|
-
"delete.v1AwardCatalog": "delete.v1AwardCatalog";
|
|
590
581
|
"copy.gameLocations": "copy.gameLocations";
|
|
591
582
|
"verify.gameLocations": "verify.gameLocations";
|
|
592
|
-
"delete.v1GameLocations": "delete.v1GameLocations";
|
|
593
583
|
"delete.v1AdminStats": "delete.v1AdminStats";
|
|
594
584
|
"verify.v1CommerceDiscardable": "verify.v1CommerceDiscardable";
|
|
595
585
|
"verify.v1DisplayNamesUnique": "verify.v1DisplayNamesUnique";
|
|
@@ -632,7 +622,6 @@ export declare const GetMigrationConsoleResultSchema: z.ZodObject<{
|
|
|
632
622
|
"verify.adminList": "verify.adminList";
|
|
633
623
|
"cleanup.orphanGhostPublicUsers": "cleanup.orphanGhostPublicUsers";
|
|
634
624
|
"delete.v1Users": "delete.v1Users";
|
|
635
|
-
"delete.v1AdminRoles": "delete.v1AdminRoles";
|
|
636
625
|
"verify.teamMemberships": "verify.teamMemberships";
|
|
637
626
|
"verify.gameRosterPlayers": "verify.gameRosterPlayers";
|
|
638
627
|
"copy.leagueTeams": "copy.leagueTeams";
|
|
@@ -679,15 +668,14 @@ export declare const GetMigrationConsoleResultSchema: z.ZodObject<{
|
|
|
679
668
|
"verify.landingPageConfig": "verify.landingPageConfig";
|
|
680
669
|
"verify.statsBeacon": "verify.statsBeacon";
|
|
681
670
|
"delete.v1LandingBase": "delete.v1LandingBase";
|
|
671
|
+
"delete.v1LandingAdmin": "delete.v1LandingAdmin";
|
|
682
672
|
"copy.waiverTemplates": "copy.waiverTemplates";
|
|
683
673
|
"verify.waiverTemplates": "verify.waiverTemplates";
|
|
684
674
|
"delete.v1Waivers": "delete.v1Waivers";
|
|
685
675
|
"copy.awardDefinitions": "copy.awardDefinitions";
|
|
686
676
|
"verify.awardDefinitions": "verify.awardDefinitions";
|
|
687
|
-
"delete.v1AwardCatalog": "delete.v1AwardCatalog";
|
|
688
677
|
"copy.gameLocations": "copy.gameLocations";
|
|
689
678
|
"verify.gameLocations": "verify.gameLocations";
|
|
690
|
-
"delete.v1GameLocations": "delete.v1GameLocations";
|
|
691
679
|
"delete.v1AdminStats": "delete.v1AdminStats";
|
|
692
680
|
"verify.v1CommerceDiscardable": "verify.v1CommerceDiscardable";
|
|
693
681
|
"verify.v1DisplayNamesUnique": "verify.v1DisplayNamesUnique";
|
|
@@ -724,7 +712,6 @@ export declare const GetMigrationConsoleResultSchema: z.ZodObject<{
|
|
|
724
712
|
"verify.adminList": "verify.adminList";
|
|
725
713
|
"cleanup.orphanGhostPublicUsers": "cleanup.orphanGhostPublicUsers";
|
|
726
714
|
"delete.v1Users": "delete.v1Users";
|
|
727
|
-
"delete.v1AdminRoles": "delete.v1AdminRoles";
|
|
728
715
|
"verify.teamMemberships": "verify.teamMemberships";
|
|
729
716
|
"verify.gameRosterPlayers": "verify.gameRosterPlayers";
|
|
730
717
|
"copy.leagueTeams": "copy.leagueTeams";
|
|
@@ -771,15 +758,14 @@ export declare const GetMigrationConsoleResultSchema: z.ZodObject<{
|
|
|
771
758
|
"verify.landingPageConfig": "verify.landingPageConfig";
|
|
772
759
|
"verify.statsBeacon": "verify.statsBeacon";
|
|
773
760
|
"delete.v1LandingBase": "delete.v1LandingBase";
|
|
761
|
+
"delete.v1LandingAdmin": "delete.v1LandingAdmin";
|
|
774
762
|
"copy.waiverTemplates": "copy.waiverTemplates";
|
|
775
763
|
"verify.waiverTemplates": "verify.waiverTemplates";
|
|
776
764
|
"delete.v1Waivers": "delete.v1Waivers";
|
|
777
765
|
"copy.awardDefinitions": "copy.awardDefinitions";
|
|
778
766
|
"verify.awardDefinitions": "verify.awardDefinitions";
|
|
779
|
-
"delete.v1AwardCatalog": "delete.v1AwardCatalog";
|
|
780
767
|
"copy.gameLocations": "copy.gameLocations";
|
|
781
768
|
"verify.gameLocations": "verify.gameLocations";
|
|
782
|
-
"delete.v1GameLocations": "delete.v1GameLocations";
|
|
783
769
|
"delete.v1AdminStats": "delete.v1AdminStats";
|
|
784
770
|
"verify.v1CommerceDiscardable": "verify.v1CommerceDiscardable";
|
|
785
771
|
"verify.v1DisplayNamesUnique": "verify.v1DisplayNamesUnique";
|
|
@@ -816,7 +802,6 @@ export declare const GetMigrationConsoleResultSchema: z.ZodObject<{
|
|
|
816
802
|
"verify.adminList": "verify.adminList";
|
|
817
803
|
"cleanup.orphanGhostPublicUsers": "cleanup.orphanGhostPublicUsers";
|
|
818
804
|
"delete.v1Users": "delete.v1Users";
|
|
819
|
-
"delete.v1AdminRoles": "delete.v1AdminRoles";
|
|
820
805
|
"verify.teamMemberships": "verify.teamMemberships";
|
|
821
806
|
"verify.gameRosterPlayers": "verify.gameRosterPlayers";
|
|
822
807
|
"copy.leagueTeams": "copy.leagueTeams";
|
|
@@ -863,15 +848,14 @@ export declare const GetMigrationConsoleResultSchema: z.ZodObject<{
|
|
|
863
848
|
"verify.landingPageConfig": "verify.landingPageConfig";
|
|
864
849
|
"verify.statsBeacon": "verify.statsBeacon";
|
|
865
850
|
"delete.v1LandingBase": "delete.v1LandingBase";
|
|
851
|
+
"delete.v1LandingAdmin": "delete.v1LandingAdmin";
|
|
866
852
|
"copy.waiverTemplates": "copy.waiverTemplates";
|
|
867
853
|
"verify.waiverTemplates": "verify.waiverTemplates";
|
|
868
854
|
"delete.v1Waivers": "delete.v1Waivers";
|
|
869
855
|
"copy.awardDefinitions": "copy.awardDefinitions";
|
|
870
856
|
"verify.awardDefinitions": "verify.awardDefinitions";
|
|
871
|
-
"delete.v1AwardCatalog": "delete.v1AwardCatalog";
|
|
872
857
|
"copy.gameLocations": "copy.gameLocations";
|
|
873
858
|
"verify.gameLocations": "verify.gameLocations";
|
|
874
|
-
"delete.v1GameLocations": "delete.v1GameLocations";
|
|
875
859
|
"delete.v1AdminStats": "delete.v1AdminStats";
|
|
876
860
|
"verify.v1CommerceDiscardable": "verify.v1CommerceDiscardable";
|
|
877
861
|
"verify.v1DisplayNamesUnique": "verify.v1DisplayNamesUnique";
|
|
@@ -988,7 +972,6 @@ export declare const RecordMigrationControlRunInputSchema: z.ZodObject<{
|
|
|
988
972
|
"verify.adminList": "verify.adminList";
|
|
989
973
|
"cleanup.orphanGhostPublicUsers": "cleanup.orphanGhostPublicUsers";
|
|
990
974
|
"delete.v1Users": "delete.v1Users";
|
|
991
|
-
"delete.v1AdminRoles": "delete.v1AdminRoles";
|
|
992
975
|
"verify.teamMemberships": "verify.teamMemberships";
|
|
993
976
|
"verify.gameRosterPlayers": "verify.gameRosterPlayers";
|
|
994
977
|
"copy.leagueTeams": "copy.leagueTeams";
|
|
@@ -1035,15 +1018,14 @@ export declare const RecordMigrationControlRunInputSchema: z.ZodObject<{
|
|
|
1035
1018
|
"verify.landingPageConfig": "verify.landingPageConfig";
|
|
1036
1019
|
"verify.statsBeacon": "verify.statsBeacon";
|
|
1037
1020
|
"delete.v1LandingBase": "delete.v1LandingBase";
|
|
1021
|
+
"delete.v1LandingAdmin": "delete.v1LandingAdmin";
|
|
1038
1022
|
"copy.waiverTemplates": "copy.waiverTemplates";
|
|
1039
1023
|
"verify.waiverTemplates": "verify.waiverTemplates";
|
|
1040
1024
|
"delete.v1Waivers": "delete.v1Waivers";
|
|
1041
1025
|
"copy.awardDefinitions": "copy.awardDefinitions";
|
|
1042
1026
|
"verify.awardDefinitions": "verify.awardDefinitions";
|
|
1043
|
-
"delete.v1AwardCatalog": "delete.v1AwardCatalog";
|
|
1044
1027
|
"copy.gameLocations": "copy.gameLocations";
|
|
1045
1028
|
"verify.gameLocations": "verify.gameLocations";
|
|
1046
|
-
"delete.v1GameLocations": "delete.v1GameLocations";
|
|
1047
1029
|
"delete.v1AdminStats": "delete.v1AdminStats";
|
|
1048
1030
|
"verify.v1CommerceDiscardable": "verify.v1CommerceDiscardable";
|
|
1049
1031
|
"verify.v1DisplayNamesUnique": "verify.v1DisplayNamesUnique";
|
|
@@ -1083,7 +1065,6 @@ export declare const RecordMigrationCheckpointInputSchema: z.ZodObject<{
|
|
|
1083
1065
|
"verify.adminList": "verify.adminList";
|
|
1084
1066
|
"cleanup.orphanGhostPublicUsers": "cleanup.orphanGhostPublicUsers";
|
|
1085
1067
|
"delete.v1Users": "delete.v1Users";
|
|
1086
|
-
"delete.v1AdminRoles": "delete.v1AdminRoles";
|
|
1087
1068
|
"verify.teamMemberships": "verify.teamMemberships";
|
|
1088
1069
|
"verify.gameRosterPlayers": "verify.gameRosterPlayers";
|
|
1089
1070
|
"copy.leagueTeams": "copy.leagueTeams";
|
|
@@ -1130,15 +1111,14 @@ export declare const RecordMigrationCheckpointInputSchema: z.ZodObject<{
|
|
|
1130
1111
|
"verify.landingPageConfig": "verify.landingPageConfig";
|
|
1131
1112
|
"verify.statsBeacon": "verify.statsBeacon";
|
|
1132
1113
|
"delete.v1LandingBase": "delete.v1LandingBase";
|
|
1114
|
+
"delete.v1LandingAdmin": "delete.v1LandingAdmin";
|
|
1133
1115
|
"copy.waiverTemplates": "copy.waiverTemplates";
|
|
1134
1116
|
"verify.waiverTemplates": "verify.waiverTemplates";
|
|
1135
1117
|
"delete.v1Waivers": "delete.v1Waivers";
|
|
1136
1118
|
"copy.awardDefinitions": "copy.awardDefinitions";
|
|
1137
1119
|
"verify.awardDefinitions": "verify.awardDefinitions";
|
|
1138
|
-
"delete.v1AwardCatalog": "delete.v1AwardCatalog";
|
|
1139
1120
|
"copy.gameLocations": "copy.gameLocations";
|
|
1140
1121
|
"verify.gameLocations": "verify.gameLocations";
|
|
1141
|
-
"delete.v1GameLocations": "delete.v1GameLocations";
|
|
1142
1122
|
"delete.v1AdminStats": "delete.v1AdminStats";
|
|
1143
1123
|
"verify.v1CommerceDiscardable": "verify.v1CommerceDiscardable";
|
|
1144
1124
|
"verify.v1DisplayNamesUnique": "verify.v1DisplayNamesUnique";
|
|
@@ -1181,7 +1161,6 @@ export declare const RecordMigrationStepResultSchema: z.ZodObject<{
|
|
|
1181
1161
|
"verify.adminList": "verify.adminList";
|
|
1182
1162
|
"cleanup.orphanGhostPublicUsers": "cleanup.orphanGhostPublicUsers";
|
|
1183
1163
|
"delete.v1Users": "delete.v1Users";
|
|
1184
|
-
"delete.v1AdminRoles": "delete.v1AdminRoles";
|
|
1185
1164
|
"verify.teamMemberships": "verify.teamMemberships";
|
|
1186
1165
|
"verify.gameRosterPlayers": "verify.gameRosterPlayers";
|
|
1187
1166
|
"copy.leagueTeams": "copy.leagueTeams";
|
|
@@ -1228,15 +1207,14 @@ export declare const RecordMigrationStepResultSchema: z.ZodObject<{
|
|
|
1228
1207
|
"verify.landingPageConfig": "verify.landingPageConfig";
|
|
1229
1208
|
"verify.statsBeacon": "verify.statsBeacon";
|
|
1230
1209
|
"delete.v1LandingBase": "delete.v1LandingBase";
|
|
1210
|
+
"delete.v1LandingAdmin": "delete.v1LandingAdmin";
|
|
1231
1211
|
"copy.waiverTemplates": "copy.waiverTemplates";
|
|
1232
1212
|
"verify.waiverTemplates": "verify.waiverTemplates";
|
|
1233
1213
|
"delete.v1Waivers": "delete.v1Waivers";
|
|
1234
1214
|
"copy.awardDefinitions": "copy.awardDefinitions";
|
|
1235
1215
|
"verify.awardDefinitions": "verify.awardDefinitions";
|
|
1236
|
-
"delete.v1AwardCatalog": "delete.v1AwardCatalog";
|
|
1237
1216
|
"copy.gameLocations": "copy.gameLocations";
|
|
1238
1217
|
"verify.gameLocations": "verify.gameLocations";
|
|
1239
|
-
"delete.v1GameLocations": "delete.v1GameLocations";
|
|
1240
1218
|
"delete.v1AdminStats": "delete.v1AdminStats";
|
|
1241
1219
|
"verify.v1CommerceDiscardable": "verify.v1CommerceDiscardable";
|
|
1242
1220
|
"verify.v1DisplayNamesUnique": "verify.v1DisplayNamesUnique";
|
|
@@ -1276,7 +1254,6 @@ export declare const RecordMigrationStepResultSchema: z.ZodObject<{
|
|
|
1276
1254
|
"verify.adminList": "verify.adminList";
|
|
1277
1255
|
"cleanup.orphanGhostPublicUsers": "cleanup.orphanGhostPublicUsers";
|
|
1278
1256
|
"delete.v1Users": "delete.v1Users";
|
|
1279
|
-
"delete.v1AdminRoles": "delete.v1AdminRoles";
|
|
1280
1257
|
"verify.teamMemberships": "verify.teamMemberships";
|
|
1281
1258
|
"verify.gameRosterPlayers": "verify.gameRosterPlayers";
|
|
1282
1259
|
"copy.leagueTeams": "copy.leagueTeams";
|
|
@@ -1323,15 +1300,14 @@ export declare const RecordMigrationStepResultSchema: z.ZodObject<{
|
|
|
1323
1300
|
"verify.landingPageConfig": "verify.landingPageConfig";
|
|
1324
1301
|
"verify.statsBeacon": "verify.statsBeacon";
|
|
1325
1302
|
"delete.v1LandingBase": "delete.v1LandingBase";
|
|
1303
|
+
"delete.v1LandingAdmin": "delete.v1LandingAdmin";
|
|
1326
1304
|
"copy.waiverTemplates": "copy.waiverTemplates";
|
|
1327
1305
|
"verify.waiverTemplates": "verify.waiverTemplates";
|
|
1328
1306
|
"delete.v1Waivers": "delete.v1Waivers";
|
|
1329
1307
|
"copy.awardDefinitions": "copy.awardDefinitions";
|
|
1330
1308
|
"verify.awardDefinitions": "verify.awardDefinitions";
|
|
1331
|
-
"delete.v1AwardCatalog": "delete.v1AwardCatalog";
|
|
1332
1309
|
"copy.gameLocations": "copy.gameLocations";
|
|
1333
1310
|
"verify.gameLocations": "verify.gameLocations";
|
|
1334
|
-
"delete.v1GameLocations": "delete.v1GameLocations";
|
|
1335
1311
|
"delete.v1AdminStats": "delete.v1AdminStats";
|
|
1336
1312
|
"verify.v1CommerceDiscardable": "verify.v1CommerceDiscardable";
|
|
1337
1313
|
"verify.v1DisplayNamesUnique": "verify.v1DisplayNamesUnique";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migration-console.d.ts","sourceRoot":"","sources":["../../src/schemas/migration-console.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAQhF,eAAO,MAAM,0BAA0B,KAAK,CAAC;AAE7C,eAAO,MAAM,6BAA6B;;;;;;;kBAS/B,CAAC;AACZ,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAGpF,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,IAAI,CAAC,uBAAuB,EAAE,aAAa,CAAC,eAEzF;AAED,eAAO,MAAM,+BAA+B
|
|
1
|
+
{"version":3,"file":"migration-console.d.ts","sourceRoot":"","sources":["../../src/schemas/migration-console.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAQhF,eAAO,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F,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAMjC,CAAC;AACZ,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedules.d.ts","sourceRoot":"","sources":["../../src/schemas/schedules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkBxB,eAAO,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"schedules.d.ts","sourceRoot":"","sources":["../../src/schemas/schedules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkBxB,eAAO,MAAM,uBAAuB,wDAA6C,CAAC;AAElF,eAAO,MAAM,uBAAuB,8CAMiD,CAAC;AACtF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AASxE,eAAO,MAAM,uBAAuB;;;;;kBAAuC,CAAC;AAC5E,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,4BAA4B;;;;;;;EAAyC,CAAC;AACnF,eAAO,MAAM,uBAAuB;;;;EAAmC,CAAC;AAExE,eAAO,MAAM,kCAAkC;;;;;;;;;;;kBAQpC,CAAC;AACZ,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,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MAAM,+BAA+B;;kBAA8C,CAAC;AAC3F,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACxF,eAAO,MAAM,gCAAgC;;;;kBAElC,CAAC;AACZ,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { MAX_SCHEDULE_WEEK_GAMES } from '../constants/business.js';
|
|
3
|
-
import { textFieldSchema } from '
|
|
4
|
-
import {
|
|
3
|
+
import { textFieldSchema } from './text-field.js';
|
|
4
|
+
import { SCHEDULE_WEEK_TITLE_INPUT } from '../constants/text-fields.js';
|
|
5
5
|
import { countSchema, epochMsSchema, gameIdSchema, leagueIdSchema, scheduleWeekIdSchema, statsOperationIdSchema, teamIdSchema, } from '../doc-schemas/atoms.js';
|
|
6
6
|
import { gameLocationIdSchema } from '../doc-schemas/game-location.js';
|
|
7
7
|
import { isByeTeamId } from '../ids/minted-ids.js';
|
|
8
8
|
import { SCHEDULE_WEEK_FIELD_KEYS, SPORT_GAME_SCHEDULE_FIELD_KEYS } from '../types/schedules.js';
|
|
9
9
|
import { gameLocationSubLocationSchema } from '../doc-schemas/game-location.js';
|
|
10
|
-
export const scheduleWeekTitleSchema = textFieldSchema(
|
|
10
|
+
export const scheduleWeekTitleSchema = textFieldSchema(SCHEDULE_WEEK_TITLE_INPUT);
|
|
11
11
|
export const scheduleGameTeamsSchema = z
|
|
12
12
|
.tuple([teamIdSchema, teamIdSchema])
|
|
13
13
|
.refine(([first, second]) => !(isByeTeamId(first) && isByeTeamId(second)), 'A game needs at least one team.')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedules.js","sourceRoot":"","sources":["../../src/schemas/schedules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;A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,MAAM,EAAE,YAAY;IACpB,iBAAiB,EAAE,aAAa;IAChC,MAAM,EAAE,oBAAoB;IAC5B,KAAK,EAAE,uBAAuB;IAC9B,SAAS,EAAE,aAAa;IACxB,cAAc,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IAC/C,WAAW,EAAE,6BAA6B,CAAC,QAAQ,EAAE;CACtD,CAAC;KACD,MAAM,EAAE;KACR,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW,KAAK,SAAS,IAAI,KAAK,CAAC,cAAc,KAAK,SAAS,EAAE;IACxF,OAAO,EAAE,mCAAmC;IAC5C,IAAI,EAAE,CAAC,aAAa,CAAC;CACtB,CAAC,CAAC;AAEL,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC;KAC9C,MAAM,CAAC;IACN,MAAM,EAAE,YAAY;IACpB,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,4BAA4B,CAAC;IACpD,SAAS,EAAE,aAAa;CACzB,CAAC;KACD,MAAM,EAAE,CAAC;AAGZ,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;AAE3F,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC;KAC9C,MAAM,CAAC,EAAE,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,sBAAsB,EAAE,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC;KAC5F,MAAM,EAAE,CAAC","sourcesContent":["import { z } from 'zod';\nimport { MAX_SCHEDULE_WEEK_GAMES } from '../constants/business.js';\nimport { textFieldSchema } from './text-field.js';\nimport { SCHEDULE_WEEK_TITLE_INPUT } from '../constants/text-fields.js';\nimport {\n countSchema,\n epochMsSchema,\n gameIdSchema,\n leagueIdSchema,\n scheduleWeekIdSchema,\n statsOperationIdSchema,\n teamIdSchema,\n} from '../doc-schemas/atoms.js';\nimport { gameLocationIdSchema } from '../doc-schemas/game-location.js';\nimport { isByeTeamId } from '../ids/minted-ids.js';\nimport { SCHEDULE_WEEK_FIELD_KEYS, SPORT_GAME_SCHEDULE_FIELD_KEYS } from '../types/schedules.js';\nimport { gameLocationSubLocationSchema } from '../doc-schemas/game-location.js';\n\nexport const scheduleWeekTitleSchema = textFieldSchema(SCHEDULE_WEEK_TITLE_INPUT);\n\nexport const scheduleGameTeamsSchema = z\n .tuple([teamIdSchema, teamIdSchema])\n .refine(\n ([first, second]) => !(isByeTeamId(first) && isByeTeamId(second)),\n 'A game needs at least one team.',\n )\n .refine(([first, second]) => first !== second, 'A game needs two different teams.');\nexport type ScheduleGameTeams = z.infer<typeof scheduleGameTeamsSchema>;\n\nconst scheduleGameShape = {\n teams: scheduleGameTeamsSchema,\n startTime: epochMsSchema,\n gameLocationId: gameLocationIdSchema,\n subLocation: gameLocationSubLocationSchema.optional(),\n};\n\nexport const ScheduleGameInputSchema = z.object(scheduleGameShape).strict();\nexport type ScheduleGameInput = z.infer<typeof ScheduleGameInputSchema>;\n\nexport const sportGameScheduleFieldSchema = z.enum(SPORT_GAME_SCHEDULE_FIELD_KEYS);\nexport const scheduleWeekFieldSchema = z.enum(SCHEDULE_WEEK_FIELD_KEYS);\n\nexport const AdminCreateScheduleWeekInputSchema = z\n .object({\n leagueId: leagueIdSchema,\n weekTitle: scheduleWeekTitleSchema,\n weekStartDate: epochMsSchema,\n weekGameLocationId: gameLocationIdSchema,\n games: z.array(ScheduleGameInputSchema).min(1).max(MAX_SCHEDULE_WEEK_GAMES),\n })\n .strict();\nexport type AdminCreateScheduleWeekInput = z.infer<typeof AdminCreateScheduleWeekInputSchema>;\nexport const AdminCreateScheduleWeekResultSchema = z\n .object({\n leagueId: leagueIdSchema,\n weekId: scheduleWeekIdSchema,\n gameIds: z.array(gameIdSchema),\n })\n .strict();\nexport type AdminCreateScheduleWeekResult = z.infer<typeof AdminCreateScheduleWeekResultSchema>;\n\nexport const AdminUpdateScheduleWeekInputSchema = z\n .object({\n leagueId: leagueIdSchema,\n weekId: scheduleWeekIdSchema,\n weekTitle: scheduleWeekTitleSchema.optional(),\n weekStartDate: epochMsSchema.optional(),\n weekGameLocationId: gameLocationIdSchema.optional(),\n })\n .strict()\n .refine(\n (input) =>\n input.weekTitle !== undefined ||\n input.weekStartDate !== undefined ||\n input.weekGameLocationId !== undefined,\n 'Name at least one field to change.',\n );\nexport type AdminUpdateScheduleWeekInput = z.infer<typeof AdminUpdateScheduleWeekInputSchema>;\nexport const AdminUpdateScheduleWeekResultSchema = z\n .object({\n leagueId: leagueIdSchema,\n weekId: scheduleWeekIdSchema,\n changedFields: z.array(scheduleWeekFieldSchema),\n gamesUpdated: countSchema,\n })\n .strict();\nexport type AdminUpdateScheduleWeekResult = z.infer<typeof AdminUpdateScheduleWeekResultSchema>;\n\nexport const AdminDeleteScheduleWeekInputSchema = z\n .object({ leagueId: leagueIdSchema, weekId: scheduleWeekIdSchema })\n .strict();\nexport type AdminDeleteScheduleWeekInput = z.infer<typeof AdminDeleteScheduleWeekInputSchema>;\nexport const AdminDeleteScheduleWeekResultSchema = z\n .object({\n leagueId: leagueIdSchema,\n weekId: scheduleWeekIdSchema,\n deletedGameIds: z.array(gameIdSchema),\n remainingGameIds: z.array(gameIdSchema),\n complete: z.boolean(),\n })\n .strict();\nexport type AdminDeleteScheduleWeekResult = z.infer<typeof AdminDeleteScheduleWeekResultSchema>;\n\nexport const AdminCreateSportGameInputSchema = z\n .object({ leagueId: leagueIdSchema, weekId: scheduleWeekIdSchema, ...scheduleGameShape })\n .strict();\nexport type AdminCreateSportGameInput = z.infer<typeof AdminCreateSportGameInputSchema>;\nexport const AdminCreateSportGameResultSchema = z\n .object({ leagueId: leagueIdSchema, weekId: scheduleWeekIdSchema, gameId: gameIdSchema })\n .strict();\nexport type AdminCreateSportGameResult = z.infer<typeof AdminCreateSportGameResultSchema>;\n\nexport const AdminUpdateSportGameInputSchema = z\n .object({\n gameId: gameIdSchema,\n expectedUpdatedAt: epochMsSchema,\n weekId: scheduleWeekIdSchema,\n teams: scheduleGameTeamsSchema,\n startTime: epochMsSchema,\n gameLocationId: gameLocationIdSchema.optional(),\n subLocation: gameLocationSubLocationSchema.optional(),\n })\n .strict()\n .refine((input) => input.subLocation === undefined || input.gameLocationId !== undefined, {\n message: 'A court is chosen within a venue.',\n path: ['subLocation'],\n });\nexport type AdminUpdateSportGameInput = z.infer<typeof AdminUpdateSportGameInputSchema>;\nexport const AdminUpdateSportGameResultSchema = z\n .object({\n gameId: gameIdSchema,\n changedFields: z.array(sportGameScheduleFieldSchema),\n updatedAt: epochMsSchema,\n })\n .strict();\nexport type AdminUpdateSportGameResult = z.infer<typeof AdminUpdateSportGameResultSchema>;\n\nexport const AdminDeleteSportGameInputSchema = z.object({ gameId: gameIdSchema }).strict();\nexport type AdminDeleteSportGameInput = z.infer<typeof AdminDeleteSportGameInputSchema>;\nexport const AdminDeleteSportGameResultSchema = z\n .object({ gameId: gameIdSchema, operationId: statsOperationIdSchema, complete: z.boolean() })\n .strict();\nexport type AdminDeleteSportGameResult = z.infer<typeof AdminDeleteSportGameResultSchema>;\n"]}
|
|
@@ -33,8 +33,8 @@ export declare const StatEventSubmissionSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
33
33
|
}, z.core.$strict>, z.ZodObject<{
|
|
34
34
|
previousValue: z.ZodNumber;
|
|
35
35
|
eventId: z.ZodString;
|
|
36
|
-
type: z.ZodLiteral<"BULK_EDIT">;
|
|
37
36
|
value: z.ZodNumber;
|
|
37
|
+
type: z.ZodLiteral<"BULK_EDIT">;
|
|
38
38
|
recordedAt: z.ZodNumber;
|
|
39
39
|
teamId: z.ZodString;
|
|
40
40
|
playerUserId: z.ZodString;
|
|
@@ -66,8 +66,8 @@ export declare const StatEventSubmissionSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
66
66
|
teamId: z.ZodString;
|
|
67
67
|
}, z.core.$strict>, z.ZodObject<{
|
|
68
68
|
eventId: z.ZodString;
|
|
69
|
-
type: z.ZodLiteral<"FOOTBALL_BULK_EDIT">;
|
|
70
69
|
value: z.ZodNumber;
|
|
70
|
+
type: z.ZodLiteral<"FOOTBALL_BULK_EDIT">;
|
|
71
71
|
recordedAt: z.ZodNumber;
|
|
72
72
|
teamId: z.ZodString;
|
|
73
73
|
previousValue: z.ZodNumber;
|
|
@@ -76,9 +76,9 @@ export declare const StatEventSubmissionSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
76
76
|
type: z.ZodLiteral<"STAT_VOID">;
|
|
77
77
|
recordedAt: z.ZodNumber;
|
|
78
78
|
}, z.core.$strict>, z.ZodObject<{
|
|
79
|
-
type: z.ZodLiteral<"STAT_CORRECTION">;
|
|
80
79
|
value: z.ZodNumber;
|
|
81
80
|
reason: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
81
|
+
type: z.ZodLiteral<"STAT_CORRECTION">;
|
|
82
82
|
operationId: z.ZodString;
|
|
83
83
|
recordedAt: z.ZodNumber;
|
|
84
84
|
teamId: z.ZodString;
|
|
@@ -133,8 +133,8 @@ export declare const RecordGameStatEventsInputSchema: z.ZodObject<{
|
|
|
133
133
|
}, z.core.$strict>, z.ZodObject<{
|
|
134
134
|
previousValue: z.ZodNumber;
|
|
135
135
|
eventId: z.ZodString;
|
|
136
|
-
type: z.ZodLiteral<"BULK_EDIT">;
|
|
137
136
|
value: z.ZodNumber;
|
|
137
|
+
type: z.ZodLiteral<"BULK_EDIT">;
|
|
138
138
|
recordedAt: z.ZodNumber;
|
|
139
139
|
teamId: z.ZodString;
|
|
140
140
|
playerUserId: z.ZodString;
|
|
@@ -166,8 +166,8 @@ export declare const RecordGameStatEventsInputSchema: z.ZodObject<{
|
|
|
166
166
|
teamId: z.ZodString;
|
|
167
167
|
}, z.core.$strict>, z.ZodObject<{
|
|
168
168
|
eventId: z.ZodString;
|
|
169
|
-
type: z.ZodLiteral<"FOOTBALL_BULK_EDIT">;
|
|
170
169
|
value: z.ZodNumber;
|
|
170
|
+
type: z.ZodLiteral<"FOOTBALL_BULK_EDIT">;
|
|
171
171
|
recordedAt: z.ZodNumber;
|
|
172
172
|
teamId: z.ZodString;
|
|
173
173
|
previousValue: z.ZodNumber;
|
|
@@ -176,9 +176,9 @@ export declare const RecordGameStatEventsInputSchema: z.ZodObject<{
|
|
|
176
176
|
type: z.ZodLiteral<"STAT_VOID">;
|
|
177
177
|
recordedAt: z.ZodNumber;
|
|
178
178
|
}, z.core.$strict>, z.ZodObject<{
|
|
179
|
-
type: z.ZodLiteral<"STAT_CORRECTION">;
|
|
180
179
|
value: z.ZodNumber;
|
|
181
180
|
reason: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
181
|
+
type: z.ZodLiteral<"STAT_CORRECTION">;
|
|
182
182
|
operationId: z.ZodString;
|
|
183
183
|
recordedAt: z.ZodNumber;
|
|
184
184
|
teamId: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scoring.d.ts","sourceRoot":"","sources":["../../src/schemas/scoring.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAmDxB,eAAO,MAAM,sBAAsB,aAGlC,CAAC;AAIF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAmBpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAKjC,CAAC;AACZ,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAA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CAAC;AAEpF,eAAO,MAAM,8BAA8B;;;;kBAMhC,CAAC;AACZ,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC"}
|
package/dist/schemas/scoring.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { MAX_STAT_EVENTS_PER_WRITE } from '../constants/sports.js';
|
|
3
3
|
import { isSportStatEventId } from '../ids/stat-event-ids.js';
|
|
4
|
-
import {
|
|
4
|
+
import { GAME_MEMO_INPUT } from '../constants/text-fields.js';
|
|
5
5
|
import { BasketballAssistableShotEventSchema, BasketballBulkEditEventSchema, BasketballOnePointEventSchema, BasketballPlayerTallyEventSchema, BasketballTimeoutEventSchema, CurlingBlankEndEventSchema, CurlingRoundScoreEventSchema, FootballBulkEditEventSchema, FootballScoreEventSchema, StatCorrectionEventSchema, StatVoidEventSchema, } from '../doc-schemas/game-stats.js';
|
|
6
6
|
import { RECORDED_STAT_EVENT_OUTCOME_KEYS, STAT_EVENT_RECORDER_FIELD_KEYS, STAT_EVENT_REFUSAL_KEYS, STAT_EVENT_SNAPSHOT_FIELD_KEYS, } from '../types/stats.js';
|
|
7
|
-
import { countSchema, gameIdSchema, gameRosterPlayerIdSchema, statEventIdSchema, teamIdSchema,
|
|
7
|
+
import { countSchema, gameIdSchema, gameRosterPlayerIdSchema, statEventIdSchema, teamIdSchema, userIdSchema, } from '../doc-schemas/atoms.js';
|
|
8
|
+
import { textFieldSchema } from './text-field.js';
|
|
8
9
|
const SERVER_DERIVED_FIELDS = new Set([
|
|
9
10
|
...STAT_EVENT_RECORDER_FIELD_KEYS,
|
|
10
11
|
...STAT_EVENT_SNAPSHOT_FIELD_KEYS,
|
|
@@ -75,7 +76,7 @@ export const UpdateGameAbsentPlayersResultSchema = z
|
|
|
75
76
|
changed: z.boolean(),
|
|
76
77
|
})
|
|
77
78
|
.strict();
|
|
78
|
-
export const gameMemoSchema = textFieldSchema(
|
|
79
|
+
export const gameMemoSchema = textFieldSchema(GAME_MEMO_INPUT);
|
|
79
80
|
export const UpdateGameMemoInputSchema = z
|
|
80
81
|
.object({
|
|
81
82
|
gameId: gameIdSchema,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scoring.js","sourceRoot":"","sources":["../../src/schemas/scoring.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAC3E,OAAO,EACL,mCAAmC,EACnC,6BAA6B,EAC7B,6BAA6B,EAC7B,gCAAgC,EAChC,4BAA4B,EAC5B,0BAA0B,EAC1B,4BAA4B,EAC5B,2BAA2B,EAC3B,wBAAwB,EACxB,yBAAyB,EACzB,mBAAmB,GACpB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,gCAAgC,EAChC,8BAA8B,EAC9B,uBAAuB,EACvB,8BAA8B,GAC/B,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,WAAW,EACX,YAAY,EACZ,wBAAwB,EACxB,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,YAAY,GACb,MAAM,yBAAyB,CAAC;AAGjC,MAAM,qBAAqB,GAAwB,IAAI,GAAG,CAAC;IACzD,GAAG,8BAA8B;IACjC,GAAG,8BAA8B;CAClC,CAAC,CAAC;AAEH,SAAS,WAAW,CAClB,KAAY,EACZ,UAA8B,EAAE;IAEhC,MAAM,OAAO,GAAG,IAAI,GAAG,CAAc,CAAC,GAAG,qBAAqB,EAAE,GAAG,OAAO,CAAC,CAAC,CAAC;IAC7E,OAAO,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,CA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CAAC","sourcesContent":["import { z } from 'zod';\nimport { MAX_STAT_EVENTS_PER_WRITE } from '../constants/sports.js';\nimport { isSportStatEventId } from '../ids/stat-event-ids.js';\nimport { GAME_MEMO_INPUT_FORMAT } from '../input-formats/input-formats.js';\nimport {\n BasketballAssistableShotEventSchema,\n BasketballBulkEditEventSchema,\n BasketballOnePointEventSchema,\n BasketballPlayerTallyEventSchema,\n BasketballTimeoutEventSchema,\n CurlingBlankEndEventSchema,\n CurlingRoundScoreEventSchema,\n FootballBulkEditEventSchema,\n FootballScoreEventSchema,\n StatCorrectionEventSchema,\n StatVoidEventSchema,\n} from '../doc-schemas/game-stats.js';\nimport {\n RECORDED_STAT_EVENT_OUTCOME_KEYS,\n STAT_EVENT_RECORDER_FIELD_KEYS,\n STAT_EVENT_REFUSAL_KEYS,\n STAT_EVENT_SNAPSHOT_FIELD_KEYS,\n} from '../types/stats.js';\nimport type { StatEventRecorderField, StatEventSnapshotField } from '../types/stats.js';\nimport {\n countSchema,\n gameIdSchema,\n gameRosterPlayerIdSchema,\n statEventIdSchema,\n teamIdSchema,\n textFieldSchema,\n userIdSchema,\n} from '../doc-schemas/atoms.js';\n\ntype ServerDerivedField = StatEventRecorderField | StatEventSnapshotField;\nconst SERVER_DERIVED_FIELDS: ReadonlySet<string> = new Set([\n ...STAT_EVENT_RECORDER_FIELD_KEYS,\n ...STAT_EVENT_SNAPSHOT_FIELD_KEYS,\n]);\n\nfunction callerShape<Shape extends z.ZodRawShape, Omitted extends keyof Shape = never>(\n shape: Shape,\n omitted: readonly Omitted[] = [],\n): Omit<Shape, ServerDerivedField | Omitted> {\n const dropped = new Set<PropertyKey>([...SERVER_DERIVED_FIELDS, ...omitted]);\n return Object.fromEntries(Object.entries(shape).filter(([field]) => !dropped.has(field))) as Omit<\n Shape,\n ServerDerivedField | Omitted\n >;\n}\n\nexport const sportStatEventIdSchema = statEventIdSchema.refine(\n isSportStatEventId,\n 'Not a stat event id.',\n);\n\nconst sportEventId = { eventId: sportStatEventIdSchema };\n\nexport const StatEventSubmissionSchema = z.discriminatedUnion('type', [\n z.strictObject({ ...callerShape(BasketballOnePointEventSchema.shape), ...sportEventId }),\n z.strictObject({ ...callerShape(BasketballAssistableShotEventSchema.shape), ...sportEventId }),\n z.strictObject({ ...callerShape(BasketballPlayerTallyEventSchema.shape), ...sportEventId }),\n z.strictObject({ ...callerShape(BasketballTimeoutEventSchema.shape), ...sportEventId }),\n z.strictObject({\n ...callerShape(BasketballBulkEditEventSchema.shape),\n ...sportEventId,\n previousValue: countSchema,\n }),\n z.strictObject({ ...callerShape(CurlingRoundScoreEventSchema.shape), ...sportEventId }),\n z.strictObject({ ...callerShape(CurlingBlankEndEventSchema.shape), ...sportEventId }),\n z.strictObject({ ...callerShape(FootballScoreEventSchema.shape), ...sportEventId }),\n z.strictObject({ ...callerShape(FootballBulkEditEventSchema.shape), ...sportEventId }),\n z.strictObject({\n ...callerShape(StatVoidEventSchema.shape, ['eventId']),\n targetEventId: sportStatEventIdSchema,\n }),\n z.strictObject(callerShape(StatCorrectionEventSchema.shape)),\n]);\nexport type StatEventSubmission = z.infer<typeof StatEventSubmissionSchema>;\n\nexport const RecordGameStatEventsInputSchema = z\n .object({\n gameId: gameIdSchema,\n events: z.array(StatEventSubmissionSchema).min(1).max(MAX_STAT_EVENTS_PER_WRITE),\n })\n .strict();\nexport type RecordGameStatEventsInput = z.infer<typeof RecordGameStatEventsInputSchema>;\n\nexport const RecordedStatEventSchema = z\n .object({\n eventId: statEventIdSchema,\n outcome: z.enum(RECORDED_STAT_EVENT_OUTCOME_KEYS),\n sequence: z.number().int().positive(),\n })\n .strict();\nexport type RecordedStatEvent = z.infer<typeof RecordedStatEventSchema>;\n\nexport const RecordGameStatEventsResultSchema = z\n .object({\n gameId: gameIdSchema,\n events: z.array(RecordedStatEventSchema),\n })\n .strict();\nexport type RecordGameStatEventsResult = z.infer<typeof RecordGameStatEventsResultSchema>;\n\nexport const StatEventRefusalDetailsSchema = z\n .object({\n refusal: z.enum(STAT_EVENT_REFUSAL_KEYS),\n eventId: statEventIdSchema,\n })\n .strict();\nexport type StatEventRefusalDetails = z.infer<typeof StatEventRefusalDetailsSchema>;\n\nexport const UpdateGameAbsentPlayersInputSchema = z\n .object({\n gameId: gameIdSchema,\n gameRosterPlayerId: gameRosterPlayerIdSchema,\n absent: z.boolean(),\n })\n .strict();\nexport type UpdateGameAbsentPlayersInput = z.infer<typeof UpdateGameAbsentPlayersInputSchema>;\n\nexport const UpdateGameAbsentPlayersResultSchema = z\n .object({\n gameId: gameIdSchema,\n gameRosterPlayerId: gameRosterPlayerIdSchema,\n absent: z.boolean(),\n changed: z.boolean(),\n })\n .strict();\nexport type UpdateGameAbsentPlayersResult = z.infer<typeof UpdateGameAbsentPlayersResultSchema>;\n\nexport const gameMemoSchema = textFieldSchema(GAME_MEMO_INPUT_FORMAT);\n\nexport const UpdateGameMemoInputSchema = z\n .object({\n gameId: gameIdSchema,\n userId: userIdSchema,\n memo: gameMemoSchema,\n })\n .strict();\nexport type UpdateGameMemoInput = z.infer<typeof UpdateGameMemoInputSchema>;\n\nexport const UpdateGameMemoResultSchema = z\n .object({\n gameId: gameIdSchema,\n userId: userIdSchema,\n memo: z.string(),\n changed: z.boolean(),\n })\n .strict();\nexport type UpdateGameMemoResult = z.infer<typeof UpdateGameMemoResultSchema>;\n\nexport const UpdateGameJumpBallInputSchema = z\n .object({\n gameId: gameIdSchema,\n teamId: teamIdSchema,\n })\n .strict();\nexport type UpdateGameJumpBallInput = z.infer<typeof UpdateGameJumpBallInputSchema>;\n\nexport const UpdateGameJumpBallResultSchema = z\n .object({\n gameId: gameIdSchema,\n teamId: teamIdSchema,\n changed: z.boolean(),\n })\n .strict();\nexport type UpdateGameJumpBallResult = z.infer<typeof UpdateGameJumpBallResultSchema>;\n"]}
|
|
1
|
+
{"version":3,"file":"scoring.js","sourceRoot":"","sources":["../../src/schemas/scoring.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,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;KACjD,MAAM,CAAC;IACN,MAAM,EAAE,YAAY;IACpB,kBAAkB,EAAE,wBAAwB;IAC5C,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;IACnB,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;CACrB,CAAC;KACD,MAAM,EAAE,CAAC;AAGZ,MAAM,CAAC,MAAM,cAAc,GAAG,eAAe,CAAC,eAAe,CAAC,CAAC;AAE/D,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC;KACvC,MAAM,CAAC;IACN,MAAM,EAAE,YAAY;IACpB,MAAM,EAAE,YAAY;IACpB,IAAI,EAAE,cAAc;CACrB,CAAC;KACD,MAAM,EAAE,CAAC;AAGZ,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC;KACxC,MAAM,CAAC;IACN,MAAM,EAAE,YAAY;IACpB,MAAM,EAAE,YAAY;IACpB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;CACrB,CAAC;KACD,MAAM,EAAE,CAAC;AAGZ,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC;KAC3C,MAAM,CAAC;IACN,MAAM,EAAE,YAAY;IACpB,MAAM,EAAE,YAAY;CACrB,CAAC;KACD,MAAM,EAAE,CAAC;AAGZ,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC;KAC5C,MAAM,CAAC;IACN,MAAM,EAAE,YAAY;IACpB,MAAM,EAAE,YAAY;IACpB,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;CACrB,CAAC;KACD,MAAM,EAAE,CAAC","sourcesContent":["import { z } from 'zod';\nimport { MAX_STAT_EVENTS_PER_WRITE } from '../constants/sports.js';\nimport { isSportStatEventId } from '../ids/stat-event-ids.js';\nimport { GAME_MEMO_INPUT } from '../constants/text-fields.js';\nimport {\n BasketballAssistableShotEventSchema,\n BasketballBulkEditEventSchema,\n BasketballOnePointEventSchema,\n BasketballPlayerTallyEventSchema,\n BasketballTimeoutEventSchema,\n CurlingBlankEndEventSchema,\n CurlingRoundScoreEventSchema,\n FootballBulkEditEventSchema,\n FootballScoreEventSchema,\n StatCorrectionEventSchema,\n StatVoidEventSchema,\n} from '../doc-schemas/game-stats.js';\nimport {\n RECORDED_STAT_EVENT_OUTCOME_KEYS,\n STAT_EVENT_RECORDER_FIELD_KEYS,\n STAT_EVENT_REFUSAL_KEYS,\n STAT_EVENT_SNAPSHOT_FIELD_KEYS,\n} from '../types/stats.js';\nimport type { StatEventRecorderField, StatEventSnapshotField } from '../types/stats.js';\nimport {\n countSchema,\n gameIdSchema,\n gameRosterPlayerIdSchema,\n statEventIdSchema,\n teamIdSchema,\n userIdSchema,\n} from '../doc-schemas/atoms.js';\nimport { textFieldSchema } from './text-field.js';\n\ntype ServerDerivedField = StatEventRecorderField | StatEventSnapshotField;\nconst SERVER_DERIVED_FIELDS: ReadonlySet<string> = new Set([\n ...STAT_EVENT_RECORDER_FIELD_KEYS,\n ...STAT_EVENT_SNAPSHOT_FIELD_KEYS,\n]);\n\nfunction callerShape<Shape extends z.ZodRawShape, Omitted extends keyof Shape = never>(\n shape: Shape,\n omitted: readonly Omitted[] = [],\n): Omit<Shape, ServerDerivedField | Omitted> {\n const dropped = new Set<PropertyKey>([...SERVER_DERIVED_FIELDS, ...omitted]);\n return Object.fromEntries(Object.entries(shape).filter(([field]) => !dropped.has(field))) as Omit<\n Shape,\n ServerDerivedField | Omitted\n >;\n}\n\nexport const sportStatEventIdSchema = statEventIdSchema.refine(\n isSportStatEventId,\n 'Not a stat event id.',\n);\n\nconst sportEventId = { eventId: sportStatEventIdSchema };\n\nexport const StatEventSubmissionSchema = z.discriminatedUnion('type', [\n z.strictObject({ ...callerShape(BasketballOnePointEventSchema.shape), ...sportEventId }),\n z.strictObject({ ...callerShape(BasketballAssistableShotEventSchema.shape), ...sportEventId }),\n z.strictObject({ ...callerShape(BasketballPlayerTallyEventSchema.shape), ...sportEventId }),\n z.strictObject({ ...callerShape(BasketballTimeoutEventSchema.shape), ...sportEventId }),\n z.strictObject({\n ...callerShape(BasketballBulkEditEventSchema.shape),\n ...sportEventId,\n previousValue: countSchema,\n }),\n z.strictObject({ ...callerShape(CurlingRoundScoreEventSchema.shape), ...sportEventId }),\n z.strictObject({ ...callerShape(CurlingBlankEndEventSchema.shape), ...sportEventId }),\n z.strictObject({ ...callerShape(FootballScoreEventSchema.shape), ...sportEventId }),\n z.strictObject({ ...callerShape(FootballBulkEditEventSchema.shape), ...sportEventId }),\n z.strictObject({\n ...callerShape(StatVoidEventSchema.shape, ['eventId']),\n targetEventId: sportStatEventIdSchema,\n }),\n z.strictObject(callerShape(StatCorrectionEventSchema.shape)),\n]);\nexport type StatEventSubmission = z.infer<typeof StatEventSubmissionSchema>;\n\nexport const RecordGameStatEventsInputSchema = z\n .object({\n gameId: gameIdSchema,\n events: z.array(StatEventSubmissionSchema).min(1).max(MAX_STAT_EVENTS_PER_WRITE),\n })\n .strict();\nexport type RecordGameStatEventsInput = z.infer<typeof RecordGameStatEventsInputSchema>;\n\nexport const RecordedStatEventSchema = z\n .object({\n eventId: statEventIdSchema,\n outcome: z.enum(RECORDED_STAT_EVENT_OUTCOME_KEYS),\n sequence: z.number().int().positive(),\n })\n .strict();\nexport type RecordedStatEvent = z.infer<typeof RecordedStatEventSchema>;\n\nexport const RecordGameStatEventsResultSchema = z\n .object({\n gameId: gameIdSchema,\n events: z.array(RecordedStatEventSchema),\n })\n .strict();\nexport type RecordGameStatEventsResult = z.infer<typeof RecordGameStatEventsResultSchema>;\n\nexport const StatEventRefusalDetailsSchema = z\n .object({\n refusal: z.enum(STAT_EVENT_REFUSAL_KEYS),\n eventId: statEventIdSchema,\n })\n .strict();\nexport type StatEventRefusalDetails = z.infer<typeof StatEventRefusalDetailsSchema>;\n\nexport const UpdateGameAbsentPlayersInputSchema = z\n .object({\n gameId: gameIdSchema,\n gameRosterPlayerId: gameRosterPlayerIdSchema,\n absent: z.boolean(),\n })\n .strict();\nexport type UpdateGameAbsentPlayersInput = z.infer<typeof UpdateGameAbsentPlayersInputSchema>;\n\nexport const UpdateGameAbsentPlayersResultSchema = z\n .object({\n gameId: gameIdSchema,\n gameRosterPlayerId: gameRosterPlayerIdSchema,\n absent: z.boolean(),\n changed: z.boolean(),\n })\n .strict();\nexport type UpdateGameAbsentPlayersResult = z.infer<typeof UpdateGameAbsentPlayersResultSchema>;\n\nexport const gameMemoSchema = textFieldSchema(GAME_MEMO_INPUT);\n\nexport const UpdateGameMemoInputSchema = z\n .object({\n gameId: gameIdSchema,\n userId: userIdSchema,\n memo: gameMemoSchema,\n })\n .strict();\nexport type UpdateGameMemoInput = z.infer<typeof UpdateGameMemoInputSchema>;\n\nexport const UpdateGameMemoResultSchema = z\n .object({\n gameId: gameIdSchema,\n userId: userIdSchema,\n memo: z.string(),\n changed: z.boolean(),\n })\n .strict();\nexport type UpdateGameMemoResult = z.infer<typeof UpdateGameMemoResultSchema>;\n\nexport const UpdateGameJumpBallInputSchema = z\n .object({\n gameId: gameIdSchema,\n teamId: teamIdSchema,\n })\n .strict();\nexport type UpdateGameJumpBallInput = z.infer<typeof UpdateGameJumpBallInputSchema>;\n\nexport const UpdateGameJumpBallResultSchema = z\n .object({\n gameId: gameIdSchema,\n teamId: teamIdSchema,\n changed: z.boolean(),\n })\n .strict();\nexport type UpdateGameJumpBallResult = z.infer<typeof UpdateGameJumpBallResultSchema>;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-field.d.ts","sourceRoot":"","sources":["../../src/schemas/text-field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,KAAK,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAEnF,wBAAgB,eAAe,CAAC,WAAW,EAAE,oBAAoB,0DAOhE"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { checkTextField } from '../utils/text-field.js';
|
|
3
|
+
export function textFieldSchema(declaration) {
|
|
4
|
+
return z.string().transform((text, ctx) => {
|
|
5
|
+
const result = checkTextField(declaration, text);
|
|
6
|
+
if (result.ok)
|
|
7
|
+
return result.value;
|
|
8
|
+
ctx.addIssue({ code: 'custom', message: result.reason, input: text });
|
|
9
|
+
return z.NEVER;
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=text-field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-field.js","sourceRoot":"","sources":["../../src/schemas/text-field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAA6B,MAAM,wBAAwB,CAAC;AAEnF,MAAM,UAAU,eAAe,CAAC,WAAiC;IAC/D,OAAO,CAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE;QACxC,MAAM,MAAM,GAAG,cAAc,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;QACjD,IAAI,MAAM,CAAC,EAAE;YAAE,OAAO,MAAM,CAAC,KAAK,CAAC;QACnC,GAAG,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;QACtE,OAAO,CAAC,CAAC,KAAK,CAAC;IACjB,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { z } from 'zod';\nimport { checkTextField, type TextFieldDeclaration } from '../utils/text-field.js';\n\nexport function textFieldSchema(declaration: TextFieldDeclaration) {\n return z.string().transform((text, ctx) => {\n const result = checkTextField(declaration, text);\n if (result.ok) return result.value;\n ctx.addIssue({ code: 'custom', message: result.reason, input: text });\n return z.NEVER;\n });\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"waiver-templates.d.ts","sourceRoot":"","sources":["../../src/schemas/waiver-templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,eAAO,MAAM,yBAAyB,
|
|
1
|
+
{"version":3,"file":"waiver-templates.d.ts","sourceRoot":"","sources":["../../src/schemas/waiver-templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,eAAO,MAAM,yBAAyB,wDAA+C,CAAC;AACtF,eAAO,MAAM,wBAAwB,wDAA8C,CAAC;AAEpF,eAAO,MAAM,oCAAoC;;;kBAEtC,CAAC;AACZ,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC;AAClG,eAAO,MAAM,qCAAqC;;;kBAEvC,CAAC;AACZ,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC;AAEpG,eAAO,MAAM,oCAAoC;;;;;kBAOtC,CAAC;AACZ,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC;AAClG,eAAO,MAAM,qCAAqC;;;;kBAMvC,CAAC;AACZ,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC;AAEpG,eAAO,MAAM,oCAAoC;;kBAEtC,CAAC;AACZ,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC;AAClG,eAAO,MAAM,qCAAqC;;;;;;kBAKvC,CAAC;AACZ,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { textFieldSchema } from '
|
|
2
|
+
import { textFieldSchema } from './text-field.js';
|
|
3
3
|
import { waiverTemplateIdSchema, waiverTemplateVersionNumberSchema, } from '../doc-schemas/waiver-template.js';
|
|
4
4
|
import { WAIVER_TEMPLATE_DELETE_OUTCOME_KEYS } from '../types/unions.js';
|
|
5
|
-
import {
|
|
6
|
-
export const waiverTemplateTitleSchema = textFieldSchema(
|
|
7
|
-
export const waiverTemplateTextSchema = textFieldSchema(
|
|
5
|
+
import { WAIVER_TEMPLATE_TEXT_INPUT, WAIVER_TEMPLATE_TITLE_INPUT, } from '../constants/text-fields.js';
|
|
6
|
+
export const waiverTemplateTitleSchema = textFieldSchema(WAIVER_TEMPLATE_TITLE_INPUT);
|
|
7
|
+
export const waiverTemplateTextSchema = textFieldSchema(WAIVER_TEMPLATE_TEXT_INPUT);
|
|
8
8
|
export const AdminCreateWaiverTemplateInputSchema = z
|
|
9
9
|
.object({ title: waiverTemplateTitleSchema, waiverText: waiverTemplateTextSchema })
|
|
10
10
|
.strict();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"waiver-templates.js","sourceRoot":"","sources":["../../src/schemas/waiver-templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"waiver-templates.js","sourceRoot":"","sources":["../../src/schemas/waiver-templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EACL,sBAAsB,EACtB,iCAAiC,GAClC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,mCAAmC,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,EACL,0BAA0B,EAC1B,2BAA2B,GAC5B,MAAM,6BAA6B,CAAC;AAErC,MAAM,CAAC,MAAM,yBAAyB,GAAG,eAAe,CAAC,2BAA2B,CAAC,CAAC;AACtF,MAAM,CAAC,MAAM,wBAAwB,GAAG,eAAe,CAAC,0BAA0B,CAAC,CAAC;AAEpF,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAC;KAClD,MAAM,CAAC,EAAE,KAAK,EAAE,yBAAyB,EAAE,UAAU,EAAE,wBAAwB,EAAE,CAAC;KAClF,MAAM,EAAE,CAAC;AAEZ,MAAM,CAAC,MAAM,qCAAqC,GAAG,CAAC;KACnD,MAAM,CAAC,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,OAAO,EAAE,iCAAiC,EAAE,CAAC;KAChG,MAAM,EAAE,CAAC;AAGZ,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAC;KAClD,MAAM,CAAC;IACN,gBAAgB,EAAE,sBAAsB;IACxC,eAAe,EAAE,iCAAiC;IAClD,KAAK,EAAE,yBAAyB;IAChC,UAAU,EAAE,wBAAwB;CACrC,CAAC;KACD,MAAM,EAAE,CAAC;AAEZ,MAAM,CAAC,MAAM,qCAAqC,GAAG,CAAC;KACnD,MAAM,CAAC;IACN,gBAAgB,EAAE,sBAAsB;IACxC,OAAO,EAAE,iCAAiC;IAC1C,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE;CACvB,CAAC;KACD,MAAM,EAAE,CAAC;AAGZ,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAC;KAClD,MAAM,CAAC,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,CAAC;KACpD,MAAM,EAAE,CAAC;AAEZ,MAAM,CAAC,MAAM,qCAAqC,GAAG,CAAC;KACnD,MAAM,CAAC;IACN,gBAAgB,EAAE,sBAAsB;IACxC,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,mCAAmC,CAAC;CACrD,CAAC;KACD,MAAM,EAAE,CAAC","sourcesContent":["import { z } from 'zod';\nimport { textFieldSchema } from './text-field.js';\nimport {\n waiverTemplateIdSchema,\n waiverTemplateVersionNumberSchema,\n} from '../doc-schemas/waiver-template.js';\nimport { WAIVER_TEMPLATE_DELETE_OUTCOME_KEYS } from '../types/unions.js';\nimport {\n WAIVER_TEMPLATE_TEXT_INPUT,\n WAIVER_TEMPLATE_TITLE_INPUT,\n} from '../constants/text-fields.js';\n\nexport const waiverTemplateTitleSchema = textFieldSchema(WAIVER_TEMPLATE_TITLE_INPUT);\nexport const waiverTemplateTextSchema = textFieldSchema(WAIVER_TEMPLATE_TEXT_INPUT);\n\nexport const AdminCreateWaiverTemplateInputSchema = z\n .object({ title: waiverTemplateTitleSchema, waiverText: waiverTemplateTextSchema })\n .strict();\nexport type AdminCreateWaiverTemplateInput = z.infer<typeof AdminCreateWaiverTemplateInputSchema>;\nexport const AdminCreateWaiverTemplateResultSchema = z\n .object({ waiverTemplateId: waiverTemplateIdSchema, version: waiverTemplateVersionNumberSchema })\n .strict();\nexport type AdminCreateWaiverTemplateResult = z.infer<typeof AdminCreateWaiverTemplateResultSchema>;\n\nexport const AdminUpdateWaiverTemplateInputSchema = z\n .object({\n waiverTemplateId: waiverTemplateIdSchema,\n expectedVersion: waiverTemplateVersionNumberSchema,\n title: waiverTemplateTitleSchema,\n waiverText: waiverTemplateTextSchema,\n })\n .strict();\nexport type AdminUpdateWaiverTemplateInput = z.infer<typeof AdminUpdateWaiverTemplateInputSchema>;\nexport const AdminUpdateWaiverTemplateResultSchema = z\n .object({\n waiverTemplateId: waiverTemplateIdSchema,\n version: waiverTemplateVersionNumberSchema,\n published: z.boolean(),\n })\n .strict();\nexport type AdminUpdateWaiverTemplateResult = z.infer<typeof AdminUpdateWaiverTemplateResultSchema>;\n\nexport const AdminDeleteWaiverTemplateInputSchema = z\n .object({ waiverTemplateId: waiverTemplateIdSchema })\n .strict();\nexport type AdminDeleteWaiverTemplateInput = z.infer<typeof AdminDeleteWaiverTemplateInputSchema>;\nexport const AdminDeleteWaiverTemplateResultSchema = z\n .object({\n waiverTemplateId: waiverTemplateIdSchema,\n outcome: z.enum(WAIVER_TEMPLATE_DELETE_OUTCOME_KEYS),\n })\n .strict();\nexport type AdminDeleteWaiverTemplateResult = z.infer<typeof AdminDeleteWaiverTemplateResultSchema>;\n"]}
|