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.
- package/README.md +29 -10
- package/dist/{AllIcons-CGPKtPQS-C-ZFgy8B.mjs → AllIcons-CGPKtPQS-CBzLmrUd.mjs} +6666 -6695
- package/dist/{AllIcons-CGPKtPQS-sO2O4z-k.js → AllIcons-CGPKtPQS-CoHKEEHb.js} +3790 -3810
- package/dist/HtmlTagToRemoteComponent-DBOkvIRB.mjs +13283 -0
- package/dist/HtmlTagToRemoteComponent-DzQ2I9Lz.js +29 -0
- package/dist/cli/commands/app/app-dev.d.ts +0 -16
- package/dist/cli/commands/app/app-typecheck.d.ts +6 -0
- package/dist/cli/commands/app/app-uninstall.d.ts +2 -2
- package/dist/cli/commands/app-command.d.ts +1 -1
- package/dist/cli/commands/entity/entity-add.d.ts +3 -0
- package/dist/cli/commands/logic-function/logic-function-execute.d.ts +2 -1
- package/dist/cli/commands/logic-function/logic-function-logs.d.ts +1 -1
- package/dist/cli/utilities/api/api-service.d.ts +37 -9
- package/dist/cli/utilities/build/common/esbuild-result-processor.d.ts +2 -2
- package/dist/cli/utilities/build/common/esbuild-watcher.d.ts +2 -2
- package/dist/cli/utilities/build/common/file-upload-watcher.d.ts +1 -1
- package/dist/cli/utilities/build/common/front-component-build/jsx-runtime-remote-wrapper-plugin.d.ts +6 -0
- package/dist/cli/utilities/build/common/front-component-build/jsx-transform-to-remote-dom-worker-format-plugin.d.ts +0 -1
- package/dist/cli/utilities/build/common/front-component-build/preact-alias-plugin.d.ts +2 -0
- package/dist/cli/utilities/build/common/front-component-build/utils/get-front-component-build-plugins.d.ts +5 -1
- package/dist/cli/utilities/build/common/restartable-watcher-interface.d.ts +2 -2
- package/dist/cli/utilities/build/common/tsc-watcher.d.ts +18 -0
- package/dist/cli/utilities/build/common/typecheck-plugin.d.ts +10 -0
- package/dist/cli/utilities/build/manifest/manifest-build.d.ts +2 -2
- package/dist/cli/utilities/build/manifest/manifest-extract-config-from-file.d.ts +1 -1
- package/dist/cli/utilities/build/manifest/manifest-extract-config.d.ts +10 -2
- package/dist/cli/utilities/build/manifest/manifest-reader.d.ts +2 -0
- package/dist/cli/utilities/build/manifest/manifest-update-checksums.d.ts +2 -2
- package/dist/cli/utilities/build/manifest/manifest-validate.d.ts +1 -1
- package/dist/cli/utilities/build/manifest/manifest-writer.d.ts +1 -1
- package/dist/cli/utilities/build/manifest/utils/generate-default-field-universal-identifier.d.ts +5 -0
- package/dist/cli/utilities/build/manifest/utils/get-default-fields-in-object-fields.d.ts +6 -0
- package/dist/cli/utilities/build/manifest/utils/get-default-object-fields.d.ts +3 -0
- package/dist/cli/utilities/build/manifest/utils/get-default-relation-object-fields.d.ts +6 -0
- package/dist/cli/utilities/client/client-service.d.ts +5 -3
- package/dist/cli/utilities/config/config-service.d.ts +2 -0
- package/dist/cli/utilities/dev/orchestrator/dev-mode-orchestrator-state.d.ts +75 -0
- package/dist/cli/utilities/dev/orchestrator/dev-mode-orchestrator.d.ts +29 -0
- package/dist/cli/utilities/dev/orchestrator/steps/build-manifest-orchestrator-step.d.ts +16 -0
- package/dist/cli/utilities/dev/orchestrator/steps/check-server-orchestrator-step.d.ts +17 -0
- package/dist/cli/utilities/dev/orchestrator/steps/ensure-valid-tokens-orchestrator-step.d.ts +22 -0
- package/dist/cli/utilities/dev/orchestrator/steps/generate-api-client-orchestrator-step.d.ts +18 -0
- package/dist/cli/utilities/dev/orchestrator/steps/resolve-application-orchestrator-step.d.ts +20 -0
- package/dist/cli/utilities/dev/orchestrator/steps/start-watchers-orchestrator-step.d.ts +43 -0
- package/dist/cli/utilities/dev/orchestrator/steps/sync-application-orchestrator-step.d.ts +22 -0
- package/dist/cli/utilities/dev/orchestrator/steps/upload-files-orchestrator-step.d.ts +25 -0
- package/dist/cli/utilities/dev/ui/components/dev-ui-application-panel.d.ts +12 -0
- package/dist/cli/utilities/dev/ui/components/dev-ui-entity-section.d.ts +16 -0
- package/dist/cli/utilities/dev/ui/components/dev-ui-event-log.d.ts +5 -0
- package/dist/cli/utilities/dev/{dev-ui.d.ts → ui/components/dev-ui.d.ts} +1 -1
- package/dist/cli/utilities/dev/ui/dev-ui-constants.d.ts +27 -0
- package/dist/cli/utilities/dev/ui/dev-ui-hooks.d.ts +3 -0
- package/dist/cli/utilities/dev/ui/dev-ui-ink-context.d.ts +10 -0
- package/dist/cli/utilities/dev/ui/dev-ui-state-manager.d.ts +10 -0
- package/dist/cli/utilities/entity/entity-field-template.d.ts +2 -2
- package/dist/cli/utilities/entity/entity-front-component-template.d.ts +1 -1
- package/dist/cli/utilities/entity/entity-logic-function-template.d.ts +1 -1
- package/dist/cli/utilities/entity/entity-navigation-menu-item-template.d.ts +5 -0
- package/dist/cli/utilities/entity/entity-object-template.d.ts +2 -1
- package/dist/cli/utilities/entity/entity-page-layout-template.d.ts +3 -0
- package/dist/cli/utilities/entity/entity-role-template.d.ts +1 -1
- package/dist/cli/utilities/entity/entity-skill-template.d.ts +4 -0
- package/dist/cli/utilities/entity/entity-view-template.d.ts +5 -0
- package/dist/cli/utilities/error/serialize-error.d.ts +1 -0
- package/dist/cli/utilities/file/file-jsonc.d.ts +1 -1
- package/dist/cli/utilities/file/file-path.d.ts +1 -1
- package/dist/cli/utilities/file/file-uploader.d.ts +3 -3
- package/dist/cli/utilities/typescript/typescript-diagnostics.d.ts +1 -1
- package/dist/cli/utilities/typescript/typescript-program.d.ts +1 -1
- package/dist/cli.cjs +356 -85
- package/dist/cli.mjs +5260 -4313
- package/dist/front-component-renderer/host/components/FrontComponentRenderer.d.ts +14 -0
- package/dist/front-component-renderer/host/components/RemoteStyleRenderer.d.ts +6 -0
- package/dist/front-component-renderer/host/utils/createHtmlHostWrapper.d.ts +8 -0
- package/dist/front-component-renderer/index.cjs +25 -0
- package/dist/{front-component → front-component-renderer}/index.d.ts +5 -5
- package/dist/front-component-renderer/index.mjs +11744 -0
- package/dist/front-component-renderer/polyfills/MockCSSStyleSheet.d.ts +17 -0
- package/dist/front-component-renderer/polyfills/installStyleBridge.d.ts +2 -0
- package/dist/front-component-renderer/remote/components/FrontComponentHostCommunicationApiEffect.d.ts +8 -0
- package/dist/front-component-renderer/remote/components/FrontComponentUpdateContextEffect.d.ts +11 -0
- package/dist/{front-component → front-component-renderer}/remote/components/FrontComponentWorkerEffect.d.ts +5 -4
- package/dist/front-component-renderer/remote/generated/remote-components.d.ts +44 -0
- package/dist/front-component-renderer/remote/generated/remote-elements.d.ts +193 -0
- package/dist/front-component-renderer/remote/utils/installStylePropertyOnRemoteElements.d.ts +1 -0
- package/dist/front-component-renderer/remote/utils/patchRemoteElementSetAttribute.d.ts +1 -0
- package/dist/front-component-renderer/remote/worker/remote-worker.d.ts +3 -0
- package/dist/front-component-renderer/remote/worker/utils/setWorkerEnv.d.ts +1 -0
- package/dist/{front-component → front-component-renderer}/types/FrontComponentExecutionContext.d.ts +1 -0
- package/dist/front-component-renderer/types/FrontComponentHostCommunicationApi.d.ts +8 -0
- package/dist/{front-component → front-component-renderer}/types/HostToWorkerRenderContext.d.ts +2 -1
- package/dist/front-component-renderer/types/PropertySchema.d.ts +4 -0
- package/dist/{front-component → front-component-renderer}/types/WorkerExports.d.ts +3 -3
- package/dist/get-function-input-schema-BZ7_XyUh-By3UDh4s.mjs +62 -0
- package/dist/get-function-input-schema-BZ7_XyUh-GxSybvDe.js +1 -0
- package/dist/index-CicdakVv.js +2430 -0
- package/dist/index-DeMzdViF.mjs +33940 -0
- package/dist/index.cjs +2 -5
- package/dist/index.mjs +408 -2493
- package/dist/sdk/action/Action.d.ts +4 -0
- package/dist/sdk/action/Action.js +33 -0
- package/dist/sdk/action/Action.js.map +1 -0
- package/dist/sdk/action/ActionLink.d.ts +10 -0
- package/dist/sdk/action/ActionLink.js +39 -0
- package/dist/sdk/action/ActionLink.js.map +1 -0
- package/dist/sdk/action/ActionOpenSidePanelPage.d.ts +9 -0
- package/dist/sdk/action/ActionOpenSidePanelPage.js +54 -0
- package/dist/sdk/action/ActionOpenSidePanelPage.js.map +1 -0
- package/dist/sdk/action/index.d.ts +6 -0
- package/dist/sdk/application/application-config.d.ts +2 -2
- package/dist/sdk/application/define-application.d.ts +2 -2
- package/dist/sdk/application/define-application.js +12 -0
- package/dist/sdk/application/define-application.js.map +1 -0
- package/dist/sdk/common/types/define-entity.type.d.ts +9 -6
- package/dist/sdk/common/utils/create-validation-result.d.ts +1 -1
- package/dist/sdk/common/utils/create-validation-result.js +12 -0
- package/dist/sdk/common/utils/create-validation-result.js.map +1 -0
- package/dist/sdk/define-front-component.d.ts +2 -2
- package/dist/sdk/define-front-component.js +20 -0
- package/dist/sdk/define-front-component.js.map +1 -0
- package/dist/sdk/fields/define-field.d.ts +2 -2
- package/dist/sdk/fields/define-field.js +15 -0
- package/dist/sdk/fields/define-field.js.map +1 -0
- package/dist/sdk/fields/validate-fields.d.ts +1 -1
- package/dist/sdk/fields/validate-fields.js +16 -0
- package/dist/sdk/fields/validate-fields.js.map +1 -0
- package/dist/{HtmlTagToRemoteComponent-DRdIf3GJ.mjs → sdk/front-component-api/constants/AllowedHtmlElements.js} +4 -14
- package/dist/sdk/front-component-api/constants/AllowedHtmlElements.js.map +1 -0
- package/dist/sdk/front-component-api/constants/CommonHtmlEvents.js +26 -0
- package/dist/sdk/front-component-api/constants/CommonHtmlEvents.js.map +1 -0
- package/dist/sdk/front-component-api/constants/EventToReact.js +26 -0
- package/dist/sdk/front-component-api/constants/EventToReact.js.map +1 -0
- package/dist/sdk/front-component-api/constants/HtmlCommonProperties.d.ts +2 -0
- package/dist/sdk/front-component-api/constants/HtmlCommonProperties.js +15 -0
- package/dist/sdk/front-component-api/constants/HtmlCommonProperties.js.map +1 -0
- package/dist/sdk/front-component-api/constants/HtmlTagToRemoteComponent.d.ts +2 -0
- package/dist/sdk/front-component-api/constants/HtmlTagToRemoteComponent.js +24 -0
- package/dist/sdk/front-component-api/constants/HtmlTagToRemoteComponent.js.map +1 -0
- package/dist/sdk/front-component-api/context/frontComponentContext.d.ts +2 -2
- package/dist/sdk/front-component-api/context/frontComponentContext.js +11 -0
- package/dist/sdk/front-component-api/context/frontComponentContext.js.map +1 -0
- package/dist/sdk/front-component-api/functions/closeSidePanel.d.ts +2 -0
- package/dist/sdk/front-component-api/functions/closeSidePanel.js +12 -0
- package/dist/sdk/front-component-api/functions/closeSidePanel.js.map +1 -0
- package/dist/sdk/front-component-api/functions/enqueueSnackbar.d.ts +2 -0
- package/dist/sdk/front-component-api/functions/enqueueSnackbar.js +12 -0
- package/dist/sdk/front-component-api/functions/enqueueSnackbar.js.map +1 -0
- package/dist/sdk/front-component-api/functions/navigate.d.ts +1 -4
- package/dist/sdk/front-component-api/functions/navigate.js +12 -0
- package/dist/sdk/front-component-api/functions/navigate.js.map +1 -0
- package/dist/sdk/front-component-api/functions/openSidePanelPage.d.ts +2 -0
- package/dist/sdk/front-component-api/functions/openSidePanelPage.js +12 -0
- package/dist/sdk/front-component-api/functions/openSidePanelPage.js.map +1 -0
- package/dist/sdk/front-component-api/functions/unmountFrontComponent.d.ts +2 -0
- package/dist/sdk/front-component-api/functions/unmountFrontComponent.js +12 -0
- package/dist/sdk/front-component-api/functions/unmountFrontComponent.js.map +1 -0
- package/dist/sdk/front-component-api/globals/frontComponentHostCommunicationApi.d.ts +23 -0
- package/dist/sdk/front-component-api/globals/frontComponentHostCommunicationApi.js +6 -0
- package/dist/sdk/front-component-api/globals/frontComponentHostCommunicationApi.js.map +1 -0
- package/dist/sdk/front-component-api/hooks/useFrontComponentExecutionContext.d.ts +2 -2
- package/dist/sdk/front-component-api/hooks/useFrontComponentExecutionContext.js +18 -0
- package/dist/sdk/front-component-api/hooks/useFrontComponentExecutionContext.js.map +1 -0
- package/dist/sdk/front-component-api/hooks/useFrontComponentId.d.ts +1 -0
- package/dist/sdk/front-component-api/hooks/useFrontComponentId.js +6 -0
- package/dist/sdk/front-component-api/hooks/useFrontComponentId.js.map +1 -0
- package/dist/sdk/front-component-api/hooks/useUserId.d.ts +1 -1
- package/dist/sdk/front-component-api/hooks/useUserId.js +6 -0
- package/dist/sdk/front-component-api/hooks/useUserId.js.map +1 -0
- package/dist/sdk/front-component-api/index.d.ts +14 -1
- package/dist/sdk/front-component-api/types/FrontComponentExecutionContext.d.ts +1 -0
- package/dist/sdk/front-component-api/utils/getFrontComponentActionErrorDedupeKey.d.ts +1 -0
- package/dist/sdk/front-component-api/utils/getFrontComponentActionErrorDedupeKey.js +5 -0
- package/dist/sdk/front-component-api/utils/getFrontComponentActionErrorDedupeKey.js.map +1 -0
- package/dist/sdk/front-component-config.d.ts +2 -1
- package/dist/sdk/front-component-renderer/polyfills/MockCSSStyleSheet.js +31 -0
- package/dist/sdk/front-component-renderer/polyfills/MockCSSStyleSheet.js.map +1 -0
- package/dist/sdk/front-component-renderer/polyfills/installStyleBridge.js +121 -0
- package/dist/sdk/front-component-renderer/polyfills/installStyleBridge.js.map +1 -0
- package/dist/sdk/front-component-renderer/remote/utils/exposeGlobals.js +8 -0
- package/dist/sdk/front-component-renderer/remote/utils/exposeGlobals.js.map +1 -0
- package/dist/sdk/index.d.ts +26 -13
- package/dist/sdk/index.js +79 -0
- package/dist/sdk/index.js.map +1 -0
- package/dist/sdk/logic-functions/define-logic-function.d.ts +2 -2
- package/dist/sdk/logic-functions/define-logic-function.js +12 -0
- package/dist/sdk/logic-functions/define-logic-function.js.map +1 -0
- package/dist/sdk/logic-functions/logic-function-config.d.ts +4 -2
- package/dist/sdk/navigation-menu-items/define-navigation-menu-item.d.ts +3 -0
- package/dist/sdk/navigation-menu-items/define-navigation-menu-item.js +9 -0
- package/dist/sdk/navigation-menu-items/define-navigation-menu-item.js.map +1 -0
- package/dist/sdk/objects/define-object.d.ts +3 -3
- package/dist/sdk/objects/define-object.js +20 -0
- package/dist/sdk/objects/define-object.js.map +1 -0
- package/dist/sdk/objects/object-config.d.ts +4 -0
- package/dist/sdk/page-layouts/define-page-layout.d.ts +3 -0
- package/dist/sdk/page-layouts/define-page-layout.js +15 -0
- package/dist/sdk/page-layouts/define-page-layout.js.map +1 -0
- package/dist/sdk/page-layouts/page-layout-config.d.ts +2 -0
- package/dist/sdk/roles/define-role.d.ts +2 -2
- package/dist/sdk/roles/define-role.js +15 -0
- package/dist/sdk/roles/define-role.js.map +1 -0
- package/dist/sdk/skills/define-skill.d.ts +3 -0
- package/dist/sdk/skills/define-skill.js +9 -0
- package/dist/sdk/skills/define-skill.js.map +1 -0
- package/dist/sdk/views/define-view.d.ts +3 -0
- package/dist/sdk/views/define-view.js +24 -0
- package/dist/sdk/views/define-view.js.map +1 -0
- package/dist/sdk/views/view-config.d.ts +2 -0
- package/dist/ui/index.cjs +1 -47
- package/dist/ui/index.d.ts +1 -0
- package/dist/ui/index.mjs +692 -2401
- package/package.json +47 -12
- package/dist/HtmlTagToRemoteComponent-B6lQe_K8.js +0 -1
- package/dist/IconWorld-DynX4UYH.mjs +0 -3003
- package/dist/IconWorld-JYjJym3l.js +0 -1876
- package/dist/_commonjsHelpers-DKOUU3wS.js +0 -1
- package/dist/_commonjsHelpers-DaMA6jEr.mjs +0 -8
- package/dist/cli/commands/app/app-generate.d.ts +0 -4
- package/dist/cli/utilities/build/common/front-component-build/react-globals-plugin.d.ts +0 -1
- package/dist/cli/utilities/build/common/front-component-build/twenty-sdk-globals-plugin.d.ts +0 -1
- package/dist/cli/utilities/build/common/front-component-build/twenty-sdk-ui-globals-plugin.d.ts +0 -1
- package/dist/cli/utilities/build/common/front-component-build/twenty-shared-globals-plugin.d.ts +0 -1
- package/dist/cli/utilities/build/common/front-component-build/types/ParsedImportSpecifier.d.ts +0 -4
- package/dist/cli/utilities/build/common/front-component-build/utils/collect-named-imports.d.ts +0 -4
- package/dist/cli/utilities/build/common/front-component-build/utils/create-front-component-build-options.d.ts +0 -13
- package/dist/cli/utilities/build/common/front-component-build/utils/create-globals-plugin.d.ts +0 -15
- package/dist/cli/utilities/build/common/front-component-build/utils/extract-names-from-import-specifier.d.ts +0 -2
- package/dist/cli/utilities/build/common/front-component-build/utils/replace-html-tags-with-remote-components.d.ts +0 -1
- package/dist/cli/utilities/dev/dev-mode-orchestrator.d.ts +0 -42
- package/dist/cli/utilities/dev/dev-ui-state-manager.d.ts +0 -31
- package/dist/cli/utilities/dev/dev-ui-state.d.ts +0 -27
- package/dist/front-component/__stories__/FrontComponentRenderer.stories.d.ts +0 -9
- package/dist/front-component/__stories__/mocks/interactive.front-component.d.ts +0 -7
- package/dist/front-component/__stories__/mocks/lifecycle.front-component.d.ts +0 -7
- package/dist/front-component/__stories__/mocks/static.front-component.d.ts +0 -7
- package/dist/front-component/__stories__/utils/buildMockComponents.d.ts +0 -1
- package/dist/front-component/__stories__/utils/loadBuiltComponent.d.ts +0 -1
- package/dist/front-component/host/components/FrontComponentRenderer.d.ts +0 -13
- package/dist/front-component/host/generated/host-index.d.ts +0 -1
- package/dist/front-component/index.cjs +0 -1
- package/dist/front-component/index.mjs +0 -5736
- package/dist/front-component/remote/components/FrontComponentHostCommunicationApiEffect.d.ts +0 -8
- package/dist/front-component/remote/components/FrontComponentUpdateContextEffect.d.ts +0 -10
- package/dist/front-component/remote/generated/remote-components.d.ts +0 -299
- package/dist/front-component/remote/generated/remote-elements.d.ts +0 -3335
- package/dist/front-component/remote/generated/remote-index.d.ts +0 -2
- package/dist/front-component/remote/mock/mock-front-component.d.ts +0 -3
- package/dist/front-component/remote/worker/remote-worker.d.ts +0 -0
- package/dist/front-component/types/FrontComponentHostCommunicationApi.d.ts +0 -4
- package/dist/front-component/types/PropertySchema.d.ts +0 -4
- package/dist/index.d.ts +0 -1
- package/dist/isValidCountryCode-ujmwsK7z-B8kSH7O8.mjs +0 -10248
- package/dist/isValidCountryCode-ujmwsK7z-DwSvvT1u.js +0 -25
- package/dist/navigation-_M4-TT0O.js +0 -503
- package/dist/navigation-udgao_jA.mjs +0 -30041
- package/dist/sdk/front-component-common/HtmlCommonProperties.d.ts +0 -2
- package/dist/sdk/front-component-common/HtmlTagToRemoteComponent.d.ts +0 -1
- package/dist/sdk/front-component-common/index.d.ts +0 -7
- /package/dist/{front-component → front-component-renderer}/host/generated/host-component-registry.d.ts +0 -0
- /package/dist/{front-component → front-component-renderer}/remote/components/FrontComponentErrorEffect.d.ts +0 -0
- /package/dist/{front-component → front-component-renderer}/remote/utils/exposeGlobals.d.ts +0 -0
- /package/dist/{front-component/remote/worker → front-component-renderer/remote/worker/utils}/createRemoteWorker.d.ts +0 -0
- /package/dist/sdk/{front-component-common → front-component-api/constants}/AllowedHtmlElements.d.ts +0 -0
- /package/dist/sdk/{front-component-common → front-component-api/constants}/CommonHtmlEvents.d.ts +0 -0
- /package/dist/sdk/{front-component-common → front-component-api/constants}/EventToReact.d.ts +0 -0
- /package/dist/sdk/{front-component-common → front-component-api/constants}/SerializedEventData.d.ts +0 -0
|
@@ -2,25 +2,9 @@ export type AppDevOptions = {
|
|
|
2
2
|
appPath?: string;
|
|
3
3
|
};
|
|
4
4
|
export declare class AppDevCommand {
|
|
5
|
-
private appPath;
|
|
6
5
|
private orchestrator;
|
|
7
|
-
private manifestWatcher;
|
|
8
|
-
private logicFunctionsWatcher;
|
|
9
|
-
private frontComponentsWatcher;
|
|
10
|
-
private assetWatcher;
|
|
11
|
-
private dependencyWatcher;
|
|
12
|
-
private watchersStarted;
|
|
13
|
-
private uiStateManager;
|
|
14
6
|
private unmountUI;
|
|
15
7
|
close(): Promise<void>;
|
|
16
8
|
execute(options: AppDevOptions): Promise<void>;
|
|
17
|
-
private cleanOutputDir;
|
|
18
|
-
private startManifestWatcher;
|
|
19
|
-
private handleWatcherRestarts;
|
|
20
|
-
private startFileWatchers;
|
|
21
|
-
private startLogicFunctionsWatcher;
|
|
22
|
-
private startFrontComponentsWatcher;
|
|
23
|
-
private startAssetWatcher;
|
|
24
|
-
private startDependencyWatcher;
|
|
25
9
|
private setupGracefulShutdown;
|
|
26
10
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ApiResponse } from '
|
|
1
|
+
import { type ApiResponse } from '../../../cli/utilities/api/api-response-type';
|
|
2
2
|
export declare class AppUninstallCommand {
|
|
3
3
|
private apiService;
|
|
4
|
-
execute({ appPath, askForConfirmation
|
|
4
|
+
execute({ appPath, askForConfirmation }: {
|
|
5
5
|
appPath?: string;
|
|
6
6
|
askForConfirmation: boolean;
|
|
7
7
|
}): Promise<ApiResponse<any>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Command } from 'commander';
|
|
1
|
+
import type { Command } from 'commander';
|
|
2
2
|
export declare const registerCommands: (program: Command) => void;
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { SyncableEntity } from 'twenty-shared/application';
|
|
2
2
|
export declare class EntityAddCommand {
|
|
3
|
+
private lastObjectUniversalIdentifier;
|
|
3
4
|
execute(entityType?: SyncableEntity, path?: string): Promise<void>;
|
|
4
5
|
private getEntityData;
|
|
6
|
+
private promptAndCreateViewAndNavigationMenuItem;
|
|
5
7
|
private getEntity;
|
|
6
8
|
private handleFileExist;
|
|
7
9
|
private getEntityName;
|
|
8
10
|
private getFieldData;
|
|
9
11
|
private getObjectData;
|
|
12
|
+
private getViewData;
|
|
10
13
|
getFolderName(entity: SyncableEntity): string;
|
|
11
14
|
getFileName(name: string, entity: SyncableEntity): string;
|
|
12
15
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export declare class LogicFunctionExecuteCommand {
|
|
2
2
|
private apiService;
|
|
3
|
-
execute({ appPath, functionUniversalIdentifier, functionName, payload
|
|
3
|
+
execute({ appPath, postInstall, functionUniversalIdentifier, functionName, payload }: {
|
|
4
4
|
appPath?: string;
|
|
5
|
+
postInstall?: boolean;
|
|
5
6
|
functionUniversalIdentifier?: string;
|
|
6
7
|
functionName?: string;
|
|
7
8
|
payload?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare class LogicFunctionLogsCommand {
|
|
2
2
|
private apiService;
|
|
3
|
-
execute({ appPath, functionUniversalIdentifier, functionName
|
|
3
|
+
execute({ appPath, functionUniversalIdentifier, functionName }: {
|
|
4
4
|
appPath?: string;
|
|
5
5
|
functionUniversalIdentifier?: string;
|
|
6
6
|
functionName?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { FileFolder } from 'twenty-shared/types';
|
|
3
|
-
import { ApiResponse } from '
|
|
1
|
+
import { type Manifest } from 'twenty-shared/application';
|
|
2
|
+
import { type FileFolder } from 'twenty-shared/types';
|
|
3
|
+
import { type ApiResponse } from '../../../cli/utilities/api/api-response-type';
|
|
4
4
|
export declare class ApiService {
|
|
5
5
|
private client;
|
|
6
6
|
private configService;
|
|
@@ -11,18 +11,46 @@ export declare class ApiService {
|
|
|
11
11
|
authValid: boolean;
|
|
12
12
|
serverUp: boolean;
|
|
13
13
|
}>;
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
findOneApplication(universalIdentifier: string): Promise<ApiResponse<{
|
|
15
|
+
id: string;
|
|
16
|
+
universalIdentifier: string;
|
|
17
|
+
} | null>>;
|
|
18
|
+
generateApplicationToken(applicationId: string): Promise<ApiResponse<{
|
|
19
|
+
applicationAccessToken: {
|
|
20
|
+
token: string;
|
|
21
|
+
expiresAt: string;
|
|
22
|
+
};
|
|
23
|
+
applicationRefreshToken: {
|
|
24
|
+
token: string;
|
|
25
|
+
expiresAt: string;
|
|
26
|
+
};
|
|
27
|
+
}>>;
|
|
28
|
+
renewApplicationToken(applicationRefreshToken: string): Promise<ApiResponse<{
|
|
29
|
+
applicationAccessToken: {
|
|
30
|
+
token: string;
|
|
31
|
+
expiresAt: string;
|
|
32
|
+
};
|
|
33
|
+
applicationRefreshToken: {
|
|
34
|
+
token: string;
|
|
35
|
+
expiresAt: string;
|
|
36
|
+
};
|
|
37
|
+
}>>;
|
|
38
|
+
createApplication(manifest: Manifest): Promise<ApiResponse<{
|
|
39
|
+
id: string;
|
|
40
|
+
universalIdentifier: string;
|
|
41
|
+
}>>;
|
|
16
42
|
syncApplication(manifest: Manifest): Promise<ApiResponse>;
|
|
17
43
|
uninstallApplication(universalIdentifier: string): Promise<ApiResponse>;
|
|
18
|
-
getSchema(
|
|
44
|
+
getSchema(options?: {
|
|
45
|
+
authToken?: string;
|
|
46
|
+
}): Promise<ApiResponse<string>>;
|
|
19
47
|
findLogicFunctions(): Promise<ApiResponse<Array<{
|
|
20
48
|
id: string;
|
|
21
49
|
name: string;
|
|
22
50
|
universalIdentifier: string;
|
|
23
51
|
applicationId: string | null;
|
|
24
52
|
}>>>;
|
|
25
|
-
executeLogicFunction({ functionId, payload
|
|
53
|
+
executeLogicFunction({ functionId, payload }: {
|
|
26
54
|
functionId: string;
|
|
27
55
|
payload: Record<string, unknown>;
|
|
28
56
|
}): Promise<ApiResponse<{
|
|
@@ -36,12 +64,12 @@ export declare class ApiService {
|
|
|
36
64
|
stackTrace: string;
|
|
37
65
|
};
|
|
38
66
|
}>>;
|
|
39
|
-
subscribeToLogs({ applicationUniversalIdentifier, functionUniversalIdentifier, functionName
|
|
67
|
+
subscribeToLogs({ applicationUniversalIdentifier, functionUniversalIdentifier, functionName }: {
|
|
40
68
|
applicationUniversalIdentifier: string;
|
|
41
69
|
functionUniversalIdentifier?: string;
|
|
42
70
|
functionName?: string;
|
|
43
71
|
}): Promise<void>;
|
|
44
|
-
uploadFile({ filePath, builtHandlerPath, fileFolder, applicationUniversalIdentifier
|
|
72
|
+
uploadFile({ filePath, builtHandlerPath, fileFolder, applicationUniversalIdentifier }: {
|
|
45
73
|
filePath: string;
|
|
46
74
|
builtHandlerPath: string;
|
|
47
75
|
fileFolder: FileFolder;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { OnFileBuiltCallback } from './restartable-watcher-interface';
|
|
2
|
-
import { FileFolder } from 'twenty-shared/types';
|
|
3
1
|
import type * as esbuild from 'esbuild';
|
|
2
|
+
import { type OnFileBuiltCallback } from '../../../../cli/utilities/build/common/restartable-watcher-interface';
|
|
3
|
+
import { type FileFolder } from 'twenty-shared/types';
|
|
4
4
|
export type ProcessEsbuildResultParams = {
|
|
5
5
|
result: esbuild.BuildResult;
|
|
6
6
|
appPath: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RestartableWatcher, RestartableWatcherOptions } from '
|
|
2
|
-
import { FileFolder } from 'twenty-shared/types';
|
|
1
|
+
import { type RestartableWatcher, type RestartableWatcherOptions } from '../../../../cli/utilities/build/common/restartable-watcher-interface';
|
|
3
2
|
import * as esbuild from 'esbuild';
|
|
3
|
+
import { FileFolder } from 'twenty-shared/types';
|
|
4
4
|
export declare const LOGIC_FUNCTION_EXTERNAL_MODULES: string[];
|
|
5
5
|
export type EsbuildWatcherConfig = {
|
|
6
6
|
externalModules: string[];
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import type * as esbuild from 'esbuild';
|
|
2
|
-
|
|
2
|
+
type GetFrontComponentBuildPluginsOptions = {
|
|
3
|
+
usePreact?: boolean;
|
|
4
|
+
};
|
|
5
|
+
export declare const getFrontComponentBuildPlugins: (options?: GetFrontComponentBuildPluginsOptions | undefined) => esbuild.Plugin[];
|
|
6
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FileFolder } from 'twenty-shared/types';
|
|
2
|
-
import { Location } from 'esbuild';
|
|
1
|
+
import { type FileFolder } from 'twenty-shared/types';
|
|
2
|
+
import { type Location } from 'esbuild';
|
|
3
3
|
export interface RestartableWatcher {
|
|
4
4
|
restart(sourcePaths: string[]): Promise<void>;
|
|
5
5
|
start(): Promise<void>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type TypecheckError } from '../../../../cli/utilities/build/common/typecheck-plugin';
|
|
2
|
+
export type TscWatcherOptions = {
|
|
3
|
+
appPath: string;
|
|
4
|
+
onErrors: (errors: TypecheckError[]) => void;
|
|
5
|
+
};
|
|
6
|
+
export declare class TscWatcher {
|
|
7
|
+
private appPath;
|
|
8
|
+
private onErrors;
|
|
9
|
+
private process;
|
|
10
|
+
private pendingErrors;
|
|
11
|
+
private buffer;
|
|
12
|
+
private hasErrors;
|
|
13
|
+
constructor(options: TscWatcherOptions);
|
|
14
|
+
start(): Promise<void>;
|
|
15
|
+
close(): void;
|
|
16
|
+
private handleOutput;
|
|
17
|
+
private processLine;
|
|
18
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as esbuild from 'esbuild';
|
|
2
|
+
export type TypecheckError = {
|
|
3
|
+
text: string;
|
|
4
|
+
file: string;
|
|
5
|
+
line: number;
|
|
6
|
+
column: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const parseTscOutputLine: (line: string) => TypecheckError | null;
|
|
9
|
+
export declare const runTypecheck: (appPath: string) => Promise<TypecheckError[]>;
|
|
10
|
+
export declare const createTypecheckPlugin: (appPath: string) => esbuild.Plugin;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EntityFilePaths } from '
|
|
2
|
-
import { Manifest } from 'twenty-shared/application';
|
|
1
|
+
import { type EntityFilePaths } from '../../../../cli/utilities/build/manifest/manifest-extract-config';
|
|
2
|
+
import { type Manifest } from 'twenty-shared/application';
|
|
3
3
|
export declare const buildManifest: (appPath: string) => Promise<{
|
|
4
4
|
manifest: Manifest | null;
|
|
5
5
|
filePaths: EntityFilePaths;
|
|
@@ -4,7 +4,11 @@ export declare enum TargetFunction {
|
|
|
4
4
|
DefineLogicFunction = "defineLogicFunction",
|
|
5
5
|
DefineObject = "defineObject",
|
|
6
6
|
DefineRole = "defineRole",
|
|
7
|
-
|
|
7
|
+
DefineSkill = "defineSkill",
|
|
8
|
+
DefineFrontComponent = "defineFrontComponent",
|
|
9
|
+
DefineView = "defineView",
|
|
10
|
+
DefineNavigationMenuItem = "defineNavigationMenuItem",
|
|
11
|
+
DefinePageLayout = "definePageLayout"
|
|
8
12
|
}
|
|
9
13
|
export declare enum ManifestEntityKey {
|
|
10
14
|
Application = "application",
|
|
@@ -12,8 +16,12 @@ export declare enum ManifestEntityKey {
|
|
|
12
16
|
LogicFunctions = "logicFunctions",
|
|
13
17
|
Objects = "objects",
|
|
14
18
|
Roles = "roles",
|
|
19
|
+
Skills = "skills",
|
|
15
20
|
FrontComponents = "frontComponents",
|
|
16
|
-
PublicAssets = "publicAssets"
|
|
21
|
+
PublicAssets = "publicAssets",
|
|
22
|
+
Views = "views",
|
|
23
|
+
NavigationMenuItems = "navigationMenuItems",
|
|
24
|
+
PageLayouts = "pageLayouts"
|
|
17
25
|
}
|
|
18
26
|
export type EntityFilePaths = Record<ManifestEntityKey, string[]>;
|
|
19
27
|
export declare const TARGET_FUNCTION_TO_ENTITY_KEY_MAPPING: Record<TargetFunction, ManifestEntityKey>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Manifest } from 'twenty-shared/application';
|
|
1
|
+
import { type Manifest } from 'twenty-shared/application';
|
|
2
2
|
import { FileFolder } from 'twenty-shared/types';
|
|
3
|
-
import { EntityFilePaths } from '
|
|
3
|
+
import type { EntityFilePaths } from '../../../../cli/utilities/build/manifest/manifest-extract-config';
|
|
4
4
|
export type ManifestBuildResult = {
|
|
5
5
|
manifest: Manifest | null;
|
|
6
6
|
filePaths: EntityFilePaths;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Manifest } from 'twenty-shared/application';
|
|
1
|
+
import { type Manifest } from 'twenty-shared/application';
|
|
2
2
|
export declare const writeManifestToOutput: (appPath: string, manifest: Manifest) => Promise<string>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ObjectConfig } from '../../../../../sdk/objects/object-config';
|
|
2
|
+
import { type FieldManifest, type ObjectFieldManifest } from 'twenty-shared/application';
|
|
3
|
+
export declare const getDefaultFieldsInObjectFields: (objectConfig: ObjectConfig) => {
|
|
4
|
+
objectFields: ObjectFieldManifest[];
|
|
5
|
+
fields: FieldManifest[];
|
|
6
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ObjectConfig } from '../../../../../sdk/objects/object-config';
|
|
2
|
+
import { type FieldManifest, type ObjectFieldManifest } from 'twenty-shared/application';
|
|
3
|
+
export declare const getDefaultRelationObjectFields: (objectConfig: ObjectConfig) => {
|
|
4
|
+
objectFields: ObjectFieldManifest[];
|
|
5
|
+
fields: FieldManifest[];
|
|
6
|
+
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
export declare const GENERATED_FOLDER_NAME = "generated";
|
|
2
1
|
export declare class ClientService {
|
|
3
|
-
private configService;
|
|
4
2
|
private apiService;
|
|
5
3
|
constructor();
|
|
6
|
-
generate(appPath
|
|
4
|
+
generate({ appPath, authToken }: {
|
|
5
|
+
appPath: string;
|
|
6
|
+
authToken?: string;
|
|
7
|
+
}): Promise<void>;
|
|
8
|
+
private resolveGeneratedPath;
|
|
7
9
|
private injectTwentyClient;
|
|
8
10
|
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { type EntityFilePaths } from '../../../../cli/utilities/build/manifest/manifest-extract-config';
|
|
2
|
+
import { type BuildManifestOrchestratorStepOutput } from '../../../../cli/utilities/dev/orchestrator/steps/build-manifest-orchestrator-step';
|
|
3
|
+
import { type CheckServerOrchestratorStepOutput } from '../../../../cli/utilities/dev/orchestrator/steps/check-server-orchestrator-step';
|
|
4
|
+
import { type ResolveApplicationOrchestratorStepOutput } from '../../../../cli/utilities/dev/orchestrator/steps/resolve-application-orchestrator-step';
|
|
5
|
+
import { type StartWatchersOrchestratorStepOutput } from '../../../../cli/utilities/dev/orchestrator/steps/start-watchers-orchestrator-step';
|
|
6
|
+
import { type SyncApplicationOrchestratorStepOutput } from '../../../../cli/utilities/dev/orchestrator/steps/sync-application-orchestrator-step';
|
|
7
|
+
import { type UploadFilesOrchestratorStepOutput } from '../../../../cli/utilities/dev/orchestrator/steps/upload-files-orchestrator-step';
|
|
8
|
+
import { type Manifest, SyncableEntity } from 'twenty-shared/application';
|
|
9
|
+
import { type FileFolder } from 'twenty-shared/types';
|
|
10
|
+
export type OrchestratorStateStepEvent = {
|
|
11
|
+
message: string;
|
|
12
|
+
status: 'info' | 'success' | 'error' | 'warning';
|
|
13
|
+
};
|
|
14
|
+
export type OrchestratorStateEvent = OrchestratorStateStepEvent & {
|
|
15
|
+
id: number;
|
|
16
|
+
timestamp: Date;
|
|
17
|
+
};
|
|
18
|
+
export type OrchestratorStateSyncStatus = 'idle' | 'building' | 'syncing' | 'synced' | 'error';
|
|
19
|
+
export type OrchestratorStateStepStatus = 'idle' | 'in_progress' | 'done' | 'error';
|
|
20
|
+
export type OrchestratorStepState<TOutput> = {
|
|
21
|
+
output: TOutput;
|
|
22
|
+
status: OrchestratorStateStepStatus;
|
|
23
|
+
};
|
|
24
|
+
export type OrchestratorStateFileStatus = 'pending' | 'building' | 'uploading' | 'success' | 'error';
|
|
25
|
+
export type OrchestratorStateEntityInfo = {
|
|
26
|
+
name: string;
|
|
27
|
+
path: string;
|
|
28
|
+
type?: SyncableEntity;
|
|
29
|
+
status: OrchestratorStateFileStatus;
|
|
30
|
+
};
|
|
31
|
+
export type OrchestratorStateBuiltFileInfo = {
|
|
32
|
+
checksum: string;
|
|
33
|
+
builtPath: string;
|
|
34
|
+
sourcePath: string;
|
|
35
|
+
fileFolder: FileFolder;
|
|
36
|
+
};
|
|
37
|
+
export type OrchestratorStatePipeline = {
|
|
38
|
+
status: OrchestratorStateSyncStatus;
|
|
39
|
+
isSyncing: boolean;
|
|
40
|
+
error: string | null;
|
|
41
|
+
appName: string | null;
|
|
42
|
+
};
|
|
43
|
+
export declare class OrchestratorState {
|
|
44
|
+
appPath: string;
|
|
45
|
+
frontendUrl?: string;
|
|
46
|
+
steps: {
|
|
47
|
+
checkServer: OrchestratorStepState<CheckServerOrchestratorStepOutput>;
|
|
48
|
+
ensureValidTokens: OrchestratorStepState<Record<string, never>>;
|
|
49
|
+
resolveApplication: OrchestratorStepState<ResolveApplicationOrchestratorStepOutput>;
|
|
50
|
+
buildManifest: OrchestratorStepState<BuildManifestOrchestratorStepOutput>;
|
|
51
|
+
uploadFiles: OrchestratorStepState<UploadFilesOrchestratorStepOutput>;
|
|
52
|
+
generateApiClient: OrchestratorStepState<Record<string, never>>;
|
|
53
|
+
syncApplication: OrchestratorStepState<SyncApplicationOrchestratorStepOutput>;
|
|
54
|
+
startWatchers: OrchestratorStepState<StartWatchersOrchestratorStepOutput>;
|
|
55
|
+
};
|
|
56
|
+
previousObjectsFieldsFingerprint: string | null;
|
|
57
|
+
pipeline: OrchestratorStatePipeline;
|
|
58
|
+
entities: Map<string, OrchestratorStateEntityInfo>;
|
|
59
|
+
events: OrchestratorStateEvent[];
|
|
60
|
+
private eventIdCounter;
|
|
61
|
+
onChange?: () => void;
|
|
62
|
+
constructor(options: {
|
|
63
|
+
appPath: string;
|
|
64
|
+
frontendUrl?: string;
|
|
65
|
+
});
|
|
66
|
+
notify(): void;
|
|
67
|
+
updatePipeline(update: Partial<OrchestratorStatePipeline>): void;
|
|
68
|
+
applyStepEvents(stepEvents: OrchestratorStateStepEvent[]): void;
|
|
69
|
+
addEvent(event: OrchestratorStateStepEvent): void;
|
|
70
|
+
updateEntityStatus(filePath: string, status: OrchestratorStateFileStatus): void;
|
|
71
|
+
removeEntity(filePath: string): void;
|
|
72
|
+
updateAllEntitiesStatus(status: OrchestratorStateFileStatus): void;
|
|
73
|
+
updateEntitiesFromManifest(manifestFilePaths: EntityFilePaths): void;
|
|
74
|
+
hasObjectsOrFieldsChanged(manifest: Manifest): boolean;
|
|
75
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type OrchestratorState } from '../../../../cli/utilities/dev/orchestrator/dev-mode-orchestrator-state';
|
|
2
|
+
export type DevModeOrchestratorOptions = {
|
|
3
|
+
state: OrchestratorState;
|
|
4
|
+
debounceMs?: number;
|
|
5
|
+
};
|
|
6
|
+
export declare class DevModeOrchestrator {
|
|
7
|
+
private state;
|
|
8
|
+
private debounceMs;
|
|
9
|
+
private syncTimer;
|
|
10
|
+
private serverCheckInterval;
|
|
11
|
+
private checkServerStep;
|
|
12
|
+
private ensureValidTokensStep;
|
|
13
|
+
private buildManifestStep;
|
|
14
|
+
private resolveApplicationStep;
|
|
15
|
+
private uploadFilesStep;
|
|
16
|
+
private generateApiClientStep;
|
|
17
|
+
private syncApplicationStep;
|
|
18
|
+
private startWatchersStep;
|
|
19
|
+
constructor(options: DevModeOrchestratorOptions);
|
|
20
|
+
start(): Promise<void>;
|
|
21
|
+
close(): Promise<void>;
|
|
22
|
+
getState(): OrchestratorState;
|
|
23
|
+
private handleFileBuilt;
|
|
24
|
+
private checkServerHealth;
|
|
25
|
+
private scheduleSync;
|
|
26
|
+
private performSync;
|
|
27
|
+
private runSyncPipeline;
|
|
28
|
+
private initializePipeline;
|
|
29
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type ManifestBuildResult } from '../../../../../cli/utilities/build/manifest/manifest-update-checksums';
|
|
2
|
+
import { type OrchestratorState } from '../../../../../cli/utilities/dev/orchestrator/dev-mode-orchestrator-state';
|
|
3
|
+
export type BuildManifestOrchestratorStepOutput = {
|
|
4
|
+
result: ManifestBuildResult | null;
|
|
5
|
+
};
|
|
6
|
+
export declare class BuildManifestOrchestratorStep {
|
|
7
|
+
private state;
|
|
8
|
+
private notify;
|
|
9
|
+
constructor({ state, notify }: {
|
|
10
|
+
state: OrchestratorState;
|
|
11
|
+
notify: () => void;
|
|
12
|
+
});
|
|
13
|
+
execute(input: {
|
|
14
|
+
appPath: string;
|
|
15
|
+
}): Promise<ManifestBuildResult | null>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type ApiService } from '../../../../../cli/utilities/api/api-service';
|
|
2
|
+
import { type OrchestratorState } from '../../../../../cli/utilities/dev/orchestrator/dev-mode-orchestrator-state';
|
|
3
|
+
export type CheckServerOrchestratorStepOutput = {
|
|
4
|
+
isReady: boolean;
|
|
5
|
+
errorLogged: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare class CheckServerOrchestratorStep {
|
|
8
|
+
private apiService;
|
|
9
|
+
private state;
|
|
10
|
+
private notify;
|
|
11
|
+
constructor({ apiService, state, notify }: {
|
|
12
|
+
apiService: ApiService;
|
|
13
|
+
state: OrchestratorState;
|
|
14
|
+
notify: () => void;
|
|
15
|
+
});
|
|
16
|
+
execute(): Promise<boolean>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type ApiService } from '../../../../../cli/utilities/api/api-service';
|
|
2
|
+
import { type ConfigService } from '../../../../../cli/utilities/config/config-service';
|
|
3
|
+
import { type OrchestratorState } from '../../../../../cli/utilities/dev/orchestrator/dev-mode-orchestrator-state';
|
|
4
|
+
export declare class EnsureValidTokensOrchestratorStep {
|
|
5
|
+
private apiService;
|
|
6
|
+
private configService;
|
|
7
|
+
private state;
|
|
8
|
+
private notify;
|
|
9
|
+
constructor({ apiService, configService, state, notify }: {
|
|
10
|
+
apiService: ApiService;
|
|
11
|
+
configService: ConfigService;
|
|
12
|
+
state: OrchestratorState;
|
|
13
|
+
notify: () => void;
|
|
14
|
+
});
|
|
15
|
+
execute(input: {
|
|
16
|
+
applicationId: string | null;
|
|
17
|
+
}): Promise<void>;
|
|
18
|
+
exchangeTokens(input: {
|
|
19
|
+
applicationId: string;
|
|
20
|
+
}): Promise<void>;
|
|
21
|
+
private isTokenExpired;
|
|
22
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type ClientService } from '../../../../../cli/utilities/client/client-service';
|
|
2
|
+
import { type ConfigService } from '../../../../../cli/utilities/config/config-service';
|
|
3
|
+
import { type OrchestratorState } from '../../../../../cli/utilities/dev/orchestrator/dev-mode-orchestrator-state';
|
|
4
|
+
export declare class GenerateApiClientOrchestratorStep {
|
|
5
|
+
private clientService;
|
|
6
|
+
private configService;
|
|
7
|
+
private state;
|
|
8
|
+
private notify;
|
|
9
|
+
constructor({ clientService, configService, state, notify }: {
|
|
10
|
+
clientService: ClientService;
|
|
11
|
+
configService: ConfigService;
|
|
12
|
+
state: OrchestratorState;
|
|
13
|
+
notify: () => void;
|
|
14
|
+
});
|
|
15
|
+
execute(input: {
|
|
16
|
+
appPath: string;
|
|
17
|
+
}): Promise<void>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type ApiService } from '../../../../../cli/utilities/api/api-service';
|
|
2
|
+
import { type OrchestratorState } from '../../../../../cli/utilities/dev/orchestrator/dev-mode-orchestrator-state';
|
|
3
|
+
import { type Manifest } from 'twenty-shared/application';
|
|
4
|
+
export type ResolveApplicationOrchestratorStepOutput = {
|
|
5
|
+
applicationId: string | null;
|
|
6
|
+
universalIdentifier: string | null;
|
|
7
|
+
};
|
|
8
|
+
export declare class ResolveApplicationOrchestratorStep {
|
|
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
|
+
}): Promise<ResolveApplicationOrchestratorStepOutput>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { type ManifestBuildResult } from '../../../../../cli/utilities/build/manifest/manifest-update-checksums';
|
|
2
|
+
import { type OrchestratorState } from '../../../../../cli/utilities/dev/orchestrator/dev-mode-orchestrator-state';
|
|
3
|
+
import { FileFolder } from 'twenty-shared/types';
|
|
4
|
+
export type FileBuiltEvent = {
|
|
5
|
+
fileFolder: FileFolder;
|
|
6
|
+
builtPath: string;
|
|
7
|
+
sourcePath: string;
|
|
8
|
+
checksum: string;
|
|
9
|
+
};
|
|
10
|
+
export type StartWatchersOrchestratorStepOutput = {
|
|
11
|
+
watchersStarted: boolean;
|
|
12
|
+
};
|
|
13
|
+
export declare class StartWatchersOrchestratorStep {
|
|
14
|
+
private state;
|
|
15
|
+
private scheduleSync;
|
|
16
|
+
private notify;
|
|
17
|
+
private onFileBuilt;
|
|
18
|
+
private manifestWatcher;
|
|
19
|
+
private logicFunctionsWatcher;
|
|
20
|
+
private frontComponentsWatcher;
|
|
21
|
+
private assetWatcher;
|
|
22
|
+
private dependencyWatcher;
|
|
23
|
+
private tscWatcher;
|
|
24
|
+
constructor(options: {
|
|
25
|
+
state: OrchestratorState;
|
|
26
|
+
scheduleSync: () => void;
|
|
27
|
+
notify: () => void;
|
|
28
|
+
onFileBuilt: (event: FileBuiltEvent) => void;
|
|
29
|
+
});
|
|
30
|
+
start(): Promise<void>;
|
|
31
|
+
handleWatcherRestarts(result: ManifestBuildResult): Promise<void>;
|
|
32
|
+
close(): Promise<void>;
|
|
33
|
+
private handleChangeDetected;
|
|
34
|
+
private handleFileBuildError;
|
|
35
|
+
private handleFileBuilt;
|
|
36
|
+
private startFileWatchers;
|
|
37
|
+
private startLogicFunctionsWatcher;
|
|
38
|
+
private startFrontComponentsWatcher;
|
|
39
|
+
private startAssetWatcher;
|
|
40
|
+
private startDependencyWatcher;
|
|
41
|
+
private startTscWatcher;
|
|
42
|
+
private handleTypecheckErrors;
|
|
43
|
+
}
|