Skip to content

Add sub-events endpoints and regenerate SDK from latest spec - #9

Open
jantinnerezo wants to merge 1 commit into
masterfrom
feature/sub-events
Open

Add sub-events endpoints and regenerate SDK from latest spec#9
jantinnerezo wants to merge 1 commit into
masterfrom
feature/sub-events

Conversation

@jantinnerezo

Copy link
Copy Markdown
Contributor

Summary

  • New SubEvents resource from the upcoming API spec (not yet on prod):
    • getSubEvents($eventUuid)GET /api/events/{EventUuid}/sub-events, lists sub-events with quota state
    • assignGuestToSubEvents($eventUuid, $guestCode, $subEventIds)POST /api/events/{EventUuid}/guests/{GuestCode}/sub-events, transactional batch assignment; participations come back as invited or waitlisted when the quota is exhausted
  • Regenerated build/ from the latest spec. The committed build was stale, so this also picks up resources added since the last regeneration: Checkins, ExtendedFields, GuestGroups, GuestImport, Orders, Tracking, plus new requests on existing resources (e.g. UpdateContact, SendEmailTemplate, UpdateGuests).
  • Generator fix: ConnectorGenerator passed crescat's ApiSpecification::$baseUrl (a BaseUrl object in the locked generator version) straight to Nette, which emitted a Dumper::createObject(...) artifact into CoreApi.php and failed phpstan. Now unwraps ->url.
  • Rector/cs-fixer normalization on src/ (CI would auto-commit these anyway).

Notes

  • Spec source: pre-prod openapi.yml (sub-events not yet deployed to https://airlst.app/openapi.yml). Once deployed, composer build reproduces this output.
  • Some regenerated request constructors gained parameters for endpoints added/changed since the last regeneration — worth a version-bump review before tagging.

Test plan

  • composer rector / composer cs-fixer / composer phpstan — clean
  • composer test — passing

🤖 Generated with Claude Code

- New SubEvents resource: getSubEvents (list with quota state) and
  assignGuestToSubEvents (batch assignment, invited/waitlisted statuses)
- Regenerate build/ from the latest OpenAPI spec: picks up resources added
  since the last regeneration (Checkins, ExtendedFields, GuestGroups,
  GuestImport, Orders, Tracking) and new requests on existing resources
- Fix ConnectorGenerator emitting a Nette Dumper artifact for baseUrl:
  crescat's ApiSpecification::baseUrl is a BaseUrl object, unwrap ->url
- Rector/cs-fixer normalization on src/

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant