import { HttpClient } from '../client/http-client'; export interface AdditionalDataItem { paramName: string; value: string; } export interface SetAdditionalDataInput { applicantId: number; items: AdditionalDataItem[]; } export interface SetAdditionalDataResult { isSuccess: boolean; nextStep?: any; } /** * One answer an applicant can pick for an Additional Data question. * * `label` and `description` are plain text or a `$t:key` translation marker. */ export interface AdditionalDataOption { /** The value sent in SetAdditionalData for this question's key. */ value: string; label: string; description: string | null; } /** * One question of an Additional Data definition, rendered as a radio group. * * `label` and `description` are plain text or a `$t:key` translation marker. */ export interface AdditionalDataQuestion { /** The additional-data param name the answer is stored under. */ key: string; label: string; description: string | null; required: boolean; /** 2 to 20 options. */ options: AdditionalDataOption[]; } /** * What the applicant's current Additional Data step asks, as configured in VeroCompliance. * * `title` and `description` are plain text or a `$t:key` translation marker. */ export interface AdditionalDataDefinition { title: string; description: string | null; /** 1 to 10 questions. */ questions: AdditionalDataQuestion[]; } export interface GetAdditionalDataOutput { applicantId: number; items: AdditionalDataItem[]; /** * The definition of the applicant's current Additional Data step. `null` when that step has * none, and absent from backends that predate definitions: the SDK then shows the built-in * investor-type question. */ definition?: AdditionalDataDefinition | null; } export declare class AdditionalDataService { private httpClient; constructor(httpClient: HttpClient); getAdditionalData(applicantId: number): Promise; setAdditionalData(input: SetAdditionalDataInput): Promise; } //# sourceMappingURL=additional-data.service.d.ts.map