koishi-plugin-warframe 0.0.1 → 0.0.3
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/LICENSE +674 -0
- package/lib/index.d.ts +37 -18
- package/lib/index.js +263 -41515
- package/package.json +7 -2
- /package/{readme.md → README.md} +0 -0
package/lib/index.d.ts
CHANGED
|
@@ -1,7 +1,18 @@
|
|
|
1
|
+
import { IRegion } from 'warframe-public-export-plus';
|
|
1
2
|
import Puppeteer from 'koishi-plugin-puppeteer';
|
|
2
3
|
import Element from '@satorijs/element';
|
|
3
4
|
import { Element, Argv, Context, Schema } from 'koishi';
|
|
5
|
+
export const fetchAsyncText: (url: string, method?: string) => Promise<string | null>;
|
|
4
6
|
export const fetchAsyncData: <T>(url: string, method?: string) => Promise<T | null>;
|
|
7
|
+
export const fullWidthToHalfWidth: (str: string) => string;
|
|
8
|
+
export const transformListIntoDict: <T>(dict: T[], predict: (obj: T) => string[]) => {
|
|
9
|
+
[key: string]: T;
|
|
10
|
+
};
|
|
11
|
+
export const dictToKeyDict: <T>(dict: {
|
|
12
|
+
[key: string]: T;
|
|
13
|
+
}, predict: (obj: T) => string[]) => {
|
|
14
|
+
[key: string]: string;
|
|
15
|
+
};
|
|
5
16
|
export const toTimeStamp: (timeStr: string) => number;
|
|
6
17
|
/**
|
|
7
18
|
* 毫秒转「X小时X分钟X秒」格式(0单位不显示)
|
|
@@ -9,7 +20,25 @@ export const toTimeStamp: (timeStr: string) => number;
|
|
|
9
20
|
* @returns {string} 示例:3661000ms → "1小时1分钟1秒";61000ms → "1分钟1秒";500ms → "0秒"
|
|
10
21
|
*/
|
|
11
22
|
export const msToHumanReadable: (ms: number) => string;
|
|
12
|
-
export const
|
|
23
|
+
export const getSolNodeKey: (name: string) => Promise<string>;
|
|
24
|
+
export const fissureTierName: {
|
|
25
|
+
1: string;
|
|
26
|
+
2: string;
|
|
27
|
+
3: string;
|
|
28
|
+
4: string;
|
|
29
|
+
5: string;
|
|
30
|
+
6: string;
|
|
31
|
+
7: string;
|
|
32
|
+
};
|
|
33
|
+
export const fissureTierNumToNumber: (a: number | string) => number;
|
|
34
|
+
export const regionToShort: (region: IRegion, dict: any) => {
|
|
35
|
+
name: any;
|
|
36
|
+
system: any;
|
|
37
|
+
type: any;
|
|
38
|
+
faction: any;
|
|
39
|
+
maxLevel: number;
|
|
40
|
+
minLevel: number;
|
|
41
|
+
};
|
|
13
42
|
export const getWFMItemList: () => Promise<WFMResponse<ItemShort[] | null>>;
|
|
14
43
|
export const getWFMOrderList: (itemId: string) => Promise<WFMResponse<OrderWithUser[] | null>>;
|
|
15
44
|
export const getWFMRivenItemList: () => Promise<WFMResponse<RivenItem[] | null>>;
|
|
@@ -44,22 +73,14 @@ declare const _default: {
|
|
|
44
73
|
ClanNode24: number;
|
|
45
74
|
};
|
|
46
75
|
declare const arbys: string;
|
|
47
|
-
export const ArbiTable: (arbi: Arby[]) => Element;
|
|
48
|
-
export const CircuitTable: (incarnons: string[], warframes: string[]) => Element;
|
|
49
|
-
export const FissureTable: (fissures: Fissure[], type: "fissure" | "sp-fissure" | "rj-fissure") => Element;
|
|
50
76
|
export const incarnonRewards: string[][];
|
|
51
77
|
export const warframeRewards: string[][];
|
|
52
|
-
export const
|
|
53
|
-
export const
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
maxLevel: number;
|
|
59
|
-
minLevel: number;
|
|
60
|
-
};
|
|
61
|
-
export const getArbysWeek: (day?: number) => Arby[] | string;
|
|
62
|
-
export const generateArbyWeekOutput: (puppe: Puppeteer, arby: Arby[]) => Promise<import("koishi").Element>;
|
|
78
|
+
export const ArbitrationTable: (arbi: Arbitration[]) => Element;
|
|
79
|
+
export const CircuitTable: (incarnons: string[], warframes: string[]) => Element;
|
|
80
|
+
export const FissureTable: (fissures: Fissure[], type: "fissure" | "sp-fissure" | "rj-fissure") => Element;
|
|
81
|
+
export const getWorldState: () => Promise<any>;
|
|
82
|
+
export const getArbitrations: (day?: number) => Arbitration[] | string;
|
|
83
|
+
export const generateArbitrationsOutput: (puppe: Puppeteer, arby: Arbitration[]) => Promise<import("koishi").Element>;
|
|
63
84
|
export const getCircuitWeek: () => {
|
|
64
85
|
incarnons: string[];
|
|
65
86
|
warframes: string[];
|
|
@@ -68,7 +89,6 @@ export const generateCircuitWeekOutput: (puppe: Puppeteer, data: {
|
|
|
68
89
|
incarnons: string[];
|
|
69
90
|
warframes: string[];
|
|
70
91
|
}) => Promise<import("koishi").Element>;
|
|
71
|
-
export const updateFissues: () => Promise<boolean>;
|
|
72
92
|
export const getFissures: () => Promise<Fissure[] | "内部错误,获取最新信息失败">;
|
|
73
93
|
export const getSteelPathFissures: () => Promise<Fissure[] | "内部错误,获取最新信息失败">;
|
|
74
94
|
export const getRailjackFissures: () => Promise<Fissure[] | "内部错误,获取最新信息失败">;
|
|
@@ -76,8 +96,7 @@ export const generateFissureOutput: (puppe: Puppeteer, fissures: Fissure[], type
|
|
|
76
96
|
export const wmCommand: (action: Argv, input: string) => Promise<string | import("koishi").Element>;
|
|
77
97
|
export const wmrCommand: (action: Argv, input: string) => Promise<string | import("koishi").Element>;
|
|
78
98
|
export const aboutCommand: () => string;
|
|
79
|
-
export const
|
|
80
|
-
export const arbyCommand: (action: Argv, input?: number) => string | Promise<import("koishi").Element>;
|
|
99
|
+
export const arbitrationCommand: (action: Argv, input?: number) => string | Promise<import("koishi").Element>;
|
|
81
100
|
export const fissureCommand: (action: Argv) => Promise<import("koishi").Element | "内部错误,获取最新信息失败" | "内部错误">;
|
|
82
101
|
export const steelPathFissureCommand: (action: Argv) => Promise<import("koishi").Element | "内部错误,获取最新信息失败" | "内部错误">;
|
|
83
102
|
export const railjackFissureCommand: (action: Argv) => Promise<import("koishi").Element | "内部错误,获取最新信息失败" | "内部错误">;
|