windmill-components 1.52.0 → 1.55.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.
Files changed (349) hide show
  1. package/components/ApiConnectForm.svelte +42 -7
  2. package/components/ApiConnectForm.svelte.d.ts +2 -1
  3. package/components/AppConnect.svelte +19 -11
  4. package/components/ArgInfo.svelte +6 -2
  5. package/components/ArgInput.svelte +9 -3
  6. package/components/ArgInput.svelte.d.ts +1 -0
  7. package/components/CenteredPage.svelte +1 -1
  8. package/components/CenteredPage.svelte.d.ts +6 -2
  9. package/components/CronInput.svelte +1 -1
  10. package/components/DisplayResult.svelte +39 -2
  11. package/components/Dropdown.svelte +73 -100
  12. package/components/Dropdown.svelte.d.ts +1 -3
  13. package/components/Editor.svelte +16 -5
  14. package/components/EditorBar.svelte +69 -63
  15. package/components/EditorBar.svelte.d.ts +1 -0
  16. package/components/FlowBuilder.svelte +74 -68
  17. package/components/FlowGraphViewer.svelte +136 -34
  18. package/components/FlowGraphViewer.svelte.d.ts +1 -0
  19. package/components/FlowJobResult.svelte +6 -1
  20. package/components/FlowJobResult.svelte.d.ts +2 -0
  21. package/components/FlowMetadata.svelte +4 -2
  22. package/components/FlowPreviewContent.svelte +10 -23
  23. package/components/FlowPreviewContent.svelte.d.ts +3 -0
  24. package/components/FlowStatusViewer.svelte +155 -30
  25. package/components/FlowStatusViewer.svelte.d.ts +4 -2
  26. package/components/FlowViewer.svelte +3 -3
  27. package/components/FlowViewer.svelte.d.ts +1 -0
  28. package/components/HighlightCode.svelte +1 -1
  29. package/components/HighlightCode.svelte.d.ts +1 -0
  30. package/components/IconedPath.svelte +16 -6
  31. package/components/IconedPath.svelte.d.ts +2 -0
  32. package/components/IconedResourceType.svelte +5 -2
  33. package/components/InputTransformForm.svelte +92 -73
  34. package/components/InviteGlobalUser.svelte +2 -2
  35. package/components/InviteGlobalUser.svelte.d.ts +1 -1
  36. package/components/InviteUser.svelte +20 -6
  37. package/components/InviteUser.svelte.d.ts +1 -1
  38. package/components/ItemPicker.svelte +38 -27
  39. package/components/ItemPicker.svelte.d.ts +2 -1
  40. package/components/JobStatus.svelte +19 -13
  41. package/components/LogViewer.svelte +11 -3
  42. package/components/LogViewer.svelte.d.ts +1 -0
  43. package/components/ModuleStatus.svelte +38 -0
  44. package/components/ModuleStatus.svelte.d.ts +18 -0
  45. package/components/ObjectResourceInput.svelte +8 -52
  46. package/components/ObjectResourceInput.svelte.d.ts +0 -1
  47. package/components/Path.svelte +2 -2
  48. package/components/Path.svelte.d.ts +1 -1
  49. package/components/Popover.svelte +7 -1
  50. package/components/Popover.svelte.d.ts +3 -1
  51. package/components/ResourceEditor.svelte +57 -29
  52. package/components/ResourcePicker.svelte +12 -2
  53. package/components/SchemaEditor.svelte +2 -1
  54. package/components/SchemaForm.svelte +2 -1
  55. package/components/SchemaForm.svelte.d.ts +1 -0
  56. package/components/SchemaModal.svelte +11 -10
  57. package/components/ScriptBuilder.svelte +207 -192
  58. package/components/ScriptBuilder.svelte.d.ts +1 -1
  59. package/components/ScriptEditor.svelte +49 -45
  60. package/components/ScriptEditor.svelte.d.ts +1 -0
  61. package/components/ScriptPicker.svelte.d.ts +1 -1
  62. package/components/ScriptSchema.svelte +11 -30
  63. package/components/ScriptSchema.svelte.d.ts +0 -1
  64. package/components/SharedBadge.svelte +2 -3
  65. package/components/SimpleEditor.svelte +6 -7
  66. package/components/SimpleEditor.svelte.d.ts +1 -0
  67. package/components/Star.svelte +2 -2
  68. package/components/SuperadminSettings.svelte +9 -38
  69. package/components/TableSimple.svelte +1 -1
  70. package/components/TestJobLoader.svelte +20 -8
  71. package/components/ToggleHubWorkspace.svelte +16 -0
  72. package/components/ToggleHubWorkspace.svelte.d.ts +16 -0
  73. package/components/Tooltip.svelte.d.ts +1 -1
  74. package/components/VariableEditor.svelte +22 -9
  75. package/components/apps/CreateApp.svelte +5 -2
  76. package/components/apps/CreateApp.svelte.d.ts +1 -1
  77. package/components/apps/components/DisplayComponent.svelte +7 -14
  78. package/components/apps/components/DisplayComponent.svelte.d.ts +3 -2
  79. package/components/apps/components/buttons/AppButton.svelte +34 -27
  80. package/components/apps/components/buttons/AppButton.svelte.d.ts +6 -6
  81. package/components/apps/components/dataDisplay/AppBarChart.svelte +33 -9
  82. package/components/apps/components/dataDisplay/AppBarChart.svelte.d.ts +3 -5
  83. package/components/apps/components/dataDisplay/AppPieChart.svelte +33 -12
  84. package/components/apps/components/dataDisplay/AppPieChart.svelte.d.ts +3 -5
  85. package/components/apps/components/dataDisplay/AppTable.svelte +27 -30
  86. package/components/apps/components/dataDisplay/AppTable.svelte.d.ts +4 -8
  87. package/components/apps/components/dataDisplay/AppText.svelte +16 -9
  88. package/components/apps/components/dataDisplay/AppText.svelte.d.ts +3 -2
  89. package/components/apps/components/dataDisplay/app.md +49 -0
  90. package/components/apps/components/form/AppForm.svelte +50 -0
  91. package/components/apps/components/form/AppForm.svelte.d.ts +25 -0
  92. package/components/apps/components/helpers/AlignWrapper.svelte +2 -1
  93. package/components/apps/components/helpers/AlignWrapper.svelte.d.ts +1 -0
  94. package/components/apps/components/helpers/DebouncedInput.svelte +9 -1
  95. package/components/apps/components/helpers/DebouncedInput.svelte.d.ts +2 -1
  96. package/components/apps/components/helpers/InputValue.svelte +15 -6
  97. package/components/apps/components/helpers/InputValue.svelte.d.ts +2 -2
  98. package/components/apps/components/helpers/NonRunnableComponent.svelte +20 -0
  99. package/components/apps/components/helpers/NonRunnableComponent.svelte.d.ts +21 -0
  100. package/components/apps/components/helpers/RunnableComponent.svelte +36 -30
  101. package/components/apps/components/helpers/RunnableComponent.svelte.d.ts +6 -7
  102. package/components/apps/components/helpers/RunnableWrapper.svelte +32 -0
  103. package/components/apps/components/helpers/RunnableWrapper.svelte.d.ts +26 -0
  104. package/components/apps/components/numberInputs/AppNumberInput.svelte +36 -0
  105. package/components/apps/components/numberInputs/AppNumberInput.svelte.d.ts +20 -0
  106. package/components/apps/components/selectInputs/AppCheckbox.svelte +4 -2
  107. package/components/apps/components/selectInputs/AppCheckbox.svelte.d.ts +2 -2
  108. package/components/apps/components/textInputs/AppTextInput.svelte +21 -0
  109. package/components/apps/components/textInputs/AppTextInput.svelte.d.ts +20 -0
  110. package/components/apps/editor/AppEditor.svelte +66 -55
  111. package/components/apps/editor/AppEditorHeader.svelte +4 -4
  112. package/components/apps/editor/AppPreview.svelte +42 -0
  113. package/components/apps/editor/AppPreview.svelte.d.ts +17 -0
  114. package/components/apps/editor/ComponentEditor.svelte +41 -20
  115. package/components/apps/editor/ComponentEditor.svelte.d.ts +2 -0
  116. package/components/apps/editor/ComponentHeader.svelte +28 -0
  117. package/components/apps/editor/ComponentHeader.svelte.d.ts +20 -0
  118. package/components/apps/editor/GridEditor.svelte +54 -5
  119. package/components/apps/editor/GridEditor.svelte.d.ts +1 -1
  120. package/components/apps/editor/RecomputeAllComponents.svelte +28 -0
  121. package/components/apps/editor/RecomputeAllComponents.svelte.d.ts +14 -0
  122. package/components/apps/editor/componentsPanel/ComponentList.svelte +94 -26
  123. package/components/apps/editor/componentsPanel/ComponentList.svelte.d.ts +1 -1
  124. package/components/apps/editor/componentsPanel/componentDefaultProps.d.ts +2 -6
  125. package/components/apps/editor/componentsPanel/componentDefaultProps.js +1 -5
  126. package/components/apps/editor/componentsPanel/componentStaticValues.d.ts +2 -0
  127. package/components/apps/editor/componentsPanel/componentStaticValues.js +3 -1
  128. package/components/apps/editor/componentsPanel/data.js +191 -76
  129. package/components/apps/editor/contextPanel/ContextPanel.svelte +56 -48
  130. package/components/apps/editor/settingsPanel/ArrayStaticInputEditor.svelte +67 -0
  131. package/components/apps/editor/settingsPanel/ArrayStaticInputEditor.svelte.d.ts +55 -0
  132. package/components/apps/editor/settingsPanel/ComponentPanel.svelte +154 -129
  133. package/components/apps/editor/settingsPanel/ConnectedInputEditor.svelte +70 -0
  134. package/components/apps/editor/settingsPanel/ConnectedInputEditor.svelte.d.ts +17 -0
  135. package/components/apps/editor/settingsPanel/InputsSpecEditor.svelte +6 -6
  136. package/components/apps/editor/settingsPanel/InputsSpecEditor.svelte.d.ts +2 -2
  137. package/components/apps/editor/settingsPanel/InputsSpecsEditor.svelte +55 -87
  138. package/components/apps/editor/settingsPanel/InputsSpecsEditor.svelte.d.ts +3 -4
  139. package/components/apps/editor/settingsPanel/PickFlow.svelte +3 -2
  140. package/components/apps/editor/settingsPanel/PickFlow.svelte.d.ts +1 -1
  141. package/components/apps/editor/settingsPanel/PickInlineScript.svelte +3 -3
  142. package/components/apps/editor/settingsPanel/Recompute.svelte +46 -0
  143. package/components/apps/editor/settingsPanel/Recompute.svelte.d.ts +17 -0
  144. package/components/apps/editor/settingsPanel/StaticInputEditor.svelte +31 -14
  145. package/components/apps/editor/settingsPanel/StaticInputEditor.svelte.d.ts +3 -3
  146. package/components/apps/editor/settingsPanel/SubTypeEditor.svelte +17 -0
  147. package/components/apps/editor/settingsPanel/SubTypeEditor.svelte.d.ts +19 -0
  148. package/components/apps/editor/settingsPanel/TableActionLabel.svelte +10 -0
  149. package/components/apps/editor/settingsPanel/TableActionLabel.svelte.d.ts +17 -0
  150. package/components/apps/editor/settingsPanel/TableActions.svelte +13 -9
  151. package/components/apps/editor/settingsPanel/UserInputEditor.svelte.d.ts +1 -1
  152. package/components/apps/editor/settingsPanel/common/PanelSection.svelte +3 -2
  153. package/components/apps/editor/settingsPanel/common/PanelSection.svelte.d.ts +1 -0
  154. package/components/apps/editor/settingsPanel/mainInput/InlineScriptList.svelte +53 -0
  155. package/components/apps/editor/settingsPanel/mainInput/InlineScriptList.svelte.d.ts +21 -0
  156. package/components/apps/editor/settingsPanel/mainInput/RunnableSelector.svelte +98 -0
  157. package/components/apps/editor/settingsPanel/mainInput/RunnableSelector.svelte.d.ts +18 -0
  158. package/components/apps/editor/settingsPanel/mainInput/WorkspaceFlowList.svelte +81 -0
  159. package/components/apps/editor/settingsPanel/mainInput/WorkspaceFlowList.svelte.d.ts +20 -0
  160. package/components/apps/editor/settingsPanel/mainInput/WorkspaceScriptList.svelte +81 -0
  161. package/components/apps/editor/settingsPanel/mainInput/WorkspaceScriptList.svelte.d.ts +20 -0
  162. package/components/apps/inputType.d.ts +62 -0
  163. package/components/apps/inputType.js +1 -0
  164. package/components/apps/rx.d.ts +4 -4
  165. package/components/apps/rx.js +16 -4
  166. package/components/apps/types.d.ts +20 -54
  167. package/components/apps/utils.d.ts +11 -34
  168. package/components/apps/utils.js +54 -18
  169. package/components/common/alert/Alert.svelte +2 -1
  170. package/components/common/alert/Alert.svelte.d.ts +1 -0
  171. package/components/common/button/Button.svelte +1 -1
  172. package/components/common/confirmationModal/UnsavedConfirmationModal.svelte.d.ts +1 -1
  173. package/components/common/drawer/DrawerContent.svelte +23 -22
  174. package/components/common/drawer/DrawerContent.svelte.d.ts +1 -3
  175. package/components/common/kbd/Kbd.svelte.d.ts +2 -2
  176. package/components/common/languageIcons/LanguageIcon.svelte +4 -2
  177. package/components/common/languageIcons/LanguageIcon.svelte.d.ts +1 -1
  178. package/components/common/menu/Menu.svelte +0 -1
  179. package/components/common/menu/MenuItem.svelte.d.ts +6 -2
  180. package/components/common/popup/Popup.svelte +0 -11
  181. package/components/common/table/AppRow.svelte +42 -26
  182. package/components/common/table/AppRow.svelte.d.ts +1 -1
  183. package/components/common/table/FlowRow.svelte +54 -49
  184. package/components/common/table/LanguageBadge.svelte +1 -1
  185. package/components/common/table/Row.svelte +27 -16
  186. package/components/common/table/Row.svelte.d.ts +2 -1
  187. package/components/common/table/RowIcon.svelte +13 -8
  188. package/components/common/table/ScriptRow.svelte +65 -57
  189. package/components/common/table/Table.svelte.d.ts +6 -2
  190. package/components/flows/CreateActionsFlow.svelte +14 -41
  191. package/components/flows/CreateActionsFlow.svelte.d.ts +1 -1
  192. package/components/flows/common/FlowCardHeader.svelte +7 -8
  193. package/components/flows/content/BranchPredicateEditor.svelte +30 -0
  194. package/components/flows/content/BranchPredicateEditor.svelte.d.ts +23 -0
  195. package/components/flows/content/CapturePayload.svelte +12 -8
  196. package/components/flows/content/DynamicInputHelpBox.svelte.d.ts +1 -1
  197. package/components/flows/content/FlowBranchAllWrapper.svelte +2 -2
  198. package/components/flows/content/FlowBranchOneWrapper.svelte +4 -36
  199. package/components/flows/content/FlowBranchesAllWrapper.svelte +91 -0
  200. package/components/flows/content/FlowBranchesAllWrapper.svelte.d.ts +18 -0
  201. package/components/flows/content/FlowBranchesOneWrapper.svelte +88 -0
  202. package/components/flows/content/FlowBranchesOneWrapper.svelte.d.ts +18 -0
  203. package/components/flows/content/FlowFailureModule.svelte.d.ts +1 -1
  204. package/components/flows/content/FlowInput.svelte +1 -2
  205. package/components/flows/content/FlowInput.svelte.d.ts +1 -1
  206. package/components/flows/content/FlowInputs.svelte +28 -26
  207. package/components/flows/content/FlowInputsFlow.svelte +101 -0
  208. package/components/flows/content/FlowInputsFlow.svelte.d.ts +20 -0
  209. package/components/flows/content/FlowLoop.svelte +10 -3
  210. package/components/flows/content/FlowModuleComponent.svelte +46 -35
  211. package/components/flows/content/FlowModuleEarlyStop.svelte +4 -3
  212. package/components/flows/content/FlowModuleHeader.svelte +22 -21
  213. package/components/flows/content/FlowModuleHeader.svelte.d.ts +1 -0
  214. package/components/flows/content/FlowModuleSleep.svelte +69 -0
  215. package/components/flows/content/FlowModuleSleep.svelte.d.ts +18 -0
  216. package/components/flows/content/FlowModuleSuspend.svelte +5 -63
  217. package/components/flows/content/FlowModuleSuspend.svelte.d.ts +0 -1
  218. package/components/flows/content/FlowModuleWrapper.svelte +59 -35
  219. package/components/flows/content/FlowPathViewer.svelte +20 -0
  220. package/components/flows/content/FlowPathViewer.svelte.d.ts +17 -0
  221. package/components/flows/content/FlowSchedules.svelte.d.ts +1 -1
  222. package/components/flows/content/FlowSettings.svelte +8 -12
  223. package/components/flows/flowState.js +2 -2
  224. package/components/flows/flowStateUtils.d.ts +7 -3
  225. package/components/flows/flowStateUtils.js +29 -8
  226. package/components/flows/header/FlowImportExportMenu.svelte.d.ts +1 -1
  227. package/components/flows/header/FlowPreviewButtons.svelte +6 -2
  228. package/components/flows/header/FlowPreviewButtons.svelte.d.ts +1 -1
  229. package/components/flows/map/FlowErrorHandlerItem.svelte +5 -5
  230. package/components/flows/map/FlowErrorHandlerItem.svelte.d.ts +1 -1
  231. package/components/flows/map/FlowInputsItem.svelte.d.ts +1 -1
  232. package/components/flows/map/FlowModuleSchemaItem.svelte +30 -11
  233. package/components/flows/map/FlowModuleSchemaMap.svelte +26 -20
  234. package/components/flows/map/FlowModuleSchemaMap.svelte.d.ts +1 -1
  235. package/components/flows/map/FlowSettingsItem.svelte +1 -1
  236. package/components/flows/map/FlowSettingsItem.svelte.d.ts +1 -1
  237. package/components/flows/map/InsertModuleButton.svelte +20 -4
  238. package/components/flows/map/InsertModuleButton.svelte.d.ts +1 -1
  239. package/components/flows/map/MapItem.svelte +11 -5
  240. package/components/flows/pickers/FlowScriptPicker.svelte.d.ts +1 -1
  241. package/components/flows/pickers/PickHubFlow.svelte +72 -0
  242. package/components/flows/pickers/PickHubFlow.svelte.d.ts +20 -0
  243. package/components/flows/pickers/PickHubScript.svelte +65 -56
  244. package/components/flows/pickers/PickHubScript.svelte.d.ts +3 -1
  245. package/components/flows/pickers/PickScript.svelte +2 -2
  246. package/components/flows/pickers/WorkspaceScriptPicker.svelte +79 -19
  247. package/components/flows/pickers/WorkspaceScriptPicker.svelte.d.ts +5 -1
  248. package/components/flows/previousResults.d.ts +1 -0
  249. package/components/flows/previousResults.js +2 -1
  250. package/components/flows/propPicker/PropPickerWrapper.svelte +9 -1
  251. package/components/flows/utils.d.ts +0 -1
  252. package/components/flows/utils.js +6 -6
  253. package/components/graph/FlowGraph.svelte +120 -54
  254. package/components/graph/FlowGraph.svelte.d.ts +3 -2
  255. package/components/graph/model.d.ts +11 -0
  256. package/components/home/ItemsList.svelte +265 -0
  257. package/components/home/ItemsList.svelte.d.ts +16 -0
  258. package/components/home/ListFilters.svelte +37 -0
  259. package/components/home/ListFilters.svelte.d.ts +18 -0
  260. package/components/home/NoItemFound.svelte +6 -0
  261. package/components/home/NoItemFound.svelte.d.ts +23 -0
  262. package/components/icons/DatadogIcon.svelte +48 -0
  263. package/components/icons/DatadogIcon.svelte.d.ts +17 -0
  264. package/components/icons/FunkwhaleIcon.svelte +90 -0
  265. package/components/icons/FunkwhaleIcon.svelte.d.ts +17 -0
  266. package/components/icons/GdocsIcon.svelte +9 -0
  267. package/components/icons/GdocsIcon.svelte.d.ts +17 -0
  268. package/components/icons/HubspotIcon.svelte +9 -0
  269. package/components/icons/HubspotIcon.svelte.d.ts +17 -0
  270. package/components/icons/LinkedinIcon.svelte +9 -0
  271. package/components/icons/LinkedinIcon.svelte.d.ts +17 -0
  272. package/components/icons/Mail.svelte +9 -53
  273. package/components/icons/Mysql.svelte +8 -8
  274. package/components/icons/NextcloudIcon.svelte +9 -0
  275. package/components/icons/NextcloudIcon.svelte.d.ts +17 -0
  276. package/components/icons/QRCodeIcon.svelte +5 -0
  277. package/components/icons/QRCodeIcon.svelte.d.ts +16 -0
  278. package/components/icons/SendflakeIcon.svelte +15 -0
  279. package/components/icons/SendflakeIcon.svelte.d.ts +17 -0
  280. package/components/icons/StripeIcon.svelte +9 -0
  281. package/components/icons/StripeIcon.svelte.d.ts +17 -0
  282. package/components/icons/TelegramIcon.svelte +9 -0
  283. package/components/icons/TelegramIcon.svelte.d.ts +17 -0
  284. package/components/icons/WindmillIcon.svelte +3 -3
  285. package/components/icons/index.d.ts +23 -1
  286. package/components/icons/index.js +23 -1
  287. package/components/jobs/JobDetail.svelte +2 -2
  288. package/components/preview/FlowPreviewStatus.svelte +12 -23
  289. package/components/propertyPicker/PropPicker.svelte +16 -0
  290. package/components/propertyPicker/PropPickerResult.svelte +2 -3
  291. package/components/propertyPicker/WarningMessage.svelte.d.ts +6 -2
  292. package/components/scriptEditor/LogPanel.svelte +11 -4
  293. package/components/scripts/CreateActionsScript.svelte +13 -59
  294. package/components/scripts/CreateActionsScript.svelte.d.ts +1 -1
  295. package/components/sidebar/FavoriteMenu.svelte +52 -0
  296. package/components/sidebar/FavoriteMenu.svelte.d.ts +21 -0
  297. package/components/sidebar/SidebarContent.svelte +10 -19
  298. package/components/sidebar/SidebarContent.svelte.d.ts +0 -4
  299. package/components/sidebar/UserMenu.svelte +21 -4
  300. package/components/sidebar/WorkspaceMenu.svelte +6 -7
  301. package/editorUtils.d.ts +2 -0
  302. package/editorUtils.js +3 -1
  303. package/gen/core/OpenAPI.js +1 -1
  304. package/gen/index.d.ts +1 -0
  305. package/gen/models/CompletedJob.d.ts +1 -0
  306. package/gen/models/CreateWorkspace.d.ts +0 -1
  307. package/gen/models/EditWorkspaceUser.d.ts +2 -0
  308. package/gen/models/FlowModuleValue.d.ts +2 -1
  309. package/gen/models/FlowStatus.d.ts +3 -1
  310. package/gen/models/FlowStatusModule.d.ts +1 -1
  311. package/gen/models/FlowStatusModule.js +1 -1
  312. package/gen/models/Identity.d.ts +1 -0
  313. package/gen/models/ListableResource.d.ts +1 -0
  314. package/gen/models/ListableVariable.d.ts +1 -0
  315. package/gen/models/PathFlow.d.ts +6 -0
  316. package/gen/models/PathFlow.js +4 -0
  317. package/gen/models/PathScript.d.ts +1 -0
  318. package/gen/models/QueuedJob.d.ts +1 -0
  319. package/gen/models/Schedule.d.ts +2 -0
  320. package/gen/models/Usage.d.ts +1 -3
  321. package/gen/models/WorkspaceInvite.d.ts +1 -0
  322. package/gen/services/AppService.d.ts +7 -1
  323. package/gen/services/AppService.js +2 -1
  324. package/gen/services/JobService.d.ts +35 -5
  325. package/gen/services/JobService.js +14 -5
  326. package/gen/services/OauthService.d.ts +1 -1
  327. package/gen/services/ResourceService.d.ts +6 -2
  328. package/gen/services/ResourceService.js +2 -1
  329. package/gen/services/UserService.d.ts +6 -0
  330. package/gen/services/UserService.js +11 -0
  331. package/gen/services/WorkspaceService.d.ts +35 -0
  332. package/gen/services/WorkspaceService.js +41 -0
  333. package/package.json +56 -17
  334. package/script_helpers.d.ts +2 -1
  335. package/script_helpers.js +20 -3
  336. package/scripts.d.ts +1 -0
  337. package/scripts.js +8 -1
  338. package/stores.d.ts +11 -2
  339. package/stores.js +24 -6
  340. package/utils.d.ts +3 -1
  341. package/utils.js +11 -4
  342. package/components/ButtonAndDropdown.svelte +0 -25
  343. package/components/ButtonAndDropdown.svelte.d.ts +0 -23
  344. package/components/apps/components/index.d.ts +0 -22
  345. package/components/apps/components/index.js +0 -42
  346. package/components/apps/editor/settingsPanel/DynamicInputEditor.svelte +0 -64
  347. package/components/apps/editor/settingsPanel/DynamicInputEditor.svelte.d.ts +0 -17
  348. package/components/flows/content/FlowBranchesWrapper.svelte +0 -140
  349. package/components/flows/content/FlowBranchesWrapper.svelte.d.ts +0 -19
@@ -33,6 +33,7 @@ export type CompletedJob = {
33
33
  is_flow_step: boolean;
34
34
  language?: CompletedJob.language;
35
35
  is_skipped: boolean;
36
+ email: string;
36
37
  };
37
38
  export declare namespace CompletedJob {
38
39
  enum job_kind {
@@ -2,5 +2,4 @@ export type CreateWorkspace = {
2
2
  id: string;
3
3
  name: string;
4
4
  username: string;
5
- domain: string;
6
5
  };
@@ -1,3 +1,5 @@
1
1
  export type EditWorkspaceUser = {
2
2
  is_admin?: boolean;
3
+ operator?: boolean;
4
+ disabled?: boolean;
3
5
  };
@@ -2,6 +2,7 @@ import type { BranchAll } from './BranchAll';
2
2
  import type { BranchOne } from './BranchOne';
3
3
  import type { ForloopFlow } from './ForloopFlow';
4
4
  import type { Identity } from './Identity';
5
+ import type { PathFlow } from './PathFlow';
5
6
  import type { PathScript } from './PathScript';
6
7
  import type { RawScript } from './RawScript';
7
- export type FlowModuleValue = (RawScript | PathScript | ForloopFlow | BranchOne | BranchAll | Identity);
8
+ export type FlowModuleValue = (RawScript | PathScript | PathFlow | ForloopFlow | BranchOne | BranchAll | Identity);
@@ -2,7 +2,9 @@ import type { FlowStatusModule } from './FlowStatusModule';
2
2
  export type FlowStatus = {
3
3
  step: number;
4
4
  modules: Array<FlowStatusModule>;
5
- failure_module: FlowStatusModule;
5
+ failure_module: (FlowStatusModule & {
6
+ parent_module?: string;
7
+ });
6
8
  retry?: {
7
9
  fail_count?: number;
8
10
  failed_jobs?: Array<string>;
@@ -25,7 +25,7 @@ export type FlowStatusModule = {
25
25
  export declare namespace FlowStatusModule {
26
26
  enum type {
27
27
  WAITING_FOR_PRIOR_STEPS = "WaitingForPriorSteps",
28
- WAITING_FOR_EVENT = "WaitingForEvent",
28
+ WAITING_FOR_EVENTS = "WaitingForEvents",
29
29
  WAITING_FOR_EXECUTOR = "WaitingForExecutor",
30
30
  IN_PROGRESS = "InProgress",
31
31
  SUCCESS = "Success",
@@ -6,7 +6,7 @@ export var FlowStatusModule;
6
6
  let type;
7
7
  (function (type) {
8
8
  type["WAITING_FOR_PRIOR_STEPS"] = "WaitingForPriorSteps";
9
- type["WAITING_FOR_EVENT"] = "WaitingForEvent";
9
+ type["WAITING_FOR_EVENTS"] = "WaitingForEvents";
10
10
  type["WAITING_FOR_EXECUTOR"] = "WaitingForExecutor";
11
11
  type["IN_PROGRESS"] = "InProgress";
12
12
  type["SUCCESS"] = "Success";
@@ -1,3 +1,4 @@
1
1
  export type Identity = {
2
2
  type: 'identity';
3
+ flow?: boolean;
3
4
  };
@@ -9,5 +9,6 @@ export type ListableResource = {
9
9
  is_expired?: boolean;
10
10
  refresh_error?: string;
11
11
  is_linked: boolean;
12
+ is_refreshed: boolean;
12
13
  account?: number;
13
14
  };
@@ -10,4 +10,5 @@ export type ListableVariable = {
10
10
  is_expired?: boolean;
11
11
  refresh_error?: string;
12
12
  is_linked?: boolean;
13
+ is_refreshed?: boolean;
13
14
  };
@@ -0,0 +1,6 @@
1
+ import type { InputTransform } from './InputTransform';
2
+ export type PathFlow = {
3
+ input_transforms: Record<string, InputTransform>;
4
+ path: string;
5
+ type: 'flow';
6
+ };
@@ -0,0 +1,4 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export {};
@@ -2,5 +2,6 @@ import type { InputTransform } from './InputTransform';
2
2
  export type PathScript = {
3
3
  input_transforms: Record<string, InputTransform>;
4
4
  path: string;
5
+ hash?: string;
5
6
  type: 'script';
6
7
  };
@@ -31,6 +31,7 @@ export type QueuedJob = {
31
31
  raw_flow?: FlowValue;
32
32
  is_flow_step: boolean;
33
33
  language?: QueuedJob.language;
34
+ email: string;
34
35
  };
35
36
  export declare namespace QueuedJob {
36
37
  enum job_kind {
@@ -10,4 +10,6 @@ export type Schedule = {
10
10
  is_flow: boolean;
11
11
  args?: ScriptArgs;
12
12
  extra_perms: Record<string, boolean>;
13
+ email: string;
14
+ error?: string;
13
15
  };
@@ -1,5 +1,3 @@
1
1
  export type Usage = {
2
- duration_ms?: number;
3
- jobs?: number;
4
- flows?: number;
2
+ executions?: number;
5
3
  };
@@ -2,4 +2,5 @@ export type WorkspaceInvite = {
2
2
  workspace_id: string;
3
3
  email: string;
4
4
  is_admin: boolean;
5
+ operator: boolean;
5
6
  };
@@ -8,7 +8,7 @@ export declare class AppService {
8
8
  * @returns ListableApp All available apps
9
9
  * @throws ApiError
10
10
  */
11
- static listApps({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, }: {
11
+ static listApps({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, starredOnly, }: {
12
12
  workspace: string;
13
13
  /**
14
14
  * which page to return (start at 1, default 1)
@@ -34,6 +34,12 @@ export declare class AppService {
34
34
  * mask to filter exact matching path
35
35
  */
36
36
  pathExact?: string;
37
+ /**
38
+ * (default false)
39
+ * show only the starred items
40
+ *
41
+ */
42
+ starredOnly?: boolean;
37
43
  }): CancelablePromise<Array<ListableApp>>;
38
44
  /**
39
45
  * does an app exisst at path
@@ -6,7 +6,7 @@ export class AppService {
6
6
  * @returns ListableApp All available apps
7
7
  * @throws ApiError
8
8
  */
9
- static listApps({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, }) {
9
+ static listApps({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, starredOnly, }) {
10
10
  return __request(OpenAPI, {
11
11
  method: 'GET',
12
12
  url: '/w/{workspace}/apps/list',
@@ -20,6 +20,7 @@ export class AppService {
20
20
  'created_by': createdBy,
21
21
  'path_start': pathStart,
22
22
  'path_exact': pathExact,
23
+ 'starred_only': starredOnly,
23
24
  },
24
25
  });
25
26
  }
@@ -36,7 +36,7 @@ export declare class JobService {
36
36
  * @returns any job result
37
37
  * @throws ApiError
38
38
  */
39
- static runWaitResultScriptByPath({ workspace, path, requestBody, scheduledFor, scheduledInSecs, parentJob, }: {
39
+ static runWaitResultScriptByPath({ workspace, path, requestBody, scheduledFor, scheduledInSecs, parentJob, includeHeader, }: {
40
40
  workspace: string;
41
41
  path: string;
42
42
  /**
@@ -55,6 +55,12 @@ export declare class JobService {
55
55
  * The parent job that is at the origin and responsible for the execution of this script if any
56
56
  */
57
57
  parentJob?: string;
58
+ /**
59
+ * List of headers's keys (separated with ',') whove value are added to the args
60
+ * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
61
+ *
62
+ */
63
+ includeHeader?: string;
58
64
  }): CancelablePromise<any>;
59
65
  /**
60
66
  * get job result by id
@@ -75,7 +81,7 @@ export declare class JobService {
75
81
  * @returns string job created
76
82
  * @throws ApiError
77
83
  */
78
- static runFlowByPath({ workspace, path, requestBody, scheduledFor, scheduledInSecs, parentJob, }: {
84
+ static runFlowByPath({ workspace, path, requestBody, scheduledFor, scheduledInSecs, parentJob, includeHeader, }: {
79
85
  workspace: string;
80
86
  path: string;
81
87
  /**
@@ -94,13 +100,19 @@ export declare class JobService {
94
100
  * The parent job that is at the origin and responsible for the execution of this script if any
95
101
  */
96
102
  parentJob?: string;
103
+ /**
104
+ * List of headers's keys (separated with ',') whove value are added to the args
105
+ * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
106
+ *
107
+ */
108
+ includeHeader?: string;
97
109
  }): CancelablePromise<string>;
98
110
  /**
99
111
  * run script by hash
100
112
  * @returns string job created
101
113
  * @throws ApiError
102
114
  */
103
- static runScriptByHash({ workspace, hash, requestBody, scheduledFor, scheduledInSecs, parentJob, }: {
115
+ static runScriptByHash({ workspace, hash, requestBody, scheduledFor, scheduledInSecs, parentJob, includeHeader, }: {
104
116
  workspace: string;
105
117
  hash: string;
106
118
  /**
@@ -119,30 +131,48 @@ export declare class JobService {
119
131
  * The parent job that is at the origin and responsible for the execution of this script if any
120
132
  */
121
133
  parentJob?: string;
134
+ /**
135
+ * List of headers's keys (separated with ',') whove value are added to the args
136
+ * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
137
+ *
138
+ */
139
+ includeHeader?: string;
122
140
  }): CancelablePromise<string>;
123
141
  /**
124
142
  * run script preview
125
143
  * @returns string job created
126
144
  * @throws ApiError
127
145
  */
128
- static runScriptPreview({ workspace, requestBody, }: {
146
+ static runScriptPreview({ workspace, requestBody, includeHeader, }: {
129
147
  workspace: string;
130
148
  /**
131
149
  * preview
132
150
  */
133
151
  requestBody: Preview;
152
+ /**
153
+ * List of headers's keys (separated with ',') whove value are added to the args
154
+ * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
155
+ *
156
+ */
157
+ includeHeader?: string;
134
158
  }): CancelablePromise<string>;
135
159
  /**
136
160
  * run flow preview
137
161
  * @returns string job created
138
162
  * @throws ApiError
139
163
  */
140
- static runFlowPreview({ workspace, requestBody, }: {
164
+ static runFlowPreview({ workspace, requestBody, includeHeader, }: {
141
165
  workspace: string;
142
166
  /**
143
167
  * preview
144
168
  */
145
169
  requestBody: FlowPreview;
170
+ /**
171
+ * List of headers's keys (separated with ',') whove value are added to the args
172
+ * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
173
+ *
174
+ */
175
+ includeHeader?: string;
146
176
  }): CancelablePromise<string>;
147
177
  /**
148
178
  * list all available queued jobs
@@ -28,7 +28,7 @@ export class JobService {
28
28
  * @returns any job result
29
29
  * @throws ApiError
30
30
  */
31
- static runWaitResultScriptByPath({ workspace, path, requestBody, scheduledFor, scheduledInSecs, parentJob, }) {
31
+ static runWaitResultScriptByPath({ workspace, path, requestBody, scheduledFor, scheduledInSecs, parentJob, includeHeader, }) {
32
32
  return __request(OpenAPI, {
33
33
  method: 'POST',
34
34
  url: '/w/{workspace}/jobs/run_wait_result/p/{path}',
@@ -40,6 +40,7 @@ export class JobService {
40
40
  'scheduled_for': scheduledFor,
41
41
  'scheduled_in_secs': scheduledInSecs,
42
42
  'parent_job': parentJob,
43
+ 'include_header': includeHeader,
43
44
  },
44
45
  body: requestBody,
45
46
  mediaType: 'application/json',
@@ -69,7 +70,7 @@ export class JobService {
69
70
  * @returns string job created
70
71
  * @throws ApiError
71
72
  */
72
- static runFlowByPath({ workspace, path, requestBody, scheduledFor, scheduledInSecs, parentJob, }) {
73
+ static runFlowByPath({ workspace, path, requestBody, scheduledFor, scheduledInSecs, parentJob, includeHeader, }) {
73
74
  return __request(OpenAPI, {
74
75
  method: 'POST',
75
76
  url: '/w/{workspace}/jobs/run/f/{path}',
@@ -81,6 +82,7 @@ export class JobService {
81
82
  'scheduled_for': scheduledFor,
82
83
  'scheduled_in_secs': scheduledInSecs,
83
84
  'parent_job': parentJob,
85
+ 'include_header': includeHeader,
84
86
  },
85
87
  body: requestBody,
86
88
  mediaType: 'application/json',
@@ -91,7 +93,7 @@ export class JobService {
91
93
  * @returns string job created
92
94
  * @throws ApiError
93
95
  */
94
- static runScriptByHash({ workspace, hash, requestBody, scheduledFor, scheduledInSecs, parentJob, }) {
96
+ static runScriptByHash({ workspace, hash, requestBody, scheduledFor, scheduledInSecs, parentJob, includeHeader, }) {
95
97
  return __request(OpenAPI, {
96
98
  method: 'POST',
97
99
  url: '/w/{workspace}/jobs/run/h/{hash}',
@@ -103,6 +105,7 @@ export class JobService {
103
105
  'scheduled_for': scheduledFor,
104
106
  'scheduled_in_secs': scheduledInSecs,
105
107
  'parent_job': parentJob,
108
+ 'include_header': includeHeader,
106
109
  },
107
110
  body: requestBody,
108
111
  mediaType: 'application/json',
@@ -113,13 +116,16 @@ export class JobService {
113
116
  * @returns string job created
114
117
  * @throws ApiError
115
118
  */
116
- static runScriptPreview({ workspace, requestBody, }) {
119
+ static runScriptPreview({ workspace, requestBody, includeHeader, }) {
117
120
  return __request(OpenAPI, {
118
121
  method: 'POST',
119
122
  url: '/w/{workspace}/jobs/run/preview',
120
123
  path: {
121
124
  'workspace': workspace,
122
125
  },
126
+ query: {
127
+ 'include_header': includeHeader,
128
+ },
123
129
  body: requestBody,
124
130
  mediaType: 'application/json',
125
131
  });
@@ -129,13 +135,16 @@ export class JobService {
129
135
  * @returns string job created
130
136
  * @throws ApiError
131
137
  */
132
- static runFlowPreview({ workspace, requestBody, }) {
138
+ static runFlowPreview({ workspace, requestBody, includeHeader, }) {
133
139
  return __request(OpenAPI, {
134
140
  method: 'POST',
135
141
  url: '/w/{workspace}/jobs/run/preview_flow',
136
142
  path: {
137
143
  'workspace': workspace,
138
144
  },
145
+ query: {
146
+ 'include_header': includeHeader,
147
+ },
139
148
  body: requestBody,
140
149
  mediaType: 'application/json',
141
150
  });
@@ -42,7 +42,7 @@ export declare class OauthService {
42
42
  * code endpoint
43
43
  */
44
44
  requestBody: {
45
- refresh_token: string;
45
+ refresh_token?: string;
46
46
  expires_in: number;
47
47
  owner: string;
48
48
  client: string;
@@ -72,7 +72,7 @@ export declare class ResourceService {
72
72
  * @returns ListableResource resource list
73
73
  * @throws ApiError
74
74
  */
75
- static listResource({ workspace, page, perPage, resourceType, }: {
75
+ static listResource({ workspace, page, perPage, resourceType, resourceTypeExclude, }: {
76
76
  workspace: string;
77
77
  /**
78
78
  * which page to return (start at 1, default 1)
@@ -83,9 +83,13 @@ export declare class ResourceService {
83
83
  */
84
84
  perPage?: number;
85
85
  /**
86
- * resource_type to list from
86
+ * resource_types to list from, separated by ',',
87
87
  */
88
88
  resourceType?: string;
89
+ /**
90
+ * resource_types to not list from, separated by ',',
91
+ */
92
+ resourceTypeExclude?: string;
89
93
  }): CancelablePromise<Array<ListableResource>>;
90
94
  /**
91
95
  * create resource_type
@@ -99,7 +99,7 @@ export class ResourceService {
99
99
  * @returns ListableResource resource list
100
100
  * @throws ApiError
101
101
  */
102
- static listResource({ workspace, page, perPage, resourceType, }) {
102
+ static listResource({ workspace, page, perPage, resourceType, resourceTypeExclude, }) {
103
103
  return __request(OpenAPI, {
104
104
  method: 'GET',
105
105
  url: '/w/{workspace}/resources/list',
@@ -110,6 +110,7 @@ export class ResourceService {
110
110
  'page': page,
111
111
  'per_page': perPage,
112
112
  'resource_type': resourceType,
113
+ 'resource_type_exclude': resourceTypeExclude,
113
114
  },
114
115
  });
115
116
  }
@@ -118,6 +118,12 @@ export declare class UserService {
118
118
  * @throws ApiError
119
119
  */
120
120
  static getCurrentEmail(): CancelablePromise<string>;
121
+ /**
122
+ * get current usage outside of premium workspaces
123
+ * @returns number free usage
124
+ * @throws ApiError
125
+ */
126
+ static getUsage(): CancelablePromise<number>;
121
127
  /**
122
128
  * get current global whoami (if logged in)
123
129
  * @returns GlobalUserInfo user email
@@ -141,6 +141,17 @@ export class UserService {
141
141
  url: '/users/email',
142
142
  });
143
143
  }
144
+ /**
145
+ * get current usage outside of premium workspaces
146
+ * @returns number free usage
147
+ * @throws ApiError
148
+ */
149
+ static getUsage() {
150
+ return __request(OpenAPI, {
151
+ method: 'GET',
152
+ url: '/users/usage',
153
+ });
154
+ }
144
155
  /**
145
156
  * get current global whoami (if logged in)
146
157
  * @returns GlobalUserInfo user email
@@ -10,6 +10,12 @@ export declare class WorkspaceService {
10
10
  * @throws ApiError
11
11
  */
12
12
  static listWorkspaces(): CancelablePromise<Array<Workspace>>;
13
+ /**
14
+ * is domain allowed for auto invi
15
+ * @returns boolean domain allowed or not
16
+ * @throws ApiError
17
+ */
18
+ static isDomainAllowed(): CancelablePromise<boolean>;
13
19
  /**
14
20
  * list all workspaces visible to me with user info
15
21
  * @returns UserWorkspaceList workspace with associated username
@@ -79,6 +85,7 @@ export declare class WorkspaceService {
79
85
  requestBody: {
80
86
  email: string;
81
87
  is_admin: boolean;
88
+ operator: boolean;
82
89
  };
83
90
  }): CancelablePromise<string>;
84
91
  /**
@@ -94,6 +101,7 @@ export declare class WorkspaceService {
94
101
  requestBody: {
95
102
  email: string;
96
103
  is_admin: boolean;
104
+ operator: boolean;
97
105
  };
98
106
  }): CancelablePromise<string>;
99
107
  /**
@@ -124,6 +132,19 @@ export declare class WorkspaceService {
124
132
  slack_name?: string;
125
133
  slack_team_id?: string;
126
134
  slack_command_script?: string;
135
+ auto_invite_domain?: string;
136
+ auto_invite_operator?: boolean;
137
+ }>;
138
+ /**
139
+ * get premium info
140
+ * @returns any status
141
+ * @throws ApiError
142
+ */
143
+ static getPremiumInfo({ workspace, }: {
144
+ workspace: string;
145
+ }): CancelablePromise<{
146
+ premium: boolean;
147
+ usage?: number;
127
148
  }>;
128
149
  /**
129
150
  * edit slack command
@@ -139,4 +160,18 @@ export declare class WorkspaceService {
139
160
  slack_command_script?: string;
140
161
  };
141
162
  }): CancelablePromise<string>;
163
+ /**
164
+ * edit auto invite
165
+ * @returns string status
166
+ * @throws ApiError
167
+ */
168
+ static editAutoInvite({ workspace, requestBody, }: {
169
+ workspace: string;
170
+ /**
171
+ * WorkspaceInvite
172
+ */
173
+ requestBody: {
174
+ operator?: boolean;
175
+ };
176
+ }): CancelablePromise<string>;
142
177
  }
@@ -12,6 +12,17 @@ export class WorkspaceService {
12
12
  url: '/workspaces/list',
13
13
  });
14
14
  }
15
+ /**
16
+ * is domain allowed for auto invi
17
+ * @returns boolean domain allowed or not
18
+ * @throws ApiError
19
+ */
20
+ static isDomainAllowed() {
21
+ return __request(OpenAPI, {
22
+ method: 'GET',
23
+ url: '/workspaces/allowed_domain_auto_invite',
24
+ });
25
+ }
15
26
  /**
16
27
  * list all workspaces visible to me with user info
17
28
  * @returns UserWorkspaceList workspace with associated username
@@ -151,6 +162,20 @@ export class WorkspaceService {
151
162
  },
152
163
  });
153
164
  }
165
+ /**
166
+ * get premium info
167
+ * @returns any status
168
+ * @throws ApiError
169
+ */
170
+ static getPremiumInfo({ workspace, }) {
171
+ return __request(OpenAPI, {
172
+ method: 'GET',
173
+ url: '/w/{workspace}/workspaces/premium_info',
174
+ path: {
175
+ 'workspace': workspace,
176
+ },
177
+ });
178
+ }
154
179
  /**
155
180
  * edit slack command
156
181
  * @returns string status
@@ -167,4 +192,20 @@ export class WorkspaceService {
167
192
  mediaType: 'application/json',
168
193
  });
169
194
  }
195
+ /**
196
+ * edit auto invite
197
+ * @returns string status
198
+ * @throws ApiError
199
+ */
200
+ static editAutoInvite({ workspace, requestBody, }) {
201
+ return __request(OpenAPI, {
202
+ method: 'POST',
203
+ url: '/w/{workspace}/workspaces/edit_auto_invite',
204
+ path: {
205
+ 'workspace': workspace,
206
+ },
207
+ body: requestBody,
208
+ mediaType: 'application/json',
209
+ });
210
+ }
170
211
  }