twenty-sdk 0.3.0 → 0.4.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 +139 -44
- package/dist/HtmlTagToRemoteComponent-Bd5sgek2.js +1 -0
- package/dist/HtmlTagToRemoteComponent-DlsAI7JU.mjs +146 -0
- package/dist/RatingValues-CT-y6O0b-CsGZSJKO.mjs +402 -0
- package/dist/RatingValues-CT-y6O0b-D7JSZAMu.js +1 -0
- package/dist/cli/commands/app/app-dev.d.ts +25 -0
- package/dist/cli/commands/{app-generate.command.d.ts → app/app-generate.d.ts} +1 -1
- package/dist/cli/commands/{app-uninstall.command.d.ts → app/app-uninstall.d.ts} +1 -1
- package/dist/cli/commands/app-command.d.ts +2 -0
- package/dist/cli/commands/auth/auth-list.d.ts +4 -0
- package/dist/cli/commands/auth/auth-login.d.ts +8 -0
- package/dist/cli/commands/auth/auth-logout.d.ts +4 -0
- package/dist/cli/commands/auth/auth-status.d.ts +5 -0
- package/dist/cli/commands/auth/auth-switch.d.ts +7 -0
- package/dist/cli/commands/entity/entity-add.d.ts +12 -0
- package/dist/cli/commands/logic-function/logic-function-execute.d.ts +10 -0
- package/dist/cli/commands/{app-logs.command.d.ts → logic-function/logic-function-logs.d.ts} +1 -1
- package/dist/cli/utilities/api/api-service.d.ts +51 -0
- package/dist/cli/utilities/build/common/cleanup-removed-files.d.ts +1 -0
- package/dist/cli/utilities/build/common/esbuild-result-processor.d.ts +11 -0
- package/dist/cli/utilities/build/common/esbuild-watcher.d.ts +37 -0
- package/dist/cli/utilities/build/common/file-upload-watcher.d.ts +24 -0
- package/dist/cli/utilities/build/common/front-component-build/jsx-transform-to-remote-dom-worker-format-plugin.d.ts +3 -0
- package/dist/cli/utilities/build/common/front-component-build/react-globals-plugin.d.ts +2 -0
- package/dist/cli/utilities/build/common/front-component-build/types/ParsedImportSpecifier.d.ts +4 -0
- package/dist/cli/utilities/build/common/front-component-build/utils/extract-names-from-import-specifier.d.ts +2 -0
- package/dist/cli/utilities/build/common/front-component-build/utils/replace-html-tags-with-remote-components.d.ts +1 -0
- package/dist/cli/utilities/build/common/front-component-build/utils/unwrap-define-front-component-to-direct-export.d.ts +1 -0
- package/dist/cli/utilities/build/common/restartable-watcher-interface.d.ts +25 -0
- package/dist/cli/utilities/build/manifest/manifest-build.d.ts +7 -0
- package/dist/cli/utilities/build/manifest/manifest-extract-config-from-file.d.ts +5 -0
- package/dist/cli/utilities/build/manifest/manifest-extract-config.d.ts +20 -0
- package/dist/cli/utilities/build/manifest/manifest-types.d.ts +4 -0
- package/dist/cli/utilities/build/manifest/manifest-update-checksums.d.ts +17 -0
- package/dist/cli/utilities/build/manifest/manifest-validate.d.ts +6 -0
- package/dist/cli/utilities/build/manifest/manifest-watcher.d.ts +12 -0
- package/dist/cli/utilities/build/manifest/manifest-writer.d.ts +2 -0
- package/dist/cli/{services/generate.service.d.ts → utilities/client/client-service.d.ts} +2 -2
- package/dist/cli/{services/config.service.d.ts → utilities/config/config-service.d.ts} +4 -0
- package/dist/cli/utilities/dev/dev-mode-orchestrator.d.ts +42 -0
- package/dist/cli/utilities/dev/dev-ui-state-manager.d.ts +31 -0
- package/dist/cli/utilities/dev/dev-ui-state.d.ts +27 -0
- package/dist/cli/utilities/dev/dev-ui.d.ts +4 -0
- package/dist/cli/utilities/entity/entity-field-template.d.ts +11 -0
- package/dist/cli/utilities/entity/entity-front-component-template.d.ts +4 -0
- package/dist/cli/utilities/entity/entity-logic-function-template.d.ts +4 -0
- package/dist/cli/{utils/get-new-object-file-content.d.ts → utilities/entity/entity-object-template.d.ts} +1 -1
- package/dist/cli/{utils/jsonc-parser.d.ts → utilities/file/file-jsonc.d.ts} +1 -5
- package/dist/cli/utilities/file/file-tarball.d.ts +16 -0
- package/dist/cli/utilities/file/file-uploader.d.ts +14 -0
- package/dist/cli/{utils/get-ts-program-and-diagnostics.d.ts → utilities/typescript/typescript-program.d.ts} +1 -1
- package/dist/cli.cjs +280 -179
- package/dist/cli.mjs +11094 -9467
- package/dist/front-component/host/components/FrontComponentRenderer.d.ts +8 -0
- package/dist/front-component/host/generated/host-component-registry.d.ts +4 -0
- package/dist/front-component/host/generated/host-index.d.ts +1 -0
- package/dist/front-component/index.d.ts +10 -0
- package/dist/front-component/remote/components/FrontComponentWorkerEffect.d.ts +8 -0
- package/dist/front-component/remote/generated/remote-components.d.ts +44 -0
- package/dist/front-component/remote/generated/remote-elements.d.ts +195 -0
- package/dist/front-component/remote/generated/remote-index.d.ts +2 -0
- package/dist/front-component/remote/mock/mock-front-component.d.ts +3 -0
- package/dist/front-component/remote/worker/createRemoteWorker.d.ts +1 -0
- package/dist/front-component/remote/worker/remote-worker.d.ts +0 -0
- package/dist/front-component/types/HostToWorkerRenderContext.d.ts +3 -0
- package/dist/front-component/types/PropertySchema.d.ts +4 -0
- package/dist/front-component/types/WorkerExports.d.ts +5 -0
- package/dist/front-component-constants/AllowedHtmlElements.d.ts +11 -0
- package/dist/front-component-constants/AllowedUiComponents.d.ts +9 -0
- package/dist/front-component-constants/CommonHtmlEvents.d.ts +1 -0
- package/dist/front-component-constants/EventToReact.d.ts +1 -0
- package/dist/front-component-constants/HtmlCommonProperties.d.ts +2 -0
- package/dist/front-component-constants/HtmlTagToRemoteComponent.d.ts +1 -0
- package/dist/front-component-constants/index.d.ts +8 -0
- package/dist/front-component-constants.cjs +1 -0
- package/dist/front-component-constants.mjs +77 -0
- package/dist/front-component.cjs +328 -0
- package/dist/front-component.mjs +42579 -0
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +2183 -242
- package/dist/jsx-runtime-C9ldtZbm.mjs +10472 -0
- package/dist/jsx-runtime-CfccAQK_.js +54 -0
- package/dist/sdk/application/application-config.d.ts +2 -0
- package/dist/sdk/application/define-application.d.ts +3 -0
- package/dist/sdk/common/types/define-entity.type.d.ts +11 -0
- package/dist/sdk/common/utils/create-validation-result.d.ts +5 -0
- package/dist/{application → sdk}/fields/composite-fields.d.ts +1 -1
- package/dist/sdk/fields/define-field.d.ts +3 -0
- package/dist/sdk/fields/validate-fields.d.ts +2 -0
- package/dist/sdk/front-components/define-front-component.d.ts +3 -0
- package/dist/sdk/front-components/front-component-config.d.ts +5 -0
- package/dist/sdk/index.d.ts +22 -0
- package/dist/sdk/logic-functions/define-logic-function.d.ts +3 -0
- package/dist/sdk/logic-functions/logic-function-config.d.ts +6 -0
- package/dist/sdk/logic-functions/triggers/route-payload-type.d.ts +1 -0
- package/dist/sdk/objects/define-object.d.ts +3 -0
- package/dist/sdk/objects/standard-object-ids.d.ts +1 -0
- package/dist/sdk/roles/define-role.d.ts +3 -0
- package/dist/sdk/roles/permission-flag-type.d.ts +1 -0
- package/dist/types-Bg4PAegr.js +1 -0
- package/dist/types-DVJsIqkp.mjs +7 -0
- package/dist/vendor/twenty-shared/ObjectRecordGroupByDateGranularity-BZ0Penru.js +1 -0
- package/dist/vendor/twenty-shared/ObjectRecordGroupByDateGranularity-DmLx4uDl.mjs +263 -0
- package/dist/vendor/twenty-shared/RatingValues-Bd_cXQ5v.js +1 -0
- package/dist/vendor/twenty-shared/RatingValues-CT-y6O0b.mjs +388 -0
- package/dist/vendor/twenty-shared/application/applicationType.d.ts +17 -4
- package/dist/vendor/twenty-shared/application/applicationType.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/application/assetManifestType.d.ts +7 -0
- package/dist/vendor/twenty-shared/application/assetManifestType.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/application/constants/AssetDirectory.d.ts +2 -0
- package/dist/vendor/twenty-shared/application/constants/AssetDirectory.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/application/constants/GeneratedDirectory.d.ts +2 -0
- package/dist/vendor/twenty-shared/application/constants/GeneratedDirectory.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/application/constants/OutputDirectory.d.ts +2 -0
- package/dist/vendor/twenty-shared/application/constants/OutputDirectory.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/application/enums/syncable-entities.enum.d.ts +8 -0
- package/dist/vendor/twenty-shared/application/enums/syncable-entities.enum.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/application/fieldManifestType.d.ts +12 -1
- package/dist/vendor/twenty-shared/application/fieldManifestType.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/application/frontComponentManifestType.d.ts +10 -0
- package/dist/vendor/twenty-shared/application/frontComponentManifestType.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/application/index.d.ts +11 -5
- package/dist/vendor/twenty-shared/application/index.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/application/{serverlessFunctionManifestType.d.ts → logicFunctionManifestType.d.ts} +9 -5
- package/dist/vendor/twenty-shared/application/logicFunctionManifestType.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/application/manifestType.d.ts +20 -0
- package/dist/vendor/twenty-shared/application/manifestType.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/application/objectFieldManifest.type.d.ts +5 -0
- package/dist/vendor/twenty-shared/application/objectFieldManifest.type.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/application/objectManifestType.d.ts +2 -2
- package/dist/vendor/twenty-shared/application/objectManifestType.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/application/roleManifestType.d.ts +3 -18
- package/dist/vendor/twenty-shared/application/roleManifestType.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/application.cjs +1 -1
- package/dist/vendor/twenty-shared/application.mjs +8 -3
- package/dist/vendor/twenty-shared/constants/DocumentationBaseUrl.d.ts +2 -0
- package/dist/vendor/twenty-shared/constants/DocumentationBaseUrl.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/constants/DocumentationDefaultLanguage.d.ts +2 -0
- package/dist/vendor/twenty-shared/constants/DocumentationDefaultLanguage.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/constants/DocumentationDefaultPath.d.ts +2 -0
- package/dist/vendor/twenty-shared/constants/DocumentationDefaultPath.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/constants/DocumentationPaths.d.ts +165 -0
- package/dist/vendor/twenty-shared/constants/DocumentationPaths.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/constants/DocumentationSupportedLanguages.d.ts +3 -0
- package/dist/vendor/twenty-shared/constants/DocumentationSupportedLanguages.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/constants/FilesFieldMaxNumberOfValues.d.ts +2 -0
- package/dist/vendor/twenty-shared/constants/FilesFieldMaxNumberOfValues.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/constants/PermissionFlagType.d.ts +1 -0
- package/dist/vendor/twenty-shared/constants/PermissionFlagType.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/constants/index.d.ts +8 -0
- package/dist/vendor/twenty-shared/constants/index.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/constants.cjs +1 -1
- package/dist/vendor/twenty-shared/constants.mjs +56 -35
- package/dist/vendor/twenty-shared/database-events/database-event-payload.type.d.ts +1 -1
- package/dist/vendor/twenty-shared/database-events/database-event-payload.type.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/database-events/object-record-delete.event.d.ts +4 -0
- package/dist/vendor/twenty-shared/database-events/object-record-delete.event.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/database-events/object-record-restore.event.d.ts +4 -0
- package/dist/vendor/twenty-shared/database-events/object-record-restore.event.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/database-events/object-record-update.event.d.ts +3 -3
- package/dist/vendor/twenty-shared/database-events/object-record-update.event.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/isValidCountryCode-D-UqlXRW.js +4 -0
- package/dist/vendor/twenty-shared/{isValidCountryCode-E35rsxfD.mjs → isValidCountryCode-Dyji5s5r.mjs} +2351 -2320
- package/dist/vendor/twenty-shared/metadata/MetadataValidationError.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/metadata/all-metadata-name.constant.d.ts +5 -4
- package/dist/vendor/twenty-shared/metadata/all-metadata-name.constant.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/metadata/index.d.ts +1 -1
- package/dist/vendor/twenty-shared/metadata/index.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/metadata/standard-object.constant.d.ts +2196 -0
- package/dist/vendor/twenty-shared/metadata/standard-object.constant.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/metadata.cjs +1 -1
- package/dist/vendor/twenty-shared/metadata.mjs +2025 -69
- package/dist/vendor/twenty-shared/translations/constants/AppLocales.d.ts +1 -0
- package/dist/vendor/twenty-shared/translations/constants/AppLocales.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/translations/index.d.ts +1 -0
- package/dist/vendor/twenty-shared/translations/index.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/translations.cjs +1 -1
- package/dist/vendor/twenty-shared/translations.mjs +2 -2
- package/dist/vendor/twenty-shared/types/ExtractSerializedRelationProperties.type.d.ts +6 -0
- package/dist/vendor/twenty-shared/types/ExtractSerializedRelationProperties.type.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/FieldMetadataDefaultValue.d.ts +44 -88
- package/dist/vendor/twenty-shared/types/FieldMetadataDefaultValue.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/types/FieldMetadataOptions.d.ts +2 -1
- package/dist/vendor/twenty-shared/types/FieldMetadataOptions.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/types/FieldMetadataSettings.d.ts +15 -9
- package/dist/vendor/twenty-shared/types/FieldMetadataSettings.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/types/FieldMetadataType.d.ts +18 -17
- package/dist/vendor/twenty-shared/types/FieldMetadataType.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/types/FileCategory.d.ts +12 -0
- package/dist/vendor/twenty-shared/types/FileCategory.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/FileFolder.d.ts +14 -0
- package/dist/vendor/twenty-shared/types/FileFolder.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/IsEmptyObject.type.d.ts +2 -0
- package/dist/vendor/twenty-shared/types/IsEmptyObject.type.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/IsEmptyRecord.type.d.ts +1 -1
- package/dist/vendor/twenty-shared/types/IsEmptyRecord.type.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/types/IsNever.type.d.ts +2 -0
- package/dist/vendor/twenty-shared/types/IsNever.type.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/IsSerializedRelation.type.d.ts +4 -0
- package/dist/vendor/twenty-shared/types/IsSerializedRelation.type.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/LogicFunctionEvent.d.ts +28 -0
- package/dist/vendor/twenty-shared/types/LogicFunctionEvent.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/ObjectPermissions.d.ts +4 -0
- package/dist/vendor/twenty-shared/types/ObjectPermissions.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/types/OrderBy.d.ts +2 -0
- package/dist/vendor/twenty-shared/types/OrderBy.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/QueryCursorDirection.d.ts +2 -0
- package/dist/vendor/twenty-shared/types/QueryCursorDirection.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/RecordGqlFieldsDeprecated.d.ts +2 -0
- package/dist/vendor/twenty-shared/types/RecordGqlFieldsDeprecated.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/RecordGqlOperationGqlRecordFields.d.ts +4 -0
- package/dist/vendor/twenty-shared/types/RecordGqlOperationGqlRecordFields.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/RecordGqlOperationOrderBy.d.ts +10 -0
- package/dist/vendor/twenty-shared/types/RecordGqlOperationOrderBy.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/RecordGqlOperationSignature.d.ts +9 -0
- package/dist/vendor/twenty-shared/types/RecordGqlOperationSignature.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/RecordGqlOperationVariables.d.ts +14 -0
- package/dist/vendor/twenty-shared/types/RecordGqlOperationVariables.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/RowLevelPermissionPredicate.d.ts +15 -0
- package/dist/vendor/twenty-shared/types/RowLevelPermissionPredicate.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/RowLevelPermissionPredicateGroup.d.ts +11 -0
- package/dist/vendor/twenty-shared/types/RowLevelPermissionPredicateGroup.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/RowLevelPermissionPredicateGroupLogicalOperator.d.ts +5 -0
- package/dist/vendor/twenty-shared/types/RowLevelPermissionPredicateGroupLogicalOperator.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/RowLevelPermissionPredicateOperand.d.ts +19 -0
- package/dist/vendor/twenty-shared/types/RowLevelPermissionPredicateOperand.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/RowLevelPermissionPredicateValue.d.ts +6 -0
- package/dist/vendor/twenty-shared/types/RowLevelPermissionPredicateValue.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/SerializedRelation.type.d.ts +5 -0
- package/dist/vendor/twenty-shared/types/SerializedRelation.type.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/SettingsPath.d.ts +5 -4
- package/dist/vendor/twenty-shared/types/SettingsPath.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/types/__tests__/extract-serialized-relation-properties.type-test.d.ts +2 -0
- package/dist/vendor/twenty-shared/types/__tests__/extract-serialized-relation-properties.type-test.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/index.d.ts +29 -4
- package/dist/vendor/twenty-shared/types/index.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/types/page-layout/PageLayoutTabLayoutMode.d.ts +6 -0
- package/dist/vendor/twenty-shared/types/page-layout/PageLayoutTabLayoutMode.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/page-layout/PageLayoutWidgetConditionalDisplay.d.ts +2 -0
- package/dist/vendor/twenty-shared/types/page-layout/PageLayoutWidgetConditionalDisplay.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/page-layout/page-layout-widget-position.type.d.ts +18 -0
- package/dist/vendor/twenty-shared/types/page-layout/page-layout-widget-position.type.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types.cjs +1 -1
- package/dist/vendor/twenty-shared/types.mjs +85 -76
- package/dist/vendor/twenty-shared/utils/array/compareArraysOfObjectsByProperty.d.ts +2 -0
- package/dist/vendor/twenty-shared/utils/array/compareArraysOfObjectsByProperty.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/files/extractFolderPathFilenameAndTypeOrThrow.util.d.ts +6 -0
- package/dist/vendor/twenty-shared/utils/files/extractFolderPathFilenameAndTypeOrThrow.util.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/filter/index.d.ts +13 -0
- package/dist/vendor/twenty-shared/utils/filter/index.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingArrayFilter.d.ts +7 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingArrayFilter.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingBooleanFilter.d.ts +7 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingBooleanFilter.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingCurrencyFilter.d.ts +10 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingCurrencyFilter.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingDateFilter.d.ts +7 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingDateFilter.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingFloatFilter.d.ts +7 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingFloatFilter.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingMultiSelectFilter.d.ts +7 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingMultiSelectFilter.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingRatingFilter.d.ts +7 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingRatingFilter.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingRawJsonFilter.d.ts +7 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingRawJsonFilter.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingRichTextV2Filter.d.ts +7 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingRichTextV2Filter.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingSelectFilter.d.ts +7 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingSelectFilter.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingStringFilter.d.ts +7 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingStringFilter.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingTSVectorFilter.d.ts +7 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingTSVectorFilter.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingUUIDFilter.d.ts +7 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingUUIDFilter.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/format/formatToShortNumber.d.ts +2 -0
- package/dist/vendor/twenty-shared/utils/format/formatToShortNumber.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/index.d.ts +19 -0
- package/dist/vendor/twenty-shared/utils/index.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/utils/strings/index.d.ts +1 -0
- package/dist/vendor/twenty-shared/utils/strings/index.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/utils/strings/pascalCase.d.ts +2 -0
- package/dist/vendor/twenty-shared/utils/strings/pascalCase.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/strings/stringifySafely.d.ts +2 -0
- package/dist/vendor/twenty-shared/utils/strings/stringifySafely.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/typeguard/isPlainObject.d.ts +2 -0
- package/dist/vendor/twenty-shared/utils/typeguard/isPlainObject.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/validation/isValidLocale.d.ts +2 -2
- package/dist/vendor/twenty-shared/utils/validation/isValidLocale.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/utils/validation/normalizeLocale.d.ts +2 -5
- package/dist/vendor/twenty-shared/utils/validation/normalizeLocale.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/utils.cjs +2 -2
- package/dist/vendor/twenty-shared/utils.mjs +994 -522
- package/dist/vendor/twenty-shared/workflow/index.d.ts +4 -0
- package/dist/vendor/twenty-shared/workflow/index.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/workflow/schemas/code-action-schema.d.ts +2 -3
- package/dist/vendor/twenty-shared/workflow/schemas/code-action-schema.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/workflow/schemas/code-action-settings-schema.d.ts +2 -3
- package/dist/vendor/twenty-shared/workflow/schemas/code-action-settings-schema.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/workflow/schemas/logic-function-action-schema.d.ts +29 -0
- package/dist/vendor/twenty-shared/workflow/schemas/logic-function-action-schema.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/workflow/schemas/logic-function-action-settings-schema.d.ts +18 -0
- package/dist/vendor/twenty-shared/workflow/schemas/logic-function-action-settings-schema.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/workflow/schemas/send-email-action-schema.d.ts +5 -1
- package/dist/vendor/twenty-shared/workflow/schemas/send-email-action-schema.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/workflow/schemas/send-email-action-settings-schema.d.ts +5 -1
- package/dist/vendor/twenty-shared/workflow/schemas/send-email-action-settings-schema.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/workflow/schemas/workflow-action-schema.d.ts +32 -4
- package/dist/vendor/twenty-shared/workflow/schemas/workflow-action-schema.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/workflow/schemas/workflow-run-schema.d.ts +32 -4
- package/dist/vendor/twenty-shared/workflow/schemas/workflow-run-schema.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/workflow/schemas/workflow-run-state-schema.d.ts +32 -4
- package/dist/vendor/twenty-shared/workflow/schemas/workflow-run-state-schema.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/workflow/types/EmailRecipients.d.ts +6 -0
- package/dist/vendor/twenty-shared/workflow/types/EmailRecipients.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/workflow/utils/variable-path.util.d.ts +12 -0
- package/dist/vendor/twenty-shared/workflow/utils/variable-path.util.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/workflow.cjs +3 -3
- package/dist/vendor/twenty-shared/workflow.mjs +205 -166
- package/package.json +39 -15
- package/dist/ObjectRecordGroupByDateGranularity-CtpRADP1-Bft-VMSh.mjs +0 -3151
- package/dist/ObjectRecordGroupByDateGranularity-CtpRADP1-Duv5iOeZ.js +0 -20
- package/dist/application/application-config.d.ts +0 -2
- package/dist/application/define-app.d.ts +0 -18
- package/dist/application/fields/field.decorator.d.ts +0 -3
- package/dist/application/fields/relation.decorator.d.ts +0 -28
- package/dist/application/functions/define-function.d.ts +0 -28
- package/dist/application/functions/function-config.d.ts +0 -9
- package/dist/application/index.d.ts +0 -19
- package/dist/application/objects/define-object.d.ts +0 -35
- package/dist/application/objects/object.decorator.d.ts +0 -4
- package/dist/application/objects/standard-object-ids.d.ts +0 -1
- package/dist/application/permission-flag-type.d.ts +0 -1
- package/dist/application/role-config.d.ts +0 -2
- package/dist/application/roles/define-role.d.ts +0 -26
- package/dist/cli/commands/app-add.command.d.ts +0 -13
- package/dist/cli/commands/app-dev.command.d.ts +0 -11
- package/dist/cli/commands/app-sync.command.d.ts +0 -7
- package/dist/cli/commands/app.command.d.ts +0 -10
- package/dist/cli/commands/auth.command.d.ts +0 -9
- package/dist/cli/services/api.service.d.ts +0 -20
- package/dist/cli/utils/config-loader.d.ts +0 -43
- package/dist/cli/utils/display-entity-summary.d.ts +0 -2
- package/dist/cli/utils/display-errors.d.ts +0 -2
- package/dist/cli/utils/display-warnings.d.ts +0 -2
- package/dist/cli/utils/get-function-base-file.d.ts +0 -4
- package/dist/cli/utils/load-env-variables.d.ts +0 -2
- package/dist/cli/utils/load-manifest.d.ts +0 -41
- package/dist/cli/utils/validate-manifest.d.ts +0 -22
- package/dist/vendor/twenty-shared/ObjectRecordGroupByDateGranularity-BwpmSE4s.js +0 -1
- package/dist/vendor/twenty-shared/ObjectRecordGroupByDateGranularity-CtpRADP1.mjs +0 -500
- package/dist/vendor/twenty-shared/RatingValues-B_wgYyso.js +0 -1
- package/dist/vendor/twenty-shared/RatingValues-DNSj7xKA.mjs +0 -224
- package/dist/vendor/twenty-shared/application/applicationManifestType.d.ts +0 -12
- package/dist/vendor/twenty-shared/application/applicationManifestType.d.ts.map +0 -1
- package/dist/vendor/twenty-shared/application/packageJsonType.d.ts +0 -14
- package/dist/vendor/twenty-shared/application/packageJsonType.d.ts.map +0 -1
- package/dist/vendor/twenty-shared/application/serverlessFunctionManifestType.d.ts.map +0 -1
- package/dist/vendor/twenty-shared/isValidCountryCode-WBKj_GIR.js +0 -4
- package/dist/vendor/twenty-shared/metadata/standard-object-ids.d.ts +0 -51
- package/dist/vendor/twenty-shared/metadata/standard-object-ids.d.ts.map +0 -1
- /package/dist/cli/{types/api-response.types.d.ts → utilities/api/api-response-type.d.ts} +0 -0
- /package/dist/cli/{constants → utilities/config}/current-execution-directory.d.ts +0 -0
- /package/dist/cli/{utils/convert-to-label.d.ts → utilities/entity/entity-label.d.ts} +0 -0
- /package/dist/cli/{utils/get-role-base-file.d.ts → utilities/entity/entity-role-template.d.ts} +0 -0
- /package/dist/cli/{utils/find-path-file.d.ts → utilities/file/file-find.d.ts} +0 -0
- /package/dist/cli/{utils/format-path.d.ts → utilities/file/file-path.d.ts} +0 -0
- /package/dist/cli/{utils/format-and-warn-ts-diagnostics.d.ts → utilities/typescript/typescript-diagnostics.d.ts} +0 -0
- /package/dist/{application → sdk/common/types}/syncable-entity-options.type.d.ts +0 -0
- /package/dist/{application → sdk}/fields/field-type.d.ts +0 -0
- /package/dist/{application → sdk}/fields/on-delete-action.d.ts +0 -0
- /package/dist/{application → sdk}/fields/relation-type.d.ts +0 -0
- /package/dist/{application/functions → sdk/logic-functions}/triggers/cron-payload-type.d.ts +0 -0
- /package/dist/{application/functions → sdk/logic-functions}/triggers/database-event-payload-type.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const replaceHtmlTagsWithRemoteComponents: (sourceCode: string) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const unwrapDefineFrontComponentToDirectExport: (sourceCode: string) => string;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { FileFolder } from '../../../../vendor/twenty-shared/types';
|
|
2
|
+
import { Location } from 'esbuild';
|
|
3
|
+
export interface RestartableWatcher {
|
|
4
|
+
restart(sourcePaths: string[]): Promise<void>;
|
|
5
|
+
start(): Promise<void>;
|
|
6
|
+
close(): Promise<void>;
|
|
7
|
+
shouldRestart(sourcePaths: string[]): boolean;
|
|
8
|
+
}
|
|
9
|
+
export type OnFileBuiltCallback = (options: {
|
|
10
|
+
fileFolder: FileFolder;
|
|
11
|
+
builtPath: string;
|
|
12
|
+
sourcePath: string;
|
|
13
|
+
checksum: string;
|
|
14
|
+
}) => void | Promise<void>;
|
|
15
|
+
export type OnBuildErrorCallback = (errors: {
|
|
16
|
+
error: string;
|
|
17
|
+
location: Location | null;
|
|
18
|
+
}[]) => void | Promise<void>;
|
|
19
|
+
export type RestartableWatcherOptions = {
|
|
20
|
+
appPath: string;
|
|
21
|
+
sourcePaths: string[];
|
|
22
|
+
watch?: boolean;
|
|
23
|
+
handleFileBuilt: OnFileBuiltCallback;
|
|
24
|
+
handleBuildError: OnBuildErrorCallback;
|
|
25
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EntityFilePaths } from './manifest-extract-config';
|
|
2
|
+
import { Manifest } from '../../../../vendor/twenty-shared/application';
|
|
3
|
+
export declare const buildManifest: (appPath: string) => Promise<{
|
|
4
|
+
manifest: Manifest | null;
|
|
5
|
+
filePaths: EntityFilePaths;
|
|
6
|
+
errors: string[];
|
|
7
|
+
}>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare enum TargetFunction {
|
|
2
|
+
DefineApplication = "defineApplication",
|
|
3
|
+
DefineField = "defineField",
|
|
4
|
+
DefineLogicFunction = "defineLogicFunction",
|
|
5
|
+
DefineObject = "defineObject",
|
|
6
|
+
DefineRole = "defineRole",
|
|
7
|
+
DefineFrontComponent = "defineFrontComponent"
|
|
8
|
+
}
|
|
9
|
+
export declare enum ManifestEntityKey {
|
|
10
|
+
Application = "application",
|
|
11
|
+
Fields = "fields",
|
|
12
|
+
LogicFunctions = "logicFunctions",
|
|
13
|
+
Objects = "objects",
|
|
14
|
+
Roles = "roles",
|
|
15
|
+
FrontComponents = "frontComponents",
|
|
16
|
+
PublicAssets = "publicAssets"
|
|
17
|
+
}
|
|
18
|
+
export type EntityFilePaths = Record<ManifestEntityKey, string[]>;
|
|
19
|
+
export declare const TARGET_FUNCTION_TO_ENTITY_KEY_MAPPING: Record<TargetFunction, ManifestEntityKey>;
|
|
20
|
+
export declare const extractDefineEntity: (fileContent: string) => TargetFunction | undefined;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Manifest } from '../../../../vendor/twenty-shared/application';
|
|
2
|
+
import { FileFolder } from '../../../../vendor/twenty-shared/types';
|
|
3
|
+
import { EntityFilePaths } from './manifest-extract-config';
|
|
4
|
+
export type ManifestBuildResult = {
|
|
5
|
+
manifest: Manifest | null;
|
|
6
|
+
filePaths: EntityFilePaths;
|
|
7
|
+
error?: string;
|
|
8
|
+
};
|
|
9
|
+
export type UpdateManifestChecksumParams = {
|
|
10
|
+
manifest: Manifest;
|
|
11
|
+
builtFileInfos: Map<string, {
|
|
12
|
+
checksum: string;
|
|
13
|
+
builtPath: string;
|
|
14
|
+
fileFolder: FileFolder;
|
|
15
|
+
}>;
|
|
16
|
+
};
|
|
17
|
+
export declare const manifestUpdateChecksums: ({ manifest, builtFileInfos, }: UpdateManifestChecksumParams) => Manifest;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type ManifestWatcherOptions = {
|
|
2
|
+
appPath: string;
|
|
3
|
+
handleChangeDetected: (filePath: string) => void;
|
|
4
|
+
};
|
|
5
|
+
export declare class ManifestWatcher {
|
|
6
|
+
private appPath;
|
|
7
|
+
private handleChangeDetected;
|
|
8
|
+
private watcher;
|
|
9
|
+
constructor(options: ManifestWatcherOptions);
|
|
10
|
+
start(): Promise<void>;
|
|
11
|
+
close(): Promise<void>;
|
|
12
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare const GENERATED_FOLDER_NAME = "generated";
|
|
2
|
-
export declare class
|
|
2
|
+
export declare class ClientService {
|
|
3
3
|
private configService;
|
|
4
4
|
private apiService;
|
|
5
5
|
constructor();
|
|
6
|
-
|
|
6
|
+
generate(appPath: string): Promise<void>;
|
|
7
7
|
private injectTwentyClient;
|
|
8
8
|
}
|
|
@@ -11,7 +11,11 @@ export declare class ConfigService {
|
|
|
11
11
|
private getActiveWorkspaceName;
|
|
12
12
|
private readRawConfig;
|
|
13
13
|
getConfig(): Promise<TwentyConfig>;
|
|
14
|
+
getConfigForWorkspace(workspaceName: string): Promise<TwentyConfig>;
|
|
14
15
|
setConfig(config: Partial<TwentyConfig>): Promise<void>;
|
|
15
16
|
clearConfig(): Promise<void>;
|
|
16
17
|
private getDefaultConfig;
|
|
18
|
+
getAvailableWorkspaces(): Promise<string[]>;
|
|
19
|
+
getDefaultWorkspace(): Promise<string>;
|
|
20
|
+
setDefaultWorkspace(name: string): Promise<void>;
|
|
17
21
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ManifestBuildResult } from '../build/manifest/manifest-update-checksums';
|
|
2
|
+
import { FileFolder } from '../../../vendor/twenty-shared/types';
|
|
3
|
+
import { Location } from 'esbuild';
|
|
4
|
+
import { DevUiStateManager } from './dev-ui-state-manager';
|
|
5
|
+
import { EventName } from 'chokidar/handler.js';
|
|
6
|
+
export type DevModeOrchestratorOptions = {
|
|
7
|
+
appPath: string;
|
|
8
|
+
debounceMs?: number;
|
|
9
|
+
handleManifestBuilt: (result: ManifestBuildResult) => void | Promise<void>;
|
|
10
|
+
uiStateManager: DevUiStateManager;
|
|
11
|
+
};
|
|
12
|
+
export declare class DevModeOrchestrator {
|
|
13
|
+
private appPath;
|
|
14
|
+
private debounceMs;
|
|
15
|
+
private builtFileInfos;
|
|
16
|
+
private fileUploader;
|
|
17
|
+
private apiService;
|
|
18
|
+
private activeUploads;
|
|
19
|
+
private syncTimer;
|
|
20
|
+
private isSyncing;
|
|
21
|
+
private uiStateManager;
|
|
22
|
+
private serverReady;
|
|
23
|
+
private serverErrorLogged;
|
|
24
|
+
private handleManifestBuilt;
|
|
25
|
+
constructor(options: DevModeOrchestratorOptions);
|
|
26
|
+
private checkServer;
|
|
27
|
+
handleChangeDetected(sourcePath: string, event: EventName): Promise<void>;
|
|
28
|
+
handleFileBuildError(errors: {
|
|
29
|
+
error: string;
|
|
30
|
+
location: Location | null;
|
|
31
|
+
}[]): void;
|
|
32
|
+
handleFileBuilt({ fileFolder, builtPath, sourcePath, checksum, }: {
|
|
33
|
+
fileFolder: FileFolder;
|
|
34
|
+
builtPath: string;
|
|
35
|
+
sourcePath: string;
|
|
36
|
+
checksum: string;
|
|
37
|
+
}): void;
|
|
38
|
+
private uploadFile;
|
|
39
|
+
private cancelPendingSync;
|
|
40
|
+
private scheduleSync;
|
|
41
|
+
private performSync;
|
|
42
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { SyncableEntity } from '../../../vendor/twenty-shared/application';
|
|
2
|
+
import { FileStatus, Listener, ManifestStatus, UiEvent, DevUiState } from './dev-ui-state';
|
|
3
|
+
import { EntityFilePaths } from '../build/manifest/manifest-extract-config';
|
|
4
|
+
export declare class DevUiStateManager {
|
|
5
|
+
private state;
|
|
6
|
+
private eventIdCounter;
|
|
7
|
+
private listeners;
|
|
8
|
+
constructor({ appPath, frontendUrl, }: {
|
|
9
|
+
appPath: string;
|
|
10
|
+
frontendUrl?: string;
|
|
11
|
+
});
|
|
12
|
+
getSnapshot(): DevUiState;
|
|
13
|
+
subscribe(listener: Listener): () => void;
|
|
14
|
+
private notify;
|
|
15
|
+
addEvent({ message, status, }: {
|
|
16
|
+
message: string;
|
|
17
|
+
status: UiEvent['status'];
|
|
18
|
+
}): void;
|
|
19
|
+
updateManifestState({ manifestStatus, appName, error, }: {
|
|
20
|
+
manifestStatus?: ManifestStatus;
|
|
21
|
+
appName?: string;
|
|
22
|
+
error?: string;
|
|
23
|
+
}): void;
|
|
24
|
+
convertEntityTypeToSyncableEntity(entityType: string): SyncableEntity | undefined;
|
|
25
|
+
updateAllFilesTypes({ manifestFilePaths, }: {
|
|
26
|
+
manifestFilePaths: EntityFilePaths;
|
|
27
|
+
}): void;
|
|
28
|
+
updateAllFilesStatus(status: FileStatus): void;
|
|
29
|
+
removeEntity(filePath: string): void;
|
|
30
|
+
updateFileStatus(filePath: string, status: FileStatus): void;
|
|
31
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { SyncableEntity } from '../../../vendor/twenty-shared/application';
|
|
2
|
+
export type UiEvent = {
|
|
3
|
+
id: number;
|
|
4
|
+
timestamp: Date;
|
|
5
|
+
message: string;
|
|
6
|
+
status: 'info' | 'success' | 'error' | 'warning';
|
|
7
|
+
};
|
|
8
|
+
export type ManifestStatus = 'idle' | 'building' | 'syncing' | 'synced' | 'error';
|
|
9
|
+
export type FileStatus = 'pending' | 'building' | 'uploading' | 'success';
|
|
10
|
+
export type EntityInfo = {
|
|
11
|
+
name: string;
|
|
12
|
+
path: string;
|
|
13
|
+
type?: SyncableEntity;
|
|
14
|
+
status: FileStatus;
|
|
15
|
+
};
|
|
16
|
+
export type DevUiState = {
|
|
17
|
+
appPath: string;
|
|
18
|
+
appName: string | null;
|
|
19
|
+
appDescription: string | null;
|
|
20
|
+
appUniversalIdentifier: string | null;
|
|
21
|
+
frontendUrl?: string | null;
|
|
22
|
+
manifestStatus: ManifestStatus;
|
|
23
|
+
error?: string | null;
|
|
24
|
+
entities: Map<string, EntityInfo>;
|
|
25
|
+
events: UiEvent[];
|
|
26
|
+
};
|
|
27
|
+
export type Listener = (state: DevUiState) => void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FieldMetadataType } from '../../../vendor/twenty-shared/types';
|
|
2
|
+
export declare const getFieldBaseFile: ({ data, }: {
|
|
3
|
+
data: {
|
|
4
|
+
name: string;
|
|
5
|
+
label: string;
|
|
6
|
+
type: FieldMetadataType;
|
|
7
|
+
objectUniversalIdentifier: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
};
|
|
10
|
+
name: string;
|
|
11
|
+
}) => string;
|
|
@@ -10,8 +10,4 @@ export declare class JsoncParseError extends Error {
|
|
|
10
10
|
constructor(message: string, parseErrors: ParseError[], filePath?: string | undefined);
|
|
11
11
|
}
|
|
12
12
|
export declare const parseJsoncString: (content: string, options?: JsoncParseOptions) => any;
|
|
13
|
-
export declare const
|
|
14
|
-
export declare const parseJsoncFile: (filePath: string, options?: JsoncParseOptions) => Promise<any>;
|
|
15
|
-
export declare const writeJsoncFile: (filePath: string, data: any, options?: {
|
|
16
|
-
spaces?: number;
|
|
17
|
-
}) => Promise<void>;
|
|
13
|
+
export declare const parseJsoncFile: <T = object>(filePath: string, options?: JsoncParseOptions) => Promise<T>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TarballService creates distributable .tar.gz archives from built applications.
|
|
3
|
+
*/
|
|
4
|
+
export declare class TarballService {
|
|
5
|
+
/**
|
|
6
|
+
* Create a tarball from the build output directory.
|
|
7
|
+
*
|
|
8
|
+
* @param sourceDir - The directory containing built files
|
|
9
|
+
* @param outputPath - The path for the output .tar.gz file
|
|
10
|
+
* @returns The absolute path to the created tarball
|
|
11
|
+
*/
|
|
12
|
+
create(options: {
|
|
13
|
+
sourceDir: string;
|
|
14
|
+
outputPath: string;
|
|
15
|
+
}): Promise<string>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FileFolder } from '../../../vendor/twenty-shared/types';
|
|
2
|
+
export declare class FileUploader {
|
|
3
|
+
private apiService;
|
|
4
|
+
private applicationUniversalIdentifier;
|
|
5
|
+
private appPath;
|
|
6
|
+
constructor(options: {
|
|
7
|
+
applicationUniversalIdentifier: string;
|
|
8
|
+
appPath: string;
|
|
9
|
+
});
|
|
10
|
+
uploadFile({ builtPath, fileFolder, }: {
|
|
11
|
+
builtPath: string;
|
|
12
|
+
fileFolder: FileFolder;
|
|
13
|
+
}): Promise<import('../api/api-response-type').ApiResponse<boolean>>;
|
|
14
|
+
}
|