koishi-plugin-ggcevo 1.0.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.
- package/lib/index.d.ts +119 -0
- package/lib/index.js +1981 -0
- package/package.json +20 -0
- package/readme.md +5 -0
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { Context, Schema } from 'koishi';
|
|
2
|
+
export declare const name = "ggcevo";
|
|
3
|
+
export interface Config {
|
|
4
|
+
mapMonitorEnabled: boolean;
|
|
5
|
+
mapMonitorGroups: string[];
|
|
6
|
+
mapMonitorMapIds: number[];
|
|
7
|
+
}
|
|
8
|
+
export declare const Config: Schema<Config>;
|
|
9
|
+
export declare const inject: {
|
|
10
|
+
required: string[];
|
|
11
|
+
};
|
|
12
|
+
export declare const ItemConfig: Record<number, string>;
|
|
13
|
+
export declare const LotteryPoolConfig: Record<number, string>;
|
|
14
|
+
export type ItemQuality = 't0' | 't1' | 't2' | 't3' | '限定';
|
|
15
|
+
export type ItemType = '皮肤' | '入场特效' | '物品' | '宠物' | '角色名称' | '道具';
|
|
16
|
+
export interface ExchangeItem {
|
|
17
|
+
name: string;
|
|
18
|
+
quality: ItemQuality;
|
|
19
|
+
type: ItemType;
|
|
20
|
+
cost?: number;
|
|
21
|
+
}
|
|
22
|
+
export declare const ExchangeConfig: Record<number, ExchangeItem>;
|
|
23
|
+
declare module 'koishi' {
|
|
24
|
+
interface Tables {
|
|
25
|
+
sc2arcade_player: GgcEvoPlayer;
|
|
26
|
+
sc2arcade_map_monitor: GgcEvoMapMonitorState;
|
|
27
|
+
ggcevo_backpack: Backpack;
|
|
28
|
+
ggcevo_signin_summary: SigninSummary;
|
|
29
|
+
ggcevo_signin_log: SigninLog;
|
|
30
|
+
ggcevo_lottery_log: LotteryLog;
|
|
31
|
+
ggcevo_lottery_status: LotteryStatus;
|
|
32
|
+
ggcevo_exchange_log: ExchangeLog;
|
|
33
|
+
ggcevo_activity: Activity;
|
|
34
|
+
ggcevo_activity_claim_log: ActivityClaimLog;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
export interface GgcEvoPlayer {
|
|
38
|
+
id: number;
|
|
39
|
+
userId: string;
|
|
40
|
+
regionId: number;
|
|
41
|
+
realmId: number;
|
|
42
|
+
profileId: number;
|
|
43
|
+
createdAt: Date;
|
|
44
|
+
isActive: boolean;
|
|
45
|
+
}
|
|
46
|
+
export interface GgcEvoMapMonitorState {
|
|
47
|
+
mapId: number;
|
|
48
|
+
lastState: string;
|
|
49
|
+
lastCheckedAt: Date;
|
|
50
|
+
}
|
|
51
|
+
export interface Backpack {
|
|
52
|
+
id: number;
|
|
53
|
+
user_id: string;
|
|
54
|
+
item_id: number;
|
|
55
|
+
count: number;
|
|
56
|
+
}
|
|
57
|
+
export interface SigninSummary {
|
|
58
|
+
user_id: string;
|
|
59
|
+
total_days: number;
|
|
60
|
+
month_days: number;
|
|
61
|
+
current_month: number;
|
|
62
|
+
continuous_days: number;
|
|
63
|
+
last_signin_date: Date;
|
|
64
|
+
update_time: Date;
|
|
65
|
+
last_allowance_month: number;
|
|
66
|
+
}
|
|
67
|
+
export interface SigninLog {
|
|
68
|
+
id: number;
|
|
69
|
+
user_id: string;
|
|
70
|
+
signin_date: Date;
|
|
71
|
+
signin_type: number;
|
|
72
|
+
reward_config: string;
|
|
73
|
+
create_time: Date;
|
|
74
|
+
}
|
|
75
|
+
export interface LotteryLog {
|
|
76
|
+
id: number;
|
|
77
|
+
user_id: string;
|
|
78
|
+
lottery_id: number;
|
|
79
|
+
prize_id: number;
|
|
80
|
+
cost_type: number;
|
|
81
|
+
cost_num: number;
|
|
82
|
+
draw_time: Date;
|
|
83
|
+
}
|
|
84
|
+
export interface LotteryStatus {
|
|
85
|
+
id: number;
|
|
86
|
+
user_id: string;
|
|
87
|
+
lottery_id: number;
|
|
88
|
+
pity_counter: number;
|
|
89
|
+
total_draw_count: number;
|
|
90
|
+
pity_triggered_count: number;
|
|
91
|
+
rare_hit_count: number;
|
|
92
|
+
update_time: Date;
|
|
93
|
+
}
|
|
94
|
+
export interface ExchangeLog {
|
|
95
|
+
id: number;
|
|
96
|
+
user_id: string;
|
|
97
|
+
exchange_id: number;
|
|
98
|
+
cost_type: number;
|
|
99
|
+
create_time: Date;
|
|
100
|
+
}
|
|
101
|
+
export interface Activity {
|
|
102
|
+
id: number;
|
|
103
|
+
name: string;
|
|
104
|
+
description: string;
|
|
105
|
+
reward_item: number;
|
|
106
|
+
reward_amount: number;
|
|
107
|
+
start_time: Date;
|
|
108
|
+
end_time: Date;
|
|
109
|
+
max_claims: number;
|
|
110
|
+
required_group: string;
|
|
111
|
+
created_at: Date;
|
|
112
|
+
}
|
|
113
|
+
export interface ActivityClaimLog {
|
|
114
|
+
id: number;
|
|
115
|
+
activity_id: number;
|
|
116
|
+
user_id: string;
|
|
117
|
+
claimed_at: Date;
|
|
118
|
+
}
|
|
119
|
+
export declare function apply(ctx: Context, config: Config): void;
|