beatsaber-bot-core 0.2.0-rc.11 → 0.2.0-rc.13
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/cjs/cmd/deprecated/tmp.js +2 -2
- package/dist/cjs/cmd/deprecated/tmp.js.map +1 -1
- package/dist/cjs/cmd/score.js.map +1 -1
- package/dist/cjs/config.js.map +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/infra/i18n/default.js +10 -0
- package/dist/cjs/infra/i18n/default.js.map +1 -0
- package/dist/cjs/infra/i18n/index.js +29 -104
- package/dist/cjs/infra/i18n/index.js.map +1 -1
- package/dist/cjs/infra/i18n/util.js +76 -0
- package/dist/cjs/infra/i18n/util.js.map +1 -0
- package/dist/cjs/infra/i18n/zh-cn.json +1 -1
- package/dist/cjs/infra/index.js +8 -3
- package/dist/cjs/infra/index.js.map +1 -1
- package/dist/cjs/infra/support/render/index.js +9 -3
- package/dist/cjs/infra/support/render/index.js.map +1 -1
- package/dist/cjs/interface/bot.js.map +1 -1
- package/dist/cjs/interface/cmd/type.js.map +1 -1
- package/dist/cjs/interface/db/index.js +0 -6
- package/dist/cjs/interface/db/index.js.map +1 -1
- package/dist/cjs/interface/index.js.map +1 -1
- package/dist/cjs/schedules/index.js +2 -2
- package/dist/cjs/schedules/index.js.map +1 -1
- package/dist/cjs/schedules/interface.js.map +1 -1
- package/dist/cjs/schedules/temp.js.map +1 -1
- package/dist/cjs/service/api/index.js +1 -1
- package/dist/cjs/service/api/index.js.map +1 -1
- package/dist/cjs/service/index.js +15 -0
- package/dist/cjs/service/index.js.map +1 -1
- package/dist/cjs/service/preference.js.map +1 -1
- package/dist/cjs/service/render/index.js +12 -2
- package/dist/cjs/service/render/index.js.map +1 -1
- package/dist/cjs/ws/beatleader.js.map +1 -1
- package/dist/cjs/ws/beatsaver.js.map +1 -1
- package/dist/cjs/ws/index.js +0 -2
- package/dist/cjs/ws/index.js.map +1 -1
- package/dist/esm/cmd/deprecated/tmp.js +2 -2
- package/dist/esm/cmd/deprecated/tmp.js.map +1 -1
- package/dist/esm/cmd/score.js.map +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/infra/i18n/default.js +10 -0
- package/dist/esm/infra/i18n/default.js.map +1 -0
- package/dist/esm/infra/i18n/index.js +29 -92
- package/dist/esm/infra/i18n/index.js.map +1 -1
- package/dist/esm/infra/i18n/util.js +51 -0
- package/dist/esm/infra/i18n/util.js.map +1 -0
- package/dist/esm/infra/index.js +5 -2
- package/dist/esm/infra/index.js.map +1 -1
- package/dist/esm/infra/support/render/index.js +9 -3
- package/dist/esm/infra/support/render/index.js.map +1 -1
- package/dist/esm/interface/db/index.js +0 -1
- package/dist/esm/interface/db/index.js.map +1 -1
- package/dist/esm/interface/index.js.map +1 -1
- package/dist/esm/schedules/index.js +2 -2
- package/dist/esm/schedules/index.js.map +1 -1
- package/dist/esm/schedules/temp.js.map +1 -1
- package/dist/esm/service/api/index.js +1 -1
- package/dist/esm/service/api/index.js.map +1 -1
- package/dist/esm/service/index.js +6 -0
- package/dist/esm/service/index.js.map +1 -1
- package/dist/esm/service/preference.js.map +1 -1
- package/dist/esm/service/render/index.js +12 -2
- package/dist/esm/service/render/index.js.map +1 -1
- package/dist/esm/ws/beatleader.js.map +1 -1
- package/dist/esm/ws/beatsaver.js.map +1 -1
- package/dist/esm/ws/index.js +0 -1
- package/dist/esm/ws/index.js.map +1 -1
- package/dist/types/index.d.ts +1030 -44
- package/package.json +7 -7
- package/dist/cjs/ws/scoresaber.js +0 -75
- package/dist/cjs/ws/scoresaber.js.map +0 -1
- package/dist/esm/ws/scoresaber.js +0 -53
- package/dist/esm/ws/scoresaber.js.map +0 -1
- package/dist/types/cmd/bind/bind-beatleader.d.ts +0 -34
- package/dist/types/cmd/bind/bind-beatsaver.d.ts +0 -34
- package/dist/types/cmd/bind/bind-id-beatleader.d.ts +0 -34
- package/dist/types/cmd/bind/bind-id-beatsaver.d.ts +0 -34
- package/dist/types/cmd/bind/bind-scoresaber.d.ts +0 -34
- package/dist/types/cmd/bind/index.d.ts +0 -41
- package/dist/types/cmd/bsmap/id-search.d.ts +0 -41
- package/dist/types/cmd/bsmap/key-search.d.ts +0 -41
- package/dist/types/cmd/bsmap/latest.d.ts +0 -41
- package/dist/types/cmd/config/index.d.ts +0 -2
- package/dist/types/cmd/deprecated/tmp.d.ts +0 -41
- package/dist/types/cmd/index.d.ts +0 -34
- package/dist/types/cmd/rank.d.ts +0 -41
- package/dist/types/cmd/score.d.ts +0 -41
- package/dist/types/cmd/subscribe/beatleader.d.ts +0 -34
- package/dist/types/cmd/subscribe/beatsaver.d.ts +0 -34
- package/dist/types/cmd/subscribe/id-beatleader-score.d.ts +0 -34
- package/dist/types/cmd/subscribe/id-beatsaver-mapper.d.ts +0 -34
- package/dist/types/cmd/subscribe/index.d.ts +0 -41
- package/dist/types/cmd/subscribe/subjoin.d.ts +0 -41
- package/dist/types/cmd/subscribe/subleave.d.ts +0 -41
- package/dist/types/cmd/subscribe/unsubscribe.d.ts +0 -41
- package/dist/types/components/components/RankDifficulty.d.ts +0 -10
- package/dist/types/components/components/base/avatar.d.ts +0 -10
- package/dist/types/components/components/bl-rank-score-item.d.ts +0 -21
- package/dist/types/components/components/bl-score-item.d.ts +0 -10
- package/dist/types/components/components/characteristic.d.ts +0 -9
- package/dist/types/components/components/flag.d.ts +0 -9
- package/dist/types/components/components/icons/BeatLeader.d.ts +0 -6
- package/dist/types/components/components/icons/RankIcon.d.ts +0 -8
- package/dist/types/components/components/icons/ScoreSaberIcon.d.ts +0 -6
- package/dist/types/components/components/progressbar.d.ts +0 -8
- package/dist/types/components/components/scoreItem.d.ts +0 -8
- package/dist/types/components/components/scoregraph.d.ts +0 -15
- package/dist/types/components/components/skill-graph.d.ts +0 -9
- package/dist/types/components/components/socre-badge.d.ts +0 -9
- package/dist/types/components/components/ss-rank-score-item.d.ts +0 -21
- package/dist/types/components/components/ss-score-item.d.ts +0 -8
- package/dist/types/components/index.d.ts +0 -5
- package/dist/types/components/pages/bl-player.d.ts +0 -11
- package/dist/types/components/pages/bl-score-with-rank.d.ts +0 -18
- package/dist/types/components/pages/bl-score.d.ts +0 -15
- package/dist/types/components/pages/bs-map.d.ts +0 -11
- package/dist/types/components/pages/index.d.ts +0 -14
- package/dist/types/components/pages/ss-player.d.ts +0 -13
- package/dist/types/components/utils/bl/beatleader.d.ts +0 -15
- package/dist/types/components/utils/bl/blheadset.d.ts +0 -275
- package/dist/types/components/utils/bl/bsorDecoder.d.ts +0 -189
- package/dist/types/components/utils/bl/bsorReplayAcc.d.ts +0 -38
- package/dist/types/components/utils/bl/getPart.d.ts +0 -9
- package/dist/types/components/utils/bl/stastic.d.ts +0 -3
- package/dist/types/components/utils/canvas.d.ts +0 -2
- package/dist/types/components/utils/format.d.ts +0 -8
- package/dist/types/components/utils/getMods.d.ts +0 -5
- package/dist/types/components/utils/index.d.ts +0 -6
- package/dist/types/components/utils/qrcode.d.ts +0 -3
- package/dist/types/components/utils/sleep.d.ts +0 -3
- package/dist/types/components/utils/tag-format.d.ts +0 -3
- package/dist/types/components/utils/tw-join.d.ts +0 -5
- package/dist/types/config.d.ts +0 -30
- package/dist/types/index-Dagy_c8G.d.ts +0 -74
- package/dist/types/infra/errors/index.d.ts +0 -69
- package/dist/types/infra/i18n/index.d.ts +0 -4
- package/dist/types/infra/i18n/parser.d.ts +0 -16
- package/dist/types/infra/index.d.ts +0 -6
- package/dist/types/infra/s3/index.d.ts +0 -20
- package/dist/types/infra/support/cache.d.ts +0 -6
- package/dist/types/infra/support/fetch/error.d.ts +0 -11
- package/dist/types/infra/support/fetch/index.d.ts +0 -7
- package/dist/types/infra/support/fetch/ofetch.d.ts +0 -24
- package/dist/types/infra/support/render/index.d.ts +0 -38
- package/dist/types/infra/support/render/puppeteer.d.ts +0 -43
- package/dist/types/interface/bot.d.ts +0 -22
- package/dist/types/interface/cmd/builder.d.ts +0 -53
- package/dist/types/interface/cmd/type.d.ts +0 -30
- package/dist/types/interface/db/index.d.ts +0 -45
- package/dist/types/interface/db/models.d.ts +0 -41
- package/dist/types/interface/index.d.ts +0 -30
- package/dist/types/interface/logger.d.ts +0 -8
- package/dist/types/schedules/index.d.ts +0 -40
- package/dist/types/schedules/interface.d.ts +0 -45
- package/dist/types/schedules/temp.d.ts +0 -35
- package/dist/types/service/api/base/aioclient.d.ts +0 -13
- package/dist/types/service/api/base/blclient.d.ts +0 -28
- package/dist/types/service/api/base/bsclient.d.ts +0 -29
- package/dist/types/service/api/base/index.d.ts +0 -19
- package/dist/types/service/api/base/ssclient.d.ts +0 -17
- package/dist/types/service/api/index.d.ts +0 -59
- package/dist/types/service/api/interfaces/aiosaber/index.d.ts +0 -9
- package/dist/types/service/api/interfaces/beatleader/bsor.d.ts +0 -113
- package/dist/types/service/api/interfaces/beatleader/index.d.ts +0 -5
- package/dist/types/service/api/interfaces/beatleader/req.d.ts +0 -22
- package/dist/types/service/api/interfaces/beatleader/score.d.ts +0 -164
- package/dist/types/service/api/interfaces/beatleader/user.d.ts +0 -173
- package/dist/types/service/api/interfaces/beatleader/ws.d.ts +0 -90
- package/dist/types/service/api/interfaces/beatsaver/alert.d.ts +0 -20
- package/dist/types/service/api/interfaces/beatsaver/bsmap.d.ts +0 -70
- package/dist/types/service/api/interfaces/beatsaver/index.d.ts +0 -13
- package/dist/types/service/api/interfaces/beatsaver/resp.d.ts +0 -11
- package/dist/types/service/api/interfaces/beatsaver/user.d.ts +0 -10
- package/dist/types/service/api/interfaces/beatsaver/ws.d.ts +0 -13
- package/dist/types/service/api/interfaces/index.d.ts +0 -14
- package/dist/types/service/api/interfaces/scoresaber/index.d.ts +0 -3
- package/dist/types/service/api/interfaces/scoresaber/item.d.ts +0 -67
- package/dist/types/service/api/interfaces/scoresaber/leaderboard.d.ts +0 -13
- package/dist/types/service/api/interfaces/scoresaber/resp.d.ts +0 -12
- package/dist/types/service/api/interfaces/scoresaber/user.d.ts +0 -35
- package/dist/types/service/api/interfaces/scoresaber/ws.d.ts +0 -80
- package/dist/types/service/api/sortScore.d.ts +0 -5
- package/dist/types/service/index.d.ts +0 -30
- package/dist/types/service/preference.d.ts +0 -38
- package/dist/types/service/render/index.d.ts +0 -43
- package/dist/types/service/render/interfaces.d.ts +0 -30
- package/dist/types/utils/index.d.ts +0 -5
- package/dist/types/ws/beatleader.d.ts +0 -47
- package/dist/types/ws/beatsaver.d.ts +0 -52
- package/dist/types/ws/bl-filter.d.ts +0 -2
- package/dist/types/ws/handler.d.ts +0 -8
- package/dist/types/ws/index.d.ts +0 -36
- package/dist/types/ws/scoresaber.d.ts +0 -47
@@ -1,52 +0,0 @@
|
|
1
|
-
import { WSHandler } from './handler.js';
|
2
|
-
import { Logger } from '../interface/logger.js';
|
3
|
-
import { Config } from '../config.js';
|
4
|
-
import { DB } from '../interface/db/index.js';
|
5
|
-
import { BotService, Session } from '../interface/bot.js';
|
6
|
-
import { BeatSaverWSEvent } from '../service/api/interfaces/beatsaver/ws.js';
|
7
|
-
import { RenderService } from '../service/render/index.js';
|
8
|
-
import '../infra/s3/index.js';
|
9
|
-
import '../infra/support/render/index.js';
|
10
|
-
import '../infra/support/render/puppeteer.js';
|
11
|
-
import 'puppeteer-core';
|
12
|
-
import '../infra/support/fetch/ofetch.js';
|
13
|
-
import 'ofetch';
|
14
|
-
import '../interface/db/models.js';
|
15
|
-
import '../service/api/interfaces/beatsaver/bsmap.js';
|
16
|
-
import '../index-Dagy_c8G.js';
|
17
|
-
import '../service/api/index.js';
|
18
|
-
import '../service/api/interfaces/scoresaber/item.js';
|
19
|
-
import '../service/api/interfaces/scoresaber/user.js';
|
20
|
-
import '../service/api/interfaces/beatleader/score.js';
|
21
|
-
import '../service/api/interfaces/beatleader/user.js';
|
22
|
-
import '../service/api/base/ssclient.js';
|
23
|
-
import '../service/api/interfaces/scoresaber/resp.js';
|
24
|
-
import '../service/api/interfaces/scoresaber/leaderboard.js';
|
25
|
-
import '../service/api/base/blclient.js';
|
26
|
-
import '../service/api/interfaces/index.js';
|
27
|
-
import '../service/api/interfaces/beatleader/req.js';
|
28
|
-
import '../service/api/base/aioclient.js';
|
29
|
-
import '../service/api/interfaces/aiosaber/index.js';
|
30
|
-
import '../service/api/base/bsclient.js';
|
31
|
-
import '../service/api/interfaces/beatsaver/resp.js';
|
32
|
-
import '../service/api/interfaces/beatsaver/user.js';
|
33
|
-
import '../service/preference.js';
|
34
|
-
|
35
|
-
declare class BeatSaverWSHandler<T> implements WSHandler {
|
36
|
-
private readonly logger;
|
37
|
-
private render;
|
38
|
-
private botService;
|
39
|
-
wsUrl: string;
|
40
|
-
private db;
|
41
|
-
config: Config;
|
42
|
-
constructor(db: DB<T>, render: RenderService, logger: Logger, config: Config, botService: BotService<T, Session<T>>);
|
43
|
-
onOpen(): void;
|
44
|
-
onClose(): void;
|
45
|
-
eventParser(event: any): BeatSaverWSEvent;
|
46
|
-
eventFilter: (data: BeatSaverWSEvent) => boolean;
|
47
|
-
eventIdSelector: (data: BeatSaverWSEvent) => string;
|
48
|
-
BSWSHandler(data: BeatSaverWSEvent): Promise<void>;
|
49
|
-
onEvent: (event: any) => Promise<void>;
|
50
|
-
}
|
51
|
-
|
52
|
-
export { BeatSaverWSHandler };
|
package/dist/types/ws/index.d.ts
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
export { BeatleaderWSHandler } from './beatleader.js';
|
2
|
-
export { ScoresaberWSHandler } from './scoresaber.js';
|
3
|
-
export { BeatSaverWSHandler } from './beatsaver.js';
|
4
|
-
export { WSHandler } from './handler.js';
|
5
|
-
import '../interface/logger.js';
|
6
|
-
import '../config.js';
|
7
|
-
import '../infra/s3/index.js';
|
8
|
-
import '../infra/support/render/index.js';
|
9
|
-
import '../infra/support/render/puppeteer.js';
|
10
|
-
import 'puppeteer-core';
|
11
|
-
import '../infra/support/fetch/ofetch.js';
|
12
|
-
import 'ofetch';
|
13
|
-
import '../interface/db/index.js';
|
14
|
-
import '../interface/db/models.js';
|
15
|
-
import '../interface/bot.js';
|
16
|
-
import '../service/render/index.js';
|
17
|
-
import '../index-Dagy_c8G.js';
|
18
|
-
import '../service/api/index.js';
|
19
|
-
import '../service/api/interfaces/scoresaber/item.js';
|
20
|
-
import '../service/api/interfaces/scoresaber/user.js';
|
21
|
-
import '../service/api/interfaces/beatleader/score.js';
|
22
|
-
import '../service/api/interfaces/beatleader/user.js';
|
23
|
-
import '../service/api/base/ssclient.js';
|
24
|
-
import '../service/api/interfaces/scoresaber/resp.js';
|
25
|
-
import '../service/api/interfaces/scoresaber/leaderboard.js';
|
26
|
-
import '../service/api/base/blclient.js';
|
27
|
-
import '../service/api/interfaces/index.js';
|
28
|
-
import '../service/api/interfaces/beatleader/req.js';
|
29
|
-
import '../service/api/base/aioclient.js';
|
30
|
-
import '../service/api/interfaces/aiosaber/index.js';
|
31
|
-
import '../service/api/base/bsclient.js';
|
32
|
-
import '../service/api/interfaces/beatsaver/bsmap.js';
|
33
|
-
import '../service/api/interfaces/beatsaver/resp.js';
|
34
|
-
import '../service/api/interfaces/beatsaver/user.js';
|
35
|
-
import '../service/preference.js';
|
36
|
-
import '../service/api/interfaces/beatsaver/ws.js';
|
@@ -1,47 +0,0 @@
|
|
1
|
-
import { WSHandler } from './handler.js';
|
2
|
-
import { Logger } from '../interface/logger.js';
|
3
|
-
import { Config } from '../config.js';
|
4
|
-
import { DB } from '../interface/db/index.js';
|
5
|
-
import { BotService, Session } from '../interface/bot.js';
|
6
|
-
import { RenderService } from '../service/render/index.js';
|
7
|
-
import '../infra/s3/index.js';
|
8
|
-
import '../infra/support/render/index.js';
|
9
|
-
import '../infra/support/render/puppeteer.js';
|
10
|
-
import 'puppeteer-core';
|
11
|
-
import '../infra/support/fetch/ofetch.js';
|
12
|
-
import 'ofetch';
|
13
|
-
import '../interface/db/models.js';
|
14
|
-
import '../index-Dagy_c8G.js';
|
15
|
-
import '../service/api/index.js';
|
16
|
-
import '../service/api/interfaces/scoresaber/item.js';
|
17
|
-
import '../service/api/interfaces/scoresaber/user.js';
|
18
|
-
import '../service/api/interfaces/beatleader/score.js';
|
19
|
-
import '../service/api/interfaces/beatleader/user.js';
|
20
|
-
import '../service/api/base/ssclient.js';
|
21
|
-
import '../service/api/interfaces/scoresaber/resp.js';
|
22
|
-
import '../service/api/interfaces/scoresaber/leaderboard.js';
|
23
|
-
import '../service/api/base/blclient.js';
|
24
|
-
import '../service/api/interfaces/index.js';
|
25
|
-
import '../service/api/interfaces/beatleader/req.js';
|
26
|
-
import '../service/api/base/aioclient.js';
|
27
|
-
import '../service/api/interfaces/aiosaber/index.js';
|
28
|
-
import '../service/api/base/bsclient.js';
|
29
|
-
import '../service/api/interfaces/beatsaver/bsmap.js';
|
30
|
-
import '../service/api/interfaces/beatsaver/resp.js';
|
31
|
-
import '../service/api/interfaces/beatsaver/user.js';
|
32
|
-
import '../service/preference.js';
|
33
|
-
|
34
|
-
declare class ScoresaberWSHandler<T> implements WSHandler {
|
35
|
-
private readonly logger;
|
36
|
-
private render;
|
37
|
-
private botService;
|
38
|
-
wsUrl: string;
|
39
|
-
private db;
|
40
|
-
config: Config;
|
41
|
-
constructor(db: DB<T>, render: RenderService, logger: Logger, config: Config, botService: BotService<T, Session<T>>);
|
42
|
-
onOpen(): void;
|
43
|
-
onClose(): void;
|
44
|
-
onEvent(event: any): Promise<void>;
|
45
|
-
}
|
46
|
-
|
47
|
-
export { ScoresaberWSHandler };
|