feat: CFO reconciliation (v1.1.0) + superadmin admin client (v0.3.0)#2
Merged
Merged
Conversation
Two contract additions propagated from free-admin into the CLI: - CFO reconciliation (B2B v1.1.0): `ft reports reconciliation` + CSV export, crossing Mercado Pago ↔ sale ↔ Siigo invoice with a per-sale match_status (MISSING_INVOICE / MISSING_CUFE / AMOUNT_MISMATCH / MISSING_PAYMENT / OK). - Superadmin (Admin API v1.0.0, /api/admin): `ft admin` read-only namespace (me, workspaces, users, plans, feature-flags, audit-log) on a second generated client with its own auth — a SUPER_ADMIN better-auth session (FT_ADMIN_SESSION), not an API key. Service token is tracked in free-admin#157. Pipeline: `sync-openapi:admin` + dual-output codegen. Bumps 0.1.1 → 0.3.0. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
Extend the CLI from read-only to full CRUD against the B2B v1 and admin
contracts, mirroring what the web app can do:
- resource.ts: generic create/update/delete + id-bound actions
(events publish, sales cancel/refund, staff set-role). Bodies via
--data (inline JSON or @file.json); delete confirms unless --yes.
- event-dates: dedicated group for the nested /events/{id}/dates resource.
- admin.ts: workspaces create/update/suspend/restore, users update,
plans create/update, feature-flags set, impersonate/impersonate-stop.
- --csv on every list command (B2B + admin) for spreadsheets/accounting.
- lib/input.ts: parseData + interactive confirm (auto-aborts on non-TTY).
- toCsv (RFC 4180) in lib/output.ts.
Bump to 0.4.0.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Qué
Propaga dos adiciones de contrato de
free-adminal CLI. Bumps0.1.1 → 0.3.0.1. Conciliación CFO — contrato B2B v1.1.0
ft reports reconciliation(+ft reports export reconciliationCSV)match_statuspor venta:OK·MISSING_INVOICE·MISSING_CUFE·AMOUNT_MISMATCH·MISSING_PAYMENT2. Superadmin — contrato nuevo
/api/adminv1.0.0 (Opción B)ft adminread-only:me,workspaces,users,plans,feature-flags,audit-logsrc/admin-client/) con su propio singleton y authFT_ADMIN_SESSION), no API keyPipeline
openapi-ts.admin.config.ts(segundo output) +sync-openapi:admin(FT_ADMIN_OPENAPI_URL)generateahora construye ambos clientesVerificación
ft reports reconciliation --help,ft admin --help, fallo limpio sinFT_ADMIN_SESSIONNotas
src/client/,src/admin-client/) están gitignored; el contrato vive enopenapi.json/admin-openapi.json🤖 Generated with Claude Code