UNPKG

@nangohq/types

Version:

Types used in Nango applications

30 lines (29 loc) 651 B
import type { Endpoint } from '../api'; import type { Provider } from './provider'; export type GetPublicProviders = Endpoint<{ Method: 'GET'; Path: `/providers`; Querystring: { search?: string | undefined; connect_session_token?: string; }; Success: { data: ApiProvider[]; }; }>; export type ApiProvider = Provider & { name: string; }; export type GetPublicProvider = Endpoint<{ Method: 'GET'; Path: `/providers/:provider`; Params: { provider: string; }; Querystring?: { connect_session_token: string; }; Success: { data: ApiProvider; }; }>;