diff --git a/openapi/models/ResultResult.ts b/openapi/models/ResultResult.ts index 9853c270..1d053690 100644 --- a/openapi/models/ResultResult.ts +++ b/openapi/models/ResultResult.ts @@ -31,6 +31,12 @@ export interface ResultResult { * @memberof ResultResult */ next?: Array; + /** + * + * @type {object} + * @memberof ResultResult + */ + extras?: object; } export function ResultResultFromJSON(json: any): ResultResult { @@ -45,6 +51,7 @@ export function ResultResultFromJSONTyped(json: any, ignoreDiscriminator: boolea 'pickled': !exists(json, 'pickled') ? undefined : json['pickled'], 'next': !exists(json, 'next') ? undefined : json['next'], + 'extras': !exists(json, 'extras') ? undefined : json['extras'], }; } @@ -59,6 +66,7 @@ export function ResultResultToJSON(value?: ResultResult | null): any { 'pickled': value.pickled, 'next': value.next, + 'extras': value.extras, }; } diff --git a/package.json b/package.json index efacb325..aad119c7 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "build": "next build", "start": "next start", "test": "jest", - "openapi": "openapi-generator-cli generate --skip-validate-spec -i https://raw.githubusercontent.com/BoostV/process-optimizer-api/v1.0.0/optimizerapi/openapi/specification.yml -g typescript-fetch -o ./openapi" + "openapi": "openapi-generator-cli generate --skip-validate-spec -i https://raw.githubusercontent.com/BoostV/process-optimizer-api/v1.0.1/optimizerapi/openapi/specification.yml -g typescript-fetch -o ./openapi" }, "dependencies": { "@material-ui/core": "^4.11.3", diff --git a/pages/api/experiment/[id].tsx b/pages/api/experiment/[id].tsx index 2977591c..ae261e5f 100644 --- a/pages/api/experiment/[id].tsx +++ b/pages/api/experiment/[id].tsx @@ -74,7 +74,8 @@ export default async (req: NextApiRequest, res: NextApiResponse { return {id: p.id, plot: p.plot}}), next: json.result.next, - pickled: json.result.pickled + pickled: json.result.pickled, + extras: json.result.extras } res.json(result) break diff --git a/reducers/reducers.test.ts b/reducers/reducers.test.ts index 15b68393..15404908 100644 --- a/reducers/reducers.test.ts +++ b/reducers/reducers.test.ts @@ -70,7 +70,8 @@ describe("experiment reducer", () => { id: "123", next: [], plots: [], - pickled: "123" + pickled: "123", + extras: {} }, dataPoints: [] } @@ -235,6 +236,7 @@ describe("experiment reducer", () => { id: "myExperiment", next: [1,2,3,"Red"], pickled: "pickled", + extras: {}, plots: [{id: "sample", plot: "base64encodedData"}] } diff --git a/store.ts b/store.ts index c9935ab7..85a71c2b 100644 --- a/store.ts +++ b/store.ts @@ -21,7 +21,8 @@ export const emptyExperiment: ExperimentType = { id: "", next: [], plots: [], - pickled: "" + pickled: "", + extras: {} }, dataPoints: [] } diff --git a/types/common.ts b/types/common.ts index a2924cf6..f090f155 100644 --- a/types/common.ts +++ b/types/common.ts @@ -12,7 +12,8 @@ export type ExperimentResultType = { id: string plots: {id: string, plot: string}[] next: (number|string)[], - pickled: string + pickled: string, + extras: object } export type Info = {