@constructive-io/sdk 1.19.2 → 1.19.4
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 +2 -0
- package/admin/orm/index.d.ts +36 -69
- package/admin/orm/index.js +4 -32
- package/admin/orm/input-types.d.ts +426 -3916
- package/admin/orm/input-types.js +1 -37
- package/admin/orm/models/index.d.ts +2 -16
- package/admin/orm/models/index.js +5 -33
- package/admin/orm/models/myPendingAppInvitesRecord.d.ts +36 -0
- package/admin/orm/models/myPendingAppInvitesRecord.js +80 -0
- package/admin/orm/models/myPendingOrgInvitesRecord.d.ts +36 -0
- package/admin/orm/models/myPendingOrgInvitesRecord.js +80 -0
- package/admin/orm/mutation/index.d.ts +54 -5
- package/admin/orm/mutation/index.js +72 -0
- package/admin/orm/query/index.d.ts +5 -79
- package/admin/orm/query/index.js +8 -112
- package/agent/orm/index.d.ts +30 -0
- package/agent/orm/index.js +30 -0
- package/agent/orm/input-types.d.ts +6040 -1415
- package/agent/orm/input-types.js +34 -0
- package/agent/orm/models/agentEvent.d.ts +54 -0
- package/{admin/orm/models/orgProfile.js → agent/orm/models/agentEvent.js} +27 -27
- package/agent/orm/models/agentRun.d.ts +54 -0
- package/{usage/orm/models/appLevel.js → agent/orm/models/agentRun.js} +27 -27
- package/agent/orm/models/agentRunWorkspace.d.ts +54 -0
- package/{usage/orm/models/appEventAggregate.js → agent/orm/models/agentRunWorkspace.js} +27 -27
- package/agent/orm/models/index.d.ts +15 -0
- package/agent/orm/models/index.js +31 -1
- package/agent/orm/models/platformAgent.d.ts +54 -0
- package/{usage/orm/models/appLevelGrant.js → agent/orm/models/platformAgent.js} +27 -27
- package/agent/orm/models/platformAgentEvent.d.ts +54 -0
- package/{admin/orm/models/orgProfileTemplate.js → agent/orm/models/platformAgentEvent.js} +27 -27
- package/agent/orm/models/platformAgentMessage.d.ts +54 -0
- package/{admin/orm/models/appMembershipProfile.js → agent/orm/models/platformAgentMessage.js} +27 -27
- package/agent/orm/models/platformAgentPersona.d.ts +54 -0
- package/{admin/orm/models/orgCapabilityDefault.js → agent/orm/models/platformAgentPersona.js} +27 -27
- package/agent/orm/models/platformAgentPlan.d.ts +54 -0
- package/agent/orm/models/platformAgentPlan.js +104 -0
- package/agent/orm/models/platformAgentPrompt.d.ts +54 -0
- package/{usage/orm/models/appLevelRequirement.js → agent/orm/models/platformAgentPrompt.js} +27 -27
- package/agent/orm/models/platformAgentResource.d.ts +54 -0
- package/agent/orm/models/platformAgentResource.js +104 -0
- package/agent/orm/models/platformAgentResourceChunk.d.ts +54 -0
- package/agent/orm/models/platformAgentResourceChunk.js +104 -0
- package/agent/orm/models/platformAgentRun.d.ts +54 -0
- package/agent/orm/models/platformAgentRun.js +104 -0
- package/agent/orm/models/platformAgentRunWorkspace.d.ts +54 -0
- package/{admin/orm/models/appProfileDefinitionGrant.js → agent/orm/models/platformAgentRunWorkspace.js} +27 -27
- package/agent/orm/models/platformAgentTask.d.ts +54 -0
- package/agent/orm/models/platformAgentTask.js +104 -0
- package/agent/orm/models/platformAgentThread.d.ts +54 -0
- package/{usage/orm/models/billingUsageSummary.js → agent/orm/models/platformAgentThread.js} +27 -27
- package/agent/orm/mutation/index.d.ts +5 -4
- package/api/orm/index.d.ts +177 -22
- package/api/orm/index.js +16 -6
- package/api/orm/input-types.d.ts +2520 -1059
- package/api/orm/input-types.js +7 -4
- package/api/orm/models/astMigration.d.ts +36 -0
- package/api/orm/models/astMigration.js +80 -0
- package/api/orm/models/getSitePreviewsRecord.d.ts +30 -0
- package/api/orm/models/getSitePreviewsRecord.js +59 -0
- package/api/orm/models/identityProviderRegistry.d.ts +54 -0
- package/api/orm/models/identityProviderRegistry.js +104 -0
- package/api/orm/models/index.d.ts +8 -3
- package/api/orm/models/index.js +18 -8
- package/api/orm/models/platformGetSitePreviewsRecord.d.ts +30 -0
- package/api/orm/models/platformGetSitePreviewsRecord.js +59 -0
- package/api/orm/models/platformSiteRelease.d.ts +54 -0
- package/api/orm/models/platformSiteRelease.js +104 -0
- package/api/orm/models/redirect.d.ts +54 -0
- package/{usage/orm/models/appEvent.js → api/orm/models/redirect.js} +27 -30
- package/api/orm/models/siteRelease.d.ts +54 -0
- package/{usage/orm/models/meterSource.js → api/orm/models/siteRelease.js} +27 -27
- package/api/orm/models/sqlAction.d.ts +36 -0
- package/api/orm/models/sqlAction.js +80 -0
- package/api/orm/mutation/index.d.ts +170 -24
- package/api/orm/mutation/index.js +240 -24
- package/api/orm/query/index.d.ts +107 -11
- package/api/orm/query/index.js +177 -13
- package/auth/orm/index.d.ts +104 -0
- package/auth/orm/index.js +4 -0
- package/auth/orm/input-types.d.ts +1017 -238
- package/auth/orm/input-types.js +1 -0
- package/auth/orm/models/index.d.ts +2 -0
- package/auth/orm/models/index.js +5 -1
- package/auth/orm/models/principalEntity.d.ts +2 -20
- package/auth/orm/models/principalEntity.js +0 -24
- package/auth/orm/models/userSetting.d.ts +54 -0
- package/{usage/orm/models/meterCredit.js → auth/orm/models/userSetting.js} +27 -27
- package/auth/orm/models/userSettingsSecurity.d.ts +54 -0
- package/{admin/orm/models/appProfileCapability.js → auth/orm/models/userSettingsSecurity.js} +27 -27
- package/auth/orm/mutation/index.d.ts +158 -5
- package/auth/orm/mutation/index.js +228 -0
- package/auth/orm/query/index.d.ts +6 -1
- package/auth/orm/query/index.js +7 -0
- package/compute/orm/index.d.ts +208 -0
- package/compute/orm/index.js +98 -0
- package/compute/orm/input-types.d.ts +23534 -8853
- package/compute/orm/input-types.js +78 -0
- package/compute/orm/models/build.d.ts +54 -0
- package/{usage/orm/models/meter.js → compute/orm/models/build.js} +27 -27
- package/compute/orm/models/buildStep.d.ts +56 -0
- package/{usage/orm/models/planLimit.js → compute/orm/models/buildStep.js} +30 -27
- package/compute/orm/models/builderBinding.d.ts +54 -0
- package/{usage/orm/models/planMeterLimit.js → compute/orm/models/builderBinding.js} +27 -27
- package/compute/orm/models/databaseFunctionGraph.d.ts +54 -0
- package/compute/orm/models/databaseFunctionGraph.js +104 -0
- package/compute/orm/models/databaseFunctionGraphExecution.d.ts +56 -0
- package/compute/orm/models/databaseFunctionGraphExecution.js +107 -0
- package/compute/orm/models/databaseFunctionGraphExecutionNodeState.d.ts +56 -0
- package/compute/orm/models/databaseFunctionGraphExecutionNodeState.js +107 -0
- package/compute/orm/models/databaseFunctionGraphExecutionOutput.d.ts +56 -0
- package/compute/orm/models/databaseFunctionGraphExecutionOutput.js +107 -0
- package/compute/orm/models/databaseGraphCommit.d.ts +56 -0
- package/compute/orm/models/databaseGraphCommit.js +107 -0
- package/compute/orm/models/databaseGraphGetAllTreeNodesRecord.d.ts +30 -0
- package/compute/orm/models/databaseGraphGetAllTreeNodesRecord.js +59 -0
- package/compute/orm/models/databaseGraphObject.d.ts +56 -0
- package/compute/orm/models/databaseGraphObject.js +97 -0
- package/compute/orm/models/databaseGraphRef.d.ts +56 -0
- package/compute/orm/models/databaseGraphRef.js +107 -0
- package/compute/orm/models/databaseGraphStore.d.ts +54 -0
- package/{admin/orm/models/appProfileTemplate.js → compute/orm/models/databaseGraphStore.js} +27 -27
- package/compute/orm/models/image.d.ts +54 -0
- package/{api/orm/models/app.js → compute/orm/models/image.js} +27 -27
- package/compute/orm/models/imageGrant.d.ts +54 -0
- package/{admin/orm/models/appProfile.js → compute/orm/models/imageGrant.js} +27 -27
- package/compute/orm/models/index.d.ts +49 -0
- package/compute/orm/models/index.js +101 -2
- package/compute/orm/models/platformBuild.d.ts +54 -0
- package/{admin/orm/models/appCapability.js → compute/orm/models/platformBuild.js} +27 -27
- package/compute/orm/models/platformBuildStep.d.ts +56 -0
- package/compute/orm/models/platformBuildStep.js +107 -0
- package/compute/orm/models/platformBuilderBinding.d.ts +54 -0
- package/{admin/orm/models/appCapabilityDefault.js → compute/orm/models/platformBuilderBinding.js} +27 -27
- package/compute/orm/models/platformImage.d.ts +54 -0
- package/{admin/orm/models/orgCapability.js → compute/orm/models/platformImage.js} +27 -27
- package/compute/orm/models/platformImageGrant.d.ts +54 -0
- package/compute/orm/models/platformImageGrant.js +104 -0
- package/compute/orm/models/platformK8sResourceKind.d.ts +54 -0
- package/{modules/orm/models/configSecretsUserModule.js → compute/orm/models/platformK8sResourceKind.js} +27 -27
- package/compute/orm/models/platformK8sSpecRule.d.ts +54 -0
- package/compute/orm/models/platformK8sSpecRule.js +104 -0
- package/compute/orm/models/platformProposal.d.ts +54 -0
- package/compute/orm/models/platformProposal.js +104 -0
- package/compute/orm/models/platformProposalComment.d.ts +54 -0
- package/compute/orm/models/platformProposalComment.js +104 -0
- package/compute/orm/models/platformProposalFileView.d.ts +54 -0
- package/compute/orm/models/platformProposalFileView.js +104 -0
- package/compute/orm/models/platformProposalReaction.d.ts +54 -0
- package/compute/orm/models/platformProposalReaction.js +104 -0
- package/compute/orm/models/platformProposalReview.d.ts +54 -0
- package/compute/orm/models/platformProposalReview.js +104 -0
- package/compute/orm/models/platformProposalsChunk.d.ts +54 -0
- package/compute/orm/models/platformProposalsChunk.js +104 -0
- package/compute/orm/models/platformRegistry.d.ts +54 -0
- package/compute/orm/models/platformRegistry.js +104 -0
- package/compute/orm/models/platformRegistryBinding.d.ts +54 -0
- package/compute/orm/models/platformRegistryBinding.js +104 -0
- package/compute/orm/models/platformRegistryGrant.d.ts +54 -0
- package/compute/orm/models/platformRegistryGrant.js +104 -0
- package/compute/orm/models/platformRepository.d.ts +54 -0
- package/compute/orm/models/platformRepository.js +104 -0
- package/compute/orm/models/platformRepositoryEvent.d.ts +54 -0
- package/compute/orm/models/platformRepositoryEvent.js +104 -0
- package/compute/orm/models/platformRepositoryRequiredCheck.d.ts +54 -0
- package/compute/orm/models/platformRepositoryRequiredCheck.js +104 -0
- package/compute/orm/models/platformRepositoryWorkflow.d.ts +54 -0
- package/compute/orm/models/platformRepositoryWorkflow.js +104 -0
- package/compute/orm/models/platformResourceObservedStorage.d.ts +30 -0
- package/compute/orm/models/platformResourceObservedStorage.js +59 -0
- package/compute/orm/models/proposal.d.ts +54 -0
- package/compute/orm/models/proposal.js +104 -0
- package/compute/orm/models/proposalComment.d.ts +54 -0
- package/{admin/orm/models/appProfileGrant.js → compute/orm/models/proposalComment.js} +27 -27
- package/compute/orm/models/proposalFileView.d.ts +54 -0
- package/compute/orm/models/proposalFileView.js +104 -0
- package/compute/orm/models/proposalReaction.d.ts +54 -0
- package/{usage/orm/models/planSubscription.js → compute/orm/models/proposalReaction.js} +27 -27
- package/compute/orm/models/proposalReview.d.ts +54 -0
- package/compute/orm/models/proposalReview.js +104 -0
- package/compute/orm/models/proposalsChunk.d.ts +54 -0
- package/compute/orm/models/proposalsChunk.js +104 -0
- package/compute/orm/models/registry.d.ts +54 -0
- package/compute/orm/models/registry.js +104 -0
- package/compute/orm/models/registryBinding.d.ts +54 -0
- package/{modules/orm/models/httpRouteModule.js → compute/orm/models/registryBinding.js} +27 -27
- package/compute/orm/models/registryGrant.d.ts +54 -0
- package/{usage/orm/models/appEventType.js → compute/orm/models/registryGrant.js} +27 -27
- package/compute/orm/models/repository.d.ts +54 -0
- package/{api/orm/models/httpRoute.js → compute/orm/models/repository.js} +27 -27
- package/compute/orm/models/repositoryEvent.d.ts +54 -0
- package/{admin/orm/models/orgProfileGrant.js → compute/orm/models/repositoryEvent.js} +27 -27
- package/compute/orm/models/repositoryRequiredCheck.d.ts +54 -0
- package/compute/orm/models/repositoryRequiredCheck.js +104 -0
- package/compute/orm/models/repositoryWorkflow.d.ts +54 -0
- package/compute/orm/models/repositoryWorkflow.js +104 -0
- package/compute/orm/models/resourceObservedStorage.d.ts +30 -0
- package/compute/orm/models/resourceObservedStorage.js +59 -0
- package/compute/orm/mutation/index.d.ts +174 -5
- package/compute/orm/mutation/index.js +252 -0
- package/compute/orm/query/index.d.ts +8 -0
- package/compute/orm/query/index.js +12 -0
- package/config/orm/index.d.ts +48 -0
- package/config/orm/index.js +8 -0
- package/config/orm/input-types.d.ts +711 -41
- package/config/orm/models/appInternalSecret.d.ts +36 -0
- package/config/orm/models/appInternalSecret.js +80 -0
- package/config/orm/models/index.d.ts +4 -0
- package/config/orm/models/index.js +9 -1
- package/config/orm/models/internalConfig.d.ts +54 -0
- package/config/orm/models/internalConfig.js +104 -0
- package/config/orm/models/internalSecret.d.ts +36 -0
- package/config/orm/models/internalSecret.js +80 -0
- package/config/orm/models/platformInternalConfig.d.ts +54 -0
- package/config/orm/models/platformInternalConfig.js +104 -0
- package/config/orm/mutation/index.d.ts +70 -5
- package/config/orm/mutation/index.js +96 -0
- package/esm/admin/orm/index.d.ts +36 -69
- package/esm/admin/orm/index.js +4 -32
- package/esm/admin/orm/input-types.d.ts +426 -3916
- package/esm/admin/orm/input-types.js +1 -37
- package/esm/admin/orm/models/index.d.ts +2 -16
- package/esm/admin/orm/models/index.js +2 -16
- package/esm/admin/orm/models/myPendingAppInvitesRecord.d.ts +36 -0
- package/esm/admin/orm/models/myPendingAppInvitesRecord.js +76 -0
- package/esm/admin/orm/models/myPendingOrgInvitesRecord.d.ts +36 -0
- package/esm/admin/orm/models/myPendingOrgInvitesRecord.js +76 -0
- package/esm/admin/orm/mutation/index.d.ts +54 -5
- package/esm/admin/orm/mutation/index.js +72 -0
- package/esm/admin/orm/query/index.d.ts +5 -79
- package/esm/admin/orm/query/index.js +8 -112
- package/esm/agent/orm/index.d.ts +30 -0
- package/esm/agent/orm/index.js +30 -0
- package/esm/agent/orm/input-types.d.ts +6040 -1415
- package/esm/agent/orm/input-types.js +34 -0
- package/esm/agent/orm/models/agentEvent.d.ts +54 -0
- package/esm/{admin/orm/models/appProfile.js → agent/orm/models/agentEvent.js} +25 -25
- package/esm/agent/orm/models/agentRun.d.ts +54 -0
- package/esm/{usage/orm/models/appLevel.js → agent/orm/models/agentRun.js} +25 -25
- package/esm/agent/orm/models/agentRunWorkspace.d.ts +54 -0
- package/esm/{usage/orm/models/appEventAggregate.js → agent/orm/models/agentRunWorkspace.js} +25 -25
- package/esm/agent/orm/models/index.d.ts +15 -0
- package/esm/agent/orm/models/index.js +15 -0
- package/esm/agent/orm/models/platformAgent.d.ts +54 -0
- package/esm/{usage/orm/models/planLimit.js → agent/orm/models/platformAgent.js} +25 -25
- package/esm/agent/orm/models/platformAgentEvent.d.ts +54 -0
- package/esm/agent/orm/models/platformAgentEvent.js +100 -0
- package/esm/agent/orm/models/platformAgentMessage.d.ts +54 -0
- package/esm/{admin/orm/models/appMembershipProfile.js → agent/orm/models/platformAgentMessage.js} +25 -25
- package/esm/agent/orm/models/platformAgentPersona.d.ts +54 -0
- package/esm/{admin/orm/models/appCapabilityDefault.js → agent/orm/models/platformAgentPersona.js} +25 -25
- package/esm/agent/orm/models/platformAgentPlan.d.ts +54 -0
- package/esm/agent/orm/models/platformAgentPlan.js +100 -0
- package/esm/agent/orm/models/platformAgentPrompt.d.ts +54 -0
- package/esm/agent/orm/models/platformAgentPrompt.js +100 -0
- package/esm/agent/orm/models/platformAgentResource.d.ts +54 -0
- package/esm/agent/orm/models/platformAgentResource.js +100 -0
- package/esm/agent/orm/models/platformAgentResourceChunk.d.ts +54 -0
- package/esm/agent/orm/models/platformAgentResourceChunk.js +100 -0
- package/esm/agent/orm/models/platformAgentRun.d.ts +54 -0
- package/esm/{usage/orm/models/planSubscription.js → agent/orm/models/platformAgentRun.js} +25 -25
- package/esm/agent/orm/models/platformAgentRunWorkspace.d.ts +54 -0
- package/esm/agent/orm/models/platformAgentRunWorkspace.js +100 -0
- package/esm/agent/orm/models/platformAgentTask.d.ts +54 -0
- package/esm/agent/orm/models/platformAgentTask.js +100 -0
- package/esm/agent/orm/models/platformAgentThread.d.ts +54 -0
- package/esm/agent/orm/models/platformAgentThread.js +100 -0
- package/esm/agent/orm/mutation/index.d.ts +5 -4
- package/esm/api/orm/index.d.ts +177 -22
- package/esm/api/orm/index.js +16 -6
- package/esm/api/orm/input-types.d.ts +2520 -1059
- package/esm/api/orm/input-types.js +7 -4
- package/esm/api/orm/models/astMigration.d.ts +36 -0
- package/esm/api/orm/models/astMigration.js +76 -0
- package/esm/api/orm/models/getSitePreviewsRecord.d.ts +30 -0
- package/esm/api/orm/models/getSitePreviewsRecord.js +55 -0
- package/esm/api/orm/models/identityProviderRegistry.d.ts +54 -0
- package/esm/api/orm/models/identityProviderRegistry.js +100 -0
- package/esm/api/orm/models/index.d.ts +8 -3
- package/esm/api/orm/models/index.js +8 -3
- package/esm/api/orm/models/platformGetSitePreviewsRecord.d.ts +30 -0
- package/esm/api/orm/models/platformGetSitePreviewsRecord.js +55 -0
- package/esm/api/orm/models/platformSiteRelease.d.ts +54 -0
- package/esm/api/orm/models/platformSiteRelease.js +100 -0
- package/esm/api/orm/models/redirect.d.ts +54 -0
- package/esm/api/orm/models/redirect.js +100 -0
- package/esm/api/orm/models/siteRelease.d.ts +54 -0
- package/esm/{usage/orm/models/planPricing.js → api/orm/models/siteRelease.js} +25 -25
- package/esm/api/orm/models/sqlAction.d.ts +36 -0
- package/esm/api/orm/models/sqlAction.js +76 -0
- package/esm/api/orm/mutation/index.d.ts +170 -24
- package/esm/api/orm/mutation/index.js +240 -24
- package/esm/api/orm/query/index.d.ts +107 -11
- package/esm/api/orm/query/index.js +177 -13
- package/esm/auth/orm/index.d.ts +104 -0
- package/esm/auth/orm/index.js +4 -0
- package/esm/auth/orm/input-types.d.ts +1017 -238
- package/esm/auth/orm/input-types.js +1 -0
- package/esm/auth/orm/models/index.d.ts +2 -0
- package/esm/auth/orm/models/index.js +2 -0
- package/esm/auth/orm/models/principalEntity.d.ts +2 -20
- package/esm/auth/orm/models/principalEntity.js +1 -25
- package/esm/auth/orm/models/userSetting.d.ts +54 -0
- package/esm/auth/orm/models/userSetting.js +100 -0
- package/esm/auth/orm/models/userSettingsSecurity.d.ts +54 -0
- package/esm/{admin/orm/models/orgProfileCapability.js → auth/orm/models/userSettingsSecurity.js} +25 -25
- package/esm/auth/orm/mutation/index.d.ts +158 -5
- package/esm/auth/orm/mutation/index.js +228 -0
- package/esm/auth/orm/query/index.d.ts +6 -1
- package/esm/auth/orm/query/index.js +7 -0
- package/esm/compute/orm/index.d.ts +208 -0
- package/esm/compute/orm/index.js +98 -0
- package/esm/compute/orm/input-types.d.ts +23534 -8853
- package/esm/compute/orm/input-types.js +78 -0
- package/esm/compute/orm/models/build.d.ts +54 -0
- package/esm/{api/orm/models/app.js → compute/orm/models/build.js} +25 -25
- package/esm/compute/orm/models/buildStep.d.ts +56 -0
- package/esm/{api/orm/models/httpRoute.js → compute/orm/models/buildStep.js} +28 -25
- package/esm/compute/orm/models/builderBinding.d.ts +54 -0
- package/esm/{usage/orm/models/billingUsageSummary.js → compute/orm/models/builderBinding.js} +25 -25
- package/esm/compute/orm/models/databaseFunctionGraph.d.ts +54 -0
- package/esm/{admin/orm/models/orgProfileGrant.js → compute/orm/models/databaseFunctionGraph.js} +25 -25
- package/esm/compute/orm/models/databaseFunctionGraphExecution.d.ts +56 -0
- package/esm/compute/orm/models/databaseFunctionGraphExecution.js +103 -0
- package/esm/compute/orm/models/databaseFunctionGraphExecutionNodeState.d.ts +56 -0
- package/esm/compute/orm/models/databaseFunctionGraphExecutionNodeState.js +103 -0
- package/esm/compute/orm/models/databaseFunctionGraphExecutionOutput.d.ts +56 -0
- package/esm/compute/orm/models/databaseFunctionGraphExecutionOutput.js +103 -0
- package/esm/compute/orm/models/databaseGraphCommit.d.ts +56 -0
- package/esm/{usage/orm/models/appLevelRequirement.js → compute/orm/models/databaseGraphCommit.js} +28 -25
- package/esm/compute/orm/models/databaseGraphGetAllTreeNodesRecord.d.ts +30 -0
- package/esm/compute/orm/models/databaseGraphGetAllTreeNodesRecord.js +55 -0
- package/esm/compute/orm/models/databaseGraphObject.d.ts +56 -0
- package/esm/compute/orm/models/databaseGraphObject.js +93 -0
- package/esm/compute/orm/models/databaseGraphRef.d.ts +56 -0
- package/esm/{usage/orm/models/appEvent.js → compute/orm/models/databaseGraphRef.js} +27 -27
- package/esm/compute/orm/models/databaseGraphStore.d.ts +54 -0
- package/esm/{admin/orm/models/orgProfileTemplate.js → compute/orm/models/databaseGraphStore.js} +25 -25
- package/esm/compute/orm/models/image.d.ts +54 -0
- package/esm/compute/orm/models/image.js +100 -0
- package/esm/compute/orm/models/imageGrant.d.ts +54 -0
- package/esm/{admin/orm/models/orgProfile.js → compute/orm/models/imageGrant.js} +25 -25
- package/esm/compute/orm/models/index.d.ts +49 -0
- package/esm/compute/orm/models/index.js +49 -0
- package/esm/compute/orm/models/platformBuild.d.ts +54 -0
- package/esm/compute/orm/models/platformBuild.js +100 -0
- package/esm/compute/orm/models/platformBuildStep.d.ts +56 -0
- package/esm/compute/orm/models/platformBuildStep.js +103 -0
- package/esm/compute/orm/models/platformBuilderBinding.d.ts +54 -0
- package/esm/compute/orm/models/platformBuilderBinding.js +100 -0
- package/esm/compute/orm/models/platformImage.d.ts +54 -0
- package/esm/compute/orm/models/platformImage.js +100 -0
- package/esm/compute/orm/models/platformImageGrant.d.ts +54 -0
- package/esm/compute/orm/models/platformImageGrant.js +100 -0
- package/esm/compute/orm/models/platformK8sResourceKind.d.ts +54 -0
- package/esm/compute/orm/models/platformK8sResourceKind.js +100 -0
- package/esm/compute/orm/models/platformK8sSpecRule.d.ts +54 -0
- package/esm/compute/orm/models/platformK8sSpecRule.js +100 -0
- package/esm/compute/orm/models/platformProposal.d.ts +54 -0
- package/esm/compute/orm/models/platformProposal.js +100 -0
- package/esm/compute/orm/models/platformProposalComment.d.ts +54 -0
- package/esm/compute/orm/models/platformProposalComment.js +100 -0
- package/esm/compute/orm/models/platformProposalFileView.d.ts +54 -0
- package/esm/compute/orm/models/platformProposalFileView.js +100 -0
- package/esm/compute/orm/models/platformProposalReaction.d.ts +54 -0
- package/esm/compute/orm/models/platformProposalReaction.js +100 -0
- package/esm/compute/orm/models/platformProposalReview.d.ts +54 -0
- package/esm/compute/orm/models/platformProposalReview.js +100 -0
- package/esm/compute/orm/models/platformProposalsChunk.d.ts +54 -0
- package/esm/compute/orm/models/platformProposalsChunk.js +100 -0
- package/esm/compute/orm/models/platformRegistry.d.ts +54 -0
- package/esm/compute/orm/models/platformRegistry.js +100 -0
- package/esm/compute/orm/models/platformRegistryBinding.d.ts +54 -0
- package/esm/compute/orm/models/platformRegistryBinding.js +100 -0
- package/esm/compute/orm/models/platformRegistryGrant.d.ts +54 -0
- package/esm/compute/orm/models/platformRegistryGrant.js +100 -0
- package/esm/compute/orm/models/platformRepository.d.ts +54 -0
- package/esm/compute/orm/models/platformRepository.js +100 -0
- package/esm/compute/orm/models/platformRepositoryEvent.d.ts +54 -0
- package/esm/compute/orm/models/platformRepositoryEvent.js +100 -0
- package/esm/compute/orm/models/platformRepositoryRequiredCheck.d.ts +54 -0
- package/esm/compute/orm/models/platformRepositoryRequiredCheck.js +100 -0
- package/esm/compute/orm/models/platformRepositoryWorkflow.d.ts +54 -0
- package/esm/compute/orm/models/platformRepositoryWorkflow.js +100 -0
- package/esm/compute/orm/models/platformResourceObservedStorage.d.ts +30 -0
- package/esm/compute/orm/models/platformResourceObservedStorage.js +55 -0
- package/esm/compute/orm/models/proposal.d.ts +54 -0
- package/esm/{usage/orm/models/planCap.js → compute/orm/models/proposal.js} +25 -25
- package/esm/compute/orm/models/proposalComment.d.ts +54 -0
- package/esm/compute/orm/models/proposalComment.js +100 -0
- package/esm/compute/orm/models/proposalFileView.d.ts +54 -0
- package/esm/compute/orm/models/proposalFileView.js +100 -0
- package/esm/compute/orm/models/proposalReaction.d.ts +54 -0
- package/esm/compute/orm/models/proposalReaction.js +100 -0
- package/esm/compute/orm/models/proposalReview.d.ts +54 -0
- package/esm/compute/orm/models/proposalReview.js +100 -0
- package/esm/compute/orm/models/proposalsChunk.d.ts +54 -0
- package/esm/compute/orm/models/proposalsChunk.js +100 -0
- package/esm/compute/orm/models/registry.d.ts +54 -0
- package/esm/compute/orm/models/registry.js +100 -0
- package/esm/compute/orm/models/registryBinding.d.ts +54 -0
- package/esm/{modules/orm/models/httpRouteModule.js → compute/orm/models/registryBinding.js} +25 -25
- package/esm/compute/orm/models/registryGrant.d.ts +54 -0
- package/esm/{usage/orm/models/appLevelGrant.js → compute/orm/models/registryGrant.js} +25 -25
- package/esm/compute/orm/models/repository.d.ts +54 -0
- package/esm/{usage/orm/models/ledger.js → compute/orm/models/repository.js} +25 -28
- package/esm/compute/orm/models/repositoryEvent.d.ts +54 -0
- package/esm/{admin/orm/models/appProfileGrant.js → compute/orm/models/repositoryEvent.js} +25 -25
- package/esm/compute/orm/models/repositoryRequiredCheck.d.ts +54 -0
- package/esm/{modules/orm/models/configSecretsUserModule.js → compute/orm/models/repositoryRequiredCheck.js} +25 -25
- package/esm/compute/orm/models/repositoryWorkflow.d.ts +54 -0
- package/esm/{admin/orm/models/appProfileTemplate.js → compute/orm/models/repositoryWorkflow.js} +25 -25
- package/esm/compute/orm/models/resourceObservedStorage.d.ts +30 -0
- package/esm/compute/orm/models/resourceObservedStorage.js +55 -0
- package/esm/compute/orm/mutation/index.d.ts +174 -5
- package/esm/compute/orm/mutation/index.js +252 -0
- package/esm/compute/orm/query/index.d.ts +8 -0
- package/esm/compute/orm/query/index.js +12 -0
- package/esm/config/orm/index.d.ts +48 -0
- package/esm/config/orm/index.js +8 -0
- package/esm/config/orm/input-types.d.ts +711 -41
- package/esm/config/orm/models/appInternalSecret.d.ts +36 -0
- package/esm/config/orm/models/appInternalSecret.js +76 -0
- package/esm/config/orm/models/index.d.ts +4 -0
- package/esm/config/orm/models/index.js +4 -0
- package/esm/config/orm/models/internalConfig.d.ts +54 -0
- package/esm/config/orm/models/internalConfig.js +100 -0
- package/esm/config/orm/models/internalSecret.d.ts +36 -0
- package/esm/config/orm/models/internalSecret.js +76 -0
- package/esm/config/orm/models/platformInternalConfig.d.ts +54 -0
- package/esm/config/orm/models/platformInternalConfig.js +100 -0
- package/esm/config/orm/mutation/index.d.ts +70 -5
- package/esm/config/orm/mutation/index.js +96 -0
- package/esm/index.d.ts +2 -0
- package/esm/index.js +2 -0
- package/esm/infra/orm/index.d.ts +17 -0
- package/esm/infra/orm/index.js +2 -0
- package/esm/infra/orm/input-types.d.ts +297 -36
- package/esm/infra/orm/models/contentPreset.d.ts +54 -0
- package/esm/{admin/orm/models/appCapability.js → infra/orm/models/contentPreset.js} +25 -25
- package/esm/infra/orm/models/index.d.ts +1 -0
- package/esm/infra/orm/models/index.js +1 -0
- package/esm/infra/orm/mutation/index.d.ts +30 -5
- package/esm/infra/orm/mutation/index.js +36 -0
- package/esm/modules/orm/index.d.ts +14 -4
- package/esm/modules/orm/index.js +14 -4
- package/esm/modules/orm/input-types.d.ts +2752 -747
- package/esm/modules/orm/input-types.js +1 -5
- package/esm/modules/orm/models/clusterModule.d.ts +54 -0
- package/esm/{admin/orm/models/orgCapability.js → modules/orm/models/clusterModule.js} +25 -25
- package/esm/modules/orm/models/imageModule.d.ts +54 -0
- package/esm/modules/orm/models/imageModule.js +100 -0
- package/esm/modules/orm/models/index.d.ts +7 -2
- package/esm/modules/orm/models/index.js +7 -2
- package/esm/modules/orm/models/internalConfigModule.d.ts +54 -0
- package/esm/{admin/orm/models/orgMembershipProfile.js → modules/orm/models/internalConfigModule.js} +25 -25
- package/esm/modules/orm/models/k8sAdmissionModule.d.ts +54 -0
- package/esm/modules/orm/models/k8sAdmissionModule.js +100 -0
- package/esm/modules/orm/models/machineModule.d.ts +54 -0
- package/esm/{usage/orm/models/meterCredit.js → modules/orm/models/machineModule.js} +25 -25
- package/esm/modules/orm/models/refusalLogModule.d.ts +54 -0
- package/esm/modules/orm/models/refusalLogModule.js +100 -0
- package/esm/modules/orm/models/repositoryModule.d.ts +54 -0
- package/esm/modules/orm/models/repositoryModule.js +100 -0
- package/esm/modules/orm/mutation/index.d.ts +6 -5
- package/esm/objects/orm/input-types.d.ts +11 -18
- package/esm/objects/orm/mutation/index.d.ts +5 -4
- package/esm/remote/index.d.ts +5 -0
- package/esm/remote/index.js +5 -0
- package/esm/remote/orm/client.d.ts +97 -0
- package/esm/remote/orm/client.js +155 -0
- package/esm/remote/orm/index.d.ts +50 -0
- package/esm/remote/orm/index.js +47 -0
- package/esm/remote/orm/input-types.d.ts +1482 -0
- package/esm/remote/orm/input-types.js +9 -0
- package/esm/remote/orm/models/index.d.ts +8 -0
- package/esm/remote/orm/models/index.js +8 -0
- package/esm/remote/orm/models/machine.d.ts +54 -0
- package/esm/{usage/orm/models/meter.js → remote/orm/models/machine.js} +25 -25
- package/esm/remote/orm/models/machineMessage.d.ts +56 -0
- package/esm/{usage/orm/models/meterDefault.js → remote/orm/models/machineMessage.js} +28 -25
- package/esm/remote/orm/models/machineSession.d.ts +54 -0
- package/esm/{usage/orm/models/meterSource.js → remote/orm/models/machineSession.js} +25 -25
- package/esm/remote/orm/mutation/index.d.ts +35 -0
- package/esm/remote/orm/mutation/index.js +30 -0
- package/esm/remote/orm/query-builder.d.ts +110 -0
- package/esm/remote/orm/query-builder.js +705 -0
- package/esm/remote/orm/realtime.d.ts +142 -0
- package/esm/remote/orm/realtime.js +100 -0
- package/esm/remote/orm/select-types.d.ts +125 -0
- package/esm/remote/orm/select-types.js +1 -0
- package/esm/remote/orm/types.d.ts +6 -0
- package/esm/remote/orm/types.js +7 -0
- package/esm/storage/index.d.ts +5 -0
- package/esm/storage/index.js +5 -0
- package/esm/storage/orm/client.d.ts +97 -0
- package/esm/storage/orm/client.js +155 -0
- package/esm/storage/orm/index.d.ts +77 -0
- package/esm/storage/orm/index.js +49 -0
- package/esm/storage/orm/input-types.d.ts +2076 -0
- package/esm/storage/orm/input-types.js +11 -0
- package/esm/storage/orm/models/bucket.d.ts +54 -0
- package/esm/storage/orm/models/bucket.js +100 -0
- package/esm/storage/orm/models/file.d.ts +54 -0
- package/esm/{usage/orm/models/plan.js → storage/orm/models/file.js} +25 -25
- package/esm/storage/orm/models/index.d.ts +9 -0
- package/esm/storage/orm/models/index.js +9 -0
- package/esm/storage/orm/models/platformBucket.d.ts +54 -0
- package/esm/{usage/orm/models/planMeterLimit.js → storage/orm/models/platformBucket.js} +25 -25
- package/esm/storage/orm/models/platformFile.d.ts +54 -0
- package/esm/{usage/orm/models/planOverride.js → storage/orm/models/platformFile.js} +25 -25
- package/esm/storage/orm/mutation/index.d.ts +91 -0
- package/esm/storage/orm/mutation/index.js +90 -0
- package/esm/storage/orm/query-builder.d.ts +110 -0
- package/esm/storage/orm/query-builder.js +705 -0
- package/esm/storage/orm/realtime.d.ts +142 -0
- package/esm/storage/orm/realtime.js +100 -0
- package/esm/storage/orm/select-types.d.ts +125 -0
- package/esm/storage/orm/select-types.js +1 -0
- package/esm/storage/orm/types.d.ts +6 -0
- package/esm/storage/orm/types.js +7 -0
- package/esm/usage/orm/index.d.ts +0 -85
- package/esm/usage/orm/index.js +0 -40
- package/esm/usage/orm/input-types.d.ts +130 -3767
- package/esm/usage/orm/input-types.js +0 -10
- package/esm/usage/orm/models/index.d.ts +0 -20
- package/esm/usage/orm/models/index.js +0 -20
- package/esm/usage/orm/mutation/index.d.ts +6 -53
- package/esm/usage/orm/mutation/index.js +0 -72
- package/esm/usage/orm/query/index.d.ts +0 -33
- package/esm/usage/orm/query/index.js +0 -51
- package/index.d.ts +2 -0
- package/index.js +3 -1
- package/infra/orm/index.d.ts +17 -0
- package/infra/orm/index.js +2 -0
- package/infra/orm/input-types.d.ts +297 -36
- package/infra/orm/models/contentPreset.d.ts +54 -0
- package/infra/orm/models/contentPreset.js +104 -0
- package/infra/orm/models/index.d.ts +1 -0
- package/infra/orm/models/index.js +3 -1
- package/infra/orm/mutation/index.d.ts +30 -5
- package/infra/orm/mutation/index.js +36 -0
- package/modules/orm/index.d.ts +14 -4
- package/modules/orm/index.js +14 -4
- package/modules/orm/input-types.d.ts +2752 -747
- package/modules/orm/input-types.js +1 -5
- package/modules/orm/models/clusterModule.d.ts +54 -0
- package/modules/orm/models/clusterModule.js +104 -0
- package/modules/orm/models/imageModule.d.ts +54 -0
- package/{usage/orm/models/planPricing.js → modules/orm/models/imageModule.js} +27 -27
- package/modules/orm/models/index.d.ts +7 -2
- package/modules/orm/models/index.js +16 -6
- package/modules/orm/models/internalConfigModule.d.ts +54 -0
- package/{admin/orm/models/orgMembershipProfile.js → modules/orm/models/internalConfigModule.js} +27 -27
- package/modules/orm/models/k8sAdmissionModule.d.ts +54 -0
- package/modules/orm/models/k8sAdmissionModule.js +104 -0
- package/modules/orm/models/machineModule.d.ts +54 -0
- package/modules/orm/models/machineModule.js +104 -0
- package/modules/orm/models/refusalLogModule.d.ts +54 -0
- package/modules/orm/models/refusalLogModule.js +104 -0
- package/modules/orm/models/repositoryModule.d.ts +54 -0
- package/modules/orm/models/repositoryModule.js +104 -0
- package/modules/orm/mutation/index.d.ts +6 -5
- package/objects/orm/input-types.d.ts +11 -18
- package/objects/orm/mutation/index.d.ts +5 -4
- package/package.json +5 -5
- package/remote/index.d.ts +5 -0
- package/remote/index.js +21 -0
- package/remote/orm/client.d.ts +97 -0
- package/remote/orm/client.js +162 -0
- package/remote/orm/index.d.ts +50 -0
- package/remote/orm/index.js +69 -0
- package/remote/orm/input-types.d.ts +1482 -0
- package/remote/orm/input-types.js +12 -0
- package/remote/orm/models/index.d.ts +8 -0
- package/remote/orm/models/index.js +14 -0
- package/remote/orm/models/machine.d.ts +54 -0
- package/{usage/orm/models/planCap.js → remote/orm/models/machine.js} +27 -27
- package/remote/orm/models/machineMessage.d.ts +56 -0
- package/remote/orm/models/machineMessage.js +107 -0
- package/remote/orm/models/machineSession.d.ts +54 -0
- package/{usage/orm/models/meterDefault.js → remote/orm/models/machineSession.js} +27 -27
- package/remote/orm/mutation/index.d.ts +35 -0
- package/remote/orm/mutation/index.js +33 -0
- package/remote/orm/query-builder.d.ts +110 -0
- package/remote/orm/query-builder.js +757 -0
- package/remote/orm/realtime.d.ts +142 -0
- package/remote/orm/realtime.js +104 -0
- package/remote/orm/select-types.d.ts +125 -0
- package/remote/orm/select-types.js +2 -0
- package/remote/orm/types.d.ts +6 -0
- package/remote/orm/types.js +23 -0
- package/storage/index.d.ts +5 -0
- package/storage/index.js +21 -0
- package/storage/orm/client.d.ts +97 -0
- package/storage/orm/client.js +162 -0
- package/storage/orm/index.d.ts +77 -0
- package/storage/orm/index.js +71 -0
- package/storage/orm/input-types.d.ts +2076 -0
- package/storage/orm/input-types.js +14 -0
- package/storage/orm/models/bucket.d.ts +54 -0
- package/{usage/orm/models/ledger.js → storage/orm/models/bucket.js} +27 -30
- package/storage/orm/models/file.d.ts +54 -0
- package/{usage/orm/models/plan.js → storage/orm/models/file.js} +27 -27
- package/storage/orm/models/index.d.ts +9 -0
- package/storage/orm/models/index.js +16 -0
- package/storage/orm/models/platformBucket.d.ts +54 -0
- package/storage/orm/models/platformBucket.js +104 -0
- package/storage/orm/models/platformFile.d.ts +54 -0
- package/{api/orm/models/appComponent.js → storage/orm/models/platformFile.js} +27 -27
- package/storage/orm/mutation/index.d.ts +91 -0
- package/storage/orm/mutation/index.js +93 -0
- package/storage/orm/query-builder.d.ts +110 -0
- package/storage/orm/query-builder.js +757 -0
- package/storage/orm/realtime.d.ts +142 -0
- package/storage/orm/realtime.js +104 -0
- package/storage/orm/select-types.d.ts +125 -0
- package/storage/orm/select-types.js +2 -0
- package/storage/orm/types.d.ts +6 -0
- package/storage/orm/types.js +23 -0
- package/usage/orm/index.d.ts +0 -85
- package/usage/orm/index.js +0 -40
- package/usage/orm/input-types.d.ts +130 -3767
- package/usage/orm/input-types.js +0 -10
- package/usage/orm/models/index.d.ts +0 -20
- package/usage/orm/models/index.js +1 -41
- package/usage/orm/mutation/index.d.ts +6 -53
- package/usage/orm/mutation/index.js +0 -72
- package/usage/orm/query/index.d.ts +0 -33
- package/usage/orm/query/index.js +0 -51
- package/admin/orm/models/appCapability.d.ts +0 -54
- package/admin/orm/models/appCapabilityDefault.d.ts +0 -54
- package/admin/orm/models/appMembershipProfile.d.ts +0 -54
- package/admin/orm/models/appProfile.d.ts +0 -54
- package/admin/orm/models/appProfileCapability.d.ts +0 -54
- package/admin/orm/models/appProfileDefinitionGrant.d.ts +0 -54
- package/admin/orm/models/appProfileGrant.d.ts +0 -54
- package/admin/orm/models/appProfileTemplate.d.ts +0 -54
- package/admin/orm/models/orgCapability.d.ts +0 -54
- package/admin/orm/models/orgCapabilityDefault.d.ts +0 -54
- package/admin/orm/models/orgMembershipProfile.d.ts +0 -54
- package/admin/orm/models/orgProfile.d.ts +0 -54
- package/admin/orm/models/orgProfileCapability.d.ts +0 -54
- package/admin/orm/models/orgProfileCapability.js +0 -104
- package/admin/orm/models/orgProfileDefinitionGrant.d.ts +0 -54
- package/admin/orm/models/orgProfileDefinitionGrant.js +0 -104
- package/admin/orm/models/orgProfileGrant.d.ts +0 -54
- package/admin/orm/models/orgProfileTemplate.d.ts +0 -54
- package/api/orm/models/app.d.ts +0 -54
- package/api/orm/models/appComponent.d.ts +0 -54
- package/api/orm/models/httpRoute.d.ts +0 -54
- package/esm/admin/orm/models/appCapability.d.ts +0 -54
- package/esm/admin/orm/models/appCapabilityDefault.d.ts +0 -54
- package/esm/admin/orm/models/appMembershipProfile.d.ts +0 -54
- package/esm/admin/orm/models/appProfile.d.ts +0 -54
- package/esm/admin/orm/models/appProfileCapability.d.ts +0 -54
- package/esm/admin/orm/models/appProfileCapability.js +0 -100
- package/esm/admin/orm/models/appProfileDefinitionGrant.d.ts +0 -54
- package/esm/admin/orm/models/appProfileDefinitionGrant.js +0 -100
- package/esm/admin/orm/models/appProfileGrant.d.ts +0 -54
- package/esm/admin/orm/models/appProfileTemplate.d.ts +0 -54
- package/esm/admin/orm/models/orgCapability.d.ts +0 -54
- package/esm/admin/orm/models/orgCapabilityDefault.d.ts +0 -54
- package/esm/admin/orm/models/orgCapabilityDefault.js +0 -100
- package/esm/admin/orm/models/orgMembershipProfile.d.ts +0 -54
- package/esm/admin/orm/models/orgProfile.d.ts +0 -54
- package/esm/admin/orm/models/orgProfileCapability.d.ts +0 -54
- package/esm/admin/orm/models/orgProfileDefinitionGrant.d.ts +0 -54
- package/esm/admin/orm/models/orgProfileDefinitionGrant.js +0 -100
- package/esm/admin/orm/models/orgProfileGrant.d.ts +0 -54
- package/esm/admin/orm/models/orgProfileTemplate.d.ts +0 -54
- package/esm/api/orm/models/app.d.ts +0 -54
- package/esm/api/orm/models/appComponent.d.ts +0 -54
- package/esm/api/orm/models/appComponent.js +0 -100
- package/esm/api/orm/models/httpRoute.d.ts +0 -54
- package/esm/modules/orm/models/configSecretsUserModule.d.ts +0 -54
- package/esm/modules/orm/models/httpRouteModule.d.ts +0 -54
- package/esm/usage/orm/models/appAchievementReward.d.ts +0 -54
- package/esm/usage/orm/models/appAchievementReward.js +0 -100
- package/esm/usage/orm/models/appEvent.d.ts +0 -56
- package/esm/usage/orm/models/appEventAggregate.d.ts +0 -54
- package/esm/usage/orm/models/appEventType.d.ts +0 -54
- package/esm/usage/orm/models/appEventType.js +0 -100
- package/esm/usage/orm/models/appLevel.d.ts +0 -54
- package/esm/usage/orm/models/appLevelGrant.d.ts +0 -54
- package/esm/usage/orm/models/appLevelRequirement.d.ts +0 -54
- package/esm/usage/orm/models/billingUsageSummary.d.ts +0 -54
- package/esm/usage/orm/models/ledger.d.ts +0 -56
- package/esm/usage/orm/models/meter.d.ts +0 -54
- package/esm/usage/orm/models/meterCredit.d.ts +0 -54
- package/esm/usage/orm/models/meterDefault.d.ts +0 -54
- package/esm/usage/orm/models/meterSource.d.ts +0 -54
- package/esm/usage/orm/models/plan.d.ts +0 -54
- package/esm/usage/orm/models/planCap.d.ts +0 -54
- package/esm/usage/orm/models/planLimit.d.ts +0 -54
- package/esm/usage/orm/models/planMeterLimit.d.ts +0 -54
- package/esm/usage/orm/models/planOverride.d.ts +0 -54
- package/esm/usage/orm/models/planPricing.d.ts +0 -54
- package/esm/usage/orm/models/planSubscription.d.ts +0 -54
- package/modules/orm/models/configSecretsUserModule.d.ts +0 -54
- package/modules/orm/models/httpRouteModule.d.ts +0 -54
- package/usage/orm/models/appAchievementReward.d.ts +0 -54
- package/usage/orm/models/appAchievementReward.js +0 -104
- package/usage/orm/models/appEvent.d.ts +0 -56
- package/usage/orm/models/appEventAggregate.d.ts +0 -54
- package/usage/orm/models/appEventType.d.ts +0 -54
- package/usage/orm/models/appLevel.d.ts +0 -54
- package/usage/orm/models/appLevelGrant.d.ts +0 -54
- package/usage/orm/models/appLevelRequirement.d.ts +0 -54
- package/usage/orm/models/billingUsageSummary.d.ts +0 -54
- package/usage/orm/models/ledger.d.ts +0 -56
- package/usage/orm/models/meter.d.ts +0 -54
- package/usage/orm/models/meterCredit.d.ts +0 -54
- package/usage/orm/models/meterDefault.d.ts +0 -54
- package/usage/orm/models/meterSource.d.ts +0 -54
- package/usage/orm/models/plan.d.ts +0 -54
- package/usage/orm/models/planCap.d.ts +0 -54
- package/usage/orm/models/planLimit.d.ts +0 -54
- package/usage/orm/models/planMeterLimit.d.ts +0 -54
- package/usage/orm/models/planOverride.d.ts +0 -54
- package/usage/orm/models/planOverride.js +0 -104
- package/usage/orm/models/planPricing.d.ts +0 -54
- package/usage/orm/models/planSubscription.d.ts +0 -54
|
@@ -9,7 +9,7 @@ import type { InferSelectResult, StrictSelect } from '../select-types';
|
|
|
9
9
|
import type { ConstructBlueprintInput, CopyTemplateToBlueprintInput, ProvisionBucketInput, ConstructBlueprintPayload, CopyTemplateToBlueprintPayload, ProvisionBucketPayload, ConstructBlueprintPayloadSelect, CopyTemplateToBlueprintPayloadSelect, ProvisionBucketPayloadSelect } from '../input-types';
|
|
10
10
|
/**
|
|
11
11
|
* Variables for constructBlueprint
|
|
12
|
-
* Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure.
|
|
12
|
+
* Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row's recorded table ids and raises when it matches nothing instead of creating an empty table. After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure.
|
|
13
13
|
*/
|
|
14
14
|
export interface ConstructBlueprintVariables {
|
|
15
15
|
input: ConstructBlueprintInput;
|
|
@@ -23,10 +23,11 @@ export interface CopyTemplateToBlueprintVariables {
|
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* Variables for provisionBucket
|
|
26
|
-
*
|
|
27
|
-
Reads the bucket config via RLS, then
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
* Reconcile an S3 bucket for a logical bucket in the database.
|
|
27
|
+
Reads the bucket config via RLS, then enqueues the same
|
|
28
|
+
storage:provision_bucket job used by the INSERT trigger. This is
|
|
29
|
+
idempotent for an already-reconciled bucket; enqueue failures become
|
|
30
|
+
GraphQL errors.
|
|
30
31
|
*/
|
|
31
32
|
export interface ProvisionBucketVariables {
|
|
32
33
|
input: ProvisionBucketInput;
|
|
@@ -718,26 +718,19 @@ export type InsertNodesAtPathsPayloadSelect = {
|
|
|
718
718
|
result?: boolean;
|
|
719
719
|
};
|
|
720
720
|
export interface ProvisionBucketPayload {
|
|
721
|
-
/** The
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
error?: string | null;
|
|
729
|
-
/** The storage provider used */
|
|
730
|
-
provider: string;
|
|
731
|
-
/** Whether provisioning succeeded */
|
|
732
|
-
success: boolean;
|
|
721
|
+
/** The logical bucket row that was queued for reconciliation. */
|
|
722
|
+
bucketId: string;
|
|
723
|
+
bucketKey: string;
|
|
724
|
+
/** The reconciler job enqueued to provision this bucket. */
|
|
725
|
+
jobId: string;
|
|
726
|
+
/** The physical bucket name already recorded, or null when reconciliation has not completed. */
|
|
727
|
+
physicalName?: string | null;
|
|
733
728
|
}
|
|
734
729
|
export type ProvisionBucketPayloadSelect = {
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
provider?: boolean;
|
|
740
|
-
success?: boolean;
|
|
730
|
+
bucketId?: boolean;
|
|
731
|
+
bucketKey?: boolean;
|
|
732
|
+
jobId?: boolean;
|
|
733
|
+
physicalName?: boolean;
|
|
741
734
|
};
|
|
742
735
|
export interface SetAndCommitPayload {
|
|
743
736
|
clientMutationId?: string | null;
|
|
@@ -18,10 +18,11 @@ export interface InsertNodesAtPathsVariables {
|
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
20
|
* Variables for provisionBucket
|
|
21
|
-
*
|
|
22
|
-
Reads the bucket config via RLS, then
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
* Reconcile an S3 bucket for a logical bucket in the database.
|
|
22
|
+
Reads the bucket config via RLS, then enqueues the same
|
|
23
|
+
storage:provision_bucket job used by the INSERT trigger. This is
|
|
24
|
+
idempotent for an already-reconciled bucket; enqueue failures become
|
|
25
|
+
GraphQL errors.
|
|
25
26
|
*/
|
|
26
27
|
export interface ProvisionBucketVariables {
|
|
27
28
|
input: ProvisionBucketInput;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ORM Client - Runtime GraphQL executor
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-query/runtime';
|
|
7
|
+
import type { ConnectionState, ConnectionStateListener, RealtimeConfig, SubscriptionEvent, SubscriptionFieldMeta, Unsubscribe } from './realtime';
|
|
8
|
+
export type { GraphQLAdapter, GraphQLError, QueryResult, } from '@constructive-io/graphql-query/runtime';
|
|
9
|
+
export type { ConnectionState, ConnectionStateListener, RealtimeConfig, SubscribeOptions, SubscriptionEvent, SubscriptionFieldMeta, SubscriptionOperation, Unsubscribe, WsClient, } from './realtime';
|
|
10
|
+
export { RealtimeManager } from './realtime';
|
|
11
|
+
/**
|
|
12
|
+
* Default adapter that uses fetch for HTTP requests.
|
|
13
|
+
*
|
|
14
|
+
* When no custom fetch is provided, uses @constructive-io/fetch which
|
|
15
|
+
* handles *.localhost DNS rewriting and Host header preservation in
|
|
16
|
+
* Node.js. Pass a custom fetch to override for test mocking or custom
|
|
17
|
+
* proxy/credentials.
|
|
18
|
+
*/
|
|
19
|
+
export declare class FetchAdapter implements GraphQLAdapter {
|
|
20
|
+
private endpoint;
|
|
21
|
+
private headers;
|
|
22
|
+
private fetchFn;
|
|
23
|
+
constructor(endpoint: string, headers?: Record<string, string>, fetchFn?: typeof globalThis.fetch);
|
|
24
|
+
execute<T>(document: string, variables?: Record<string, unknown>): Promise<QueryResult<T>>;
|
|
25
|
+
setHeaders(headers: Record<string, string>): void;
|
|
26
|
+
getEndpoint(): string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Configuration for creating an ORM client.
|
|
30
|
+
* Either provide endpoint (and optional headers/fetch) for HTTP requests,
|
|
31
|
+
* or provide a custom adapter for alternative execution strategies.
|
|
32
|
+
*/
|
|
33
|
+
export interface OrmClientConfig {
|
|
34
|
+
/** GraphQL endpoint URL (required if adapter not provided) */
|
|
35
|
+
endpoint?: string;
|
|
36
|
+
/** Default headers for HTTP requests (only used with endpoint) */
|
|
37
|
+
headers?: Record<string, string>;
|
|
38
|
+
/**
|
|
39
|
+
* Custom fetch implementation. Defaults to createFetch() from
|
|
40
|
+
* @constructive-io/graphql-query/runtime which handles *.localhost
|
|
41
|
+
* DNS and Host headers in Node.js. Pass your own for test mocking
|
|
42
|
+
* or custom proxy/credentials.
|
|
43
|
+
*/
|
|
44
|
+
fetch?: typeof globalThis.fetch;
|
|
45
|
+
/** Custom adapter for GraphQL execution (overrides endpoint/headers/fetch) */
|
|
46
|
+
adapter?: GraphQLAdapter;
|
|
47
|
+
/**
|
|
48
|
+
* Optional realtime (WebSocket) configuration.
|
|
49
|
+
* When provided, enables subscription methods on models.
|
|
50
|
+
* The WebSocket connection is created lazily on first subscribe().
|
|
51
|
+
*/
|
|
52
|
+
realtime?: RealtimeConfig;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Error thrown when GraphQL request fails
|
|
56
|
+
*/
|
|
57
|
+
export declare class GraphQLRequestError extends Error {
|
|
58
|
+
readonly errors: GraphQLError[];
|
|
59
|
+
readonly data: unknown;
|
|
60
|
+
constructor(errors: GraphQLError[], data?: unknown);
|
|
61
|
+
}
|
|
62
|
+
export declare class OrmClient {
|
|
63
|
+
private adapter;
|
|
64
|
+
private realtimeManager?;
|
|
65
|
+
constructor(config: OrmClientConfig);
|
|
66
|
+
execute<T>(document: string, variables?: Record<string, unknown>): Promise<QueryResult<T>>;
|
|
67
|
+
/**
|
|
68
|
+
* Subscribe to a GraphQL subscription operation.
|
|
69
|
+
* Used by generated model subscribe() methods.
|
|
70
|
+
* @throws Error if realtime is not configured
|
|
71
|
+
*/
|
|
72
|
+
subscribe<T>(meta: SubscriptionFieldMeta, document: string, variables: Record<string, unknown>, options: {
|
|
73
|
+
onEvent: (event: SubscriptionEvent<T>) => void;
|
|
74
|
+
onError?: (error: Error) => void;
|
|
75
|
+
onComplete?: () => void;
|
|
76
|
+
}): Unsubscribe;
|
|
77
|
+
/**
|
|
78
|
+
* Set headers for requests.
|
|
79
|
+
* Only works if the adapter supports headers.
|
|
80
|
+
*/
|
|
81
|
+
setHeaders(headers: Record<string, string>): void;
|
|
82
|
+
/**
|
|
83
|
+
* Get the endpoint URL.
|
|
84
|
+
* Returns empty string if the adapter doesn't have an endpoint.
|
|
85
|
+
*/
|
|
86
|
+
getEndpoint(): string;
|
|
87
|
+
/** Get current WebSocket connection state */
|
|
88
|
+
getConnectionState(): ConnectionState;
|
|
89
|
+
/** Register a listener for WebSocket connection state changes */
|
|
90
|
+
onConnectionStateChange(listener: ConnectionStateListener): Unsubscribe;
|
|
91
|
+
/** Number of active subscriptions */
|
|
92
|
+
getActiveSubscriptionCount(): number;
|
|
93
|
+
/** Whether realtime is configured */
|
|
94
|
+
get isRealtimeEnabled(): boolean;
|
|
95
|
+
/** Dispose the realtime manager (close WebSocket) */
|
|
96
|
+
dispose(): void;
|
|
97
|
+
}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { createFetch } from '@constructive-io/graphql-query/runtime';
|
|
2
|
+
import { RealtimeManager } from './realtime';
|
|
3
|
+
export { RealtimeManager } from './realtime';
|
|
4
|
+
/**
|
|
5
|
+
* Default adapter that uses fetch for HTTP requests.
|
|
6
|
+
*
|
|
7
|
+
* When no custom fetch is provided, uses @constructive-io/fetch which
|
|
8
|
+
* handles *.localhost DNS rewriting and Host header preservation in
|
|
9
|
+
* Node.js. Pass a custom fetch to override for test mocking or custom
|
|
10
|
+
* proxy/credentials.
|
|
11
|
+
*/
|
|
12
|
+
export class FetchAdapter {
|
|
13
|
+
endpoint;
|
|
14
|
+
headers;
|
|
15
|
+
fetchFn;
|
|
16
|
+
constructor(endpoint, headers, fetchFn) {
|
|
17
|
+
this.endpoint = endpoint;
|
|
18
|
+
this.headers = headers ?? {};
|
|
19
|
+
this.fetchFn = (fetchFn ?? createFetch()).bind(globalThis);
|
|
20
|
+
}
|
|
21
|
+
async execute(document, variables) {
|
|
22
|
+
const response = await this.fetchFn(this.endpoint, {
|
|
23
|
+
method: 'POST',
|
|
24
|
+
headers: {
|
|
25
|
+
'Content-Type': 'application/json',
|
|
26
|
+
Accept: 'application/json',
|
|
27
|
+
...this.headers,
|
|
28
|
+
},
|
|
29
|
+
body: JSON.stringify({
|
|
30
|
+
query: document,
|
|
31
|
+
variables: variables ?? {},
|
|
32
|
+
}),
|
|
33
|
+
});
|
|
34
|
+
if (!response.ok) {
|
|
35
|
+
return {
|
|
36
|
+
ok: false,
|
|
37
|
+
data: null,
|
|
38
|
+
errors: [{ message: `HTTP ${response.status}: ${response.statusText}` }],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
const json = (await response.json());
|
|
42
|
+
if (json.errors && json.errors.length > 0) {
|
|
43
|
+
return {
|
|
44
|
+
ok: false,
|
|
45
|
+
data: null,
|
|
46
|
+
errors: json.errors,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
ok: true,
|
|
51
|
+
data: json.data,
|
|
52
|
+
errors: undefined,
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
setHeaders(headers) {
|
|
56
|
+
this.headers = { ...this.headers, ...headers };
|
|
57
|
+
}
|
|
58
|
+
getEndpoint() {
|
|
59
|
+
return this.endpoint;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Describe a single GraphQL error, falling back to its `extensions.code` when
|
|
64
|
+
* the server omits `message` so the error never renders as an empty string.
|
|
65
|
+
*/
|
|
66
|
+
function describeGraphQLError(error) {
|
|
67
|
+
if (error.message)
|
|
68
|
+
return error.message;
|
|
69
|
+
const code = error.extensions?.code;
|
|
70
|
+
return typeof code === 'string' ? code : 'Unknown error';
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Error thrown when GraphQL request fails
|
|
74
|
+
*/
|
|
75
|
+
export class GraphQLRequestError extends Error {
|
|
76
|
+
errors;
|
|
77
|
+
data;
|
|
78
|
+
constructor(errors, data = null) {
|
|
79
|
+
const messages = errors.map(describeGraphQLError).join('; ');
|
|
80
|
+
super(`GraphQL Error: ${messages}`);
|
|
81
|
+
this.errors = errors;
|
|
82
|
+
this.data = data;
|
|
83
|
+
this.name = 'GraphQLRequestError';
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
export class OrmClient {
|
|
87
|
+
adapter;
|
|
88
|
+
realtimeManager;
|
|
89
|
+
constructor(config) {
|
|
90
|
+
if (config.adapter) {
|
|
91
|
+
this.adapter = config.adapter;
|
|
92
|
+
}
|
|
93
|
+
else if (config.endpoint) {
|
|
94
|
+
this.adapter = new FetchAdapter(config.endpoint, config.headers, config.fetch);
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
throw new Error('OrmClientConfig requires either an endpoint or a custom adapter');
|
|
98
|
+
}
|
|
99
|
+
if (config.realtime) {
|
|
100
|
+
this.realtimeManager = new RealtimeManager(config.realtime);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
async execute(document, variables) {
|
|
104
|
+
return this.adapter.execute(document, variables);
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Subscribe to a GraphQL subscription operation.
|
|
108
|
+
* Used by generated model subscribe() methods.
|
|
109
|
+
* @throws Error if realtime is not configured
|
|
110
|
+
*/
|
|
111
|
+
subscribe(meta, document, variables, options) {
|
|
112
|
+
if (!this.realtimeManager) {
|
|
113
|
+
throw new Error('Realtime not configured. Pass a `realtime` option to createClient() to enable subscriptions.');
|
|
114
|
+
}
|
|
115
|
+
return this.realtimeManager.subscribe(meta, document, variables, options);
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Set headers for requests.
|
|
119
|
+
* Only works if the adapter supports headers.
|
|
120
|
+
*/
|
|
121
|
+
setHeaders(headers) {
|
|
122
|
+
if (this.adapter.setHeaders) {
|
|
123
|
+
this.adapter.setHeaders(headers);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Get the endpoint URL.
|
|
128
|
+
* Returns empty string if the adapter doesn't have an endpoint.
|
|
129
|
+
*/
|
|
130
|
+
getEndpoint() {
|
|
131
|
+
return this.adapter.getEndpoint?.() ?? '';
|
|
132
|
+
}
|
|
133
|
+
/** Get current WebSocket connection state */
|
|
134
|
+
getConnectionState() {
|
|
135
|
+
return this.realtimeManager?.getConnectionState() ?? 'disconnected';
|
|
136
|
+
}
|
|
137
|
+
/** Register a listener for WebSocket connection state changes */
|
|
138
|
+
onConnectionStateChange(listener) {
|
|
139
|
+
if (!this.realtimeManager)
|
|
140
|
+
return () => { };
|
|
141
|
+
return this.realtimeManager.onConnectionStateChange(listener);
|
|
142
|
+
}
|
|
143
|
+
/** Number of active subscriptions */
|
|
144
|
+
getActiveSubscriptionCount() {
|
|
145
|
+
return this.realtimeManager?.getActiveSubscriptionCount() ?? 0;
|
|
146
|
+
}
|
|
147
|
+
/** Whether realtime is configured */
|
|
148
|
+
get isRealtimeEnabled() {
|
|
149
|
+
return this.realtimeManager !== undefined;
|
|
150
|
+
}
|
|
151
|
+
/** Dispose the realtime manager (close WebSocket) */
|
|
152
|
+
dispose() {
|
|
153
|
+
this.realtimeManager?.dispose();
|
|
154
|
+
}
|
|
155
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { OrmClientConfig } from './client';
|
|
2
|
+
import { MachineModel } from './models/machine';
|
|
3
|
+
import { MachineMessageModel } from './models/machineMessage';
|
|
4
|
+
import { MachineSessionModel } from './models/machineSession';
|
|
5
|
+
export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client';
|
|
6
|
+
export { GraphQLRequestError, FetchAdapter } from './client';
|
|
7
|
+
export { QueryBuilder } from './query-builder';
|
|
8
|
+
export * from './select-types';
|
|
9
|
+
export * from './models';
|
|
10
|
+
export { createMutationOperations } from './mutation';
|
|
11
|
+
/**
|
|
12
|
+
* Create an ORM client instance
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```typescript
|
|
16
|
+
* const db = createClient({
|
|
17
|
+
* endpoint: 'https://api.example.com/graphql',
|
|
18
|
+
* headers: { Authorization: 'Bearer token' },
|
|
19
|
+
* });
|
|
20
|
+
*
|
|
21
|
+
* // Query users
|
|
22
|
+
* const users = await db.user.findMany({
|
|
23
|
+
* select: { id: true, name: true },
|
|
24
|
+
* first: 10,
|
|
25
|
+
* }).execute();
|
|
26
|
+
*
|
|
27
|
+
* // Create a user
|
|
28
|
+
* const newUser = await db.user.create({
|
|
29
|
+
* data: { name: 'John', email: 'john@example.com' },
|
|
30
|
+
* select: { id: true },
|
|
31
|
+
* }).execute();
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export declare function createClient(config: OrmClientConfig): {
|
|
35
|
+
machine: MachineModel;
|
|
36
|
+
machineMessage: MachineMessageModel;
|
|
37
|
+
machineSession: MachineSessionModel;
|
|
38
|
+
mutation: {
|
|
39
|
+
machinesEnroll: <S extends import("./input-types").MachinesEnrollPayloadSelect>(args: import("./mutation").MachinesEnrollVariables, options: {
|
|
40
|
+
select: S;
|
|
41
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").MachinesEnrollPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
42
|
+
machinesEnroll: import("./select-types").InferSelectResult<import("./input-types").MachinesEnrollPayload, S> | null;
|
|
43
|
+
}>;
|
|
44
|
+
provisionBucket: <S extends import("./input-types").ProvisionBucketPayloadSelect>(args: import("./mutation").ProvisionBucketVariables, options: {
|
|
45
|
+
select: S;
|
|
46
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").ProvisionBucketPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
47
|
+
provisionBucket: import("./select-types").InferSelectResult<import("./input-types").ProvisionBucketPayload, S> | null;
|
|
48
|
+
}>;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ORM Client - createClient factory
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { OrmClient } from './client';
|
|
7
|
+
import { MachineModel } from './models/machine';
|
|
8
|
+
import { MachineMessageModel } from './models/machineMessage';
|
|
9
|
+
import { MachineSessionModel } from './models/machineSession';
|
|
10
|
+
import { createMutationOperations } from './mutation';
|
|
11
|
+
export { GraphQLRequestError, FetchAdapter } from './client';
|
|
12
|
+
export { QueryBuilder } from './query-builder';
|
|
13
|
+
export * from './select-types';
|
|
14
|
+
export * from './models';
|
|
15
|
+
export { createMutationOperations } from './mutation';
|
|
16
|
+
/**
|
|
17
|
+
* Create an ORM client instance
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```typescript
|
|
21
|
+
* const db = createClient({
|
|
22
|
+
* endpoint: 'https://api.example.com/graphql',
|
|
23
|
+
* headers: { Authorization: 'Bearer token' },
|
|
24
|
+
* });
|
|
25
|
+
*
|
|
26
|
+
* // Query users
|
|
27
|
+
* const users = await db.user.findMany({
|
|
28
|
+
* select: { id: true, name: true },
|
|
29
|
+
* first: 10,
|
|
30
|
+
* }).execute();
|
|
31
|
+
*
|
|
32
|
+
* // Create a user
|
|
33
|
+
* const newUser = await db.user.create({
|
|
34
|
+
* data: { name: 'John', email: 'john@example.com' },
|
|
35
|
+
* select: { id: true },
|
|
36
|
+
* }).execute();
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
export function createClient(config) {
|
|
40
|
+
const client = new OrmClient(config);
|
|
41
|
+
return {
|
|
42
|
+
machine: new MachineModel(client),
|
|
43
|
+
machineMessage: new MachineMessageModel(client),
|
|
44
|
+
machineSession: new MachineSessionModel(client),
|
|
45
|
+
mutation: createMutationOperations(client),
|
|
46
|
+
};
|
|
47
|
+
}
|