@jsb188/mday 1.1.11 → 1.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (210) hide show
  1. package/package.json +58 -23
  2. package/src/constants/agentMemory.ts +14 -45
  3. package/src/constants/agentNote.ts +212 -0
  4. package/src/constants/aiChat.ts +5 -0
  5. package/src/constants/billing.ts +126 -0
  6. package/src/constants/campaign.ts +156 -47
  7. package/src/constants/contact.ts +72 -0
  8. package/src/constants/csvExport.ts +133 -0
  9. package/src/constants/dataTable.ts +12 -38
  10. package/src/constants/dataTableFieldTypes.generated.ts +3 -7
  11. package/src/constants/docAccess.ts +3 -2
  12. package/src/constants/dt.ts +234 -0
  13. package/src/constants/email.ts +114 -12
  14. package/src/constants/fieldDoc.ts +74 -4
  15. package/src/constants/graphqlReactivity.ts +108 -25
  16. package/src/constants/log.ts +9 -0
  17. package/src/constants/logDisplay/README.md +88 -0
  18. package/src/constants/logDisplay/defaults.ts +39 -0
  19. package/src/constants/logDisplay/index.ts +27 -0
  20. package/src/constants/logDisplay/operations/arable.ts +16 -0
  21. package/src/constants/logDisplay/operations/farmersMarket.ts +10 -0
  22. package/src/constants/logDisplay/operations/foodManufacturing.ts +13 -0
  23. package/src/constants/logDisplay/shared/accounting.ts +13 -0
  24. package/src/constants/logDisplay/shared/interactions.ts +13 -0
  25. package/src/constants/logDisplay/shared/rackTemperatures.ts +42 -0
  26. package/src/constants/logTaxonomy.generated.ts +1834 -730
  27. package/src/constants/organization.ts +13 -14
  28. package/src/constants/qrCode.ts +30 -0
  29. package/src/constants/sheet.ts +65 -101
  30. package/src/constants/sms.ts +18 -0
  31. package/src/constants/storage.ts +33 -9
  32. package/src/constants/usage.ts +3 -0
  33. package/src/constants/workflowSteps.ts +60 -0
  34. package/src/schemas/editLogEntry.ts +106 -283
  35. package/src/schemas/inboundContact.ts +5 -5
  36. package/src/types/agentMemory.d.ts +38 -14
  37. package/src/types/agentNote.d.ts +443 -0
  38. package/src/types/billing.d.ts +537 -0
  39. package/src/types/campaign.d.ts +1043 -193
  40. package/src/types/contact.d.ts +15 -0
  41. package/src/types/csvExport.d.ts +213 -0
  42. package/src/types/dataAnalysis.d.ts +44 -0
  43. package/src/types/dataTable.d.ts +102 -309
  44. package/src/types/definitionElement.d.ts +35 -0
  45. package/src/types/dt.d.ts +257 -0
  46. package/src/types/email.d.ts +144 -55
  47. package/src/types/emailReplyReport.d.ts +76 -0
  48. package/src/types/fieldDoc.d.ts +579 -150
  49. package/src/types/fieldDocContract.d.ts +90 -0
  50. package/src/types/inboundContact.d.ts +8 -0
  51. package/src/types/log.d.ts +94 -3
  52. package/src/types/logDisplay.types.ts +85 -0
  53. package/src/types/organization.d.ts +8 -3
  54. package/src/types/qrCode.d.ts +96 -0
  55. package/src/types/richText.d.ts +81 -0
  56. package/src/types/sheet.d.ts +180 -463
  57. package/src/types/sms.d.ts +38 -0
  58. package/src/types/storage.d.ts +266 -27
  59. package/src/types/workflow.d.ts +196 -66
  60. package/src/utils/agentMemory.ts +15 -0
  61. package/src/utils/agentNote.ts +850 -0
  62. package/src/utils/aiChat.ts +31 -14
  63. package/src/utils/aiChatWork.ts +64 -0
  64. package/src/utils/billing.ts +37 -0
  65. package/src/utils/campaign.ts +642 -209
  66. package/src/utils/campaignAI.ts +72 -0
  67. package/src/utils/campaignAccess.ts +239 -0
  68. package/src/utils/campaignEmail.ts +601 -0
  69. package/src/utils/campaignEmailCompiler.ts +372 -0
  70. package/src/utils/campaignEmailImages.ts +60 -0
  71. package/src/utils/campaignEmailStyles.ts +544 -0
  72. package/src/utils/campaignLifecycle.ts +104 -0
  73. package/src/utils/campaignPreview.ts +285 -0
  74. package/src/utils/contact.ts +50 -0
  75. package/src/utils/csvExport.ts +19 -0
  76. package/src/utils/dataTable.ts +18 -556
  77. package/src/utils/dataTableFieldTypeRegistry.ts +1 -0
  78. package/src/utils/dataTableRelativeDate.ts +447 -0
  79. package/src/utils/definitionElement.ts +84 -0
  80. package/src/utils/email.ts +208 -1
  81. package/src/utils/emailReplyReport.test.ts +187 -0
  82. package/src/utils/emailReplyReport.ts +143 -0
  83. package/src/utils/fieldDoc.ts +81 -37
  84. package/src/utils/fieldDocAnswers.ts +128 -0
  85. package/src/utils/fieldDocDefaults.ts +36 -0
  86. package/src/utils/fieldDocProgram.ts +36 -0
  87. package/src/utils/fieldDocSummary.ts +30 -0
  88. package/src/utils/log.ts +232 -141
  89. package/src/utils/logDisplay.helpers.ts +177 -0
  90. package/src/utils/logDisplay.ts +87 -0
  91. package/src/utils/logStoreRead.ts +9 -13
  92. package/src/utils/logTaxonomy.helpers.ts +17 -0
  93. package/src/utils/logTaxonomyDisplay.ts +80 -124
  94. package/src/utils/noteDoc.ts +66 -284
  95. package/src/utils/organization.ts +117 -283
  96. package/src/utils/qrCode.helpers.ts +189 -0
  97. package/src/utils/qrCode.test.ts +519 -0
  98. package/src/utils/qrCode.ts +273 -0
  99. package/src/utils/richTextHTML.ts +385 -0
  100. package/src/utils/sheet.ts +123 -4834
  101. package/src/utils/sheetAxisMove.ts +77 -291
  102. package/src/utils/sheetBootstrap.ts +771 -1138
  103. package/src/utils/sheetCellLiteral.ts +101 -0
  104. package/src/utils/sheetCommand.ts +23 -88
  105. package/src/utils/sheetDesign.ts +705 -0
  106. package/src/utils/sheetExport.ts +17 -69
  107. package/src/utils/sheetFeatureReference.ts +183 -0
  108. package/src/utils/sheetFormulaArgs.ts +168 -0
  109. package/src/utils/sheetFormulaCompile.ts +475 -0
  110. package/src/utils/sheetFormulaConditionalAggregate.ts +254 -0
  111. package/src/utils/sheetFormulaCriteria.ts +656 -0
  112. package/src/utils/sheetFormulaDate.ts +444 -0
  113. package/src/utils/sheetFormulaEvaluation.ts +388 -403
  114. package/src/utils/sheetFormulaEvaluator.ts +589 -444
  115. package/src/utils/sheetFormulaFunctionHandlers.ts +403 -0
  116. package/src/utils/sheetFormulaLogical.ts +116 -0
  117. package/src/utils/sheetFormulaLookup.ts +488 -0
  118. package/src/utils/sheetFormulaMath.ts +48 -0
  119. package/src/utils/sheetFormulaParser.ts +729 -0
  120. package/src/utils/sheetFormulaRange.ts +330 -0
  121. package/src/utils/sheetFormulaReference.ts +703 -0
  122. package/src/utils/sheetFormulaReferenceAggregates.ts +313 -0
  123. package/src/utils/sheetFormulaReferenceDates.ts +237 -0
  124. package/src/utils/sheetFormulaReferenceLogical.ts +330 -0
  125. package/src/utils/sheetFormulaReferenceLookup.ts +341 -0
  126. package/src/utils/sheetFormulaReferenceMath.ts +95 -0
  127. package/src/utils/sheetFormulaReferenceRewrite.ts +220 -0
  128. package/src/utils/sheetFormulaReferenceText.ts +462 -0
  129. package/src/utils/sheetFormulaSyntax.ts +1027 -0
  130. package/src/utils/sheetFormulaText.ts +430 -0
  131. package/src/utils/sheetJournal.ts +140 -18
  132. package/src/utils/sheetNumberFormat.ts +68 -267
  133. package/src/utils/sheetPreview.ts +68 -0
  134. package/src/utils/sheetSequence.ts +13 -43
  135. package/src/utils/sheetSnapshot.ts +176 -429
  136. package/src/utils/sheetStructureEdit.ts +537 -907
  137. package/src/utils/sheetStructureReferences.ts +389 -0
  138. package/src/utils/storage.ts +49 -3
  139. package/src/utils/time.ts +12 -0
  140. package/src/utils/workflow.ts +199 -73
  141. package/src/utils/workflowLogFingerprint.ts +302 -0
  142. package/src/utils/workflowLogRevisionSnapshot.ts +424 -0
  143. package/src/utils/workflowProgress.ts +280 -0
  144. package/src/utils/workflowTriggers.ts +61 -0
  145. package/tests/agentNote.test.ts +395 -0
  146. package/tests/campaignAI.test.ts +119 -0
  147. package/tests/campaignAccess.test.ts +239 -0
  148. package/tests/campaignEmail.test.ts +441 -0
  149. package/tests/campaignLifecycle.test.ts +134 -0
  150. package/tests/campaignPublication.test.ts +309 -0
  151. package/tests/dataTableFieldTypeRegistry.test.ts +2 -1
  152. package/tests/dataTableRelativeDate.test.ts +412 -0
  153. package/tests/email.test.ts +39 -0
  154. package/tests/fieldDocProgram.test.ts +114 -0
  155. package/tests/logDisplay.fixtures.ts +67 -0
  156. package/tests/logDisplay.test.ts +227 -0
  157. package/tests/noteDoc.test.ts +37 -192
  158. package/tests/richTextHTML.test.ts +185 -0
  159. package/tests/sheetAxisMove.test.ts +49 -40
  160. package/tests/sheetBootstrap.test.ts +1967 -0
  161. package/tests/sheetFeatureReference.test.ts +22 -0
  162. package/tests/sheetFormulaCriteria.test.ts +269 -0
  163. package/tests/sheetFormulaEvaluator.test.ts +93 -200
  164. package/tests/sheetFormulaFunctions.test.ts +538 -0
  165. package/tests/sheetFormulaLanguage.test.ts +361 -0
  166. package/tests/sheetFormulaParity.fixtures.ts +872 -0
  167. package/tests/sheetFormulaParity.test.ts +188 -0
  168. package/tests/sheetFormulaRange.test.ts +167 -0
  169. package/tests/sheetFormulaReference.test.ts +78 -0
  170. package/tests/sheetFormulaReferenceRewrite.test.ts +117 -0
  171. package/tests/sheetFormulaTextDate.test.ts +512 -0
  172. package/tests/sheetSequence.test.ts +4 -23
  173. package/tests/sheetSnapshot.test.ts +134 -0
  174. package/tests/sheetStructureEdit.test.ts +492 -37
  175. package/tests/sheetStructureReferences.test.ts +589 -0
  176. package/tests/workflowLifecycleStatus.test.ts +60 -0
  177. package/tests/workflowLogFingerprint.test.ts +203 -0
  178. package/tests/workflowLogRevisionSnapshot.test.ts +96 -0
  179. package/tests/workflowProgress.test.ts +180 -0
  180. package/tests/workflowTriggers.test.ts +29 -0
  181. package/src/constants/agentDoc.ts +0 -12
  182. package/src/constants/logActivityGroupColors.generated.ts +0 -19
  183. package/src/constants/schedule.ts +0 -220
  184. package/src/constants/scheduleRuleTemplateSeed.ts +0 -138
  185. package/src/constants/scheduleRuleTemplates.generated.ts +0 -145
  186. package/src/constants/sheetRegionSources.generated.ts +0 -578
  187. package/src/schemas/fieldDocsQuery.ts +0 -12
  188. package/src/schemas/organization.ts +0 -68
  189. package/src/types/agentDoc.d.ts +0 -64
  190. package/src/types/noteDoc.d.ts +0 -86
  191. package/src/types/schedule.d.ts +0 -391
  192. package/src/utils/agentDoc.ts +0 -109
  193. package/src/utils/campaignFormEditor.ts +0 -871
  194. package/src/utils/dataTableRealtimeAuthority.ts +0 -209
  195. package/src/utils/dataTableRealtimeSelection.ts +0 -134
  196. package/src/utils/dataTableRowDocument.ts +0 -508
  197. package/src/utils/dataTableSource.ts +0 -230
  198. package/src/utils/schedule.ts +0 -799
  199. package/src/utils/scheduleEvaluation.ts +0 -1994
  200. package/src/utils/scheduleICS.ts +0 -246
  201. package/src/utils/scheduleRuleTemplates.ts +0 -188
  202. package/src/utils/sheetRegion.ts +0 -374
  203. package/src/utils/sheetRegionFilter.ts +0 -1259
  204. package/src/utils/sheetRegionSourceRegistry.ts +0 -594
  205. package/tests/schedule.test.ts +0 -693
  206. package/tests/scheduleEvaluation.test.ts +0 -1970
  207. package/tests/scheduleICS.test.ts +0 -208
  208. package/tests/scheduleRuleTemplates.test.ts +0 -176
  209. package/tests/scheduleSweepInvariants.test.ts +0 -428
  210. package/tests/sheetRegionFilter.test.ts +0 -1135
@@ -6,7 +6,6 @@ export type LogActivityGroupTuple = [string, string[]];
6
6
  export interface GeneratedLogTaxonomyGroup {
7
7
  key: string;
8
8
  label: string;
9
- color: string;
10
9
  ordinal: number;
11
10
  settings: Record<string, unknown> | null;
12
11
  }
@@ -26,725 +25,1461 @@ export interface GeneratedLogTaxonomyOperation {
26
25
  activities: GeneratedLogTaxonomyActivity[];
27
26
  }
28
27
 
29
- export const LOG_TAXONOMY_BY_OPERATION: Readonly<
30
- Record<string, GeneratedLogTaxonomyOperation>
31
- > = {
32
- ARABLE: {
33
- groups: [
34
- {
35
- key: 'SEED',
36
- label: 'seed & supply purchases',
37
- color: 'brown',
38
- ordinal: 0,
39
- settings: {
40
- requiresItem: true,
41
- requiredFields: ['item'],
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
+ ],
42
40
  },
43
41
  },
44
42
  {
45
- key: 'PLANTING',
46
- label: 'seeding & transplanting',
47
- color: 'amber',
48
- ordinal: 1,
49
- settings: {
50
- requiresItem: true,
51
- requiredFields: ['item'],
43
+ 'key': 'PLANTING',
44
+ 'label': 'seeding & transplanting',
45
+ 'ordinal': 1,
46
+ 'settings': {
47
+ 'requiresItem': true,
48
+ 'requiredFields': [
49
+ 'item',
50
+ ],
52
51
  },
53
52
  },
54
53
  {
55
- key: 'FIELD',
56
- label: 'field work',
57
- color: 'lime',
58
- ordinal: 2,
59
- settings: {
60
- requiredFields: [],
54
+ 'key': 'FIELD',
55
+ 'label': 'field work',
56
+ 'ordinal': 2,
57
+ 'settings': {
58
+ 'requiredFields': [],
61
59
  },
62
60
  },
63
61
  {
64
- key: 'HARVEST',
65
- label: 'harvest activities',
66
- color: 'emerald',
67
- ordinal: 3,
68
- settings: {
69
- requiresItem: true,
70
- requiredFields: ['item'],
62
+ 'key': 'HARVEST',
63
+ 'label': 'harvest activities',
64
+ 'ordinal': 3,
65
+ 'settings': {
66
+ 'requiresItem': true,
67
+ 'requiredFields': [
68
+ 'item',
69
+ ],
71
70
  },
72
71
  },
73
72
  {
74
- key: 'POST_HARVEST',
75
- label:
76
- 'post-harvest (storage, maintenance, packaging produce, cold storage)',
77
- color: 'cyan',
78
- ordinal: 4,
79
- settings: {
80
- requiredFields: [],
73
+ 'key': 'POST_HARVEST',
74
+ 'label': 'post-harvest (storage, maintenance, packaging produce, cold storage)',
75
+ 'ordinal': 4,
76
+ 'settings': {
77
+ 'requiredFields': [],
81
78
  },
82
79
  },
83
80
  {
84
- key: 'SALES',
85
- label: 'sales orders',
86
- color: 'blue',
87
- ordinal: 5,
88
- settings: {
89
- requiresItem: true,
90
- requiredFields: ['item'],
81
+ 'key': 'SALES',
82
+ 'label': 'sales orders',
83
+ 'ordinal': 5,
84
+ 'settings': {
85
+ 'requiresItem': true,
86
+ 'requiredFields': [
87
+ 'item',
88
+ ],
91
89
  },
92
90
  },
93
91
  {
94
- key: 'WATER',
95
- label: 'water testing activities',
96
- color: 'violet',
97
- ordinal: 6,
98
- settings: {
99
- requiredFields: [
92
+ 'key': 'WATER',
93
+ 'label': 'water testing activities',
94
+ 'ordinal': 6,
95
+ 'settings': {
96
+ 'requiredFields': [
100
97
  'concentration',
101
98
  'concentrationUnit',
102
99
  'quantity',
103
100
  'unit',
104
101
  ],
105
- requiresQuantity: true,
102
+ 'requiresQuantity': true,
106
103
  },
107
104
  },
108
105
  {
109
- key: 'CLEANING_AND_SANITATION',
110
- label: 'cleaning and sanitation',
111
- color: 'teal',
112
- ordinal: 7,
113
- settings: {
114
- requiredFields: ['notes'],
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
+ ],
115
123
  },
116
124
  },
117
125
  {
118
- key: 'OPERATION',
119
- label: 'operation notes',
120
- color: 'yellow',
121
- ordinal: 8,
122
- settings: {
123
- requiredFields: ['notes'],
126
+ 'key': 'APP_INTERACTIONS',
127
+ 'label': 'Interactions',
128
+ 'ordinal': 9,
129
+ 'settings': {
130
+ 'requiredFields': [],
124
131
  },
125
132
  },
126
133
  ],
127
- activities: [
128
- {
129
- key: 'SEED_PURCHASE_INFO',
130
- groupKey: 'SEED',
131
- agentText: 'seed purchase',
132
- financeKind: 'PURCHASE',
133
- toolCluster: 'ARABLE_PURCHASE',
134
- ordinal: 0,
135
- settings: null,
136
- },
137
- {
138
- key: 'OTHER_SUPPLY_PURCHASE_ACTIVITY',
139
- groupKey: 'SEED',
140
- agentText: 'other supply purchase',
141
- financeKind: 'PURCHASE',
142
- toolCluster: 'ARABLE_PURCHASE',
143
- ordinal: 1,
144
- settings: null,
145
- },
146
- {
147
- key: 'SEEDING',
148
- groupKey: 'PLANTING',
149
- agentText: 'seeding crops',
150
- financeKind: 'NONE',
151
- toolCluster: 'ARABLE_FARMING',
152
- ordinal: 2,
153
- settings: null,
154
- },
155
- {
156
- key: 'DIRECT_SEEDING',
157
- groupKey: 'PLANTING',
158
- agentText: 'direct seeding crops',
159
- financeKind: 'NONE',
160
- toolCluster: 'ARABLE_FARMING',
161
- ordinal: 3,
162
- settings: null,
163
- },
164
- {
165
- key: 'GREENHOUSE_SEEDING',
166
- groupKey: 'PLANTING',
167
- agentText: 'greenhouse seeding crops',
168
- financeKind: 'NONE',
169
- toolCluster: 'ARABLE_FARMING',
170
- ordinal: 4,
171
- settings: null,
172
- },
173
- {
174
- key: 'TRANSPLANTING',
175
- groupKey: 'PLANTING',
176
- agentText: 'transplanting crops',
177
- financeKind: 'NONE',
178
- toolCluster: 'ARABLE_FARMING',
179
- ordinal: 5,
180
- settings: null,
181
- },
182
- {
183
- key: 'SEED_COMPLIANCE_NOTE',
184
- groupKey: 'PLANTING',
185
- agentText: 'seeding compliance notes',
186
- financeKind: 'NONE',
187
- toolCluster: 'ARABLE_FARMING',
188
- ordinal: 6,
189
- settings: null,
190
- },
191
- {
192
- key: 'OTHER_TRANSPLANT_ACTIVITY',
193
- groupKey: 'PLANTING',
194
- agentText: 'other seeding or transplanting activities',
195
- financeKind: 'NONE',
196
- toolCluster: 'ARABLE_FARMING',
197
- ordinal: 7,
198
- settings: null,
199
- },
200
- {
201
- key: 'PREPARE_SOIL',
202
- groupKey: 'FIELD',
203
- agentText: 'soil, beds preparation',
204
- financeKind: 'NONE',
205
- toolCluster: 'ARABLE_FARMING',
206
- ordinal: 8,
207
- settings: null,
208
- },
209
- {
210
- key: 'IRRIGATION',
211
- groupKey: 'FIELD',
212
- agentText: 'irrigation management',
213
- financeKind: 'NONE',
214
- toolCluster: 'ARABLE_FARMING',
215
- ordinal: 9,
216
- settings: null,
217
- },
218
- {
219
- key: 'FERTILIZATION_COMPOST',
220
- groupKey: 'FIELD',
221
- agentText: 'fertilization, compost application',
222
- financeKind: 'NONE',
223
- toolCluster: 'ARABLE_FARMING',
224
- ordinal: 10,
225
- settings: null,
226
- },
227
- {
228
- key: 'PROTECT_CROP',
229
- groupKey: 'FIELD',
230
- agentText: 'hand pulling weed, hoeing, and cultivation work',
231
- financeKind: 'NONE',
232
- toolCluster: 'ARABLE_FARMING',
233
- ordinal: 11,
234
- settings: null,
235
- },
236
- {
237
- key: 'MONITOR_CROP',
238
- groupKey: 'FIELD',
239
- agentText: 'crop monitoring',
240
- financeKind: 'NONE',
241
- toolCluster: 'ARABLE_FARMING',
242
- ordinal: 12,
243
- settings: null,
244
- },
245
- {
246
- key: 'PRUNING',
247
- groupKey: 'FIELD',
248
- agentText: 'pruning',
249
- financeKind: 'NONE',
250
- toolCluster: 'ARABLE_FARMING',
251
- ordinal: 13,
252
- settings: null,
253
- },
254
- {
255
- key: 'STRUCTURE_MAINTENANCE',
256
- groupKey: 'FIELD',
257
- agentText: 'trellising, structure maintenance',
258
- financeKind: 'NONE',
259
- toolCluster: 'ARABLE_FARMING',
260
- ordinal: 14,
261
- settings: null,
262
- },
263
- {
264
- key: 'PREPARE_HARVEST',
265
- groupKey: 'FIELD',
266
- agentText: 'preparing crops for harvest',
267
- financeKind: 'NONE',
268
- toolCluster: 'ARABLE_FARMING',
269
- ordinal: 15,
270
- settings: null,
271
- },
272
- {
273
- key: 'OTHER_FIELD_ACTIVITY',
274
- groupKey: 'FIELD',
275
- agentText: 'other field activities or farm operation notes',
276
- financeKind: 'NONE',
277
- toolCluster: 'ARABLE_FARMING',
278
- ordinal: 16,
279
- settings: null,
280
- },
281
- {
282
- key: 'HARVEST_CROP',
283
- groupKey: 'HARVEST',
284
- agentText: 'harvesting crops',
285
- financeKind: 'NONE',
286
- toolCluster: 'ARABLE_FARMING',
287
- ordinal: 17,
288
- settings: null,
289
- },
290
- {
291
- key: 'HARVEST_COUNT',
292
- groupKey: 'HARVEST',
293
- agentText: 'counting, weighing harvested crops',
294
- financeKind: 'NONE',
295
- toolCluster: 'ARABLE_FARMING',
296
- ordinal: 18,
297
- settings: null,
298
- },
299
- {
300
- key: 'SORT_GRADE',
301
- groupKey: 'HARVEST',
302
- agentText: 'sorting, grading crops',
303
- financeKind: 'NONE',
304
- toolCluster: 'ARABLE_FARMING',
305
- ordinal: 19,
306
- settings: null,
307
- },
308
- {
309
- key: 'YIELD_LOSS_ESTIMATE',
310
- groupKey: 'HARVEST',
311
- agentText: 'estimating yield or loss',
312
- financeKind: 'NONE',
313
- toolCluster: 'ARABLE_FARMING',
314
- ordinal: 20,
315
- settings: null,
316
- },
317
- {
318
- key: 'OTHER_HARVEST_ACTIVITY',
319
- groupKey: 'HARVEST',
320
- agentText: 'other harvest activities',
321
- financeKind: 'NONE',
322
- toolCluster: 'ARABLE_FARMING',
323
- ordinal: 21,
324
- settings: null,
325
- },
326
- {
327
- key: 'POST_HARVEST_HANDLING',
328
- groupKey: 'POST_HARVEST',
329
- agentText: 'washing, drying, trimming, sorting, or grading produce',
330
- financeKind: 'NONE',
331
- toolCluster: 'ARABLE_FARMING',
332
- ordinal: 22,
333
- settings: null,
334
- },
335
- {
336
- key: 'POST_HARVEST_PACKAGING',
337
- groupKey: 'POST_HARVEST',
338
- agentText: 'packaging, cooling, or moving produce to storage',
339
- financeKind: 'NONE',
340
- toolCluster: 'ARABLE_FARMING',
341
- ordinal: 23,
342
- settings: null,
343
- },
344
- {
345
- key: 'COLD_STORAGE_TEMPERATURE',
346
- groupKey: 'POST_HARVEST',
347
- agentText: 'checking or changing temperature (cold storage)',
348
- financeKind: 'NONE',
349
- toolCluster: 'COLD_STORAGE',
350
- ordinal: 24,
351
- settings: {
352
- requiredFields: ['quantity', 'unit'],
353
- },
354
- },
355
- {
356
- key: 'OTHER_POST_HARVEST_ACTIVITY',
357
- groupKey: 'POST_HARVEST',
358
- agentText:
359
- 'other post-harvest activities including storage and maintenance',
360
- financeKind: 'NONE',
361
- toolCluster: 'ARABLE_FARMING',
362
- ordinal: 25,
363
- settings: null,
364
- },
365
- {
366
- key: 'SALE_PRODUCE_ORDER',
367
- groupKey: 'SALES',
368
- agentText: 'sales order (produce)',
369
- financeKind: 'SALE',
370
- toolCluster: 'ARABLE_SALES_ORDER',
371
- ordinal: 26,
372
- settings: null,
373
- },
374
- {
375
- key: 'OTHER_SALE_ORDER',
376
- groupKey: 'SALES',
377
- agentText: 'sales order (other)',
378
- financeKind: 'SALE',
379
- toolCluster: 'ARABLE_SALES_ORDER',
380
- ordinal: 27,
381
- settings: null,
382
- },
383
- {
384
- key: 'WATER_TESTING',
385
- groupKey: 'WATER',
386
- agentText: 'checking chlorine levels in water',
387
- financeKind: 'NONE',
388
- toolCluster: 'WATER_TESTING',
389
- ordinal: 28,
390
- settings: null,
391
- },
392
- {
393
- key: 'OTHER_WATER_TESTING_ACTIVITY',
394
- groupKey: 'WATER',
395
- agentText: 'other water testing related activities',
396
- financeKind: 'NONE',
397
- toolCluster: 'WATER_TESTING',
398
- ordinal: 29,
399
- settings: {
400
- requiredFields: [],
401
- },
402
- },
403
- {
404
- key: 'EQUIPMENT_MATERIAL',
405
- groupKey: 'CLEANING_AND_SANITATION',
406
- agentText: 'harvest equipments/tools/materials cleaning',
407
- financeKind: 'NONE',
408
- toolCluster: 'ARABLE_CLEANING_AND_SANITATION',
409
- ordinal: 30,
410
- settings: null,
411
- },
412
- {
413
- key: 'SANITATION_PRACTICE',
414
- groupKey: 'CLEANING_AND_SANITATION',
415
- agentText: 'sanitation cleaning, practices',
416
- financeKind: 'NONE',
417
- toolCluster: 'ARABLE_CLEANING_AND_SANITATION',
418
- ordinal: 31,
419
- settings: null,
420
- },
421
- {
422
- key: 'HYGIENE_PROCEDURE',
423
- groupKey: 'CLEANING_AND_SANITATION',
424
- agentText: 'worker hygiene procedures',
425
- financeKind: 'NONE',
426
- toolCluster: 'ARABLE_CLEANING_AND_SANITATION',
427
- ordinal: 32,
428
- settings: null,
429
- },
430
- {
431
- key: 'EMPLOYEE_NOTE',
432
- groupKey: 'OPERATION',
433
- agentText: 'notes about an employee',
434
- financeKind: 'NONE',
435
- toolCluster: 'ARABLE_MANAGEMENT',
436
- ordinal: 34,
437
- settings: null,
438
- },
439
- {
440
- key: 'OPERATION_NOTE',
441
- groupKey: 'OPERATION',
442
- agentText: 'general operation notes',
443
- financeKind: 'NONE',
444
- toolCluster: 'ARABLE_MANAGEMENT',
445
- ordinal: 35,
446
- settings: null,
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
+ },
447
485
  },
448
486
  ],
449
487
  },
450
- FARMERS_MARKET: {
451
- groups: [
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
+ },
452
509
  {
453
- key: 'MARKET_RECEIPT',
454
- label: 'market credit receipts and coins redemption',
455
- color: 'blue',
456
- ordinal: 0,
457
- settings: {
458
- requiredFields: ['childOrgId'],
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
+ ],
459
527
  },
460
528
  },
461
529
  {
462
- key: 'MARKET_OPERATION',
463
- label: 'notes about farmers and markets',
464
- color: 'rose',
465
- ordinal: 1,
466
- settings: {
467
- requiredFields: ['notes'],
530
+ 'key': 'APP_INTERACTIONS',
531
+ 'label': 'Interactions',
532
+ 'ordinal': 3,
533
+ 'settings': {
534
+ 'requiredFields': [],
468
535
  },
469
536
  },
470
537
  ],
471
- activities: [
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
+ },
472
618
  {
473
- key: 'MARKET_CREDIT_RECEIPT',
474
- groupKey: 'MARKET_RECEIPT',
475
- agentText: 'receipts for market credits, coins, or voucher redemption',
476
- financeKind: 'SALE',
477
- toolCluster: 'FARMERS_MARKET_RECEIPT',
478
- ordinal: 0,
479
- settings: null,
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
+ },
480
630
  },
481
631
  {
482
- key: 'MARKET_ATTENDANCE',
483
- groupKey: 'MARKET_OPERATION',
484
- agentText: 'attendance for vendor',
485
- financeKind: 'NONE',
486
- toolCluster: 'FARMERS_MARKET_MANAGEMENT',
487
- ordinal: 1,
488
- settings: {
489
- requiredFields: ['notes', 'childOrgId', 'siteId'],
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
+ ],
490
642
  },
491
643
  },
492
644
  {
493
- key: 'MARKET_LOAD_LIST',
494
- groupKey: 'MARKET_OPERATION',
495
- agentText: 'vendor load list',
496
- financeKind: 'NONE',
497
- toolCluster: 'FARMERS_MARKET_MANAGEMENT',
498
- ordinal: 2,
499
- settings: {
500
- requiredFields: ['notes', 'childOrgId', 'siteId'],
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
+ ],
501
664
  },
502
665
  },
503
666
  {
504
- key: 'OPERATION_NOTE',
505
- groupKey: 'MARKET_OPERATION',
506
- agentText: 'general operation notes',
507
- financeKind: 'NONE',
508
- toolCluster: 'FARMERS_MARKET_NOTE',
509
- ordinal: 3,
510
- settings: null,
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
+ },
511
696
  },
512
697
  ],
513
698
  },
514
- GROWER_NETWORK: {
515
- groups: [
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
+ },
516
711
  {
517
- key: 'WORKER_PRACTICE',
518
- label: 'hygiene, sanitation, and worker practices',
519
- color: 'purple',
520
- ordinal: 0,
521
- settings: {
522
- requiredFields: ['notes', 'childOrgId', 'siteId'],
712
+ 'key': 'OPERATION',
713
+ 'label': 'Agency administration, employee notes, and general operations.',
714
+ 'ordinal': 1,
715
+ 'settings': {
716
+ 'requiredFields': [
717
+ 'notes',
718
+ ],
523
719
  },
524
720
  },
525
721
  {
526
- key: 'EQUIPMENT',
527
- label: 'equipments, materials, packaging, storage',
528
- color: 'indigo',
529
- ordinal: 1,
530
- settings: {
531
- requiredFields: ['notes', 'childOrgId', 'siteId'],
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
+ ],
532
756
  },
533
757
  },
534
758
  {
535
- key: 'PRODUCTION_INPUT',
536
- label: 'water, chemical, and fertilizer inputs',
537
- color: 'sky',
538
- ordinal: 2,
539
- settings: {
540
- requiredFields: ['notes', 'childOrgId', 'siteId'],
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
+ ],
541
810
  },
542
811
  },
543
812
  {
544
- key: 'FIELD',
545
- label:
546
- 'field/land conditions, control measures and environmental risks',
547
- color: 'lime',
548
- ordinal: 3,
549
- settings: {
550
- requiredFields: ['notes', 'childOrgId', 'siteId'],
813
+ 'key': 'OPERATION',
814
+ 'label': 'Market operations',
815
+ 'ordinal': 1,
816
+ 'settings': {
817
+ 'requiredFields': [
818
+ 'notes',
819
+ ],
551
820
  },
552
821
  },
553
822
  {
554
- key: 'OPERATION',
555
- label:
556
- 'recordkeeping, documentation, facilities, and general operations',
557
- color: 'yellow',
558
- ordinal: 4,
559
- settings: {
560
- requiredFields: ['notes', 'childOrgId', 'siteId'],
823
+ 'key': 'APP_INTERACTIONS',
824
+ 'label': 'Interactions',
825
+ 'ordinal': 2,
826
+ 'settings': {
827
+ 'requiredFields': [],
561
828
  },
562
829
  },
563
830
  ],
564
- activities: [
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
+ },
565
858
  {
566
- key: 'HYGIENE_PROCEDURE',
567
- groupKey: 'WORKER_PRACTICE',
568
- agentText: 'worker hygiene procedures',
569
- financeKind: 'NONE',
570
- toolCluster: 'GROWER_NETWORK_INSPECTIONS',
571
- ordinal: 0,
572
- settings: {
573
- toolOrdinal: 0,
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
+ ],
574
913
  },
575
914
  },
576
915
  {
577
- key: 'SANITATION_PRACTICE',
578
- groupKey: 'WORKER_PRACTICE',
579
- agentText: 'sanitation conditions and cleanliness',
580
- financeKind: 'NONE',
581
- toolCluster: 'GROWER_NETWORK_INSPECTIONS',
582
- ordinal: 1,
583
- settings: {
584
- toolOrdinal: 1,
916
+ 'key': 'FOOD_WAREHOUSING',
917
+ 'label': 'Warehousing',
918
+ 'ordinal': 1,
919
+ 'settings': {
920
+ 'requiredFields': [
921
+ 'notes',
922
+ ],
585
923
  },
586
924
  },
587
925
  {
588
- key: 'PERSONNEL_PRACTICE',
589
- groupKey: 'WORKER_PRACTICE',
590
- agentText: 'PPE compliance, worker practices, training, illness',
591
- financeKind: 'NONE',
592
- toolCluster: 'GROWER_NETWORK_INSPECTIONS',
593
- ordinal: 2,
594
- settings: {
595
- toolOrdinal: 2,
926
+ 'key': 'FOOD_INSPECTION',
927
+ 'label': 'Inspections',
928
+ 'ordinal': 2,
929
+ 'settings': {
930
+ 'requiredFields': [
931
+ 'notes',
932
+ ],
596
933
  },
597
934
  },
598
935
  {
599
- key: 'EQUIPMENT_MATERIAL',
600
- groupKey: 'EQUIPMENT',
601
- agentText: 'production and harvest equipments/tools/materials',
602
- financeKind: 'NONE',
603
- toolCluster: 'GROWER_NETWORK_INSPECTIONS',
604
- ordinal: 3,
605
- settings: {
606
- toolOrdinal: 3,
936
+ 'key': 'SANITATION',
937
+ 'label': 'Sanitation',
938
+ 'ordinal': 3,
939
+ 'settings': {
940
+ 'requiredFields': [
941
+ 'notes',
942
+ ],
607
943
  },
608
944
  },
609
945
  {
610
- key: 'PACKAGING_STORAGE',
611
- groupKey: 'EQUIPMENT',
612
- agentText: 'packaging and storage of produce',
613
- financeKind: 'NONE',
614
- toolCluster: 'GROWER_NETWORK_INSPECTIONS',
615
- ordinal: 4,
616
- settings: {
617
- toolOrdinal: 4,
946
+ 'key': 'FULFILLMENT',
947
+ 'label': 'Fulfillment',
948
+ 'ordinal': 4,
949
+ 'settings': {
950
+ 'requiredFields': [
951
+ 'notes',
952
+ ],
618
953
  },
619
954
  },
620
955
  {
621
- key: 'WATER_INPUT',
622
- groupKey: 'PRODUCTION_INPUT',
623
- agentText: 'water source, quality, treatment, testing, and application',
624
- financeKind: 'NONE',
625
- toolCluster: 'GROWER_NETWORK_INSPECTIONS',
626
- ordinal: 5,
627
- settings: {
628
- toolOrdinal: 8,
956
+ 'key': 'OPERATION',
957
+ 'label': 'Operations',
958
+ 'ordinal': 5,
959
+ 'settings': {
960
+ 'requiredFields': [
961
+ 'notes',
962
+ ],
629
963
  },
630
964
  },
631
965
  {
632
- key: 'CHEMICAL_INPUT',
633
- groupKey: 'PRODUCTION_INPUT',
634
- agentText: 'chemical inputs handling and application',
635
- financeKind: 'NONE',
636
- toolCluster: 'GROWER_NETWORK_INSPECTIONS',
637
- ordinal: 6,
638
- settings: {
639
- toolOrdinal: 9,
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
+ ],
640
991
  },
641
992
  },
642
993
  {
643
- key: 'FERTILIZER_INPUT',
644
- groupKey: 'PRODUCTION_INPUT',
645
- agentText: 'fertilizer inputs handling and application',
646
- financeKind: 'NONE',
647
- toolCluster: 'GROWER_NETWORK_INSPECTIONS',
648
- ordinal: 7,
649
- settings: {
650
- toolOrdinal: 10,
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
+ ],
651
1008
  },
652
1009
  },
653
1010
  {
654
- key: 'ENVIRONMENT',
655
- groupKey: 'FIELD',
656
- agentText: 'environmental exposure and wildlife activity',
657
- financeKind: 'NONE',
658
- toolCluster: 'GROWER_NETWORK_INSPECTIONS',
659
- ordinal: 8,
660
- settings: {
661
- toolOrdinal: 5,
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
+ ],
662
1026
  },
663
1027
  },
664
1028
  {
665
- key: 'FIELD_CONDITION',
666
- groupKey: 'FIELD',
667
- agentText: 'field conditions, flood zones, erosion',
668
- financeKind: 'NONE',
669
- toolCluster: 'GROWER_NETWORK_INSPECTIONS',
670
- ordinal: 9,
671
- settings: {
672
- toolOrdinal: 6,
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
+ ],
673
1051
  },
674
1052
  },
675
1053
  {
676
- key: 'ADJACENT_LAND',
677
- groupKey: 'FIELD',
678
- agentText: 'adjacent land observations, risks',
679
- financeKind: 'NONE',
680
- toolCluster: 'GROWER_NETWORK_INSPECTIONS',
681
- ordinal: 10,
682
- settings: {
683
- toolOrdinal: 7,
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
+ ],
684
1083
  },
685
1084
  },
686
1085
  {
687
- key: 'RECORDKEEPING',
688
- groupKey: 'OPERATION',
689
- agentText: 'document control, record availability, and accuracy',
690
- financeKind: 'NONE',
691
- toolCluster: 'GROWER_NETWORK_INSPECTIONS',
692
- ordinal: 11,
693
- settings: {
694
- toolOrdinal: 11,
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
+ ],
695
1106
  },
696
1107
  },
697
1108
  {
698
- key: 'FACILITIES',
699
- groupKey: 'OPERATION',
700
- agentText: 'facilities, physical infrastructure, and maintenance',
701
- financeKind: 'NONE',
702
- toolCluster: 'GROWER_NETWORK_INSPECTIONS',
703
- ordinal: 12,
704
- settings: {
705
- toolOrdinal: 12,
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
+ ],
706
1165
  },
707
1166
  },
708
1167
  {
709
- key: 'OPERATION_NOTE',
710
- groupKey: 'OPERATION',
711
- agentText: 'general operation notes',
712
- financeKind: 'NONE',
713
- toolCluster: 'GROWER_NETWORK_INSPECTIONS',
714
- ordinal: 13,
715
- settings: {
716
- toolOrdinal: 13,
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
+ ],
717
1196
  },
718
1197
  },
719
1198
  ],
720
1199
  },
721
- LIVESTOCK: {
722
- groups: [],
723
- activities: [],
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': [],
724
1455
  },
725
- RESTAURANT: {
726
- groups: [],
727
- activities: [],
1456
+ 'UNKNOWN': {
1457
+ 'groups': [],
1458
+ 'activities': [],
728
1459
  },
729
- UNKNOWN: {
730
- groups: [],
731
- activities: [],
1460
+ 'UTILITIES': {
1461
+ 'groups': [],
1462
+ 'activities': [],
732
1463
  },
733
- VENDOR: {
734
- groups: [],
735
- activities: [],
1464
+ 'VENDOR': {
1465
+ 'groups': [],
1466
+ 'activities': [],
736
1467
  },
737
- WHOLESALE_FOOD: {
738
- groups: [],
739
- activities: [],
1468
+ 'WHOLESALE_FOOD': {
1469
+ 'groups': [],
1470
+ 'activities': [],
740
1471
  },
741
1472
  };
742
1473
 
743
- export const LOG_ACTIVITIES_BY_OPERATION: Readonly<
744
- Record<string, LogActivityGroupTuple[]>
745
- > = {
746
- ARABLE: [
747
- ['SEED', ['SEED_PURCHASE_INFO', 'OTHER_SUPPLY_PURCHASE_ACTIVITY']],
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
+ ],
748
1483
  [
749
1484
  'PLANTING',
750
1485
  [
@@ -789,37 +1524,230 @@ export const LOG_ACTIVITIES_BY_OPERATION: Readonly<
789
1524
  'OTHER_POST_HARVEST_ACTIVITY',
790
1525
  ],
791
1526
  ],
792
- ['SALES', ['SALE_PRODUCE_ORDER', 'OTHER_SALE_ORDER']],
793
- ['WATER', ['WATER_TESTING', 'OTHER_WATER_TESTING_ACTIVITY']],
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
+ ],
794
1541
  [
795
1542
  'CLEANING_AND_SANITATION',
796
- ['EQUIPMENT_MATERIAL', 'SANITATION_PRACTICE', 'HYGIENE_PROCEDURE'],
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
+ ],
797
1642
  ],
798
- ['OPERATION', ['EMPLOYEE_NOTE', 'OPERATION_NOTE']],
799
1643
  ],
800
- FARMERS_MARKET: [
801
- ['MARKET_RECEIPT', ['MARKET_CREDIT_RECEIPT']],
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
+ ],
802
1686
  [
803
- 'MARKET_OPERATION',
804
- ['MARKET_ATTENDANCE', 'MARKET_LOAD_LIST', 'OPERATION_NOTE'],
1687
+ 'OPERATION',
1688
+ [
1689
+ 'OFFICE_NOTE',
1690
+ 'OPERATION_NOTE',
1691
+ ],
1692
+ ],
1693
+ [
1694
+ 'APP_INTERACTIONS',
1695
+ [
1696
+ 'CAMPAIGN_FORM_SUBMISSION',
1697
+ ],
805
1698
  ],
806
1699
  ],
807
- GROWER_NETWORK: [
1700
+ 'GROWER_NETWORK': [
808
1701
  [
809
1702
  'WORKER_PRACTICE',
810
- ['HYGIENE_PROCEDURE', 'SANITATION_PRACTICE', 'PERSONNEL_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
+ ],
811
1745
  ],
812
- ['EQUIPMENT', ['EQUIPMENT_MATERIAL', 'PACKAGING_STORAGE']],
813
- ['PRODUCTION_INPUT', ['WATER_INPUT', 'CHEMICAL_INPUT', 'FERTILIZER_INPUT']],
814
- ['FIELD', ['ENVIRONMENT', 'FIELD_CONDITION', 'ADJACENT_LAND']],
815
- ['OPERATION', ['RECORDKEEPING', 'FACILITIES', 'OPERATION_NOTE']],
816
1746
  ],
817
1747
  };
818
1748
 
819
- export const LOG_TYPES_BY_OPERATION: Readonly<
820
- Record<string, readonly string[]>
821
- > = {
822
- ARABLE: [
1749
+ export const LOG_TYPES_BY_OPERATION: Readonly<Record<string, readonly string[]>> = {
1750
+ 'ARABLE': [
823
1751
  'SEED',
824
1752
  'PLANTING',
825
1753
  'FIELD',
@@ -829,121 +1757,218 @@ export const LOG_TYPES_BY_OPERATION: Readonly<
829
1757
  'WATER',
830
1758
  'CLEANING_AND_SANITATION',
831
1759
  'OPERATION',
1760
+ 'APP_INTERACTIONS',
832
1761
  ],
833
- FARMERS_MARKET: ['MARKET_RECEIPT', 'MARKET_OPERATION'],
834
- GROWER_NETWORK: [
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': [
835
1788
  'WORKER_PRACTICE',
836
1789
  'EQUIPMENT',
837
1790
  'PRODUCTION_INPUT',
838
1791
  'FIELD',
839
1792
  'OPERATION',
1793
+ 'APP_INTERACTIONS',
840
1794
  ],
841
1795
  };
842
1796
 
843
- export const LOG_GROUP_LABELS_BY_OPERATION: Readonly<
844
- Record<string, Readonly<Record<string, string>>>
845
- > = {
846
- ARABLE: {
847
- SEED: 'seed & supply purchases',
848
- PLANTING: 'seeding & transplanting',
849
- FIELD: 'field work',
850
- HARVEST: 'harvest activities',
851
- POST_HARVEST:
852
- 'post-harvest (storage, maintenance, packaging produce, cold storage)',
853
- SALES: 'sales orders',
854
- WATER: 'water testing activities',
855
- CLEANING_AND_SANITATION: 'cleaning and sanitation',
856
- OPERATION: 'operation notes',
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',
857
1827
  },
858
- FARMERS_MARKET: {
859
- MARKET_RECEIPT: 'market credit receipts and coins redemption',
860
- MARKET_OPERATION: 'notes about farmers and markets',
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',
861
1836
  },
862
- GROWER_NETWORK: {
863
- WORKER_PRACTICE: 'hygiene, sanitation, and worker practices',
864
- EQUIPMENT: 'equipments, materials, packaging, storage',
865
- PRODUCTION_INPUT: 'water, chemical, and fertilizer inputs',
866
- FIELD: 'field/land conditions, control measures and environmental risks',
867
- OPERATION:
868
- 'recordkeeping, documentation, facilities, and general operations',
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',
869
1844
  },
870
- LIVESTOCK: {},
871
- RESTAURANT: {},
872
- UNKNOWN: {},
873
- VENDOR: {},
874
- WHOLESALE_FOOD: {},
1845
+ 'LIVESTOCK': {},
1846
+ 'RESTAURANT': {},
1847
+ 'UNKNOWN': {},
1848
+ 'UTILITIES': {},
1849
+ 'VENDOR': {},
1850
+ 'WHOLESALE_FOOD': {},
875
1851
  };
876
1852
 
877
- export const LOG_ACTIVITY_TEXTS_BY_OPERATION: Readonly<
878
- Record<string, Readonly<Record<string, string>>>
879
- > = {
880
- ARABLE: {
881
- SEED_PURCHASE_INFO: 'seed purchase',
882
- OTHER_SUPPLY_PURCHASE_ACTIVITY: 'other supply purchase',
883
- SEEDING: 'seeding crops',
884
- DIRECT_SEEDING: 'direct seeding crops',
885
- GREENHOUSE_SEEDING: 'greenhouse seeding crops',
886
- TRANSPLANTING: 'transplanting crops',
887
- SEED_COMPLIANCE_NOTE: 'seeding compliance notes',
888
- OTHER_TRANSPLANT_ACTIVITY: 'other seeding or transplanting activities',
889
- PREPARE_SOIL: 'soil, beds preparation',
890
- IRRIGATION: 'irrigation management',
891
- FERTILIZATION_COMPOST: 'fertilization, compost application',
892
- PROTECT_CROP: 'hand pulling weed, hoeing, and cultivation work',
893
- MONITOR_CROP: 'crop monitoring',
894
- PRUNING: 'pruning',
895
- STRUCTURE_MAINTENANCE: 'trellising, structure maintenance',
896
- PREPARE_HARVEST: 'preparing crops for harvest',
897
- OTHER_FIELD_ACTIVITY: 'other field activities or farm operation notes',
898
- HARVEST_CROP: 'harvesting crops',
899
- HARVEST_COUNT: 'counting, weighing harvested crops',
900
- SORT_GRADE: 'sorting, grading crops',
901
- YIELD_LOSS_ESTIMATE: 'estimating yield or loss',
902
- OTHER_HARVEST_ACTIVITY: 'other harvest activities',
903
- POST_HARVEST_HANDLING:
904
- 'washing, drying, trimming, sorting, or grading produce',
905
- POST_HARVEST_PACKAGING: 'packaging, cooling, or moving produce to storage',
906
- COLD_STORAGE_TEMPERATURE: 'checking or changing temperature (cold storage)',
907
- OTHER_POST_HARVEST_ACTIVITY:
908
- 'other post-harvest activities including storage and maintenance',
909
- SALE_PRODUCE_ORDER: 'sales order (produce)',
910
- OTHER_SALE_ORDER: 'sales order (other)',
911
- WATER_TESTING: 'checking chlorine levels in water',
912
- OTHER_WATER_TESTING_ACTIVITY: 'other water testing related activities',
913
- EQUIPMENT_MATERIAL: 'harvest equipments/tools/materials cleaning',
914
- SANITATION_PRACTICE: 'sanitation cleaning, practices',
915
- HYGIENE_PROCEDURE: 'worker hygiene procedures',
916
- EMPLOYEE_NOTE: 'notes about an employee',
917
- OPERATION_NOTE: 'general operation notes',
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',
918
1891
  },
919
- FARMERS_MARKET: {
920
- MARKET_CREDIT_RECEIPT:
921
- 'receipts for market credits, coins, or voucher redemption',
922
- MARKET_ATTENDANCE: 'attendance for vendor',
923
- MARKET_LOAD_LIST: 'vendor load list',
924
- OPERATION_NOTE: 'general operation notes',
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',
925
1909
  },
926
- GROWER_NETWORK: {
927
- HYGIENE_PROCEDURE: 'worker hygiene procedures',
928
- SANITATION_PRACTICE: 'sanitation conditions and cleanliness',
929
- PERSONNEL_PRACTICE: 'PPE compliance, worker practices, training, illness',
930
- EQUIPMENT_MATERIAL: 'production and harvest equipments/tools/materials',
931
- PACKAGING_STORAGE: 'packaging and storage of produce',
932
- WATER_INPUT: 'water source, quality, treatment, testing, and application',
933
- CHEMICAL_INPUT: 'chemical inputs handling and application',
934
- FERTILIZER_INPUT: 'fertilizer inputs handling and application',
935
- ENVIRONMENT: 'environmental exposure and wildlife activity',
936
- FIELD_CONDITION: 'field conditions, flood zones, erosion',
937
- ADJACENT_LAND: 'adjacent land observations, risks',
938
- RECORDKEEPING: 'document control, record availability, and accuracy',
939
- FACILITIES: 'facilities, physical infrastructure, and maintenance',
940
- OPERATION_NOTE: 'general operation notes',
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.',
941
1918
  },
942
- LIVESTOCK: {},
943
- RESTAURANT: {},
944
- UNKNOWN: {},
945
- VENDOR: {},
946
- WHOLESALE_FOOD: {},
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': {},
947
1972
  };
948
1973
 
949
1974
  export const LOG_ANY_TYPE_ENUMS = [
@@ -956,8 +1981,16 @@ export const LOG_ANY_TYPE_ENUMS = [
956
1981
  'WATER',
957
1982
  'CLEANING_AND_SANITATION',
958
1983
  'OPERATION',
1984
+ 'APP_INTERACTIONS',
1985
+ 'SITE_INSPECTION',
1986
+ 'PROJECT',
1987
+ 'EMS_INCIDENT',
959
1988
  'MARKET_RECEIPT',
960
- 'MARKET_OPERATION',
1989
+ 'FOOD_PRODUCTION',
1990
+ 'FOOD_WAREHOUSING',
1991
+ 'FOOD_INSPECTION',
1992
+ 'SANITATION',
1993
+ 'FULFILLMENT',
961
1994
  'WORKER_PRACTICE',
962
1995
  'EQUIPMENT',
963
1996
  'PRODUCTION_INPUT',
@@ -965,6 +1998,7 @@ export const LOG_ANY_TYPE_ENUMS = [
965
1998
 
966
1999
  export const LOG_ANY_ACTIVITY_ENUMS = [
967
2000
  'SEED_PURCHASE_INFO',
2001
+ 'CAMPAIGN_FORM_SUBMISSION',
968
2002
  'OTHER_SUPPLY_PURCHASE_ACTIVITY',
969
2003
  'SEEDING',
970
2004
  'DIRECT_SEEDING',
@@ -999,9 +2033,37 @@ export const LOG_ANY_ACTIVITY_ENUMS = [
999
2033
  'HYGIENE_PROCEDURE',
1000
2034
  'EMPLOYEE_NOTE',
1001
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',
1002
2051
  'MARKET_CREDIT_RECEIPT',
1003
2052
  'MARKET_ATTENDANCE',
1004
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',
1005
2067
  'PERSONNEL_PRACTICE',
1006
2068
  'PACKAGING_STORAGE',
1007
2069
  'WATER_INPUT',
@@ -1010,7 +2072,6 @@ export const LOG_ANY_ACTIVITY_ENUMS = [
1010
2072
  'ENVIRONMENT',
1011
2073
  'FIELD_CONDITION',
1012
2074
  'ADJACENT_LAND',
1013
- 'RECORDKEEPING',
1014
2075
  'FACILITIES',
1015
2076
  ] satisfies [string, ...string[]];
1016
2077
 
@@ -1030,24 +2091,35 @@ export const ALL_TEXT_TO_TYPES: Readonly<Record<string, string>> = {
1030
2091
  'seeding & transplanting': 'PLANTING',
1031
2092
  'field work': 'FIELD',
1032
2093
  'harvest activities': 'HARVEST',
1033
- 'post-harvest (storage, maintenance, packaging produce, cold storage)':
1034
- 'POST_HARVEST',
2094
+ 'post-harvest (storage, maintenance, packaging produce, cold storage)': 'POST_HARVEST',
1035
2095
  'sales orders': 'SALES',
1036
2096
  'water testing activities': 'WATER',
1037
2097
  'cleaning and sanitation': 'CLEANING_AND_SANITATION',
1038
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',
1039
2105
  'market credit receipts and coins redemption': 'MARKET_RECEIPT',
1040
- 'notes about farmers and markets': 'MARKET_OPERATION',
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',
1041
2113
  'hygiene, sanitation, and worker practices': 'WORKER_PRACTICE',
1042
2114
  'equipments, materials, packaging, storage': 'EQUIPMENT',
1043
2115
  'water, chemical, and fertilizer inputs': 'PRODUCTION_INPUT',
1044
2116
  'field/land conditions, control measures and environmental risks': 'FIELD',
1045
- 'recordkeeping, documentation, facilities, and general operations':
1046
- 'OPERATION',
2117
+ 'recordkeeping, documentation, facilities, and general operations': 'OPERATION',
1047
2118
  };
1048
2119
 
1049
2120
  export const AGENT_TEXT_TO_ACTIVITIES: Readonly<Record<string, string>> = {
1050
2121
  'seed purchase': 'SEED_PURCHASE_INFO',
2122
+ 'Form submission': 'CAMPAIGN_FORM_SUBMISSION',
1051
2123
  'other supply purchase': 'OTHER_SUPPLY_PURCHASE_ACTIVITY',
1052
2124
  'seeding crops': 'SEEDING',
1053
2125
  'direct seeding crops': 'DIRECT_SEEDING',
@@ -1060,7 +2132,7 @@ export const AGENT_TEXT_TO_ACTIVITIES: Readonly<Record<string, string>> = {
1060
2132
  'fertilization, compost application': 'FERTILIZATION_COMPOST',
1061
2133
  'hand pulling weed, hoeing, and cultivation work': 'PROTECT_CROP',
1062
2134
  'crop monitoring': 'MONITOR_CROP',
1063
- pruning: 'PRUNING',
2135
+ 'pruning': 'PRUNING',
1064
2136
  'trellising, structure maintenance': 'STRUCTURE_MAINTENANCE',
1065
2137
  'preparing crops for harvest': 'PREPARE_HARVEST',
1066
2138
  'other field activities or farm operation notes': 'OTHER_FIELD_ACTIVITY',
@@ -1069,12 +2141,10 @@ export const AGENT_TEXT_TO_ACTIVITIES: Readonly<Record<string, string>> = {
1069
2141
  'sorting, grading crops': 'SORT_GRADE',
1070
2142
  'estimating yield or loss': 'YIELD_LOSS_ESTIMATE',
1071
2143
  'other harvest activities': 'OTHER_HARVEST_ACTIVITY',
1072
- 'washing, drying, trimming, sorting, or grading produce':
1073
- 'POST_HARVEST_HANDLING',
2144
+ 'washing, drying, trimming, sorting, or grading produce': 'POST_HARVEST_HANDLING',
1074
2145
  'packaging, cooling, or moving produce to storage': 'POST_HARVEST_PACKAGING',
1075
2146
  'checking or changing temperature (cold storage)': 'COLD_STORAGE_TEMPERATURE',
1076
- 'other post-harvest activities including storage and maintenance':
1077
- 'OTHER_POST_HARVEST_ACTIVITY',
2147
+ 'other post-harvest activities including storage and maintenance': 'OTHER_POST_HARVEST_ACTIVITY',
1078
2148
  'sales order (produce)': 'SALE_PRODUCE_ORDER',
1079
2149
  'sales order (other)': 'OTHER_SALE_ORDER',
1080
2150
  'checking chlorine levels in water': 'WATER_TESTING',
@@ -1084,10 +2154,45 @@ export const AGENT_TEXT_TO_ACTIVITIES: Readonly<Record<string, string>> = {
1084
2154
  'worker hygiene procedures': 'HYGIENE_PROCEDURE',
1085
2155
  'notes about an employee': 'EMPLOYEE_NOTE',
1086
2156
  'general operation notes': 'OPERATION_NOTE',
1087
- 'receipts for market credits, coins, or voucher redemption':
1088
- 'MARKET_CREDIT_RECEIPT',
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',
1089
2176
  'attendance for vendor': 'MARKET_ATTENDANCE',
1090
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',
1091
2196
  'sanitation conditions and cleanliness': 'SANITATION_PRACTICE',
1092
2197
  'PPE compliance, worker practices, training, illness': 'PERSONNEL_PRACTICE',
1093
2198
  'production and harvest equipments/tools/materials': 'EQUIPMENT_MATERIAL',
@@ -1098,6 +2203,5 @@ export const AGENT_TEXT_TO_ACTIVITIES: Readonly<Record<string, string>> = {
1098
2203
  'environmental exposure and wildlife activity': 'ENVIRONMENT',
1099
2204
  'field conditions, flood zones, erosion': 'FIELD_CONDITION',
1100
2205
  'adjacent land observations, risks': 'ADJACENT_LAND',
1101
- 'document control, record availability, and accuracy': 'RECORDKEEPING',
1102
2206
  'facilities, physical infrastructure, and maintenance': 'FACILITIES',
1103
2207
  };