Solutions hooks
Hand-written shim. Generated CRUD hooks via ./solutions.gen. The graph custom-op hook stays hand-written until the React gen learns to emit kind: "custom" ops. Solution members are their own generated top-level entity (see ./solution-members).
Hooks
useCreateSolution mutation
Create a solution.
useCreateSolution(options?: MutationOpts<Solution, CreateSolutionParams>)Types: Solution · CreateSolutionParams
useDeleteSolution mutation
Soft-delete a solution (overlay only — member entities are NOT touched).
useDeleteSolution(options?: MutationOpts<SuccessResponse, string>)Types: SuccessResponse
useGetSolutionGraph query
useGetSolutionGraph(id: string, options?: QueryOpts<SolutionGraphResponse>)Types: SolutionGraphResponse
useListSolutions query
List solutions.
useListSolutions(params?: Omit<ListSolutionsParams, | > & { filter?: SolutionFilter; orderBy?: SolutionOrderBy[]; } & SolutionShorthands, options?: QueryOpts<Page<Solution>>)Types: ListSolutionsParams · SolutionFilter · SolutionOrderBy · SolutionShorthands · Page · Solution
usePurgeSolution composite
Permanently delete a soft-deleted solution.
usePurgeSolution(options?: MutationOpts<SuccessResponse, PurgeSolutionParams>)Types: SuccessResponse · PurgeSolutionParams
useRestoreSolution composite
Restore a soft-deleted solution.
useRestoreSolution(options?: MutationOpts<Solution, string>)Types: Solution
useRetrieveSolution query
Get a solution by ID.
useRetrieveSolution(id: string, options?: QueryOpts<Solution>)Types: Solution
useUpdateSolution mutation
Update a solution's name or description.
useUpdateSolution(options?: MutationOpts<Solution, UpdateSolutionParams>)Types: Solution · UpdateSolutionParams