UNPKG

@amsterdam/bmi-dms-upload

Version:

A document upload flow that can be implemented in any BMI React application. Documents are stored in DMS. Metadata can be added in the flow.

30 lines 1.11 kB
import { ErrorObject } from 'ajv'; import { MetadataGenericType } from './MetadataGenericType'; import { JsonSchema7, UISchemaElement } from '@jsonforms/core'; export type OnChangeCallback = (data: MetadataGenericType, valid: boolean, errors: ErrorObject[]) => void; export interface CustomJsonSchema extends JsonSchema7 { 'bmi-isNotEmpty'?: boolean; 'is-date-year'?: boolean; properties?: { [property: string]: JsonSchema7 & { 'bmi-isNotEmpty'?: boolean; 'is-date-year'?: boolean; customFormat?: 'creatable' | 'creatable-array' | 'multi-creatable'; properties?: { [property: string]: JsonSchema7 & { 'bmi-isNotEmpty'?: boolean; 'is-date-year'?: boolean; customFormat?: 'creatable' | 'creatable-array' | 'multi-creatable'; }; }; }; }; } export interface RowLayoutSchema { type: 'RowLayout'; elements: Array<UISchemaElement & { scope: string; label?: string; }>; } //# sourceMappingURL=JsonForms.d.ts.map