(form: SquadForm)
| 1162 | }); |
| 1163 | |
| 1164 | export async function createSquad(form: SquadForm): Promise<Squad> { |
| 1165 | const { description, ...inputData } = formToInput(form); |
| 1166 | // The API rejects an empty description, so a squad created without one |
| 1167 | // (the Startups company step asks only for a name) leaves it out |
| 1168 | const data = await gqlClient.request(CREATE_SQUAD_MUTATION, { |
| 1169 | ...inputData, |
| 1170 | ...(description ? { description } : {}), |
| 1171 | }); |
| 1172 | |
| 1173 | return data.createSquad; |
| 1174 | } |
| 1175 | |
| 1176 | interface EditSquadMutation { |
| 1177 | id: string; |
nothing calls this directly
no test coverage detected