@fnlb-project/shared 1.5.108 → 1.5.110
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/types/index.d.ts +43 -32
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -89,6 +89,48 @@ export interface IClientAccount {
|
|
|
89
89
|
bots?: IDBBot[];
|
|
90
90
|
categories?: IDBCategory[];
|
|
91
91
|
}
|
|
92
|
+
export declare enum CommandParamType {
|
|
93
|
+
RequiredParam = 0,
|
|
94
|
+
OptionalParam = 1,
|
|
95
|
+
RequiredSelect = 2,
|
|
96
|
+
OptionalSelect = 3,
|
|
97
|
+
RequiredNumericParam = 4,
|
|
98
|
+
OptionalNumericParam = 5
|
|
99
|
+
}
|
|
100
|
+
export interface ICommandBaseParam {
|
|
101
|
+
id: string;
|
|
102
|
+
type: CommandParamType;
|
|
103
|
+
name: string;
|
|
104
|
+
description: string;
|
|
105
|
+
examples?: string[];
|
|
106
|
+
}
|
|
107
|
+
export interface ICommandNormalParam extends ICommandBaseParam {
|
|
108
|
+
type: CommandParamType.RequiredParam | CommandParamType.OptionalParam;
|
|
109
|
+
extended: boolean;
|
|
110
|
+
}
|
|
111
|
+
export interface ICommandSelectParam extends ICommandBaseParam {
|
|
112
|
+
type: CommandParamType.RequiredSelect | CommandParamType.OptionalSelect;
|
|
113
|
+
options: ICommandSelectParamOptions[];
|
|
114
|
+
}
|
|
115
|
+
export interface ICommandSelectParamOptions {
|
|
116
|
+
id: string;
|
|
117
|
+
name: string;
|
|
118
|
+
alias?: string[];
|
|
119
|
+
}
|
|
120
|
+
export interface ICommandNumericParam extends ICommandBaseParam {
|
|
121
|
+
type: CommandParamType.RequiredNumericParam | CommandParamType.OptionalNumericParam;
|
|
122
|
+
}
|
|
123
|
+
export type CommandParam = ICommandNormalParam | ICommandSelectParam | ICommandNumericParam;
|
|
124
|
+
export interface ISerializedActionFunction {
|
|
125
|
+
id: string;
|
|
126
|
+
config: {
|
|
127
|
+
name: string;
|
|
128
|
+
parent: string;
|
|
129
|
+
alias: string[];
|
|
130
|
+
description: string;
|
|
131
|
+
usage: CommandParam[];
|
|
132
|
+
};
|
|
133
|
+
}
|
|
92
134
|
export interface IDBBot {
|
|
93
135
|
id: string;
|
|
94
136
|
owner: string;
|
|
@@ -270,42 +312,11 @@ export interface IDBCategory {
|
|
|
270
312
|
}
|
|
271
313
|
export interface ICategory extends IDBCategory {
|
|
272
314
|
}
|
|
273
|
-
export declare enum CommandParamType {
|
|
274
|
-
RequiredParam = 0,
|
|
275
|
-
OptionalParam = 1,
|
|
276
|
-
RequiredSelect = 2,
|
|
277
|
-
OptionalSelect = 3,
|
|
278
|
-
RequiredNumericParam = 4,
|
|
279
|
-
OptionalNumericParam = 5
|
|
280
|
-
}
|
|
281
|
-
export interface ICommandBaseParam {
|
|
282
|
-
id: string;
|
|
283
|
-
type: CommandParamType;
|
|
284
|
-
name: string;
|
|
285
|
-
description: string;
|
|
286
|
-
examples?: string[];
|
|
287
|
-
}
|
|
288
|
-
export interface ICommandNormalParam extends ICommandBaseParam {
|
|
289
|
-
type: CommandParamType.RequiredParam | CommandParamType.OptionalParam;
|
|
290
|
-
extended: boolean;
|
|
291
|
-
}
|
|
292
|
-
export interface ICommandSelectParam extends ICommandBaseParam {
|
|
293
|
-
type: CommandParamType.RequiredSelect | CommandParamType.OptionalSelect;
|
|
294
|
-
options: ICommandSelectParamOptions[];
|
|
295
|
-
}
|
|
296
|
-
export interface ICommandSelectParamOptions {
|
|
297
|
-
id: string;
|
|
298
|
-
name: string;
|
|
299
|
-
alias?: string[];
|
|
300
|
-
}
|
|
301
|
-
export interface ICommandNumericParam extends ICommandBaseParam {
|
|
302
|
-
type: CommandParamType.RequiredNumericParam | CommandParamType.OptionalNumericParam;
|
|
303
|
-
}
|
|
304
|
-
export type CommandParam = ICommandNormalParam | ICommandSelectParam | ICommandNumericParam;
|
|
305
315
|
export interface ISerializedCommand {
|
|
306
316
|
id: string;
|
|
307
317
|
config: {
|
|
308
318
|
name: string;
|
|
319
|
+
parent: string;
|
|
309
320
|
alias: string[];
|
|
310
321
|
usage: CommandParam[];
|
|
311
322
|
isHidden?: boolean;
|