@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
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ComponentPropsMap = exports.RecordHighlightsProps = exports.RecordRelatedListProps = exports.RecordDetailsProps = exports.PageCardProps = exports.PageTabsProps = exports.PageHeaderProps = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
/**
|
|
6
|
+
* Empty Properties Schema
|
|
7
|
+
*/
|
|
8
|
+
const EmptyProps = zod_1.z.object({});
|
|
9
|
+
/**
|
|
10
|
+
* ----------------------------------------------------------------------
|
|
11
|
+
* 1. Structure Components
|
|
12
|
+
* ----------------------------------------------------------------------
|
|
13
|
+
*/
|
|
14
|
+
exports.PageHeaderProps = zod_1.z.object({
|
|
15
|
+
title: zod_1.z.string().describe('Page title'),
|
|
16
|
+
subtitle: zod_1.z.string().optional().describe('Page subtitle'),
|
|
17
|
+
icon: zod_1.z.string().optional().describe('Icon name'),
|
|
18
|
+
breadcrumb: zod_1.z.boolean().default(true).describe('Show breadcrumb'),
|
|
19
|
+
actions: zod_1.z.array(zod_1.z.string()).optional().describe('Action IDs to show in header'),
|
|
20
|
+
});
|
|
21
|
+
exports.PageTabsProps = zod_1.z.object({
|
|
22
|
+
type: zod_1.z.enum(['line', 'card', 'pill']).default('line'),
|
|
23
|
+
position: zod_1.z.enum(['top', 'left']).default('top'),
|
|
24
|
+
items: zod_1.z.array(zod_1.z.object({
|
|
25
|
+
label: zod_1.z.string(),
|
|
26
|
+
icon: zod_1.z.string().optional(),
|
|
27
|
+
children: zod_1.z.array(zod_1.z.any()).describe('Child components')
|
|
28
|
+
}))
|
|
29
|
+
});
|
|
30
|
+
exports.PageCardProps = zod_1.z.object({
|
|
31
|
+
title: zod_1.z.string().optional(),
|
|
32
|
+
bordered: zod_1.z.boolean().default(true),
|
|
33
|
+
actions: zod_1.z.array(zod_1.z.string()).optional(),
|
|
34
|
+
children: zod_1.z.array(zod_1.z.any()).describe('Card content')
|
|
35
|
+
});
|
|
36
|
+
/**
|
|
37
|
+
* ----------------------------------------------------------------------
|
|
38
|
+
* 2. Record Context Components
|
|
39
|
+
* ----------------------------------------------------------------------
|
|
40
|
+
*/
|
|
41
|
+
exports.RecordDetailsProps = zod_1.z.object({
|
|
42
|
+
columns: zod_1.z.enum(['1', '2', '3', '4']).default('2'),
|
|
43
|
+
layout: zod_1.z.enum(['auto', 'custom']).default('auto'),
|
|
44
|
+
// If custom layout
|
|
45
|
+
sections: zod_1.z.array(zod_1.z.string()).optional().describe('Section IDs to show')
|
|
46
|
+
});
|
|
47
|
+
exports.RecordRelatedListProps = zod_1.z.object({
|
|
48
|
+
objectName: zod_1.z.string().describe('Related object name'),
|
|
49
|
+
relationshipField: zod_1.z.string().describe('Field on related object that points to this record'),
|
|
50
|
+
columns: zod_1.z.array(zod_1.z.string()).describe('Fields to display'),
|
|
51
|
+
sort: zod_1.z.string().optional(),
|
|
52
|
+
limit: zod_1.z.number().default(5)
|
|
53
|
+
});
|
|
54
|
+
exports.RecordHighlightsProps = zod_1.z.object({
|
|
55
|
+
fields: zod_1.z.array(zod_1.z.string()).min(1).max(7).describe('Key fields to highlights (max 7)')
|
|
56
|
+
});
|
|
57
|
+
/**
|
|
58
|
+
* ----------------------------------------------------------------------
|
|
59
|
+
* Component Props Map
|
|
60
|
+
* Maps Component Type to its Property Schema
|
|
61
|
+
* ----------------------------------------------------------------------
|
|
62
|
+
*/
|
|
63
|
+
exports.ComponentPropsMap = {
|
|
64
|
+
// Structure
|
|
65
|
+
'page:header': exports.PageHeaderProps,
|
|
66
|
+
'page:tabs': exports.PageTabsProps,
|
|
67
|
+
'page:card': exports.PageCardProps,
|
|
68
|
+
'page:footer': EmptyProps,
|
|
69
|
+
'page:sidebar': EmptyProps,
|
|
70
|
+
'page:accordion': EmptyProps,
|
|
71
|
+
'page:section': EmptyProps,
|
|
72
|
+
// Record
|
|
73
|
+
'record:details': exports.RecordDetailsProps,
|
|
74
|
+
'record:related_list': exports.RecordRelatedListProps,
|
|
75
|
+
'record:highlights': exports.RecordHighlightsProps,
|
|
76
|
+
'record:activity': EmptyProps,
|
|
77
|
+
'record:chatter': EmptyProps,
|
|
78
|
+
'record:path': EmptyProps,
|
|
79
|
+
// Navigation
|
|
80
|
+
'app:launcher': EmptyProps,
|
|
81
|
+
'nav:menu': EmptyProps,
|
|
82
|
+
'nav:breadcrumb': EmptyProps,
|
|
83
|
+
// Utility
|
|
84
|
+
'global:search': EmptyProps,
|
|
85
|
+
'global:notifications': EmptyProps,
|
|
86
|
+
'user:profile': EmptyProps,
|
|
87
|
+
// AI
|
|
88
|
+
'ai:chat_window': zod_1.z.object({ mode: zod_1.z.enum(['float', 'sidebar', 'inline']).default('float') }),
|
|
89
|
+
'ai:suggestion': zod_1.z.object({ context: zod_1.z.string().optional() })
|
|
90
|
+
};
|
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
/**
|
|
3
3
|
* Chart Type Enum
|
|
4
4
|
*/
|
|
5
|
-
export declare const ChartType: z.ZodEnum<["metric", "bar", "line", "pie", "donut", "funnel", "table", "text"]>;
|
|
5
|
+
export declare const ChartType: z.ZodEnum<["metric", "bar", "line", "pie", "donut", "gauge", "funnel", "radar", "scatter", "heatmap", "pivot", "table", "list", "text", "image", "frame"]>;
|
|
6
6
|
/**
|
|
7
7
|
* Dashboard Widget Schema
|
|
8
8
|
* A single component on the dashboard grid.
|
|
@@ -11,7 +11,7 @@ export declare const DashboardWidgetSchema: z.ZodObject<{
|
|
|
11
11
|
/** Widget Title */
|
|
12
12
|
title: z.ZodOptional<z.ZodString>;
|
|
13
13
|
/** Visualization Type */
|
|
14
|
-
type: z.ZodDefault<z.ZodEnum<["metric", "bar", "line", "pie", "donut", "funnel", "table", "text"]>>;
|
|
14
|
+
type: z.ZodDefault<z.ZodEnum<["metric", "bar", "line", "pie", "donut", "gauge", "funnel", "radar", "scatter", "heatmap", "pivot", "table", "list", "text", "image", "frame"]>>;
|
|
15
15
|
/** Data Source Object */
|
|
16
16
|
object: z.ZodOptional<z.ZodString>;
|
|
17
17
|
/** Data Filter (MongoDB-style FilterCondition) */
|
|
@@ -48,8 +48,8 @@ export declare const DashboardWidgetSchema: z.ZodObject<{
|
|
|
48
48
|
/** Widget specific options (colors, legend, etc.) */
|
|
49
49
|
options: z.ZodOptional<z.ZodAny>;
|
|
50
50
|
}, "strip", z.ZodTypeAny, {
|
|
51
|
-
type: "text" | "metric" | "bar" | "line" | "pie" | "donut" | "funnel" | "table";
|
|
52
|
-
aggregate: "
|
|
51
|
+
type: "frame" | "text" | "image" | "list" | "metric" | "bar" | "line" | "pie" | "donut" | "gauge" | "funnel" | "radar" | "scatter" | "heatmap" | "pivot" | "table";
|
|
52
|
+
aggregate: "count" | "sum" | "avg" | "min" | "max";
|
|
53
53
|
layout: {
|
|
54
54
|
x: number;
|
|
55
55
|
y: number;
|
|
@@ -72,8 +72,8 @@ export declare const DashboardWidgetSchema: z.ZodObject<{
|
|
|
72
72
|
object?: string | undefined;
|
|
73
73
|
filter?: import("../data/filter.zod").FilterCondition | undefined;
|
|
74
74
|
options?: any;
|
|
75
|
-
type?: "text" | "metric" | "bar" | "line" | "pie" | "donut" | "funnel" | "table" | undefined;
|
|
76
|
-
aggregate?: "
|
|
75
|
+
type?: "frame" | "text" | "image" | "list" | "metric" | "bar" | "line" | "pie" | "donut" | "gauge" | "funnel" | "radar" | "scatter" | "heatmap" | "pivot" | "table" | undefined;
|
|
76
|
+
aggregate?: "count" | "sum" | "avg" | "min" | "max" | undefined;
|
|
77
77
|
title?: string | undefined;
|
|
78
78
|
categoryField?: string | undefined;
|
|
79
79
|
valueField?: string | undefined;
|
|
@@ -94,7 +94,7 @@ export declare const DashboardSchema: z.ZodObject<{
|
|
|
94
94
|
/** Widget Title */
|
|
95
95
|
title: z.ZodOptional<z.ZodString>;
|
|
96
96
|
/** Visualization Type */
|
|
97
|
-
type: z.ZodDefault<z.ZodEnum<["metric", "bar", "line", "pie", "donut", "funnel", "table", "text"]>>;
|
|
97
|
+
type: z.ZodDefault<z.ZodEnum<["metric", "bar", "line", "pie", "donut", "gauge", "funnel", "radar", "scatter", "heatmap", "pivot", "table", "list", "text", "image", "frame"]>>;
|
|
98
98
|
/** Data Source Object */
|
|
99
99
|
object: z.ZodOptional<z.ZodString>;
|
|
100
100
|
/** Data Filter (MongoDB-style FilterCondition) */
|
|
@@ -131,8 +131,8 @@ export declare const DashboardSchema: z.ZodObject<{
|
|
|
131
131
|
/** Widget specific options (colors, legend, etc.) */
|
|
132
132
|
options: z.ZodOptional<z.ZodAny>;
|
|
133
133
|
}, "strip", z.ZodTypeAny, {
|
|
134
|
-
type: "text" | "metric" | "bar" | "line" | "pie" | "donut" | "funnel" | "table";
|
|
135
|
-
aggregate: "
|
|
134
|
+
type: "frame" | "text" | "image" | "list" | "metric" | "bar" | "line" | "pie" | "donut" | "gauge" | "funnel" | "radar" | "scatter" | "heatmap" | "pivot" | "table";
|
|
135
|
+
aggregate: "count" | "sum" | "avg" | "min" | "max";
|
|
136
136
|
layout: {
|
|
137
137
|
x: number;
|
|
138
138
|
y: number;
|
|
@@ -155,8 +155,8 @@ export declare const DashboardSchema: z.ZodObject<{
|
|
|
155
155
|
object?: string | undefined;
|
|
156
156
|
filter?: import("../data/filter.zod").FilterCondition | undefined;
|
|
157
157
|
options?: any;
|
|
158
|
-
type?: "text" | "metric" | "bar" | "line" | "pie" | "donut" | "funnel" | "table" | undefined;
|
|
159
|
-
aggregate?: "
|
|
158
|
+
type?: "frame" | "text" | "image" | "list" | "metric" | "bar" | "line" | "pie" | "donut" | "gauge" | "funnel" | "radar" | "scatter" | "heatmap" | "pivot" | "table" | undefined;
|
|
159
|
+
aggregate?: "count" | "sum" | "avg" | "min" | "max" | undefined;
|
|
160
160
|
title?: string | undefined;
|
|
161
161
|
categoryField?: string | undefined;
|
|
162
162
|
valueField?: string | undefined;
|
|
@@ -165,8 +165,8 @@ export declare const DashboardSchema: z.ZodObject<{
|
|
|
165
165
|
label: string;
|
|
166
166
|
name: string;
|
|
167
167
|
widgets: {
|
|
168
|
-
type: "text" | "metric" | "bar" | "line" | "pie" | "donut" | "funnel" | "table";
|
|
169
|
-
aggregate: "
|
|
168
|
+
type: "frame" | "text" | "image" | "list" | "metric" | "bar" | "line" | "pie" | "donut" | "gauge" | "funnel" | "radar" | "scatter" | "heatmap" | "pivot" | "table";
|
|
169
|
+
aggregate: "count" | "sum" | "avg" | "min" | "max";
|
|
170
170
|
layout: {
|
|
171
171
|
x: number;
|
|
172
172
|
y: number;
|
|
@@ -194,8 +194,8 @@ export declare const DashboardSchema: z.ZodObject<{
|
|
|
194
194
|
object?: string | undefined;
|
|
195
195
|
filter?: import("../data/filter.zod").FilterCondition | undefined;
|
|
196
196
|
options?: any;
|
|
197
|
-
type?: "text" | "metric" | "bar" | "line" | "pie" | "donut" | "funnel" | "table" | undefined;
|
|
198
|
-
aggregate?: "
|
|
197
|
+
type?: "frame" | "text" | "image" | "list" | "metric" | "bar" | "line" | "pie" | "donut" | "gauge" | "funnel" | "radar" | "scatter" | "heatmap" | "pivot" | "table" | undefined;
|
|
198
|
+
aggregate?: "count" | "sum" | "avg" | "min" | "max" | undefined;
|
|
199
199
|
title?: string | undefined;
|
|
200
200
|
categoryField?: string | undefined;
|
|
201
201
|
valueField?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.zod.d.ts","sourceRoot":"","sources":["../../src/ui/dashboard.zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"dashboard.zod.d.ts","sourceRoot":"","sources":["../../src/ui/dashboard.zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,SAAS,4JAoBpB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,qBAAqB;IAChC,mBAAmB;;IAGnB,yBAAyB;;IAGzB,yBAAyB;;IAGzB,kDAAkD;;IAGlD,yCAAyC;;IAGzC,2BAA2B;;IAG3B,0BAA0B;;IAG1B;;;;;;OAMG;;;;;;;;;;;;;;;;;IAQH,qDAAqD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAErD,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,eAAe;IAC1B,mBAAmB;;IAGnB,oBAAoB;;IAGpB,kBAAkB;;IAGlB,4BAA4B;;QArD5B,mBAAmB;;QAGnB,yBAAyB;;QAGzB,yBAAyB;;QAGzB,kDAAkD;;QAGlD,yCAAyC;;QAGzC,2BAA2B;;QAG3B,0BAA0B;;QAG1B;;;;;;WAMG;;;;;;;;;;;;;;;;;QAQH,qDAAqD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBrD,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACxD,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE;;GAEG;AACH,eAAO,MAAM,SAAS;8BACH,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,KAAG,SAAS;CACpD,CAAC"}
|
package/dist/ui/dashboard.zod.js
CHANGED
|
@@ -7,14 +7,24 @@ const filter_zod_1 = require("../data/filter.zod");
|
|
|
7
7
|
* Chart Type Enum
|
|
8
8
|
*/
|
|
9
9
|
exports.ChartType = zod_1.z.enum([
|
|
10
|
-
|
|
11
|
-
'
|
|
12
|
-
'
|
|
13
|
-
'
|
|
14
|
-
'
|
|
15
|
-
'
|
|
16
|
-
'
|
|
17
|
-
'
|
|
10
|
+
// Analysis
|
|
11
|
+
'metric', // KPI / Big Number
|
|
12
|
+
'bar', // Bar / Column
|
|
13
|
+
'line', // Line / Area
|
|
14
|
+
'pie', // Pie
|
|
15
|
+
'donut', // Donut
|
|
16
|
+
'gauge', // Gauge / Speedometer
|
|
17
|
+
'funnel', // Conversion Funnel
|
|
18
|
+
'radar', // Spider / Radar
|
|
19
|
+
'scatter', // Scatter Plot
|
|
20
|
+
'heatmap', // Heatmap
|
|
21
|
+
'pivot', // Pivot Table (Cross-tab)
|
|
22
|
+
// Content
|
|
23
|
+
'table', // Data Grid
|
|
24
|
+
'list', // Simple List
|
|
25
|
+
'text', // Markdown / HTML
|
|
26
|
+
'image', // Static Image
|
|
27
|
+
'frame', // IFrame / Embed
|
|
18
28
|
]);
|
|
19
29
|
/**
|
|
20
30
|
* Dashboard Widget Schema
|
package/dist/ui/index.d.ts
CHANGED
package/dist/ui/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ui/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ui/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC"}
|
package/dist/ui/index.js
CHANGED
|
@@ -29,4 +29,5 @@ __exportStar(require("./report.zod"), exports);
|
|
|
29
29
|
__exportStar(require("./action.zod"), exports);
|
|
30
30
|
__exportStar(require("./page.zod"), exports);
|
|
31
31
|
__exportStar(require("./widget.zod"), exports);
|
|
32
|
+
__exportStar(require("./block.zod"), exports);
|
|
32
33
|
__exportStar(require("./theme.zod"), exports);
|
package/dist/ui/page.zod.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export declare const PageRegionSchema: z.ZodObject<{
|
|
|
8
8
|
width: z.ZodOptional<z.ZodEnum<["small", "medium", "large", "full"]>>;
|
|
9
9
|
components: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
10
10
|
/** Definition */
|
|
11
|
-
type: z.ZodString
|
|
11
|
+
type: z.ZodUnion<[z.ZodEnum<["page:header", "page:footer", "page:sidebar", "page:tabs", "page:accordion", "page:card", "page:section", "record:details", "record:highlights", "record:related_list", "record:activity", "record:chatter", "record:path", "app:launcher", "nav:menu", "nav:breadcrumb", "global:search", "global:notifications", "user:profile", "ai:chat_window", "ai:suggestion"]>, z.ZodString]>;
|
|
12
12
|
id: z.ZodOptional<z.ZodString>;
|
|
13
13
|
/** Configuration */
|
|
14
14
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -49,13 +49,17 @@ export declare const PageRegionSchema: z.ZodObject<{
|
|
|
49
49
|
}[];
|
|
50
50
|
width?: "full" | "small" | "medium" | "large" | undefined;
|
|
51
51
|
}>;
|
|
52
|
+
/**
|
|
53
|
+
* Standard Page Component Types
|
|
54
|
+
*/
|
|
55
|
+
export declare const PageComponentType: z.ZodEnum<["page:header", "page:footer", "page:sidebar", "page:tabs", "page:accordion", "page:card", "page:section", "record:details", "record:highlights", "record:related_list", "record:activity", "record:chatter", "record:path", "app:launcher", "nav:menu", "nav:breadcrumb", "global:search", "global:notifications", "user:profile", "ai:chat_window", "ai:suggestion"]>;
|
|
52
56
|
/**
|
|
53
57
|
* Page Component Schema
|
|
54
58
|
* A configured instance of a UI component.
|
|
55
59
|
*/
|
|
56
60
|
export declare const PageComponentSchema: z.ZodObject<{
|
|
57
61
|
/** Definition */
|
|
58
|
-
type: z.ZodString
|
|
62
|
+
type: z.ZodUnion<[z.ZodEnum<["page:header", "page:footer", "page:sidebar", "page:tabs", "page:accordion", "page:card", "page:section", "record:details", "record:highlights", "record:related_list", "record:activity", "record:chatter", "record:path", "app:launcher", "nav:menu", "nav:breadcrumb", "global:search", "global:notifications", "user:profile", "ai:chat_window", "ai:suggestion"]>, z.ZodString]>;
|
|
59
63
|
id: z.ZodOptional<z.ZodString>;
|
|
60
64
|
/** Configuration */
|
|
61
65
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -79,6 +83,20 @@ export declare const PageComponentSchema: z.ZodObject<{
|
|
|
79
83
|
* Page Schema
|
|
80
84
|
* Defines a composition of components for a specific context (Record, Home, App).
|
|
81
85
|
* Compare to Salesforce FlexiPage.
|
|
86
|
+
*
|
|
87
|
+
* **NAMING CONVENTION:**
|
|
88
|
+
* Page names are used in routing and must be lowercase snake_case.
|
|
89
|
+
* Prefix with 'page_' is recommended for clarity.
|
|
90
|
+
*
|
|
91
|
+
* @example Good page names
|
|
92
|
+
* - 'page_dashboard'
|
|
93
|
+
* - 'page_settings'
|
|
94
|
+
* - 'home_page'
|
|
95
|
+
* - 'record_detail'
|
|
96
|
+
*
|
|
97
|
+
* @example Bad page names (will be rejected)
|
|
98
|
+
* - 'PageDashboard' (PascalCase)
|
|
99
|
+
* - 'Settings Page' (spaces)
|
|
82
100
|
*/
|
|
83
101
|
export declare const PageSchema: z.ZodObject<{
|
|
84
102
|
name: z.ZodString;
|
|
@@ -96,7 +114,7 @@ export declare const PageSchema: z.ZodObject<{
|
|
|
96
114
|
width: z.ZodOptional<z.ZodEnum<["small", "medium", "large", "full"]>>;
|
|
97
115
|
components: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
98
116
|
/** Definition */
|
|
99
|
-
type: z.ZodString
|
|
117
|
+
type: z.ZodUnion<[z.ZodEnum<["page:header", "page:footer", "page:sidebar", "page:tabs", "page:accordion", "page:card", "page:section", "record:details", "record:highlights", "record:related_list", "record:activity", "record:chatter", "record:path", "app:launcher", "nav:menu", "nav:breadcrumb", "global:search", "global:notifications", "user:profile", "ai:chat_window", "ai:suggestion"]>, z.ZodString]>;
|
|
100
118
|
id: z.ZodOptional<z.ZodString>;
|
|
101
119
|
/** Configuration */
|
|
102
120
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -144,8 +162,8 @@ export declare const PageSchema: z.ZodObject<{
|
|
|
144
162
|
type: "record" | "home" | "app" | "utility";
|
|
145
163
|
label: string;
|
|
146
164
|
name: string;
|
|
147
|
-
template: string;
|
|
148
165
|
isDefault: boolean;
|
|
166
|
+
template: string;
|
|
149
167
|
regions: {
|
|
150
168
|
name: string;
|
|
151
169
|
components: {
|
|
@@ -177,8 +195,8 @@ export declare const PageSchema: z.ZodObject<{
|
|
|
177
195
|
object?: string | undefined;
|
|
178
196
|
type?: "record" | "home" | "app" | "utility" | undefined;
|
|
179
197
|
description?: string | undefined;
|
|
180
|
-
template?: string | undefined;
|
|
181
198
|
isDefault?: boolean | undefined;
|
|
199
|
+
template?: string | undefined;
|
|
182
200
|
assignedProfiles?: string[] | undefined;
|
|
183
201
|
}>;
|
|
184
202
|
export type Page = z.infer<typeof PageSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page.zod.d.ts","sourceRoot":"","sources":["../../src/ui/page.zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"page.zod.d.ts","sourceRoot":"","sources":["../../src/ui/page.zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;QA2B3B,iBAAiB;;;QAOjB,oBAAoB;;;QAIpB,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAlCtB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,iBAAiB,mXAW5B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,mBAAmB;IAC9B,iBAAiB;;;IAOjB,oBAAoB;;;IAIpB,sBAAsB;;;;;;;;;;;;;;EAEtB,CAAC;AAEH;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,UAAU;;;;IAKrB,gBAAgB;;IAGhB,cAAc;;IAGd,sBAAsB;;IAGtB,wBAAwB;;;;;YAhDxB,iBAAiB;;;YAOjB,oBAAoB;;;YAIpB,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAwCtB,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGjB,CAAC;AAEH,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAC9C,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
package/dist/ui/page.zod.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PageSchema = exports.PageComponentSchema = exports.PageRegionSchema = void 0;
|
|
3
|
+
exports.PageSchema = exports.PageComponentSchema = exports.PageComponentType = exports.PageRegionSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const identifiers_zod_1 = require("../shared/identifiers.zod");
|
|
5
6
|
/**
|
|
6
7
|
* Page Region Schema
|
|
7
8
|
* A named region in the template where components are dropped.
|
|
@@ -11,17 +12,35 @@ exports.PageRegionSchema = zod_1.z.object({
|
|
|
11
12
|
width: zod_1.z.enum(['small', 'medium', 'large', 'full']).optional(),
|
|
12
13
|
components: zod_1.z.array(zod_1.z.lazy(() => exports.PageComponentSchema)).describe('Components in this region')
|
|
13
14
|
});
|
|
15
|
+
/**
|
|
16
|
+
* Standard Page Component Types
|
|
17
|
+
*/
|
|
18
|
+
exports.PageComponentType = zod_1.z.enum([
|
|
19
|
+
// Structure
|
|
20
|
+
'page:header', 'page:footer', 'page:sidebar', 'page:tabs', 'page:accordion', 'page:card', 'page:section',
|
|
21
|
+
// Record Context
|
|
22
|
+
'record:details', 'record:highlights', 'record:related_list', 'record:activity', 'record:chatter', 'record:path',
|
|
23
|
+
// Navigation
|
|
24
|
+
'app:launcher', 'nav:menu', 'nav:breadcrumb',
|
|
25
|
+
// Utility
|
|
26
|
+
'global:search', 'global:notifications', 'user:profile',
|
|
27
|
+
// AI
|
|
28
|
+
'ai:chat_window', 'ai:suggestion'
|
|
29
|
+
]);
|
|
14
30
|
/**
|
|
15
31
|
* Page Component Schema
|
|
16
32
|
* A configured instance of a UI component.
|
|
17
33
|
*/
|
|
18
34
|
exports.PageComponentSchema = zod_1.z.object({
|
|
19
35
|
/** Definition */
|
|
20
|
-
type: zod_1.z.
|
|
36
|
+
type: zod_1.z.union([
|
|
37
|
+
exports.PageComponentType,
|
|
38
|
+
zod_1.z.string()
|
|
39
|
+
]).describe('Component Type (Standard enum or custom string)'),
|
|
21
40
|
id: zod_1.z.string().optional().describe('Unique instance ID'),
|
|
22
41
|
/** Configuration */
|
|
23
42
|
label: zod_1.z.string().optional(),
|
|
24
|
-
properties: zod_1.z.record(zod_1.z.any()).describe('Component props passed to the widget'),
|
|
43
|
+
properties: zod_1.z.record(zod_1.z.any()).describe('Component props passed to the widget. See block.zod.ts for schemas.'),
|
|
25
44
|
/** Visibility Rule */
|
|
26
45
|
visibility: zod_1.z.string().optional().describe('Visibility filter/formula')
|
|
27
46
|
});
|
|
@@ -29,9 +48,23 @@ exports.PageComponentSchema = zod_1.z.object({
|
|
|
29
48
|
* Page Schema
|
|
30
49
|
* Defines a composition of components for a specific context (Record, Home, App).
|
|
31
50
|
* Compare to Salesforce FlexiPage.
|
|
51
|
+
*
|
|
52
|
+
* **NAMING CONVENTION:**
|
|
53
|
+
* Page names are used in routing and must be lowercase snake_case.
|
|
54
|
+
* Prefix with 'page_' is recommended for clarity.
|
|
55
|
+
*
|
|
56
|
+
* @example Good page names
|
|
57
|
+
* - 'page_dashboard'
|
|
58
|
+
* - 'page_settings'
|
|
59
|
+
* - 'home_page'
|
|
60
|
+
* - 'record_detail'
|
|
61
|
+
*
|
|
62
|
+
* @example Bad page names (will be rejected)
|
|
63
|
+
* - 'PageDashboard' (PascalCase)
|
|
64
|
+
* - 'Settings Page' (spaces)
|
|
32
65
|
*/
|
|
33
66
|
exports.PageSchema = zod_1.z.object({
|
|
34
|
-
name:
|
|
67
|
+
name: identifiers_zod_1.SnakeCaseIdentifierSchema.describe('Page unique name (lowercase snake_case)'),
|
|
35
68
|
label: zod_1.z.string(),
|
|
36
69
|
description: zod_1.z.string().optional(),
|
|
37
70
|
/** Page Type */
|
package/dist/ui/report.zod.d.ts
CHANGED
|
@@ -13,11 +13,11 @@ export declare const ReportColumnSchema: z.ZodObject<{
|
|
|
13
13
|
}, "strip", z.ZodTypeAny, {
|
|
14
14
|
field: string;
|
|
15
15
|
label?: string | undefined;
|
|
16
|
-
aggregate?: "
|
|
16
|
+
aggregate?: "count" | "sum" | "avg" | "min" | "max" | "unique" | undefined;
|
|
17
17
|
}, {
|
|
18
18
|
field: string;
|
|
19
19
|
label?: string | undefined;
|
|
20
|
-
aggregate?: "
|
|
20
|
+
aggregate?: "count" | "sum" | "avg" | "min" | "max" | "unique" | undefined;
|
|
21
21
|
}>;
|
|
22
22
|
/**
|
|
23
23
|
* Report Grouping Schema
|
|
@@ -46,13 +46,13 @@ export declare const ReportChartSchema: z.ZodObject<{
|
|
|
46
46
|
xAxis: z.ZodString;
|
|
47
47
|
yAxis: z.ZodString;
|
|
48
48
|
}, "strip", z.ZodTypeAny, {
|
|
49
|
-
type: "bar" | "line" | "pie" | "donut" | "funnel" | "
|
|
49
|
+
type: "bar" | "line" | "pie" | "donut" | "funnel" | "scatter" | "column";
|
|
50
50
|
showLegend: boolean;
|
|
51
51
|
xAxis: string;
|
|
52
52
|
yAxis: string;
|
|
53
53
|
title?: string | undefined;
|
|
54
54
|
}, {
|
|
55
|
-
type: "bar" | "line" | "pie" | "donut" | "funnel" | "
|
|
55
|
+
type: "bar" | "line" | "pie" | "donut" | "funnel" | "scatter" | "column";
|
|
56
56
|
xAxis: string;
|
|
57
57
|
yAxis: string;
|
|
58
58
|
title?: string | undefined;
|
|
@@ -78,11 +78,11 @@ export declare const ReportSchema: z.ZodObject<{
|
|
|
78
78
|
}, "strip", z.ZodTypeAny, {
|
|
79
79
|
field: string;
|
|
80
80
|
label?: string | undefined;
|
|
81
|
-
aggregate?: "
|
|
81
|
+
aggregate?: "count" | "sum" | "avg" | "min" | "max" | "unique" | undefined;
|
|
82
82
|
}, {
|
|
83
83
|
field: string;
|
|
84
84
|
label?: string | undefined;
|
|
85
|
-
aggregate?: "
|
|
85
|
+
aggregate?: "count" | "sum" | "avg" | "min" | "max" | "unique" | undefined;
|
|
86
86
|
}>, "many">;
|
|
87
87
|
/** Grouping (for Summary/Matrix) */
|
|
88
88
|
groupingsDown: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -121,13 +121,13 @@ export declare const ReportSchema: z.ZodObject<{
|
|
|
121
121
|
xAxis: z.ZodString;
|
|
122
122
|
yAxis: z.ZodString;
|
|
123
123
|
}, "strip", z.ZodTypeAny, {
|
|
124
|
-
type: "bar" | "line" | "pie" | "donut" | "funnel" | "
|
|
124
|
+
type: "bar" | "line" | "pie" | "donut" | "funnel" | "scatter" | "column";
|
|
125
125
|
showLegend: boolean;
|
|
126
126
|
xAxis: string;
|
|
127
127
|
yAxis: string;
|
|
128
128
|
title?: string | undefined;
|
|
129
129
|
}, {
|
|
130
|
-
type: "bar" | "line" | "pie" | "donut" | "funnel" | "
|
|
130
|
+
type: "bar" | "line" | "pie" | "donut" | "funnel" | "scatter" | "column";
|
|
131
131
|
xAxis: string;
|
|
132
132
|
yAxis: string;
|
|
133
133
|
title?: string | undefined;
|
|
@@ -141,7 +141,7 @@ export declare const ReportSchema: z.ZodObject<{
|
|
|
141
141
|
columns: {
|
|
142
142
|
field: string;
|
|
143
143
|
label?: string | undefined;
|
|
144
|
-
aggregate?: "
|
|
144
|
+
aggregate?: "count" | "sum" | "avg" | "min" | "max" | "unique" | undefined;
|
|
145
145
|
}[];
|
|
146
146
|
filter?: import("../data/filter.zod").FilterCondition | undefined;
|
|
147
147
|
description?: string | undefined;
|
|
@@ -156,7 +156,7 @@ export declare const ReportSchema: z.ZodObject<{
|
|
|
156
156
|
dateGranularity?: "day" | "week" | "month" | "quarter" | "year" | undefined;
|
|
157
157
|
}[] | undefined;
|
|
158
158
|
chart?: {
|
|
159
|
-
type: "bar" | "line" | "pie" | "donut" | "funnel" | "
|
|
159
|
+
type: "bar" | "line" | "pie" | "donut" | "funnel" | "scatter" | "column";
|
|
160
160
|
showLegend: boolean;
|
|
161
161
|
xAxis: string;
|
|
162
162
|
yAxis: string;
|
|
@@ -169,7 +169,7 @@ export declare const ReportSchema: z.ZodObject<{
|
|
|
169
169
|
columns: {
|
|
170
170
|
field: string;
|
|
171
171
|
label?: string | undefined;
|
|
172
|
-
aggregate?: "
|
|
172
|
+
aggregate?: "count" | "sum" | "avg" | "min" | "max" | "unique" | undefined;
|
|
173
173
|
}[];
|
|
174
174
|
filter?: import("../data/filter.zod").FilterCondition | undefined;
|
|
175
175
|
type?: "summary" | "tabular" | "matrix" | "joined" | undefined;
|
|
@@ -185,7 +185,7 @@ export declare const ReportSchema: z.ZodObject<{
|
|
|
185
185
|
dateGranularity?: "day" | "week" | "month" | "quarter" | "year" | undefined;
|
|
186
186
|
}[] | undefined;
|
|
187
187
|
chart?: {
|
|
188
|
-
type: "bar" | "line" | "pie" | "donut" | "funnel" | "
|
|
188
|
+
type: "bar" | "line" | "pie" | "donut" | "funnel" | "scatter" | "column";
|
|
189
189
|
xAxis: string;
|
|
190
190
|
yAxis: string;
|
|
191
191
|
title?: string | undefined;
|