Co-authored-by: Michael Chihlas <michael@resolutionflow.com> Co-committed-by: Michael Chihlas <michael@resolutionflow.com>
23 lines
571 B
TypeScript
23 lines
571 B
TypeScript
import apiClient from './client'
|
|
|
|
export interface PublicPlanResponse {
|
|
plan: string
|
|
display_name: string
|
|
description: string | null
|
|
monthly_price_cents: number | null
|
|
annual_price_cents: number | null
|
|
max_seats: number | null
|
|
sort_order: number
|
|
is_public: boolean
|
|
}
|
|
|
|
export const plansApi = {
|
|
/** Public plan catalog for the marketing /pricing page. No auth. */
|
|
async getPublic(): Promise<PublicPlanResponse[]> {
|
|
const response = await apiClient.get<PublicPlanResponse[]>('/plans/public')
|
|
return response.data
|
|
},
|
|
}
|
|
|
|
export default plansApi
|