feat: add RelationInsight API and wire H5 relation/profile pages
Second P1 growth engine: compare two profiles, gate full tips behind deep-access mock payment, and list personal archives on /profile. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -65,6 +65,14 @@ export function createClient(opts: CreateClientOptions) {
|
||||
call<{ order_id: string }>('/api/v1/orders', { method: 'POST', body }),
|
||||
payMock: (orderId: string) =>
|
||||
call<{ paid: boolean }>(`/api/v1/orders/${orderId}/pay-mock`, { method: 'POST' }),
|
||||
createRelationInsight: (profile_a_id: string, profile_b_id: string) =>
|
||||
call<{
|
||||
insight: { id: string; report_id?: string }
|
||||
report: GrowthReport
|
||||
}>('/api/v1/relation/insight', {
|
||||
method: 'POST',
|
||||
body: { profile_a_id, profile_b_id },
|
||||
}),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user