export type Shape = { [key: string]: any; }; export type Id = number | string; export type HasId = { id: Id; }; export type Count = { count: number; }; export type BackendEnum = { id: string; }; export const AuthorizationHeader = 'Authorization'; export enum ApiKeys { USERS = 'users', ADDRESSES = 'addresses', BANKS = 'banks', CREDITS = 'credits', FORMS = 'forms', KYCS = 'kycs', LOANPARTS = 'loanParts', PERSONS = 'persons', TINKLOANS = 'tinkLoans', TINKACCOUNTS = 'tinkAccounts', TINK = 'tink', RAW = 'raw', SESSIONS = 'sessions', // enums EMPLOYMENT_TYPES = 'employmentTypes', CURRENCIES = 'currencies', COUNTRIES = 'countries', GENDERS = 'genders', MARKETS = 'markets', CREDIT_TYPES = 'creditTypes', KYC_SOURCES = 'kycSources', KYC_PURPOSES = 'kycPurposes', } export enum Methods { POST = 'post', GET = 'get', PUT = 'put', PATCH = 'patch', DELETE = 'delete', HEAD = 'head', } export enum RelationTypes { hasOne = 'hasOne', belongsTo = 'belongsTo', hasMany = 'hasMany', } export type RequestObject = { url: string; method: Methods; query?: Shape; headers?: Shape; data?: Shape; };