UNPKG

@wenn/onb

Version:

onb-core

440 lines (433 loc) 7.1 kB
export const commonSend = { default: { type: 'object', required: ['type', 'value'], properties: { value: { type: 'string' }, type: { type: 'string' } } }, email: { type: 'object', required: ['type', 'value'], properties: { value: { type: 'string', format: 'email' }, type: { type: 'string' } } }, empty: {} }; let offer_installments = { type: 'array', required: ['max_amount', 'max_quota', 'installment', 'rates', 'interest', 'commission_amount'], properties: { max_amount: 'number', max_quota: 'number', installment: 'number', rates, interest: 'number', commission_amount: 'number' } }; let quotas = { type: 'array' }; let rates = { type: 'object', properties: { CFT: { type: 'object', required: ['type', 'value', 'value_with_tax'], properties: { type: { type: 'string' }, value: { type: 'number' }, value_with_tax: { type: 'number' } } }, TEA: { type: 'object', required: ['type', 'value', 'value_with_tax'], properties: { type: { type: 'string' }, value: { type: 'number' }, value_with_tax: { type: 'number' } } }, TPD: { type: 'object', required: ['type', 'value', 'value_with_tax'], properties: { type: { type: 'string' }, value: { type: 'number' }, value_with_tax: { type: 'number' } } }, TNA: { type: 'object', required: ['type', 'value', 'value_with_tax'], properties: { type: { type: 'string' }, value: { type: 'number' }, value_with_tax: { type: 'number' } } }, TEM: { type: 'object', required: ['type', 'value', 'value_with_tax'], properties: { type: { type: 'string' }, value: { type: 'number' }, value_with_tax: { type: 'number' } } } } }; let validation_questionnaire = { questions: { type: 'array', required: ['id', 'text', 'options'], properties: { id: { type: 'number' }, text: { type: 'string' }, options: { type: 'array', required: ['id', 'text'], properties: { id: { type: 'number' }, text: { type: 'string' } } } } } }; let validation_questions_process = { questions: { type: 'array', required: ['id', 'options'], properties: { id: { type: 'number' }, text: { type: 'string' }, question: { type: 'string' }, correctAnswer: { type: 'number' }, options: { type: 'object', properties: { id: { type: 'string' }, text: { type: 'string' } } } } } }; export const commonEnd = { certificate_file: { type: 'string' }, evaluation_status: { type: 'string' }, service_code: { type: 'string' }, message: { type: 'string' }, error_code: { type: 'string' }, offer_installments, quotas, max_quota: { type: 'number' }, max_period: { type: 'number' }, min_period: { type: 'number' }, commission: { type: 'number' }, offer_rate: { type: 'number' }, max_amount: { type: 'number' }, min_amount: { type: 'number' }, product_and_version: { type: 'string' }, product_name: { type: 'string' }, product_id: { type: 'string' }, risk_score_id: { type: 'string' }, certificate_file: { type: 'string' }, evaluation_status: { type: 'string' }, id: { type: 'string' }, validationID: { type: 'string' }, firstname: { type: 'string' }, lastname: { type: 'string' }, fiscal_id: { type: 'string' }, birthdate: { type: 'string' }, gender: { type: 'string' }, national_id: { type: 'string' }, taskid: { type: 'string' }, flowerror: { type: 'string' }, flowerrorcomponent: { type: 'string' }, view: { type: 'string' }, email: { type: 'string' }, dni: { type: 'string' }, area: { type: 'string' }, phone: { type: 'string' }, afip: { type: 'string' }, username: { type: 'string' }, amount: { type: 'string' }, termsyconditions: { type: 'boolean' }, boolean: { type: 'boolean' }, dataPersonalInfo: { type: 'object', required: [ 'cbu', 'street', 'number', 'floor', 'apartment', 'postalCode', 'city', 'expirationDates', 'province', 'alternativePhoneNumber' ], properties: { cbu: { type: 'string' }, street: { type: 'string' }, number: { type: 'string' }, floor: { type: 'string' }, apartment: { type: 'string' }, postalCode: { type: 'string' }, city: { type: 'string' }, expirationDates: { type: 'string' }, province: { type: 'string' }, alternativePhoneCategory: { type: 'object', required: ['label', 'value'], properties: { label: { type: 'string' }, value: { type: 'string' } } }, alternativePhoneNumber: { type: 'string' } } }, bank: { type: 'object', required: ['value', 'label'], properties: { value: { type: 'string' }, label: { type: 'string' } } }, dataLanding: { amount: { type: 'number' } }, dataStepTwo: { SMS: { type: 'string' }, bank: { type: 'object', required: ['value', 'label'], properties: { value: { type: 'string' }, label: { type: 'string' } } }, workStatus: { type: 'string' } }, validation_questions_retrieval: { query_id: { type: 'string' }, validation_questionnaire, time_per_question: { type: 'number' } }, validation_questions_process, questions: { query_id: { type: 'string' }, validation_questionnaire, time_per_question: { type: 'number' } }, result: { dictum: { type: 'string' }, reason: { type: 'object', required: ['phase', 'message'], properties: { phase: { type: 'string' }, message: { type: 'string' } } } } };