/* tslint:disable */ /* eslint-disable */ /** * Credify API doc version 2 * API documentations version 2. * * The version of the OpenAPI document: 1.0.0-oas3 * Contact: dev@credify.one * * 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 Validation */ export interface Validation { /** * Type of the validation. * @type {string} * @memberof Validation */ 'type': ValidationTypeEnum; /** * Value scope of the validation, required in case type is `REMOTE`. * @type {string} * @memberof Validation */ 'scope'?: ValidationScopeEnum; /** * Minimum value configuration of the validation, in case type is `COUNT` or `RANGE`. * @type {number} * @memberof Validation */ 'min'?: number; /** * Maximum value configuration of the validation, in case type is `COUNT` or `RANGE`. * @type {number} * @memberof Validation */ 'max'?: number; /** * Regular expression value, required in case type is `REGEX`. * @type {string} * @memberof Validation */ 'regex'?: string; /** * Type of the count validation, required in case type is `COUNT`. * @type {string} * @memberof Validation */ 'countType'?: ValidationCountTypeEnum; /** * The custom message when validation is failed. * @type {string} * @memberof Validation */ 'message'?: string; } export const ValidationTypeEnum = { NOEMPTY: 'NO_EMPTY', RANGE: 'RANGE', REGEX: 'REGEX', COUNT: 'COUNT', REMOTE: 'REMOTE', IDCARD: 'ID_CARD', OLDIDCARD: 'OLD_ID_CARD', PHONENUMBER: 'PHONE_NUMBER', EMAIL: 'EMAIL', DATE: 'DATE', TIME: 'TIME', DATETIME: 'DATETIME' } as const; export type ValidationTypeEnum = typeof ValidationTypeEnum[keyof typeof ValidationTypeEnum]; export const ValidationScopeEnum = { SCOPE: 'SCOPE', CLAIM: 'CLAIM' } as const; export type ValidationScopeEnum = typeof ValidationScopeEnum[keyof typeof ValidationScopeEnum]; export const ValidationCountTypeEnum = { CHARACTER: 'CHARACTER', WORD: 'WORD' } as const; export type ValidationCountTypeEnum = typeof ValidationCountTypeEnum[keyof typeof ValidationCountTypeEnum];