@srating-io/types 2.2.0 → 2.2.1
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/api/dashboard.d.ts +18 -0
- package/dist/api/fantasy_entry.d.ts +1 -21
- package/dist/api/shisha_log.d.ts +9 -0
- package/dist/audit.d.ts +19 -0
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/api/dashboard.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AuditApi, AuditError } from '../audit.ts';
|
|
2
2
|
import { Pricings } from '../payments.ts';
|
|
3
|
+
import { ShishaLog } from './shisha_log.ts';
|
|
3
4
|
/**
|
|
4
5
|
* Every endpoint on this class is admin only and answers `{ error }` to everyone else, so each
|
|
5
6
|
* result is a union with the refusal rather than an optional-everything object.
|
|
@@ -134,3 +135,20 @@ export type apiKeysResults = {
|
|
|
134
135
|
} | {
|
|
135
136
|
rows: DashboardApiKey[];
|
|
136
137
|
};
|
|
138
|
+
export type shishaArguments = {
|
|
139
|
+
/**
|
|
140
|
+
* How far back to look. Bounded server side: `shisha_log` takes a row for every log call in
|
|
141
|
+
* the pipeline, so an unbounded window is the whole table.
|
|
142
|
+
*/
|
|
143
|
+
days?: number;
|
|
144
|
+
};
|
|
145
|
+
export type shishaResults = {
|
|
146
|
+
error: string;
|
|
147
|
+
} | {
|
|
148
|
+
days: number;
|
|
149
|
+
rows: ShishaLog[];
|
|
150
|
+
/** Row count per logging class over the window, so the panel can offer a filter. */
|
|
151
|
+
class_x_rows: {
|
|
152
|
+
[class_name: string]: number;
|
|
153
|
+
};
|
|
154
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Basketball from '../basketball.ts';
|
|
2
2
|
import * as Football from '../football.ts';
|
|
3
3
|
import { BracketTeams, PlayerTeamSeasons, Players, Games, Teams } from '../general.ts';
|
|
4
|
-
import { FantasyEntry, FantasyEntrys, FantasyGroup,
|
|
4
|
+
import { FantasyEntry, FantasyEntrys, FantasyGroup, FantasyGroupUsers, FantasyBracketSlots, FantasyEntryPlayers, FantasyEntryPlayerStatisticRanking } from '../fantasy.ts';
|
|
5
5
|
export type createEntryArguments = {
|
|
6
6
|
fantasy_group_id: string;
|
|
7
7
|
name: string;
|
|
@@ -36,24 +36,4 @@ export type loadResults = {
|
|
|
36
36
|
[fantasy_entry_player_statistic_ranking_id: string]: FantasyEntryPlayerStatisticRanking & (Basketball.PlayerStatisticRanking | Football.PlayerStatisticRanking);
|
|
37
37
|
};
|
|
38
38
|
teams: Teams;
|
|
39
|
-
/** Per game scoring for the rostered players, over the games this entry counts. */
|
|
40
|
-
player_boxscores: Basketball.PlayerBoxscores | Football.PlayerBoxscores;
|
|
41
|
-
/** The whole group at `current`, so an entry can show its rank and who is either side of it. */
|
|
42
|
-
fantasy_rankings: FantasyRankings;
|
|
43
|
-
/** This entry only, without the `current` filter, for rank and points over time. */
|
|
44
|
-
fantasy_ranking_history: FantasyRankings;
|
|
45
|
-
/** Id and name only - enough to label a standings row, and nothing the page does not need. */
|
|
46
|
-
fantasy_entrys: FantasyEntrys;
|
|
47
|
-
/** This entry only, for the pick column and the draft recap. */
|
|
48
|
-
fantasy_draft_orders: FantasyDraftOrders;
|
|
49
|
-
/** The entry owner, name only. */
|
|
50
|
-
fantasy_group_user: FantasyGroupUser | {};
|
|
51
|
-
/**
|
|
52
|
-
* Every drafted player in the group as `fantasy_entry_player_id` to its score, so a pick can be
|
|
53
|
-
* ranked against the pool it came from. A projection rather than the joined stat rows, which are
|
|
54
|
-
* what makes the group-wide payload heavy.
|
|
55
|
-
*/
|
|
56
|
-
league_player_ratings: {
|
|
57
|
-
[fantasy_entry_player_id: string]: number;
|
|
58
|
-
};
|
|
59
39
|
};
|
package/dist/audit.d.ts
CHANGED
|
@@ -86,3 +86,22 @@ export interface AuditUpdated {
|
|
|
86
86
|
export type AuditUpdateds = {
|
|
87
87
|
[audit_updated_id: number]: AuditUpdated;
|
|
88
88
|
};
|
|
89
|
+
/**
|
|
90
|
+
* One row per `Manager.log()` call in sports-scraper, the searchable copy of what until now only
|
|
91
|
+
* reached a discord webhook.
|
|
92
|
+
*
|
|
93
|
+
* `class` is what logged and `file` is the forked entry point it ran in -- the supervisor forks
|
|
94
|
+
* every handler by path, so the two differ when a processor logs from inside a handler's process.
|
|
95
|
+
*/
|
|
96
|
+
export interface ScraperLog {
|
|
97
|
+
scraper_log_id: number;
|
|
98
|
+
message: string | null;
|
|
99
|
+
class: string | null;
|
|
100
|
+
file: string | null;
|
|
101
|
+
pid: number | null;
|
|
102
|
+
date_of_entry: string;
|
|
103
|
+
deleted: number;
|
|
104
|
+
}
|
|
105
|
+
export type ScraperLogs = {
|
|
106
|
+
[scraper_log_id: number]: ScraperLog;
|
|
107
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export * as Ranking from './api/ranking.ts';
|
|
|
29
29
|
export * as Search from './api/search.ts';
|
|
30
30
|
export * as Secret from './api/secret.ts';
|
|
31
31
|
export * as Session from './api/session.ts';
|
|
32
|
+
export * as ShishaLog from './api/shisha_log.ts';
|
|
32
33
|
export * as Sitemap from './api/sitemap.ts';
|
|
33
34
|
export * as StatisticRanking from './api/statistic_ranking.ts';
|
|
34
35
|
export * as Team from './api/team.ts';
|