pollination-react-io 1.70.2 → 1.71.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.
@@ -1,6 +1,13 @@
1
1
  import { PanelMessageOut } from './types';
2
- import { Job, Run } from '@pollination-solutions/pollination-sdk';
2
+ import { Job, Run, RunStatusEnum } from '@pollination-solutions/pollination-sdk';
3
3
  import { ProjectJobInfo } from './useCreateStudy';
4
+ export declare enum TargetPlaform {
5
+ all = "all",
6
+ rhino = "rhino",
7
+ revit = "revit",
8
+ grasshopper = "grasshopper",
9
+ sketchup = "sketchup"
10
+ }
4
11
  export declare const usePollinationPanel: () => {
5
12
  getFileBase64: (key?: any, accept?: any) => PanelMessageOut;
6
13
  saveFileBase64: (key: string, file: File | Blob, subFolder: string, fileName: string) => Promise<PanelMessageOut>;
@@ -10,7 +17,7 @@ export declare const usePollinationPanel: () => {
10
17
  fetchLocalJob: (path?: any, subfolder?: any) => Job;
11
18
  fetchLocalLog: (path?: any, subfolder?: any) => any;
12
19
  fileExplorer: (root: string) => PanelMessageOut;
13
- getPaginatedJob: (projectSlug: string, pageSize: number, curPage: number) => ProjectJobInfo[];
20
+ getPaginatedJob: (projectSlug: string, pageSize: number, curPage: number, status?: RunStatusEnum, platform?: TargetPlaform) => ProjectJobInfo[];
14
21
  getJob: (projectSlug: string) => ProjectJobInfo[];
15
22
  deleteJob: (projectSlug: string, path: string, subfolder: string) => any;
16
23
  getPlatforms: (projectSlug: string) => {};
@@ -37994,6 +37994,14 @@ function formatBytes(bytes, decimals) {
37994
37994
  return "".concat(parseFloat((bytes / Math.pow(k, i)).toFixed(dm)), " ").concat(sizes[i]);
37995
37995
  }
37996
37996
 
37997
+ var TargetPlaform;
37998
+ (function (TargetPlaform) {
37999
+ TargetPlaform["all"] = "all";
38000
+ TargetPlaform["rhino"] = "rhino";
38001
+ TargetPlaform["revit"] = "revit";
38002
+ TargetPlaform["grasshopper"] = "grasshopper";
38003
+ TargetPlaform["sketchup"] = "sketchup";
38004
+ })(TargetPlaform || (TargetPlaform = {}));
37997
38005
  var SimulationFileType;
37998
38006
  (function (SimulationFileType) {
37999
38007
  SimulationFileType[SimulationFileType["status"] = 0] = "status";
@@ -38145,11 +38153,13 @@ var usePollinationPanel = function () {
38145
38153
  * @param curPage Current page
38146
38154
  * @returns Array of ProjectJobInfo
38147
38155
  */
38148
- var getPaginatedJob = function (projectSlug, pageSize, curPage) {
38156
+ var getPaginatedJob = function (projectSlug, pageSize, curPage, status, platform) {
38157
+ if (status === void 0) { status = undefined; }
38158
+ if (platform === void 0) { platform = TargetPlaform.all; }
38149
38159
  if (!panel)
38150
38160
  return;
38151
38161
  try {
38152
- var message = panel.GetPaginatedJob(projectSlug, pageSize, curPage);
38162
+ var message = panel.GetPaginatedJob(projectSlug, pageSize, curPage, status, platform);
38153
38163
  var arr = JSON.parse(message.data);
38154
38164
  return arr;
38155
38165
  }
@@ -50864,5 +50874,5 @@ var RunTable = function (_a) {
50864
50874
  React__default.createElement(ChevronRight$1, null)))))));
50865
50875
  };
50866
50876
 
50867
- export { APIClient, AuthUser, Avatar, Button, ComboBox, ComboFileSelector, ConditionalWrapper, ConfigureLocalRun, CreateStudy, Dropdown, FileInput, FilePreview, FormInput, GetGeometry, GetModel, InputDescription, Label, Logo, NumberInput, RadioList, RecipeForm, RunCard, RunDetails, RunRow, RunTable, SelectAccount, SelectCloudArtifacts, SelectLocalArtifacts, SelectProject, SelectRecipe, SelectRun, SelectStudy, SendGeometry, SendModel, SendResults, SettingsButton, StudyCard, TextInput, Tooltip, _defaultConfig, checkDotNet, checkPollinationPanel, checkRuby, formatBytes, getHost, recipeLinkFromSource, sendMessageDotNet, sendMessageRuby, useAPIClient, useArtifacts, useCreateStudy, useGetGeometry, useGetHbjson, useHbjsontoVTK, useJobs, useManageSettings, usePollinationPanel, useRunCommand, useRuns, useSendHbjson, useSendMessage, useWindowDimensions };
50877
+ export { APIClient, AuthUser, Avatar, Button, ComboBox, ComboFileSelector, ConditionalWrapper, ConfigureLocalRun, CreateStudy, Dropdown, FileInput, FilePreview, FormInput, GetGeometry, GetModel, InputDescription, Label, Logo, NumberInput, RadioList, RecipeForm, RunCard, RunDetails, RunRow, RunTable, SelectAccount, SelectCloudArtifacts, SelectLocalArtifacts, SelectProject, SelectRecipe, SelectRun, SelectStudy, SendGeometry, SendModel, SendResults, SettingsButton, StudyCard, TargetPlaform, TextInput, Tooltip, _defaultConfig, checkDotNet, checkPollinationPanel, checkRuby, formatBytes, getHost, recipeLinkFromSource, sendMessageDotNet, sendMessageRuby, useAPIClient, useArtifacts, useCreateStudy, useGetGeometry, useGetHbjson, useHbjsontoVTK, useJobs, useManageSettings, usePollinationPanel, useRunCommand, useRuns, useSendHbjson, useSendMessage, useWindowDimensions };
50868
50878
  //# sourceMappingURL=index.esm.js.map