@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
|
@@ -41,9 +41,9 @@ export declare const FieldMappingSchema: z.ZodObject<{
|
|
|
41
41
|
separator?: string | undefined;
|
|
42
42
|
}>>;
|
|
43
43
|
}, "strip", z.ZodTypeAny, {
|
|
44
|
-
source: string | string[];
|
|
45
44
|
target: string | string[];
|
|
46
|
-
|
|
45
|
+
source: string | string[];
|
|
46
|
+
transform: "join" | "map" | "lookup" | "none" | "split" | "javascript" | "constant";
|
|
47
47
|
params?: {
|
|
48
48
|
object?: string | undefined;
|
|
49
49
|
value?: any;
|
|
@@ -54,8 +54,8 @@ export declare const FieldMappingSchema: z.ZodObject<{
|
|
|
54
54
|
separator?: string | undefined;
|
|
55
55
|
} | undefined;
|
|
56
56
|
}, {
|
|
57
|
-
source: string | string[];
|
|
58
57
|
target: string | string[];
|
|
58
|
+
source: string | string[];
|
|
59
59
|
params?: {
|
|
60
60
|
object?: string | undefined;
|
|
61
61
|
value?: any;
|
|
@@ -65,11 +65,23 @@ export declare const FieldMappingSchema: z.ZodObject<{
|
|
|
65
65
|
valueMap?: Record<string, any> | undefined;
|
|
66
66
|
separator?: string | undefined;
|
|
67
67
|
} | undefined;
|
|
68
|
-
transform?: "
|
|
68
|
+
transform?: "join" | "map" | "lookup" | "none" | "split" | "javascript" | "constant" | undefined;
|
|
69
69
|
}>;
|
|
70
70
|
/**
|
|
71
|
-
*
|
|
72
|
-
*
|
|
71
|
+
* Data Mapping Schema
|
|
72
|
+
* Defines a reusable data mapping configuration for ETL operations.
|
|
73
|
+
*
|
|
74
|
+
* **NAMING CONVENTION:**
|
|
75
|
+
* Mapping names are machine identifiers and must be lowercase snake_case.
|
|
76
|
+
*
|
|
77
|
+
* @example Good mapping names
|
|
78
|
+
* - 'salesforce_to_crm'
|
|
79
|
+
* - 'csv_import_contacts'
|
|
80
|
+
* - 'api_sync_orders'
|
|
81
|
+
*
|
|
82
|
+
* @example Bad mapping names (will be rejected)
|
|
83
|
+
* - 'SalesforceToCRM' (PascalCase)
|
|
84
|
+
* - 'CSV Import' (spaces)
|
|
73
85
|
*/
|
|
74
86
|
export declare const MappingSchema: z.ZodObject<{
|
|
75
87
|
/** Identity */
|
|
@@ -113,9 +125,9 @@ export declare const MappingSchema: z.ZodObject<{
|
|
|
113
125
|
separator?: string | undefined;
|
|
114
126
|
}>>;
|
|
115
127
|
}, "strip", z.ZodTypeAny, {
|
|
116
|
-
source: string | string[];
|
|
117
128
|
target: string | string[];
|
|
118
|
-
|
|
129
|
+
source: string | string[];
|
|
130
|
+
transform: "join" | "map" | "lookup" | "none" | "split" | "javascript" | "constant";
|
|
119
131
|
params?: {
|
|
120
132
|
object?: string | undefined;
|
|
121
133
|
value?: any;
|
|
@@ -126,8 +138,8 @@ export declare const MappingSchema: z.ZodObject<{
|
|
|
126
138
|
separator?: string | undefined;
|
|
127
139
|
} | undefined;
|
|
128
140
|
}, {
|
|
129
|
-
source: string | string[];
|
|
130
141
|
target: string | string[];
|
|
142
|
+
source: string | string[];
|
|
131
143
|
params?: {
|
|
132
144
|
object?: string | undefined;
|
|
133
145
|
value?: any;
|
|
@@ -137,7 +149,7 @@ export declare const MappingSchema: z.ZodObject<{
|
|
|
137
149
|
valueMap?: Record<string, any> | undefined;
|
|
138
150
|
separator?: string | undefined;
|
|
139
151
|
} | undefined;
|
|
140
|
-
transform?: "
|
|
152
|
+
transform?: "join" | "map" | "lookup" | "none" | "split" | "javascript" | "constant" | undefined;
|
|
141
153
|
}>, "many">;
|
|
142
154
|
/** Upsert Logic */
|
|
143
155
|
mode: z.ZodDefault<z.ZodEnum<["insert", "update", "upsert"]>>;
|
|
@@ -146,22 +158,42 @@ export declare const MappingSchema: z.ZodObject<{
|
|
|
146
158
|
extractQuery: z.ZodOptional<z.ZodObject<{
|
|
147
159
|
object: z.ZodString;
|
|
148
160
|
fields: z.ZodOptional<z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">>;
|
|
161
|
+
where: z.ZodOptional<z.ZodType<import("./filter.zod").FilterCondition, z.ZodTypeDef, import("./filter.zod").FilterCondition>>;
|
|
162
|
+
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
163
|
+
field: z.ZodString;
|
|
164
|
+
order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
165
|
+
}, "strip", z.ZodTypeAny, {
|
|
166
|
+
field: string;
|
|
167
|
+
order: "asc" | "desc";
|
|
168
|
+
}, {
|
|
169
|
+
field: string;
|
|
170
|
+
order?: "asc" | "desc" | undefined;
|
|
171
|
+
}>, "many">>;
|
|
172
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
173
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
174
|
+
cursor: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
175
|
+
joins: z.ZodOptional<z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">>;
|
|
149
176
|
aggregations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
150
177
|
function: z.ZodEnum<["count", "sum", "avg", "min", "max", "count_distinct", "array_agg", "string_agg"]>;
|
|
151
178
|
field: z.ZodOptional<z.ZodString>;
|
|
152
179
|
alias: z.ZodString;
|
|
153
180
|
distinct: z.ZodOptional<z.ZodBoolean>;
|
|
181
|
+
filter: z.ZodOptional<z.ZodType<import("./filter.zod").FilterCondition, z.ZodTypeDef, import("./filter.zod").FilterCondition>>;
|
|
154
182
|
}, "strip", z.ZodTypeAny, {
|
|
155
|
-
function: "
|
|
183
|
+
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
156
184
|
alias: string;
|
|
185
|
+
filter?: import("./filter.zod").FilterCondition | undefined;
|
|
157
186
|
field?: string | undefined;
|
|
158
187
|
distinct?: boolean | undefined;
|
|
159
188
|
}, {
|
|
160
|
-
function: "
|
|
189
|
+
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
161
190
|
alias: string;
|
|
191
|
+
filter?: import("./filter.zod").FilterCondition | undefined;
|
|
162
192
|
field?: string | undefined;
|
|
163
193
|
distinct?: boolean | undefined;
|
|
164
194
|
}>, "many">>;
|
|
195
|
+
groupBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
196
|
+
having: z.ZodOptional<z.ZodType<import("./filter.zod").FilterCondition, z.ZodTypeDef, import("./filter.zod").FilterCondition>>;
|
|
165
197
|
windowFunctions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
166
198
|
function: z.ZodEnum<["row_number", "rank", "dense_rank", "percent_rank", "lag", "lead", "first_value", "last_value", "sum", "avg", "count", "min", "max"]>;
|
|
167
199
|
field: z.ZodOptional<z.ZodString>;
|
|
@@ -192,22 +224,22 @@ export declare const MappingSchema: z.ZodObject<{
|
|
|
192
224
|
end?: string | undefined;
|
|
193
225
|
}>>;
|
|
194
226
|
}, "strip", z.ZodTypeAny, {
|
|
195
|
-
partitionBy?: string[] | undefined;
|
|
196
227
|
orderBy?: {
|
|
197
228
|
field: string;
|
|
198
229
|
order: "asc" | "desc";
|
|
199
230
|
}[] | undefined;
|
|
231
|
+
partitionBy?: string[] | undefined;
|
|
200
232
|
frame?: {
|
|
201
233
|
type?: "rows" | "range" | undefined;
|
|
202
234
|
start?: string | undefined;
|
|
203
235
|
end?: string | undefined;
|
|
204
236
|
} | undefined;
|
|
205
237
|
}, {
|
|
206
|
-
partitionBy?: string[] | undefined;
|
|
207
238
|
orderBy?: {
|
|
208
239
|
field: string;
|
|
209
240
|
order?: "asc" | "desc" | undefined;
|
|
210
241
|
}[] | undefined;
|
|
242
|
+
partitionBy?: string[] | undefined;
|
|
211
243
|
frame?: {
|
|
212
244
|
type?: "rows" | "range" | undefined;
|
|
213
245
|
start?: string | undefined;
|
|
@@ -215,14 +247,14 @@ export declare const MappingSchema: z.ZodObject<{
|
|
|
215
247
|
} | undefined;
|
|
216
248
|
}>;
|
|
217
249
|
}, "strip", z.ZodTypeAny, {
|
|
218
|
-
function: "
|
|
250
|
+
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
219
251
|
alias: string;
|
|
220
252
|
over: {
|
|
221
|
-
partitionBy?: string[] | undefined;
|
|
222
253
|
orderBy?: {
|
|
223
254
|
field: string;
|
|
224
255
|
order: "asc" | "desc";
|
|
225
256
|
}[] | undefined;
|
|
257
|
+
partitionBy?: string[] | undefined;
|
|
226
258
|
frame?: {
|
|
227
259
|
type?: "rows" | "range" | undefined;
|
|
228
260
|
start?: string | undefined;
|
|
@@ -231,14 +263,14 @@ export declare const MappingSchema: z.ZodObject<{
|
|
|
231
263
|
};
|
|
232
264
|
field?: string | undefined;
|
|
233
265
|
}, {
|
|
234
|
-
function: "
|
|
266
|
+
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
235
267
|
alias: string;
|
|
236
268
|
over: {
|
|
237
|
-
partitionBy?: string[] | undefined;
|
|
238
269
|
orderBy?: {
|
|
239
270
|
field: string;
|
|
240
271
|
order?: "asc" | "desc" | undefined;
|
|
241
272
|
}[] | undefined;
|
|
273
|
+
partitionBy?: string[] | undefined;
|
|
242
274
|
frame?: {
|
|
243
275
|
type?: "rows" | "range" | undefined;
|
|
244
276
|
start?: string | undefined;
|
|
@@ -247,46 +279,38 @@ export declare const MappingSchema: z.ZodObject<{
|
|
|
247
279
|
};
|
|
248
280
|
field?: string | undefined;
|
|
249
281
|
}>, "many">>;
|
|
250
|
-
filters: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
251
|
-
joins: z.ZodOptional<z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">>;
|
|
252
|
-
groupBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
253
|
-
having: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
254
|
-
sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
255
|
-
field: z.ZodString;
|
|
256
|
-
order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
257
|
-
}, "strip", z.ZodTypeAny, {
|
|
258
|
-
field: string;
|
|
259
|
-
order: "asc" | "desc";
|
|
260
|
-
}, {
|
|
261
|
-
field: string;
|
|
262
|
-
order?: "asc" | "desc" | undefined;
|
|
263
|
-
}>, "many">>;
|
|
264
|
-
top: z.ZodOptional<z.ZodNumber>;
|
|
265
|
-
skip: z.ZodOptional<z.ZodNumber>;
|
|
266
282
|
distinct: z.ZodOptional<z.ZodBoolean>;
|
|
267
283
|
}, "strip", z.ZodTypeAny, {
|
|
268
284
|
object: string;
|
|
269
|
-
|
|
285
|
+
where?: import("./filter.zod").FilterCondition | undefined;
|
|
286
|
+
distinct?: boolean | undefined;
|
|
287
|
+
fields?: any[] | undefined;
|
|
288
|
+
orderBy?: {
|
|
270
289
|
field: string;
|
|
271
290
|
order: "asc" | "desc";
|
|
272
291
|
}[] | undefined;
|
|
273
|
-
|
|
274
|
-
|
|
292
|
+
limit?: number | undefined;
|
|
293
|
+
offset?: number | undefined;
|
|
294
|
+
cursor?: Record<string, any> | undefined;
|
|
295
|
+
joins?: any[] | undefined;
|
|
275
296
|
aggregations?: {
|
|
276
|
-
function: "
|
|
297
|
+
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
277
298
|
alias: string;
|
|
299
|
+
filter?: import("./filter.zod").FilterCondition | undefined;
|
|
278
300
|
field?: string | undefined;
|
|
279
301
|
distinct?: boolean | undefined;
|
|
280
302
|
}[] | undefined;
|
|
303
|
+
groupBy?: string[] | undefined;
|
|
304
|
+
having?: import("./filter.zod").FilterCondition | undefined;
|
|
281
305
|
windowFunctions?: {
|
|
282
|
-
function: "
|
|
306
|
+
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
283
307
|
alias: string;
|
|
284
308
|
over: {
|
|
285
|
-
partitionBy?: string[] | undefined;
|
|
286
309
|
orderBy?: {
|
|
287
310
|
field: string;
|
|
288
311
|
order: "asc" | "desc";
|
|
289
312
|
}[] | undefined;
|
|
313
|
+
partitionBy?: string[] | undefined;
|
|
290
314
|
frame?: {
|
|
291
315
|
type?: "rows" | "range" | undefined;
|
|
292
316
|
start?: string | undefined;
|
|
@@ -295,35 +319,37 @@ export declare const MappingSchema: z.ZodObject<{
|
|
|
295
319
|
};
|
|
296
320
|
field?: string | undefined;
|
|
297
321
|
}[] | undefined;
|
|
298
|
-
filters?: any;
|
|
299
|
-
joins?: any[] | undefined;
|
|
300
|
-
groupBy?: string[] | undefined;
|
|
301
|
-
having?: any;
|
|
302
|
-
top?: number | undefined;
|
|
303
|
-
skip?: number | undefined;
|
|
304
322
|
}, {
|
|
305
323
|
object: string;
|
|
306
|
-
|
|
324
|
+
where?: import("./filter.zod").FilterCondition | undefined;
|
|
325
|
+
distinct?: boolean | undefined;
|
|
326
|
+
fields?: any[] | undefined;
|
|
327
|
+
orderBy?: {
|
|
307
328
|
field: string;
|
|
308
329
|
order?: "asc" | "desc" | undefined;
|
|
309
330
|
}[] | undefined;
|
|
310
|
-
|
|
311
|
-
|
|
331
|
+
limit?: number | undefined;
|
|
332
|
+
offset?: number | undefined;
|
|
333
|
+
cursor?: Record<string, any> | undefined;
|
|
334
|
+
joins?: any[] | undefined;
|
|
312
335
|
aggregations?: {
|
|
313
|
-
function: "
|
|
336
|
+
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
314
337
|
alias: string;
|
|
338
|
+
filter?: import("./filter.zod").FilterCondition | undefined;
|
|
315
339
|
field?: string | undefined;
|
|
316
340
|
distinct?: boolean | undefined;
|
|
317
341
|
}[] | undefined;
|
|
342
|
+
groupBy?: string[] | undefined;
|
|
343
|
+
having?: import("./filter.zod").FilterCondition | undefined;
|
|
318
344
|
windowFunctions?: {
|
|
319
|
-
function: "
|
|
345
|
+
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
320
346
|
alias: string;
|
|
321
347
|
over: {
|
|
322
|
-
partitionBy?: string[] | undefined;
|
|
323
348
|
orderBy?: {
|
|
324
349
|
field: string;
|
|
325
350
|
order?: "asc" | "desc" | undefined;
|
|
326
351
|
}[] | undefined;
|
|
352
|
+
partitionBy?: string[] | undefined;
|
|
327
353
|
frame?: {
|
|
328
354
|
type?: "rows" | "range" | undefined;
|
|
329
355
|
start?: string | undefined;
|
|
@@ -332,25 +358,20 @@ export declare const MappingSchema: z.ZodObject<{
|
|
|
332
358
|
};
|
|
333
359
|
field?: string | undefined;
|
|
334
360
|
}[] | undefined;
|
|
335
|
-
filters?: any;
|
|
336
|
-
joins?: any[] | undefined;
|
|
337
|
-
groupBy?: string[] | undefined;
|
|
338
|
-
having?: any;
|
|
339
|
-
top?: number | undefined;
|
|
340
|
-
skip?: number | undefined;
|
|
341
361
|
}>>;
|
|
342
362
|
/** Error Handling */
|
|
343
363
|
errorPolicy: z.ZodDefault<z.ZodEnum<["skip", "abort", "retry"]>>;
|
|
344
364
|
batchSize: z.ZodDefault<z.ZodNumber>;
|
|
345
365
|
}, "strip", z.ZodTypeAny, {
|
|
346
366
|
name: string;
|
|
347
|
-
mode: "
|
|
348
|
-
|
|
367
|
+
mode: "insert" | "update" | "upsert";
|
|
368
|
+
batchSize: number;
|
|
349
369
|
targetObject: string;
|
|
370
|
+
sourceFormat: "json" | "csv" | "xml" | "sql";
|
|
350
371
|
fieldMapping: {
|
|
351
|
-
source: string | string[];
|
|
352
372
|
target: string | string[];
|
|
353
|
-
|
|
373
|
+
source: string | string[];
|
|
374
|
+
transform: "join" | "map" | "lookup" | "none" | "split" | "javascript" | "constant";
|
|
354
375
|
params?: {
|
|
355
376
|
object?: string | undefined;
|
|
356
377
|
value?: any;
|
|
@@ -361,33 +382,40 @@ export declare const MappingSchema: z.ZodObject<{
|
|
|
361
382
|
separator?: string | undefined;
|
|
362
383
|
} | undefined;
|
|
363
384
|
}[];
|
|
364
|
-
errorPolicy: "
|
|
365
|
-
batchSize: number;
|
|
385
|
+
errorPolicy: "abort" | "retry" | "skip";
|
|
366
386
|
label?: string | undefined;
|
|
367
387
|
upsertKey?: string[] | undefined;
|
|
368
388
|
extractQuery?: {
|
|
369
389
|
object: string;
|
|
370
|
-
|
|
390
|
+
where?: import("./filter.zod").FilterCondition | undefined;
|
|
391
|
+
distinct?: boolean | undefined;
|
|
392
|
+
fields?: any[] | undefined;
|
|
393
|
+
orderBy?: {
|
|
371
394
|
field: string;
|
|
372
395
|
order: "asc" | "desc";
|
|
373
396
|
}[] | undefined;
|
|
374
|
-
|
|
375
|
-
|
|
397
|
+
limit?: number | undefined;
|
|
398
|
+
offset?: number | undefined;
|
|
399
|
+
cursor?: Record<string, any> | undefined;
|
|
400
|
+
joins?: any[] | undefined;
|
|
376
401
|
aggregations?: {
|
|
377
|
-
function: "
|
|
402
|
+
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
378
403
|
alias: string;
|
|
404
|
+
filter?: import("./filter.zod").FilterCondition | undefined;
|
|
379
405
|
field?: string | undefined;
|
|
380
406
|
distinct?: boolean | undefined;
|
|
381
407
|
}[] | undefined;
|
|
408
|
+
groupBy?: string[] | undefined;
|
|
409
|
+
having?: import("./filter.zod").FilterCondition | undefined;
|
|
382
410
|
windowFunctions?: {
|
|
383
|
-
function: "
|
|
411
|
+
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
384
412
|
alias: string;
|
|
385
413
|
over: {
|
|
386
|
-
partitionBy?: string[] | undefined;
|
|
387
414
|
orderBy?: {
|
|
388
415
|
field: string;
|
|
389
416
|
order: "asc" | "desc";
|
|
390
417
|
}[] | undefined;
|
|
418
|
+
partitionBy?: string[] | undefined;
|
|
391
419
|
frame?: {
|
|
392
420
|
type?: "rows" | "range" | undefined;
|
|
393
421
|
start?: string | undefined;
|
|
@@ -396,19 +424,13 @@ export declare const MappingSchema: z.ZodObject<{
|
|
|
396
424
|
};
|
|
397
425
|
field?: string | undefined;
|
|
398
426
|
}[] | undefined;
|
|
399
|
-
filters?: any;
|
|
400
|
-
joins?: any[] | undefined;
|
|
401
|
-
groupBy?: string[] | undefined;
|
|
402
|
-
having?: any;
|
|
403
|
-
top?: number | undefined;
|
|
404
|
-
skip?: number | undefined;
|
|
405
427
|
} | undefined;
|
|
406
428
|
}, {
|
|
407
429
|
name: string;
|
|
408
430
|
targetObject: string;
|
|
409
431
|
fieldMapping: {
|
|
410
|
-
source: string | string[];
|
|
411
432
|
target: string | string[];
|
|
433
|
+
source: string | string[];
|
|
412
434
|
params?: {
|
|
413
435
|
object?: string | undefined;
|
|
414
436
|
value?: any;
|
|
@@ -418,35 +440,44 @@ export declare const MappingSchema: z.ZodObject<{
|
|
|
418
440
|
valueMap?: Record<string, any> | undefined;
|
|
419
441
|
separator?: string | undefined;
|
|
420
442
|
} | undefined;
|
|
421
|
-
transform?: "
|
|
443
|
+
transform?: "join" | "map" | "lookup" | "none" | "split" | "javascript" | "constant" | undefined;
|
|
422
444
|
}[];
|
|
423
445
|
label?: string | undefined;
|
|
424
|
-
mode?: "
|
|
446
|
+
mode?: "insert" | "update" | "upsert" | undefined;
|
|
447
|
+
batchSize?: number | undefined;
|
|
425
448
|
sourceFormat?: "json" | "csv" | "xml" | "sql" | undefined;
|
|
426
449
|
upsertKey?: string[] | undefined;
|
|
427
450
|
extractQuery?: {
|
|
428
451
|
object: string;
|
|
429
|
-
|
|
452
|
+
where?: import("./filter.zod").FilterCondition | undefined;
|
|
453
|
+
distinct?: boolean | undefined;
|
|
454
|
+
fields?: any[] | undefined;
|
|
455
|
+
orderBy?: {
|
|
430
456
|
field: string;
|
|
431
457
|
order?: "asc" | "desc" | undefined;
|
|
432
458
|
}[] | undefined;
|
|
433
|
-
|
|
434
|
-
|
|
459
|
+
limit?: number | undefined;
|
|
460
|
+
offset?: number | undefined;
|
|
461
|
+
cursor?: Record<string, any> | undefined;
|
|
462
|
+
joins?: any[] | undefined;
|
|
435
463
|
aggregations?: {
|
|
436
|
-
function: "
|
|
464
|
+
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
437
465
|
alias: string;
|
|
466
|
+
filter?: import("./filter.zod").FilterCondition | undefined;
|
|
438
467
|
field?: string | undefined;
|
|
439
468
|
distinct?: boolean | undefined;
|
|
440
469
|
}[] | undefined;
|
|
470
|
+
groupBy?: string[] | undefined;
|
|
471
|
+
having?: import("./filter.zod").FilterCondition | undefined;
|
|
441
472
|
windowFunctions?: {
|
|
442
|
-
function: "
|
|
473
|
+
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
443
474
|
alias: string;
|
|
444
475
|
over: {
|
|
445
|
-
partitionBy?: string[] | undefined;
|
|
446
476
|
orderBy?: {
|
|
447
477
|
field: string;
|
|
448
478
|
order?: "asc" | "desc" | undefined;
|
|
449
479
|
}[] | undefined;
|
|
480
|
+
partitionBy?: string[] | undefined;
|
|
450
481
|
frame?: {
|
|
451
482
|
type?: "rows" | "range" | undefined;
|
|
452
483
|
start?: string | undefined;
|
|
@@ -455,15 +486,8 @@ export declare const MappingSchema: z.ZodObject<{
|
|
|
455
486
|
};
|
|
456
487
|
field?: string | undefined;
|
|
457
488
|
}[] | undefined;
|
|
458
|
-
filters?: any;
|
|
459
|
-
joins?: any[] | undefined;
|
|
460
|
-
groupBy?: string[] | undefined;
|
|
461
|
-
having?: any;
|
|
462
|
-
top?: number | undefined;
|
|
463
|
-
skip?: number | undefined;
|
|
464
489
|
} | undefined;
|
|
465
|
-
errorPolicy?: "
|
|
466
|
-
batchSize?: number | undefined;
|
|
490
|
+
errorPolicy?: "abort" | "retry" | "skip" | undefined;
|
|
467
491
|
}>;
|
|
468
492
|
export type Mapping = z.infer<typeof MappingSchema>;
|
|
469
493
|
export type FieldMapping = z.infer<typeof FieldMappingSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapping.zod.d.ts","sourceRoot":"","sources":["../../src/data/mapping.zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"mapping.zod.d.ts","sourceRoot":"","sources":["../../src/data/mapping.zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;GAGG;AACH,eAAO,MAAM,aAAa,iFAQxB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,kBAAkB;IAC7B,oBAAoB;;IAGpB,mBAAmB;;IAGnB,qBAAqB;;IAGrB,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBlC,CAAC;AAEH;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,aAAa;IACxB,eAAe;;;IAIf,YAAY;;;IAIZ,sBAAsB;;QArDtB,oBAAoB;;QAGpB,mBAAmB;;QAGnB,qBAAqB;;QAGrB,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA+ClC,mBAAmB;;;IAInB,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAGjC,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGrB,CAAC;AAEH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AACpD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
package/dist/data/mapping.zod.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MappingSchema = exports.FieldMappingSchema = exports.TransformType = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const identifiers_zod_1 = require("../shared/identifiers.zod");
|
|
5
6
|
const query_zod_1 = require("./query.zod");
|
|
6
7
|
/**
|
|
7
8
|
* Transformation Logic
|
|
@@ -42,12 +43,24 @@ exports.FieldMappingSchema = zod_1.z.object({
|
|
|
42
43
|
}).optional()
|
|
43
44
|
});
|
|
44
45
|
/**
|
|
45
|
-
*
|
|
46
|
-
*
|
|
46
|
+
* Data Mapping Schema
|
|
47
|
+
* Defines a reusable data mapping configuration for ETL operations.
|
|
48
|
+
*
|
|
49
|
+
* **NAMING CONVENTION:**
|
|
50
|
+
* Mapping names are machine identifiers and must be lowercase snake_case.
|
|
51
|
+
*
|
|
52
|
+
* @example Good mapping names
|
|
53
|
+
* - 'salesforce_to_crm'
|
|
54
|
+
* - 'csv_import_contacts'
|
|
55
|
+
* - 'api_sync_orders'
|
|
56
|
+
*
|
|
57
|
+
* @example Bad mapping names (will be rejected)
|
|
58
|
+
* - 'SalesforceToCRM' (PascalCase)
|
|
59
|
+
* - 'CSV Import' (spaces)
|
|
47
60
|
*/
|
|
48
61
|
exports.MappingSchema = zod_1.z.object({
|
|
49
62
|
/** Identity */
|
|
50
|
-
name:
|
|
63
|
+
name: identifiers_zod_1.SnakeCaseIdentifierSchema.describe('Mapping unique name (lowercase snake_case)'),
|
|
51
64
|
label: zod_1.z.string().optional(),
|
|
52
65
|
/** Scope */
|
|
53
66
|
sourceFormat: zod_1.z.enum(['csv', 'json', 'xml', 'sql']).default('csv'),
|