Skip to content

feat: SDK update for version 32.5.0 - #189

Merged
lohanidamodar merged 2 commits into
mainfrom
release-32.5.0
Nov 28, 2026
Merged

lohanidamodar merged 2 commits into
mainfrom
release-32.5.0

Conversation

@lohanidamodar

Copy link
Copy Markdown
Member

This PR contains updates to the SDK for version 32.5.0.

What's Changed

  • Added: analytics service to create, list, get, update and delete analytics properties
  • Added: analytics.createEvent to send events from a server, with userId, ip and userAgent overrides for API keys with the analytics.write scope
  • Added: analytics.listMetrics to query visitors, sessions, views and events over time or broken down by a dimension
  • Added: analytics.listAnnotations, createAnnotation, getAnnotation, updateAnnotation and deleteAnnotation
  • Added: AnalyticsProperty, AnalyticsAnnotation and AnalyticsMetric models, their list models, and the AnalyticsDimension, AnalyticsInterval and AnalyticsPropertyType enums

@appwrite

appwrite Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Code review

Commit Status Tier Verdict Details
b427a82 Reviewed Reviewed 🟢 S · Ready to merge ✅ Approved View review

Adds the Analytics service to the SDK, with methods and models for properties, events, metrics, and annotations, plus the related enums and exports. It updates package and client version metadata to 32.5.0, adds API examples and service tests, and configures the create-event example to authenticate with an API key for override support.

Latest changes: The latest commit switches the create-event example from session authentication to API-key authentication, so it matches the documented auth requirement for event overrides.

Walkthrough (10)
File Change
CHANGELOG.md Documents the Analytics SDK additions for version 32.5.0.
docs/examples/analytics/ Adds examples for property, event, metric, and annotation operations; create-event now uses API-key authentication.
package.json, package-lock.json Updates the package version to 32.5.0.
src/client.ts Updates the SDK version sent in client metadata.
src/enums/analytics-dimension.ts, src/enums/analytics-interval.ts, src/enums/analytics-property-type.ts Adds Analytics dimension, interval, and property-type enums.
src/index.ts, src/models.ts Exports the Analytics API and adds Analytics property, annotation, metric, and list models.
src/services/analytics.ts Implements methods for managing properties and annotations, creating events, and querying metrics.
test/services/analytics.test.js Adds service tests covering the Analytics methods.
src/index.ts Exports the Analytics service and enums.
src/models.ts Adds Analytics property, annotation, metric, and list models.

Reviewed the commits since 80ce894

Tip

Comment @appwrite review to re-run, or mention @appwrite with a question.

@appwrite appwrite Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Tier A · Looks good to merge. Summary

Comment thread docs/examples/analytics/create-event.md Resolved
@lohanidamodar
lohanidamodar merged commit 965f5cb into main Nov 28, 2026
2 checks passed
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