Skip to content

feat: implement OrganizationEventsResource and UserEventsResource classes#4

Merged
IamKirbki merged 1 commit intomainfrom
feat/split-events
Mar 26, 2026
Merged

feat: implement OrganizationEventsResource and UserEventsResource classes#4
IamKirbki merged 1 commit intomainfrom
feat/split-events

Conversation

@IamKirbki
Copy link
Copy Markdown
Contributor

Summary

Split events into separate resources for both organizations and users, following the same pattern used for scheduled resources.

Changes

  • Created OrganizationEventsResource in src/core/resources/organizations/events.ts with post() method
  • Created UserEventsResource in src/core/resources/users/events.ts with post() method
  • Updated OrganizationResource and UserResource to expose events as a nested property
  • Removed postEvents methods from the main resource classes

Usage

// Organization events
client.organizations.events.post([...])

// User events
client.users.events.post([...])

@IamKirbki IamKirbki merged commit 8923aa2 into main Mar 26, 2026
1 check passed
@IamKirbki IamKirbki deleted the feat/split-events branch March 26, 2026 11:02
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.

2 participants