@constructive-sdk/cli 0.25.16 → 0.25.17
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/models/appAdminGrant.js +1 -1
- package/admin/orm/models/appClaimedInvite.js +1 -1
- package/admin/orm/models/appGrant.js +1 -1
- package/admin/orm/models/appInvite.js +1 -1
- package/admin/orm/models/appMembership.js +1 -1
- package/admin/orm/models/appMembershipDefault.js +1 -1
- package/admin/orm/models/appOwnerGrant.js +1 -1
- package/admin/orm/models/appPermission.js +1 -1
- package/admin/orm/models/appPermissionDefault.js +1 -1
- package/admin/orm/models/appPermissionDefaultGrant.js +1 -1
- package/admin/orm/models/appPermissionDefaultPermission.js +1 -1
- package/admin/orm/models/membershipType.js +1 -1
- package/admin/orm/models/orgAdminGrant.js +1 -1
- package/admin/orm/models/orgChartEdge.js +1 -1
- package/admin/orm/models/orgChartEdgeGrant.js +1 -1
- package/admin/orm/models/orgClaimedInvite.js +1 -1
- package/admin/orm/models/orgGrant.js +1 -1
- package/admin/orm/models/orgInvite.js +1 -1
- package/admin/orm/models/orgMember.js +1 -1
- package/admin/orm/models/orgMemberProfile.js +1 -1
- package/admin/orm/models/orgMembership.js +1 -1
- package/admin/orm/models/orgMembershipDefault.js +1 -1
- package/admin/orm/models/orgMembershipSetting.js +1 -1
- package/admin/orm/models/orgOwnerGrant.js +1 -1
- package/admin/orm/models/orgPermission.js +1 -1
- package/admin/orm/models/orgPermissionDefault.js +1 -1
- package/admin/orm/models/orgPermissionDefaultGrant.js +1 -1
- package/admin/orm/models/orgPermissionDefaultPermission.js +1 -1
- package/admin/orm/query-builder.d.ts +1 -1
- package/admin/orm/query-builder.js +2 -1
- package/agent/orm/input-types.d.ts +14 -2
- package/agent/orm/models/agent.js +1 -1
- package/agent/orm/models/agentMessage.js +1 -1
- package/agent/orm/models/agentPersona.js +1 -1
- package/agent/orm/models/agentPlan.js +1 -1
- package/agent/orm/models/agentPrompt.js +1 -1
- package/agent/orm/models/agentResource.js +1 -1
- package/agent/orm/models/agentResourceChunk.js +1 -1
- package/agent/orm/models/agentTask.js +1 -1
- package/agent/orm/models/agentThread.js +1 -1
- package/agent/orm/query-builder.d.ts +1 -1
- package/agent/orm/query-builder.js +2 -1
- package/api/cli/commands/schema.js +22 -0
- package/api/orm/input-types.d.ts +36 -1
- package/api/orm/models/api.js +1 -1
- package/api/orm/models/apiModule.js +1 -1
- package/api/orm/models/apiSchema.js +1 -1
- package/api/orm/models/apiSetting.js +1 -1
- package/api/orm/models/app.js +1 -1
- package/api/orm/models/checkConstraint.js +1 -1
- package/api/orm/models/compositeType.js +1 -1
- package/api/orm/models/corsSetting.js +1 -1
- package/api/orm/models/database.js +1 -1
- package/api/orm/models/databaseSetting.js +1 -1
- package/api/orm/models/databaseTransfer.js +1 -1
- package/api/orm/models/defaultPrivilege.js +1 -1
- package/api/orm/models/domain.js +1 -1
- package/api/orm/models/embeddingChunk.js +1 -1
- package/api/orm/models/enum.js +1 -1
- package/api/orm/models/field.js +1 -1
- package/api/orm/models/foreignKeyConstraint.js +1 -1
- package/api/orm/models/fullTextSearch.js +1 -1
- package/api/orm/models/function.js +1 -1
- package/api/orm/models/indexModel.js +1 -1
- package/api/orm/models/nodeTypeRegistry.js +1 -1
- package/api/orm/models/partition.js +1 -1
- package/api/orm/models/policy.js +1 -1
- package/api/orm/models/primaryKeyConstraint.js +1 -1
- package/api/orm/models/pubkeySetting.js +1 -1
- package/api/orm/models/rlsSetting.js +1 -1
- package/api/orm/models/schema.js +1 -1
- package/api/orm/models/schemaGrant.js +1 -1
- package/api/orm/models/site.js +1 -1
- package/api/orm/models/siteMetadatum.js +1 -1
- package/api/orm/models/siteModule.js +1 -1
- package/api/orm/models/siteTheme.js +1 -1
- package/api/orm/models/spatialRelation.js +1 -1
- package/api/orm/models/table.js +1 -1
- package/api/orm/models/tableGrant.js +1 -1
- package/api/orm/models/trigger.js +1 -1
- package/api/orm/models/triggerFunction.js +1 -1
- package/api/orm/models/uniqueConstraint.js +1 -1
- package/api/orm/models/view.js +1 -1
- package/api/orm/models/viewGrant.js +1 -1
- package/api/orm/models/viewRule.js +1 -1
- package/api/orm/models/viewTable.js +1 -1
- package/api/orm/models/webauthnSetting.js +1 -1
- package/api/orm/query-builder.d.ts +1 -1
- package/api/orm/query-builder.js +2 -1
- package/auth/cli/commands/audit-log-auth.js +14 -0
- package/auth/orm/input-types.d.ts +4 -2
- package/auth/orm/models/auditLogAuth.d.ts +2 -0
- package/auth/orm/models/auditLogAuth.js +4 -1
- package/auth/orm/models/cryptoAddress.js +1 -1
- package/auth/orm/models/email.js +1 -1
- package/auth/orm/models/phoneNumber.js +1 -1
- package/auth/orm/models/roleType.js +1 -1
- package/auth/orm/models/user.js +1 -1
- package/auth/orm/models/webauthnCredential.js +1 -1
- package/auth/orm/query-builder.d.ts +1 -1
- package/auth/orm/query-builder.js +2 -1
- package/cli-commands.js +6 -6
- package/compute/cli/commands/add-edge-and-save.d.ts +8 -0
- package/compute/cli/commands/add-edge-and-save.js +36 -0
- package/compute/cli/commands/add-edge.d.ts +8 -0
- package/compute/cli/commands/add-edge.js +36 -0
- package/compute/cli/commands/add-node-and-save.d.ts +8 -0
- package/compute/cli/commands/add-node-and-save.js +36 -0
- package/compute/cli/commands/add-node.d.ts +8 -0
- package/compute/cli/commands/add-node.js +36 -0
- package/compute/cli/commands/auth.d.ts +8 -0
- package/compute/cli/commands/auth.js +107 -0
- package/compute/cli/commands/context.d.ts +8 -0
- package/compute/cli/commands/context.js +158 -0
- package/compute/cli/commands/copy-graph.d.ts +8 -0
- package/compute/cli/commands/copy-graph.js +36 -0
- package/compute/cli/commands/function-api-binding.d.ts +8 -0
- package/compute/cli/commands/function-api-binding.js +294 -0
- package/compute/cli/commands/function-definition.d.ts +8 -0
- package/compute/cli/commands/function-definition.js +788 -0
- package/compute/cli/commands/function-deployment-event.d.ts +8 -0
- package/compute/cli/commands/function-deployment-event.js +356 -0
- package/compute/cli/commands/function-deployment.d.ts +8 -0
- package/compute/cli/commands/function-deployment.js +612 -0
- package/compute/cli/commands/function-execution-log.d.ts +8 -0
- package/compute/cli/commands/function-execution-log.js +380 -0
- package/compute/cli/commands/function-graph-commit.d.ts +8 -0
- package/compute/cli/commands/function-graph-commit.js +389 -0
- package/compute/cli/commands/function-graph-execution-node-state.d.ts +8 -0
- package/compute/cli/commands/function-graph-execution-node-state.js +444 -0
- package/compute/cli/commands/function-graph-execution-output.d.ts +8 -0
- package/compute/cli/commands/function-graph-execution-output.js +290 -0
- package/compute/cli/commands/function-graph-execution.d.ts +8 -0
- package/compute/cli/commands/function-graph-execution.js +716 -0
- package/compute/cli/commands/function-graph-object.d.ts +8 -0
- package/compute/cli/commands/function-graph-object.js +309 -0
- package/compute/cli/commands/function-graph-ref.d.ts +8 -0
- package/compute/cli/commands/function-graph-ref.js +299 -0
- package/compute/cli/commands/function-graph-store.d.ts +8 -0
- package/compute/cli/commands/function-graph-store.js +278 -0
- package/compute/cli/commands/function-graph.d.ts +8 -0
- package/compute/cli/commands/function-graph.js +422 -0
- package/compute/cli/commands/function-invocation.d.ts +8 -0
- package/compute/cli/commands/function-invocation.js +512 -0
- package/compute/cli/commands/get-all-record.d.ts +8 -0
- package/compute/cli/commands/get-all-record.js +126 -0
- package/compute/cli/commands/import-definitions.d.ts +8 -0
- package/compute/cli/commands/import-definitions.js +36 -0
- package/compute/cli/commands/import-graph-json.d.ts +8 -0
- package/compute/cli/commands/import-graph-json.js +36 -0
- package/compute/cli/commands/init-empty-repo.d.ts +8 -0
- package/compute/cli/commands/init-empty-repo.js +36 -0
- package/compute/cli/commands/insert-node-at-path.d.ts +8 -0
- package/compute/cli/commands/insert-node-at-path.js +36 -0
- package/compute/cli/commands/org-function-execution-log.d.ts +8 -0
- package/compute/cli/commands/org-function-execution-log.js +360 -0
- package/compute/cli/commands/org-function-invocation.d.ts +8 -0
- package/compute/cli/commands/org-function-invocation.js +492 -0
- package/compute/cli/commands/provision-bucket.d.ts +8 -0
- package/compute/cli/commands/provision-bucket.js +36 -0
- package/compute/cli/commands/read-function-graph.d.ts +8 -0
- package/compute/cli/commands/read-function-graph.js +30 -0
- package/compute/cli/commands/save-graph.d.ts +8 -0
- package/compute/cli/commands/save-graph.js +36 -0
- package/compute/cli/commands/secret-definition.d.ts +8 -0
- package/compute/cli/commands/secret-definition.js +350 -0
- package/compute/cli/commands/set-data-at-path.d.ts +8 -0
- package/compute/cli/commands/set-data-at-path.js +36 -0
- package/compute/cli/commands/start-execution.d.ts +8 -0
- package/compute/cli/commands/start-execution.js +36 -0
- package/compute/cli/commands/validate-function-graph.d.ts +8 -0
- package/compute/cli/commands/validate-function-graph.js +36 -0
- package/compute/cli/commands.d.ts +7 -0
- package/compute/cli/commands.js +114 -0
- package/compute/cli/executor.d.ts +100 -0
- package/compute/cli/executor.js +40 -0
- package/compute/cli/index.d.ts +1 -0
- package/compute/cli/index.js +26 -0
- package/compute/cli/utils.d.ts +88 -0
- package/compute/cli/utils.js +297 -0
- package/compute/index.d.ts +6 -0
- package/compute/index.js +22 -0
- package/compute/orm/client.d.ts +97 -0
- package/compute/orm/client.js +152 -0
- package/compute/orm/index.d.ts +148 -0
- package/compute/orm/index.js +103 -0
- package/compute/orm/input-types.d.ts +4243 -0
- package/compute/orm/input-types.js +10 -0
- package/compute/orm/models/functionApiBinding.d.ts +54 -0
- package/compute/orm/models/functionApiBinding.js +104 -0
- package/compute/orm/models/functionDefinition.d.ts +54 -0
- package/compute/orm/models/functionDefinition.js +104 -0
- package/compute/orm/models/functionDeployment.d.ts +54 -0
- package/compute/orm/models/functionDeployment.js +104 -0
- package/compute/orm/models/functionDeploymentEvent.d.ts +56 -0
- package/compute/orm/models/functionDeploymentEvent.js +107 -0
- package/compute/orm/models/functionExecutionLog.d.ts +56 -0
- package/compute/orm/models/functionExecutionLog.js +107 -0
- package/compute/orm/models/functionGraph.d.ts +54 -0
- package/compute/orm/models/functionGraph.js +104 -0
- package/compute/orm/models/functionGraphCommit.d.ts +56 -0
- package/compute/orm/models/functionGraphCommit.js +107 -0
- package/compute/orm/models/functionGraphExecution.d.ts +56 -0
- package/compute/orm/models/functionGraphExecution.js +107 -0
- package/compute/orm/models/functionGraphExecutionNodeState.d.ts +56 -0
- package/compute/orm/models/functionGraphExecutionNodeState.js +107 -0
- package/compute/orm/models/functionGraphExecutionOutput.d.ts +56 -0
- package/compute/orm/models/functionGraphExecutionOutput.js +107 -0
- package/compute/orm/models/functionGraphObject.d.ts +56 -0
- package/compute/orm/models/functionGraphObject.js +97 -0
- package/compute/orm/models/functionGraphRef.d.ts +56 -0
- package/compute/orm/models/functionGraphRef.js +107 -0
- package/compute/orm/models/functionGraphStore.d.ts +54 -0
- package/compute/orm/models/functionGraphStore.js +104 -0
- package/compute/orm/models/functionInvocation.d.ts +56 -0
- package/compute/orm/models/functionInvocation.js +107 -0
- package/compute/orm/models/getAllRecord.d.ts +30 -0
- package/compute/orm/models/getAllRecord.js +59 -0
- package/compute/orm/models/index.d.ts +23 -0
- package/compute/orm/models/index.js +44 -0
- package/compute/orm/models/orgFunctionExecutionLog.d.ts +56 -0
- package/compute/orm/models/orgFunctionExecutionLog.js +107 -0
- package/compute/orm/models/orgFunctionInvocation.d.ts +56 -0
- package/compute/orm/models/orgFunctionInvocation.js +107 -0
- package/compute/orm/models/secretDefinition.d.ts +54 -0
- package/compute/orm/models/secretDefinition.js +104 -0
- package/compute/orm/mutation/index.d.ts +130 -0
- package/compute/orm/mutation/index.js +177 -0
- package/compute/orm/query/index.d.ts +17 -0
- package/compute/orm/query/index.js +21 -0
- package/compute/orm/query-builder.d.ts +110 -0
- package/compute/orm/query-builder.js +757 -0
- package/compute/orm/realtime.d.ts +142 -0
- package/compute/orm/realtime.js +104 -0
- package/compute/orm/select-types.d.ts +125 -0
- package/compute/orm/select-types.js +2 -0
- package/compute/orm/types.d.ts +6 -0
- package/compute/orm/types.js +23 -0
- package/config/cli/commands/auth.d.ts +8 -0
- package/config/cli/commands/auth.js +107 -0
- package/config/cli/commands/context.d.ts +8 -0
- package/config/cli/commands/context.js +158 -0
- package/config/cli/commands/org-secrets-del.d.ts +8 -0
- package/config/cli/commands/org-secrets-del.js +36 -0
- package/config/cli/commands/org-secrets-remove-array.d.ts +8 -0
- package/config/cli/commands/org-secrets-remove-array.js +36 -0
- package/config/cli/commands/org-secrets-rotate.d.ts +8 -0
- package/config/cli/commands/org-secrets-rotate.js +36 -0
- package/config/cli/commands/org-secrets-set.d.ts +8 -0
- package/config/cli/commands/org-secrets-set.js +36 -0
- package/config/cli/commands/platform-config-definition.d.ts +8 -0
- package/config/cli/commands/platform-config-definition.js +352 -0
- package/config/cli/commands/platform-config.d.ts +8 -0
- package/config/cli/commands/platform-config.js +372 -0
- package/config/cli/commands/platform-secrets-del.d.ts +8 -0
- package/config/cli/commands/platform-secrets-del.js +36 -0
- package/config/cli/commands/platform-secrets-remove-array.d.ts +8 -0
- package/config/cli/commands/platform-secrets-remove-array.js +36 -0
- package/config/cli/commands/platform-secrets-rotate.d.ts +8 -0
- package/config/cli/commands/platform-secrets-rotate.js +36 -0
- package/config/cli/commands/platform-secrets-set.d.ts +8 -0
- package/config/cli/commands/platform-secrets-set.js +36 -0
- package/config/cli/commands/provision-bucket.d.ts +8 -0
- package/config/cli/commands/provision-bucket.js +36 -0
- package/config/cli/commands.d.ts +7 -0
- package/config/cli/commands.js +70 -0
- package/config/cli/executor.d.ts +52 -0
- package/config/cli/executor.js +40 -0
- package/config/cli/index.d.ts +1 -0
- package/config/cli/index.js +26 -0
- package/config/cli/utils.d.ts +88 -0
- package/config/cli/utils.js +297 -0
- package/config/index.d.ts +6 -2
- package/config/index.js +20 -4
- package/config/orm/client.d.ts +97 -0
- package/config/orm/client.js +152 -0
- package/config/orm/index.d.ts +83 -0
- package/config/orm/index.js +67 -0
- package/config/orm/input-types.d.ts +719 -0
- package/config/orm/input-types.js +5 -0
- package/config/orm/models/index.d.ts +7 -0
- package/config/orm/models/index.js +12 -0
- package/config/orm/models/platformConfig.d.ts +54 -0
- package/config/orm/models/platformConfig.js +104 -0
- package/config/orm/models/platformConfigDefinition.d.ts +54 -0
- package/config/orm/models/platformConfigDefinition.js +104 -0
- package/config/orm/mutation/index.d.ts +90 -0
- package/config/orm/mutation/index.js +117 -0
- package/config/orm/query-builder.d.ts +110 -0
- package/config/orm/query-builder.js +757 -0
- package/config/orm/realtime.d.ts +142 -0
- package/config/orm/realtime.js +104 -0
- package/config/orm/select-types.d.ts +125 -0
- package/config/orm/select-types.js +2 -0
- package/config/orm/types.d.ts +6 -0
- package/config/orm/types.js +23 -0
- package/config-store.d.ts +28 -0
- package/config-store.js +149 -0
- package/esm/admin/orm/models/appAdminGrant.js +1 -1
- package/esm/admin/orm/models/appClaimedInvite.js +1 -1
- package/esm/admin/orm/models/appGrant.js +1 -1
- package/esm/admin/orm/models/appInvite.js +1 -1
- package/esm/admin/orm/models/appMembership.js +1 -1
- package/esm/admin/orm/models/appMembershipDefault.js +1 -1
- package/esm/admin/orm/models/appOwnerGrant.js +1 -1
- package/esm/admin/orm/models/appPermission.js +1 -1
- package/esm/admin/orm/models/appPermissionDefault.js +1 -1
- package/esm/admin/orm/models/appPermissionDefaultGrant.js +1 -1
- package/esm/admin/orm/models/appPermissionDefaultPermission.js +1 -1
- package/esm/admin/orm/models/membershipType.js +1 -1
- package/esm/admin/orm/models/orgAdminGrant.js +1 -1
- package/esm/admin/orm/models/orgChartEdge.js +1 -1
- package/esm/admin/orm/models/orgChartEdgeGrant.js +1 -1
- package/esm/admin/orm/models/orgClaimedInvite.js +1 -1
- package/esm/admin/orm/models/orgGrant.js +1 -1
- package/esm/admin/orm/models/orgInvite.js +1 -1
- package/esm/admin/orm/models/orgMember.js +1 -1
- package/esm/admin/orm/models/orgMemberProfile.js +1 -1
- package/esm/admin/orm/models/orgMembership.js +1 -1
- package/esm/admin/orm/models/orgMembershipDefault.js +1 -1
- package/esm/admin/orm/models/orgMembershipSetting.js +1 -1
- package/esm/admin/orm/models/orgOwnerGrant.js +1 -1
- package/esm/admin/orm/models/orgPermission.js +1 -1
- package/esm/admin/orm/models/orgPermissionDefault.js +1 -1
- package/esm/admin/orm/models/orgPermissionDefaultGrant.js +1 -1
- package/esm/admin/orm/models/orgPermissionDefaultPermission.js +1 -1
- package/esm/admin/orm/query-builder.d.ts +1 -1
- package/esm/admin/orm/query-builder.js +2 -1
- package/esm/agent/orm/input-types.d.ts +14 -2
- package/esm/agent/orm/models/agent.js +1 -1
- package/esm/agent/orm/models/agentMessage.js +1 -1
- package/esm/agent/orm/models/agentPersona.js +1 -1
- package/esm/agent/orm/models/agentPlan.js +1 -1
- package/esm/agent/orm/models/agentPrompt.js +1 -1
- package/esm/agent/orm/models/agentResource.js +1 -1
- package/esm/agent/orm/models/agentResourceChunk.js +1 -1
- package/esm/agent/orm/models/agentTask.js +1 -1
- package/esm/agent/orm/models/agentThread.js +1 -1
- package/esm/agent/orm/query-builder.d.ts +1 -1
- package/esm/agent/orm/query-builder.js +2 -1
- package/esm/api/cli/commands/schema.js +22 -0
- package/esm/api/orm/input-types.d.ts +36 -1
- package/esm/api/orm/models/api.js +1 -1
- package/esm/api/orm/models/apiModule.js +1 -1
- package/esm/api/orm/models/apiSchema.js +1 -1
- package/esm/api/orm/models/apiSetting.js +1 -1
- package/esm/api/orm/models/app.js +1 -1
- package/esm/api/orm/models/checkConstraint.js +1 -1
- package/esm/api/orm/models/compositeType.js +1 -1
- package/esm/api/orm/models/corsSetting.js +1 -1
- package/esm/api/orm/models/database.js +1 -1
- package/esm/api/orm/models/databaseSetting.js +1 -1
- package/esm/api/orm/models/databaseTransfer.js +1 -1
- package/esm/api/orm/models/defaultPrivilege.js +1 -1
- package/esm/api/orm/models/domain.js +1 -1
- package/esm/api/orm/models/embeddingChunk.js +1 -1
- package/esm/api/orm/models/enum.js +1 -1
- package/esm/api/orm/models/field.js +1 -1
- package/esm/api/orm/models/foreignKeyConstraint.js +1 -1
- package/esm/api/orm/models/fullTextSearch.js +1 -1
- package/esm/api/orm/models/function.js +1 -1
- package/esm/api/orm/models/indexModel.js +1 -1
- package/esm/api/orm/models/nodeTypeRegistry.js +1 -1
- package/esm/api/orm/models/partition.js +1 -1
- package/esm/api/orm/models/policy.js +1 -1
- package/esm/api/orm/models/primaryKeyConstraint.js +1 -1
- package/esm/api/orm/models/pubkeySetting.js +1 -1
- package/esm/api/orm/models/rlsSetting.js +1 -1
- package/esm/api/orm/models/schema.js +1 -1
- package/esm/api/orm/models/schemaGrant.js +1 -1
- package/esm/api/orm/models/site.js +1 -1
- package/esm/api/orm/models/siteMetadatum.js +1 -1
- package/esm/api/orm/models/siteModule.js +1 -1
- package/esm/api/orm/models/siteTheme.js +1 -1
- package/esm/api/orm/models/spatialRelation.js +1 -1
- package/esm/api/orm/models/table.js +1 -1
- package/esm/api/orm/models/tableGrant.js +1 -1
- package/esm/api/orm/models/trigger.js +1 -1
- package/esm/api/orm/models/triggerFunction.js +1 -1
- package/esm/api/orm/models/uniqueConstraint.js +1 -1
- package/esm/api/orm/models/view.js +1 -1
- package/esm/api/orm/models/viewGrant.js +1 -1
- package/esm/api/orm/models/viewRule.js +1 -1
- package/esm/api/orm/models/viewTable.js +1 -1
- package/esm/api/orm/models/webauthnSetting.js +1 -1
- package/esm/api/orm/query-builder.d.ts +1 -1
- package/esm/api/orm/query-builder.js +2 -1
- package/esm/auth/cli/commands/audit-log-auth.js +14 -0
- package/esm/auth/orm/input-types.d.ts +4 -2
- package/esm/auth/orm/models/auditLogAuth.d.ts +2 -0
- package/esm/auth/orm/models/auditLogAuth.js +4 -1
- package/esm/auth/orm/models/cryptoAddress.js +1 -1
- package/esm/auth/orm/models/email.js +1 -1
- package/esm/auth/orm/models/phoneNumber.js +1 -1
- package/esm/auth/orm/models/roleType.js +1 -1
- package/esm/auth/orm/models/user.js +1 -1
- package/esm/auth/orm/models/webauthnCredential.js +1 -1
- package/esm/auth/orm/query-builder.d.ts +1 -1
- package/esm/auth/orm/query-builder.js +2 -1
- package/esm/cli-commands.js +1 -1
- package/esm/compute/cli/commands/add-edge-and-save.d.ts +8 -0
- package/esm/compute/cli/commands/add-edge-and-save.js +34 -0
- package/esm/compute/cli/commands/add-edge.d.ts +8 -0
- package/esm/compute/cli/commands/add-edge.js +34 -0
- package/esm/compute/cli/commands/add-node-and-save.d.ts +8 -0
- package/esm/compute/cli/commands/add-node-and-save.js +34 -0
- package/esm/compute/cli/commands/add-node.d.ts +8 -0
- package/esm/compute/cli/commands/add-node.js +34 -0
- package/esm/compute/cli/commands/auth.d.ts +8 -0
- package/esm/compute/cli/commands/auth.js +105 -0
- package/esm/compute/cli/commands/context.d.ts +8 -0
- package/esm/compute/cli/commands/context.js +156 -0
- package/esm/compute/cli/commands/copy-graph.d.ts +8 -0
- package/esm/compute/cli/commands/copy-graph.js +34 -0
- package/esm/compute/cli/commands/function-api-binding.d.ts +8 -0
- package/esm/compute/cli/commands/function-api-binding.js +292 -0
- package/esm/compute/cli/commands/function-definition.d.ts +8 -0
- package/esm/compute/cli/commands/function-definition.js +786 -0
- package/esm/compute/cli/commands/function-deployment-event.d.ts +8 -0
- package/esm/compute/cli/commands/function-deployment-event.js +354 -0
- package/esm/compute/cli/commands/function-deployment.d.ts +8 -0
- package/esm/compute/cli/commands/function-deployment.js +610 -0
- package/esm/compute/cli/commands/function-execution-log.d.ts +8 -0
- package/esm/compute/cli/commands/function-execution-log.js +378 -0
- package/esm/compute/cli/commands/function-graph-commit.d.ts +8 -0
- package/esm/compute/cli/commands/function-graph-commit.js +387 -0
- package/esm/compute/cli/commands/function-graph-execution-node-state.d.ts +8 -0
- package/esm/compute/cli/commands/function-graph-execution-node-state.js +442 -0
- package/esm/compute/cli/commands/function-graph-execution-output.d.ts +8 -0
- package/esm/compute/cli/commands/function-graph-execution-output.js +288 -0
- package/esm/compute/cli/commands/function-graph-execution.d.ts +8 -0
- package/esm/compute/cli/commands/function-graph-execution.js +714 -0
- package/esm/compute/cli/commands/function-graph-object.d.ts +8 -0
- package/esm/compute/cli/commands/function-graph-object.js +307 -0
- package/esm/compute/cli/commands/function-graph-ref.d.ts +8 -0
- package/esm/compute/cli/commands/function-graph-ref.js +297 -0
- package/esm/compute/cli/commands/function-graph-store.d.ts +8 -0
- package/esm/compute/cli/commands/function-graph-store.js +276 -0
- package/esm/compute/cli/commands/function-graph.d.ts +8 -0
- package/esm/compute/cli/commands/function-graph.js +420 -0
- package/esm/compute/cli/commands/function-invocation.d.ts +8 -0
- package/esm/compute/cli/commands/function-invocation.js +510 -0
- package/esm/compute/cli/commands/get-all-record.d.ts +8 -0
- package/esm/compute/cli/commands/get-all-record.js +124 -0
- package/esm/compute/cli/commands/import-definitions.d.ts +8 -0
- package/esm/compute/cli/commands/import-definitions.js +34 -0
- package/esm/compute/cli/commands/import-graph-json.d.ts +8 -0
- package/esm/compute/cli/commands/import-graph-json.js +34 -0
- package/esm/compute/cli/commands/init-empty-repo.d.ts +8 -0
- package/esm/compute/cli/commands/init-empty-repo.js +34 -0
- package/esm/compute/cli/commands/insert-node-at-path.d.ts +8 -0
- package/esm/compute/cli/commands/insert-node-at-path.js +34 -0
- package/esm/compute/cli/commands/org-function-execution-log.d.ts +8 -0
- package/esm/compute/cli/commands/org-function-execution-log.js +358 -0
- package/esm/compute/cli/commands/org-function-invocation.d.ts +8 -0
- package/esm/compute/cli/commands/org-function-invocation.js +490 -0
- package/esm/compute/cli/commands/provision-bucket.d.ts +8 -0
- package/esm/compute/cli/commands/provision-bucket.js +34 -0
- package/esm/compute/cli/commands/read-function-graph.d.ts +8 -0
- package/esm/compute/cli/commands/read-function-graph.js +28 -0
- package/esm/compute/cli/commands/save-graph.d.ts +8 -0
- package/esm/compute/cli/commands/save-graph.js +34 -0
- package/esm/compute/cli/commands/secret-definition.d.ts +8 -0
- package/esm/compute/cli/commands/secret-definition.js +348 -0
- package/esm/compute/cli/commands/set-data-at-path.d.ts +8 -0
- package/esm/compute/cli/commands/set-data-at-path.js +34 -0
- package/esm/compute/cli/commands/start-execution.d.ts +8 -0
- package/esm/compute/cli/commands/start-execution.js +34 -0
- package/esm/compute/cli/commands/validate-function-graph.d.ts +8 -0
- package/esm/compute/cli/commands/validate-function-graph.js +34 -0
- package/esm/compute/cli/commands.d.ts +7 -0
- package/esm/compute/cli/commands.js +107 -0
- package/esm/compute/cli/executor.d.ts +100 -0
- package/esm/compute/cli/executor.js +35 -0
- package/esm/compute/cli/index.d.ts +1 -0
- package/esm/compute/cli/index.js +24 -0
- package/esm/compute/cli/utils.d.ts +88 -0
- package/esm/compute/cli/utils.js +281 -0
- package/esm/compute/index.d.ts +6 -0
- package/esm/compute/index.js +6 -0
- package/esm/compute/orm/client.d.ts +97 -0
- package/esm/compute/orm/client.js +145 -0
- package/esm/compute/orm/index.d.ts +148 -0
- package/esm/compute/orm/index.js +80 -0
- package/esm/compute/orm/input-types.d.ts +4243 -0
- package/esm/compute/orm/input-types.js +7 -0
- package/esm/compute/orm/models/functionApiBinding.d.ts +54 -0
- package/esm/compute/orm/models/functionApiBinding.js +100 -0
- package/esm/compute/orm/models/functionDefinition.d.ts +54 -0
- package/esm/compute/orm/models/functionDefinition.js +100 -0
- package/esm/compute/orm/models/functionDeployment.d.ts +54 -0
- package/esm/compute/orm/models/functionDeployment.js +100 -0
- package/esm/compute/orm/models/functionDeploymentEvent.d.ts +56 -0
- package/esm/compute/orm/models/functionDeploymentEvent.js +103 -0
- package/esm/compute/orm/models/functionExecutionLog.d.ts +56 -0
- package/esm/compute/orm/models/functionExecutionLog.js +103 -0
- package/esm/compute/orm/models/functionGraph.d.ts +54 -0
- package/esm/compute/orm/models/functionGraph.js +100 -0
- package/esm/compute/orm/models/functionGraphCommit.d.ts +56 -0
- package/esm/compute/orm/models/functionGraphCommit.js +103 -0
- package/esm/compute/orm/models/functionGraphExecution.d.ts +56 -0
- package/esm/compute/orm/models/functionGraphExecution.js +103 -0
- package/esm/compute/orm/models/functionGraphExecutionNodeState.d.ts +56 -0
- package/esm/compute/orm/models/functionGraphExecutionNodeState.js +103 -0
- package/esm/compute/orm/models/functionGraphExecutionOutput.d.ts +56 -0
- package/esm/compute/orm/models/functionGraphExecutionOutput.js +103 -0
- package/esm/compute/orm/models/functionGraphObject.d.ts +56 -0
- package/esm/compute/orm/models/functionGraphObject.js +93 -0
- package/esm/compute/orm/models/functionGraphRef.d.ts +56 -0
- package/esm/compute/orm/models/functionGraphRef.js +103 -0
- package/esm/compute/orm/models/functionGraphStore.d.ts +54 -0
- package/esm/compute/orm/models/functionGraphStore.js +100 -0
- package/esm/compute/orm/models/functionInvocation.d.ts +56 -0
- package/esm/compute/orm/models/functionInvocation.js +103 -0
- package/esm/compute/orm/models/getAllRecord.d.ts +30 -0
- package/esm/compute/orm/models/getAllRecord.js +55 -0
- package/esm/compute/orm/models/index.d.ts +23 -0
- package/esm/compute/orm/models/index.js +23 -0
- package/esm/compute/orm/models/orgFunctionExecutionLog.d.ts +56 -0
- package/esm/compute/orm/models/orgFunctionExecutionLog.js +103 -0
- package/esm/compute/orm/models/orgFunctionInvocation.d.ts +56 -0
- package/esm/compute/orm/models/orgFunctionInvocation.js +103 -0
- package/esm/compute/orm/models/secretDefinition.d.ts +54 -0
- package/esm/compute/orm/models/secretDefinition.js +100 -0
- package/esm/compute/orm/mutation/index.d.ts +130 -0
- package/esm/compute/orm/mutation/index.js +174 -0
- package/esm/compute/orm/query/index.d.ts +17 -0
- package/esm/compute/orm/query/index.js +18 -0
- package/esm/compute/orm/query-builder.d.ts +110 -0
- package/esm/compute/orm/query-builder.js +705 -0
- package/esm/compute/orm/realtime.d.ts +142 -0
- package/esm/compute/orm/realtime.js +100 -0
- package/esm/compute/orm/select-types.d.ts +125 -0
- package/esm/compute/orm/select-types.js +1 -0
- package/esm/compute/orm/types.d.ts +6 -0
- package/esm/compute/orm/types.js +7 -0
- package/esm/config/cli/commands/auth.d.ts +8 -0
- package/esm/config/cli/commands/auth.js +105 -0
- package/esm/config/cli/commands/context.d.ts +8 -0
- package/esm/config/cli/commands/context.js +156 -0
- package/esm/config/cli/commands/org-secrets-del.d.ts +8 -0
- package/esm/config/cli/commands/org-secrets-del.js +34 -0
- package/esm/config/cli/commands/org-secrets-remove-array.d.ts +8 -0
- package/esm/config/cli/commands/org-secrets-remove-array.js +34 -0
- package/esm/config/cli/commands/org-secrets-rotate.d.ts +8 -0
- package/esm/config/cli/commands/org-secrets-rotate.js +34 -0
- package/esm/config/cli/commands/org-secrets-set.d.ts +8 -0
- package/esm/config/cli/commands/org-secrets-set.js +34 -0
- package/esm/config/cli/commands/platform-config-definition.d.ts +8 -0
- package/esm/config/cli/commands/platform-config-definition.js +350 -0
- package/esm/config/cli/commands/platform-config.d.ts +8 -0
- package/esm/config/cli/commands/platform-config.js +370 -0
- package/esm/config/cli/commands/platform-secrets-del.d.ts +8 -0
- package/esm/config/cli/commands/platform-secrets-del.js +34 -0
- package/esm/config/cli/commands/platform-secrets-remove-array.d.ts +8 -0
- package/esm/config/cli/commands/platform-secrets-remove-array.js +34 -0
- package/esm/config/cli/commands/platform-secrets-rotate.d.ts +8 -0
- package/esm/config/cli/commands/platform-secrets-rotate.js +34 -0
- package/esm/config/cli/commands/platform-secrets-set.d.ts +8 -0
- package/esm/config/cli/commands/platform-secrets-set.js +34 -0
- package/esm/config/cli/commands/provision-bucket.d.ts +8 -0
- package/esm/config/cli/commands/provision-bucket.js +34 -0
- package/esm/config/cli/commands.d.ts +7 -0
- package/esm/config/cli/commands.js +63 -0
- package/esm/config/cli/executor.d.ts +52 -0
- package/esm/config/cli/executor.js +35 -0
- package/esm/config/cli/index.d.ts +1 -0
- package/esm/config/cli/index.js +24 -0
- package/esm/config/cli/utils.d.ts +88 -0
- package/esm/config/cli/utils.js +281 -0
- package/esm/config/index.d.ts +6 -2
- package/esm/config/index.js +6 -1
- package/esm/config/orm/client.d.ts +97 -0
- package/esm/config/orm/client.js +145 -0
- package/esm/config/orm/index.d.ts +83 -0
- package/esm/config/orm/index.js +45 -0
- package/esm/config/orm/input-types.d.ts +719 -0
- package/esm/config/orm/input-types.js +2 -0
- package/esm/config/orm/models/index.d.ts +7 -0
- package/esm/config/orm/models/index.js +7 -0
- package/esm/config/orm/models/platformConfig.d.ts +54 -0
- package/esm/config/orm/models/platformConfig.js +100 -0
- package/esm/config/orm/models/platformConfigDefinition.d.ts +54 -0
- package/esm/config/orm/models/platformConfigDefinition.js +100 -0
- package/esm/config/orm/mutation/index.d.ts +90 -0
- package/esm/config/orm/mutation/index.js +114 -0
- package/esm/config/orm/query-builder.d.ts +110 -0
- package/esm/config/orm/query-builder.js +705 -0
- package/esm/config/orm/realtime.d.ts +142 -0
- package/esm/config/orm/realtime.js +100 -0
- package/esm/config/orm/select-types.d.ts +125 -0
- package/esm/config/orm/select-types.js +1 -0
- package/esm/config/orm/types.d.ts +6 -0
- package/esm/config/orm/types.js +7 -0
- package/esm/config-store.d.ts +28 -0
- package/esm/config-store.js +113 -0
- package/esm/index.d.ts +2 -0
- package/esm/index.js +2 -0
- package/esm/modules/cli/commands/function-deployment-module.d.ts +8 -0
- package/esm/modules/cli/commands/function-deployment-module.js +624 -0
- package/esm/modules/cli/commands/graph-execution-module.d.ts +8 -0
- package/esm/modules/cli/commands/graph-execution-module.js +650 -0
- package/esm/modules/cli/commands/graph-module.js +0 -44
- package/esm/modules/cli/commands/namespace-module.js +22 -0
- package/esm/modules/cli/commands.js +7 -3
- package/esm/modules/cli/executor.d.ts +3 -1
- package/esm/modules/orm/index.d.ts +6 -2
- package/esm/modules/orm/index.js +6 -2
- package/esm/modules/orm/input-types.d.ts +722 -239
- package/esm/modules/orm/models/agentModule.js +1 -1
- package/esm/modules/orm/models/billingModule.js +1 -1
- package/esm/modules/orm/models/billingProviderModule.js +1 -1
- package/esm/modules/orm/models/blueprint.js +1 -1
- package/esm/modules/orm/models/blueprintConstruction.js +1 -1
- package/esm/modules/orm/models/blueprintTemplate.js +1 -1
- package/esm/modules/orm/models/computeLogModule.js +1 -1
- package/esm/modules/orm/models/configSecretsModule.js +1 -1
- package/esm/modules/orm/models/configSecretsOrgModule.js +1 -1
- package/esm/modules/orm/models/configSecretsUserModule.js +1 -1
- package/esm/modules/orm/models/connectedAccountsModule.js +1 -1
- package/esm/modules/orm/models/cryptoAddressesModule.js +1 -1
- package/esm/modules/orm/models/cryptoAuthModule.js +1 -1
- package/esm/modules/orm/models/databaseProvisionModule.js +1 -1
- package/esm/modules/orm/models/dbUsageModule.js +1 -1
- package/esm/modules/orm/models/defaultIdsModule.js +1 -1
- package/esm/modules/orm/models/denormalizedTableField.js +1 -1
- package/esm/modules/orm/models/devicesModule.js +1 -1
- package/esm/modules/orm/models/emailsModule.js +1 -1
- package/esm/modules/orm/models/entityTypeProvision.js +1 -1
- package/esm/modules/orm/models/eventsModule.js +1 -1
- package/esm/modules/orm/models/functionDeploymentModule.d.ts +54 -0
- package/esm/modules/orm/models/functionDeploymentModule.js +100 -0
- package/esm/modules/orm/models/functionInvocationModule.js +1 -1
- package/esm/modules/orm/models/functionModule.js +1 -1
- package/esm/modules/orm/models/graphExecutionModule.d.ts +54 -0
- package/esm/modules/orm/models/graphExecutionModule.js +100 -0
- package/esm/modules/orm/models/graphModule.js +1 -1
- package/esm/modules/orm/models/hierarchyModule.js +1 -1
- package/esm/modules/orm/models/i18NModule.js +1 -1
- package/esm/modules/orm/models/identityProvidersModule.js +1 -1
- package/esm/modules/orm/models/index.d.ts +3 -1
- package/esm/modules/orm/models/index.js +3 -1
- package/esm/modules/orm/models/inferenceLogModule.js +1 -1
- package/esm/modules/orm/models/invitesModule.js +1 -1
- package/esm/modules/orm/models/limitsModule.js +1 -1
- package/esm/modules/orm/models/membershipTypesModule.js +1 -1
- package/esm/modules/orm/models/membershipsModule.js +1 -1
- package/esm/modules/orm/models/merkleStoreModule.js +1 -1
- package/esm/modules/orm/models/namespaceModule.js +1 -1
- package/esm/modules/orm/models/notificationsModule.js +1 -1
- package/esm/modules/orm/models/permissionsModule.js +1 -1
- package/esm/modules/orm/models/phoneNumbersModule.js +1 -1
- package/esm/modules/orm/models/plansModule.js +1 -1
- package/esm/modules/orm/models/profilesModule.js +1 -1
- package/esm/modules/orm/models/rateLimitMetersModule.js +1 -1
- package/esm/modules/orm/models/rateLimitsModule.js +1 -1
- package/esm/modules/orm/models/realtimeModule.js +1 -1
- package/esm/modules/orm/models/relationProvision.js +1 -1
- package/esm/modules/orm/models/rlsModule.js +1 -1
- package/esm/modules/orm/models/secureTableProvision.js +1 -1
- package/esm/modules/orm/models/sessionSecretsModule.js +1 -1
- package/esm/modules/orm/models/sessionsModule.js +1 -1
- package/esm/modules/orm/models/storageLogModule.js +1 -1
- package/esm/modules/orm/models/storageModule.js +1 -1
- package/esm/modules/orm/models/transferLogModule.js +1 -1
- package/esm/modules/orm/models/userAuthModule.js +1 -1
- package/esm/modules/orm/models/userCredentialsModule.js +1 -1
- package/esm/modules/orm/models/userSettingsModule.js +1 -1
- package/esm/modules/orm/models/userStateModule.js +1 -1
- package/esm/modules/orm/models/usersModule.js +1 -1
- package/esm/modules/orm/models/webauthnAuthModule.js +1 -1
- package/esm/modules/orm/models/webauthnCredentialsModule.js +1 -1
- package/esm/modules/orm/query-builder.d.ts +1 -1
- package/esm/modules/orm/query-builder.js +2 -1
- package/esm/objects/cli/commands/commit.js +14 -7
- package/esm/objects/cli/commands/object.js +9 -2
- package/esm/objects/cli/commands/ref.js +13 -6
- package/esm/objects/orm/models/commit.d.ts +2 -0
- package/esm/objects/orm/models/commit.js +4 -1
- package/esm/objects/orm/models/object.d.ts +2 -0
- package/esm/objects/orm/models/object.js +4 -1
- package/esm/objects/orm/models/ref.d.ts +2 -0
- package/esm/objects/orm/models/ref.js +4 -1
- package/esm/objects/orm/models/store.js +1 -1
- package/esm/objects/orm/query-builder.d.ts +1 -1
- package/esm/objects/orm/query-builder.js +2 -1
- package/esm/usage/cli/commands/app-limit-event.js +14 -0
- package/esm/usage/cli/commands/org-limit-event.js +14 -0
- package/esm/usage/orm/models/appLimit.js +1 -1
- package/esm/usage/orm/models/appLimitCap.js +1 -1
- package/esm/usage/orm/models/appLimitCapsDefault.js +1 -1
- package/esm/usage/orm/models/appLimitCredit.js +1 -1
- package/esm/usage/orm/models/appLimitCreditCode.js +1 -1
- package/esm/usage/orm/models/appLimitCreditCodeItem.js +1 -1
- package/esm/usage/orm/models/appLimitCreditRedemption.js +1 -1
- package/esm/usage/orm/models/appLimitDefault.js +1 -1
- package/esm/usage/orm/models/appLimitEvent.d.ts +2 -0
- package/esm/usage/orm/models/appLimitEvent.js +4 -1
- package/esm/usage/orm/models/appLimitWarning.js +1 -1
- package/esm/usage/orm/models/orgLimit.js +1 -1
- package/esm/usage/orm/models/orgLimitAggregate.js +1 -1
- package/esm/usage/orm/models/orgLimitCap.js +1 -1
- package/esm/usage/orm/models/orgLimitCapsDefault.js +1 -1
- package/esm/usage/orm/models/orgLimitCredit.js +1 -1
- package/esm/usage/orm/models/orgLimitDefault.js +1 -1
- package/esm/usage/orm/models/orgLimitEvent.d.ts +2 -0
- package/esm/usage/orm/models/orgLimitEvent.js +4 -1
- package/esm/usage/orm/models/orgLimitWarning.js +1 -1
- package/esm/usage/orm/query-builder.d.ts +1 -1
- package/esm/usage/orm/query-builder.js +2 -1
- package/index.d.ts +2 -0
- package/index.js +3 -1
- package/modules/cli/commands/function-deployment-module.d.ts +8 -0
- package/modules/cli/commands/function-deployment-module.js +626 -0
- package/modules/cli/commands/graph-execution-module.d.ts +8 -0
- package/modules/cli/commands/graph-execution-module.js +652 -0
- package/modules/cli/commands/graph-module.js +0 -44
- package/modules/cli/commands/namespace-module.js +22 -0
- package/modules/cli/commands.js +7 -3
- package/modules/cli/executor.d.ts +3 -1
- package/modules/orm/index.d.ts +6 -2
- package/modules/orm/index.js +6 -2
- package/modules/orm/input-types.d.ts +722 -239
- package/modules/orm/models/agentModule.js +1 -1
- package/modules/orm/models/billingModule.js +1 -1
- package/modules/orm/models/billingProviderModule.js +1 -1
- package/modules/orm/models/blueprint.js +1 -1
- package/modules/orm/models/blueprintConstruction.js +1 -1
- package/modules/orm/models/blueprintTemplate.js +1 -1
- package/modules/orm/models/computeLogModule.js +1 -1
- package/modules/orm/models/configSecretsModule.js +1 -1
- package/modules/orm/models/configSecretsOrgModule.js +1 -1
- package/modules/orm/models/configSecretsUserModule.js +1 -1
- package/modules/orm/models/connectedAccountsModule.js +1 -1
- package/modules/orm/models/cryptoAddressesModule.js +1 -1
- package/modules/orm/models/cryptoAuthModule.js +1 -1
- package/modules/orm/models/databaseProvisionModule.js +1 -1
- package/modules/orm/models/dbUsageModule.js +1 -1
- package/modules/orm/models/defaultIdsModule.js +1 -1
- package/modules/orm/models/denormalizedTableField.js +1 -1
- package/modules/orm/models/devicesModule.js +1 -1
- package/modules/orm/models/emailsModule.js +1 -1
- package/modules/orm/models/entityTypeProvision.js +1 -1
- package/modules/orm/models/eventsModule.js +1 -1
- package/modules/orm/models/functionDeploymentModule.d.ts +54 -0
- package/modules/orm/models/functionDeploymentModule.js +104 -0
- package/modules/orm/models/functionInvocationModule.js +1 -1
- package/modules/orm/models/functionModule.js +1 -1
- package/modules/orm/models/graphExecutionModule.d.ts +54 -0
- package/modules/orm/models/graphExecutionModule.js +104 -0
- package/modules/orm/models/graphModule.js +1 -1
- package/modules/orm/models/hierarchyModule.js +1 -1
- package/modules/orm/models/i18NModule.js +1 -1
- package/modules/orm/models/identityProvidersModule.js +1 -1
- package/modules/orm/models/index.d.ts +3 -1
- package/modules/orm/models/index.js +8 -4
- package/modules/orm/models/inferenceLogModule.js +1 -1
- package/modules/orm/models/invitesModule.js +1 -1
- package/modules/orm/models/limitsModule.js +1 -1
- package/modules/orm/models/membershipTypesModule.js +1 -1
- package/modules/orm/models/membershipsModule.js +1 -1
- package/modules/orm/models/merkleStoreModule.js +1 -1
- package/modules/orm/models/namespaceModule.js +1 -1
- package/modules/orm/models/notificationsModule.js +1 -1
- package/modules/orm/models/permissionsModule.js +1 -1
- package/modules/orm/models/phoneNumbersModule.js +1 -1
- package/modules/orm/models/plansModule.js +1 -1
- package/modules/orm/models/profilesModule.js +1 -1
- package/modules/orm/models/rateLimitMetersModule.js +1 -1
- package/modules/orm/models/rateLimitsModule.js +1 -1
- package/modules/orm/models/realtimeModule.js +1 -1
- package/modules/orm/models/relationProvision.js +1 -1
- package/modules/orm/models/rlsModule.js +1 -1
- package/modules/orm/models/secureTableProvision.js +1 -1
- package/modules/orm/models/sessionSecretsModule.js +1 -1
- package/modules/orm/models/sessionsModule.js +1 -1
- package/modules/orm/models/storageLogModule.js +1 -1
- package/modules/orm/models/storageModule.js +1 -1
- package/modules/orm/models/transferLogModule.js +1 -1
- package/modules/orm/models/userAuthModule.js +1 -1
- package/modules/orm/models/userCredentialsModule.js +1 -1
- package/modules/orm/models/userSettingsModule.js +1 -1
- package/modules/orm/models/userStateModule.js +1 -1
- package/modules/orm/models/usersModule.js +1 -1
- package/modules/orm/models/webauthnAuthModule.js +1 -1
- package/modules/orm/models/webauthnCredentialsModule.js +1 -1
- package/modules/orm/query-builder.d.ts +1 -1
- package/modules/orm/query-builder.js +2 -1
- package/objects/cli/commands/commit.js +14 -7
- package/objects/cli/commands/object.js +9 -2
- package/objects/cli/commands/ref.js +13 -6
- package/objects/orm/models/commit.d.ts +2 -0
- package/objects/orm/models/commit.js +4 -1
- package/objects/orm/models/object.d.ts +2 -0
- package/objects/orm/models/object.js +4 -1
- package/objects/orm/models/ref.d.ts +2 -0
- package/objects/orm/models/ref.js +4 -1
- package/objects/orm/models/store.js +1 -1
- package/objects/orm/query-builder.d.ts +1 -1
- package/objects/orm/query-builder.js +2 -1
- package/package.json +3 -3
- package/usage/cli/commands/app-limit-event.js +14 -0
- package/usage/cli/commands/org-limit-event.js +14 -0
- package/usage/orm/models/appLimit.js +1 -1
- package/usage/orm/models/appLimitCap.js +1 -1
- package/usage/orm/models/appLimitCapsDefault.js +1 -1
- package/usage/orm/models/appLimitCredit.js +1 -1
- package/usage/orm/models/appLimitCreditCode.js +1 -1
- package/usage/orm/models/appLimitCreditCodeItem.js +1 -1
- package/usage/orm/models/appLimitCreditRedemption.js +1 -1
- package/usage/orm/models/appLimitDefault.js +1 -1
- package/usage/orm/models/appLimitEvent.d.ts +2 -0
- package/usage/orm/models/appLimitEvent.js +4 -1
- package/usage/orm/models/appLimitWarning.js +1 -1
- package/usage/orm/models/orgLimit.js +1 -1
- package/usage/orm/models/orgLimitAggregate.js +1 -1
- package/usage/orm/models/orgLimitCap.js +1 -1
- package/usage/orm/models/orgLimitCapsDefault.js +1 -1
- package/usage/orm/models/orgLimitCredit.js +1 -1
- package/usage/orm/models/orgLimitDefault.js +1 -1
- package/usage/orm/models/orgLimitEvent.d.ts +2 -0
- package/usage/orm/models/orgLimitEvent.js +4 -1
- package/usage/orm/models/orgLimitWarning.js +1 -1
- package/usage/orm/query-builder.d.ts +1 -1
- package/usage/orm/query-builder.js +2 -1
- package/config/app-dirs.d.ts +0 -31
- package/config/app-dirs.js +0 -33
- package/esm/config/app-dirs.d.ts +0 -31
- package/esm/config/app-dirs.js +0 -29
|
@@ -0,0 +1,145 @@
|
|
|
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
|
+
* Error thrown when GraphQL request fails
|
|
64
|
+
*/
|
|
65
|
+
export class GraphQLRequestError extends Error {
|
|
66
|
+
errors;
|
|
67
|
+
data;
|
|
68
|
+
constructor(errors, data = null) {
|
|
69
|
+
const messages = errors.map((e) => e.message).join('; ');
|
|
70
|
+
super(`GraphQL Error: ${messages}`);
|
|
71
|
+
this.errors = errors;
|
|
72
|
+
this.data = data;
|
|
73
|
+
this.name = 'GraphQLRequestError';
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
export class OrmClient {
|
|
77
|
+
adapter;
|
|
78
|
+
realtimeManager;
|
|
79
|
+
constructor(config) {
|
|
80
|
+
if (config.adapter) {
|
|
81
|
+
this.adapter = config.adapter;
|
|
82
|
+
}
|
|
83
|
+
else if (config.endpoint) {
|
|
84
|
+
this.adapter = new FetchAdapter(config.endpoint, config.headers, config.fetch);
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
throw new Error('OrmClientConfig requires either an endpoint or a custom adapter');
|
|
88
|
+
}
|
|
89
|
+
if (config.realtime) {
|
|
90
|
+
this.realtimeManager = new RealtimeManager(config.realtime);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
async execute(document, variables) {
|
|
94
|
+
return this.adapter.execute(document, variables);
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Subscribe to a GraphQL subscription operation.
|
|
98
|
+
* Used by generated model subscribe() methods.
|
|
99
|
+
* @throws Error if realtime is not configured
|
|
100
|
+
*/
|
|
101
|
+
subscribe(meta, document, variables, options) {
|
|
102
|
+
if (!this.realtimeManager) {
|
|
103
|
+
throw new Error('Realtime not configured. Pass a `realtime` option to createClient() to enable subscriptions.');
|
|
104
|
+
}
|
|
105
|
+
return this.realtimeManager.subscribe(meta, document, variables, options);
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Set headers for requests.
|
|
109
|
+
* Only works if the adapter supports headers.
|
|
110
|
+
*/
|
|
111
|
+
setHeaders(headers) {
|
|
112
|
+
if (this.adapter.setHeaders) {
|
|
113
|
+
this.adapter.setHeaders(headers);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Get the endpoint URL.
|
|
118
|
+
* Returns empty string if the adapter doesn't have an endpoint.
|
|
119
|
+
*/
|
|
120
|
+
getEndpoint() {
|
|
121
|
+
return this.adapter.getEndpoint?.() ?? '';
|
|
122
|
+
}
|
|
123
|
+
/** Get current WebSocket connection state */
|
|
124
|
+
getConnectionState() {
|
|
125
|
+
return this.realtimeManager?.getConnectionState() ?? 'disconnected';
|
|
126
|
+
}
|
|
127
|
+
/** Register a listener for WebSocket connection state changes */
|
|
128
|
+
onConnectionStateChange(listener) {
|
|
129
|
+
if (!this.realtimeManager)
|
|
130
|
+
return () => { };
|
|
131
|
+
return this.realtimeManager.onConnectionStateChange(listener);
|
|
132
|
+
}
|
|
133
|
+
/** Number of active subscriptions */
|
|
134
|
+
getActiveSubscriptionCount() {
|
|
135
|
+
return this.realtimeManager?.getActiveSubscriptionCount() ?? 0;
|
|
136
|
+
}
|
|
137
|
+
/** Whether realtime is configured */
|
|
138
|
+
get isRealtimeEnabled() {
|
|
139
|
+
return this.realtimeManager !== undefined;
|
|
140
|
+
}
|
|
141
|
+
/** Dispose the realtime manager (close WebSocket) */
|
|
142
|
+
dispose() {
|
|
143
|
+
this.realtimeManager?.dispose();
|
|
144
|
+
}
|
|
145
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import type { OrmClientConfig } from './client';
|
|
2
|
+
import { GetAllRecordModel } from './models/getAllRecord';
|
|
3
|
+
import { FunctionApiBindingModel } from './models/functionApiBinding';
|
|
4
|
+
import { FunctionDeploymentModel } from './models/functionDeployment';
|
|
5
|
+
import { FunctionGraphRefModel } from './models/functionGraphRef';
|
|
6
|
+
import { FunctionGraphStoreModel } from './models/functionGraphStore';
|
|
7
|
+
import { FunctionGraphObjectModel } from './models/functionGraphObject';
|
|
8
|
+
import { FunctionDeploymentEventModel } from './models/functionDeploymentEvent';
|
|
9
|
+
import { OrgFunctionExecutionLogModel } from './models/orgFunctionExecutionLog';
|
|
10
|
+
import { FunctionGraphExecutionOutputModel } from './models/functionGraphExecutionOutput';
|
|
11
|
+
import { FunctionGraphCommitModel } from './models/functionGraphCommit';
|
|
12
|
+
import { SecretDefinitionModel } from './models/secretDefinition';
|
|
13
|
+
import { FunctionExecutionLogModel } from './models/functionExecutionLog';
|
|
14
|
+
import { FunctionGraphExecutionNodeStateModel } from './models/functionGraphExecutionNodeState';
|
|
15
|
+
import { FunctionGraphModel } from './models/functionGraph';
|
|
16
|
+
import { OrgFunctionInvocationModel } from './models/orgFunctionInvocation';
|
|
17
|
+
import { FunctionInvocationModel } from './models/functionInvocation';
|
|
18
|
+
import { FunctionGraphExecutionModel } from './models/functionGraphExecution';
|
|
19
|
+
import { FunctionDefinitionModel } from './models/functionDefinition';
|
|
20
|
+
export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client';
|
|
21
|
+
export { GraphQLRequestError, FetchAdapter } from './client';
|
|
22
|
+
export { QueryBuilder } from './query-builder';
|
|
23
|
+
export * from './select-types';
|
|
24
|
+
export * from './models';
|
|
25
|
+
export { createQueryOperations } from './query';
|
|
26
|
+
export { createMutationOperations } from './mutation';
|
|
27
|
+
/**
|
|
28
|
+
* Create an ORM client instance
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```typescript
|
|
32
|
+
* const db = createClient({
|
|
33
|
+
* endpoint: 'https://api.example.com/graphql',
|
|
34
|
+
* headers: { Authorization: 'Bearer token' },
|
|
35
|
+
* });
|
|
36
|
+
*
|
|
37
|
+
* // Query users
|
|
38
|
+
* const users = await db.user.findMany({
|
|
39
|
+
* select: { id: true, name: true },
|
|
40
|
+
* first: 10,
|
|
41
|
+
* }).execute();
|
|
42
|
+
*
|
|
43
|
+
* // Create a user
|
|
44
|
+
* const newUser = await db.user.create({
|
|
45
|
+
* data: { name: 'John', email: 'john@example.com' },
|
|
46
|
+
* select: { id: true },
|
|
47
|
+
* }).execute();
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export declare function createClient(config: OrmClientConfig): {
|
|
51
|
+
getAllRecord: GetAllRecordModel;
|
|
52
|
+
functionApiBinding: FunctionApiBindingModel;
|
|
53
|
+
functionDeployment: FunctionDeploymentModel;
|
|
54
|
+
functionGraphRef: FunctionGraphRefModel;
|
|
55
|
+
functionGraphStore: FunctionGraphStoreModel;
|
|
56
|
+
functionGraphObject: FunctionGraphObjectModel;
|
|
57
|
+
functionDeploymentEvent: FunctionDeploymentEventModel;
|
|
58
|
+
orgFunctionExecutionLog: OrgFunctionExecutionLogModel;
|
|
59
|
+
functionGraphExecutionOutput: FunctionGraphExecutionOutputModel;
|
|
60
|
+
functionGraphCommit: FunctionGraphCommitModel;
|
|
61
|
+
secretDefinition: SecretDefinitionModel;
|
|
62
|
+
functionExecutionLog: FunctionExecutionLogModel;
|
|
63
|
+
functionGraphExecutionNodeState: FunctionGraphExecutionNodeStateModel;
|
|
64
|
+
functionGraph: FunctionGraphModel;
|
|
65
|
+
orgFunctionInvocation: OrgFunctionInvocationModel;
|
|
66
|
+
functionInvocation: FunctionInvocationModel;
|
|
67
|
+
functionGraphExecution: FunctionGraphExecutionModel;
|
|
68
|
+
functionDefinition: FunctionDefinitionModel;
|
|
69
|
+
query: {
|
|
70
|
+
readFunctionGraph: (args: import("./query").ReadFunctionGraphVariables, options?: {
|
|
71
|
+
select?: Record<string, unknown>;
|
|
72
|
+
}) => import("./query-builder").QueryBuilder<{
|
|
73
|
+
readFunctionGraph: unknown | null;
|
|
74
|
+
}>;
|
|
75
|
+
};
|
|
76
|
+
mutation: {
|
|
77
|
+
validateFunctionGraph: <S extends import("./input-types").ValidateFunctionGraphPayloadSelect>(args: import("./mutation").ValidateFunctionGraphVariables, options: {
|
|
78
|
+
select: S;
|
|
79
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").ValidateFunctionGraphPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
80
|
+
validateFunctionGraph: import("./select-types").InferSelectResult<import("./input-types").ValidateFunctionGraphPayload, S> | null;
|
|
81
|
+
}>;
|
|
82
|
+
initEmptyRepo: <S extends import("./input-types").InitEmptyRepoPayloadSelect>(args: import("./mutation").InitEmptyRepoVariables, options: {
|
|
83
|
+
select: S;
|
|
84
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").InitEmptyRepoPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
85
|
+
initEmptyRepo: import("./select-types").InferSelectResult<import("./input-types").InitEmptyRepoPayload, S> | null;
|
|
86
|
+
}>;
|
|
87
|
+
setDataAtPath: <S extends import("./input-types").SetDataAtPathPayloadSelect>(args: import("./mutation").SetDataAtPathVariables, options: {
|
|
88
|
+
select: S;
|
|
89
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").SetDataAtPathPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
90
|
+
setDataAtPath: import("./select-types").InferSelectResult<import("./input-types").SetDataAtPathPayload, S> | null;
|
|
91
|
+
}>;
|
|
92
|
+
importDefinitions: <S extends import("./input-types").ImportDefinitionsPayloadSelect>(args: import("./mutation").ImportDefinitionsVariables, options: {
|
|
93
|
+
select: S;
|
|
94
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").ImportDefinitionsPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
95
|
+
importDefinitions: import("./select-types").InferSelectResult<import("./input-types").ImportDefinitionsPayload, S> | null;
|
|
96
|
+
}>;
|
|
97
|
+
copyGraph: <S extends import("./input-types").CopyGraphPayloadSelect>(args: import("./mutation").CopyGraphVariables, options: {
|
|
98
|
+
select: S;
|
|
99
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").CopyGraphPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
100
|
+
copyGraph: import("./select-types").InferSelectResult<import("./input-types").CopyGraphPayload, S> | null;
|
|
101
|
+
}>;
|
|
102
|
+
saveGraph: <S extends import("./input-types").SaveGraphPayloadSelect>(args: import("./mutation").SaveGraphVariables, options: {
|
|
103
|
+
select: S;
|
|
104
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").SaveGraphPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
105
|
+
saveGraph: import("./select-types").InferSelectResult<import("./input-types").SaveGraphPayload, S> | null;
|
|
106
|
+
}>;
|
|
107
|
+
addEdgeAndSave: <S extends import("./input-types").AddEdgeAndSavePayloadSelect>(args: import("./mutation").AddEdgeAndSaveVariables, options: {
|
|
108
|
+
select: S;
|
|
109
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").AddEdgeAndSavePayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
110
|
+
addEdgeAndSave: import("./select-types").InferSelectResult<import("./input-types").AddEdgeAndSavePayload, S> | null;
|
|
111
|
+
}>;
|
|
112
|
+
addNodeAndSave: <S extends import("./input-types").AddNodeAndSavePayloadSelect>(args: import("./mutation").AddNodeAndSaveVariables, options: {
|
|
113
|
+
select: S;
|
|
114
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").AddNodeAndSavePayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
115
|
+
addNodeAndSave: import("./select-types").InferSelectResult<import("./input-types").AddNodeAndSavePayload, S> | null;
|
|
116
|
+
}>;
|
|
117
|
+
addEdge: <S extends import("./input-types").AddEdgePayloadSelect>(args: import("./mutation").AddEdgeVariables, options: {
|
|
118
|
+
select: S;
|
|
119
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").AddEdgePayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
120
|
+
addEdge: import("./select-types").InferSelectResult<import("./input-types").AddEdgePayload, S> | null;
|
|
121
|
+
}>;
|
|
122
|
+
addNode: <S extends import("./input-types").AddNodePayloadSelect>(args: import("./mutation").AddNodeVariables, options: {
|
|
123
|
+
select: S;
|
|
124
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").AddNodePayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
125
|
+
addNode: import("./select-types").InferSelectResult<import("./input-types").AddNodePayload, S> | null;
|
|
126
|
+
}>;
|
|
127
|
+
importGraphJson: <S extends import("./input-types").ImportGraphJsonPayloadSelect>(args: import("./mutation").ImportGraphJsonVariables, options: {
|
|
128
|
+
select: S;
|
|
129
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").ImportGraphJsonPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
130
|
+
importGraphJson: import("./select-types").InferSelectResult<import("./input-types").ImportGraphJsonPayload, S> | null;
|
|
131
|
+
}>;
|
|
132
|
+
insertNodeAtPath: <S extends import("./input-types").InsertNodeAtPathPayloadSelect>(args: import("./mutation").InsertNodeAtPathVariables, options: {
|
|
133
|
+
select: S;
|
|
134
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").InsertNodeAtPathPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
135
|
+
insertNodeAtPath: import("./select-types").InferSelectResult<import("./input-types").InsertNodeAtPathPayload, S> | null;
|
|
136
|
+
}>;
|
|
137
|
+
startExecution: <S extends import("./input-types").StartExecutionPayloadSelect>(args: import("./mutation").StartExecutionVariables, options: {
|
|
138
|
+
select: S;
|
|
139
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").StartExecutionPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
140
|
+
startExecution: import("./select-types").InferSelectResult<import("./input-types").StartExecutionPayload, S> | null;
|
|
141
|
+
}>;
|
|
142
|
+
provisionBucket: <S extends import("./input-types").ProvisionBucketPayloadSelect>(args: import("./mutation").ProvisionBucketVariables, options: {
|
|
143
|
+
select: S;
|
|
144
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").ProvisionBucketPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
145
|
+
provisionBucket: import("./select-types").InferSelectResult<import("./input-types").ProvisionBucketPayload, S> | null;
|
|
146
|
+
}>;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
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 { GetAllRecordModel } from './models/getAllRecord';
|
|
8
|
+
import { FunctionApiBindingModel } from './models/functionApiBinding';
|
|
9
|
+
import { FunctionDeploymentModel } from './models/functionDeployment';
|
|
10
|
+
import { FunctionGraphRefModel } from './models/functionGraphRef';
|
|
11
|
+
import { FunctionGraphStoreModel } from './models/functionGraphStore';
|
|
12
|
+
import { FunctionGraphObjectModel } from './models/functionGraphObject';
|
|
13
|
+
import { FunctionDeploymentEventModel } from './models/functionDeploymentEvent';
|
|
14
|
+
import { OrgFunctionExecutionLogModel } from './models/orgFunctionExecutionLog';
|
|
15
|
+
import { FunctionGraphExecutionOutputModel } from './models/functionGraphExecutionOutput';
|
|
16
|
+
import { FunctionGraphCommitModel } from './models/functionGraphCommit';
|
|
17
|
+
import { SecretDefinitionModel } from './models/secretDefinition';
|
|
18
|
+
import { FunctionExecutionLogModel } from './models/functionExecutionLog';
|
|
19
|
+
import { FunctionGraphExecutionNodeStateModel } from './models/functionGraphExecutionNodeState';
|
|
20
|
+
import { FunctionGraphModel } from './models/functionGraph';
|
|
21
|
+
import { OrgFunctionInvocationModel } from './models/orgFunctionInvocation';
|
|
22
|
+
import { FunctionInvocationModel } from './models/functionInvocation';
|
|
23
|
+
import { FunctionGraphExecutionModel } from './models/functionGraphExecution';
|
|
24
|
+
import { FunctionDefinitionModel } from './models/functionDefinition';
|
|
25
|
+
import { createQueryOperations } from './query';
|
|
26
|
+
import { createMutationOperations } from './mutation';
|
|
27
|
+
export { GraphQLRequestError, FetchAdapter } from './client';
|
|
28
|
+
export { QueryBuilder } from './query-builder';
|
|
29
|
+
export * from './select-types';
|
|
30
|
+
export * from './models';
|
|
31
|
+
export { createQueryOperations } from './query';
|
|
32
|
+
export { createMutationOperations } from './mutation';
|
|
33
|
+
/**
|
|
34
|
+
* Create an ORM client instance
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```typescript
|
|
38
|
+
* const db = createClient({
|
|
39
|
+
* endpoint: 'https://api.example.com/graphql',
|
|
40
|
+
* headers: { Authorization: 'Bearer token' },
|
|
41
|
+
* });
|
|
42
|
+
*
|
|
43
|
+
* // Query users
|
|
44
|
+
* const users = await db.user.findMany({
|
|
45
|
+
* select: { id: true, name: true },
|
|
46
|
+
* first: 10,
|
|
47
|
+
* }).execute();
|
|
48
|
+
*
|
|
49
|
+
* // Create a user
|
|
50
|
+
* const newUser = await db.user.create({
|
|
51
|
+
* data: { name: 'John', email: 'john@example.com' },
|
|
52
|
+
* select: { id: true },
|
|
53
|
+
* }).execute();
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
export function createClient(config) {
|
|
57
|
+
const client = new OrmClient(config);
|
|
58
|
+
return {
|
|
59
|
+
getAllRecord: new GetAllRecordModel(client),
|
|
60
|
+
functionApiBinding: new FunctionApiBindingModel(client),
|
|
61
|
+
functionDeployment: new FunctionDeploymentModel(client),
|
|
62
|
+
functionGraphRef: new FunctionGraphRefModel(client),
|
|
63
|
+
functionGraphStore: new FunctionGraphStoreModel(client),
|
|
64
|
+
functionGraphObject: new FunctionGraphObjectModel(client),
|
|
65
|
+
functionDeploymentEvent: new FunctionDeploymentEventModel(client),
|
|
66
|
+
orgFunctionExecutionLog: new OrgFunctionExecutionLogModel(client),
|
|
67
|
+
functionGraphExecutionOutput: new FunctionGraphExecutionOutputModel(client),
|
|
68
|
+
functionGraphCommit: new FunctionGraphCommitModel(client),
|
|
69
|
+
secretDefinition: new SecretDefinitionModel(client),
|
|
70
|
+
functionExecutionLog: new FunctionExecutionLogModel(client),
|
|
71
|
+
functionGraphExecutionNodeState: new FunctionGraphExecutionNodeStateModel(client),
|
|
72
|
+
functionGraph: new FunctionGraphModel(client),
|
|
73
|
+
orgFunctionInvocation: new OrgFunctionInvocationModel(client),
|
|
74
|
+
functionInvocation: new FunctionInvocationModel(client),
|
|
75
|
+
functionGraphExecution: new FunctionGraphExecutionModel(client),
|
|
76
|
+
functionDefinition: new FunctionDefinitionModel(client),
|
|
77
|
+
query: createQueryOperations(client),
|
|
78
|
+
mutation: createMutationOperations(client),
|
|
79
|
+
};
|
|
80
|
+
}
|