Skip to content

Commit

Permalink
remove unused types
Browse files Browse the repository at this point in the history
  • Loading branch information
Janson Bunce committed Nov 15, 2024
1 parent 54992a6 commit 441d48d
Showing 1 changed file with 1 addition and 46 deletions.
47 changes: 1 addition & 46 deletions backend/src/api/sync.ts
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down

0 comments on commit 441d48d

Please sign in to comment.