From 441d48d8dd1aae08925ad16ce910bf447256a1a1 Mon Sep 17 00:00:00 2001 From: Janson Bunce Date: Fri, 15 Nov 2024 08:57:25 -0800 Subject: [PATCH] remove unused types --- backend/src/api/sync.ts | 47 +---------------------------------------- 1 file changed, 1 insertion(+), 46 deletions(-) diff --git a/backend/src/api/sync.ts b/backend/src/api/sync.ts index 18b1e345..35b86cd4 100644 --- a/backend/src/api/sync.ts +++ b/backend/src/api/sync.ts @@ -1,55 +1,10 @@ import { parse } from 'papaparse'; import S3Client from '../tasks/s3-client'; import { createChecksum } from '../tools/csv-utils'; -import { REGION_STATE_MAP, wrapHandler } from './helpers'; +import { wrapHandler } from './helpers'; import { Client } from 'pg'; -import { v4 } from 'uuid'; -import { getCidrInfo } from '../tools/cidr-utils'; -import { Cidr } from 'src/models/mini_data_lake/cidrs'; import { DL_Organization } from 'src/models'; -interface ShapedOrg { - networks: string[]; - name: string; - report_types: string; - scan_types: string; - stakeholder: string; - retired: string; - period_start: string; - enrolled: string; - acronym: string; - country: string; - country_name: string; - state: string; - children: string; - state_name: string; - state_fips: string; - county: string; - county_fips: string; - agency_type: string; -} - -interface RawOrganization { - cidrs: string; - name: string; - report_types: string; - scan_types: string; - stakeholder: boolean; - retired: boolean; - period_start: string; - enrolled: string; - acronym: string; - country: string; - country_name: string; - state: string; - children: string; - state_name: string; - state_fips: string; - county: string; - county_fips: string; - agency_type: string; -} - type ParsedOrganization = DL_Organization; async function upsertOrganization(client: Client, org: DL_Organization) {