| 222 | }; |
| 223 | |
| 224 | export const upsertProjectInstructions = async (data: PlainMessage<UpsertProjectInstructionsRequest>) => { |
| 225 | if (!apiclient.hasToken()) { |
| 226 | throw new Error("No token"); |
| 227 | } |
| 228 | const response = await apiclient.post(`/projects/${data.projectId}/instructions`, data); |
| 229 | return fromJson(UpsertProjectInstructionsResponseSchema, response); |
| 230 | }; |
| 231 | |
| 232 | export const acceptComments = async (data: PlainMessage<CommentsAcceptedRequest>) => { |
| 233 | const response = await apiclient.post(`/comments/accepted`, data); |