import { AxiosInstance } from 'axios'; import { BaseRequestModel } from './models'; import { PersonWithRelations } from './person'; import { UserWithRelations } from './user'; import { BaseRequestModelInterface } from './interfaces'; import { belongsTo } from './decorators'; import { KycData, UserData, PersonData } from '../types'; @belongsTo({ urlPath: 'user', classProp: 'user' }) @belongsTo({ urlPath: 'person', classProp: 'person' }) export class Kyc extends BaseRequestModel implements BaseRequestModelInterface { constructor(api: AxiosInstance) { super(api, '/kycs'); } } export interface KycRelations { person?: PersonWithRelations; user?: UserWithRelations; } export type KycWithRelations = Kyc & KycRelations;