feat(dashboard): close legacy parity gaps
This commit is contained in:
1 parent
92287c0a9a
commit
4b3f00729f
21 files changed
+397
-28
No files matched your search
@@ -18,6 +18,20 @@ export const SentMessageSchema = z.strictObject({
|
||||
});
|
||||
export const MessagesResponseSchema = z.array(SentMessageSchema);
|
||||
|
||||
export const ProcessedPostSchema = z.strictObject({
|
||||
id: z.string(),
|
||||
subreddit: z.string(),
|
||||
author: z.string(),
|
||||
title: z.string(),
|
||||
imageUrl: z.string().nullable(),
|
||||
imageAnalysis: z.string().nullable(),
|
||||
generatedMessage: z.string().nullable(),
|
||||
processedAt: z.number(),
|
||||
messageSent: z.boolean(),
|
||||
error: z.string().nullable(),
|
||||
});
|
||||
export const ProcessedPostsResponseSchema = z.array(ProcessedPostSchema);
|
||||
|
||||
export const SuccessfulExampleSchema = z.strictObject({
|
||||
id: z.number(),
|
||||
sentMessageId: z.number().nullable(),
|
||||
@@ -31,4 +45,5 @@ export const SuccessfulExampleSchema = z.strictObject({
|
||||
export const SuccessfulExamplesResponseSchema = z.array(SuccessfulExampleSchema);
|
||||
|
||||
export type SentMessage = z.infer<typeof SentMessageSchema>;
|
||||
export type ProcessedPost = z.infer<typeof ProcessedPostSchema>;
|
||||
export type SuccessfulExample = z.infer<typeof SuccessfulExampleSchema>;
|
||||
Reference in new issue
Block a user