department-of-veterans-affairs/vets-website

View on GitHub
src/applications/pensions/config/definitions.js

Summary

Maintainability
A
1 hr
Test Coverage
import fullSchemaPensions from 'vets-json-schema/dist/21P-527EZ-schema.json';
import * as address from '@department-of-veterans-affairs/platform-forms-system/address';

export const {
  spouseDateOfBirth,
  spouseSocialSecurityNumber,
  spouseVaFileNumber,
  liveWithSpouse,
  spouseIsVeteran,
  netWorthEstimation,
} = fullSchemaPensions.properties;

export const {
  fullName,
  usaPhone,
  dateRange,
  date,
  monthlyIncome,
  netWorth,
  marriages,
  expectedIncome,
  ssn,
  centralMailVaFile,
  bankAccount,
  files,
} = fullSchemaPensions.definitions;

export const defaultDefinitions = {
  address: address.schema(fullSchemaPensions, false, 'profileAddress'),
  date,
  dateRange,
  usaPhone,
  fullName,
  ssn,
  centralMailVaFile,
  monthlyIncome,
  expectedIncome,
  netWorth,
};