@jsb188/app 1.1.4 → 1.1.5

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/constants/app.ts CHANGED
@@ -8,6 +8,8 @@ export const NOTIF_EXPIRE_DAYS = 30;
8
8
  export const DOM_IDS = {
9
9
  sidebarInput: 'sidebar_input',
10
10
  mainFocusTextarea: 'main_tx',
11
+ mainBodyScrollArea: 'main_scr',
12
+ popOverScrollArea: 'pop_over_scr',
11
13
  };
12
14
 
13
15
  // Local storage
@@ -43,3 +45,36 @@ export const SOCIAL_URLS = {
43
45
  x: string;
44
46
  x_username: string;
45
47
  }>;
48
+
49
+ // Languages
50
+
51
+ export const SUPPORTED_LANGUAGES = [
52
+ 'ENGLISH',
53
+ 'SPANISH',
54
+ ];
55
+
56
+ // Colors
57
+
58
+ export const COLORS = [
59
+ 'red',
60
+ 'orange',
61
+ 'brown',
62
+ 'amber',
63
+ 'yellow',
64
+ 'lime',
65
+ 'green',
66
+ 'emerald',
67
+ 'teal',
68
+ 'cyan',
69
+ 'sky',
70
+ 'blue',
71
+ 'indigo',
72
+ 'violet',
73
+ 'purple',
74
+ 'fuchsia',
75
+ 'pink',
76
+ 'rose',
77
+ 'slate',
78
+ 'zinc',
79
+ 'stone'
80
+ ];
@@ -1,8 +1,12 @@
1
-
2
1
  // Organization constants
2
+ // IMPORTANT NOTE: Array order must *never* change, indexes are used to create PDF URLs
3
3
 
4
4
  export const OPERATION_ENUMS = ['ARABLE', 'LIVESTOCK'];
5
5
 
6
6
  // Employee ACL
7
7
 
8
8
  export const ROLE_ENUMS = ['MEMBER', 'MANAGER', 'ADMIN', 'OWNER']; // first is default value
9
+
10
+ // Role categories (used for reminders)
11
+
12
+ export const ROLE_CATEGORY_ENUMS = ['EMPLOYEES_ONLY', 'MANAGERS_ONLY'];
@@ -1,8 +1,6 @@
1
1
  export default {
2
2
  en: {
3
- displayName: 'Display name',
4
- displayName_ph: 'e.g. "Jane Doe"',
5
- displayName_info: 'Display name is how others will see you.',
3
+ name_ph: 'e.g. "Jane Doe"',
6
4
  pronouns: 'Pronouns',
7
5
  pronouns_ph: 'Enter your pronouns',
8
6
  about: 'About me',
@@ -12,21 +10,25 @@ export default {
12
10
  username_info: 'Username, ID, and e-mail is used to log in to your account.',
13
11
  email: 'E-mail',
14
12
  email_ph: 'e.g. jane_doe@email.com',
15
- phone: 'e.g. jane_doe@email.com',
16
- // phone_ph: 'e.g. 222-333-4444',
13
+ phone: 'Phone number',
17
14
  phone_ph: 'e.g. 123-444-5555',
18
15
  password: 'Password',
19
16
  password_ph: 'Enter your password',
20
17
  passwordRepeat: 'Password (repeat)',
21
18
  search_ph: 'Search @ or ID',
22
19
  no_one_found_: 'No one found: "%{query}"',
23
- from_friends_list: 'From your friends list',
24
- not_friends_yet: 'Not friends yet',
25
20
  profile_no_desc: 'This user hasn\'t written anything about themselves.',
26
21
  no_one_found: 'No one found with this query.',
27
22
 
28
23
  // App settings
29
24
  account: 'Account',
25
+ fName: 'First name',
26
+ lName: 'Last name',
27
+ language: 'Language',
28
+ ai_language: 'Preferred language for AI',
29
+ timeZone: 'Time zone',
30
+ your_account: 'Your account',
31
+ your_preferences: 'Your preferences',
30
32
  profile: 'Profile',
31
33
  profile_desc: 'Change how your profile looks to others.',
32
34
  personas: 'Personas',
@@ -64,37 +66,13 @@ export default {
64
66
  copy_id: 'Copy ID',
65
67
 
66
68
  // Profile
67
- your_profile: 'Your profile',
69
+ avatar_color: 'Avatar color',
68
70
  open_profile: 'Open profile',
69
71
  cards_ct: '%{smart_count} Card||||%{smart_count} Cards',
70
72
  report_user: 'Report user',
71
73
  profile_deactivated_desc: 'This account has been deactivated.',
72
74
  phone_numbers: 'Phone numbers',
73
75
 
74
- // Friend status
75
- blocked: 'Blocked',
76
- blocked_by_me: 'You blocked this user.',
77
- blocked_by_other: 'You are blocked.',
78
- friends: 'Friends',
79
- friends_msg: 'You are friends.',
80
- friend_status: 'Friend status',
81
- friend_request: 'Friend',
82
- friend_requests_ct: '%{smart_count} Friend request||||%{smart_count} Friend requests',
83
- friend_requested: 'Requested',
84
- friend_requested_msg: 'You received a friend request.',
85
- recent_friends: 'Recent friends',
86
- sent_friend_msg: 'You sent a friend request.',
87
- accept_friend: 'Accept request',
88
- add_friend: 'Add friend',
89
- add_friend_msg: 'You must be friends to send direct messages.',
90
- send_friend: 'Send friend request',
91
- sent_friend: 'Friend requested',
92
- unblock: 'Unblock',
93
- block: 'Block',
94
- remove_friend: 'Remove friend',
95
- ignore_friend: 'Ignore request',
96
- cancel_friend: 'Cancel request',
97
-
98
76
  // Search instructions
99
77
  search_instr_1: 'Search by user ID',
100
78
  search_instr_2: 'Search by @username',
package/i18n/app.ts CHANGED
@@ -21,6 +21,9 @@ export default {
21
21
  // General
22
22
  open_app: 'Open app',
23
23
  home: 'Home',
24
+ timezone_set_to_: 'Time zone is set to: %{timeZone}',
25
+ latest_updates: 'Latest updates',
26
+ update_notes: 'Update notes',
24
27
 
25
28
  // @home screen
26
29
  hey_: 'Hey, ',
package/i18n/auth.ts CHANGED
@@ -8,17 +8,26 @@ export default {
8
8
  continue_with_google: 'Continue with Google',
9
9
  continue_with_discord: 'Continue with Discord',
10
10
  continue_with_apple: 'Continue with Apple',
11
- login_opts: 'Continue with e-mail, ID, or @username',
12
- login_opts_phone_email: 'Continue with phone number or e-mail',
11
+ continue_with_phone: 'Continue with Phone',
12
+ login_opts_main: 'Phone number or e-mail',
13
13
  verify_your_acc: 'Verify your account',
14
14
  reset_password: 'Reset password',
15
15
  forgot_password_: 'Forgot password or username?',
16
16
  signup_email: 'Sign up using e-mail',
17
- signup_using_other: 'Log in with an existing account',
17
+ log_in_w_existing: 'Log in with an existing account',
18
+ log_in_other_methods: 'Log in using other methods',
18
19
  change_password: 'Change password',
19
20
  you_are_verified_: 'You are verified!',
20
- account_is_verified: 'Thank you for verifying your account with e-mail address: %{emailAddress}',
21
+ account_is_verified: 'Thank you for verifying your account with e-mail address: **%{emailAddress}**. Please log in again using your password.',
21
22
  continue_to_login: 'Continue to log in',
23
+ continue_to_app: 'Continue to app',
24
+
25
+ // Phone 2FA
26
+ send_verification_code_msg: 'Enter your phone number and we will send you a verification code for authentication.',
27
+ send_verification_code: 'Send verification code',
28
+ confirm_verification_code_instr: 'Enter the verification code sent to your phone. Please wait few minutes if you did not receive it.',
29
+ resend_verification_code: 'Re-send verification code',
30
+ verification_code_wrong: 'Verification code you entered is incorrect. Please try again.',
22
31
 
23
32
  // Auth
24
33
  username_not_found: 'No one was found with that username.',
@@ -31,6 +40,11 @@ export default {
31
40
  reset_password_instr: 'Choose a new password for your account with the e-mail address: %{emailAddress}',
32
41
  _verify_your_email: ' to verify your e-mail.',
33
42
  _verify_your_phone: ' to verify your phone number.',
43
+ account_secured_: 'Account secured!',
44
+ one_last_step_: 'One last step!',
45
+ add_password: 'Add password',
46
+ add_password_log_in_msg: 'Please add a password to your account (%{identifier}) for security. You will be logged in afterwards.',
47
+ add_password_fin_msg: 'Your account has been secured with a password. From now on, you may use your password to log in.',
34
48
 
35
49
  // Auth - check fails
36
50
  no_account_with_phone: 'No account was found with that phone number.',
package/i18n/error.ts CHANGED
@@ -4,8 +4,8 @@ export default {
4
4
  invalid: 'Invalid',
5
5
  network_error_title: 'Network error',
6
6
  unknown_error: 'An unknown error occured.',
7
- network_error: 'Failed to connect to server. Please try again in a moment.',
8
- network_or_outage_error: 'Failed to connect to server. If your internect connection is stable, our servers may be experiencing an outage.',
7
+ network_error: 'Failed to connect to server.\nPlease try again in a moment.',
8
+ network_or_outage_error: 'Failed to connect to server. If your internet connection is stable, our servers may be experiencing an outage.',
9
9
  app_error_title: 'App crashed',
10
10
  app_error: 'Uh-oh, please refresh the page and tell someone.',
11
11
  not_allowed: 'Not allowed',
@@ -40,16 +40,16 @@ export default {
40
40
  20003: 'Please use "Continue with Google" to log in. (%{value})',
41
41
  '20004_title': 'Continue with Apple',
42
42
  20004: 'Please use "Continue with Apple" to log in. (%{value})',
43
- 20005: 'Could not find user with that username (@%{value})',
44
- 20006: 'Could not find user with that e-mail. (%{value})',
45
- 20007: 'Could not find user with that ID. (%{value})',
43
+ 20005: 'Could not find the account with that username (@%{value})',
44
+ 20006: 'Could not find the account with that e-mail. (%{value})',
45
+ 20007: 'Could not find the account with that ID. (%{value})',
46
46
  20008: 'Your password is incorrect. You have %{value} try(s) remaining.',
47
47
  20009: 'Please wait 10 minutes before trying to log in again.',
48
- 20010: 'Could not find user.',
48
+ 20010: 'This account could not be found.',
49
49
  20011: 'Your token expired, please request a new link.',
50
50
  20012: 'Your token is invalid, please request a new link.',
51
- 20013: 'User already exists with that e-mail address. (%{value})',
52
- 20014: 'User already exists with that username. (%{value})',
51
+ 20013: 'Account already exists with that e-mail address. (%{value})',
52
+ 20014: 'Account already exists with that username. (%{value})',
53
53
  20015: "We couldn't find that user in our database.",
54
54
  20016: 'You are being rate limited. Please try again in a moment.',
55
55
  20017: 'Please check your-email before requesting another verification link or wait few more seconds.',
@@ -61,7 +61,7 @@ export default {
61
61
  20022: 'You are not allowed to chat here.',
62
62
  20023: 'You must be friends to send direct messages.',
63
63
  20024: "You've been temporarily timed out.",
64
- 20025: 'Your account (associated with %{value}) has been banned. If this is an error, please send us an e-mail.',
64
+ 20025: 'Account associated with "%{value}" has been banned. If this is an error, please send us an e-mail.',
65
65
  20026: 'You were blocked by this user.',
66
66
  20027: 'Your IP has been banned. If this is an error, please send us an e-mail.',
67
67
  20028: 'Please disable your VPN and try again.',
@@ -87,10 +87,16 @@ export default {
87
87
  20048: 'This action is forbidden because you deleted your account.',
88
88
  20049: 'You haven\'t verified your account yet.',
89
89
  20050: 'This page does not exist.',
90
- 20051: 'Could not find user with that phone number. (%{value})',
90
+ 20051: 'We couldn\'t find an account associated with that phone number. (%{value})',
91
91
  20052: 'You do not have access to this organization\'s data.',
92
92
  20053: 'You haven\'t verified your account yet.',
93
93
  20054: 'You need an invitation to create an account.',
94
+ 20055: 'You are sending too many verification codes. Please slow down.',
95
+ 20056: 'Account associated with "%{value}" has been banned. If this is an error, please send us an e-mail.',
96
+ 20057: 'Your verification code expired. Please request a new code.',
97
+ 20058: 'You do not have permissions to edit this log. Please contact your administrator.',
98
+ 20059: 'This log was not found.\nIt may have been deleted.',
99
+ 20060: 'You do not have permissions to delete this log. Please contact your administrator.',
94
100
 
95
101
  '29999_title': 'Not ready',
96
102
  29999: 'AI chat is not ready right now.',
@@ -98,14 +104,14 @@ export default {
98
104
  // 3x
99
105
 
100
106
  30000: 'An unknown error occured.',
101
- 30003: "We're having trouble accessing the server. Please try again in a moment.",
107
+ 30003: "We're having trouble accessing the server.",
102
108
  30004: 'We made a mistake in our code. We will fix this soon.',
103
- 30010: 'Google is not responding right now. Please try again in a momment.',
104
- 30011: 'Something went wrong with your Google authentication attempt. Please try again in a moment.',
109
+ 30010: 'Google servers are not responding right now.',
110
+ 30011: 'Something went wrong with your Google authentication attempt.',
105
111
  30013: 'Our database is in maintenance. Please try again in a moment.',
106
112
  30014: 'Stripe CardElement is incorrect.',
107
113
  30015: 'Invalid payment form values.',
108
- 30016: 'Stripe API request failed with an unknown reason. Please try again in a moment.',
114
+ 30016: 'Stripe API request failed with an unknown reason.',
109
115
  30017: 'Your bank declined your payment method. Please try again with a different card.',
110
116
  30018: 'Your card was declined too many times by Stripe. Please try again later.',
111
117
  30019: 'Your card has expired. Please try again with a different card.',
@@ -132,6 +138,7 @@ export default {
132
138
  msg_password_special: 'Your password must contain at least one special character.',
133
139
  msg_password_insecure: 'Your password is not secure enough.',
134
140
  msg_password_mismatch: 'Your password confirmation did not match.',
141
+ msg_phone_invalid: '"%{value}" is not a valid phone number.',
135
142
  msg_note_too_long: 'Your room note is too long. It must be less than %{length} characters.',
136
143
 
137
144
  // File errors
package/i18n/form.ts CHANGED
@@ -2,19 +2,24 @@ export default {
2
2
  en: {
3
3
  yes: 'Yes',
4
4
  no: 'No',
5
- no_nm: 'No, nevermind',
5
+ no_nevermind: 'No, nevermind',
6
6
  ok: 'OK',
7
7
  or: 'or',
8
+ warning: 'Warning',
8
9
  cancel: 'Cancel',
9
10
  continue: 'Continue',
11
+ continue_editing: 'Continue editing',
10
12
  apply: 'Apply',
11
13
  apply_filters: 'Apply filters',
12
14
  hide: 'Hide',
13
15
  show: 'Show',
16
+ deleted: 'Deleted',
17
+ delete: 'Delete',
14
18
  try_again: 'Try again',
15
19
  refresh_page: 'Refresh page',
16
20
  search: 'Search',
17
21
  no_results: 'No results',
22
+ change: 'Change',
18
23
  save: 'Save',
19
24
  saving_: 'Saving...',
20
25
  undo_changes: 'Undo changes',
@@ -60,6 +65,36 @@ export default {
60
65
  success: 'Success',
61
66
  success_: 'Success!',
62
67
  help: 'Help',
68
+ start: 'Start',
69
+ end: 'End',
70
+ time: 'Time',
71
+ time_with_zone: 'Time (%{timeZone})',
72
+ date: 'Date',
73
+ start_date: 'Start date',
74
+ end_date: 'End date',
75
+ esc: 'ESC',
76
+ settings: 'Settings',
77
+ note: 'Note',
78
+ details: 'Details',
79
+ quantity: 'Quantity',
80
+ quantity_ph: '7.5',
81
+ unit: 'Unit',
82
+ price: 'Price',
83
+ cropId: 'Crop',
84
+ logged_edited_at: 'Logged %{logDate}. Updated %{editDate}.',
85
+ logged_at: 'Logged %{logDate}.',
86
+ category: 'Category',
87
+ activity: 'Activity',
88
+ activity_ph: 'Type of activity',
89
+ crop: 'Crop',
90
+ crop_ph: 'Select crop',
91
+ concentration: 'Concentration',
92
+ concentration_ph: '0.5',
93
+ concentration_unit: 'Concentration unit',
94
+ concentration_unit_ph: 'mg/L',
95
+ water_quantity: 'Quantity (water)',
96
+ water_unit: 'Unit (water)',
97
+ water_unit_ph: 'gallons, litres',
63
98
 
64
99
  // Day periods
65
100
  greet_MORNING: 'Good morning, %{name}.',
@@ -71,7 +106,10 @@ export default {
71
106
  comm_type_EMAIL: 'E-mail',
72
107
  comm_type_SMS: 'SMS',
73
108
 
74
- // Sidebar
75
- activity: 'Activity',
109
+ // Languages
110
+ lang: {
111
+ ENGLISH: 'English',
112
+ SPANISH: 'Spanish',
113
+ },
76
114
  },
77
115
  };
package/main.ts CHANGED
@@ -5,7 +5,7 @@ import billing from './i18n/billing';
5
5
  import datetime from './i18n/datetime';
6
6
  import error from './i18n/error';
7
7
  import form from './i18n/form';
8
- import user from './i18n/user';
8
+ import account from './i18n/account';
9
9
 
10
10
  // Get the correct type for ENV
11
11
  let ENV: Map<string, string | boolean | number> = new Map();
@@ -26,7 +26,7 @@ export function configI18n(texts: Record<string, any>) {
26
26
  datetime: datetime[locale],
27
27
  error: error[locale],
28
28
  form: form[locale],
29
- user: user[locale],
29
+ account: account[locale],
30
30
  } as Record<string, any>;
31
31
 
32
32
  for (const key in texts) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsb188/app",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "Contains all the basic requirements for all @jsb188 apps.",
5
5
  "license": "ISC",
6
6
  "author": "jsb188",
@@ -14,6 +14,7 @@
14
14
  "./constants/app": "./constants/app.ts",
15
15
  "./constants/billing": "./constants/billing.ts",
16
16
  "./constants/emoji": "./constants/emoji.ts",
17
+ "./constants/organization": "./constants/organization.ts",
17
18
  "./constants/user": "./constants/user.ts",
18
19
  "./constants/ws": "./constants/ws.ts",
19
20
  "./utils/api": "./utils/api.ts",
@@ -23,15 +24,17 @@
23
24
  "./utils/logic": "./utils/logic.ts",
24
25
  "./utils/number": "./utils/number.ts",
25
26
  "./utils/object": "./utils/object.ts",
27
+ "./utils/organization": "./utils/organization.ts",
26
28
  "./utils/string": "./utils/string.ts",
29
+ "./utils/timeZone": "./utils/timeZone.ts",
27
30
  "./utils/url_client": "./utils/url_client.ts",
28
31
  "./utils/user": "./utils/user.ts",
32
+ "./types/account.d": "./types/account.d.ts",
29
33
  "./types/ai.d": "./types/ai.d.ts",
30
34
  "./types/app.d": "./types/app.d.ts",
31
35
  "./types/auth.d": "./types/auth.d.ts",
32
36
  "./types/form.d": "./types/form.d.ts",
33
- "./types/organization.d": "./types/organization.d.ts",
34
- "./types/user.d": "./types/user.d.ts"
37
+ "./types/organization.d": "./types/organization.d.ts"
35
38
  },
36
39
  "dependencies": {
37
40
  "node-polyglot": "^2.6.0",
@@ -0,0 +1,62 @@
1
+ import type { OrganizationACL, OrganizationRoleEnum } from './organization.d.ts';
2
+
3
+ /**
4
+ * Account; phone
5
+ */
6
+
7
+ export interface AccountPhoneObj {
8
+ id: number;
9
+ number: string;
10
+ primary: boolean;
11
+ // verified: boolean; // Assume verified when data is fetched
12
+ }
13
+
14
+ /**
15
+ * Account
16
+ */
17
+
18
+ export interface AccountObj {
19
+ id: number;
20
+ profile: {
21
+ id: number;
22
+ firstName: string;
23
+ lastName: string;
24
+ storageId: number | null;
25
+ // phone: AccountPhoneObj | null; // ?? This is a coding mistake, I think
26
+ };
27
+ }
28
+
29
+ export interface AccountData extends AccountObj {
30
+ phone: {
31
+ id: number;
32
+ number: string;
33
+ primary: boolean;
34
+ verified: boolean;
35
+ banned: boolean;
36
+ editAt: Date;
37
+ };
38
+ email: {
39
+ id: number;
40
+ email: string;
41
+ primary: boolean;
42
+ verified: boolean;
43
+ banned: boolean;
44
+ editAt: Date;
45
+ };
46
+ }
47
+
48
+ /**
49
+ * Account with membership
50
+ */
51
+
52
+ export interface AccountMembershipData {
53
+ id: number;
54
+ accountId: number;
55
+ organizationId: number;
56
+ role: OrganizationRoleEnum;
57
+ acl: OrganizationACL;
58
+ primary: boolean;
59
+ createdAt: Date;
60
+ updatedAt: Date;
61
+ account: AccountData;
62
+ }
package/types/ai.d.ts CHANGED
@@ -12,11 +12,14 @@ export type AIEventErrorName =
12
12
  | 'AI_COULD_NOT_RESOLVE'
13
13
  | 'AI_CONTEXT_ERR'
14
14
  | 'AI_ORG_ACL_FAILED'
15
+ | 'SETUP_INCOMPLETE_ORG'
15
16
  | 'MISSING_API_KEY'
16
17
  | 'LLM_PROVIDER_NOT_FOUND'
18
+ | 'LLM_SERVICE_ERR'
17
19
  | 'MODERATION_MISSING'
18
20
  | 'MODERATION_SERVICE_ERR'
19
21
  | 'UNKNOWN_LLM_ERR'
22
+ | 'TWILIO_API_ERR'
20
23
  | 'UNFINISHED_LOGIC';
21
24
 
22
25
  // AI chat
package/types/app.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { COLORS } from '../constants/app';
1
2
 
2
3
  // Modal; App settings
3
4
 
@@ -24,7 +25,7 @@ export interface EditUserPlusModalProps extends EditIfaceModalProps {
24
25
 
25
26
  export type DarkOrLightEnum = 'light' | 'dark';
26
27
 
27
- export type ColorEnum = 'red' | 'orange' | 'brown' | 'amber' | 'yellow' | 'lime' | 'green' | 'emerald' | 'teal' | 'cyan' | 'sky' | 'blue' | 'indigo' | 'violet' | 'purple' | 'fuchsia' | 'pink' | 'rose' | 'slate' | 'zinc' | 'stone';
28
+ export type ColorEnum = typeof COLORS[number];
28
29
 
29
30
  // Stripe types
30
31
 
package/types/auth.d.ts CHANGED
@@ -14,9 +14,12 @@ export type LightModeEnum = 'LIGHT' | 'DARK' | 'SYSTEM';
14
14
  export interface AccountData {
15
15
  id: string;
16
16
  deleted: boolean;
17
+ color: string;
17
18
 
18
19
  plus: any; // placeholder for later
19
20
 
21
+ settings: AccountSettings;
22
+
20
23
  profile: {
21
24
  id: string;
22
25
  firstName: string;
@@ -40,6 +43,7 @@ export interface AccountData {
40
43
 
41
44
  export interface AccountSettings {
42
45
  theme: string | null;
46
+ language: string;
43
47
  lightMode: LightModeEnum;
44
48
  timeZone: string | null;
45
49
  showSelfAvatar: boolean;
@@ -59,5 +63,7 @@ export interface AuthenticationData {
59
63
  primaryOrganizationId: string | null;
60
64
  activated: boolean;
61
65
  hasPassword: boolean;
62
- version: string;
66
+ webVersion: string;
67
+ mobileVersion: string;
68
+ alertUpdatesOnMount: boolean;
63
69
  }
package/types/form.d.ts CHANGED
@@ -3,12 +3,14 @@
3
3
  * Types; form schema
4
4
  */
5
5
 
6
- interface SchemaItemSetter {
6
+ interface SchemaItemAny {
7
+ [key: string]: any;
8
+ __typename?: string;
7
9
  setter?: (currentData?: any, dataForSchema?: any) => any;
8
10
  }
9
11
 
10
12
  export interface FormItemSchemaObj {
11
- __type: 'group' | 'input' | 'password' | 'textarea' | 'select' | string;
13
+ __type: 'subtitle' | 'group' | 'input' | 'input_click' | 'input_w_button' | 'input_time_from_date' | 'password' | 'textarea' | 'none' | string;
12
14
  autoFocus?: boolean;
13
15
  disabled?: boolean;
14
16
  hidden?: boolean | ((dataForSchema: any) => boolean);
@@ -16,7 +18,7 @@ export interface FormItemSchemaObj {
16
18
  labelClassName?: string;
17
19
  listenToInput?: boolean;
18
20
  value?: any;
19
- item: Record<string, any> & SchemaItemSetter;
21
+ item: SchemaItemAny;
20
22
  }
21
23
 
22
24
  interface SchemaRule {
@@ -45,6 +47,10 @@ interface FormGroupType {
45
47
 
46
48
  export interface FormItemIfaceObj extends FormItemSchemaObj {
47
49
  name: string;
50
+ preset?: string;
51
+ className?: string;
52
+ inputClassName?: string;
53
+ focusStyle?: string;
48
54
  hidden?: boolean | ((dataForSchema: any) => boolean);
49
55
  locked?: boolean | ((dataForSchema: any) => boolean);
50
56
  formValues: any;