event-catalog / sdk

JS/TS SDK for EventCatalog
https://eventcatalog.dev/docs/sdk
7 stars 4 forks source link

Possibility to create users and teams via SDK #67

Closed debae closed 1 week ago

debae commented 2 weeks ago

Use Case

At this moment we are building our EventCatalog dynamically with the SDK, however if we want to add owners to a service/event/domain/... those should exists otherwise we get an error like this :

[1] 14:20:34 [ERROR] [InvalidContentEntryFrontmatterError] services → my-service/index.mdx frontmatter does not match collection schema.
[1] owners.0: Reference to users invalid. Expected "users". Received "my-group".

Proposed Solution

We add functions for Team and Users in the SDK : Users

Teams

Implementation Notes

No response

Community Notes

debae commented 1 week ago

PR created : https://github.com/event-catalog/sdk/pull/68 , will first do some validations as well in our catalog which is created via the SDK

boyney123 commented 1 week ago

Thanks for this, this is now released.