@jsb188/mday 1.1.10 → 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 (210) hide show
  1. package/package.json +140 -54
  2. package/src/constants/agentMemory.ts +123 -0
  3. package/src/constants/agentNote.ts +212 -0
  4. package/src/constants/aiChat.ts +10 -0
  5. package/src/constants/billing.ts +126 -0
  6. package/src/constants/campaign.ts +236 -0
  7. package/src/constants/contact.ts +72 -0
  8. package/src/constants/csvExport.ts +133 -0
  9. package/src/constants/dataTable.ts +21 -21
  10. package/src/constants/dataTableFieldTypes.generated.ts +59 -0
  11. package/src/constants/docAccess.ts +33 -0
  12. package/src/constants/dt.ts +234 -0
  13. package/src/constants/email.ts +125 -7
  14. package/src/constants/fieldDoc.ts +104 -0
  15. package/src/constants/graphqlReactivity.ts +196 -0
  16. package/src/constants/integration.ts +8 -9
  17. package/src/constants/log.ts +14 -408
  18. package/src/constants/logDisplay/README.md +88 -0
  19. package/src/constants/logDisplay/defaults.ts +39 -0
  20. package/src/constants/logDisplay/index.ts +27 -0
  21. package/src/constants/logDisplay/operations/arable.ts +16 -0
  22. package/src/constants/logDisplay/operations/farmersMarket.ts +10 -0
  23. package/src/constants/logDisplay/operations/foodManufacturing.ts +13 -0
  24. package/src/constants/logDisplay/shared/accounting.ts +13 -0
  25. package/src/constants/logDisplay/shared/interactions.ts +13 -0
  26. package/src/constants/logDisplay/shared/rackTemperatures.ts +42 -0
  27. package/src/constants/logTaxonomy.generated.ts +2207 -0
  28. package/src/constants/noteDoc.ts +77 -0
  29. package/src/constants/organization.ts +18 -21
  30. package/src/constants/pageRoute.ts +23 -0
  31. package/src/constants/qrCode.ts +30 -0
  32. package/src/constants/sheet.ts +126 -14
  33. package/src/constants/sms.ts +18 -0
  34. package/src/constants/square.ts +6 -6
  35. package/src/constants/storage.ts +80 -7
  36. package/src/constants/usage.ts +82 -0
  37. package/src/constants/workflowSteps.ts +60 -0
  38. package/src/schemas/editLogEntry.ts +836 -780
  39. package/src/schemas/inboundContact.ts +60 -55
  40. package/src/schemas/logsQuery.ts +55 -49
  41. package/src/types/account.d.ts +4 -1
  42. package/src/types/agentMemory.d.ts +98 -0
  43. package/src/types/agentNote.d.ts +443 -0
  44. package/src/types/billing.d.ts +537 -0
  45. package/src/types/campaign.d.ts +1533 -0
  46. package/src/types/contact.d.ts +15 -0
  47. package/src/types/csvExport.d.ts +213 -0
  48. package/src/types/dataAnalysis.d.ts +44 -0
  49. package/src/types/dataTable.d.ts +115 -403
  50. package/src/types/definitionElement.d.ts +35 -0
  51. package/src/types/docAccess.d.ts +96 -0
  52. package/src/types/dt.d.ts +257 -0
  53. package/src/types/email.d.ts +184 -24
  54. package/src/types/emailReplyReport.d.ts +76 -0
  55. package/src/types/fieldDoc.d.ts +702 -0
  56. package/src/types/fieldDocContract.d.ts +90 -0
  57. package/src/types/inboundContact.d.ts +10 -1
  58. package/src/types/log.d.ts +254 -295
  59. package/src/types/logDisplay.types.ts +85 -0
  60. package/src/types/organization.d.ts +91 -43
  61. package/src/types/pageRoute.d.ts +48 -0
  62. package/src/types/qrCode.d.ts +96 -0
  63. package/src/types/richText.d.ts +81 -0
  64. package/src/types/sheet.d.ts +678 -129
  65. package/src/types/sms.d.ts +38 -0
  66. package/src/types/storage.d.ts +449 -129
  67. package/src/types/usage.d.ts +106 -0
  68. package/src/types/workflow.d.ts +315 -54
  69. package/src/utils/agentMemory.ts +15 -0
  70. package/src/utils/agentNote.ts +850 -0
  71. package/src/utils/aiChat.ts +43 -0
  72. package/src/utils/aiChatWork.ts +64 -0
  73. package/src/utils/billing.ts +37 -0
  74. package/src/utils/campaign.ts +1174 -0
  75. package/src/utils/campaignAI.ts +72 -0
  76. package/src/utils/campaignAccess.ts +239 -0
  77. package/src/utils/campaignEmail.ts +601 -0
  78. package/src/utils/campaignEmailCompiler.ts +372 -0
  79. package/src/utils/campaignEmailImages.ts +60 -0
  80. package/src/utils/campaignEmailStyles.ts +544 -0
  81. package/src/utils/campaignLifecycle.ts +104 -0
  82. package/src/utils/campaignPreview.ts +285 -0
  83. package/src/utils/contact.ts +50 -0
  84. package/src/utils/csvExport.ts +19 -0
  85. package/src/utils/dataTable.ts +95 -618
  86. package/src/utils/dataTableFieldTypeRegistry.ts +106 -0
  87. package/src/utils/dataTableRelativeDate.ts +447 -0
  88. package/src/utils/definitionElement.ts +84 -0
  89. package/src/utils/docAccess.ts +383 -0
  90. package/src/utils/documentName.ts +53 -0
  91. package/src/utils/email.ts +317 -51
  92. package/src/utils/emailReplyReport.test.ts +187 -0
  93. package/src/utils/emailReplyReport.ts +143 -0
  94. package/src/utils/fieldDoc.ts +157 -0
  95. package/src/utils/fieldDocAnswers.ts +128 -0
  96. package/src/utils/fieldDocDefaults.ts +36 -0
  97. package/src/utils/fieldDocProgram.ts +36 -0
  98. package/src/utils/fieldDocSummary.ts +30 -0
  99. package/src/utils/log.ts +276 -192
  100. package/src/utils/logDisplay.helpers.ts +177 -0
  101. package/src/utils/logDisplay.ts +87 -0
  102. package/src/utils/logRegistryValue.ts +90 -0
  103. package/src/utils/logStoreRead.ts +262 -0
  104. package/src/utils/logTaxonomy.helpers.ts +17 -0
  105. package/src/utils/logTaxonomy.ts +76 -0
  106. package/src/utils/logTaxonomyDisplay.ts +395 -0
  107. package/src/utils/noteDoc.ts +609 -0
  108. package/src/utils/organization.ts +337 -84
  109. package/src/utils/pageRoute.ts +71 -0
  110. package/src/utils/qrCode.helpers.ts +189 -0
  111. package/src/utils/qrCode.test.ts +519 -0
  112. package/src/utils/qrCode.ts +273 -0
  113. package/src/utils/richTextHTML.ts +385 -0
  114. package/src/utils/sheet.ts +199 -107
  115. package/src/utils/sheetAxisMove.ts +616 -0
  116. package/src/utils/sheetBootstrap.ts +1402 -0
  117. package/src/utils/sheetCellLiteral.ts +101 -0
  118. package/src/utils/sheetCommand.ts +358 -0
  119. package/src/utils/sheetDesign.ts +705 -0
  120. package/src/utils/sheetExport.ts +186 -0
  121. package/src/utils/sheetFeatureReference.ts +183 -0
  122. package/src/utils/sheetFormulaArgs.ts +168 -0
  123. package/src/utils/sheetFormulaCompile.ts +475 -0
  124. package/src/utils/sheetFormulaConditionalAggregate.ts +254 -0
  125. package/src/utils/sheetFormulaCriteria.ts +656 -0
  126. package/src/utils/sheetFormulaDate.ts +444 -0
  127. package/src/utils/sheetFormulaEvaluation.ts +899 -0
  128. package/src/utils/sheetFormulaEvaluator.ts +997 -0
  129. package/src/utils/sheetFormulaFunctionHandlers.ts +403 -0
  130. package/src/utils/sheetFormulaLogical.ts +116 -0
  131. package/src/utils/sheetFormulaLookup.ts +488 -0
  132. package/src/utils/sheetFormulaMath.ts +48 -0
  133. package/src/utils/sheetFormulaParser.ts +729 -0
  134. package/src/utils/sheetFormulaRange.ts +330 -0
  135. package/src/utils/sheetFormulaReference.ts +703 -0
  136. package/src/utils/sheetFormulaReferenceAggregates.ts +313 -0
  137. package/src/utils/sheetFormulaReferenceDates.ts +237 -0
  138. package/src/utils/sheetFormulaReferenceLogical.ts +330 -0
  139. package/src/utils/sheetFormulaReferenceLookup.ts +341 -0
  140. package/src/utils/sheetFormulaReferenceMath.ts +95 -0
  141. package/src/utils/sheetFormulaReferenceRewrite.ts +220 -0
  142. package/src/utils/sheetFormulaReferenceText.ts +462 -0
  143. package/src/utils/sheetFormulaSyntax.ts +1027 -0
  144. package/src/utils/sheetFormulaText.ts +430 -0
  145. package/src/utils/sheetJournal.ts +200 -0
  146. package/src/utils/sheetNumberFormat.ts +1012 -0
  147. package/src/utils/sheetPreview.ts +68 -0
  148. package/src/utils/sheetSequence.ts +118 -0
  149. package/src/utils/sheetSnapshot.ts +739 -0
  150. package/src/utils/sheetStructureEdit.ts +914 -0
  151. package/src/utils/sheetStructureReferences.ts +389 -0
  152. package/src/utils/square.ts +22 -12
  153. package/src/utils/storage.ts +198 -0
  154. package/src/utils/table-route.ts +127 -11
  155. package/src/utils/time.ts +12 -0
  156. package/src/utils/workflow.ts +334 -40
  157. package/src/utils/workflowLogFingerprint.ts +302 -0
  158. package/src/utils/workflowLogRevisionSnapshot.ts +424 -0
  159. package/src/utils/workflowProgress.ts +280 -0
  160. package/src/utils/workflowTriggers.ts +61 -0
  161. package/tests/agentNote.test.ts +395 -0
  162. package/tests/campaignAI.test.ts +119 -0
  163. package/tests/campaignAccess.test.ts +239 -0
  164. package/tests/campaignEmail.test.ts +441 -0
  165. package/tests/campaignLifecycle.test.ts +134 -0
  166. package/tests/campaignPublication.test.ts +309 -0
  167. package/tests/dataTableFieldTypeRegistry.test.ts +111 -0
  168. package/tests/dataTableRelativeDate.test.ts +412 -0
  169. package/tests/docAccess.test.ts +525 -0
  170. package/tests/editLogEntry.test.ts +112 -0
  171. package/tests/email.test.ts +39 -0
  172. package/tests/fieldDocProgram.test.ts +114 -0
  173. package/tests/logDisplay.fixtures.ts +67 -0
  174. package/tests/logDisplay.test.ts +227 -0
  175. package/tests/noteDoc.test.ts +514 -0
  176. package/tests/richTextHTML.test.ts +185 -0
  177. package/tests/sheetAxisMove.test.ts +352 -0
  178. package/tests/sheetBootstrap.test.ts +1967 -0
  179. package/tests/sheetFeatureReference.test.ts +22 -0
  180. package/tests/sheetFormulaCriteria.test.ts +269 -0
  181. package/tests/sheetFormulaEvaluator.test.ts +468 -0
  182. package/tests/sheetFormulaFunctions.test.ts +538 -0
  183. package/tests/sheetFormulaLanguage.test.ts +361 -0
  184. package/tests/sheetFormulaParity.fixtures.ts +872 -0
  185. package/tests/sheetFormulaParity.test.ts +188 -0
  186. package/tests/sheetFormulaRange.test.ts +167 -0
  187. package/tests/sheetFormulaReference.test.ts +78 -0
  188. package/tests/sheetFormulaReferenceRewrite.test.ts +117 -0
  189. package/tests/sheetFormulaTextDate.test.ts +512 -0
  190. package/tests/sheetSequence.test.ts +22 -0
  191. package/tests/sheetSnapshot.test.ts +134 -0
  192. package/tests/sheetStructureEdit.test.ts +537 -0
  193. package/tests/sheetStructureReferences.test.ts +589 -0
  194. package/tests/workflowLifecycleStatus.test.ts +60 -0
  195. package/tests/workflowLogFingerprint.test.ts +203 -0
  196. package/tests/workflowLogRevisionSnapshot.test.ts +96 -0
  197. package/tests/workflowProgress.test.ts +180 -0
  198. package/tests/workflowTriggers.test.ts +29 -0
  199. package/tsconfig.json +10 -10
  200. package/vitest.config.ts +8 -0
  201. package/src/constants/log-activityTexts.ts +0 -235
  202. package/src/constants/product.ts +0 -42
  203. package/src/constants/report.ts +0 -44
  204. package/src/schemas/organization.ts +0 -65
  205. package/src/schemas/productsQuery.ts +0 -53
  206. package/src/schemas/reportsQuery.ts +0 -20
  207. package/src/types/product.d.ts +0 -84
  208. package/src/types/report.d.ts +0 -290
  209. package/src/utils/product-calEvent.ts +0 -455
  210. package/src/utils/report.ts +0 -158
@@ -0,0 +1,2207 @@
1
+ // GENERATED FILE — DO NOT EDIT BY HAND.
2
+ // Regenerate with: deno task generate:log-tools (reads the log taxonomy registry).
3
+
4
+ export type LogActivityGroupTuple = [string, string[]];
5
+
6
+ export interface GeneratedLogTaxonomyGroup {
7
+ key: string;
8
+ label: string;
9
+ ordinal: number;
10
+ settings: Record<string, unknown> | null;
11
+ }
12
+
13
+ export interface GeneratedLogTaxonomyActivity {
14
+ key: string;
15
+ groupKey: string;
16
+ agentText: string;
17
+ financeKind: 'NONE' | 'PURCHASE' | 'SALE';
18
+ toolCluster: string | null;
19
+ ordinal: number;
20
+ settings: Record<string, unknown> | null;
21
+ }
22
+
23
+ export interface GeneratedLogTaxonomyOperation {
24
+ groups: GeneratedLogTaxonomyGroup[];
25
+ activities: GeneratedLogTaxonomyActivity[];
26
+ }
27
+
28
+ export const LOG_TAXONOMY_BY_OPERATION: Readonly<Record<string, GeneratedLogTaxonomyOperation>> = {
29
+ 'ARABLE': {
30
+ 'groups': [
31
+ {
32
+ 'key': 'SEED',
33
+ 'label': 'seed & supply purchases',
34
+ 'ordinal': 0,
35
+ 'settings': {
36
+ 'requiresItem': true,
37
+ 'requiredFields': [
38
+ 'item',
39
+ ],
40
+ },
41
+ },
42
+ {
43
+ 'key': 'PLANTING',
44
+ 'label': 'seeding & transplanting',
45
+ 'ordinal': 1,
46
+ 'settings': {
47
+ 'requiresItem': true,
48
+ 'requiredFields': [
49
+ 'item',
50
+ ],
51
+ },
52
+ },
53
+ {
54
+ 'key': 'FIELD',
55
+ 'label': 'field work',
56
+ 'ordinal': 2,
57
+ 'settings': {
58
+ 'requiredFields': [],
59
+ },
60
+ },
61
+ {
62
+ 'key': 'HARVEST',
63
+ 'label': 'harvest activities',
64
+ 'ordinal': 3,
65
+ 'settings': {
66
+ 'requiresItem': true,
67
+ 'requiredFields': [
68
+ 'item',
69
+ ],
70
+ },
71
+ },
72
+ {
73
+ 'key': 'POST_HARVEST',
74
+ 'label': 'post-harvest (storage, maintenance, packaging produce, cold storage)',
75
+ 'ordinal': 4,
76
+ 'settings': {
77
+ 'requiredFields': [],
78
+ },
79
+ },
80
+ {
81
+ 'key': 'SALES',
82
+ 'label': 'sales orders',
83
+ 'ordinal': 5,
84
+ 'settings': {
85
+ 'requiresItem': true,
86
+ 'requiredFields': [
87
+ 'item',
88
+ ],
89
+ },
90
+ },
91
+ {
92
+ 'key': 'WATER',
93
+ 'label': 'water testing activities',
94
+ 'ordinal': 6,
95
+ 'settings': {
96
+ 'requiredFields': [
97
+ 'concentration',
98
+ 'concentrationUnit',
99
+ 'quantity',
100
+ 'unit',
101
+ ],
102
+ 'requiresQuantity': true,
103
+ },
104
+ },
105
+ {
106
+ 'key': 'CLEANING_AND_SANITATION',
107
+ 'label': 'cleaning and sanitation',
108
+ 'ordinal': 7,
109
+ 'settings': {
110
+ 'requiredFields': [
111
+ 'notes',
112
+ ],
113
+ },
114
+ },
115
+ {
116
+ 'key': 'OPERATION',
117
+ 'label': 'operation notes',
118
+ 'ordinal': 8,
119
+ 'settings': {
120
+ 'requiredFields': [
121
+ 'notes',
122
+ ],
123
+ },
124
+ },
125
+ {
126
+ 'key': 'APP_INTERACTIONS',
127
+ 'label': 'Interactions',
128
+ 'ordinal': 9,
129
+ 'settings': {
130
+ 'requiredFields': [],
131
+ },
132
+ },
133
+ ],
134
+ 'activities': [
135
+ {
136
+ 'key': 'SEED_PURCHASE_INFO',
137
+ 'groupKey': 'SEED',
138
+ 'agentText': 'seed purchase',
139
+ 'financeKind': 'PURCHASE',
140
+ 'toolCluster': 'ARABLE_PURCHASE',
141
+ 'ordinal': 0,
142
+ 'settings': null,
143
+ },
144
+ {
145
+ 'key': 'CAMPAIGN_FORM_SUBMISSION',
146
+ 'groupKey': 'APP_INTERACTIONS',
147
+ 'agentText': 'Form submission',
148
+ 'financeKind': 'NONE',
149
+ 'toolCluster': null,
150
+ 'ordinal': 1,
151
+ 'settings': {
152
+ 'source': 'WEB',
153
+ 'systemOnly': true,
154
+ 'requiredFields': [
155
+ 'campaignId',
156
+ 'campaignResponseId',
157
+ 'submissionVersion',
158
+ ],
159
+ },
160
+ },
161
+ {
162
+ 'key': 'OTHER_SUPPLY_PURCHASE_ACTIVITY',
163
+ 'groupKey': 'SEED',
164
+ 'agentText': 'other supply purchase',
165
+ 'financeKind': 'PURCHASE',
166
+ 'toolCluster': 'ARABLE_PURCHASE',
167
+ 'ordinal': 1,
168
+ 'settings': null,
169
+ },
170
+ {
171
+ 'key': 'SEEDING',
172
+ 'groupKey': 'PLANTING',
173
+ 'agentText': 'seeding crops',
174
+ 'financeKind': 'NONE',
175
+ 'toolCluster': 'ARABLE_FARMING',
176
+ 'ordinal': 2,
177
+ 'settings': null,
178
+ },
179
+ {
180
+ 'key': 'DIRECT_SEEDING',
181
+ 'groupKey': 'PLANTING',
182
+ 'agentText': 'direct seeding crops',
183
+ 'financeKind': 'NONE',
184
+ 'toolCluster': 'ARABLE_FARMING',
185
+ 'ordinal': 3,
186
+ 'settings': null,
187
+ },
188
+ {
189
+ 'key': 'GREENHOUSE_SEEDING',
190
+ 'groupKey': 'PLANTING',
191
+ 'agentText': 'greenhouse seeding crops',
192
+ 'financeKind': 'NONE',
193
+ 'toolCluster': 'ARABLE_FARMING',
194
+ 'ordinal': 4,
195
+ 'settings': null,
196
+ },
197
+ {
198
+ 'key': 'TRANSPLANTING',
199
+ 'groupKey': 'PLANTING',
200
+ 'agentText': 'transplanting crops',
201
+ 'financeKind': 'NONE',
202
+ 'toolCluster': 'ARABLE_FARMING',
203
+ 'ordinal': 5,
204
+ 'settings': null,
205
+ },
206
+ {
207
+ 'key': 'SEED_COMPLIANCE_NOTE',
208
+ 'groupKey': 'PLANTING',
209
+ 'agentText': 'seeding compliance notes',
210
+ 'financeKind': 'NONE',
211
+ 'toolCluster': 'ARABLE_FARMING',
212
+ 'ordinal': 6,
213
+ 'settings': null,
214
+ },
215
+ {
216
+ 'key': 'OTHER_TRANSPLANT_ACTIVITY',
217
+ 'groupKey': 'PLANTING',
218
+ 'agentText': 'other seeding or transplanting activities',
219
+ 'financeKind': 'NONE',
220
+ 'toolCluster': 'ARABLE_FARMING',
221
+ 'ordinal': 7,
222
+ 'settings': null,
223
+ },
224
+ {
225
+ 'key': 'PREPARE_SOIL',
226
+ 'groupKey': 'FIELD',
227
+ 'agentText': 'soil, beds preparation',
228
+ 'financeKind': 'NONE',
229
+ 'toolCluster': 'ARABLE_FARMING',
230
+ 'ordinal': 8,
231
+ 'settings': null,
232
+ },
233
+ {
234
+ 'key': 'IRRIGATION',
235
+ 'groupKey': 'FIELD',
236
+ 'agentText': 'irrigation management',
237
+ 'financeKind': 'NONE',
238
+ 'toolCluster': 'ARABLE_FARMING',
239
+ 'ordinal': 9,
240
+ 'settings': null,
241
+ },
242
+ {
243
+ 'key': 'FERTILIZATION_COMPOST',
244
+ 'groupKey': 'FIELD',
245
+ 'agentText': 'fertilization, compost application',
246
+ 'financeKind': 'NONE',
247
+ 'toolCluster': 'ARABLE_FARMING',
248
+ 'ordinal': 10,
249
+ 'settings': null,
250
+ },
251
+ {
252
+ 'key': 'PROTECT_CROP',
253
+ 'groupKey': 'FIELD',
254
+ 'agentText': 'hand pulling weed, hoeing, and cultivation work',
255
+ 'financeKind': 'NONE',
256
+ 'toolCluster': 'ARABLE_FARMING',
257
+ 'ordinal': 11,
258
+ 'settings': null,
259
+ },
260
+ {
261
+ 'key': 'MONITOR_CROP',
262
+ 'groupKey': 'FIELD',
263
+ 'agentText': 'crop monitoring',
264
+ 'financeKind': 'NONE',
265
+ 'toolCluster': 'ARABLE_FARMING',
266
+ 'ordinal': 12,
267
+ 'settings': null,
268
+ },
269
+ {
270
+ 'key': 'PRUNING',
271
+ 'groupKey': 'FIELD',
272
+ 'agentText': 'pruning',
273
+ 'financeKind': 'NONE',
274
+ 'toolCluster': 'ARABLE_FARMING',
275
+ 'ordinal': 13,
276
+ 'settings': null,
277
+ },
278
+ {
279
+ 'key': 'STRUCTURE_MAINTENANCE',
280
+ 'groupKey': 'FIELD',
281
+ 'agentText': 'trellising, structure maintenance',
282
+ 'financeKind': 'NONE',
283
+ 'toolCluster': 'ARABLE_FARMING',
284
+ 'ordinal': 14,
285
+ 'settings': null,
286
+ },
287
+ {
288
+ 'key': 'PREPARE_HARVEST',
289
+ 'groupKey': 'FIELD',
290
+ 'agentText': 'preparing crops for harvest',
291
+ 'financeKind': 'NONE',
292
+ 'toolCluster': 'ARABLE_FARMING',
293
+ 'ordinal': 15,
294
+ 'settings': null,
295
+ },
296
+ {
297
+ 'key': 'OTHER_FIELD_ACTIVITY',
298
+ 'groupKey': 'FIELD',
299
+ 'agentText': 'other field activities or farm operation notes',
300
+ 'financeKind': 'NONE',
301
+ 'toolCluster': 'ARABLE_FARMING',
302
+ 'ordinal': 16,
303
+ 'settings': null,
304
+ },
305
+ {
306
+ 'key': 'HARVEST_CROP',
307
+ 'groupKey': 'HARVEST',
308
+ 'agentText': 'harvesting crops',
309
+ 'financeKind': 'NONE',
310
+ 'toolCluster': 'ARABLE_FARMING',
311
+ 'ordinal': 17,
312
+ 'settings': null,
313
+ },
314
+ {
315
+ 'key': 'HARVEST_COUNT',
316
+ 'groupKey': 'HARVEST',
317
+ 'agentText': 'counting, weighing harvested crops',
318
+ 'financeKind': 'NONE',
319
+ 'toolCluster': 'ARABLE_FARMING',
320
+ 'ordinal': 18,
321
+ 'settings': null,
322
+ },
323
+ {
324
+ 'key': 'SORT_GRADE',
325
+ 'groupKey': 'HARVEST',
326
+ 'agentText': 'sorting, grading crops',
327
+ 'financeKind': 'NONE',
328
+ 'toolCluster': 'ARABLE_FARMING',
329
+ 'ordinal': 19,
330
+ 'settings': null,
331
+ },
332
+ {
333
+ 'key': 'YIELD_LOSS_ESTIMATE',
334
+ 'groupKey': 'HARVEST',
335
+ 'agentText': 'estimating yield or loss',
336
+ 'financeKind': 'NONE',
337
+ 'toolCluster': 'ARABLE_FARMING',
338
+ 'ordinal': 20,
339
+ 'settings': null,
340
+ },
341
+ {
342
+ 'key': 'OTHER_HARVEST_ACTIVITY',
343
+ 'groupKey': 'HARVEST',
344
+ 'agentText': 'other harvest activities',
345
+ 'financeKind': 'NONE',
346
+ 'toolCluster': 'ARABLE_FARMING',
347
+ 'ordinal': 21,
348
+ 'settings': null,
349
+ },
350
+ {
351
+ 'key': 'POST_HARVEST_HANDLING',
352
+ 'groupKey': 'POST_HARVEST',
353
+ 'agentText': 'washing, drying, trimming, sorting, or grading produce',
354
+ 'financeKind': 'NONE',
355
+ 'toolCluster': 'ARABLE_FARMING',
356
+ 'ordinal': 22,
357
+ 'settings': null,
358
+ },
359
+ {
360
+ 'key': 'POST_HARVEST_PACKAGING',
361
+ 'groupKey': 'POST_HARVEST',
362
+ 'agentText': 'packaging, cooling, or moving produce to storage',
363
+ 'financeKind': 'NONE',
364
+ 'toolCluster': 'ARABLE_FARMING',
365
+ 'ordinal': 23,
366
+ 'settings': null,
367
+ },
368
+ {
369
+ 'key': 'COLD_STORAGE_TEMPERATURE',
370
+ 'groupKey': 'POST_HARVEST',
371
+ 'agentText': 'checking or changing temperature (cold storage)',
372
+ 'financeKind': 'NONE',
373
+ 'toolCluster': 'COLD_STORAGE',
374
+ 'ordinal': 24,
375
+ 'settings': {
376
+ 'requiredFields': [
377
+ 'quantity',
378
+ 'unit',
379
+ ],
380
+ },
381
+ },
382
+ {
383
+ 'key': 'OTHER_POST_HARVEST_ACTIVITY',
384
+ 'groupKey': 'POST_HARVEST',
385
+ 'agentText': 'other post-harvest activities including storage and maintenance',
386
+ 'financeKind': 'NONE',
387
+ 'toolCluster': 'ARABLE_FARMING',
388
+ 'ordinal': 25,
389
+ 'settings': null,
390
+ },
391
+ {
392
+ 'key': 'SALE_PRODUCE_ORDER',
393
+ 'groupKey': 'SALES',
394
+ 'agentText': 'sales order (produce)',
395
+ 'financeKind': 'SALE',
396
+ 'toolCluster': 'ARABLE_SALES_ORDER',
397
+ 'ordinal': 26,
398
+ 'settings': {
399
+ 'emailInboxes': [
400
+ 'ASSISTANT',
401
+ ],
402
+ },
403
+ },
404
+ {
405
+ 'key': 'OTHER_SALE_ORDER',
406
+ 'groupKey': 'SALES',
407
+ 'agentText': 'sales order (other)',
408
+ 'financeKind': 'SALE',
409
+ 'toolCluster': 'ARABLE_SALES_ORDER',
410
+ 'ordinal': 27,
411
+ 'settings': {
412
+ 'emailInboxes': [
413
+ 'ASSISTANT',
414
+ ],
415
+ },
416
+ },
417
+ {
418
+ 'key': 'WATER_TESTING',
419
+ 'groupKey': 'WATER',
420
+ 'agentText': 'checking chlorine levels in water',
421
+ 'financeKind': 'NONE',
422
+ 'toolCluster': 'WATER_TESTING',
423
+ 'ordinal': 28,
424
+ 'settings': null,
425
+ },
426
+ {
427
+ 'key': 'OTHER_WATER_TESTING_ACTIVITY',
428
+ 'groupKey': 'WATER',
429
+ 'agentText': 'other water testing related activities',
430
+ 'financeKind': 'NONE',
431
+ 'toolCluster': 'WATER_TESTING',
432
+ 'ordinal': 29,
433
+ 'settings': {
434
+ 'requiredFields': [],
435
+ },
436
+ },
437
+ {
438
+ 'key': 'EQUIPMENT_MATERIAL',
439
+ 'groupKey': 'CLEANING_AND_SANITATION',
440
+ 'agentText': 'harvest equipments/tools/materials cleaning',
441
+ 'financeKind': 'NONE',
442
+ 'toolCluster': 'ARABLE_CLEANING_AND_SANITATION',
443
+ 'ordinal': 30,
444
+ 'settings': null,
445
+ },
446
+ {
447
+ 'key': 'SANITATION_PRACTICE',
448
+ 'groupKey': 'CLEANING_AND_SANITATION',
449
+ 'agentText': 'sanitation cleaning, practices',
450
+ 'financeKind': 'NONE',
451
+ 'toolCluster': 'ARABLE_CLEANING_AND_SANITATION',
452
+ 'ordinal': 31,
453
+ 'settings': null,
454
+ },
455
+ {
456
+ 'key': 'HYGIENE_PROCEDURE',
457
+ 'groupKey': 'CLEANING_AND_SANITATION',
458
+ 'agentText': 'worker hygiene procedures',
459
+ 'financeKind': 'NONE',
460
+ 'toolCluster': 'ARABLE_CLEANING_AND_SANITATION',
461
+ 'ordinal': 32,
462
+ 'settings': null,
463
+ },
464
+ {
465
+ 'key': 'EMPLOYEE_NOTE',
466
+ 'groupKey': 'OPERATION',
467
+ 'agentText': 'notes about an employee',
468
+ 'financeKind': 'NONE',
469
+ 'toolCluster': 'ARABLE_MANAGEMENT',
470
+ 'ordinal': 34,
471
+ 'settings': null,
472
+ },
473
+ {
474
+ 'key': 'OPERATION_NOTE',
475
+ 'groupKey': 'OPERATION',
476
+ 'agentText': 'general operation notes',
477
+ 'financeKind': 'NONE',
478
+ 'toolCluster': 'ARABLE_MANAGEMENT',
479
+ 'ordinal': 35,
480
+ 'settings': {
481
+ 'emailInboxes': [
482
+ 'ASSISTANT',
483
+ ],
484
+ },
485
+ },
486
+ ],
487
+ },
488
+ 'CHILDCARE': {
489
+ 'groups': [],
490
+ 'activities': [],
491
+ },
492
+ 'CONSTRUCTION': {
493
+ 'groups': [],
494
+ 'activities': [],
495
+ },
496
+ 'CONSTRUCTION_INSPECTION_AGENCY': {
497
+ 'groups': [
498
+ {
499
+ 'key': 'SITE_INSPECTION',
500
+ 'label': 'observations and inspections at construction sites',
501
+ 'ordinal': 0,
502
+ 'settings': {
503
+ 'requiredFields': [
504
+ 'notes',
505
+ 'siteId',
506
+ ],
507
+ },
508
+ },
509
+ {
510
+ 'key': 'PROJECT',
511
+ 'label': 'project scheduling, scope, progress, bids, and billing',
512
+ 'ordinal': 1,
513
+ 'settings': {
514
+ 'requiredFields': [
515
+ 'notes',
516
+ ],
517
+ },
518
+ },
519
+ {
520
+ 'key': 'OPERATION',
521
+ 'label': 'activities and notes not related to inspections or construction sites',
522
+ 'ordinal': 2,
523
+ 'settings': {
524
+ 'requiredFields': [
525
+ 'notes',
526
+ ],
527
+ },
528
+ },
529
+ {
530
+ 'key': 'APP_INTERACTIONS',
531
+ 'label': 'Interactions',
532
+ 'ordinal': 3,
533
+ 'settings': {
534
+ 'requiredFields': [],
535
+ },
536
+ },
537
+ ],
538
+ 'activities': [
539
+ {
540
+ 'key': 'MATERIAL',
541
+ 'groupKey': 'SITE_INSPECTION',
542
+ 'agentText': 'materials used in construction such as concrete, masonry, steel, etc',
543
+ 'financeKind': 'NONE',
544
+ 'toolCluster': 'CONSTRUCTION_INSPECTION_AGENCY_SITE_INSPECTION',
545
+ 'ordinal': 0,
546
+ 'settings': null,
547
+ },
548
+ {
549
+ 'key': 'CAMPAIGN_FORM_SUBMISSION',
550
+ 'groupKey': 'APP_INTERACTIONS',
551
+ 'agentText': 'Form submission',
552
+ 'financeKind': 'NONE',
553
+ 'toolCluster': null,
554
+ 'ordinal': 1,
555
+ 'settings': {
556
+ 'source': 'WEB',
557
+ 'systemOnly': true,
558
+ 'requiredFields': [
559
+ 'campaignId',
560
+ 'campaignResponseId',
561
+ 'submissionVersion',
562
+ ],
563
+ },
564
+ },
565
+ {
566
+ 'key': 'MATERIAL_TESTING',
567
+ 'groupKey': 'SITE_INSPECTION',
568
+ 'agentText': 'observing, evaluating, and recording the process of how materials are tested',
569
+ 'financeKind': 'NONE',
570
+ 'toolCluster': 'CONSTRUCTION_INSPECTION_AGENCY_SITE_INSPECTION',
571
+ 'ordinal': 1,
572
+ 'settings': null,
573
+ },
574
+ {
575
+ 'key': 'BEHAVIOR_ISSUE',
576
+ 'groupKey': 'SITE_INSPECTION',
577
+ 'agentText': 'worker or contractor conduct, unsafe practices, and behavior issues on site',
578
+ 'financeKind': 'NONE',
579
+ 'toolCluster': 'CONSTRUCTION_INSPECTION_AGENCY_SITE_INSPECTION',
580
+ 'ordinal': 2,
581
+ 'settings': null,
582
+ },
583
+ {
584
+ 'key': 'OTHER_INSPECTION_ACTIVITY',
585
+ 'groupKey': 'SITE_INSPECTION',
586
+ 'agentText': 'other inspection activities or site observations',
587
+ 'financeKind': 'NONE',
588
+ 'toolCluster': 'CONSTRUCTION_INSPECTION_AGENCY_SITE_INSPECTION',
589
+ 'ordinal': 3,
590
+ 'settings': null,
591
+ },
592
+ {
593
+ 'key': 'PROJECT_SCHEDULING',
594
+ 'groupKey': 'PROJECT',
595
+ 'agentText': 'project schedules, timelines, and milestone changes',
596
+ 'financeKind': 'NONE',
597
+ 'toolCluster': 'CONSTRUCTION_INSPECTION_AGENCY_PROJECT',
598
+ 'ordinal': 4,
599
+ 'settings': {
600
+ 'emailInboxes': [
601
+ 'ASSISTANT',
602
+ ],
603
+ },
604
+ },
605
+ {
606
+ 'key': 'PROJECT_SCOPE',
607
+ 'groupKey': 'PROJECT',
608
+ 'agentText': 'project scope, requirements, and change orders',
609
+ 'financeKind': 'NONE',
610
+ 'toolCluster': 'CONSTRUCTION_INSPECTION_AGENCY_PROJECT',
611
+ 'ordinal': 5,
612
+ 'settings': {
613
+ 'emailInboxes': [
614
+ 'ASSISTANT',
615
+ ],
616
+ },
617
+ },
618
+ {
619
+ 'key': 'PROJECT_PROGRESS',
620
+ 'groupKey': 'PROJECT',
621
+ 'agentText': 'project progress updates and completed work',
622
+ 'financeKind': 'NONE',
623
+ 'toolCluster': 'CONSTRUCTION_INSPECTION_AGENCY_PROJECT',
624
+ 'ordinal': 6,
625
+ 'settings': {
626
+ 'emailInboxes': [
627
+ 'ASSISTANT',
628
+ ],
629
+ },
630
+ },
631
+ {
632
+ 'key': 'PROJECT_BID_PROPOSAL',
633
+ 'groupKey': 'PROJECT',
634
+ 'agentText': 'sent, received, or revised project bids and proposals',
635
+ 'financeKind': 'NONE',
636
+ 'toolCluster': 'CONSTRUCTION_INSPECTION_AGENCY_PROJECT',
637
+ 'ordinal': 7,
638
+ 'settings': {
639
+ 'emailInboxes': [
640
+ 'ASSISTANT',
641
+ ],
642
+ },
643
+ },
644
+ {
645
+ 'key': 'PROJECT_BILLING_INVOICE',
646
+ 'groupKey': 'PROJECT',
647
+ 'agentText': 'sent, received, or revised project bills and invoices',
648
+ 'financeKind': 'NONE',
649
+ 'toolCluster': 'CONSTRUCTION_INSPECTION_AGENCY_PROJECT',
650
+ 'ordinal': 8,
651
+ 'settings': null,
652
+ },
653
+ {
654
+ 'key': 'OTHER_PROJECT_ACTIVITY',
655
+ 'groupKey': 'PROJECT',
656
+ 'agentText': 'other project activities or notes',
657
+ 'financeKind': 'NONE',
658
+ 'toolCluster': 'CONSTRUCTION_INSPECTION_AGENCY_PROJECT',
659
+ 'ordinal': 9,
660
+ 'settings': {
661
+ 'emailInboxes': [
662
+ 'ASSISTANT',
663
+ ],
664
+ },
665
+ },
666
+ {
667
+ 'key': 'RECORDKEEPING',
668
+ 'groupKey': 'OPERATION',
669
+ 'agentText': 'document control, record availability, and accuracy',
670
+ 'financeKind': 'NONE',
671
+ 'toolCluster': 'CONSTRUCTION_INSPECTION_AGENCY_MANAGEMENT',
672
+ 'ordinal': 10,
673
+ 'settings': null,
674
+ },
675
+ {
676
+ 'key': 'OFFICE_NOTE',
677
+ 'groupKey': 'OPERATION',
678
+ 'agentText': 'office related notes',
679
+ 'financeKind': 'NONE',
680
+ 'toolCluster': 'CONSTRUCTION_INSPECTION_AGENCY_MANAGEMENT',
681
+ 'ordinal': 11,
682
+ 'settings': null,
683
+ },
684
+ {
685
+ 'key': 'OPERATION_NOTE',
686
+ 'groupKey': 'OPERATION',
687
+ 'agentText': 'general operation notes',
688
+ 'financeKind': 'NONE',
689
+ 'toolCluster': 'CONSTRUCTION_INSPECTION_AGENCY_MANAGEMENT',
690
+ 'ordinal': 12,
691
+ 'settings': {
692
+ 'emailInboxes': [
693
+ 'ASSISTANT',
694
+ ],
695
+ },
696
+ },
697
+ ],
698
+ },
699
+ 'EMERGENCY_MEDICAL_SERVICES_AGENCY': {
700
+ 'groups': [
701
+ {
702
+ 'key': 'EMS_INCIDENT',
703
+ 'label': 'Emergency medical incident documentation, dispatch records, and follow-up activities.',
704
+ 'ordinal': 0,
705
+ 'settings': {
706
+ 'requiredFields': [
707
+ 'notes',
708
+ ],
709
+ },
710
+ },
711
+ {
712
+ 'key': 'OPERATION',
713
+ 'label': 'Agency administration, employee notes, and general operations.',
714
+ 'ordinal': 1,
715
+ 'settings': {
716
+ 'requiredFields': [
717
+ 'notes',
718
+ ],
719
+ },
720
+ },
721
+ {
722
+ 'key': 'APP_INTERACTIONS',
723
+ 'label': 'Interactions',
724
+ 'ordinal': 2,
725
+ 'settings': {
726
+ 'requiredFields': [],
727
+ },
728
+ },
729
+ ],
730
+ 'activities': [
731
+ {
732
+ 'key': 'EMS_INCIDENT_CHART',
733
+ 'groupKey': 'EMS_INCIDENT',
734
+ 'agentText':
735
+ 'Submitted patient care report (emergency incident chart) containing incident status, questions, and who is responsible for resolving them.',
736
+ 'financeKind': 'NONE',
737
+ 'toolCluster': 'EMERGENCY_MEDICAL_SERVICES_AGENCY_INCIDENT',
738
+ 'ordinal': 0,
739
+ 'settings': null,
740
+ },
741
+ {
742
+ 'key': 'CAMPAIGN_FORM_SUBMISSION',
743
+ 'groupKey': 'APP_INTERACTIONS',
744
+ 'agentText': 'Form submission',
745
+ 'financeKind': 'NONE',
746
+ 'toolCluster': null,
747
+ 'ordinal': 1,
748
+ 'settings': {
749
+ 'source': 'WEB',
750
+ 'systemOnly': true,
751
+ 'requiredFields': [
752
+ 'campaignId',
753
+ 'campaignResponseId',
754
+ 'submissionVersion',
755
+ ],
756
+ },
757
+ },
758
+ {
759
+ 'key': 'EMS_CALL_OR_COMPUTER_AIDED_DISPATCH',
760
+ 'groupKey': 'EMS_INCIDENT',
761
+ 'agentText': 'CAD call sheet containing the dispatched incident.',
762
+ 'financeKind': 'NONE',
763
+ 'toolCluster': 'EMERGENCY_MEDICAL_SERVICES_AGENCY_INCIDENT',
764
+ 'ordinal': 1,
765
+ 'settings': null,
766
+ },
767
+ {
768
+ 'key': 'OTHER_EMS_INCIDENT_ACTIVITY',
769
+ 'groupKey': 'EMS_INCIDENT',
770
+ 'agentText': 'Other emergency medical incident activities, documentation, or follow-up notes.',
771
+ 'financeKind': 'NONE',
772
+ 'toolCluster': 'EMERGENCY_MEDICAL_SERVICES_AGENCY_INCIDENT',
773
+ 'ordinal': 2,
774
+ 'settings': null,
775
+ },
776
+ {
777
+ 'key': 'EMPLOYEE_NOTE',
778
+ 'groupKey': 'OPERATION',
779
+ 'agentText': 'Notes about an employee or medic.',
780
+ 'financeKind': 'NONE',
781
+ 'toolCluster': 'EMERGENCY_MEDICAL_SERVICES_AGENCY_MANAGEMENT',
782
+ 'ordinal': 3,
783
+ 'settings': null,
784
+ },
785
+ {
786
+ 'key': 'OPERATION_NOTE',
787
+ 'groupKey': 'OPERATION',
788
+ 'agentText': 'General operation notes.',
789
+ 'financeKind': 'NONE',
790
+ 'toolCluster': 'EMERGENCY_MEDICAL_SERVICES_AGENCY_MANAGEMENT',
791
+ 'ordinal': 4,
792
+ 'settings': {
793
+ 'emailInboxes': [
794
+ 'ASSISTANT',
795
+ ],
796
+ },
797
+ },
798
+ ],
799
+ },
800
+ 'FARMERS_MARKET': {
801
+ 'groups': [
802
+ {
803
+ 'key': 'MARKET_RECEIPT',
804
+ 'label': 'market credit receipts and coins redemption',
805
+ 'ordinal': 0,
806
+ 'settings': {
807
+ 'requiredFields': [
808
+ 'childOrgId',
809
+ ],
810
+ },
811
+ },
812
+ {
813
+ 'key': 'OPERATION',
814
+ 'label': 'Market operations',
815
+ 'ordinal': 1,
816
+ 'settings': {
817
+ 'requiredFields': [
818
+ 'notes',
819
+ ],
820
+ },
821
+ },
822
+ {
823
+ 'key': 'APP_INTERACTIONS',
824
+ 'label': 'Interactions',
825
+ 'ordinal': 2,
826
+ 'settings': {
827
+ 'requiredFields': [],
828
+ },
829
+ },
830
+ ],
831
+ 'activities': [
832
+ {
833
+ 'key': 'MARKET_CREDIT_RECEIPT',
834
+ 'groupKey': 'MARKET_RECEIPT',
835
+ 'agentText': 'receipts for market credits, coins, or voucher redemption',
836
+ 'financeKind': 'SALE',
837
+ 'toolCluster': 'FARMERS_MARKET_RECEIPT',
838
+ 'ordinal': 0,
839
+ 'settings': null,
840
+ },
841
+ {
842
+ 'key': 'CAMPAIGN_FORM_SUBMISSION',
843
+ 'groupKey': 'APP_INTERACTIONS',
844
+ 'agentText': 'Form submission',
845
+ 'financeKind': 'NONE',
846
+ 'toolCluster': null,
847
+ 'ordinal': 1,
848
+ 'settings': {
849
+ 'source': 'WEB',
850
+ 'systemOnly': true,
851
+ 'requiredFields': [
852
+ 'campaignId',
853
+ 'campaignResponseId',
854
+ 'submissionVersion',
855
+ ],
856
+ },
857
+ },
858
+ {
859
+ 'key': 'MARKET_ATTENDANCE',
860
+ 'groupKey': 'OPERATION',
861
+ 'agentText': 'attendance for vendor',
862
+ 'financeKind': 'NONE',
863
+ 'toolCluster': 'FARMERS_MARKET_MANAGEMENT',
864
+ 'ordinal': 1,
865
+ 'settings': {
866
+ 'requiredFields': [
867
+ 'notes',
868
+ 'childOrgId',
869
+ 'siteId',
870
+ ],
871
+ },
872
+ },
873
+ {
874
+ 'key': 'MARKET_LOAD_LIST',
875
+ 'groupKey': 'OPERATION',
876
+ 'agentText': 'vendor load list',
877
+ 'financeKind': 'NONE',
878
+ 'toolCluster': 'FARMERS_MARKET_MANAGEMENT',
879
+ 'ordinal': 2,
880
+ 'settings': {
881
+ 'requiredFields': [
882
+ 'notes',
883
+ 'childOrgId',
884
+ 'siteId',
885
+ ],
886
+ },
887
+ },
888
+ {
889
+ 'key': 'OPERATION_NOTE',
890
+ 'groupKey': 'OPERATION',
891
+ 'agentText': 'general operation notes',
892
+ 'financeKind': 'NONE',
893
+ 'toolCluster': 'FARMERS_MARKET_NOTE',
894
+ 'ordinal': 3,
895
+ 'settings': {
896
+ 'emailInboxes': [
897
+ 'ASSISTANT',
898
+ ],
899
+ },
900
+ },
901
+ ],
902
+ },
903
+ 'FOOD_MANUFACTURING': {
904
+ 'groups': [
905
+ {
906
+ 'key': 'FOOD_PRODUCTION',
907
+ 'label': 'Production',
908
+ 'ordinal': 0,
909
+ 'settings': {
910
+ 'requiredFields': [
911
+ 'notes',
912
+ ],
913
+ },
914
+ },
915
+ {
916
+ 'key': 'FOOD_WAREHOUSING',
917
+ 'label': 'Warehousing',
918
+ 'ordinal': 1,
919
+ 'settings': {
920
+ 'requiredFields': [
921
+ 'notes',
922
+ ],
923
+ },
924
+ },
925
+ {
926
+ 'key': 'FOOD_INSPECTION',
927
+ 'label': 'Inspections',
928
+ 'ordinal': 2,
929
+ 'settings': {
930
+ 'requiredFields': [
931
+ 'notes',
932
+ ],
933
+ },
934
+ },
935
+ {
936
+ 'key': 'SANITATION',
937
+ 'label': 'Sanitation',
938
+ 'ordinal': 3,
939
+ 'settings': {
940
+ 'requiredFields': [
941
+ 'notes',
942
+ ],
943
+ },
944
+ },
945
+ {
946
+ 'key': 'FULFILLMENT',
947
+ 'label': 'Fulfillment',
948
+ 'ordinal': 4,
949
+ 'settings': {
950
+ 'requiredFields': [
951
+ 'notes',
952
+ ],
953
+ },
954
+ },
955
+ {
956
+ 'key': 'OPERATION',
957
+ 'label': 'Operations',
958
+ 'ordinal': 5,
959
+ 'settings': {
960
+ 'requiredFields': [
961
+ 'notes',
962
+ ],
963
+ },
964
+ },
965
+ {
966
+ 'key': 'APP_INTERACTIONS',
967
+ 'label': 'Interactions',
968
+ 'ordinal': 6,
969
+ 'settings': {
970
+ 'requiredFields': [],
971
+ },
972
+ },
973
+ ],
974
+ 'activities': [
975
+ {
976
+ 'key': 'COOKING_TEMPERATURE',
977
+ 'groupKey': 'FOOD_PRODUCTION',
978
+ 'agentText': 'Record cooking with top, middle, and bottom rack temperatures, units, product, and measurement times.',
979
+ 'financeKind': 'NONE',
980
+ 'toolCluster': 'FOOD_MANUFACTURING_COOKING_COOLING',
981
+ 'ordinal': 0,
982
+ 'settings': {
983
+ 'requiredFields': [
984
+ 'notes',
985
+ 'item',
986
+ 'topTemperature',
987
+ 'middleTemperature',
988
+ 'bottomTemperature',
989
+ 'temperatureUnit',
990
+ ],
991
+ },
992
+ },
993
+ {
994
+ 'key': 'CAMPAIGN_FORM_SUBMISSION',
995
+ 'groupKey': 'APP_INTERACTIONS',
996
+ 'agentText': 'Form submission',
997
+ 'financeKind': 'NONE',
998
+ 'toolCluster': null,
999
+ 'ordinal': 1,
1000
+ 'settings': {
1001
+ 'source': 'WEB',
1002
+ 'systemOnly': true,
1003
+ 'requiredFields': [
1004
+ 'campaignId',
1005
+ 'campaignResponseId',
1006
+ 'submissionVersion',
1007
+ ],
1008
+ },
1009
+ },
1010
+ {
1011
+ 'key': 'COOLING_TEMPERATURE',
1012
+ 'groupKey': 'FOOD_PRODUCTION',
1013
+ 'agentText': 'Record cooling with top, middle, and bottom rack temperatures, units, product, and measurement times.',
1014
+ 'financeKind': 'NONE',
1015
+ 'toolCluster': 'FOOD_MANUFACTURING_COOKING_COOLING',
1016
+ 'ordinal': 1,
1017
+ 'settings': {
1018
+ 'requiredFields': [
1019
+ 'notes',
1020
+ 'item',
1021
+ 'topTemperature',
1022
+ 'middleTemperature',
1023
+ 'bottomTemperature',
1024
+ 'temperatureUnit',
1025
+ ],
1026
+ },
1027
+ },
1028
+ {
1029
+ 'key': 'OTHER_PRODUCT_PROCESSING_ACTIVITY',
1030
+ 'groupKey': 'FOOD_PRODUCTION',
1031
+ 'agentText':
1032
+ 'Record other product processing, such as mixing, thawing, holding, or freezing. Use the dedicated tool for cooking and cooling.',
1033
+ 'financeKind': 'NONE',
1034
+ 'toolCluster': 'FOOD_MANUFACTURING_PRODUCT_PROCESSING',
1035
+ 'ordinal': 2,
1036
+ 'settings': null,
1037
+ },
1038
+ {
1039
+ 'key': 'COLD_STORAGE_TEMPERATURE',
1040
+ 'groupKey': 'FOOD_WAREHOUSING',
1041
+ 'agentText': 'Record cooler or freezer air temperatures, excursions, and actions taken.',
1042
+ 'financeKind': 'NONE',
1043
+ 'toolCluster': 'FOOD_MANUFACTURING_STORAGE_TEMPERATURE',
1044
+ 'ordinal': 3,
1045
+ 'settings': {
1046
+ 'requiredFields': [
1047
+ 'notes',
1048
+ 'temperature',
1049
+ 'temperatureUnit',
1050
+ ],
1051
+ },
1052
+ },
1053
+ {
1054
+ 'key': 'PRODUCT_TRANSFER',
1055
+ 'groupKey': 'FOOD_WAREHOUSING',
1056
+ 'agentText': 'Record internal product transfers between rooms, storage areas, containers, or production lines.',
1057
+ 'financeKind': 'NONE',
1058
+ 'toolCluster': 'FOOD_MANUFACTURING_STORAGE_HANDLING',
1059
+ 'ordinal': 4,
1060
+ 'settings': null,
1061
+ },
1062
+ {
1063
+ 'key': 'OTHER_PRODUCT_STORAGE_HANDLING_ACTIVITY',
1064
+ 'groupKey': 'FOOD_WAREHOUSING',
1065
+ 'agentText': 'Record other internal product storage and handling observations or actions.',
1066
+ 'financeKind': 'NONE',
1067
+ 'toolCluster': 'FOOD_MANUFACTURING_STORAGE_HANDLING',
1068
+ 'ordinal': 5,
1069
+ 'settings': null,
1070
+ },
1071
+ {
1072
+ 'key': 'FOOD_INGREDIENT',
1073
+ 'groupKey': 'FOOD_INSPECTION',
1074
+ 'agentText': 'Inspect ingredients for supplier, lot, condition, and acceptance or rejection.',
1075
+ 'financeKind': 'NONE',
1076
+ 'toolCluster': 'FOOD_MANUFACTURING_FOOD_INSPECTION',
1077
+ 'ordinal': 6,
1078
+ 'settings': {
1079
+ 'requiredFields': [
1080
+ 'notes',
1081
+ 'item',
1082
+ ],
1083
+ },
1084
+ },
1085
+ {
1086
+ 'key': 'METAL_DETECTOR_X_RAY',
1087
+ 'groupKey': 'FOOD_INSPECTION',
1088
+ 'agentText': 'Record detection equipment checks, test pieces, detection and rejection results, and failures.',
1089
+ 'financeKind': 'NONE',
1090
+ 'toolCluster': 'FOOD_MANUFACTURING_FOOD_INSPECTION',
1091
+ 'ordinal': 7,
1092
+ 'settings': null,
1093
+ },
1094
+ {
1095
+ 'key': 'ALLERGEN',
1096
+ 'groupKey': 'FOOD_INSPECTION',
1097
+ 'agentText': 'Record allergen handling, cross-contact controls, product changeovers, and verification.',
1098
+ 'financeKind': 'NONE',
1099
+ 'toolCluster': 'FOOD_MANUFACTURING_FOOD_INSPECTION',
1100
+ 'ordinal': 8,
1101
+ 'settings': {
1102
+ 'requiredFields': [
1103
+ 'notes',
1104
+ 'item',
1105
+ ],
1106
+ },
1107
+ },
1108
+ {
1109
+ 'key': 'OTHER_FOOD_SAFETY_ACTIVITY',
1110
+ 'groupKey': 'FOOD_INSPECTION',
1111
+ 'agentText': 'Other food safety or quality checks, sampling, verification, product holds, and corrective actions.',
1112
+ 'financeKind': 'NONE',
1113
+ 'toolCluster': 'FOOD_MANUFACTURING_FOOD_INSPECTION',
1114
+ 'ordinal': 9,
1115
+ 'settings': null,
1116
+ },
1117
+ {
1118
+ 'key': 'HYGIENE_PROCEDURE',
1119
+ 'groupKey': 'SANITATION',
1120
+ 'agentText': 'Record personnel hygiene practices, handwashing, protective clothing, and related observations.',
1121
+ 'financeKind': 'NONE',
1122
+ 'toolCluster': 'FOOD_MANUFACTURING_HYGIENE_SANITATION',
1123
+ 'ordinal': 10,
1124
+ 'settings': null,
1125
+ },
1126
+ {
1127
+ 'key': 'SANITATION_PRACTICE',
1128
+ 'groupKey': 'SANITATION',
1129
+ 'agentText': 'Record equipment or area cleaning, methods, chemicals, sanitary conditions, and verification.',
1130
+ 'financeKind': 'NONE',
1131
+ 'toolCluster': 'FOOD_MANUFACTURING_HYGIENE_SANITATION',
1132
+ 'ordinal': 11,
1133
+ 'settings': null,
1134
+ },
1135
+ {
1136
+ 'key': 'OTHER_HYGIENE_SANITATION_ACTIVITY',
1137
+ 'groupKey': 'SANITATION',
1138
+ 'agentText': 'Other hygiene or sanitation activities, observations, and follow-up.',
1139
+ 'financeKind': 'NONE',
1140
+ 'toolCluster': 'FOOD_MANUFACTURING_HYGIENE_SANITATION',
1141
+ 'ordinal': 12,
1142
+ 'settings': null,
1143
+ },
1144
+ {
1145
+ 'key': 'PRE_SHIPMENT',
1146
+ 'groupKey': 'FULFILLMENT',
1147
+ 'agentText': 'Review lot records, unresolved issues, shipment readiness, trailer condition, and release sign-off.',
1148
+ 'financeKind': 'NONE',
1149
+ 'toolCluster': 'FOOD_MANUFACTURING_FULFILLMENT',
1150
+ 'ordinal': 13,
1151
+ 'settings': null,
1152
+ },
1153
+ {
1154
+ 'key': 'PACKAGING_AND_LABEL',
1155
+ 'groupKey': 'FULFILLMENT',
1156
+ 'agentText': 'Check packaging, allergen declarations, lot/date codes, and seal integrity.',
1157
+ 'financeKind': 'NONE',
1158
+ 'toolCluster': 'FOOD_MANUFACTURING_FULFILLMENT',
1159
+ 'ordinal': 14,
1160
+ 'settings': {
1161
+ 'requiredFields': [
1162
+ 'notes',
1163
+ 'item',
1164
+ ],
1165
+ },
1166
+ },
1167
+ {
1168
+ 'key': 'OTHER_PACKAGING_SHIPPING_ACTIVITY',
1169
+ 'groupKey': 'FULFILLMENT',
1170
+ 'agentText': 'Other packaging, shipping, loading, or dispatch activities.',
1171
+ 'financeKind': 'NONE',
1172
+ 'toolCluster': 'FOOD_MANUFACTURING_FULFILLMENT',
1173
+ 'ordinal': 15,
1174
+ 'settings': null,
1175
+ },
1176
+ {
1177
+ 'key': 'OFFICE_NOTE',
1178
+ 'groupKey': 'OPERATION',
1179
+ 'agentText': 'Office-related administrative notes.',
1180
+ 'financeKind': 'NONE',
1181
+ 'toolCluster': 'FOOD_MANUFACTURING_OPERATION',
1182
+ 'ordinal': 16,
1183
+ 'settings': null,
1184
+ },
1185
+ {
1186
+ 'key': 'OPERATION_NOTE',
1187
+ 'groupKey': 'OPERATION',
1188
+ 'agentText': 'General operation notes.',
1189
+ 'financeKind': 'NONE',
1190
+ 'toolCluster': 'FOOD_MANUFACTURING_OPERATION',
1191
+ 'ordinal': 17,
1192
+ 'settings': {
1193
+ 'emailInboxes': [
1194
+ 'ASSISTANT',
1195
+ ],
1196
+ },
1197
+ },
1198
+ ],
1199
+ },
1200
+ 'GROWER_NETWORK': {
1201
+ 'groups': [
1202
+ {
1203
+ 'key': 'WORKER_PRACTICE',
1204
+ 'label': 'hygiene, sanitation, and worker practices',
1205
+ 'ordinal': 0,
1206
+ 'settings': {
1207
+ 'requiredFields': [
1208
+ 'notes',
1209
+ 'childOrgId',
1210
+ 'siteId',
1211
+ ],
1212
+ },
1213
+ },
1214
+ {
1215
+ 'key': 'EQUIPMENT',
1216
+ 'label': 'equipments, materials, packaging, storage',
1217
+ 'ordinal': 1,
1218
+ 'settings': {
1219
+ 'requiredFields': [
1220
+ 'notes',
1221
+ 'childOrgId',
1222
+ 'siteId',
1223
+ ],
1224
+ },
1225
+ },
1226
+ {
1227
+ 'key': 'PRODUCTION_INPUT',
1228
+ 'label': 'water, chemical, and fertilizer inputs',
1229
+ 'ordinal': 2,
1230
+ 'settings': {
1231
+ 'requiredFields': [
1232
+ 'notes',
1233
+ 'childOrgId',
1234
+ 'siteId',
1235
+ ],
1236
+ },
1237
+ },
1238
+ {
1239
+ 'key': 'FIELD',
1240
+ 'label': 'field/land conditions, control measures and environmental risks',
1241
+ 'ordinal': 3,
1242
+ 'settings': {
1243
+ 'requiredFields': [
1244
+ 'notes',
1245
+ 'childOrgId',
1246
+ 'siteId',
1247
+ ],
1248
+ },
1249
+ },
1250
+ {
1251
+ 'key': 'OPERATION',
1252
+ 'label': 'recordkeeping, documentation, facilities, and general operations',
1253
+ 'ordinal': 4,
1254
+ 'settings': {
1255
+ 'requiredFields': [
1256
+ 'notes',
1257
+ 'childOrgId',
1258
+ 'siteId',
1259
+ ],
1260
+ },
1261
+ },
1262
+ {
1263
+ 'key': 'APP_INTERACTIONS',
1264
+ 'label': 'Interactions',
1265
+ 'ordinal': 5,
1266
+ 'settings': {
1267
+ 'requiredFields': [],
1268
+ },
1269
+ },
1270
+ ],
1271
+ 'activities': [
1272
+ {
1273
+ 'key': 'HYGIENE_PROCEDURE',
1274
+ 'groupKey': 'WORKER_PRACTICE',
1275
+ 'agentText': 'worker hygiene procedures',
1276
+ 'financeKind': 'NONE',
1277
+ 'toolCluster': 'GROWER_NETWORK_INSPECTIONS',
1278
+ 'ordinal': 0,
1279
+ 'settings': {
1280
+ 'toolOrdinal': 0,
1281
+ },
1282
+ },
1283
+ {
1284
+ 'key': 'CAMPAIGN_FORM_SUBMISSION',
1285
+ 'groupKey': 'APP_INTERACTIONS',
1286
+ 'agentText': 'Form submission',
1287
+ 'financeKind': 'NONE',
1288
+ 'toolCluster': null,
1289
+ 'ordinal': 1,
1290
+ 'settings': {
1291
+ 'source': 'WEB',
1292
+ 'systemOnly': true,
1293
+ 'requiredFields': [
1294
+ 'campaignId',
1295
+ 'campaignResponseId',
1296
+ 'submissionVersion',
1297
+ ],
1298
+ },
1299
+ },
1300
+ {
1301
+ 'key': 'SANITATION_PRACTICE',
1302
+ 'groupKey': 'WORKER_PRACTICE',
1303
+ 'agentText': 'sanitation conditions and cleanliness',
1304
+ 'financeKind': 'NONE',
1305
+ 'toolCluster': 'GROWER_NETWORK_INSPECTIONS',
1306
+ 'ordinal': 1,
1307
+ 'settings': {
1308
+ 'toolOrdinal': 1,
1309
+ },
1310
+ },
1311
+ {
1312
+ 'key': 'PERSONNEL_PRACTICE',
1313
+ 'groupKey': 'WORKER_PRACTICE',
1314
+ 'agentText': 'PPE compliance, worker practices, training, illness',
1315
+ 'financeKind': 'NONE',
1316
+ 'toolCluster': 'GROWER_NETWORK_INSPECTIONS',
1317
+ 'ordinal': 2,
1318
+ 'settings': {
1319
+ 'toolOrdinal': 2,
1320
+ },
1321
+ },
1322
+ {
1323
+ 'key': 'EQUIPMENT_MATERIAL',
1324
+ 'groupKey': 'EQUIPMENT',
1325
+ 'agentText': 'production and harvest equipments/tools/materials',
1326
+ 'financeKind': 'NONE',
1327
+ 'toolCluster': 'GROWER_NETWORK_INSPECTIONS',
1328
+ 'ordinal': 3,
1329
+ 'settings': {
1330
+ 'toolOrdinal': 3,
1331
+ },
1332
+ },
1333
+ {
1334
+ 'key': 'PACKAGING_STORAGE',
1335
+ 'groupKey': 'EQUIPMENT',
1336
+ 'agentText': 'packaging and storage of produce',
1337
+ 'financeKind': 'NONE',
1338
+ 'toolCluster': 'GROWER_NETWORK_INSPECTIONS',
1339
+ 'ordinal': 4,
1340
+ 'settings': {
1341
+ 'toolOrdinal': 4,
1342
+ },
1343
+ },
1344
+ {
1345
+ 'key': 'WATER_INPUT',
1346
+ 'groupKey': 'PRODUCTION_INPUT',
1347
+ 'agentText': 'water source, quality, treatment, testing, and application',
1348
+ 'financeKind': 'NONE',
1349
+ 'toolCluster': 'GROWER_NETWORK_INSPECTIONS',
1350
+ 'ordinal': 5,
1351
+ 'settings': {
1352
+ 'toolOrdinal': 8,
1353
+ },
1354
+ },
1355
+ {
1356
+ 'key': 'CHEMICAL_INPUT',
1357
+ 'groupKey': 'PRODUCTION_INPUT',
1358
+ 'agentText': 'chemical inputs handling and application',
1359
+ 'financeKind': 'NONE',
1360
+ 'toolCluster': 'GROWER_NETWORK_INSPECTIONS',
1361
+ 'ordinal': 6,
1362
+ 'settings': {
1363
+ 'toolOrdinal': 9,
1364
+ },
1365
+ },
1366
+ {
1367
+ 'key': 'FERTILIZER_INPUT',
1368
+ 'groupKey': 'PRODUCTION_INPUT',
1369
+ 'agentText': 'fertilizer inputs handling and application',
1370
+ 'financeKind': 'NONE',
1371
+ 'toolCluster': 'GROWER_NETWORK_INSPECTIONS',
1372
+ 'ordinal': 7,
1373
+ 'settings': {
1374
+ 'toolOrdinal': 10,
1375
+ },
1376
+ },
1377
+ {
1378
+ 'key': 'ENVIRONMENT',
1379
+ 'groupKey': 'FIELD',
1380
+ 'agentText': 'environmental exposure and wildlife activity',
1381
+ 'financeKind': 'NONE',
1382
+ 'toolCluster': 'GROWER_NETWORK_INSPECTIONS',
1383
+ 'ordinal': 8,
1384
+ 'settings': {
1385
+ 'toolOrdinal': 5,
1386
+ },
1387
+ },
1388
+ {
1389
+ 'key': 'FIELD_CONDITION',
1390
+ 'groupKey': 'FIELD',
1391
+ 'agentText': 'field conditions, flood zones, erosion',
1392
+ 'financeKind': 'NONE',
1393
+ 'toolCluster': 'GROWER_NETWORK_INSPECTIONS',
1394
+ 'ordinal': 9,
1395
+ 'settings': {
1396
+ 'toolOrdinal': 6,
1397
+ },
1398
+ },
1399
+ {
1400
+ 'key': 'ADJACENT_LAND',
1401
+ 'groupKey': 'FIELD',
1402
+ 'agentText': 'adjacent land observations, risks',
1403
+ 'financeKind': 'NONE',
1404
+ 'toolCluster': 'GROWER_NETWORK_INSPECTIONS',
1405
+ 'ordinal': 10,
1406
+ 'settings': {
1407
+ 'toolOrdinal': 7,
1408
+ },
1409
+ },
1410
+ {
1411
+ 'key': 'RECORDKEEPING',
1412
+ 'groupKey': 'OPERATION',
1413
+ 'agentText': 'document control, record availability, and accuracy',
1414
+ 'financeKind': 'NONE',
1415
+ 'toolCluster': 'GROWER_NETWORK_INSPECTIONS',
1416
+ 'ordinal': 11,
1417
+ 'settings': {
1418
+ 'toolOrdinal': 11,
1419
+ },
1420
+ },
1421
+ {
1422
+ 'key': 'FACILITIES',
1423
+ 'groupKey': 'OPERATION',
1424
+ 'agentText': 'facilities, physical infrastructure, and maintenance',
1425
+ 'financeKind': 'NONE',
1426
+ 'toolCluster': 'GROWER_NETWORK_INSPECTIONS',
1427
+ 'ordinal': 12,
1428
+ 'settings': {
1429
+ 'toolOrdinal': 12,
1430
+ },
1431
+ },
1432
+ {
1433
+ 'key': 'OPERATION_NOTE',
1434
+ 'groupKey': 'OPERATION',
1435
+ 'agentText': 'general operation notes',
1436
+ 'financeKind': 'NONE',
1437
+ 'toolCluster': 'GROWER_NETWORK_INSPECTIONS',
1438
+ 'ordinal': 13,
1439
+ 'settings': {
1440
+ 'toolOrdinal': 13,
1441
+ 'emailInboxes': [
1442
+ 'ASSISTANT',
1443
+ ],
1444
+ },
1445
+ },
1446
+ ],
1447
+ },
1448
+ 'LIVESTOCK': {
1449
+ 'groups': [],
1450
+ 'activities': [],
1451
+ },
1452
+ 'RESTAURANT': {
1453
+ 'groups': [],
1454
+ 'activities': [],
1455
+ },
1456
+ 'UNKNOWN': {
1457
+ 'groups': [],
1458
+ 'activities': [],
1459
+ },
1460
+ 'UTILITIES': {
1461
+ 'groups': [],
1462
+ 'activities': [],
1463
+ },
1464
+ 'VENDOR': {
1465
+ 'groups': [],
1466
+ 'activities': [],
1467
+ },
1468
+ 'WHOLESALE_FOOD': {
1469
+ 'groups': [],
1470
+ 'activities': [],
1471
+ },
1472
+ };
1473
+
1474
+ export const LOG_ACTIVITIES_BY_OPERATION: Readonly<Record<string, LogActivityGroupTuple[]>> = {
1475
+ 'ARABLE': [
1476
+ [
1477
+ 'SEED',
1478
+ [
1479
+ 'SEED_PURCHASE_INFO',
1480
+ 'OTHER_SUPPLY_PURCHASE_ACTIVITY',
1481
+ ],
1482
+ ],
1483
+ [
1484
+ 'PLANTING',
1485
+ [
1486
+ 'SEEDING',
1487
+ 'DIRECT_SEEDING',
1488
+ 'GREENHOUSE_SEEDING',
1489
+ 'TRANSPLANTING',
1490
+ 'SEED_COMPLIANCE_NOTE',
1491
+ 'OTHER_TRANSPLANT_ACTIVITY',
1492
+ ],
1493
+ ],
1494
+ [
1495
+ 'FIELD',
1496
+ [
1497
+ 'PREPARE_SOIL',
1498
+ 'IRRIGATION',
1499
+ 'FERTILIZATION_COMPOST',
1500
+ 'PROTECT_CROP',
1501
+ 'MONITOR_CROP',
1502
+ 'PRUNING',
1503
+ 'STRUCTURE_MAINTENANCE',
1504
+ 'PREPARE_HARVEST',
1505
+ 'OTHER_FIELD_ACTIVITY',
1506
+ ],
1507
+ ],
1508
+ [
1509
+ 'HARVEST',
1510
+ [
1511
+ 'HARVEST_CROP',
1512
+ 'HARVEST_COUNT',
1513
+ 'SORT_GRADE',
1514
+ 'YIELD_LOSS_ESTIMATE',
1515
+ 'OTHER_HARVEST_ACTIVITY',
1516
+ ],
1517
+ ],
1518
+ [
1519
+ 'POST_HARVEST',
1520
+ [
1521
+ 'POST_HARVEST_HANDLING',
1522
+ 'POST_HARVEST_PACKAGING',
1523
+ 'COLD_STORAGE_TEMPERATURE',
1524
+ 'OTHER_POST_HARVEST_ACTIVITY',
1525
+ ],
1526
+ ],
1527
+ [
1528
+ 'SALES',
1529
+ [
1530
+ 'SALE_PRODUCE_ORDER',
1531
+ 'OTHER_SALE_ORDER',
1532
+ ],
1533
+ ],
1534
+ [
1535
+ 'WATER',
1536
+ [
1537
+ 'WATER_TESTING',
1538
+ 'OTHER_WATER_TESTING_ACTIVITY',
1539
+ ],
1540
+ ],
1541
+ [
1542
+ 'CLEANING_AND_SANITATION',
1543
+ [
1544
+ 'EQUIPMENT_MATERIAL',
1545
+ 'SANITATION_PRACTICE',
1546
+ 'HYGIENE_PROCEDURE',
1547
+ ],
1548
+ ],
1549
+ [
1550
+ 'OPERATION',
1551
+ [
1552
+ 'EMPLOYEE_NOTE',
1553
+ 'OPERATION_NOTE',
1554
+ ],
1555
+ ],
1556
+ [
1557
+ 'APP_INTERACTIONS',
1558
+ [
1559
+ 'CAMPAIGN_FORM_SUBMISSION',
1560
+ ],
1561
+ ],
1562
+ ],
1563
+ 'CONSTRUCTION_INSPECTION_AGENCY': [
1564
+ [
1565
+ 'SITE_INSPECTION',
1566
+ [
1567
+ 'MATERIAL',
1568
+ 'MATERIAL_TESTING',
1569
+ 'BEHAVIOR_ISSUE',
1570
+ 'OTHER_INSPECTION_ACTIVITY',
1571
+ ],
1572
+ ],
1573
+ [
1574
+ 'PROJECT',
1575
+ [
1576
+ 'PROJECT_SCHEDULING',
1577
+ 'PROJECT_SCOPE',
1578
+ 'PROJECT_PROGRESS',
1579
+ 'PROJECT_BID_PROPOSAL',
1580
+ 'PROJECT_BILLING_INVOICE',
1581
+ 'OTHER_PROJECT_ACTIVITY',
1582
+ ],
1583
+ ],
1584
+ [
1585
+ 'OPERATION',
1586
+ [
1587
+ 'RECORDKEEPING',
1588
+ 'OFFICE_NOTE',
1589
+ 'OPERATION_NOTE',
1590
+ ],
1591
+ ],
1592
+ [
1593
+ 'APP_INTERACTIONS',
1594
+ [
1595
+ 'CAMPAIGN_FORM_SUBMISSION',
1596
+ ],
1597
+ ],
1598
+ ],
1599
+ 'EMERGENCY_MEDICAL_SERVICES_AGENCY': [
1600
+ [
1601
+ 'EMS_INCIDENT',
1602
+ [
1603
+ 'EMS_INCIDENT_CHART',
1604
+ 'EMS_CALL_OR_COMPUTER_AIDED_DISPATCH',
1605
+ 'OTHER_EMS_INCIDENT_ACTIVITY',
1606
+ ],
1607
+ ],
1608
+ [
1609
+ 'OPERATION',
1610
+ [
1611
+ 'EMPLOYEE_NOTE',
1612
+ 'OPERATION_NOTE',
1613
+ ],
1614
+ ],
1615
+ [
1616
+ 'APP_INTERACTIONS',
1617
+ [
1618
+ 'CAMPAIGN_FORM_SUBMISSION',
1619
+ ],
1620
+ ],
1621
+ ],
1622
+ 'FARMERS_MARKET': [
1623
+ [
1624
+ 'MARKET_RECEIPT',
1625
+ [
1626
+ 'MARKET_CREDIT_RECEIPT',
1627
+ ],
1628
+ ],
1629
+ [
1630
+ 'OPERATION',
1631
+ [
1632
+ 'MARKET_ATTENDANCE',
1633
+ 'MARKET_LOAD_LIST',
1634
+ 'OPERATION_NOTE',
1635
+ ],
1636
+ ],
1637
+ [
1638
+ 'APP_INTERACTIONS',
1639
+ [
1640
+ 'CAMPAIGN_FORM_SUBMISSION',
1641
+ ],
1642
+ ],
1643
+ ],
1644
+ 'FOOD_MANUFACTURING': [
1645
+ [
1646
+ 'FOOD_PRODUCTION',
1647
+ [
1648
+ 'COOKING_TEMPERATURE',
1649
+ 'COOLING_TEMPERATURE',
1650
+ 'OTHER_PRODUCT_PROCESSING_ACTIVITY',
1651
+ ],
1652
+ ],
1653
+ [
1654
+ 'FOOD_WAREHOUSING',
1655
+ [
1656
+ 'COLD_STORAGE_TEMPERATURE',
1657
+ 'PRODUCT_TRANSFER',
1658
+ 'OTHER_PRODUCT_STORAGE_HANDLING_ACTIVITY',
1659
+ ],
1660
+ ],
1661
+ [
1662
+ 'FOOD_INSPECTION',
1663
+ [
1664
+ 'FOOD_INGREDIENT',
1665
+ 'METAL_DETECTOR_X_RAY',
1666
+ 'ALLERGEN',
1667
+ 'OTHER_FOOD_SAFETY_ACTIVITY',
1668
+ ],
1669
+ ],
1670
+ [
1671
+ 'SANITATION',
1672
+ [
1673
+ 'HYGIENE_PROCEDURE',
1674
+ 'SANITATION_PRACTICE',
1675
+ 'OTHER_HYGIENE_SANITATION_ACTIVITY',
1676
+ ],
1677
+ ],
1678
+ [
1679
+ 'FULFILLMENT',
1680
+ [
1681
+ 'PRE_SHIPMENT',
1682
+ 'PACKAGING_AND_LABEL',
1683
+ 'OTHER_PACKAGING_SHIPPING_ACTIVITY',
1684
+ ],
1685
+ ],
1686
+ [
1687
+ 'OPERATION',
1688
+ [
1689
+ 'OFFICE_NOTE',
1690
+ 'OPERATION_NOTE',
1691
+ ],
1692
+ ],
1693
+ [
1694
+ 'APP_INTERACTIONS',
1695
+ [
1696
+ 'CAMPAIGN_FORM_SUBMISSION',
1697
+ ],
1698
+ ],
1699
+ ],
1700
+ 'GROWER_NETWORK': [
1701
+ [
1702
+ 'WORKER_PRACTICE',
1703
+ [
1704
+ 'HYGIENE_PROCEDURE',
1705
+ 'SANITATION_PRACTICE',
1706
+ 'PERSONNEL_PRACTICE',
1707
+ ],
1708
+ ],
1709
+ [
1710
+ 'EQUIPMENT',
1711
+ [
1712
+ 'EQUIPMENT_MATERIAL',
1713
+ 'PACKAGING_STORAGE',
1714
+ ],
1715
+ ],
1716
+ [
1717
+ 'PRODUCTION_INPUT',
1718
+ [
1719
+ 'WATER_INPUT',
1720
+ 'CHEMICAL_INPUT',
1721
+ 'FERTILIZER_INPUT',
1722
+ ],
1723
+ ],
1724
+ [
1725
+ 'FIELD',
1726
+ [
1727
+ 'ENVIRONMENT',
1728
+ 'FIELD_CONDITION',
1729
+ 'ADJACENT_LAND',
1730
+ ],
1731
+ ],
1732
+ [
1733
+ 'OPERATION',
1734
+ [
1735
+ 'RECORDKEEPING',
1736
+ 'FACILITIES',
1737
+ 'OPERATION_NOTE',
1738
+ ],
1739
+ ],
1740
+ [
1741
+ 'APP_INTERACTIONS',
1742
+ [
1743
+ 'CAMPAIGN_FORM_SUBMISSION',
1744
+ ],
1745
+ ],
1746
+ ],
1747
+ };
1748
+
1749
+ export const LOG_TYPES_BY_OPERATION: Readonly<Record<string, readonly string[]>> = {
1750
+ 'ARABLE': [
1751
+ 'SEED',
1752
+ 'PLANTING',
1753
+ 'FIELD',
1754
+ 'HARVEST',
1755
+ 'POST_HARVEST',
1756
+ 'SALES',
1757
+ 'WATER',
1758
+ 'CLEANING_AND_SANITATION',
1759
+ 'OPERATION',
1760
+ 'APP_INTERACTIONS',
1761
+ ],
1762
+ 'CONSTRUCTION_INSPECTION_AGENCY': [
1763
+ 'SITE_INSPECTION',
1764
+ 'PROJECT',
1765
+ 'OPERATION',
1766
+ 'APP_INTERACTIONS',
1767
+ ],
1768
+ 'EMERGENCY_MEDICAL_SERVICES_AGENCY': [
1769
+ 'EMS_INCIDENT',
1770
+ 'OPERATION',
1771
+ 'APP_INTERACTIONS',
1772
+ ],
1773
+ 'FARMERS_MARKET': [
1774
+ 'MARKET_RECEIPT',
1775
+ 'OPERATION',
1776
+ 'APP_INTERACTIONS',
1777
+ ],
1778
+ 'FOOD_MANUFACTURING': [
1779
+ 'FOOD_PRODUCTION',
1780
+ 'FOOD_WAREHOUSING',
1781
+ 'FOOD_INSPECTION',
1782
+ 'SANITATION',
1783
+ 'FULFILLMENT',
1784
+ 'OPERATION',
1785
+ 'APP_INTERACTIONS',
1786
+ ],
1787
+ 'GROWER_NETWORK': [
1788
+ 'WORKER_PRACTICE',
1789
+ 'EQUIPMENT',
1790
+ 'PRODUCTION_INPUT',
1791
+ 'FIELD',
1792
+ 'OPERATION',
1793
+ 'APP_INTERACTIONS',
1794
+ ],
1795
+ };
1796
+
1797
+ export const LOG_GROUP_LABELS_BY_OPERATION: Readonly<Record<string, Readonly<Record<string, string>>>> = {
1798
+ 'ARABLE': {
1799
+ 'SEED': 'seed & supply purchases',
1800
+ 'PLANTING': 'seeding & transplanting',
1801
+ 'FIELD': 'field work',
1802
+ 'HARVEST': 'harvest activities',
1803
+ 'POST_HARVEST': 'post-harvest (storage, maintenance, packaging produce, cold storage)',
1804
+ 'SALES': 'sales orders',
1805
+ 'WATER': 'water testing activities',
1806
+ 'CLEANING_AND_SANITATION': 'cleaning and sanitation',
1807
+ 'OPERATION': 'operation notes',
1808
+ 'APP_INTERACTIONS': 'Interactions',
1809
+ },
1810
+ 'CHILDCARE': {},
1811
+ 'CONSTRUCTION': {},
1812
+ 'CONSTRUCTION_INSPECTION_AGENCY': {
1813
+ 'SITE_INSPECTION': 'observations and inspections at construction sites',
1814
+ 'PROJECT': 'project scheduling, scope, progress, bids, and billing',
1815
+ 'OPERATION': 'activities and notes not related to inspections or construction sites',
1816
+ 'APP_INTERACTIONS': 'Interactions',
1817
+ },
1818
+ 'EMERGENCY_MEDICAL_SERVICES_AGENCY': {
1819
+ 'EMS_INCIDENT': 'Emergency medical incident documentation, dispatch records, and follow-up activities.',
1820
+ 'OPERATION': 'Agency administration, employee notes, and general operations.',
1821
+ 'APP_INTERACTIONS': 'Interactions',
1822
+ },
1823
+ 'FARMERS_MARKET': {
1824
+ 'MARKET_RECEIPT': 'market credit receipts and coins redemption',
1825
+ 'OPERATION': 'Market operations',
1826
+ 'APP_INTERACTIONS': 'Interactions',
1827
+ },
1828
+ 'FOOD_MANUFACTURING': {
1829
+ 'FOOD_PRODUCTION': 'Production',
1830
+ 'FOOD_WAREHOUSING': 'Warehousing',
1831
+ 'FOOD_INSPECTION': 'Inspections',
1832
+ 'SANITATION': 'Sanitation',
1833
+ 'FULFILLMENT': 'Fulfillment',
1834
+ 'OPERATION': 'Operations',
1835
+ 'APP_INTERACTIONS': 'Interactions',
1836
+ },
1837
+ 'GROWER_NETWORK': {
1838
+ 'WORKER_PRACTICE': 'hygiene, sanitation, and worker practices',
1839
+ 'EQUIPMENT': 'equipments, materials, packaging, storage',
1840
+ 'PRODUCTION_INPUT': 'water, chemical, and fertilizer inputs',
1841
+ 'FIELD': 'field/land conditions, control measures and environmental risks',
1842
+ 'OPERATION': 'recordkeeping, documentation, facilities, and general operations',
1843
+ 'APP_INTERACTIONS': 'Interactions',
1844
+ },
1845
+ 'LIVESTOCK': {},
1846
+ 'RESTAURANT': {},
1847
+ 'UNKNOWN': {},
1848
+ 'UTILITIES': {},
1849
+ 'VENDOR': {},
1850
+ 'WHOLESALE_FOOD': {},
1851
+ };
1852
+
1853
+ export const LOG_ACTIVITY_TEXTS_BY_OPERATION: Readonly<Record<string, Readonly<Record<string, string>>>> = {
1854
+ 'ARABLE': {
1855
+ 'SEED_PURCHASE_INFO': 'seed purchase',
1856
+ 'CAMPAIGN_FORM_SUBMISSION': 'Form submission',
1857
+ 'OTHER_SUPPLY_PURCHASE_ACTIVITY': 'other supply purchase',
1858
+ 'SEEDING': 'seeding crops',
1859
+ 'DIRECT_SEEDING': 'direct seeding crops',
1860
+ 'GREENHOUSE_SEEDING': 'greenhouse seeding crops',
1861
+ 'TRANSPLANTING': 'transplanting crops',
1862
+ 'SEED_COMPLIANCE_NOTE': 'seeding compliance notes',
1863
+ 'OTHER_TRANSPLANT_ACTIVITY': 'other seeding or transplanting activities',
1864
+ 'PREPARE_SOIL': 'soil, beds preparation',
1865
+ 'IRRIGATION': 'irrigation management',
1866
+ 'FERTILIZATION_COMPOST': 'fertilization, compost application',
1867
+ 'PROTECT_CROP': 'hand pulling weed, hoeing, and cultivation work',
1868
+ 'MONITOR_CROP': 'crop monitoring',
1869
+ 'PRUNING': 'pruning',
1870
+ 'STRUCTURE_MAINTENANCE': 'trellising, structure maintenance',
1871
+ 'PREPARE_HARVEST': 'preparing crops for harvest',
1872
+ 'OTHER_FIELD_ACTIVITY': 'other field activities or farm operation notes',
1873
+ 'HARVEST_CROP': 'harvesting crops',
1874
+ 'HARVEST_COUNT': 'counting, weighing harvested crops',
1875
+ 'SORT_GRADE': 'sorting, grading crops',
1876
+ 'YIELD_LOSS_ESTIMATE': 'estimating yield or loss',
1877
+ 'OTHER_HARVEST_ACTIVITY': 'other harvest activities',
1878
+ 'POST_HARVEST_HANDLING': 'washing, drying, trimming, sorting, or grading produce',
1879
+ 'POST_HARVEST_PACKAGING': 'packaging, cooling, or moving produce to storage',
1880
+ 'COLD_STORAGE_TEMPERATURE': 'checking or changing temperature (cold storage)',
1881
+ 'OTHER_POST_HARVEST_ACTIVITY': 'other post-harvest activities including storage and maintenance',
1882
+ 'SALE_PRODUCE_ORDER': 'sales order (produce)',
1883
+ 'OTHER_SALE_ORDER': 'sales order (other)',
1884
+ 'WATER_TESTING': 'checking chlorine levels in water',
1885
+ 'OTHER_WATER_TESTING_ACTIVITY': 'other water testing related activities',
1886
+ 'EQUIPMENT_MATERIAL': 'harvest equipments/tools/materials cleaning',
1887
+ 'SANITATION_PRACTICE': 'sanitation cleaning, practices',
1888
+ 'HYGIENE_PROCEDURE': 'worker hygiene procedures',
1889
+ 'EMPLOYEE_NOTE': 'notes about an employee',
1890
+ 'OPERATION_NOTE': 'general operation notes',
1891
+ },
1892
+ 'CHILDCARE': {},
1893
+ 'CONSTRUCTION': {},
1894
+ 'CONSTRUCTION_INSPECTION_AGENCY': {
1895
+ 'MATERIAL': 'materials used in construction such as concrete, masonry, steel, etc',
1896
+ 'CAMPAIGN_FORM_SUBMISSION': 'Form submission',
1897
+ 'MATERIAL_TESTING': 'observing, evaluating, and recording the process of how materials are tested',
1898
+ 'BEHAVIOR_ISSUE': 'worker or contractor conduct, unsafe practices, and behavior issues on site',
1899
+ 'OTHER_INSPECTION_ACTIVITY': 'other inspection activities or site observations',
1900
+ 'PROJECT_SCHEDULING': 'project schedules, timelines, and milestone changes',
1901
+ 'PROJECT_SCOPE': 'project scope, requirements, and change orders',
1902
+ 'PROJECT_PROGRESS': 'project progress updates and completed work',
1903
+ 'PROJECT_BID_PROPOSAL': 'sent, received, or revised project bids and proposals',
1904
+ 'PROJECT_BILLING_INVOICE': 'sent, received, or revised project bills and invoices',
1905
+ 'OTHER_PROJECT_ACTIVITY': 'other project activities or notes',
1906
+ 'RECORDKEEPING': 'document control, record availability, and accuracy',
1907
+ 'OFFICE_NOTE': 'office related notes',
1908
+ 'OPERATION_NOTE': 'general operation notes',
1909
+ },
1910
+ 'EMERGENCY_MEDICAL_SERVICES_AGENCY': {
1911
+ 'EMS_INCIDENT_CHART':
1912
+ 'Submitted patient care report (emergency incident chart) containing incident status, questions, and who is responsible for resolving them.',
1913
+ 'CAMPAIGN_FORM_SUBMISSION': 'Form submission',
1914
+ 'EMS_CALL_OR_COMPUTER_AIDED_DISPATCH': 'CAD call sheet containing the dispatched incident.',
1915
+ 'OTHER_EMS_INCIDENT_ACTIVITY': 'Other emergency medical incident activities, documentation, or follow-up notes.',
1916
+ 'EMPLOYEE_NOTE': 'Notes about an employee or medic.',
1917
+ 'OPERATION_NOTE': 'General operation notes.',
1918
+ },
1919
+ 'FARMERS_MARKET': {
1920
+ 'MARKET_CREDIT_RECEIPT': 'receipts for market credits, coins, or voucher redemption',
1921
+ 'CAMPAIGN_FORM_SUBMISSION': 'Form submission',
1922
+ 'MARKET_ATTENDANCE': 'attendance for vendor',
1923
+ 'MARKET_LOAD_LIST': 'vendor load list',
1924
+ 'OPERATION_NOTE': 'general operation notes',
1925
+ },
1926
+ 'FOOD_MANUFACTURING': {
1927
+ 'COOKING_TEMPERATURE': 'Record cooking with top, middle, and bottom rack temperatures, units, product, and measurement times.',
1928
+ 'CAMPAIGN_FORM_SUBMISSION': 'Form submission',
1929
+ 'COOLING_TEMPERATURE': 'Record cooling with top, middle, and bottom rack temperatures, units, product, and measurement times.',
1930
+ 'OTHER_PRODUCT_PROCESSING_ACTIVITY':
1931
+ 'Record other product processing, such as mixing, thawing, holding, or freezing. Use the dedicated tool for cooking and cooling.',
1932
+ 'COLD_STORAGE_TEMPERATURE': 'Record cooler or freezer air temperatures, excursions, and actions taken.',
1933
+ 'PRODUCT_TRANSFER': 'Record internal product transfers between rooms, storage areas, containers, or production lines.',
1934
+ 'OTHER_PRODUCT_STORAGE_HANDLING_ACTIVITY': 'Record other internal product storage and handling observations or actions.',
1935
+ 'FOOD_INGREDIENT': 'Inspect ingredients for supplier, lot, condition, and acceptance or rejection.',
1936
+ 'METAL_DETECTOR_X_RAY': 'Record detection equipment checks, test pieces, detection and rejection results, and failures.',
1937
+ 'ALLERGEN': 'Record allergen handling, cross-contact controls, product changeovers, and verification.',
1938
+ 'OTHER_FOOD_SAFETY_ACTIVITY':
1939
+ 'Other food safety or quality checks, sampling, verification, product holds, and corrective actions.',
1940
+ 'HYGIENE_PROCEDURE': 'Record personnel hygiene practices, handwashing, protective clothing, and related observations.',
1941
+ 'SANITATION_PRACTICE': 'Record equipment or area cleaning, methods, chemicals, sanitary conditions, and verification.',
1942
+ 'OTHER_HYGIENE_SANITATION_ACTIVITY': 'Other hygiene or sanitation activities, observations, and follow-up.',
1943
+ 'PRE_SHIPMENT': 'Review lot records, unresolved issues, shipment readiness, trailer condition, and release sign-off.',
1944
+ 'PACKAGING_AND_LABEL': 'Check packaging, allergen declarations, lot/date codes, and seal integrity.',
1945
+ 'OTHER_PACKAGING_SHIPPING_ACTIVITY': 'Other packaging, shipping, loading, or dispatch activities.',
1946
+ 'OFFICE_NOTE': 'Office-related administrative notes.',
1947
+ 'OPERATION_NOTE': 'General operation notes.',
1948
+ },
1949
+ 'GROWER_NETWORK': {
1950
+ 'HYGIENE_PROCEDURE': 'worker hygiene procedures',
1951
+ 'CAMPAIGN_FORM_SUBMISSION': 'Form submission',
1952
+ 'SANITATION_PRACTICE': 'sanitation conditions and cleanliness',
1953
+ 'PERSONNEL_PRACTICE': 'PPE compliance, worker practices, training, illness',
1954
+ 'EQUIPMENT_MATERIAL': 'production and harvest equipments/tools/materials',
1955
+ 'PACKAGING_STORAGE': 'packaging and storage of produce',
1956
+ 'WATER_INPUT': 'water source, quality, treatment, testing, and application',
1957
+ 'CHEMICAL_INPUT': 'chemical inputs handling and application',
1958
+ 'FERTILIZER_INPUT': 'fertilizer inputs handling and application',
1959
+ 'ENVIRONMENT': 'environmental exposure and wildlife activity',
1960
+ 'FIELD_CONDITION': 'field conditions, flood zones, erosion',
1961
+ 'ADJACENT_LAND': 'adjacent land observations, risks',
1962
+ 'RECORDKEEPING': 'document control, record availability, and accuracy',
1963
+ 'FACILITIES': 'facilities, physical infrastructure, and maintenance',
1964
+ 'OPERATION_NOTE': 'general operation notes',
1965
+ },
1966
+ 'LIVESTOCK': {},
1967
+ 'RESTAURANT': {},
1968
+ 'UNKNOWN': {},
1969
+ 'UTILITIES': {},
1970
+ 'VENDOR': {},
1971
+ 'WHOLESALE_FOOD': {},
1972
+ };
1973
+
1974
+ export const LOG_ANY_TYPE_ENUMS = [
1975
+ 'SEED',
1976
+ 'PLANTING',
1977
+ 'FIELD',
1978
+ 'HARVEST',
1979
+ 'POST_HARVEST',
1980
+ 'SALES',
1981
+ 'WATER',
1982
+ 'CLEANING_AND_SANITATION',
1983
+ 'OPERATION',
1984
+ 'APP_INTERACTIONS',
1985
+ 'SITE_INSPECTION',
1986
+ 'PROJECT',
1987
+ 'EMS_INCIDENT',
1988
+ 'MARKET_RECEIPT',
1989
+ 'FOOD_PRODUCTION',
1990
+ 'FOOD_WAREHOUSING',
1991
+ 'FOOD_INSPECTION',
1992
+ 'SANITATION',
1993
+ 'FULFILLMENT',
1994
+ 'WORKER_PRACTICE',
1995
+ 'EQUIPMENT',
1996
+ 'PRODUCTION_INPUT',
1997
+ ] satisfies [string, ...string[]];
1998
+
1999
+ export const LOG_ANY_ACTIVITY_ENUMS = [
2000
+ 'SEED_PURCHASE_INFO',
2001
+ 'CAMPAIGN_FORM_SUBMISSION',
2002
+ 'OTHER_SUPPLY_PURCHASE_ACTIVITY',
2003
+ 'SEEDING',
2004
+ 'DIRECT_SEEDING',
2005
+ 'GREENHOUSE_SEEDING',
2006
+ 'TRANSPLANTING',
2007
+ 'SEED_COMPLIANCE_NOTE',
2008
+ 'OTHER_TRANSPLANT_ACTIVITY',
2009
+ 'PREPARE_SOIL',
2010
+ 'IRRIGATION',
2011
+ 'FERTILIZATION_COMPOST',
2012
+ 'PROTECT_CROP',
2013
+ 'MONITOR_CROP',
2014
+ 'PRUNING',
2015
+ 'STRUCTURE_MAINTENANCE',
2016
+ 'PREPARE_HARVEST',
2017
+ 'OTHER_FIELD_ACTIVITY',
2018
+ 'HARVEST_CROP',
2019
+ 'HARVEST_COUNT',
2020
+ 'SORT_GRADE',
2021
+ 'YIELD_LOSS_ESTIMATE',
2022
+ 'OTHER_HARVEST_ACTIVITY',
2023
+ 'POST_HARVEST_HANDLING',
2024
+ 'POST_HARVEST_PACKAGING',
2025
+ 'COLD_STORAGE_TEMPERATURE',
2026
+ 'OTHER_POST_HARVEST_ACTIVITY',
2027
+ 'SALE_PRODUCE_ORDER',
2028
+ 'OTHER_SALE_ORDER',
2029
+ 'WATER_TESTING',
2030
+ 'OTHER_WATER_TESTING_ACTIVITY',
2031
+ 'EQUIPMENT_MATERIAL',
2032
+ 'SANITATION_PRACTICE',
2033
+ 'HYGIENE_PROCEDURE',
2034
+ 'EMPLOYEE_NOTE',
2035
+ 'OPERATION_NOTE',
2036
+ 'MATERIAL',
2037
+ 'MATERIAL_TESTING',
2038
+ 'BEHAVIOR_ISSUE',
2039
+ 'OTHER_INSPECTION_ACTIVITY',
2040
+ 'PROJECT_SCHEDULING',
2041
+ 'PROJECT_SCOPE',
2042
+ 'PROJECT_PROGRESS',
2043
+ 'PROJECT_BID_PROPOSAL',
2044
+ 'PROJECT_BILLING_INVOICE',
2045
+ 'OTHER_PROJECT_ACTIVITY',
2046
+ 'RECORDKEEPING',
2047
+ 'OFFICE_NOTE',
2048
+ 'EMS_INCIDENT_CHART',
2049
+ 'EMS_CALL_OR_COMPUTER_AIDED_DISPATCH',
2050
+ 'OTHER_EMS_INCIDENT_ACTIVITY',
2051
+ 'MARKET_CREDIT_RECEIPT',
2052
+ 'MARKET_ATTENDANCE',
2053
+ 'MARKET_LOAD_LIST',
2054
+ 'COOKING_TEMPERATURE',
2055
+ 'COOLING_TEMPERATURE',
2056
+ 'OTHER_PRODUCT_PROCESSING_ACTIVITY',
2057
+ 'PRODUCT_TRANSFER',
2058
+ 'OTHER_PRODUCT_STORAGE_HANDLING_ACTIVITY',
2059
+ 'FOOD_INGREDIENT',
2060
+ 'METAL_DETECTOR_X_RAY',
2061
+ 'ALLERGEN',
2062
+ 'OTHER_FOOD_SAFETY_ACTIVITY',
2063
+ 'OTHER_HYGIENE_SANITATION_ACTIVITY',
2064
+ 'PRE_SHIPMENT',
2065
+ 'PACKAGING_AND_LABEL',
2066
+ 'OTHER_PACKAGING_SHIPPING_ACTIVITY',
2067
+ 'PERSONNEL_PRACTICE',
2068
+ 'PACKAGING_STORAGE',
2069
+ 'WATER_INPUT',
2070
+ 'CHEMICAL_INPUT',
2071
+ 'FERTILIZER_INPUT',
2072
+ 'ENVIRONMENT',
2073
+ 'FIELD_CONDITION',
2074
+ 'ADJACENT_LAND',
2075
+ 'FACILITIES',
2076
+ ] satisfies [string, ...string[]];
2077
+
2078
+ export const PURCHASE_ACTIVITIES: readonly string[] = [
2079
+ 'SEED_PURCHASE_INFO',
2080
+ 'OTHER_SUPPLY_PURCHASE_ACTIVITY',
2081
+ ];
2082
+
2083
+ export const SALE_ACTIVITIES: readonly string[] = [
2084
+ 'SALE_PRODUCE_ORDER',
2085
+ 'OTHER_SALE_ORDER',
2086
+ 'MARKET_CREDIT_RECEIPT',
2087
+ ];
2088
+
2089
+ export const ALL_TEXT_TO_TYPES: Readonly<Record<string, string>> = {
2090
+ 'seed & supply purchases': 'SEED',
2091
+ 'seeding & transplanting': 'PLANTING',
2092
+ 'field work': 'FIELD',
2093
+ 'harvest activities': 'HARVEST',
2094
+ 'post-harvest (storage, maintenance, packaging produce, cold storage)': 'POST_HARVEST',
2095
+ 'sales orders': 'SALES',
2096
+ 'water testing activities': 'WATER',
2097
+ 'cleaning and sanitation': 'CLEANING_AND_SANITATION',
2098
+ 'operation notes': 'OPERATION',
2099
+ 'Interactions': 'APP_INTERACTIONS',
2100
+ 'observations and inspections at construction sites': 'SITE_INSPECTION',
2101
+ 'project scheduling, scope, progress, bids, and billing': 'PROJECT',
2102
+ 'activities and notes not related to inspections or construction sites': 'OPERATION',
2103
+ 'Emergency medical incident documentation, dispatch records, and follow-up activities.': 'EMS_INCIDENT',
2104
+ 'Agency administration, employee notes, and general operations.': 'OPERATION',
2105
+ 'market credit receipts and coins redemption': 'MARKET_RECEIPT',
2106
+ 'Market operations': 'OPERATION',
2107
+ 'Production': 'FOOD_PRODUCTION',
2108
+ 'Warehousing': 'FOOD_WAREHOUSING',
2109
+ 'Inspections': 'FOOD_INSPECTION',
2110
+ 'Sanitation': 'SANITATION',
2111
+ 'Fulfillment': 'FULFILLMENT',
2112
+ 'Operations': 'OPERATION',
2113
+ 'hygiene, sanitation, and worker practices': 'WORKER_PRACTICE',
2114
+ 'equipments, materials, packaging, storage': 'EQUIPMENT',
2115
+ 'water, chemical, and fertilizer inputs': 'PRODUCTION_INPUT',
2116
+ 'field/land conditions, control measures and environmental risks': 'FIELD',
2117
+ 'recordkeeping, documentation, facilities, and general operations': 'OPERATION',
2118
+ };
2119
+
2120
+ export const AGENT_TEXT_TO_ACTIVITIES: Readonly<Record<string, string>> = {
2121
+ 'seed purchase': 'SEED_PURCHASE_INFO',
2122
+ 'Form submission': 'CAMPAIGN_FORM_SUBMISSION',
2123
+ 'other supply purchase': 'OTHER_SUPPLY_PURCHASE_ACTIVITY',
2124
+ 'seeding crops': 'SEEDING',
2125
+ 'direct seeding crops': 'DIRECT_SEEDING',
2126
+ 'greenhouse seeding crops': 'GREENHOUSE_SEEDING',
2127
+ 'transplanting crops': 'TRANSPLANTING',
2128
+ 'seeding compliance notes': 'SEED_COMPLIANCE_NOTE',
2129
+ 'other seeding or transplanting activities': 'OTHER_TRANSPLANT_ACTIVITY',
2130
+ 'soil, beds preparation': 'PREPARE_SOIL',
2131
+ 'irrigation management': 'IRRIGATION',
2132
+ 'fertilization, compost application': 'FERTILIZATION_COMPOST',
2133
+ 'hand pulling weed, hoeing, and cultivation work': 'PROTECT_CROP',
2134
+ 'crop monitoring': 'MONITOR_CROP',
2135
+ 'pruning': 'PRUNING',
2136
+ 'trellising, structure maintenance': 'STRUCTURE_MAINTENANCE',
2137
+ 'preparing crops for harvest': 'PREPARE_HARVEST',
2138
+ 'other field activities or farm operation notes': 'OTHER_FIELD_ACTIVITY',
2139
+ 'harvesting crops': 'HARVEST_CROP',
2140
+ 'counting, weighing harvested crops': 'HARVEST_COUNT',
2141
+ 'sorting, grading crops': 'SORT_GRADE',
2142
+ 'estimating yield or loss': 'YIELD_LOSS_ESTIMATE',
2143
+ 'other harvest activities': 'OTHER_HARVEST_ACTIVITY',
2144
+ 'washing, drying, trimming, sorting, or grading produce': 'POST_HARVEST_HANDLING',
2145
+ 'packaging, cooling, or moving produce to storage': 'POST_HARVEST_PACKAGING',
2146
+ 'checking or changing temperature (cold storage)': 'COLD_STORAGE_TEMPERATURE',
2147
+ 'other post-harvest activities including storage and maintenance': 'OTHER_POST_HARVEST_ACTIVITY',
2148
+ 'sales order (produce)': 'SALE_PRODUCE_ORDER',
2149
+ 'sales order (other)': 'OTHER_SALE_ORDER',
2150
+ 'checking chlorine levels in water': 'WATER_TESTING',
2151
+ 'other water testing related activities': 'OTHER_WATER_TESTING_ACTIVITY',
2152
+ 'harvest equipments/tools/materials cleaning': 'EQUIPMENT_MATERIAL',
2153
+ 'sanitation cleaning, practices': 'SANITATION_PRACTICE',
2154
+ 'worker hygiene procedures': 'HYGIENE_PROCEDURE',
2155
+ 'notes about an employee': 'EMPLOYEE_NOTE',
2156
+ 'general operation notes': 'OPERATION_NOTE',
2157
+ 'materials used in construction such as concrete, masonry, steel, etc': 'MATERIAL',
2158
+ 'observing, evaluating, and recording the process of how materials are tested': 'MATERIAL_TESTING',
2159
+ 'worker or contractor conduct, unsafe practices, and behavior issues on site': 'BEHAVIOR_ISSUE',
2160
+ 'other inspection activities or site observations': 'OTHER_INSPECTION_ACTIVITY',
2161
+ 'project schedules, timelines, and milestone changes': 'PROJECT_SCHEDULING',
2162
+ 'project scope, requirements, and change orders': 'PROJECT_SCOPE',
2163
+ 'project progress updates and completed work': 'PROJECT_PROGRESS',
2164
+ 'sent, received, or revised project bids and proposals': 'PROJECT_BID_PROPOSAL',
2165
+ 'sent, received, or revised project bills and invoices': 'PROJECT_BILLING_INVOICE',
2166
+ 'other project activities or notes': 'OTHER_PROJECT_ACTIVITY',
2167
+ 'document control, record availability, and accuracy': 'RECORDKEEPING',
2168
+ 'office related notes': 'OFFICE_NOTE',
2169
+ 'Submitted patient care report (emergency incident chart) containing incident status, questions, and who is responsible for resolving them.':
2170
+ 'EMS_INCIDENT_CHART',
2171
+ 'CAD call sheet containing the dispatched incident.': 'EMS_CALL_OR_COMPUTER_AIDED_DISPATCH',
2172
+ 'Other emergency medical incident activities, documentation, or follow-up notes.': 'OTHER_EMS_INCIDENT_ACTIVITY',
2173
+ 'Notes about an employee or medic.': 'EMPLOYEE_NOTE',
2174
+ 'General operation notes.': 'OPERATION_NOTE',
2175
+ 'receipts for market credits, coins, or voucher redemption': 'MARKET_CREDIT_RECEIPT',
2176
+ 'attendance for vendor': 'MARKET_ATTENDANCE',
2177
+ 'vendor load list': 'MARKET_LOAD_LIST',
2178
+ 'Record cooking with top, middle, and bottom rack temperatures, units, product, and measurement times.': 'COOKING_TEMPERATURE',
2179
+ 'Record cooling with top, middle, and bottom rack temperatures, units, product, and measurement times.': 'COOLING_TEMPERATURE',
2180
+ 'Record other product processing, such as mixing, thawing, holding, or freezing. Use the dedicated tool for cooking and cooling.':
2181
+ 'OTHER_PRODUCT_PROCESSING_ACTIVITY',
2182
+ 'Record cooler or freezer air temperatures, excursions, and actions taken.': 'COLD_STORAGE_TEMPERATURE',
2183
+ 'Record internal product transfers between rooms, storage areas, containers, or production lines.': 'PRODUCT_TRANSFER',
2184
+ 'Record other internal product storage and handling observations or actions.': 'OTHER_PRODUCT_STORAGE_HANDLING_ACTIVITY',
2185
+ 'Inspect ingredients for supplier, lot, condition, and acceptance or rejection.': 'FOOD_INGREDIENT',
2186
+ 'Record detection equipment checks, test pieces, detection and rejection results, and failures.': 'METAL_DETECTOR_X_RAY',
2187
+ 'Record allergen handling, cross-contact controls, product changeovers, and verification.': 'ALLERGEN',
2188
+ 'Other food safety or quality checks, sampling, verification, product holds, and corrective actions.': 'OTHER_FOOD_SAFETY_ACTIVITY',
2189
+ 'Record personnel hygiene practices, handwashing, protective clothing, and related observations.': 'HYGIENE_PROCEDURE',
2190
+ 'Record equipment or area cleaning, methods, chemicals, sanitary conditions, and verification.': 'SANITATION_PRACTICE',
2191
+ 'Other hygiene or sanitation activities, observations, and follow-up.': 'OTHER_HYGIENE_SANITATION_ACTIVITY',
2192
+ 'Review lot records, unresolved issues, shipment readiness, trailer condition, and release sign-off.': 'PRE_SHIPMENT',
2193
+ 'Check packaging, allergen declarations, lot/date codes, and seal integrity.': 'PACKAGING_AND_LABEL',
2194
+ 'Other packaging, shipping, loading, or dispatch activities.': 'OTHER_PACKAGING_SHIPPING_ACTIVITY',
2195
+ 'Office-related administrative notes.': 'OFFICE_NOTE',
2196
+ 'sanitation conditions and cleanliness': 'SANITATION_PRACTICE',
2197
+ 'PPE compliance, worker practices, training, illness': 'PERSONNEL_PRACTICE',
2198
+ 'production and harvest equipments/tools/materials': 'EQUIPMENT_MATERIAL',
2199
+ 'packaging and storage of produce': 'PACKAGING_STORAGE',
2200
+ 'water source, quality, treatment, testing, and application': 'WATER_INPUT',
2201
+ 'chemical inputs handling and application': 'CHEMICAL_INPUT',
2202
+ 'fertilizer inputs handling and application': 'FERTILIZER_INPUT',
2203
+ 'environmental exposure and wildlife activity': 'ENVIRONMENT',
2204
+ 'field conditions, flood zones, erosion': 'FIELD_CONDITION',
2205
+ 'adjacent land observations, risks': 'ADJACENT_LAND',
2206
+ 'facilities, physical infrastructure, and maintenance': 'FACILITIES',
2207
+ };