mirror of
https://github.com/langgenius/dify.git
synced 2026-03-15 20:07:23 +08:00
Extract sandboxFilesTreeOptions and buildTreeFromFlatList from useSandboxFilesTree so callers that need custom TanStack Query behavior (e.g. refetchInterval) can compose at the call site instead of tunneling options through the hook. Remove the thin useGetSandboxProviderList wrapper in favor of inline oRPC queryOptions in the component. Also remove redundant .input(type<unknown>()) from three no-input GET contracts—oc already defaults TInputSchema to Schema<unknown, unknown>.
25 lines
478 B
TypeScript
25 lines
478 B
TypeScript
import { type } from '@orpc/contract'
|
|
import { base } from '../base'
|
|
|
|
export const invoicesContract = base
|
|
.route({
|
|
path: '/billing/invoices',
|
|
method: 'GET',
|
|
})
|
|
.output(type<{ url: string }>())
|
|
|
|
export const bindPartnerStackContract = base
|
|
.route({
|
|
path: '/billing/partners/{partnerKey}/tenants',
|
|
method: 'PUT',
|
|
})
|
|
.input(type<{
|
|
params: {
|
|
partnerKey: string
|
|
}
|
|
body: {
|
|
click_id: string
|
|
}
|
|
}>())
|
|
.output(type<unknown>())
|