epa-testeprojetoia 0.1.4 → 0.1.5
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.
|
@@ -27,18 +27,18 @@ export default createTool({
|
|
|
27
27
|
},
|
|
28
28
|
unit_value: {
|
|
29
29
|
type: "number",
|
|
30
|
-
description: "ID da unidade gerencial para filtro (opcional)"
|
|
30
|
+
description: "ID da unidade gerencial para filtro (opcional, não envie se não souber)"
|
|
31
31
|
},
|
|
32
32
|
unit_type: {
|
|
33
33
|
type: "string",
|
|
34
|
-
description: "Tipo do filtro de unidade (opcional; padrao: pertenco)"
|
|
34
|
+
description: "Tipo do filtro de unidade (opcional, não envie sem o unit_value; padrao: pertenco)"
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
validator: z.object({
|
|
38
38
|
term: z.string().min(1),
|
|
39
39
|
q: z.string().min(1).nullable(),
|
|
40
|
-
unit_value: z.number().int().positive().nullable(),
|
|
41
|
-
unit_type: z.string().min(1).nullable()
|
|
40
|
+
unit_value: z.number().int().positive().nullable().optional(),
|
|
41
|
+
unit_type: z.string().min(1).nullable().optional()
|
|
42
42
|
}),
|
|
43
43
|
handler: async ({ term, q, unit_value, unit_type }) => {
|
|
44
44
|
return service.getAssignees(term, {
|