( sourceId: string, items: ReorderSourceStackInput[], )
| 146 | }; |
| 147 | |
| 148 | export const reorderSourceStack = async ( |
| 149 | sourceId: string, |
| 150 | items: ReorderSourceStackInput[], |
| 151 | ): Promise<SourceStack[]> => { |
| 152 | const result = await gqlClient.request<{ |
| 153 | reorderSourceStack: SourceStack[]; |
| 154 | }>(REORDER_SOURCE_STACK_MUTATION, { sourceId, items }); |
| 155 | return result.reorderSourceStack; |
| 156 | }; |