pollination-react-io 1.23.1 → 1.24.0
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.
- package/build/hooks/useCreateStudy.d.ts +1 -1
- package/build/index.esm.js +10 -8
- package/build/index.esm.js.map +1 -1
- package/build/index.js +10 -8
- package/build/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -21,6 +21,6 @@ export interface LocalConfig {
|
|
|
21
21
|
export declare const useCreateStudy: (accountName: string, projectName: string, client: APIClient) => {
|
|
22
22
|
host: string;
|
|
23
23
|
createStudy: ({ name, recipe, description }: JobArgs, data: object, onSuccess?: (accountName: string, projectName: string, studyId: string) => void) => Promise<void>;
|
|
24
|
-
createLocalStudy: ({ name, description, recipe }: JobArgs, data: object, { localCPUCount, localRunFolder, isLocalJob, cloudProjectName, cloudProjectOwner }: LocalConfig, onSuccess?: (accountName: string, projectName: string, studyId: string) => void, key?: string) => Promise<
|
|
24
|
+
createLocalStudy: ({ name, description, recipe }: JobArgs, data: object, { localCPUCount, localRunFolder, isLocalJob, cloudProjectName, cloudProjectOwner }: LocalConfig, onSuccess?: (accountName: string, projectName: string, studyId: string) => void, key?: string) => Promise<any>;
|
|
25
25
|
};
|
|
26
26
|
export {};
|
package/build/index.esm.js
CHANGED
|
@@ -38096,7 +38096,10 @@ var useCreateStudy = function (accountName, projectName, client) {
|
|
|
38096
38096
|
description: description,
|
|
38097
38097
|
source: recipe.source,
|
|
38098
38098
|
arguments: [jobArguments]
|
|
38099
|
-
}); })
|
|
38099
|
+
}); }).catch(function (err) {
|
|
38100
|
+
var data = err.response.data;
|
|
38101
|
+
console.error(data.detail);
|
|
38102
|
+
})];
|
|
38100
38103
|
case 1:
|
|
38101
38104
|
job = _c.sent();
|
|
38102
38105
|
jobInfo = {
|
|
@@ -38109,14 +38112,13 @@ var useCreateStudy = function (accountName, projectName, client) {
|
|
|
38109
38112
|
SubFolderPath: ''
|
|
38110
38113
|
};
|
|
38111
38114
|
console.log(jobInfo);
|
|
38112
|
-
response =
|
|
38113
|
-
|
|
38114
|
-
|
|
38115
|
-
|
|
38115
|
+
response = window.parent.chrome.webview.hostObjects.study.RunSimulation(JSON.stringify(jobInfo))
|
|
38116
|
+
.then(function (value) {
|
|
38117
|
+
console.log(value);
|
|
38118
|
+
onSuccess && onSuccess(cloudProjectOwner, cloudProjectName, value);
|
|
38119
|
+
}, function (reason) {
|
|
38120
|
+
console.error(reason);
|
|
38116
38121
|
});
|
|
38117
|
-
if (response) {
|
|
38118
|
-
onSuccess && onSuccess(cloudProjectOwner, cloudProjectName, localRunFolder);
|
|
38119
|
-
}
|
|
38120
38122
|
return [2 /*return*/, response];
|
|
38121
38123
|
}
|
|
38122
38124
|
});
|