@fnlb-project/shared 1.0.3 → 1.0.4

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.
@@ -1,5 +1,56 @@
1
1
  // Generated by dts-bundle-generator v9.5.1
2
2
 
3
+ declare enum GeneralErrorCodes {
4
+ CommonInvalidRequest = "net.fnlb.errors.common.invalid_request",
5
+ CommonUnableToProcessRequest = "net.fnlb.errors.common.unable_to_process_request",
6
+ CommonInvalidFieldsLength = "net.fnlb.errors.common.invalid_body_fields_length",
7
+ CommonRateLimitExceeded = "net.fnlb.errors.common.rate_limit_exceeded",
8
+ CommonUnableToSaveToDatabase = "net.fnlb.errors.common.unable_to_save_to_database",
9
+ AuthInvalidToken = "net.fnlb.errors.auth.invalid_token",
10
+ AuthInvalidAPIToken = "net.fnlb.errors.auth.invalid_api_token",
11
+ AuthInvalidCaptchaToken = "net.fnlb.errors.auth.invalid_captcha_token",
12
+ AuthUnauthorized = "net.fnlb.errors.auth.unauthorized",
13
+ AuthUserBanned = "net.fnlb.errors.auth.user_banned",
14
+ Oauth2InvalidCode = "net.fnlb.errors.oauth2.invalid_code",
15
+ Oauth2InvalidScope = "net.fnlb.errors.oauth2.invalid_scope",
16
+ Oauth2TokenInvalid = "net.fnlb.errors.oauth2.token_invalid",
17
+ Oauth2UnableToFetchUser = "net.fnlb.errors.oauth2.unable_to_fetch_user",
18
+ Oauth2UnableToFetchConnections = "net.fnlb.errors.oauth2.unable_to_fetch_connections",
19
+ Oauth2UserWithoutConnection = "net.fnlb.errors.oauth2.user_without_connection",
20
+ Oauth2ConnectionNotVerified = "net.fnlb.errors.oauth2.connection_not_verified",
21
+ ReleaseNotFound = "net.fnlb.errors.release.no_release_found",
22
+ ReleaseVersionAlreadyExists = "net.fnlb.errors.release.version_already_exists"
23
+ }
24
+ declare enum InputErrorCodes {
25
+ LoginInvalidCredentials = "net.fnlb.errors.login.invalid_credentials",
26
+ LoginInvalidEmail = "net.fnlb.errors.login.invalid_email",
27
+ LoginInvalidOrUsedEmail = "net.fnlb.errors.login.invalid_or_used_email"
28
+ }
29
+ export type ErrorCodes = GeneralErrorCodes | InputErrorCodes;
30
+ declare const ErrorCodes: {
31
+ readonly LoginInvalidCredentials: InputErrorCodes.LoginInvalidCredentials;
32
+ readonly LoginInvalidEmail: InputErrorCodes.LoginInvalidEmail;
33
+ readonly LoginInvalidOrUsedEmail: InputErrorCodes.LoginInvalidOrUsedEmail;
34
+ readonly CommonInvalidRequest: GeneralErrorCodes.CommonInvalidRequest;
35
+ readonly CommonUnableToProcessRequest: GeneralErrorCodes.CommonUnableToProcessRequest;
36
+ readonly CommonInvalidFieldsLength: GeneralErrorCodes.CommonInvalidFieldsLength;
37
+ readonly CommonRateLimitExceeded: GeneralErrorCodes.CommonRateLimitExceeded;
38
+ readonly CommonUnableToSaveToDatabase: GeneralErrorCodes.CommonUnableToSaveToDatabase;
39
+ readonly AuthInvalidToken: GeneralErrorCodes.AuthInvalidToken;
40
+ readonly AuthInvalidAPIToken: GeneralErrorCodes.AuthInvalidAPIToken;
41
+ readonly AuthInvalidCaptchaToken: GeneralErrorCodes.AuthInvalidCaptchaToken;
42
+ readonly AuthUnauthorized: GeneralErrorCodes.AuthUnauthorized;
43
+ readonly AuthUserBanned: GeneralErrorCodes.AuthUserBanned;
44
+ readonly Oauth2InvalidCode: GeneralErrorCodes.Oauth2InvalidCode;
45
+ readonly Oauth2InvalidScope: GeneralErrorCodes.Oauth2InvalidScope;
46
+ readonly Oauth2TokenInvalid: GeneralErrorCodes.Oauth2TokenInvalid;
47
+ readonly Oauth2UnableToFetchUser: GeneralErrorCodes.Oauth2UnableToFetchUser;
48
+ readonly Oauth2UnableToFetchConnections: GeneralErrorCodes.Oauth2UnableToFetchConnections;
49
+ readonly Oauth2UserWithoutConnection: GeneralErrorCodes.Oauth2UserWithoutConnection;
50
+ readonly Oauth2ConnectionNotVerified: GeneralErrorCodes.Oauth2ConnectionNotVerified;
51
+ readonly ReleaseNotFound: GeneralErrorCodes.ReleaseNotFound;
52
+ readonly ReleaseVersionAlreadyExists: GeneralErrorCodes.ReleaseVersionAlreadyExists;
53
+ };
3
54
  declare enum ErrorTypes {
4
55
  General = "general",
5
56
  Input = "input"
@@ -94,30 +145,6 @@ declare const errorMap: {
94
145
  readonly message: "Release version already exists.";
95
146
  };
96
147
  };
97
- declare enum ErrorCodes {
98
- CommonInvalidRequest = "net.fnlb.errors.common.invalid_request",
99
- CommonUnableToProcessRequest = "net.fnlb.errors.common.unable_to_process_request",
100
- CommonInvalidFieldsLength = "net.fnlb.errors.common.invalid_body_fields_length",
101
- CommonRateLimitExceeded = "net.fnlb.errors.common.rate_limit_exceeded",
102
- CommonUnableToSaveToDatabase = "net.fnlb.errors.common.unable_to_save_to_database",
103
- AuthInvalidToken = "net.fnlb.errors.auth.invalid_token",
104
- AuthInvalidAPIToken = "net.fnlb.errors.auth.invalid_api_token",
105
- AuthInvalidCaptchaToken = "net.fnlb.errors.auth.invalid_captcha_token",
106
- AuthUnauthorized = "net.fnlb.errors.auth.unauthorized",
107
- AuthUserBanned = "net.fnlb.errors.auth.user_banned",
108
- LoginInvalidCredentials = "net.fnlb.errors.login.invalid_credentials",
109
- LoginInvalidEmail = "net.fnlb.errors.login.invalid_email",
110
- LoginInvalidOrUsedEmail = "net.fnlb.errors.login.invalid_or_used_email",
111
- Oauth2InvalidCode = "net.fnlb.errors.oauth2.invalid_code",
112
- Oauth2InvalidScope = "net.fnlb.errors.oauth2.invalid_scope",
113
- Oauth2TokenInvalid = "net.fnlb.errors.oauth2.token_invalid",
114
- Oauth2UnableToFetchUser = "net.fnlb.errors.oauth2.unable_to_fetch_user",
115
- Oauth2UnableToFetchConnections = "net.fnlb.errors.oauth2.unable_to_fetch_connections",
116
- Oauth2UserWithoutConnection = "net.fnlb.errors.oauth2.user_without_connection",
117
- Oauth2ConnectionNotVerified = "net.fnlb.errors.oauth2.connection_not_verified",
118
- ReleaseNotFound = "net.fnlb.errors.release.no_release_found",
119
- ReleaseVersionAlreadyExists = "net.fnlb.errors.release.version_already_exists"
120
- }
121
148
  export declare abstract class ErrorHandler {
122
149
  static getError<T extends ErrorCodes>(error: T): (typeof errorMap)[T];
123
150
  }
@@ -1 +1 @@
1
- var e={"net.fnlb.errors.common.invalid_request":{type:"general",message:"The request is not valid."},"net.fnlb.errors.common.unable_to_process_request":{type:"general",message:"Unable to process the request. Please try again."},"net.fnlb.errors.common.invalid_body_fields_length":{type:"general",message:"The body fields have an invalid length."},"net.fnlb.errors.common.rate_limit_exceeded":{type:"general",message:"You are being rate limited."},"net.fnlb.errors.common.unable_to_save_to_database":{type:"general",message:"Unable to save changes. Please check all fields."},"net.fnlb.errors.auth.invalid_token":{type:"general",message:"Invalid token provided."},"net.fnlb.errors.auth.invalid_api_token":{type:"general",message:"Invalid API token provided."},"net.fnlb.errors.auth.invalid_captcha_token":{type:"general",message:"Sorry, the captcha was not resolved correctly. Please try again."},"net.fnlb.errors.auth.unauthorized":{type:"general",message:"You are not authorized to perform this action."},"net.fnlb.errors.auth.user_banned":{type:"general",message:"Your account is banned from the service."},"net.fnlb.errors.login.invalid_credentials":{type:"input",message:"The email or password is incorrect"},"net.fnlb.errors.login.invalid_email":{type:"input",message:"The email is invalid."},"net.fnlb.errors.login.invalid_or_used_email":{type:"input",message:"The email is invalid or is already used."},"net.fnlb.errors.oauth2.invalid_code":{type:"general",message:"Unable to verify your request at this moment. Please try again later."},"net.fnlb.errors.oauth2.invalid_scope":{type:"general",message:"Invalid scope provided."},"net.fnlb.errors.oauth2.token_invalid":{type:"general",message:"Unable to verify Oauth2 token. Please try again later."},"net.fnlb.errors.oauth2.unable_to_fetch_user":{type:"general",message:"Unable to obtain user information. Please try again later."},"net.fnlb.errors.oauth2.unable_to_fetch_connections":{type:"general",message:"Unable to obtain user connections. Please try again later."},"net.fnlb.errors.oauth2.user_without_connection":{type:"general",message:"User does not have connections. Please try again later."},"net.fnlb.errors.oauth2.connection_not_verified":{type:"general",message:"User does have a connection, but the connection is not verified. Please try again later."},"net.fnlb.errors.release.no_release_found":{type:"general",message:"Sorry, no release found. Please try again later."},"net.fnlb.errors.release.version_already_exists":{type:"general",message:"Release version already exists."}};class a{static getError(n){return e[n]}}export{a as ErrorHandler};
1
+ var t;((n)=>{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.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 l{static getError(s){return i[s]}}export{l as ErrorHandler};
@@ -46,101 +46,7 @@ export declare enum CategoryConfigTriggerAction {
46
46
  Blacklist = 10,
47
47
  Whitelist = 11
48
48
  }
49
- export declare enum ErrorTypes {
50
- General = "general",
51
- Input = "input"
52
- }
53
- declare const errorMap: {
54
- readonly "net.fnlb.errors.common.invalid_request": {
55
- readonly type: ErrorTypes.General;
56
- readonly message: "The request is not valid.";
57
- };
58
- readonly "net.fnlb.errors.common.unable_to_process_request": {
59
- readonly type: ErrorTypes.General;
60
- readonly message: "Unable to process the request. Please try again.";
61
- };
62
- readonly "net.fnlb.errors.common.invalid_body_fields_length": {
63
- readonly type: ErrorTypes.General;
64
- readonly message: "The body fields have an invalid length.";
65
- };
66
- readonly "net.fnlb.errors.common.rate_limit_exceeded": {
67
- readonly type: ErrorTypes.General;
68
- readonly message: "You are being rate limited.";
69
- };
70
- readonly "net.fnlb.errors.common.unable_to_save_to_database": {
71
- readonly type: ErrorTypes.General;
72
- readonly message: "Unable to save changes. Please check all fields.";
73
- };
74
- readonly "net.fnlb.errors.auth.invalid_token": {
75
- readonly type: ErrorTypes.General;
76
- readonly message: "Invalid token provided.";
77
- };
78
- readonly "net.fnlb.errors.auth.invalid_api_token": {
79
- readonly type: ErrorTypes.General;
80
- readonly message: "Invalid API token provided.";
81
- };
82
- readonly "net.fnlb.errors.auth.invalid_captcha_token": {
83
- readonly type: ErrorTypes.General;
84
- readonly message: "Sorry, the captcha was not resolved correctly. Please try again.";
85
- };
86
- readonly "net.fnlb.errors.auth.unauthorized": {
87
- readonly type: ErrorTypes.General;
88
- readonly message: "You are not authorized to perform this action.";
89
- };
90
- readonly "net.fnlb.errors.auth.user_banned": {
91
- readonly type: ErrorTypes.General;
92
- readonly message: "Your account is banned from the service.";
93
- };
94
- readonly "net.fnlb.errors.login.invalid_credentials": {
95
- readonly type: ErrorTypes.Input;
96
- readonly message: "The email or password is incorrect";
97
- };
98
- readonly "net.fnlb.errors.login.invalid_email": {
99
- readonly type: ErrorTypes.Input;
100
- readonly message: "The email is invalid.";
101
- };
102
- readonly "net.fnlb.errors.login.invalid_or_used_email": {
103
- readonly type: ErrorTypes.Input;
104
- readonly message: "The email is invalid or is already used.";
105
- };
106
- readonly "net.fnlb.errors.oauth2.invalid_code": {
107
- readonly type: ErrorTypes.General;
108
- readonly message: "Unable to verify your request at this moment. Please try again later.";
109
- };
110
- readonly "net.fnlb.errors.oauth2.invalid_scope": {
111
- readonly type: ErrorTypes.General;
112
- readonly message: "Invalid scope provided.";
113
- };
114
- readonly "net.fnlb.errors.oauth2.token_invalid": {
115
- readonly type: ErrorTypes.General;
116
- readonly message: "Unable to verify Oauth2 token. Please try again later.";
117
- };
118
- readonly "net.fnlb.errors.oauth2.unable_to_fetch_user": {
119
- readonly type: ErrorTypes.General;
120
- readonly message: "Unable to obtain user information. Please try again later.";
121
- };
122
- readonly "net.fnlb.errors.oauth2.unable_to_fetch_connections": {
123
- readonly type: ErrorTypes.General;
124
- readonly message: "Unable to obtain user connections. Please try again later.";
125
- };
126
- readonly "net.fnlb.errors.oauth2.user_without_connection": {
127
- readonly type: ErrorTypes.General;
128
- readonly message: "User does not have connections. Please try again later.";
129
- };
130
- readonly "net.fnlb.errors.oauth2.connection_not_verified": {
131
- readonly type: ErrorTypes.General;
132
- readonly message: "User does have a connection, but the connection is not verified. Please try again later.";
133
- };
134
- readonly "net.fnlb.errors.release.no_release_found": {
135
- readonly type: ErrorTypes.General;
136
- readonly message: "Sorry, no release found. Please try again later.";
137
- };
138
- readonly "net.fnlb.errors.release.version_already_exists": {
139
- readonly type: ErrorTypes.General;
140
- readonly message: "Release version already exists.";
141
- };
142
- };
143
- export declare enum ErrorCodes {
49
+ export declare enum GeneralErrorCodes {
144
50
  CommonInvalidRequest = "net.fnlb.errors.common.invalid_request",
145
51
  CommonUnableToProcessRequest = "net.fnlb.errors.common.unable_to_process_request",
146
52
  CommonInvalidFieldsLength = "net.fnlb.errors.common.invalid_body_fields_length",
@@ -151,9 +57,6 @@ export declare enum ErrorCodes {
151
57
  AuthInvalidCaptchaToken = "net.fnlb.errors.auth.invalid_captcha_token",
152
58
  AuthUnauthorized = "net.fnlb.errors.auth.unauthorized",
153
59
  AuthUserBanned = "net.fnlb.errors.auth.user_banned",
154
- LoginInvalidCredentials = "net.fnlb.errors.login.invalid_credentials",
155
- LoginInvalidEmail = "net.fnlb.errors.login.invalid_email",
156
- LoginInvalidOrUsedEmail = "net.fnlb.errors.login.invalid_or_used_email",
157
60
  Oauth2InvalidCode = "net.fnlb.errors.oauth2.invalid_code",
158
61
  Oauth2InvalidScope = "net.fnlb.errors.oauth2.invalid_scope",
159
62
  Oauth2TokenInvalid = "net.fnlb.errors.oauth2.token_invalid",
@@ -164,22 +67,46 @@ export declare enum ErrorCodes {
164
67
  ReleaseNotFound = "net.fnlb.errors.release.no_release_found",
165
68
  ReleaseVersionAlreadyExists = "net.fnlb.errors.release.version_already_exists"
166
69
  }
167
- export type GeneralErrorCodes = {
168
- [K in keyof typeof errorMap]: (typeof errorMap)[K] extends {
169
- type: ErrorTypes.General;
170
- } ? K : never;
171
- }[keyof typeof errorMap];
172
- export type InputErrorCodes = {
173
- [K in keyof typeof errorMap]: (typeof errorMap)[K] extends {
174
- type: ErrorTypes.Input;
175
- } ? K : never;
176
- }[keyof typeof errorMap];
70
+ export declare enum InputErrorCodes {
71
+ LoginInvalidCredentials = "net.fnlb.errors.login.invalid_credentials",
72
+ LoginInvalidEmail = "net.fnlb.errors.login.invalid_email",
73
+ LoginInvalidOrUsedEmail = "net.fnlb.errors.login.invalid_or_used_email"
74
+ }
75
+ export type ErrorCodes = GeneralErrorCodes | InputErrorCodes;
76
+ export declare const ErrorCodes: {
77
+ readonly LoginInvalidCredentials: InputErrorCodes.LoginInvalidCredentials;
78
+ readonly LoginInvalidEmail: InputErrorCodes.LoginInvalidEmail;
79
+ readonly LoginInvalidOrUsedEmail: InputErrorCodes.LoginInvalidOrUsedEmail;
80
+ readonly CommonInvalidRequest: GeneralErrorCodes.CommonInvalidRequest;
81
+ readonly CommonUnableToProcessRequest: GeneralErrorCodes.CommonUnableToProcessRequest;
82
+ readonly CommonInvalidFieldsLength: GeneralErrorCodes.CommonInvalidFieldsLength;
83
+ readonly CommonRateLimitExceeded: GeneralErrorCodes.CommonRateLimitExceeded;
84
+ readonly CommonUnableToSaveToDatabase: GeneralErrorCodes.CommonUnableToSaveToDatabase;
85
+ readonly AuthInvalidToken: GeneralErrorCodes.AuthInvalidToken;
86
+ readonly AuthInvalidAPIToken: GeneralErrorCodes.AuthInvalidAPIToken;
87
+ readonly AuthInvalidCaptchaToken: GeneralErrorCodes.AuthInvalidCaptchaToken;
88
+ readonly AuthUnauthorized: GeneralErrorCodes.AuthUnauthorized;
89
+ readonly AuthUserBanned: GeneralErrorCodes.AuthUserBanned;
90
+ readonly Oauth2InvalidCode: GeneralErrorCodes.Oauth2InvalidCode;
91
+ readonly Oauth2InvalidScope: GeneralErrorCodes.Oauth2InvalidScope;
92
+ readonly Oauth2TokenInvalid: GeneralErrorCodes.Oauth2TokenInvalid;
93
+ readonly Oauth2UnableToFetchUser: GeneralErrorCodes.Oauth2UnableToFetchUser;
94
+ readonly Oauth2UnableToFetchConnections: GeneralErrorCodes.Oauth2UnableToFetchConnections;
95
+ readonly Oauth2UserWithoutConnection: GeneralErrorCodes.Oauth2UserWithoutConnection;
96
+ readonly Oauth2ConnectionNotVerified: GeneralErrorCodes.Oauth2ConnectionNotVerified;
97
+ readonly ReleaseNotFound: GeneralErrorCodes.ReleaseNotFound;
98
+ readonly ReleaseVersionAlreadyExists: GeneralErrorCodes.ReleaseVersionAlreadyExists;
99
+ };
177
100
  export declare enum ErrorInputTypes {
178
101
  Username = "username",
179
102
  Email = "email",
180
103
  Password = "password",
181
104
  Shared = "shared"
182
105
  }
106
+ export declare enum ErrorTypes {
107
+ General = "general",
108
+ Input = "input"
109
+ }
183
110
  export declare enum Locales {
184
111
  Default = "en",
185
112
  De = "de",
@@ -1 +1 @@
1
- var _;((a)=>{a[a.Public=0]="Public";a[a.Private=1]="Private"})(_||={});var b;((m)=>{m[m.Offline=0]="Offline";m[m.Booting=1]="Booting";m[m.Available=2]="Available";m[m.Busy=3]="Busy";m[m.Disconnected=4]="Disconnected"})(b||={});var h;((p)=>{p.Win="WIN";p.Mac="MAC";p.Psn="PSN";p.Xbl="XBL";p.Swt="SWT";p.Ios="IOS";p.And="AND";p.Ps5="PS5";p.Xsx="XSX"})(h||={});var v;((a)=>{a[a.Public=0]="Public";a[a.Private=1]="Private"})(v||={});var s;((l)=>{l[l.Equals=0]="Equals";l[l.Includes=1]="Includes";l[l.StartsWith=2]="StartsWith";l[l.EndsWith=3]="EndsWith"})(s||={});var d;((e)=>{e[e.ChatBan=0]="ChatBan";e[e.Kick=1]="Kick";e[e.Block=2]="Block";e[e.RemoveFriend=3]="RemoveFriend";e[e.AddFriend=4]="AddFriend";e[e.Promote=5]="Promote";e[e.Copy=6]="Copy";e[e.Mimic=7]="Mimic";e[e.Hide=8]="Hide";e[e.Show=9]="Show";e[e.Blacklist=10]="Blacklist";e[e.Whitelist=11]="Whitelist"})(d||={});var x;((n)=>{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.LoginInvalidCredentials="net.fnlb.errors.login.invalid_credentials";n.LoginInvalidEmail="net.fnlb.errors.login.invalid_email";n.LoginInvalidOrUsedEmail="net.fnlb.errors.login.invalid_or_used_email";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"})(x||={});var f;((l)=>{l.Username="username";l.Email="email";l.Password="password";l.Shared="shared"})(f||={});var t;((a)=>{a.General="general";a.Input="input"})(t||={});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,t as ErrorTypes,f as ErrorInputTypes,x as ErrorCodes,s as CategoryConfigTriggerStringDetectionMethod,d as CategoryConfigTriggerAction,h as CategoryConfigSupportedPlatforms,v as CategoryConfigPartyPrivacy,_ as BotTypes,b as BotStatus};
1
+ var v;((_)=>{_[_.Public=0]="Public";_[_.Private=1]="Private"})(v||={});var d;((u)=>{u[u.Offline=0]="Offline";u[u.Booting=1]="Booting";u[u.Available=2]="Available";u[u.Busy=3]="Busy";u[u.Disconnected=4]="Disconnected"})(d||={});var x;((b)=>{b.Win="WIN";b.Mac="MAC";b.Psn="PSN";b.Xbl="XBL";b.Swt="SWT";b.Ios="IOS";b.And="AND";b.Ps5="PS5";b.Xsx="XSX"})(x||={});var p;((_)=>{_[_.Public=0]="Public";_[_.Private=1]="Private"})(p||={});var f;((m)=>{m[m.Equals=0]="Equals";m[m.Includes=1]="Includes";m[m.StartsWith=2]="StartsWith";m[m.EndsWith=3]="EndsWith"})(f||={});var U;((l)=>{l[l.ChatBan=0]="ChatBan";l[l.Kick=1]="Kick";l[l.Block=2]="Block";l[l.RemoveFriend=3]="RemoveFriend";l[l.AddFriend=4]="AddFriend";l[l.Promote=5]="Promote";l[l.Copy=6]="Copy";l[l.Mimic=7]="Mimic";l[l.Hide=8]="Hide";l[l.Show=9]="Show";l[l.Blacklist=10]="Blacklist";l[l.Whitelist=11]="Whitelist"})(U||={});var h;((n)=>{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"})(h||={});var s;((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"})(s||={});var q={...h,...s};var O;((m)=>{m.Username="username";m.Email="email";m.Password="password";m.Shared="shared"})(O||={});var k;((_)=>{_.General="general";_.Input="input"})(k||={});var I;((e)=>{e.Default="en";e.De="de";e.Es="es";e.Fr="fr";e.It="it";e.Pl="pl";e.Pt="pt";e.Tr="tr"})(I||={});export{I as Locales,s as InputErrorCodes,h as GeneralErrorCodes,k as ErrorTypes,O as ErrorInputTypes,q as ErrorCodes,f as CategoryConfigTriggerStringDetectionMethod,U as CategoryConfigTriggerAction,x as CategoryConfigSupportedPlatforms,p as CategoryConfigPartyPrivacy,v as BotTypes,d as BotStatus};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fnlb-project/shared",
3
3
  "description": "FNLB Shared Library",
4
- "version": "1.0.3",
4
+ "version": "1.0.4",
5
5
  "type": "module",
6
6
  "publishConfig": {
7
7
  "access": "public"