feat: Added platform emails for billing limits and disabled projects
This commit is contained in:
@@ -15,4 +15,41 @@ export const Keys = {
|
||||
return `domain:project:${projectId}`;
|
||||
},
|
||||
},
|
||||
Billing: {
|
||||
usage(projectId: string, sourceType: string, year: number, month: string): string {
|
||||
return `billing:usage:${projectId}:${sourceType}:${year}-${month}`;
|
||||
},
|
||||
warningEmail(projectId: string, sourceType: string, year: number, month: string): string {
|
||||
return `billing:warning_email:${projectId}:${sourceType}:${year}-${month}`;
|
||||
},
|
||||
limitEmail(projectId: string, sourceType: string, year: number, month: string): string {
|
||||
return `billing:limit_email:${projectId}:${sourceType}:${year}-${month}`;
|
||||
},
|
||||
},
|
||||
Security: {
|
||||
rates(projectId: string): string {
|
||||
return `security:${projectId}:rates`;
|
||||
},
|
||||
},
|
||||
Activity: {
|
||||
stats(projectId: string, startTime: number | string, endTime: number | string): string {
|
||||
return `activity:stats:${projectId}:${startTime}:${endTime}`;
|
||||
},
|
||||
},
|
||||
Analytics: {
|
||||
timeseries(projectId: string, startDate: string, endDate: string): string {
|
||||
return `analytics:timeseries:${projectId}:${startDate}:${endDate}`;
|
||||
},
|
||||
campaignStats(projectId: string, startDate: string, endDate: string): string {
|
||||
return `analytics:campaignStats:${projectId}:${startDate}:${endDate}`;
|
||||
},
|
||||
topEvents(projectId: string, limit: number, startDate: string, endDate: string): string {
|
||||
return `analytics:topEvents:${projectId}:${limit}:${startDate}:${endDate}`;
|
||||
},
|
||||
},
|
||||
Workflow: {
|
||||
enabled(projectId: string): string {
|
||||
return `workflows:enabled:${projectId}`;
|
||||
},
|
||||
},
|
||||
} as const;
|
||||
|
||||
Reference in New Issue
Block a user