@fnlb-project/shared 1.0.6 → 1.0.7
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/errors/index.d.ts +8 -2
- package/dist/errors/index.js +1 -1
- package/dist/types/index.d.ts +3 -1
- package/dist/types/index.js +1 -1
- package/package.json +1 -1
package/dist/errors/index.d.ts
CHANGED
|
@@ -29,13 +29,15 @@ declare enum GeneralErrorCodes {
|
|
|
29
29
|
declare enum InputErrorCodes {
|
|
30
30
|
LoginInvalidCredentials = "net.fnlb.errors.login.invalid_credentials",
|
|
31
31
|
LoginInvalidEmail = "net.fnlb.errors.login.invalid_email",
|
|
32
|
-
LoginInvalidOrUsedEmail = "net.fnlb.errors.login.invalid_or_used_email"
|
|
32
|
+
LoginInvalidOrUsedEmail = "net.fnlb.errors.login.invalid_or_used_email",
|
|
33
|
+
AuthPasswordConfirmationInvalid = "net.fnlb.errors.auth.invalid_password_confirmation"
|
|
33
34
|
}
|
|
34
35
|
export type ErrorCodes = GeneralErrorCodes | InputErrorCodes;
|
|
35
36
|
declare const ErrorCodes: {
|
|
36
37
|
readonly LoginInvalidCredentials: InputErrorCodes.LoginInvalidCredentials;
|
|
37
38
|
readonly LoginInvalidEmail: InputErrorCodes.LoginInvalidEmail;
|
|
38
39
|
readonly LoginInvalidOrUsedEmail: InputErrorCodes.LoginInvalidOrUsedEmail;
|
|
40
|
+
readonly AuthPasswordConfirmationInvalid: InputErrorCodes.AuthPasswordConfirmationInvalid;
|
|
39
41
|
readonly GenericUnknown: GeneralErrorCodes.GenericUnknown;
|
|
40
42
|
readonly GenericInternalError: GeneralErrorCodes.GenericInternalError;
|
|
41
43
|
readonly GenericValidationFailed: GeneralErrorCodes.GenericValidationFailed;
|
|
@@ -126,9 +128,13 @@ declare const errorMap: {
|
|
|
126
128
|
readonly type: ErrorTypes.General;
|
|
127
129
|
readonly message: "Your account is banned from the service.";
|
|
128
130
|
};
|
|
131
|
+
readonly "net.fnlb.errors.auth.invalid_password_confirmation": {
|
|
132
|
+
readonly type: ErrorTypes.Input;
|
|
133
|
+
readonly message: "Sorry, the password is invalid or does not match.";
|
|
134
|
+
};
|
|
129
135
|
readonly "net.fnlb.errors.login.invalid_credentials": {
|
|
130
136
|
readonly type: ErrorTypes.Input;
|
|
131
|
-
readonly message: "The email or password is incorrect";
|
|
137
|
+
readonly message: "The email or password is incorrect.";
|
|
132
138
|
};
|
|
133
139
|
readonly "net.fnlb.errors.login.invalid_email": {
|
|
134
140
|
readonly type: ErrorTypes.Input;
|
package/dist/errors/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var t;((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.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.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"})(t||={});var o;((a)=>{a.LoginInvalidCredentials="net.fnlb.errors.login.invalid_credentials";a.LoginInvalidEmail="net.fnlb.errors.login.invalid_email";a.LoginInvalidOrUsedEmail="net.fnlb.errors.login.invalid_or_used_email"})(o||={});var e={...t,...o};var i={[e.GenericUnknown]:{type:"general",message:"An unknown error occurred. This may be due to an unexpected condition in the server."},[e.GenericInternalError]:{type:"general",message:"An internal server error occurred. This may be due to an unhandled exception. Please try again."},[e.GenericValidationFailed]:{type:"general",message:"Validation of the request data failed."},[e.GenericParseFailed]:{type:"general",message:"The request could not be parsed. This may be due to a malformed input or an unsupported data format."},[e.GenericNotFound]:{type:"general",message:"The requested resource does not exist."},[e.CommonInvalidRequest]:{type:"general",message:"The request is not valid."},[e.CommonUnableToProcessRequest]:{type:"general",message:"Unable to process the request. Please try again."},[e.CommonInvalidFieldsLength]:{type:"general",message:"The body fields have an invalid length."},[e.CommonRateLimitExceeded]:{type:"general",message:"You are being rate limited."},[e.CommonUnableToSaveToDatabase]:{type:"general",message:"Unable to save changes. Please check all fields."},[e.AuthInvalidToken]:{type:"general",message:"Invalid token provided."},[e.AuthInvalidAPIToken]:{type:"general",message:"Invalid API token provided."},[e.AuthInvalidCaptchaToken]:{type:"general",message:"Sorry, the captcha was not resolved correctly. Please try again."},[e.AuthUnauthorized]:{type:"general",message:"You are not authorized to perform this action."},[e.AuthUserBanned]:{type:"general",message:"Your account is banned from the service."},[e.LoginInvalidCredentials]:{type:"input",message:"The email or password is incorrect"},[e.LoginInvalidEmail]:{type:"input",message:"The email is invalid."},[e.LoginInvalidOrUsedEmail]:{type:"input",message:"The email is invalid or is already used."},[e.Oauth2InvalidCode]:{type:"general",message:"Unable to verify your request at this moment. Please try again later."},[e.Oauth2InvalidScope]:{type:"general",message:"Invalid scope provided."},[e.Oauth2TokenInvalid]:{type:"general",message:"Unable to verify Oauth2 token. Please try again later."},[e.Oauth2UnableToFetchUser]:{type:"general",message:"Unable to obtain user information. Please try again later."},[e.Oauth2UnableToFetchConnections]:{type:"general",message:"Unable to obtain user connections. Please try again later."},[e.Oauth2UserWithoutConnection]:{type:"general",message:"User does not have connections. Please try again later."},[e.Oauth2ConnectionNotVerified]:{type:"general",message:"User does have a connection, but the connection is not verified. Please try again later."},[e.ReleaseNotFound]:{type:"general",message:"Sorry, no release found. Please try again later."},[e.ReleaseVersionAlreadyExists]:{type:"general",message:"Release version already exists."}};class r{static getError(s){return i[s]}}export{r as ErrorHandler};
|
|
1
|
+
var t;((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.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.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"})(t||={});var o;((a)=>{a.LoginInvalidCredentials="net.fnlb.errors.login.invalid_credentials";a.LoginInvalidEmail="net.fnlb.errors.login.invalid_email";a.LoginInvalidOrUsedEmail="net.fnlb.errors.login.invalid_or_used_email";a.AuthPasswordConfirmationInvalid="net.fnlb.errors.auth.invalid_password_confirmation"})(o||={});var e={...t,...o};var i={[e.GenericUnknown]:{type:"general",message:"An unknown error occurred. This may be due to an unexpected condition in the server."},[e.GenericInternalError]:{type:"general",message:"An internal server error occurred. This may be due to an unhandled exception. Please try again."},[e.GenericValidationFailed]:{type:"general",message:"Validation of the request data failed."},[e.GenericParseFailed]:{type:"general",message:"The request could not be parsed. This may be due to a malformed input or an unsupported data format."},[e.GenericNotFound]:{type:"general",message:"The requested resource does not exist."},[e.CommonInvalidRequest]:{type:"general",message:"The request is not valid."},[e.CommonUnableToProcessRequest]:{type:"general",message:"Unable to process the request. Please try again."},[e.CommonInvalidFieldsLength]:{type:"general",message:"The body fields have an invalid length."},[e.CommonRateLimitExceeded]:{type:"general",message:"You are being rate limited."},[e.CommonUnableToSaveToDatabase]:{type:"general",message:"Unable to save changes. Please check all fields."},[e.AuthInvalidToken]:{type:"general",message:"Invalid token provided."},[e.AuthInvalidAPIToken]:{type:"general",message:"Invalid API token provided."},[e.AuthInvalidCaptchaToken]:{type:"general",message:"Sorry, the captcha was not resolved correctly. Please try again."},[e.AuthUnauthorized]:{type:"general",message:"You are not authorized to perform this action."},[e.AuthUserBanned]:{type:"general",message:"Your account is banned from the service."},[e.AuthPasswordConfirmationInvalid]:{type:"input",message:"Sorry, the password is invalid or does not match."},[e.LoginInvalidCredentials]:{type:"input",message:"The email or password is incorrect."},[e.LoginInvalidEmail]:{type:"input",message:"The email is invalid."},[e.LoginInvalidOrUsedEmail]:{type:"input",message:"The email is invalid or is already used."},[e.Oauth2InvalidCode]:{type:"general",message:"Unable to verify your request at this moment. Please try again later."},[e.Oauth2InvalidScope]:{type:"general",message:"Invalid scope provided."},[e.Oauth2TokenInvalid]:{type:"general",message:"Unable to verify Oauth2 token. Please try again later."},[e.Oauth2UnableToFetchUser]:{type:"general",message:"Unable to obtain user information. Please try again later."},[e.Oauth2UnableToFetchConnections]:{type:"general",message:"Unable to obtain user connections. Please try again later."},[e.Oauth2UserWithoutConnection]:{type:"general",message:"User does not have connections. Please try again later."},[e.Oauth2ConnectionNotVerified]:{type:"general",message:"User does have a connection, but the connection is not verified. Please try again later."},[e.ReleaseNotFound]:{type:"general",message:"Sorry, no release found. Please try again later."},[e.ReleaseVersionAlreadyExists]:{type:"general",message:"Release version already exists."}};class r{static getError(s){return i[s]}}export{r as ErrorHandler};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -75,13 +75,15 @@ export declare enum GeneralErrorCodes {
|
|
|
75
75
|
export declare enum InputErrorCodes {
|
|
76
76
|
LoginInvalidCredentials = "net.fnlb.errors.login.invalid_credentials",
|
|
77
77
|
LoginInvalidEmail = "net.fnlb.errors.login.invalid_email",
|
|
78
|
-
LoginInvalidOrUsedEmail = "net.fnlb.errors.login.invalid_or_used_email"
|
|
78
|
+
LoginInvalidOrUsedEmail = "net.fnlb.errors.login.invalid_or_used_email",
|
|
79
|
+
AuthPasswordConfirmationInvalid = "net.fnlb.errors.auth.invalid_password_confirmation"
|
|
79
80
|
}
|
|
80
81
|
export type ErrorCodes = GeneralErrorCodes | InputErrorCodes;
|
|
81
82
|
export declare const ErrorCodes: {
|
|
82
83
|
readonly LoginInvalidCredentials: InputErrorCodes.LoginInvalidCredentials;
|
|
83
84
|
readonly LoginInvalidEmail: InputErrorCodes.LoginInvalidEmail;
|
|
84
85
|
readonly LoginInvalidOrUsedEmail: InputErrorCodes.LoginInvalidOrUsedEmail;
|
|
86
|
+
readonly AuthPasswordConfirmationInvalid: InputErrorCodes.AuthPasswordConfirmationInvalid;
|
|
85
87
|
readonly GenericUnknown: GeneralErrorCodes.GenericUnknown;
|
|
86
88
|
readonly GenericInternalError: GeneralErrorCodes.GenericInternalError;
|
|
87
89
|
readonly GenericValidationFailed: GeneralErrorCodes.GenericValidationFailed;
|
package/dist/types/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var d;((m)=>{m[m.Public=0]="Public";m[m.Private=1]="Private"})(d||={});var
|
|
1
|
+
var d;((m)=>{m[m.Public=0]="Public";m[m.Private=1]="Private"})(d||={});var h;((_)=>{_[_.Offline=0]="Offline";_[_.Booting=1]="Booting";_[_.Available=2]="Available";_[_.Busy=3]="Busy";_[_.Disconnected=4]="Disconnected"})(h||={});var v;((a)=>{a.Win="WIN";a.Mac="MAC";a.Psn="PSN";a.Xbl="XBL";a.Swt="SWT";a.Ios="IOS";a.And="AND";a.Ps5="PS5";a.Xsx="XSX"})(v||={});var x;((m)=>{m[m.Public=0]="Public";m[m.Private=1]="Private"})(x||={});var f;((e)=>{e[e.Equals=0]="Equals";e[e.Includes=1]="Includes";e[e.StartsWith=2]="StartsWith";e[e.EndsWith=3]="EndsWith"})(f||={});var p;((n)=>{n[n.ChatBan=0]="ChatBan";n[n.Kick=1]="Kick";n[n.Block=2]="Block";n[n.RemoveFriend=3]="RemoveFriend";n[n.AddFriend=4]="AddFriend";n[n.Promote=5]="Promote";n[n.Copy=6]="Copy";n[n.Mimic=7]="Mimic";n[n.Hide=8]="Hide";n[n.Show=9]="Show";n[n.Blacklist=10]="Blacklist";n[n.Whitelist=11]="Whitelist"})(p||={});var b;((l)=>{l.GenericUnknown="net.fnlb.errors.generic.unknown";l.GenericInternalError="net.fnlb.errors.generic.internal_error";l.GenericValidationFailed="net.fnlb.errors.generic.validation_failed";l.GenericParseFailed="net.fnlb.errors.generic.parse_failed";l.GenericNotFound="net.fnlb.errors.generic.not_found";l.CommonInvalidRequest="net.fnlb.errors.common.invalid_request";l.CommonUnableToProcessRequest="net.fnlb.errors.common.unable_to_process_request";l.CommonInvalidFieldsLength="net.fnlb.errors.common.invalid_body_fields_length";l.CommonRateLimitExceeded="net.fnlb.errors.common.rate_limit_exceeded";l.CommonUnableToSaveToDatabase="net.fnlb.errors.common.unable_to_save_to_database";l.AuthInvalidToken="net.fnlb.errors.auth.invalid_token";l.AuthInvalidAPIToken="net.fnlb.errors.auth.invalid_api_token";l.AuthInvalidCaptchaToken="net.fnlb.errors.auth.invalid_captcha_token";l.AuthUnauthorized="net.fnlb.errors.auth.unauthorized";l.AuthUserBanned="net.fnlb.errors.auth.user_banned";l.Oauth2InvalidCode="net.fnlb.errors.oauth2.invalid_code";l.Oauth2InvalidScope="net.fnlb.errors.oauth2.invalid_scope";l.Oauth2TokenInvalid="net.fnlb.errors.oauth2.token_invalid";l.Oauth2UnableToFetchUser="net.fnlb.errors.oauth2.unable_to_fetch_user";l.Oauth2UnableToFetchConnections="net.fnlb.errors.oauth2.unable_to_fetch_connections";l.Oauth2UserWithoutConnection="net.fnlb.errors.oauth2.user_without_connection";l.Oauth2ConnectionNotVerified="net.fnlb.errors.oauth2.connection_not_verified";l.ReleaseNotFound="net.fnlb.errors.release.no_release_found";l.ReleaseVersionAlreadyExists="net.fnlb.errors.release.version_already_exists"})(b||={});var s;((e)=>{e.LoginInvalidCredentials="net.fnlb.errors.login.invalid_credentials";e.LoginInvalidEmail="net.fnlb.errors.login.invalid_email";e.LoginInvalidOrUsedEmail="net.fnlb.errors.login.invalid_or_used_email";e.AuthPasswordConfirmationInvalid="net.fnlb.errors.auth.invalid_password_confirmation"})(s||={});var F={...b,...s};var t;((e)=>{e.Username="username";e.Email="email";e.Password="password";e.Shared="shared"})(t||={});var U;((m)=>{m.General="general";m.Input="input"})(U||={});var k;((u)=>{u.Default="en";u.De="de";u.Es="es";u.Fr="fr";u.It="it";u.Pl="pl";u.Pt="pt";u.Tr="tr"})(k||={});export{k as Locales,s as InputErrorCodes,b as GeneralErrorCodes,U as ErrorTypes,t as ErrorInputTypes,F as ErrorCodes,f as CategoryConfigTriggerStringDetectionMethod,p as CategoryConfigTriggerAction,v as CategoryConfigSupportedPlatforms,x as CategoryConfigPartyPrivacy,d as BotTypes,h as BotStatus};
|