@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/error.ts CHANGED
@@ -5,36 +5,29 @@ export default {
5
5
  invalid: 'Invalid',
6
6
  network_error_title: 'Network error',
7
7
  session_expired_title: 'Session expired',
8
- session_expired_msg:
9
- 'Your authentication session expired.\n Please sign in again.',
8
+ session_expired_msg: 'Your authentication session expired.\n Please sign in again.',
10
9
  form_not_found_title: 'Form Not Found',
11
- form_not_found_msg:
12
- 'This form does not exist. Please double check the URL.',
10
+ form_not_found_msg: 'This form does not exist. Please double check the URL.',
13
11
  form_load_error_title: 'Internal Server Error',
14
- form_load_error_msg:
15
- "We're sorry, something went wrong while trying to load this form.",
12
+ form_load_error_msg: "We're sorry, something went wrong while trying to load this form.",
16
13
  server_outage_title: 'Service disruption',
17
- server_outage_msg:
18
- 'Our servers are experiencing a brief service disruption,\n or we may be deploying an update.',
14
+ server_outage_msg: 'Our servers are experiencing a brief service disruption,\n or we may be deploying an update.',
19
15
  unknown_error: 'Unknown error',
20
16
  unknown_error_msg: 'An unknown error occured.',
21
- network_error:
22
- 'Failed to connect to server.\n Please try again in a moment.',
23
- network_error_msg:
24
- 'Failed to connect to server. Please check if your\n internet connection is stable.',
17
+ network_error: 'Failed to connect to server.\n Please try again in a moment.',
18
+ network_error_msg: 'Failed to connect to server. Please check if your\n internet connection is stable.',
25
19
  app_error_title: 'App crashed',
26
20
  app_error: 'Uh-oh, please refresh the page and tell someone.',
21
+ chunk_load_error_title: "Couldn't load this",
22
+ chunk_load_error: 'This part of the app failed to load. A new version may have\n been released. Refresh the page to continue.',
27
23
  no_access: 'No access',
28
24
  not_allowed: 'Not allowed',
29
25
  not_allowed_perms: 'You do not have permission to do that.',
30
26
  login_changed: 'Login changed',
31
27
  link_expired: 'Link expired',
32
28
  invalid_link: 'Invalid link',
33
- link_expired_msg:
34
- 'This link expired. Please try again by\n requesting another link.',
35
- invalid_link_msg:
36
- 'This link is invalid. Please try again by\n requesting another link.',
37
-
29
+ link_expired_msg: 'This link expired. Please try again by\n requesting another link.',
30
+ invalid_link_msg: 'This link is invalid. Please try again by\n requesting another link.',
38
31
  // Status code errors
39
32
  '401_title': 'Unauthorized',
40
33
  '402_title': 'Payment required',
@@ -52,10 +45,11 @@ export default {
52
45
  '502_title': 'Bad gateway',
53
46
  '503_title': 'Service unavailable',
54
47
  '504_title': 'Gateway timeout',
55
-
48
+ // NOTE: \n is intentional in the description texts. The Alert/Error component converts it into <br /> at runtime.
56
49
  // 1x
57
50
  '10000_title': 'App updated!',
58
51
  '10000_icon': 'party-balloons',
52
+ '10000_preset': 'force_reload',
59
53
  10000: 'This browser tab will reload to update the app.',
60
54
  10001: 'Your file is too large. Please try again with a smaller file.',
61
55
  10002: 'File meta data is missing.',
@@ -65,13 +59,17 @@ export default {
65
59
  10009: 'This Apple login URL expired. Please try again.',
66
60
  10010: 'Your Apple login token was invalid.',
67
61
  10011: 'Apple API failed to respond.',
62
+ '10012_icon': 'password-key',
63
+ '10012_preset': 'force_reload',
64
+ '10012_title': 'Login changed',
68
65
  10012: 'This browser tab will reload because you changed your login.',
69
- 10013:
70
- 'Our email service is experiencing an outage. Please try again in a moment.',
66
+ 10013: 'Our email service is experiencing an outage. Please try again in a moment.',
71
67
  10014: 'Your Microsoft login token was invalid. Please try again.',
72
-
68
+ '10015_icon': 'password-key',
69
+ '10015_preset': 'force_reload',
70
+ '10015_title': 'Organization changed',
71
+ 10015: 'This browser tab will reload because your active organization has changed.',
73
72
  // 2x
74
-
75
73
  20000: '"%{value}" is not allowed.',
76
74
  20001: '"%{value}" is not a valid email domain.',
77
75
  20002: '"%{value}" is not a valid username.',
@@ -92,21 +90,18 @@ export default {
92
90
  20014: 'Account already exists with that username. (%{value})',
93
91
  20015: "We couldn't find that user in our database.",
94
92
  20016: 'You are being rate limited. Please try again in a moment.',
95
- 20017:
96
- 'Please check your-email before requesting another verification link or wait few more seconds.',
97
- 20018:
98
- "Your email is already verified. There's no need to verify your email again.",
93
+ 20017: 'Please check your-email before requesting another verification link or wait few more seconds.',
94
+ 20018: "Your email is already verified. There's no need to verify your email again.",
99
95
  '20019_title': 'Login expired',
100
96
  20019: 'Your login token expired. Please log in again.',
97
+ '20020_icon': 'lock-square-rounded-filled',
101
98
  20020: 'You do not have access to this chat.',
102
99
  20022: 'You are not allowed to chat here.',
103
100
  20023: 'You must be friends to send direct messages.',
104
101
  20024: "You've been temporarily timed out.",
105
- 20025:
106
- 'Account associated with "%{value}" has been banned. If this is an error, please send us an email.',
102
+ 20025: 'Account associated with "%{value}" has been banned. If this is an error, please send us an email.',
107
103
  20026: 'You were blocked by this user.',
108
- 20027:
109
- 'Your IP has been banned. If this is an error, please send us an email.',
104
+ 20027: 'Your IP has been banned. If this is an error, please send us an email.',
110
105
  20028: 'Please disable your VPN and try again.',
111
106
  20029: 'Your request failed the profanity test.',
112
107
  20032: 'You reached the maximum number of live chats (%{value}).',
@@ -128,9 +123,38 @@ export default {
128
123
  20048: 'This action is forbidden because you deleted your account.',
129
124
  20049: "You haven't verified your account yet.",
130
125
  20050: 'This page does not exist.',
131
- 20051:
132
- "We couldn't find an account associated with that phone number. (%{value})",
126
+ 20051: "We couldn't find an account associated with that phone number. (%{value})",
133
127
  20052: "You do not have access to this organization's data.",
128
+ 20149: 'That schedule item could not be found.',
129
+ 20150: 'The schedule input is invalid. Check the dates, recurrence, time zone, or requirements.',
130
+ 20151: 'This item changed while you were editing it. Reload and try again.',
131
+ 20152: 'The schedule cannot be published while a blocking rule is breached.',
132
+ 20153: 'The schedule has warnings that must be acknowledged before publishing.',
133
+ 20161: 'That date range holds too many entries to show at once. Narrow the range.',
134
+ 20181: 'That key or code is already in use.',
135
+ 20182: 'That link would create a loop in the project logic.',
136
+ 20154: 'That item has already changed state. Reload to see the latest.',
137
+ '20154_title': 'Already changed',
138
+ 20155: '%{value} is not eligible for this shift.',
139
+ '20155_title': 'Not eligible',
140
+ 20183: "Too late to give up this shift. Requests need %{value} hours' notice.",
141
+ '20183_title': 'Not enough notice',
142
+ 20184: 'Too many rows in one request (%{value}). Split the import.',
143
+ '20184_title': 'Too many rows',
144
+ 20185: 'Schedule the latest project changes before saving a baseline.',
145
+ '20185_title': 'Schedule is out of date',
146
+ 20186: 'You cannot decide a request you are part of.',
147
+ '20186_title': 'Not allowed',
148
+ 20187: "Your account is not linked to a person on this organization's schedule yet. Ask a manager to link you.",
149
+ '20187_title': 'Not on the roster',
150
+ 20189: 'Campaign sending is paused for your organization. Please contact us to turn it back on.',
151
+ '20189_title': 'Campaign sending paused',
152
+ 20190: "You've reached your campaign sending limit. Please contact us if you need a higher limit.",
153
+ '20190_title': 'Campaign send limit reached',
154
+ 20191: 'The previous send is still finishing. Please try again after recovery completes.',
155
+ '20191_title': 'Send recovery in progress',
156
+ 20188: 'That time off overlaps a request you already have.',
157
+ '20188_title': 'Overlapping time off',
134
158
  20156: 'That memory no longer exists.',
135
159
  20157: 'A memory must be one short sentence, 255 characters or less.',
136
160
  20053: "You haven't verified your account yet.",
@@ -138,25 +162,19 @@ export default {
138
162
  '20054_title': 'Invite required',
139
163
  20054: 'You need an invitation to create an account.',
140
164
  20055: 'You are sending too many verification codes.\n Please slow down.',
141
- 20056:
142
- 'Account associated with "%{value}" has been banned. If this is an error, please send us an email.',
165
+ 20056: 'Account associated with "%{value}" has been banned. If this is an error, please send us an email.',
143
166
  20057: 'Your verification code expired. Please request a new code.',
144
- 20058:
145
- 'You do not have permissions to edit this log. Please contact your administrator.',
167
+ 20058: 'You do not have permissions to edit this log. Please contact your administrator.',
146
168
  20059: 'This log was not found.\n It may have been deleted.',
147
- 20060:
148
- 'You do not have permissions to delete this log. Please contact your administrator.',
149
- 20061:
150
- 'You do not have permissions to perform this action. Please contact your administrator.',
169
+ 20060: 'You do not have permissions to delete this log. Please contact your administrator.',
170
+ 20061: 'You do not have permissions to perform this action. Please contact your administrator.',
151
171
  20062: '"%{value}" is not a valid email address.',
152
172
  20063: 'You cannot change your email to the same email address.',
153
173
  20064: '"%{value}" is not a valid phone number.',
154
- 20065:
155
- 'You cannot edit this information because this organization has been claimed by its owner.',
174
+ 20065: 'You cannot edit this information because this organization has been claimed by its owner.',
156
175
  20066: 'Field doc submission data could not be found.',
157
176
  20067: 'Another account already exists with that phone number. (%{value})',
158
- 20068:
159
- 'Your new phone number cannot be the same as your current phone number.',
177
+ 20068: 'Your new phone number cannot be the same as your current phone number.',
160
178
  20069: '"%{value}" is not a valid AI inbox handle.',
161
179
  20070: 'Another organization already uses the AI inbox handle "%{value}".',
162
180
  '20071_icon': 'database-warning',
@@ -175,25 +193,21 @@ export default {
175
193
  '20078_icon': 'layers-grid-warning',
176
194
  20078: 'This sheet cell cannot be edited.',
177
195
  '20079_icon': 'layers-grid-warning',
178
- 20079: 'This data table region overlaps an existing data table region.',
179
196
  20080: 'You do not have access to this data table.',
180
197
  20081: 'You do not have access to this spreadsheet.',
181
198
  20085: 'This reminder was not found.\n It may have been deleted.',
182
199
  '20087_icon': 'layers-grid-warning',
183
200
  '20087_title': 'Import failed',
184
- 20087:
185
- 'This file could not be read as a spreadsheet.\n Make sure it is a valid CSV, TSV, Excel or ODS file.',
201
+ 20087: 'This file could not be read as a spreadsheet.\n Make sure it is a valid CSV, TSV, Excel or ODS file.',
186
202
  '20088_icon': 'layers-grid-warning',
187
203
  '20088_title': 'Import failed',
188
- 20088:
189
- 'This file is too large to import.\n Reduce the number of rows, columns, cells or sheets and try again.',
204
+ 20088: 'This file is too large to import.\n Reduce the number of rows, columns, cells or sheets and try again.',
190
205
  '20089_icon': 'layers-grid-warning',
191
206
  '20089_title': 'Import failed',
192
207
  20089: 'The uploaded file could not be found.\n Please upload it again.',
193
208
  '20090_icon': 'lock-circle',
194
209
  '20090_title': 'Account already exists',
195
- 20090:
196
- 'An account with the email "%{value}" already exists.\n Please sign in with the method you used before.',
210
+ 20090: 'An account with the email "%{value}" already exists.\n Please sign in with the method you used before.',
197
211
  '20091_title': 'Continue with Microsoft',
198
212
  20091: 'Please use "Continue with Microsoft" to log in. (%{value})',
199
213
  '20092_icon': 'layers-grid-warning',
@@ -201,28 +215,22 @@ export default {
201
215
  20092: 'The attached file could not be found.\n Please upload it again.',
202
216
  '20093_icon': 'layers-grid-warning',
203
217
  '20093_title': 'Attachment failed',
204
- 20093:
205
- 'This file type is not supported.\n Please attach an image or a document.',
218
+ 20093: 'This file type is not supported.\n Please attach an image or a document.',
206
219
  '20094_icon': 'layers-grid-warning',
207
220
  '20094_title': 'Attachment failed',
208
- 20094:
209
- 'You attached too many files.\n Please attach up to %{value} files per message.',
221
+ 20094: 'You attached too many files.\n Please attach up to %{value} files per message.',
210
222
  '20095_icon': 'lock-circle',
211
223
  '20095_title': 'Authentication error',
212
- 20095:
213
- 'We could not reach the email address: "%{value}".\n Please try again with a different email.',
224
+ 20095: 'We could not reach the email address: "%{value}".\n Please try again with a different email.',
214
225
  '20096_icon': 'lock-circle',
215
226
  '20096_title': 'SSO required',
216
- 20096:
217
- 'Your organization requires single sign-on (SSO).\n Please use the "Continue with SSO" option to sign in.',
227
+ 20096: 'Your organization requires single sign-on (SSO).\n Please use the "Continue with SSO" option to sign in.',
218
228
  '20097_icon': 'lock-circle',
219
229
  '20097_title': 'Wrong account',
220
- 20097:
221
- "The account you chose does not belong to your organization's sign-on provider.\n Please sign in with your work account.",
230
+ 20097: "The account you chose does not belong to your organization's sign-on provider.\n Please sign in with your work account.",
222
231
  '20098_icon': 'lock-circle',
223
232
  '20098_title': 'Not a member',
224
- 20098:
225
- 'Your account is not a member of this organization.\n Please ask your administrator for an invitation.',
233
+ 20098: 'Your account is not a member of this organization.\n Please ask your administrator for an invitation.',
226
234
  '20099_icon': 'lock-circle',
227
235
  '20099_title': 'Not eligible',
228
236
  20099:
@@ -232,8 +240,7 @@ export default {
232
240
  20100: 'This form does not exist or is no longer accepting responses.',
233
241
  '20101_icon': 'lock-circle',
234
242
  '20101_title': 'Verification needed',
235
- 20101:
236
- 'Your email verification expired or is invalid.\n Please verify your email again to continue.',
243
+ 20101: 'Your email verification expired or is invalid.\n Please verify your email again to continue.',
237
244
  '20102_title': 'Already submitted',
238
245
  20102: 'A response has already been submitted for this form.',
239
246
  '20103_title': 'Invalid answers',
@@ -242,49 +249,41 @@ export default {
242
249
  20104: 'Please answer all required questions before submitting.',
243
250
  '20105_icon': 'layers-grid-warning',
244
251
  '20105_title': 'Import in progress',
245
- 20105:
246
- 'Your organization already has spreadsheet imports running.\n Please wait for them to finish, then try again.',
252
+ 20105: 'Your organization already has spreadsheet imports running.\n Please wait for them to finish, then try again.',
247
253
  '20106_icon': 'layers-grid-warning',
248
254
  '20106_title': 'Import failed',
249
- 20106:
250
- 'The import could not be completed.\nYour spreadsheet was not changed. Please try again.',
255
+ 20106: 'The import could not be completed.\nYour spreadsheet was not changed. Please try again.',
251
256
  '20108_title': 'Exports in progress',
252
- 20108:
253
- 'Your organization already has file exports running.\n Please wait for them to finish, then try again.',
257
+ 20108: 'Your organization already has file exports running.\n Please wait for them to finish, then try again.',
254
258
  '20109_title': 'Invalid export request',
255
259
  20109: 'The export request is invalid. Please adjust it and try again.',
256
260
  '20114_title': 'Invalid header image',
257
261
  20114: 'Choose a JPEG, PNG, or WebP image smaller than 10 MB.',
258
262
  '20116_title': 'Structure edit conflict',
259
- 20116:
260
- 'This spreadsheet edit identifier was already used for a different row or column change. Please refresh and try again.',
263
+ 20116: 'This spreadsheet edit identifier was already used for a different row or column change. Please refresh and try again.',
261
264
  '20117_title': 'Data table edit conflict',
262
- 20117:
263
- 'This data table edit identifier was already used for a different change. Please refresh and try again.',
265
+ 20117: 'This data table edit identifier was already used for a different change. Please refresh and try again.',
264
266
  '20118_title': 'Invalid data table update cursor',
265
- 20118:
266
- 'This data table update cursor is invalid. Please refresh and try again.',
267
- '20127_title': 'Email subject required',
268
- 20127: 'Add a subject before saving or sending this email template.',
267
+ 20118: 'This data table update cursor is invalid. Please refresh and try again.',
268
+ '20127_title': 'Spreadsheet edits out of order',
269
+ 20127: 'This page sent spreadsheet edits from an outdated sequence. They are being sent again.',
270
+ '20213_title': 'Linked dropdown not saved',
271
+ 20213:
272
+ "Only members of this spreadsheet's organization can copy or fill dropdowns linked to its data tables. That change was not saved.",
269
273
  '20128_title': 'Invalid recipient list',
270
- 20128: 'Choose between 1 and 500 valid email recipients.',
274
+ 20128: 'Choose between 1 and 5,000 eligible email recipients.',
271
275
  '20129_title': 'Email handle required',
272
- 20129:
273
- 'Create an email handle in organization settings before sending public forms or emails.',
276
+ 20129: 'Create an email handle in organization settings before sending public forms or emails.',
274
277
  '20110_title': 'Daily limit reached',
275
- 20110:
276
- 'Your organization reached its daily limit for generated files.\n Please try again tomorrow.',
278
+ 20110: 'Your organization reached its daily limit for generated files.\n Please try again tomorrow.',
277
279
  '20111_title': 'File not found',
278
280
  20111: 'This generated file could not be found.',
279
281
  '20112_title': 'Not ready yet',
280
- 20112:
281
- 'This file is not ready to download yet.\n Please wait for it to finish generating.',
282
+ 20112: 'This file is not ready to download yet.\n Please wait for it to finish generating.',
282
283
  '20113_title': 'File expired',
283
- 20113:
284
- 'This generated file has expired and is no longer available for download.',
284
+ 20113: 'This generated file has expired and is no longer available for download.',
285
285
  '20130_title': 'Session ended',
286
- 20130:
287
- 'Your session has expired or was signed out.\n Please sign in again.',
286
+ 20130: 'Your session has expired or was signed out.\n Please sign in again.',
288
287
  '20131_title': 'Session refresh failed',
289
288
  20131: 'Your session could not be refreshed.\n Please sign in again.',
290
289
  '20132_title': 'Organization access ended',
@@ -292,148 +291,288 @@ export default {
292
291
  '20133_title': 'Permission denied',
293
292
  20133: 'You do not have permission to manage that member session.',
294
293
  '20134_title': 'Sign-in expired',
295
- 20134:
296
- 'This sign-in session could not be established.\n Please sign in again.',
294
+ 20134: 'This sign-in session could not be established.\n Please sign in again.',
297
295
  '20135_title': 'Session refresh in progress',
298
296
  20135: 'Another request refreshed this session. Please try again.',
299
- '20136_title': 'Agent inbox required',
300
- 20136:
301
- 'Select an available agent inbox before creating or sending this public form or email.',
297
+ '20136_title': 'App inbox required',
298
+ 20136: "Select one of this organization's app email inboxes for the main Reply-To.",
302
299
  '20137_title': 'Invalid second Reply-To',
303
- 20137:
304
- 'Enter a valid non-agent email address for the optional second Reply-To.',
300
+ 20137: 'Enter a valid email address for the optional Reply-To.',
301
+ '20193_title': 'App inbox reserved for main Reply-To',
302
+ '20195_title': 'Invalid send schedule',
303
+ 20195: 'Choose a valid date and time in the future for sending this campaign.',
304
+ '20197_title': "Form couldn't be scheduled",
305
+ 20197: 'The form remains a draft because it could not be published. Fix any highlighted issues and try scheduling it again.',
306
+ 20193: "App email inboxes can only be used as the main Reply-To. Choose an organization member's email for the optional Reply-To.",
307
+ '20194_title': 'Organization member email required',
308
+ 20194: 'The optional Reply-To must be a verified email address belonging to a current member of this organization.',
309
+ 20138: 'The value you tried to enter is not acceptable.',
310
+ 20139: 'This campaign has changed since your last action. Refresh the page and try again.',
305
311
  '20140_title': 'Document not found',
306
312
  20140: 'This document was not found.\n It may have been deleted.',
307
- '20141_title': 'Invalid document update',
308
- 20141:
309
- 'Your document changes could not be saved because the content or access settings were invalid.',
310
313
  '20142_title': 'Invalid form definition',
311
314
  20142:
312
315
  'Your form changes could not be saved because an element was invalid or had changed elsewhere. Reload the form and try again.',
313
316
  '20143_title': 'Form changed elsewhere',
314
- 20143:
315
- 'A newer version of this form was saved elsewhere. Reload the latest form before saving your changes.',
317
+ 20143: 'A newer version of this form was saved elsewhere. Reload the latest form before saving your changes.',
316
318
  '20144_title': 'Invalid form request',
317
319
  20144: 'Add instructions or up to ten uploaded files, then try again.',
318
320
  '20145_title': 'Form generation in progress',
319
- 20145:
320
- 'Another form is already being generated for your account. Wait for it to finish, then try again.',
321
+ 20145: 'Another form is already being generated for your account. Wait for it to finish, then try again.',
321
322
  '20146_title': 'Invalid source file',
322
- 20146:
323
- 'One of the uploaded files is unavailable or unsupported. Upload it again, then retry.',
323
+ 20146: 'One of the uploaded files is unavailable or unsupported. Upload it again, then retry.',
324
324
  '20147_title': 'Form generation failed',
325
- 20147:
326
- 'We could not generate a valid form from those sources. Adjust the instructions or files and try again.',
325
+ 20147: 'We could not generate a valid form from those sources. Adjust the instructions or files and try again.',
327
326
  '20148_title': 'More detail needed',
328
- 20148:
329
- 'Describe the form you need or upload a file that contains its questions, then try again.',
327
+ 20148: 'Describe the form you need or upload a file that contains its questions, then try again.',
330
328
  '20158_title': 'Email generation unavailable',
331
- 20158: 'Email template generation is not available yet.',
329
+ 20158: 'Email campaign generation is not available yet.',
332
330
  '20159_title': 'File cannot be moderated',
333
331
  20159: 'This file is too large for moderation. Try a smaller file.',
334
332
  '20160_title': 'Moderation expired',
335
- 20160:
336
- 'The file moderation approval expired or no longer matches. Upload the file again.',
333
+ 20160: 'The file moderation approval expired or no longer matches. Upload the file again.',
337
334
  '20162_title': 'Instructions not allowed',
338
- 20162:
339
- 'The form instructions did not pass our moderation check. Revise them and try again.',
335
+ 20162: 'The form instructions did not pass our moderation check. Revise them and try again.',
340
336
  '20163_title': 'Template not found',
341
- 20163: 'That campaign template no longer exists.',
342
- '20164_title': 'Template is busy',
343
- 20164:
344
- 'This template cannot be changed right now. Wait for it to finish generating, then try again.',
345
- 20165:
346
- 'A campaign needs at least one section with a question before it can be saved.',
337
+ 20163: 'That campaign template no longer exists.\n Please check if you have the correct URL.',
338
+ '20164_title': 'Change unavailable',
339
+ 20164: 'This item cannot be changed in its current state. Refresh it, then try again.',
340
+ '20165_title': 'Changes not saved',
341
+ 20165: 'Your latest changes could not be saved. Reload the page and try again.',
347
342
  '20166_title': 'Campaign not found',
348
- 20166: 'That campaign no longer exists.',
349
- 20167:
350
- 'This template is still being generated, or it failed. Only an active template can be published.',
343
+ 20166: 'This campaign could not be found.\n Please check if you have the correct URL.',
344
+ 20167: 'This template is unavailable or archived. Choose an active template and try again.',
351
345
  '20168_title': 'This form is closed',
352
346
  20168: 'This form is no longer accepting responses.',
353
- 20169:
354
- 'Some answers are missing or invalid. Check the highlighted questions and try again.',
347
+ 20169: 'Some answers are missing or invalid. Check the highlighted questions and try again.',
355
348
  '20170_title': 'Already submitted',
356
349
  20170: 'You have already submitted a response to this form.',
357
350
  20171: 'You do not have access to this form.',
358
- 20172: 'This template is already being generated.',
351
+ 20172: 'Too many campaigns are already being generated for this organization. Wait for one to finish, then try again.',
359
352
  20173: 'A chat name must be between 1 and 80 characters.',
360
- '20174_title': 'Folder not found',
361
- 20174: 'This folder was not found.\n It may have been deleted.',
362
- '20175_title': 'Invalid folder',
363
- 20175:
364
- 'The folder could not be saved.\n The name may be empty or already taken.',
365
-
353
+ '20176_icon': 'rotate-forward',
354
+ '20176_title': 'Found a newer version',
355
+ 20176: 'There is a newer saved version for this recipients list. Please refresh this page and try again.',
356
+ 20199: 'Choose a valid person or contact and where this memory should apply. Email inbox restrictions require the email channel.',
357
+ 20200: 'This page could not be loaded. Refresh the list and try again.',
358
+ '20504_icon': 'rotate-forward',
359
+ '20504_title': 'Found a newer version',
360
+ 20504: 'There is a newer saved version of this information. Please refresh this page and try again.',
361
+ '20507_title': 'Link not found',
362
+ 20507: 'This unsubscribe link is invalid or has expired.',
363
+ // Billing
364
+ '20600_title': 'Plan unavailable',
365
+ 20600: "This plan isn't available for purchase.",
366
+ '20601_title': 'Purchasing unavailable',
367
+ 20601: "Online purchasing isn't available. Please contact us.",
368
+ '20602_title': 'Already subscribed',
369
+ 20602: 'This organization already has a subscription. Contact us to change plans.',
370
+ '20605_title': 'Address not verified',
371
+ 20605: "We couldn't verify that billing address for tax purposes. Please check it and try again.",
372
+ '20606_title': 'Payment processing',
373
+ 20606: 'A payment for this organization is already processing. Please wait for it to finish.',
374
+ 20700: 'The QR code contains invalid fields or settings. Check the values and try again.',
375
+ 20701: 'This QR code could not be found.',
376
+ 20702: 'A QR code reference is unavailable or does not belong to this organization or its linked organizations.',
377
+ 20703: 'These values are too large for one offline QR code. Shorten the values or remove some fields.',
378
+ '20177_title': 'Form is not ready',
379
+ 20177: 'Your draft was saved, but add at least one complete question and finish any blank sections or choices before publishing.',
380
+ '20178_title': 'Form was updated',
381
+ 20178: 'This form was republished after you opened it. Reload before submitting your response.',
382
+ '20179_title': 'Unsupported language',
383
+ 20179: 'Choose one of the supported log languages or disable the setting.',
384
+ '20180_title': 'Proof is still archiving',
385
+ 20180: 'This file is still needed to archive a log revision proof. Try deleting it again in a few minutes.',
386
+ '20192_title': 'Name conflict',
387
+ 20192: 'Another tab in this spreadsheet already uses that name. Please choose a different name.',
388
+ // Contact form
389
+ 20201: 'Please check the highlighted fields and try again.',
390
+ 20202: 'Please use your work email address. Temporary or disposable email addresses are not accepted.',
391
+ 20203: 'Too many messages were sent from your connection. Please try again later.',
392
+ 20204: 'We could not verify that you are human. Please refresh the page and try again.',
393
+ 20205: 'This page was open for too long and has expired. Please send your message again.',
394
+ // Data table references
395
+ '20206_title': 'Circular reference',
396
+ 20206: 'This reference would point back to itself through other linked cells. Link a different cell instead.',
397
+ '20207_title': 'Linked row not found',
398
+ 20207: 'No row in the linked table matches this value. Pick a row from the list instead.',
399
+ '20208_title': 'More than one match',
400
+ 20208: 'More than one row in the linked table matches this value. Pick the exact row from the list instead.',
401
+ '20209_title': 'Link not allowed',
402
+ 20209: 'This column can only link to rows of its linked table.',
403
+ '20210_title': 'Linked by another column',
404
+ 20210: 'Another column links to this data. Change or remove that link column first.',
405
+ '20211_title': 'Too many linked cells',
406
+ 20211: 'Too many cells link to these rows to delete them at once. Delete fewer rows at a time.',
407
+ '20212_title': 'Link columns unavailable',
408
+ 20212: 'Link columns are not available yet.',
409
+ // Campaign test emails
410
+ '20214_title': 'Organization member email required',
411
+ 20214: 'Test emails can only be sent to a verified email address of a current member of your organization.',
412
+ '20215_title': 'Test email not sent',
413
+ 20215: 'We could not send the test email. Please try again in a moment.',
414
+ '20218_title': 'Invalid email address',
415
+ 20218: 'Enter a valid email address to receive a sign-in code.',
416
+ '20219_title': 'Code not accepted',
417
+ 20219: 'This code is incorrect or has expired. Try again or request a new code.',
418
+ '20220_title': 'Please wait before trying again',
419
+ 20220: 'Too many sign-in attempts. Please wait before trying again.',
420
+ '20221_title': 'Email sign-in unavailable',
421
+ 20221: 'Email sign-in is not available for this form. It may have closed or its access settings may have changed.',
422
+ '20226_title': 'Changes not saved',
423
+ 20226: 'Your latest changes could not be saved. Reload the page and try again.',
424
+ '20227_title': 'Form is not ready',
425
+ 20227:
426
+ 'Your draft was saved, but it is not ready to publish. Check "%{value}": every section needs a title and a question, and every question needs a label and complete answer settings.',
427
+ '20228_icon': 'rotate-forward',
428
+ '20228_title': 'A newer version was published',
429
+ 20228: 'This form was published again after your draft started. Discard your draft to start from the latest version.',
430
+ '20229_title': 'Section title required',
431
+ 20229: 'Add a title to every section before saving this draft.',
432
+ '20230_title': 'No published version to restore',
433
+ 20230: 'This form has never been published. Keep editing its draft, publish it when ready, or archive the form.',
434
+ '20231_title': 'Image used by a published form',
435
+ 20231: 'This image belongs to a published form version and must remain available while that form is retained.',
436
+ // Agent notes
437
+ '20232_title': 'AI note not found',
438
+ 20232: 'This AI note no longer exists, or you do not have access to it.',
439
+ '20233_title': 'AI note is archived',
440
+ 20233: 'This AI note is archived or was already changed. Restore it first, or refresh the page and try again.',
441
+ '20234_title': 'Please wait before refreshing',
442
+ 20234: 'This AI note was refreshed a moment ago. Please wait a few minutes before refreshing it again.',
443
+ '20235_title': 'Check the AI note details',
444
+ 20235: 'The AI note focus or archive reason is blank or too long.',
445
+ '20236_title': 'Tracker preview expired',
446
+ 20236: 'This tracker preview has expired. Preview the tracker again before creating it.',
447
+ '20238_title': 'Reminder AI note is retained',
448
+ 20238: 'This AI note stays with its reminder. Archive the AI note to hide it, or permanently delete the reminder to remove both.',
449
+ '20239_title': 'Unsupported QR code',
450
+ 20239: 'This image contains a QR code without a supported JSON payload. The image was not uploaded.',
451
+ '20240_title': 'QR scan expired',
452
+ 20240: 'This QR scan expired or belongs to another account or organization. Add the image again.',
453
+ '20241_title': 'Image could not be checked',
454
+ 20241: 'We could not check this image for QR codes. Try another image. The image was not uploaded.',
455
+ '20242_title': 'Too much QR data',
456
+ 20242: 'Send fewer QR codes at a time so their data fits in one message.',
457
+ '20243_title': 'Table belongs to an AI note',
458
+ 20243:
459
+ 'This data table is used by an AI note and cannot be deleted separately. It will be deleted with the note unless it is shared.',
460
+ '20244_title': 'No access to this table',
461
+ 20244: "You don't have permission to view this data table or the data it comes from.",
462
+ '20245_title': 'No permission',
463
+ 20245: "You don't have permission to rename or delete this data table.",
464
+ '20246_title': 'Invalid request',
465
+ 20246: 'This data table request is invalid. Check the title, or refresh the table and try again.',
466
+ '20247_title': 'Table already exists',
467
+ 20247: 'Another data table already has this title and the same columns. Choose another title.',
468
+ '20248_title': 'Table is in use',
469
+ 20248: 'This data table cannot be deleted because an AI note or workflow uses it.',
470
+ '20249_title': 'Table too large to export',
471
+ 20249: 'This data table has more than %{value} rows, which is more than one CSV file holds.',
472
+ // Field doc programs
473
+ '20250_title': 'Program not found',
474
+ 20250: 'This program was not found, or it is not available to your organization.',
475
+ '20251_title': 'Program not available',
476
+ 20251: 'This program is not offered for your type of organization, or it was retired.',
477
+ '20252_title': 'Document name already in use',
478
+ 20252:
479
+ "Your organization already uses the document names %{value}. Rename or archive those documents, then try again. A name kept by a removed program that can still be restored can't be renamed: restore that program from Recently removed, or wait until its data is deleted.",
480
+ '20253_title': 'Program document',
481
+ 20253: "This document is maintained by its program, so it can't be changed or archived. Add custom instructions instead.",
482
+ '20254_title': 'Check the custom instructions',
483
+ 20254:
484
+ 'These custom instructions could not be saved. Each one must belong to a program document or one of its questions, and be at most 2,000 characters.',
485
+ '20255_title': 'Program already exists',
486
+ 20255: 'Your organization already has a program with this name. Choose another name.',
487
+ '20256_title': 'Check the program details',
488
+ 20256: 'The program name, short name or description is blank or too long, or the category is not valid.',
489
+ '20257_title': 'Restore not available',
490
+ 20257:
491
+ 'A removed program can be restored from Recently removed for 90 days after its removal, but not enrolled again. After 90 days it can no longer be restored, and it can be enrolled again once its old data is deleted, within a day. Refresh the page and try again.',
492
+ '20258_title': 'Catalog program',
493
+ 20258: "This program comes from the program catalog, so its details can't be edited.",
494
+ '20259_title': 'Not a program workflow',
495
+ 20259: 'This workflow is not managed by a program.',
496
+ '20260_title': 'Check the user instructions',
497
+ 20260: 'User instructions cannot be blank and can be at most 2,000 characters.',
498
+ 20262: 'This workflow was not found. It may have been deleted.',
499
+ '20263_title': 'Workflow is linked to content',
500
+ 20263:
501
+ 'This workflow is linked to a field document, campaign, campaign template, or data table and cannot be deleted directly. It will be removed after all linked content is permanently deleted.',
502
+ '20265_title': 'Group not found',
503
+ 20265: 'This field doc group no longer exists. Refresh the program and choose an available group.',
504
+ '20266_title': 'Invalid field doc group',
505
+ 20266:
506
+ 'Use a group name between 1 and 100 characters, a nonnegative display order, and a group from the same program as the form.',
507
+ '20267_title': 'Group name already exists',
508
+ 20267: 'This program already has a group with that name. Choose a different name.',
509
+ '20264_title': 'Reminder has linked tasks',
510
+ 20264: "This reminder's summary note manages other tasks. Delete those tasks before deleting the reminder.",
511
+ '20261_title': 'Workflow cannot be resumed',
512
+ 20261:
513
+ 'This workflow cannot be resumed because its program was removed, or its document or workflow was retired from the program.',
514
+ '20237_title': 'Source is archived',
515
+ 20237:
516
+ "This AI note's form or email campaign is archived, or its field doc is archived, retired or no longer in an enrolled program. Restore an archived form or campaign first. An archived or retired field doc can't be restored; a removed program can be restored in App Settings → Programs.",
366
517
  // 3x
367
-
368
518
  30000: 'An unknown error occured.',
369
519
  30002: 'We made an error in our code. We will fix this soon.',
370
520
  30003: "We're having trouble accessing the server.",
371
- 30004:
372
- 'Our servers are temporarily unavailable, please try again in a moment.',
521
+ 30004: 'Our servers are temporarily unavailable, please try again in a moment.',
373
522
  30010: 'Google servers are not responding right now.',
374
523
  30011: 'Something went wrong with your Google authentication attempt.',
375
524
  30012: 'Microsoft servers are not responding right now.',
376
525
  30043: 'This app is not authorized to connect from the current address.',
377
- 30046:
378
- 'Form generation is temporarily unavailable. Please try again in a moment.',
379
- 30047:
380
- 'File moderation is temporarily unavailable. Please try again in a moment.',
381
- 30048:
382
- 'Form instruction moderation is temporarily unavailable. Please try again in a moment.',
526
+ 30046: 'Form generation is temporarily unavailable. Please try again in a moment.',
527
+ 30047: 'File moderation is temporarily unavailable. Please try again in a moment.',
528
+ 30048: 'Form instruction moderation is temporarily unavailable. Please try again in a moment.',
529
+ 30050: 'The contact form is temporarily unavailable. Please email us directly instead.',
383
530
  30013: 'Our database is in maintenance. Please try again in a moment.',
384
531
  30014: 'Stripe CardElement is incorrect.',
385
532
  30015: 'Invalid payment form values.',
386
533
  30016: 'Stripe API request failed with an unknown reason.',
387
- 30017:
388
- 'Your bank declined your payment method. Please try again with a different card.',
389
- 30018:
390
- 'Your card was declined too many times by Stripe. Please try again later.',
534
+ 30017: 'Your bank declined your payment method. Please try again with a different card.',
535
+ 30018: 'Your card was declined too many times by Stripe. Please try again later.',
391
536
  30019: 'Your card has expired. Please try again with a different card.',
392
537
  30020: 'Your address or zip code is incorrect.',
393
538
  30021: 'Your card number is incorrect.',
394
539
  30022: 'Your CVC number is incorrect.',
395
540
  30023: 'Your card expiration date is incorrect.',
396
541
  30024: 'Stripe customer and payment method was mismatched.',
397
- 30025:
398
- 'Email server is experiencing an outage. Please try again in a moment.',
542
+ 30025: 'Email server is experiencing an outage. Please try again in a moment.',
399
543
  30028: 'You cannot send an empty message.',
400
544
  '30031_title': 'Upload failed',
401
- 30031:
402
- 'There was an issue while uploading your file.\n Please try again in a moment.',
545
+ 30031: 'There was an issue while uploading your file.\n Please try again in a moment.',
403
546
  '30032_title': 'Upload failed',
404
547
  30032: 'Your file upload failed because required metadata was missing.',
405
-
406
548
  // Form errors
407
-
549
+ msg_form_required: 'Enter a value.',
550
+ msg_form_text_min: 'Enter at least %{min} characters.',
551
+ msg_form_text_max: 'Enter no more than %{max} characters.',
552
+ msg_form_url_invalid: 'Enter a valid website URL.',
553
+ msg_form_no_links: 'Remove the link from this field.',
554
+ msg_form_number_invalid: 'Enter a number within the allowed range.',
555
+ msg_form_date_invalid: 'Enter a valid date.',
408
556
  msg_value_and_value_required: '"%{value1}" and "%{value2}" are required.',
409
557
  msg_value_required: '"%{value}" is required.',
410
558
  msg_displayName_invalid: '"%{value}" is an invalid display name.',
411
559
  msg_username_invalid: '"%{value}" is an invalid username.',
412
560
  msg_name_invalid: '"%{value}" is an invalid name.',
413
561
  msg_email_invalid: '"%{value}" is an invalid email address.',
414
- msg_password_too_short:
415
- 'Your password must be at least %{length} characters long.',
416
- msg_password_lowercase:
417
- 'Your password must contain at least one lowercase letter.',
418
- msg_password_uppercase:
419
- 'Your password must contain at least one uppercase letter.',
562
+ msg_password_too_short: 'Your password must be at least %{length} characters long.',
563
+ msg_password_lowercase: 'Your password must contain at least one lowercase letter.',
564
+ msg_password_uppercase: 'Your password must contain at least one uppercase letter.',
420
565
  msg_password_digit: 'Your password must contain at least one digit.',
421
- msg_password_special:
422
- 'Your password must contain at least one special character.',
566
+ msg_password_special: 'Your password must contain at least one special character.',
423
567
  msg_password_insecure: 'Your password is not secure enough.',
424
568
  msg_password_mismatch: 'Your password confirmation did not match.',
425
569
  msg_phone_invalid: '"%{value}" is not a valid phone number.',
426
- msg_note_too_long:
427
- 'Your room note is too long. It must be less than %{length} characters.',
428
-
570
+ msg_note_too_long: 'Your room note is too long. It must be less than %{length} characters.',
429
571
  // File errors
430
-
431
572
  file_too_large: 'File too large',
432
- file_too_large_msg:
433
- 'Your file is too large.\n It must be less than %{maxFileSize}.',
573
+ file_too_large_msg: 'Your file is too large.\n It must be less than %{maxFileSize}.',
434
574
  // file_must_be_photo: 'That is an invalid file. It must be a picture.',
435
- img_processing_failed:
436
- "Your file couldn't be processed. Please upload a valid image file.",
575
+ img_processing_failed: "Your file couldn't be processed. Please upload a valid image file.",
437
576
  // audio_processing_failed: 'Your file couldn\'t be processed. Please upload a valid audio file.',
438
577
  // invalid_audio_file: 'The audio file couldn\'t be loaded properly, try re-opening this page.',
439
578
  },