twenty-sdk 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +139 -44
- package/dist/HtmlTagToRemoteComponent-Bd5sgek2.js +1 -0
- package/dist/HtmlTagToRemoteComponent-DlsAI7JU.mjs +146 -0
- package/dist/RatingValues-CT-y6O0b-CsGZSJKO.mjs +402 -0
- package/dist/RatingValues-CT-y6O0b-D7JSZAMu.js +1 -0
- package/dist/cli/commands/app/app-dev.d.ts +25 -0
- package/dist/cli/commands/{app-generate.command.d.ts → app/app-generate.d.ts} +1 -1
- package/dist/cli/commands/{app-uninstall.command.d.ts → app/app-uninstall.d.ts} +1 -1
- package/dist/cli/commands/app-command.d.ts +2 -0
- package/dist/cli/commands/auth/auth-list.d.ts +4 -0
- package/dist/cli/commands/auth/auth-login.d.ts +8 -0
- package/dist/cli/commands/auth/auth-logout.d.ts +4 -0
- package/dist/cli/commands/auth/auth-status.d.ts +5 -0
- package/dist/cli/commands/auth/auth-switch.d.ts +7 -0
- package/dist/cli/commands/entity/entity-add.d.ts +12 -0
- package/dist/cli/commands/logic-function/logic-function-execute.d.ts +10 -0
- package/dist/cli/commands/{app-logs.command.d.ts → logic-function/logic-function-logs.d.ts} +1 -1
- package/dist/cli/utilities/api/api-service.d.ts +51 -0
- package/dist/cli/utilities/build/common/cleanup-removed-files.d.ts +1 -0
- package/dist/cli/utilities/build/common/esbuild-result-processor.d.ts +11 -0
- package/dist/cli/utilities/build/common/esbuild-watcher.d.ts +37 -0
- package/dist/cli/utilities/build/common/file-upload-watcher.d.ts +24 -0
- package/dist/cli/utilities/build/common/front-component-build/jsx-transform-to-remote-dom-worker-format-plugin.d.ts +3 -0
- package/dist/cli/utilities/build/common/front-component-build/react-globals-plugin.d.ts +2 -0
- package/dist/cli/utilities/build/common/front-component-build/types/ParsedImportSpecifier.d.ts +4 -0
- package/dist/cli/utilities/build/common/front-component-build/utils/extract-names-from-import-specifier.d.ts +2 -0
- package/dist/cli/utilities/build/common/front-component-build/utils/replace-html-tags-with-remote-components.d.ts +1 -0
- package/dist/cli/utilities/build/common/front-component-build/utils/unwrap-define-front-component-to-direct-export.d.ts +1 -0
- package/dist/cli/utilities/build/common/restartable-watcher-interface.d.ts +25 -0
- package/dist/cli/utilities/build/manifest/manifest-build.d.ts +7 -0
- package/dist/cli/utilities/build/manifest/manifest-extract-config-from-file.d.ts +5 -0
- package/dist/cli/utilities/build/manifest/manifest-extract-config.d.ts +20 -0
- package/dist/cli/utilities/build/manifest/manifest-types.d.ts +4 -0
- package/dist/cli/utilities/build/manifest/manifest-update-checksums.d.ts +17 -0
- package/dist/cli/utilities/build/manifest/manifest-validate.d.ts +6 -0
- package/dist/cli/utilities/build/manifest/manifest-watcher.d.ts +12 -0
- package/dist/cli/utilities/build/manifest/manifest-writer.d.ts +2 -0
- package/dist/cli/{services/generate.service.d.ts → utilities/client/client-service.d.ts} +2 -2
- package/dist/cli/{services/config.service.d.ts → utilities/config/config-service.d.ts} +4 -0
- package/dist/cli/utilities/dev/dev-mode-orchestrator.d.ts +42 -0
- package/dist/cli/utilities/dev/dev-ui-state-manager.d.ts +31 -0
- package/dist/cli/utilities/dev/dev-ui-state.d.ts +27 -0
- package/dist/cli/utilities/dev/dev-ui.d.ts +4 -0
- package/dist/cli/utilities/entity/entity-field-template.d.ts +11 -0
- package/dist/cli/utilities/entity/entity-front-component-template.d.ts +4 -0
- package/dist/cli/utilities/entity/entity-logic-function-template.d.ts +4 -0
- package/dist/cli/{utils/get-new-object-file-content.d.ts → utilities/entity/entity-object-template.d.ts} +1 -1
- package/dist/cli/{utils/jsonc-parser.d.ts → utilities/file/file-jsonc.d.ts} +1 -5
- package/dist/cli/utilities/file/file-tarball.d.ts +16 -0
- package/dist/cli/utilities/file/file-uploader.d.ts +14 -0
- package/dist/cli/{utils/get-ts-program-and-diagnostics.d.ts → utilities/typescript/typescript-program.d.ts} +1 -1
- package/dist/cli.cjs +280 -179
- package/dist/cli.mjs +11094 -9467
- package/dist/front-component/host/components/FrontComponentRenderer.d.ts +8 -0
- package/dist/front-component/host/generated/host-component-registry.d.ts +4 -0
- package/dist/front-component/host/generated/host-index.d.ts +1 -0
- package/dist/front-component/index.d.ts +10 -0
- package/dist/front-component/remote/components/FrontComponentWorkerEffect.d.ts +8 -0
- package/dist/front-component/remote/generated/remote-components.d.ts +44 -0
- package/dist/front-component/remote/generated/remote-elements.d.ts +195 -0
- package/dist/front-component/remote/generated/remote-index.d.ts +2 -0
- package/dist/front-component/remote/mock/mock-front-component.d.ts +3 -0
- package/dist/front-component/remote/worker/createRemoteWorker.d.ts +1 -0
- package/dist/front-component/remote/worker/remote-worker.d.ts +0 -0
- package/dist/front-component/types/HostToWorkerRenderContext.d.ts +3 -0
- package/dist/front-component/types/PropertySchema.d.ts +4 -0
- package/dist/front-component/types/WorkerExports.d.ts +5 -0
- package/dist/front-component-constants/AllowedHtmlElements.d.ts +11 -0
- package/dist/front-component-constants/AllowedUiComponents.d.ts +9 -0
- package/dist/front-component-constants/CommonHtmlEvents.d.ts +1 -0
- package/dist/front-component-constants/EventToReact.d.ts +1 -0
- package/dist/front-component-constants/HtmlCommonProperties.d.ts +2 -0
- package/dist/front-component-constants/HtmlTagToRemoteComponent.d.ts +1 -0
- package/dist/front-component-constants/index.d.ts +8 -0
- package/dist/front-component-constants.cjs +1 -0
- package/dist/front-component-constants.mjs +77 -0
- package/dist/front-component.cjs +328 -0
- package/dist/front-component.mjs +42579 -0
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +2183 -242
- package/dist/jsx-runtime-C9ldtZbm.mjs +10472 -0
- package/dist/jsx-runtime-CfccAQK_.js +54 -0
- package/dist/sdk/application/application-config.d.ts +2 -0
- package/dist/sdk/application/define-application.d.ts +3 -0
- package/dist/sdk/common/types/define-entity.type.d.ts +11 -0
- package/dist/sdk/common/utils/create-validation-result.d.ts +5 -0
- package/dist/{application → sdk}/fields/composite-fields.d.ts +1 -1
- package/dist/sdk/fields/define-field.d.ts +3 -0
- package/dist/sdk/fields/validate-fields.d.ts +2 -0
- package/dist/sdk/front-components/define-front-component.d.ts +3 -0
- package/dist/sdk/front-components/front-component-config.d.ts +5 -0
- package/dist/sdk/index.d.ts +22 -0
- package/dist/sdk/logic-functions/define-logic-function.d.ts +3 -0
- package/dist/sdk/logic-functions/logic-function-config.d.ts +6 -0
- package/dist/sdk/logic-functions/triggers/route-payload-type.d.ts +1 -0
- package/dist/sdk/objects/define-object.d.ts +3 -0
- package/dist/sdk/objects/standard-object-ids.d.ts +1 -0
- package/dist/sdk/roles/define-role.d.ts +3 -0
- package/dist/sdk/roles/permission-flag-type.d.ts +1 -0
- package/dist/types-Bg4PAegr.js +1 -0
- package/dist/types-DVJsIqkp.mjs +7 -0
- package/dist/vendor/twenty-shared/ObjectRecordGroupByDateGranularity-BZ0Penru.js +1 -0
- package/dist/vendor/twenty-shared/ObjectRecordGroupByDateGranularity-DmLx4uDl.mjs +263 -0
- package/dist/vendor/twenty-shared/RatingValues-Bd_cXQ5v.js +1 -0
- package/dist/vendor/twenty-shared/RatingValues-CT-y6O0b.mjs +388 -0
- package/dist/vendor/twenty-shared/application/applicationType.d.ts +17 -4
- package/dist/vendor/twenty-shared/application/applicationType.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/application/assetManifestType.d.ts +7 -0
- package/dist/vendor/twenty-shared/application/assetManifestType.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/application/constants/AssetDirectory.d.ts +2 -0
- package/dist/vendor/twenty-shared/application/constants/AssetDirectory.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/application/constants/GeneratedDirectory.d.ts +2 -0
- package/dist/vendor/twenty-shared/application/constants/GeneratedDirectory.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/application/constants/OutputDirectory.d.ts +2 -0
- package/dist/vendor/twenty-shared/application/constants/OutputDirectory.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/application/enums/syncable-entities.enum.d.ts +8 -0
- package/dist/vendor/twenty-shared/application/enums/syncable-entities.enum.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/application/fieldManifestType.d.ts +12 -1
- package/dist/vendor/twenty-shared/application/fieldManifestType.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/application/frontComponentManifestType.d.ts +10 -0
- package/dist/vendor/twenty-shared/application/frontComponentManifestType.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/application/index.d.ts +11 -5
- package/dist/vendor/twenty-shared/application/index.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/application/{serverlessFunctionManifestType.d.ts → logicFunctionManifestType.d.ts} +9 -5
- package/dist/vendor/twenty-shared/application/logicFunctionManifestType.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/application/manifestType.d.ts +20 -0
- package/dist/vendor/twenty-shared/application/manifestType.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/application/objectFieldManifest.type.d.ts +5 -0
- package/dist/vendor/twenty-shared/application/objectFieldManifest.type.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/application/objectManifestType.d.ts +2 -2
- package/dist/vendor/twenty-shared/application/objectManifestType.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/application/roleManifestType.d.ts +3 -18
- package/dist/vendor/twenty-shared/application/roleManifestType.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/application.cjs +1 -1
- package/dist/vendor/twenty-shared/application.mjs +8 -3
- package/dist/vendor/twenty-shared/constants/DocumentationBaseUrl.d.ts +2 -0
- package/dist/vendor/twenty-shared/constants/DocumentationBaseUrl.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/constants/DocumentationDefaultLanguage.d.ts +2 -0
- package/dist/vendor/twenty-shared/constants/DocumentationDefaultLanguage.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/constants/DocumentationDefaultPath.d.ts +2 -0
- package/dist/vendor/twenty-shared/constants/DocumentationDefaultPath.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/constants/DocumentationPaths.d.ts +165 -0
- package/dist/vendor/twenty-shared/constants/DocumentationPaths.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/constants/DocumentationSupportedLanguages.d.ts +3 -0
- package/dist/vendor/twenty-shared/constants/DocumentationSupportedLanguages.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/constants/FilesFieldMaxNumberOfValues.d.ts +2 -0
- package/dist/vendor/twenty-shared/constants/FilesFieldMaxNumberOfValues.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/constants/PermissionFlagType.d.ts +1 -0
- package/dist/vendor/twenty-shared/constants/PermissionFlagType.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/constants/index.d.ts +8 -0
- package/dist/vendor/twenty-shared/constants/index.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/constants.cjs +1 -1
- package/dist/vendor/twenty-shared/constants.mjs +56 -35
- package/dist/vendor/twenty-shared/database-events/database-event-payload.type.d.ts +1 -1
- package/dist/vendor/twenty-shared/database-events/database-event-payload.type.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/database-events/object-record-delete.event.d.ts +4 -0
- package/dist/vendor/twenty-shared/database-events/object-record-delete.event.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/database-events/object-record-restore.event.d.ts +4 -0
- package/dist/vendor/twenty-shared/database-events/object-record-restore.event.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/database-events/object-record-update.event.d.ts +3 -3
- package/dist/vendor/twenty-shared/database-events/object-record-update.event.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/isValidCountryCode-D-UqlXRW.js +4 -0
- package/dist/vendor/twenty-shared/{isValidCountryCode-E35rsxfD.mjs → isValidCountryCode-Dyji5s5r.mjs} +2351 -2320
- package/dist/vendor/twenty-shared/metadata/MetadataValidationError.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/metadata/all-metadata-name.constant.d.ts +5 -4
- package/dist/vendor/twenty-shared/metadata/all-metadata-name.constant.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/metadata/index.d.ts +1 -1
- package/dist/vendor/twenty-shared/metadata/index.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/metadata/standard-object.constant.d.ts +2196 -0
- package/dist/vendor/twenty-shared/metadata/standard-object.constant.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/metadata.cjs +1 -1
- package/dist/vendor/twenty-shared/metadata.mjs +2025 -69
- package/dist/vendor/twenty-shared/translations/constants/AppLocales.d.ts +1 -0
- package/dist/vendor/twenty-shared/translations/constants/AppLocales.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/translations/index.d.ts +1 -0
- package/dist/vendor/twenty-shared/translations/index.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/translations.cjs +1 -1
- package/dist/vendor/twenty-shared/translations.mjs +2 -2
- package/dist/vendor/twenty-shared/types/ExtractSerializedRelationProperties.type.d.ts +6 -0
- package/dist/vendor/twenty-shared/types/ExtractSerializedRelationProperties.type.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/FieldMetadataDefaultValue.d.ts +44 -88
- package/dist/vendor/twenty-shared/types/FieldMetadataDefaultValue.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/types/FieldMetadataOptions.d.ts +2 -1
- package/dist/vendor/twenty-shared/types/FieldMetadataOptions.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/types/FieldMetadataSettings.d.ts +15 -9
- package/dist/vendor/twenty-shared/types/FieldMetadataSettings.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/types/FieldMetadataType.d.ts +18 -17
- package/dist/vendor/twenty-shared/types/FieldMetadataType.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/types/FileCategory.d.ts +12 -0
- package/dist/vendor/twenty-shared/types/FileCategory.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/FileFolder.d.ts +14 -0
- package/dist/vendor/twenty-shared/types/FileFolder.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/IsEmptyObject.type.d.ts +2 -0
- package/dist/vendor/twenty-shared/types/IsEmptyObject.type.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/IsEmptyRecord.type.d.ts +1 -1
- package/dist/vendor/twenty-shared/types/IsEmptyRecord.type.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/types/IsNever.type.d.ts +2 -0
- package/dist/vendor/twenty-shared/types/IsNever.type.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/IsSerializedRelation.type.d.ts +4 -0
- package/dist/vendor/twenty-shared/types/IsSerializedRelation.type.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/LogicFunctionEvent.d.ts +28 -0
- package/dist/vendor/twenty-shared/types/LogicFunctionEvent.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/ObjectPermissions.d.ts +4 -0
- package/dist/vendor/twenty-shared/types/ObjectPermissions.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/types/OrderBy.d.ts +2 -0
- package/dist/vendor/twenty-shared/types/OrderBy.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/QueryCursorDirection.d.ts +2 -0
- package/dist/vendor/twenty-shared/types/QueryCursorDirection.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/RecordGqlFieldsDeprecated.d.ts +2 -0
- package/dist/vendor/twenty-shared/types/RecordGqlFieldsDeprecated.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/RecordGqlOperationGqlRecordFields.d.ts +4 -0
- package/dist/vendor/twenty-shared/types/RecordGqlOperationGqlRecordFields.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/RecordGqlOperationOrderBy.d.ts +10 -0
- package/dist/vendor/twenty-shared/types/RecordGqlOperationOrderBy.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/RecordGqlOperationSignature.d.ts +9 -0
- package/dist/vendor/twenty-shared/types/RecordGqlOperationSignature.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/RecordGqlOperationVariables.d.ts +14 -0
- package/dist/vendor/twenty-shared/types/RecordGqlOperationVariables.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/RowLevelPermissionPredicate.d.ts +15 -0
- package/dist/vendor/twenty-shared/types/RowLevelPermissionPredicate.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/RowLevelPermissionPredicateGroup.d.ts +11 -0
- package/dist/vendor/twenty-shared/types/RowLevelPermissionPredicateGroup.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/RowLevelPermissionPredicateGroupLogicalOperator.d.ts +5 -0
- package/dist/vendor/twenty-shared/types/RowLevelPermissionPredicateGroupLogicalOperator.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/RowLevelPermissionPredicateOperand.d.ts +19 -0
- package/dist/vendor/twenty-shared/types/RowLevelPermissionPredicateOperand.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/RowLevelPermissionPredicateValue.d.ts +6 -0
- package/dist/vendor/twenty-shared/types/RowLevelPermissionPredicateValue.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/SerializedRelation.type.d.ts +5 -0
- package/dist/vendor/twenty-shared/types/SerializedRelation.type.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/SettingsPath.d.ts +5 -4
- package/dist/vendor/twenty-shared/types/SettingsPath.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/types/__tests__/extract-serialized-relation-properties.type-test.d.ts +2 -0
- package/dist/vendor/twenty-shared/types/__tests__/extract-serialized-relation-properties.type-test.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/index.d.ts +29 -4
- package/dist/vendor/twenty-shared/types/index.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/types/page-layout/PageLayoutTabLayoutMode.d.ts +6 -0
- package/dist/vendor/twenty-shared/types/page-layout/PageLayoutTabLayoutMode.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/page-layout/PageLayoutWidgetConditionalDisplay.d.ts +2 -0
- package/dist/vendor/twenty-shared/types/page-layout/PageLayoutWidgetConditionalDisplay.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/page-layout/page-layout-widget-position.type.d.ts +18 -0
- package/dist/vendor/twenty-shared/types/page-layout/page-layout-widget-position.type.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types.cjs +1 -1
- package/dist/vendor/twenty-shared/types.mjs +85 -76
- package/dist/vendor/twenty-shared/utils/array/compareArraysOfObjectsByProperty.d.ts +2 -0
- package/dist/vendor/twenty-shared/utils/array/compareArraysOfObjectsByProperty.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/files/extractFolderPathFilenameAndTypeOrThrow.util.d.ts +6 -0
- package/dist/vendor/twenty-shared/utils/files/extractFolderPathFilenameAndTypeOrThrow.util.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/filter/index.d.ts +13 -0
- package/dist/vendor/twenty-shared/utils/filter/index.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingArrayFilter.d.ts +7 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingArrayFilter.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingBooleanFilter.d.ts +7 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingBooleanFilter.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingCurrencyFilter.d.ts +10 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingCurrencyFilter.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingDateFilter.d.ts +7 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingDateFilter.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingFloatFilter.d.ts +7 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingFloatFilter.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingMultiSelectFilter.d.ts +7 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingMultiSelectFilter.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingRatingFilter.d.ts +7 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingRatingFilter.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingRawJsonFilter.d.ts +7 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingRawJsonFilter.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingRichTextV2Filter.d.ts +7 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingRichTextV2Filter.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingSelectFilter.d.ts +7 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingSelectFilter.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingStringFilter.d.ts +7 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingStringFilter.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingTSVectorFilter.d.ts +7 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingTSVectorFilter.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingUUIDFilter.d.ts +7 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingUUIDFilter.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/format/formatToShortNumber.d.ts +2 -0
- package/dist/vendor/twenty-shared/utils/format/formatToShortNumber.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/index.d.ts +19 -0
- package/dist/vendor/twenty-shared/utils/index.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/utils/strings/index.d.ts +1 -0
- package/dist/vendor/twenty-shared/utils/strings/index.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/utils/strings/pascalCase.d.ts +2 -0
- package/dist/vendor/twenty-shared/utils/strings/pascalCase.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/strings/stringifySafely.d.ts +2 -0
- package/dist/vendor/twenty-shared/utils/strings/stringifySafely.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/typeguard/isPlainObject.d.ts +2 -0
- package/dist/vendor/twenty-shared/utils/typeguard/isPlainObject.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/validation/isValidLocale.d.ts +2 -2
- package/dist/vendor/twenty-shared/utils/validation/isValidLocale.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/utils/validation/normalizeLocale.d.ts +2 -5
- package/dist/vendor/twenty-shared/utils/validation/normalizeLocale.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/utils.cjs +2 -2
- package/dist/vendor/twenty-shared/utils.mjs +994 -522
- package/dist/vendor/twenty-shared/workflow/index.d.ts +4 -0
- package/dist/vendor/twenty-shared/workflow/index.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/workflow/schemas/code-action-schema.d.ts +2 -3
- package/dist/vendor/twenty-shared/workflow/schemas/code-action-schema.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/workflow/schemas/code-action-settings-schema.d.ts +2 -3
- package/dist/vendor/twenty-shared/workflow/schemas/code-action-settings-schema.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/workflow/schemas/logic-function-action-schema.d.ts +29 -0
- package/dist/vendor/twenty-shared/workflow/schemas/logic-function-action-schema.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/workflow/schemas/logic-function-action-settings-schema.d.ts +18 -0
- package/dist/vendor/twenty-shared/workflow/schemas/logic-function-action-settings-schema.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/workflow/schemas/send-email-action-schema.d.ts +5 -1
- package/dist/vendor/twenty-shared/workflow/schemas/send-email-action-schema.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/workflow/schemas/send-email-action-settings-schema.d.ts +5 -1
- package/dist/vendor/twenty-shared/workflow/schemas/send-email-action-settings-schema.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/workflow/schemas/workflow-action-schema.d.ts +32 -4
- package/dist/vendor/twenty-shared/workflow/schemas/workflow-action-schema.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/workflow/schemas/workflow-run-schema.d.ts +32 -4
- package/dist/vendor/twenty-shared/workflow/schemas/workflow-run-schema.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/workflow/schemas/workflow-run-state-schema.d.ts +32 -4
- package/dist/vendor/twenty-shared/workflow/schemas/workflow-run-state-schema.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/workflow/types/EmailRecipients.d.ts +6 -0
- package/dist/vendor/twenty-shared/workflow/types/EmailRecipients.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/workflow/utils/variable-path.util.d.ts +12 -0
- package/dist/vendor/twenty-shared/workflow/utils/variable-path.util.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/workflow.cjs +3 -3
- package/dist/vendor/twenty-shared/workflow.mjs +205 -166
- package/package.json +39 -15
- package/dist/ObjectRecordGroupByDateGranularity-CtpRADP1-Bft-VMSh.mjs +0 -3151
- package/dist/ObjectRecordGroupByDateGranularity-CtpRADP1-Duv5iOeZ.js +0 -20
- package/dist/application/application-config.d.ts +0 -2
- package/dist/application/define-app.d.ts +0 -18
- package/dist/application/fields/field.decorator.d.ts +0 -3
- package/dist/application/fields/relation.decorator.d.ts +0 -28
- package/dist/application/functions/define-function.d.ts +0 -28
- package/dist/application/functions/function-config.d.ts +0 -9
- package/dist/application/index.d.ts +0 -19
- package/dist/application/objects/define-object.d.ts +0 -35
- package/dist/application/objects/object.decorator.d.ts +0 -4
- package/dist/application/objects/standard-object-ids.d.ts +0 -1
- package/dist/application/permission-flag-type.d.ts +0 -1
- package/dist/application/role-config.d.ts +0 -2
- package/dist/application/roles/define-role.d.ts +0 -26
- package/dist/cli/commands/app-add.command.d.ts +0 -13
- package/dist/cli/commands/app-dev.command.d.ts +0 -11
- package/dist/cli/commands/app-sync.command.d.ts +0 -7
- package/dist/cli/commands/app.command.d.ts +0 -10
- package/dist/cli/commands/auth.command.d.ts +0 -9
- package/dist/cli/services/api.service.d.ts +0 -20
- package/dist/cli/utils/config-loader.d.ts +0 -43
- package/dist/cli/utils/display-entity-summary.d.ts +0 -2
- package/dist/cli/utils/display-errors.d.ts +0 -2
- package/dist/cli/utils/display-warnings.d.ts +0 -2
- package/dist/cli/utils/get-function-base-file.d.ts +0 -4
- package/dist/cli/utils/load-env-variables.d.ts +0 -2
- package/dist/cli/utils/load-manifest.d.ts +0 -41
- package/dist/cli/utils/validate-manifest.d.ts +0 -22
- package/dist/vendor/twenty-shared/ObjectRecordGroupByDateGranularity-BwpmSE4s.js +0 -1
- package/dist/vendor/twenty-shared/ObjectRecordGroupByDateGranularity-CtpRADP1.mjs +0 -500
- package/dist/vendor/twenty-shared/RatingValues-B_wgYyso.js +0 -1
- package/dist/vendor/twenty-shared/RatingValues-DNSj7xKA.mjs +0 -224
- package/dist/vendor/twenty-shared/application/applicationManifestType.d.ts +0 -12
- package/dist/vendor/twenty-shared/application/applicationManifestType.d.ts.map +0 -1
- package/dist/vendor/twenty-shared/application/packageJsonType.d.ts +0 -14
- package/dist/vendor/twenty-shared/application/packageJsonType.d.ts.map +0 -1
- package/dist/vendor/twenty-shared/application/serverlessFunctionManifestType.d.ts.map +0 -1
- package/dist/vendor/twenty-shared/isValidCountryCode-WBKj_GIR.js +0 -4
- package/dist/vendor/twenty-shared/metadata/standard-object-ids.d.ts +0 -51
- package/dist/vendor/twenty-shared/metadata/standard-object-ids.d.ts.map +0 -1
- /package/dist/cli/{types/api-response.types.d.ts → utilities/api/api-response-type.d.ts} +0 -0
- /package/dist/cli/{constants → utilities/config}/current-execution-directory.d.ts +0 -0
- /package/dist/cli/{utils/convert-to-label.d.ts → utilities/entity/entity-label.d.ts} +0 -0
- /package/dist/cli/{utils/get-role-base-file.d.ts → utilities/entity/entity-role-template.d.ts} +0 -0
- /package/dist/cli/{utils/find-path-file.d.ts → utilities/file/file-find.d.ts} +0 -0
- /package/dist/cli/{utils/format-path.d.ts → utilities/file/file-path.d.ts} +0 -0
- /package/dist/cli/{utils/format-and-warn-ts-diagnostics.d.ts → utilities/typescript/typescript-diagnostics.d.ts} +0 -0
- /package/dist/{application → sdk/common/types}/syncable-entity-options.type.d.ts +0 -0
- /package/dist/{application → sdk}/fields/field-type.d.ts +0 -0
- /package/dist/{application → sdk}/fields/on-delete-action.d.ts +0 -0
- /package/dist/{application → sdk}/fields/relation-type.d.ts +0 -0
- /package/dist/{application/functions → sdk/logic-functions}/triggers/cron-payload-type.d.ts +0 -0
- /package/dist/{application/functions → sdk/logic-functions}/triggers/database-event-payload-type.d.ts +0 -0
|
@@ -0,0 +1,402 @@
|
|
|
1
|
+
import { z as s } from "zod";
|
|
2
|
+
let d;
|
|
3
|
+
const t = new Uint8Array(16);
|
|
4
|
+
function u() {
|
|
5
|
+
if (!d && (d = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !d))
|
|
6
|
+
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
7
|
+
return d(t);
|
|
8
|
+
}
|
|
9
|
+
const n = [];
|
|
10
|
+
for (let a = 0; a < 256; ++a)
|
|
11
|
+
n.push((a + 256).toString(16).slice(1));
|
|
12
|
+
function E(a, l = 0) {
|
|
13
|
+
return n[a[l + 0]] + n[a[l + 1]] + n[a[l + 2]] + n[a[l + 3]] + "-" + n[a[l + 4]] + n[a[l + 5]] + "-" + n[a[l + 6]] + n[a[l + 7]] + "-" + n[a[l + 8]] + n[a[l + 9]] + "-" + n[a[l + 10]] + n[a[l + 11]] + n[a[l + 12]] + n[a[l + 13]] + n[a[l + 14]] + n[a[l + 15]];
|
|
14
|
+
}
|
|
15
|
+
const R = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), b = {
|
|
16
|
+
randomUUID: R
|
|
17
|
+
};
|
|
18
|
+
function T(a, l, L) {
|
|
19
|
+
if (b.randomUUID && !a)
|
|
20
|
+
return b.randomUUID();
|
|
21
|
+
a = a || {};
|
|
22
|
+
const r = a.random || (a.rng || u)();
|
|
23
|
+
return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, E(r);
|
|
24
|
+
}
|
|
25
|
+
var e = /* @__PURE__ */ ((a) => (a.ACTOR = "ACTOR", a.ADDRESS = "ADDRESS", a.ARRAY = "ARRAY", a.BOOLEAN = "BOOLEAN", a.CURRENCY = "CURRENCY", a.DATE = "DATE", a.DATE_TIME = "DATE_TIME", a.EMAILS = "EMAILS", a.FILES = "FILES", a.FULL_NAME = "FULL_NAME", a.LINKS = "LINKS", a.MORPH_RELATION = "MORPH_RELATION", a.MULTI_SELECT = "MULTI_SELECT", a.NUMBER = "NUMBER", a.NUMERIC = "NUMERIC", a.PHONES = "PHONES", a.POSITION = "POSITION", a.RATING = "RATING", a.RAW_JSON = "RAW_JSON", a.RELATION = "RELATION", a.RICH_TEXT = "RICH_TEXT", a.RICH_TEXT_V2 = "RICH_TEXT_V2", a.SELECT = "SELECT", a.TEXT = "TEXT", a.TS_VECTOR = "TS_VECTOR", a.UUID = "UUID", a))(e || {}), o = /* @__PURE__ */ ((a) => (a.EMAIL = "EMAIL", a.CALENDAR = "CALENDAR", a.WORKFLOW = "WORKFLOW", a.AGENT = "AGENT", a.API = "API", a.IMPORT = "IMPORT", a.MANUAL = "MANUAL", a.SYSTEM = "SYSTEM", a.WEBHOOK = "WEBHOOK", a.APPLICATION = "APPLICATION", a))(o || {});
|
|
26
|
+
const p = {
|
|
27
|
+
type: e.ACTOR,
|
|
28
|
+
properties: [
|
|
29
|
+
{
|
|
30
|
+
name: "source",
|
|
31
|
+
type: e.SELECT,
|
|
32
|
+
hidden: !1,
|
|
33
|
+
isRequired: !0,
|
|
34
|
+
options: Object.keys(o).map(
|
|
35
|
+
(a, l) => ({
|
|
36
|
+
id: T(),
|
|
37
|
+
// @ts-expect-error legacy noImplicitAny
|
|
38
|
+
label: `${o[a].toLowerCase()}`,
|
|
39
|
+
value: a,
|
|
40
|
+
position: l
|
|
41
|
+
})
|
|
42
|
+
)
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
name: "workspaceMemberId",
|
|
46
|
+
type: e.UUID,
|
|
47
|
+
hidden: "input",
|
|
48
|
+
isRequired: !1
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: "name",
|
|
52
|
+
type: e.TEXT,
|
|
53
|
+
hidden: "input",
|
|
54
|
+
isRequired: !0
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
name: "context",
|
|
58
|
+
type: e.RAW_JSON,
|
|
59
|
+
hidden: !1,
|
|
60
|
+
isRequired: !1
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
}, A = {
|
|
64
|
+
type: e.ADDRESS,
|
|
65
|
+
properties: [
|
|
66
|
+
{
|
|
67
|
+
name: "addressStreet1",
|
|
68
|
+
type: e.TEXT,
|
|
69
|
+
hidden: !1,
|
|
70
|
+
isRequired: !1
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
name: "addressStreet2",
|
|
74
|
+
type: e.TEXT,
|
|
75
|
+
hidden: !1,
|
|
76
|
+
isRequired: !1
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
name: "addressCity",
|
|
80
|
+
type: e.TEXT,
|
|
81
|
+
hidden: !1,
|
|
82
|
+
isRequired: !1
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: "addressPostcode",
|
|
86
|
+
type: e.TEXT,
|
|
87
|
+
hidden: !1,
|
|
88
|
+
isRequired: !1
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
name: "addressState",
|
|
92
|
+
type: e.TEXT,
|
|
93
|
+
hidden: !1,
|
|
94
|
+
isRequired: !1
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
name: "addressCountry",
|
|
98
|
+
type: e.TEXT,
|
|
99
|
+
hidden: !1,
|
|
100
|
+
isRequired: !1
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
name: "addressLat",
|
|
104
|
+
type: e.NUMERIC,
|
|
105
|
+
hidden: !1,
|
|
106
|
+
isRequired: !1
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
name: "addressLng",
|
|
110
|
+
type: e.NUMERIC,
|
|
111
|
+
hidden: !1,
|
|
112
|
+
isRequired: !1
|
|
113
|
+
}
|
|
114
|
+
]
|
|
115
|
+
}, S = {
|
|
116
|
+
type: e.CURRENCY,
|
|
117
|
+
properties: [
|
|
118
|
+
{
|
|
119
|
+
name: "amountMicros",
|
|
120
|
+
type: e.NUMERIC,
|
|
121
|
+
hidden: !1,
|
|
122
|
+
isRequired: !1
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
name: "currencyCode",
|
|
126
|
+
type: e.TEXT,
|
|
127
|
+
hidden: !1,
|
|
128
|
+
isRequired: !1
|
|
129
|
+
}
|
|
130
|
+
]
|
|
131
|
+
}, N = {
|
|
132
|
+
type: e.EMAILS,
|
|
133
|
+
properties: [
|
|
134
|
+
{
|
|
135
|
+
name: "primaryEmail",
|
|
136
|
+
type: e.TEXT,
|
|
137
|
+
hidden: !1,
|
|
138
|
+
isRequired: !1,
|
|
139
|
+
isIncludedInUniqueConstraint: !0
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
name: "additionalEmails",
|
|
143
|
+
type: e.RAW_JSON,
|
|
144
|
+
hidden: !1,
|
|
145
|
+
isRequired: !1
|
|
146
|
+
}
|
|
147
|
+
]
|
|
148
|
+
}, m = {
|
|
149
|
+
type: e.FULL_NAME,
|
|
150
|
+
properties: [
|
|
151
|
+
{
|
|
152
|
+
name: "firstName",
|
|
153
|
+
type: e.TEXT,
|
|
154
|
+
hidden: !1,
|
|
155
|
+
isRequired: !1,
|
|
156
|
+
isIncludedInUniqueConstraint: !1
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
name: "lastName",
|
|
160
|
+
type: e.TEXT,
|
|
161
|
+
hidden: !1,
|
|
162
|
+
isRequired: !1,
|
|
163
|
+
isIncludedInUniqueConstraint: !1
|
|
164
|
+
}
|
|
165
|
+
]
|
|
166
|
+
}, I = {
|
|
167
|
+
type: e.LINKS,
|
|
168
|
+
properties: [
|
|
169
|
+
{
|
|
170
|
+
name: "primaryLinkLabel",
|
|
171
|
+
type: e.TEXT,
|
|
172
|
+
hidden: !1,
|
|
173
|
+
isRequired: !1
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
name: "primaryLinkUrl",
|
|
177
|
+
type: e.TEXT,
|
|
178
|
+
hidden: !1,
|
|
179
|
+
isRequired: !1,
|
|
180
|
+
isIncludedInUniqueConstraint: !0
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
name: "secondaryLinks",
|
|
184
|
+
type: e.RAW_JSON,
|
|
185
|
+
hidden: !1,
|
|
186
|
+
isRequired: !1
|
|
187
|
+
}
|
|
188
|
+
]
|
|
189
|
+
}, y = {
|
|
190
|
+
type: e.PHONES,
|
|
191
|
+
properties: [
|
|
192
|
+
{
|
|
193
|
+
name: "primaryPhoneNumber",
|
|
194
|
+
type: e.TEXT,
|
|
195
|
+
hidden: !1,
|
|
196
|
+
isRequired: !1,
|
|
197
|
+
isIncludedInUniqueConstraint: !0
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
name: "primaryPhoneCountryCode",
|
|
201
|
+
type: e.TEXT,
|
|
202
|
+
hidden: !1,
|
|
203
|
+
isRequired: !1
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
name: "primaryPhoneCallingCode",
|
|
207
|
+
type: e.TEXT,
|
|
208
|
+
hidden: !1,
|
|
209
|
+
isRequired: !1
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
name: "additionalPhones",
|
|
213
|
+
type: e.RAW_JSON,
|
|
214
|
+
hidden: !1,
|
|
215
|
+
isRequired: !1
|
|
216
|
+
}
|
|
217
|
+
]
|
|
218
|
+
}, C = {
|
|
219
|
+
type: e.RICH_TEXT_V2,
|
|
220
|
+
properties: [
|
|
221
|
+
{
|
|
222
|
+
name: "blocknote",
|
|
223
|
+
type: e.TEXT,
|
|
224
|
+
hidden: !1,
|
|
225
|
+
isRequired: !1
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
name: "markdown",
|
|
229
|
+
type: e.TEXT,
|
|
230
|
+
hidden: !1,
|
|
231
|
+
isRequired: !1
|
|
232
|
+
}
|
|
233
|
+
]
|
|
234
|
+
};
|
|
235
|
+
s.object({
|
|
236
|
+
blocknote: s.string().nullable().optional(),
|
|
237
|
+
markdown: s.string().nullable()
|
|
238
|
+
});
|
|
239
|
+
e.LINKS, e.CURRENCY, e.FULL_NAME, e.ADDRESS, e.ACTOR, e.EMAILS, e.PHONES, e.RICH_TEXT_V2;
|
|
240
|
+
var i = /* @__PURE__ */ ((a) => (a.DAY = "DAY", a.MONTH = "MONTH", a.QUARTER = "QUARTER", a.YEAR = "YEAR", a.WEEK = "WEEK", a.DAY_OF_THE_WEEK = "DAY_OF_THE_WEEK", a.MONTH_OF_THE_YEAR = "MONTH_OF_THE_YEAR", a.QUARTER_OF_THE_YEAR = "QUARTER_OF_THE_YEAR", a.NONE = "NONE", a))(i || {});
|
|
241
|
+
e.CURRENCY + "", e.EMAILS + "", e.LINKS + "", e.PHONES + "", e.FULL_NAME + "", e.ADDRESS + "", e.ACTOR + "", e.RICH_TEXT_V2 + "";
|
|
242
|
+
const f = {
|
|
243
|
+
AED: { label: "UAE dirham" },
|
|
244
|
+
AFN: { label: "Afghan afghani" },
|
|
245
|
+
ALL: { label: "Albanian lek" },
|
|
246
|
+
AMD: { label: "Armenian dram" },
|
|
247
|
+
ANG: { label: "Netherlands Antillean guilder" },
|
|
248
|
+
AOA: { label: "Angolan kwanza" },
|
|
249
|
+
ARS: { label: "Argentine peso" },
|
|
250
|
+
AUD: { label: "Australian dollar" },
|
|
251
|
+
AWG: { label: "Aruban florin" },
|
|
252
|
+
AZN: { label: "Azerbaijani manat" },
|
|
253
|
+
BAM: { label: "Bosnia and Herzegovina mark" },
|
|
254
|
+
BBD: { label: "Barbados dollar" },
|
|
255
|
+
BDT: { label: "Bangladeshi taka" },
|
|
256
|
+
BGN: { label: "Bulgarian lev" },
|
|
257
|
+
BHD: { label: "Bahraini dinar" },
|
|
258
|
+
BIF: { label: "Burundian franc" },
|
|
259
|
+
BMD: { label: "Bermudian dollar" },
|
|
260
|
+
BND: { label: "Brunei dollar" },
|
|
261
|
+
BOB: { label: "Boliviano" },
|
|
262
|
+
BRL: { label: "Brazilian real" },
|
|
263
|
+
BSD: { label: "Bahamian dollar" },
|
|
264
|
+
BTN: { label: "Bhutanese ngultrum" },
|
|
265
|
+
BWP: { label: "Botswana pula" },
|
|
266
|
+
BYN: { label: "Belarusian ruble" },
|
|
267
|
+
BZD: { label: "Belize dollar" },
|
|
268
|
+
CAD: { label: "Canadian dollar" },
|
|
269
|
+
CDF: { label: "Congolese franc" },
|
|
270
|
+
CHF: { label: "Swiss franc" },
|
|
271
|
+
CLP: { label: "Chilean peso" },
|
|
272
|
+
CNY: { label: "Chinese yuan" },
|
|
273
|
+
COP: { label: "Colombian peso" },
|
|
274
|
+
CRC: { label: "Costa Rican colon" },
|
|
275
|
+
CUP: { label: "Cuban peso" },
|
|
276
|
+
CVE: { label: "Cape Verdean escudo" },
|
|
277
|
+
CZK: { label: "Czech koruna" },
|
|
278
|
+
DJF: { label: "Djiboutian franc" },
|
|
279
|
+
DKK: { label: "Danish krone" },
|
|
280
|
+
DOP: { label: "Dominican peso" },
|
|
281
|
+
DZD: { label: "Algerian Dinar" },
|
|
282
|
+
EGP: { label: "Egyptian pound" },
|
|
283
|
+
ERN: { label: "Eritrean nakfa" },
|
|
284
|
+
ETB: { label: "Ethiopian birr" },
|
|
285
|
+
EUR: { label: "Euro" },
|
|
286
|
+
FJD: { label: "Fiji dollar" },
|
|
287
|
+
FKP: { label: "Falkland Islands pound" },
|
|
288
|
+
GBP: { label: "British pound" },
|
|
289
|
+
GEL: { label: "Georgian lari" },
|
|
290
|
+
GHS: { label: "Ghanaian cedi" },
|
|
291
|
+
GIP: { label: "Gibraltar pound" },
|
|
292
|
+
GMD: { label: "Gambian dalasi" },
|
|
293
|
+
GNF: { label: "Guinean franc" },
|
|
294
|
+
GTQ: { label: "Guatemalan quetzal" },
|
|
295
|
+
GYD: { label: "Guyanese dollar" },
|
|
296
|
+
HKD: { label: "Hong Kong dollar" },
|
|
297
|
+
HNL: { label: "Honduran lempira" },
|
|
298
|
+
HTG: { label: "Haitian gourde" },
|
|
299
|
+
HUF: { label: "Hungarian forint" },
|
|
300
|
+
IDR: { label: "Indonesian rupiah" },
|
|
301
|
+
ILS: { label: "Israeli shekel" },
|
|
302
|
+
INR: { label: "Indian rupee" },
|
|
303
|
+
IQD: { label: "Iraqi dinar" },
|
|
304
|
+
IRR: { label: "Iranian rial" },
|
|
305
|
+
ISK: { label: "Icelandic króna" },
|
|
306
|
+
JMD: { label: "Jamaican dollar" },
|
|
307
|
+
JOD: { label: "Jordanian dinar" },
|
|
308
|
+
JPY: { label: "Japanese yen" },
|
|
309
|
+
KES: { label: "Kenyan shilling" },
|
|
310
|
+
KGS: { label: "Kyrgyzstani som" },
|
|
311
|
+
KHR: { label: "Cambodian riel" },
|
|
312
|
+
KMF: { label: "Comoro franc" },
|
|
313
|
+
KPW: { label: "North Korean won" },
|
|
314
|
+
KRW: { label: "South Korean won" },
|
|
315
|
+
KWD: { label: "Kuwaiti dinar" },
|
|
316
|
+
KYD: { label: "Cayman Islands dollar" },
|
|
317
|
+
KZT: { label: "Kazakhstani tenge" },
|
|
318
|
+
LAK: { label: "Lao kip" },
|
|
319
|
+
LBP: { label: "Lebanese pound" },
|
|
320
|
+
LKR: { label: "Sri Lankan rupee" },
|
|
321
|
+
LRD: { label: "Liberian dollar" },
|
|
322
|
+
LSL: { label: "Lesotho loti" },
|
|
323
|
+
LYD: { label: "Libyan dinar" },
|
|
324
|
+
MAD: { label: "Moroccan dirham" },
|
|
325
|
+
MDL: { label: "Moldovan leu" },
|
|
326
|
+
MGA: { label: "Malagasy ariary" },
|
|
327
|
+
MKD: { label: "Macedonian denar" },
|
|
328
|
+
MMK: { label: "Myanmar kyat" },
|
|
329
|
+
MNT: { label: "Mongolian tögrög" },
|
|
330
|
+
MOP: { label: "Macanese pataca" },
|
|
331
|
+
MRU: { label: "Mauritanian ouguiya" },
|
|
332
|
+
MUR: { label: "Mauritian rupee" },
|
|
333
|
+
MVR: { label: "Maldivian rufiyaa" },
|
|
334
|
+
MWK: { label: "Malawian kwacha" },
|
|
335
|
+
MXN: { label: "Mexican peso" },
|
|
336
|
+
MYR: { label: "Malaysian ringgit" },
|
|
337
|
+
MZN: { label: "Mozambican metical" },
|
|
338
|
+
NAD: { label: "Namibian dollar" },
|
|
339
|
+
NGN: { label: "Nigerian naira" },
|
|
340
|
+
NIO: { label: "Nicaraguan córdoba" },
|
|
341
|
+
NOK: { label: "Norwegian krone" },
|
|
342
|
+
NPR: { label: "Nepalese rupee" },
|
|
343
|
+
NZD: { label: "New Zealand dollar" },
|
|
344
|
+
OMR: { label: "Omani rial" },
|
|
345
|
+
PAB: { label: "Panamanian balboa" },
|
|
346
|
+
PEN: { label: "Peruvian sol" },
|
|
347
|
+
PGK: { label: "Papua New Guinean kina" },
|
|
348
|
+
PHP: { label: "Philippine peso" },
|
|
349
|
+
PKR: { label: "Pakistani rupee" },
|
|
350
|
+
PLN: { label: "Polish złoty" },
|
|
351
|
+
PYG: { label: "Paraguayan guaraní" },
|
|
352
|
+
QAR: { label: "Qatari riyal" },
|
|
353
|
+
RON: { label: "Romanian leu" },
|
|
354
|
+
RSD: { label: "Serbian dinar" },
|
|
355
|
+
RUB: { label: "Russian ruble" },
|
|
356
|
+
RWF: { label: "Rwandan franc" },
|
|
357
|
+
SAR: { label: "Saudi riyal" },
|
|
358
|
+
SBD: { label: "Solomon Islands dollar" },
|
|
359
|
+
SCR: { label: "Seychelles rupee" },
|
|
360
|
+
SDG: { label: "Sudanese pound" },
|
|
361
|
+
SEK: { label: "Swedish krona" },
|
|
362
|
+
SGD: { label: "Singapore dollar" },
|
|
363
|
+
SHP: { label: "Saint Helena pound" },
|
|
364
|
+
SLE: { label: "Sierra Leonean leone" },
|
|
365
|
+
SOS: { label: "Somalian shilling" },
|
|
366
|
+
SRD: { label: "Surinamese dollar" },
|
|
367
|
+
SSP: { label: "South Sudanese pound" },
|
|
368
|
+
STN: { label: "São Tomé and Príncipe dobra" },
|
|
369
|
+
SVC: { label: "Salvadoran colón" },
|
|
370
|
+
SYP: { label: "Syrian pound" },
|
|
371
|
+
SZL: { label: "Swazi lilangeni" },
|
|
372
|
+
THB: { label: "Thai Baht" },
|
|
373
|
+
TJS: { label: "Tajikistani somoni" },
|
|
374
|
+
TMT: { label: "Turkmenistan manat" },
|
|
375
|
+
TND: { label: "Tunisian dinar" },
|
|
376
|
+
TOP: { label: "Tongan paʻanga" },
|
|
377
|
+
TRY: { label: "Turkish lira" },
|
|
378
|
+
TTD: { label: "Trinidad and Tobago dollar" },
|
|
379
|
+
TWD: { label: "Taiwanese dollar" },
|
|
380
|
+
TZS: { label: "Tanzanian shilling" },
|
|
381
|
+
UAH: { label: "Ukrainian hryvnia" },
|
|
382
|
+
UGX: { label: "Ugandan shilling" },
|
|
383
|
+
USD: { label: "United States dollar" },
|
|
384
|
+
UYU: { label: "Uruguayan peso" },
|
|
385
|
+
UZS: { label: "Uzbekistani sum" },
|
|
386
|
+
VES: { label: "Venezuelan bolívar" },
|
|
387
|
+
VND: { label: "Vietnamese đồng" },
|
|
388
|
+
VUV: { label: "Vanuatu vatu" },
|
|
389
|
+
WST: { label: "Samoan tala" },
|
|
390
|
+
XOF: { label: "West African CFA franc" },
|
|
391
|
+
XCD: { label: "East Caribbean dollar" },
|
|
392
|
+
YER: { label: "Yemeni rial" },
|
|
393
|
+
ZAR: { label: "South African rand" },
|
|
394
|
+
ZMW: { label: "Zambian kwacha" },
|
|
395
|
+
ZWG: { label: "Zimbabwe Gold" }
|
|
396
|
+
};
|
|
397
|
+
i.DAY, i.WEEK, i.MONTH, i.QUARTER, i.YEAR;
|
|
398
|
+
e.TEXT, e.FULL_NAME, e.UUID;
|
|
399
|
+
export {
|
|
400
|
+
f as I,
|
|
401
|
+
e as s
|
|
402
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s=require("zod");let d;const t=new Uint8Array(16);function u(){if(!d&&(d=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!d))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return d(t)}const n=[];for(let a=0;a<256;++a)n.push((a+256).toString(16).slice(1));function E(a,l=0){return n[a[l+0]]+n[a[l+1]]+n[a[l+2]]+n[a[l+3]]+"-"+n[a[l+4]]+n[a[l+5]]+"-"+n[a[l+6]]+n[a[l+7]]+"-"+n[a[l+8]]+n[a[l+9]]+"-"+n[a[l+10]]+n[a[l+11]]+n[a[l+12]]+n[a[l+13]]+n[a[l+14]]+n[a[l+15]]}const R=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),b={randomUUID:R};function T(a,l,D){if(b.randomUUID&&!a)return b.randomUUID();a=a||{};const r=a.random||(a.rng||u)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,E(r)}var e=(a=>(a.ACTOR="ACTOR",a.ADDRESS="ADDRESS",a.ARRAY="ARRAY",a.BOOLEAN="BOOLEAN",a.CURRENCY="CURRENCY",a.DATE="DATE",a.DATE_TIME="DATE_TIME",a.EMAILS="EMAILS",a.FILES="FILES",a.FULL_NAME="FULL_NAME",a.LINKS="LINKS",a.MORPH_RELATION="MORPH_RELATION",a.MULTI_SELECT="MULTI_SELECT",a.NUMBER="NUMBER",a.NUMERIC="NUMERIC",a.PHONES="PHONES",a.POSITION="POSITION",a.RATING="RATING",a.RAW_JSON="RAW_JSON",a.RELATION="RELATION",a.RICH_TEXT="RICH_TEXT",a.RICH_TEXT_V2="RICH_TEXT_V2",a.SELECT="SELECT",a.TEXT="TEXT",a.TS_VECTOR="TS_VECTOR",a.UUID="UUID",a))(e||{}),o=(a=>(a.EMAIL="EMAIL",a.CALENDAR="CALENDAR",a.WORKFLOW="WORKFLOW",a.AGENT="AGENT",a.API="API",a.IMPORT="IMPORT",a.MANUAL="MANUAL",a.SYSTEM="SYSTEM",a.WEBHOOK="WEBHOOK",a.APPLICATION="APPLICATION",a))(o||{});const p={type:e.ACTOR,properties:[{name:"source",type:e.SELECT,hidden:!1,isRequired:!0,options:Object.keys(o).map((a,l)=>({id:T(),label:`${o[a].toLowerCase()}`,value:a,position:l}))},{name:"workspaceMemberId",type:e.UUID,hidden:"input",isRequired:!1},{name:"name",type:e.TEXT,hidden:"input",isRequired:!0},{name:"context",type:e.RAW_JSON,hidden:!1,isRequired:!1}]},A={type:e.ADDRESS,properties:[{name:"addressStreet1",type:e.TEXT,hidden:!1,isRequired:!1},{name:"addressStreet2",type:e.TEXT,hidden:!1,isRequired:!1},{name:"addressCity",type:e.TEXT,hidden:!1,isRequired:!1},{name:"addressPostcode",type:e.TEXT,hidden:!1,isRequired:!1},{name:"addressState",type:e.TEXT,hidden:!1,isRequired:!1},{name:"addressCountry",type:e.TEXT,hidden:!1,isRequired:!1},{name:"addressLat",type:e.NUMERIC,hidden:!1,isRequired:!1},{name:"addressLng",type:e.NUMERIC,hidden:!1,isRequired:!1}]},S={type:e.CURRENCY,properties:[{name:"amountMicros",type:e.NUMERIC,hidden:!1,isRequired:!1},{name:"currencyCode",type:e.TEXT,hidden:!1,isRequired:!1}]},N={type:e.EMAILS,properties:[{name:"primaryEmail",type:e.TEXT,hidden:!1,isRequired:!1,isIncludedInUniqueConstraint:!0},{name:"additionalEmails",type:e.RAW_JSON,hidden:!1,isRequired:!1}]},m={type:e.FULL_NAME,properties:[{name:"firstName",type:e.TEXT,hidden:!1,isRequired:!1,isIncludedInUniqueConstraint:!1},{name:"lastName",type:e.TEXT,hidden:!1,isRequired:!1,isIncludedInUniqueConstraint:!1}]},I={type:e.LINKS,properties:[{name:"primaryLinkLabel",type:e.TEXT,hidden:!1,isRequired:!1},{name:"primaryLinkUrl",type:e.TEXT,hidden:!1,isRequired:!1,isIncludedInUniqueConstraint:!0},{name:"secondaryLinks",type:e.RAW_JSON,hidden:!1,isRequired:!1}]},y={type:e.PHONES,properties:[{name:"primaryPhoneNumber",type:e.TEXT,hidden:!1,isRequired:!1,isIncludedInUniqueConstraint:!0},{name:"primaryPhoneCountryCode",type:e.TEXT,hidden:!1,isRequired:!1},{name:"primaryPhoneCallingCode",type:e.TEXT,hidden:!1,isRequired:!1},{name:"additionalPhones",type:e.RAW_JSON,hidden:!1,isRequired:!1}]},C={type:e.RICH_TEXT_V2,properties:[{name:"blocknote",type:e.TEXT,hidden:!1,isRequired:!1},{name:"markdown",type:e.TEXT,hidden:!1,isRequired:!1}]};s.z.object({blocknote:s.z.string().nullable().optional(),markdown:s.z.string().nullable()});e.LINKS,e.CURRENCY,e.FULL_NAME,e.ADDRESS,e.ACTOR,e.EMAILS,e.PHONES,e.RICH_TEXT_V2;var i=(a=>(a.DAY="DAY",a.MONTH="MONTH",a.QUARTER="QUARTER",a.YEAR="YEAR",a.WEEK="WEEK",a.DAY_OF_THE_WEEK="DAY_OF_THE_WEEK",a.MONTH_OF_THE_YEAR="MONTH_OF_THE_YEAR",a.QUARTER_OF_THE_YEAR="QUARTER_OF_THE_YEAR",a.NONE="NONE",a))(i||{});e.CURRENCY+"",e.EMAILS+"",e.LINKS+"",e.PHONES+"",e.FULL_NAME+"",e.ADDRESS+"",e.ACTOR+"",e.RICH_TEXT_V2+"";const L={AED:{label:"UAE dirham"},AFN:{label:"Afghan afghani"},ALL:{label:"Albanian lek"},AMD:{label:"Armenian dram"},ANG:{label:"Netherlands Antillean guilder"},AOA:{label:"Angolan kwanza"},ARS:{label:"Argentine peso"},AUD:{label:"Australian dollar"},AWG:{label:"Aruban florin"},AZN:{label:"Azerbaijani manat"},BAM:{label:"Bosnia and Herzegovina mark"},BBD:{label:"Barbados dollar"},BDT:{label:"Bangladeshi taka"},BGN:{label:"Bulgarian lev"},BHD:{label:"Bahraini dinar"},BIF:{label:"Burundian franc"},BMD:{label:"Bermudian dollar"},BND:{label:"Brunei dollar"},BOB:{label:"Boliviano"},BRL:{label:"Brazilian real"},BSD:{label:"Bahamian dollar"},BTN:{label:"Bhutanese ngultrum"},BWP:{label:"Botswana pula"},BYN:{label:"Belarusian ruble"},BZD:{label:"Belize dollar"},CAD:{label:"Canadian dollar"},CDF:{label:"Congolese franc"},CHF:{label:"Swiss franc"},CLP:{label:"Chilean peso"},CNY:{label:"Chinese yuan"},COP:{label:"Colombian peso"},CRC:{label:"Costa Rican colon"},CUP:{label:"Cuban peso"},CVE:{label:"Cape Verdean escudo"},CZK:{label:"Czech koruna"},DJF:{label:"Djiboutian franc"},DKK:{label:"Danish krone"},DOP:{label:"Dominican peso"},DZD:{label:"Algerian Dinar"},EGP:{label:"Egyptian pound"},ERN:{label:"Eritrean nakfa"},ETB:{label:"Ethiopian birr"},EUR:{label:"Euro"},FJD:{label:"Fiji dollar"},FKP:{label:"Falkland Islands pound"},GBP:{label:"British pound"},GEL:{label:"Georgian lari"},GHS:{label:"Ghanaian cedi"},GIP:{label:"Gibraltar pound"},GMD:{label:"Gambian dalasi"},GNF:{label:"Guinean franc"},GTQ:{label:"Guatemalan quetzal"},GYD:{label:"Guyanese dollar"},HKD:{label:"Hong Kong dollar"},HNL:{label:"Honduran lempira"},HTG:{label:"Haitian gourde"},HUF:{label:"Hungarian forint"},IDR:{label:"Indonesian rupiah"},ILS:{label:"Israeli shekel"},INR:{label:"Indian rupee"},IQD:{label:"Iraqi dinar"},IRR:{label:"Iranian rial"},ISK:{label:"Icelandic króna"},JMD:{label:"Jamaican dollar"},JOD:{label:"Jordanian dinar"},JPY:{label:"Japanese yen"},KES:{label:"Kenyan shilling"},KGS:{label:"Kyrgyzstani som"},KHR:{label:"Cambodian riel"},KMF:{label:"Comoro franc"},KPW:{label:"North Korean won"},KRW:{label:"South Korean won"},KWD:{label:"Kuwaiti dinar"},KYD:{label:"Cayman Islands dollar"},KZT:{label:"Kazakhstani tenge"},LAK:{label:"Lao kip"},LBP:{label:"Lebanese pound"},LKR:{label:"Sri Lankan rupee"},LRD:{label:"Liberian dollar"},LSL:{label:"Lesotho loti"},LYD:{label:"Libyan dinar"},MAD:{label:"Moroccan dirham"},MDL:{label:"Moldovan leu"},MGA:{label:"Malagasy ariary"},MKD:{label:"Macedonian denar"},MMK:{label:"Myanmar kyat"},MNT:{label:"Mongolian tögrög"},MOP:{label:"Macanese pataca"},MRU:{label:"Mauritanian ouguiya"},MUR:{label:"Mauritian rupee"},MVR:{label:"Maldivian rufiyaa"},MWK:{label:"Malawian kwacha"},MXN:{label:"Mexican peso"},MYR:{label:"Malaysian ringgit"},MZN:{label:"Mozambican metical"},NAD:{label:"Namibian dollar"},NGN:{label:"Nigerian naira"},NIO:{label:"Nicaraguan córdoba"},NOK:{label:"Norwegian krone"},NPR:{label:"Nepalese rupee"},NZD:{label:"New Zealand dollar"},OMR:{label:"Omani rial"},PAB:{label:"Panamanian balboa"},PEN:{label:"Peruvian sol"},PGK:{label:"Papua New Guinean kina"},PHP:{label:"Philippine peso"},PKR:{label:"Pakistani rupee"},PLN:{label:"Polish złoty"},PYG:{label:"Paraguayan guaraní"},QAR:{label:"Qatari riyal"},RON:{label:"Romanian leu"},RSD:{label:"Serbian dinar"},RUB:{label:"Russian ruble"},RWF:{label:"Rwandan franc"},SAR:{label:"Saudi riyal"},SBD:{label:"Solomon Islands dollar"},SCR:{label:"Seychelles rupee"},SDG:{label:"Sudanese pound"},SEK:{label:"Swedish krona"},SGD:{label:"Singapore dollar"},SHP:{label:"Saint Helena pound"},SLE:{label:"Sierra Leonean leone"},SOS:{label:"Somalian shilling"},SRD:{label:"Surinamese dollar"},SSP:{label:"South Sudanese pound"},STN:{label:"São Tomé and Príncipe dobra"},SVC:{label:"Salvadoran colón"},SYP:{label:"Syrian pound"},SZL:{label:"Swazi lilangeni"},THB:{label:"Thai Baht"},TJS:{label:"Tajikistani somoni"},TMT:{label:"Turkmenistan manat"},TND:{label:"Tunisian dinar"},TOP:{label:"Tongan paʻanga"},TRY:{label:"Turkish lira"},TTD:{label:"Trinidad and Tobago dollar"},TWD:{label:"Taiwanese dollar"},TZS:{label:"Tanzanian shilling"},UAH:{label:"Ukrainian hryvnia"},UGX:{label:"Ugandan shilling"},USD:{label:"United States dollar"},UYU:{label:"Uruguayan peso"},UZS:{label:"Uzbekistani sum"},VES:{label:"Venezuelan bolívar"},VND:{label:"Vietnamese đồng"},VUV:{label:"Vanuatu vatu"},WST:{label:"Samoan tala"},XOF:{label:"West African CFA franc"},XCD:{label:"East Caribbean dollar"},YER:{label:"Yemeni rial"},ZAR:{label:"South African rand"},ZMW:{label:"Zambian kwacha"},ZWG:{label:"Zimbabwe Gold"}};i.DAY,i.WEEK,i.MONTH,i.QUARTER,i.YEAR;e.TEXT,e.FULL_NAME,e.UUID;exports.I=L;exports.s=e;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export type AppDevOptions = {
|
|
2
|
+
appPath?: string;
|
|
3
|
+
};
|
|
4
|
+
export declare class AppDevCommand {
|
|
5
|
+
private appPath;
|
|
6
|
+
private orchestrator;
|
|
7
|
+
private manifestWatcher;
|
|
8
|
+
private logicFunctionsWatcher;
|
|
9
|
+
private frontComponentsWatcher;
|
|
10
|
+
private assetWatcher;
|
|
11
|
+
private dependencyWatcher;
|
|
12
|
+
private watchersStarted;
|
|
13
|
+
private uiStateManager;
|
|
14
|
+
private unmountUI;
|
|
15
|
+
execute(options: AppDevOptions): Promise<void>;
|
|
16
|
+
private cleanOutputDir;
|
|
17
|
+
private startManifestWatcher;
|
|
18
|
+
private handleWatcherRestarts;
|
|
19
|
+
private startFileWatchers;
|
|
20
|
+
private startLogicFunctionsWatcher;
|
|
21
|
+
private startFrontComponentsWatcher;
|
|
22
|
+
private startAssetWatcher;
|
|
23
|
+
private startDependencyWatcher;
|
|
24
|
+
private setupGracefulShutdown;
|
|
25
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SyncableEntity } from '../../../vendor/twenty-shared/application';
|
|
2
|
+
export declare class EntityAddCommand {
|
|
3
|
+
execute(entityType?: SyncableEntity, path?: string): Promise<void>;
|
|
4
|
+
private getEntityData;
|
|
5
|
+
private getEntity;
|
|
6
|
+
private handleFileExist;
|
|
7
|
+
private getEntityName;
|
|
8
|
+
private getFieldData;
|
|
9
|
+
private getObjectData;
|
|
10
|
+
getFolderName(entity: SyncableEntity): string;
|
|
11
|
+
getFileName(name: string, entity: SyncableEntity): string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare class LogicFunctionExecuteCommand {
|
|
2
|
+
private apiService;
|
|
3
|
+
execute({ appPath, functionUniversalIdentifier, functionName, payload, }: {
|
|
4
|
+
appPath?: string;
|
|
5
|
+
functionUniversalIdentifier?: string;
|
|
6
|
+
functionName?: string;
|
|
7
|
+
payload?: string;
|
|
8
|
+
}): Promise<void>;
|
|
9
|
+
private belongsToApplication;
|
|
10
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { ApplicationManifest, Manifest } from '../../../vendor/twenty-shared/application';
|
|
2
|
+
import { FileFolder } from '../../../vendor/twenty-shared/types';
|
|
3
|
+
import { ApiResponse } from './api-response-type';
|
|
4
|
+
export declare class ApiService {
|
|
5
|
+
private client;
|
|
6
|
+
private configService;
|
|
7
|
+
constructor(options?: {
|
|
8
|
+
disableInterceptors: boolean;
|
|
9
|
+
});
|
|
10
|
+
validateAuth(): Promise<{
|
|
11
|
+
authValid: boolean;
|
|
12
|
+
serverUp: boolean;
|
|
13
|
+
}>;
|
|
14
|
+
checkApplicationExist(universalIdentifier: string): Promise<ApiResponse<boolean>>;
|
|
15
|
+
createApplication(manifest: Manifest): Promise<ApiResponse<ApplicationManifest>>;
|
|
16
|
+
syncApplication(manifest: Manifest): Promise<ApiResponse>;
|
|
17
|
+
uninstallApplication(universalIdentifier: string): Promise<ApiResponse>;
|
|
18
|
+
getSchema(): Promise<ApiResponse<string>>;
|
|
19
|
+
findLogicFunctions(): Promise<ApiResponse<Array<{
|
|
20
|
+
id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
universalIdentifier: string;
|
|
23
|
+
applicationId: string | null;
|
|
24
|
+
}>>>;
|
|
25
|
+
executeLogicFunction({ functionId, payload, }: {
|
|
26
|
+
functionId: string;
|
|
27
|
+
payload: Record<string, unknown>;
|
|
28
|
+
}): Promise<ApiResponse<{
|
|
29
|
+
data: unknown;
|
|
30
|
+
logs: string;
|
|
31
|
+
duration: number;
|
|
32
|
+
status: string;
|
|
33
|
+
error?: {
|
|
34
|
+
errorType: string;
|
|
35
|
+
errorMessage: string;
|
|
36
|
+
stackTrace: string;
|
|
37
|
+
};
|
|
38
|
+
}>>;
|
|
39
|
+
subscribeToLogs({ applicationUniversalIdentifier, functionUniversalIdentifier, functionName, }: {
|
|
40
|
+
applicationUniversalIdentifier: string;
|
|
41
|
+
functionUniversalIdentifier?: string;
|
|
42
|
+
functionName?: string;
|
|
43
|
+
}): Promise<void>;
|
|
44
|
+
uploadFile({ filePath, builtHandlerPath, fileFolder, applicationUniversalIdentifier, }: {
|
|
45
|
+
filePath: string;
|
|
46
|
+
builtHandlerPath: string;
|
|
47
|
+
fileFolder: FileFolder;
|
|
48
|
+
applicationUniversalIdentifier: string;
|
|
49
|
+
}): Promise<ApiResponse<boolean>>;
|
|
50
|
+
private getMimeType;
|
|
51
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const cleanupRemovedFiles: (outputDir: string, oldPaths: string[], newPaths: string[]) => Promise<void>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { OnFileBuiltCallback } from './restartable-watcher-interface';
|
|
2
|
+
import { FileFolder } from '../../../../vendor/twenty-shared/types';
|
|
3
|
+
import type * as esbuild from 'esbuild';
|
|
4
|
+
export type ProcessEsbuildResultParams = {
|
|
5
|
+
result: esbuild.BuildResult;
|
|
6
|
+
appPath: string;
|
|
7
|
+
fileFolder: FileFolder;
|
|
8
|
+
lastChecksums: Map<string, string>;
|
|
9
|
+
onFileBuilt?: OnFileBuiltCallback;
|
|
10
|
+
};
|
|
11
|
+
export declare const processEsbuildResult: ({ result, appPath, fileFolder, lastChecksums, onFileBuilt, }: ProcessEsbuildResultParams) => Promise<void>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { RestartableWatcher, RestartableWatcherOptions } from './restartable-watcher-interface';
|
|
2
|
+
import { FileFolder } from '../../../../vendor/twenty-shared/types';
|
|
3
|
+
import * as esbuild from 'esbuild';
|
|
4
|
+
export declare const LOGIC_FUNCTION_EXTERNAL_MODULES: string[];
|
|
5
|
+
export declare const FRONT_COMPONENT_EXTERNAL_MODULES: string[];
|
|
6
|
+
export type EsbuildWatcherConfig = {
|
|
7
|
+
externalModules: string[];
|
|
8
|
+
fileFolder: FileFolder;
|
|
9
|
+
platform?: esbuild.Platform;
|
|
10
|
+
jsx?: 'automatic';
|
|
11
|
+
extraPlugins?: esbuild.Plugin[];
|
|
12
|
+
minify?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export type EsbuildWatcherOptions = RestartableWatcherOptions & {
|
|
15
|
+
config: EsbuildWatcherConfig;
|
|
16
|
+
};
|
|
17
|
+
export declare class EsbuildWatcher implements RestartableWatcher {
|
|
18
|
+
private appPath;
|
|
19
|
+
private sourcePaths;
|
|
20
|
+
private esBuildContext;
|
|
21
|
+
private isRestarting;
|
|
22
|
+
private watchMode;
|
|
23
|
+
private lastChecksums;
|
|
24
|
+
private onFileBuilt?;
|
|
25
|
+
private onBuildError?;
|
|
26
|
+
private buildCompletePromise;
|
|
27
|
+
private resolveBuildComplete;
|
|
28
|
+
private config;
|
|
29
|
+
constructor(options: EsbuildWatcherOptions);
|
|
30
|
+
shouldRestart(sourcePaths: string[]): boolean;
|
|
31
|
+
start(): Promise<void>;
|
|
32
|
+
close(): Promise<void>;
|
|
33
|
+
restart(sourcePaths: string[]): Promise<void>;
|
|
34
|
+
private createContext;
|
|
35
|
+
}
|
|
36
|
+
export declare const createLogicFunctionsWatcher: (options: RestartableWatcherOptions) => EsbuildWatcher;
|
|
37
|
+
export declare const createFrontComponentsWatcher: (options: RestartableWatcherOptions) => EsbuildWatcher;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { FileFolder } from '../../../../vendor/twenty-shared/types';
|
|
2
|
+
export type AssetWatcherOptions = {
|
|
3
|
+
appPath: string;
|
|
4
|
+
fileFolder: FileFolder;
|
|
5
|
+
watchPaths: string[];
|
|
6
|
+
handleFileBuilt: (options: {
|
|
7
|
+
fileFolder: FileFolder;
|
|
8
|
+
builtPath: string;
|
|
9
|
+
sourcePath: string;
|
|
10
|
+
checksum: string;
|
|
11
|
+
}) => void;
|
|
12
|
+
};
|
|
13
|
+
export declare class FileUploadWatcher {
|
|
14
|
+
private appPath;
|
|
15
|
+
private watcher;
|
|
16
|
+
private fileFolder;
|
|
17
|
+
private watchPaths;
|
|
18
|
+
private handleFileBuilt;
|
|
19
|
+
constructor(options: AssetWatcherOptions);
|
|
20
|
+
start(): Promise<void>;
|
|
21
|
+
close(): Promise<void>;
|
|
22
|
+
private copyAndNotify;
|
|
23
|
+
private handleUnlink;
|
|
24
|
+
}
|