@fnlb-project/shared 1.5.14 → 1.5.15
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 +36 -46
- package/dist/types/index.js +1 -1
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -33,25 +33,24 @@ export declare enum CategoryConfigPartyPrivacy {
|
|
|
33
33
|
Public = 0,
|
|
34
34
|
Private = 1
|
|
35
35
|
}
|
|
36
|
-
export declare enum
|
|
36
|
+
export declare enum CategoryConfigTriggerStringMatchingMethod {
|
|
37
37
|
Equals = 0,
|
|
38
38
|
Includes = 1,
|
|
39
39
|
StartsWith = 2,
|
|
40
40
|
EndsWith = 3
|
|
41
41
|
}
|
|
42
42
|
export declare enum CategoryConfigTriggerAction {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
Whitelist = 11
|
|
43
|
+
Blacklist = 0,
|
|
44
|
+
Whitelist = 1,
|
|
45
|
+
Kick = 2,
|
|
46
|
+
Block = 3,
|
|
47
|
+
RemoveFriend = 4,
|
|
48
|
+
AddFriend = 5,
|
|
49
|
+
Promote = 6,
|
|
50
|
+
Copy = 7,
|
|
51
|
+
Mimic = 8,
|
|
52
|
+
Hide = 9,
|
|
53
|
+
Show = 10
|
|
55
54
|
}
|
|
56
55
|
export declare enum CommandParamType {
|
|
57
56
|
RequiredParam = 0,
|
|
@@ -238,6 +237,12 @@ export interface IConnectedClientBot extends IClientBot {
|
|
|
238
237
|
};
|
|
239
238
|
matches: number;
|
|
240
239
|
}
|
|
240
|
+
export interface ICategoryConfigTrigger {
|
|
241
|
+
triggers?: string[];
|
|
242
|
+
matchingMethods?: CategoryConfigTriggerStringMatchingMethod[];
|
|
243
|
+
actions?: CategoryConfigTriggerAction[];
|
|
244
|
+
messages?: string[];
|
|
245
|
+
}
|
|
241
246
|
export interface ICategoryConfig {
|
|
242
247
|
replyLangs?: Locales[];
|
|
243
248
|
searchLangs?: Locales[];
|
|
@@ -272,50 +277,25 @@ export interface ICategoryConfig {
|
|
|
272
277
|
id?: string;
|
|
273
278
|
name?: string;
|
|
274
279
|
}[];
|
|
275
|
-
disableMatchmakingChecks?: boolean;
|
|
276
|
-
disableJoinMessages?: boolean;
|
|
277
|
-
disableAutomaticMessages?: boolean;
|
|
278
280
|
inviteTimeout?: number;
|
|
279
281
|
maxBotsPerLobby?: number;
|
|
280
282
|
maxBotsPerLobbyWithOwner?: number;
|
|
281
283
|
maxBotsPerLobbyWithAdmin?: number;
|
|
282
284
|
maxBotsPerLobbyWithWhitelistUser?: number;
|
|
283
285
|
allowMatchmaking?: boolean;
|
|
286
|
+
disableMatchmakingChecks?: boolean;
|
|
287
|
+
disableJoinMessages?: boolean;
|
|
288
|
+
disableAutomaticMessages?: boolean;
|
|
284
289
|
acceptFriendRequests?: boolean;
|
|
285
290
|
sendFriendRequestOnJoinParty?: boolean;
|
|
286
291
|
sendFriendRequestOnMemberJoinParty?: boolean;
|
|
287
292
|
runCommandsWithoutPrefix?: boolean;
|
|
288
293
|
setCosmeticsWithoutCommands?: boolean;
|
|
289
|
-
usernameTriggers?:
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
}[];
|
|
295
|
-
messageContentTriggers?: {
|
|
296
|
-
triggers?: string[];
|
|
297
|
-
detectionMethods?: CategoryConfigTriggerStringDetectionMethod[];
|
|
298
|
-
actions?: CategoryConfigTriggerAction[];
|
|
299
|
-
messages?: string[];
|
|
300
|
-
}[];
|
|
301
|
-
cosmeticTriggers?: {
|
|
302
|
-
triggers?: string[];
|
|
303
|
-
detectionMethods?: CategoryConfigTriggerStringDetectionMethod[];
|
|
304
|
-
actions?: CategoryConfigTriggerAction[];
|
|
305
|
-
messages?: string[];
|
|
306
|
-
}[];
|
|
307
|
-
addFriendTrigger?: {
|
|
308
|
-
actions?: CategoryConfigTriggerAction[];
|
|
309
|
-
messages?: string[];
|
|
310
|
-
};
|
|
311
|
-
memberJoinTrigger?: {
|
|
312
|
-
actions?: CategoryConfigTriggerAction[];
|
|
313
|
-
messages?: string[];
|
|
314
|
-
};
|
|
315
|
-
changeCosmeticTrigger?: {
|
|
316
|
-
actions?: CategoryConfigTriggerAction[];
|
|
317
|
-
messages?: string[];
|
|
318
|
-
};
|
|
294
|
+
usernameTriggers?: ICategoryConfigTrigger[];
|
|
295
|
+
messageContentTriggers?: ICategoryConfigTrigger[];
|
|
296
|
+
addFriendTriggers?: ICategoryConfigTrigger[];
|
|
297
|
+
memberJoinTriggers?: ICategoryConfigTrigger[];
|
|
298
|
+
changeCosmeticTriggers?: ICategoryConfigTrigger[];
|
|
319
299
|
onlyOwnerCommands?: string[];
|
|
320
300
|
onlyAdminCommands?: string[];
|
|
321
301
|
onlyWhitelistUsersCommands?: string[];
|
|
@@ -341,6 +321,9 @@ export interface ICategoryConfig {
|
|
|
341
321
|
startBanner?: {
|
|
342
322
|
id?: string;
|
|
343
323
|
}[];
|
|
324
|
+
startBannerColor?: {
|
|
325
|
+
id?: string;
|
|
326
|
+
}[];
|
|
344
327
|
joinOutfit?: {
|
|
345
328
|
id?: string;
|
|
346
329
|
variants?: number[];
|
|
@@ -363,6 +346,9 @@ export interface ICategoryConfig {
|
|
|
363
346
|
joinBanner?: {
|
|
364
347
|
id?: string;
|
|
365
348
|
}[];
|
|
349
|
+
joinBannerColor?: {
|
|
350
|
+
id?: string;
|
|
351
|
+
}[];
|
|
366
352
|
memberJoinOutfit?: {
|
|
367
353
|
id?: string;
|
|
368
354
|
variants?: number[];
|
|
@@ -385,7 +371,11 @@ export interface ICategoryConfig {
|
|
|
385
371
|
memberJoinBanner?: {
|
|
386
372
|
id?: string;
|
|
387
373
|
}[];
|
|
374
|
+
memberJoinBannerColor?: {
|
|
375
|
+
id?: string;
|
|
376
|
+
}[];
|
|
388
377
|
}
|
|
378
|
+
export declare const defaultCategoryConfig: ICategoryConfig;
|
|
389
379
|
export interface IDBCategory {
|
|
390
380
|
id: string;
|
|
391
381
|
owner: string;
|
package/dist/types/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var t;((_)=>{_[_.Public=0]="Public";_[_.Private=1]="Private"})(t||={});var f;((l)=>{l[l.Offline=0]="Offline";l[l.Booting=1]="Booting";l[l.Available=2]="Available";l[l.Busy=3]="Busy";l[l.Disconnected=4]="Disconnected"})(f||={});var x;((l)=>{l[l.Neutral=0]="Neutral";l[l.Success=1]="Success";l[l.Info=2]="Info";l[l.Warn=3]="Warn";l[l.Error=4]="Error"})(x||={});var d;((s)=>{s.Win="WIN";s.Mac="MAC";s.Psn="PSN";s.Xbl="XBL";s.Swt="SWT";s.Ios="IOS";s.And="AND";s.Ps5="PS5";s.Xsx="XSX"})(d||={});var c;((_)=>{_[_.Public=0]="Public";_[_.Private=1]="Private"})(c||={});var O;((u)=>{u[u.Equals=0]="Equals";u[u.Includes=1]="Includes";u[u.StartsWith=2]="StartsWith";u[u.EndsWith=3]="EndsWith"})(O||={});var U;((e)=>{e[e.Blacklist=0]="Blacklist";e[e.Whitelist=1]="Whitelist";e[e.Kick=2]="Kick";e[e.Block=3]="Block";e[e.RemoveFriend=4]="RemoveFriend";e[e.AddFriend=5]="AddFriend";e[e.Promote=6]="Promote";e[e.Copy=7]="Copy";e[e.Mimic=8]="Mimic";e[e.Hide=9]="Hide";e[e.Show=10]="Show"})(U||={});var k;((b)=>{b[b.RequiredParam=0]="RequiredParam";b[b.OptionalParam=1]="OptionalParam";b[b.RequiredSelect=2]="RequiredSelect";b[b.OptionalSelect=3]="OptionalSelect";b[b.RequiredNumericParam=4]="RequiredNumericParam";b[b.OptionalNumericParam=5]="OptionalNumericParam"})(k||={});var h;((n)=>{n.GenericUnknown="net.fnlb.errors.generic.unknown";n.GenericInternalError="net.fnlb.errors.generic.internal_error";n.GenericValidationFailed="net.fnlb.errors.generic.validation_failed";n.GenericParseFailed="net.fnlb.errors.generic.parse_failed";n.GenericNotFound="net.fnlb.errors.generic.not_found";n.GenericAlreadyExists="net.fnlb.errors.generic.already_exists";n.CommonInvalidRequest="net.fnlb.errors.common.invalid_request";n.CommonUnableToProcessRequest="net.fnlb.errors.common.unable_to_process_request";n.CommonInvalidFieldsLength="net.fnlb.errors.common.invalid_body_fields_length";n.CommonRateLimitExceeded="net.fnlb.errors.common.rate_limit_exceeded";n.CommonUnableToSaveToDatabase="net.fnlb.errors.common.unable_to_save_to_database";n.AuthInvalidToken="net.fnlb.errors.auth.invalid_token";n.AuthInvalidAPIToken="net.fnlb.errors.auth.invalid_api_token";n.AuthInvalidCaptchaToken="net.fnlb.errors.auth.invalid_captcha_token";n.AuthUnauthorized="net.fnlb.errors.auth.unauthorized";n.AuthForbidden="net.fnlb.errors.auth.forbidden";n.AuthUserBanned="net.fnlb.errors.auth.user_banned";n.Oauth2InvalidCode="net.fnlb.errors.oauth2.invalid_code";n.Oauth2InvalidScope="net.fnlb.errors.oauth2.invalid_scope";n.Oauth2TokenInvalid="net.fnlb.errors.oauth2.token_invalid";n.Oauth2UnableToFetchUser="net.fnlb.errors.oauth2.unable_to_fetch_user";n.Oauth2UnableToFetchConnections="net.fnlb.errors.oauth2.unable_to_fetch_connections";n.Oauth2UserWithoutConnection="net.fnlb.errors.oauth2.user_without_connection";n.Oauth2ConnectionNotVerified="net.fnlb.errors.oauth2.connection_not_verified";n.ReleaseNotFound="net.fnlb.errors.release.no_release_found";n.ReleaseVersionAlreadyExists="net.fnlb.errors.release.version_already_exists"})(h||={});var i;((u)=>{u.LoginInvalidCredentials="net.fnlb.errors.login.invalid_credentials";u.LoginInvalidEmail="net.fnlb.errors.login.invalid_email";u.LoginInvalidOrUsedEmail="net.fnlb.errors.login.invalid_or_used_email";u.AuthPasswordConfirmationInvalid="net.fnlb.errors.auth.invalid_password_confirmation"})(i||={});var P={...h,...i};var I;((u)=>{u.Username="username";u.Email="email";u.Password="password";u.Shared="shared"})(I||={});var q;((_)=>{_.General="general";_.Input="input"})(q||={});var w;((v)=>{v.Default="en";v.De="de";v.Es="es";v.Fr="fr";v.It="it";v.Pl="pl";v.Pt="pt";v.Tr="tr"})(w||={});export{w as Locales,i as InputErrorCodes,h as GeneralErrorCodes,q as ErrorTypes,I as ErrorInputTypes,P as ErrorCodes,x as CommandReplyFormat,k as CommandParamType,O as CategoryConfigTriggerStringMatchingMethod,U as CategoryConfigTriggerAction,d as CategoryConfigSupportedPlatforms,c as CategoryConfigPartyPrivacy,t as BotTypes,f as BotStatus};
|