@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
|
@@ -1,1631 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
/**
|
|
3
|
-
* Common Driver Options
|
|
4
|
-
* Passed to most driver methods to control behavior (transactions, timeouts, etc.)
|
|
5
|
-
*/
|
|
6
|
-
export declare const DriverOptionsSchema: z.ZodObject<{
|
|
7
|
-
/**
|
|
8
|
-
* Transaction handle/identifier.
|
|
9
|
-
* If provided, the operation must run within this transaction.
|
|
10
|
-
*/
|
|
11
|
-
transaction: z.ZodOptional<z.ZodAny>;
|
|
12
|
-
/**
|
|
13
|
-
* Operation timeout in milliseconds.
|
|
14
|
-
*/
|
|
15
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
16
|
-
/**
|
|
17
|
-
* Whether to bypass cache and force a fresh read.
|
|
18
|
-
*/
|
|
19
|
-
skipCache: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
-
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
timeout?: number | undefined;
|
|
22
|
-
transaction?: any;
|
|
23
|
-
skipCache?: boolean | undefined;
|
|
24
|
-
}, {
|
|
25
|
-
timeout?: number | undefined;
|
|
26
|
-
transaction?: any;
|
|
27
|
-
skipCache?: boolean | undefined;
|
|
28
|
-
}>;
|
|
29
|
-
/**
|
|
30
|
-
* Driver Capabilities Schema
|
|
31
|
-
*
|
|
32
|
-
* Defines what features a database driver supports.
|
|
33
|
-
* This allows ObjectQL to adapt its behavior based on underlying database capabilities.
|
|
34
|
-
*/
|
|
35
|
-
export declare const DriverCapabilitiesSchema: z.ZodObject<{
|
|
36
|
-
/**
|
|
37
|
-
* Whether the driver supports database transactions.
|
|
38
|
-
* If true, beginTransaction, commit, and rollback must be implemented.
|
|
39
|
-
*/
|
|
40
|
-
transactions: z.ZodBoolean;
|
|
41
|
-
/**
|
|
42
|
-
* Whether the driver supports WHERE clause filters.
|
|
43
|
-
* If false, ObjectQL will fetch all records and filter in memory.
|
|
44
|
-
*
|
|
45
|
-
* Example: Memory driver might not support complex filter conditions.
|
|
46
|
-
*/
|
|
47
|
-
queryFilters: z.ZodBoolean;
|
|
48
|
-
/**
|
|
49
|
-
* Whether the driver supports aggregation functions (COUNT, SUM, AVG, etc.).
|
|
50
|
-
* If false, ObjectQL will compute aggregations in memory.
|
|
51
|
-
*/
|
|
52
|
-
queryAggregations: z.ZodBoolean;
|
|
53
|
-
/**
|
|
54
|
-
* Whether the driver supports ORDER BY sorting.
|
|
55
|
-
* If false, ObjectQL will sort results in memory.
|
|
56
|
-
*/
|
|
57
|
-
querySorting: z.ZodBoolean;
|
|
58
|
-
/**
|
|
59
|
-
* Whether the driver supports LIMIT/OFFSET pagination.
|
|
60
|
-
* If false, ObjectQL will fetch all records and paginate in memory.
|
|
61
|
-
*/
|
|
62
|
-
queryPagination: z.ZodBoolean;
|
|
63
|
-
/**
|
|
64
|
-
* Whether the driver supports window functions (ROW_NUMBER, RANK, LAG, LEAD, etc.).
|
|
65
|
-
* If false, ObjectQL will compute window functions in memory.
|
|
66
|
-
*/
|
|
67
|
-
queryWindowFunctions: z.ZodBoolean;
|
|
68
|
-
/**
|
|
69
|
-
* Whether the driver supports subqueries (nested SELECT statements).
|
|
70
|
-
* If false, ObjectQL will execute queries separately and combine results.
|
|
71
|
-
*/
|
|
72
|
-
querySubqueries: z.ZodBoolean;
|
|
73
|
-
/**
|
|
74
|
-
* Whether the driver supports SQL-style joins.
|
|
75
|
-
* If false, ObjectQL will fetch related data separately and join in memory.
|
|
76
|
-
*/
|
|
77
|
-
joins: z.ZodBoolean;
|
|
78
|
-
/**
|
|
79
|
-
* Whether the driver supports full-text search.
|
|
80
|
-
* If true, text search queries can be pushed to the database.
|
|
81
|
-
*/
|
|
82
|
-
fullTextSearch: z.ZodBoolean;
|
|
83
|
-
/**
|
|
84
|
-
* Whether the driver supports JSON field types.
|
|
85
|
-
* If false, JSON data will be serialized as strings.
|
|
86
|
-
*/
|
|
87
|
-
jsonFields: z.ZodBoolean;
|
|
88
|
-
/**
|
|
89
|
-
* Whether the driver supports array field types.
|
|
90
|
-
* If false, arrays will be stored as JSON strings or in separate tables.
|
|
91
|
-
*/
|
|
92
|
-
arrayFields: z.ZodBoolean;
|
|
93
|
-
}, "strip", z.ZodTypeAny, {
|
|
94
|
-
joins: boolean;
|
|
95
|
-
transactions: boolean;
|
|
96
|
-
queryFilters: boolean;
|
|
97
|
-
queryAggregations: boolean;
|
|
98
|
-
querySorting: boolean;
|
|
99
|
-
queryPagination: boolean;
|
|
100
|
-
queryWindowFunctions: boolean;
|
|
101
|
-
querySubqueries: boolean;
|
|
102
|
-
fullTextSearch: boolean;
|
|
103
|
-
jsonFields: boolean;
|
|
104
|
-
arrayFields: boolean;
|
|
105
|
-
}, {
|
|
106
|
-
joins: boolean;
|
|
107
|
-
transactions: boolean;
|
|
108
|
-
queryFilters: boolean;
|
|
109
|
-
queryAggregations: boolean;
|
|
110
|
-
querySorting: boolean;
|
|
111
|
-
queryPagination: boolean;
|
|
112
|
-
queryWindowFunctions: boolean;
|
|
113
|
-
querySubqueries: boolean;
|
|
114
|
-
fullTextSearch: boolean;
|
|
115
|
-
jsonFields: boolean;
|
|
116
|
-
arrayFields: boolean;
|
|
117
|
-
}>;
|
|
118
|
-
/**
|
|
119
|
-
* Unified Database Driver Interface
|
|
120
|
-
*
|
|
121
|
-
* This is the contract that all storage adapters (Postgres, Mongo, Excel, Salesforce) must implement.
|
|
122
|
-
* It abstracts the underlying engine, enabling ObjectStack to be "Database Agnostic".
|
|
123
|
-
*/
|
|
124
|
-
export declare const DriverInterfaceSchema: z.ZodObject<{
|
|
125
|
-
/**
|
|
126
|
-
* Driver name (e.g., 'postgresql', 'mongodb', 'rest_api').
|
|
127
|
-
*/
|
|
128
|
-
name: z.ZodString;
|
|
129
|
-
/**
|
|
130
|
-
* Driver version.
|
|
131
|
-
*/
|
|
132
|
-
version: z.ZodString;
|
|
133
|
-
/**
|
|
134
|
-
* Capabilities descriptor.
|
|
135
|
-
*/
|
|
136
|
-
supports: z.ZodObject<{
|
|
137
|
-
/**
|
|
138
|
-
* Whether the driver supports database transactions.
|
|
139
|
-
* If true, beginTransaction, commit, and rollback must be implemented.
|
|
140
|
-
*/
|
|
141
|
-
transactions: z.ZodBoolean;
|
|
142
|
-
/**
|
|
143
|
-
* Whether the driver supports WHERE clause filters.
|
|
144
|
-
* If false, ObjectQL will fetch all records and filter in memory.
|
|
145
|
-
*
|
|
146
|
-
* Example: Memory driver might not support complex filter conditions.
|
|
147
|
-
*/
|
|
148
|
-
queryFilters: z.ZodBoolean;
|
|
149
|
-
/**
|
|
150
|
-
* Whether the driver supports aggregation functions (COUNT, SUM, AVG, etc.).
|
|
151
|
-
* If false, ObjectQL will compute aggregations in memory.
|
|
152
|
-
*/
|
|
153
|
-
queryAggregations: z.ZodBoolean;
|
|
154
|
-
/**
|
|
155
|
-
* Whether the driver supports ORDER BY sorting.
|
|
156
|
-
* If false, ObjectQL will sort results in memory.
|
|
157
|
-
*/
|
|
158
|
-
querySorting: z.ZodBoolean;
|
|
159
|
-
/**
|
|
160
|
-
* Whether the driver supports LIMIT/OFFSET pagination.
|
|
161
|
-
* If false, ObjectQL will fetch all records and paginate in memory.
|
|
162
|
-
*/
|
|
163
|
-
queryPagination: z.ZodBoolean;
|
|
164
|
-
/**
|
|
165
|
-
* Whether the driver supports window functions (ROW_NUMBER, RANK, LAG, LEAD, etc.).
|
|
166
|
-
* If false, ObjectQL will compute window functions in memory.
|
|
167
|
-
*/
|
|
168
|
-
queryWindowFunctions: z.ZodBoolean;
|
|
169
|
-
/**
|
|
170
|
-
* Whether the driver supports subqueries (nested SELECT statements).
|
|
171
|
-
* If false, ObjectQL will execute queries separately and combine results.
|
|
172
|
-
*/
|
|
173
|
-
querySubqueries: z.ZodBoolean;
|
|
174
|
-
/**
|
|
175
|
-
* Whether the driver supports SQL-style joins.
|
|
176
|
-
* If false, ObjectQL will fetch related data separately and join in memory.
|
|
177
|
-
*/
|
|
178
|
-
joins: z.ZodBoolean;
|
|
179
|
-
/**
|
|
180
|
-
* Whether the driver supports full-text search.
|
|
181
|
-
* If true, text search queries can be pushed to the database.
|
|
182
|
-
*/
|
|
183
|
-
fullTextSearch: z.ZodBoolean;
|
|
184
|
-
/**
|
|
185
|
-
* Whether the driver supports JSON field types.
|
|
186
|
-
* If false, JSON data will be serialized as strings.
|
|
187
|
-
*/
|
|
188
|
-
jsonFields: z.ZodBoolean;
|
|
189
|
-
/**
|
|
190
|
-
* Whether the driver supports array field types.
|
|
191
|
-
* If false, arrays will be stored as JSON strings or in separate tables.
|
|
192
|
-
*/
|
|
193
|
-
arrayFields: z.ZodBoolean;
|
|
194
|
-
}, "strip", z.ZodTypeAny, {
|
|
195
|
-
joins: boolean;
|
|
196
|
-
transactions: boolean;
|
|
197
|
-
queryFilters: boolean;
|
|
198
|
-
queryAggregations: boolean;
|
|
199
|
-
querySorting: boolean;
|
|
200
|
-
queryPagination: boolean;
|
|
201
|
-
queryWindowFunctions: boolean;
|
|
202
|
-
querySubqueries: boolean;
|
|
203
|
-
fullTextSearch: boolean;
|
|
204
|
-
jsonFields: boolean;
|
|
205
|
-
arrayFields: boolean;
|
|
206
|
-
}, {
|
|
207
|
-
joins: boolean;
|
|
208
|
-
transactions: boolean;
|
|
209
|
-
queryFilters: boolean;
|
|
210
|
-
queryAggregations: boolean;
|
|
211
|
-
querySorting: boolean;
|
|
212
|
-
queryPagination: boolean;
|
|
213
|
-
queryWindowFunctions: boolean;
|
|
214
|
-
querySubqueries: boolean;
|
|
215
|
-
fullTextSearch: boolean;
|
|
216
|
-
jsonFields: boolean;
|
|
217
|
-
arrayFields: boolean;
|
|
218
|
-
}>;
|
|
219
|
-
/**
|
|
220
|
-
* Initialize connection pool or authenticate.
|
|
221
|
-
*/
|
|
222
|
-
connect: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodPromise<z.ZodVoid>>;
|
|
223
|
-
/**
|
|
224
|
-
* Close connections and cleanup resources.
|
|
225
|
-
*/
|
|
226
|
-
disconnect: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodPromise<z.ZodVoid>>;
|
|
227
|
-
/**
|
|
228
|
-
* Check connection health.
|
|
229
|
-
* @returns true if healthy, false otherwise.
|
|
230
|
-
*/
|
|
231
|
-
checkHealth: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodPromise<z.ZodBoolean>>;
|
|
232
|
-
/**
|
|
233
|
-
* Execute a raw command/query native to the driver.
|
|
234
|
-
* Useful for complex reports, stored procedures, or DDL not covered by standard sync.
|
|
235
|
-
*
|
|
236
|
-
* @param command - The raw command (e.g., SQL string, shell command, or remote API payload).
|
|
237
|
-
* @param parameters - Optional array of bound parameters for safe execution (prevention of injection).
|
|
238
|
-
* @param options - Driver options (transaction context, timeout).
|
|
239
|
-
* @returns Promise resolving to the raw result from the driver.
|
|
240
|
-
*
|
|
241
|
-
* @example
|
|
242
|
-
* // SQL Driver
|
|
243
|
-
* await driver.execute('SELECT * FROM complex_view WHERE id = ?', [123]);
|
|
244
|
-
*
|
|
245
|
-
* // Mongo Driver
|
|
246
|
-
* await driver.execute({ aggregate: 'orders', pipeline: [...] });
|
|
247
|
-
*/
|
|
248
|
-
execute: z.ZodFunction<z.ZodTuple<[z.ZodAny, z.ZodOptional<z.ZodArray<z.ZodAny, "many">>, z.ZodOptional<z.ZodObject<{
|
|
249
|
-
/**
|
|
250
|
-
* Transaction handle/identifier.
|
|
251
|
-
* If provided, the operation must run within this transaction.
|
|
252
|
-
*/
|
|
253
|
-
transaction: z.ZodOptional<z.ZodAny>;
|
|
254
|
-
/**
|
|
255
|
-
* Operation timeout in milliseconds.
|
|
256
|
-
*/
|
|
257
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
258
|
-
/**
|
|
259
|
-
* Whether to bypass cache and force a fresh read.
|
|
260
|
-
*/
|
|
261
|
-
skipCache: z.ZodOptional<z.ZodBoolean>;
|
|
262
|
-
}, "strip", z.ZodTypeAny, {
|
|
263
|
-
timeout?: number | undefined;
|
|
264
|
-
transaction?: any;
|
|
265
|
-
skipCache?: boolean | undefined;
|
|
266
|
-
}, {
|
|
267
|
-
timeout?: number | undefined;
|
|
268
|
-
transaction?: any;
|
|
269
|
-
skipCache?: boolean | undefined;
|
|
270
|
-
}>>], z.ZodUnknown>, z.ZodPromise<z.ZodAny>>;
|
|
271
|
-
/**
|
|
272
|
-
* Find multiple records matching the structured query.
|
|
273
|
-
* Parsing the QueryAST is the responsibility of the driver implementation.
|
|
274
|
-
*
|
|
275
|
-
* @param object - The name of the object/table to query (e.g. 'account').
|
|
276
|
-
* @param query - The structured QueryAST (filters, sorts, joins, pagination).
|
|
277
|
-
* @param options - Driver options.
|
|
278
|
-
* @returns Array of records.
|
|
279
|
-
*
|
|
280
|
-
* @example
|
|
281
|
-
* await driver.find('account', {
|
|
282
|
-
* filters: [['status', '=', 'active'], 'and', ['amount', '>', 500]],
|
|
283
|
-
* sort: [{ field: 'created_at', order: 'desc' }],
|
|
284
|
-
* top: 10
|
|
285
|
-
* });
|
|
286
|
-
* @returns Array of records.
|
|
287
|
-
* MUST return `id` as string. MUST NOT return implementation details like `_id`.
|
|
288
|
-
*/
|
|
289
|
-
find: z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodObject<{
|
|
290
|
-
object: z.ZodString;
|
|
291
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">>;
|
|
292
|
-
aggregations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
293
|
-
function: z.ZodEnum<["count", "sum", "avg", "min", "max", "count_distinct", "array_agg", "string_agg"]>;
|
|
294
|
-
field: z.ZodOptional<z.ZodString>;
|
|
295
|
-
alias: z.ZodString;
|
|
296
|
-
distinct: z.ZodOptional<z.ZodBoolean>;
|
|
297
|
-
}, "strip", z.ZodTypeAny, {
|
|
298
|
-
function: "min" | "max" | "count" | "sum" | "avg" | "count_distinct" | "array_agg" | "string_agg";
|
|
299
|
-
alias: string;
|
|
300
|
-
field?: string | undefined;
|
|
301
|
-
distinct?: boolean | undefined;
|
|
302
|
-
}, {
|
|
303
|
-
function: "min" | "max" | "count" | "sum" | "avg" | "count_distinct" | "array_agg" | "string_agg";
|
|
304
|
-
alias: string;
|
|
305
|
-
field?: string | undefined;
|
|
306
|
-
distinct?: boolean | undefined;
|
|
307
|
-
}>, "many">>;
|
|
308
|
-
windowFunctions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
309
|
-
function: z.ZodEnum<["row_number", "rank", "dense_rank", "percent_rank", "lag", "lead", "first_value", "last_value", "sum", "avg", "count", "min", "max"]>;
|
|
310
|
-
field: z.ZodOptional<z.ZodString>;
|
|
311
|
-
alias: z.ZodString;
|
|
312
|
-
over: z.ZodObject<{
|
|
313
|
-
partitionBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
314
|
-
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
315
|
-
field: z.ZodString;
|
|
316
|
-
order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
317
|
-
}, "strip", z.ZodTypeAny, {
|
|
318
|
-
field: string;
|
|
319
|
-
order: "asc" | "desc";
|
|
320
|
-
}, {
|
|
321
|
-
field: string;
|
|
322
|
-
order?: "asc" | "desc" | undefined;
|
|
323
|
-
}>, "many">>;
|
|
324
|
-
frame: z.ZodOptional<z.ZodObject<{
|
|
325
|
-
type: z.ZodOptional<z.ZodEnum<["rows", "range"]>>;
|
|
326
|
-
start: z.ZodOptional<z.ZodString>;
|
|
327
|
-
end: z.ZodOptional<z.ZodString>;
|
|
328
|
-
}, "strip", z.ZodTypeAny, {
|
|
329
|
-
type?: "rows" | "range" | undefined;
|
|
330
|
-
start?: string | undefined;
|
|
331
|
-
end?: string | undefined;
|
|
332
|
-
}, {
|
|
333
|
-
type?: "rows" | "range" | undefined;
|
|
334
|
-
start?: string | undefined;
|
|
335
|
-
end?: string | undefined;
|
|
336
|
-
}>>;
|
|
337
|
-
}, "strip", z.ZodTypeAny, {
|
|
338
|
-
partitionBy?: string[] | undefined;
|
|
339
|
-
orderBy?: {
|
|
340
|
-
field: string;
|
|
341
|
-
order: "asc" | "desc";
|
|
342
|
-
}[] | undefined;
|
|
343
|
-
frame?: {
|
|
344
|
-
type?: "rows" | "range" | undefined;
|
|
345
|
-
start?: string | undefined;
|
|
346
|
-
end?: string | undefined;
|
|
347
|
-
} | undefined;
|
|
348
|
-
}, {
|
|
349
|
-
partitionBy?: string[] | undefined;
|
|
350
|
-
orderBy?: {
|
|
351
|
-
field: string;
|
|
352
|
-
order?: "asc" | "desc" | undefined;
|
|
353
|
-
}[] | undefined;
|
|
354
|
-
frame?: {
|
|
355
|
-
type?: "rows" | "range" | undefined;
|
|
356
|
-
start?: string | undefined;
|
|
357
|
-
end?: string | undefined;
|
|
358
|
-
} | undefined;
|
|
359
|
-
}>;
|
|
360
|
-
}, "strip", z.ZodTypeAny, {
|
|
361
|
-
function: "min" | "max" | "count" | "sum" | "avg" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
362
|
-
alias: string;
|
|
363
|
-
over: {
|
|
364
|
-
partitionBy?: string[] | undefined;
|
|
365
|
-
orderBy?: {
|
|
366
|
-
field: string;
|
|
367
|
-
order: "asc" | "desc";
|
|
368
|
-
}[] | undefined;
|
|
369
|
-
frame?: {
|
|
370
|
-
type?: "rows" | "range" | undefined;
|
|
371
|
-
start?: string | undefined;
|
|
372
|
-
end?: string | undefined;
|
|
373
|
-
} | undefined;
|
|
374
|
-
};
|
|
375
|
-
field?: string | undefined;
|
|
376
|
-
}, {
|
|
377
|
-
function: "min" | "max" | "count" | "sum" | "avg" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
378
|
-
alias: string;
|
|
379
|
-
over: {
|
|
380
|
-
partitionBy?: string[] | undefined;
|
|
381
|
-
orderBy?: {
|
|
382
|
-
field: string;
|
|
383
|
-
order?: "asc" | "desc" | undefined;
|
|
384
|
-
}[] | undefined;
|
|
385
|
-
frame?: {
|
|
386
|
-
type?: "rows" | "range" | undefined;
|
|
387
|
-
start?: string | undefined;
|
|
388
|
-
end?: string | undefined;
|
|
389
|
-
} | undefined;
|
|
390
|
-
};
|
|
391
|
-
field?: string | undefined;
|
|
392
|
-
}>, "many">>;
|
|
393
|
-
filters: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
394
|
-
joins: z.ZodOptional<z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">>;
|
|
395
|
-
groupBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
396
|
-
having: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
397
|
-
sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
398
|
-
field: z.ZodString;
|
|
399
|
-
order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
400
|
-
}, "strip", z.ZodTypeAny, {
|
|
401
|
-
field: string;
|
|
402
|
-
order: "asc" | "desc";
|
|
403
|
-
}, {
|
|
404
|
-
field: string;
|
|
405
|
-
order?: "asc" | "desc" | undefined;
|
|
406
|
-
}>, "many">>;
|
|
407
|
-
top: z.ZodOptional<z.ZodNumber>;
|
|
408
|
-
skip: z.ZodOptional<z.ZodNumber>;
|
|
409
|
-
distinct: z.ZodOptional<z.ZodBoolean>;
|
|
410
|
-
}, "strip", z.ZodTypeAny, {
|
|
411
|
-
object: string;
|
|
412
|
-
sort?: {
|
|
413
|
-
field: string;
|
|
414
|
-
order: "asc" | "desc";
|
|
415
|
-
}[] | undefined;
|
|
416
|
-
fields?: any[] | undefined;
|
|
417
|
-
distinct?: boolean | undefined;
|
|
418
|
-
aggregations?: {
|
|
419
|
-
function: "min" | "max" | "count" | "sum" | "avg" | "count_distinct" | "array_agg" | "string_agg";
|
|
420
|
-
alias: string;
|
|
421
|
-
field?: string | undefined;
|
|
422
|
-
distinct?: boolean | undefined;
|
|
423
|
-
}[] | undefined;
|
|
424
|
-
windowFunctions?: {
|
|
425
|
-
function: "min" | "max" | "count" | "sum" | "avg" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
426
|
-
alias: string;
|
|
427
|
-
over: {
|
|
428
|
-
partitionBy?: string[] | undefined;
|
|
429
|
-
orderBy?: {
|
|
430
|
-
field: string;
|
|
431
|
-
order: "asc" | "desc";
|
|
432
|
-
}[] | undefined;
|
|
433
|
-
frame?: {
|
|
434
|
-
type?: "rows" | "range" | undefined;
|
|
435
|
-
start?: string | undefined;
|
|
436
|
-
end?: string | undefined;
|
|
437
|
-
} | undefined;
|
|
438
|
-
};
|
|
439
|
-
field?: string | undefined;
|
|
440
|
-
}[] | undefined;
|
|
441
|
-
filters?: any;
|
|
442
|
-
joins?: any[] | undefined;
|
|
443
|
-
groupBy?: string[] | undefined;
|
|
444
|
-
having?: any;
|
|
445
|
-
top?: number | undefined;
|
|
446
|
-
skip?: number | undefined;
|
|
447
|
-
}, {
|
|
448
|
-
object: string;
|
|
449
|
-
sort?: {
|
|
450
|
-
field: string;
|
|
451
|
-
order?: "asc" | "desc" | undefined;
|
|
452
|
-
}[] | undefined;
|
|
453
|
-
fields?: any[] | undefined;
|
|
454
|
-
distinct?: boolean | undefined;
|
|
455
|
-
aggregations?: {
|
|
456
|
-
function: "min" | "max" | "count" | "sum" | "avg" | "count_distinct" | "array_agg" | "string_agg";
|
|
457
|
-
alias: string;
|
|
458
|
-
field?: string | undefined;
|
|
459
|
-
distinct?: boolean | undefined;
|
|
460
|
-
}[] | undefined;
|
|
461
|
-
windowFunctions?: {
|
|
462
|
-
function: "min" | "max" | "count" | "sum" | "avg" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
463
|
-
alias: string;
|
|
464
|
-
over: {
|
|
465
|
-
partitionBy?: string[] | undefined;
|
|
466
|
-
orderBy?: {
|
|
467
|
-
field: string;
|
|
468
|
-
order?: "asc" | "desc" | undefined;
|
|
469
|
-
}[] | undefined;
|
|
470
|
-
frame?: {
|
|
471
|
-
type?: "rows" | "range" | undefined;
|
|
472
|
-
start?: string | undefined;
|
|
473
|
-
end?: string | undefined;
|
|
474
|
-
} | undefined;
|
|
475
|
-
};
|
|
476
|
-
field?: string | undefined;
|
|
477
|
-
}[] | undefined;
|
|
478
|
-
filters?: any;
|
|
479
|
-
joins?: any[] | undefined;
|
|
480
|
-
groupBy?: string[] | undefined;
|
|
481
|
-
having?: any;
|
|
482
|
-
top?: number | undefined;
|
|
483
|
-
skip?: number | undefined;
|
|
484
|
-
}>, z.ZodOptional<z.ZodObject<{
|
|
485
|
-
/**
|
|
486
|
-
* Transaction handle/identifier.
|
|
487
|
-
* If provided, the operation must run within this transaction.
|
|
488
|
-
*/
|
|
489
|
-
transaction: z.ZodOptional<z.ZodAny>;
|
|
490
|
-
/**
|
|
491
|
-
* Operation timeout in milliseconds.
|
|
492
|
-
*/
|
|
493
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
494
|
-
/**
|
|
495
|
-
* Whether to bypass cache and force a fresh read.
|
|
496
|
-
*/
|
|
497
|
-
skipCache: z.ZodOptional<z.ZodBoolean>;
|
|
498
|
-
}, "strip", z.ZodTypeAny, {
|
|
499
|
-
timeout?: number | undefined;
|
|
500
|
-
transaction?: any;
|
|
501
|
-
skipCache?: boolean | undefined;
|
|
502
|
-
}, {
|
|
503
|
-
timeout?: number | undefined;
|
|
504
|
-
transaction?: any;
|
|
505
|
-
skipCache?: boolean | undefined;
|
|
506
|
-
}>>], z.ZodUnknown>, z.ZodPromise<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">>>;
|
|
507
|
-
/**
|
|
508
|
-
* Find a single record by query.
|
|
509
|
-
* Similar to find(), but returns only the first match or null.
|
|
510
|
-
*
|
|
511
|
-
* @param object - The name of the object.
|
|
512
|
-
* @param query - QueryAST.
|
|
513
|
-
* @param options - Driver options.
|
|
514
|
-
* @returns The record or null.
|
|
515
|
-
* MUST return `id` as string. MUST NOT return implementation details like `_id`.
|
|
516
|
-
*/
|
|
517
|
-
findOne: z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodObject<{
|
|
518
|
-
object: z.ZodString;
|
|
519
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">>;
|
|
520
|
-
aggregations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
521
|
-
function: z.ZodEnum<["count", "sum", "avg", "min", "max", "count_distinct", "array_agg", "string_agg"]>;
|
|
522
|
-
field: z.ZodOptional<z.ZodString>;
|
|
523
|
-
alias: z.ZodString;
|
|
524
|
-
distinct: z.ZodOptional<z.ZodBoolean>;
|
|
525
|
-
}, "strip", z.ZodTypeAny, {
|
|
526
|
-
function: "min" | "max" | "count" | "sum" | "avg" | "count_distinct" | "array_agg" | "string_agg";
|
|
527
|
-
alias: string;
|
|
528
|
-
field?: string | undefined;
|
|
529
|
-
distinct?: boolean | undefined;
|
|
530
|
-
}, {
|
|
531
|
-
function: "min" | "max" | "count" | "sum" | "avg" | "count_distinct" | "array_agg" | "string_agg";
|
|
532
|
-
alias: string;
|
|
533
|
-
field?: string | undefined;
|
|
534
|
-
distinct?: boolean | undefined;
|
|
535
|
-
}>, "many">>;
|
|
536
|
-
windowFunctions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
537
|
-
function: z.ZodEnum<["row_number", "rank", "dense_rank", "percent_rank", "lag", "lead", "first_value", "last_value", "sum", "avg", "count", "min", "max"]>;
|
|
538
|
-
field: z.ZodOptional<z.ZodString>;
|
|
539
|
-
alias: z.ZodString;
|
|
540
|
-
over: z.ZodObject<{
|
|
541
|
-
partitionBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
542
|
-
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
543
|
-
field: z.ZodString;
|
|
544
|
-
order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
545
|
-
}, "strip", z.ZodTypeAny, {
|
|
546
|
-
field: string;
|
|
547
|
-
order: "asc" | "desc";
|
|
548
|
-
}, {
|
|
549
|
-
field: string;
|
|
550
|
-
order?: "asc" | "desc" | undefined;
|
|
551
|
-
}>, "many">>;
|
|
552
|
-
frame: z.ZodOptional<z.ZodObject<{
|
|
553
|
-
type: z.ZodOptional<z.ZodEnum<["rows", "range"]>>;
|
|
554
|
-
start: z.ZodOptional<z.ZodString>;
|
|
555
|
-
end: z.ZodOptional<z.ZodString>;
|
|
556
|
-
}, "strip", z.ZodTypeAny, {
|
|
557
|
-
type?: "rows" | "range" | undefined;
|
|
558
|
-
start?: string | undefined;
|
|
559
|
-
end?: string | undefined;
|
|
560
|
-
}, {
|
|
561
|
-
type?: "rows" | "range" | undefined;
|
|
562
|
-
start?: string | undefined;
|
|
563
|
-
end?: string | undefined;
|
|
564
|
-
}>>;
|
|
565
|
-
}, "strip", z.ZodTypeAny, {
|
|
566
|
-
partitionBy?: string[] | undefined;
|
|
567
|
-
orderBy?: {
|
|
568
|
-
field: string;
|
|
569
|
-
order: "asc" | "desc";
|
|
570
|
-
}[] | undefined;
|
|
571
|
-
frame?: {
|
|
572
|
-
type?: "rows" | "range" | undefined;
|
|
573
|
-
start?: string | undefined;
|
|
574
|
-
end?: string | undefined;
|
|
575
|
-
} | undefined;
|
|
576
|
-
}, {
|
|
577
|
-
partitionBy?: string[] | undefined;
|
|
578
|
-
orderBy?: {
|
|
579
|
-
field: string;
|
|
580
|
-
order?: "asc" | "desc" | undefined;
|
|
581
|
-
}[] | undefined;
|
|
582
|
-
frame?: {
|
|
583
|
-
type?: "rows" | "range" | undefined;
|
|
584
|
-
start?: string | undefined;
|
|
585
|
-
end?: string | undefined;
|
|
586
|
-
} | undefined;
|
|
587
|
-
}>;
|
|
588
|
-
}, "strip", z.ZodTypeAny, {
|
|
589
|
-
function: "min" | "max" | "count" | "sum" | "avg" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
590
|
-
alias: string;
|
|
591
|
-
over: {
|
|
592
|
-
partitionBy?: string[] | undefined;
|
|
593
|
-
orderBy?: {
|
|
594
|
-
field: string;
|
|
595
|
-
order: "asc" | "desc";
|
|
596
|
-
}[] | undefined;
|
|
597
|
-
frame?: {
|
|
598
|
-
type?: "rows" | "range" | undefined;
|
|
599
|
-
start?: string | undefined;
|
|
600
|
-
end?: string | undefined;
|
|
601
|
-
} | undefined;
|
|
602
|
-
};
|
|
603
|
-
field?: string | undefined;
|
|
604
|
-
}, {
|
|
605
|
-
function: "min" | "max" | "count" | "sum" | "avg" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
606
|
-
alias: string;
|
|
607
|
-
over: {
|
|
608
|
-
partitionBy?: string[] | undefined;
|
|
609
|
-
orderBy?: {
|
|
610
|
-
field: string;
|
|
611
|
-
order?: "asc" | "desc" | undefined;
|
|
612
|
-
}[] | undefined;
|
|
613
|
-
frame?: {
|
|
614
|
-
type?: "rows" | "range" | undefined;
|
|
615
|
-
start?: string | undefined;
|
|
616
|
-
end?: string | undefined;
|
|
617
|
-
} | undefined;
|
|
618
|
-
};
|
|
619
|
-
field?: string | undefined;
|
|
620
|
-
}>, "many">>;
|
|
621
|
-
filters: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
622
|
-
joins: z.ZodOptional<z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">>;
|
|
623
|
-
groupBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
624
|
-
having: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
625
|
-
sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
626
|
-
field: z.ZodString;
|
|
627
|
-
order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
628
|
-
}, "strip", z.ZodTypeAny, {
|
|
629
|
-
field: string;
|
|
630
|
-
order: "asc" | "desc";
|
|
631
|
-
}, {
|
|
632
|
-
field: string;
|
|
633
|
-
order?: "asc" | "desc" | undefined;
|
|
634
|
-
}>, "many">>;
|
|
635
|
-
top: z.ZodOptional<z.ZodNumber>;
|
|
636
|
-
skip: z.ZodOptional<z.ZodNumber>;
|
|
637
|
-
distinct: z.ZodOptional<z.ZodBoolean>;
|
|
638
|
-
}, "strip", z.ZodTypeAny, {
|
|
639
|
-
object: string;
|
|
640
|
-
sort?: {
|
|
641
|
-
field: string;
|
|
642
|
-
order: "asc" | "desc";
|
|
643
|
-
}[] | undefined;
|
|
644
|
-
fields?: any[] | undefined;
|
|
645
|
-
distinct?: boolean | undefined;
|
|
646
|
-
aggregations?: {
|
|
647
|
-
function: "min" | "max" | "count" | "sum" | "avg" | "count_distinct" | "array_agg" | "string_agg";
|
|
648
|
-
alias: string;
|
|
649
|
-
field?: string | undefined;
|
|
650
|
-
distinct?: boolean | undefined;
|
|
651
|
-
}[] | undefined;
|
|
652
|
-
windowFunctions?: {
|
|
653
|
-
function: "min" | "max" | "count" | "sum" | "avg" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
654
|
-
alias: string;
|
|
655
|
-
over: {
|
|
656
|
-
partitionBy?: string[] | undefined;
|
|
657
|
-
orderBy?: {
|
|
658
|
-
field: string;
|
|
659
|
-
order: "asc" | "desc";
|
|
660
|
-
}[] | undefined;
|
|
661
|
-
frame?: {
|
|
662
|
-
type?: "rows" | "range" | undefined;
|
|
663
|
-
start?: string | undefined;
|
|
664
|
-
end?: string | undefined;
|
|
665
|
-
} | undefined;
|
|
666
|
-
};
|
|
667
|
-
field?: string | undefined;
|
|
668
|
-
}[] | undefined;
|
|
669
|
-
filters?: any;
|
|
670
|
-
joins?: any[] | undefined;
|
|
671
|
-
groupBy?: string[] | undefined;
|
|
672
|
-
having?: any;
|
|
673
|
-
top?: number | undefined;
|
|
674
|
-
skip?: number | undefined;
|
|
675
|
-
}, {
|
|
676
|
-
object: string;
|
|
677
|
-
sort?: {
|
|
678
|
-
field: string;
|
|
679
|
-
order?: "asc" | "desc" | undefined;
|
|
680
|
-
}[] | undefined;
|
|
681
|
-
fields?: any[] | undefined;
|
|
682
|
-
distinct?: boolean | undefined;
|
|
683
|
-
aggregations?: {
|
|
684
|
-
function: "min" | "max" | "count" | "sum" | "avg" | "count_distinct" | "array_agg" | "string_agg";
|
|
685
|
-
alias: string;
|
|
686
|
-
field?: string | undefined;
|
|
687
|
-
distinct?: boolean | undefined;
|
|
688
|
-
}[] | undefined;
|
|
689
|
-
windowFunctions?: {
|
|
690
|
-
function: "min" | "max" | "count" | "sum" | "avg" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
691
|
-
alias: string;
|
|
692
|
-
over: {
|
|
693
|
-
partitionBy?: string[] | undefined;
|
|
694
|
-
orderBy?: {
|
|
695
|
-
field: string;
|
|
696
|
-
order?: "asc" | "desc" | undefined;
|
|
697
|
-
}[] | undefined;
|
|
698
|
-
frame?: {
|
|
699
|
-
type?: "rows" | "range" | undefined;
|
|
700
|
-
start?: string | undefined;
|
|
701
|
-
end?: string | undefined;
|
|
702
|
-
} | undefined;
|
|
703
|
-
};
|
|
704
|
-
field?: string | undefined;
|
|
705
|
-
}[] | undefined;
|
|
706
|
-
filters?: any;
|
|
707
|
-
joins?: any[] | undefined;
|
|
708
|
-
groupBy?: string[] | undefined;
|
|
709
|
-
having?: any;
|
|
710
|
-
top?: number | undefined;
|
|
711
|
-
skip?: number | undefined;
|
|
712
|
-
}>, z.ZodOptional<z.ZodObject<{
|
|
713
|
-
/**
|
|
714
|
-
* Transaction handle/identifier.
|
|
715
|
-
* If provided, the operation must run within this transaction.
|
|
716
|
-
*/
|
|
717
|
-
transaction: z.ZodOptional<z.ZodAny>;
|
|
718
|
-
/**
|
|
719
|
-
* Operation timeout in milliseconds.
|
|
720
|
-
*/
|
|
721
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
722
|
-
/**
|
|
723
|
-
* Whether to bypass cache and force a fresh read.
|
|
724
|
-
*/
|
|
725
|
-
skipCache: z.ZodOptional<z.ZodBoolean>;
|
|
726
|
-
}, "strip", z.ZodTypeAny, {
|
|
727
|
-
timeout?: number | undefined;
|
|
728
|
-
transaction?: any;
|
|
729
|
-
skipCache?: boolean | undefined;
|
|
730
|
-
}, {
|
|
731
|
-
timeout?: number | undefined;
|
|
732
|
-
transaction?: any;
|
|
733
|
-
skipCache?: boolean | undefined;
|
|
734
|
-
}>>], z.ZodUnknown>, z.ZodPromise<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
735
|
-
/**
|
|
736
|
-
* Create a new record.
|
|
737
|
-
*
|
|
738
|
-
* @param object - The object name.
|
|
739
|
-
* @param data - Key-value map of field data.
|
|
740
|
-
* @param options - Driver options.
|
|
741
|
-
* @returns The created record, including server-generated fields (id, created_at, etc.).
|
|
742
|
-
* MUST return `id` as string. MUST NOT return implementation details like `_id`.
|
|
743
|
-
*/
|
|
744
|
-
create: z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodOptional<z.ZodObject<{
|
|
745
|
-
/**
|
|
746
|
-
* Transaction handle/identifier.
|
|
747
|
-
* If provided, the operation must run within this transaction.
|
|
748
|
-
*/
|
|
749
|
-
transaction: z.ZodOptional<z.ZodAny>;
|
|
750
|
-
/**
|
|
751
|
-
* Operation timeout in milliseconds.
|
|
752
|
-
*/
|
|
753
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
754
|
-
/**
|
|
755
|
-
* Whether to bypass cache and force a fresh read.
|
|
756
|
-
*/
|
|
757
|
-
skipCache: z.ZodOptional<z.ZodBoolean>;
|
|
758
|
-
}, "strip", z.ZodTypeAny, {
|
|
759
|
-
timeout?: number | undefined;
|
|
760
|
-
transaction?: any;
|
|
761
|
-
skipCache?: boolean | undefined;
|
|
762
|
-
}, {
|
|
763
|
-
timeout?: number | undefined;
|
|
764
|
-
transaction?: any;
|
|
765
|
-
skipCache?: boolean | undefined;
|
|
766
|
-
}>>], z.ZodUnknown>, z.ZodPromise<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
767
|
-
/**
|
|
768
|
-
* Update an existing record by ID.
|
|
769
|
-
*
|
|
770
|
-
* @param object - The object name.
|
|
771
|
-
* @param id - The unique identifier of the record.
|
|
772
|
-
* @param data - The fields to update.
|
|
773
|
-
* @param options - Driver options.
|
|
774
|
-
* @returns The updated record.
|
|
775
|
-
* MUST return `id` as string. MUST NOT return implementation details like `_id`.
|
|
776
|
-
*/
|
|
777
|
-
update: z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodOptional<z.ZodObject<{
|
|
778
|
-
/**
|
|
779
|
-
* Transaction handle/identifier.
|
|
780
|
-
* If provided, the operation must run within this transaction.
|
|
781
|
-
*/
|
|
782
|
-
transaction: z.ZodOptional<z.ZodAny>;
|
|
783
|
-
/**
|
|
784
|
-
* Operation timeout in milliseconds.
|
|
785
|
-
*/
|
|
786
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
787
|
-
/**
|
|
788
|
-
* Whether to bypass cache and force a fresh read.
|
|
789
|
-
*/
|
|
790
|
-
skipCache: z.ZodOptional<z.ZodBoolean>;
|
|
791
|
-
}, "strip", z.ZodTypeAny, {
|
|
792
|
-
timeout?: number | undefined;
|
|
793
|
-
transaction?: any;
|
|
794
|
-
skipCache?: boolean | undefined;
|
|
795
|
-
}, {
|
|
796
|
-
timeout?: number | undefined;
|
|
797
|
-
transaction?: any;
|
|
798
|
-
skipCache?: boolean | undefined;
|
|
799
|
-
}>>], z.ZodUnknown>, z.ZodPromise<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
800
|
-
/**
|
|
801
|
-
* Delete a record by ID.
|
|
802
|
-
*
|
|
803
|
-
* @param object - The object name.
|
|
804
|
-
* @param id - The unique identifier of the record.
|
|
805
|
-
* @param options - Driver options.
|
|
806
|
-
* @returns True if deleted, false if not found.
|
|
807
|
-
*/
|
|
808
|
-
delete: z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodOptional<z.ZodObject<{
|
|
809
|
-
/**
|
|
810
|
-
* Transaction handle/identifier.
|
|
811
|
-
* If provided, the operation must run within this transaction.
|
|
812
|
-
*/
|
|
813
|
-
transaction: z.ZodOptional<z.ZodAny>;
|
|
814
|
-
/**
|
|
815
|
-
* Operation timeout in milliseconds.
|
|
816
|
-
*/
|
|
817
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
818
|
-
/**
|
|
819
|
-
* Whether to bypass cache and force a fresh read.
|
|
820
|
-
*/
|
|
821
|
-
skipCache: z.ZodOptional<z.ZodBoolean>;
|
|
822
|
-
}, "strip", z.ZodTypeAny, {
|
|
823
|
-
timeout?: number | undefined;
|
|
824
|
-
transaction?: any;
|
|
825
|
-
skipCache?: boolean | undefined;
|
|
826
|
-
}, {
|
|
827
|
-
timeout?: number | undefined;
|
|
828
|
-
transaction?: any;
|
|
829
|
-
skipCache?: boolean | undefined;
|
|
830
|
-
}>>], z.ZodUnknown>, z.ZodPromise<z.ZodBoolean>>;
|
|
831
|
-
/**
|
|
832
|
-
* Count records matching a query.
|
|
833
|
-
*
|
|
834
|
-
* @param object - The object name.
|
|
835
|
-
* @param query - Optional filtering criteria.
|
|
836
|
-
* @param options - Driver options.
|
|
837
|
-
* @returns Total count.
|
|
838
|
-
*/
|
|
839
|
-
count: z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodOptional<z.ZodObject<{
|
|
840
|
-
object: z.ZodString;
|
|
841
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">>;
|
|
842
|
-
aggregations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
843
|
-
function: z.ZodEnum<["count", "sum", "avg", "min", "max", "count_distinct", "array_agg", "string_agg"]>;
|
|
844
|
-
field: z.ZodOptional<z.ZodString>;
|
|
845
|
-
alias: z.ZodString;
|
|
846
|
-
distinct: z.ZodOptional<z.ZodBoolean>;
|
|
847
|
-
}, "strip", z.ZodTypeAny, {
|
|
848
|
-
function: "min" | "max" | "count" | "sum" | "avg" | "count_distinct" | "array_agg" | "string_agg";
|
|
849
|
-
alias: string;
|
|
850
|
-
field?: string | undefined;
|
|
851
|
-
distinct?: boolean | undefined;
|
|
852
|
-
}, {
|
|
853
|
-
function: "min" | "max" | "count" | "sum" | "avg" | "count_distinct" | "array_agg" | "string_agg";
|
|
854
|
-
alias: string;
|
|
855
|
-
field?: string | undefined;
|
|
856
|
-
distinct?: boolean | undefined;
|
|
857
|
-
}>, "many">>;
|
|
858
|
-
windowFunctions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
859
|
-
function: z.ZodEnum<["row_number", "rank", "dense_rank", "percent_rank", "lag", "lead", "first_value", "last_value", "sum", "avg", "count", "min", "max"]>;
|
|
860
|
-
field: z.ZodOptional<z.ZodString>;
|
|
861
|
-
alias: z.ZodString;
|
|
862
|
-
over: z.ZodObject<{
|
|
863
|
-
partitionBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
864
|
-
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
865
|
-
field: z.ZodString;
|
|
866
|
-
order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
867
|
-
}, "strip", z.ZodTypeAny, {
|
|
868
|
-
field: string;
|
|
869
|
-
order: "asc" | "desc";
|
|
870
|
-
}, {
|
|
871
|
-
field: string;
|
|
872
|
-
order?: "asc" | "desc" | undefined;
|
|
873
|
-
}>, "many">>;
|
|
874
|
-
frame: z.ZodOptional<z.ZodObject<{
|
|
875
|
-
type: z.ZodOptional<z.ZodEnum<["rows", "range"]>>;
|
|
876
|
-
start: z.ZodOptional<z.ZodString>;
|
|
877
|
-
end: z.ZodOptional<z.ZodString>;
|
|
878
|
-
}, "strip", z.ZodTypeAny, {
|
|
879
|
-
type?: "rows" | "range" | undefined;
|
|
880
|
-
start?: string | undefined;
|
|
881
|
-
end?: string | undefined;
|
|
882
|
-
}, {
|
|
883
|
-
type?: "rows" | "range" | undefined;
|
|
884
|
-
start?: string | undefined;
|
|
885
|
-
end?: string | undefined;
|
|
886
|
-
}>>;
|
|
887
|
-
}, "strip", z.ZodTypeAny, {
|
|
888
|
-
partitionBy?: string[] | undefined;
|
|
889
|
-
orderBy?: {
|
|
890
|
-
field: string;
|
|
891
|
-
order: "asc" | "desc";
|
|
892
|
-
}[] | undefined;
|
|
893
|
-
frame?: {
|
|
894
|
-
type?: "rows" | "range" | undefined;
|
|
895
|
-
start?: string | undefined;
|
|
896
|
-
end?: string | undefined;
|
|
897
|
-
} | undefined;
|
|
898
|
-
}, {
|
|
899
|
-
partitionBy?: string[] | undefined;
|
|
900
|
-
orderBy?: {
|
|
901
|
-
field: string;
|
|
902
|
-
order?: "asc" | "desc" | undefined;
|
|
903
|
-
}[] | undefined;
|
|
904
|
-
frame?: {
|
|
905
|
-
type?: "rows" | "range" | undefined;
|
|
906
|
-
start?: string | undefined;
|
|
907
|
-
end?: string | undefined;
|
|
908
|
-
} | undefined;
|
|
909
|
-
}>;
|
|
910
|
-
}, "strip", z.ZodTypeAny, {
|
|
911
|
-
function: "min" | "max" | "count" | "sum" | "avg" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
912
|
-
alias: string;
|
|
913
|
-
over: {
|
|
914
|
-
partitionBy?: string[] | undefined;
|
|
915
|
-
orderBy?: {
|
|
916
|
-
field: string;
|
|
917
|
-
order: "asc" | "desc";
|
|
918
|
-
}[] | undefined;
|
|
919
|
-
frame?: {
|
|
920
|
-
type?: "rows" | "range" | undefined;
|
|
921
|
-
start?: string | undefined;
|
|
922
|
-
end?: string | undefined;
|
|
923
|
-
} | undefined;
|
|
924
|
-
};
|
|
925
|
-
field?: string | undefined;
|
|
926
|
-
}, {
|
|
927
|
-
function: "min" | "max" | "count" | "sum" | "avg" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
928
|
-
alias: string;
|
|
929
|
-
over: {
|
|
930
|
-
partitionBy?: string[] | undefined;
|
|
931
|
-
orderBy?: {
|
|
932
|
-
field: string;
|
|
933
|
-
order?: "asc" | "desc" | undefined;
|
|
934
|
-
}[] | undefined;
|
|
935
|
-
frame?: {
|
|
936
|
-
type?: "rows" | "range" | undefined;
|
|
937
|
-
start?: string | undefined;
|
|
938
|
-
end?: string | undefined;
|
|
939
|
-
} | undefined;
|
|
940
|
-
};
|
|
941
|
-
field?: string | undefined;
|
|
942
|
-
}>, "many">>;
|
|
943
|
-
filters: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
944
|
-
joins: z.ZodOptional<z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">>;
|
|
945
|
-
groupBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
946
|
-
having: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
947
|
-
sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
948
|
-
field: z.ZodString;
|
|
949
|
-
order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
950
|
-
}, "strip", z.ZodTypeAny, {
|
|
951
|
-
field: string;
|
|
952
|
-
order: "asc" | "desc";
|
|
953
|
-
}, {
|
|
954
|
-
field: string;
|
|
955
|
-
order?: "asc" | "desc" | undefined;
|
|
956
|
-
}>, "many">>;
|
|
957
|
-
top: z.ZodOptional<z.ZodNumber>;
|
|
958
|
-
skip: z.ZodOptional<z.ZodNumber>;
|
|
959
|
-
distinct: z.ZodOptional<z.ZodBoolean>;
|
|
960
|
-
}, "strip", z.ZodTypeAny, {
|
|
961
|
-
object: string;
|
|
962
|
-
sort?: {
|
|
963
|
-
field: string;
|
|
964
|
-
order: "asc" | "desc";
|
|
965
|
-
}[] | undefined;
|
|
966
|
-
fields?: any[] | undefined;
|
|
967
|
-
distinct?: boolean | undefined;
|
|
968
|
-
aggregations?: {
|
|
969
|
-
function: "min" | "max" | "count" | "sum" | "avg" | "count_distinct" | "array_agg" | "string_agg";
|
|
970
|
-
alias: string;
|
|
971
|
-
field?: string | undefined;
|
|
972
|
-
distinct?: boolean | undefined;
|
|
973
|
-
}[] | undefined;
|
|
974
|
-
windowFunctions?: {
|
|
975
|
-
function: "min" | "max" | "count" | "sum" | "avg" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
976
|
-
alias: string;
|
|
977
|
-
over: {
|
|
978
|
-
partitionBy?: string[] | undefined;
|
|
979
|
-
orderBy?: {
|
|
980
|
-
field: string;
|
|
981
|
-
order: "asc" | "desc";
|
|
982
|
-
}[] | undefined;
|
|
983
|
-
frame?: {
|
|
984
|
-
type?: "rows" | "range" | undefined;
|
|
985
|
-
start?: string | undefined;
|
|
986
|
-
end?: string | undefined;
|
|
987
|
-
} | undefined;
|
|
988
|
-
};
|
|
989
|
-
field?: string | undefined;
|
|
990
|
-
}[] | undefined;
|
|
991
|
-
filters?: any;
|
|
992
|
-
joins?: any[] | undefined;
|
|
993
|
-
groupBy?: string[] | undefined;
|
|
994
|
-
having?: any;
|
|
995
|
-
top?: number | undefined;
|
|
996
|
-
skip?: number | undefined;
|
|
997
|
-
}, {
|
|
998
|
-
object: string;
|
|
999
|
-
sort?: {
|
|
1000
|
-
field: string;
|
|
1001
|
-
order?: "asc" | "desc" | undefined;
|
|
1002
|
-
}[] | undefined;
|
|
1003
|
-
fields?: any[] | undefined;
|
|
1004
|
-
distinct?: boolean | undefined;
|
|
1005
|
-
aggregations?: {
|
|
1006
|
-
function: "min" | "max" | "count" | "sum" | "avg" | "count_distinct" | "array_agg" | "string_agg";
|
|
1007
|
-
alias: string;
|
|
1008
|
-
field?: string | undefined;
|
|
1009
|
-
distinct?: boolean | undefined;
|
|
1010
|
-
}[] | undefined;
|
|
1011
|
-
windowFunctions?: {
|
|
1012
|
-
function: "min" | "max" | "count" | "sum" | "avg" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
1013
|
-
alias: string;
|
|
1014
|
-
over: {
|
|
1015
|
-
partitionBy?: string[] | undefined;
|
|
1016
|
-
orderBy?: {
|
|
1017
|
-
field: string;
|
|
1018
|
-
order?: "asc" | "desc" | undefined;
|
|
1019
|
-
}[] | undefined;
|
|
1020
|
-
frame?: {
|
|
1021
|
-
type?: "rows" | "range" | undefined;
|
|
1022
|
-
start?: string | undefined;
|
|
1023
|
-
end?: string | undefined;
|
|
1024
|
-
} | undefined;
|
|
1025
|
-
};
|
|
1026
|
-
field?: string | undefined;
|
|
1027
|
-
}[] | undefined;
|
|
1028
|
-
filters?: any;
|
|
1029
|
-
joins?: any[] | undefined;
|
|
1030
|
-
groupBy?: string[] | undefined;
|
|
1031
|
-
having?: any;
|
|
1032
|
-
top?: number | undefined;
|
|
1033
|
-
skip?: number | undefined;
|
|
1034
|
-
}>>, z.ZodOptional<z.ZodObject<{
|
|
1035
|
-
/**
|
|
1036
|
-
* Transaction handle/identifier.
|
|
1037
|
-
* If provided, the operation must run within this transaction.
|
|
1038
|
-
*/
|
|
1039
|
-
transaction: z.ZodOptional<z.ZodAny>;
|
|
1040
|
-
/**
|
|
1041
|
-
* Operation timeout in milliseconds.
|
|
1042
|
-
*/
|
|
1043
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1044
|
-
/**
|
|
1045
|
-
* Whether to bypass cache and force a fresh read.
|
|
1046
|
-
*/
|
|
1047
|
-
skipCache: z.ZodOptional<z.ZodBoolean>;
|
|
1048
|
-
}, "strip", z.ZodTypeAny, {
|
|
1049
|
-
timeout?: number | undefined;
|
|
1050
|
-
transaction?: any;
|
|
1051
|
-
skipCache?: boolean | undefined;
|
|
1052
|
-
}, {
|
|
1053
|
-
timeout?: number | undefined;
|
|
1054
|
-
transaction?: any;
|
|
1055
|
-
skipCache?: boolean | undefined;
|
|
1056
|
-
}>>], z.ZodUnknown>, z.ZodPromise<z.ZodNumber>>;
|
|
1057
|
-
/**
|
|
1058
|
-
* Create multiple records in a single batch.
|
|
1059
|
-
* Optimized for performance.
|
|
1060
|
-
*
|
|
1061
|
-
* @param object - The object name.
|
|
1062
|
-
* @param dataArray - Array of record data.
|
|
1063
|
-
* @returns Array of created records.
|
|
1064
|
-
*/
|
|
1065
|
-
bulkCreate: z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">, z.ZodOptional<z.ZodObject<{
|
|
1066
|
-
/**
|
|
1067
|
-
* Transaction handle/identifier.
|
|
1068
|
-
* If provided, the operation must run within this transaction.
|
|
1069
|
-
*/
|
|
1070
|
-
transaction: z.ZodOptional<z.ZodAny>;
|
|
1071
|
-
/**
|
|
1072
|
-
* Operation timeout in milliseconds.
|
|
1073
|
-
*/
|
|
1074
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1075
|
-
/**
|
|
1076
|
-
* Whether to bypass cache and force a fresh read.
|
|
1077
|
-
*/
|
|
1078
|
-
skipCache: z.ZodOptional<z.ZodBoolean>;
|
|
1079
|
-
}, "strip", z.ZodTypeAny, {
|
|
1080
|
-
timeout?: number | undefined;
|
|
1081
|
-
transaction?: any;
|
|
1082
|
-
skipCache?: boolean | undefined;
|
|
1083
|
-
}, {
|
|
1084
|
-
timeout?: number | undefined;
|
|
1085
|
-
transaction?: any;
|
|
1086
|
-
skipCache?: boolean | undefined;
|
|
1087
|
-
}>>], z.ZodUnknown>, z.ZodPromise<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">>>;
|
|
1088
|
-
/**
|
|
1089
|
-
* Update multiple records in a single batch.
|
|
1090
|
-
*
|
|
1091
|
-
* @param object - The object name.
|
|
1092
|
-
* @param updates - Array of objects containing {id, data}.
|
|
1093
|
-
* @returns Array of updated records.
|
|
1094
|
-
*/
|
|
1095
|
-
bulkUpdate: z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodArray<z.ZodObject<{
|
|
1096
|
-
id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
1097
|
-
data: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
1098
|
-
}, "strip", z.ZodTypeAny, {
|
|
1099
|
-
data: Record<string, any>;
|
|
1100
|
-
id: string | number;
|
|
1101
|
-
}, {
|
|
1102
|
-
data: Record<string, any>;
|
|
1103
|
-
id: string | number;
|
|
1104
|
-
}>, "many">, z.ZodOptional<z.ZodObject<{
|
|
1105
|
-
/**
|
|
1106
|
-
* Transaction handle/identifier.
|
|
1107
|
-
* If provided, the operation must run within this transaction.
|
|
1108
|
-
*/
|
|
1109
|
-
transaction: z.ZodOptional<z.ZodAny>;
|
|
1110
|
-
/**
|
|
1111
|
-
* Operation timeout in milliseconds.
|
|
1112
|
-
*/
|
|
1113
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1114
|
-
/**
|
|
1115
|
-
* Whether to bypass cache and force a fresh read.
|
|
1116
|
-
*/
|
|
1117
|
-
skipCache: z.ZodOptional<z.ZodBoolean>;
|
|
1118
|
-
}, "strip", z.ZodTypeAny, {
|
|
1119
|
-
timeout?: number | undefined;
|
|
1120
|
-
transaction?: any;
|
|
1121
|
-
skipCache?: boolean | undefined;
|
|
1122
|
-
}, {
|
|
1123
|
-
timeout?: number | undefined;
|
|
1124
|
-
transaction?: any;
|
|
1125
|
-
skipCache?: boolean | undefined;
|
|
1126
|
-
}>>], z.ZodUnknown>, z.ZodPromise<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">>>;
|
|
1127
|
-
/**
|
|
1128
|
-
* Delete multiple records in a single batch.
|
|
1129
|
-
*
|
|
1130
|
-
* @param object - The object name.
|
|
1131
|
-
* @param ids - Array of record IDs.
|
|
1132
|
-
*/
|
|
1133
|
-
bulkDelete: z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">, z.ZodOptional<z.ZodObject<{
|
|
1134
|
-
/**
|
|
1135
|
-
* Transaction handle/identifier.
|
|
1136
|
-
* If provided, the operation must run within this transaction.
|
|
1137
|
-
*/
|
|
1138
|
-
transaction: z.ZodOptional<z.ZodAny>;
|
|
1139
|
-
/**
|
|
1140
|
-
* Operation timeout in milliseconds.
|
|
1141
|
-
*/
|
|
1142
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1143
|
-
/**
|
|
1144
|
-
* Whether to bypass cache and force a fresh read.
|
|
1145
|
-
*/
|
|
1146
|
-
skipCache: z.ZodOptional<z.ZodBoolean>;
|
|
1147
|
-
}, "strip", z.ZodTypeAny, {
|
|
1148
|
-
timeout?: number | undefined;
|
|
1149
|
-
transaction?: any;
|
|
1150
|
-
skipCache?: boolean | undefined;
|
|
1151
|
-
}, {
|
|
1152
|
-
timeout?: number | undefined;
|
|
1153
|
-
transaction?: any;
|
|
1154
|
-
skipCache?: boolean | undefined;
|
|
1155
|
-
}>>], z.ZodUnknown>, z.ZodPromise<z.ZodVoid>>;
|
|
1156
|
-
/**
|
|
1157
|
-
* Begin a new database transaction.
|
|
1158
|
-
* @returns A transaction handle to be passed to subsequent operations via `options.transaction`.
|
|
1159
|
-
*/
|
|
1160
|
-
beginTransaction: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodPromise<z.ZodAny>>;
|
|
1161
|
-
/**
|
|
1162
|
-
* Commit the transaction.
|
|
1163
|
-
* @param transaction - The transaction handle.
|
|
1164
|
-
*/
|
|
1165
|
-
commit: z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodPromise<z.ZodVoid>>;
|
|
1166
|
-
/**
|
|
1167
|
-
* Rollback the transaction.
|
|
1168
|
-
* @param transaction - The transaction handle.
|
|
1169
|
-
*/
|
|
1170
|
-
rollback: z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodPromise<z.ZodVoid>>;
|
|
1171
|
-
/**
|
|
1172
|
-
* Synchronize the database schema with the Object definition.
|
|
1173
|
-
* This is an idempotent operation: it should create tables if missing,
|
|
1174
|
-
* add columns if missing, and update indexes.
|
|
1175
|
-
*
|
|
1176
|
-
* @param object - The object name.
|
|
1177
|
-
* @param schema - The full Object Schema (fields, indexes, etc).
|
|
1178
|
-
* @param options - Driver options.
|
|
1179
|
-
*/
|
|
1180
|
-
syncSchema: z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodAny, z.ZodOptional<z.ZodObject<{
|
|
1181
|
-
/**
|
|
1182
|
-
* Transaction handle/identifier.
|
|
1183
|
-
* If provided, the operation must run within this transaction.
|
|
1184
|
-
*/
|
|
1185
|
-
transaction: z.ZodOptional<z.ZodAny>;
|
|
1186
|
-
/**
|
|
1187
|
-
* Operation timeout in milliseconds.
|
|
1188
|
-
*/
|
|
1189
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1190
|
-
/**
|
|
1191
|
-
* Whether to bypass cache and force a fresh read.
|
|
1192
|
-
*/
|
|
1193
|
-
skipCache: z.ZodOptional<z.ZodBoolean>;
|
|
1194
|
-
}, "strip", z.ZodTypeAny, {
|
|
1195
|
-
timeout?: number | undefined;
|
|
1196
|
-
transaction?: any;
|
|
1197
|
-
skipCache?: boolean | undefined;
|
|
1198
|
-
}, {
|
|
1199
|
-
timeout?: number | undefined;
|
|
1200
|
-
transaction?: any;
|
|
1201
|
-
skipCache?: boolean | undefined;
|
|
1202
|
-
}>>], z.ZodUnknown>, z.ZodPromise<z.ZodVoid>>;
|
|
1203
|
-
/**
|
|
1204
|
-
* Drop the underlying table or collection for an object.
|
|
1205
|
-
* WARNING: Destructive operation.
|
|
1206
|
-
*
|
|
1207
|
-
* @param object - The object name.
|
|
1208
|
-
*/
|
|
1209
|
-
dropTable: z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodOptional<z.ZodObject<{
|
|
1210
|
-
/**
|
|
1211
|
-
* Transaction handle/identifier.
|
|
1212
|
-
* If provided, the operation must run within this transaction.
|
|
1213
|
-
*/
|
|
1214
|
-
transaction: z.ZodOptional<z.ZodAny>;
|
|
1215
|
-
/**
|
|
1216
|
-
* Operation timeout in milliseconds.
|
|
1217
|
-
*/
|
|
1218
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1219
|
-
/**
|
|
1220
|
-
* Whether to bypass cache and force a fresh read.
|
|
1221
|
-
*/
|
|
1222
|
-
skipCache: z.ZodOptional<z.ZodBoolean>;
|
|
1223
|
-
}, "strip", z.ZodTypeAny, {
|
|
1224
|
-
timeout?: number | undefined;
|
|
1225
|
-
transaction?: any;
|
|
1226
|
-
skipCache?: boolean | undefined;
|
|
1227
|
-
}, {
|
|
1228
|
-
timeout?: number | undefined;
|
|
1229
|
-
transaction?: any;
|
|
1230
|
-
skipCache?: boolean | undefined;
|
|
1231
|
-
}>>], z.ZodUnknown>, z.ZodPromise<z.ZodVoid>>;
|
|
1232
|
-
}, "strip", z.ZodTypeAny, {
|
|
1233
|
-
find: (args_0: string, args_1: {
|
|
1234
|
-
object: string;
|
|
1235
|
-
sort?: {
|
|
1236
|
-
field: string;
|
|
1237
|
-
order?: "asc" | "desc" | undefined;
|
|
1238
|
-
}[] | undefined;
|
|
1239
|
-
fields?: any[] | undefined;
|
|
1240
|
-
distinct?: boolean | undefined;
|
|
1241
|
-
aggregations?: {
|
|
1242
|
-
function: "min" | "max" | "count" | "sum" | "avg" | "count_distinct" | "array_agg" | "string_agg";
|
|
1243
|
-
alias: string;
|
|
1244
|
-
field?: string | undefined;
|
|
1245
|
-
distinct?: boolean | undefined;
|
|
1246
|
-
}[] | undefined;
|
|
1247
|
-
windowFunctions?: {
|
|
1248
|
-
function: "min" | "max" | "count" | "sum" | "avg" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
1249
|
-
alias: string;
|
|
1250
|
-
over: {
|
|
1251
|
-
partitionBy?: string[] | undefined;
|
|
1252
|
-
orderBy?: {
|
|
1253
|
-
field: string;
|
|
1254
|
-
order?: "asc" | "desc" | undefined;
|
|
1255
|
-
}[] | undefined;
|
|
1256
|
-
frame?: {
|
|
1257
|
-
type?: "rows" | "range" | undefined;
|
|
1258
|
-
start?: string | undefined;
|
|
1259
|
-
end?: string | undefined;
|
|
1260
|
-
} | undefined;
|
|
1261
|
-
};
|
|
1262
|
-
field?: string | undefined;
|
|
1263
|
-
}[] | undefined;
|
|
1264
|
-
filters?: any;
|
|
1265
|
-
joins?: any[] | undefined;
|
|
1266
|
-
groupBy?: string[] | undefined;
|
|
1267
|
-
having?: any;
|
|
1268
|
-
top?: number | undefined;
|
|
1269
|
-
skip?: number | undefined;
|
|
1270
|
-
}, args_2: {
|
|
1271
|
-
timeout?: number | undefined;
|
|
1272
|
-
transaction?: any;
|
|
1273
|
-
skipCache?: boolean | undefined;
|
|
1274
|
-
} | undefined, ...args: unknown[]) => Promise<Record<string, any>[]>;
|
|
1275
|
-
name: string;
|
|
1276
|
-
count: (args_0: string, args_1: {
|
|
1277
|
-
object: string;
|
|
1278
|
-
sort?: {
|
|
1279
|
-
field: string;
|
|
1280
|
-
order?: "asc" | "desc" | undefined;
|
|
1281
|
-
}[] | undefined;
|
|
1282
|
-
fields?: any[] | undefined;
|
|
1283
|
-
distinct?: boolean | undefined;
|
|
1284
|
-
aggregations?: {
|
|
1285
|
-
function: "min" | "max" | "count" | "sum" | "avg" | "count_distinct" | "array_agg" | "string_agg";
|
|
1286
|
-
alias: string;
|
|
1287
|
-
field?: string | undefined;
|
|
1288
|
-
distinct?: boolean | undefined;
|
|
1289
|
-
}[] | undefined;
|
|
1290
|
-
windowFunctions?: {
|
|
1291
|
-
function: "min" | "max" | "count" | "sum" | "avg" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
1292
|
-
alias: string;
|
|
1293
|
-
over: {
|
|
1294
|
-
partitionBy?: string[] | undefined;
|
|
1295
|
-
orderBy?: {
|
|
1296
|
-
field: string;
|
|
1297
|
-
order?: "asc" | "desc" | undefined;
|
|
1298
|
-
}[] | undefined;
|
|
1299
|
-
frame?: {
|
|
1300
|
-
type?: "rows" | "range" | undefined;
|
|
1301
|
-
start?: string | undefined;
|
|
1302
|
-
end?: string | undefined;
|
|
1303
|
-
} | undefined;
|
|
1304
|
-
};
|
|
1305
|
-
field?: string | undefined;
|
|
1306
|
-
}[] | undefined;
|
|
1307
|
-
filters?: any;
|
|
1308
|
-
joins?: any[] | undefined;
|
|
1309
|
-
groupBy?: string[] | undefined;
|
|
1310
|
-
having?: any;
|
|
1311
|
-
top?: number | undefined;
|
|
1312
|
-
skip?: number | undefined;
|
|
1313
|
-
} | undefined, args_2: {
|
|
1314
|
-
timeout?: number | undefined;
|
|
1315
|
-
transaction?: any;
|
|
1316
|
-
skipCache?: boolean | undefined;
|
|
1317
|
-
} | undefined, ...args: unknown[]) => Promise<number>;
|
|
1318
|
-
create: (args_0: string, args_1: Record<string, any>, args_2: {
|
|
1319
|
-
timeout?: number | undefined;
|
|
1320
|
-
transaction?: any;
|
|
1321
|
-
skipCache?: boolean | undefined;
|
|
1322
|
-
} | undefined, ...args: unknown[]) => Promise<Record<string, any>>;
|
|
1323
|
-
update: (args_0: string, args_1: string | number, args_2: Record<string, any>, args_3: {
|
|
1324
|
-
timeout?: number | undefined;
|
|
1325
|
-
transaction?: any;
|
|
1326
|
-
skipCache?: boolean | undefined;
|
|
1327
|
-
} | undefined, ...args: unknown[]) => Promise<Record<string, any>>;
|
|
1328
|
-
delete: (args_0: string, args_1: string | number, args_2: {
|
|
1329
|
-
timeout?: number | undefined;
|
|
1330
|
-
transaction?: any;
|
|
1331
|
-
skipCache?: boolean | undefined;
|
|
1332
|
-
} | undefined, ...args: unknown[]) => Promise<boolean>;
|
|
1333
|
-
bulkCreate: (args_0: string, args_1: Record<string, any>[], args_2: {
|
|
1334
|
-
timeout?: number | undefined;
|
|
1335
|
-
transaction?: any;
|
|
1336
|
-
skipCache?: boolean | undefined;
|
|
1337
|
-
} | undefined, ...args: unknown[]) => Promise<Record<string, any>[]>;
|
|
1338
|
-
bulkUpdate: (args_0: string, args_1: {
|
|
1339
|
-
data: Record<string, any>;
|
|
1340
|
-
id: string | number;
|
|
1341
|
-
}[], args_2: {
|
|
1342
|
-
timeout?: number | undefined;
|
|
1343
|
-
transaction?: any;
|
|
1344
|
-
skipCache?: boolean | undefined;
|
|
1345
|
-
} | undefined, ...args: unknown[]) => Promise<Record<string, any>[]>;
|
|
1346
|
-
bulkDelete: (args_0: string, args_1: (string | number)[], args_2: {
|
|
1347
|
-
timeout?: number | undefined;
|
|
1348
|
-
transaction?: any;
|
|
1349
|
-
skipCache?: boolean | undefined;
|
|
1350
|
-
} | undefined, ...args: unknown[]) => Promise<void>;
|
|
1351
|
-
execute: (args_0: any, args_1: any[] | undefined, args_2: {
|
|
1352
|
-
timeout?: number | undefined;
|
|
1353
|
-
transaction?: any;
|
|
1354
|
-
skipCache?: boolean | undefined;
|
|
1355
|
-
} | undefined, ...args: unknown[]) => Promise<any>;
|
|
1356
|
-
version: string;
|
|
1357
|
-
supports: {
|
|
1358
|
-
joins: boolean;
|
|
1359
|
-
transactions: boolean;
|
|
1360
|
-
queryFilters: boolean;
|
|
1361
|
-
queryAggregations: boolean;
|
|
1362
|
-
querySorting: boolean;
|
|
1363
|
-
queryPagination: boolean;
|
|
1364
|
-
queryWindowFunctions: boolean;
|
|
1365
|
-
querySubqueries: boolean;
|
|
1366
|
-
fullTextSearch: boolean;
|
|
1367
|
-
jsonFields: boolean;
|
|
1368
|
-
arrayFields: boolean;
|
|
1369
|
-
};
|
|
1370
|
-
connect: (...args: unknown[]) => Promise<void>;
|
|
1371
|
-
disconnect: (...args: unknown[]) => Promise<void>;
|
|
1372
|
-
checkHealth: (...args: unknown[]) => Promise<boolean>;
|
|
1373
|
-
findOne: (args_0: string, args_1: {
|
|
1374
|
-
object: string;
|
|
1375
|
-
sort?: {
|
|
1376
|
-
field: string;
|
|
1377
|
-
order?: "asc" | "desc" | undefined;
|
|
1378
|
-
}[] | undefined;
|
|
1379
|
-
fields?: any[] | undefined;
|
|
1380
|
-
distinct?: boolean | undefined;
|
|
1381
|
-
aggregations?: {
|
|
1382
|
-
function: "min" | "max" | "count" | "sum" | "avg" | "count_distinct" | "array_agg" | "string_agg";
|
|
1383
|
-
alias: string;
|
|
1384
|
-
field?: string | undefined;
|
|
1385
|
-
distinct?: boolean | undefined;
|
|
1386
|
-
}[] | undefined;
|
|
1387
|
-
windowFunctions?: {
|
|
1388
|
-
function: "min" | "max" | "count" | "sum" | "avg" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
1389
|
-
alias: string;
|
|
1390
|
-
over: {
|
|
1391
|
-
partitionBy?: string[] | undefined;
|
|
1392
|
-
orderBy?: {
|
|
1393
|
-
field: string;
|
|
1394
|
-
order?: "asc" | "desc" | undefined;
|
|
1395
|
-
}[] | undefined;
|
|
1396
|
-
frame?: {
|
|
1397
|
-
type?: "rows" | "range" | undefined;
|
|
1398
|
-
start?: string | undefined;
|
|
1399
|
-
end?: string | undefined;
|
|
1400
|
-
} | undefined;
|
|
1401
|
-
};
|
|
1402
|
-
field?: string | undefined;
|
|
1403
|
-
}[] | undefined;
|
|
1404
|
-
filters?: any;
|
|
1405
|
-
joins?: any[] | undefined;
|
|
1406
|
-
groupBy?: string[] | undefined;
|
|
1407
|
-
having?: any;
|
|
1408
|
-
top?: number | undefined;
|
|
1409
|
-
skip?: number | undefined;
|
|
1410
|
-
}, args_2: {
|
|
1411
|
-
timeout?: number | undefined;
|
|
1412
|
-
transaction?: any;
|
|
1413
|
-
skipCache?: boolean | undefined;
|
|
1414
|
-
} | undefined, ...args: unknown[]) => Promise<Record<string, any> | null>;
|
|
1415
|
-
beginTransaction: (...args: unknown[]) => Promise<any>;
|
|
1416
|
-
commit: (args_0: any, ...args: unknown[]) => Promise<void>;
|
|
1417
|
-
rollback: (args_0: any, ...args: unknown[]) => Promise<void>;
|
|
1418
|
-
syncSchema: (args_0: string, args_1: any, args_2: {
|
|
1419
|
-
timeout?: number | undefined;
|
|
1420
|
-
transaction?: any;
|
|
1421
|
-
skipCache?: boolean | undefined;
|
|
1422
|
-
} | undefined, ...args: unknown[]) => Promise<void>;
|
|
1423
|
-
dropTable: (args_0: string, args_1: {
|
|
1424
|
-
timeout?: number | undefined;
|
|
1425
|
-
transaction?: any;
|
|
1426
|
-
skipCache?: boolean | undefined;
|
|
1427
|
-
} | undefined, ...args: unknown[]) => Promise<void>;
|
|
1428
|
-
}, {
|
|
1429
|
-
find: (args_0: string, args_1: {
|
|
1430
|
-
object: string;
|
|
1431
|
-
sort?: {
|
|
1432
|
-
field: string;
|
|
1433
|
-
order: "asc" | "desc";
|
|
1434
|
-
}[] | undefined;
|
|
1435
|
-
fields?: any[] | undefined;
|
|
1436
|
-
distinct?: boolean | undefined;
|
|
1437
|
-
aggregations?: {
|
|
1438
|
-
function: "min" | "max" | "count" | "sum" | "avg" | "count_distinct" | "array_agg" | "string_agg";
|
|
1439
|
-
alias: string;
|
|
1440
|
-
field?: string | undefined;
|
|
1441
|
-
distinct?: boolean | undefined;
|
|
1442
|
-
}[] | undefined;
|
|
1443
|
-
windowFunctions?: {
|
|
1444
|
-
function: "min" | "max" | "count" | "sum" | "avg" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
1445
|
-
alias: string;
|
|
1446
|
-
over: {
|
|
1447
|
-
partitionBy?: string[] | undefined;
|
|
1448
|
-
orderBy?: {
|
|
1449
|
-
field: string;
|
|
1450
|
-
order: "asc" | "desc";
|
|
1451
|
-
}[] | undefined;
|
|
1452
|
-
frame?: {
|
|
1453
|
-
type?: "rows" | "range" | undefined;
|
|
1454
|
-
start?: string | undefined;
|
|
1455
|
-
end?: string | undefined;
|
|
1456
|
-
} | undefined;
|
|
1457
|
-
};
|
|
1458
|
-
field?: string | undefined;
|
|
1459
|
-
}[] | undefined;
|
|
1460
|
-
filters?: any;
|
|
1461
|
-
joins?: any[] | undefined;
|
|
1462
|
-
groupBy?: string[] | undefined;
|
|
1463
|
-
having?: any;
|
|
1464
|
-
top?: number | undefined;
|
|
1465
|
-
skip?: number | undefined;
|
|
1466
|
-
}, args_2: {
|
|
1467
|
-
timeout?: number | undefined;
|
|
1468
|
-
transaction?: any;
|
|
1469
|
-
skipCache?: boolean | undefined;
|
|
1470
|
-
} | undefined, ...args: unknown[]) => Promise<Record<string, any>[]>;
|
|
1471
|
-
name: string;
|
|
1472
|
-
count: (args_0: string, args_1: {
|
|
1473
|
-
object: string;
|
|
1474
|
-
sort?: {
|
|
1475
|
-
field: string;
|
|
1476
|
-
order: "asc" | "desc";
|
|
1477
|
-
}[] | undefined;
|
|
1478
|
-
fields?: any[] | undefined;
|
|
1479
|
-
distinct?: boolean | undefined;
|
|
1480
|
-
aggregations?: {
|
|
1481
|
-
function: "min" | "max" | "count" | "sum" | "avg" | "count_distinct" | "array_agg" | "string_agg";
|
|
1482
|
-
alias: string;
|
|
1483
|
-
field?: string | undefined;
|
|
1484
|
-
distinct?: boolean | undefined;
|
|
1485
|
-
}[] | undefined;
|
|
1486
|
-
windowFunctions?: {
|
|
1487
|
-
function: "min" | "max" | "count" | "sum" | "avg" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
1488
|
-
alias: string;
|
|
1489
|
-
over: {
|
|
1490
|
-
partitionBy?: string[] | undefined;
|
|
1491
|
-
orderBy?: {
|
|
1492
|
-
field: string;
|
|
1493
|
-
order: "asc" | "desc";
|
|
1494
|
-
}[] | undefined;
|
|
1495
|
-
frame?: {
|
|
1496
|
-
type?: "rows" | "range" | undefined;
|
|
1497
|
-
start?: string | undefined;
|
|
1498
|
-
end?: string | undefined;
|
|
1499
|
-
} | undefined;
|
|
1500
|
-
};
|
|
1501
|
-
field?: string | undefined;
|
|
1502
|
-
}[] | undefined;
|
|
1503
|
-
filters?: any;
|
|
1504
|
-
joins?: any[] | undefined;
|
|
1505
|
-
groupBy?: string[] | undefined;
|
|
1506
|
-
having?: any;
|
|
1507
|
-
top?: number | undefined;
|
|
1508
|
-
skip?: number | undefined;
|
|
1509
|
-
} | undefined, args_2: {
|
|
1510
|
-
timeout?: number | undefined;
|
|
1511
|
-
transaction?: any;
|
|
1512
|
-
skipCache?: boolean | undefined;
|
|
1513
|
-
} | undefined, ...args: unknown[]) => Promise<number>;
|
|
1514
|
-
create: (args_0: string, args_1: Record<string, any>, args_2: {
|
|
1515
|
-
timeout?: number | undefined;
|
|
1516
|
-
transaction?: any;
|
|
1517
|
-
skipCache?: boolean | undefined;
|
|
1518
|
-
} | undefined, ...args: unknown[]) => Promise<Record<string, any>>;
|
|
1519
|
-
update: (args_0: string, args_1: string | number, args_2: Record<string, any>, args_3: {
|
|
1520
|
-
timeout?: number | undefined;
|
|
1521
|
-
transaction?: any;
|
|
1522
|
-
skipCache?: boolean | undefined;
|
|
1523
|
-
} | undefined, ...args: unknown[]) => Promise<Record<string, any>>;
|
|
1524
|
-
delete: (args_0: string, args_1: string | number, args_2: {
|
|
1525
|
-
timeout?: number | undefined;
|
|
1526
|
-
transaction?: any;
|
|
1527
|
-
skipCache?: boolean | undefined;
|
|
1528
|
-
} | undefined, ...args: unknown[]) => Promise<boolean>;
|
|
1529
|
-
bulkCreate: (args_0: string, args_1: Record<string, any>[], args_2: {
|
|
1530
|
-
timeout?: number | undefined;
|
|
1531
|
-
transaction?: any;
|
|
1532
|
-
skipCache?: boolean | undefined;
|
|
1533
|
-
} | undefined, ...args: unknown[]) => Promise<Record<string, any>[]>;
|
|
1534
|
-
bulkUpdate: (args_0: string, args_1: {
|
|
1535
|
-
data: Record<string, any>;
|
|
1536
|
-
id: string | number;
|
|
1537
|
-
}[], args_2: {
|
|
1538
|
-
timeout?: number | undefined;
|
|
1539
|
-
transaction?: any;
|
|
1540
|
-
skipCache?: boolean | undefined;
|
|
1541
|
-
} | undefined, ...args: unknown[]) => Promise<Record<string, any>[]>;
|
|
1542
|
-
bulkDelete: (args_0: string, args_1: (string | number)[], args_2: {
|
|
1543
|
-
timeout?: number | undefined;
|
|
1544
|
-
transaction?: any;
|
|
1545
|
-
skipCache?: boolean | undefined;
|
|
1546
|
-
} | undefined, ...args: unknown[]) => Promise<void>;
|
|
1547
|
-
execute: (args_0: any, args_1: any[] | undefined, args_2: {
|
|
1548
|
-
timeout?: number | undefined;
|
|
1549
|
-
transaction?: any;
|
|
1550
|
-
skipCache?: boolean | undefined;
|
|
1551
|
-
} | undefined, ...args: unknown[]) => Promise<any>;
|
|
1552
|
-
version: string;
|
|
1553
|
-
supports: {
|
|
1554
|
-
joins: boolean;
|
|
1555
|
-
transactions: boolean;
|
|
1556
|
-
queryFilters: boolean;
|
|
1557
|
-
queryAggregations: boolean;
|
|
1558
|
-
querySorting: boolean;
|
|
1559
|
-
queryPagination: boolean;
|
|
1560
|
-
queryWindowFunctions: boolean;
|
|
1561
|
-
querySubqueries: boolean;
|
|
1562
|
-
fullTextSearch: boolean;
|
|
1563
|
-
jsonFields: boolean;
|
|
1564
|
-
arrayFields: boolean;
|
|
1565
|
-
};
|
|
1566
|
-
connect: (...args: unknown[]) => Promise<void>;
|
|
1567
|
-
disconnect: (...args: unknown[]) => Promise<void>;
|
|
1568
|
-
checkHealth: (...args: unknown[]) => Promise<boolean>;
|
|
1569
|
-
findOne: (args_0: string, args_1: {
|
|
1570
|
-
object: string;
|
|
1571
|
-
sort?: {
|
|
1572
|
-
field: string;
|
|
1573
|
-
order: "asc" | "desc";
|
|
1574
|
-
}[] | undefined;
|
|
1575
|
-
fields?: any[] | undefined;
|
|
1576
|
-
distinct?: boolean | undefined;
|
|
1577
|
-
aggregations?: {
|
|
1578
|
-
function: "min" | "max" | "count" | "sum" | "avg" | "count_distinct" | "array_agg" | "string_agg";
|
|
1579
|
-
alias: string;
|
|
1580
|
-
field?: string | undefined;
|
|
1581
|
-
distinct?: boolean | undefined;
|
|
1582
|
-
}[] | undefined;
|
|
1583
|
-
windowFunctions?: {
|
|
1584
|
-
function: "min" | "max" | "count" | "sum" | "avg" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
1585
|
-
alias: string;
|
|
1586
|
-
over: {
|
|
1587
|
-
partitionBy?: string[] | undefined;
|
|
1588
|
-
orderBy?: {
|
|
1589
|
-
field: string;
|
|
1590
|
-
order: "asc" | "desc";
|
|
1591
|
-
}[] | undefined;
|
|
1592
|
-
frame?: {
|
|
1593
|
-
type?: "rows" | "range" | undefined;
|
|
1594
|
-
start?: string | undefined;
|
|
1595
|
-
end?: string | undefined;
|
|
1596
|
-
} | undefined;
|
|
1597
|
-
};
|
|
1598
|
-
field?: string | undefined;
|
|
1599
|
-
}[] | undefined;
|
|
1600
|
-
filters?: any;
|
|
1601
|
-
joins?: any[] | undefined;
|
|
1602
|
-
groupBy?: string[] | undefined;
|
|
1603
|
-
having?: any;
|
|
1604
|
-
top?: number | undefined;
|
|
1605
|
-
skip?: number | undefined;
|
|
1606
|
-
}, args_2: {
|
|
1607
|
-
timeout?: number | undefined;
|
|
1608
|
-
transaction?: any;
|
|
1609
|
-
skipCache?: boolean | undefined;
|
|
1610
|
-
} | undefined, ...args: unknown[]) => Promise<Record<string, any> | null>;
|
|
1611
|
-
beginTransaction: (...args: unknown[]) => Promise<any>;
|
|
1612
|
-
commit: (args_0: any, ...args: unknown[]) => Promise<void>;
|
|
1613
|
-
rollback: (args_0: any, ...args: unknown[]) => Promise<void>;
|
|
1614
|
-
syncSchema: (args_0: string, args_1: any, args_2: {
|
|
1615
|
-
timeout?: number | undefined;
|
|
1616
|
-
transaction?: any;
|
|
1617
|
-
skipCache?: boolean | undefined;
|
|
1618
|
-
} | undefined, ...args: unknown[]) => Promise<void>;
|
|
1619
|
-
dropTable: (args_0: string, args_1: {
|
|
1620
|
-
timeout?: number | undefined;
|
|
1621
|
-
transaction?: any;
|
|
1622
|
-
skipCache?: boolean | undefined;
|
|
1623
|
-
} | undefined, ...args: unknown[]) => Promise<void>;
|
|
1624
|
-
}>;
|
|
1625
|
-
/**
|
|
1626
|
-
* TypeScript types
|
|
1627
|
-
*/
|
|
1628
|
-
export type DriverOptions = z.infer<typeof DriverOptionsSchema>;
|
|
1629
|
-
export type DriverCapabilities = z.infer<typeof DriverCapabilitiesSchema>;
|
|
1630
|
-
export type DriverInterface = z.infer<typeof DriverInterfaceSchema>;
|
|
1631
|
-
//# sourceMappingURL=driver.zod.d.ts.map
|