@comando.one/mcp-server 0.9.0 → 0.9.1
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/dist/index.js +20 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -218,6 +218,7 @@ var MANIFEST = [
|
|
|
218
218
|
{ operationId: "listDueReadjustments", tool: "contracts_readjustments_due" },
|
|
219
219
|
{ operationId: "listContractReadjustments", tool: "contracts_readjustments_list" },
|
|
220
220
|
{ operationId: "applyContractReadjustment", tool: "contracts_readjustments_apply", write: true, destructive: true },
|
|
221
|
+
{ operationId: "revertContractReadjustment", tool: "contracts_readjustments_revert", write: true, destructive: true },
|
|
221
222
|
{ operationId: "getMarketIndices", tool: "market_indices_get" },
|
|
222
223
|
// Faturas — exclusão física
|
|
223
224
|
{ operationId: "deleteInvoice", tool: "invoices_delete", write: true, destructive: true },
|
|
@@ -2203,6 +2204,25 @@ var OPENAPI_SPEC = {
|
|
|
2203
2204
|
}
|
|
2204
2205
|
}
|
|
2205
2206
|
},
|
|
2207
|
+
"/contracts/{id}/readjustments/{readjustmentId}": {
|
|
2208
|
+
parameters: [
|
|
2209
|
+
{ name: "id", in: "path", required: true, schema: { type: "string", format: "uuid" } },
|
|
2210
|
+
{ name: "readjustmentId", in: "path", required: true, schema: { type: "string", format: "uuid" } }
|
|
2211
|
+
],
|
|
2212
|
+
delete: {
|
|
2213
|
+
tags: ["Contratos"],
|
|
2214
|
+
summary: "Desfazer um reajuste aplicado",
|
|
2215
|
+
description: "Devolve o contrato ao valor anterior, restaura os itens ao estado gravado no momento da aplica\xE7\xE3o e recalcula a data do pr\xF3ximo reajuste. S\xF3 o reajuste mais recente ainda vigente pode ser desfeito, e apenas se o valor do contrato n\xE3o tiver sido alterado depois. A linha permanece no hist\xF3rico marcada como desfeita; faturas j\xE1 geradas n\xE3o s\xE3o alteradas.",
|
|
2216
|
+
operationId: "revertContractReadjustment",
|
|
2217
|
+
security: [{ ApiKeyAuth: ["contracts:write"] }],
|
|
2218
|
+
responses: {
|
|
2219
|
+
"200": { description: "Reajuste desfeito", content: { "application/json": { schema: { type: "object", properties: { reverted: { type: "boolean" }, contract_id: { type: "string", format: "uuid" }, restored_amount: { type: "number" }, items_exact: { type: "boolean", description: "false quando os itens voltaram por escala inversa (aproximada), por aus\xEAncia do registro anterior" } } } } } },
|
|
2220
|
+
"404": errorResponse("Reajuste ou contrato n\xE3o encontrado"),
|
|
2221
|
+
"409": errorResponse("N\xE3o \xE9 o reajuste mais recente, j\xE1 foi desfeito, ou o valor mudou depois"),
|
|
2222
|
+
...COMMON_ERRORS
|
|
2223
|
+
}
|
|
2224
|
+
}
|
|
2225
|
+
},
|
|
2206
2226
|
"/market-indices": {
|
|
2207
2227
|
get: {
|
|
2208
2228
|
tags: ["Contratos"],
|
package/package.json
CHANGED