import { FormItemType } from "../Common/Channels/Form"; import { FormAnswerV2, FormTag } from "./SubmittedForm"; export interface RequestInfo { formId: string; timeStart: Date | null; timeEnd: Date | null; skip: number | null; limit: number | null; } export interface SummaryInfo { formId: string; timeStart: Date | null; timeEnd: Date | null; completedForms: number; records: QuestionSummary[]; } export interface QuestionSummary { questionId: string; question: string; type: FormItemType; fieldType: string; count: number; responses: ResponseSummary[]; } export interface ResponseSummary { count: number; responseTitle: string; } export interface SubmittedFormsInfo { formId: string; timeStart: Date | null; timeEnd: Date | null; completedForms: number; records: SubmittedFormRecord[]; } export interface SubmittedFormRecord { id: string; tags: FormTag[]; responses: SubmittedFormResponse[]; expireAt: Date | null; createdAt: Date; completedAt: Date | null; contractVersion: number; formRevision: number; } export interface SubmittedFormResponse { type: FormItemType; fieldType: string; questionId: string; question: string; response: unknown | null; answer?: FormAnswerV2 | null; }