gcm-database 0.0.5 → 0.0.6
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/ongeki/chart.d.ts
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
import type { BaseChart } from "../base/chart";
|
|
2
2
|
import type { Difficulty } from "./difficulty";
|
|
3
|
+
export declare enum LunaticType {
|
|
4
|
+
NONE = "none",
|
|
5
|
+
REMASTER = "remaster",
|
|
6
|
+
LUNATIC = "lunatic"
|
|
7
|
+
}
|
|
3
8
|
export interface Chart extends BaseChart {
|
|
4
9
|
difficulty: Difficulty;
|
|
10
|
+
lunatic: LunaticType;
|
|
11
|
+
boss: {
|
|
12
|
+
character: {
|
|
13
|
+
rarity: string;
|
|
14
|
+
name: string;
|
|
15
|
+
/**
|
|
16
|
+
* Characters with `N` rarity don't have a comment.
|
|
17
|
+
*/
|
|
18
|
+
comment?: string;
|
|
19
|
+
/**
|
|
20
|
+
* An identifier to fetch the card image from the database.
|
|
21
|
+
*/
|
|
22
|
+
card: string;
|
|
23
|
+
};
|
|
24
|
+
level: number;
|
|
25
|
+
};
|
|
5
26
|
}
|
package/dist/ongeki/chart.js
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LunaticType = void 0;
|
|
4
|
+
var LunaticType;
|
|
5
|
+
(function (LunaticType) {
|
|
6
|
+
LunaticType["NONE"] = "none";
|
|
7
|
+
LunaticType["REMASTER"] = "remaster";
|
|
8
|
+
LunaticType["LUNATIC"] = "lunatic";
|
|
9
|
+
})(LunaticType || (exports.LunaticType = LunaticType = {}));
|
|
3
10
|
//# sourceMappingURL=chart.js.map
|
package/dist/ongeki/chart.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chart.js","sourceRoot":"","sources":["../../src/ongeki/chart.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"chart.js","sourceRoot":"","sources":["../../src/ongeki/chart.ts"],"names":[],"mappings":";;;AAGA,IAAY,WAIX;AAJD,WAAY,WAAW;IACnB,4BAAa,CAAA;IACb,oCAAqB,CAAA;IACrB,kCAAmB,CAAA;AACvB,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB"}
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import type { Database as BaseDatabase } from "../base/database";
|
|
2
|
+
import type { DataOrError } from "../base/dataOrError";
|
|
2
3
|
import type { Chart } from "./chart";
|
|
3
4
|
export interface Database<T extends Chart> extends BaseDatabase<T> {
|
|
5
|
+
/**
|
|
6
|
+
* Get the image of the boss of this chart.
|
|
7
|
+
*
|
|
8
|
+
* @param chart A Ongeki chart.
|
|
9
|
+
* @returns Image buffer or error.
|
|
10
|
+
*/
|
|
11
|
+
getBossCard(chart: T): Promise<DataOrError<Buffer>>;
|
|
4
12
|
}
|