@fnlb-project/shared 1.5.108 → 1.5.109

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.
@@ -89,6 +89,47 @@ 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
+ alias: string[];
129
+ description: string;
130
+ usage: CommandParam[];
131
+ };
132
+ }
92
133
  export interface IDBBot {
93
134
  id: string;
94
135
  owner: string;
@@ -270,38 +311,6 @@ export interface IDBCategory {
270
311
  }
271
312
  export interface ICategory extends IDBCategory {
272
313
  }
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
314
  export interface ISerializedCommand {
306
315
  id: string;
307
316
  config: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fnlb-project/shared",
3
- "version": "1.5.108",
3
+ "version": "1.5.109",
4
4
  "description": "FNLB Shared Library",
5
5
  "files": [
6
6
  "dist"