refactor(contract): restructure console contracts with nested billing module (#30999)

This commit is contained in:
yyh
2026-01-15 10:41:18 +08:00
committed by GitHub
parent 328897f81c
commit 3bee2ee067
6 changed files with 31 additions and 24 deletions

View File

@ -0,0 +1,25 @@
import { type } from '@orpc/contract'
import { base } from '../base'
export const invoicesContract = base
.route({
path: '/billing/invoices',
method: 'GET',
})
.input(type<unknown>())
.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>())

View File

@ -0,0 +1,11 @@
import type { SystemFeatures } from '@/types/feature'
import { type } from '@orpc/contract'
import { base } from '../base'
export const systemFeaturesContract = base
.route({
path: '/system-features',
method: 'GET',
})
.input(type<unknown>())
.output(type<SystemFeatures>())