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

Add organization membership events #218

Conversation

mattgd
Copy link
Contributor

@mattgd mattgd commented Apr 25, 2024

Description

Add organization membership events.

Documentation

Does this require changes to the WorkOS Docs? E.g. the API Reference or code snippets need updates.

[ ] Yes

If yes, link a related docs PR and add a docs maintainer as a reviewer. Their approval is required.

@mattgd mattgd self-assigned this Apr 25, 2024
Copy link

linear bot commented Apr 25, 2024

@mattgd mattgd force-pushed the feature/dsync-1374-add-organization-membership-event-types-to-kotlin-sdk branch from f67d7c6 to aef0ad9 Compare April 25, 2024 15:00
@mattgd mattgd marked this pull request as ready for review April 25, 2024 15:02
override val data: OrganizationMembership,

@JvmField
override val createdAt: String
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be deletedAt?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

createdAt represents the event's created timestamp, so would be the same for all events. I'm actually just realizing now that we probably don't need to be overriding this anywhere for WebhookEvent.

override val data: OrganizationMembership,

@JvmField
override val createdAt: String
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similarly, should this be updatedAt?

/**
* Webhook Event for `organization_membership.created`.
*/
class OrganizationMembershipCreatedEvent(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be good to avoid having one class per event, in cases like this one, where all the classes are identical? We could have a OrganizationMembershipEvent class instead. Thoughts?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah great point. I'll combine!

@mattgd mattgd force-pushed the feature/dsync-1374-add-organization-membership-event-types-to-kotlin-sdk branch from d6aae74 to b29dc1e Compare April 26, 2024 14:11
@mattgd mattgd force-pushed the feature/dsync-1374-add-organization-membership-event-types-to-kotlin-sdk branch from b29dc1e to bc0c150 Compare April 26, 2024 14:20
@mattgd mattgd merged commit e6cd88b into beta Apr 26, 2024
4 checks passed
@mattgd mattgd deleted the feature/dsync-1374-add-organization-membership-event-types-to-kotlin-sdk branch April 26, 2024 14:23
PaulAsjes added a commit that referenced this pull request Jul 19, 2024
* User Management support (#212)

* Add Beta SDKs section in README.md (#213)

* Add Beta SDKs section in README.md

* Nit/typo

* Nit in section about Beta releases in the README.md (#214)

* Nit in section about Beta releases in the README.md

* Improvement to README.md

* Update README.md

* User Management support

* Update version (#215)

* Add Beta SDKs section in README.md (#213)

* Add Beta SDKs section in README.md

* Nit/typo

* Nit in section about Beta releases in the README.md (#214)

* Nit in section about Beta releases in the README.md

* Improvement to README.md

* Update README.md

* Update version

* Fix release script (Beta branch) (#217)

* Add Beta SDKs section in README.md (#213)

* Add Beta SDKs section in README.md

* Nit/typo

* Nit in section about Beta releases in the README.md (#214)

* Nit in section about Beta releases in the README.md

* Improvement to README.md

* Update README.md

* Fix typo in release script

* Add organization membership events (#218)

Add organization membership events.

* Update beta version (#219)

* Add events and API changes for invitations and Magic Auth (#221)

* Add events and API changes for invitations and Magic Auth

* Fix failing test

* Rename event data

* v3.1.0-beta.user-management3 (#222)

* Add organization membership deactivate and reactivate API methods. (#226)

* Bump to version 3.1.0-beta.user-management4. (#227)

* Add methods and events for email verification and password reset (#228)

* v3.1.0-beta.user-management5 (#229)

* Add find invitation by token method (#230)

* Fix list endpoints (#236)

* Now correctly parsing data as params for GET requests

* Value has to be a string

* lol linting

* 3.1.0-beta.user-management6 (#233)

* `invitationCode` should be `invitationToken` (#237)

---------

Co-authored-by: amadeo <165715960+amadeo-workos@users.noreply.github.com>
Co-authored-by: Matt Dzwonczyk <9063128+mattgd@users.noreply.github.com>
Co-authored-by: Blair Lunceford <74257063+blairlunceford@users.noreply.github.com>
Co-authored-by: Michael Hadley <m@mthadley.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants