@jsb188/app 1.1.11 → 1.1.12

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.
Files changed (59) hide show
  1. package/package.json +7 -4
  2. package/src/constants/agent.ts +39 -62
  3. package/src/constants/app.ts +17 -0
  4. package/src/constants/wsActions.ts +7 -15
  5. package/src/i18n/account.ts +1 -1
  6. package/src/i18n/agent.ts +326 -88
  7. package/src/i18n/agentToolBusiness.ts +196 -0
  8. package/src/i18n/agentToolGrid.ts +137 -0
  9. package/src/i18n/agentToolWorkflow.ts +101 -0
  10. package/src/i18n/agent_note.ts +109 -0
  11. package/src/i18n/app.ts +23 -17
  12. package/src/i18n/auth.ts +28 -30
  13. package/src/i18n/billing.ts +3 -85
  14. package/src/i18n/c.ts +907 -0
  15. package/src/i18n/campaign.ts +842 -140
  16. package/src/i18n/datetime.ts +6 -0
  17. package/src/i18n/editor.ts +58 -0
  18. package/src/i18n/error.ts +307 -168
  19. package/src/i18n/field_doc_editor.ts +21 -0
  20. package/src/i18n/field_doc_programs.ts +52 -0
  21. package/src/i18n/field_docs.ts +170 -8
  22. package/src/i18n/index.ts +21 -5
  23. package/src/i18n/log.ts +232 -38
  24. package/src/i18n/memory.ts +18 -4
  25. package/src/i18n/note.ts +5 -3
  26. package/src/i18n/org.ts +93 -44
  27. package/src/i18n/schedule.ts +209 -0
  28. package/src/i18n/sheet.ts +102 -145
  29. package/src/i18n/sheet_formula.ts +165 -0
  30. package/src/i18n/workflow.ts +48 -9
  31. package/src/main.ts +2 -2
  32. package/src/platform.ts +89 -49
  33. package/src/types/ai.d.ts +19 -0
  34. package/src/types/app.d.ts +50 -57
  35. package/src/types/other.d.ts +8 -1
  36. package/src/utils/api.ts +46 -0
  37. package/src/utils/clientIP.ts +213 -0
  38. package/src/utils/color.ts +77 -0
  39. package/src/utils/csv.ts +19 -0
  40. package/src/utils/datetime.ts +207 -31
  41. package/src/utils/deferredSave.ts +89 -0
  42. package/src/utils/email.ts +50 -0
  43. package/src/utils/expression.helpers.ts +470 -0
  44. package/src/utils/expression.test.ts +793 -0
  45. package/src/utils/expression.ts +1633 -239
  46. package/src/utils/language.ts +9 -0
  47. package/src/utils/logic.ts +9 -162
  48. package/src/utils/number.ts +30 -11
  49. package/src/utils/object.ts +29 -0
  50. package/src/utils/promise.ts +78 -7
  51. package/src/utils/queryReset.ts +101 -14
  52. package/src/utils/string.test.ts +24 -39
  53. package/src/utils/string.ts +73 -143
  54. package/src/utils/url_client.ts +83 -14
  55. package/src/constants/billing.ts +0 -146
  56. package/src/i18n/agentDoc.ts +0 -110
  57. package/src/i18n/form.ts +0 -496
  58. package/src/types/form.d.ts +0 -101
  59. package/src/utils/billing.ts +0 -141
package/src/i18n/app.ts CHANGED
@@ -2,6 +2,7 @@ export default {
2
2
  en: {
3
3
  // Site meta
4
4
  schedule_demo: 'Schedule a demo',
5
+ get_in_touch: 'Get in touch',
5
6
  copyright_text: '© %{currentYear} %{companyName}. All rights reserved.',
6
7
  privacy: 'Privacy Policy',
7
8
  tos: 'Terms of Service',
@@ -13,6 +14,7 @@ export default {
13
14
  route_auth_signup: 'Create an account',
14
15
  route_not_found: 'Page Not Found',
15
16
  route_not_found_desc: 'The page you are looking for does not exist.',
17
+ return_to_homepage: 'Return to homepage',
16
18
 
17
19
  // General
18
20
  open_app: 'Open app',
@@ -23,6 +25,12 @@ export default {
23
25
  update_notes: 'Update notes',
24
26
 
25
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',
26
34
  hey_: 'Hey, ',
27
35
  how_to_use_app: 'How to use this app',
28
36
  free_plus_account: 'Get free perks (subscription)',
@@ -33,10 +41,16 @@ export default {
33
41
  app: 'App',
34
42
  account: 'Account',
35
43
  features: 'Features',
36
- memories: 'Memories',
44
+ tools: 'Tools',
45
+ integrations: 'Integrations',
46
+ knowledge: 'Knowledge',
37
47
  connections: 'Connections',
38
48
  ai_inbox: 'AI inbox',
39
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.",
40
54
  updates: 'Update notes',
41
55
  logout: 'Log out',
42
56
 
@@ -61,27 +75,22 @@ export default {
61
75
  appearance: 'Appearance',
62
76
  themes: 'Themes',
63
77
  colors: 'Colors',
64
- colors_desc:
65
- 'Change the color scheme for your profile page, and your direct messages.',
78
+ colors_desc: 'Change the color scheme for your profile page, and your direct messages.',
66
79
  light_dark: 'Light/Dark',
67
- light_dark_desc:
68
- 'Choose light or dark mode for the app. This option only affects your experience.',
80
+ light_dark_desc: 'Choose light or dark mode for the app. This option only affects your experience.',
69
81
  change_status: 'Change status',
70
82
 
71
83
  // Sidebar
72
84
  // ..
73
85
 
74
86
  // External link popup
75
- leaving_app_desc:
76
- 'You are about to visit an external website. Are you sure you want to continue?',
87
+ leaving_app_desc: 'You are about to visit an external website. Are you sure you want to continue?',
77
88
  link_yes: 'Yes, take me away',
78
89
 
79
90
  // Notifications/Alerts
80
91
  notification: 'Notification',
81
- notif_expire_in_ct:
82
- 'This message will disappear in %{smart_count} day.||||This message will disappear in %{smart_count} days.',
83
- invite_expire_in_ct:
84
- 'This invitation will expire in %{smart_count} day.||||This invitation will expire in %{smart_count} days.',
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.',
85
94
  notif_not_exist: 'This notification does not exist. It may be deleted.',
86
95
 
87
96
  // Homepage; Roadmap
@@ -94,8 +103,7 @@ export default {
94
103
  square_connected: 'Square is connected.',
95
104
  square_disconnected: 'Square is not connected.',
96
105
  connect_square_title: 'Connect Square',
97
- connect_square_desc:
98
- 'Connect your Square account to\nunlock these features:',
106
+ connect_square_desc: 'Connect your Square account to\nunlock these features:',
99
107
  disconnect_square_title: 'Disconnect Square',
100
108
  square_connection_desc: 'Access your data and create payment requests.',
101
109
  connect_square_permission_1: 'Access your orders and sales data',
@@ -110,9 +118,7 @@ export default {
110
118
  oauth_provider_google: 'Google',
111
119
  oauth_provider_logo_alt: '%{provider} logo',
112
120
  oauth_provider_square: 'Square',
113
- oauth_success_message:
114
- 'You successfully connected your\n organization to %{provider}.',
115
- oauth_error_message:
116
- 'We could not connect your organization to %{provider}. Please try again later.',
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.',
117
123
  },
118
124
  };
package/src/i18n/auth.ts CHANGED
@@ -3,16 +3,20 @@ export default {
3
3
  // Login
4
4
  welcome_back: 'Welcome back',
5
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.',
6
10
  sign_in_again: 'Sign in again',
7
11
  sign_in_sign_up: 'Sign in / Sign up',
12
+ agent_login: 'AI agents Enter',
8
13
  open_app: 'Open app',
9
14
  continue_with_google: 'Continue with Google',
10
15
  continue_with_microsoft: 'Continue with Microsoft',
11
16
  continue_with_discord: 'Continue with Discord',
12
17
  continue_with_phone: 'Continue with Phone',
13
18
  continue_with_sso: 'Continue with SSO',
14
- sso_email_instr:
15
- "Enter your work email address and we will\nfind your organization's sign-on provider.",
19
+ sso_email_instr: "Enter your work email address and we will\nfind your organization's sign-on provider.",
16
20
  sso_continue_instr: 'Continue with your organization to sign in.',
17
21
  sso_choose_org_instr: 'Choose the organization you want to sign in as.',
18
22
  sso_use_different_email: 'Use a different email address',
@@ -34,40 +38,41 @@ export default {
34
38
 
35
39
  // Phone 2FA & Email verification
36
40
  send_verification_email: 'Send verification email',
37
- send_verification_code_msg:
38
- 'Enter your phone number and we will send you a verification code for authentication.',
41
+ send_verification_code_msg: 'Enter your phone number and we will send you a verification code for authentication.',
39
42
  send_verification_code: 'Send verification code',
40
43
  confirm_verification_code_instr:
41
44
  'Enter the verification code sent to your phone. Please wait few minutes if you did not receive it.',
42
45
  resend_verification_code: 'Re-send verification code',
43
- verification_code_wrong:
44
- 'Verification code you entered is incorrect. Please try again.',
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.',
45
51
 
46
52
  // Auth
47
53
  username_not_found: 'No one was found with that username.',
48
54
  signed_in: 'Signed in',
55
+ signed_in_as_email: 'Signed in as [cl_bd u##%{emailAddress}].',
49
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.',
50
59
  hello_: 'Hello %{name}!',
51
60
  you_are_logged_in: 'You are signed in.',
52
61
  password_changed_msg: 'Your password has been changed.',
53
- request_reset_password_instr:
54
- 'Enter your email address and we will send\n you instructions to reset your password.',
55
- resend_verification_instr:
56
- 'Enter your email address and we will send\nyou an email to verify your account.',
57
- reset_password_instr:
58
- 'Choose a new password for your account with\n the email address: %{emailAddress}',
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}',
59
65
  _verify_your_email: ' to verify your email.',
60
66
  _verify_your_phone: ' to verify your phone number.',
61
67
  account_secured_: 'Account secured!',
62
68
  one_last_step_: 'One last step!',
63
69
  add_password: 'Add password',
64
- add_password_sign_in_msg:
65
- 'Please add a password to your account (%{identifier}) for security.',
70
+ add_password_sign_in_msg: 'Please add a password to your account (%{identifier}) for security.',
66
71
  add_email: 'Add email address',
67
- add_email_to_login_msg:
68
- 'Please add an email address to your account (%{identifier}) for security.',
69
- required_auth_fin_msg:
70
- 'Your account has been secured. From now on, you may use your password to log in.',
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.',
71
76
  check_email: 'Check your email',
72
77
  check_email_to_login_msg:
73
78
  'Please check your email for verification instructions. You will be logged in after you verify your email address.',
@@ -75,18 +80,12 @@ export default {
75
80
  // Auth - check fails
76
81
  no_account_with_phone: 'No account was found with that phone number.',
77
82
  no_account_with_email: 'No account was found with that email address.',
78
- not_valid_email_or_phone:
79
- 'That is not a valid phone number or email address.',
83
+ not_valid_email_or_phone: 'That is not a valid phone number or email address.',
80
84
 
81
85
  // Reset password (requested)
82
- reset_password_requested_msg:
83
- 'Check your email, <strong>%{emailAddress}</strong> ' +
84
- 'for instructions to reset your password.',
85
- reset_password_requested_msg_no_email:
86
- 'Please check your email for instructions to reset your password.',
87
- if_need_more_help_email:
88
- 'If you need assistance, please contact us at ' +
89
- '[%{emailAddress}](mailto:%{emailAddress}).',
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}).',
90
89
 
91
90
  // Invite required
92
91
  invite_required: 'Invite required',
@@ -104,8 +103,7 @@ export default {
104
103
  '[Terms of Service](/tos) and acknowledge the ' +
105
104
  '[Privacy Policy](/privacy).',
106
105
  email_sent: 'Email sent',
107
- check_email_msg:
108
- 'Please check your email for instructions to verify your account.',
106
+ check_email_msg: 'Please check your email for instructions to verify your account.',
109
107
  // check_email_3: 'Click "continue" to log in as ',
110
108
  // check_email_4: ' or re-send another verification link to your email.',
111
109
  not_verified_yet: 'Please verify your email and try again.',
@@ -1,89 +1,7 @@
1
- import { SOCIAL_URLS } from '../constants/app.ts';
2
-
3
- // NOTE: Can't use /constants/ here because this file is loaded before all else
4
- const PerksSubDays = 14;
5
-
6
1
  export default {
7
2
  en: {
8
- // General
9
- free_perks_desc: 'Free every time you post on social media',
10
- subscribe: 'Subscribe',
11
- per_month: '%{price} per month',
12
- per_year: '%{price} per year',
13
- save_per_cent: 'Save %{perCent}%',
14
- purchase_details: 'Purchase details',
15
- credit_card: 'Credit card',
16
- name_on_card: 'Name on card',
17
- upgrade: 'Upgrade',
18
-
19
- // Subscription
20
- subscription: 'Subscription',
21
- subscription_desc:
22
- 'Big Planet is an independent platform without any outside funding. All of the money earned ' +
23
- 'from subscriptions are used to pay for servers and to develop new features.',
24
- sub_none: 'You do not have an active subscription right now.',
25
- sub_perks: 'Your Perks subscription will expire on %{date}.',
26
- sub_active_1: 'Your',
27
- sub_active_2: 'subscription will auto renew on %{date}.',
28
- sub_will_expire: 'subscription will expire on %{date}.',
29
- sub_group_PERKS: 'Free Perks',
30
- sub_group_PLUS: 'Plus',
31
- sub_group_PRO: 'Pro',
32
- sub_cancelled_billing_msg:
33
- 'Your account will remain upgraded until the expiration date.',
34
- cancelled_sub_msg:
35
- 'You will not be billed again after the expiration date.',
36
- sub_active_billing_msg: 'You may cancel your subscription at any time.',
37
-
38
- // Checkout form
39
- PLUS_subscription: 'Plus subscription',
40
- PRO_subscription: 'Pro subscription',
41
- choose_payment_opt: 'Choose a payment option',
42
-
43
- PERKS_desc_1:
44
- 'Say something nice on YouTube, TikTok, Instagram, X, personal blog, or anywhere you want.',
45
- PERKS_desc_2: `Follow us on X and share your message mentioning us (@${SOCIAL_URLS.MARKETDAY.x_username}) with your Big Planet ID or username.`,
46
- PERKS_desc_3: `Wait until you receive a reply on X, Perks subscription (${PerksSubDays} days) will be added to your account.`,
47
-
48
- PLUS_year: 'Plus (yearly)',
49
- payment_details_PLUS_year:
50
- 'You are purchasing a recurring PLUS subscription. You will be charged %{price} / year starting today. ' +
51
- 'You may cancel your subscription at any time from the settings screen.',
52
- PLUS_month: 'Plus (monthly)',
53
- payment_details_PLUS_month:
54
- 'You are purchasing a recurring PLUS subscription. You will be charged %{price} / month starting today. ' +
55
- 'You may cancel your subscription at any time from the settings screen.',
56
-
57
- PRO_year: 'Pro (yearly)',
58
- payment_details_PRO_year:
59
- 'You are purchasing a recurring PRO subscription. You will be charged %{price} / year starting today. ' +
60
- 'You may cancel your subscription at any time from the settings screen.',
61
- PRO_month: 'Pro (monthly)',
62
- payment_details_PRO_month:
63
- 'You are purchasing a recurring PRO subscription. You will be charged %{price} / month starting today. ' +
64
- 'You may cancel your subscription at any time from the settings screen.',
65
-
66
- pay_get_PLUS_month: 'Pay for Plus (monthly)',
67
- pay_get_PLUS_year: 'Pay for Plus (yearly)',
68
- pay_get_PRO_month: 'Pay for Pro (monthly)',
69
- pay_get_PRO_year: 'Pay for Pro (yearly)',
70
-
71
- payment_delayed: 'Payment delayed',
72
- payment_delayed_msg:
73
- 'Your payment attempt failed and is being retried. When the payment completes, your account will be updated.',
74
-
75
- checkout_completed_msg:
76
- 'Your account was updated. If there are problems, ' +
77
- 'please contact us by email.',
78
-
79
- try_again_diff_card: 'Try with a different card',
80
- to_cancel_sub: ' to cancel your subscription.',
81
-
82
- cancel_confirm_msg:
83
- 'Do you want to cancel your subscription and stop all future payments?' +
84
- '\n\n' +
85
- 'Your upgraded membership will remain active until the expiration date.',
86
- cancel_my_sub: 'Cancel my subscription',
87
- keep_my_sub: 'Keep my subscription',
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.",
88
6
  },
89
7
  };