Skip to content

feat: event lineup commands (contract 1.25.0) - #52

Closed
LucasLeguizamo wants to merge 1 commit into
mainfrom
feat/lineup-artists
Closed

LucasLeguizamo wants to merge 1 commit into
mainfrom
feat/lineup-artists

Conversation

@LucasLeguizamo

@LucasLeguizamo LucasLeguizamo commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Depends on AppFreeticket/free-admin#1155 (draft). The contract (openapi.json, B2B 1.25.0) was taken from that PR's branch (git show origin/feat/api-v1-lineup:openapi.json), not from production: these endpoints are not deployed yet. Merge after #1155 ships, and re-run pnpm sync-openapi against production first to confirm the spec matches.

What changes

  • Syncs openapi.json 1.20.0 → 1.25.0 and regenerates the client (additive; typecheck clean).
  • New commands for the event lineup:
    • ft artists search <q> [--limit --cursor] — registered artists → ids.
    • ft events artists set <eventId> --artist <id>... [--invite <email>...] — replaces the whole lineup in order. Without --yes it reads the current lineup and asks before removing anyone or clearing it (refuses with no TTY). ARTIST_IDS_IGNORED warnings are printed on stderr.
    • ft events artists remove <eventId> <organizationId> (--yes).
    • ft events invitations list|resend|cancel (cancel takes --yes).
  • All take --json and --workspace. README table + minor changeset.

How to test

pnpm install && pnpm lint && pnpm typecheck && pnpm test && pnpm build
node dist/index.js events artists --help
node dist/index.js events invitations --help
# against a local free-admin on feat/api-v1-lineup:
ft artists search "name" --json
ft events artists set <eventId> --artist <id1> <id2>

Results: lint ✓ (only the pre-existing biome schema info), typecheck ✓, 80/80 tests (6 new in src/commands/lineup.test.ts + 2 new cases in destructive-confirm.test.ts), build ✓.

Flow diagram

flowchart LR
  A[ft artists search q] -->|ids| B[ft events artists set --artist ...]
  B -->|--yes?| C{removes anyone?}
  C -->|yes, no --yes| D[confirm / refuse without TTY]
  C -->|no| E[PUT /events/id/artists]
  D -->|ok| E
  E --> F[print lineup + ARTIST_IDS_IGNORED]
  B -->|--invite| G[ft events invitations list / resend / cancel]
Loading

🤖 Generated with Claude Code

Sync openapi.json to free-admin's feat/api-v1-lineup branch (1.25.0, not
deployed yet) and add:

- ft artists search <q>
- ft events artists set <eventId> --artist <id>... [--invite <email>...]
  (asks before removing artists or clearing the lineup; prints
  ARTIST_IDS_IGNORED warnings)
- ft events artists remove <eventId> <organizationId> (--yes)
- ft events invitations list|resend|cancel (cancel takes --yes)

Depends on AppFreeticket/free-admin#1155.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@LucasLeguizamo LucasLeguizamo added the enhancement New feature or request label Nov 1, 2026
LucasLeguizamo pushed a commit that referenced this pull request Nov 3, 2026
Covers the operations added between 1.24.0 and 1.36.0 on top of the
lineup (#52) and dashboard-parity ops: viewers/validators, staff access
and resend-invite, access-close, sales abandon and intents, live
attendance, master QRs, ticket templates, community management
(posts, videos, series, lives, channels, meetups, moderation), products,
organization/profile, website and the merch catalog.

Destructive operations and the ones that send email or notify a whole
community ask for confirmation (--yes skips it, no TTY refuses). The
destructive-confirm test now covers all 26 x-ft-destructive operations,
and wire.test.ts checks method, path and body of the riskiest commands
against the real SDK. Buyer-side merch checkout is left out.

Consolidates the lineup and p1-ops changesets into one minor.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Fo7cm7S4yTPG5LztA8pEVi

Copy link
Copy Markdown
Contributor Author

Superseded by #53, which now targets main, syncs to B2B contract 1.36.0 and contains this branch in full (feat/lineup-artists is an ancestor of its head). The lineup changeset is folded into .changeset/contract-1-36.md.


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant