Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate /events and event resource #74

Open
razor-x opened this issue Aug 30, 2024 · 2 comments
Open

Generate /events and event resource #74

razor-x opened this issue Aug 30, 2024 · 2 comments
Assignees

Comments

@razor-x
Copy link
Collaborator

razor-x commented Aug 30, 2024

We have blueprint.routes and blueprint.resources. I think we need `blueprint.events because while we have the union types, we still need to pick out specific members of the unions to document on each page.

But first, before we add blueprint.events, let's see what happens if we try to generate the blueprint for /events and the event resource.

@mikewuu
Copy link
Contributor

mikewuu commented Sep 16, 2024

@razor-x any thoughts on adding blueprint.events? Is it just an enum?

@razor-x
Copy link
Collaborator Author

razor-x commented Sep 17, 2024

@mikewuu It would be something like events: EventResource[] where each EventResource is one of the union elements, basically an element for each thing in this array: https://github.com/seamapi/types/blob/d7b349400cacdf9741b43a501c02665401189881/src/lib/seam/connect/models/events/seam-event.ts#L13-L20

interface EventResource extends Resource {
  event_type: string
}

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

No branches or pull requests

2 participants