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.
Files changed (376) hide show
  1. package/README.md +139 -44
  2. package/dist/HtmlTagToRemoteComponent-Bd5sgek2.js +1 -0
  3. package/dist/HtmlTagToRemoteComponent-DlsAI7JU.mjs +146 -0
  4. package/dist/RatingValues-CT-y6O0b-CsGZSJKO.mjs +402 -0
  5. package/dist/RatingValues-CT-y6O0b-D7JSZAMu.js +1 -0
  6. package/dist/cli/commands/app/app-dev.d.ts +25 -0
  7. package/dist/cli/commands/{app-generate.command.d.ts → app/app-generate.d.ts} +1 -1
  8. package/dist/cli/commands/{app-uninstall.command.d.ts → app/app-uninstall.d.ts} +1 -1
  9. package/dist/cli/commands/app-command.d.ts +2 -0
  10. package/dist/cli/commands/auth/auth-list.d.ts +4 -0
  11. package/dist/cli/commands/auth/auth-login.d.ts +8 -0
  12. package/dist/cli/commands/auth/auth-logout.d.ts +4 -0
  13. package/dist/cli/commands/auth/auth-status.d.ts +5 -0
  14. package/dist/cli/commands/auth/auth-switch.d.ts +7 -0
  15. package/dist/cli/commands/entity/entity-add.d.ts +12 -0
  16. package/dist/cli/commands/logic-function/logic-function-execute.d.ts +10 -0
  17. package/dist/cli/commands/{app-logs.command.d.ts → logic-function/logic-function-logs.d.ts} +1 -1
  18. package/dist/cli/utilities/api/api-service.d.ts +51 -0
  19. package/dist/cli/utilities/build/common/cleanup-removed-files.d.ts +1 -0
  20. package/dist/cli/utilities/build/common/esbuild-result-processor.d.ts +11 -0
  21. package/dist/cli/utilities/build/common/esbuild-watcher.d.ts +37 -0
  22. package/dist/cli/utilities/build/common/file-upload-watcher.d.ts +24 -0
  23. package/dist/cli/utilities/build/common/front-component-build/jsx-transform-to-remote-dom-worker-format-plugin.d.ts +3 -0
  24. package/dist/cli/utilities/build/common/front-component-build/react-globals-plugin.d.ts +2 -0
  25. package/dist/cli/utilities/build/common/front-component-build/types/ParsedImportSpecifier.d.ts +4 -0
  26. package/dist/cli/utilities/build/common/front-component-build/utils/extract-names-from-import-specifier.d.ts +2 -0
  27. package/dist/cli/utilities/build/common/front-component-build/utils/replace-html-tags-with-remote-components.d.ts +1 -0
  28. package/dist/cli/utilities/build/common/front-component-build/utils/unwrap-define-front-component-to-direct-export.d.ts +1 -0
  29. package/dist/cli/utilities/build/common/restartable-watcher-interface.d.ts +25 -0
  30. package/dist/cli/utilities/build/manifest/manifest-build.d.ts +7 -0
  31. package/dist/cli/utilities/build/manifest/manifest-extract-config-from-file.d.ts +5 -0
  32. package/dist/cli/utilities/build/manifest/manifest-extract-config.d.ts +20 -0
  33. package/dist/cli/utilities/build/manifest/manifest-types.d.ts +4 -0
  34. package/dist/cli/utilities/build/manifest/manifest-update-checksums.d.ts +17 -0
  35. package/dist/cli/utilities/build/manifest/manifest-validate.d.ts +6 -0
  36. package/dist/cli/utilities/build/manifest/manifest-watcher.d.ts +12 -0
  37. package/dist/cli/utilities/build/manifest/manifest-writer.d.ts +2 -0
  38. package/dist/cli/{services/generate.service.d.ts → utilities/client/client-service.d.ts} +2 -2
  39. package/dist/cli/{services/config.service.d.ts → utilities/config/config-service.d.ts} +4 -0
  40. package/dist/cli/utilities/dev/dev-mode-orchestrator.d.ts +42 -0
  41. package/dist/cli/utilities/dev/dev-ui-state-manager.d.ts +31 -0
  42. package/dist/cli/utilities/dev/dev-ui-state.d.ts +27 -0
  43. package/dist/cli/utilities/dev/dev-ui.d.ts +4 -0
  44. package/dist/cli/utilities/entity/entity-field-template.d.ts +11 -0
  45. package/dist/cli/utilities/entity/entity-front-component-template.d.ts +4 -0
  46. package/dist/cli/utilities/entity/entity-logic-function-template.d.ts +4 -0
  47. package/dist/cli/{utils/get-new-object-file-content.d.ts → utilities/entity/entity-object-template.d.ts} +1 -1
  48. package/dist/cli/{utils/jsonc-parser.d.ts → utilities/file/file-jsonc.d.ts} +1 -5
  49. package/dist/cli/utilities/file/file-tarball.d.ts +16 -0
  50. package/dist/cli/utilities/file/file-uploader.d.ts +14 -0
  51. package/dist/cli/{utils/get-ts-program-and-diagnostics.d.ts → utilities/typescript/typescript-program.d.ts} +1 -1
  52. package/dist/cli.cjs +280 -179
  53. package/dist/cli.mjs +11094 -9467
  54. package/dist/front-component/host/components/FrontComponentRenderer.d.ts +8 -0
  55. package/dist/front-component/host/generated/host-component-registry.d.ts +4 -0
  56. package/dist/front-component/host/generated/host-index.d.ts +1 -0
  57. package/dist/front-component/index.d.ts +10 -0
  58. package/dist/front-component/remote/components/FrontComponentWorkerEffect.d.ts +8 -0
  59. package/dist/front-component/remote/generated/remote-components.d.ts +44 -0
  60. package/dist/front-component/remote/generated/remote-elements.d.ts +195 -0
  61. package/dist/front-component/remote/generated/remote-index.d.ts +2 -0
  62. package/dist/front-component/remote/mock/mock-front-component.d.ts +3 -0
  63. package/dist/front-component/remote/worker/createRemoteWorker.d.ts +1 -0
  64. package/dist/front-component/remote/worker/remote-worker.d.ts +0 -0
  65. package/dist/front-component/types/HostToWorkerRenderContext.d.ts +3 -0
  66. package/dist/front-component/types/PropertySchema.d.ts +4 -0
  67. package/dist/front-component/types/WorkerExports.d.ts +5 -0
  68. package/dist/front-component-constants/AllowedHtmlElements.d.ts +11 -0
  69. package/dist/front-component-constants/AllowedUiComponents.d.ts +9 -0
  70. package/dist/front-component-constants/CommonHtmlEvents.d.ts +1 -0
  71. package/dist/front-component-constants/EventToReact.d.ts +1 -0
  72. package/dist/front-component-constants/HtmlCommonProperties.d.ts +2 -0
  73. package/dist/front-component-constants/HtmlTagToRemoteComponent.d.ts +1 -0
  74. package/dist/front-component-constants/index.d.ts +8 -0
  75. package/dist/front-component-constants.cjs +1 -0
  76. package/dist/front-component-constants.mjs +77 -0
  77. package/dist/front-component.cjs +328 -0
  78. package/dist/front-component.mjs +42579 -0
  79. package/dist/index.cjs +2 -2
  80. package/dist/index.d.ts +1 -1
  81. package/dist/index.mjs +2183 -242
  82. package/dist/jsx-runtime-C9ldtZbm.mjs +10472 -0
  83. package/dist/jsx-runtime-CfccAQK_.js +54 -0
  84. package/dist/sdk/application/application-config.d.ts +2 -0
  85. package/dist/sdk/application/define-application.d.ts +3 -0
  86. package/dist/sdk/common/types/define-entity.type.d.ts +11 -0
  87. package/dist/sdk/common/utils/create-validation-result.d.ts +5 -0
  88. package/dist/{application → sdk}/fields/composite-fields.d.ts +1 -1
  89. package/dist/sdk/fields/define-field.d.ts +3 -0
  90. package/dist/sdk/fields/validate-fields.d.ts +2 -0
  91. package/dist/sdk/front-components/define-front-component.d.ts +3 -0
  92. package/dist/sdk/front-components/front-component-config.d.ts +5 -0
  93. package/dist/sdk/index.d.ts +22 -0
  94. package/dist/sdk/logic-functions/define-logic-function.d.ts +3 -0
  95. package/dist/sdk/logic-functions/logic-function-config.d.ts +6 -0
  96. package/dist/sdk/logic-functions/triggers/route-payload-type.d.ts +1 -0
  97. package/dist/sdk/objects/define-object.d.ts +3 -0
  98. package/dist/sdk/objects/standard-object-ids.d.ts +1 -0
  99. package/dist/sdk/roles/define-role.d.ts +3 -0
  100. package/dist/sdk/roles/permission-flag-type.d.ts +1 -0
  101. package/dist/types-Bg4PAegr.js +1 -0
  102. package/dist/types-DVJsIqkp.mjs +7 -0
  103. package/dist/vendor/twenty-shared/ObjectRecordGroupByDateGranularity-BZ0Penru.js +1 -0
  104. package/dist/vendor/twenty-shared/ObjectRecordGroupByDateGranularity-DmLx4uDl.mjs +263 -0
  105. package/dist/vendor/twenty-shared/RatingValues-Bd_cXQ5v.js +1 -0
  106. package/dist/vendor/twenty-shared/RatingValues-CT-y6O0b.mjs +388 -0
  107. package/dist/vendor/twenty-shared/application/applicationType.d.ts +17 -4
  108. package/dist/vendor/twenty-shared/application/applicationType.d.ts.map +1 -1
  109. package/dist/vendor/twenty-shared/application/assetManifestType.d.ts +7 -0
  110. package/dist/vendor/twenty-shared/application/assetManifestType.d.ts.map +1 -0
  111. package/dist/vendor/twenty-shared/application/constants/AssetDirectory.d.ts +2 -0
  112. package/dist/vendor/twenty-shared/application/constants/AssetDirectory.d.ts.map +1 -0
  113. package/dist/vendor/twenty-shared/application/constants/GeneratedDirectory.d.ts +2 -0
  114. package/dist/vendor/twenty-shared/application/constants/GeneratedDirectory.d.ts.map +1 -0
  115. package/dist/vendor/twenty-shared/application/constants/OutputDirectory.d.ts +2 -0
  116. package/dist/vendor/twenty-shared/application/constants/OutputDirectory.d.ts.map +1 -0
  117. package/dist/vendor/twenty-shared/application/enums/syncable-entities.enum.d.ts +8 -0
  118. package/dist/vendor/twenty-shared/application/enums/syncable-entities.enum.d.ts.map +1 -0
  119. package/dist/vendor/twenty-shared/application/fieldManifestType.d.ts +12 -1
  120. package/dist/vendor/twenty-shared/application/fieldManifestType.d.ts.map +1 -1
  121. package/dist/vendor/twenty-shared/application/frontComponentManifestType.d.ts +10 -0
  122. package/dist/vendor/twenty-shared/application/frontComponentManifestType.d.ts.map +1 -0
  123. package/dist/vendor/twenty-shared/application/index.d.ts +11 -5
  124. package/dist/vendor/twenty-shared/application/index.d.ts.map +1 -1
  125. package/dist/vendor/twenty-shared/application/{serverlessFunctionManifestType.d.ts → logicFunctionManifestType.d.ts} +9 -5
  126. package/dist/vendor/twenty-shared/application/logicFunctionManifestType.d.ts.map +1 -0
  127. package/dist/vendor/twenty-shared/application/manifestType.d.ts +20 -0
  128. package/dist/vendor/twenty-shared/application/manifestType.d.ts.map +1 -0
  129. package/dist/vendor/twenty-shared/application/objectFieldManifest.type.d.ts +5 -0
  130. package/dist/vendor/twenty-shared/application/objectFieldManifest.type.d.ts.map +1 -0
  131. package/dist/vendor/twenty-shared/application/objectManifestType.d.ts +2 -2
  132. package/dist/vendor/twenty-shared/application/objectManifestType.d.ts.map +1 -1
  133. package/dist/vendor/twenty-shared/application/roleManifestType.d.ts +3 -18
  134. package/dist/vendor/twenty-shared/application/roleManifestType.d.ts.map +1 -1
  135. package/dist/vendor/twenty-shared/application.cjs +1 -1
  136. package/dist/vendor/twenty-shared/application.mjs +8 -3
  137. package/dist/vendor/twenty-shared/constants/DocumentationBaseUrl.d.ts +2 -0
  138. package/dist/vendor/twenty-shared/constants/DocumentationBaseUrl.d.ts.map +1 -0
  139. package/dist/vendor/twenty-shared/constants/DocumentationDefaultLanguage.d.ts +2 -0
  140. package/dist/vendor/twenty-shared/constants/DocumentationDefaultLanguage.d.ts.map +1 -0
  141. package/dist/vendor/twenty-shared/constants/DocumentationDefaultPath.d.ts +2 -0
  142. package/dist/vendor/twenty-shared/constants/DocumentationDefaultPath.d.ts.map +1 -0
  143. package/dist/vendor/twenty-shared/constants/DocumentationPaths.d.ts +165 -0
  144. package/dist/vendor/twenty-shared/constants/DocumentationPaths.d.ts.map +1 -0
  145. package/dist/vendor/twenty-shared/constants/DocumentationSupportedLanguages.d.ts +3 -0
  146. package/dist/vendor/twenty-shared/constants/DocumentationSupportedLanguages.d.ts.map +1 -0
  147. package/dist/vendor/twenty-shared/constants/FilesFieldMaxNumberOfValues.d.ts +2 -0
  148. package/dist/vendor/twenty-shared/constants/FilesFieldMaxNumberOfValues.d.ts.map +1 -0
  149. package/dist/vendor/twenty-shared/constants/PermissionFlagType.d.ts +1 -0
  150. package/dist/vendor/twenty-shared/constants/PermissionFlagType.d.ts.map +1 -1
  151. package/dist/vendor/twenty-shared/constants/index.d.ts +8 -0
  152. package/dist/vendor/twenty-shared/constants/index.d.ts.map +1 -1
  153. package/dist/vendor/twenty-shared/constants.cjs +1 -1
  154. package/dist/vendor/twenty-shared/constants.mjs +56 -35
  155. package/dist/vendor/twenty-shared/database-events/database-event-payload.type.d.ts +1 -1
  156. package/dist/vendor/twenty-shared/database-events/database-event-payload.type.d.ts.map +1 -1
  157. package/dist/vendor/twenty-shared/database-events/object-record-delete.event.d.ts +4 -0
  158. package/dist/vendor/twenty-shared/database-events/object-record-delete.event.d.ts.map +1 -1
  159. package/dist/vendor/twenty-shared/database-events/object-record-restore.event.d.ts +4 -0
  160. package/dist/vendor/twenty-shared/database-events/object-record-restore.event.d.ts.map +1 -1
  161. package/dist/vendor/twenty-shared/database-events/object-record-update.event.d.ts +3 -3
  162. package/dist/vendor/twenty-shared/database-events/object-record-update.event.d.ts.map +1 -1
  163. package/dist/vendor/twenty-shared/isValidCountryCode-D-UqlXRW.js +4 -0
  164. package/dist/vendor/twenty-shared/{isValidCountryCode-E35rsxfD.mjs → isValidCountryCode-Dyji5s5r.mjs} +2351 -2320
  165. package/dist/vendor/twenty-shared/metadata/MetadataValidationError.d.ts.map +1 -1
  166. package/dist/vendor/twenty-shared/metadata/all-metadata-name.constant.d.ts +5 -4
  167. package/dist/vendor/twenty-shared/metadata/all-metadata-name.constant.d.ts.map +1 -1
  168. package/dist/vendor/twenty-shared/metadata/index.d.ts +1 -1
  169. package/dist/vendor/twenty-shared/metadata/index.d.ts.map +1 -1
  170. package/dist/vendor/twenty-shared/metadata/standard-object.constant.d.ts +2196 -0
  171. package/dist/vendor/twenty-shared/metadata/standard-object.constant.d.ts.map +1 -0
  172. package/dist/vendor/twenty-shared/metadata.cjs +1 -1
  173. package/dist/vendor/twenty-shared/metadata.mjs +2025 -69
  174. package/dist/vendor/twenty-shared/translations/constants/AppLocales.d.ts +1 -0
  175. package/dist/vendor/twenty-shared/translations/constants/AppLocales.d.ts.map +1 -1
  176. package/dist/vendor/twenty-shared/translations/index.d.ts +1 -0
  177. package/dist/vendor/twenty-shared/translations/index.d.ts.map +1 -1
  178. package/dist/vendor/twenty-shared/translations.cjs +1 -1
  179. package/dist/vendor/twenty-shared/translations.mjs +2 -2
  180. package/dist/vendor/twenty-shared/types/ExtractSerializedRelationProperties.type.d.ts +6 -0
  181. package/dist/vendor/twenty-shared/types/ExtractSerializedRelationProperties.type.d.ts.map +1 -0
  182. package/dist/vendor/twenty-shared/types/FieldMetadataDefaultValue.d.ts +44 -88
  183. package/dist/vendor/twenty-shared/types/FieldMetadataDefaultValue.d.ts.map +1 -1
  184. package/dist/vendor/twenty-shared/types/FieldMetadataOptions.d.ts +2 -1
  185. package/dist/vendor/twenty-shared/types/FieldMetadataOptions.d.ts.map +1 -1
  186. package/dist/vendor/twenty-shared/types/FieldMetadataSettings.d.ts +15 -9
  187. package/dist/vendor/twenty-shared/types/FieldMetadataSettings.d.ts.map +1 -1
  188. package/dist/vendor/twenty-shared/types/FieldMetadataType.d.ts +18 -17
  189. package/dist/vendor/twenty-shared/types/FieldMetadataType.d.ts.map +1 -1
  190. package/dist/vendor/twenty-shared/types/FileCategory.d.ts +12 -0
  191. package/dist/vendor/twenty-shared/types/FileCategory.d.ts.map +1 -0
  192. package/dist/vendor/twenty-shared/types/FileFolder.d.ts +14 -0
  193. package/dist/vendor/twenty-shared/types/FileFolder.d.ts.map +1 -0
  194. package/dist/vendor/twenty-shared/types/IsEmptyObject.type.d.ts +2 -0
  195. package/dist/vendor/twenty-shared/types/IsEmptyObject.type.d.ts.map +1 -0
  196. package/dist/vendor/twenty-shared/types/IsEmptyRecord.type.d.ts +1 -1
  197. package/dist/vendor/twenty-shared/types/IsEmptyRecord.type.d.ts.map +1 -1
  198. package/dist/vendor/twenty-shared/types/IsNever.type.d.ts +2 -0
  199. package/dist/vendor/twenty-shared/types/IsNever.type.d.ts.map +1 -0
  200. package/dist/vendor/twenty-shared/types/IsSerializedRelation.type.d.ts +4 -0
  201. package/dist/vendor/twenty-shared/types/IsSerializedRelation.type.d.ts.map +1 -0
  202. package/dist/vendor/twenty-shared/types/LogicFunctionEvent.d.ts +28 -0
  203. package/dist/vendor/twenty-shared/types/LogicFunctionEvent.d.ts.map +1 -0
  204. package/dist/vendor/twenty-shared/types/ObjectPermissions.d.ts +4 -0
  205. package/dist/vendor/twenty-shared/types/ObjectPermissions.d.ts.map +1 -1
  206. package/dist/vendor/twenty-shared/types/OrderBy.d.ts +2 -0
  207. package/dist/vendor/twenty-shared/types/OrderBy.d.ts.map +1 -0
  208. package/dist/vendor/twenty-shared/types/QueryCursorDirection.d.ts +2 -0
  209. package/dist/vendor/twenty-shared/types/QueryCursorDirection.d.ts.map +1 -0
  210. package/dist/vendor/twenty-shared/types/RecordGqlFieldsDeprecated.d.ts +2 -0
  211. package/dist/vendor/twenty-shared/types/RecordGqlFieldsDeprecated.d.ts.map +1 -0
  212. package/dist/vendor/twenty-shared/types/RecordGqlOperationGqlRecordFields.d.ts +4 -0
  213. package/dist/vendor/twenty-shared/types/RecordGqlOperationGqlRecordFields.d.ts.map +1 -0
  214. package/dist/vendor/twenty-shared/types/RecordGqlOperationOrderBy.d.ts +10 -0
  215. package/dist/vendor/twenty-shared/types/RecordGqlOperationOrderBy.d.ts.map +1 -0
  216. package/dist/vendor/twenty-shared/types/RecordGqlOperationSignature.d.ts +9 -0
  217. package/dist/vendor/twenty-shared/types/RecordGqlOperationSignature.d.ts.map +1 -0
  218. package/dist/vendor/twenty-shared/types/RecordGqlOperationVariables.d.ts +14 -0
  219. package/dist/vendor/twenty-shared/types/RecordGqlOperationVariables.d.ts.map +1 -0
  220. package/dist/vendor/twenty-shared/types/RowLevelPermissionPredicate.d.ts +15 -0
  221. package/dist/vendor/twenty-shared/types/RowLevelPermissionPredicate.d.ts.map +1 -0
  222. package/dist/vendor/twenty-shared/types/RowLevelPermissionPredicateGroup.d.ts +11 -0
  223. package/dist/vendor/twenty-shared/types/RowLevelPermissionPredicateGroup.d.ts.map +1 -0
  224. package/dist/vendor/twenty-shared/types/RowLevelPermissionPredicateGroupLogicalOperator.d.ts +5 -0
  225. package/dist/vendor/twenty-shared/types/RowLevelPermissionPredicateGroupLogicalOperator.d.ts.map +1 -0
  226. package/dist/vendor/twenty-shared/types/RowLevelPermissionPredicateOperand.d.ts +19 -0
  227. package/dist/vendor/twenty-shared/types/RowLevelPermissionPredicateOperand.d.ts.map +1 -0
  228. package/dist/vendor/twenty-shared/types/RowLevelPermissionPredicateValue.d.ts +6 -0
  229. package/dist/vendor/twenty-shared/types/RowLevelPermissionPredicateValue.d.ts.map +1 -0
  230. package/dist/vendor/twenty-shared/types/SerializedRelation.type.d.ts +5 -0
  231. package/dist/vendor/twenty-shared/types/SerializedRelation.type.d.ts.map +1 -0
  232. package/dist/vendor/twenty-shared/types/SettingsPath.d.ts +5 -4
  233. package/dist/vendor/twenty-shared/types/SettingsPath.d.ts.map +1 -1
  234. package/dist/vendor/twenty-shared/types/__tests__/extract-serialized-relation-properties.type-test.d.ts +2 -0
  235. package/dist/vendor/twenty-shared/types/__tests__/extract-serialized-relation-properties.type-test.d.ts.map +1 -0
  236. package/dist/vendor/twenty-shared/types/index.d.ts +29 -4
  237. package/dist/vendor/twenty-shared/types/index.d.ts.map +1 -1
  238. package/dist/vendor/twenty-shared/types/page-layout/PageLayoutTabLayoutMode.d.ts +6 -0
  239. package/dist/vendor/twenty-shared/types/page-layout/PageLayoutTabLayoutMode.d.ts.map +1 -0
  240. package/dist/vendor/twenty-shared/types/page-layout/PageLayoutWidgetConditionalDisplay.d.ts +2 -0
  241. package/dist/vendor/twenty-shared/types/page-layout/PageLayoutWidgetConditionalDisplay.d.ts.map +1 -0
  242. package/dist/vendor/twenty-shared/types/page-layout/page-layout-widget-position.type.d.ts +18 -0
  243. package/dist/vendor/twenty-shared/types/page-layout/page-layout-widget-position.type.d.ts.map +1 -0
  244. package/dist/vendor/twenty-shared/types.cjs +1 -1
  245. package/dist/vendor/twenty-shared/types.mjs +85 -76
  246. package/dist/vendor/twenty-shared/utils/array/compareArraysOfObjectsByProperty.d.ts +2 -0
  247. package/dist/vendor/twenty-shared/utils/array/compareArraysOfObjectsByProperty.d.ts.map +1 -0
  248. package/dist/vendor/twenty-shared/utils/files/extractFolderPathFilenameAndTypeOrThrow.util.d.ts +6 -0
  249. package/dist/vendor/twenty-shared/utils/files/extractFolderPathFilenameAndTypeOrThrow.util.d.ts.map +1 -0
  250. package/dist/vendor/twenty-shared/utils/filter/index.d.ts +13 -0
  251. package/dist/vendor/twenty-shared/utils/filter/index.d.ts.map +1 -1
  252. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingArrayFilter.d.ts +7 -0
  253. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingArrayFilter.d.ts.map +1 -0
  254. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingBooleanFilter.d.ts +7 -0
  255. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingBooleanFilter.d.ts.map +1 -0
  256. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingCurrencyFilter.d.ts +10 -0
  257. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingCurrencyFilter.d.ts.map +1 -0
  258. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingDateFilter.d.ts +7 -0
  259. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingDateFilter.d.ts.map +1 -0
  260. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingFloatFilter.d.ts +7 -0
  261. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingFloatFilter.d.ts.map +1 -0
  262. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingMultiSelectFilter.d.ts +7 -0
  263. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingMultiSelectFilter.d.ts.map +1 -0
  264. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingRatingFilter.d.ts +7 -0
  265. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingRatingFilter.d.ts.map +1 -0
  266. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingRawJsonFilter.d.ts +7 -0
  267. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingRawJsonFilter.d.ts.map +1 -0
  268. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingRichTextV2Filter.d.ts +7 -0
  269. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingRichTextV2Filter.d.ts.map +1 -0
  270. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingSelectFilter.d.ts +7 -0
  271. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingSelectFilter.d.ts.map +1 -0
  272. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingStringFilter.d.ts +7 -0
  273. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingStringFilter.d.ts.map +1 -0
  274. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingTSVectorFilter.d.ts +7 -0
  275. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingTSVectorFilter.d.ts.map +1 -0
  276. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingUUIDFilter.d.ts +7 -0
  277. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingUUIDFilter.d.ts.map +1 -0
  278. package/dist/vendor/twenty-shared/utils/format/formatToShortNumber.d.ts +2 -0
  279. package/dist/vendor/twenty-shared/utils/format/formatToShortNumber.d.ts.map +1 -0
  280. package/dist/vendor/twenty-shared/utils/index.d.ts +19 -0
  281. package/dist/vendor/twenty-shared/utils/index.d.ts.map +1 -1
  282. package/dist/vendor/twenty-shared/utils/strings/index.d.ts +1 -0
  283. package/dist/vendor/twenty-shared/utils/strings/index.d.ts.map +1 -1
  284. package/dist/vendor/twenty-shared/utils/strings/pascalCase.d.ts +2 -0
  285. package/dist/vendor/twenty-shared/utils/strings/pascalCase.d.ts.map +1 -0
  286. package/dist/vendor/twenty-shared/utils/strings/stringifySafely.d.ts +2 -0
  287. package/dist/vendor/twenty-shared/utils/strings/stringifySafely.d.ts.map +1 -0
  288. package/dist/vendor/twenty-shared/utils/typeguard/isPlainObject.d.ts +2 -0
  289. package/dist/vendor/twenty-shared/utils/typeguard/isPlainObject.d.ts.map +1 -0
  290. package/dist/vendor/twenty-shared/utils/validation/isValidLocale.d.ts +2 -2
  291. package/dist/vendor/twenty-shared/utils/validation/isValidLocale.d.ts.map +1 -1
  292. package/dist/vendor/twenty-shared/utils/validation/normalizeLocale.d.ts +2 -5
  293. package/dist/vendor/twenty-shared/utils/validation/normalizeLocale.d.ts.map +1 -1
  294. package/dist/vendor/twenty-shared/utils.cjs +2 -2
  295. package/dist/vendor/twenty-shared/utils.mjs +994 -522
  296. package/dist/vendor/twenty-shared/workflow/index.d.ts +4 -0
  297. package/dist/vendor/twenty-shared/workflow/index.d.ts.map +1 -1
  298. package/dist/vendor/twenty-shared/workflow/schemas/code-action-schema.d.ts +2 -3
  299. package/dist/vendor/twenty-shared/workflow/schemas/code-action-schema.d.ts.map +1 -1
  300. package/dist/vendor/twenty-shared/workflow/schemas/code-action-settings-schema.d.ts +2 -3
  301. package/dist/vendor/twenty-shared/workflow/schemas/code-action-settings-schema.d.ts.map +1 -1
  302. package/dist/vendor/twenty-shared/workflow/schemas/logic-function-action-schema.d.ts +29 -0
  303. package/dist/vendor/twenty-shared/workflow/schemas/logic-function-action-schema.d.ts.map +1 -0
  304. package/dist/vendor/twenty-shared/workflow/schemas/logic-function-action-settings-schema.d.ts +18 -0
  305. package/dist/vendor/twenty-shared/workflow/schemas/logic-function-action-settings-schema.d.ts.map +1 -0
  306. package/dist/vendor/twenty-shared/workflow/schemas/send-email-action-schema.d.ts +5 -1
  307. package/dist/vendor/twenty-shared/workflow/schemas/send-email-action-schema.d.ts.map +1 -1
  308. package/dist/vendor/twenty-shared/workflow/schemas/send-email-action-settings-schema.d.ts +5 -1
  309. package/dist/vendor/twenty-shared/workflow/schemas/send-email-action-settings-schema.d.ts.map +1 -1
  310. package/dist/vendor/twenty-shared/workflow/schemas/workflow-action-schema.d.ts +32 -4
  311. package/dist/vendor/twenty-shared/workflow/schemas/workflow-action-schema.d.ts.map +1 -1
  312. package/dist/vendor/twenty-shared/workflow/schemas/workflow-run-schema.d.ts +32 -4
  313. package/dist/vendor/twenty-shared/workflow/schemas/workflow-run-schema.d.ts.map +1 -1
  314. package/dist/vendor/twenty-shared/workflow/schemas/workflow-run-state-schema.d.ts +32 -4
  315. package/dist/vendor/twenty-shared/workflow/schemas/workflow-run-state-schema.d.ts.map +1 -1
  316. package/dist/vendor/twenty-shared/workflow/types/EmailRecipients.d.ts +6 -0
  317. package/dist/vendor/twenty-shared/workflow/types/EmailRecipients.d.ts.map +1 -0
  318. package/dist/vendor/twenty-shared/workflow/utils/variable-path.util.d.ts +12 -0
  319. package/dist/vendor/twenty-shared/workflow/utils/variable-path.util.d.ts.map +1 -0
  320. package/dist/vendor/twenty-shared/workflow.cjs +3 -3
  321. package/dist/vendor/twenty-shared/workflow.mjs +205 -166
  322. package/package.json +39 -15
  323. package/dist/ObjectRecordGroupByDateGranularity-CtpRADP1-Bft-VMSh.mjs +0 -3151
  324. package/dist/ObjectRecordGroupByDateGranularity-CtpRADP1-Duv5iOeZ.js +0 -20
  325. package/dist/application/application-config.d.ts +0 -2
  326. package/dist/application/define-app.d.ts +0 -18
  327. package/dist/application/fields/field.decorator.d.ts +0 -3
  328. package/dist/application/fields/relation.decorator.d.ts +0 -28
  329. package/dist/application/functions/define-function.d.ts +0 -28
  330. package/dist/application/functions/function-config.d.ts +0 -9
  331. package/dist/application/index.d.ts +0 -19
  332. package/dist/application/objects/define-object.d.ts +0 -35
  333. package/dist/application/objects/object.decorator.d.ts +0 -4
  334. package/dist/application/objects/standard-object-ids.d.ts +0 -1
  335. package/dist/application/permission-flag-type.d.ts +0 -1
  336. package/dist/application/role-config.d.ts +0 -2
  337. package/dist/application/roles/define-role.d.ts +0 -26
  338. package/dist/cli/commands/app-add.command.d.ts +0 -13
  339. package/dist/cli/commands/app-dev.command.d.ts +0 -11
  340. package/dist/cli/commands/app-sync.command.d.ts +0 -7
  341. package/dist/cli/commands/app.command.d.ts +0 -10
  342. package/dist/cli/commands/auth.command.d.ts +0 -9
  343. package/dist/cli/services/api.service.d.ts +0 -20
  344. package/dist/cli/utils/config-loader.d.ts +0 -43
  345. package/dist/cli/utils/display-entity-summary.d.ts +0 -2
  346. package/dist/cli/utils/display-errors.d.ts +0 -2
  347. package/dist/cli/utils/display-warnings.d.ts +0 -2
  348. package/dist/cli/utils/get-function-base-file.d.ts +0 -4
  349. package/dist/cli/utils/load-env-variables.d.ts +0 -2
  350. package/dist/cli/utils/load-manifest.d.ts +0 -41
  351. package/dist/cli/utils/validate-manifest.d.ts +0 -22
  352. package/dist/vendor/twenty-shared/ObjectRecordGroupByDateGranularity-BwpmSE4s.js +0 -1
  353. package/dist/vendor/twenty-shared/ObjectRecordGroupByDateGranularity-CtpRADP1.mjs +0 -500
  354. package/dist/vendor/twenty-shared/RatingValues-B_wgYyso.js +0 -1
  355. package/dist/vendor/twenty-shared/RatingValues-DNSj7xKA.mjs +0 -224
  356. package/dist/vendor/twenty-shared/application/applicationManifestType.d.ts +0 -12
  357. package/dist/vendor/twenty-shared/application/applicationManifestType.d.ts.map +0 -1
  358. package/dist/vendor/twenty-shared/application/packageJsonType.d.ts +0 -14
  359. package/dist/vendor/twenty-shared/application/packageJsonType.d.ts.map +0 -1
  360. package/dist/vendor/twenty-shared/application/serverlessFunctionManifestType.d.ts.map +0 -1
  361. package/dist/vendor/twenty-shared/isValidCountryCode-WBKj_GIR.js +0 -4
  362. package/dist/vendor/twenty-shared/metadata/standard-object-ids.d.ts +0 -51
  363. package/dist/vendor/twenty-shared/metadata/standard-object-ids.d.ts.map +0 -1
  364. /package/dist/cli/{types/api-response.types.d.ts → utilities/api/api-response-type.d.ts} +0 -0
  365. /package/dist/cli/{constants → utilities/config}/current-execution-directory.d.ts +0 -0
  366. /package/dist/cli/{utils/convert-to-label.d.ts → utilities/entity/entity-label.d.ts} +0 -0
  367. /package/dist/cli/{utils/get-role-base-file.d.ts → utilities/entity/entity-role-template.d.ts} +0 -0
  368. /package/dist/cli/{utils/find-path-file.d.ts → utilities/file/file-find.d.ts} +0 -0
  369. /package/dist/cli/{utils/format-path.d.ts → utilities/file/file-path.d.ts} +0 -0
  370. /package/dist/cli/{utils/format-and-warn-ts-diagnostics.d.ts → utilities/typescript/typescript-diagnostics.d.ts} +0 -0
  371. /package/dist/{application → sdk/common/types}/syncable-entity-options.type.d.ts +0 -0
  372. /package/dist/{application → sdk}/fields/field-type.d.ts +0 -0
  373. /package/dist/{application → sdk}/fields/on-delete-action.d.ts +0 -0
  374. /package/dist/{application → sdk}/fields/relation-type.d.ts +0 -0
  375. /package/dist/{application/functions → sdk/logic-functions}/triggers/cron-payload-type.d.ts +0 -0
  376. /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, generate, dev sync, one‑off sync, and uninstall
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 Authentication commands
47
- app Application development commands
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 login` — Authenticate with Twenty.
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 logout` — Remove authentication credentials for the active workspace profile.
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 status` — Print the current authentication status (API URL, masked API key, validity).
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 login
95
+ twenty auth:login
76
96
 
77
97
  # Provide values in flags
78
- twenty auth login --api-key $TWENTY_API_KEY --api-url https://api.twenty.com
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 login --workspace my-custom-workspace
101
+ twenty auth:login --workspace my-custom-workspace
82
102
 
83
103
  # Check status
84
- twenty auth status
104
+ twenty auth:status
85
105
 
86
106
  # Logout current profile
87
- twenty auth logout
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 sync [appPath]` — One-time sync of the application to your Twenty workspace.
95
- - Behavior: Compute your application's manifest and send it to your workspace to sync your application
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 dev [appPath]` — Watch and sync local application changes.
98
- - Options:
99
- - `-d, --debounce <ms>`: Debounce delay in milliseconds (default: `1000`).
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
- - `twenty app uninstall [appPath]` — Uninstall the application from the current workspace.
103
- - Note: `twenty app delete` exists as a hidden alias for backward compatibility.
130
+ ### Entity
104
131
 
105
- - `twenty app add [entityType]` — Add a new entity to your application.
132
+ - `twenty entity:add [entityType]` — Add a new entity to your application.
106
133
  - Arguments:
107
- - `entityType`: one of `function` or `object`. If omitted, an interactive prompt is shown.
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 new object definition file.
112
- - `function`: prompts for a name and scaffolds a serverless function file.
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
- - `twenty app generate [appPath]` — Generate the typed Twenty client for your application.
143
+ ### Function
115
144
 
116
- - `twenty app logs [appPath]` — Stream application function logs.
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 with default debounce
125
- twenty app dev
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 dev --workspace my-custom-workspace
162
+ # Start dev mode with a custom workspace profile
163
+ twenty app:dev --workspace my-custom-workspace
129
164
 
130
- # Dev mode with custom debounce
131
- twenty app dev --debounce 1500
165
+ # Add a new entity interactively
166
+ twenty entity:add
132
167
 
133
- # One-time sync of the current directory
134
- twenty app sync
168
+ # Add a new function
169
+ twenty entity:add function
135
170
 
136
- # Add a new object interactively
137
- twenty app add
171
+ # Add a new front component
172
+ twenty entity:add front-component
138
173
 
139
174
  # Generate client types
140
- twenty app generate
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 app logs
181
+ twenty function:logs
144
182
 
145
183
  # Watch logs for a specific function by name
146
- twenty app logs -n my-function
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 login` writes the `apiUrl` and `apiKey` for the default profile.
177
- - `twenty auth login --workspace custom-workspace` writes the `apiUrl` and `apiKey` for a custom `custom-workspace` profile.
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 login` again and ensure the API key has the required permissions.
182
- - Typings out of date: run `twenty app generate` to refresh the client and types.
183
- - Not seeing changes in dev: make sure dev mode is running (`twenty app dev`).
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
+ };