-
Notifications
You must be signed in to change notification settings - Fork 751
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix dashboard cache building (#2654)
- Loading branch information
1 parent
99bb419
commit e714ce1
Showing
13 changed files
with
304 additions
and
711 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,3 @@ | ||
import { | ||
IActivityBySentimentMoodResult, | ||
IActivityByTypeAndPlatformResult, | ||
IActivityTimeseriesResult, | ||
} from '@crowd/data-access-layer' | ||
import { IActiveOrganizationsTimeseriesResult } from '@crowd/data-access-layer/src/organizations' | ||
|
||
export interface IActiveMembersTimeseriesResult { | ||
date: string | ||
count: number | ||
} | ||
|
||
export interface INewMembersTimeseriesResult { | ||
date: string | ||
count: number | ||
} | ||
|
||
export interface INewOrganizationsTimeseriesResult { | ||
date: string | ||
count: number | ||
} | ||
|
||
export interface IDashboardData { | ||
activeMembers: { | ||
total: number | ||
previousPeriodTotal: number | ||
timeseries: IActiveMembersTimeseriesResult[] | ||
} | ||
newMembers: { | ||
total: number | ||
previousPeriodTotal: number | ||
timeseries: INewMembersTimeseriesResult[] | ||
} | ||
newOrganizations: { | ||
total: number | ||
previousPeriodTotal: number | ||
timeseries: INewOrganizationsTimeseriesResult[] | ||
} | ||
activeOrganizations: { | ||
total: number | ||
previousPeriodTotal: number | ||
timeseries: IActiveOrganizationsTimeseriesResult[] | ||
} | ||
activity: { | ||
total: number | ||
previousPeriodTotal: number | ||
timeseries: IActivityTimeseriesResult[] | ||
bySentimentMood: IActivityBySentimentMoodResult[] | ||
byTypeAndPlatform: IActivityByTypeAndPlatformResult[] | ||
} | ||
} | ||
|
||
export interface ITimeframe { | ||
startDate: Date | ||
endDate: Date | ||
previousPeriodStartDate: Date | ||
previousPeriodEndDate: Date | ||
} | ||
|
||
export interface IGraphQueryParams { | ||
tenantId: string | ||
segmentIds: string[] | ||
startDate: Date | ||
endDate: Date | ||
platform?: string | ||
groupBy?: string | ||
} | ||
|
||
export interface IProcessComputeOrgAggs { | ||
organizationId: string | ||
} |
Oops, something went wrong.