@objectstack/spec 0.3.2 → 0.3.3
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 +65 -65
- package/dist/ai/cost.zod.d.ts +125 -125
- 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 +94 -94
- package/dist/ai/nlq.zod.d.ts +70 -70
- package/dist/ai/{workflow-automation.zod.d.ts → orchestration.zod.d.ts} +50 -49
- 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 +31 -31
- package/dist/ai/rag-pipeline.zod.d.ts +86 -86
- package/dist/api/contract.zod.d.ts +121 -105
- 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 +4 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +4 -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} +191 -191
- 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 +7 -0
- package/dist/auth/index.d.ts.map +1 -0
- package/dist/auth/index.js +22 -0
- package/dist/{system → auth}/organization.zod.d.ts +5 -5
- 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/auth/role.zod.d.ts.map +1 -0
- package/dist/{data → automation}/flow.zod.d.ts +34 -16
- 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 +4 -0
- package/dist/automation/index.d.ts.map +1 -0
- package/dist/automation/index.js +19 -0
- package/dist/{system → automation}/webhook.zod.d.ts +2 -2
- package/dist/automation/webhook.zod.d.ts.map +1 -0
- package/dist/automation/workflow.zod.d.ts +2045 -0
- package/dist/automation/workflow.zod.d.ts.map +1 -0
- package/dist/{data → automation}/workflow.zod.js +24 -1
- package/dist/data/dataset.zod.d.ts +2 -2
- package/dist/data/field.zod.d.ts +443 -213
- package/dist/data/field.zod.d.ts.map +1 -1
- package/dist/data/field.zod.js +29 -1
- 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 +103 -91
- package/dist/data/mapping.zod.d.ts.map +1 -1
- package/dist/data/object.zod.d.ts +387 -127
- 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/{system → driver}/datasource.zod.d.ts +42 -8
- package/dist/driver/datasource.zod.d.ts.map +1 -0
- package/dist/{system → driver}/datasource.zod.js +17 -13
- package/dist/driver/driver.zod.d.ts +3392 -0
- package/dist/driver/driver.zod.d.ts.map +1 -0
- package/dist/{system → driver}/driver.zod.js +99 -0
- package/dist/driver/index.d.ts +5 -0
- package/dist/driver/index.d.ts.map +1 -0
- package/dist/driver/index.js +20 -0
- package/dist/driver/mongo.zod.d.ts +107 -0
- package/dist/driver/mongo.zod.d.ts.map +1 -0
- package/dist/driver/mongo.zod.js +80 -0
- package/dist/driver/postgres.zod.d.ts +134 -0
- package/dist/driver/postgres.zod.d.ts.map +1 -0
- package/dist/driver/postgres.zod.js +88 -0
- package/dist/hub/composer.zod.d.ts +2768 -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 +11 -7
- 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 +12 -5
- package/dist/kernel/context.zod.d.ts +56 -0
- package/dist/kernel/context.zod.d.ts.map +1 -0
- package/dist/kernel/context.zod.js +43 -0
- package/dist/kernel/index.d.ts +12 -0
- package/dist/kernel/index.d.ts.map +1 -0
- package/dist/kernel/index.js +27 -0
- package/dist/kernel/logger.zod.d.ts +111 -0
- package/dist/kernel/logger.zod.d.ts.map +1 -0
- package/dist/kernel/logger.zod.js +75 -0
- package/dist/kernel/manifest.zod.d.ts +2153 -0
- package/dist/kernel/manifest.zod.d.ts.map +1 -0
- package/dist/{system → kernel}/manifest.zod.js +40 -0
- package/dist/{system → kernel}/plugin.zod.d.ts +598 -318
- package/dist/kernel/plugin.zod.d.ts.map +1 -0
- package/dist/{system → kernel}/plugin.zod.js +13 -0
- package/dist/kernel/scoped-storage.zod.d.ts +81 -0
- package/dist/kernel/scoped-storage.zod.d.ts.map +1 -0
- package/dist/kernel/scoped-storage.zod.js +66 -0
- package/dist/permission/index.d.ts +12 -0
- package/dist/permission/index.d.ts.map +1 -0
- package/dist/permission/index.js +27 -0
- package/dist/{data → permission}/permission.zod.d.ts +34 -3
- package/dist/permission/permission.zod.d.ts.map +1 -0
- package/dist/{data → permission}/permission.zod.js +10 -1
- 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/permission/territory.zod.d.ts.map +1 -0
- package/dist/system/audit.zod.d.ts +52 -52
- package/dist/system/events.zod.d.ts +17 -17
- package/dist/system/index.d.ts +1 -20
- package/dist/system/index.d.ts.map +1 -1
- package/dist/system/index.js +3 -20
- package/dist/system/job.zod.d.ts +13 -13
- package/dist/ui/action.zod.d.ts +13 -13
- package/dist/ui/app.zod.d.ts +11 -11
- package/dist/ui/dashboard.zod.d.ts +12 -12
- package/dist/ui/page.zod.d.ts +2 -2
- package/dist/ui/report.zod.d.ts +7 -7
- package/dist/ui/theme.zod.d.ts +42 -42
- package/dist/ui/view.zod.d.ts +55 -55
- package/dist/ui/widget.zod.d.ts +61 -28
- package/dist/ui/widget.zod.d.ts.map +1 -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/RouteCategory.json +17 -0
- package/json-schema/api/RouteDefinition.json +77 -0
- package/json-schema/api/RouterConfig.json +117 -0
- package/json-schema/{data → automation}/Flow.json +31 -1
- package/json-schema/{data → automation}/FlowEdge.json +9 -0
- package/json-schema/{data/WorkflowRule.json → automation/TimeTrigger.json} +35 -25
- package/json-schema/automation/WorkflowRule.json +1031 -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 +30 -0
- package/json-schema/data/FieldOperators.json +78 -0
- package/json-schema/data/FieldReference.json +19 -0
- 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/{TriggerAction.json → JoinStrategy.json} +6 -5
- package/json-schema/data/NormalizedFilter.json +234 -0
- package/json-schema/data/Object.json +1580 -28
- 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/StateMachineValidation.json +33 -2
- package/json-schema/data/UniquenessValidation.json +33 -2
- package/json-schema/data/ValidationRule.json +693 -46
- package/json-schema/{system → driver}/Datasource.json +35 -0
- package/json-schema/{system → driver}/DriverCapabilities.json +10 -0
- package/json-schema/{system → driver}/DriverInterface.json +10 -0
- package/json-schema/{system → driver}/DriverOptions.json +11 -0
- package/json-schema/driver/MongoConfig.json +82 -0
- package/json-schema/driver/PostgresConfig.json +98 -0
- package/json-schema/hub/BillOfMaterials.json +70 -0
- package/json-schema/hub/ComposerRequest.json +86 -0
- package/json-schema/hub/ComposerResponse.json +2645 -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/kernel/FileMetadata.json +43 -0
- package/json-schema/kernel/KernelContext.json +62 -0
- package/json-schema/kernel/LogEntry.json +63 -0
- package/json-schema/kernel/LogFormat.json +15 -0
- package/json-schema/kernel/LogLevel.json +17 -0
- package/json-schema/kernel/LoggerConfig.json +70 -0
- package/json-schema/kernel/Manifest.json +2557 -0
- package/json-schema/{system → kernel}/PluginContext.json +8 -1
- package/json-schema/kernel/RuntimeMode.json +16 -0
- package/json-schema/kernel/ScopedStorageConfig.json +54 -0
- package/json-schema/kernel/StorageAdapterType.json +17 -0
- package/json-schema/kernel/StorageScope.json +18 -0
- 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 +15 -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/ui/FieldWidgetProps.json +30 -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/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/datasource.zod.d.ts.map +0 -1
- package/dist/system/discovery.zod.d.ts.map +0 -1
- package/dist/system/driver.zod.d.ts +0 -1631
- package/dist/system/driver.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/manifest.zod.d.ts +0 -397
- package/dist/system/manifest.zod.d.ts.map +0 -1
- package/dist/system/organization.zod.d.ts.map +0 -1
- package/dist/system/plugin.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/LogicOperator.json +0 -14
- 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/json-schema/data/TriggerTiming.json +0 -13
- package/json-schema/system/Manifest.json +0 -315
- /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/dist/{system → auth}/role.zod.d.ts +0 -0
- /package/dist/{system → auth}/role.zod.js +0 -0
- /package/dist/{system → automation}/webhook.zod.js +0 -0
- /package/dist/{system → permission}/territory.zod.d.ts +0 -0
- /package/dist/{system → permission}/territory.zod.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}/Role.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/{system → automation}/Webhook.json +0 -0
- /package/json-schema/{system → automation}/WebhookReceiver.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 → driver}/DatasourceCapabilities.json +0 -0
- /package/json-schema/{system → driver}/DriverDefinition.json +0 -0
- /package/json-schema/{system → driver}/DriverType.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/{system → kernel}/I18nContext.json +0 -0
- /package/json-schema/{system → kernel}/Logger.json +0 -0
- /package/json-schema/{system → kernel}/ObjectQLClient.json +0 -0
- /package/json-schema/{system → kernel}/Plugin.json +0 -0
- /package/json-schema/{system → kernel}/PluginLifecycle.json +0 -0
- /package/json-schema/{system → kernel}/Router.json +0 -0
- /package/json-schema/{system → kernel}/Scheduler.json +0 -0
- /package/json-schema/{system → kernel}/ScopedStorage.json +0 -0
- /package/json-schema/{system → kernel}/SystemAPI.json +0 -0
- /package/json-schema/{data → permission}/FieldPermission.json +0 -0
- /package/json-schema/{system → permission}/Territory.json +0 -0
- /package/json-schema/{system → permission}/TerritoryModel.json +0 -0
- /package/json-schema/{system → permission}/TerritoryType.json +0 -0
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HookContextSchema = exports.HookSchema = exports.HookEvent = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
/**
|
|
6
|
+
* Hook Lifecycle Events
|
|
7
|
+
* Defines the interception points in the ObjectQL execution pipeline.
|
|
8
|
+
*/
|
|
9
|
+
exports.HookEvent = zod_1.z.enum([
|
|
10
|
+
// Read Operations
|
|
11
|
+
'beforeFind', 'afterFind',
|
|
12
|
+
'beforeFindOne', 'afterFindOne',
|
|
13
|
+
'beforeCount', 'afterCount',
|
|
14
|
+
'beforeAggregate', 'afterAggregate',
|
|
15
|
+
// Write Operations
|
|
16
|
+
'beforeInsert', 'afterInsert',
|
|
17
|
+
'beforeUpdate', 'afterUpdate',
|
|
18
|
+
'beforeDelete', 'afterDelete',
|
|
19
|
+
// Bulk Operations (Query-based)
|
|
20
|
+
'beforeUpdateMany', 'afterUpdateMany',
|
|
21
|
+
'beforeDeleteMany', 'afterDeleteMany',
|
|
22
|
+
]);
|
|
23
|
+
/**
|
|
24
|
+
* Hook Definition Schema
|
|
25
|
+
*
|
|
26
|
+
* Hooks serve as the "Logic Layer" in ObjectStack, allowing developers to
|
|
27
|
+
* inject custom code during the data access lifecycle.
|
|
28
|
+
*
|
|
29
|
+
* Use cases:
|
|
30
|
+
* - Data Enrichment (Default values, Calculated fields)
|
|
31
|
+
* - Validation (Complex business rules)
|
|
32
|
+
* - Side Effects (Sending emails, Syncing to external systems)
|
|
33
|
+
* - Security (Filtering data based on context)
|
|
34
|
+
*/
|
|
35
|
+
exports.HookSchema = zod_1.z.object({
|
|
36
|
+
/**
|
|
37
|
+
* Unique identifier for the hook
|
|
38
|
+
* Required for debugging and overriding.
|
|
39
|
+
*/
|
|
40
|
+
name: zod_1.z.string().regex(/^[a-z_][a-z0-9_]*$/).describe('Hook unique name (snake_case)'),
|
|
41
|
+
/**
|
|
42
|
+
* Human readable label
|
|
43
|
+
*/
|
|
44
|
+
label: zod_1.z.string().optional().describe('Description of what this hook does'),
|
|
45
|
+
/**
|
|
46
|
+
* Target Object(s)
|
|
47
|
+
* can be:
|
|
48
|
+
* - Single object: "account"
|
|
49
|
+
* - List of objects: ["account", "contact"]
|
|
50
|
+
* - Wildcard: "*" (All objects)
|
|
51
|
+
*/
|
|
52
|
+
object: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).describe('Target object(s)'),
|
|
53
|
+
/**
|
|
54
|
+
* Events to subscribe to
|
|
55
|
+
* Combinations of timing (before/after) and action (find/insert/update/delete/etc)
|
|
56
|
+
*/
|
|
57
|
+
events: zod_1.z.array(exports.HookEvent).describe('Lifecycle events'),
|
|
58
|
+
/**
|
|
59
|
+
* Handler Logic
|
|
60
|
+
* Reference to a registered function in the plugin system OR a direct function (runtime only).
|
|
61
|
+
*/
|
|
62
|
+
handler: zod_1.z.union([zod_1.z.string(), zod_1.z.any()]).optional().describe('Function handler name or direct function'),
|
|
63
|
+
/**
|
|
64
|
+
* Execution Order
|
|
65
|
+
* Lower numbers run first.
|
|
66
|
+
* - System Hooks: 0-99
|
|
67
|
+
* - App Hooks: 100-999
|
|
68
|
+
* - User Hooks: 1000+
|
|
69
|
+
*/
|
|
70
|
+
priority: zod_1.z.number().default(100).describe('Execution priority'),
|
|
71
|
+
/**
|
|
72
|
+
* Async / Background Execution
|
|
73
|
+
* If true, the hook runs in the background and does not block the transaction.
|
|
74
|
+
* Only applicable for 'after*' events.
|
|
75
|
+
* Default: false (Blocking)
|
|
76
|
+
*/
|
|
77
|
+
async: zod_1.z.boolean().default(false).describe('Run specifically as fire-and-forget'),
|
|
78
|
+
/**
|
|
79
|
+
* Error Policy
|
|
80
|
+
* What to do if the hook throws an exception?
|
|
81
|
+
* - abort: Rollback transaction (if blocking)
|
|
82
|
+
* - log: Log error and continue
|
|
83
|
+
*/
|
|
84
|
+
onError: zod_1.z.enum(['abort', 'log']).default('abort').describe('Error handling strategy'),
|
|
85
|
+
});
|
|
86
|
+
/**
|
|
87
|
+
* Hook Runtime Context
|
|
88
|
+
* Defines what is available to the hook handler during execution.
|
|
89
|
+
*
|
|
90
|
+
* Best Practices:
|
|
91
|
+
* - **Immutability**: `object`, `event`, `id` are immutable.
|
|
92
|
+
* - **Mutability**: `input` and `result` are mutable to allow transformation.
|
|
93
|
+
* - **Encapsulation**: `session` isolates auth info; `transaction` ensures atomicity.
|
|
94
|
+
*/
|
|
95
|
+
exports.HookContextSchema = zod_1.z.object({
|
|
96
|
+
/** Tracing ID */
|
|
97
|
+
id: zod_1.z.string().optional().describe('Unique execution ID for tracing'),
|
|
98
|
+
/** Target Object Name */
|
|
99
|
+
object: zod_1.z.string(),
|
|
100
|
+
/** Current Lifecycle Event */
|
|
101
|
+
event: exports.HookEvent,
|
|
102
|
+
/**
|
|
103
|
+
* Input Parameters (Mutable)
|
|
104
|
+
* Modify this to change the behavior of the operation.
|
|
105
|
+
*
|
|
106
|
+
* - find: { query: QueryAST, options: DriverOptions }
|
|
107
|
+
* - insert: { doc: Record, options: DriverOptions }
|
|
108
|
+
* - update: { id: ID, doc: Record, options: DriverOptions }
|
|
109
|
+
* - delete: { id: ID, options: DriverOptions }
|
|
110
|
+
* - updateMany: { query: QueryAST, doc: Record, options: DriverOptions }
|
|
111
|
+
* - deleteMany: { query: QueryAST, options: DriverOptions }
|
|
112
|
+
*/
|
|
113
|
+
input: zod_1.z.record(zod_1.z.any()).describe('Mutable input parameters'),
|
|
114
|
+
/**
|
|
115
|
+
* Operation Result (Mutable)
|
|
116
|
+
* Available in 'after*' events. Modify this to transform the output.
|
|
117
|
+
*/
|
|
118
|
+
result: zod_1.z.any().optional().describe('Operation result (After hooks only)'),
|
|
119
|
+
/**
|
|
120
|
+
* Data Snapshot
|
|
121
|
+
* The state of the record BEFORE the operation (for update/delete).
|
|
122
|
+
*/
|
|
123
|
+
previous: zod_1.z.record(zod_1.z.any()).optional().describe('Record state before operation'),
|
|
124
|
+
/**
|
|
125
|
+
* Execution Session
|
|
126
|
+
* Contains authentication and tenancy information.
|
|
127
|
+
*/
|
|
128
|
+
session: zod_1.z.object({
|
|
129
|
+
userId: zod_1.z.string().optional(),
|
|
130
|
+
tenantId: zod_1.z.string().optional(),
|
|
131
|
+
roles: zod_1.z.array(zod_1.z.string()).optional(),
|
|
132
|
+
accessToken: zod_1.z.string().optional(),
|
|
133
|
+
}).optional().describe('Current session context'),
|
|
134
|
+
/**
|
|
135
|
+
* Transaction Handle
|
|
136
|
+
* If the operation is part of a transaction, use this handle for side-effects.
|
|
137
|
+
*/
|
|
138
|
+
transaction: zod_1.z.any().optional().describe('Database transaction handle'),
|
|
139
|
+
/**
|
|
140
|
+
* Engine Access
|
|
141
|
+
* Reference to the ObjectQL engine for performing side effects.
|
|
142
|
+
*/
|
|
143
|
+
ql: zod_1.z.any().describe('ObjectQL Engine Reference'),
|
|
144
|
+
});
|
package/dist/data/index.d.ts
CHANGED
|
@@ -1,21 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* Core Business Logic & Data Modeling
|
|
5
|
-
* - Object, Field, Validation
|
|
6
|
-
* - Query (AST), Mapping (ETL)
|
|
7
|
-
* - Permission, Sharing, Flow
|
|
8
|
-
*/
|
|
9
|
-
export * from './field.zod';
|
|
1
|
+
export * from './query.zod';
|
|
2
|
+
export * from './filter.zod';
|
|
10
3
|
export * from './object.zod';
|
|
4
|
+
export * from './field.zod';
|
|
11
5
|
export * from './validation.zod';
|
|
12
|
-
export * from './
|
|
13
|
-
export * from './sharing.zod';
|
|
14
|
-
export * from './workflow.zod';
|
|
15
|
-
export * from './flow.zod';
|
|
6
|
+
export * from './hook.zod';
|
|
16
7
|
export * from './dataset.zod';
|
|
17
|
-
export * from './query.zod';
|
|
18
|
-
export * from './filter.zod';
|
|
19
|
-
export * from './mapping.zod';
|
|
20
|
-
export * from './trigger.zod';
|
|
21
8
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/data/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/data/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/data/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAE3B,cAAc,eAAe,CAAC"}
|
package/dist/data/index.js
CHANGED
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Data Protocol Exports
|
|
4
|
-
*
|
|
5
|
-
* Core Business Logic & Data Modeling
|
|
6
|
-
* - Object, Field, Validation
|
|
7
|
-
* - Query (AST), Mapping (ETL)
|
|
8
|
-
* - Permission, Sharing, Flow
|
|
9
|
-
*/
|
|
10
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
11
3
|
if (k2 === undefined) k2 = k;
|
|
12
4
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -22,15 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
22
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
23
15
|
};
|
|
24
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./query.zod"), exports);
|
|
18
|
+
__exportStar(require("./filter.zod"), exports);
|
|
26
19
|
__exportStar(require("./object.zod"), exports);
|
|
20
|
+
__exportStar(require("./field.zod"), exports);
|
|
27
21
|
__exportStar(require("./validation.zod"), exports);
|
|
28
|
-
__exportStar(require("./
|
|
29
|
-
__exportStar(require("./sharing.zod"), exports);
|
|
30
|
-
__exportStar(require("./workflow.zod"), exports);
|
|
31
|
-
__exportStar(require("./flow.zod"), exports);
|
|
22
|
+
__exportStar(require("./hook.zod"), exports);
|
|
32
23
|
__exportStar(require("./dataset.zod"), exports);
|
|
33
|
-
__exportStar(require("./query.zod"), exports);
|
|
34
|
-
__exportStar(require("./filter.zod"), exports);
|
|
35
|
-
__exportStar(require("./mapping.zod"), exports);
|
|
36
|
-
__exportStar(require("./trigger.zod"), exports);
|
|
@@ -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" | "javascript" | "constant" | "split";
|
|
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,7 +65,7 @@ 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" | "javascript" | "constant" | "split" | undefined;
|
|
69
69
|
}>;
|
|
70
70
|
/**
|
|
71
71
|
* ETL Mapping Schema
|
|
@@ -113,9 +113,9 @@ export declare const MappingSchema: z.ZodObject<{
|
|
|
113
113
|
separator?: string | undefined;
|
|
114
114
|
}>>;
|
|
115
115
|
}, "strip", z.ZodTypeAny, {
|
|
116
|
-
source: string | string[];
|
|
117
116
|
target: string | string[];
|
|
118
|
-
|
|
117
|
+
source: string | string[];
|
|
118
|
+
transform: "join" | "map" | "lookup" | "none" | "javascript" | "constant" | "split";
|
|
119
119
|
params?: {
|
|
120
120
|
object?: string | undefined;
|
|
121
121
|
value?: any;
|
|
@@ -126,8 +126,8 @@ export declare const MappingSchema: z.ZodObject<{
|
|
|
126
126
|
separator?: string | undefined;
|
|
127
127
|
} | undefined;
|
|
128
128
|
}, {
|
|
129
|
-
source: string | string[];
|
|
130
129
|
target: string | string[];
|
|
130
|
+
source: string | string[];
|
|
131
131
|
params?: {
|
|
132
132
|
object?: string | undefined;
|
|
133
133
|
value?: any;
|
|
@@ -137,7 +137,7 @@ export declare const MappingSchema: z.ZodObject<{
|
|
|
137
137
|
valueMap?: Record<string, any> | undefined;
|
|
138
138
|
separator?: string | undefined;
|
|
139
139
|
} | undefined;
|
|
140
|
-
transform?: "
|
|
140
|
+
transform?: "join" | "map" | "lookup" | "none" | "javascript" | "constant" | "split" | undefined;
|
|
141
141
|
}>, "many">;
|
|
142
142
|
/** Upsert Logic */
|
|
143
143
|
mode: z.ZodDefault<z.ZodEnum<["insert", "update", "upsert"]>>;
|
|
@@ -146,22 +146,42 @@ export declare const MappingSchema: z.ZodObject<{
|
|
|
146
146
|
extractQuery: z.ZodOptional<z.ZodObject<{
|
|
147
147
|
object: z.ZodString;
|
|
148
148
|
fields: z.ZodOptional<z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">>;
|
|
149
|
+
where: z.ZodOptional<z.ZodType<import("./filter.zod").FilterCondition, z.ZodTypeDef, import("./filter.zod").FilterCondition>>;
|
|
150
|
+
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
151
|
+
field: z.ZodString;
|
|
152
|
+
order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
153
|
+
}, "strip", z.ZodTypeAny, {
|
|
154
|
+
field: string;
|
|
155
|
+
order: "asc" | "desc";
|
|
156
|
+
}, {
|
|
157
|
+
field: string;
|
|
158
|
+
order?: "asc" | "desc" | undefined;
|
|
159
|
+
}>, "many">>;
|
|
160
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
161
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
162
|
+
cursor: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
163
|
+
joins: z.ZodOptional<z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">>;
|
|
149
164
|
aggregations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
150
165
|
function: z.ZodEnum<["count", "sum", "avg", "min", "max", "count_distinct", "array_agg", "string_agg"]>;
|
|
151
166
|
field: z.ZodOptional<z.ZodString>;
|
|
152
167
|
alias: z.ZodString;
|
|
153
168
|
distinct: z.ZodOptional<z.ZodBoolean>;
|
|
169
|
+
filter: z.ZodOptional<z.ZodType<import("./filter.zod").FilterCondition, z.ZodTypeDef, import("./filter.zod").FilterCondition>>;
|
|
154
170
|
}, "strip", z.ZodTypeAny, {
|
|
155
|
-
function: "
|
|
171
|
+
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
156
172
|
alias: string;
|
|
173
|
+
filter?: import("./filter.zod").FilterCondition | undefined;
|
|
157
174
|
field?: string | undefined;
|
|
158
175
|
distinct?: boolean | undefined;
|
|
159
176
|
}, {
|
|
160
|
-
function: "
|
|
177
|
+
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
161
178
|
alias: string;
|
|
179
|
+
filter?: import("./filter.zod").FilterCondition | undefined;
|
|
162
180
|
field?: string | undefined;
|
|
163
181
|
distinct?: boolean | undefined;
|
|
164
182
|
}>, "many">>;
|
|
183
|
+
groupBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
184
|
+
having: z.ZodOptional<z.ZodType<import("./filter.zod").FilterCondition, z.ZodTypeDef, import("./filter.zod").FilterCondition>>;
|
|
165
185
|
windowFunctions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
166
186
|
function: z.ZodEnum<["row_number", "rank", "dense_rank", "percent_rank", "lag", "lead", "first_value", "last_value", "sum", "avg", "count", "min", "max"]>;
|
|
167
187
|
field: z.ZodOptional<z.ZodString>;
|
|
@@ -192,22 +212,22 @@ export declare const MappingSchema: z.ZodObject<{
|
|
|
192
212
|
end?: string | undefined;
|
|
193
213
|
}>>;
|
|
194
214
|
}, "strip", z.ZodTypeAny, {
|
|
195
|
-
partitionBy?: string[] | undefined;
|
|
196
215
|
orderBy?: {
|
|
197
216
|
field: string;
|
|
198
217
|
order: "asc" | "desc";
|
|
199
218
|
}[] | undefined;
|
|
219
|
+
partitionBy?: string[] | undefined;
|
|
200
220
|
frame?: {
|
|
201
221
|
type?: "rows" | "range" | undefined;
|
|
202
222
|
start?: string | undefined;
|
|
203
223
|
end?: string | undefined;
|
|
204
224
|
} | undefined;
|
|
205
225
|
}, {
|
|
206
|
-
partitionBy?: string[] | undefined;
|
|
207
226
|
orderBy?: {
|
|
208
227
|
field: string;
|
|
209
228
|
order?: "asc" | "desc" | undefined;
|
|
210
229
|
}[] | undefined;
|
|
230
|
+
partitionBy?: string[] | undefined;
|
|
211
231
|
frame?: {
|
|
212
232
|
type?: "rows" | "range" | undefined;
|
|
213
233
|
start?: string | undefined;
|
|
@@ -215,14 +235,14 @@ export declare const MappingSchema: z.ZodObject<{
|
|
|
215
235
|
} | undefined;
|
|
216
236
|
}>;
|
|
217
237
|
}, "strip", z.ZodTypeAny, {
|
|
218
|
-
function: "
|
|
238
|
+
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
219
239
|
alias: string;
|
|
220
240
|
over: {
|
|
221
|
-
partitionBy?: string[] | undefined;
|
|
222
241
|
orderBy?: {
|
|
223
242
|
field: string;
|
|
224
243
|
order: "asc" | "desc";
|
|
225
244
|
}[] | undefined;
|
|
245
|
+
partitionBy?: string[] | undefined;
|
|
226
246
|
frame?: {
|
|
227
247
|
type?: "rows" | "range" | undefined;
|
|
228
248
|
start?: string | undefined;
|
|
@@ -231,14 +251,14 @@ export declare const MappingSchema: z.ZodObject<{
|
|
|
231
251
|
};
|
|
232
252
|
field?: string | undefined;
|
|
233
253
|
}, {
|
|
234
|
-
function: "
|
|
254
|
+
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
235
255
|
alias: string;
|
|
236
256
|
over: {
|
|
237
|
-
partitionBy?: string[] | undefined;
|
|
238
257
|
orderBy?: {
|
|
239
258
|
field: string;
|
|
240
259
|
order?: "asc" | "desc" | undefined;
|
|
241
260
|
}[] | undefined;
|
|
261
|
+
partitionBy?: string[] | undefined;
|
|
242
262
|
frame?: {
|
|
243
263
|
type?: "rows" | "range" | undefined;
|
|
244
264
|
start?: string | undefined;
|
|
@@ -247,46 +267,38 @@ export declare const MappingSchema: z.ZodObject<{
|
|
|
247
267
|
};
|
|
248
268
|
field?: string | undefined;
|
|
249
269
|
}>, "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
270
|
distinct: z.ZodOptional<z.ZodBoolean>;
|
|
267
271
|
}, "strip", z.ZodTypeAny, {
|
|
268
272
|
object: string;
|
|
269
|
-
|
|
273
|
+
where?: import("./filter.zod").FilterCondition | undefined;
|
|
274
|
+
distinct?: boolean | undefined;
|
|
275
|
+
fields?: any[] | undefined;
|
|
276
|
+
orderBy?: {
|
|
270
277
|
field: string;
|
|
271
278
|
order: "asc" | "desc";
|
|
272
279
|
}[] | undefined;
|
|
273
|
-
|
|
274
|
-
|
|
280
|
+
limit?: number | undefined;
|
|
281
|
+
offset?: number | undefined;
|
|
282
|
+
cursor?: Record<string, any> | undefined;
|
|
283
|
+
joins?: any[] | undefined;
|
|
275
284
|
aggregations?: {
|
|
276
|
-
function: "
|
|
285
|
+
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
277
286
|
alias: string;
|
|
287
|
+
filter?: import("./filter.zod").FilterCondition | undefined;
|
|
278
288
|
field?: string | undefined;
|
|
279
289
|
distinct?: boolean | undefined;
|
|
280
290
|
}[] | undefined;
|
|
291
|
+
groupBy?: string[] | undefined;
|
|
292
|
+
having?: import("./filter.zod").FilterCondition | undefined;
|
|
281
293
|
windowFunctions?: {
|
|
282
|
-
function: "
|
|
294
|
+
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
283
295
|
alias: string;
|
|
284
296
|
over: {
|
|
285
|
-
partitionBy?: string[] | undefined;
|
|
286
297
|
orderBy?: {
|
|
287
298
|
field: string;
|
|
288
299
|
order: "asc" | "desc";
|
|
289
300
|
}[] | undefined;
|
|
301
|
+
partitionBy?: string[] | undefined;
|
|
290
302
|
frame?: {
|
|
291
303
|
type?: "rows" | "range" | undefined;
|
|
292
304
|
start?: string | undefined;
|
|
@@ -295,35 +307,37 @@ export declare const MappingSchema: z.ZodObject<{
|
|
|
295
307
|
};
|
|
296
308
|
field?: string | undefined;
|
|
297
309
|
}[] | undefined;
|
|
298
|
-
filters?: any;
|
|
299
|
-
joins?: any[] | undefined;
|
|
300
|
-
groupBy?: string[] | undefined;
|
|
301
|
-
having?: any;
|
|
302
|
-
top?: number | undefined;
|
|
303
|
-
skip?: number | undefined;
|
|
304
310
|
}, {
|
|
305
311
|
object: string;
|
|
306
|
-
|
|
312
|
+
where?: import("./filter.zod").FilterCondition | undefined;
|
|
313
|
+
distinct?: boolean | undefined;
|
|
314
|
+
fields?: any[] | undefined;
|
|
315
|
+
orderBy?: {
|
|
307
316
|
field: string;
|
|
308
317
|
order?: "asc" | "desc" | undefined;
|
|
309
318
|
}[] | undefined;
|
|
310
|
-
|
|
311
|
-
|
|
319
|
+
limit?: number | undefined;
|
|
320
|
+
offset?: number | undefined;
|
|
321
|
+
cursor?: Record<string, any> | undefined;
|
|
322
|
+
joins?: any[] | undefined;
|
|
312
323
|
aggregations?: {
|
|
313
|
-
function: "
|
|
324
|
+
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
314
325
|
alias: string;
|
|
326
|
+
filter?: import("./filter.zod").FilterCondition | undefined;
|
|
315
327
|
field?: string | undefined;
|
|
316
328
|
distinct?: boolean | undefined;
|
|
317
329
|
}[] | undefined;
|
|
330
|
+
groupBy?: string[] | undefined;
|
|
331
|
+
having?: import("./filter.zod").FilterCondition | undefined;
|
|
318
332
|
windowFunctions?: {
|
|
319
|
-
function: "
|
|
333
|
+
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
320
334
|
alias: string;
|
|
321
335
|
over: {
|
|
322
|
-
partitionBy?: string[] | undefined;
|
|
323
336
|
orderBy?: {
|
|
324
337
|
field: string;
|
|
325
338
|
order?: "asc" | "desc" | undefined;
|
|
326
339
|
}[] | undefined;
|
|
340
|
+
partitionBy?: string[] | undefined;
|
|
327
341
|
frame?: {
|
|
328
342
|
type?: "rows" | "range" | undefined;
|
|
329
343
|
start?: string | undefined;
|
|
@@ -332,25 +346,20 @@ export declare const MappingSchema: z.ZodObject<{
|
|
|
332
346
|
};
|
|
333
347
|
field?: string | undefined;
|
|
334
348
|
}[] | undefined;
|
|
335
|
-
filters?: any;
|
|
336
|
-
joins?: any[] | undefined;
|
|
337
|
-
groupBy?: string[] | undefined;
|
|
338
|
-
having?: any;
|
|
339
|
-
top?: number | undefined;
|
|
340
|
-
skip?: number | undefined;
|
|
341
349
|
}>>;
|
|
342
350
|
/** Error Handling */
|
|
343
351
|
errorPolicy: z.ZodDefault<z.ZodEnum<["skip", "abort", "retry"]>>;
|
|
344
352
|
batchSize: z.ZodDefault<z.ZodNumber>;
|
|
345
353
|
}, "strip", z.ZodTypeAny, {
|
|
346
354
|
name: string;
|
|
347
|
-
mode: "
|
|
348
|
-
|
|
355
|
+
mode: "insert" | "update" | "upsert";
|
|
356
|
+
batchSize: number;
|
|
349
357
|
targetObject: string;
|
|
358
|
+
sourceFormat: "json" | "csv" | "xml" | "sql";
|
|
350
359
|
fieldMapping: {
|
|
351
|
-
source: string | string[];
|
|
352
360
|
target: string | string[];
|
|
353
|
-
|
|
361
|
+
source: string | string[];
|
|
362
|
+
transform: "join" | "map" | "lookup" | "none" | "javascript" | "constant" | "split";
|
|
354
363
|
params?: {
|
|
355
364
|
object?: string | undefined;
|
|
356
365
|
value?: any;
|
|
@@ -361,33 +370,40 @@ export declare const MappingSchema: z.ZodObject<{
|
|
|
361
370
|
separator?: string | undefined;
|
|
362
371
|
} | undefined;
|
|
363
372
|
}[];
|
|
364
|
-
errorPolicy: "
|
|
365
|
-
batchSize: number;
|
|
373
|
+
errorPolicy: "abort" | "skip" | "retry";
|
|
366
374
|
label?: string | undefined;
|
|
367
375
|
upsertKey?: string[] | undefined;
|
|
368
376
|
extractQuery?: {
|
|
369
377
|
object: string;
|
|
370
|
-
|
|
378
|
+
where?: import("./filter.zod").FilterCondition | undefined;
|
|
379
|
+
distinct?: boolean | undefined;
|
|
380
|
+
fields?: any[] | undefined;
|
|
381
|
+
orderBy?: {
|
|
371
382
|
field: string;
|
|
372
383
|
order: "asc" | "desc";
|
|
373
384
|
}[] | undefined;
|
|
374
|
-
|
|
375
|
-
|
|
385
|
+
limit?: number | undefined;
|
|
386
|
+
offset?: number | undefined;
|
|
387
|
+
cursor?: Record<string, any> | undefined;
|
|
388
|
+
joins?: any[] | undefined;
|
|
376
389
|
aggregations?: {
|
|
377
|
-
function: "
|
|
390
|
+
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
378
391
|
alias: string;
|
|
392
|
+
filter?: import("./filter.zod").FilterCondition | undefined;
|
|
379
393
|
field?: string | undefined;
|
|
380
394
|
distinct?: boolean | undefined;
|
|
381
395
|
}[] | undefined;
|
|
396
|
+
groupBy?: string[] | undefined;
|
|
397
|
+
having?: import("./filter.zod").FilterCondition | undefined;
|
|
382
398
|
windowFunctions?: {
|
|
383
|
-
function: "
|
|
399
|
+
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
384
400
|
alias: string;
|
|
385
401
|
over: {
|
|
386
|
-
partitionBy?: string[] | undefined;
|
|
387
402
|
orderBy?: {
|
|
388
403
|
field: string;
|
|
389
404
|
order: "asc" | "desc";
|
|
390
405
|
}[] | undefined;
|
|
406
|
+
partitionBy?: string[] | undefined;
|
|
391
407
|
frame?: {
|
|
392
408
|
type?: "rows" | "range" | undefined;
|
|
393
409
|
start?: string | undefined;
|
|
@@ -396,19 +412,13 @@ export declare const MappingSchema: z.ZodObject<{
|
|
|
396
412
|
};
|
|
397
413
|
field?: string | undefined;
|
|
398
414
|
}[] | undefined;
|
|
399
|
-
filters?: any;
|
|
400
|
-
joins?: any[] | undefined;
|
|
401
|
-
groupBy?: string[] | undefined;
|
|
402
|
-
having?: any;
|
|
403
|
-
top?: number | undefined;
|
|
404
|
-
skip?: number | undefined;
|
|
405
415
|
} | undefined;
|
|
406
416
|
}, {
|
|
407
417
|
name: string;
|
|
408
418
|
targetObject: string;
|
|
409
419
|
fieldMapping: {
|
|
410
|
-
source: string | string[];
|
|
411
420
|
target: string | string[];
|
|
421
|
+
source: string | string[];
|
|
412
422
|
params?: {
|
|
413
423
|
object?: string | undefined;
|
|
414
424
|
value?: any;
|
|
@@ -418,35 +428,44 @@ export declare const MappingSchema: z.ZodObject<{
|
|
|
418
428
|
valueMap?: Record<string, any> | undefined;
|
|
419
429
|
separator?: string | undefined;
|
|
420
430
|
} | undefined;
|
|
421
|
-
transform?: "
|
|
431
|
+
transform?: "join" | "map" | "lookup" | "none" | "javascript" | "constant" | "split" | undefined;
|
|
422
432
|
}[];
|
|
423
433
|
label?: string | undefined;
|
|
424
|
-
mode?: "
|
|
434
|
+
mode?: "insert" | "update" | "upsert" | undefined;
|
|
435
|
+
batchSize?: number | undefined;
|
|
425
436
|
sourceFormat?: "json" | "csv" | "xml" | "sql" | undefined;
|
|
426
437
|
upsertKey?: string[] | undefined;
|
|
427
438
|
extractQuery?: {
|
|
428
439
|
object: string;
|
|
429
|
-
|
|
440
|
+
where?: import("./filter.zod").FilterCondition | undefined;
|
|
441
|
+
distinct?: boolean | undefined;
|
|
442
|
+
fields?: any[] | undefined;
|
|
443
|
+
orderBy?: {
|
|
430
444
|
field: string;
|
|
431
445
|
order?: "asc" | "desc" | undefined;
|
|
432
446
|
}[] | undefined;
|
|
433
|
-
|
|
434
|
-
|
|
447
|
+
limit?: number | undefined;
|
|
448
|
+
offset?: number | undefined;
|
|
449
|
+
cursor?: Record<string, any> | undefined;
|
|
450
|
+
joins?: any[] | undefined;
|
|
435
451
|
aggregations?: {
|
|
436
|
-
function: "
|
|
452
|
+
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
437
453
|
alias: string;
|
|
454
|
+
filter?: import("./filter.zod").FilterCondition | undefined;
|
|
438
455
|
field?: string | undefined;
|
|
439
456
|
distinct?: boolean | undefined;
|
|
440
457
|
}[] | undefined;
|
|
458
|
+
groupBy?: string[] | undefined;
|
|
459
|
+
having?: import("./filter.zod").FilterCondition | undefined;
|
|
441
460
|
windowFunctions?: {
|
|
442
|
-
function: "
|
|
461
|
+
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
443
462
|
alias: string;
|
|
444
463
|
over: {
|
|
445
|
-
partitionBy?: string[] | undefined;
|
|
446
464
|
orderBy?: {
|
|
447
465
|
field: string;
|
|
448
466
|
order?: "asc" | "desc" | undefined;
|
|
449
467
|
}[] | undefined;
|
|
468
|
+
partitionBy?: string[] | undefined;
|
|
450
469
|
frame?: {
|
|
451
470
|
type?: "rows" | "range" | undefined;
|
|
452
471
|
start?: string | undefined;
|
|
@@ -455,15 +474,8 @@ export declare const MappingSchema: z.ZodObject<{
|
|
|
455
474
|
};
|
|
456
475
|
field?: string | undefined;
|
|
457
476
|
}[] | undefined;
|
|
458
|
-
filters?: any;
|
|
459
|
-
joins?: any[] | undefined;
|
|
460
|
-
groupBy?: string[] | undefined;
|
|
461
|
-
having?: any;
|
|
462
|
-
top?: number | undefined;
|
|
463
|
-
skip?: number | undefined;
|
|
464
477
|
} | undefined;
|
|
465
|
-
errorPolicy?: "
|
|
466
|
-
batchSize?: number | undefined;
|
|
478
|
+
errorPolicy?: "abort" | "skip" | "retry" | undefined;
|
|
467
479
|
}>;
|
|
468
480
|
export type Mapping = z.infer<typeof MappingSchema>;
|
|
469
481
|
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;AAGxB;;;GAGG;AACH,eAAO,MAAM,aAAa,iFAQxB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,kBAAkB;IAC7B,oBAAoB;;IAGpB,mBAAmB;;IAGnB,qBAAqB;;IAGrB,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBlC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,aAAa;IACxB,eAAe;;;IAIf,YAAY;;;IAIZ,sBAAsB;;QAzCtB,oBAAoB;;QAGpB,mBAAmB;;QAGnB,qBAAqB;;QAGrB,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAmClC,mBAAmB;;;IAInB,iCAAiC
|
|
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;AAGxB;;;GAGG;AACH,eAAO,MAAM,aAAa,iFAQxB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,kBAAkB;IAC7B,oBAAoB;;IAGpB,mBAAmB;;IAGnB,qBAAqB;;IAGrB,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBlC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,aAAa;IACxB,eAAe;;;IAIf,YAAY;;;IAIZ,sBAAsB;;QAzCtB,oBAAoB;;QAGpB,mBAAmB;;QAGnB,qBAAqB;;QAGrB,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAmClC,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"}
|