pollination-react-io 1.16.7 → 1.16.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,9 +4,9 @@ import { APIClient } from '../hooks';
4
4
  export interface RunCardProps {
5
5
  projectOwner: string;
6
6
  projectName: string;
7
- jobId: string;
8
- run: Run;
9
- canWrite: boolean;
7
+ jobId?: string;
8
+ run?: Run;
9
+ canWrite?: boolean;
10
10
  style?: CSSProperties;
11
11
  client?: APIClient;
12
12
  authUser?: UserPrivate;
@@ -4,9 +4,9 @@ import { APIClient } from '../hooks';
4
4
  export interface StudyCardProps {
5
5
  projectOwner: string;
6
6
  projectName: string;
7
- study: CloudJob;
8
- canWrite: boolean;
9
- runList: boolean;
7
+ study?: CloudJob;
8
+ canWrite?: boolean;
9
+ runList?: boolean;
10
10
  style?: CSSProperties;
11
11
  authUser?: UserPrivate;
12
12
  client?: APIClient;
@@ -1,5 +1,5 @@
1
1
  import duration from 'dayjs/plugin/duration';
2
- import { Run, RunStatusEnum } from '@pollination-solutions/pollination-sdk';
2
+ import { CloudJob, Run, RunStatusEnum } from '@pollination-solutions/pollination-sdk';
3
3
  import { APIClient } from './useAPIClient';
4
4
  export declare const statusMap: {
5
5
  pending: {
@@ -46,7 +46,7 @@ export declare const statusMap: {
46
46
  };
47
47
  };
48
48
  export declare const getSummaryColor: (status: any) => string;
49
- export declare const getDuration: (run?: Run) => duration.Duration;
49
+ export declare const getDuration: (item?: Run | CloudJob) => duration.Duration;
50
50
  export declare const useRuns: (client: APIClient) => {
51
51
  listRuns: (projectOwner: string, projectName: string, jobId?: string[], page?: number, perPage?: number, statusFilter?: RunStatusEnum) => Promise<import("@pollination-solutions/pollination-sdk").RunList>;
52
52
  fetchRun: (projectOwner: string, projectName: string, runId: string) => Promise<Run>;