UNPKG

@cranberry-money/shared-services

Version:

Platform-agnostic API services with pure functions and dependency injection. Includes auth, portfolios, instruments, countries, sectors, and more.

10 lines 896 B
import { AxiosInstance } from 'axios'; import type { UserProfile, CreateUserProfile, UpdateUserProfile, CompleteUserProfile, PaginatedResponse } from '@cranberry-money/shared-types'; type PaginatedUserProfiles = PaginatedResponse<UserProfile>; export declare const configureUsers: (apiClient: AxiosInstance) => void; export declare const createUserProfile: (data: CreateUserProfile) => Promise<import("axios").AxiosResponse<UserProfile, any>>; export declare const updateUserProfile: (uuid: string, data: UpdateUserProfile) => Promise<import("axios").AxiosResponse<UserProfile, any>>; export declare const updateUserProfileCompletion: (uuid: string, data: CompleteUserProfile) => Promise<import("axios").AxiosResponse<UserProfile, any>>; export declare const getUserProfiles: () => Promise<import("axios").AxiosResponse<PaginatedUserProfiles, any>>; export {}; //# sourceMappingURL=users.d.ts.map