(data: PlainMessage<GetProjectInstructionsRequest>)
| 212 | }; |
| 213 | |
| 214 | export const getProjectInstructions = async (data: PlainMessage<GetProjectInstructionsRequest>) => { |
| 215 | if (!apiclient.hasToken()) { |
| 216 | throw new Error("No token"); |
| 217 | } |
| 218 | const response = await apiclient.get(`/projects/${data.projectId}/instructions`, undefined, { |
| 219 | ignoreErrorToast: true, |
| 220 | }); |
| 221 | return fromJson(GetProjectInstructionsResponseSchema, response); |
| 222 | }; |
| 223 | |
| 224 | export const upsertProjectInstructions = async (data: PlainMessage<UpsertProjectInstructionsRequest>) => { |
| 225 | if (!apiclient.hasToken()) { |
no test coverage detected