Skip to content

Commit

Permalink
feat(OwnersInfo): move dv-object to core domain
Browse files Browse the repository at this point in the history
  • Loading branch information
MellyGray committed Feb 28, 2024
1 parent d195dd3 commit 8f8a1eb
Show file tree
Hide file tree
Showing 14 changed files with 9 additions and 10 deletions.
File renamed without changes.
1 change: 1 addition & 0 deletions src/core/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export { ReadError } from './domain/repositories/ReadError';
export { WriteError } from './domain/repositories/WriteError';
export { ApiConfig } from './infra/repositories/ApiConfig';
export { DvObjectOwnerNode } from './domain/models/DvObjectOwnerNode';
2 changes: 1 addition & 1 deletion src/datasets/domain/models/Dataset.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DvObjectOwnerNode } from '../../../dv-object/domain/models/DvObjectOwnerNode';
import { DvObjectOwnerNode } from '../../../core/domain/models/DvObjectOwnerNode';

export interface Dataset {
id: number;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { FilePayload } from '../../../../files/infra/repositories/transformers/FilePayload';
import { OwnerNodePayload } from '../../../../dv-object/infra/repositories/transformers/OwnerNodePayload';
import { OwnerNodePayload } from '../../../../core/infra/repositories/transformers/OwnerNodePayload';

export interface DatasetPayload {
datasetId: number;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
MetadataFieldPayload,
MetadataFieldValuePayload,
} from './DatasetPayload';
import { transformPayloadToOwnerNode } from '../../../../dv-object/infra/repositories/transformers/dvObjectOwnerNodeTransformer';
import { transformPayloadToOwnerNode } from '../../../../core/infra/repositories/transformers/dvObjectOwnerNodeTransformer';
import { NodeHtmlMarkdown } from 'node-html-markdown';

export const transformVersionResponseToDataset = (response: AxiosResponse): Dataset => {
Expand Down
1 change: 0 additions & 1 deletion src/dv-object/index.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/files/domain/models/File.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DvObjectOwnerNode } from '../../../dv-object/domain/models/DvObjectOwnerNode';
import { DvObjectOwnerNode } from '../../../core/domain/models/DvObjectOwnerNode';

export interface File {
id: number;
Expand Down
2 changes: 1 addition & 1 deletion src/files/infra/repositories/transformers/FilePayload.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { OwnerNodePayload } from '../../../../dv-object/infra/repositories/transformers/OwnerNodePayload';
import { OwnerNodePayload } from '../../../../core/infra/repositories/transformers/OwnerNodePayload';

export interface FilePayload {
dataFile: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { File, FileEmbargo, FileChecksum } from '../../../domain/models/File';
import { AxiosResponse } from 'axios';
import { FilesSubset } from '../../../domain/models/FilesSubset';
import { ChecksumPayload, EmbargoPayload, FilePayload } from './FilePayload';
import { transformPayloadToOwnerNode } from '../../../../dv-object/infra/repositories/transformers/dvObjectOwnerNodeTransformer';
import { transformPayloadToOwnerNode } from '../../../../core/infra/repositories/transformers/dvObjectOwnerNodeTransformer';

export const transformFilesResponseToFilesSubset = (response: AxiosResponse): FilesSubset => {
const filesPayload = response.data.data;
Expand Down
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ export * from './auth';
export * from './datasets';
export * from './metadataBlocks';
export * from './files';
export * from './dv-object';
2 changes: 1 addition & 1 deletion test/testHelpers/datasets/datasetHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { NodeHtmlMarkdown } from 'node-html-markdown';
import axios, { AxiosResponse } from 'axios';
import { TestConstants } from '../TestConstants';
import { DatasetPayload } from '../../../src/datasets/infra/repositories/transformers/DatasetPayload';
import { DvObjectType } from '../../../src/dv-object/domain/models/DvObjectOwnerNode';
import { DvObjectType } from '../../../src/core/domain/models/DvObjectOwnerNode';

const DATASET_CREATE_TIME_STR = '2023-05-15T08:21:01Z';
const DATASET_UPDATE_TIME_STR = '2023-05-15T08:21:03Z';
Expand Down
2 changes: 1 addition & 1 deletion test/testHelpers/files/filesHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import axios, { AxiosResponse } from 'axios';
import { TestConstants } from '../TestConstants';
import { readFile } from 'fs/promises';
import { FilesSubset } from '../../../src/files/domain/models/FilesSubset';
import { DvObjectType } from '../../../src/dv-object/domain/models/DvObjectOwnerNode';
import { DvObjectType } from '../../../src/core/domain/models/DvObjectOwnerNode';
import { FilePayload } from '../../../src/files/infra/repositories/transformers/FilePayload';

interface FileMetadata {
Expand Down

0 comments on commit 8f8a1eb

Please sign in to comment.