@srating-io/types 2.2.1 → 2.3.0

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.
@@ -1,6 +1,5 @@
1
- import { AuditApi, AuditError } from '../audit.ts';
1
+ import { AuditApi, AuditError, ShishaLog } from '../audit.ts';
2
2
  import { Pricings } from '../payments.ts';
3
- import { ShishaLog } from './shisha_log.ts';
4
3
  /**
5
4
  * Every endpoint on this class is admin only and answers `{ error }` to everyone else, so each
6
5
  * result is a union with the refusal rather than an optional-everything object.
package/dist/audit.d.ts CHANGED
@@ -86,15 +86,8 @@ 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;
89
+ export interface ShishaLog {
90
+ shisha_log_id: number;
98
91
  message: string | null;
99
92
  class: string | null;
100
93
  file: string | null;
@@ -102,6 +95,6 @@ export interface ScraperLog {
102
95
  date_of_entry: string;
103
96
  deleted: number;
104
97
  }
105
- export type ScraperLogs = {
106
- [scraper_log_id: number]: ScraperLog;
98
+ export type ShishaLogs = {
99
+ [shisha_log_id: number]: ShishaLog;
107
100
  };
package/dist/index.d.ts CHANGED
@@ -29,7 +29,6 @@ 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';
33
32
  export * as Sitemap from './api/sitemap.ts';
34
33
  export * as StatisticRanking from './api/statistic_ranking.ts';
35
34
  export * as Team from './api/team.ts';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@srating-io/types",
3
3
  "private": false,
4
- "version": "2.2.1",
4
+ "version": "2.3.0",
5
5
  "description": "srating.io shared TypeScript types for GUI and API",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",
@@ -1,9 +0,0 @@
1
- export interface ShishaLog {
2
- shisha_log_id: number;
3
- message: string | null;
4
- class: string | null;
5
- file: string | null;
6
- pid: number | null;
7
- date_of_entry: string;
8
- deleted: number;
9
- }