@jsb188/app 1.1.9 → 1.1.11
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 +54 -45
- package/src/constants/agent.ts +58 -25
- package/src/constants/app.ts +18 -14
- package/src/constants/billing.ts +92 -92
- package/src/constants/emoji.ts +9144 -8936
- package/src/constants/other.ts +1 -5
- package/src/constants/user.ts +16 -25
- package/src/constants/wsActions.ts +35 -0
- package/src/i18n/account.ts +129 -107
- package/src/i18n/agent.ts +63 -43
- package/src/i18n/agentDoc.ts +110 -0
- package/src/i18n/app.ts +101 -91
- package/src/i18n/auth.ts +119 -102
- package/src/i18n/billing.ts +73 -78
- package/src/i18n/campaign.ts +217 -0
- package/src/i18n/country.ts +248 -248
- package/src/i18n/datetime.ts +26 -26
- package/src/i18n/error.ts +428 -182
- package/src/i18n/field_docs.ts +28 -0
- package/src/i18n/form.ts +464 -344
- package/src/i18n/index.ts +25 -18
- package/src/i18n/log.ts +53 -213
- package/src/i18n/memory.ts +39 -0
- package/src/i18n/message.ts +3 -4
- package/src/i18n/note.ts +17 -0
- package/src/i18n/org.ts +115 -109
- package/src/i18n/sheet.ts +376 -4
- package/src/i18n/workflow.ts +70 -23
- package/src/main.ts +66 -62
- package/src/platform.ts +25 -24
- package/src/types/ai.d.ts +33 -23
- package/src/types/app.d.ts +95 -37
- package/src/types/auth.d.ts +66 -40
- package/src/types/console.d.ts +3 -0
- package/src/types/form.d.ts +65 -61
- package/src/types/other.d.ts +6 -6
- package/src/types.d.ts +12 -14
- package/src/utils/account.ts +64 -58
- package/src/utils/api.ts +280 -77
- package/src/utils/authSession.ts +24 -0
- package/src/utils/billing.ts +110 -103
- package/src/utils/color.ts +202 -0
- package/src/utils/cron.ts +49 -18
- package/src/utils/datetime.ts +255 -103
- package/src/utils/emoji.ts +107 -84
- package/src/utils/expression.ts +867 -0
- package/src/utils/interval.ts +80 -0
- package/src/utils/logic.ts +209 -36
- 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 +60 -32
- package/src/utils/object.ts +198 -30
- package/src/utils/promise.ts +27 -0
- package/src/utils/queryReset.ts +179 -0
- package/src/utils/recurringTask.ts +60 -0
- package/src/utils/schema.ts +293 -0
- package/src/utils/string.test.ts +220 -208
- package/src/utils/string.ts +471 -438
- package/src/utils/timeZone.ts +309 -851
- package/src/utils/url_client.ts +73 -69
- package/tsconfig.json +10 -10
- package/src/i18n/product.ts +0 -76
package/src/i18n/index.ts
CHANGED
|
@@ -1,41 +1,48 @@
|
|
|
1
1
|
/// <reference path="../types/node-polyglot.d.ts" />
|
|
2
2
|
|
|
3
3
|
import Polyglot from 'node-polyglot';
|
|
4
|
-
import type NodePolyglot from '../types.d.ts';
|
|
5
4
|
|
|
6
5
|
import account from './account.ts';
|
|
7
6
|
import agent from './agent.ts';
|
|
8
7
|
import app from './app.ts';
|
|
9
8
|
import auth from './auth.ts';
|
|
10
9
|
import billing from './billing.ts';
|
|
10
|
+
import campaign from './campaign.ts';
|
|
11
11
|
import country from './country.ts';
|
|
12
12
|
import datetime from './datetime.ts';
|
|
13
13
|
import error from './error.ts';
|
|
14
|
+
import field_docs from './field_docs.ts';
|
|
15
|
+
import agentDoc from './agentDoc.ts';
|
|
14
16
|
import form from './form.ts';
|
|
15
17
|
import log from './log.ts';
|
|
16
18
|
import message from './message.ts';
|
|
19
|
+
import memory from './memory.ts';
|
|
20
|
+
import note from './note.ts';
|
|
17
21
|
import org from './org.ts';
|
|
18
|
-
import product from './product.ts';
|
|
19
22
|
import sheet from './sheet.ts';
|
|
20
23
|
import workflow from './workflow.ts';
|
|
21
24
|
|
|
22
25
|
export const i18nTranslations = {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
26
|
+
account,
|
|
27
|
+
agent,
|
|
28
|
+
agentDoc,
|
|
29
|
+
app,
|
|
30
|
+
auth,
|
|
31
|
+
billing,
|
|
32
|
+
country,
|
|
33
|
+
datetime,
|
|
34
|
+
error,
|
|
35
|
+
campaign,
|
|
36
|
+
field_docs,
|
|
37
|
+
form,
|
|
38
|
+
log,
|
|
39
|
+
message,
|
|
40
|
+
memory,
|
|
41
|
+
note,
|
|
42
|
+
org,
|
|
43
|
+
sheet,
|
|
44
|
+
workflow,
|
|
38
45
|
} as Record<string, any>;
|
|
39
46
|
|
|
40
47
|
const i18n = new Polyglot();
|
|
41
|
-
export default i18n
|
|
48
|
+
export default i18n;
|
package/src/i18n/log.ts
CHANGED
|
@@ -13,26 +13,15 @@ export default {
|
|
|
13
13
|
unit_arable_ph: 'lbs',
|
|
14
14
|
location_arable_ph: 'Field A, Row 4, etc.',
|
|
15
15
|
location_water_ph: 'Water source A, etc.',
|
|
16
|
-
|
|
17
|
-
location_livestock_ph: 'Pasture A, Barn B, etc.',
|
|
18
|
-
fieldLocation: 'Field',
|
|
19
|
-
livestockGroup: 'Group',
|
|
16
|
+
fieldLocation: 'Field',
|
|
20
17
|
crop_ph: 'Tomato, broccoli, etc.',
|
|
21
|
-
livestock: 'Livestock',
|
|
22
|
-
livestockIdentifier: 'Livestock ID',
|
|
23
|
-
livestockIdentifiers: 'Livestock IDs',
|
|
24
|
-
livestock_ph: 'Cattle, goat, chicken, etc.',
|
|
25
18
|
purchases: 'Purchases',
|
|
26
19
|
supply_purchases: 'Supply purchases',
|
|
27
20
|
note_from_ai: 'Note from AI',
|
|
28
|
-
|
|
29
|
-
id_tags_ph: '121, 212, 444, etc',
|
|
30
|
-
group: 'Livestock group',
|
|
31
|
-
group_ph: 'Herd A, Pasture B Group, etc',
|
|
32
|
-
logType: 'Log type',
|
|
21
|
+
logType: 'Log type',
|
|
33
22
|
receipt_for: 'Receipt for',
|
|
34
|
-
|
|
35
|
-
|
|
23
|
+
otherParty: 'For',
|
|
24
|
+
childOrgName: 'For',
|
|
36
25
|
market: 'Market',
|
|
37
26
|
marketCredits: 'Market credits',
|
|
38
27
|
marketCredits_ph: '$25 MC, $5 EBT, etc.',
|
|
@@ -47,7 +36,6 @@ export default {
|
|
|
47
36
|
hygiene: 'Hygiene',
|
|
48
37
|
sanitation: 'Sanitation',
|
|
49
38
|
materials: 'Materials',
|
|
50
|
-
biosecurity: 'Biosecurity',
|
|
51
39
|
employees: 'Employees',
|
|
52
40
|
name_of_credit: 'Name of credit',
|
|
53
41
|
water_testing: 'Chlorine levels',
|
|
@@ -62,16 +50,18 @@ export default {
|
|
|
62
50
|
receipt_is_not_void: 'Receipt is not void',
|
|
63
51
|
no_permissions_to_edit: 'You do not have edit permissions.',
|
|
64
52
|
note_ph: 'Write additional notes about this log.',
|
|
65
|
-
|
|
53
|
+
note_ph_voided: 'Voided logs cannot be edited.',
|
|
66
54
|
unknown_crop: 'Unknown crop',
|
|
67
|
-
delete_confirm_msg:
|
|
55
|
+
delete_confirm_msg:
|
|
56
|
+
'Are you sure you want to delete this %{content}? This action cannot be undone.',
|
|
68
57
|
yes_delete_log: 'Yes, delete this %{content}',
|
|
69
|
-
loaded_more_than_:
|
|
70
|
-
|
|
71
|
-
|
|
58
|
+
loaded_more_than_:
|
|
59
|
+
'You loaded more than %{limit} logs. Please refine your search to see more logs.',
|
|
60
|
+
change_sorting_option_for_more_data:
|
|
61
|
+
'Change the sorting option for more data.',
|
|
62
|
+
end_of_list_:
|
|
72
63
|
'You reached the end of this list with %{smart_count} record.||||' +
|
|
73
|
-
'You reached the end of this list with %{smart_count} records.'
|
|
74
|
-
),
|
|
64
|
+
'You reached the end of this list with %{smart_count} records.',
|
|
75
65
|
|
|
76
66
|
log_type_is_created_updated: 'When %{type} logs are created/updated.',
|
|
77
67
|
risk_flags: 'Potential risks',
|
|
@@ -101,20 +91,15 @@ export default {
|
|
|
101
91
|
delete_invoice: 'Delete invoice',
|
|
102
92
|
delete_receipt: 'Delete receipt',
|
|
103
93
|
|
|
104
|
-
|
|
94
|
+
// Source of log entry save
|
|
105
95
|
|
|
106
|
-
|
|
96
|
+
source: {
|
|
107
97
|
EMAIL: 'email',
|
|
108
98
|
SMS: 'SMS',
|
|
109
99
|
WEB: 'web',
|
|
110
100
|
WORKFLOW: 'workflow',
|
|
111
101
|
},
|
|
112
102
|
|
|
113
|
-
// Unit by log graphql type
|
|
114
|
-
unit: {
|
|
115
|
-
LogArable: 'Pack Size',
|
|
116
|
-
},
|
|
117
|
-
|
|
118
103
|
// Types
|
|
119
104
|
type: {
|
|
120
105
|
// #### ARABLE
|
|
@@ -125,31 +110,18 @@ export default {
|
|
|
125
110
|
POST_HARVEST: 'Post-harvest',
|
|
126
111
|
SALES: 'Sales order',
|
|
127
112
|
WATER: 'Water testing',
|
|
128
|
-
|
|
129
|
-
// #### ARABLE - FOOD SAFETY
|
|
130
|
-
HYGIENE: 'Hygiene procedures',
|
|
131
|
-
SANITATION: 'Sanitation infrastructure',
|
|
132
|
-
EQUIPMENT: 'Equipment & materials',
|
|
133
|
-
BIOSECURITY: 'Environment & biosecurity',
|
|
134
|
-
EMPLOYEE: 'Employees & operation',
|
|
113
|
+
CLEANING_AND_SANITATION: 'Cleaning and sanitation',
|
|
135
114
|
|
|
136
115
|
// #### FARMERS_MARKET
|
|
137
116
|
MARKET_RECEIPT: 'Receipt',
|
|
138
117
|
MARKET_OPERATION: 'Operation',
|
|
139
|
-
|
|
118
|
+
VOID_MARKET_RECEIPT: 'Void receipt',
|
|
140
119
|
|
|
141
120
|
// #### GROWER_NETWORK
|
|
142
121
|
WORKER_PRACTICE: 'Personnel practices',
|
|
122
|
+
EQUIPMENT: 'Equipment & materials',
|
|
143
123
|
PRODUCTION_INPUT: 'Production inputs',
|
|
144
124
|
OPERATION: 'Operations',
|
|
145
|
-
|
|
146
|
-
// #### LIVESTOCK
|
|
147
|
-
SUPPLY_PURCHASE: 'Supply purchase',
|
|
148
|
-
LIVESTOCK_LIFE_CYCLE: 'Livestock life cycle',
|
|
149
|
-
LIVESTOCK_TRACKING: 'Livestock tracking',
|
|
150
|
-
PASTURE_LAND_MANAGEMENT: 'Pasture management',
|
|
151
|
-
LIVESTOCK_HEALTHCARE: 'Livestock healthcare',
|
|
152
|
-
LIVESTOCK_SALE: 'Livestock sale',
|
|
153
125
|
},
|
|
154
126
|
type_short: {
|
|
155
127
|
// #### ARABLE
|
|
@@ -160,13 +132,7 @@ export default {
|
|
|
160
132
|
POST_HARVEST: 'Post-harvest',
|
|
161
133
|
SALES: 'Sale',
|
|
162
134
|
WATER: 'Water testing',
|
|
163
|
-
|
|
164
|
-
// #### ARABLE - FOOD SAFETY
|
|
165
|
-
HYGIENE: 'Hygiene',
|
|
166
|
-
SANITATION: 'Sanitation',
|
|
167
|
-
EQUIPMENT: 'Equipment',
|
|
168
|
-
BIOSECURITY: 'Biosecurity',
|
|
169
|
-
EMPLOYEE: 'Employee',
|
|
135
|
+
CLEANING_AND_SANITATION: 'Cleaning',
|
|
170
136
|
|
|
171
137
|
// #### FARMERS_MARKET
|
|
172
138
|
MARKET_RECEIPT: 'Receipt',
|
|
@@ -175,16 +141,9 @@ export default {
|
|
|
175
141
|
|
|
176
142
|
// #### GROWER_NETWORK
|
|
177
143
|
WORKER_PRACTICE: 'Personnel',
|
|
144
|
+
EQUIPMENT: 'Equipment',
|
|
178
145
|
PRODUCTION_INPUT: 'Inputs',
|
|
179
146
|
OPERATION: 'Operations',
|
|
180
|
-
|
|
181
|
-
// #### LIVESTOCK
|
|
182
|
-
SUPPLY_PURCHASE: 'Supply purchase',
|
|
183
|
-
LIVESTOCK_LIFE_CYCLE: 'Life cycle',
|
|
184
|
-
LIVESTOCK_TRACKING: 'Tracking',
|
|
185
|
-
PASTURE_LAND_MANAGEMENT: 'Pasture',
|
|
186
|
-
LIVESTOCK_HEALTHCARE: 'Healthcare',
|
|
187
|
-
LIVESTOCK_SALE: 'Sale',
|
|
188
147
|
},
|
|
189
148
|
|
|
190
149
|
// Activities
|
|
@@ -198,7 +157,7 @@ export default {
|
|
|
198
157
|
// # Transplanting activities
|
|
199
158
|
SEEDING: 'Seeding',
|
|
200
159
|
DIRECT_SEEDING: 'Direct seeding',
|
|
201
|
-
|
|
160
|
+
GREENHOUSE_SEEDING: 'Greenhouse seeding',
|
|
202
161
|
TRANSPLANTING: 'Transplanting',
|
|
203
162
|
SEED_COMPLIANCE_NOTE: 'Seeding compliance',
|
|
204
163
|
OTHER_TRANSPLANT_ACTIVITY: 'Other seeding/transplanting activities',
|
|
@@ -235,35 +194,8 @@ export default {
|
|
|
235
194
|
WATER_TESTING: 'Water testing (chlorine levels)',
|
|
236
195
|
OTHER_WATER_TESTING_ACTIVITY: 'Other water testing activities',
|
|
237
196
|
|
|
238
|
-
//
|
|
239
|
-
|
|
240
|
-
// # Hygiene procedures
|
|
241
|
-
HYGIENE_PROCEDURE: 'Hygiene procedures',
|
|
242
|
-
CONTAMINANT_RISK: 'Contaminants (physical, chemical, microbial)',
|
|
243
|
-
BODILY_FLUID_CONTAMINATION: 'Bodily fluid decontamination',
|
|
244
|
-
SMOKING_EATING_DRINKING_CONTROL: 'Smoking/eating/drinking controls',
|
|
245
|
-
PPE_USAGE: 'Personal protective equipment (PPE)',
|
|
246
|
-
|
|
247
|
-
// # Sanitation infrastructure
|
|
248
|
-
SANITATION_RISK: 'Sanitation risk',
|
|
249
|
-
SANITATION_CONSTRUCTION_MAINTENANCE: 'Sanitation facilities construction/maintenance',
|
|
250
|
-
SANITATION_CLEANING: 'Sanitation facilities cleaning',
|
|
251
|
-
SANITATION_PEST_CONTROL: 'Sanitation facilities pest control',
|
|
252
|
-
|
|
253
|
-
// # Materials & equipments
|
|
254
|
-
EQUIPMENTS_MATERIALS_RISK: 'Materials food safety risk',
|
|
255
|
-
EQUIPMENTS_MATERIALS_CLEANING: 'Materials/food equipments cleaning',
|
|
256
|
-
|
|
257
|
-
// # Environment & biosecurity
|
|
258
|
-
ENVIRONMENT_RISK: 'Environmental food safety risk',
|
|
259
|
-
|
|
260
|
-
// # Employee incidents & training
|
|
261
|
-
EMPLOYEE_ORIENTATION: 'Employee orientation',
|
|
262
|
-
EMPLOYEE_TRAINING: 'Employee training',
|
|
263
|
-
SICK_EMPLOYEE: 'Sick employee',
|
|
264
|
-
EMPLOYEE_INJURED: 'Injured employee',
|
|
265
|
-
EMPLOYEE_NOTES: 'Notes on employees', // "S" is deprecated, but need database migration
|
|
266
|
-
OPERATION_NOTES: 'General operation notes', // "S" is deprecated, but need database migration
|
|
197
|
+
// # Food safety and operation notes
|
|
198
|
+
EMPLOYEE_NOTE: 'Employee note',
|
|
267
199
|
OPERATION_NOTE: 'General operation notes',
|
|
268
200
|
|
|
269
201
|
// #### FARMERS MARKET
|
|
@@ -278,6 +210,7 @@ export default {
|
|
|
278
210
|
// #### GROWER NETWORK
|
|
279
211
|
|
|
280
212
|
// # Grower network activities
|
|
213
|
+
HYGIENE_PROCEDURE: 'Hygiene procedures',
|
|
281
214
|
SANITATION_PRACTICE: 'Sanitation',
|
|
282
215
|
PERSONNEL_PRACTICE: 'Personnel practices',
|
|
283
216
|
EQUIPMENT_MATERIAL: 'Equipment & materials',
|
|
@@ -290,43 +223,6 @@ export default {
|
|
|
290
223
|
FERTILIZER_INPUT: 'Fertilizer inputs',
|
|
291
224
|
RECORDKEEPING: 'Recordkeeping',
|
|
292
225
|
FACILITIES: 'Infrastructure (physical)',
|
|
293
|
-
|
|
294
|
-
// #### LIVESTOCK
|
|
295
|
-
|
|
296
|
-
// # Feed & Supply purchases activities
|
|
297
|
-
FEED_PURCHASE: 'Feed purchase',
|
|
298
|
-
// OTHER_SUPPLY_PURCHASE_ACTIVITY: 'Other supply purchase', // This is double'd in Arable
|
|
299
|
-
|
|
300
|
-
// # Livestock life cycle activities
|
|
301
|
-
LIVESTOCK_PURCHASE: 'Livestock purchase',
|
|
302
|
-
LIVESTOCK_BIRTH: 'Livestock birth',
|
|
303
|
-
LIVESTOCK_REPRODUCTION: 'Livestock reproduction',
|
|
304
|
-
LIVESTOCK_DEATH: 'Livestock death',
|
|
305
|
-
OTHER_LIVESTOCK_LIFE_CYCLE_ACTIVITY: 'Other life cycle activities',
|
|
306
|
-
|
|
307
|
-
// # Livestock tracking activities
|
|
308
|
-
LIVESTOCK_GROUP_TRACKING: 'Group tracking',
|
|
309
|
-
LIVESTOCK_PASTURE_TRACKING: 'Pasture tracking',
|
|
310
|
-
LIVESTOCK_ROTATIONAL_GRAZING: 'Rotational grazing',
|
|
311
|
-
OTHER_LIVESTOCK_TRACKING_ACTIVITY: 'Other tracking activities',
|
|
312
|
-
|
|
313
|
-
// # Pasture land management activities
|
|
314
|
-
PASTURE_SEEDING: 'Pasture seeding',
|
|
315
|
-
FENCE_MAINTENANCE: 'Fence maintenance',
|
|
316
|
-
WATER_SOURCE_MAINTENANCE: 'Water source maintenance',
|
|
317
|
-
OTHER_PASTURE_LAND_MANAGEMENT_ACTIVITY: 'General ranching operation notes',
|
|
318
|
-
|
|
319
|
-
// # Livestock healthcare activities
|
|
320
|
-
LIVESTOCK_VACCINATION: 'Livestock vaccination',
|
|
321
|
-
LIVESTOCK_SICK: 'Sick livestock',
|
|
322
|
-
LIVESTOCK_INJURY: 'Injured livestock',
|
|
323
|
-
LIVESTOCK_CULL: 'Livestock culling',
|
|
324
|
-
LIVESTOCK_TREATMENT: 'Livestock treatment',
|
|
325
|
-
OTHER_LIVESTOCK_HEALTHCARE_ACTIVITY: 'Other healthcare activities',
|
|
326
|
-
|
|
327
|
-
// # Livestock sale activities
|
|
328
|
-
LIVESTOCK_SALE: 'Livestock sale',
|
|
329
|
-
OTHER_LIVESTOCK_SALE_ACTIVITY: 'Other sales activities',
|
|
330
226
|
},
|
|
331
227
|
|
|
332
228
|
// Short versions will override longer version for UI purposes
|
|
@@ -339,7 +235,7 @@ export default {
|
|
|
339
235
|
// # Transplanting activities
|
|
340
236
|
SEEDING: 'Seeding',
|
|
341
237
|
DIRECT_SEEDING: 'Direct seeding',
|
|
342
|
-
|
|
238
|
+
GREENHOUSE_SEEDING: 'Greenhouse seeding',
|
|
343
239
|
TRANSPLANTING: 'Transplanting',
|
|
344
240
|
SEED_COMPLIANCE_NOTE: 'Notes',
|
|
345
241
|
OTHER_TRANSPLANT_ACTIVITY: 'Other',
|
|
@@ -376,35 +272,9 @@ export default {
|
|
|
376
272
|
WATER_TESTING: 'Water testing',
|
|
377
273
|
OTHER_WATER_TESTING_ACTIVITY: 'Water testing',
|
|
378
274
|
|
|
379
|
-
//
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
HYGIENE_PROCEDURE: 'Hygiene',
|
|
383
|
-
CONTAMINANT_RISK: 'Contaminants',
|
|
384
|
-
BODILY_FLUID_CONTAMINATION: 'Excretion',
|
|
385
|
-
SMOKING_EATING_DRINKING_CONTROL: 'Substance',
|
|
386
|
-
PPE_USAGE: 'PPE',
|
|
387
|
-
|
|
388
|
-
// # Sanitation infrastructure
|
|
389
|
-
SANITATION_RISK: 'Sanitation',
|
|
390
|
-
SANITATION_CONSTRUCTION_MAINTENANCE: 'Maintenance',
|
|
391
|
-
SANITATION_CLEANING: 'Cleaning',
|
|
392
|
-
SANITATION_PEST_CONTROL: 'Pest control',
|
|
393
|
-
|
|
394
|
-
// # Materials & equipments
|
|
395
|
-
EQUIPMENTS_MATERIALS_RISK: 'Materials',
|
|
396
|
-
EQUIPMENTS_MATERIALS_CLEANING: 'Cleaning',
|
|
397
|
-
|
|
398
|
-
// # Environment & biosecurity
|
|
399
|
-
ENVIRONMENT_RISK: 'Environmental',
|
|
400
|
-
|
|
401
|
-
// # Employee incidents & training
|
|
402
|
-
EMPLOYEE_ORIENTATION: 'Orientation',
|
|
403
|
-
EMPLOYEE_TRAINING: 'Training',
|
|
404
|
-
SICK_EMPLOYEE: 'Sick',
|
|
405
|
-
EMPLOYEE_INJURED: 'Injured',
|
|
406
|
-
EMPLOYEE_NOTES: 'Notes',
|
|
407
|
-
OPERATION_NOTES: 'Operation',
|
|
275
|
+
// # Food safety and operation notes
|
|
276
|
+
EMPLOYEE_NOTE: 'Employee',
|
|
277
|
+
OPERATION_NOTE: 'Operation',
|
|
408
278
|
|
|
409
279
|
// #### FARMERS MARKET
|
|
410
280
|
|
|
@@ -412,12 +282,12 @@ export default {
|
|
|
412
282
|
MARKET_CREDIT_RECEIPT: 'Credit receipt',
|
|
413
283
|
|
|
414
284
|
// # Market operation activities
|
|
415
|
-
MARKET_ATTENDANCE: 'Attendance',
|
|
416
285
|
MARKET_LOAD_LIST: 'Load list',
|
|
417
286
|
|
|
418
287
|
// #### GROWER NETWORK
|
|
419
288
|
|
|
420
289
|
// # Grower network activities
|
|
290
|
+
HYGIENE_PROCEDURE: 'Hygiene',
|
|
421
291
|
SANITATION_PRACTICE: 'Sanitation',
|
|
422
292
|
PERSONNEL_PRACTICE: 'Personnel',
|
|
423
293
|
EQUIPMENT_MATERIAL: 'Equipment',
|
|
@@ -430,70 +300,40 @@ export default {
|
|
|
430
300
|
FERTILIZER_INPUT: 'Fertilizer',
|
|
431
301
|
RECORDKEEPING: 'Records',
|
|
432
302
|
FACILITIES: 'Infrastructure',
|
|
433
|
-
|
|
434
|
-
// #### LIVESTOCK
|
|
435
|
-
|
|
436
|
-
// # Feed & Supply purchases activities
|
|
437
|
-
FEED_PURCHASE: 'Feed purchase',
|
|
438
|
-
// OTHER_SUPPLY_PURCHASE_ACTIVITY: 'Other supply purchase', // This is double'd in Arable
|
|
439
|
-
|
|
440
|
-
// # Livestock life cycle activities
|
|
441
|
-
LIVESTOCK_PURCHASE: 'Purchase',
|
|
442
|
-
LIVESTOCK_BIRTH: 'Birth',
|
|
443
|
-
LIVESTOCK_REPRODUCTION: 'Reproduction',
|
|
444
|
-
LIVESTOCK_DEATH: 'Death',
|
|
445
|
-
OTHER_LIVESTOCK_LIFE_CYCLE_ACTIVITY: 'Life cycle',
|
|
446
|
-
|
|
447
|
-
// # Livestock tracking activities
|
|
448
|
-
LIVESTOCK_GROUP_TRACKING: 'Group tracking',
|
|
449
|
-
LIVESTOCK_PASTURE_TRACKING: 'Pasture tracking',
|
|
450
|
-
LIVESTOCK_ROTATIONAL_GRAZING: 'Rotational grazing',
|
|
451
|
-
OTHER_LIVESTOCK_TRACKING_ACTIVITY: 'Other tracking',
|
|
452
|
-
|
|
453
|
-
// # Pasture land management activities
|
|
454
|
-
PASTURE_SEEDING: 'Pasture seeding',
|
|
455
|
-
FENCE_MAINTENANCE: 'Fence maintenance',
|
|
456
|
-
WATER_SOURCE_MAINTENANCE: 'Water source',
|
|
457
|
-
OTHER_PASTURE_LAND_MANAGEMENT_ACTIVITY: 'Operation notes',
|
|
458
|
-
|
|
459
|
-
// # Livestock healthcare activities
|
|
460
|
-
LIVESTOCK_VACCINATION: 'Vaccination',
|
|
461
|
-
LIVESTOCK_SICK: 'Sick notes',
|
|
462
|
-
LIVESTOCK_INJURY: 'Injury',
|
|
463
|
-
LIVESTOCK_CULL: 'Culling',
|
|
464
|
-
LIVESTOCK_TREATMENT: 'Treatment',
|
|
465
|
-
OTHER_LIVESTOCK_HEALTHCARE_ACTIVITY: 'Healthcare related',
|
|
466
|
-
|
|
467
|
-
// # Livestock sale activities
|
|
468
|
-
LIVESTOCK_SALE: 'Sale',
|
|
469
|
-
OTHER_LIVESTOCK_SALE_ACTIVITY: 'Other sales',
|
|
470
303
|
},
|
|
471
304
|
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
305
|
+
// Search sort
|
|
306
|
+
|
|
307
|
+
sort: {
|
|
308
|
+
GROUP_BY_VENDORS: 'Sort by vendors',
|
|
309
|
+
DATE_AND_VENDOR_DESC: 'Sort by date, vendors',
|
|
310
|
+
DATE_DESC: 'Sort by date',
|
|
311
|
+
// Workflow list sorts (the sort toolbar reads from the log namespace)
|
|
312
|
+
CREATED_DESC: 'Sort by newest',
|
|
313
|
+
LAST_RUN_DESC: 'Sort by last executed',
|
|
314
|
+
TITLE_ASC: 'Sort by title',
|
|
315
|
+
null: 'Disable sorting',
|
|
316
|
+
},
|
|
480
317
|
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
318
|
+
sort_short: {
|
|
319
|
+
GROUP_BY_VENDORS: 'Sort by vendors',
|
|
320
|
+
DATE_AND_VENDOR_DESC: 'Sort by date, vendors',
|
|
321
|
+
DATE_DESC: 'Sort by date',
|
|
322
|
+
CREATED_DESC: 'Sort by newest',
|
|
323
|
+
LAST_RUN_DESC: 'Sort by last executed',
|
|
324
|
+
TITLE_ASC: 'Sort by title',
|
|
325
|
+
null: 'Disable sorting',
|
|
326
|
+
},
|
|
487
327
|
|
|
488
328
|
// Search filters
|
|
489
329
|
filter: {
|
|
490
330
|
logType: 'Activities',
|
|
491
|
-
|
|
331
|
+
logType_all: 'Activities',
|
|
492
332
|
logType_ct: 'Activities (%{count})',
|
|
493
333
|
dateRange: 'Date range',
|
|
494
334
|
WEEKS_5: '5 weeks',
|
|
495
335
|
search: 'Search',
|
|
496
|
-
|
|
336
|
+
sort_options: 'Sort by',
|
|
497
337
|
},
|
|
498
338
|
|
|
499
339
|
// Search filter popover options
|
|
@@ -501,7 +341,7 @@ export default {
|
|
|
501
341
|
preset: 'Filter by preset',
|
|
502
342
|
activity: 'Filter by activity',
|
|
503
343
|
date_range: 'Filter by date range',
|
|
504
|
-
|
|
344
|
+
site_location: 'Filter by location',
|
|
505
345
|
WEEKS_5: '5 weeks',
|
|
506
346
|
search: 'Search for keywords',
|
|
507
347
|
},
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
en: {
|
|
3
|
+
assistant_memories: 'What the assistant remembers',
|
|
4
|
+
screen_description:
|
|
5
|
+
'Standing facts the assistant applies to every conversation. Things that happened on a date are saved as logs instead.',
|
|
6
|
+
empty_state:
|
|
7
|
+
'The assistant has not learned anything yet. Tell it a standing rule in chat and it will appear here.',
|
|
8
|
+
|
|
9
|
+
what_is_remembered: 'Remembered',
|
|
10
|
+
applies_to: 'Applies to',
|
|
11
|
+
category: 'Kind',
|
|
12
|
+
status: 'Status',
|
|
13
|
+
learned_from: 'Learned from',
|
|
14
|
+
content_ph: 'One short sentence',
|
|
15
|
+
|
|
16
|
+
scope_organization: 'Everyone',
|
|
17
|
+
scope_you: 'Only you',
|
|
18
|
+
scope_customer: 'One customer',
|
|
19
|
+
|
|
20
|
+
category_UNIT: 'Units',
|
|
21
|
+
category_PRODUCT: 'Products',
|
|
22
|
+
category_PROCEDURE: 'Procedure',
|
|
23
|
+
category_PREFERENCE: 'Preference',
|
|
24
|
+
category_OTHER: 'Other',
|
|
25
|
+
|
|
26
|
+
status_active: 'In use',
|
|
27
|
+
status_proposed: 'Suggested',
|
|
28
|
+
status_protected: 'Protected',
|
|
29
|
+
|
|
30
|
+
learned_automatically: 'Learned from a conversation',
|
|
31
|
+
told_by: 'Told by %{name}',
|
|
32
|
+
told_in_chat: 'Told in chat',
|
|
33
|
+
edited_here: 'Edited here',
|
|
34
|
+
|
|
35
|
+
approve: 'Start using this',
|
|
36
|
+
protect: 'Protect from cleanup',
|
|
37
|
+
unprotect: 'Allow cleanup',
|
|
38
|
+
},
|
|
39
|
+
};
|
package/src/i18n/message.ts
CHANGED
|
@@ -6,9 +6,8 @@ export default {
|
|
|
6
6
|
en: {
|
|
7
7
|
email_from_name: 'Marketday',
|
|
8
8
|
from_: 'From: %{name}',
|
|
9
|
-
sent_by_ai_msg:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
),
|
|
9
|
+
sent_by_ai_msg:
|
|
10
|
+
'This email was sent by <a href="https://marketday.ai">Marketday AI</a>.<br />' +
|
|
11
|
+
'Contact us to automate your business operations with AI.',
|
|
13
12
|
},
|
|
14
13
|
};
|
package/src/i18n/note.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
en: {
|
|
3
|
+
// Editor block/format menu (consumed by the @jsb188/agent-docs editor
|
|
4
|
+
// package; entity texts for the agent docs feature live in agentDoc.ts)
|
|
5
|
+
|
|
6
|
+
block_paragraph: 'Paragraph',
|
|
7
|
+
block_heading_1: 'Heading 1',
|
|
8
|
+
block_heading_2: 'Heading 2',
|
|
9
|
+
block_heading_3: 'Heading 3',
|
|
10
|
+
block_bullet_list: 'Bulleted list',
|
|
11
|
+
block_ordered_list: 'Numbered list',
|
|
12
|
+
block_quote: 'Quote',
|
|
13
|
+
block_divider: 'Divider',
|
|
14
|
+
content_placeholder: 'Write something…',
|
|
15
|
+
highlight_color: 'Highlight color',
|
|
16
|
+
},
|
|
17
|
+
};
|