twenty-sdk 0.5.2 → 0.6.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 (266) hide show
  1. package/README.md +29 -10
  2. package/dist/{AllIcons-CGPKtPQS-C-ZFgy8B.mjs → AllIcons-CGPKtPQS-CBzLmrUd.mjs} +6666 -6695
  3. package/dist/{AllIcons-CGPKtPQS-sO2O4z-k.js → AllIcons-CGPKtPQS-CoHKEEHb.js} +3790 -3810
  4. package/dist/HtmlTagToRemoteComponent-DBOkvIRB.mjs +13283 -0
  5. package/dist/HtmlTagToRemoteComponent-DzQ2I9Lz.js +29 -0
  6. package/dist/cli/commands/app/app-dev.d.ts +0 -16
  7. package/dist/cli/commands/app/app-typecheck.d.ts +6 -0
  8. package/dist/cli/commands/app/app-uninstall.d.ts +2 -2
  9. package/dist/cli/commands/app-command.d.ts +1 -1
  10. package/dist/cli/commands/entity/entity-add.d.ts +3 -0
  11. package/dist/cli/commands/logic-function/logic-function-execute.d.ts +2 -1
  12. package/dist/cli/commands/logic-function/logic-function-logs.d.ts +1 -1
  13. package/dist/cli/utilities/api/api-service.d.ts +37 -9
  14. package/dist/cli/utilities/build/common/esbuild-result-processor.d.ts +2 -2
  15. package/dist/cli/utilities/build/common/esbuild-watcher.d.ts +2 -2
  16. package/dist/cli/utilities/build/common/file-upload-watcher.d.ts +1 -1
  17. package/dist/cli/utilities/build/common/front-component-build/jsx-runtime-remote-wrapper-plugin.d.ts +6 -0
  18. package/dist/cli/utilities/build/common/front-component-build/jsx-transform-to-remote-dom-worker-format-plugin.d.ts +0 -1
  19. package/dist/cli/utilities/build/common/front-component-build/preact-alias-plugin.d.ts +2 -0
  20. package/dist/cli/utilities/build/common/front-component-build/utils/get-front-component-build-plugins.d.ts +5 -1
  21. package/dist/cli/utilities/build/common/restartable-watcher-interface.d.ts +2 -2
  22. package/dist/cli/utilities/build/common/tsc-watcher.d.ts +18 -0
  23. package/dist/cli/utilities/build/common/typecheck-plugin.d.ts +10 -0
  24. package/dist/cli/utilities/build/manifest/manifest-build.d.ts +2 -2
  25. package/dist/cli/utilities/build/manifest/manifest-extract-config-from-file.d.ts +1 -1
  26. package/dist/cli/utilities/build/manifest/manifest-extract-config.d.ts +10 -2
  27. package/dist/cli/utilities/build/manifest/manifest-reader.d.ts +2 -0
  28. package/dist/cli/utilities/build/manifest/manifest-update-checksums.d.ts +2 -2
  29. package/dist/cli/utilities/build/manifest/manifest-validate.d.ts +1 -1
  30. package/dist/cli/utilities/build/manifest/manifest-writer.d.ts +1 -1
  31. package/dist/cli/utilities/build/manifest/utils/generate-default-field-universal-identifier.d.ts +5 -0
  32. package/dist/cli/utilities/build/manifest/utils/get-default-fields-in-object-fields.d.ts +6 -0
  33. package/dist/cli/utilities/build/manifest/utils/get-default-object-fields.d.ts +3 -0
  34. package/dist/cli/utilities/build/manifest/utils/get-default-relation-object-fields.d.ts +6 -0
  35. package/dist/cli/utilities/client/client-service.d.ts +5 -3
  36. package/dist/cli/utilities/config/config-service.d.ts +2 -0
  37. package/dist/cli/utilities/dev/orchestrator/dev-mode-orchestrator-state.d.ts +75 -0
  38. package/dist/cli/utilities/dev/orchestrator/dev-mode-orchestrator.d.ts +29 -0
  39. package/dist/cli/utilities/dev/orchestrator/steps/build-manifest-orchestrator-step.d.ts +16 -0
  40. package/dist/cli/utilities/dev/orchestrator/steps/check-server-orchestrator-step.d.ts +17 -0
  41. package/dist/cli/utilities/dev/orchestrator/steps/ensure-valid-tokens-orchestrator-step.d.ts +22 -0
  42. package/dist/cli/utilities/dev/orchestrator/steps/generate-api-client-orchestrator-step.d.ts +18 -0
  43. package/dist/cli/utilities/dev/orchestrator/steps/resolve-application-orchestrator-step.d.ts +20 -0
  44. package/dist/cli/utilities/dev/orchestrator/steps/start-watchers-orchestrator-step.d.ts +43 -0
  45. package/dist/cli/utilities/dev/orchestrator/steps/sync-application-orchestrator-step.d.ts +22 -0
  46. package/dist/cli/utilities/dev/orchestrator/steps/upload-files-orchestrator-step.d.ts +25 -0
  47. package/dist/cli/utilities/dev/ui/components/dev-ui-application-panel.d.ts +12 -0
  48. package/dist/cli/utilities/dev/ui/components/dev-ui-entity-section.d.ts +16 -0
  49. package/dist/cli/utilities/dev/ui/components/dev-ui-event-log.d.ts +5 -0
  50. package/dist/cli/utilities/dev/{dev-ui.d.ts → ui/components/dev-ui.d.ts} +1 -1
  51. package/dist/cli/utilities/dev/ui/dev-ui-constants.d.ts +27 -0
  52. package/dist/cli/utilities/dev/ui/dev-ui-hooks.d.ts +3 -0
  53. package/dist/cli/utilities/dev/ui/dev-ui-ink-context.d.ts +10 -0
  54. package/dist/cli/utilities/dev/ui/dev-ui-state-manager.d.ts +10 -0
  55. package/dist/cli/utilities/entity/entity-field-template.d.ts +2 -2
  56. package/dist/cli/utilities/entity/entity-front-component-template.d.ts +1 -1
  57. package/dist/cli/utilities/entity/entity-logic-function-template.d.ts +1 -1
  58. package/dist/cli/utilities/entity/entity-navigation-menu-item-template.d.ts +5 -0
  59. package/dist/cli/utilities/entity/entity-object-template.d.ts +2 -1
  60. package/dist/cli/utilities/entity/entity-page-layout-template.d.ts +3 -0
  61. package/dist/cli/utilities/entity/entity-role-template.d.ts +1 -1
  62. package/dist/cli/utilities/entity/entity-skill-template.d.ts +4 -0
  63. package/dist/cli/utilities/entity/entity-view-template.d.ts +5 -0
  64. package/dist/cli/utilities/error/serialize-error.d.ts +1 -0
  65. package/dist/cli/utilities/file/file-jsonc.d.ts +1 -1
  66. package/dist/cli/utilities/file/file-path.d.ts +1 -1
  67. package/dist/cli/utilities/file/file-uploader.d.ts +3 -3
  68. package/dist/cli/utilities/typescript/typescript-diagnostics.d.ts +1 -1
  69. package/dist/cli/utilities/typescript/typescript-program.d.ts +1 -1
  70. package/dist/cli.cjs +356 -85
  71. package/dist/cli.mjs +5260 -4313
  72. package/dist/front-component-renderer/host/components/FrontComponentRenderer.d.ts +14 -0
  73. package/dist/front-component-renderer/host/components/RemoteStyleRenderer.d.ts +6 -0
  74. package/dist/front-component-renderer/host/utils/createHtmlHostWrapper.d.ts +8 -0
  75. package/dist/front-component-renderer/index.cjs +25 -0
  76. package/dist/{front-component → front-component-renderer}/index.d.ts +5 -5
  77. package/dist/front-component-renderer/index.mjs +11744 -0
  78. package/dist/front-component-renderer/polyfills/MockCSSStyleSheet.d.ts +17 -0
  79. package/dist/front-component-renderer/polyfills/installStyleBridge.d.ts +2 -0
  80. package/dist/front-component-renderer/remote/components/FrontComponentHostCommunicationApiEffect.d.ts +8 -0
  81. package/dist/front-component-renderer/remote/components/FrontComponentUpdateContextEffect.d.ts +11 -0
  82. package/dist/{front-component → front-component-renderer}/remote/components/FrontComponentWorkerEffect.d.ts +5 -4
  83. package/dist/front-component-renderer/remote/generated/remote-components.d.ts +44 -0
  84. package/dist/front-component-renderer/remote/generated/remote-elements.d.ts +193 -0
  85. package/dist/front-component-renderer/remote/utils/installStylePropertyOnRemoteElements.d.ts +1 -0
  86. package/dist/front-component-renderer/remote/utils/patchRemoteElementSetAttribute.d.ts +1 -0
  87. package/dist/front-component-renderer/remote/worker/remote-worker.d.ts +3 -0
  88. package/dist/front-component-renderer/remote/worker/utils/setWorkerEnv.d.ts +1 -0
  89. package/dist/{front-component → front-component-renderer}/types/FrontComponentExecutionContext.d.ts +1 -0
  90. package/dist/front-component-renderer/types/FrontComponentHostCommunicationApi.d.ts +8 -0
  91. package/dist/{front-component → front-component-renderer}/types/HostToWorkerRenderContext.d.ts +2 -1
  92. package/dist/front-component-renderer/types/PropertySchema.d.ts +4 -0
  93. package/dist/{front-component → front-component-renderer}/types/WorkerExports.d.ts +3 -3
  94. package/dist/get-function-input-schema-BZ7_XyUh-By3UDh4s.mjs +62 -0
  95. package/dist/get-function-input-schema-BZ7_XyUh-GxSybvDe.js +1 -0
  96. package/dist/index-CicdakVv.js +2430 -0
  97. package/dist/index-DeMzdViF.mjs +33940 -0
  98. package/dist/index.cjs +2 -5
  99. package/dist/index.mjs +408 -2493
  100. package/dist/sdk/action/Action.d.ts +4 -0
  101. package/dist/sdk/action/Action.js +33 -0
  102. package/dist/sdk/action/Action.js.map +1 -0
  103. package/dist/sdk/action/ActionLink.d.ts +10 -0
  104. package/dist/sdk/action/ActionLink.js +39 -0
  105. package/dist/sdk/action/ActionLink.js.map +1 -0
  106. package/dist/sdk/action/ActionOpenSidePanelPage.d.ts +9 -0
  107. package/dist/sdk/action/ActionOpenSidePanelPage.js +54 -0
  108. package/dist/sdk/action/ActionOpenSidePanelPage.js.map +1 -0
  109. package/dist/sdk/action/index.d.ts +6 -0
  110. package/dist/sdk/application/application-config.d.ts +2 -2
  111. package/dist/sdk/application/define-application.d.ts +2 -2
  112. package/dist/sdk/application/define-application.js +12 -0
  113. package/dist/sdk/application/define-application.js.map +1 -0
  114. package/dist/sdk/common/types/define-entity.type.d.ts +9 -6
  115. package/dist/sdk/common/utils/create-validation-result.d.ts +1 -1
  116. package/dist/sdk/common/utils/create-validation-result.js +12 -0
  117. package/dist/sdk/common/utils/create-validation-result.js.map +1 -0
  118. package/dist/sdk/define-front-component.d.ts +2 -2
  119. package/dist/sdk/define-front-component.js +20 -0
  120. package/dist/sdk/define-front-component.js.map +1 -0
  121. package/dist/sdk/fields/define-field.d.ts +2 -2
  122. package/dist/sdk/fields/define-field.js +15 -0
  123. package/dist/sdk/fields/define-field.js.map +1 -0
  124. package/dist/sdk/fields/validate-fields.d.ts +1 -1
  125. package/dist/sdk/fields/validate-fields.js +16 -0
  126. package/dist/sdk/fields/validate-fields.js.map +1 -0
  127. package/dist/{HtmlTagToRemoteComponent-DRdIf3GJ.mjs → sdk/front-component-api/constants/AllowedHtmlElements.js} +4 -14
  128. package/dist/sdk/front-component-api/constants/AllowedHtmlElements.js.map +1 -0
  129. package/dist/sdk/front-component-api/constants/CommonHtmlEvents.js +26 -0
  130. package/dist/sdk/front-component-api/constants/CommonHtmlEvents.js.map +1 -0
  131. package/dist/sdk/front-component-api/constants/EventToReact.js +26 -0
  132. package/dist/sdk/front-component-api/constants/EventToReact.js.map +1 -0
  133. package/dist/sdk/front-component-api/constants/HtmlCommonProperties.d.ts +2 -0
  134. package/dist/sdk/front-component-api/constants/HtmlCommonProperties.js +15 -0
  135. package/dist/sdk/front-component-api/constants/HtmlCommonProperties.js.map +1 -0
  136. package/dist/sdk/front-component-api/constants/HtmlTagToRemoteComponent.d.ts +2 -0
  137. package/dist/sdk/front-component-api/constants/HtmlTagToRemoteComponent.js +24 -0
  138. package/dist/sdk/front-component-api/constants/HtmlTagToRemoteComponent.js.map +1 -0
  139. package/dist/sdk/front-component-api/context/frontComponentContext.d.ts +2 -2
  140. package/dist/sdk/front-component-api/context/frontComponentContext.js +11 -0
  141. package/dist/sdk/front-component-api/context/frontComponentContext.js.map +1 -0
  142. package/dist/sdk/front-component-api/functions/closeSidePanel.d.ts +2 -0
  143. package/dist/sdk/front-component-api/functions/closeSidePanel.js +12 -0
  144. package/dist/sdk/front-component-api/functions/closeSidePanel.js.map +1 -0
  145. package/dist/sdk/front-component-api/functions/enqueueSnackbar.d.ts +2 -0
  146. package/dist/sdk/front-component-api/functions/enqueueSnackbar.js +12 -0
  147. package/dist/sdk/front-component-api/functions/enqueueSnackbar.js.map +1 -0
  148. package/dist/sdk/front-component-api/functions/navigate.d.ts +1 -4
  149. package/dist/sdk/front-component-api/functions/navigate.js +12 -0
  150. package/dist/sdk/front-component-api/functions/navigate.js.map +1 -0
  151. package/dist/sdk/front-component-api/functions/openSidePanelPage.d.ts +2 -0
  152. package/dist/sdk/front-component-api/functions/openSidePanelPage.js +12 -0
  153. package/dist/sdk/front-component-api/functions/openSidePanelPage.js.map +1 -0
  154. package/dist/sdk/front-component-api/functions/unmountFrontComponent.d.ts +2 -0
  155. package/dist/sdk/front-component-api/functions/unmountFrontComponent.js +12 -0
  156. package/dist/sdk/front-component-api/functions/unmountFrontComponent.js.map +1 -0
  157. package/dist/sdk/front-component-api/globals/frontComponentHostCommunicationApi.d.ts +23 -0
  158. package/dist/sdk/front-component-api/globals/frontComponentHostCommunicationApi.js +6 -0
  159. package/dist/sdk/front-component-api/globals/frontComponentHostCommunicationApi.js.map +1 -0
  160. package/dist/sdk/front-component-api/hooks/useFrontComponentExecutionContext.d.ts +2 -2
  161. package/dist/sdk/front-component-api/hooks/useFrontComponentExecutionContext.js +18 -0
  162. package/dist/sdk/front-component-api/hooks/useFrontComponentExecutionContext.js.map +1 -0
  163. package/dist/sdk/front-component-api/hooks/useFrontComponentId.d.ts +1 -0
  164. package/dist/sdk/front-component-api/hooks/useFrontComponentId.js +6 -0
  165. package/dist/sdk/front-component-api/hooks/useFrontComponentId.js.map +1 -0
  166. package/dist/sdk/front-component-api/hooks/useUserId.d.ts +1 -1
  167. package/dist/sdk/front-component-api/hooks/useUserId.js +6 -0
  168. package/dist/sdk/front-component-api/hooks/useUserId.js.map +1 -0
  169. package/dist/sdk/front-component-api/index.d.ts +14 -1
  170. package/dist/sdk/front-component-api/types/FrontComponentExecutionContext.d.ts +1 -0
  171. package/dist/sdk/front-component-api/utils/getFrontComponentActionErrorDedupeKey.d.ts +1 -0
  172. package/dist/sdk/front-component-api/utils/getFrontComponentActionErrorDedupeKey.js +5 -0
  173. package/dist/sdk/front-component-api/utils/getFrontComponentActionErrorDedupeKey.js.map +1 -0
  174. package/dist/sdk/front-component-config.d.ts +2 -1
  175. package/dist/sdk/front-component-renderer/polyfills/MockCSSStyleSheet.js +31 -0
  176. package/dist/sdk/front-component-renderer/polyfills/MockCSSStyleSheet.js.map +1 -0
  177. package/dist/sdk/front-component-renderer/polyfills/installStyleBridge.js +121 -0
  178. package/dist/sdk/front-component-renderer/polyfills/installStyleBridge.js.map +1 -0
  179. package/dist/sdk/front-component-renderer/remote/utils/exposeGlobals.js +8 -0
  180. package/dist/sdk/front-component-renderer/remote/utils/exposeGlobals.js.map +1 -0
  181. package/dist/sdk/index.d.ts +26 -13
  182. package/dist/sdk/index.js +79 -0
  183. package/dist/sdk/index.js.map +1 -0
  184. package/dist/sdk/logic-functions/define-logic-function.d.ts +2 -2
  185. package/dist/sdk/logic-functions/define-logic-function.js +12 -0
  186. package/dist/sdk/logic-functions/define-logic-function.js.map +1 -0
  187. package/dist/sdk/logic-functions/logic-function-config.d.ts +4 -2
  188. package/dist/sdk/navigation-menu-items/define-navigation-menu-item.d.ts +3 -0
  189. package/dist/sdk/navigation-menu-items/define-navigation-menu-item.js +9 -0
  190. package/dist/sdk/navigation-menu-items/define-navigation-menu-item.js.map +1 -0
  191. package/dist/sdk/objects/define-object.d.ts +3 -3
  192. package/dist/sdk/objects/define-object.js +20 -0
  193. package/dist/sdk/objects/define-object.js.map +1 -0
  194. package/dist/sdk/objects/object-config.d.ts +4 -0
  195. package/dist/sdk/page-layouts/define-page-layout.d.ts +3 -0
  196. package/dist/sdk/page-layouts/define-page-layout.js +15 -0
  197. package/dist/sdk/page-layouts/define-page-layout.js.map +1 -0
  198. package/dist/sdk/page-layouts/page-layout-config.d.ts +2 -0
  199. package/dist/sdk/roles/define-role.d.ts +2 -2
  200. package/dist/sdk/roles/define-role.js +15 -0
  201. package/dist/sdk/roles/define-role.js.map +1 -0
  202. package/dist/sdk/skills/define-skill.d.ts +3 -0
  203. package/dist/sdk/skills/define-skill.js +9 -0
  204. package/dist/sdk/skills/define-skill.js.map +1 -0
  205. package/dist/sdk/views/define-view.d.ts +3 -0
  206. package/dist/sdk/views/define-view.js +24 -0
  207. package/dist/sdk/views/define-view.js.map +1 -0
  208. package/dist/sdk/views/view-config.d.ts +2 -0
  209. package/dist/ui/index.cjs +1 -47
  210. package/dist/ui/index.d.ts +1 -0
  211. package/dist/ui/index.mjs +692 -2401
  212. package/package.json +47 -12
  213. package/dist/HtmlTagToRemoteComponent-B6lQe_K8.js +0 -1
  214. package/dist/IconWorld-DynX4UYH.mjs +0 -3003
  215. package/dist/IconWorld-JYjJym3l.js +0 -1876
  216. package/dist/_commonjsHelpers-DKOUU3wS.js +0 -1
  217. package/dist/_commonjsHelpers-DaMA6jEr.mjs +0 -8
  218. package/dist/cli/commands/app/app-generate.d.ts +0 -4
  219. package/dist/cli/utilities/build/common/front-component-build/react-globals-plugin.d.ts +0 -1
  220. package/dist/cli/utilities/build/common/front-component-build/twenty-sdk-globals-plugin.d.ts +0 -1
  221. package/dist/cli/utilities/build/common/front-component-build/twenty-sdk-ui-globals-plugin.d.ts +0 -1
  222. package/dist/cli/utilities/build/common/front-component-build/twenty-shared-globals-plugin.d.ts +0 -1
  223. package/dist/cli/utilities/build/common/front-component-build/types/ParsedImportSpecifier.d.ts +0 -4
  224. package/dist/cli/utilities/build/common/front-component-build/utils/collect-named-imports.d.ts +0 -4
  225. package/dist/cli/utilities/build/common/front-component-build/utils/create-front-component-build-options.d.ts +0 -13
  226. package/dist/cli/utilities/build/common/front-component-build/utils/create-globals-plugin.d.ts +0 -15
  227. package/dist/cli/utilities/build/common/front-component-build/utils/extract-names-from-import-specifier.d.ts +0 -2
  228. package/dist/cli/utilities/build/common/front-component-build/utils/replace-html-tags-with-remote-components.d.ts +0 -1
  229. package/dist/cli/utilities/dev/dev-mode-orchestrator.d.ts +0 -42
  230. package/dist/cli/utilities/dev/dev-ui-state-manager.d.ts +0 -31
  231. package/dist/cli/utilities/dev/dev-ui-state.d.ts +0 -27
  232. package/dist/front-component/__stories__/FrontComponentRenderer.stories.d.ts +0 -9
  233. package/dist/front-component/__stories__/mocks/interactive.front-component.d.ts +0 -7
  234. package/dist/front-component/__stories__/mocks/lifecycle.front-component.d.ts +0 -7
  235. package/dist/front-component/__stories__/mocks/static.front-component.d.ts +0 -7
  236. package/dist/front-component/__stories__/utils/buildMockComponents.d.ts +0 -1
  237. package/dist/front-component/__stories__/utils/loadBuiltComponent.d.ts +0 -1
  238. package/dist/front-component/host/components/FrontComponentRenderer.d.ts +0 -13
  239. package/dist/front-component/host/generated/host-index.d.ts +0 -1
  240. package/dist/front-component/index.cjs +0 -1
  241. package/dist/front-component/index.mjs +0 -5736
  242. package/dist/front-component/remote/components/FrontComponentHostCommunicationApiEffect.d.ts +0 -8
  243. package/dist/front-component/remote/components/FrontComponentUpdateContextEffect.d.ts +0 -10
  244. package/dist/front-component/remote/generated/remote-components.d.ts +0 -299
  245. package/dist/front-component/remote/generated/remote-elements.d.ts +0 -3335
  246. package/dist/front-component/remote/generated/remote-index.d.ts +0 -2
  247. package/dist/front-component/remote/mock/mock-front-component.d.ts +0 -3
  248. package/dist/front-component/remote/worker/remote-worker.d.ts +0 -0
  249. package/dist/front-component/types/FrontComponentHostCommunicationApi.d.ts +0 -4
  250. package/dist/front-component/types/PropertySchema.d.ts +0 -4
  251. package/dist/index.d.ts +0 -1
  252. package/dist/isValidCountryCode-ujmwsK7z-B8kSH7O8.mjs +0 -10248
  253. package/dist/isValidCountryCode-ujmwsK7z-DwSvvT1u.js +0 -25
  254. package/dist/navigation-_M4-TT0O.js +0 -503
  255. package/dist/navigation-udgao_jA.mjs +0 -30041
  256. package/dist/sdk/front-component-common/HtmlCommonProperties.d.ts +0 -2
  257. package/dist/sdk/front-component-common/HtmlTagToRemoteComponent.d.ts +0 -1
  258. package/dist/sdk/front-component-common/index.d.ts +0 -7
  259. /package/dist/{front-component → front-component-renderer}/host/generated/host-component-registry.d.ts +0 -0
  260. /package/dist/{front-component → front-component-renderer}/remote/components/FrontComponentErrorEffect.d.ts +0 -0
  261. /package/dist/{front-component → front-component-renderer}/remote/utils/exposeGlobals.d.ts +0 -0
  262. /package/dist/{front-component/remote/worker → front-component-renderer/remote/worker/utils}/createRemoteWorker.d.ts +0 -0
  263. /package/dist/sdk/{front-component-common → front-component-api/constants}/AllowedHtmlElements.d.ts +0 -0
  264. /package/dist/sdk/{front-component-common → front-component-api/constants}/CommonHtmlEvents.d.ts +0 -0
  265. /package/dist/sdk/{front-component-common → front-component-api/constants}/EventToReact.d.ts +0 -0
  266. /package/dist/sdk/{front-component-common → front-component-api/constants}/SerializedEventData.d.ts +0 -0
@@ -0,0 +1,22 @@
1
+ import { type ApiService } from '../../../../../cli/utilities/api/api-service';
2
+ import { type OrchestratorState, type OrchestratorStateBuiltFileInfo, type OrchestratorStateSyncStatus } from '../../../../../cli/utilities/dev/orchestrator/dev-mode-orchestrator-state';
3
+ import { type Manifest } from 'twenty-shared/application';
4
+ export type SyncApplicationOrchestratorStepOutput = {
5
+ syncStatus: OrchestratorStateSyncStatus;
6
+ error: string | null;
7
+ };
8
+ export declare class SyncApplicationOrchestratorStep {
9
+ private apiService;
10
+ private state;
11
+ private notify;
12
+ constructor({ apiService, state, notify }: {
13
+ apiService: ApiService;
14
+ state: OrchestratorState;
15
+ notify: () => void;
16
+ });
17
+ execute(input: {
18
+ manifest: Manifest;
19
+ builtFileInfos: Map<string, OrchestratorStateBuiltFileInfo>;
20
+ appPath: string;
21
+ }): Promise<void>;
22
+ }
@@ -0,0 +1,25 @@
1
+ import { type OrchestratorState, type OrchestratorStateBuiltFileInfo } from '../../../../../cli/utilities/dev/orchestrator/dev-mode-orchestrator-state';
2
+ import { FileUploader } from '../../../../../cli/utilities/file/file-uploader';
3
+ import { FileFolder } from 'twenty-shared/types';
4
+ export type UploadFilesOrchestratorStepOutput = {
5
+ fileUploader: FileUploader | null;
6
+ builtFileInfos: Map<string, OrchestratorStateBuiltFileInfo>;
7
+ activeUploads: Set<Promise<void>>;
8
+ };
9
+ export declare class UploadFilesOrchestratorStep {
10
+ private state;
11
+ private notify;
12
+ constructor({ state, notify }: {
13
+ state: OrchestratorState;
14
+ notify: () => void;
15
+ });
16
+ get isInitialized(): boolean;
17
+ initialize(input: {
18
+ appPath: string;
19
+ universalIdentifier: string;
20
+ }): void;
21
+ uploadFile(builtPath: string, sourcePath: string, fileFolder: FileFolder): void;
22
+ waitForUploads(): Promise<void>;
23
+ copyAndUploadApiClientFiles(appPath: string): Promise<void>;
24
+ private uploadPendingFiles;
25
+ }
@@ -0,0 +1,12 @@
1
+ import { type OrchestratorState, type OrchestratorStateStepStatus } from '../../../../../cli/utilities/dev/orchestrator/dev-mode-orchestrator-state';
2
+ import React from 'react';
3
+ export declare const DevUiSyncStatusIndicator: ({ state, }: {
4
+ state: OrchestratorState;
5
+ }) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
6
+ export declare const DevUiStepStatusLabel: ({ label, status, }: {
7
+ label: string;
8
+ status: OrchestratorStateStepStatus;
9
+ }) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
10
+ export declare const DevUiApplicationPanel: ({ state, }: {
11
+ state: OrchestratorState;
12
+ }) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
@@ -0,0 +1,16 @@
1
+ import { type OrchestratorStateEntityInfo } from '../../../../../cli/utilities/dev/orchestrator/dev-mode-orchestrator-state';
2
+ import { type DevUiStatus, ENTITY_ORDER } from '../../../../../cli/utilities/dev/ui/dev-ui-constants';
3
+ import React from 'react';
4
+ import { type SyncableEntity } from 'twenty-shared/application';
5
+ export declare const DevUiStatusIcon: ({ uiStatus, }: {
6
+ uiStatus: DevUiStatus;
7
+ }) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
8
+ export declare const DevUiEntityRow: ({ entity, }: {
9
+ entity: OrchestratorStateEntityInfo;
10
+ }) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
11
+ export declare const DevUiEntitySection: ({ type, entities, }: {
12
+ type: SyncableEntity;
13
+ entities: OrchestratorStateEntityInfo[];
14
+ }) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
15
+ export declare const DevUiEntityLegend: () => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
16
+ export { ENTITY_ORDER };
@@ -0,0 +1,5 @@
1
+ import { type OrchestratorStateEvent } from '../../../../../cli/utilities/dev/orchestrator/dev-mode-orchestrator-state';
2
+ import React from 'react';
3
+ export declare const DevUiEventItem: ({ event, }: {
4
+ event: OrchestratorStateEvent;
5
+ }) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
@@ -1,4 +1,4 @@
1
- import { DevUiStateManager } from './dev-ui-state-manager';
1
+ import { type DevUiStateManager } from '../../../../../cli/utilities/dev/ui/dev-ui-state-manager';
2
2
  export declare const renderDevUI: (uiStateManager: DevUiStateManager) => Promise<{
3
3
  unmount: () => void;
4
4
  }>;
@@ -0,0 +1,27 @@
1
+ import { type OrchestratorState, type OrchestratorStateEvent, type OrchestratorStateFileStatus, type OrchestratorStateStepStatus, type OrchestratorStateSyncStatus, type OrchestratorStateEntityInfo } from '../../../../cli/utilities/dev/orchestrator/dev-mode-orchestrator-state';
2
+ import { SyncableEntity } from 'twenty-shared/application';
3
+ export type DevUiStatus = 'idle' | 'in_progress' | 'uploading' | 'done' | 'error';
4
+ export type DevUiStatusConfig = {
5
+ color: string;
6
+ icon: 'spinner' | 'upload' | string;
7
+ };
8
+ export declare const DEV_UI_STATUS_CONFIG: Record<DevUiStatus, DevUiStatusConfig>;
9
+ export declare const mapStepStatusToDevUiStatus: (status: OrchestratorStateStepStatus) => DevUiStatus;
10
+ export declare const mapFileStatusToDevUiStatus: (status: OrchestratorStateFileStatus) => DevUiStatus;
11
+ export declare const mapSyncStatusToDevUiStatus: (status: OrchestratorStateSyncStatus) => DevUiStatus;
12
+ export declare const SYNC_STATUS_LABELS: Record<OrchestratorStateSyncStatus, string>;
13
+ export declare const SPINNER_FRAMES: string[];
14
+ export declare const UPLOAD_FRAMES: string[];
15
+ export declare const ENTITY_LABELS: Record<SyncableEntity, string>;
16
+ export declare const ENTITY_ORDER: SyncableEntity[];
17
+ export declare const EVENT_COLORS: Record<OrchestratorStateEvent['status'], string>;
18
+ export declare const formatTime: (date: Date) => string;
19
+ export declare const shortenPath: (path: string, maxLength?: number) => string;
20
+ export declare const groupEntitiesByType: (entities: Map<string, OrchestratorStateEntityInfo>) => Map<SyncableEntity, OrchestratorStateEntityInfo[]>;
21
+ export declare const getApplicationUrl: (state: OrchestratorState) => string | null;
22
+ export declare const mergeStepStatuses: (statuses: OrchestratorStateStepStatus[]) => OrchestratorStateStepStatus;
23
+ export type DevUiPipelineRow = {
24
+ label: string;
25
+ status: OrchestratorStateStepStatus;
26
+ };
27
+ export declare const getPipelineRows: (state: OrchestratorState) => DevUiPipelineRow[];
@@ -0,0 +1,3 @@
1
+ import { type DevUiStatus } from '../../../../cli/utilities/dev/ui/dev-ui-constants';
2
+ export declare const useAnimatedFrame: (frames: string[], interval?: number, enabled?: boolean) => string;
3
+ export declare const useStatusIcon: (uiStatus: DevUiStatus) => string;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import type { Box, Text, Static } from 'ink';
3
+ type InkComponents = {
4
+ Box: typeof Box;
5
+ Text: typeof Text;
6
+ Static: typeof Static;
7
+ };
8
+ export declare const InkProvider: React.Provider<InkComponents | null>;
9
+ export declare const useInk: () => InkComponents;
10
+ export {};
@@ -0,0 +1,10 @@
1
+ import { type OrchestratorState } from '../../../../cli/utilities/dev/orchestrator/dev-mode-orchestrator-state';
2
+ export type DevUiStateListener = (state: OrchestratorState) => void;
3
+ export declare class DevUiStateManager {
4
+ private orchestratorState;
5
+ private listeners;
6
+ constructor(orchestratorState: OrchestratorState);
7
+ getSnapshot(): OrchestratorState;
8
+ subscribe(listener: DevUiStateListener): () => void;
9
+ notify(): void;
10
+ }
@@ -1,11 +1,11 @@
1
- import { FieldMetadataType } from 'twenty-shared/types';
1
+ import { type FieldMetadataType } from 'twenty-shared/types';
2
2
  export declare const getFieldBaseFile: ({ data, }: {
3
3
  data: {
4
4
  name: string;
5
5
  label: string;
6
6
  type: FieldMetadataType;
7
7
  objectUniversalIdentifier: string;
8
- description?: string;
8
+ description?: string | undefined;
9
9
  };
10
10
  name: string;
11
11
  }) => string;
@@ -1,4 +1,4 @@
1
1
  export declare const getFrontComponentBaseFile: ({ name, universalIdentifier, }: {
2
2
  name: string;
3
- universalIdentifier?: string;
3
+ universalIdentifier?: string | undefined;
4
4
  }) => string;
@@ -1,4 +1,4 @@
1
1
  export declare const getLogicFunctionBaseFile: ({ name, universalIdentifier, }: {
2
2
  name: string;
3
- universalIdentifier?: string;
3
+ universalIdentifier?: string | undefined;
4
4
  }) => string;
@@ -0,0 +1,5 @@
1
+ export declare const getNavigationMenuItemBaseFile: ({ name, universalIdentifier, viewUniversalIdentifier, }: {
2
+ name: string;
3
+ universalIdentifier?: string | undefined;
4
+ viewUniversalIdentifier?: string | undefined;
5
+ }) => string;
@@ -1,4 +1,4 @@
1
- export declare const getObjectBaseFile: ({ data, }: {
1
+ export declare const getObjectBaseFile: ({ data, universalIdentifier, }: {
2
2
  data: {
3
3
  nameSingular: string;
4
4
  namePlural: string;
@@ -6,4 +6,5 @@ export declare const getObjectBaseFile: ({ data, }: {
6
6
  labelPlural: string;
7
7
  };
8
8
  name: string;
9
+ universalIdentifier?: string | undefined;
9
10
  }) => string;
@@ -0,0 +1,3 @@
1
+ export declare const getPageLayoutBaseFile: ({ name }: {
2
+ name: string;
3
+ }) => string;
@@ -1,4 +1,4 @@
1
1
  export declare const getRoleBaseFile: ({ name, universalIdentifier, }: {
2
2
  name: string;
3
- universalIdentifier?: string;
3
+ universalIdentifier?: string | undefined;
4
4
  }) => string;
@@ -0,0 +1,4 @@
1
+ export declare const getSkillBaseFile: ({ name, universalIdentifier, }: {
2
+ name: string;
3
+ universalIdentifier?: string | undefined;
4
+ }) => string;
@@ -0,0 +1,5 @@
1
+ export declare const getViewBaseFile: ({ name, universalIdentifier, objectUniversalIdentifier, }: {
2
+ name: string;
3
+ universalIdentifier?: string | undefined;
4
+ objectUniversalIdentifier?: string | undefined;
5
+ }) => string;
@@ -0,0 +1 @@
1
+ export declare const serializeError: (error: unknown) => string;
@@ -1,4 +1,4 @@
1
- import { ParseError } from 'jsonc-parser';
1
+ import { type ParseError } from 'jsonc-parser';
2
2
  export interface JsoncParseOptions {
3
3
  allowTrailingComma?: boolean;
4
4
  disallowComments?: boolean;
@@ -1 +1 @@
1
- export declare const formatPath: (appPath?: string) => string | undefined;
1
+ export declare const formatPath: (appPath?: string | undefined) => string | undefined;
@@ -1,4 +1,4 @@
1
- import { FileFolder } from 'twenty-shared/types';
1
+ import { type FileFolder } from 'twenty-shared/types';
2
2
  export declare class FileUploader {
3
3
  private apiService;
4
4
  private applicationUniversalIdentifier;
@@ -7,8 +7,8 @@ export declare class FileUploader {
7
7
  applicationUniversalIdentifier: string;
8
8
  appPath: string;
9
9
  });
10
- uploadFile({ builtPath, fileFolder, }: {
10
+ uploadFile({ builtPath, fileFolder }: {
11
11
  builtPath: string;
12
12
  fileFolder: FileFolder;
13
- }): Promise<import('../api/api-response-type').ApiResponse<boolean>>;
13
+ }): Promise<import("../api/api-response-type").ApiResponse<boolean>>;
14
14
  }
@@ -1,4 +1,4 @@
1
- import { Diagnostic } from 'typescript';
1
+ import { type Diagnostic } from 'typescript';
2
2
  export declare const formatAndWarnTsDiagnostics: ({ diagnostics, }: {
3
3
  diagnostics: Diagnostic[];
4
4
  }) => void;
@@ -1,4 +1,4 @@
1
- import { Diagnostic, Program } from 'typescript';
1
+ import { type Diagnostic, type Program } from 'typescript';
2
2
  export declare const getTsProgramAndDiagnostics: ({ appPath, }: {
3
3
  appPath: string;
4
4
  }) => Promise<{