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
package/README.md
CHANGED
|
@@ -15,9 +15,12 @@
|
|
|
15
15
|
A CLI and SDK to develop, build, and publish applications that extend [Twenty CRM](https://twenty.com).
|
|
16
16
|
|
|
17
17
|
- Type‑safe client and workspace entity typings
|
|
18
|
-
- Built‑in CLI for auth,
|
|
18
|
+
- Built‑in CLI for auth, dev mode (watch & sync), generate, uninstall, and function management
|
|
19
19
|
- Works great with the scaffolder: [create-twenty-app](https://www.npmjs.com/package/create-twenty-app)
|
|
20
20
|
|
|
21
|
+
## Documentation
|
|
22
|
+
See Twenty application documentation https://docs.twenty.com/developers/extend/capabilities/apps
|
|
23
|
+
|
|
21
24
|
## Prerequisites
|
|
22
25
|
- Node.js 24+ (recommended) and Yarn 4
|
|
23
26
|
- A Twenty workspace and an API key. Generate one at https://app.twenty.com/settings/api-webhooks
|
|
@@ -43,8 +46,17 @@ Options:
|
|
|
43
46
|
-h, --help display help for command
|
|
44
47
|
|
|
45
48
|
Commands:
|
|
46
|
-
auth
|
|
47
|
-
|
|
49
|
+
auth:login Authenticate with Twenty
|
|
50
|
+
auth:logout Remove authentication credentials
|
|
51
|
+
auth:status Check authentication status
|
|
52
|
+
auth:switch Switch the default workspace
|
|
53
|
+
auth:list List all configured workspaces
|
|
54
|
+
app:dev Watch and sync local application changes
|
|
55
|
+
app:generate Generate Twenty client
|
|
56
|
+
app:uninstall Uninstall application from Twenty
|
|
57
|
+
entity:add Add a new entity to your application
|
|
58
|
+
function:logs Watch application function logs
|
|
59
|
+
function:execute Execute a logic function with a JSON payload
|
|
48
60
|
help [command] display help for command
|
|
49
61
|
```
|
|
50
62
|
|
|
@@ -58,92 +70,127 @@ Commands:
|
|
|
58
70
|
|
|
59
71
|
Authenticate the CLI against your Twenty workspace.
|
|
60
72
|
|
|
61
|
-
- `twenty auth
|
|
73
|
+
- `twenty auth:login` — Authenticate with Twenty.
|
|
62
74
|
- Options:
|
|
63
75
|
- `--api-key <key>`: API key for authentication.
|
|
64
76
|
- `--api-url <url>`: Twenty API URL (defaults to your current profile's value or `http://localhost:3000`).
|
|
65
77
|
- Behavior: Prompts for any missing values, persists them to the active workspace profile, and validates the credentials.
|
|
66
78
|
|
|
67
|
-
- `twenty auth
|
|
79
|
+
- `twenty auth:logout` — Remove authentication credentials for the active workspace profile.
|
|
80
|
+
|
|
81
|
+
- `twenty auth:status` — Print the current authentication status (API URL, masked API key, validity).
|
|
82
|
+
|
|
83
|
+
- `twenty auth:list` — List all configured workspaces.
|
|
84
|
+
- Behavior: Displays all available workspaces with their authentication status and API URLs. Shows which workspace is the current default.
|
|
68
85
|
|
|
69
|
-
- `twenty auth
|
|
86
|
+
- `twenty auth:switch [workspace]` — Switch the default workspace for authentication.
|
|
87
|
+
- Arguments:
|
|
88
|
+
- `workspace` (optional): Name of the workspace to switch to. If omitted, shows an interactive selection.
|
|
89
|
+
- Behavior: Sets the specified workspace as the default, so subsequent commands use it without needing `--workspace`.
|
|
70
90
|
|
|
71
91
|
Examples:
|
|
72
92
|
|
|
73
93
|
```bash
|
|
74
94
|
# Login interactively (recommended)
|
|
75
|
-
twenty auth
|
|
95
|
+
twenty auth:login
|
|
76
96
|
|
|
77
97
|
# Provide values in flags
|
|
78
|
-
twenty auth
|
|
98
|
+
twenty auth:login --api-key $TWENTY_API_KEY --api-url https://api.twenty.com
|
|
79
99
|
|
|
80
100
|
# Login interactively for a specific workspace profile
|
|
81
|
-
twenty auth
|
|
101
|
+
twenty auth:login --workspace my-custom-workspace
|
|
82
102
|
|
|
83
103
|
# Check status
|
|
84
|
-
twenty auth
|
|
104
|
+
twenty auth:status
|
|
85
105
|
|
|
86
106
|
# Logout current profile
|
|
87
|
-
twenty auth
|
|
107
|
+
twenty auth:logout
|
|
108
|
+
|
|
109
|
+
# List all configured workspaces
|
|
110
|
+
twenty auth:list
|
|
111
|
+
|
|
112
|
+
# Switch default workspace interactively
|
|
113
|
+
twenty auth:switch
|
|
114
|
+
|
|
115
|
+
# Switch to a specific workspace
|
|
116
|
+
twenty auth:switch production
|
|
88
117
|
```
|
|
89
118
|
|
|
90
119
|
### App
|
|
91
120
|
|
|
92
121
|
Application development commands.
|
|
93
122
|
|
|
94
|
-
- `twenty app
|
|
95
|
-
- Behavior:
|
|
123
|
+
- `twenty app:dev [appPath]` — Start development mode: watch and sync local application changes.
|
|
124
|
+
- Behavior: Builds your application (functions and front components), computes the manifest, syncs everything to your workspace, then watches the directory for changes and re-syncs automatically. Displays an interactive UI showing build and sync status in real time. Press Ctrl+C to stop.
|
|
96
125
|
|
|
97
|
-
- `twenty app
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
- Behavior: Performs an initial sync, then watches the directory for changes and re-syncs after debounced edits. Press Ctrl+C to stop.
|
|
126
|
+
- `twenty app:uninstall [appPath]` — Uninstall the application from the current workspace.
|
|
127
|
+
|
|
128
|
+
- `twenty app:generate [appPath]` — Generate the typed Twenty client for your application.
|
|
101
129
|
|
|
102
|
-
|
|
103
|
-
- Note: `twenty app delete` exists as a hidden alias for backward compatibility.
|
|
130
|
+
### Entity
|
|
104
131
|
|
|
105
|
-
- `twenty
|
|
132
|
+
- `twenty entity:add [entityType]` — Add a new entity to your application.
|
|
106
133
|
- Arguments:
|
|
107
|
-
- `entityType`: one of `function` or `
|
|
134
|
+
- `entityType`: one of `function`, `front-component`, `object`, or `role`. If omitted, an interactive prompt is shown.
|
|
108
135
|
- Options:
|
|
109
136
|
- `--path <path>`: The path where the entity file should be created (relative to the current directory).
|
|
110
137
|
- Behavior:
|
|
111
|
-
- `object`: prompts for singular/plural names and labels, then creates a
|
|
112
|
-
- `function`: prompts for a name and scaffolds a
|
|
138
|
+
- `object`: prompts for singular/plural names and labels, then creates a `*.object.ts` definition file.
|
|
139
|
+
- `function`: prompts for a name and scaffolds a `*.function.ts` logic function file.
|
|
140
|
+
- `front-component`: prompts for a name and scaffolds a `*.front-component.tsx` file.
|
|
141
|
+
- `role`: prompts for a name and scaffolds a `*.role.ts` role definition file.
|
|
113
142
|
|
|
114
|
-
|
|
143
|
+
### Function
|
|
115
144
|
|
|
116
|
-
- `twenty
|
|
145
|
+
- `twenty function:logs [appPath]` — Stream application function logs.
|
|
117
146
|
- Options:
|
|
118
147
|
- `-u, --functionUniversalIdentifier <id>`: Only show logs for a specific function universal ID.
|
|
119
148
|
- `-n, --functionName <name>`: Only show logs for a specific function name.
|
|
120
149
|
|
|
150
|
+
- `twenty function:execute [appPath]` — Execute a logic function with a JSON payload.
|
|
151
|
+
- Options:
|
|
152
|
+
- `-n, --functionName <name>`: Name of the function to execute (required if `-u` not provided).
|
|
153
|
+
- `-u, --functionUniversalIdentifier <id>`: Universal ID of the function to execute (required if `-n` not provided).
|
|
154
|
+
- `-p, --payload <payload>`: JSON payload to send to the function (default: `{}`).
|
|
155
|
+
|
|
121
156
|
Examples:
|
|
122
157
|
|
|
123
158
|
```bash
|
|
124
|
-
# Start dev mode
|
|
125
|
-
twenty app
|
|
159
|
+
# Start dev mode (watch, build, and sync)
|
|
160
|
+
twenty app:dev
|
|
126
161
|
|
|
127
|
-
# Start dev mode with custom workspace profile
|
|
128
|
-
twenty app
|
|
162
|
+
# Start dev mode with a custom workspace profile
|
|
163
|
+
twenty app:dev --workspace my-custom-workspace
|
|
129
164
|
|
|
130
|
-
#
|
|
131
|
-
twenty
|
|
165
|
+
# Add a new entity interactively
|
|
166
|
+
twenty entity:add
|
|
132
167
|
|
|
133
|
-
#
|
|
134
|
-
twenty
|
|
168
|
+
# Add a new function
|
|
169
|
+
twenty entity:add function
|
|
135
170
|
|
|
136
|
-
# Add a new
|
|
137
|
-
twenty
|
|
171
|
+
# Add a new front component
|
|
172
|
+
twenty entity:add front-component
|
|
138
173
|
|
|
139
174
|
# Generate client types
|
|
140
|
-
twenty app
|
|
175
|
+
twenty app:generate
|
|
176
|
+
|
|
177
|
+
# Uninstall the app from the workspace
|
|
178
|
+
twenty app:uninstall
|
|
141
179
|
|
|
142
180
|
# Watch all function logs
|
|
143
|
-
twenty
|
|
181
|
+
twenty function:logs
|
|
144
182
|
|
|
145
183
|
# Watch logs for a specific function by name
|
|
146
|
-
twenty
|
|
184
|
+
twenty function:logs -n my-function
|
|
185
|
+
|
|
186
|
+
# Execute a function by name (with empty payload)
|
|
187
|
+
twenty function:execute -n my-function
|
|
188
|
+
|
|
189
|
+
# Execute a function with a JSON payload
|
|
190
|
+
twenty function:execute -n my-function -p '{"name": "test"}'
|
|
191
|
+
|
|
192
|
+
# Execute a function by universal identifier
|
|
193
|
+
twenty function:execute -u e56d363b-0bdc-4d8a-a393-6f0d1c75bdcf -p '{"key": "value"}'
|
|
147
194
|
```
|
|
148
195
|
|
|
149
196
|
## Configuration
|
|
@@ -151,12 +198,13 @@ twenty app logs -n my-function
|
|
|
151
198
|
The CLI stores configuration per user in a JSON file:
|
|
152
199
|
|
|
153
200
|
- Location: `~/.twenty/config.json`
|
|
154
|
-
- Structure: Profiles keyed by workspace name. The active profile is selected with `--workspace <name
|
|
201
|
+
- Structure: Profiles keyed by workspace name. The active profile is selected with `--workspace <name>` or by the `defaultWorkspace` setting.
|
|
155
202
|
|
|
156
203
|
Example configuration file:
|
|
157
204
|
|
|
158
205
|
```json
|
|
159
206
|
{
|
|
207
|
+
"defaultWorkspace": "prod",
|
|
160
208
|
"profiles": {
|
|
161
209
|
"default": {
|
|
162
210
|
"apiUrl": "http://localhost:3000",
|
|
@@ -173,15 +221,62 @@ Example configuration file:
|
|
|
173
221
|
Notes:
|
|
174
222
|
|
|
175
223
|
- If a profile is missing, `apiUrl` defaults to `http://localhost:3000` until set.
|
|
176
|
-
- `twenty auth
|
|
177
|
-
- `twenty auth
|
|
224
|
+
- `twenty auth:login` writes the `apiUrl` and `apiKey` for the active workspace profile.
|
|
225
|
+
- `twenty auth:login --workspace custom-workspace` writes the `apiUrl` and `apiKey` for a custom `custom-workspace` profile.
|
|
226
|
+
- `twenty auth:switch` sets the `defaultWorkspace` field, which is used when `--workspace` is not specified.
|
|
227
|
+
- `twenty auth:list` shows all configured workspaces and their authentication status.
|
|
178
228
|
|
|
179
229
|
|
|
180
230
|
## Troubleshooting
|
|
181
|
-
- Auth errors: run `twenty auth
|
|
182
|
-
- Typings out of date: run `twenty app
|
|
183
|
-
- Not seeing changes in dev: make sure dev mode is running (`twenty app
|
|
231
|
+
- Auth errors: run `twenty auth:login` again and ensure the API key has the required permissions.
|
|
232
|
+
- Typings out of date: run `twenty app:generate` to refresh the client and types.
|
|
233
|
+
- Not seeing changes in dev: make sure dev mode is running (`twenty app:dev`).
|
|
184
234
|
|
|
185
235
|
## Contributing
|
|
236
|
+
|
|
237
|
+
### Development Setup
|
|
238
|
+
|
|
239
|
+
To contribute to the twenty-sdk package, clone the repository and install dependencies:
|
|
240
|
+
|
|
241
|
+
```bash
|
|
242
|
+
git clone https://github.com/twentyhq/twenty.git
|
|
243
|
+
cd twenty
|
|
244
|
+
yarn install
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
### Development Mode
|
|
248
|
+
|
|
249
|
+
Run the SDK build in watch mode to automatically rebuild on file changes:
|
|
250
|
+
|
|
251
|
+
```bash
|
|
252
|
+
npx nx run twenty-sdk:dev
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
This will watch for changes and rebuild the `dist` folder automatically.
|
|
256
|
+
|
|
257
|
+
### Production Build
|
|
258
|
+
|
|
259
|
+
Build the SDK for production:
|
|
260
|
+
|
|
261
|
+
```bash
|
|
262
|
+
npx nx run twenty-sdk:build
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
### Running the CLI Locally
|
|
266
|
+
|
|
267
|
+
After building, you can run the CLI directly:
|
|
268
|
+
|
|
269
|
+
```bash
|
|
270
|
+
npx nx run twenty-sdk:start -- <command>
|
|
271
|
+
# Example: npx nx run twenty-sdk:start -- auth:status
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
Or run the built CLI directly:
|
|
275
|
+
|
|
276
|
+
```bash
|
|
277
|
+
node packages/twenty-sdk/dist/cli.cjs <command>
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
### Resources
|
|
186
281
|
- See our [GitHub](https://github.com/twentyhq/twenty)
|
|
187
282
|
- Join our [Discord](https://discord.gg/cx5n4Jzs57)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=[{tag:"html-div",name:"HtmlDiv",properties:{}},{tag:"html-span",name:"HtmlSpan",properties:{}},{tag:"html-section",name:"HtmlSection",properties:{}},{tag:"html-article",name:"HtmlArticle",properties:{}},{tag:"html-header",name:"HtmlHeader",properties:{}},{tag:"html-footer",name:"HtmlFooter",properties:{}},{tag:"html-main",name:"HtmlMain",properties:{}},{tag:"html-nav",name:"HtmlNav",properties:{}},{tag:"html-aside",name:"HtmlAside",properties:{}},{tag:"html-p",name:"HtmlP",properties:{}},{tag:"html-h1",name:"HtmlH1",properties:{}},{tag:"html-h2",name:"HtmlH2",properties:{}},{tag:"html-h3",name:"HtmlH3",properties:{}},{tag:"html-h4",name:"HtmlH4",properties:{}},{tag:"html-h5",name:"HtmlH5",properties:{}},{tag:"html-h6",name:"HtmlH6",properties:{}},{tag:"html-strong",name:"HtmlStrong",properties:{}},{tag:"html-em",name:"HtmlEm",properties:{}},{tag:"html-small",name:"HtmlSmall",properties:{}},{tag:"html-code",name:"HtmlCode",properties:{}},{tag:"html-pre",name:"HtmlPre",properties:{}},{tag:"html-blockquote",name:"HtmlBlockquote",properties:{}},{tag:"html-a",name:"HtmlA",properties:{href:{type:"string",optional:!0},target:{type:"string",optional:!0},rel:{type:"string",optional:!0}}},{tag:"html-img",name:"HtmlImg",properties:{src:{type:"string",optional:!0},alt:{type:"string",optional:!0},width:{type:"number",optional:!0},height:{type:"number",optional:!0}}},{tag:"html-ul",name:"HtmlUl",properties:{}},{tag:"html-ol",name:"HtmlOl",properties:{}},{tag:"html-li",name:"HtmlLi",properties:{}},{tag:"html-form",name:"HtmlForm",properties:{action:{type:"string",optional:!0},method:{type:"string",optional:!0}}},{tag:"html-label",name:"HtmlLabel",properties:{htmlFor:{type:"string",optional:!0}}},{tag:"html-input",name:"HtmlInput",properties:{type:{type:"string",optional:!0},name:{type:"string",optional:!0},value:{type:"string",optional:!0},placeholder:{type:"string",optional:!0},disabled:{type:"boolean",optional:!0},checked:{type:"boolean",optional:!0},readOnly:{type:"boolean",optional:!0}}},{tag:"html-textarea",name:"HtmlTextarea",properties:{name:{type:"string",optional:!0},value:{type:"string",optional:!0},placeholder:{type:"string",optional:!0},disabled:{type:"boolean",optional:!0},readOnly:{type:"boolean",optional:!0},rows:{type:"number",optional:!0},cols:{type:"number",optional:!0}}},{tag:"html-select",name:"HtmlSelect",properties:{name:{type:"string",optional:!0},value:{type:"string",optional:!0},disabled:{type:"boolean",optional:!0},multiple:{type:"boolean",optional:!0}}},{tag:"html-option",name:"HtmlOption",properties:{value:{type:"string",optional:!0},disabled:{type:"boolean",optional:!0},selected:{type:"boolean",optional:!0}}},{tag:"html-button",name:"HtmlButton",properties:{type:{type:"string",optional:!0},disabled:{type:"boolean",optional:!0}}},{tag:"html-table",name:"HtmlTable",properties:{}},{tag:"html-thead",name:"HtmlThead",properties:{}},{tag:"html-tbody",name:"HtmlTbody",properties:{}},{tag:"html-tfoot",name:"HtmlTfoot",properties:{}},{tag:"html-tr",name:"HtmlTr",properties:{}},{tag:"html-th",name:"HtmlTh",properties:{colSpan:{type:"number",optional:!0},rowSpan:{type:"number",optional:!0}}},{tag:"html-td",name:"HtmlTd",properties:{colSpan:{type:"number",optional:!0},rowSpan:{type:"number",optional:!0}}},{tag:"html-br",name:"HtmlBr",properties:{}},{tag:"html-hr",name:"HtmlHr",properties:{}}],r=Object.fromEntries(e.map(t=>[t.tag.startsWith("html-")?t.tag.slice(5):t.tag,t.name]));exports.ALLOWED_HTML_ELEMENTS=e;exports.HTML_TAG_TO_REMOTE_COMPONENT=r;
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
const e = [
|
|
2
|
+
{ tag: "html-div", name: "HtmlDiv", properties: {} },
|
|
3
|
+
{ tag: "html-span", name: "HtmlSpan", properties: {} },
|
|
4
|
+
{ tag: "html-section", name: "HtmlSection", properties: {} },
|
|
5
|
+
{ tag: "html-article", name: "HtmlArticle", properties: {} },
|
|
6
|
+
{ tag: "html-header", name: "HtmlHeader", properties: {} },
|
|
7
|
+
{ tag: "html-footer", name: "HtmlFooter", properties: {} },
|
|
8
|
+
{ tag: "html-main", name: "HtmlMain", properties: {} },
|
|
9
|
+
{ tag: "html-nav", name: "HtmlNav", properties: {} },
|
|
10
|
+
{ tag: "html-aside", name: "HtmlAside", properties: {} },
|
|
11
|
+
{ tag: "html-p", name: "HtmlP", properties: {} },
|
|
12
|
+
{ tag: "html-h1", name: "HtmlH1", properties: {} },
|
|
13
|
+
{ tag: "html-h2", name: "HtmlH2", properties: {} },
|
|
14
|
+
{ tag: "html-h3", name: "HtmlH3", properties: {} },
|
|
15
|
+
{ tag: "html-h4", name: "HtmlH4", properties: {} },
|
|
16
|
+
{ tag: "html-h5", name: "HtmlH5", properties: {} },
|
|
17
|
+
{ tag: "html-h6", name: "HtmlH6", properties: {} },
|
|
18
|
+
{ tag: "html-strong", name: "HtmlStrong", properties: {} },
|
|
19
|
+
{ tag: "html-em", name: "HtmlEm", properties: {} },
|
|
20
|
+
{ tag: "html-small", name: "HtmlSmall", properties: {} },
|
|
21
|
+
{ tag: "html-code", name: "HtmlCode", properties: {} },
|
|
22
|
+
{ tag: "html-pre", name: "HtmlPre", properties: {} },
|
|
23
|
+
{ tag: "html-blockquote", name: "HtmlBlockquote", properties: {} },
|
|
24
|
+
{
|
|
25
|
+
tag: "html-a",
|
|
26
|
+
name: "HtmlA",
|
|
27
|
+
properties: {
|
|
28
|
+
href: { type: "string", optional: !0 },
|
|
29
|
+
target: { type: "string", optional: !0 },
|
|
30
|
+
rel: { type: "string", optional: !0 }
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
tag: "html-img",
|
|
35
|
+
name: "HtmlImg",
|
|
36
|
+
properties: {
|
|
37
|
+
src: { type: "string", optional: !0 },
|
|
38
|
+
alt: { type: "string", optional: !0 },
|
|
39
|
+
width: { type: "number", optional: !0 },
|
|
40
|
+
height: { type: "number", optional: !0 }
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
{ tag: "html-ul", name: "HtmlUl", properties: {} },
|
|
44
|
+
{ tag: "html-ol", name: "HtmlOl", properties: {} },
|
|
45
|
+
{ tag: "html-li", name: "HtmlLi", properties: {} },
|
|
46
|
+
{
|
|
47
|
+
tag: "html-form",
|
|
48
|
+
name: "HtmlForm",
|
|
49
|
+
properties: {
|
|
50
|
+
action: { type: "string", optional: !0 },
|
|
51
|
+
method: { type: "string", optional: !0 }
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
tag: "html-label",
|
|
56
|
+
name: "HtmlLabel",
|
|
57
|
+
properties: {
|
|
58
|
+
htmlFor: { type: "string", optional: !0 }
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
tag: "html-input",
|
|
63
|
+
name: "HtmlInput",
|
|
64
|
+
properties: {
|
|
65
|
+
type: { type: "string", optional: !0 },
|
|
66
|
+
name: { type: "string", optional: !0 },
|
|
67
|
+
value: { type: "string", optional: !0 },
|
|
68
|
+
placeholder: { type: "string", optional: !0 },
|
|
69
|
+
disabled: { type: "boolean", optional: !0 },
|
|
70
|
+
checked: { type: "boolean", optional: !0 },
|
|
71
|
+
readOnly: { type: "boolean", optional: !0 }
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
tag: "html-textarea",
|
|
76
|
+
name: "HtmlTextarea",
|
|
77
|
+
properties: {
|
|
78
|
+
name: { type: "string", optional: !0 },
|
|
79
|
+
value: { type: "string", optional: !0 },
|
|
80
|
+
placeholder: { type: "string", optional: !0 },
|
|
81
|
+
disabled: { type: "boolean", optional: !0 },
|
|
82
|
+
readOnly: { type: "boolean", optional: !0 },
|
|
83
|
+
rows: { type: "number", optional: !0 },
|
|
84
|
+
cols: { type: "number", optional: !0 }
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
tag: "html-select",
|
|
89
|
+
name: "HtmlSelect",
|
|
90
|
+
properties: {
|
|
91
|
+
name: { type: "string", optional: !0 },
|
|
92
|
+
value: { type: "string", optional: !0 },
|
|
93
|
+
disabled: { type: "boolean", optional: !0 },
|
|
94
|
+
multiple: { type: "boolean", optional: !0 }
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
tag: "html-option",
|
|
99
|
+
name: "HtmlOption",
|
|
100
|
+
properties: {
|
|
101
|
+
value: { type: "string", optional: !0 },
|
|
102
|
+
disabled: { type: "boolean", optional: !0 },
|
|
103
|
+
selected: { type: "boolean", optional: !0 }
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
tag: "html-button",
|
|
108
|
+
name: "HtmlButton",
|
|
109
|
+
properties: {
|
|
110
|
+
type: { type: "string", optional: !0 },
|
|
111
|
+
disabled: { type: "boolean", optional: !0 }
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
{ tag: "html-table", name: "HtmlTable", properties: {} },
|
|
115
|
+
{ tag: "html-thead", name: "HtmlThead", properties: {} },
|
|
116
|
+
{ tag: "html-tbody", name: "HtmlTbody", properties: {} },
|
|
117
|
+
{ tag: "html-tfoot", name: "HtmlTfoot", properties: {} },
|
|
118
|
+
{ tag: "html-tr", name: "HtmlTr", properties: {} },
|
|
119
|
+
{
|
|
120
|
+
tag: "html-th",
|
|
121
|
+
name: "HtmlTh",
|
|
122
|
+
properties: {
|
|
123
|
+
colSpan: { type: "number", optional: !0 },
|
|
124
|
+
rowSpan: { type: "number", optional: !0 }
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
tag: "html-td",
|
|
129
|
+
name: "HtmlTd",
|
|
130
|
+
properties: {
|
|
131
|
+
colSpan: { type: "number", optional: !0 },
|
|
132
|
+
rowSpan: { type: "number", optional: !0 }
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
{ tag: "html-br", name: "HtmlBr", properties: {} },
|
|
136
|
+
{ tag: "html-hr", name: "HtmlHr", properties: {} }
|
|
137
|
+
], a = Object.fromEntries(
|
|
138
|
+
e.map((t) => [
|
|
139
|
+
t.tag.startsWith("html-") ? t.tag.slice(5) : t.tag,
|
|
140
|
+
t.name
|
|
141
|
+
])
|
|
142
|
+
);
|
|
143
|
+
export {
|
|
144
|
+
e as A,
|
|
145
|
+
a as H
|
|
146
|
+
};
|