| 308 | }; |
| 309 | |
| 310 | export const updateFeedbackStatus = async ({ |
| 311 | id, |
| 312 | status, |
| 313 | message, |
| 314 | }: { |
| 315 | id: string; |
| 316 | status: FeedbackStatus; |
| 317 | message?: string; |
| 318 | }): Promise<Pick<FeedbackItem, 'id' | 'status' | 'updatedAt' | 'replies'>> => { |
| 319 | const res = await gqlClient.request<{ |
| 320 | updateFeedbackStatus: Pick< |
| 321 | FeedbackItem, |
| 322 | 'id' | 'status' | 'updatedAt' | 'replies' |
| 323 | >; |
| 324 | }>(UPDATE_FEEDBACK_STATUS_MUTATION, { id, status, message }); |
| 325 | return res.updateFeedbackStatus; |
| 326 | }; |
| 327 | |
| 328 | export const feedbackQueryOptions = ({ id }: { id: string }) => ({ |
| 329 | queryKey: generateQueryKey(RequestKey.Feedback, undefined, id), |