@opprs/db-prisma 2.5.0 → 3.0.0-canary.50eebd8

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/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as _prisma_client_runtime_library from '@prisma/client/runtime/library';
2
2
  import * as _prisma_client from '@prisma/client';
3
- import { PrismaClient, Player, Prisma, OpprPlayerRanking, OpprRankingChangeType, OpprRankingHistory, EventBoosterType, Tournament, Round, Match, MatchResult, Entry, Standing, User, ApiKey, Location, PostStatus, BlogPost, BlogTag } from '@prisma/client';
4
- export { Entry, EventBoosterType, Location, Match, MatchResult, OpprPlayerRanking, OpprRankingChangeType, OpprRankingHistory, Player, Prisma, Role, Round, Standing, Tournament, User } from '@prisma/client';
3
+ import { PrismaClient, Player, Prisma, OpprPlayerRanking, OpprRankingChangeType, OpprRankingHistory, EventBoosterType, TournamentFormatType, Tournament, Standing, User, ApiKey, Location, PostStatus, BlogPost, BlogTag } from '@prisma/client';
4
+ export { EventBoosterType, Location, OpprPlayerRanking, OpprRankingChangeType, OpprRankingHistory, Player, Prisma, Role, Standing, Tournament, TournamentFormatType, User } from '@prisma/client';
5
5
 
6
6
  declare const prisma: PrismaClient<_prisma_client.Prisma.PrismaClientOptions, never, _prisma_client_runtime_library.DefaultArgs>;
7
7
  /**
@@ -95,12 +95,14 @@ declare function getPlayerWithResults(id: string): Promise<{
95
95
  createdAt: Date;
96
96
  updatedAt: Date;
97
97
  externalId: string | null;
98
+ externalUrl: string | null;
98
99
  description: string | null;
99
100
  date: Date;
100
101
  locationId: string | null;
101
102
  organizerId: string | null;
102
103
  tgpConfig: Prisma.JsonValue | null;
103
104
  eventBooster: _prisma_client.$Enums.EventBoosterType;
105
+ qualifyingFormat: _prisma_client.$Enums.TournamentFormatType;
104
106
  allowsOptOut: boolean;
105
107
  baseValue: number | null;
106
108
  tvaRating: number | null;
@@ -134,12 +136,14 @@ declare function getPlayerWithResults(id: string): Promise<{
134
136
  createdAt: Date;
135
137
  updatedAt: Date;
136
138
  externalId: string | null;
139
+ externalUrl: string | null;
137
140
  description: string | null;
138
141
  date: Date;
139
142
  locationId: string | null;
140
143
  organizerId: string | null;
141
144
  tgpConfig: Prisma.JsonValue | null;
142
145
  eventBooster: _prisma_client.$Enums.EventBoosterType;
146
+ qualifyingFormat: _prisma_client.$Enums.TournamentFormatType;
143
147
  allowsOptOut: boolean;
144
148
  baseValue: number | null;
145
149
  tvaRating: number | null;
@@ -320,6 +324,7 @@ declare function isValidPlayerNumber(playerNumber: number): boolean;
320
324
  */
321
325
  interface CreateTournamentInput {
322
326
  externalId?: string;
327
+ externalUrl?: string;
323
328
  name: string;
324
329
  description?: string;
325
330
  date: Date;
@@ -327,6 +332,7 @@ interface CreateTournamentInput {
327
332
  organizerId?: string;
328
333
  tgpConfig?: Prisma.InputJsonValue;
329
334
  eventBooster?: EventBoosterType;
335
+ qualifyingFormat?: TournamentFormatType;
330
336
  allowsOptOut?: boolean;
331
337
  baseValue?: number;
332
338
  tvaRating?: number;
@@ -340,6 +346,7 @@ interface CreateTournamentInput {
340
346
  * Input for updating a tournament
341
347
  */
342
348
  interface UpdateTournamentInput {
349
+ externalUrl?: string | null;
343
350
  name?: string;
344
351
  description?: string | null;
345
352
  date?: Date;
@@ -347,6 +354,7 @@ interface UpdateTournamentInput {
347
354
  organizerId?: string | null;
348
355
  tgpConfig?: Prisma.InputJsonValue;
349
356
  eventBooster?: EventBoosterType;
357
+ qualifyingFormat?: TournamentFormatType;
350
358
  allowsOptOut?: boolean;
351
359
  baseValue?: number;
352
360
  tvaRating?: number;
@@ -448,77 +456,14 @@ declare function getTournamentWithResults(id: string): Promise<({
448
456
  createdAt: Date;
449
457
  updatedAt: Date;
450
458
  externalId: string | null;
459
+ externalUrl: string | null;
451
460
  description: string | null;
452
461
  date: Date;
453
462
  locationId: string | null;
454
463
  organizerId: string | null;
455
464
  tgpConfig: Prisma.JsonValue | null;
456
465
  eventBooster: _prisma_client.$Enums.EventBoosterType;
457
- allowsOptOut: boolean;
458
- baseValue: number | null;
459
- tvaRating: number | null;
460
- tvaRanking: number | null;
461
- totalTVA: number | null;
462
- tgp: number | null;
463
- eventBoosterMultiplier: number | null;
464
- firstPlaceValue: number | null;
465
- }) | null>;
466
- /**
467
- * Gets tournament with rounds, matches, and entries
468
- */
469
- declare function getTournamentWithMatches(id: string): Promise<({
470
- rounds: ({
471
- matches: ({
472
- entries: ({
473
- player: {
474
- name: string | null;
475
- id: string;
476
- createdAt: Date;
477
- updatedAt: Date;
478
- externalId: string | null;
479
- playerNumber: number;
480
- eventCount: number;
481
- lastEventDate: Date | null;
482
- };
483
- } & {
484
- result: _prisma_client.$Enums.MatchResult;
485
- id: string;
486
- createdAt: Date;
487
- updatedAt: Date;
488
- playerId: string;
489
- position: number | null;
490
- matchId: string;
491
- })[];
492
- } & {
493
- number: number | null;
494
- id: string;
495
- createdAt: Date;
496
- updatedAt: Date;
497
- tournamentId: string;
498
- roundId: string | null;
499
- machineName: string | null;
500
- })[];
501
- } & {
502
- number: number;
503
- name: string | null;
504
- id: string;
505
- createdAt: Date;
506
- updatedAt: Date;
507
- tournamentId: string;
508
- isFinals: boolean;
509
- })[];
510
- } & {
511
- name: string;
512
- id: string;
513
- createdAt: Date;
514
- updatedAt: Date;
515
- externalId: string | null;
516
- description: string | null;
517
- date: Date;
518
- locationId: string | null;
519
- organizerId: string | null;
520
- tgpConfig: Prisma.JsonValue | null;
521
- eventBooster: _prisma_client.$Enums.EventBoosterType;
466
+ qualifyingFormat: _prisma_client.$Enums.TournamentFormatType;
522
467
  allowsOptOut: boolean;
523
468
  baseValue: number | null;
524
469
  tvaRating: number | null;
@@ -571,12 +516,14 @@ declare function getTournamentStats(id: string): Promise<{
571
516
  createdAt: Date;
572
517
  updatedAt: Date;
573
518
  externalId: string | null;
519
+ externalUrl: string | null;
574
520
  description: string | null;
575
521
  date: Date;
576
522
  locationId: string | null;
577
523
  organizerId: string | null;
578
524
  tgpConfig: Prisma.JsonValue | null;
579
525
  eventBooster: _prisma_client.$Enums.EventBoosterType;
526
+ qualifyingFormat: _prisma_client.$Enums.TournamentFormatType;
580
527
  allowsOptOut: boolean;
581
528
  baseValue: number | null;
582
529
  tvaRating: number | null;
@@ -593,328 +540,6 @@ declare function getTournamentStats(id: string): Promise<{
593
540
  lowestPoints: number;
594
541
  } | null>;
595
542
 
596
- /**
597
- * Input for creating a new round
598
- */
599
- interface CreateRoundInput {
600
- tournamentId: string;
601
- number: number;
602
- name?: string;
603
- isFinals?: boolean;
604
- }
605
- /**
606
- * Input for updating a round
607
- */
608
- interface UpdateRoundInput {
609
- number?: number;
610
- name?: string;
611
- isFinals?: boolean;
612
- }
613
- /**
614
- * Options for querying rounds
615
- */
616
- interface FindRoundsOptions {
617
- take?: number;
618
- skip?: number;
619
- orderBy?: Prisma.RoundOrderByWithRelationInput | Prisma.RoundOrderByWithRelationInput[];
620
- where?: Prisma.RoundWhereInput;
621
- include?: Prisma.RoundInclude;
622
- }
623
- /**
624
- * Creates a new round
625
- */
626
- declare function createRound(data: CreateRoundInput): Promise<Round>;
627
- /**
628
- * Creates multiple rounds at once
629
- */
630
- declare function createManyRounds(data: CreateRoundInput[]): Promise<Prisma.BatchPayload>;
631
- /**
632
- * Finds a round by ID
633
- */
634
- declare function findRoundById(id: string, include?: Prisma.RoundInclude): Promise<Round | null>;
635
- /**
636
- * Finds a round by tournament, number, and isFinals
637
- */
638
- declare function findRoundByTournamentAndNumber(tournamentId: string, number: number, isFinals: boolean, include?: Prisma.RoundInclude): Promise<Round | null>;
639
- /**
640
- * Finds multiple rounds with optional filters
641
- */
642
- declare function findRounds(options?: FindRoundsOptions): Promise<Round[]>;
643
- /**
644
- * Gets all rounds for a specific tournament
645
- */
646
- declare function getTournamentRounds(tournamentId: string, options?: Omit<FindRoundsOptions, 'where'>): Promise<Round[]>;
647
- /**
648
- * Gets qualifying rounds for a tournament
649
- */
650
- declare function getQualifyingRounds(tournamentId: string, options?: Omit<FindRoundsOptions, 'where'>): Promise<Round[]>;
651
- /**
652
- * Gets finals rounds for a tournament
653
- */
654
- declare function getFinalsRounds(tournamentId: string, options?: Omit<FindRoundsOptions, 'where'>): Promise<Round[]>;
655
- /**
656
- * Updates a round
657
- */
658
- declare function updateRound(id: string, data: UpdateRoundInput): Promise<Round>;
659
- /**
660
- * Deletes a round
661
- */
662
- declare function deleteRound(id: string): Promise<Round>;
663
- /**
664
- * Deletes all rounds for a tournament
665
- */
666
- declare function deleteRoundsByTournament(tournamentId: string): Promise<Prisma.BatchPayload>;
667
- /**
668
- * Counts total rounds
669
- */
670
- declare function countRounds(where?: Prisma.RoundWhereInput): Promise<number>;
671
- /**
672
- * Gets a round with all its matches
673
- */
674
- declare function getRoundWithMatches(id: string): Promise<({
675
- matches: ({
676
- entries: ({
677
- player: {
678
- name: string | null;
679
- id: string;
680
- createdAt: Date;
681
- updatedAt: Date;
682
- externalId: string | null;
683
- playerNumber: number;
684
- eventCount: number;
685
- lastEventDate: Date | null;
686
- };
687
- } & {
688
- result: _prisma_client.$Enums.MatchResult;
689
- id: string;
690
- createdAt: Date;
691
- updatedAt: Date;
692
- playerId: string;
693
- position: number | null;
694
- matchId: string;
695
- })[];
696
- } & {
697
- number: number | null;
698
- id: string;
699
- createdAt: Date;
700
- updatedAt: Date;
701
- tournamentId: string;
702
- roundId: string | null;
703
- machineName: string | null;
704
- })[];
705
- } & {
706
- number: number;
707
- name: string | null;
708
- id: string;
709
- createdAt: Date;
710
- updatedAt: Date;
711
- tournamentId: string;
712
- isFinals: boolean;
713
- }) | null>;
714
-
715
- /**
716
- * Input for creating a new match
717
- */
718
- interface CreateMatchInput {
719
- tournamentId: string;
720
- roundId?: string;
721
- number?: number;
722
- machineName?: string;
723
- }
724
- /**
725
- * Input for updating a match
726
- */
727
- interface UpdateMatchInput {
728
- roundId?: string | null;
729
- number?: number;
730
- machineName?: string;
731
- }
732
- /**
733
- * Options for querying matches
734
- */
735
- interface FindMatchesOptions {
736
- take?: number;
737
- skip?: number;
738
- orderBy?: Prisma.MatchOrderByWithRelationInput | Prisma.MatchOrderByWithRelationInput[];
739
- where?: Prisma.MatchWhereInput;
740
- include?: Prisma.MatchInclude;
741
- }
742
- /**
743
- * Creates a new match
744
- */
745
- declare function createMatch(data: CreateMatchInput): Promise<Match>;
746
- /**
747
- * Creates multiple matches at once
748
- */
749
- declare function createManyMatches(data: CreateMatchInput[]): Promise<Prisma.BatchPayload>;
750
- /**
751
- * Finds a match by ID
752
- */
753
- declare function findMatchById(id: string, include?: Prisma.MatchInclude): Promise<Match | null>;
754
- /**
755
- * Finds multiple matches with optional filters
756
- */
757
- declare function findMatches(options?: FindMatchesOptions): Promise<Match[]>;
758
- /**
759
- * Gets all matches for a specific tournament
760
- */
761
- declare function getTournamentMatches(tournamentId: string, options?: Omit<FindMatchesOptions, 'where'>): Promise<Match[]>;
762
- /**
763
- * Gets all matches for a specific round
764
- */
765
- declare function getRoundMatches(roundId: string, options?: Omit<FindMatchesOptions, 'where'>): Promise<Match[]>;
766
- /**
767
- * Updates a match
768
- */
769
- declare function updateMatch(id: string, data: UpdateMatchInput): Promise<Match>;
770
- /**
771
- * Deletes a match
772
- */
773
- declare function deleteMatch(id: string): Promise<Match>;
774
- /**
775
- * Deletes all matches for a tournament
776
- */
777
- declare function deleteMatchesByTournament(tournamentId: string): Promise<Prisma.BatchPayload>;
778
- /**
779
- * Deletes all matches for a round
780
- */
781
- declare function deleteMatchesByRound(roundId: string): Promise<Prisma.BatchPayload>;
782
- /**
783
- * Counts total matches
784
- */
785
- declare function countMatches(where?: Prisma.MatchWhereInput): Promise<number>;
786
- /**
787
- * Gets a match with all its entries and player details
788
- */
789
- declare function getMatchWithEntries(id: string): Promise<({
790
- round: {
791
- number: number;
792
- name: string | null;
793
- id: string;
794
- createdAt: Date;
795
- updatedAt: Date;
796
- tournamentId: string;
797
- isFinals: boolean;
798
- } | null;
799
- entries: ({
800
- player: {
801
- name: string | null;
802
- id: string;
803
- createdAt: Date;
804
- updatedAt: Date;
805
- externalId: string | null;
806
- playerNumber: number;
807
- eventCount: number;
808
- lastEventDate: Date | null;
809
- };
810
- } & {
811
- result: _prisma_client.$Enums.MatchResult;
812
- id: string;
813
- createdAt: Date;
814
- updatedAt: Date;
815
- playerId: string;
816
- position: number | null;
817
- matchId: string;
818
- })[];
819
- } & {
820
- number: number | null;
821
- id: string;
822
- createdAt: Date;
823
- updatedAt: Date;
824
- tournamentId: string;
825
- roundId: string | null;
826
- machineName: string | null;
827
- }) | null>;
828
- /**
829
- * Gets matches for a player in a tournament
830
- */
831
- declare function getPlayerTournamentMatches(playerId: string, tournamentId: string, include?: Prisma.MatchInclude): Promise<Match[]>;
832
-
833
- /**
834
- * Input for creating a new entry
835
- */
836
- interface CreateEntryInput {
837
- matchId: string;
838
- playerId: string;
839
- result: MatchResult;
840
- position?: number;
841
- }
842
- /**
843
- * Input for updating an entry
844
- */
845
- interface UpdateEntryInput {
846
- result?: MatchResult;
847
- position?: number;
848
- }
849
- /**
850
- * Options for querying entries
851
- */
852
- interface FindEntriesOptions {
853
- take?: number;
854
- skip?: number;
855
- orderBy?: Prisma.EntryOrderByWithRelationInput;
856
- where?: Prisma.EntryWhereInput;
857
- include?: Prisma.EntryInclude;
858
- }
859
- /**
860
- * Creates a new entry
861
- */
862
- declare function createEntry(data: CreateEntryInput): Promise<Entry>;
863
- /**
864
- * Creates multiple entries at once
865
- */
866
- declare function createManyEntries(data: CreateEntryInput[]): Promise<Prisma.BatchPayload>;
867
- /**
868
- * Finds an entry by ID
869
- */
870
- declare function findEntryById(id: string, include?: Prisma.EntryInclude): Promise<Entry | null>;
871
- /**
872
- * Finds an entry by match and player
873
- */
874
- declare function findEntryByMatchAndPlayer(matchId: string, playerId: string, include?: Prisma.EntryInclude): Promise<Entry | null>;
875
- /**
876
- * Finds multiple entries with optional filters
877
- */
878
- declare function findEntries(options?: FindEntriesOptions): Promise<Entry[]>;
879
- /**
880
- * Gets all entries for a specific match
881
- */
882
- declare function getMatchEntries(matchId: string, options?: Omit<FindEntriesOptions, 'where'>): Promise<Entry[]>;
883
- /**
884
- * Gets all entries for a specific player
885
- */
886
- declare function getPlayerEntries(playerId: string, options?: Omit<FindEntriesOptions, 'where'>): Promise<Entry[]>;
887
- /**
888
- * Gets player entries in a tournament
889
- */
890
- declare function getPlayerTournamentEntries(playerId: string, tournamentId: string, include?: Prisma.EntryInclude): Promise<Entry[]>;
891
- /**
892
- * Updates an entry
893
- */
894
- declare function updateEntry(id: string, data: UpdateEntryInput): Promise<Entry>;
895
- /**
896
- * Deletes an entry
897
- */
898
- declare function deleteEntry(id: string): Promise<Entry>;
899
- /**
900
- * Deletes all entries for a match
901
- */
902
- declare function deleteEntriesByMatch(matchId: string): Promise<Prisma.BatchPayload>;
903
- /**
904
- * Counts total entries
905
- */
906
- declare function countEntries(where?: Prisma.EntryWhereInput): Promise<number>;
907
- /**
908
- * Gets player statistics from entries
909
- */
910
- declare function getPlayerEntryStats(playerId: string): Promise<{
911
- totalMatches: number;
912
- wins: number;
913
- losses: number;
914
- ties: number;
915
- winRate: number;
916
- } | null>;
917
-
918
543
  /**
919
544
  * Merged standing with calculated position for points
920
545
  */
@@ -1324,12 +949,14 @@ declare function getLocationWithTournaments(id: string): Promise<({
1324
949
  createdAt: Date;
1325
950
  updatedAt: Date;
1326
951
  externalId: string | null;
952
+ externalUrl: string | null;
1327
953
  description: string | null;
1328
954
  date: Date;
1329
955
  locationId: string | null;
1330
956
  organizerId: string | null;
1331
957
  tgpConfig: Prisma.JsonValue | null;
1332
958
  eventBooster: _prisma_client.$Enums.EventBoosterType;
959
+ qualifyingFormat: _prisma_client.$Enums.TournamentFormatType;
1333
960
  allowsOptOut: boolean;
1334
961
  baseValue: number | null;
1335
962
  tvaRating: number | null;
@@ -1606,4 +1233,4 @@ interface ConnectionStatus {
1606
1233
  error?: string;
1607
1234
  }
1608
1235
 
1609
- export { type ApiKeyInfo, type ApiKeyWithUser, type BlogPostWithRelations, type ConnectionStatus, type CreateApiKeyInput, type CreateBlogPostInput, type CreateBlogTagInput, type CreateEntryInput, type CreateLocationInput, type CreateMatchInput, type CreateOpprPlayerRankingInput, type CreateOpprRankingHistoryInput, type CreatePlayerInput, type CreateRoundInput, type CreateStandingInput, type CreateTournamentInput, type CreateUserInput, type FindBlogPostsOptions, type FindBlogTagsOptions, type FindEntriesOptions, type FindLocationsOptions, type FindMatchesOptions, type FindOpprPlayerRankingsOptions, type FindPlayersOptions, type FindRoundsOptions, type FindStandingsOptions, type FindTournamentsOptions, MAX_API_KEYS_PER_USER, type MergedStanding, type PlayerStatistics, type PlayerWithResults, type StandingWithTournament, type TournamentStatistics, type UpdateBlogPostInput, type UpdateBlogTagInput, type UpdateEntryInput, type UpdateLocationInput, type UpdateMatchInput, type UpdateOpprPlayerRankingInput, type UpdatePlayerInput, type UpdateRoundInput, type UpdateStandingInput, type UpdateTournamentInput, type UpdateUserInput, type UserWithPlayer, applyRDDecayForInactivePlayers, connect, countBlogPosts, countBlogTags, countEntries, countLocations, countMatches, countOpprPlayerRankings, countOpprRankingHistory, countPlayers, countPublishedBlogPosts, countRounds, countStandings, countTournaments, countUserApiKeys, countUsers, createApiKey, createBlogPost, createBlogTag, createEntry, createLocation, createManyEntries, createManyMatches, createManyRounds, createManyStandings, createMatch, createOpprPlayerRanking, createOpprRankingHistory, createPlayer, createRound, createStanding, createTournament, createUser, createUserWithPlayer, deleteApiKey, deleteBlogPost, deleteBlogTag, deleteEntriesByMatch, deleteEntry, deleteLocation, deleteMatch, deleteMatchesByRound, deleteMatchesByTournament, deleteOpprPlayerRanking, deletePlayer, deleteRound, deleteRoundsByTournament, deleteStanding, deleteStandingsByTournament, deleteTournament, deleteUser, deleteUserApiKey, disconnect, findApiKeyById, findApiKeysByPrefix, findBlogPostById, findBlogPostBySlug, findBlogPosts, findBlogTagById, findBlogTagBySlug, findBlogTags, findEntries, findEntryById, findEntryByMatchAndPlayer, findLocationByExternalId, findLocationById, findLocations, findMatchById, findMatches, findOpprPlayerRankingById, findOpprPlayerRankingByPlayerId, findOpprPlayerRankings, findPlayerByExternalId, findPlayerById, findPlayerByPlayerNumber, findPlayerByUserEmail, findPlayers, findPublishedBlogPosts, findRoundById, findRoundByTournamentAndNumber, findRounds, findStandingById, findStandingByPlayerAndTournament, findStandings, findTournamentByExternalId, findTournamentById, findTournaments, findUserByEmail, findUserById, findUsers, generateUniquePlayerNumber, getBlogTagWithPostCount, getBlogTagsWithPostCounts, getFinalsRounds, getFinalsStandings, getLatestOpprRankingHistory, getLocationWithTournaments, getMajorTournaments, getMatchEntries, getMatchWithEntries, getMergedStandings, getOpprRankingHistory, getOpprRankingHistoryByDateRange, getOrCreateOpprPlayerRanking, getPlayerEntries, getPlayerEntryStats, getPlayerStandings, getPlayerStats, getPlayerTopFinishes, getPlayerTournamentEntries, getPlayerTournamentMatches, getPlayerWithResults, getQualifyingRounds, getQualifyingStandings, getRatedOpprPlayers, getRecentTournaments, getRoundMatches, getRoundWithMatches, getTopPlayersByOpprRanking, getTopPlayersByOpprRating, getTournamentMatches, getTournamentRounds, getTournamentStandings, getTournamentStats, getTournamentWithMatches, getTournamentWithResults, getTournamentsByBoosterType, getTournamentsByDateRange, getUserApiKeys, getUserByEmailWithPlayer, getUserWithPlayer, isValidPlayerNumber, linkPlayerToUser, prisma, recalculateTimeDecay, searchBlogPosts, searchBlogTags, searchLocations, searchPlayers, searchTournaments, testConnection, updateApiKeyLastUsed, updateBlogPost, updateBlogTag, updateEntry, updateLocation, updateMatch, updateOpprPlayerRanking, updateOpprRatingAfterTournament, updatePlayer, updateRound, updateStanding, updateStandingPoints, updateTournament, updateUser, updateUserRefreshToken, updateWorldRankings };
1236
+ export { type ApiKeyInfo, type ApiKeyWithUser, type BlogPostWithRelations, type ConnectionStatus, type CreateApiKeyInput, type CreateBlogPostInput, type CreateBlogTagInput, type CreateLocationInput, type CreateOpprPlayerRankingInput, type CreateOpprRankingHistoryInput, type CreatePlayerInput, type CreateStandingInput, type CreateTournamentInput, type CreateUserInput, type FindBlogPostsOptions, type FindBlogTagsOptions, type FindLocationsOptions, type FindOpprPlayerRankingsOptions, type FindPlayersOptions, type FindStandingsOptions, type FindTournamentsOptions, MAX_API_KEYS_PER_USER, type MergedStanding, type PlayerStatistics, type PlayerWithResults, type StandingWithTournament, type TournamentStatistics, type UpdateBlogPostInput, type UpdateBlogTagInput, type UpdateLocationInput, type UpdateOpprPlayerRankingInput, type UpdatePlayerInput, type UpdateStandingInput, type UpdateTournamentInput, type UpdateUserInput, type UserWithPlayer, applyRDDecayForInactivePlayers, connect, countBlogPosts, countBlogTags, countLocations, countOpprPlayerRankings, countOpprRankingHistory, countPlayers, countPublishedBlogPosts, countStandings, countTournaments, countUserApiKeys, countUsers, createApiKey, createBlogPost, createBlogTag, createLocation, createManyStandings, createOpprPlayerRanking, createOpprRankingHistory, createPlayer, createStanding, createTournament, createUser, createUserWithPlayer, deleteApiKey, deleteBlogPost, deleteBlogTag, deleteLocation, deleteOpprPlayerRanking, deletePlayer, deleteStanding, deleteStandingsByTournament, deleteTournament, deleteUser, deleteUserApiKey, disconnect, findApiKeyById, findApiKeysByPrefix, findBlogPostById, findBlogPostBySlug, findBlogPosts, findBlogTagById, findBlogTagBySlug, findBlogTags, findLocationByExternalId, findLocationById, findLocations, findOpprPlayerRankingById, findOpprPlayerRankingByPlayerId, findOpprPlayerRankings, findPlayerByExternalId, findPlayerById, findPlayerByPlayerNumber, findPlayerByUserEmail, findPlayers, findPublishedBlogPosts, findStandingById, findStandingByPlayerAndTournament, findStandings, findTournamentByExternalId, findTournamentById, findTournaments, findUserByEmail, findUserById, findUsers, generateUniquePlayerNumber, getBlogTagWithPostCount, getBlogTagsWithPostCounts, getFinalsStandings, getLatestOpprRankingHistory, getLocationWithTournaments, getMajorTournaments, getMergedStandings, getOpprRankingHistory, getOpprRankingHistoryByDateRange, getOrCreateOpprPlayerRanking, getPlayerStandings, getPlayerStats, getPlayerTopFinishes, getPlayerWithResults, getQualifyingStandings, getRatedOpprPlayers, getRecentTournaments, getTopPlayersByOpprRanking, getTopPlayersByOpprRating, getTournamentStandings, getTournamentStats, getTournamentWithResults, getTournamentsByBoosterType, getTournamentsByDateRange, getUserApiKeys, getUserByEmailWithPlayer, getUserWithPlayer, isValidPlayerNumber, linkPlayerToUser, prisma, recalculateTimeDecay, searchBlogPosts, searchBlogTags, searchLocations, searchPlayers, searchTournaments, testConnection, updateApiKeyLastUsed, updateBlogPost, updateBlogTag, updateLocation, updateOpprPlayerRanking, updateOpprRatingAfterTournament, updatePlayer, updateStanding, updateStandingPoints, updateTournament, updateUser, updateUserRefreshToken, updateWorldRankings };