feat: auth user feedbacks
This commit is contained in:
@@ -202,6 +202,13 @@ export type Feedback = {
|
||||
message: string;
|
||||
contact_email?: string;
|
||||
created_at: string;
|
||||
/** Set when the team has seen the submission (one-way). */
|
||||
acknowledged_at?: string;
|
||||
/** Set when the submission has been addressed (one-way). */
|
||||
resolved_at?: string;
|
||||
/** The team's written reply, if any, and when it was sent. */
|
||||
reply_message?: string;
|
||||
replied_at?: string;
|
||||
};
|
||||
|
||||
// ─── Posts ───────────────────────────────────────────────────────────────
|
||||
@@ -559,6 +566,11 @@ export const feedback = {
|
||||
}),
|
||||
});
|
||||
},
|
||||
/** The signed-in user's own submissions, newest first — each with its
|
||||
* status (acknowledged / resolved) and any admin reply. Auth-only. */
|
||||
mine() {
|
||||
return call<Feedback[]>("/feedback/mine");
|
||||
},
|
||||
};
|
||||
|
||||
// ─── Public profile ──────────────────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user