UNPKG

@ministryofjustice/hmpps-digital-prison-reporting-frontend

Version:

The Digital Prison Reporting Frontend contains templates and code to help display data effectively in UI applications.

237 lines (236 loc) 11.2 kB
export declare const ViewedReportSchema: import("zod").ZodPipe<import("zod").ZodObject<{ reportId: import("zod").ZodString; variantId: import("zod").ZodOptional<import("zod").ZodString>; id: import("zod").ZodString; executionId: import("zod").ZodOptional<import("zod").ZodString>; tableId: import("zod").ZodOptional<import("zod").ZodString>; reportName: import("zod").ZodString; variantName: import("zod").ZodOptional<import("zod").ZodString>; name: import("zod").ZodOptional<import("zod").ZodString>; schedule: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodString; status: import("zod").ZodOptional<import("zod").ZodEnum<{ SUBMITTED: import("../../../../types/UserReports").RequestStatus.SUBMITTED; STARTED: import("../../../../types/UserReports").RequestStatus.STARTED; PICKED: import("../../../../types/UserReports").RequestStatus.PICKED; FINISHED: import("../../../../types/UserReports").RequestStatus.FINISHED; FAILED: import("../../../../types/UserReports").RequestStatus.FAILED; ABORTED: import("../../../../types/UserReports").RequestStatus.ABORTED; EXPIRED: import("../../../../types/UserReports").RequestStatus.EXPIRED; READY: import("../../../../types/UserReports").RequestStatus.READY; ALL: import("../../../../types/UserReports").RequestStatus.ALL; }>>; timestamp: import("zod").ZodObject<{ lastViewed: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>; requested: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>; completed: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>; expired: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>; failed: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>; retried: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>; aborted: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>; refresh: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>; }, import("zod/v4/core").$strip>; dataProductDefinitionsPath: import("zod").ZodOptional<import("zod").ZodString>; dpdPathFromQuery: import("zod").ZodOptional<import("zod").ZodBoolean>; query: import("zod").ZodOptional<import("zod").ZodObject<{ data: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>>>; summary: import("zod").ZodArray<import("zod").ZodObject<{ name: import("zod").ZodString; value: import("zod").ZodString; }, import("zod/v4/core").$catchall<import("zod").ZodUnknown>>>; }, import("zod/v4/core").$strip>>; interactiveQuery: import("zod").ZodOptional<import("zod").ZodObject<{ data: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>>>; summary: import("zod").ZodArray<import("zod").ZodObject<{ name: import("zod").ZodString; value: import("zod").ZodString; }, import("zod/v4/core").$catchall<import("zod").ZodUnknown>>>; }, import("zod/v4/core").$strip>>; url: import("zod").ZodOptional<import("zod").ZodObject<{ origin: import("zod").ZodString; request: import("zod").ZodOptional<import("zod").ZodObject<{ pathname: import("zod").ZodOptional<import("zod").ZodString>; fullUrl: import("zod").ZodOptional<import("zod").ZodString>; search: import("zod").ZodOptional<import("zod").ZodString>; default: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod/v4/core").$strip>>; report: import("zod").ZodOptional<import("zod").ZodObject<{ pathname: import("zod").ZodOptional<import("zod").ZodString>; fullUrl: import("zod").ZodOptional<import("zod").ZodString>; search: import("zod").ZodOptional<import("zod").ZodString>; default: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod/v4/core").$strip>>; polling: import("zod").ZodOptional<import("zod").ZodObject<{ pathname: import("zod").ZodOptional<import("zod").ZodString>; fullUrl: import("zod").ZodOptional<import("zod").ZodString>; search: import("zod").ZodOptional<import("zod").ZodString>; default: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod/v4/core").$strip>>; }, import("zod/v4/core").$strip>>; type: import("zod").ZodEnum<{ report: import("../../../../types/UserReports").ReportType.REPORT; dashboard: import("../../../../types/UserReports").ReportType.DASHBOARD; }>; loadType: import("zod").ZodOptional<import("zod").ZodEnum<{ sync: import("../../../../types/UserReports").LoadType.SYNC; async: import("../../../../types/UserReports").LoadType.ASYNC; }>>; childExecutionData: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ variantId: import("zod").ZodString; executionId: import("zod").ZodOptional<import("zod").ZodString>; tableId: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodEnum<{ SUBMITTED: import("../../../../types/UserReports").RequestStatus.SUBMITTED; STARTED: import("../../../../types/UserReports").RequestStatus.STARTED; PICKED: import("../../../../types/UserReports").RequestStatus.PICKED; FINISHED: import("../../../../types/UserReports").RequestStatus.FINISHED; FAILED: import("../../../../types/UserReports").RequestStatus.FAILED; ABORTED: import("../../../../types/UserReports").RequestStatus.ABORTED; EXPIRED: import("../../../../types/UserReports").RequestStatus.EXPIRED; READY: import("../../../../types/UserReports").RequestStatus.READY; ALL: import("../../../../types/UserReports").RequestStatus.ALL; }>>; }, import("zod/v4/core").$strip>>>; }, import("zod/v4/core").$strip>, import("zod").ZodTransform<{ reportId: string; id: string; reportName: string; description: string; timestamp: { lastViewed?: Date | undefined; requested?: Date | undefined; completed?: Date | undefined; expired?: Date | undefined; failed?: Date | undefined; retried?: Date | undefined; aborted?: Date | undefined; refresh?: Date | undefined; }; type: import("../../../../types/UserReports").ReportType.REPORT | import("../../../../types/UserReports").ReportType.DASHBOARD; variantId?: string | undefined; executionId?: string | undefined; tableId?: string | undefined; variantName?: string | undefined; name?: string | undefined; schedule?: string | undefined; status?: import("../../../../types/UserReports").RequestStatus | undefined; dataProductDefinitionsPath?: string | undefined; dpdPathFromQuery?: boolean | undefined; query?: { data: Record<string, string | string[]>; summary: { [x: string]: unknown; name: string; value: string; }[]; } | undefined; interactiveQuery?: { data: Record<string, string | string[]>; summary: { [x: string]: unknown; name: string; value: string; }[]; } | undefined; url?: { origin: string; request?: { pathname?: string | undefined; fullUrl?: string | undefined; search?: string | undefined; default?: string | undefined; } | undefined; report?: { pathname?: string | undefined; fullUrl?: string | undefined; search?: string | undefined; default?: string | undefined; } | undefined; polling?: { pathname?: string | undefined; fullUrl?: string | undefined; search?: string | undefined; default?: string | undefined; } | undefined; } | undefined; loadType?: import("../../../../types/UserReports").LoadType.SYNC | import("../../../../types/UserReports").LoadType.ASYNC | undefined; childExecutionData?: { variantId: string; executionId?: string | undefined; tableId?: string | undefined; status?: import("../../../../types/UserReports").RequestStatus | undefined; }[] | undefined; } & { name: string; } & { name: string; }, { reportId: string; id: string; reportName: string; description: string; timestamp: { lastViewed?: Date | undefined; requested?: Date | undefined; completed?: Date | undefined; expired?: Date | undefined; failed?: Date | undefined; retried?: Date | undefined; aborted?: Date | undefined; refresh?: Date | undefined; }; type: import("../../../../types/UserReports").ReportType.REPORT | import("../../../../types/UserReports").ReportType.DASHBOARD; variantId?: string | undefined; executionId?: string | undefined; tableId?: string | undefined; variantName?: string | undefined; name?: string | undefined; schedule?: string | undefined; status?: import("../../../../types/UserReports").RequestStatus | undefined; dataProductDefinitionsPath?: string | undefined; dpdPathFromQuery?: boolean | undefined; query?: { data: Record<string, string | string[]>; summary: { [x: string]: unknown; name: string; value: string; }[]; } | undefined; interactiveQuery?: { data: Record<string, string | string[]>; summary: { [x: string]: unknown; name: string; value: string; }[]; } | undefined; url?: { origin: string; request?: { pathname?: string | undefined; fullUrl?: string | undefined; search?: string | undefined; default?: string | undefined; } | undefined; report?: { pathname?: string | undefined; fullUrl?: string | undefined; search?: string | undefined; default?: string | undefined; } | undefined; polling?: { pathname?: string | undefined; fullUrl?: string | undefined; search?: string | undefined; default?: string | undefined; } | undefined; } | undefined; loadType?: import("../../../../types/UserReports").LoadType.SYNC | import("../../../../types/UserReports").LoadType.ASYNC | undefined; childExecutionData?: { variantId: string; executionId?: string | undefined; tableId?: string | undefined; status?: import("../../../../types/UserReports").RequestStatus | undefined; }[] | undefined; }>>;