@burdenoff/be-sdk 2026.1017.10 → 2026.1021.2

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,76 +0,0 @@
1
- type NameErrorCode = 'required' | 'too_long' | 'no_letter' | 'invalid_chars';
2
- type NameValidationResult = {
3
- valid: true;
4
- value: string;
5
- } | {
6
- valid: false;
7
- code: NameErrorCode;
8
- message: string;
9
- };
10
- declare const NAME_MIN_LENGTH = 1;
11
- declare const NAME_MAX_LENGTH = 100;
12
- declare function lengthInCodePoints(s: string): number;
13
- declare function validateName(name: string | undefined | null): NameValidationResult;
14
-
15
- type UsernameErrorCode = 'required' | 'too_short' | 'too_long' | 'invalid_chars' | 'no_letter';
16
- type UsernameValidationResult = {
17
- valid: true;
18
- value: string;
19
- } | {
20
- valid: false;
21
- errors: Array<{
22
- code: UsernameErrorCode;
23
- message: string;
24
- }>;
25
- };
26
- declare const USERNAME_MIN_LENGTH = 3;
27
- declare const USERNAME_MAX_LENGTH = 30;
28
- declare function validateUsername(username: string | undefined | null): UsernameValidationResult;
29
-
30
- type UserFieldKey = 'firstName' | 'lastName' | 'username';
31
- interface UserFieldError {
32
- field: UserFieldKey;
33
- code: string;
34
- message: string;
35
- }
36
- interface ValidatedUserFields {
37
- firstName: string;
38
- lastName: string;
39
- username: string;
40
- }
41
- type UserFieldsValidationResult = {
42
- valid: true;
43
- values: ValidatedUserFields;
44
- } | {
45
- valid: false;
46
- errors: UserFieldError[];
47
- };
48
- declare function validateUserFields(input: {
49
- firstName?: string | null;
50
- lastName?: string | null;
51
- username?: string | null;
52
- }, options?: {
53
- requireAll?: boolean;
54
- }): UserFieldsValidationResult;
55
-
56
- declare const index_NAME_MAX_LENGTH: typeof NAME_MAX_LENGTH;
57
- declare const index_NAME_MIN_LENGTH: typeof NAME_MIN_LENGTH;
58
- type index_NameErrorCode = NameErrorCode;
59
- type index_NameValidationResult = NameValidationResult;
60
- declare const index_USERNAME_MAX_LENGTH: typeof USERNAME_MAX_LENGTH;
61
- declare const index_USERNAME_MIN_LENGTH: typeof USERNAME_MIN_LENGTH;
62
- type index_UserFieldError = UserFieldError;
63
- type index_UserFieldKey = UserFieldKey;
64
- type index_UserFieldsValidationResult = UserFieldsValidationResult;
65
- type index_UsernameErrorCode = UsernameErrorCode;
66
- type index_UsernameValidationResult = UsernameValidationResult;
67
- type index_ValidatedUserFields = ValidatedUserFields;
68
- declare const index_lengthInCodePoints: typeof lengthInCodePoints;
69
- declare const index_validateName: typeof validateName;
70
- declare const index_validateUserFields: typeof validateUserFields;
71
- declare const index_validateUsername: typeof validateUsername;
72
- declare namespace index {
73
- export { index_NAME_MAX_LENGTH as NAME_MAX_LENGTH, index_NAME_MIN_LENGTH as NAME_MIN_LENGTH, type index_NameErrorCode as NameErrorCode, type index_NameValidationResult as NameValidationResult, index_USERNAME_MAX_LENGTH as USERNAME_MAX_LENGTH, index_USERNAME_MIN_LENGTH as USERNAME_MIN_LENGTH, type index_UserFieldError as UserFieldError, type index_UserFieldKey as UserFieldKey, type index_UserFieldsValidationResult as UserFieldsValidationResult, type index_UsernameErrorCode as UsernameErrorCode, type index_UsernameValidationResult as UsernameValidationResult, type index_ValidatedUserFields as ValidatedUserFields, index_lengthInCodePoints as lengthInCodePoints, index_validateName as validateName, index_validateUserFields as validateUserFields, index_validateUsername as validateUsername };
74
- }
75
-
76
- export { NAME_MAX_LENGTH as N, USERNAME_MAX_LENGTH as U, type ValidatedUserFields as V, NAME_MIN_LENGTH as a, type NameErrorCode as b, type NameValidationResult as c, USERNAME_MIN_LENGTH as d, type UserFieldError as e, type UserFieldKey as f, type UserFieldsValidationResult as g, type UsernameErrorCode as h, type UsernameValidationResult as i, index as j, validateUserFields as k, lengthInCodePoints as l, validateUsername as m, validateName as v };