Skip to content

Commit

Permalink
reorganize folder structure
Browse files Browse the repository at this point in the history
  • Loading branch information
abrantesarthur committed Jan 14, 2025
1 parent ae5522f commit 4b428dc
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/oneTrust/constants.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createDefaultCodec } from '@transcend-io/type-utils';
import { OneTrustEnrichedAssessment } from './codecs';
import { flattenOneTrustAssessment } from './flattenOneTrustAssessment';
import { flattenOneTrustAssessment } from './helpers';

/**
* An object with default values of type OneTrustEnrichedAssessment. It's very
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Got } from 'got';
import { logger } from '../logger';
import { logger } from '../../logger';
import { decodeCodec } from '@transcend-io/type-utils';
import {
OneTrustAssessment,
Expand Down
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions src/oneTrust/endpoints/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export * from './getListOfOneTrustAssessments';
export * from './getOneTrustAssessment';
export * from './getOneTrustRisk';
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ import {
OneTrustAssessmentSectionHeader,
OneTrustRiskCategories,
} from '@transcend-io/privacy-types';
import { extractProperties } from '../helpers';
import { extractProperties } from '../../helpers';
import {
OneTrustEnrichedAssessment,
OneTrustEnrichedAssessmentQuestion,
OneTrustEnrichedAssessmentSection,
OneTrustEnrichedRisk,
} from './codecs';
} from '../codecs';
// import { DEFAULT_ONE_TRUST_COMBINED_ASSESSMENT } from './constants';

// TODO: will have to use something like csv-stringify
Expand Down
3 changes: 3 additions & 0 deletions src/oneTrust/helpers/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export * from './flattenOneTrustAssessment';
export * from './parseCliSyncOtArguments';
export * from './writeOneTrustAssessment';
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { logger } from '../logger';
import { logger } from '../../logger';
import colors from 'colors';
import yargs from 'yargs-parser';
import { OneTrustFileFormat, OneTrustPullResource } from '../enums';
import { OneTrustFileFormat, OneTrustPullResource } from '../../enums';

const VALID_RESOURCES = Object.values(OneTrustPullResource);
const VALID_FILE_FORMATS = Object.values(OneTrustFileFormat);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { logger } from '../logger';
import { logger } from '../../logger';
import colors from 'colors';
import { OneTrustFileFormat } from '../enums';
import { OneTrustFileFormat } from '../../enums';
import fs from 'fs';
import { flattenOneTrustAssessment } from './flattenOneTrustAssessment';
import { DEFAULT_ONE_TRUST_ASSESSMENT_CSV_HEADER } from './constants';
import { DEFAULT_ONE_TRUST_ASSESSMENT_CSV_HEADER } from '../constants';
import { decodeCodec } from '@transcend-io/type-utils';
import { OneTrustAssessmentCsvRecord } from '@transcend-io/privacy-types';
import { OneTrustEnrichedAssessment } from './codecs';
import { OneTrustEnrichedAssessment } from '../codecs';

/**
* Write the assessment to disk at the specified file path.
Expand Down
7 changes: 2 additions & 5 deletions src/oneTrust/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
export * from './createOneTrustGotInstance';
export * from './getOneTrustAssessment';
export * from './writeOneTrustAssessment';
export * from './parseCliSyncOtArguments';
export * from './getListOfOneTrustAssessments';
export * from './getOneTrustRisk';
export * from './helpers';
export * from './endpoints';

0 comments on commit 4b428dc

Please sign in to comment.