argos-cli 0.3.1__py3-none-any.whl
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.
- argos/__init__.py +5 -0
- argos/__main__.py +4 -0
- argos/adapters/__init__.py +9 -0
- argos/adapters/_libreoffice_worker.py +111 -0
- argos/adapters/ai.py +1506 -0
- argos/adapters/ai_remote.py +654 -0
- argos/adapters/attachment_conversion.py +132 -0
- argos/adapters/capabilities.py +31 -0
- argos/adapters/chart_render.py +72 -0
- argos/adapters/docx_pdf.py +2953 -0
- argos/adapters/limesurvey.py +1079 -0
- argos/adapters/model_call.py +274 -0
- argos/adapters/report_publication.py +1530 -0
- argos/adapters/url_fetch.py +146 -0
- argos/adapters/xlsx.py +454 -0
- argos/analytics.py +731 -0
- argos/assets.py +257 -0
- argos/audit_result.py +369 -0
- argos/booleans.py +105 -0
- argos/catalog.py +1205 -0
- argos/cli.py +606 -0
- argos/contracts.py +532 -0
- argos/core.py +325 -0
- argos/default_skills/README.md +23 -0
- argos/default_skills/criar-matriz-planejamento/SKILL.md +200 -0
- argos/default_skills/elaborar-survey-limesurvey/SKILL.md +106 -0
- argos/default_skills/operar-argos/SKILL.md +74 -0
- argos/default_skills/verificar-diretrizes-fiscalizacao/SKILL.md +129 -0
- argos/default_skills/verificar-diretrizes-fiscalizacao/assets/relatorio-avaliacao.md +54 -0
- argos/default_skills/verificar-diretrizes-fiscalizacao/references/contrato-saidas.md +36 -0
- argos/default_skills/verificar-diretrizes-fiscalizacao/references/papeis-das-pastas.md +37 -0
- argos/default_skills/verificar-diretrizes-fiscalizacao/references/roteiro-verificacoes.md +27 -0
- argos/default_skills/verificar-diretrizes-fiscalizacao/scripts/avaliacao.py +253 -0
- argos/engines/__init__.py +3 -0
- argos/engines/adjustments.py +571 -0
- argos/engines/analytics.py +195 -0
- argos/engines/audit.py +2730 -0
- argos/engines/evaluation.py +6088 -0
- argos/engines/index.py +1683 -0
- argos/engines/matrix.py +5736 -0
- argos/engines/matrix_html.py +698 -0
- argos/engines/model_request.py +201 -0
- argos/engines/report_document.py +137 -0
- argos/engines/reports.py +1200 -0
- argos/engines/survey.py +4445 -0
- argos/envfile.py +53 -0
- argos/errors.py +29 -0
- argos/evidence_staging.py +293 -0
- argos/executions.py +565 -0
- argos/findings_matrix.py +2549 -0
- argos/fingerprints.py +487 -0
- argos/index_dsl.py +2100 -0
- argos/matrix_markdown.py +475 -0
- argos/matrix_widths.py +280 -0
- argos/pipeline.py +1745 -0
- argos/products.py +220 -0
- argos/progress.py +221 -0
- argos/project.py +608 -0
- argos/report_config.py +158 -0
- argos/resources/ESPECIFICACAO_MARKDOWN_MATRIZ_ACHADOS.md +539 -0
- argos/resources/ESPECIFICACAO_MARKDOWN_MATRIZ_PLANEJAMENTO.md +1000 -0
- argos/resources/ESPECIFICACAO_UNIFICADA_MATRIZES_V1_3.md +1142 -0
- argos/resources/anexo-evidencias-base.docx +0 -0
- argos/resources/argos-index-dsl-v1.schema.json +539 -0
- argos/resources/argos-report-config-v1.schema.json +113 -0
- argos/resources/diretrizes-projeto.md +476 -0
- argos/resources/env.example +37 -0
- argos/resources/exemplos/matriz_achados_boilerplate.md +61 -0
- argos/resources/exemplos/matriz_achados_draft.md +106 -0
- argos/resources/exemplos/matriz_achados_larguras_v1_3.md +114 -0
- argos/resources/exemplos/matriz_achados_v1_3.md +107 -0
- argos/resources/exemplos/matriz_planejamento_boilerplate.md +64 -0
- argos/resources/exemplos/matriz_planejamento_larguras_v1_3.md +115 -0
- argos/resources/exemplos/matriz_planejamento_v1_3.md +108 -0
- argos/resources/template-base-estilos-sigiloso.docx +0 -0
- argos/resources/template-base-estilos.docx +0 -0
- argos/resources/template-matriz-planejamento.docx +0 -0
- argos/resources/template-relatorio-consolidado-comum.docx +0 -0
- argos/resources/template-relatorio-consolidado-institucional.docx +0 -0
- argos/response_profiles.py +856 -0
- argos/scheduler.py +142 -0
- argos/status.py +367 -0
- argos/store.py +1228 -0
- argos/survey_collection.py +832 -0
- argos/telemetry.py +84 -0
- argos/tui.py +1262 -0
- argos/tui.tcss +827 -0
- argos/tui_models.py +466 -0
- argos/tui_path.py +155 -0
- argos/tui_widgets.py +482 -0
- argos/version.py +3 -0
- argos_cli-0.3.1.dist-info/METADATA +570 -0
- argos_cli-0.3.1.dist-info/RECORD +96 -0
- argos_cli-0.3.1.dist-info/WHEEL +5 -0
- argos_cli-0.3.1.dist-info/entry_points.txt +2 -0
- argos_cli-0.3.1.dist-info/top_level.txt +1 -0
|
Binary file
|
|
@@ -0,0 +1,539 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://example.invalid/argos-index-dsl/v1/schema",
|
|
4
|
+
"title": "Argos Index DSL v1 (validação estrutural, não semântica)",
|
|
5
|
+
"description": "Compatível com os quatro YAMLs fornecidos. Executar validação semântica complementar.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"formato",
|
|
10
|
+
"metadata",
|
|
11
|
+
"entrada",
|
|
12
|
+
"conversores",
|
|
13
|
+
"regras",
|
|
14
|
+
"calculo"
|
|
15
|
+
],
|
|
16
|
+
"properties": {
|
|
17
|
+
"formato": {
|
|
18
|
+
"const": "argos-index-dsl/v1"
|
|
19
|
+
},
|
|
20
|
+
"metadata": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"properties": {
|
|
23
|
+
"nome": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"minLength": 1
|
|
26
|
+
},
|
|
27
|
+
"versao": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"minLength": 1
|
|
30
|
+
},
|
|
31
|
+
"raiz": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"minLength": 1
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"required": [
|
|
37
|
+
"nome",
|
|
38
|
+
"versao",
|
|
39
|
+
"raiz"
|
|
40
|
+
],
|
|
41
|
+
"additionalProperties": false
|
|
42
|
+
},
|
|
43
|
+
"entrada": {
|
|
44
|
+
"type": "object",
|
|
45
|
+
"properties": {
|
|
46
|
+
"id_organizacao": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"minLength": 1
|
|
49
|
+
},
|
|
50
|
+
"linhas_vazias": {
|
|
51
|
+
"enum": [
|
|
52
|
+
"erro"
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
"filtrar_validos": {
|
|
56
|
+
"type": "object",
|
|
57
|
+
"properties": {
|
|
58
|
+
"obrigatorio_preenchido": {
|
|
59
|
+
"type": "array",
|
|
60
|
+
"minItems": 1,
|
|
61
|
+
"items": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"minLength": 1
|
|
64
|
+
},
|
|
65
|
+
"uniqueItems": true
|
|
66
|
+
},
|
|
67
|
+
"politica_incompletos": {
|
|
68
|
+
"enum": [
|
|
69
|
+
"excluir",
|
|
70
|
+
"erro"
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"required": [
|
|
75
|
+
"obrigatorio_preenchido",
|
|
76
|
+
"politica_incompletos"
|
|
77
|
+
],
|
|
78
|
+
"additionalProperties": false
|
|
79
|
+
},
|
|
80
|
+
"desduplicacao": {
|
|
81
|
+
"type": "object",
|
|
82
|
+
"properties": {
|
|
83
|
+
"chave": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"minLength": 1
|
|
86
|
+
},
|
|
87
|
+
"ordenar_por": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"minLength": 1
|
|
90
|
+
},
|
|
91
|
+
"manter": {
|
|
92
|
+
"enum": [
|
|
93
|
+
"ultimo"
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"required": [
|
|
98
|
+
"chave",
|
|
99
|
+
"ordenar_por",
|
|
100
|
+
"manter"
|
|
101
|
+
],
|
|
102
|
+
"additionalProperties": false
|
|
103
|
+
},
|
|
104
|
+
"localizadores": {
|
|
105
|
+
"type": "object",
|
|
106
|
+
"minProperties": 1,
|
|
107
|
+
"additionalProperties": {
|
|
108
|
+
"type": "object",
|
|
109
|
+
"properties": {
|
|
110
|
+
"padroes": {
|
|
111
|
+
"type": "array",
|
|
112
|
+
"minItems": 1,
|
|
113
|
+
"items": {
|
|
114
|
+
"type": "string",
|
|
115
|
+
"minLength": 1
|
|
116
|
+
},
|
|
117
|
+
"uniqueItems": true
|
|
118
|
+
},
|
|
119
|
+
"item_regex": {
|
|
120
|
+
"type": "string",
|
|
121
|
+
"minLength": 1
|
|
122
|
+
},
|
|
123
|
+
"colisao_alias": {
|
|
124
|
+
"enum": [
|
|
125
|
+
"erro"
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
"ignorar_colunas_regex": {
|
|
129
|
+
"type": "array",
|
|
130
|
+
"items": {
|
|
131
|
+
"type": "string",
|
|
132
|
+
"minLength": 1
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"required": [
|
|
137
|
+
"padroes",
|
|
138
|
+
"item_regex",
|
|
139
|
+
"colisao_alias"
|
|
140
|
+
],
|
|
141
|
+
"additionalProperties": false
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
"contratos_detalhes": {
|
|
145
|
+
"type": "object",
|
|
146
|
+
"minProperties": 1,
|
|
147
|
+
"additionalProperties": {
|
|
148
|
+
"type": "object",
|
|
149
|
+
"properties": {
|
|
150
|
+
"politica_item_esperado_ausente": {
|
|
151
|
+
"enum": [
|
|
152
|
+
"erro"
|
|
153
|
+
]
|
|
154
|
+
},
|
|
155
|
+
"politica_item_extra_no_cabecalho": {
|
|
156
|
+
"enum": [
|
|
157
|
+
"erro"
|
|
158
|
+
]
|
|
159
|
+
},
|
|
160
|
+
"itens_por_questao": {
|
|
161
|
+
"type": "object",
|
|
162
|
+
"minProperties": 1,
|
|
163
|
+
"additionalProperties": {
|
|
164
|
+
"type": "array",
|
|
165
|
+
"items": {
|
|
166
|
+
"type": "string",
|
|
167
|
+
"minLength": 1
|
|
168
|
+
},
|
|
169
|
+
"uniqueItems": true
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
"required": [
|
|
174
|
+
"politica_item_esperado_ausente",
|
|
175
|
+
"politica_item_extra_no_cabecalho",
|
|
176
|
+
"itens_por_questao"
|
|
177
|
+
],
|
|
178
|
+
"additionalProperties": false
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
"required": [
|
|
183
|
+
"id_organizacao",
|
|
184
|
+
"linhas_vazias"
|
|
185
|
+
],
|
|
186
|
+
"additionalProperties": false
|
|
187
|
+
},
|
|
188
|
+
"conversores": {
|
|
189
|
+
"type": "object",
|
|
190
|
+
"additionalProperties": {
|
|
191
|
+
"type": "object",
|
|
192
|
+
"properties": {
|
|
193
|
+
"vazio": {
|
|
194
|
+
"enum": [
|
|
195
|
+
"erro",
|
|
196
|
+
"zero"
|
|
197
|
+
]
|
|
198
|
+
},
|
|
199
|
+
"desconhecido": {
|
|
200
|
+
"enum": [
|
|
201
|
+
"erro"
|
|
202
|
+
]
|
|
203
|
+
},
|
|
204
|
+
"valores": {
|
|
205
|
+
"type": "object",
|
|
206
|
+
"minProperties": 1,
|
|
207
|
+
"additionalProperties": {
|
|
208
|
+
"type": "number"
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
"aliases": {
|
|
212
|
+
"type": "object",
|
|
213
|
+
"additionalProperties": {
|
|
214
|
+
"type": "string",
|
|
215
|
+
"minLength": 1
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"required": [
|
|
220
|
+
"vazio",
|
|
221
|
+
"desconhecido",
|
|
222
|
+
"valores"
|
|
223
|
+
],
|
|
224
|
+
"additionalProperties": false
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
"regras": {
|
|
228
|
+
"type": "object",
|
|
229
|
+
"additionalProperties": {
|
|
230
|
+
"type": "object",
|
|
231
|
+
"properties": {
|
|
232
|
+
"operacao": {
|
|
233
|
+
"enum": [
|
|
234
|
+
"mapeamento",
|
|
235
|
+
"media_ponderada",
|
|
236
|
+
"media_binaria",
|
|
237
|
+
"soma_ponderada",
|
|
238
|
+
"desconto_proporcional"
|
|
239
|
+
]
|
|
240
|
+
},
|
|
241
|
+
"componente": {
|
|
242
|
+
"type": "string",
|
|
243
|
+
"minLength": 1
|
|
244
|
+
},
|
|
245
|
+
"conversor": {
|
|
246
|
+
"type": "string",
|
|
247
|
+
"minLength": 1
|
|
248
|
+
},
|
|
249
|
+
"localizador": {
|
|
250
|
+
"type": "string",
|
|
251
|
+
"minLength": 1
|
|
252
|
+
},
|
|
253
|
+
"detalhes": {
|
|
254
|
+
"type": "object",
|
|
255
|
+
"properties": {
|
|
256
|
+
"localizador": {
|
|
257
|
+
"type": "string",
|
|
258
|
+
"minLength": 1
|
|
259
|
+
},
|
|
260
|
+
"conversor": {
|
|
261
|
+
"type": "string",
|
|
262
|
+
"minLength": 1
|
|
263
|
+
},
|
|
264
|
+
"contrato": {
|
|
265
|
+
"type": "string",
|
|
266
|
+
"minLength": 1
|
|
267
|
+
},
|
|
268
|
+
"vazio": {
|
|
269
|
+
"enum": [
|
|
270
|
+
"erro",
|
|
271
|
+
"zero"
|
|
272
|
+
]
|
|
273
|
+
},
|
|
274
|
+
"sem_itens_esperados": {
|
|
275
|
+
"enum": [
|
|
276
|
+
"manter_base"
|
|
277
|
+
]
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
"required": [
|
|
281
|
+
"localizador",
|
|
282
|
+
"conversor"
|
|
283
|
+
],
|
|
284
|
+
"additionalProperties": false
|
|
285
|
+
},
|
|
286
|
+
"desconto_por_codigo": {
|
|
287
|
+
"type": "object",
|
|
288
|
+
"minProperties": 1,
|
|
289
|
+
"additionalProperties": {
|
|
290
|
+
"type": "number"
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
"outros_codigos": {
|
|
294
|
+
"enum": [
|
|
295
|
+
"sem_desconto"
|
|
296
|
+
]
|
|
297
|
+
},
|
|
298
|
+
"range": {
|
|
299
|
+
"type": "array",
|
|
300
|
+
"items": {
|
|
301
|
+
"type": "number"
|
|
302
|
+
},
|
|
303
|
+
"minItems": 2,
|
|
304
|
+
"maxItems": 2
|
|
305
|
+
},
|
|
306
|
+
"componente_ausente": {
|
|
307
|
+
"enum": [
|
|
308
|
+
"erro"
|
|
309
|
+
]
|
|
310
|
+
},
|
|
311
|
+
"tolerancia_soma_pesos": {
|
|
312
|
+
"type": "number",
|
|
313
|
+
"minimum": 0
|
|
314
|
+
},
|
|
315
|
+
"contradicao_exclusiva": {
|
|
316
|
+
"enum": [
|
|
317
|
+
"erro"
|
|
318
|
+
]
|
|
319
|
+
},
|
|
320
|
+
"coluna_ausente": {
|
|
321
|
+
"enum": [
|
|
322
|
+
"erro"
|
|
323
|
+
]
|
|
324
|
+
},
|
|
325
|
+
"vazio": {
|
|
326
|
+
"enum": [
|
|
327
|
+
"erro",
|
|
328
|
+
"zero"
|
|
329
|
+
]
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
"required": [
|
|
333
|
+
"operacao"
|
|
334
|
+
],
|
|
335
|
+
"additionalProperties": false
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
"calculo": {
|
|
339
|
+
"type": "object",
|
|
340
|
+
"minProperties": 1,
|
|
341
|
+
"additionalProperties": {
|
|
342
|
+
"type": "object",
|
|
343
|
+
"properties": {
|
|
344
|
+
"operacao": {
|
|
345
|
+
"enum": [
|
|
346
|
+
"mapeamento",
|
|
347
|
+
"media_ponderada",
|
|
348
|
+
"media_binaria",
|
|
349
|
+
"soma_ponderada",
|
|
350
|
+
"desconto_proporcional"
|
|
351
|
+
]
|
|
352
|
+
},
|
|
353
|
+
"conversor": {
|
|
354
|
+
"type": "string",
|
|
355
|
+
"minLength": 1
|
|
356
|
+
},
|
|
357
|
+
"localizador": {
|
|
358
|
+
"type": "string",
|
|
359
|
+
"minLength": 1
|
|
360
|
+
},
|
|
361
|
+
"detalhes": {
|
|
362
|
+
"type": "object",
|
|
363
|
+
"properties": {
|
|
364
|
+
"localizador": {
|
|
365
|
+
"type": "string",
|
|
366
|
+
"minLength": 1
|
|
367
|
+
},
|
|
368
|
+
"conversor": {
|
|
369
|
+
"type": "string",
|
|
370
|
+
"minLength": 1
|
|
371
|
+
},
|
|
372
|
+
"contrato": {
|
|
373
|
+
"type": "string",
|
|
374
|
+
"minLength": 1
|
|
375
|
+
},
|
|
376
|
+
"vazio": {
|
|
377
|
+
"enum": [
|
|
378
|
+
"erro",
|
|
379
|
+
"zero"
|
|
380
|
+
]
|
|
381
|
+
},
|
|
382
|
+
"sem_itens_esperados": {
|
|
383
|
+
"enum": [
|
|
384
|
+
"manter_base"
|
|
385
|
+
]
|
|
386
|
+
}
|
|
387
|
+
},
|
|
388
|
+
"required": [
|
|
389
|
+
"localizador",
|
|
390
|
+
"conversor"
|
|
391
|
+
],
|
|
392
|
+
"additionalProperties": false
|
|
393
|
+
},
|
|
394
|
+
"desconto_por_codigo": {
|
|
395
|
+
"type": "object",
|
|
396
|
+
"minProperties": 1,
|
|
397
|
+
"additionalProperties": {
|
|
398
|
+
"type": "number"
|
|
399
|
+
}
|
|
400
|
+
},
|
|
401
|
+
"outros_codigos": {
|
|
402
|
+
"enum": [
|
|
403
|
+
"sem_desconto"
|
|
404
|
+
]
|
|
405
|
+
},
|
|
406
|
+
"range": {
|
|
407
|
+
"type": "array",
|
|
408
|
+
"items": {
|
|
409
|
+
"type": "number"
|
|
410
|
+
},
|
|
411
|
+
"minItems": 2,
|
|
412
|
+
"maxItems": 2
|
|
413
|
+
},
|
|
414
|
+
"componente_ausente": {
|
|
415
|
+
"enum": [
|
|
416
|
+
"erro"
|
|
417
|
+
]
|
|
418
|
+
},
|
|
419
|
+
"tolerancia_soma_pesos": {
|
|
420
|
+
"type": "number",
|
|
421
|
+
"minimum": 0
|
|
422
|
+
},
|
|
423
|
+
"contradicao_exclusiva": {
|
|
424
|
+
"enum": [
|
|
425
|
+
"erro"
|
|
426
|
+
]
|
|
427
|
+
},
|
|
428
|
+
"coluna_ausente": {
|
|
429
|
+
"enum": [
|
|
430
|
+
"erro"
|
|
431
|
+
]
|
|
432
|
+
},
|
|
433
|
+
"vazio": {
|
|
434
|
+
"enum": [
|
|
435
|
+
"erro",
|
|
436
|
+
"zero"
|
|
437
|
+
]
|
|
438
|
+
},
|
|
439
|
+
"regra": {
|
|
440
|
+
"type": "string",
|
|
441
|
+
"minLength": 1
|
|
442
|
+
},
|
|
443
|
+
"regra_componentes": {
|
|
444
|
+
"type": "string",
|
|
445
|
+
"minLength": 1
|
|
446
|
+
},
|
|
447
|
+
"componentes": {
|
|
448
|
+
"oneOf": [
|
|
449
|
+
{
|
|
450
|
+
"type": "array",
|
|
451
|
+
"minItems": 1,
|
|
452
|
+
"items": {
|
|
453
|
+
"type": "string",
|
|
454
|
+
"minLength": 1
|
|
455
|
+
},
|
|
456
|
+
"uniqueItems": true
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
"type": "object",
|
|
460
|
+
"minProperties": 1,
|
|
461
|
+
"propertyNames": {
|
|
462
|
+
"type": "string",
|
|
463
|
+
"minLength": 1
|
|
464
|
+
},
|
|
465
|
+
"additionalProperties": {
|
|
466
|
+
"type": "number",
|
|
467
|
+
"minimum": 0
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
]
|
|
471
|
+
},
|
|
472
|
+
"exclusiva_negativa": {
|
|
473
|
+
"type": "string",
|
|
474
|
+
"minLength": 1
|
|
475
|
+
}
|
|
476
|
+
},
|
|
477
|
+
"required": [
|
|
478
|
+
"componentes"
|
|
479
|
+
],
|
|
480
|
+
"additionalProperties": false,
|
|
481
|
+
"oneOf": [
|
|
482
|
+
{
|
|
483
|
+
"required": [
|
|
484
|
+
"regra"
|
|
485
|
+
],
|
|
486
|
+
"not": {
|
|
487
|
+
"required": [
|
|
488
|
+
"operacao"
|
|
489
|
+
]
|
|
490
|
+
}
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
"required": [
|
|
494
|
+
"operacao"
|
|
495
|
+
],
|
|
496
|
+
"not": {
|
|
497
|
+
"required": [
|
|
498
|
+
"regra"
|
|
499
|
+
]
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
]
|
|
503
|
+
}
|
|
504
|
+
},
|
|
505
|
+
"maturidade": {
|
|
506
|
+
"type": "array",
|
|
507
|
+
"minItems": 1,
|
|
508
|
+
"items": {
|
|
509
|
+
"type": "object",
|
|
510
|
+
"properties": {
|
|
511
|
+
"nome": {
|
|
512
|
+
"type": "string",
|
|
513
|
+
"minLength": 1
|
|
514
|
+
},
|
|
515
|
+
"min": {
|
|
516
|
+
"type": "number"
|
|
517
|
+
},
|
|
518
|
+
"max": {
|
|
519
|
+
"type": "number"
|
|
520
|
+
},
|
|
521
|
+
"inclui_min": {
|
|
522
|
+
"type": "boolean"
|
|
523
|
+
},
|
|
524
|
+
"inclui_max": {
|
|
525
|
+
"type": "boolean"
|
|
526
|
+
}
|
|
527
|
+
},
|
|
528
|
+
"required": [
|
|
529
|
+
"nome",
|
|
530
|
+
"min",
|
|
531
|
+
"max",
|
|
532
|
+
"inclui_min",
|
|
533
|
+
"inclui_max"
|
|
534
|
+
],
|
|
535
|
+
"additionalProperties": false
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://argos.invalid/schemas/argos-report-config-v1.schema.json",
|
|
4
|
+
"title": "Argos report context configuration v1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["format", "coluna_auditado"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"format": {"const": "argos.report-config/v1"},
|
|
9
|
+
"limiar": {"type": "number", "minimum": 0, "maximum": 1},
|
|
10
|
+
"coluna_auditado": {"type": "string", "minLength": 1},
|
|
11
|
+
"coluna_maturidade": {"type": "string", "minLength": 1},
|
|
12
|
+
"indice_coluna": {"type": "string", "minLength": 1},
|
|
13
|
+
"indice_prefixo": {"type": "string", "minLength": 1},
|
|
14
|
+
"universo_prefixo": {"type": "string", "minLength": 1},
|
|
15
|
+
"indicadores": {
|
|
16
|
+
"type": "object",
|
|
17
|
+
"additionalProperties": {"type": "string", "minLength": 1}
|
|
18
|
+
},
|
|
19
|
+
"dimensoes": {
|
|
20
|
+
"type": "object",
|
|
21
|
+
"additionalProperties": {"$ref": "#/$defs/dimension"}
|
|
22
|
+
},
|
|
23
|
+
"componentes_comparar": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"additionalProperties": {"$ref": "#/$defs/component"}
|
|
26
|
+
},
|
|
27
|
+
"projecoes": {"$ref": "#/$defs/projections"},
|
|
28
|
+
"layout_documento": {"type": "object"},
|
|
29
|
+
"comparacao": {"$ref": "#/$defs/comparison"}
|
|
30
|
+
},
|
|
31
|
+
"additionalProperties": false,
|
|
32
|
+
"$defs": {
|
|
33
|
+
"dimension": {
|
|
34
|
+
"type": "object",
|
|
35
|
+
"properties": {
|
|
36
|
+
"prefixo": {"type": "string", "minLength": 1},
|
|
37
|
+
"rotulo": {"type": "string", "minLength": 1}
|
|
38
|
+
},
|
|
39
|
+
"additionalProperties": false
|
|
40
|
+
},
|
|
41
|
+
"component": {
|
|
42
|
+
"type": "object",
|
|
43
|
+
"properties": {"prefixo": {"type": "string", "minLength": 1}},
|
|
44
|
+
"additionalProperties": false
|
|
45
|
+
},
|
|
46
|
+
"projections": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"properties": {
|
|
49
|
+
"campos_por_auditado": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"additionalProperties": {"type": "string", "minLength": 1}
|
|
52
|
+
},
|
|
53
|
+
"constantes": {
|
|
54
|
+
"type": "object",
|
|
55
|
+
"additionalProperties": {
|
|
56
|
+
"type": ["string", "number", "boolean", "null"]
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"pesos": {
|
|
60
|
+
"type": "object",
|
|
61
|
+
"additionalProperties": {"$ref": "#/$defs/weight"}
|
|
62
|
+
},
|
|
63
|
+
"rankings": {
|
|
64
|
+
"type": "object",
|
|
65
|
+
"additionalProperties": {"$ref": "#/$defs/ranking"}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"additionalProperties": false
|
|
69
|
+
},
|
|
70
|
+
"weight": {
|
|
71
|
+
"type": "object",
|
|
72
|
+
"required": ["no", "componente"],
|
|
73
|
+
"properties": {
|
|
74
|
+
"no": {"type": "string", "minLength": 1},
|
|
75
|
+
"componente": {"type": "string", "minLength": 1}
|
|
76
|
+
},
|
|
77
|
+
"additionalProperties": false
|
|
78
|
+
},
|
|
79
|
+
"ranking": {
|
|
80
|
+
"type": "object",
|
|
81
|
+
"required": ["nos"],
|
|
82
|
+
"properties": {
|
|
83
|
+
"nos": {
|
|
84
|
+
"type": "object",
|
|
85
|
+
"minProperties": 1,
|
|
86
|
+
"additionalProperties": {"type": "string", "minLength": 1}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"additionalProperties": false
|
|
90
|
+
},
|
|
91
|
+
"comparison": {
|
|
92
|
+
"type": "object",
|
|
93
|
+
"properties": {
|
|
94
|
+
"ativo": {"type": "boolean"},
|
|
95
|
+
"ciclo_anterior": {"type": "string", "minLength": 1},
|
|
96
|
+
"ciclo_atual": {"type": "string", "minLength": 1},
|
|
97
|
+
"cobertura_sufixo": {"type": "string"},
|
|
98
|
+
"direcao_coluna": {"type": "string", "minLength": 1},
|
|
99
|
+
"indicadores": {
|
|
100
|
+
"type": "object",
|
|
101
|
+
"additionalProperties": {"$ref": "#/$defs/dimension"}
|
|
102
|
+
},
|
|
103
|
+
"agregados": {
|
|
104
|
+
"type": "object",
|
|
105
|
+
"additionalProperties": {"$ref": "#/$defs/dimension"}
|
|
106
|
+
},
|
|
107
|
+
"grupos": {"type": "array", "items": {"type": "string", "minLength": 1}, "uniqueItems": true},
|
|
108
|
+
"aliases": {"type": "object", "additionalProperties": {"type": "string", "minLength": 1}}
|
|
109
|
+
},
|
|
110
|
+
"additionalProperties": false
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|