Skip to content

Instantly share code, notes, and snippets.

View amponce's full-sized avatar

Aaron Ponce amponce

View GitHub Profile
import { DrupalClient } from 'next-drupal'
import crossFetch from 'cross-fetch'
import { SocksProxyAgent } from 'socks-proxy-agent'
import { addCAs } from 'syswide-cas'
import * as fs from 'fs'
const https = require('https')
interface TLSSecretData {
cert: string
}
@amponce
amponce / error.json
Created February 8, 2023 19:46
External Service Vet360 error
{
"data": {
"id": "",
"type": "users_scaffolds",
"attributes": {
"services": [
"facilities",
"hca",
"edu-benefits",
"form-save-in-progress",
@amponce
amponce / CurrencyInput.jsx
Last active March 21, 2023 20:53
CurrencyInput
import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
const CurrencyInputWrapper = styled.div`
position: relative;
display: inline-block;
`;
const CurrencySymbol = styled.span`
import React, { useEffect, useRef } from 'react';
import { VaNumberInput } from '@department-of-veterans-affairs/component-library/dist/react-bindings';
const CurrencyInput = (props) => {
const inputRef = useRef(null);
useEffect(() => {
if (inputRef.current) {
console.log('Shadow root:', inputRef.current.shadowRoot);
@amponce
amponce / EmploymentHistorySummaryCard.jsx
Last active April 12, 2023 16:35
Proposed changes to summary card
import React from 'react';
import { Link } from 'react-router-dom';
import { MiniSummaryCard } from './shared/MiniSummaryCard';
import { setJobIndex } from '../utils/session';
const EmploymentHistorySummaryCard = ({formData, setFormData, isSpouse }) => {
const employmentHistory = formData?.employmentHistory || {
spouse: { employmentRecords: [] },
veteran: { employmentRecords: [] },
};
{
"additionalData": {
"bankruptcy": {
"dateDischarged": "2021-01-01",
"courtLocation": "san diego",
"docketNumber": "234553"
},
"additionalComments": "I need help"
},
"questions": {

Veteran information Chapter

Path old fsr combined enhanced
/veteran-information true true true
/available-debts true false true
/all-available-debts false true false
/contact-information true true false
/current-contact-information false false true
/edit-mobile-phone false false true
@amponce
amponce / submission_object.json
Last active June 22, 2023 20:02
Financial Status Report Calculations
{
"personalIdentification": {
"ssn": "1234",
"fileNumber": "5678",
"fsrReason": "Compromise, Waiver"
},
"personalData": {
"veteranFullName": {
"first": "Greg",
@amponce
amponce / Presubmit-efsr--maximal.json
Last active July 24, 2023 20:12
Form submission FSR streamline waiver
Presubmit Object ACCEPTED - this uses efsr-maximal, I only toggled the chapters but did not modify the data in any way.
{
"questions": {
"hasRecreationalVehicle": false,
"hasVehicle": false,
"hasRealEstate": false,
"hasDependents": "0",
"spouseHasBenefits": false,
"isMarried": true,
{
"view:combinedFinancialStatusReport": true,
"view:enhancedFinancialStatusReport": true,
"otherExpenses": [
{
"name": "Clothing",
"amount": "10"
},
{
"name": "Food",