Skip to content

Commit

Permalink
Add back projectIDs to dataset type, clean up code
Browse files Browse the repository at this point in the history
  • Loading branch information
jernestmyers committed Oct 17, 2023
1 parent ff72e81 commit dee7f61
Showing 1 changed file with 1 addition and 35 deletions.
36 changes: 1 addition & 35 deletions packages/libs/user-datasets/src/lib/Utils/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,12 @@ import React, { ReactNode } from 'react';
import {
TypeOf,
array,
boolean,
intersection,
literal,
number,
type,
union,
partial,
record,
string,
keyof,
any,
} from 'io-ts';

export interface UserDatasetMeta {
Expand Down Expand Up @@ -270,7 +265,7 @@ export const userDatasetDetail = intersection([
visibility: visibilityOptions,
name: string,
origin: string,
// projectIDs: array(string),
projectIDs: array(string),
status: statusDetails,
created: string,
files: array(type({ name: string, size: number })),
Expand All @@ -284,35 +279,6 @@ export const userDatasetDetail = intersection([
}),
]);

interface FileUpload {
file: File;
}

const newUserDataset = intersection([
type({
name: string,
datasetType: type({
name: string,
version: string,
}),
origin: string,
projects: array(string),
dependencies: array(
type({
resourceDisplayName: string,
resourceIdentifier: string,
resourceVersion: string,
})
),
}),
partial({
visibility: visibilityOptions,
summary: string,
description: string,
url: string,
}),
]);

export interface NewUserDatasetMeta {
name: string;
datasetType: {
Expand Down

0 comments on commit dee7f61

Please sign in to comment.