quantix-mcp 0.5.0 → 0.5.3
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/README.md +12 -1
- package/dist/tools/subscriptions.d.ts.map +1 -1
- package/dist/tools/subscriptions.js +46 -1
- package/dist/tools/subscriptions.js.map +1 -1
- package/dist/tools/transactions.d.ts.map +1 -1
- package/dist/tools/transactions.js +5 -5
- package/dist/tools/transactions.js.map +1 -1
- package/dist/types/schemas.d.ts +17 -0
- package/dist/types/schemas.d.ts.map +1 -1
- package/dist/types/schemas.js +21 -4
- package/dist/types/schemas.js.map +1 -1
- package/package.json +9 -4
- package/.claude/commands/opsx/apply.md +0 -152
- package/.claude/commands/opsx/archive.md +0 -157
- package/.claude/commands/opsx/bulk-archive.md +0 -242
- package/.claude/commands/opsx/continue.md +0 -114
- package/.claude/commands/opsx/explore.md +0 -174
- package/.claude/commands/opsx/ff.md +0 -94
- package/.claude/commands/opsx/new.md +0 -69
- package/.claude/commands/opsx/onboard.md +0 -525
- package/.claude/commands/opsx/sync.md +0 -134
- package/.claude/commands/opsx/verify.md +0 -164
- package/.claude/settings.local.json +0 -9
- package/.claude/skills/openspec-apply-change/SKILL.md +0 -156
- package/.claude/skills/openspec-archive-change/SKILL.md +0 -114
- package/.claude/skills/openspec-bulk-archive-change/SKILL.md +0 -246
- package/.claude/skills/openspec-continue-change/SKILL.md +0 -118
- package/.claude/skills/openspec-explore/SKILL.md +0 -290
- package/.claude/skills/openspec-ff-change/SKILL.md +0 -101
- package/.claude/skills/openspec-new-change/SKILL.md +0 -74
- package/.claude/skills/openspec-onboard/SKILL.md +0 -529
- package/.claude/skills/openspec-sync-specs/SKILL.md +0 -138
- package/.claude/skills/openspec-verify-change/SKILL.md +0 -168
- package/.dockerignore +0 -8
- package/.gemini/commands/opsx/apply.toml +0 -149
- package/.gemini/commands/opsx/archive.toml +0 -154
- package/.gemini/commands/opsx/bulk-archive.toml +0 -239
- package/.gemini/commands/opsx/continue.toml +0 -111
- package/.gemini/commands/opsx/explore.toml +0 -171
- package/.gemini/commands/opsx/ff.toml +0 -91
- package/.gemini/commands/opsx/new.toml +0 -66
- package/.gemini/commands/opsx/onboard.toml +0 -522
- package/.gemini/commands/opsx/sync.toml +0 -131
- package/.gemini/commands/opsx/verify.toml +0 -161
- package/.gemini/skills/openspec-apply-change/SKILL.md +0 -156
- package/.gemini/skills/openspec-archive-change/SKILL.md +0 -114
- package/.gemini/skills/openspec-bulk-archive-change/SKILL.md +0 -246
- package/.gemini/skills/openspec-continue-change/SKILL.md +0 -118
- package/.gemini/skills/openspec-explore/SKILL.md +0 -290
- package/.gemini/skills/openspec-ff-change/SKILL.md +0 -101
- package/.gemini/skills/openspec-new-change/SKILL.md +0 -74
- package/.gemini/skills/openspec-onboard/SKILL.md +0 -529
- package/.gemini/skills/openspec-sync-specs/SKILL.md +0 -138
- package/.gemini/skills/openspec-verify-change/SKILL.md +0 -168
- package/.github/agents/copilot-instructions.md +0 -32
- package/.github/agents/speckit.analyze.agent.md +0 -184
- package/.github/agents/speckit.checklist.agent.md +0 -294
- package/.github/agents/speckit.clarify.agent.md +0 -181
- package/.github/agents/speckit.constitution.agent.md +0 -82
- package/.github/agents/speckit.implement.agent.md +0 -135
- package/.github/agents/speckit.plan.agent.md +0 -89
- package/.github/agents/speckit.specify.agent.md +0 -258
- package/.github/agents/speckit.tasks.agent.md +0 -137
- package/.github/agents/speckit.taskstoissues.agent.md +0 -30
- package/.github/copilot-instructions.md +0 -17
- package/.github/prompts/speckit.analyze.prompt.md +0 -3
- package/.github/prompts/speckit.checklist.prompt.md +0 -3
- package/.github/prompts/speckit.clarify.prompt.md +0 -3
- package/.github/prompts/speckit.constitution.prompt.md +0 -3
- package/.github/prompts/speckit.implement.prompt.md +0 -3
- package/.github/prompts/speckit.plan.prompt.md +0 -3
- package/.github/prompts/speckit.specify.prompt.md +0 -3
- package/.github/prompts/speckit.tasks.prompt.md +0 -3
- package/.github/prompts/speckit.taskstoissues.prompt.md +0 -3
- package/.github/workflows/publish.yaml +0 -29
- package/.opencode/command/speckit.analyze.md +0 -184
- package/.opencode/command/speckit.checklist.md +0 -294
- package/.opencode/command/speckit.clarify.md +0 -181
- package/.opencode/command/speckit.constitution.md +0 -84
- package/.opencode/command/speckit.implement.md +0 -135
- package/.opencode/command/speckit.plan.md +0 -89
- package/.opencode/command/speckit.specify.md +0 -258
- package/.opencode/command/speckit.tasks.md +0 -137
- package/.opencode/command/speckit.taskstoissues.md +0 -30
- package/.qwen/commands/opsx-apply.toml +0 -149
- package/.qwen/commands/opsx-archive.toml +0 -154
- package/.qwen/commands/opsx-bulk-archive.toml +0 -239
- package/.qwen/commands/opsx-continue.toml +0 -111
- package/.qwen/commands/opsx-explore.toml +0 -171
- package/.qwen/commands/opsx-ff.toml +0 -91
- package/.qwen/commands/opsx-new.toml +0 -66
- package/.qwen/commands/opsx-onboard.toml +0 -522
- package/.qwen/commands/opsx-sync.toml +0 -131
- package/.qwen/commands/opsx-verify.toml +0 -161
- package/.qwen/skills/openspec-apply-change/SKILL.md +0 -156
- package/.qwen/skills/openspec-archive-change/SKILL.md +0 -114
- package/.qwen/skills/openspec-bulk-archive-change/SKILL.md +0 -246
- package/.qwen/skills/openspec-continue-change/SKILL.md +0 -118
- package/.qwen/skills/openspec-explore/SKILL.md +0 -290
- package/.qwen/skills/openspec-ff-change/SKILL.md +0 -101
- package/.qwen/skills/openspec-new-change/SKILL.md +0 -74
- package/.qwen/skills/openspec-onboard/SKILL.md +0 -529
- package/.qwen/skills/openspec-sync-specs/SKILL.md +0 -138
- package/.qwen/skills/openspec-verify-change/SKILL.md +0 -168
- package/.specify/memory/constitution.md +0 -58
- package/.specify/scripts/powershell/check-prerequisites.ps1 +0 -148
- package/.specify/scripts/powershell/common.ps1 +0 -137
- package/.specify/scripts/powershell/create-new-feature.ps1 +0 -283
- package/.specify/scripts/powershell/setup-plan.ps1 +0 -61
- package/.specify/scripts/powershell/update-agent-context.ps1 +0 -448
- package/.specify/templates/agent-file-template.md +0 -28
- package/.specify/templates/checklist-template.md +0 -40
- package/.specify/templates/constitution-template.md +0 -50
- package/.specify/templates/plan-template.md +0 -104
- package/.specify/templates/spec-template.md +0 -115
- package/.specify/templates/tasks-template.md +0 -251
- package/.vscode/launch.json +0 -14
- package/.vscode/settings.json +0 -14
- package/.vscode/tasks.json +0 -15
- package/AGENTS.md +0 -117
- package/CLAUDE.md +0 -70
- package/Dockerfile +0 -30
- package/GEMINI.md +0 -117
- package/QWEN.md +0 -117
- package/docker-compose.yml +0 -17
- package/openapi.yaml +0 -3127
- package/openspec/README.md +0 -33
- package/openspec/changes/archive/2026-04-03-separate-credit-card-transaction-tools/.openspec.yaml +0 -2
- package/openspec/changes/archive/2026-04-03-separate-credit-card-transaction-tools/design.md +0 -60
- package/openspec/changes/archive/2026-04-03-separate-credit-card-transaction-tools/proposal.md +0 -25
- package/openspec/changes/archive/2026-04-03-separate-credit-card-transaction-tools/specs/credit-card-transactions/spec.md +0 -46
- package/openspec/changes/archive/2026-04-03-separate-credit-card-transaction-tools/specs/transactions/spec.md +0 -42
- package/openspec/changes/archive/2026-04-03-separate-credit-card-transaction-tools/tasks.md +0 -22
- package/openspec/config.yaml +0 -20
- package/openspec/specs/accounts/spec.md +0 -86
- package/openspec/specs/categories/spec.md +0 -78
- package/openspec/specs/credit-card-transactions/spec.md +0 -64
- package/openspec/specs/credit-cards/spec.md +0 -109
- package/openspec/specs/data/spec.md +0 -49
- package/openspec/specs/settings/spec.md +0 -48
- package/openspec/specs/subscriptions/spec.md +0 -85
- package/openspec/specs/summary/spec.md +0 -49
- package/openspec/specs/transactions/spec.md +0 -113
- package/openspec/specs/transfers/spec.md +0 -74
- package/specs/001-mcp-api-integration/checklists/requirements.md +0 -34
- package/specs/001-mcp-api-integration/contracts/openapi.yaml +0 -636
- package/specs/001-mcp-api-integration/data-model.md +0 -106
- package/specs/001-mcp-api-integration/plan.md +0 -73
- package/specs/001-mcp-api-integration/quickstart.md +0 -74
- package/specs/001-mcp-api-integration/research.md +0 -58
- package/specs/001-mcp-api-integration/spec.md +0 -119
- package/specs/001-mcp-api-integration/tasks.md +0 -64
- package/src/config.ts +0 -39
- package/src/index.ts +0 -116
- package/src/services/apiClient.ts +0 -55
- package/src/services/requestContext.ts +0 -11
- package/src/tools/accounts.ts +0 -122
- package/src/tools/categories.ts +0 -102
- package/src/tools/credit-cards.ts +0 -203
- package/src/tools/data.ts +0 -45
- package/src/tools/settings.ts +0 -64
- package/src/tools/subscriptions.ts +0 -159
- package/src/tools/summary.ts +0 -29
- package/src/tools/transactions.ts +0 -200
- package/src/tools/transfers.ts +0 -122
- package/src/types/schemas.ts +0 -333
- package/src/utils/toolHelpers.ts +0 -11
- package/tests/benchmark.test.d.ts +0 -2
- package/tests/benchmark.test.d.ts.map +0 -1
- package/tests/benchmark.test.js +0 -33
- package/tests/benchmark.test.js.map +0 -1
- package/tests/benchmark.test.ts +0 -38
- package/tests/server.test.d.ts +0 -2
- package/tests/server.test.d.ts.map +0 -1
- package/tests/server.test.js +0 -13
- package/tests/server.test.js.map +0 -1
- package/tests/server.test.ts +0 -14
- package/tests/setup.d.ts +0 -4
- package/tests/setup.d.ts.map +0 -1
- package/tests/setup.js +0 -17
- package/tests/setup.js.map +0 -1
- package/tests/setup.ts +0 -20
- package/tests/tools/accounts.test.ts +0 -159
- package/tests/tools/categories.test.d.ts +0 -2
- package/tests/tools/categories.test.d.ts.map +0 -1
- package/tests/tools/categories.test.js +0 -63
- package/tests/tools/categories.test.js.map +0 -1
- package/tests/tools/categories.test.ts +0 -120
- package/tests/tools/credit-cards.test.d.ts +0 -2
- package/tests/tools/credit-cards.test.d.ts.map +0 -1
- package/tests/tools/credit-cards.test.js +0 -71
- package/tests/tools/credit-cards.test.js.map +0 -1
- package/tests/tools/credit-cards.test.ts +0 -131
- package/tests/tools/data.test.ts +0 -100
- package/tests/tools/settings.test.ts +0 -116
- package/tests/tools/subscriptions.test.ts +0 -173
- package/tests/tools/summary.test.d.ts +0 -2
- package/tests/tools/summary.test.d.ts.map +0 -1
- package/tests/tools/summary.test.js +0 -36
- package/tests/tools/summary.test.js.map +0 -1
- package/tests/tools/summary.test.ts +0 -63
- package/tests/tools/transactions.test.d.ts +0 -2
- package/tests/tools/transactions.test.d.ts.map +0 -1
- package/tests/tools/transactions.test.js +0 -67
- package/tests/tools/transactions.test.js.map +0 -1
- package/tests/tools/transactions.test.ts +0 -133
- package/tests/tools/transfers.test.ts +0 -141
- package/tsconfig.json +0 -52
- package/vitest.config.d.ts +0 -3
- package/vitest.config.d.ts.map +0 -1
- package/vitest.config.js +0 -14
- package/vitest.config.js.map +0 -1
- package/vitest.config.ts +0 -14
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
# Settings Specification
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
Configurações globais do sistema, incluindo nome do usuário, idioma e moeda padrão. Existe apenas um registro de configurações por usuário.
|
|
5
|
-
|
|
6
|
-
## Scope
|
|
7
|
-
O que está **incluído** nesta spec:
|
|
8
|
-
- Criação (apenas se não existir), leitura e atualização de configurações
|
|
9
|
-
- Validação de idioma (pt-BR, en-US) e moeda (BRL, USD, EUR, GBP, JPY, CAD, AUD, CHF)
|
|
10
|
-
|
|
11
|
-
O que está **fora do escopo**:
|
|
12
|
-
- Preferências por feature ou módulo
|
|
13
|
-
- Configurações de notificação ou autenticação
|
|
14
|
-
|
|
15
|
-
## Requirements
|
|
16
|
-
|
|
17
|
-
### Requirement: Create settings
|
|
18
|
-
The system SHALL allow creating global settings with user name, language, and currency. Creation SHALL fail if settings already exist.
|
|
19
|
-
|
|
20
|
-
#### Scenario: Settings created successfully
|
|
21
|
-
- **WHEN** the user provides `userName`, `language` (pt-BR or en-US), and `currency` (e.g., BRL)
|
|
22
|
-
- **THEN** the system creates the settings with `createdAt` and returns them
|
|
23
|
-
|
|
24
|
-
#### Scenario: Validation rejects invalid language
|
|
25
|
-
- **WHEN** the user provides a `language` not in [pt-BR, en-US]
|
|
26
|
-
- **THEN** the Zod schema rejects the input
|
|
27
|
-
|
|
28
|
-
#### Scenario: Validation rejects invalid currency
|
|
29
|
-
- **WHEN** the user provides a `currency` not in [BRL, USD, EUR, GBP, JPY, CAD, AUD, CHF]
|
|
30
|
-
- **THEN** the Zod schema rejects the input
|
|
31
|
-
|
|
32
|
-
### Requirement: Get settings
|
|
33
|
-
The system SHALL return the current global settings.
|
|
34
|
-
|
|
35
|
-
#### Scenario: Settings exist
|
|
36
|
-
- **WHEN** the user requests the settings
|
|
37
|
-
- **THEN** the system returns the settings object
|
|
38
|
-
|
|
39
|
-
#### Scenario: Settings do not exist
|
|
40
|
-
- **WHEN** no settings have been created
|
|
41
|
-
- **THEN** the system returns an empty or null response (or 404)
|
|
42
|
-
|
|
43
|
-
### Requirement: Update settings
|
|
44
|
-
The system SHALL allow updating existing settings fields (userName, language, currency). The update SHALL use PUT (full replace).
|
|
45
|
-
|
|
46
|
-
#### Scenario: Successful update
|
|
47
|
-
- **WHEN** the user provides one or more settings fields to update
|
|
48
|
-
- **THEN** the system updates the settings and returns the modified object with updated `updatedAt` timestamp
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
# Subscriptions Specification
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
Gerenciamento de assinaturas e pagamentos recorrentes vinculados a cartões de crédito (ex: Netflix, Spotify). Cada assinatura gera transações automáticas no cartão no dia de faturamento configurado.
|
|
5
|
-
|
|
6
|
-
## Scope
|
|
7
|
-
O que está **incluído** nesta spec:
|
|
8
|
-
- CRUD de assinaturas (nome, valor, dia de faturamento, cartão, categoria)
|
|
9
|
-
- Ativação/desativação (soft delete) e reativação
|
|
10
|
-
- Exclusão permanente (hard delete)
|
|
11
|
-
- Listagem de assinaturas ativas
|
|
12
|
-
|
|
13
|
-
O que está **fora do escopo**:
|
|
14
|
-
- Geração automática de transações (comportamento do backend da API)
|
|
15
|
-
- Transações de cartão avulsas (domínio: credit-card-transactions)
|
|
16
|
-
|
|
17
|
-
## Requirements
|
|
18
|
-
|
|
19
|
-
### Requirement: Create subscription
|
|
20
|
-
The system SHALL allow creating a new subscription with a name, amount, billing day (1-31), credit card ID, and optional category ID.
|
|
21
|
-
|
|
22
|
-
#### Scenario: Create subscription with all fields
|
|
23
|
-
- **WHEN** the user provides `name`, `amount`, `billingDay`, `creditCardId`, and `categoryId`
|
|
24
|
-
- **THEN** the system creates the subscription as active and returns it with assigned ID
|
|
25
|
-
|
|
26
|
-
#### Scenario: Validation rejects billing day outside range
|
|
27
|
-
- **WHEN** the user provides a `billingDay` less than 1 or greater than 31
|
|
28
|
-
- **THEN** the Zod schema rejects the input
|
|
29
|
-
|
|
30
|
-
### Requirement: List all subscriptions
|
|
31
|
-
The system SHALL return all subscriptions regardless of active status.
|
|
32
|
-
|
|
33
|
-
#### Scenario: Subscriptions exist
|
|
34
|
-
- **WHEN** the user requests the subscription list
|
|
35
|
-
- **THEN** the system returns an array of all subscriptions
|
|
36
|
-
|
|
37
|
-
### Requirement: List active subscriptions
|
|
38
|
-
The system SHALL return only active subscriptions.
|
|
39
|
-
|
|
40
|
-
#### Scenario: Active subscriptions exist
|
|
41
|
-
- **WHEN** the user requests active subscriptions
|
|
42
|
-
- **THEN** the system returns only subscriptions where `active` is true
|
|
43
|
-
|
|
44
|
-
### Requirement: Get subscription by ID
|
|
45
|
-
The system SHALL return a specific subscription by its ID.
|
|
46
|
-
|
|
47
|
-
#### Scenario: Subscription found
|
|
48
|
-
- **WHEN** the user requests a subscription with a valid ID
|
|
49
|
-
- **THEN** the system returns the subscription details
|
|
50
|
-
|
|
51
|
-
#### Scenario: Subscription not found
|
|
52
|
-
- **WHEN** the user requests a subscription with a non-existent ID
|
|
53
|
-
- **THEN** the system returns a 404 error
|
|
54
|
-
|
|
55
|
-
### Requirement: Update subscription
|
|
56
|
-
The system SHALL allow updating a subscription's name, amount, billing day, credit card ID, category ID, and/or active status.
|
|
57
|
-
|
|
58
|
-
#### Scenario: Successful update
|
|
59
|
-
- **WHEN** the user provides a valid subscription ID and one or more updateable fields
|
|
60
|
-
- **THEN** the system updates and returns the modified subscription
|
|
61
|
-
|
|
62
|
-
### Requirement: Deactivate subscription
|
|
63
|
-
The system SHALL allow deactivating (soft delete) a subscription by its ID.
|
|
64
|
-
|
|
65
|
-
#### Scenario: Successful deactivation
|
|
66
|
-
- **WHEN** the user deactivates a subscription with a valid ID
|
|
67
|
-
- **THEN** the subscription's `active` field is set to false
|
|
68
|
-
|
|
69
|
-
#### Scenario: Subscription not found on deactivation
|
|
70
|
-
- **WHEN** the user attempts to deactivate a non-existent subscription
|
|
71
|
-
- **THEN** the system returns a 404 error
|
|
72
|
-
|
|
73
|
-
### Requirement: Permanently delete subscription
|
|
74
|
-
The system SHALL allow permanently deleting (hard delete) a subscription by its ID.
|
|
75
|
-
|
|
76
|
-
#### Scenario: Successful permanent deletion
|
|
77
|
-
- **WHEN** the user permanently deletes a subscription with a valid ID
|
|
78
|
-
- **THEN** the subscription is removed from the database
|
|
79
|
-
|
|
80
|
-
### Requirement: Reactivate subscription
|
|
81
|
-
The system SHALL allow reactivating a previously deactivated subscription.
|
|
82
|
-
|
|
83
|
-
#### Scenario: Successful reactivation
|
|
84
|
-
- **WHEN** the user reactivates a deactivated subscription
|
|
85
|
-
- **THEN** the subscription's `active` field is set to true
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
# Summary Specification
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
Resumo financeiro consolidado de um período, incluindo receitas, despesas, saldos de contas, totais de cartão de crédito e detalhamento por categoria.
|
|
5
|
-
|
|
6
|
-
## Scope
|
|
7
|
-
O que está **incluído** nesta spec:
|
|
8
|
-
- Resumo por mês (YYYY-MM) ou intervalo customizado (startDate + endDate em YYYY-MM-DD)
|
|
9
|
-
- Totais de receita e despesa (pagos e pendentes)
|
|
10
|
-
- Saldo total e por conta
|
|
11
|
-
- Despesas de cartão de crédito e detalhamento por categoria
|
|
12
|
-
|
|
13
|
-
O que está **fora do escopo**:
|
|
14
|
-
- Geração de extratos individuais de cartão (domínio: credit-cards)
|
|
15
|
-
- Listagem de transações individuais (domínio: transactions)
|
|
16
|
-
|
|
17
|
-
## Requirements
|
|
18
|
-
|
|
19
|
-
### Requirement: Get summary by month
|
|
20
|
-
The system SHALL return a financial summary for a given month in YYYY-MM format, including income, expenses, balance, credit card totals, and category breakdowns.
|
|
21
|
-
|
|
22
|
-
#### Scenario: Monthly summary retrieved
|
|
23
|
-
- **WHEN** the user provides `month` in YYYY-MM format
|
|
24
|
-
- **THEN** the system returns income, expenses, balance, credit card expenses, expenses/income by category, and account balances for that month
|
|
25
|
-
|
|
26
|
-
#### Scenario: Monthly summary for month with no data
|
|
27
|
-
- **WHEN** the user requests a summary for a month with no transactions
|
|
28
|
-
- **THEN** the system returns zeros for all numeric fields
|
|
29
|
-
|
|
30
|
-
### Requirement: Get summary by date range
|
|
31
|
-
The system SHALL return a financial summary for a custom date range defined by `startDate` and `endDate` (both in YYYY-MM-DD format).
|
|
32
|
-
|
|
33
|
-
#### Scenario: Range summary retrieved
|
|
34
|
-
- **WHEN** the user provides both `startDate` and `endDate`
|
|
35
|
-
- **THEN** the system returns the aggregated financial data for that period
|
|
36
|
-
|
|
37
|
-
### Requirement: Validation requires period parameters
|
|
38
|
-
The system SHALL require either `month` OR both `startDate` and `endDate`.
|
|
39
|
-
|
|
40
|
-
#### Scenario: No parameters provided
|
|
41
|
-
- **WHEN** the user provides neither `month` nor `startDate`+`endDate`
|
|
42
|
-
- **THEN** the API returns a 400 error
|
|
43
|
-
|
|
44
|
-
### Requirement: Pending income and expenses included
|
|
45
|
-
The summary SHALL include both paid and pending amounts separately.
|
|
46
|
-
|
|
47
|
-
#### Scenario: Pending transactions exist
|
|
48
|
-
- **WHEN** the period contains unpaid income or expense transactions
|
|
49
|
-
- **THEN** the summary includes `pendingIncome` and `pendingExpenses` fields
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
# Transactions Specification
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
Gerenciamento de transações financeiras diretas (receitas e despesas) com métodos de pagamento CASH, PIX e DEBIT. Suporte a recorrência e parcelamento.
|
|
5
|
-
|
|
6
|
-
## Scope
|
|
7
|
-
O que está **incluído** nesta spec:
|
|
8
|
-
- Criação, atualização, exclusão de transações diretas
|
|
9
|
-
- Marcação como paga/não-paga
|
|
10
|
-
- Filtros por mês, conta, categoria, tipo, datas e status de pagamento
|
|
11
|
-
- Recorrência com 3 frequências (WEEKLY, MONTHLY, YEARLY)
|
|
12
|
-
|
|
13
|
-
O que está **fora do escopo**:
|
|
14
|
-
- Transações de cartão de crédito (domínio: credit-card-transactions)
|
|
15
|
-
- Transferências entre contas (domínio: transfers)
|
|
16
|
-
|
|
17
|
-
## Requirements
|
|
18
|
-
|
|
19
|
-
### Requirement: Create direct transaction
|
|
20
|
-
The system SHALL allow creating a new income or expense transaction with type, name, amount, date, paymentMethod (CASH, PIX, or DEBIT), and accountId.
|
|
21
|
-
|
|
22
|
-
#### Scenario: Successful direct transaction creation
|
|
23
|
-
- **WHEN** the user provides `type`, `name`, `amount`, `date`, `paymentMethod` (CASH, PIX, or DEBIT), and `accountId`
|
|
24
|
-
- **THEN** the system creates the transaction via `POST /transactions` and returns it
|
|
25
|
-
|
|
26
|
-
#### Scenario: Validation rejects credit card fields
|
|
27
|
-
- **WHEN** the user attempts to provide `creditCardId`, `targetDueMonth`, or `purchaseDate`
|
|
28
|
-
- **THEN** the Zod schema rejects the input as those fields are not part of the direct transaction schema
|
|
29
|
-
|
|
30
|
-
#### Scenario: Validation rejects CREDIT payment method
|
|
31
|
-
- **WHEN** the user provides `paymentMethod` as "CREDIT"
|
|
32
|
-
- **THEN** the Zod schema rejects the input as the enum only allows CASH, PIX, DEBIT
|
|
33
|
-
|
|
34
|
-
### Requirement: Update direct transaction
|
|
35
|
-
The system SHALL allow updating a direct payment transaction. For recurring transactions, the user MAY specify an update mode: SINGLE (only this), PENDING (this and future pending), or ALL (all in series).
|
|
36
|
-
|
|
37
|
-
#### Scenario: Successful direct transaction update
|
|
38
|
-
- **WHEN** the user provides a valid transaction ID and one or more updateable fields
|
|
39
|
-
- **THEN** the system updates via `PATCH /transactions/:id` and returns the modified transaction
|
|
40
|
-
|
|
41
|
-
#### Scenario: Recurring transaction update mode
|
|
42
|
-
- **WHEN** the user provides `mode` as SINGLE, PENDING, or ALL
|
|
43
|
-
- **THEN** the update is applied according to the mode
|
|
44
|
-
|
|
45
|
-
#### Scenario: Validation rejects credit card fields
|
|
46
|
-
- **WHEN** the user attempts to provide `creditCardId`, `targetDueMonth`, or `purchaseDate`
|
|
47
|
-
- **THEN** the Zod schema rejects the input
|
|
48
|
-
|
|
49
|
-
### Requirement: Delete transaction
|
|
50
|
-
The system SHALL allow deleting a transaction by its ID. For recurring transactions, the user MAY specify a deletion mode.
|
|
51
|
-
|
|
52
|
-
#### Scenario: Successful deletion
|
|
53
|
-
- **WHEN** the user deletes a transaction with a valid ID
|
|
54
|
-
- **THEN** the system confirms the deletion
|
|
55
|
-
|
|
56
|
-
#### Scenario: Recurring transaction deletion mode
|
|
57
|
-
- **WHEN** the user provides `mode` as SINGLE, PENDING, or ALL
|
|
58
|
-
- **THEN** the deletion applies according to the mode
|
|
59
|
-
|
|
60
|
-
### Requirement: Mark transaction as paid
|
|
61
|
-
The system SHALL allow marking a transaction as paid via `PATCH /transactions/:id/pay`.
|
|
62
|
-
|
|
63
|
-
#### Scenario: Transaction marked as paid
|
|
64
|
-
- **WHEN** the user provides a valid transaction ID
|
|
65
|
-
- **THEN** the transaction's `paid` field is set to true
|
|
66
|
-
|
|
67
|
-
### Requirement: Mark transaction as unpaid
|
|
68
|
-
The system SHALL allow marking a transaction as unpaid via `PATCH /transactions/:id/unpay`.
|
|
69
|
-
|
|
70
|
-
#### Scenario: Transaction marked as unpaid
|
|
71
|
-
- **WHEN** the user provides a valid transaction ID
|
|
72
|
-
- **THEN** the transaction's `paid` field is set to false
|
|
73
|
-
|
|
74
|
-
### Requirement: List transactions
|
|
75
|
-
The system SHALL return transactions with optional filters: month, accountId, categoryId, creditCardId, type, startDate, endDate, paid.
|
|
76
|
-
|
|
77
|
-
#### Scenario: List all transactions
|
|
78
|
-
- **WHEN** the user requests transactions without filters
|
|
79
|
-
- **THEN** the system returns all transactions
|
|
80
|
-
|
|
81
|
-
#### Scenario: List transactions filtered by month
|
|
82
|
-
- **WHEN** the user provides `month` in YYYY-MM format
|
|
83
|
-
- **THEN** the system returns only transactions within that month
|
|
84
|
-
|
|
85
|
-
#### Scenario: List transactions filtered by date range
|
|
86
|
-
- **WHEN** the user provides `startDate` and `endDate`
|
|
87
|
-
- **THEN** the system returns transactions within that range (inclusive)
|
|
88
|
-
|
|
89
|
-
#### Scenario: List transactions filtered by payment status
|
|
90
|
-
- **WHEN** the user provides `paid` as true or false
|
|
91
|
-
- **THEN** the system returns only paid or unpaid transactions respectively
|
|
92
|
-
|
|
93
|
-
### Requirement: Get transaction by ID
|
|
94
|
-
The system SHALL return a specific transaction with its related data (category, credit card, account, subscription).
|
|
95
|
-
|
|
96
|
-
#### Scenario: Transaction found
|
|
97
|
-
- **WHEN** the user requests a transaction with a valid ID
|
|
98
|
-
- **THEN** the system returns the transaction with related entities
|
|
99
|
-
|
|
100
|
-
#### Scenario: Transaction not found
|
|
101
|
-
- **WHEN** the user requests a transaction with a non-existent ID
|
|
102
|
-
- **THEN** the system returns a 404 error
|
|
103
|
-
|
|
104
|
-
### Requirement: Direct transaction recurrence
|
|
105
|
-
The recurrence for direct transactions SHALL support only 3 frequencies: WEEKLY, MONTHLY, YEARLY.
|
|
106
|
-
|
|
107
|
-
#### Scenario: Valid recurrence frequencies
|
|
108
|
-
- **WHEN** the user provides a recurrence with WEEKLY, MONTHLY, or YEARLY
|
|
109
|
-
- **THEN** the request is accepted
|
|
110
|
-
|
|
111
|
-
#### Scenario: Invalid recurrence frequency
|
|
112
|
-
- **WHEN** the user provides BIWEEKLY, BIMONTHLY, QUARTERLY, SEMIANNUALLY, or ANNUALLY
|
|
113
|
-
- **THEN** the Zod schema rejects the input
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
# Transfers Specification
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
Transferências de saldo entre contas financeiras do próprio usuário. Uma transferência debita de uma conta de origem e credita em uma conta de destino.
|
|
5
|
-
|
|
6
|
-
## Scope
|
|
7
|
-
O que está **incluído** nesta spec:
|
|
8
|
-
- CRUD completo de transferências
|
|
9
|
-
- Filtros por conta, mês e intervalo de datas
|
|
10
|
-
|
|
11
|
-
O que está **fora do escopo**:
|
|
12
|
-
- Criação de contas (domínio: accounts)
|
|
13
|
-
- Transações de despesas/receitas (domínio: transactions)
|
|
14
|
-
|
|
15
|
-
## Requirements
|
|
16
|
-
|
|
17
|
-
### Requirement: Create transfer
|
|
18
|
-
The system SHALL allow creating a transfer between two accounts with source account ID, destination account ID, amount (minimum 0.01), and date (YYYY-MM-DD).
|
|
19
|
-
|
|
20
|
-
#### Scenario: Successful transfer creation
|
|
21
|
-
- **WHEN** the user provides `sourceAccountId`, `destinationAccountId`, `amount`, and `date`
|
|
22
|
-
- **THEN** the system creates the transfer and debits/credits both accounts accordingly
|
|
23
|
-
|
|
24
|
-
#### Scenario: Validation rejects zero or negative amount
|
|
25
|
-
- **WHEN** the user provides an `amount` less than 0.01
|
|
26
|
-
- **THEN** the Zod schema rejects the input
|
|
27
|
-
|
|
28
|
-
#### Scenario: Validation rejects invalid date format
|
|
29
|
-
- **WHEN** the user provides a `date` not matching YYYY-MM-DD
|
|
30
|
-
- **THEN** the Zod schema rejects the input
|
|
31
|
-
|
|
32
|
-
### Requirement: List transfers
|
|
33
|
-
The system SHALL return transfers with optional filters by account ID, month (YYYY-MM), start date, and end date.
|
|
34
|
-
|
|
35
|
-
#### Scenario: List all transfers
|
|
36
|
-
- **WHEN** the user requests transfers without filters
|
|
37
|
-
- **THEN** the system returns all transfers
|
|
38
|
-
|
|
39
|
-
#### Scenario: List transfers filtered by account
|
|
40
|
-
- **WHEN** the user provides `accountId`
|
|
41
|
-
- **THEN** the system returns only transfers involving that account
|
|
42
|
-
|
|
43
|
-
#### Scenario: List transfers filtered by month
|
|
44
|
-
- **WHEN** the user provides `month` in YYYY-MM format
|
|
45
|
-
- **THEN** the system returns only transfers within that month
|
|
46
|
-
|
|
47
|
-
#### Scenario: List transfers filtered by date range
|
|
48
|
-
- **WHEN** the user provides `startDate` and `endDate`
|
|
49
|
-
- **THEN** the system returns only transfers within that date range (inclusive)
|
|
50
|
-
|
|
51
|
-
### Requirement: Get transfer by ID
|
|
52
|
-
The system SHALL return a specific transfer by its ID.
|
|
53
|
-
|
|
54
|
-
#### Scenario: Transfer found
|
|
55
|
-
- **WHEN** the user requests a transfer with a valid ID
|
|
56
|
-
- **THEN** the system returns the transfer details
|
|
57
|
-
|
|
58
|
-
#### Scenario: Transfer not found
|
|
59
|
-
- **WHEN** the user requests a transfer with a non-existent ID
|
|
60
|
-
- **THEN** the system returns a 404 error
|
|
61
|
-
|
|
62
|
-
### Requirement: Update transfer
|
|
63
|
-
The system SHALL allow updating a transfer's source account, destination account, amount, and/or date.
|
|
64
|
-
|
|
65
|
-
#### Scenario: Successful update
|
|
66
|
-
- **WHEN** the user provides a valid transfer ID and one or more updateable fields
|
|
67
|
-
- **THEN** the system updates and returns the modified transfer
|
|
68
|
-
|
|
69
|
-
### Requirement: Delete transfer
|
|
70
|
-
The system SHALL allow deleting a transfer by its ID.
|
|
71
|
-
|
|
72
|
-
#### Scenario: Successful deletion
|
|
73
|
-
- **WHEN** the user deletes a transfer with a valid ID
|
|
74
|
-
- **THEN** the system confirms the deletion
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
# Specification Quality Checklist: MCP Server for Quantix API Integration
|
|
2
|
-
|
|
3
|
-
**Purpose**: Validate specification completeness and quality before proceeding to planning
|
|
4
|
-
**Created**: 2026-01-31
|
|
5
|
-
**Feature**: [spec.md](../spec.md)
|
|
6
|
-
|
|
7
|
-
## Content Quality
|
|
8
|
-
|
|
9
|
-
- [x] No implementation details (languages, frameworks, APIs)
|
|
10
|
-
- [x] Focused on user value and business needs
|
|
11
|
-
- [x] Written for non-technical stakeholders
|
|
12
|
-
- [x] All mandatory sections completed
|
|
13
|
-
|
|
14
|
-
## Requirement Completeness
|
|
15
|
-
|
|
16
|
-
- [x] No [NEEDS CLARIFICATION] markers remain
|
|
17
|
-
- [x] Requirements are testable and unambiguous
|
|
18
|
-
- [x] Success criteria are measurable
|
|
19
|
-
- [x] Success criteria are technology-agnostic (no implementation details)
|
|
20
|
-
- [x] All acceptance scenarios are defined
|
|
21
|
-
- [x] Edge cases are identified
|
|
22
|
-
- [x] Scope is clearly bounded
|
|
23
|
-
- [x] Dependencies and assumptions identified
|
|
24
|
-
|
|
25
|
-
## Feature Readiness
|
|
26
|
-
|
|
27
|
-
- [x] All functional requirements have clear acceptance criteria
|
|
28
|
-
- [x] User scenarios cover primary flows
|
|
29
|
-
- [x] Feature meets measurable outcomes defined in Success Criteria
|
|
30
|
-
- [x] No implementation details leak into specification
|
|
31
|
-
|
|
32
|
-
## Notes
|
|
33
|
-
|
|
34
|
-
- Feature describes the creation of a technical component (MCP Server), so technical terms (MCP, API, Zod) are part of the domain requirements as per user request.
|