feat: add agent API and operational analytics
This commit is contained in:
1 parent
720ea0652a
commit
e8b730b592
65 files changed
+2650
-1214
No files matched your search
@@ -7,6 +7,9 @@ const PerformanceFields = {
|
||||
responseRate: z.number(),
|
||||
totalImages: z.number(),
|
||||
imageRate: z.number(),
|
||||
pendingSent: z.number().optional(),
|
||||
responseRateLow: z.number().optional(),
|
||||
responseRateHigh: z.number().optional(),
|
||||
};
|
||||
|
||||
export const StatsResponseSchema = z.strictObject({
|
||||
@@ -57,5 +60,19 @@ export const DailyTrendSchema = z.strictObject({
|
||||
});
|
||||
export const DailyTrendResponseSchema = z.array(DailyTrendSchema);
|
||||
|
||||
export const FunnelResponseSchema = z.strictObject({
|
||||
responseWindowHours: z.number(),
|
||||
processed: z.number(),
|
||||
sent: z.number(),
|
||||
pending: z.number(),
|
||||
mature: z.number(),
|
||||
responded: z.number(),
|
||||
engaged: z.number(),
|
||||
declined: z.number(),
|
||||
boundary: z.number(),
|
||||
upsell: z.number(),
|
||||
images: z.number(),
|
||||
});
|
||||
|
||||
export type StatsResponse = z.infer<typeof StatsResponseSchema>;
|
||||
export type TimersResponse = z.infer<typeof TimersResponseSchema>;
|
||||
Reference in new issue
Block a user