datastake-daf 0.6.732 → 0.6.734

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.732",
3
+ "version": "0.6.734",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -9,22 +9,35 @@ export const storyData = {
9
9
  getApiBaseUrl,
10
10
  getAppHeader,
11
11
  form: {
12
- form:
13
- {
12
+ form: {
14
13
  "id": "identification",
15
14
  "position": 1,
15
+ "meta": {
16
+ "meta": {
17
+ "hidden": true
18
+ },
19
+ "kobo": {
20
+ "sectionName": {
21
+ "English (en)": "Identification",
22
+ "French (fr)": "Identification",
23
+ "sp": "Identificación"
24
+ }
25
+ }
26
+ },
16
27
  "date": {
17
- "_id": "68e77861e8ffe2dc9621c980",
18
- "id": "20112d2f-5c35-4667-8aa5-d19f8e77434c",
28
+ "_id": "6903e169de03f5cd64f66f38",
29
+ "id": "3ce07178-d73c-41c3-a0f6-c90d299c6055",
19
30
  "dataId": "date",
20
31
  "section": "identification",
21
32
  "type": "date",
22
33
  "meta": {
23
- "group": "identification",
34
+ "comment": false,
24
35
  "notApplicable": false,
25
36
  "notAvailable": false,
26
- "comment": true,
27
- "versioning": true,
37
+ "disableEdit": {
38
+ "create": false,
39
+ "edit": true
40
+ },
28
41
  "mandatory": true
29
42
  },
30
43
  "position": 2,
@@ -35,142 +48,110 @@ export const storyData = {
35
48
  }
36
49
  ],
37
50
  "scope": [
38
- "global",
39
- "modal",
40
- "registrationFormDocuments",
41
- "documents",
42
- "pictures",
43
- "evaluationDocumentation",
44
- "evidenceAmoundGoldProduced",
45
- "investmentNote",
46
- "financialAnalysis",
47
- "createDocument"
51
+ "event",
52
+ "trainingEvent",
53
+ "monitoringEvent",
54
+ "createEventModal",
55
+ "createMonitoringModal",
56
+ "createPlantingCycleModal",
57
+ "createRestorationModal",
58
+ "createEngagementModal",
59
+ "createOperationModal",
60
+ "createActivityModal",
61
+ "operationsActivity",
62
+ "engagementActivity",
63
+ "monitoringActivity",
64
+ "restorationActivity",
65
+ "activity",
66
+ "restorationActivityStart",
67
+ "restorationActivityEnd",
68
+ "monitoringActivity",
69
+ "engagementActivity",
70
+ "operationsActivity",
71
+ "straatos"
48
72
  ],
49
73
  "label": "Date",
50
- "createdAt": "2025-10-09T08:55:00.585Z",
51
- "updatedAt": "2025-10-09T08:55:00.585Z",
74
+ "createdAt": "2025-10-30T22:06:34.850Z",
75
+ "updatedAt": "2025-10-30T22:06:34.850Z",
52
76
  "__v": 0
53
77
  },
54
- "documents": {
55
- "_id": "68e77861e8ffe2dc9621c986",
56
- "id": "9357626a-1f08-40af-81f3-1263204014d6",
57
- "dataId": "documents",
78
+ "name": {
79
+ "_id": "6903e169de03f5cd64f66f52",
80
+ "id": "af308827-f01f-442f-bc68-0b68e25d1895",
81
+ "dataId": "name",
58
82
  "section": "identification",
59
- "type": "upload",
83
+ "type": "text",
60
84
  "meta": {
61
85
  "comment": false,
62
86
  "notApplicable": false,
63
87
  "notAvailable": false,
64
- "group": "documentation",
65
- "versioning": true,
66
- "mandatory": true
67
- },
68
- "showIf": "type is documents",
69
- "position": 4,
70
- "dataLink": {
71
- "entity": "Documents",
72
- "createUserVersion": false,
73
- "createNew": true,
74
- "collection": "documents",
75
- "formNamespace": "DOCUMENTS",
76
- "keys": [
77
- "title"
78
- ],
79
- "pickKeys": []
80
- },
81
- "rules": [
82
- {
83
- "message": "errors::field is required",
84
- "required": true
85
- },
86
- {
87
- "accept": ".doc,.docx,.pdf,.xls,.xlsx",
88
- "type": "any"
88
+ "defaultValue": "Training related to operations",
89
+ "group": "identification",
90
+ "mandatory": false,
91
+ "kobo": {
92
+ "fieldName": {
93
+ "English (en)": "Title",
94
+ "French (fr)": "Titre",
95
+ "sp": "Título"
96
+ }
89
97
  },
90
- {
91
- "max": 5,
92
- "type": "any"
98
+ "disableEdit": {
99
+ "create": false,
100
+ "edit": true
93
101
  }
94
- ],
95
- "scope": [
96
- "global",
97
- "registrationFormDocuments",
98
- "evaluationDocumentation",
99
- "documents",
100
- "evidenceAmoundGoldProduced",
101
- "investmentNote",
102
- "financialAnalysis",
103
- "createDocument",
104
- "projectDocument"
105
- ],
106
- "label": "Upload file",
107
- "tableLabel": "Content",
108
- "createdAt": "2025-10-09T08:55:03.354Z",
109
- "updatedAt": "2025-10-09T08:55:03.354Z",
110
- "__v": 0
111
- },
112
- "links": {
113
- "_id": "68e77861e8ffe2dc9621c98a",
114
- "id": "5788f425-56cd-4d32-aec8-c540f3fa2e5d",
115
- "dataId": "links",
116
- "section": "identification",
117
- "type": "link",
118
- "meta": {
119
- "comment": false,
120
- "notApplicable": false,
121
- "notAvailable": false,
122
- "group": "documentation",
123
- "versioning": true,
124
- "mandatory": true
125
- },
126
- "showIf": "type is link",
127
- "position": 4,
128
- "dataLink": {
129
- "entity": "Documents",
130
- "createUserVersion": false,
131
- "createNew": true,
132
- "collection": "documents",
133
- "formNamespace": "DOCUMENTS",
134
- "keys": [
135
- "title"
136
- ],
137
- "pickKeys": []
138
102
  },
103
+ "position": 3,
139
104
  "rules": [
140
105
  {
141
- "message": "errors::field is required",
142
- "required": true
106
+ "required": true,
107
+ "message": "errors::field is required"
143
108
  }
144
109
  ],
145
110
  "scope": [
146
- "global",
147
- "modal",
148
- "registrationFormDocuments",
149
- "evaluationDocumentation",
150
- "evidenceAmoundGoldProduced",
151
- "financialAnalysis",
152
- "investmentNote",
153
- "createDocument"
111
+ "event",
112
+ "straatos",
113
+ "trainingEvent",
114
+ "monitoringEvent",
115
+ "createEventModal",
116
+ "createActivityModal",
117
+ "createOperationModal",
118
+ "createMonitoringModal",
119
+ "createRestorationModal",
120
+ "createPlantingCycleModal",
121
+ "createEngagementModal",
122
+ "engagementActivity",
123
+ "operationsActivity",
124
+ "restorationActivity",
125
+ "monitoringActivity",
126
+ "operationsActivity",
127
+ "engagementActivity",
128
+ "monitoringActivity",
129
+ "restorationActivity",
130
+ "restorationActivityStart",
131
+ "activity"
154
132
  ],
155
- "label": "Paste Link",
156
- "tableLabel": "Document",
157
- "createdAt": "2025-10-09T08:55:03.357Z",
158
- "updatedAt": "2025-10-09T08:55:03.357Z",
133
+ "label": "Activity title",
134
+ "createdAt": "2025-10-30T22:06:34.865Z",
135
+ "updatedAt": "2025-10-30T22:06:34.865Z",
159
136
  "__v": 0
160
137
  },
161
- "name": {
162
- "_id": "68e77861e8ffe2dc9621c98c",
163
- "id": "88f5305a-3380-4409-ad8f-05e1683a3089",
164
- "dataId": "name",
138
+ "subCategory": {
139
+ "_id": "6903e169de03f5cd64f66f72",
140
+ "id": "85f91af5-dfe2-403b-812d-182425fba422",
141
+ "dataId": "subCategory",
165
142
  "section": "identification",
166
- "type": "text",
143
+ "type": "select",
167
144
  "meta": {
168
145
  "group": "identification",
146
+ "comment": false,
169
147
  "notApplicable": false,
170
- "notAvailable": false,
171
- "comment": true,
172
- "versioning": true,
173
- "mandatory": true
148
+ "notAvailable": true,
149
+ "disableEdit": {
150
+ "create": false,
151
+ "edit": true
152
+ },
153
+ "mandatory": true,
154
+ "conditionalOptions": "$$_options.activity.operationType"
174
155
  },
175
156
  "position": 1,
176
157
  "rules": [
@@ -180,90 +161,93 @@ export const storyData = {
180
161
  }
181
162
  ],
182
163
  "scope": [
183
- "global",
184
- "modal",
185
- "registrationFormDocuments",
186
- "documents",
187
- "evaluationDocumentation",
188
- "pictures",
189
- "evidenceAmoundGoldProduced",
190
- "investmentNote",
191
- "financialAnalysis",
192
- "createDocument",
193
- "projectDocument"
164
+ "event",
165
+ "createEventModal",
166
+ "createOperationModal",
167
+ "createEngagementModal",
168
+ "createMonitoringModal",
169
+ "createRestorationModal",
170
+ "createPlantingCycleModal",
171
+ "activity",
172
+ "operationsActivity",
173
+ "createActivityModal",
174
+ "engagementActivity",
175
+ "monitoringActivity",
176
+ "restorationActivity",
177
+ "trainingEvent",
178
+ "straatos"
194
179
  ],
195
- "label": "Title",
196
- "createdAt": "2025-10-09T08:55:00.689Z",
197
- "updatedAt": "2025-10-09T08:55:00.689Z",
198
- "__v": 0
199
- },
200
- "pictures": {
201
- "_id": "68e77861e8ffe2dc9621c98e",
202
- "id": "2c0ffe9e-ddab-4e1c-93da-a6e681a93158",
203
- "dataId": "pictures",
204
- "section": "identification",
205
- "type": "imageUpload",
206
- "meta": {
207
- "group": "identification",
208
- "notApplicable": true,
209
- "notAvailable": true,
210
- "comment": true,
211
- "versioning": true,
212
- "mandatory": true
213
- },
214
- "showIf": "type is pictures",
215
- "position": 4,
216
- "dataLink": {
217
- "entity": "Documents",
218
- "createUserVersion": false,
219
- "createNew": true,
220
- "collection": "documents",
221
- "formNamespace": "DOCUMENTS",
222
- "keys": [
223
- "title"
224
- ],
225
- "pickKeys": []
226
- },
227
- "rules": [
180
+ "label": "Type of activity",
181
+ "options": [
228
182
  {
229
- "message": "errors::field is required",
230
- "type": "any"
183
+ "label": "Training",
184
+ "value": "training"
231
185
  },
232
186
  {
233
- "max": 1,
234
- "type": "any"
187
+ "label": "Other",
188
+ "value": "other"
235
189
  },
236
190
  {
237
- "required": true,
238
- "message": "errors::field is required"
191
+ "label": "Commercial intervention",
192
+ "value": "commercial_intervention"
193
+ },
194
+ {
195
+ "label": "Operational training",
196
+ "value": "operational_training"
197
+ },
198
+ {
199
+ "label": "Equipment provision",
200
+ "value": "equipment_provision"
201
+ },
202
+ {
203
+ "label": "Financial intervention",
204
+ "value": "financial_intervention"
205
+ },
206
+ {
207
+ "label": "Infrastructure",
208
+ "value": "infrastructure"
209
+ },
210
+ {
211
+ "label": "Investigation & research",
212
+ "value": "investigation_research"
213
+ },
214
+ {
215
+ "label": "Legalisation",
216
+ "value": "legalisation"
217
+ },
218
+ {
219
+ "label": "Policy & enforcement",
220
+ "value": "policy_enforcement"
221
+ },
222
+ {
223
+ "label": "Technical intervention",
224
+ "value": "technical_intervention"
225
+ },
226
+ {
227
+ "label": "Site visit",
228
+ "value": "site_visit"
239
229
  }
240
230
  ],
241
- "scope": [
242
- "global",
243
- "modal",
244
- "registrationFormDocuments",
245
- "pictures",
246
- "documents",
247
- "evaluationDocumentation",
248
- "evidenceAmoundGoldProduced",
249
- "investmentNote",
250
- "financialAnalysis",
251
- "createDocument"
252
- ],
253
- "label": "Upload file",
254
- "tableLabel": "Content",
255
- "createdAt": "2025-10-09T08:55:03.424Z",
256
- "updatedAt": "2025-10-09T08:55:03.424Z",
231
+ "createdAt": "2025-10-30T22:06:36.634Z",
232
+ "updatedAt": "2025-10-30T22:06:36.634Z",
257
233
  "__v": 0
258
234
  },
259
- "type": {
260
- "_id": "68e77861e8ffe2dc9621c994",
261
- "id": "67dea7ae-6622-4570-b796-ccdaf4ca73d4",
262
- "dataId": "type",
235
+ "typeOfEvent": {
236
+ "_id": "6903e169de03f5cd64f66f74",
237
+ "id": "f44a3e74-e68a-40a0-a7f5-62189bc068a2",
238
+ "dataId": "typeOfEvent",
263
239
  "section": "identification",
264
240
  "type": "select",
265
241
  "meta": {
266
- "versioning": true,
242
+ "group": "identification",
243
+ "comment": false,
244
+ "notApplicable": false,
245
+ "notAvailable": true,
246
+ "defaultValue": "operation",
247
+ "disableEdit": {
248
+ "edit": true,
249
+ "create": true
250
+ },
267
251
  "mandatory": true
268
252
  },
269
253
  "position": 0,
@@ -274,93 +258,37 @@ export const storyData = {
274
258
  }
275
259
  ],
276
260
  "scope": [
277
- "global",
278
- "modal",
279
- "registrationFormDocuments",
280
- "documents",
281
- "evaluationDocumentation",
282
- "pictures",
283
- "evidenceAmoundGoldProduced",
284
- "investmentNote",
285
- "financialAnalysis",
286
- "createDocument"
261
+ "createOperationModal",
262
+ "createEngagementModal",
263
+ "createMonitoringModal",
264
+ "createRestorationModal",
265
+ "createActivityModal"
287
266
  ],
288
- "label": "Type",
267
+ "label": "Category",
289
268
  "options": [
290
269
  {
291
- "label": "Document",
292
- "value": "documents"
270
+ "label": "Operation",
271
+ "value": "operation"
293
272
  },
294
273
  {
295
- "label": "Image",
296
- "value": "pictures"
274
+ "label": "Restoration",
275
+ "value": "restoration"
297
276
  },
298
277
  {
299
- "label": "Video",
300
- "value": "video"
278
+ "label": "Monitoring",
279
+ "value": "monitoring"
301
280
  },
302
281
  {
303
- "label": "Link",
304
- "value": "link"
305
- }
306
- ],
307
- "createdAt": "2025-10-09T08:55:04.175Z",
308
- "updatedAt": "2025-10-09T08:55:04.175Z",
309
- "__v": 0
310
- },
311
- "videos": {
312
- "_id": "68e77861e8ffe2dc9621c996",
313
- "id": "acd697ae-4d0a-4c86-abfd-028e980c9dfe",
314
- "dataId": "videos",
315
- "section": "identification",
316
- "type": "videoUpload",
317
- "meta": {
318
- "comment": false,
319
- "notApplicable": false,
320
- "notAvailable": false,
321
- "group": "documentation",
322
- "versioning": true,
323
- "mandatory": true
324
- },
325
- "showIf": "type is video",
326
- "position": 4,
327
- "dataLink": {
328
- "entity": "Documents",
329
- "createUserVersion": false,
330
- "createNew": true,
331
- "collection": "documents",
332
- "formNamespace": "DOCUMENTS",
333
- "keys": [
334
- "title"
335
- ],
336
- "pickKeys": []
337
- },
338
- "rules": [
339
- {
340
- "message": "errors::field is required",
341
- "required": true
282
+ "label": "Engagement",
283
+ "value": "engagement"
342
284
  }
343
285
  ],
344
- "scope": [
345
- "global",
346
- "modal",
347
- "registrationFormDocuments",
348
- "documents",
349
- "evaluationDocumentation",
350
- "evidenceAmoundGoldProduced",
351
- "createDocument",
352
- "investmentNote",
353
- "financialAnalysis"
354
- ],
355
- "label": "Upload file",
356
- "tableLabel": "Content",
357
- "createdAt": "2025-10-09T08:55:03.362Z",
358
- "updatedAt": "2025-10-09T08:55:03.362Z",
286
+ "createdAt": "2025-10-30T22:06:36.144Z",
287
+ "updatedAt": "2025-10-30T22:06:36.144Z",
359
288
  "__v": 0
360
289
  },
361
- "label": "Identification",
362
- "subTitle": "Identification"
363
- },
290
+ "label": "Identification"
291
+ }
364
292
  },
365
293
  data: {
366
294
  date: "2025-08-11T15:54:02.839Z",
@@ -35,7 +35,7 @@ export const useWidgetFetch = ({config, getData = DashboardService.getWidget, on
35
35
 
36
36
  useEffect(() => {
37
37
  fetchData();
38
- }, []);
38
+ }, [config]);
39
39
 
40
40
  return {
41
41
  data,