UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

282 lines (281 loc) 6.56 kB
import { StepStateEnum as e } from "../components/SynapseForm/types.js"; import { StatusEnum as t } from "@sage-bionetworks/synapse-types"; import a from "./mockDrugToolFormData.json.js"; import i from "./mockDrugToolFormDataComplexInvalid.json.js"; import s from "./mockDrugToolFormNavSchema.json.js"; import o from "./mockDrugToolFormSchema.json.js"; import d from "./mockDrugToolFormUiSchema.json.js"; const g = a, _ = o, p = s, I = d, T = i, h = [ { id: "toxicology _data", order: 60, title: "Toxicology Data", default: "ld50", static: !0, inProgress: !0, state: e.TODO, rules: [] }, { id: "ld50", order: 61, title: "LD50", inProgress: !1, default: "acute_dosing", state: e.ERROR, child: !1, excluded: !1, rules: [] }, { id: "acute_dosing", order: 62, title: "Acute Dosing", default: "chronic_dosing", child: !1, excluded: !1, static: !1, inProgress: !1, final: !0, state: e.COMPLETED, rules: [] } ], O = [ { id: "toxicology _data", order: 60, title: "Toxicology Data", default: "ld50", static: !0, inProgress: !0, state: e.TODO, rules: [], children: ["ld50", "acute_dosing"] }, { id: "ld50", order: 61, title: "LD50", inProgress: !1, default: "acute_dosing", state: e.ERROR, child: !0, excluded: !1, rules: [] }, { id: "acute_dosing", order: 62, title: "Acute Dosing", default: "chronic_dosing", child: !0, excluded: !1, static: !1, inProgress: !1, state: e.COMPLETED, rules: [] }, { id: "acute_dosing_not_child", order: 63, title: "Acute Dosing Not Child", default: "chronic_dosing", child: !1, excluded: !0, static: !1, inProgress: !1, state: e.COMPLETED, rules: [] } ], D = [ { id: "efficacy", order: 61, title: "Efficacy", inProgress: !1, default: "binding", state: e.COMPLETED, child: !0, excluded: !1, rules: [] }, { id: "basic", order: 62, title: "Basic", default: "naming", child: !0, excluded: !1, static: !1, inProgress: !1, state: e.COMPLETED, rules: [] }, { id: "naming", order: 63, title: "Naming", default: "chronic_dosing", child: !1, excluded: !0, static: !1, inProgress: !1, state: e.COMPLETED, rules: [] } ], E = { id: "in_vivo_data", order: 40, title: "In Vivo Data!", default: "pharmacokinetics", excluded: !1, inProgress: !0, child: !0, state: e.PROGRESS, validationRules: [ { conditions: { all: [ { fact: "in_vivo_data", operator: "greaterThan", path: ".experiments[*].age_range.age_range_min", value: { fact: "in_vivo_data", path: ".experiments[*].age_range.age_range_max" } } ] }, event: { type: "validation", params: { message: "minimum age should be less than maximum age", name: "range", property: ".in_vivo_data.experiments[*].age_range" } }, "priority:": 1 }, { conditions: { all: [ { fact: "in_vivo_data", operator: "greaterThan", path: ".experiments[*].dose_range.dose_range_min", value: { fact: "in_vivo_data", path: ".experiments[*].dose_range.dose_range_max" } } ] }, event: { type: "validation", params: { message: "minimum dose should be less than maximum dose ", name: "range", property: ".in_vivo_data.experiments[*].dose_range" } }, "priority:": 1 } ] }, v = { nextPageToken: "123", page: [ { formDataId: "25", etag: "10977a7f-e3a4-11e9-94e2-02c936c5ff9c", groupId: "9", name: "AlinaNewAPIProdTest.json", createdBy: "3391841", createdOn: "2019-09-30T17:01:51.622Z", modifiedOn: "2019-09-30T17:02:20.399Z", dataFileHandleId: "43485087", submissionStatus: { state: t.WAITING_FOR_SUBMISSION } } ] }, x = { page: [ { formDataId: "33", etag: "11240522-e403-11e9-94e2-02c936c5ff9c", groupId: "9", name: "d.json", createdBy: "3391841", createdOn: "2019-10-01T04:22:13.755Z", modifiedOn: "2019-10-01T04:22:13.755Z", dataFileHandleId: "43505207", submissionStatus: { submittedOn: "2019-10-01T04:22:23.511Z", state: t.SUBMITTED_WAITING_FOR_REVIEW } }, { formDataId: "32", etag: "df863d6c-e402-11e9-94e2-02c936c5ff9c", groupId: "9", name: "zxcz.json", createdBy: "3391841", createdOn: "2019-10-01T04:18:27.523Z", modifiedOn: "2019-10-01T04:18:27.523Z", dataFileHandleId: "43504979", submissionStatus: { submittedOn: "2019-10-01T04:21:00.269Z", state: t.SUBMITTED_WAITING_FOR_REVIEW } }, { formDataId: "31", etag: "a057855f-e401-11e9-94e2-02c936c5ff9c", groupId: "9", name: "Full data submit only.json", createdBy: "3391841", createdOn: "2019-10-01T04:11:43.660Z", modifiedOn: "2019-10-01T04:11:56.364Z", dataFileHandleId: "43504590", submissionStatus: { submittedOn: "2019-10-01T04:12:04.769Z", state: t.SUBMITTED_WAITING_FOR_REVIEW } }, { formDataId: "29", etag: "32e85704-e400-11e9-94e2-02c936c5ff9c", groupId: "9", name: "Jeremy Lambert.json", createdBy: "3391841", createdOn: "2019-10-01T03:54:10.880Z", modifiedOn: "2019-10-01T03:54:10.880Z", dataFileHandleId: "43503572", submissionStatus: { submittedOn: "2019-10-01T04:01:51.672Z", state: t.SUBMITTED_WAITING_FOR_REVIEW } } ] }, y = { id: "syn123", parentId: "syn12034", dataFileHandleId: "123332", name: "my file name", concreteType: "org.sagebionetworks.repo.model.FileEntity", versionNumber: 3 }; export { v as formListDataInProgress, x as formListDataSubmitted, y as mockFileEntityWithVersion, g as mockFormData, _ as mockFormSchema, T as mockInvalidScreenData, p as mockNavSchema, I as mockUiSchema, E as stepWithCustomValidationRules, h as steps, O as stepsWithChildren, D as stepsWithUserData }; //# sourceMappingURL=mock_drug_tool_data.js.map