Skip to content

fetching user insights reports#41

Merged
andrew-propelauth merged 6 commits intomainfrom
feat/user-insights-api
Apr 20, 2026
Merged

fetching user insights reports#41
andrew-propelauth merged 6 commits intomainfrom
feat/user-insights-api

Conversation

@mrmauer
Copy link
Copy Markdown
Contributor

@mrmauer mrmauer commented Feb 12, 2026

Tests

more testing required

After PR

let report = await auth.fetchUserTopInviterReport(
    TopInviterReportInterval.THIRTY_DAYS,
    ReportPagination {
        pageSize: 10, // defaults to 10 for all reports
        pageNumber: 0, // defaults to 0 for all reports
    },
);

let report = await auth.fetchUserChampionReport(
    ChampionReportInterval.THIRTY_DAYS,
);

let report = await auth.fetchUserReengagementReport(
    ReengagementReportInterval.WEEKLY,
);

let report = await auth.fetchUserChurnReport(
    ChurnReportInterval.SEVEN_DAYS,
);

let report = await auth.fetchOrgReengagementReport(
    ReengagementReportInterval.WEEKLY,
);

let report = await auth.fetchOrgChurnReport(
    ChurnReportInterval.SEVEN_DAYS,
);

let report = await auth.fetchOrgGrowthReport(
    GrowthReportInterval.THIRTY_DAYS,
);

let report = await auth.fetchOrgAttritionReport(
    AttritionReportInterval.THIRTY_DAYS,
);

let timeseriesOfDailySignups = await auth.fetchChartMetricData(
    ChartMetric.SIGNUPS,
    ChartMetricCadence.DAILY,
    Date("2026-01-01T00:00:00Z"), // startDate defaults to 30 days ago
    // endDate defaults to today, but the most recently available results will be yesterday
);

Copy link
Copy Markdown
Contributor

@pfvatterott pfvatterott left a comment

Choose a reason for hiding this comment

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

Tested, LGTM!

@andrew-propelauth andrew-propelauth merged commit 12b1744 into main Apr 20, 2026
1 check passed
@andrew-propelauth andrew-propelauth deleted the feat/user-insights-api branch April 20, 2026 17:58
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.

3 participants