@jsb188/app 1.0.4 → 1.1.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.
- package/package.json +57 -37
- package/src/constants/agent.ts +74 -0
- package/src/constants/app.ts +389 -0
- package/src/constants/emoji.ts +9153 -0
- package/src/constants/other.ts +13 -0
- package/src/constants/user.ts +27 -0
- package/src/constants/wsActions.ts +49 -0
- package/src/i18n/account.ts +139 -0
- package/src/i18n/agent.ts +397 -0
- package/src/i18n/agentToolBusiness.ts +196 -0
- package/src/i18n/agentToolGrid.ts +137 -0
- package/src/i18n/agentToolWorkflow.ts +101 -0
- package/src/i18n/agent_note.ts +109 -0
- package/src/i18n/app.ts +124 -0
- package/src/i18n/auth.ts +128 -0
- package/src/i18n/billing.ts +7 -0
- package/src/i18n/c.ts +907 -0
- package/src/i18n/campaign.ts +919 -0
- package/src/i18n/country.ts +249 -0
- package/src/i18n/datetime.ts +66 -0
- package/src/i18n/editor.ts +58 -0
- package/src/i18n/error.ts +579 -0
- package/src/i18n/field_doc_editor.ts +21 -0
- package/src/i18n/field_doc_programs.ts +52 -0
- package/src/i18n/field_docs.ts +190 -0
- package/src/i18n/index.ts +64 -0
- package/src/i18n/log.ts +566 -0
- package/src/i18n/memory.ts +59 -0
- package/src/i18n/message.ts +13 -0
- package/src/i18n/note.ts +19 -0
- package/src/i18n/org.ts +306 -0
- package/src/i18n/schedule.ts +209 -0
- package/src/i18n/sheet.ts +339 -0
- package/src/i18n/sheet_formula.ts +165 -0
- package/src/i18n/workflow.ts +111 -0
- package/src/main.ts +89 -0
- package/src/platform.ts +166 -0
- package/src/types/ai.d.ts +63 -0
- package/src/types/app.d.ts +127 -0
- package/src/types/auth.d.ts +94 -0
- package/src/types/console.d.ts +3 -0
- package/src/types/node-polyglot.d.ts +23 -0
- package/src/types/other.d.ts +66 -0
- package/src/types.d.ts +29 -0
- package/src/utils/account.ts +97 -0
- package/src/utils/api.ts +358 -0
- package/src/utils/authSession.ts +24 -0
- package/src/utils/clientIP.ts +213 -0
- package/src/utils/color.ts +279 -0
- package/src/utils/cron.ts +310 -0
- package/src/utils/csv.ts +19 -0
- package/src/utils/datetime.ts +1394 -0
- package/src/utils/deferredSave.ts +89 -0
- package/src/utils/email.ts +39 -0
- package/src/utils/emoji.ts +174 -0
- package/src/utils/expression.helpers.ts +470 -0
- package/src/utils/expression.test.ts +793 -0
- package/src/utils/expression.ts +2261 -0
- package/src/utils/interval.ts +80 -0
- package/src/utils/language.ts +9 -0
- package/src/utils/logic.ts +299 -0
- package/src/utils/managedSession.ts +34 -0
- package/src/utils/managedSessionBff.test.ts +60 -0
- package/src/utils/managedSessionBff.ts +117 -0
- package/src/utils/number.ts +338 -0
- package/src/utils/object.ts +916 -0
- package/src/utils/promise.ts +98 -0
- package/src/utils/queryReset.ts +266 -0
- package/src/utils/recurringTask.ts +60 -0
- package/src/utils/schema.ts +293 -0
- package/src/utils/string.test.ts +278 -0
- package/src/utils/string.ts +709 -0
- package/src/utils/timeZone.ts +2048 -0
- package/src/utils/url_client.ts +206 -0
- package/tsconfig.json +12 -0
- package/constants/app.ts +0 -47
- package/constants/billing.ts +0 -146
- package/constants/emoji.ts +0 -8945
- package/constants/user.ts +0 -36
- package/constants/ws.ts +0 -47
- package/i18n/app.ts +0 -99
- package/i18n/auth.ts +0 -57
- package/i18n/billing.ts +0 -94
- package/i18n/datetime.ts +0 -22
- package/i18n/error.ts +0 -138
- package/i18n/form.ts +0 -73
- package/i18n/index.ts +0 -6
- package/i18n/user.ts +0 -98
- package/main.ts +0 -62
- package/types/app.d.ts +0 -46
- package/types/datetime.d.ts +0 -10
- package/types/form.d.ts +0 -56
- package/types/user.d.ts +0 -52
- package/types.d.ts +0 -23
- package/utils/api.ts +0 -99
- package/utils/billing.ts +0 -134
- package/utils/datetime.ts +0 -358
- package/utils/emoji.ts +0 -151
- package/utils/logic.ts +0 -115
- package/utils/number.ts +0 -115
- package/utils/object.ts +0 -367
- package/utils/string.ts +0 -211
- package/utils/url_client.ts +0 -138
- package/utils/user.ts +0 -273
package/src/i18n/app.ts
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
en: {
|
|
3
|
+
// Site meta
|
|
4
|
+
schedule_demo: 'Schedule a demo',
|
|
5
|
+
get_in_touch: 'Get in touch',
|
|
6
|
+
copyright_text: '© %{currentYear} %{companyName}. All rights reserved.',
|
|
7
|
+
privacy: 'Privacy Policy',
|
|
8
|
+
tos: 'Terms of Service',
|
|
9
|
+
|
|
10
|
+
// Routes
|
|
11
|
+
route_: 'App | %{text}',
|
|
12
|
+
route_auth: 'Log in or sign up',
|
|
13
|
+
route_auth_change_email: 'Change email address',
|
|
14
|
+
route_auth_signup: 'Create an account',
|
|
15
|
+
route_not_found: 'Page Not Found',
|
|
16
|
+
route_not_found_desc: 'The page you are looking for does not exist.',
|
|
17
|
+
return_to_homepage: 'Return to homepage',
|
|
18
|
+
|
|
19
|
+
// General
|
|
20
|
+
open_app: 'Open app',
|
|
21
|
+
home: 'Home',
|
|
22
|
+
new_data_click_to_refresh: 'New data available. Click to refresh.',
|
|
23
|
+
timezone_set_to_: 'Time zone is set to: %{timeZone}',
|
|
24
|
+
latest_updates: 'Latest updates',
|
|
25
|
+
update_notes: 'Update notes',
|
|
26
|
+
|
|
27
|
+
// @home screen
|
|
28
|
+
home_hero_field_work: 'field work',
|
|
29
|
+
home_hero_communication: 'communication',
|
|
30
|
+
home_hero_real_world: 'the real world',
|
|
31
|
+
home_hero_field_image: 'Field observations and operational work',
|
|
32
|
+
home_hero_communication_image: 'Messages connecting teams and their operations',
|
|
33
|
+
home_hero_real_world_image: 'People and stalls in a busy outdoor market',
|
|
34
|
+
hey_: 'Hey, ',
|
|
35
|
+
how_to_use_app: 'How to use this app',
|
|
36
|
+
free_plus_account: 'Get free perks (subscription)',
|
|
37
|
+
// free_plus_account: 'Tweet us & get a free subscription',
|
|
38
|
+
// free_plus_account: 'Get a free subscription',
|
|
39
|
+
|
|
40
|
+
// Settings
|
|
41
|
+
app: 'App',
|
|
42
|
+
account: 'Account',
|
|
43
|
+
features: 'Features',
|
|
44
|
+
tools: 'Tools',
|
|
45
|
+
integrations: 'Integrations',
|
|
46
|
+
knowledge: 'Knowledge',
|
|
47
|
+
connections: 'Connections',
|
|
48
|
+
ai_inbox: 'AI inbox',
|
|
49
|
+
ai_inboxes: 'AI inboxes',
|
|
50
|
+
emails: 'Emails',
|
|
51
|
+
email_messages_end:
|
|
52
|
+
'There is %{smart_count} email for this organization.||||' + 'There are %{smart_count} emails for this organization.',
|
|
53
|
+
email_messages_empty: "There aren't any emails for this organization.",
|
|
54
|
+
updates: 'Update notes',
|
|
55
|
+
logout: 'Log out',
|
|
56
|
+
|
|
57
|
+
// Light/Dark
|
|
58
|
+
light_dark_LIGHT: 'Light mode',
|
|
59
|
+
light_dark_DARK: 'Dark mode',
|
|
60
|
+
light_dark_SYSTEM: 'System auto',
|
|
61
|
+
|
|
62
|
+
// Log out screen
|
|
63
|
+
logging_out: 'Logging you out...',
|
|
64
|
+
|
|
65
|
+
// Message demo for light/dark mode
|
|
66
|
+
message_other_1: 'This is how messages will look,',
|
|
67
|
+
message_other_2: 'from AI and other users.',
|
|
68
|
+
message_you_1: 'This is how your messages will look to you.',
|
|
69
|
+
message_you_2: 'From top to bottom.',
|
|
70
|
+
message_you_3: 'Your messages are colorful.',
|
|
71
|
+
message_you_4: 'Because you are special!',
|
|
72
|
+
|
|
73
|
+
// Settings
|
|
74
|
+
settings: 'Settings',
|
|
75
|
+
appearance: 'Appearance',
|
|
76
|
+
themes: 'Themes',
|
|
77
|
+
colors: 'Colors',
|
|
78
|
+
colors_desc: 'Change the color scheme for your profile page, and your direct messages.',
|
|
79
|
+
light_dark: 'Light/Dark',
|
|
80
|
+
light_dark_desc: 'Choose light or dark mode for the app. This option only affects your experience.',
|
|
81
|
+
change_status: 'Change status',
|
|
82
|
+
|
|
83
|
+
// Sidebar
|
|
84
|
+
// ..
|
|
85
|
+
|
|
86
|
+
// External link popup
|
|
87
|
+
leaving_app_desc: 'You are about to visit an external website. Are you sure you want to continue?',
|
|
88
|
+
link_yes: 'Yes, take me away',
|
|
89
|
+
|
|
90
|
+
// Notifications/Alerts
|
|
91
|
+
notification: 'Notification',
|
|
92
|
+
notif_expire_in_ct: 'This message will disappear in %{smart_count} day.||||This message will disappear in %{smart_count} days.',
|
|
93
|
+
invite_expire_in_ct: 'This invitation will expire in %{smart_count} day.||||This invitation will expire in %{smart_count} days.',
|
|
94
|
+
notif_not_exist: 'This notification does not exist. It may be deleted.',
|
|
95
|
+
|
|
96
|
+
// Homepage; Roadmap
|
|
97
|
+
roadmap: 'Roadmap',
|
|
98
|
+
|
|
99
|
+
// Subscription related
|
|
100
|
+
sub_needed: 'You need a subscription to use this feature.',
|
|
101
|
+
|
|
102
|
+
// Square specific
|
|
103
|
+
square_connected: 'Square is connected.',
|
|
104
|
+
square_disconnected: 'Square is not connected.',
|
|
105
|
+
connect_square_title: 'Connect Square',
|
|
106
|
+
connect_square_desc: 'Connect your Square account to\nunlock these features:',
|
|
107
|
+
disconnect_square_title: 'Disconnect Square',
|
|
108
|
+
square_connection_desc: 'Access your data and create payment requests.',
|
|
109
|
+
connect_square_permission_1: 'Access your orders and sales data',
|
|
110
|
+
connect_square_permission_2: 'Create new orders and payment requests',
|
|
111
|
+
connect_square_permission_3: 'Edit an existing order',
|
|
112
|
+
connect_square_permission_4: "Charge a vendor/customer's credit card",
|
|
113
|
+
connect_square_button: 'Continue to Square',
|
|
114
|
+
square_permissions_sales: 'Sales data',
|
|
115
|
+
square_permissions_payments: 'Payment requests',
|
|
116
|
+
|
|
117
|
+
// OAuth results
|
|
118
|
+
oauth_provider_google: 'Google',
|
|
119
|
+
oauth_provider_logo_alt: '%{provider} logo',
|
|
120
|
+
oauth_provider_square: 'Square',
|
|
121
|
+
oauth_success_message: 'You successfully connected your\n organization to %{provider}.',
|
|
122
|
+
oauth_error_message: 'We could not connect your organization to %{provider}. Please try again later.',
|
|
123
|
+
},
|
|
124
|
+
};
|
package/src/i18n/auth.ts
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
en: {
|
|
3
|
+
// Login
|
|
4
|
+
welcome_back: 'Welcome back',
|
|
5
|
+
sign_in: 'Sign in',
|
|
6
|
+
sign_in_to_google: 'Sign in to Google',
|
|
7
|
+
more_login_options: 'More login options',
|
|
8
|
+
sign_in_with_email: 'Sign in with email',
|
|
9
|
+
sign_in_to_complete_form: '%{signIn} to complete this form.',
|
|
10
|
+
sign_in_again: 'Sign in again',
|
|
11
|
+
sign_in_sign_up: 'Sign in / Sign up',
|
|
12
|
+
agent_login: 'AI agents Enter',
|
|
13
|
+
open_app: 'Open app',
|
|
14
|
+
continue_with_google: 'Continue with Google',
|
|
15
|
+
continue_with_microsoft: 'Continue with Microsoft',
|
|
16
|
+
continue_with_discord: 'Continue with Discord',
|
|
17
|
+
continue_with_phone: 'Continue with Phone',
|
|
18
|
+
continue_with_sso: 'Continue with SSO',
|
|
19
|
+
sso_email_instr: "Enter your work email address and we will\nfind your organization's sign-on provider.",
|
|
20
|
+
sso_continue_instr: 'Continue with your organization to sign in.',
|
|
21
|
+
sso_choose_org_instr: 'Choose the organization you want to sign in as.',
|
|
22
|
+
sso_use_different_email: 'Use a different email address',
|
|
23
|
+
login_opts_main: 'Phone number or email',
|
|
24
|
+
verify_your_acc: 'Verify your account',
|
|
25
|
+
reset_password: 'Reset password',
|
|
26
|
+
forgot_password_: 'Forgot password or username?',
|
|
27
|
+
signup_email: 'Sign up using email',
|
|
28
|
+
sign_in_w_existing: 'Sign in with an existing account',
|
|
29
|
+
sign_in_other_methods: 'Sign in using other methods',
|
|
30
|
+
change_password: 'Change password',
|
|
31
|
+
you_are_verified_: 'You are verified!',
|
|
32
|
+
account_is_verified:
|
|
33
|
+
'Thank you for verifying your account with email address: **%{emailAddress}**. Please log in again using your password.',
|
|
34
|
+
continue_to_login: 'Continue to log in',
|
|
35
|
+
continue_to_app: 'Continue to app',
|
|
36
|
+
back_to_homepage: 'Back to homepage',
|
|
37
|
+
login_changed: 'Account changed',
|
|
38
|
+
|
|
39
|
+
// Phone 2FA & Email verification
|
|
40
|
+
send_verification_email: 'Send verification email',
|
|
41
|
+
send_verification_code_msg: 'Enter your phone number and we will send you a verification code for authentication.',
|
|
42
|
+
send_verification_code: 'Send verification code',
|
|
43
|
+
confirm_verification_code_instr:
|
|
44
|
+
'Enter the verification code sent to your phone. Please wait few minutes if you did not receive it.',
|
|
45
|
+
resend_verification_code: 'Re-send verification code',
|
|
46
|
+
resend_verification_code_in: 'Re-send code in %{seconds}s',
|
|
47
|
+
use_different_email: 'Use a different email address',
|
|
48
|
+
public_form_email_code_sent:
|
|
49
|
+
'Enter the 6-digit code sent to %{emailAddress}. The code expires in 10 minutes. Check your spam folder if it has not arrived.',
|
|
50
|
+
verification_code_wrong: 'Verification code you entered is incorrect. Please try again.',
|
|
51
|
+
|
|
52
|
+
// Auth
|
|
53
|
+
username_not_found: 'No one was found with that username.',
|
|
54
|
+
signed_in: 'Signed in',
|
|
55
|
+
signed_in_as_email: 'Signed in as [cl_bd u##%{emailAddress}].',
|
|
56
|
+
logged_in_as_: 'Logged in as %{name}.',
|
|
57
|
+
logged_in_as_org_: 'Logged in as %{name} (%{orgName}).',
|
|
58
|
+
verify_email_to_fill_form: 'Please [verify your email](/app) to fill out this form.',
|
|
59
|
+
hello_: 'Hello %{name}!',
|
|
60
|
+
you_are_logged_in: 'You are signed in.',
|
|
61
|
+
password_changed_msg: 'Your password has been changed.',
|
|
62
|
+
request_reset_password_instr: 'Enter your email address and we will send\n you instructions to reset your password.',
|
|
63
|
+
resend_verification_instr: 'Enter your email address and we will send\nyou an email to verify your account.',
|
|
64
|
+
reset_password_instr: 'Choose a new password for your account with\n the email address: %{emailAddress}',
|
|
65
|
+
_verify_your_email: ' to verify your email.',
|
|
66
|
+
_verify_your_phone: ' to verify your phone number.',
|
|
67
|
+
account_secured_: 'Account secured!',
|
|
68
|
+
one_last_step_: 'One last step!',
|
|
69
|
+
add_password: 'Add password',
|
|
70
|
+
add_password_sign_in_msg: 'Please add a password to your account (%{identifier}) for security.',
|
|
71
|
+
add_email: 'Add email address',
|
|
72
|
+
add_email_to_login_msg: 'Please add an email address to your account (%{identifier}) for security.',
|
|
73
|
+
verify_email_to_login_msg:
|
|
74
|
+
'Please verify your email address to continue. You can resend the verification email or enter a different email address.',
|
|
75
|
+
required_auth_fin_msg: 'Your account has been secured. From now on, you may use your password to log in.',
|
|
76
|
+
check_email: 'Check your email',
|
|
77
|
+
check_email_to_login_msg:
|
|
78
|
+
'Please check your email for verification instructions. You will be logged in after you verify your email address.',
|
|
79
|
+
|
|
80
|
+
// Auth - check fails
|
|
81
|
+
no_account_with_phone: 'No account was found with that phone number.',
|
|
82
|
+
no_account_with_email: 'No account was found with that email address.',
|
|
83
|
+
not_valid_email_or_phone: 'That is not a valid phone number or email address.',
|
|
84
|
+
|
|
85
|
+
// Reset password (requested)
|
|
86
|
+
reset_password_requested_msg: 'Check your email, <strong>%{emailAddress}</strong> ' + 'for instructions to reset your password.',
|
|
87
|
+
reset_password_requested_msg_no_email: 'Please check your email for instructions to reset your password.',
|
|
88
|
+
if_need_more_help_email: 'If you need assistance, please contact us at ' + '[%{emailAddress}](mailto:%{emailAddress}).',
|
|
89
|
+
|
|
90
|
+
// Invite required
|
|
91
|
+
invite_required: 'Invite required',
|
|
92
|
+
invite_required_msg:
|
|
93
|
+
'Account creation is currently not opened to the public. ' +
|
|
94
|
+
'Ask your team for an invite or contact us at ' +
|
|
95
|
+
'[%{emailAddress}](mailto:%{emailAddress}) to create an account.',
|
|
96
|
+
|
|
97
|
+
// Sign up
|
|
98
|
+
sign_up: 'Sign up',
|
|
99
|
+
create_account: 'Create an account',
|
|
100
|
+
agree_and_continue: 'Agree and continue',
|
|
101
|
+
sign_up_notice_msg:
|
|
102
|
+
'By selecting "Agree and continue", I agree to the ' +
|
|
103
|
+
'[Terms of Service](/tos) and acknowledge the ' +
|
|
104
|
+
'[Privacy Policy](/privacy).',
|
|
105
|
+
email_sent: 'Email sent',
|
|
106
|
+
check_email_msg: 'Please check your email for instructions to verify your account.',
|
|
107
|
+
// check_email_3: 'Click "continue" to log in as ',
|
|
108
|
+
// check_email_4: ' or re-send another verification link to your email.',
|
|
109
|
+
not_verified_yet: 'Please verify your email and try again.',
|
|
110
|
+
resend_change_verification: 'Re-send verification link or change email',
|
|
111
|
+
verify_account: 'Verify your account',
|
|
112
|
+
verify_email_msg: 'Send a new verification link to your email.',
|
|
113
|
+
resend_verification: 'Send verification email',
|
|
114
|
+
|
|
115
|
+
// Sign up success
|
|
116
|
+
account_created: 'Account created',
|
|
117
|
+
account_created_msg:
|
|
118
|
+
'Your account has been created successfully. Please follow the instructions ' +
|
|
119
|
+
'in the email we sent you to verify your account.',
|
|
120
|
+
|
|
121
|
+
// Sign out
|
|
122
|
+
sign_out: 'Sign out',
|
|
123
|
+
no_active_orgs_title: 'No active organizations',
|
|
124
|
+
no_active_orgs_desc:
|
|
125
|
+
'Your account does not belong to any active organizations. Contact your organization administrator for an invitation.',
|
|
126
|
+
signing_out_: 'Signing you out...',
|
|
127
|
+
},
|
|
128
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
en: {
|
|
3
|
+
// Server-sent texts (the marketday client keeps its own billing_ui namespace)
|
|
4
|
+
sms_subscription_expired:
|
|
5
|
+
"Your organization's Marketday subscription has expired, so we can't process your messages right now. Please contact us to renew.",
|
|
6
|
+
},
|
|
7
|
+
};
|