/* tslint:disable */ /* eslint-disable */ /** * EMIL Tenant Service * The EMIL TenantService API description * * The version of the OpenAPI document: 1.0 * Contact: kontakt@emil.de * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface CustomFieldDto */ export interface CustomFieldDto { /** * The name of the custom field - should be camelCase. * @type {string} * @memberof CustomFieldDto */ 'name': string; /** * The label of the custom field as it will be displayed in the UI. If no label is provided, the name will be used in its place. * @type {string} * @memberof CustomFieldDto */ 'label'?: string; /** * The type of the custom field. Supported types are: string, number, boolean, array, object, date, dateTime, phoneNumber, email, url * @type {string} * @memberof CustomFieldDto */ 'type': CustomFieldDtoTypeEnum; /** * Indicates whether the customField is required * @type {boolean} * @memberof CustomFieldDto */ 'isRequired': boolean; /** * Minimum for number field * @type {number} * @memberof CustomFieldDto */ 'minimum'?: number; /** * Maximum for number field * @type {number} * @memberof CustomFieldDto */ 'maximum'?: number; /** * Minimum length for string field * @type {number} * @memberof CustomFieldDto */ 'minLength'?: number; /** * Maximum length for string field * @type {number} * @memberof CustomFieldDto */ 'maxLength'?: number; /** * Possible options to select * @type {object} * @memberof CustomFieldDto */ 'options'?: object; /** * The minimum number of items allowed for array fields. * @type {number} * @memberof CustomFieldDto */ 'minItems'?: number; /** * The maximum number of items allowed for array fields. * @type {number} * @memberof CustomFieldDto */ 'maxItems'?: number; /** * Defines the structure of items for array fields. * @type {CustomFieldDto} * @memberof CustomFieldDto */ 'items'?: CustomFieldDto; /** * Defines the properties for object fields. * @type {object} * @memberof CustomFieldDto */ 'properties'?: object; /** * Defines the regex expression for string field. * @type {string} * @memberof CustomFieldDto */ 'regexExpression'?: string; } export const CustomFieldDtoTypeEnum = { String: 'string', Number: 'number', Boolean: 'boolean', Date: 'date', DateTime: 'dateTime', Email: 'email', Object: 'object', Phone: 'phone', Url: 'url', Array: 'array' } as const; export type CustomFieldDtoTypeEnum = typeof CustomFieldDtoTypeEnum[keyof typeof CustomFieldDtoTypeEnum];