twenty-sdk 0.3.1 → 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 -9469
- 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/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 +22 -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
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import { z as e } from "zod";
|
|
2
|
-
import { S } from "./StepFilters-Cml3Z3gd.mjs";
|
|
3
|
-
import { F as
|
|
2
|
+
import { S as w } from "./StepFilters-Cml3Z3gd.mjs";
|
|
3
|
+
import { F as l } from "./ObjectRecordGroupByDateGranularity-DmLx4uDl.mjs";
|
|
4
4
|
import "class-validator";
|
|
5
5
|
import { V as y, a as E } from "./ViewFilterOperandDeprecated-DHNmFtYo.mjs";
|
|
6
|
-
import { i as j, a as
|
|
6
|
+
import { i as j, a as d } from "./isValidCountryCode-Dyji5s5r.mjs";
|
|
7
7
|
import { isObject as A } from "@sniptt/guards";
|
|
8
8
|
import "handlebars";
|
|
9
|
-
import "
|
|
9
|
+
import "lodash.camelcase";
|
|
10
|
+
import "./RatingValues-CT-y6O0b.mjs";
|
|
10
11
|
import "qs";
|
|
11
12
|
import "react-router-dom";
|
|
12
|
-
const O = /{{([^{}]+)}}/g,
|
|
13
|
+
const O = /{{([^{}]+)}}/g, Ce = {
|
|
13
14
|
rawJson: "application/json",
|
|
14
15
|
formData: "multipart/form-data",
|
|
15
16
|
keyValue: "application/x-www-form-urlencoded",
|
|
16
17
|
text: "text/plain",
|
|
17
18
|
none: ""
|
|
18
|
-
},
|
|
19
|
+
}, Le = {
|
|
19
20
|
IF: {
|
|
20
21
|
x: -200,
|
|
21
22
|
y: 120
|
|
@@ -24,7 +25,7 @@ const O = /{{([^{}]+)}}/g, Ie = {
|
|
|
24
25
|
x: 200,
|
|
25
26
|
y: 120
|
|
26
27
|
}
|
|
27
|
-
},
|
|
28
|
+
}, Pe = "trigger", a = e.object({
|
|
28
29
|
input: e.looseObject({}).describe(
|
|
29
30
|
"Input data for the workflow action. Structure depends on the action type."
|
|
30
31
|
),
|
|
@@ -39,12 +40,12 @@ const O = /{{([^{}]+)}}/g, Ie = {
|
|
|
39
40
|
value: e.boolean().describe("Whether to continue to the next step if this action fails.")
|
|
40
41
|
})
|
|
41
42
|
})
|
|
42
|
-
}), T =
|
|
43
|
+
}), T = a.extend({
|
|
43
44
|
input: e.object({
|
|
44
45
|
agentId: e.string().optional(),
|
|
45
46
|
prompt: e.string().optional()
|
|
46
47
|
})
|
|
47
|
-
}),
|
|
48
|
+
}), s = e.object({
|
|
48
49
|
id: e.string().describe(
|
|
49
50
|
"Unique identifier for the workflow step. Must be unique within the workflow."
|
|
50
51
|
),
|
|
@@ -58,10 +59,10 @@ const O = /{{([^{}]+)}}/g, Ie = {
|
|
|
58
59
|
"Array of step IDs that this step connects to. Leave empty or null for the final step."
|
|
59
60
|
),
|
|
60
61
|
position: e.object({ x: e.number(), y: e.number() }).optional().nullable().describe("Position coordinates for the step in the workflow diagram.")
|
|
61
|
-
}),
|
|
62
|
+
}), k = s.extend({
|
|
62
63
|
type: e.literal("AI_AGENT"),
|
|
63
64
|
settings: T
|
|
64
|
-
}),
|
|
65
|
+
}), p = e.object({
|
|
65
66
|
name: e.string().optional().describe(
|
|
66
67
|
"Human-readable name for the trigger. Optional but recommended for clarity."
|
|
67
68
|
),
|
|
@@ -74,33 +75,32 @@ const O = /{{([^{}]+)}}/g, Ie = {
|
|
|
74
75
|
nextStepIds: e.array(e.string()).optional().nullable().describe(
|
|
75
76
|
"Array of step IDs that the trigger connects to. These are the first steps in the workflow."
|
|
76
77
|
)
|
|
77
|
-
}),
|
|
78
|
+
}), R = a.extend({
|
|
78
79
|
input: e.object({
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
serverlessFunctionInput: e.record(e.string(), e.any())
|
|
80
|
+
logicFunctionId: e.string(),
|
|
81
|
+
logicFunctionInput: e.record(e.string(), e.any())
|
|
82
82
|
})
|
|
83
|
-
}),
|
|
83
|
+
}), I = s.extend({
|
|
84
84
|
type: e.literal("CODE"),
|
|
85
|
-
settings:
|
|
86
|
-
}),
|
|
85
|
+
settings: R
|
|
86
|
+
}), m = e.record(e.string(), e.any()).describe(
|
|
87
87
|
`Record data object. Use nested objects for relationships (e.g., "company": {"id": "{{reference}}"}). Common patterns:
|
|
88
88
|
- Person: {"name": {"firstName": "John", "lastName": "Doe"}, "emails": {"primaryEmail": "john@example.com"}, "company": {"id": "{{trigger.object.id}}"}}
|
|
89
89
|
- Company: {"name": "Acme Corp", "domainName": {"primaryLinkUrl": "https://acme.com"}}
|
|
90
90
|
- Task: {"title": "Follow up", "status": "TODO", "assignee": {"id": "{{user.id}}"}}`
|
|
91
|
-
),
|
|
91
|
+
), N = a.extend({
|
|
92
92
|
input: e.object({
|
|
93
93
|
objectName: e.string().describe(
|
|
94
94
|
'The name of the object to create a record in. Must be lowercase (e.g., "person", "company", "task").'
|
|
95
95
|
),
|
|
96
|
-
objectRecord:
|
|
96
|
+
objectRecord: m.describe("The record data to create.")
|
|
97
97
|
})
|
|
98
|
-
}), x =
|
|
98
|
+
}), x = s.extend(
|
|
99
99
|
{
|
|
100
100
|
type: e.literal("CREATE_RECORD"),
|
|
101
|
-
settings:
|
|
101
|
+
settings: N
|
|
102
102
|
}
|
|
103
|
-
), D =
|
|
103
|
+
), D = p.extend({
|
|
104
104
|
type: e.literal("CRON"),
|
|
105
105
|
settings: e.discriminatedUnion("type", [
|
|
106
106
|
e.object({
|
|
@@ -131,7 +131,7 @@ const O = /{{([^{}]+)}}/g, Ie = {
|
|
|
131
131
|
outputSchema: e.looseObject({})
|
|
132
132
|
})
|
|
133
133
|
])
|
|
134
|
-
}), F =
|
|
134
|
+
}), F = p.extend({
|
|
135
135
|
type: e.literal("DATABASE_EVENT"),
|
|
136
136
|
settings: e.object({
|
|
137
137
|
eventName: e.string().regex(
|
|
@@ -149,27 +149,27 @@ const O = /{{([^{}]+)}}/g, Ie = {
|
|
|
149
149
|
})
|
|
150
150
|
}).describe(
|
|
151
151
|
"Database event trigger that fires when a record is created, updated, deleted, or upserted. The triggered record is accessible in workflow steps via {{trigger.object.fieldName}}."
|
|
152
|
-
), U =
|
|
152
|
+
), U = a.extend({
|
|
153
153
|
input: e.object({
|
|
154
154
|
objectName: e.string(),
|
|
155
155
|
objectRecordId: e.string()
|
|
156
156
|
})
|
|
157
|
-
}), _ =
|
|
157
|
+
}), _ = s.extend(
|
|
158
158
|
{
|
|
159
159
|
type: e.literal("DELETE_RECORD"),
|
|
160
160
|
settings: U
|
|
161
161
|
}
|
|
162
|
-
), C =
|
|
162
|
+
), C = a.extend({
|
|
163
163
|
input: e.object({})
|
|
164
|
-
}), L =
|
|
164
|
+
}), L = s.extend({
|
|
165
165
|
type: e.literal("EMPTY"),
|
|
166
166
|
settings: C
|
|
167
|
-
}),
|
|
167
|
+
}), g = e.object({
|
|
168
168
|
id: e.string(),
|
|
169
|
-
logicalOperator: e.enum(
|
|
169
|
+
logicalOperator: e.enum(w),
|
|
170
170
|
parentStepFilterGroupId: e.string().optional(),
|
|
171
171
|
positionInStepFilterGroup: e.number().optional()
|
|
172
|
-
}),
|
|
172
|
+
}), b = e.object({
|
|
173
173
|
id: e.string(),
|
|
174
174
|
type: e.string(),
|
|
175
175
|
stepOutputKey: e.string(),
|
|
@@ -179,15 +179,15 @@ const O = /{{([^{}]+)}}/g, Ie = {
|
|
|
179
179
|
positionInStepFilterGroup: e.number().optional(),
|
|
180
180
|
fieldMetadataId: e.string().optional(),
|
|
181
181
|
compositeFieldSubFieldName: e.string().optional()
|
|
182
|
-
}), P =
|
|
182
|
+
}), P = a.extend({
|
|
183
183
|
input: e.object({
|
|
184
|
-
stepFilterGroups: e.array(
|
|
185
|
-
stepFilters: e.array(
|
|
184
|
+
stepFilterGroups: e.array(g),
|
|
185
|
+
stepFilters: e.array(b)
|
|
186
186
|
})
|
|
187
|
-
}), G =
|
|
187
|
+
}), G = s.extend({
|
|
188
188
|
type: e.literal("FILTER"),
|
|
189
189
|
settings: P
|
|
190
|
-
}),
|
|
190
|
+
}), M = a.extend({
|
|
191
191
|
input: e.object({
|
|
192
192
|
objectName: e.string(),
|
|
193
193
|
limit: e.number().optional(),
|
|
@@ -201,20 +201,20 @@ const O = /{{([^{}]+)}}/g, Ie = {
|
|
|
201
201
|
gqlOperationOrderBy: e.array(e.record(e.string(), e.any())).optional()
|
|
202
202
|
}).optional()
|
|
203
203
|
})
|
|
204
|
-
}),
|
|
204
|
+
}), B = s.extend({
|
|
205
205
|
type: e.literal("FIND_RECORDS"),
|
|
206
|
-
settings:
|
|
207
|
-
}),
|
|
206
|
+
settings: M
|
|
207
|
+
}), v = a.extend({
|
|
208
208
|
input: e.array(
|
|
209
209
|
e.object({
|
|
210
210
|
id: e.string(),
|
|
211
211
|
name: e.string(),
|
|
212
212
|
label: e.string(),
|
|
213
213
|
type: e.union([
|
|
214
|
-
e.literal(
|
|
215
|
-
e.literal(
|
|
216
|
-
e.literal(
|
|
217
|
-
e.literal(
|
|
214
|
+
e.literal(l.TEXT),
|
|
215
|
+
e.literal(l.NUMBER),
|
|
216
|
+
e.literal(l.DATE),
|
|
217
|
+
e.literal(l.SELECT),
|
|
218
218
|
e.literal("RECORD")
|
|
219
219
|
]),
|
|
220
220
|
placeholder: e.string().optional(),
|
|
@@ -222,10 +222,10 @@ const O = /{{([^{}]+)}}/g, Ie = {
|
|
|
222
222
|
value: e.any().optional()
|
|
223
223
|
})
|
|
224
224
|
)
|
|
225
|
-
}), V =
|
|
225
|
+
}), V = s.extend({
|
|
226
226
|
type: e.literal("FORM"),
|
|
227
|
-
settings:
|
|
228
|
-
}), W =
|
|
227
|
+
settings: v
|
|
228
|
+
}), W = a.extend({
|
|
229
229
|
input: e.object({
|
|
230
230
|
url: e.string(),
|
|
231
231
|
method: e.enum(["GET", "POST", "PUT", "PATCH", "DELETE"]),
|
|
@@ -241,23 +241,23 @@ const O = /{{([^{}]+)}}/g, Ie = {
|
|
|
241
241
|
])
|
|
242
242
|
).or(e.string()).optional()
|
|
243
243
|
})
|
|
244
|
-
}), H =
|
|
244
|
+
}), H = s.extend({
|
|
245
245
|
type: e.literal("HTTP_REQUEST"),
|
|
246
246
|
settings: W
|
|
247
247
|
}), K = e.object({
|
|
248
248
|
id: e.string(),
|
|
249
249
|
nextStepIds: e.array(e.string()),
|
|
250
250
|
filterGroupId: e.string().optional()
|
|
251
|
-
}), q =
|
|
251
|
+
}), q = a.extend({
|
|
252
252
|
input: e.object({
|
|
253
|
-
stepFilterGroups: e.array(
|
|
254
|
-
stepFilters: e.array(
|
|
253
|
+
stepFilterGroups: e.array(g),
|
|
254
|
+
stepFilters: e.array(b),
|
|
255
255
|
branches: e.array(K)
|
|
256
256
|
})
|
|
257
|
-
}), J =
|
|
257
|
+
}), J = s.extend({
|
|
258
258
|
type: e.literal("IF_ELSE"),
|
|
259
259
|
settings: q
|
|
260
|
-
}), Y =
|
|
260
|
+
}), Y = a.extend({
|
|
261
261
|
input: e.object({
|
|
262
262
|
items: e.union([
|
|
263
263
|
e.array(
|
|
@@ -274,10 +274,18 @@ const O = /{{([^{}]+)}}/g, Ie = {
|
|
|
274
274
|
]).optional(),
|
|
275
275
|
initialLoopStepIds: e.array(e.string()).optional()
|
|
276
276
|
})
|
|
277
|
-
}), z =
|
|
277
|
+
}), z = s.extend({
|
|
278
278
|
type: e.literal("ITERATOR"),
|
|
279
279
|
settings: Y
|
|
280
|
-
}),
|
|
280
|
+
}), $ = a.extend({
|
|
281
|
+
input: e.object({
|
|
282
|
+
logicFunctionId: e.string(),
|
|
283
|
+
logicFunctionInput: e.record(e.string(), e.any())
|
|
284
|
+
})
|
|
285
|
+
}), Q = s.extend({
|
|
286
|
+
type: e.literal("LOGIC_FUNCTION"),
|
|
287
|
+
settings: $
|
|
288
|
+
}), X = p.extend({
|
|
281
289
|
type: e.literal("MANUAL"),
|
|
282
290
|
settings: e.object({
|
|
283
291
|
objectType: e.string().optional(),
|
|
@@ -303,46 +311,50 @@ const O = /{{([^{}]+)}}/g, Ie = {
|
|
|
303
311
|
})
|
|
304
312
|
}).describe(
|
|
305
313
|
"Manual trigger that can be launched by the user. If a record is selected when launched, it is accessible via {{trigger.record.fieldName}}. If no record is selected, no data context is available."
|
|
306
|
-
),
|
|
314
|
+
), Z = e.object({
|
|
307
315
|
id: e.string().refine((t) => j(t)),
|
|
308
316
|
name: e.string(),
|
|
309
317
|
size: e.number(),
|
|
310
318
|
type: e.string(),
|
|
311
319
|
createdAt: e.string()
|
|
312
|
-
}),
|
|
320
|
+
}), ee = a.extend({
|
|
313
321
|
input: e.object({
|
|
314
322
|
connectedAccountId: e.string(),
|
|
315
|
-
|
|
323
|
+
recipients: e.object({
|
|
324
|
+
to: e.string().optional().default(""),
|
|
325
|
+
cc: e.string().optional().default(""),
|
|
326
|
+
bcc: e.string().optional().default("")
|
|
327
|
+
}),
|
|
316
328
|
subject: e.string().optional(),
|
|
317
329
|
body: e.string().optional(),
|
|
318
|
-
files: e.array(
|
|
330
|
+
files: e.array(Z).optional().default([])
|
|
319
331
|
})
|
|
320
|
-
}),
|
|
332
|
+
}), te = s.extend({
|
|
321
333
|
type: e.literal("SEND_EMAIL"),
|
|
322
|
-
settings:
|
|
323
|
-
}),
|
|
334
|
+
settings: ee
|
|
335
|
+
}), oe = a.extend({
|
|
324
336
|
input: e.object({
|
|
325
337
|
objectName: e.string(),
|
|
326
|
-
objectRecord:
|
|
338
|
+
objectRecord: m,
|
|
327
339
|
objectRecordId: e.string(),
|
|
328
340
|
fieldsToUpdate: e.array(e.string())
|
|
329
341
|
})
|
|
330
|
-
}),
|
|
342
|
+
}), ne = s.extend(
|
|
331
343
|
{
|
|
332
344
|
type: e.literal("UPDATE_RECORD"),
|
|
333
|
-
settings:
|
|
345
|
+
settings: oe
|
|
334
346
|
}
|
|
335
|
-
),
|
|
347
|
+
), re = a.extend({
|
|
336
348
|
input: e.object({
|
|
337
349
|
objectName: e.string(),
|
|
338
|
-
objectRecord:
|
|
350
|
+
objectRecord: m
|
|
339
351
|
})
|
|
340
|
-
}),
|
|
352
|
+
}), ie = s.extend(
|
|
341
353
|
{
|
|
342
354
|
type: e.literal("UPSERT_RECORD"),
|
|
343
|
-
settings:
|
|
355
|
+
settings: re
|
|
344
356
|
}
|
|
345
|
-
),
|
|
357
|
+
), ae = p.extend({
|
|
346
358
|
type: e.literal("WEBHOOK"),
|
|
347
359
|
settings: e.discriminatedUnion("httpMethod", [
|
|
348
360
|
e.object({
|
|
@@ -357,7 +369,7 @@ const O = /{{([^{}]+)}}/g, Ie = {
|
|
|
357
369
|
authentication: e.literal("API_KEY").nullable()
|
|
358
370
|
})
|
|
359
371
|
])
|
|
360
|
-
}),
|
|
372
|
+
}), se = a.extend({
|
|
361
373
|
input: e.object({
|
|
362
374
|
delayType: e.enum(["SCHEDULED_DATE", "DURATION"]),
|
|
363
375
|
scheduledDateTime: e.string().nullable().optional(),
|
|
@@ -368,56 +380,57 @@ const O = /{{([^{}]+)}}/g, Ie = {
|
|
|
368
380
|
seconds: e.union([e.number().min(0), e.string()]).optional()
|
|
369
381
|
}).optional()
|
|
370
382
|
})
|
|
371
|
-
}),
|
|
383
|
+
}), ce = s.extend({
|
|
372
384
|
type: e.literal("DELAY"),
|
|
373
|
-
settings:
|
|
374
|
-
}),
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
x,
|
|
385
|
+
settings: se
|
|
386
|
+
}), le = e.discriminatedUnion("type", [
|
|
387
|
+
I,
|
|
388
|
+
Q,
|
|
378
389
|
te,
|
|
390
|
+
x,
|
|
391
|
+
ne,
|
|
379
392
|
_,
|
|
380
|
-
|
|
381
|
-
|
|
393
|
+
ie,
|
|
394
|
+
B,
|
|
382
395
|
V,
|
|
383
396
|
H,
|
|
384
|
-
|
|
397
|
+
k,
|
|
385
398
|
G,
|
|
386
399
|
J,
|
|
387
400
|
z,
|
|
388
|
-
|
|
401
|
+
ce,
|
|
389
402
|
L
|
|
390
403
|
]);
|
|
391
|
-
var
|
|
392
|
-
const
|
|
404
|
+
var f = /* @__PURE__ */ ((t) => (t.NOT_STARTED = "NOT_STARTED", t.RUNNING = "RUNNING", t.SUCCESS = "SUCCESS", t.STOPPED = "STOPPED", t.FAILED = "FAILED", t.PENDING = "PENDING", t.SKIPPED = "SKIPPED", t))(f || {});
|
|
405
|
+
const de = e.enum(f), h = e.object({
|
|
393
406
|
result: e.any().optional(),
|
|
394
407
|
error: e.any().optional(),
|
|
395
|
-
status:
|
|
408
|
+
status: de,
|
|
396
409
|
get history() {
|
|
397
410
|
return e.array(
|
|
398
|
-
|
|
411
|
+
h.pick({
|
|
399
412
|
result: !0,
|
|
400
413
|
status: !0,
|
|
401
414
|
error: !0
|
|
402
415
|
})
|
|
403
416
|
).optional();
|
|
404
417
|
}
|
|
405
|
-
}),
|
|
418
|
+
}), pe = e.record(
|
|
406
419
|
e.string(),
|
|
407
|
-
|
|
408
|
-
),
|
|
420
|
+
h
|
|
421
|
+
), ue = e.discriminatedUnion("type", [
|
|
409
422
|
F,
|
|
410
|
-
|
|
423
|
+
X,
|
|
411
424
|
D,
|
|
412
|
-
|
|
413
|
-
]),
|
|
425
|
+
ae
|
|
426
|
+
]), me = e.object({
|
|
414
427
|
flow: e.object({
|
|
415
|
-
trigger:
|
|
416
|
-
steps: e.array(
|
|
428
|
+
trigger: ue,
|
|
429
|
+
steps: e.array(le)
|
|
417
430
|
}),
|
|
418
|
-
stepInfos:
|
|
431
|
+
stepInfos: pe,
|
|
419
432
|
workflowRunError: e.any().optional()
|
|
420
|
-
}),
|
|
433
|
+
}), ge = e.enum([
|
|
421
434
|
"NOT_STARTED",
|
|
422
435
|
"RUNNING",
|
|
423
436
|
"COMPLETED",
|
|
@@ -425,18 +438,18 @@ const ce = e.enum(b), f = e.object({
|
|
|
425
438
|
"ENQUEUED",
|
|
426
439
|
"STOPPING",
|
|
427
440
|
"STOPPED"
|
|
428
|
-
]),
|
|
441
|
+
]), Ge = e.looseObject({
|
|
429
442
|
__typename: e.literal("WorkflowRun"),
|
|
430
443
|
id: e.string(),
|
|
431
444
|
workflowVersionId: e.string(),
|
|
432
445
|
workflowId: e.string(),
|
|
433
|
-
state:
|
|
434
|
-
status:
|
|
446
|
+
state: me.nullable(),
|
|
447
|
+
status: ge,
|
|
435
448
|
createdAt: e.string(),
|
|
436
449
|
deletedAt: e.string().nullable(),
|
|
437
450
|
endedAt: e.string().nullable(),
|
|
438
451
|
name: e.string()
|
|
439
|
-
}),
|
|
452
|
+
}), Me = ({
|
|
440
453
|
nameSingular: t,
|
|
441
454
|
isSystem: o
|
|
442
455
|
}) => ![
|
|
@@ -444,20 +457,20 @@ const ce = e.enum(b), f = e.object({
|
|
|
444
457
|
"workflowVersion",
|
|
445
458
|
"workflowRun",
|
|
446
459
|
"dashboard"
|
|
447
|
-
].includes(t) && !o,
|
|
460
|
+
].includes(t) && !o, Be = ({
|
|
448
461
|
rawVariableName: t,
|
|
449
462
|
part: o
|
|
450
463
|
}) => {
|
|
451
464
|
const r = t.replace(
|
|
452
465
|
O,
|
|
453
|
-
(
|
|
454
|
-
).split("."),
|
|
455
|
-
if (!
|
|
466
|
+
(c, S) => S
|
|
467
|
+
).split("."), i = o === "stepId" ? r[0] : o === "selectedField" ? r[r.length - 1] : null;
|
|
468
|
+
if (!d(i))
|
|
456
469
|
throw new Error("Expected to find at least one splitted chunk.");
|
|
457
|
-
return
|
|
458
|
-
},
|
|
459
|
-
Object.entries(t).filter(([, o]) =>
|
|
460
|
-
),
|
|
470
|
+
return i;
|
|
471
|
+
}, ve = (t) => Object.fromEntries(
|
|
472
|
+
Object.entries(t).filter(([, o]) => d(o?.result)).map(([o, n]) => [o, n?.result])
|
|
473
|
+
), Ve = (t) => t === "true" ? !0 : t === "false" ? !1 : t, be = (t) => {
|
|
461
474
|
let o = t;
|
|
462
475
|
if (typeof t == "string")
|
|
463
476
|
try {
|
|
@@ -466,13 +479,13 @@ const ce = e.enum(b), f = e.object({
|
|
|
466
479
|
o = t;
|
|
467
480
|
}
|
|
468
481
|
return new URLSearchParams(o).toString();
|
|
469
|
-
},
|
|
482
|
+
}, fe = (t) => {
|
|
470
483
|
const o = new FormData();
|
|
471
484
|
if (typeof t == "string")
|
|
472
485
|
try {
|
|
473
486
|
const n = JSON.parse(t);
|
|
474
487
|
Object.entries(n).forEach(
|
|
475
|
-
([r,
|
|
488
|
+
([r, i]) => o.append(r, String(i))
|
|
476
489
|
);
|
|
477
490
|
} catch {
|
|
478
491
|
throw new Error("String data for FormData must be valid JSON");
|
|
@@ -480,112 +493,138 @@ const ce = e.enum(b), f = e.object({
|
|
|
480
493
|
else
|
|
481
494
|
Object.entries(t).forEach(([n, r]) => o.append(n, r));
|
|
482
495
|
return o;
|
|
483
|
-
},
|
|
484
|
-
`),
|
|
496
|
+
}, u = (t) => typeof t == "string" ? t : JSON.stringify(t), he = (t) => typeof t == "string" ? t : Object.entries(t).map(([o, n]) => `${o}=${n}`).join(`
|
|
497
|
+
`), We = (t, o) => {
|
|
485
498
|
if (o === void 0)
|
|
486
|
-
return
|
|
499
|
+
return u(t);
|
|
487
500
|
switch (o) {
|
|
488
501
|
case "application/x-www-form-urlencoded":
|
|
489
|
-
return
|
|
502
|
+
return be(t);
|
|
490
503
|
case "multipart/form-data":
|
|
491
|
-
return
|
|
504
|
+
return fe(t);
|
|
492
505
|
case "application/json":
|
|
493
|
-
return
|
|
506
|
+
return u(t);
|
|
494
507
|
case "text/plain":
|
|
495
|
-
return
|
|
508
|
+
return he(t);
|
|
496
509
|
default:
|
|
497
|
-
return
|
|
510
|
+
return u(t);
|
|
511
|
+
}
|
|
512
|
+
}, Se = /[\s[]/, we = (t) => Se.test(t), ye = (t) => we(t) ? `[${t}]` : t, He = (t) => t.map(ye).join("."), Ke = (t) => {
|
|
513
|
+
const o = [];
|
|
514
|
+
let n = "", r = !1, i = 0;
|
|
515
|
+
for (; i < t.length; ) {
|
|
516
|
+
const c = t[i];
|
|
517
|
+
if (c === "[" && !r) {
|
|
518
|
+
n.length > 0 && (o.push(n), n = ""), r = !0, i++;
|
|
519
|
+
continue;
|
|
520
|
+
}
|
|
521
|
+
if (c === "]" && r) {
|
|
522
|
+
o.push(n), n = "", r = !1, i++, i < t.length && t[i] === "." && i++;
|
|
523
|
+
continue;
|
|
524
|
+
}
|
|
525
|
+
if (c === "." && !r) {
|
|
526
|
+
n.length > 0 && (o.push(n), n = ""), i++;
|
|
527
|
+
continue;
|
|
528
|
+
}
|
|
529
|
+
n += c, i++;
|
|
498
530
|
}
|
|
499
|
-
|
|
531
|
+
return n.length > 0 && o.push(n), o;
|
|
532
|
+
}, Ee = (t) => !d(t) || t === null ? "unknown" : typeof t == "string" ? "string" : typeof t == "number" ? "number" : typeof t == "boolean" ? "boolean" : Array.isArray(t) ? "array" : "unknown", je = (t) => t ? Object.entries(t).reduce(
|
|
500
533
|
(o, [n, r]) => (A(r) && !Array.isArray(r) ? o[n] = {
|
|
501
534
|
isLeaf: !1,
|
|
502
535
|
type: "object",
|
|
503
536
|
label: n,
|
|
504
|
-
value:
|
|
537
|
+
value: je(r)
|
|
505
538
|
} : o[n] = {
|
|
506
539
|
isLeaf: !0,
|
|
507
540
|
value: r,
|
|
508
|
-
type:
|
|
541
|
+
type: Ee(r),
|
|
509
542
|
label: n
|
|
510
543
|
}, o),
|
|
511
544
|
{}
|
|
512
|
-
) : {},
|
|
545
|
+
) : {}, qe = ({
|
|
513
546
|
schema: t,
|
|
514
547
|
propertyPath: o
|
|
515
548
|
}) => {
|
|
516
549
|
if (o.length === 0)
|
|
517
550
|
return;
|
|
518
551
|
let n = t, r;
|
|
519
|
-
for (const
|
|
520
|
-
if (r = n[
|
|
552
|
+
for (const i of o) {
|
|
553
|
+
if (r = n[i], !d(r))
|
|
521
554
|
return;
|
|
522
555
|
if (r.isLeaf)
|
|
523
|
-
return
|
|
556
|
+
return i === o[o.length - 1] ? r : void 0;
|
|
524
557
|
n = r.value;
|
|
525
558
|
}
|
|
526
559
|
return r;
|
|
527
560
|
};
|
|
528
561
|
export {
|
|
529
562
|
O as CAPTURE_ALL_VARIABLE_TAG_INNER_REGEX,
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
m as
|
|
546
|
-
|
|
563
|
+
Ce as CONTENT_TYPE_VALUES_HTTP_REQUEST,
|
|
564
|
+
Le as IF_ELSE_BRANCH_POSITION_OFFSETS,
|
|
565
|
+
f as StepStatus,
|
|
566
|
+
Pe as TRIGGER_STEP_ID,
|
|
567
|
+
p as baseTriggerSchema,
|
|
568
|
+
s as baseWorkflowActionSchema,
|
|
569
|
+
a as baseWorkflowActionSettingsSchema,
|
|
570
|
+
je as buildOutputSchemaFromValue,
|
|
571
|
+
Me as canObjectBeManagedByWorkflow,
|
|
572
|
+
ye as escapePathSegment,
|
|
573
|
+
Be as extractRawVariableNamePart,
|
|
574
|
+
ve as getWorkflowRunContext,
|
|
575
|
+
He as joinVariablePath,
|
|
576
|
+
qe as navigateOutputSchemaProperty,
|
|
577
|
+
we as needsEscaping,
|
|
578
|
+
m as objectRecordSchema,
|
|
579
|
+
Ve as parseBooleanFromStringValue,
|
|
580
|
+
We as parseDataFromContentType,
|
|
581
|
+
Ke as parseVariablePath,
|
|
582
|
+
g as stepFilterGroupSchema,
|
|
583
|
+
b as stepFilterSchema,
|
|
547
584
|
K as stepIfElseBranchSchema,
|
|
548
|
-
|
|
549
|
-
|
|
585
|
+
le as workflowActionSchema,
|
|
586
|
+
k as workflowAiAgentActionSchema,
|
|
550
587
|
T as workflowAiAgentActionSettingsSchema,
|
|
551
|
-
|
|
552
|
-
|
|
588
|
+
I as workflowCodeActionSchema,
|
|
589
|
+
R as workflowCodeActionSettingsSchema,
|
|
553
590
|
x as workflowCreateRecordActionSchema,
|
|
554
|
-
|
|
591
|
+
N as workflowCreateRecordActionSettingsSchema,
|
|
555
592
|
D as workflowCronTriggerSchema,
|
|
556
593
|
F as workflowDatabaseEventTriggerSchema,
|
|
557
|
-
|
|
558
|
-
|
|
594
|
+
ce as workflowDelayActionSchema,
|
|
595
|
+
se as workflowDelayActionSettingsSchema,
|
|
559
596
|
_ as workflowDeleteRecordActionSchema,
|
|
560
597
|
U as workflowDeleteRecordActionSettingsSchema,
|
|
561
598
|
L as workflowEmptyActionSchema,
|
|
562
599
|
C as workflowEmptyActionSettingsSchema,
|
|
563
|
-
|
|
600
|
+
Z as workflowFileSchema,
|
|
564
601
|
G as workflowFilterActionSchema,
|
|
565
602
|
P as workflowFilterActionSettingsSchema,
|
|
566
|
-
|
|
567
|
-
|
|
603
|
+
B as workflowFindRecordsActionSchema,
|
|
604
|
+
M as workflowFindRecordsActionSettingsSchema,
|
|
568
605
|
V as workflowFormActionSchema,
|
|
569
|
-
|
|
606
|
+
v as workflowFormActionSettingsSchema,
|
|
570
607
|
H as workflowHttpRequestActionSchema,
|
|
571
608
|
W as workflowHttpRequestActionSettingsSchema,
|
|
572
609
|
J as workflowIfElseActionSchema,
|
|
573
610
|
q as workflowIfElseActionSettingsSchema,
|
|
574
611
|
z as workflowIteratorActionSchema,
|
|
575
612
|
Y as workflowIteratorActionSettingsSchema,
|
|
576
|
-
Q as
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
oe as
|
|
590
|
-
|
|
613
|
+
Q as workflowLogicFunctionActionSchema,
|
|
614
|
+
$ as workflowLogicFunctionActionSettingsSchema,
|
|
615
|
+
X as workflowManualTriggerSchema,
|
|
616
|
+
Ge as workflowRunSchema,
|
|
617
|
+
me as workflowRunStateSchema,
|
|
618
|
+
h as workflowRunStateStepInfoSchema,
|
|
619
|
+
pe as workflowRunStateStepInfosSchema,
|
|
620
|
+
ge as workflowRunStatusSchema,
|
|
621
|
+
de as workflowRunStepStatusSchema,
|
|
622
|
+
te as workflowSendEmailActionSchema,
|
|
623
|
+
ee as workflowSendEmailActionSettingsSchema,
|
|
624
|
+
ue as workflowTriggerSchema,
|
|
625
|
+
ne as workflowUpdateRecordActionSchema,
|
|
626
|
+
oe as workflowUpdateRecordActionSettingsSchema,
|
|
627
|
+
ie as workflowUpsertRecordActionSchema,
|
|
628
|
+
re as workflowUpsertRecordActionSettingsSchema,
|
|
629
|
+
ae as workflowWebhookTriggerSchema
|
|
591
630
|
};
|