@objectstack/spec 0.3.2 → 0.4.1
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 +32 -10
- package/dist/ai/agent.zod.d.ts +12 -12
- package/dist/ai/conversation.zod.d.ts +54 -54
- package/dist/ai/cost.zod.d.ts +135 -135
- package/dist/ai/index.d.ts +1 -1
- package/dist/ai/index.d.ts.map +1 -1
- package/dist/ai/index.js +1 -1
- package/dist/ai/model-registry.zod.d.ts +91 -91
- package/dist/ai/nlq.zod.d.ts +72 -72
- package/dist/ai/{workflow-automation.zod.d.ts → orchestration.zod.d.ts} +51 -50
- package/dist/ai/orchestration.zod.d.ts.map +1 -0
- package/dist/ai/{workflow-automation.zod.js → orchestration.zod.js} +26 -25
- package/dist/ai/predictive.zod.d.ts +27 -27
- package/dist/ai/rag-pipeline.zod.d.ts +102 -102
- package/dist/api/contract.zod.d.ts +213 -197
- package/dist/api/contract.zod.d.ts.map +1 -1
- package/dist/{system → api}/discovery.zod.d.ts +26 -26
- package/dist/api/discovery.zod.d.ts.map +1 -0
- package/dist/{system → api}/discovery.zod.js +9 -9
- package/dist/{system/api.zod.d.ts → api/endpoint.zod.d.ts} +53 -57
- package/dist/api/endpoint.zod.d.ts.map +1 -0
- package/dist/{system/api.zod.js → api/endpoint.zod.js} +3 -6
- package/dist/api/index.d.ts +6 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +6 -0
- package/dist/api/odata.zod.d.ts +482 -0
- package/dist/api/odata.zod.d.ts.map +1 -0
- package/dist/api/odata.zod.js +401 -0
- package/dist/{system → api}/realtime.zod.d.ts +4 -4
- package/dist/api/realtime.zod.d.ts.map +1 -0
- package/dist/api/router.zod.d.ts +182 -0
- package/dist/api/router.zod.d.ts.map +1 -0
- package/dist/api/router.zod.js +103 -0
- package/dist/{system/auth.zod.d.ts → auth/config.zod.d.ts} +199 -199
- package/dist/auth/config.zod.d.ts.map +1 -0
- package/dist/{system → auth}/identity.zod.d.ts +8 -8
- package/dist/auth/identity.zod.d.ts.map +1 -0
- package/dist/auth/index.d.ts +8 -0
- package/dist/auth/index.d.ts.map +1 -0
- package/dist/auth/index.js +23 -0
- package/dist/{system → auth}/organization.zod.d.ts +7 -7
- package/dist/auth/organization.zod.d.ts.map +1 -0
- package/dist/{system → auth}/policy.zod.d.ts +3 -3
- package/dist/auth/policy.zod.d.ts.map +1 -0
- package/dist/{system/auth-protocol.d.ts → auth/protocol.d.ts} +1 -1
- package/dist/auth/protocol.d.ts.map +1 -0
- package/dist/{system → auth}/role.zod.d.ts +14 -0
- package/dist/auth/role.zod.d.ts.map +1 -0
- package/dist/{system → auth}/role.zod.js +16 -1
- package/dist/auth/scim.zod.d.ts +2732 -0
- package/dist/auth/scim.zod.d.ts.map +1 -0
- package/dist/auth/scim.zod.js +811 -0
- package/dist/automation/approval.zod.d.ts +643 -0
- package/dist/automation/approval.zod.d.ts.map +1 -0
- package/dist/automation/approval.zod.js +84 -0
- package/dist/automation/connector.zod.d.ts +1284 -0
- package/dist/automation/connector.zod.d.ts.map +1 -0
- package/dist/automation/connector.zod.js +500 -0
- package/dist/automation/etl.zod.d.ts +623 -0
- package/dist/automation/etl.zod.d.ts.map +1 -0
- package/dist/automation/etl.zod.js +359 -0
- package/dist/{data → automation}/flow.zod.d.ts +40 -22
- package/dist/automation/flow.zod.d.ts.map +1 -0
- package/dist/{data → automation}/flow.zod.js +6 -1
- package/dist/automation/index.d.ts +8 -0
- package/dist/automation/index.d.ts.map +1 -0
- package/dist/automation/index.js +23 -0
- package/dist/automation/sync.zod.d.ts +854 -0
- package/dist/automation/sync.zod.d.ts.map +1 -0
- package/dist/automation/sync.zod.js +444 -0
- package/dist/{system → automation}/webhook.zod.d.ts +26 -3
- package/dist/automation/webhook.zod.d.ts.map +1 -0
- package/dist/{system → automation}/webhook.zod.js +27 -3
- package/dist/automation/workflow.zod.d.ts +2059 -0
- package/dist/automation/workflow.zod.d.ts.map +1 -0
- package/dist/{data → automation}/workflow.zod.js +40 -2
- package/dist/data/dataset.zod.d.ts +2 -2
- package/dist/data/field.zod.d.ts +779 -219
- package/dist/data/field.zod.d.ts.map +1 -1
- package/dist/data/field.zod.js +128 -16
- package/dist/data/filter.zod.d.ts +167 -30
- package/dist/data/filter.zod.d.ts.map +1 -1
- package/dist/data/filter.zod.js +25 -13
- package/dist/data/hook.zod.d.ts +191 -0
- package/dist/data/hook.zod.d.ts.map +1 -0
- package/dist/data/hook.zod.js +144 -0
- package/dist/data/index.d.ts +4 -17
- package/dist/data/index.d.ts.map +1 -1
- package/dist/data/index.js +4 -17
- package/dist/data/mapping.zod.d.ts +117 -93
- package/dist/data/mapping.zod.d.ts.map +1 -1
- package/dist/data/mapping.zod.js +16 -3
- package/dist/data/object.zod.d.ts +485 -131
- package/dist/data/object.zod.d.ts.map +1 -1
- package/dist/data/object.zod.js +87 -42
- package/dist/data/query.zod.d.ts +98 -169
- package/dist/data/query.zod.d.ts.map +1 -1
- package/dist/data/query.zod.js +42 -130
- package/dist/data/validation.zod.d.ts +166 -26
- package/dist/data/validation.zod.d.ts.map +1 -1
- package/dist/data/validation.zod.js +38 -16
- package/dist/hub/composer.zod.d.ts +871 -0
- package/dist/hub/composer.zod.d.ts.map +1 -0
- package/dist/hub/composer.zod.js +111 -0
- package/dist/hub/index.d.ts +6 -0
- package/dist/hub/index.d.ts.map +1 -0
- package/dist/hub/index.js +22 -0
- package/dist/{system → hub}/license.zod.d.ts +13 -9
- package/dist/hub/license.zod.d.ts.map +1 -0
- package/dist/{system → hub}/license.zod.js +5 -3
- package/dist/hub/marketplace.zod.d.ts +191 -0
- package/dist/hub/marketplace.zod.d.ts.map +1 -0
- package/dist/hub/marketplace.zod.js +85 -0
- package/dist/hub/space.zod.d.ts +383 -0
- package/dist/hub/space.zod.d.ts.map +1 -0
- package/dist/hub/space.zod.js +103 -0
- package/dist/{system → hub}/tenant.zod.d.ts +73 -47
- package/dist/hub/tenant.zod.d.ts.map +1 -0
- package/dist/{system → hub}/tenant.zod.js +36 -10
- package/dist/index.d.ts +11 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -5
- package/dist/permission/index.d.ts +14 -0
- package/dist/permission/index.d.ts.map +1 -0
- package/dist/permission/index.js +29 -0
- package/dist/{data → permission}/permission.zod.d.ts +48 -3
- package/dist/permission/permission.zod.d.ts.map +1 -0
- package/dist/{data → permission}/permission.zod.js +26 -2
- package/dist/permission/rls.zod.d.ts +605 -0
- package/dist/permission/rls.zod.d.ts.map +1 -0
- package/dist/permission/rls.zod.js +615 -0
- package/dist/permission/sharing.zod.d.ts +146 -0
- package/dist/permission/sharing.zod.d.ts.map +1 -0
- package/dist/permission/sharing.zod.js +88 -0
- package/dist/{system → permission}/territory.zod.d.ts +13 -0
- package/dist/permission/territory.zod.d.ts.map +1 -0
- package/dist/{system → permission}/territory.zod.js +15 -1
- package/dist/shared/identifiers.zod.d.ts +87 -0
- package/dist/shared/identifiers.zod.d.ts.map +1 -0
- package/dist/shared/identifiers.zod.js +101 -0
- package/dist/shared/index.d.ts +6 -0
- package/dist/shared/index.d.ts.map +1 -0
- package/dist/shared/index.js +21 -0
- package/dist/stack.zod.d.ts +19869 -0
- package/dist/stack.zod.d.ts.map +1 -0
- package/dist/stack.zod.js +248 -0
- package/dist/system/audit.zod.d.ts +58 -58
- package/dist/system/context.zod.d.ts +56 -0
- package/dist/system/context.zod.d.ts.map +1 -0
- package/dist/system/context.zod.js +43 -0
- package/dist/system/datasource.zod.d.ts +40 -6
- package/dist/system/datasource.zod.d.ts.map +1 -1
- package/dist/system/datasource.zod.js +17 -13
- package/dist/system/driver/mongo.zod.d.ts +107 -0
- package/dist/system/driver/mongo.zod.d.ts.map +1 -0
- package/dist/system/driver/mongo.zod.js +80 -0
- package/dist/system/driver/postgres.zod.d.ts +134 -0
- package/dist/system/driver/postgres.zod.d.ts.map +1 -0
- package/dist/system/driver/postgres.zod.js +88 -0
- package/dist/system/driver.zod.d.ts +2249 -488
- package/dist/system/driver.zod.d.ts.map +1 -1
- package/dist/system/driver.zod.js +99 -0
- package/dist/system/events.zod.d.ts +8 -5
- package/dist/system/events.zod.d.ts.map +1 -1
- package/dist/system/events.zod.js +5 -1
- package/dist/system/feature.zod.d.ts +131 -0
- package/dist/system/feature.zod.d.ts.map +1 -0
- package/dist/system/feature.zod.js +45 -0
- package/dist/system/index.d.ts +11 -20
- package/dist/system/index.d.ts.map +1 -1
- package/dist/system/index.js +15 -20
- package/dist/system/job.zod.d.ts +5 -5
- package/dist/system/logger.zod.d.ts +111 -0
- package/dist/system/logger.zod.d.ts.map +1 -0
- package/dist/system/logger.zod.js +75 -0
- package/dist/system/manifest.zod.d.ts +136 -18
- package/dist/system/manifest.zod.d.ts.map +1 -1
- package/dist/system/manifest.zod.js +28 -0
- package/dist/system/plugin.zod.d.ts +598 -318
- package/dist/system/plugin.zod.d.ts.map +1 -1
- package/dist/system/plugin.zod.js +13 -0
- package/dist/system/scoped-storage.zod.d.ts +81 -0
- package/dist/system/scoped-storage.zod.d.ts.map +1 -0
- package/dist/system/scoped-storage.zod.js +66 -0
- package/dist/ui/action.zod.d.ts +42 -17
- package/dist/ui/action.zod.d.ts.map +1 -1
- package/dist/ui/action.zod.js +30 -1
- package/dist/ui/app.zod.d.ts +26 -11
- package/dist/ui/app.zod.d.ts.map +1 -1
- package/dist/ui/app.zod.js +32 -4
- package/dist/ui/block.zod.d.ts +265 -0
- package/dist/ui/block.zod.d.ts.map +1 -0
- package/dist/ui/block.zod.js +90 -0
- package/dist/ui/component.zod.d.ts +265 -0
- package/dist/ui/component.zod.d.ts.map +1 -0
- package/dist/ui/component.zod.js +90 -0
- package/dist/ui/dashboard.zod.d.ts +15 -15
- package/dist/ui/dashboard.zod.d.ts.map +1 -1
- package/dist/ui/dashboard.zod.js +18 -8
- package/dist/ui/index.d.ts +1 -0
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +1 -0
- package/dist/ui/page.zod.d.ts +23 -5
- package/dist/ui/page.zod.d.ts.map +1 -1
- package/dist/ui/page.zod.js +37 -4
- package/dist/ui/report.zod.d.ts +12 -12
- package/dist/ui/theme.zod.d.ts +42 -42
- package/dist/ui/view.zod.d.ts +302 -290
- package/dist/ui/view.zod.d.ts.map +1 -1
- package/dist/ui/view.zod.js +32 -3
- package/dist/ui/widget.zod.d.ts +730 -29
- package/dist/ui/widget.zod.d.ts.map +1 -1
- package/dist/ui/widget.zod.js +294 -1
- package/json-schema/ai/{AIWorkflowAutomation.json → AIOrchestration.json} +5 -5
- package/json-schema/ai/{AIWorkflowExecutionResult.json → AIOrchestrationExecutionResult.json} +2 -2
- package/json-schema/ai/{AIWorkflowTrigger.json → AIOrchestrationTrigger.json} +2 -2
- package/json-schema/ai/{BatchAIWorkflowExecution.json → BatchAIOrchestrationExecution.json} +3 -3
- package/json-schema/{system → api}/ApiEndpoint.json +3 -1
- package/json-schema/{system → api}/ApiRoutes.json +7 -7
- package/json-schema/{system → api}/Discovery.json +7 -7
- package/json-schema/api/ExportRequest.json +402 -438
- package/json-schema/{system → api}/HttpMethod.json +3 -1
- package/json-schema/api/ODataError.json +65 -0
- package/json-schema/api/ODataFilterFunction.json +39 -0
- package/json-schema/api/ODataFilterOperator.json +24 -0
- package/json-schema/api/ODataMetadata.json +115 -0
- package/json-schema/api/ODataQuery.json +89 -0
- package/json-schema/api/ODataResponse.json +37 -0
- package/json-schema/api/RouteCategory.json +17 -0
- package/json-schema/api/RouteDefinition.json +77 -0
- package/json-schema/api/RouterConfig.json +117 -0
- package/json-schema/{system → auth}/Role.json +3 -2
- package/json-schema/auth/SCIMAddress.json +50 -0
- package/json-schema/auth/SCIMEmail.json +38 -0
- package/json-schema/auth/SCIMEnterpriseUser.json +55 -0
- package/json-schema/auth/SCIMError.json +52 -0
- package/json-schema/auth/SCIMGroup.json +102 -0
- package/json-schema/auth/SCIMGroupReference.json +36 -0
- package/json-schema/auth/SCIMListResponse.json +606 -0
- package/json-schema/auth/SCIMMemberReference.json +36 -0
- package/json-schema/auth/SCIMMeta.json +35 -0
- package/json-schema/auth/SCIMName.json +36 -0
- package/json-schema/auth/SCIMPatchOperation.json +31 -0
- package/json-schema/auth/SCIMPatchRequest.json +56 -0
- package/json-schema/auth/SCIMPhoneNumber.json +40 -0
- package/json-schema/auth/SCIMUser.json +462 -0
- package/json-schema/automation/ApprovalAction.json +35 -0
- package/json-schema/automation/ApprovalActionType.json +15 -0
- package/json-schema/automation/ApprovalProcess.json +326 -0
- package/json-schema/automation/ApprovalStep.json +147 -0
- package/json-schema/automation/ApproverType.json +16 -0
- package/json-schema/automation/AuthField.json +73 -0
- package/json-schema/automation/Authentication.json +159 -0
- package/json-schema/automation/AuthenticationType.json +18 -0
- package/json-schema/automation/ConflictResolution.json +16 -0
- package/json-schema/automation/Connector.json +440 -0
- package/json-schema/automation/ConnectorCategory.json +26 -0
- package/json-schema/automation/ConnectorInstance.json +69 -0
- package/json-schema/automation/ConnectorOperation.json +117 -0
- package/json-schema/automation/ConnectorTrigger.json +54 -0
- package/json-schema/automation/DataDestinationConfig.json +89 -0
- package/json-schema/automation/DataSourceConfig.json +34 -0
- package/json-schema/automation/DataSyncConfig.json +355 -0
- package/json-schema/automation/ETLDestination.json +57 -0
- package/json-schema/automation/ETLEndpointType.json +19 -0
- package/json-schema/automation/ETLPipeline.json +252 -0
- package/json-schema/automation/ETLPipelineRun.json +107 -0
- package/json-schema/automation/ETLRunStatus.json +17 -0
- package/json-schema/automation/ETLSource.json +60 -0
- package/json-schema/{data/LogicOperator.json → automation/ETLSyncMode.json} +5 -5
- package/json-schema/automation/ETLTransformation.json +46 -0
- package/json-schema/automation/ETLTransformationType.json +21 -0
- package/json-schema/automation/FieldMapping.json +36 -0
- package/json-schema/{data → automation}/Flow.json +31 -1
- package/json-schema/{data → automation}/FlowEdge.json +9 -0
- package/json-schema/automation/OAuth2Config.json +43 -0
- package/json-schema/automation/OperationParameter.json +59 -0
- package/json-schema/automation/OperationType.json +17 -0
- package/json-schema/automation/SyncDirection.json +14 -0
- package/json-schema/automation/SyncExecutionResult.json +135 -0
- package/json-schema/automation/SyncExecutionStatus.json +17 -0
- package/json-schema/{data/TriggerTiming.json → automation/SyncMode.json} +5 -4
- package/json-schema/{data/WorkflowRule.json → automation/TimeTrigger.json} +35 -25
- package/json-schema/{system → automation}/Webhook.json +3 -1
- package/json-schema/{system → automation}/WebhookReceiver.json +3 -1
- package/json-schema/automation/WorkflowRule.json +1032 -0
- package/json-schema/data/AggregationNode.json +23 -0
- package/json-schema/data/AsyncValidation.json +49 -2
- package/json-schema/data/ComparisonOperator.json +52 -0
- package/json-schema/data/ConditionalValidation.json +693 -46
- package/json-schema/data/CrossFieldValidation.json +33 -2
- package/json-schema/data/CurrencyConfig.json +35 -0
- package/json-schema/data/CurrencyValue.json +26 -0
- package/json-schema/data/CustomValidator.json +37 -10
- package/json-schema/data/Field.json +92 -4
- package/json-schema/data/FieldOperators.json +78 -0
- package/json-schema/data/FieldReference.json +19 -0
- package/json-schema/data/FieldType.json +12 -2
- package/json-schema/data/FormatValidation.json +33 -2
- package/json-schema/data/Hook.json +95 -0
- package/json-schema/data/HookContext.json +88 -0
- package/json-schema/data/HookEvent.json +29 -0
- package/json-schema/data/Index.json +10 -0
- package/json-schema/data/JSONValidation.json +85 -0
- package/json-schema/data/JoinNode.json +197 -213
- package/json-schema/data/JoinStrategy.json +15 -0
- package/json-schema/data/NormalizedFilter.json +234 -0
- package/json-schema/data/Object.json +1642 -32
- package/json-schema/data/ObjectCapabilities.json +30 -12
- package/json-schema/data/Query.json +246 -262
- package/json-schema/data/RangeOperator.json +26 -0
- package/json-schema/data/ScriptValidation.json +33 -2
- package/json-schema/data/SearchConfig.json +36 -0
- package/json-schema/data/SelectOption.json +4 -2
- package/json-schema/data/StateMachineValidation.json +33 -2
- package/json-schema/data/UniquenessValidation.json +33 -2
- package/json-schema/data/ValidationRule.json +693 -46
- package/json-schema/data/VectorConfig.json +51 -0
- package/json-schema/hub/BillOfMaterials.json +70 -0
- package/json-schema/hub/ComposerRequest.json +86 -0
- package/json-schema/hub/ComposerResponse.json +483 -0
- package/json-schema/hub/ConflictReport.json +53 -0
- package/json-schema/hub/DependencyRequirement.json +36 -0
- package/json-schema/hub/DeploymentTarget.json +38 -0
- package/json-schema/hub/HubSpace.json +279 -0
- package/json-schema/{system → hub}/License.json +11 -3
- package/json-schema/hub/MarketplacePlugin.json +141 -0
- package/json-schema/hub/PluginAuthor.json +26 -0
- package/json-schema/hub/PluginPricing.json +43 -0
- package/json-schema/hub/SpaceSubscription.json +77 -0
- package/json-schema/hub/SubscriptionStatus.json +16 -0
- package/json-schema/{system → hub}/Tenant.json +3 -5
- package/json-schema/permission/CriteriaSharingRule.json +82 -0
- package/json-schema/{data → permission}/OWDModel.json +2 -1
- package/json-schema/{data → permission}/ObjectPermission.json +15 -0
- package/json-schema/permission/OwnerSharingRule.json +102 -0
- package/json-schema/{data → permission}/PermissionSet.json +18 -1
- package/json-schema/permission/RLSConfig.json +59 -0
- package/json-schema/permission/RLSEvaluationResult.json +40 -0
- package/json-schema/{data/TriggerAction.json → permission/RLSOperation.json} +5 -3
- package/json-schema/permission/RLSUserContext.json +51 -0
- package/json-schema/permission/RowLevelSecurityPolicy.json +77 -0
- package/json-schema/permission/ShareRecipientType.json +16 -0
- package/json-schema/{data → permission}/SharingLevel.json +2 -1
- package/json-schema/permission/SharingRule.json +182 -0
- package/json-schema/{data → permission}/SharingRuleType.json +1 -3
- package/json-schema/{system → permission}/Territory.json +3 -1
- package/json-schema/shared/EventName.json +12 -0
- package/json-schema/shared/SnakeCaseIdentifier.json +12 -0
- package/json-schema/shared/SystemIdentifier.json +12 -0
- package/json-schema/system/Datasource.json +35 -0
- package/json-schema/system/DriverCapabilities.json +10 -0
- package/json-schema/system/DriverInterface.json +10 -0
- package/json-schema/system/DriverOptions.json +11 -0
- package/json-schema/system/Event.json +3 -2
- package/json-schema/system/FeatureFlag.json +87 -0
- package/json-schema/system/FeatureStrategy.json +16 -0
- package/json-schema/system/FileMetadata.json +43 -0
- package/json-schema/system/KernelContext.json +62 -0
- package/json-schema/system/LogEntry.json +63 -0
- package/json-schema/system/LogFormat.json +15 -0
- package/json-schema/system/LogLevel.json +17 -0
- package/json-schema/system/LoggerConfig.json +70 -0
- package/json-schema/system/Manifest.json +80 -0
- package/json-schema/system/MongoConfig.json +82 -0
- package/json-schema/system/PluginContext.json +8 -1
- package/json-schema/system/PostgresConfig.json +98 -0
- package/json-schema/system/RuntimeMode.json +16 -0
- package/json-schema/system/ScopedStorageConfig.json +54 -0
- package/json-schema/system/StorageAdapterType.json +17 -0
- package/json-schema/system/StorageScope.json +18 -0
- package/json-schema/ui/Action.json +25 -4
- package/json-schema/ui/ActionParam.json +12 -2
- package/json-schema/ui/App.json +18 -7
- package/json-schema/ui/ChartType.json +9 -1
- package/json-schema/ui/Dashboard.json +9 -1
- package/json-schema/ui/DashboardNavItem.json +3 -1
- package/json-schema/ui/DashboardWidget.json +9 -1
- package/json-schema/ui/FieldWidgetProps.json +92 -4
- package/json-schema/ui/FormView.json +4 -1
- package/json-schema/ui/GroupNavItem.json +3 -1
- package/json-schema/ui/ListView.json +7 -1
- package/json-schema/ui/NavigationItem.json +15 -5
- package/json-schema/ui/ObjectNavItem.json +3 -1
- package/json-schema/ui/Page.json +36 -4
- package/json-schema/ui/PageCardProps.json +32 -0
- package/json-schema/ui/PageComponent.json +33 -3
- package/json-schema/ui/PageComponentType.json +32 -0
- package/json-schema/ui/PageHeaderProps.json +39 -0
- package/json-schema/ui/PageNavItem.json +3 -1
- package/json-schema/ui/PageRegion.json +33 -3
- package/json-schema/ui/PageTabsProps.json +55 -0
- package/json-schema/ui/RecordDetailsProps.json +37 -0
- package/json-schema/ui/RecordHighlightsProps.json +24 -0
- package/json-schema/ui/RecordRelatedListProps.json +39 -0
- package/json-schema/ui/UrlNavItem.json +3 -1
- package/json-schema/ui/View.json +22 -4
- package/json-schema/ui/WidgetEvent.json +42 -0
- package/json-schema/ui/WidgetLifecycle.json +40 -0
- package/json-schema/ui/WidgetManifest.json +262 -0
- package/json-schema/ui/WidgetProperty.json +58 -0
- package/llms.txt +182 -0
- package/package.json +38 -16
- package/prompts/README.md +18 -0
- package/prompts/architecture.md +81 -0
- package/prompts/create-new-project.md +85 -0
- package/prompts/implement-objectai.md +39 -0
- package/prompts/implement-objectos.md +48 -0
- package/prompts/implement-objectql.md +39 -0
- package/prompts/implement-objectui.md +46 -0
- package/prompts/instructions.md +91 -0
- package/dist/ai/workflow-automation.zod.d.ts.map +0 -1
- package/dist/data/flow.zod.d.ts.map +0 -1
- package/dist/data/permission.zod.d.ts.map +0 -1
- package/dist/data/sharing.zod.d.ts +0 -63
- package/dist/data/sharing.zod.d.ts.map +0 -1
- package/dist/data/sharing.zod.js +0 -57
- package/dist/data/trigger.zod.d.ts +0 -354
- package/dist/data/trigger.zod.d.ts.map +0 -1
- package/dist/data/trigger.zod.js +0 -195
- package/dist/data/workflow.zod.d.ts +0 -986
- package/dist/data/workflow.zod.d.ts.map +0 -1
- package/dist/system/api.zod.d.ts.map +0 -1
- package/dist/system/auth-protocol.d.ts.map +0 -1
- package/dist/system/auth.zod.d.ts.map +0 -1
- package/dist/system/discovery.zod.d.ts.map +0 -1
- package/dist/system/identity.zod.d.ts.map +0 -1
- package/dist/system/license.zod.d.ts.map +0 -1
- package/dist/system/organization.zod.d.ts.map +0 -1
- package/dist/system/policy.zod.d.ts.map +0 -1
- package/dist/system/realtime.zod.d.ts.map +0 -1
- package/dist/system/role.zod.d.ts.map +0 -1
- package/dist/system/tenant.zod.d.ts.map +0 -1
- package/dist/system/territory.zod.d.ts.map +0 -1
- package/dist/system/webhook.zod.d.ts.map +0 -1
- package/json-schema/README.md +0 -127
- package/json-schema/data/FieldMapping.json +0 -83
- package/json-schema/data/FilterNode.json +0 -52
- package/json-schema/data/FilterOperator.json +0 -26
- package/json-schema/data/Mapping.json +0 -598
- package/json-schema/data/SharingRule.json +0 -58
- package/json-schema/data/TransformType.json +0 -18
- package/json-schema/data/Trigger.json +0 -73
- package/json-schema/data/TriggerContext.json +0 -61
- /package/dist/{system → api}/realtime.zod.js +0 -0
- /package/dist/{system/auth.zod.js → auth/config.zod.js} +0 -0
- /package/dist/{system → auth}/identity.zod.js +0 -0
- /package/dist/{system → auth}/organization.zod.js +0 -0
- /package/dist/{system → auth}/policy.zod.js +0 -0
- /package/dist/{system/auth-protocol.js → auth/protocol.js} +0 -0
- /package/json-schema/{system → api}/ApiCapabilities.json +0 -0
- /package/json-schema/{system → api}/ApiMapping.json +0 -0
- /package/json-schema/{system → api}/Presence.json +0 -0
- /package/json-schema/{system → api}/PresenceStatus.json +0 -0
- /package/json-schema/{system → api}/RateLimit.json +0 -0
- /package/json-schema/{system → api}/RealtimeAction.json +0 -0
- /package/json-schema/{system → api}/RealtimeEvent.json +0 -0
- /package/json-schema/{system → api}/RealtimeEventType.json +0 -0
- /package/json-schema/{system → api}/Subscription.json +0 -0
- /package/json-schema/{system → api}/SubscriptionEvent.json +0 -0
- /package/json-schema/{system → api}/TransportProtocol.json +0 -0
- /package/json-schema/{system → auth}/Account.json +0 -0
- /package/json-schema/{system → auth}/AccountLinkingConfig.json +0 -0
- /package/json-schema/{system → auth}/AuditPolicy.json +0 -0
- /package/json-schema/{system → auth}/AuthConfig.json +0 -0
- /package/json-schema/{system → auth}/AuthPluginConfig.json +0 -0
- /package/json-schema/{system → auth}/AuthStrategy.json +0 -0
- /package/json-schema/{system → auth}/CSRFConfig.json +0 -0
- /package/json-schema/{system → auth}/DatabaseAdapter.json +0 -0
- /package/json-schema/{system → auth}/DatabaseMapping.json +0 -0
- /package/json-schema/{system → auth}/EmailPasswordConfig.json +0 -0
- /package/json-schema/{system → auth}/EnterpriseAuthConfig.json +0 -0
- /package/json-schema/{system → auth}/Invitation.json +0 -0
- /package/json-schema/{system → auth}/InvitationStatus.json +0 -0
- /package/json-schema/{system → auth}/LDAPConfig.json +0 -0
- /package/json-schema/{system → auth}/MagicLinkConfig.json +0 -0
- /package/json-schema/{system → auth}/Member.json +0 -0
- /package/json-schema/{system → auth}/NetworkPolicy.json +0 -0
- /package/json-schema/{system → auth}/OAuthProvider.json +0 -0
- /package/json-schema/{system → auth}/OIDCConfig.json +0 -0
- /package/json-schema/{system → auth}/Organization.json +0 -0
- /package/json-schema/{system → auth}/PasskeyConfig.json +0 -0
- /package/json-schema/{system → auth}/PasswordPolicy.json +0 -0
- /package/json-schema/{system → auth}/Policy.json +0 -0
- /package/json-schema/{system → auth}/RateLimitConfig.json +0 -0
- /package/json-schema/{system → auth}/SAMLConfig.json +0 -0
- /package/json-schema/{system → auth}/Session.json +0 -0
- /package/json-schema/{system → auth}/SessionConfig.json +0 -0
- /package/json-schema/{system → auth}/SessionPolicy.json +0 -0
- /package/json-schema/{system → auth}/StandardAuthProvider.json +0 -0
- /package/json-schema/{system → auth}/TwoFactorConfig.json +0 -0
- /package/json-schema/{system → auth}/User.json +0 -0
- /package/json-schema/{system → auth}/UserFieldMapping.json +0 -0
- /package/json-schema/{system → auth}/VerificationToken.json +0 -0
- /package/json-schema/{data → automation}/CustomScriptAction.json +0 -0
- /package/json-schema/{data → automation}/EmailAlertAction.json +0 -0
- /package/json-schema/{data → automation}/FieldUpdateAction.json +0 -0
- /package/json-schema/{data → automation}/FlowNode.json +0 -0
- /package/json-schema/{data → automation}/FlowNodeAction.json +0 -0
- /package/json-schema/{data → automation}/FlowVariable.json +0 -0
- /package/json-schema/{data → automation}/HttpCallAction.json +0 -0
- /package/json-schema/{data → automation}/PushNotificationAction.json +0 -0
- /package/json-schema/{data → automation}/SlackMessageAction.json +0 -0
- /package/json-schema/{data → automation}/SmsNotificationAction.json +0 -0
- /package/json-schema/{data → automation}/TaskCreationAction.json +0 -0
- /package/json-schema/{data → automation}/TeamsMessageAction.json +0 -0
- /package/json-schema/{data → automation}/WebhookTriggerAction.json +0 -0
- /package/json-schema/{system → automation}/WebhookTriggerType.json +0 -0
- /package/json-schema/{data → automation}/WorkflowAction.json +0 -0
- /package/json-schema/{data → automation}/WorkflowTriggerType.json +0 -0
- /package/json-schema/{system → hub}/DatabaseLevelIsolationStrategy.json +0 -0
- /package/json-schema/{system → hub}/Feature.json +0 -0
- /package/json-schema/{system → hub}/LevelIsolationStrategySchema.json +0 -0
- /package/json-schema/{system → hub}/MetricType.json +0 -0
- /package/json-schema/{system → hub}/Plan.json +0 -0
- /package/json-schema/{system → hub}/RowLevelIsolationStrategy.json +0 -0
- /package/json-schema/{system → hub}/TenantIsolationConfig.json +0 -0
- /package/json-schema/{system → hub}/TenantIsolationLevel.json +0 -0
- /package/json-schema/{system → hub}/TenantQuota.json +0 -0
- /package/json-schema/{system → hub}/TenantSecurityPolicy.json +0 -0
- /package/json-schema/{data → permission}/FieldPermission.json +0 -0
- /package/json-schema/{system → permission}/TerritoryModel.json +0 -0
- /package/json-schema/{system → permission}/TerritoryType.json +0 -0
package/dist/ui/widget.zod.d.ts
CHANGED
|
@@ -1,4 +1,625 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Widget Lifecycle Hooks Schema
|
|
4
|
+
*
|
|
5
|
+
* Defines lifecycle callbacks for custom widgets inspired by Web Components and React.
|
|
6
|
+
* These hooks allow widgets to perform initialization, cleanup, and respond to changes.
|
|
7
|
+
*
|
|
8
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Web_components
|
|
9
|
+
* @see https://react.dev/reference/react/Component#component-lifecycle
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```typescript
|
|
13
|
+
* const widget = {
|
|
14
|
+
* lifecycle: {
|
|
15
|
+
* onMount: "console.log('Widget mounted')",
|
|
16
|
+
* onUpdate: "if (prevProps.value !== props.value) { updateUI() }",
|
|
17
|
+
* onUnmount: "cleanup()",
|
|
18
|
+
* onValidate: "return value.length > 0 ? null : 'Required field'"
|
|
19
|
+
* }
|
|
20
|
+
* }
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare const WidgetLifecycleSchema: z.ZodObject<{
|
|
24
|
+
/**
|
|
25
|
+
* Called when widget is mounted/rendered for the first time
|
|
26
|
+
* Use for initialization, setting up event listeners, loading data, etc.
|
|
27
|
+
*
|
|
28
|
+
* @example "initializeDatePicker(); loadOptions();"
|
|
29
|
+
*/
|
|
30
|
+
onMount: z.ZodOptional<z.ZodString>;
|
|
31
|
+
/**
|
|
32
|
+
* Called when widget props change
|
|
33
|
+
* Receives previous props for comparison
|
|
34
|
+
*
|
|
35
|
+
* @example "if (prevProps.value !== props.value) { updateDisplay() }"
|
|
36
|
+
*/
|
|
37
|
+
onUpdate: z.ZodOptional<z.ZodString>;
|
|
38
|
+
/**
|
|
39
|
+
* Called when widget is about to be removed from DOM
|
|
40
|
+
* Use for cleanup, removing event listeners, canceling timers, etc.
|
|
41
|
+
*
|
|
42
|
+
* @example "destroyDatePicker(); cancelPendingRequests();"
|
|
43
|
+
*/
|
|
44
|
+
onUnmount: z.ZodOptional<z.ZodString>;
|
|
45
|
+
/**
|
|
46
|
+
* Custom validation logic for this widget
|
|
47
|
+
* Should return error message string if invalid, null/undefined if valid
|
|
48
|
+
*
|
|
49
|
+
* @example "return value && value.length >= 10 ? null : 'Minimum 10 characters'"
|
|
50
|
+
*/
|
|
51
|
+
onValidate: z.ZodOptional<z.ZodString>;
|
|
52
|
+
/**
|
|
53
|
+
* Called when widget receives focus
|
|
54
|
+
*
|
|
55
|
+
* @example "highlightField(); logFocusEvent();"
|
|
56
|
+
*/
|
|
57
|
+
onFocus: z.ZodOptional<z.ZodString>;
|
|
58
|
+
/**
|
|
59
|
+
* Called when widget loses focus
|
|
60
|
+
*
|
|
61
|
+
* @example "validateField(); saveFieldState();"
|
|
62
|
+
*/
|
|
63
|
+
onBlur: z.ZodOptional<z.ZodString>;
|
|
64
|
+
/**
|
|
65
|
+
* Called on any error in the widget
|
|
66
|
+
*
|
|
67
|
+
* @example "logError(error); showErrorNotification();"
|
|
68
|
+
*/
|
|
69
|
+
onError: z.ZodOptional<z.ZodString>;
|
|
70
|
+
}, "strip", z.ZodTypeAny, {
|
|
71
|
+
onError?: string | undefined;
|
|
72
|
+
onMount?: string | undefined;
|
|
73
|
+
onUpdate?: string | undefined;
|
|
74
|
+
onUnmount?: string | undefined;
|
|
75
|
+
onValidate?: string | undefined;
|
|
76
|
+
onFocus?: string | undefined;
|
|
77
|
+
onBlur?: string | undefined;
|
|
78
|
+
}, {
|
|
79
|
+
onError?: string | undefined;
|
|
80
|
+
onMount?: string | undefined;
|
|
81
|
+
onUpdate?: string | undefined;
|
|
82
|
+
onUnmount?: string | undefined;
|
|
83
|
+
onValidate?: string | undefined;
|
|
84
|
+
onFocus?: string | undefined;
|
|
85
|
+
onBlur?: string | undefined;
|
|
86
|
+
}>;
|
|
87
|
+
export type WidgetLifecycle = z.infer<typeof WidgetLifecycleSchema>;
|
|
88
|
+
/**
|
|
89
|
+
* Widget Event Schema
|
|
90
|
+
*
|
|
91
|
+
* Defines custom events that widgets can emit, inspired by DOM Events and Lightning Web Components.
|
|
92
|
+
*
|
|
93
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/Events/Creating_and_triggering_events
|
|
94
|
+
* @see https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.events
|
|
95
|
+
*
|
|
96
|
+
* @example
|
|
97
|
+
* ```typescript
|
|
98
|
+
* const searchEvent = {
|
|
99
|
+
* name: 'search',
|
|
100
|
+
* bubbles: true,
|
|
101
|
+
* cancelable: false,
|
|
102
|
+
* payload: {
|
|
103
|
+
* query: 'string',
|
|
104
|
+
* filters: 'object'
|
|
105
|
+
* }
|
|
106
|
+
* }
|
|
107
|
+
* ```
|
|
108
|
+
*/
|
|
109
|
+
export declare const WidgetEventSchema: z.ZodObject<{
|
|
110
|
+
/**
|
|
111
|
+
* Event name
|
|
112
|
+
* Should be lowercase, dash-separated for consistency
|
|
113
|
+
*
|
|
114
|
+
* @example "value-change", "item-selected", "search-complete"
|
|
115
|
+
*/
|
|
116
|
+
name: z.ZodString;
|
|
117
|
+
/**
|
|
118
|
+
* Event label for documentation
|
|
119
|
+
*/
|
|
120
|
+
label: z.ZodOptional<z.ZodString>;
|
|
121
|
+
/**
|
|
122
|
+
* Event description
|
|
123
|
+
*/
|
|
124
|
+
description: z.ZodOptional<z.ZodString>;
|
|
125
|
+
/**
|
|
126
|
+
* Whether event bubbles up through the DOM hierarchy
|
|
127
|
+
*
|
|
128
|
+
* @default false
|
|
129
|
+
*/
|
|
130
|
+
bubbles: z.ZodDefault<z.ZodBoolean>;
|
|
131
|
+
/**
|
|
132
|
+
* Whether event can be cancelled
|
|
133
|
+
*
|
|
134
|
+
* @default false
|
|
135
|
+
*/
|
|
136
|
+
cancelable: z.ZodDefault<z.ZodBoolean>;
|
|
137
|
+
/**
|
|
138
|
+
* Event payload schema
|
|
139
|
+
* Defines the data structure sent with the event
|
|
140
|
+
*
|
|
141
|
+
* @example { userId: 'string', timestamp: 'number' }
|
|
142
|
+
*/
|
|
143
|
+
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
144
|
+
}, "strip", z.ZodTypeAny, {
|
|
145
|
+
name: string;
|
|
146
|
+
bubbles: boolean;
|
|
147
|
+
cancelable: boolean;
|
|
148
|
+
label?: string | undefined;
|
|
149
|
+
description?: string | undefined;
|
|
150
|
+
payload?: Record<string, any> | undefined;
|
|
151
|
+
}, {
|
|
152
|
+
name: string;
|
|
153
|
+
label?: string | undefined;
|
|
154
|
+
description?: string | undefined;
|
|
155
|
+
bubbles?: boolean | undefined;
|
|
156
|
+
cancelable?: boolean | undefined;
|
|
157
|
+
payload?: Record<string, any> | undefined;
|
|
158
|
+
}>;
|
|
159
|
+
export type WidgetEvent = z.infer<typeof WidgetEventSchema>;
|
|
160
|
+
/**
|
|
161
|
+
* Widget Property Definition Schema
|
|
162
|
+
*
|
|
163
|
+
* Defines the contract for widget configuration properties.
|
|
164
|
+
* Inspired by React PropTypes and Web Component attributes.
|
|
165
|
+
*
|
|
166
|
+
* @see https://react.dev/reference/react/Component#static-proptypes
|
|
167
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_custom_elements
|
|
168
|
+
*
|
|
169
|
+
* @example
|
|
170
|
+
* ```typescript
|
|
171
|
+
* const widgetProps = {
|
|
172
|
+
* maxLength: {
|
|
173
|
+
* type: 'number',
|
|
174
|
+
* required: false,
|
|
175
|
+
* default: 100,
|
|
176
|
+
* description: 'Maximum input length'
|
|
177
|
+
* }
|
|
178
|
+
* }
|
|
179
|
+
* ```
|
|
180
|
+
*/
|
|
181
|
+
export declare const WidgetPropertySchema: z.ZodObject<{
|
|
182
|
+
/**
|
|
183
|
+
* Property name
|
|
184
|
+
* Should be camelCase following ObjectStack conventions
|
|
185
|
+
*/
|
|
186
|
+
name: z.ZodString;
|
|
187
|
+
/**
|
|
188
|
+
* Property label for UI
|
|
189
|
+
*/
|
|
190
|
+
label: z.ZodOptional<z.ZodString>;
|
|
191
|
+
/**
|
|
192
|
+
* Property data type
|
|
193
|
+
*
|
|
194
|
+
* @example "string", "number", "boolean", "array", "object", "function"
|
|
195
|
+
*/
|
|
196
|
+
type: z.ZodEnum<["string", "number", "boolean", "array", "object", "function", "any"]>;
|
|
197
|
+
/**
|
|
198
|
+
* Whether property is required
|
|
199
|
+
*
|
|
200
|
+
* @default false
|
|
201
|
+
*/
|
|
202
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
203
|
+
/**
|
|
204
|
+
* Default value for the property
|
|
205
|
+
*/
|
|
206
|
+
default: z.ZodOptional<z.ZodAny>;
|
|
207
|
+
/**
|
|
208
|
+
* Property description
|
|
209
|
+
*/
|
|
210
|
+
description: z.ZodOptional<z.ZodString>;
|
|
211
|
+
/**
|
|
212
|
+
* Property validation schema
|
|
213
|
+
* Can include min/max, regex, enum values, etc.
|
|
214
|
+
*/
|
|
215
|
+
validation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
216
|
+
/**
|
|
217
|
+
* Property category for grouping in UI
|
|
218
|
+
*/
|
|
219
|
+
category: z.ZodOptional<z.ZodString>;
|
|
220
|
+
}, "strip", z.ZodTypeAny, {
|
|
221
|
+
type: "string" | "number" | "boolean" | "object" | "function" | "array" | "any";
|
|
222
|
+
required: boolean;
|
|
223
|
+
name: string;
|
|
224
|
+
validation?: Record<string, any> | undefined;
|
|
225
|
+
label?: string | undefined;
|
|
226
|
+
default?: any;
|
|
227
|
+
description?: string | undefined;
|
|
228
|
+
category?: string | undefined;
|
|
229
|
+
}, {
|
|
230
|
+
type: "string" | "number" | "boolean" | "object" | "function" | "array" | "any";
|
|
231
|
+
name: string;
|
|
232
|
+
validation?: Record<string, any> | undefined;
|
|
233
|
+
required?: boolean | undefined;
|
|
234
|
+
label?: string | undefined;
|
|
235
|
+
default?: any;
|
|
236
|
+
description?: string | undefined;
|
|
237
|
+
category?: string | undefined;
|
|
238
|
+
}>;
|
|
239
|
+
export type WidgetProperty = z.infer<typeof WidgetPropertySchema>;
|
|
240
|
+
/**
|
|
241
|
+
* Widget Manifest Schema
|
|
242
|
+
*
|
|
243
|
+
* Complete definition for a custom widget including metadata, lifecycle, events, and props.
|
|
244
|
+
* This is used for widget registration and discovery.
|
|
245
|
+
*
|
|
246
|
+
* @example
|
|
247
|
+
* ```typescript
|
|
248
|
+
* const customWidget = {
|
|
249
|
+
* name: 'custom_date_picker',
|
|
250
|
+
* label: 'Custom Date Picker',
|
|
251
|
+
* version: '1.0.0',
|
|
252
|
+
* author: 'Company Name',
|
|
253
|
+
* fieldTypes: ['date', 'datetime'],
|
|
254
|
+
* lifecycle: { ... },
|
|
255
|
+
* events: [ ... ],
|
|
256
|
+
* properties: [ ... ]
|
|
257
|
+
* }
|
|
258
|
+
* ```
|
|
259
|
+
*/
|
|
260
|
+
export declare const WidgetManifestSchema: z.ZodObject<{
|
|
261
|
+
/**
|
|
262
|
+
* Widget identifier (snake_case)
|
|
263
|
+
*/
|
|
264
|
+
name: z.ZodString;
|
|
265
|
+
/**
|
|
266
|
+
* Human-readable widget name
|
|
267
|
+
*/
|
|
268
|
+
label: z.ZodString;
|
|
269
|
+
/**
|
|
270
|
+
* Widget description
|
|
271
|
+
*/
|
|
272
|
+
description: z.ZodOptional<z.ZodString>;
|
|
273
|
+
/**
|
|
274
|
+
* Widget version (semver)
|
|
275
|
+
*/
|
|
276
|
+
version: z.ZodOptional<z.ZodString>;
|
|
277
|
+
/**
|
|
278
|
+
* Widget author/organization
|
|
279
|
+
*/
|
|
280
|
+
author: z.ZodOptional<z.ZodString>;
|
|
281
|
+
/**
|
|
282
|
+
* Icon name or URL
|
|
283
|
+
*/
|
|
284
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
285
|
+
/**
|
|
286
|
+
* Field types this widget supports
|
|
287
|
+
*
|
|
288
|
+
* @example ["text", "email", "url"]
|
|
289
|
+
*/
|
|
290
|
+
fieldTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
291
|
+
/**
|
|
292
|
+
* Widget category for organization
|
|
293
|
+
*/
|
|
294
|
+
category: z.ZodDefault<z.ZodEnum<["input", "display", "picker", "editor", "custom"]>>;
|
|
295
|
+
/**
|
|
296
|
+
* Widget lifecycle hooks
|
|
297
|
+
*/
|
|
298
|
+
lifecycle: z.ZodOptional<z.ZodObject<{
|
|
299
|
+
/**
|
|
300
|
+
* Called when widget is mounted/rendered for the first time
|
|
301
|
+
* Use for initialization, setting up event listeners, loading data, etc.
|
|
302
|
+
*
|
|
303
|
+
* @example "initializeDatePicker(); loadOptions();"
|
|
304
|
+
*/
|
|
305
|
+
onMount: z.ZodOptional<z.ZodString>;
|
|
306
|
+
/**
|
|
307
|
+
* Called when widget props change
|
|
308
|
+
* Receives previous props for comparison
|
|
309
|
+
*
|
|
310
|
+
* @example "if (prevProps.value !== props.value) { updateDisplay() }"
|
|
311
|
+
*/
|
|
312
|
+
onUpdate: z.ZodOptional<z.ZodString>;
|
|
313
|
+
/**
|
|
314
|
+
* Called when widget is about to be removed from DOM
|
|
315
|
+
* Use for cleanup, removing event listeners, canceling timers, etc.
|
|
316
|
+
*
|
|
317
|
+
* @example "destroyDatePicker(); cancelPendingRequests();"
|
|
318
|
+
*/
|
|
319
|
+
onUnmount: z.ZodOptional<z.ZodString>;
|
|
320
|
+
/**
|
|
321
|
+
* Custom validation logic for this widget
|
|
322
|
+
* Should return error message string if invalid, null/undefined if valid
|
|
323
|
+
*
|
|
324
|
+
* @example "return value && value.length >= 10 ? null : 'Minimum 10 characters'"
|
|
325
|
+
*/
|
|
326
|
+
onValidate: z.ZodOptional<z.ZodString>;
|
|
327
|
+
/**
|
|
328
|
+
* Called when widget receives focus
|
|
329
|
+
*
|
|
330
|
+
* @example "highlightField(); logFocusEvent();"
|
|
331
|
+
*/
|
|
332
|
+
onFocus: z.ZodOptional<z.ZodString>;
|
|
333
|
+
/**
|
|
334
|
+
* Called when widget loses focus
|
|
335
|
+
*
|
|
336
|
+
* @example "validateField(); saveFieldState();"
|
|
337
|
+
*/
|
|
338
|
+
onBlur: z.ZodOptional<z.ZodString>;
|
|
339
|
+
/**
|
|
340
|
+
* Called on any error in the widget
|
|
341
|
+
*
|
|
342
|
+
* @example "logError(error); showErrorNotification();"
|
|
343
|
+
*/
|
|
344
|
+
onError: z.ZodOptional<z.ZodString>;
|
|
345
|
+
}, "strip", z.ZodTypeAny, {
|
|
346
|
+
onError?: string | undefined;
|
|
347
|
+
onMount?: string | undefined;
|
|
348
|
+
onUpdate?: string | undefined;
|
|
349
|
+
onUnmount?: string | undefined;
|
|
350
|
+
onValidate?: string | undefined;
|
|
351
|
+
onFocus?: string | undefined;
|
|
352
|
+
onBlur?: string | undefined;
|
|
353
|
+
}, {
|
|
354
|
+
onError?: string | undefined;
|
|
355
|
+
onMount?: string | undefined;
|
|
356
|
+
onUpdate?: string | undefined;
|
|
357
|
+
onUnmount?: string | undefined;
|
|
358
|
+
onValidate?: string | undefined;
|
|
359
|
+
onFocus?: string | undefined;
|
|
360
|
+
onBlur?: string | undefined;
|
|
361
|
+
}>>;
|
|
362
|
+
/**
|
|
363
|
+
* Custom events this widget emits
|
|
364
|
+
*/
|
|
365
|
+
events: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
366
|
+
/**
|
|
367
|
+
* Event name
|
|
368
|
+
* Should be lowercase, dash-separated for consistency
|
|
369
|
+
*
|
|
370
|
+
* @example "value-change", "item-selected", "search-complete"
|
|
371
|
+
*/
|
|
372
|
+
name: z.ZodString;
|
|
373
|
+
/**
|
|
374
|
+
* Event label for documentation
|
|
375
|
+
*/
|
|
376
|
+
label: z.ZodOptional<z.ZodString>;
|
|
377
|
+
/**
|
|
378
|
+
* Event description
|
|
379
|
+
*/
|
|
380
|
+
description: z.ZodOptional<z.ZodString>;
|
|
381
|
+
/**
|
|
382
|
+
* Whether event bubbles up through the DOM hierarchy
|
|
383
|
+
*
|
|
384
|
+
* @default false
|
|
385
|
+
*/
|
|
386
|
+
bubbles: z.ZodDefault<z.ZodBoolean>;
|
|
387
|
+
/**
|
|
388
|
+
* Whether event can be cancelled
|
|
389
|
+
*
|
|
390
|
+
* @default false
|
|
391
|
+
*/
|
|
392
|
+
cancelable: z.ZodDefault<z.ZodBoolean>;
|
|
393
|
+
/**
|
|
394
|
+
* Event payload schema
|
|
395
|
+
* Defines the data structure sent with the event
|
|
396
|
+
*
|
|
397
|
+
* @example { userId: 'string', timestamp: 'number' }
|
|
398
|
+
*/
|
|
399
|
+
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
400
|
+
}, "strip", z.ZodTypeAny, {
|
|
401
|
+
name: string;
|
|
402
|
+
bubbles: boolean;
|
|
403
|
+
cancelable: boolean;
|
|
404
|
+
label?: string | undefined;
|
|
405
|
+
description?: string | undefined;
|
|
406
|
+
payload?: Record<string, any> | undefined;
|
|
407
|
+
}, {
|
|
408
|
+
name: string;
|
|
409
|
+
label?: string | undefined;
|
|
410
|
+
description?: string | undefined;
|
|
411
|
+
bubbles?: boolean | undefined;
|
|
412
|
+
cancelable?: boolean | undefined;
|
|
413
|
+
payload?: Record<string, any> | undefined;
|
|
414
|
+
}>, "many">>;
|
|
415
|
+
/**
|
|
416
|
+
* Widget configuration properties
|
|
417
|
+
*/
|
|
418
|
+
properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
419
|
+
/**
|
|
420
|
+
* Property name
|
|
421
|
+
* Should be camelCase following ObjectStack conventions
|
|
422
|
+
*/
|
|
423
|
+
name: z.ZodString;
|
|
424
|
+
/**
|
|
425
|
+
* Property label for UI
|
|
426
|
+
*/
|
|
427
|
+
label: z.ZodOptional<z.ZodString>;
|
|
428
|
+
/**
|
|
429
|
+
* Property data type
|
|
430
|
+
*
|
|
431
|
+
* @example "string", "number", "boolean", "array", "object", "function"
|
|
432
|
+
*/
|
|
433
|
+
type: z.ZodEnum<["string", "number", "boolean", "array", "object", "function", "any"]>;
|
|
434
|
+
/**
|
|
435
|
+
* Whether property is required
|
|
436
|
+
*
|
|
437
|
+
* @default false
|
|
438
|
+
*/
|
|
439
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
440
|
+
/**
|
|
441
|
+
* Default value for the property
|
|
442
|
+
*/
|
|
443
|
+
default: z.ZodOptional<z.ZodAny>;
|
|
444
|
+
/**
|
|
445
|
+
* Property description
|
|
446
|
+
*/
|
|
447
|
+
description: z.ZodOptional<z.ZodString>;
|
|
448
|
+
/**
|
|
449
|
+
* Property validation schema
|
|
450
|
+
* Can include min/max, regex, enum values, etc.
|
|
451
|
+
*/
|
|
452
|
+
validation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
453
|
+
/**
|
|
454
|
+
* Property category for grouping in UI
|
|
455
|
+
*/
|
|
456
|
+
category: z.ZodOptional<z.ZodString>;
|
|
457
|
+
}, "strip", z.ZodTypeAny, {
|
|
458
|
+
type: "string" | "number" | "boolean" | "object" | "function" | "array" | "any";
|
|
459
|
+
required: boolean;
|
|
460
|
+
name: string;
|
|
461
|
+
validation?: Record<string, any> | undefined;
|
|
462
|
+
label?: string | undefined;
|
|
463
|
+
default?: any;
|
|
464
|
+
description?: string | undefined;
|
|
465
|
+
category?: string | undefined;
|
|
466
|
+
}, {
|
|
467
|
+
type: "string" | "number" | "boolean" | "object" | "function" | "array" | "any";
|
|
468
|
+
name: string;
|
|
469
|
+
validation?: Record<string, any> | undefined;
|
|
470
|
+
required?: boolean | undefined;
|
|
471
|
+
label?: string | undefined;
|
|
472
|
+
default?: any;
|
|
473
|
+
description?: string | undefined;
|
|
474
|
+
category?: string | undefined;
|
|
475
|
+
}>, "many">>;
|
|
476
|
+
/**
|
|
477
|
+
* Widget implementation
|
|
478
|
+
* URL to component or inline code
|
|
479
|
+
*/
|
|
480
|
+
implementation: z.ZodOptional<z.ZodObject<{
|
|
481
|
+
type: z.ZodEnum<["url", "inline", "module"]>;
|
|
482
|
+
source: z.ZodString;
|
|
483
|
+
}, "strip", z.ZodTypeAny, {
|
|
484
|
+
type: "url" | "inline" | "module";
|
|
485
|
+
source: string;
|
|
486
|
+
}, {
|
|
487
|
+
type: "url" | "inline" | "module";
|
|
488
|
+
source: string;
|
|
489
|
+
}>>;
|
|
490
|
+
/**
|
|
491
|
+
* Widget dependencies
|
|
492
|
+
* External libraries or scripts needed
|
|
493
|
+
*/
|
|
494
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
495
|
+
name: z.ZodString;
|
|
496
|
+
version: z.ZodOptional<z.ZodString>;
|
|
497
|
+
url: z.ZodOptional<z.ZodString>;
|
|
498
|
+
}, "strip", z.ZodTypeAny, {
|
|
499
|
+
name: string;
|
|
500
|
+
url?: string | undefined;
|
|
501
|
+
version?: string | undefined;
|
|
502
|
+
}, {
|
|
503
|
+
name: string;
|
|
504
|
+
url?: string | undefined;
|
|
505
|
+
version?: string | undefined;
|
|
506
|
+
}>, "many">>;
|
|
507
|
+
/**
|
|
508
|
+
* Widget screenshots for showcase
|
|
509
|
+
*/
|
|
510
|
+
screenshots: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
511
|
+
/**
|
|
512
|
+
* Widget documentation URL
|
|
513
|
+
*/
|
|
514
|
+
documentation: z.ZodOptional<z.ZodString>;
|
|
515
|
+
/**
|
|
516
|
+
* License information
|
|
517
|
+
*/
|
|
518
|
+
license: z.ZodOptional<z.ZodString>;
|
|
519
|
+
/**
|
|
520
|
+
* Tags for discovery
|
|
521
|
+
*/
|
|
522
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
523
|
+
}, "strip", z.ZodTypeAny, {
|
|
524
|
+
label: string;
|
|
525
|
+
name: string;
|
|
526
|
+
category: "custom" | "input" | "display" | "picker" | "editor";
|
|
527
|
+
tags?: string[] | undefined;
|
|
528
|
+
description?: string | undefined;
|
|
529
|
+
events?: {
|
|
530
|
+
name: string;
|
|
531
|
+
bubbles: boolean;
|
|
532
|
+
cancelable: boolean;
|
|
533
|
+
label?: string | undefined;
|
|
534
|
+
description?: string | undefined;
|
|
535
|
+
payload?: Record<string, any> | undefined;
|
|
536
|
+
}[] | undefined;
|
|
537
|
+
icon?: string | undefined;
|
|
538
|
+
version?: string | undefined;
|
|
539
|
+
properties?: {
|
|
540
|
+
type: "string" | "number" | "boolean" | "object" | "function" | "array" | "any";
|
|
541
|
+
required: boolean;
|
|
542
|
+
name: string;
|
|
543
|
+
validation?: Record<string, any> | undefined;
|
|
544
|
+
label?: string | undefined;
|
|
545
|
+
default?: any;
|
|
546
|
+
description?: string | undefined;
|
|
547
|
+
category?: string | undefined;
|
|
548
|
+
}[] | undefined;
|
|
549
|
+
author?: string | undefined;
|
|
550
|
+
fieldTypes?: string[] | undefined;
|
|
551
|
+
lifecycle?: {
|
|
552
|
+
onError?: string | undefined;
|
|
553
|
+
onMount?: string | undefined;
|
|
554
|
+
onUpdate?: string | undefined;
|
|
555
|
+
onUnmount?: string | undefined;
|
|
556
|
+
onValidate?: string | undefined;
|
|
557
|
+
onFocus?: string | undefined;
|
|
558
|
+
onBlur?: string | undefined;
|
|
559
|
+
} | undefined;
|
|
560
|
+
implementation?: {
|
|
561
|
+
type: "url" | "inline" | "module";
|
|
562
|
+
source: string;
|
|
563
|
+
} | undefined;
|
|
564
|
+
dependencies?: {
|
|
565
|
+
name: string;
|
|
566
|
+
url?: string | undefined;
|
|
567
|
+
version?: string | undefined;
|
|
568
|
+
}[] | undefined;
|
|
569
|
+
screenshots?: string[] | undefined;
|
|
570
|
+
documentation?: string | undefined;
|
|
571
|
+
license?: string | undefined;
|
|
572
|
+
}, {
|
|
573
|
+
label: string;
|
|
574
|
+
name: string;
|
|
575
|
+
tags?: string[] | undefined;
|
|
576
|
+
description?: string | undefined;
|
|
577
|
+
events?: {
|
|
578
|
+
name: string;
|
|
579
|
+
label?: string | undefined;
|
|
580
|
+
description?: string | undefined;
|
|
581
|
+
bubbles?: boolean | undefined;
|
|
582
|
+
cancelable?: boolean | undefined;
|
|
583
|
+
payload?: Record<string, any> | undefined;
|
|
584
|
+
}[] | undefined;
|
|
585
|
+
icon?: string | undefined;
|
|
586
|
+
version?: string | undefined;
|
|
587
|
+
properties?: {
|
|
588
|
+
type: "string" | "number" | "boolean" | "object" | "function" | "array" | "any";
|
|
589
|
+
name: string;
|
|
590
|
+
validation?: Record<string, any> | undefined;
|
|
591
|
+
required?: boolean | undefined;
|
|
592
|
+
label?: string | undefined;
|
|
593
|
+
default?: any;
|
|
594
|
+
description?: string | undefined;
|
|
595
|
+
category?: string | undefined;
|
|
596
|
+
}[] | undefined;
|
|
597
|
+
category?: "custom" | "input" | "display" | "picker" | "editor" | undefined;
|
|
598
|
+
author?: string | undefined;
|
|
599
|
+
fieldTypes?: string[] | undefined;
|
|
600
|
+
lifecycle?: {
|
|
601
|
+
onError?: string | undefined;
|
|
602
|
+
onMount?: string | undefined;
|
|
603
|
+
onUpdate?: string | undefined;
|
|
604
|
+
onUnmount?: string | undefined;
|
|
605
|
+
onValidate?: string | undefined;
|
|
606
|
+
onFocus?: string | undefined;
|
|
607
|
+
onBlur?: string | undefined;
|
|
608
|
+
} | undefined;
|
|
609
|
+
implementation?: {
|
|
610
|
+
type: "url" | "inline" | "module";
|
|
611
|
+
source: string;
|
|
612
|
+
} | undefined;
|
|
613
|
+
dependencies?: {
|
|
614
|
+
name: string;
|
|
615
|
+
url?: string | undefined;
|
|
616
|
+
version?: string | undefined;
|
|
617
|
+
}[] | undefined;
|
|
618
|
+
screenshots?: string[] | undefined;
|
|
619
|
+
documentation?: string | undefined;
|
|
620
|
+
license?: string | undefined;
|
|
621
|
+
}>;
|
|
622
|
+
export type WidgetManifest = z.infer<typeof WidgetManifestSchema>;
|
|
2
623
|
/**
|
|
3
624
|
* Field Widget Props Schema
|
|
4
625
|
*
|
|
@@ -48,7 +669,7 @@ export declare const FieldWidgetPropsSchema: z.ZodObject<{
|
|
|
48
669
|
field: z.ZodObject<{
|
|
49
670
|
name: z.ZodOptional<z.ZodString>;
|
|
50
671
|
label: z.ZodOptional<z.ZodString>;
|
|
51
|
-
type: z.ZodEnum<["text", "textarea", "email", "url", "phone", "password", "markdown", "html", "richtext", "number", "currency", "percent", "date", "datetime", "time", "boolean", "select", "lookup", "master_detail", "image", "file", "avatar", "formula", "summary", "autonumber", "location", "
|
|
672
|
+
type: z.ZodEnum<["text", "textarea", "email", "url", "phone", "password", "markdown", "html", "richtext", "number", "currency", "percent", "date", "datetime", "time", "boolean", "toggle", "select", "multiselect", "radio", "checkboxes", "lookup", "master_detail", "tree", "image", "file", "avatar", "video", "audio", "formula", "summary", "autonumber", "location", "address", "code", "json", "color", "rating", "slider", "signature", "qrcode", "progress", "tags", "vector"]>;
|
|
52
673
|
description: z.ZodOptional<z.ZodString>;
|
|
53
674
|
format: z.ZodOptional<z.ZodString>;
|
|
54
675
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -90,11 +711,11 @@ export declare const FieldWidgetPropsSchema: z.ZodObject<{
|
|
|
90
711
|
function: z.ZodEnum<["count", "sum", "min", "max", "avg"]>;
|
|
91
712
|
}, "strip", z.ZodTypeAny, {
|
|
92
713
|
object: string;
|
|
93
|
-
function: "
|
|
714
|
+
function: "count" | "sum" | "avg" | "min" | "max";
|
|
94
715
|
field: string;
|
|
95
716
|
}, {
|
|
96
717
|
object: string;
|
|
97
|
-
function: "
|
|
718
|
+
function: "count" | "sum" | "avg" | "min" | "max";
|
|
98
719
|
field: string;
|
|
99
720
|
}>>;
|
|
100
721
|
language: z.ZodOptional<z.ZodString>;
|
|
@@ -115,13 +736,45 @@ export declare const FieldWidgetPropsSchema: z.ZodObject<{
|
|
|
115
736
|
qrErrorCorrection: z.ZodOptional<z.ZodEnum<["L", "M", "Q", "H"]>>;
|
|
116
737
|
displayValue: z.ZodOptional<z.ZodBoolean>;
|
|
117
738
|
allowScanning: z.ZodOptional<z.ZodBoolean>;
|
|
739
|
+
currencyConfig: z.ZodOptional<z.ZodObject<{
|
|
740
|
+
precision: z.ZodDefault<z.ZodNumber>;
|
|
741
|
+
currencyMode: z.ZodDefault<z.ZodEnum<["dynamic", "fixed"]>>;
|
|
742
|
+
defaultCurrency: z.ZodDefault<z.ZodString>;
|
|
743
|
+
}, "strip", z.ZodTypeAny, {
|
|
744
|
+
precision: number;
|
|
745
|
+
currencyMode: "dynamic" | "fixed";
|
|
746
|
+
defaultCurrency: string;
|
|
747
|
+
}, {
|
|
748
|
+
precision?: number | undefined;
|
|
749
|
+
currencyMode?: "dynamic" | "fixed" | undefined;
|
|
750
|
+
defaultCurrency?: string | undefined;
|
|
751
|
+
}>>;
|
|
752
|
+
vectorConfig: z.ZodOptional<z.ZodObject<{
|
|
753
|
+
dimensions: z.ZodNumber;
|
|
754
|
+
distanceMetric: z.ZodDefault<z.ZodEnum<["cosine", "euclidean", "dotProduct", "manhattan"]>>;
|
|
755
|
+
normalized: z.ZodDefault<z.ZodBoolean>;
|
|
756
|
+
indexed: z.ZodDefault<z.ZodBoolean>;
|
|
757
|
+
indexType: z.ZodOptional<z.ZodEnum<["hnsw", "ivfflat", "flat"]>>;
|
|
758
|
+
}, "strip", z.ZodTypeAny, {
|
|
759
|
+
dimensions: number;
|
|
760
|
+
distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
|
|
761
|
+
normalized: boolean;
|
|
762
|
+
indexed: boolean;
|
|
763
|
+
indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
|
|
764
|
+
}, {
|
|
765
|
+
dimensions: number;
|
|
766
|
+
distanceMetric?: "cosine" | "euclidean" | "dotProduct" | "manhattan" | undefined;
|
|
767
|
+
normalized?: boolean | undefined;
|
|
768
|
+
indexed?: boolean | undefined;
|
|
769
|
+
indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
|
|
770
|
+
}>>;
|
|
118
771
|
hidden: z.ZodDefault<z.ZodBoolean>;
|
|
119
772
|
readonly: z.ZodDefault<z.ZodBoolean>;
|
|
120
773
|
encryption: z.ZodDefault<z.ZodBoolean>;
|
|
121
774
|
index: z.ZodDefault<z.ZodBoolean>;
|
|
122
775
|
externalId: z.ZodDefault<z.ZodBoolean>;
|
|
123
776
|
}, "strip", z.ZodTypeAny, {
|
|
124
|
-
type: "number" | "boolean" | "text" | "textarea" | "email" | "url" | "phone" | "password" | "markdown" | "html" | "richtext" | "currency" | "percent" | "
|
|
777
|
+
type: "number" | "boolean" | "code" | "date" | "text" | "textarea" | "email" | "url" | "phone" | "password" | "markdown" | "html" | "richtext" | "currency" | "percent" | "datetime" | "time" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "file" | "avatar" | "video" | "audio" | "formula" | "summary" | "autonumber" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector";
|
|
125
778
|
required: boolean;
|
|
126
779
|
searchable: boolean;
|
|
127
780
|
multiple: boolean;
|
|
@@ -132,31 +785,31 @@ export declare const FieldWidgetPropsSchema: z.ZodObject<{
|
|
|
132
785
|
encryption: boolean;
|
|
133
786
|
index: boolean;
|
|
134
787
|
externalId: boolean;
|
|
135
|
-
formula?: string | undefined;
|
|
136
788
|
options?: {
|
|
137
789
|
value: string;
|
|
138
790
|
label: string;
|
|
139
791
|
color?: string | undefined;
|
|
140
792
|
default?: boolean | undefined;
|
|
141
793
|
}[] | undefined;
|
|
794
|
+
min?: number | undefined;
|
|
795
|
+
max?: number | undefined;
|
|
796
|
+
formula?: string | undefined;
|
|
142
797
|
label?: string | undefined;
|
|
798
|
+
precision?: number | undefined;
|
|
143
799
|
name?: string | undefined;
|
|
144
800
|
description?: string | undefined;
|
|
145
801
|
format?: string | undefined;
|
|
146
802
|
defaultValue?: any;
|
|
147
803
|
maxLength?: number | undefined;
|
|
148
804
|
minLength?: number | undefined;
|
|
149
|
-
precision?: number | undefined;
|
|
150
805
|
scale?: number | undefined;
|
|
151
|
-
min?: number | undefined;
|
|
152
|
-
max?: number | undefined;
|
|
153
806
|
reference?: string | undefined;
|
|
154
807
|
referenceFilters?: string[] | undefined;
|
|
155
808
|
writeRequiresMasterRead?: boolean | undefined;
|
|
156
809
|
expression?: string | undefined;
|
|
157
810
|
summaryOperations?: {
|
|
158
811
|
object: string;
|
|
159
|
-
function: "
|
|
812
|
+
function: "count" | "sum" | "avg" | "min" | "max";
|
|
160
813
|
field: string;
|
|
161
814
|
} | undefined;
|
|
162
815
|
language?: string | undefined;
|
|
@@ -177,30 +830,42 @@ export declare const FieldWidgetPropsSchema: z.ZodObject<{
|
|
|
177
830
|
qrErrorCorrection?: "L" | "M" | "Q" | "H" | undefined;
|
|
178
831
|
displayValue?: boolean | undefined;
|
|
179
832
|
allowScanning?: boolean | undefined;
|
|
833
|
+
currencyConfig?: {
|
|
834
|
+
precision: number;
|
|
835
|
+
currencyMode: "dynamic" | "fixed";
|
|
836
|
+
defaultCurrency: string;
|
|
837
|
+
} | undefined;
|
|
838
|
+
vectorConfig?: {
|
|
839
|
+
dimensions: number;
|
|
840
|
+
distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
|
|
841
|
+
normalized: boolean;
|
|
842
|
+
indexed: boolean;
|
|
843
|
+
indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
|
|
844
|
+
} | undefined;
|
|
180
845
|
}, {
|
|
181
|
-
type: "number" | "boolean" | "text" | "textarea" | "email" | "url" | "phone" | "password" | "markdown" | "html" | "richtext" | "currency" | "percent" | "
|
|
182
|
-
formula?: string | undefined;
|
|
846
|
+
type: "number" | "boolean" | "code" | "date" | "text" | "textarea" | "email" | "url" | "phone" | "password" | "markdown" | "html" | "richtext" | "currency" | "percent" | "datetime" | "time" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "file" | "avatar" | "video" | "audio" | "formula" | "summary" | "autonumber" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector";
|
|
183
847
|
options?: {
|
|
184
848
|
value: string;
|
|
185
849
|
label: string;
|
|
186
850
|
color?: string | undefined;
|
|
187
851
|
default?: boolean | undefined;
|
|
188
852
|
}[] | undefined;
|
|
853
|
+
required?: boolean | undefined;
|
|
854
|
+
min?: number | undefined;
|
|
855
|
+
max?: number | undefined;
|
|
856
|
+
formula?: string | undefined;
|
|
189
857
|
label?: string | undefined;
|
|
858
|
+
precision?: number | undefined;
|
|
190
859
|
name?: string | undefined;
|
|
191
860
|
description?: string | undefined;
|
|
192
861
|
format?: string | undefined;
|
|
193
|
-
required?: boolean | undefined;
|
|
194
862
|
searchable?: boolean | undefined;
|
|
195
863
|
multiple?: boolean | undefined;
|
|
196
864
|
unique?: boolean | undefined;
|
|
197
865
|
defaultValue?: any;
|
|
198
866
|
maxLength?: number | undefined;
|
|
199
867
|
minLength?: number | undefined;
|
|
200
|
-
precision?: number | undefined;
|
|
201
868
|
scale?: number | undefined;
|
|
202
|
-
min?: number | undefined;
|
|
203
|
-
max?: number | undefined;
|
|
204
869
|
reference?: string | undefined;
|
|
205
870
|
referenceFilters?: string[] | undefined;
|
|
206
871
|
writeRequiresMasterRead?: boolean | undefined;
|
|
@@ -208,7 +873,7 @@ export declare const FieldWidgetPropsSchema: z.ZodObject<{
|
|
|
208
873
|
expression?: string | undefined;
|
|
209
874
|
summaryOperations?: {
|
|
210
875
|
object: string;
|
|
211
|
-
function: "
|
|
876
|
+
function: "count" | "sum" | "avg" | "min" | "max";
|
|
212
877
|
field: string;
|
|
213
878
|
} | undefined;
|
|
214
879
|
language?: string | undefined;
|
|
@@ -229,6 +894,18 @@ export declare const FieldWidgetPropsSchema: z.ZodObject<{
|
|
|
229
894
|
qrErrorCorrection?: "L" | "M" | "Q" | "H" | undefined;
|
|
230
895
|
displayValue?: boolean | undefined;
|
|
231
896
|
allowScanning?: boolean | undefined;
|
|
897
|
+
currencyConfig?: {
|
|
898
|
+
precision?: number | undefined;
|
|
899
|
+
currencyMode?: "dynamic" | "fixed" | undefined;
|
|
900
|
+
defaultCurrency?: string | undefined;
|
|
901
|
+
} | undefined;
|
|
902
|
+
vectorConfig?: {
|
|
903
|
+
dimensions: number;
|
|
904
|
+
distanceMetric?: "cosine" | "euclidean" | "dotProduct" | "manhattan" | undefined;
|
|
905
|
+
normalized?: boolean | undefined;
|
|
906
|
+
indexed?: boolean | undefined;
|
|
907
|
+
indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
|
|
908
|
+
} | undefined;
|
|
232
909
|
hidden?: boolean | undefined;
|
|
233
910
|
readonly?: boolean | undefined;
|
|
234
911
|
encryption?: boolean | undefined;
|
|
@@ -248,7 +925,7 @@ export declare const FieldWidgetPropsSchema: z.ZodObject<{
|
|
|
248
925
|
}, "strip", z.ZodTypeAny, {
|
|
249
926
|
required: boolean;
|
|
250
927
|
field: {
|
|
251
|
-
type: "number" | "boolean" | "text" | "textarea" | "email" | "url" | "phone" | "password" | "markdown" | "html" | "richtext" | "currency" | "percent" | "
|
|
928
|
+
type: "number" | "boolean" | "code" | "date" | "text" | "textarea" | "email" | "url" | "phone" | "password" | "markdown" | "html" | "richtext" | "currency" | "percent" | "datetime" | "time" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "file" | "avatar" | "video" | "audio" | "formula" | "summary" | "autonumber" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector";
|
|
252
929
|
required: boolean;
|
|
253
930
|
searchable: boolean;
|
|
254
931
|
multiple: boolean;
|
|
@@ -259,31 +936,31 @@ export declare const FieldWidgetPropsSchema: z.ZodObject<{
|
|
|
259
936
|
encryption: boolean;
|
|
260
937
|
index: boolean;
|
|
261
938
|
externalId: boolean;
|
|
262
|
-
formula?: string | undefined;
|
|
263
939
|
options?: {
|
|
264
940
|
value: string;
|
|
265
941
|
label: string;
|
|
266
942
|
color?: string | undefined;
|
|
267
943
|
default?: boolean | undefined;
|
|
268
944
|
}[] | undefined;
|
|
945
|
+
min?: number | undefined;
|
|
946
|
+
max?: number | undefined;
|
|
947
|
+
formula?: string | undefined;
|
|
269
948
|
label?: string | undefined;
|
|
949
|
+
precision?: number | undefined;
|
|
270
950
|
name?: string | undefined;
|
|
271
951
|
description?: string | undefined;
|
|
272
952
|
format?: string | undefined;
|
|
273
953
|
defaultValue?: any;
|
|
274
954
|
maxLength?: number | undefined;
|
|
275
955
|
minLength?: number | undefined;
|
|
276
|
-
precision?: number | undefined;
|
|
277
956
|
scale?: number | undefined;
|
|
278
|
-
min?: number | undefined;
|
|
279
|
-
max?: number | undefined;
|
|
280
957
|
reference?: string | undefined;
|
|
281
958
|
referenceFilters?: string[] | undefined;
|
|
282
959
|
writeRequiresMasterRead?: boolean | undefined;
|
|
283
960
|
expression?: string | undefined;
|
|
284
961
|
summaryOperations?: {
|
|
285
962
|
object: string;
|
|
286
|
-
function: "
|
|
963
|
+
function: "count" | "sum" | "avg" | "min" | "max";
|
|
287
964
|
field: string;
|
|
288
965
|
} | undefined;
|
|
289
966
|
language?: string | undefined;
|
|
@@ -304,6 +981,18 @@ export declare const FieldWidgetPropsSchema: z.ZodObject<{
|
|
|
304
981
|
qrErrorCorrection?: "L" | "M" | "Q" | "H" | undefined;
|
|
305
982
|
displayValue?: boolean | undefined;
|
|
306
983
|
allowScanning?: boolean | undefined;
|
|
984
|
+
currencyConfig?: {
|
|
985
|
+
precision: number;
|
|
986
|
+
currencyMode: "dynamic" | "fixed";
|
|
987
|
+
defaultCurrency: string;
|
|
988
|
+
} | undefined;
|
|
989
|
+
vectorConfig?: {
|
|
990
|
+
dimensions: number;
|
|
991
|
+
distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
|
|
992
|
+
normalized: boolean;
|
|
993
|
+
indexed: boolean;
|
|
994
|
+
indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
|
|
995
|
+
} | undefined;
|
|
307
996
|
};
|
|
308
997
|
readonly: boolean;
|
|
309
998
|
onChange: (args_0: any, ...args: unknown[]) => void;
|
|
@@ -313,29 +1002,29 @@ export declare const FieldWidgetPropsSchema: z.ZodObject<{
|
|
|
313
1002
|
record?: Record<string, any> | undefined;
|
|
314
1003
|
}, {
|
|
315
1004
|
field: {
|
|
316
|
-
type: "number" | "boolean" | "text" | "textarea" | "email" | "url" | "phone" | "password" | "markdown" | "html" | "richtext" | "currency" | "percent" | "
|
|
317
|
-
formula?: string | undefined;
|
|
1005
|
+
type: "number" | "boolean" | "code" | "date" | "text" | "textarea" | "email" | "url" | "phone" | "password" | "markdown" | "html" | "richtext" | "currency" | "percent" | "datetime" | "time" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "file" | "avatar" | "video" | "audio" | "formula" | "summary" | "autonumber" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector";
|
|
318
1006
|
options?: {
|
|
319
1007
|
value: string;
|
|
320
1008
|
label: string;
|
|
321
1009
|
color?: string | undefined;
|
|
322
1010
|
default?: boolean | undefined;
|
|
323
1011
|
}[] | undefined;
|
|
1012
|
+
required?: boolean | undefined;
|
|
1013
|
+
min?: number | undefined;
|
|
1014
|
+
max?: number | undefined;
|
|
1015
|
+
formula?: string | undefined;
|
|
324
1016
|
label?: string | undefined;
|
|
1017
|
+
precision?: number | undefined;
|
|
325
1018
|
name?: string | undefined;
|
|
326
1019
|
description?: string | undefined;
|
|
327
1020
|
format?: string | undefined;
|
|
328
|
-
required?: boolean | undefined;
|
|
329
1021
|
searchable?: boolean | undefined;
|
|
330
1022
|
multiple?: boolean | undefined;
|
|
331
1023
|
unique?: boolean | undefined;
|
|
332
1024
|
defaultValue?: any;
|
|
333
1025
|
maxLength?: number | undefined;
|
|
334
1026
|
minLength?: number | undefined;
|
|
335
|
-
precision?: number | undefined;
|
|
336
1027
|
scale?: number | undefined;
|
|
337
|
-
min?: number | undefined;
|
|
338
|
-
max?: number | undefined;
|
|
339
1028
|
reference?: string | undefined;
|
|
340
1029
|
referenceFilters?: string[] | undefined;
|
|
341
1030
|
writeRequiresMasterRead?: boolean | undefined;
|
|
@@ -343,7 +1032,7 @@ export declare const FieldWidgetPropsSchema: z.ZodObject<{
|
|
|
343
1032
|
expression?: string | undefined;
|
|
344
1033
|
summaryOperations?: {
|
|
345
1034
|
object: string;
|
|
346
|
-
function: "
|
|
1035
|
+
function: "count" | "sum" | "avg" | "min" | "max";
|
|
347
1036
|
field: string;
|
|
348
1037
|
} | undefined;
|
|
349
1038
|
language?: string | undefined;
|
|
@@ -364,6 +1053,18 @@ export declare const FieldWidgetPropsSchema: z.ZodObject<{
|
|
|
364
1053
|
qrErrorCorrection?: "L" | "M" | "Q" | "H" | undefined;
|
|
365
1054
|
displayValue?: boolean | undefined;
|
|
366
1055
|
allowScanning?: boolean | undefined;
|
|
1056
|
+
currencyConfig?: {
|
|
1057
|
+
precision?: number | undefined;
|
|
1058
|
+
currencyMode?: "dynamic" | "fixed" | undefined;
|
|
1059
|
+
defaultCurrency?: string | undefined;
|
|
1060
|
+
} | undefined;
|
|
1061
|
+
vectorConfig?: {
|
|
1062
|
+
dimensions: number;
|
|
1063
|
+
distanceMetric?: "cosine" | "euclidean" | "dotProduct" | "manhattan" | undefined;
|
|
1064
|
+
normalized?: boolean | undefined;
|
|
1065
|
+
indexed?: boolean | undefined;
|
|
1066
|
+
indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
|
|
1067
|
+
} | undefined;
|
|
367
1068
|
hidden?: boolean | undefined;
|
|
368
1069
|
readonly?: boolean | undefined;
|
|
369
1070
|
encryption?: boolean | undefined;
|