@constructive-sdk/cli 0.25.15 → 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 +5 -5
- 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,100 @@
|
|
|
1
|
+
export declare const getStore: () => import("appstash").ConfigStore;
|
|
2
|
+
export declare function getClient(contextName?: string): {
|
|
3
|
+
getAllRecord: import("../orm").GetAllRecordModel;
|
|
4
|
+
functionApiBinding: import("../orm").FunctionApiBindingModel;
|
|
5
|
+
functionDeployment: import("../orm").FunctionDeploymentModel;
|
|
6
|
+
functionGraphRef: import("../orm").FunctionGraphRefModel;
|
|
7
|
+
functionGraphStore: import("../orm").FunctionGraphStoreModel;
|
|
8
|
+
functionGraphObject: import("../orm").FunctionGraphObjectModel;
|
|
9
|
+
functionDeploymentEvent: import("../orm").FunctionDeploymentEventModel;
|
|
10
|
+
orgFunctionExecutionLog: import("../orm").OrgFunctionExecutionLogModel;
|
|
11
|
+
functionGraphExecutionOutput: import("../orm").FunctionGraphExecutionOutputModel;
|
|
12
|
+
functionGraphCommit: import("../orm").FunctionGraphCommitModel;
|
|
13
|
+
secretDefinition: import("../orm").SecretDefinitionModel;
|
|
14
|
+
functionExecutionLog: import("../orm").FunctionExecutionLogModel;
|
|
15
|
+
functionGraphExecutionNodeState: import("../orm").FunctionGraphExecutionNodeStateModel;
|
|
16
|
+
functionGraph: import("../orm").FunctionGraphModel;
|
|
17
|
+
orgFunctionInvocation: import("../orm").OrgFunctionInvocationModel;
|
|
18
|
+
functionInvocation: import("../orm").FunctionInvocationModel;
|
|
19
|
+
functionGraphExecution: import("../orm").FunctionGraphExecutionModel;
|
|
20
|
+
functionDefinition: import("../orm").FunctionDefinitionModel;
|
|
21
|
+
query: {
|
|
22
|
+
readFunctionGraph: (args: import("../orm/query").ReadFunctionGraphVariables, options?: {
|
|
23
|
+
select?: Record<string, unknown>;
|
|
24
|
+
}) => import("../orm").QueryBuilder<{
|
|
25
|
+
readFunctionGraph: unknown | null;
|
|
26
|
+
}>;
|
|
27
|
+
};
|
|
28
|
+
mutation: {
|
|
29
|
+
validateFunctionGraph: <S extends import("../orm/input-types").ValidateFunctionGraphPayloadSelect>(args: import("../orm/mutation").ValidateFunctionGraphVariables, options: {
|
|
30
|
+
select: S;
|
|
31
|
+
} & import("../orm").StrictSelect<S, import("../orm/input-types").ValidateFunctionGraphPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
32
|
+
validateFunctionGraph: import("../orm").InferSelectResult<import("../orm/input-types").ValidateFunctionGraphPayload, S> | null;
|
|
33
|
+
}>;
|
|
34
|
+
initEmptyRepo: <S extends import("../orm/input-types").InitEmptyRepoPayloadSelect>(args: import("../orm/mutation").InitEmptyRepoVariables, options: {
|
|
35
|
+
select: S;
|
|
36
|
+
} & import("../orm").StrictSelect<S, import("../orm/input-types").InitEmptyRepoPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
37
|
+
initEmptyRepo: import("../orm").InferSelectResult<import("../orm/input-types").InitEmptyRepoPayload, S> | null;
|
|
38
|
+
}>;
|
|
39
|
+
setDataAtPath: <S extends import("../orm/input-types").SetDataAtPathPayloadSelect>(args: import("../orm/mutation").SetDataAtPathVariables, options: {
|
|
40
|
+
select: S;
|
|
41
|
+
} & import("../orm").StrictSelect<S, import("../orm/input-types").SetDataAtPathPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
42
|
+
setDataAtPath: import("../orm").InferSelectResult<import("../orm/input-types").SetDataAtPathPayload, S> | null;
|
|
43
|
+
}>;
|
|
44
|
+
importDefinitions: <S extends import("../orm/input-types").ImportDefinitionsPayloadSelect>(args: import("../orm/mutation").ImportDefinitionsVariables, options: {
|
|
45
|
+
select: S;
|
|
46
|
+
} & import("../orm").StrictSelect<S, import("../orm/input-types").ImportDefinitionsPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
47
|
+
importDefinitions: import("../orm").InferSelectResult<import("../orm/input-types").ImportDefinitionsPayload, S> | null;
|
|
48
|
+
}>;
|
|
49
|
+
copyGraph: <S extends import("../orm/input-types").CopyGraphPayloadSelect>(args: import("../orm/mutation").CopyGraphVariables, options: {
|
|
50
|
+
select: S;
|
|
51
|
+
} & import("../orm").StrictSelect<S, import("../orm/input-types").CopyGraphPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
52
|
+
copyGraph: import("../orm").InferSelectResult<import("../orm/input-types").CopyGraphPayload, S> | null;
|
|
53
|
+
}>;
|
|
54
|
+
saveGraph: <S extends import("../orm/input-types").SaveGraphPayloadSelect>(args: import("../orm/mutation").SaveGraphVariables, options: {
|
|
55
|
+
select: S;
|
|
56
|
+
} & import("../orm").StrictSelect<S, import("../orm/input-types").SaveGraphPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
57
|
+
saveGraph: import("../orm").InferSelectResult<import("../orm/input-types").SaveGraphPayload, S> | null;
|
|
58
|
+
}>;
|
|
59
|
+
addEdgeAndSave: <S extends import("../orm/input-types").AddEdgeAndSavePayloadSelect>(args: import("../orm/mutation").AddEdgeAndSaveVariables, options: {
|
|
60
|
+
select: S;
|
|
61
|
+
} & import("../orm").StrictSelect<S, import("../orm/input-types").AddEdgeAndSavePayloadSelect>) => import("../orm").QueryBuilder<{
|
|
62
|
+
addEdgeAndSave: import("../orm").InferSelectResult<import("../orm/input-types").AddEdgeAndSavePayload, S> | null;
|
|
63
|
+
}>;
|
|
64
|
+
addNodeAndSave: <S extends import("../orm/input-types").AddNodeAndSavePayloadSelect>(args: import("../orm/mutation").AddNodeAndSaveVariables, options: {
|
|
65
|
+
select: S;
|
|
66
|
+
} & import("../orm").StrictSelect<S, import("../orm/input-types").AddNodeAndSavePayloadSelect>) => import("../orm").QueryBuilder<{
|
|
67
|
+
addNodeAndSave: import("../orm").InferSelectResult<import("../orm/input-types").AddNodeAndSavePayload, S> | null;
|
|
68
|
+
}>;
|
|
69
|
+
addEdge: <S extends import("../orm/input-types").AddEdgePayloadSelect>(args: import("../orm/mutation").AddEdgeVariables, options: {
|
|
70
|
+
select: S;
|
|
71
|
+
} & import("../orm").StrictSelect<S, import("../orm/input-types").AddEdgePayloadSelect>) => import("../orm").QueryBuilder<{
|
|
72
|
+
addEdge: import("../orm").InferSelectResult<import("../orm/input-types").AddEdgePayload, S> | null;
|
|
73
|
+
}>;
|
|
74
|
+
addNode: <S extends import("../orm/input-types").AddNodePayloadSelect>(args: import("../orm/mutation").AddNodeVariables, options: {
|
|
75
|
+
select: S;
|
|
76
|
+
} & import("../orm").StrictSelect<S, import("../orm/input-types").AddNodePayloadSelect>) => import("../orm").QueryBuilder<{
|
|
77
|
+
addNode: import("../orm").InferSelectResult<import("../orm/input-types").AddNodePayload, S> | null;
|
|
78
|
+
}>;
|
|
79
|
+
importGraphJson: <S extends import("../orm/input-types").ImportGraphJsonPayloadSelect>(args: import("../orm/mutation").ImportGraphJsonVariables, options: {
|
|
80
|
+
select: S;
|
|
81
|
+
} & import("../orm").StrictSelect<S, import("../orm/input-types").ImportGraphJsonPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
82
|
+
importGraphJson: import("../orm").InferSelectResult<import("../orm/input-types").ImportGraphJsonPayload, S> | null;
|
|
83
|
+
}>;
|
|
84
|
+
insertNodeAtPath: <S extends import("../orm/input-types").InsertNodeAtPathPayloadSelect>(args: import("../orm/mutation").InsertNodeAtPathVariables, options: {
|
|
85
|
+
select: S;
|
|
86
|
+
} & import("../orm").StrictSelect<S, import("../orm/input-types").InsertNodeAtPathPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
87
|
+
insertNodeAtPath: import("../orm").InferSelectResult<import("../orm/input-types").InsertNodeAtPathPayload, S> | null;
|
|
88
|
+
}>;
|
|
89
|
+
startExecution: <S extends import("../orm/input-types").StartExecutionPayloadSelect>(args: import("../orm/mutation").StartExecutionVariables, options: {
|
|
90
|
+
select: S;
|
|
91
|
+
} & import("../orm").StrictSelect<S, import("../orm/input-types").StartExecutionPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
92
|
+
startExecution: import("../orm").InferSelectResult<import("../orm/input-types").StartExecutionPayload, S> | null;
|
|
93
|
+
}>;
|
|
94
|
+
provisionBucket: <S extends import("../orm/input-types").ProvisionBucketPayloadSelect>(args: import("../orm/mutation").ProvisionBucketVariables, options: {
|
|
95
|
+
select: S;
|
|
96
|
+
} & import("../orm").StrictSelect<S, import("../orm/input-types").ProvisionBucketPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
97
|
+
provisionBucket: import("../orm").InferSelectResult<import("../orm/input-types").ProvisionBucketPayload, S> | null;
|
|
98
|
+
}>;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getStore = void 0;
|
|
4
|
+
exports.getClient = getClient;
|
|
5
|
+
/**
|
|
6
|
+
* Executor and config store for CLI
|
|
7
|
+
* @generated by @constructive-io/graphql-codegen
|
|
8
|
+
* DO NOT EDIT - changes will be overwritten
|
|
9
|
+
*/
|
|
10
|
+
const appstash_1 = require("appstash");
|
|
11
|
+
const orm_1 = require("../orm");
|
|
12
|
+
const store = (0, appstash_1.createConfigStore)('csdk');
|
|
13
|
+
const getStore = () => store;
|
|
14
|
+
exports.getStore = getStore;
|
|
15
|
+
function getClient(contextName) {
|
|
16
|
+
let ctx = null;
|
|
17
|
+
if (contextName) {
|
|
18
|
+
ctx = store.loadContext(contextName);
|
|
19
|
+
if (!ctx) {
|
|
20
|
+
throw new Error(`Context "${contextName}" not found.`);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
ctx = store.getCurrentContext();
|
|
25
|
+
if (!ctx) {
|
|
26
|
+
throw new Error('No active context. Run "context create" or "context use" first.');
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
const headers = {};
|
|
30
|
+
if (store.hasValidCredentials(ctx.name)) {
|
|
31
|
+
const creds = store.getCredentials(ctx.name);
|
|
32
|
+
if (creds?.token) {
|
|
33
|
+
headers.Authorization = `Bearer ${creds.token}`;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return (0, orm_1.createClient)({
|
|
37
|
+
endpoint: ctx.endpoint,
|
|
38
|
+
headers: headers,
|
|
39
|
+
});
|
|
40
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/**
|
|
4
|
+
* CLI entry point
|
|
5
|
+
* @generated by @constructive-io/graphql-codegen
|
|
6
|
+
* DO NOT EDIT - changes will be overwritten
|
|
7
|
+
*/
|
|
8
|
+
const inquirerer_1 = require("inquirerer");
|
|
9
|
+
const commands_1 = require("./commands");
|
|
10
|
+
if (process.argv.includes('--version') || process.argv.includes('-v')) {
|
|
11
|
+
const pkg = (0, inquirerer_1.getPackageJson)(__dirname);
|
|
12
|
+
console.log(pkg.version);
|
|
13
|
+
process.exit(0);
|
|
14
|
+
}
|
|
15
|
+
// Check for --tty false or --no-tty to enable non-interactive mode (noTty)
|
|
16
|
+
const ttyIdx = process.argv.indexOf('--tty');
|
|
17
|
+
const noTty = (ttyIdx !== -1 && process.argv[ttyIdx + 1] === 'false') || process.argv.includes('--no-tty');
|
|
18
|
+
const options = {
|
|
19
|
+
noTty,
|
|
20
|
+
minimistOpts: { alias: { v: 'version', h: 'help' } },
|
|
21
|
+
};
|
|
22
|
+
const app = new inquirerer_1.CLI(commands_1.commands, options);
|
|
23
|
+
app.run().catch((e) => {
|
|
24
|
+
console.error('Unexpected error:', e);
|
|
25
|
+
process.exit(1);
|
|
26
|
+
});
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
export type FieldType = 'string' | 'boolean' | 'int' | 'float' | 'json' | 'uuid' | 'enum';
|
|
2
|
+
export interface FieldSchema {
|
|
3
|
+
[fieldName: string]: FieldType;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Coerce CLI string arguments to their proper GraphQL types based on a field schema.
|
|
7
|
+
* CLI args always arrive as strings from minimist, but GraphQL expects
|
|
8
|
+
* Boolean, Int, Float, JSON, etc.
|
|
9
|
+
*/
|
|
10
|
+
export declare function coerceAnswers(answers: Record<string, unknown>, schema: FieldSchema): Record<string, unknown>;
|
|
11
|
+
/**
|
|
12
|
+
* Strip undefined values and filter to only schema-defined keys.
|
|
13
|
+
* This removes extra fields injected by minimist (like _, tty, etc.)
|
|
14
|
+
* and any fields that were coerced to undefined.
|
|
15
|
+
*/
|
|
16
|
+
export declare function stripUndefined(obj: Record<string, unknown>, schema?: FieldSchema): Record<string, unknown>;
|
|
17
|
+
/**
|
|
18
|
+
* Parse mutation input from CLI.
|
|
19
|
+
* Custom mutation commands receive an `input` field as a JSON string
|
|
20
|
+
* from the CLI prompt. This parses it into a proper object.
|
|
21
|
+
*/
|
|
22
|
+
export declare function parseMutationInput(answers: Record<string, unknown>): Record<string, unknown>;
|
|
23
|
+
/**
|
|
24
|
+
* Reconstruct nested objects from dot-notation CLI answers.
|
|
25
|
+
* When INPUT_OBJECT args are flattened to dot-notation questions
|
|
26
|
+
* (e.g. `--input.email foo --input.password bar`), this function
|
|
27
|
+
* rebuilds the nested structure expected by the ORM:
|
|
28
|
+
*
|
|
29
|
+
* { 'input.email': 'foo', 'input.password': 'bar' }
|
|
30
|
+
* → { input: { email: 'foo', password: 'bar' } }
|
|
31
|
+
*
|
|
32
|
+
* Non-dotted keys are passed through unchanged.
|
|
33
|
+
* Uses `nested-obj` for safe nested property setting.
|
|
34
|
+
*/
|
|
35
|
+
export declare function unflattenDotNotation(answers: Record<string, unknown>): Record<string, unknown>;
|
|
36
|
+
/**
|
|
37
|
+
* Build a select object from a comma-separated list of dot-notation paths.
|
|
38
|
+
* Uses `nested-obj` to parse paths like 'clientMutationId,result.accessToken,result.userId'
|
|
39
|
+
* into the nested structure expected by the ORM:
|
|
40
|
+
*
|
|
41
|
+
* { clientMutationId: true, result: { select: { accessToken: true, userId: true } } }
|
|
42
|
+
*
|
|
43
|
+
* Paths without dots set the key to `true` (scalar select).
|
|
44
|
+
* Paths with dots create nested `{ select: { ... } }` wrappers, matching the
|
|
45
|
+
* ORM's expected structure for OBJECT sub-fields (e.g. `SignUpPayloadSelect.result`).
|
|
46
|
+
*
|
|
47
|
+
* @param paths - Comma-separated dot-notation field paths (e.g. 'clientMutationId,result.accessToken')
|
|
48
|
+
* @returns The nested select object for the ORM
|
|
49
|
+
*/
|
|
50
|
+
/**
|
|
51
|
+
* Parse a CLI flag as an integer.
|
|
52
|
+
* Handles minimist delivering numbers or strings depending on the input.
|
|
53
|
+
* Returns undefined when the flag is missing or not a valid number.
|
|
54
|
+
*/
|
|
55
|
+
export declare function parseIntFlag(argv: Record<string, unknown>, name: string): number | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Parse a CLI flag as a string.
|
|
58
|
+
* Returns undefined when the flag is missing or not a string.
|
|
59
|
+
*/
|
|
60
|
+
export declare function parseStringFlag(argv: Record<string, unknown>, name: string): string | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Parse --orderBy flag as a comma-separated list of enum values.
|
|
63
|
+
* e.g. --orderBy NAME_ASC,CREATED_AT_DESC → ['NAME_ASC', 'CREATED_AT_DESC']
|
|
64
|
+
*/
|
|
65
|
+
export declare function parseOrderByFlag(argv: Record<string, unknown>): string[] | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* Parse --select flag into a select object, falling back to a default.
|
|
68
|
+
* e.g. --select id,name → { id: true, name: true }
|
|
69
|
+
*/
|
|
70
|
+
export declare function parseSelectFlag(argv: Record<string, unknown>, defaultSelect: Record<string, unknown>): Record<string, unknown>;
|
|
71
|
+
/**
|
|
72
|
+
* Build the full findManyArgs object from CLI argv.
|
|
73
|
+
* Parses all pagination, filtering, ordering, and field selection flags
|
|
74
|
+
* in one call. Accepts an optional `extraWhere` to merge with dot-notation
|
|
75
|
+
* --where flags (used by the search handler to inject search clauses).
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* const findManyArgs = parseFindManyArgs(argv, { id: true, name: true });
|
|
79
|
+
* const result = await client.user.findMany(findManyArgs).execute();
|
|
80
|
+
*/
|
|
81
|
+
export declare function parseFindManyArgs<T = Record<string, unknown>>(argv: Record<string, unknown>, defaultSelect: Record<string, unknown>, extraWhere?: Record<string, unknown>): T;
|
|
82
|
+
/**
|
|
83
|
+
* Build findFirst args from CLI argv.
|
|
84
|
+
* Like parseFindManyArgs but without pagination flags (no limit/offset/after/before/last)
|
|
85
|
+
* — findFirst returns the first matching record. Supports select, where, and orderBy.
|
|
86
|
+
*/
|
|
87
|
+
export declare function parseFindFirstArgs<T = Record<string, unknown>>(argv: Record<string, unknown>, defaultSelect: Record<string, unknown>): T;
|
|
88
|
+
export declare function buildSelectFromPaths(paths: string): Record<string, unknown>;
|
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.coerceAnswers = coerceAnswers;
|
|
7
|
+
exports.stripUndefined = stripUndefined;
|
|
8
|
+
exports.parseMutationInput = parseMutationInput;
|
|
9
|
+
exports.unflattenDotNotation = unflattenDotNotation;
|
|
10
|
+
exports.parseIntFlag = parseIntFlag;
|
|
11
|
+
exports.parseStringFlag = parseStringFlag;
|
|
12
|
+
exports.parseOrderByFlag = parseOrderByFlag;
|
|
13
|
+
exports.parseSelectFlag = parseSelectFlag;
|
|
14
|
+
exports.parseFindManyArgs = parseFindManyArgs;
|
|
15
|
+
exports.parseFindFirstArgs = parseFindFirstArgs;
|
|
16
|
+
exports.buildSelectFromPaths = buildSelectFromPaths;
|
|
17
|
+
/**
|
|
18
|
+
* CLI utility functions for type coercion and input handling
|
|
19
|
+
* @generated by @constructive-io/graphql-codegen
|
|
20
|
+
* DO NOT EDIT - changes will be overwritten
|
|
21
|
+
*/
|
|
22
|
+
const nested_obj_1 = __importDefault(require("nested-obj"));
|
|
23
|
+
/**
|
|
24
|
+
* Coerce CLI string arguments to their proper GraphQL types based on a field schema.
|
|
25
|
+
* CLI args always arrive as strings from minimist, but GraphQL expects
|
|
26
|
+
* Boolean, Int, Float, JSON, etc.
|
|
27
|
+
*/
|
|
28
|
+
function coerceAnswers(answers, schema) {
|
|
29
|
+
const result = { ...answers };
|
|
30
|
+
for (const [key, value] of Object.entries(result)) {
|
|
31
|
+
const fieldType = schema[key];
|
|
32
|
+
if (!fieldType || value === undefined || value === null)
|
|
33
|
+
continue;
|
|
34
|
+
const strValue = String(value);
|
|
35
|
+
// Empty strings become undefined for non-string types
|
|
36
|
+
if (strValue === '' && fieldType !== 'string') {
|
|
37
|
+
result[key] = undefined;
|
|
38
|
+
continue;
|
|
39
|
+
}
|
|
40
|
+
switch (fieldType) {
|
|
41
|
+
case 'boolean':
|
|
42
|
+
if (typeof value === 'boolean')
|
|
43
|
+
break;
|
|
44
|
+
result[key] = strValue === 'true' || strValue === '1' || strValue === 'yes';
|
|
45
|
+
break;
|
|
46
|
+
case 'int':
|
|
47
|
+
if (typeof value === 'number')
|
|
48
|
+
break;
|
|
49
|
+
{
|
|
50
|
+
const parsed = parseInt(strValue, 10);
|
|
51
|
+
result[key] = isNaN(parsed) ? undefined : parsed;
|
|
52
|
+
}
|
|
53
|
+
break;
|
|
54
|
+
case 'float':
|
|
55
|
+
if (typeof value === 'number')
|
|
56
|
+
break;
|
|
57
|
+
{
|
|
58
|
+
const parsed = parseFloat(strValue);
|
|
59
|
+
result[key] = isNaN(parsed) ? undefined : parsed;
|
|
60
|
+
}
|
|
61
|
+
break;
|
|
62
|
+
case 'json':
|
|
63
|
+
if (typeof value === 'object')
|
|
64
|
+
break;
|
|
65
|
+
if (strValue === '') {
|
|
66
|
+
result[key] = undefined;
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
try {
|
|
70
|
+
result[key] = JSON.parse(strValue);
|
|
71
|
+
}
|
|
72
|
+
catch {
|
|
73
|
+
result[key] = undefined;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
break;
|
|
77
|
+
case 'uuid':
|
|
78
|
+
// Empty UUIDs become undefined
|
|
79
|
+
if (strValue === '') {
|
|
80
|
+
result[key] = undefined;
|
|
81
|
+
}
|
|
82
|
+
break;
|
|
83
|
+
case 'enum':
|
|
84
|
+
// Enums stay as strings but empty ones become undefined
|
|
85
|
+
if (strValue === '') {
|
|
86
|
+
result[key] = undefined;
|
|
87
|
+
}
|
|
88
|
+
break;
|
|
89
|
+
default:
|
|
90
|
+
// String type: empty strings also become undefined to avoid
|
|
91
|
+
// sending empty strings for optional fields
|
|
92
|
+
if (strValue === '') {
|
|
93
|
+
result[key] = undefined;
|
|
94
|
+
}
|
|
95
|
+
break;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
return result;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Strip undefined values and filter to only schema-defined keys.
|
|
102
|
+
* This removes extra fields injected by minimist (like _, tty, etc.)
|
|
103
|
+
* and any fields that were coerced to undefined.
|
|
104
|
+
*/
|
|
105
|
+
function stripUndefined(obj, schema) {
|
|
106
|
+
const result = {};
|
|
107
|
+
const allowedKeys = schema ? new Set(Object.keys(schema)) : null;
|
|
108
|
+
for (const [key, value] of Object.entries(obj)) {
|
|
109
|
+
if (value === undefined)
|
|
110
|
+
continue;
|
|
111
|
+
if (allowedKeys && !allowedKeys.has(key))
|
|
112
|
+
continue;
|
|
113
|
+
result[key] = value;
|
|
114
|
+
}
|
|
115
|
+
return result;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Parse mutation input from CLI.
|
|
119
|
+
* Custom mutation commands receive an `input` field as a JSON string
|
|
120
|
+
* from the CLI prompt. This parses it into a proper object.
|
|
121
|
+
*/
|
|
122
|
+
function parseMutationInput(answers) {
|
|
123
|
+
if (typeof answers.input === 'string') {
|
|
124
|
+
try {
|
|
125
|
+
const parsed = JSON.parse(answers.input);
|
|
126
|
+
return { ...answers, input: parsed };
|
|
127
|
+
}
|
|
128
|
+
catch {
|
|
129
|
+
return answers;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
return answers;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Reconstruct nested objects from dot-notation CLI answers.
|
|
136
|
+
* When INPUT_OBJECT args are flattened to dot-notation questions
|
|
137
|
+
* (e.g. `--input.email foo --input.password bar`), this function
|
|
138
|
+
* rebuilds the nested structure expected by the ORM:
|
|
139
|
+
*
|
|
140
|
+
* { 'input.email': 'foo', 'input.password': 'bar' }
|
|
141
|
+
* → { input: { email: 'foo', password: 'bar' } }
|
|
142
|
+
*
|
|
143
|
+
* Non-dotted keys are passed through unchanged.
|
|
144
|
+
* Uses `nested-obj` for safe nested property setting.
|
|
145
|
+
*/
|
|
146
|
+
function unflattenDotNotation(answers) {
|
|
147
|
+
const result = {};
|
|
148
|
+
for (const [key, value] of Object.entries(answers)) {
|
|
149
|
+
if (key.includes('.')) {
|
|
150
|
+
nested_obj_1.default.set(result, key, value);
|
|
151
|
+
}
|
|
152
|
+
else {
|
|
153
|
+
result[key] = value;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
return result;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Build a select object from a comma-separated list of dot-notation paths.
|
|
160
|
+
* Uses `nested-obj` to parse paths like 'clientMutationId,result.accessToken,result.userId'
|
|
161
|
+
* into the nested structure expected by the ORM:
|
|
162
|
+
*
|
|
163
|
+
* { clientMutationId: true, result: { select: { accessToken: true, userId: true } } }
|
|
164
|
+
*
|
|
165
|
+
* Paths without dots set the key to `true` (scalar select).
|
|
166
|
+
* Paths with dots create nested `{ select: { ... } }` wrappers, matching the
|
|
167
|
+
* ORM's expected structure for OBJECT sub-fields (e.g. `SignUpPayloadSelect.result`).
|
|
168
|
+
*
|
|
169
|
+
* @param paths - Comma-separated dot-notation field paths (e.g. 'clientMutationId,result.accessToken')
|
|
170
|
+
* @returns The nested select object for the ORM
|
|
171
|
+
*/
|
|
172
|
+
/**
|
|
173
|
+
* Parse a CLI flag as an integer.
|
|
174
|
+
* Handles minimist delivering numbers or strings depending on the input.
|
|
175
|
+
* Returns undefined when the flag is missing or not a valid number.
|
|
176
|
+
*/
|
|
177
|
+
function parseIntFlag(argv, name) {
|
|
178
|
+
const val = argv[name];
|
|
179
|
+
if (typeof val === 'number')
|
|
180
|
+
return val;
|
|
181
|
+
if (typeof val === 'string') {
|
|
182
|
+
const n = parseInt(val, 10);
|
|
183
|
+
return isNaN(n) ? undefined : n;
|
|
184
|
+
}
|
|
185
|
+
return undefined;
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Parse a CLI flag as a string.
|
|
189
|
+
* Returns undefined when the flag is missing or not a string.
|
|
190
|
+
*/
|
|
191
|
+
function parseStringFlag(argv, name) {
|
|
192
|
+
const val = argv[name];
|
|
193
|
+
return typeof val === 'string' ? val : undefined;
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Parse --orderBy flag as a comma-separated list of enum values.
|
|
197
|
+
* e.g. --orderBy NAME_ASC,CREATED_AT_DESC → ['NAME_ASC', 'CREATED_AT_DESC']
|
|
198
|
+
*/
|
|
199
|
+
function parseOrderByFlag(argv) {
|
|
200
|
+
const val = argv.orderBy;
|
|
201
|
+
return typeof val === 'string' ? val.split(',') : undefined;
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* Parse --select flag into a select object, falling back to a default.
|
|
205
|
+
* e.g. --select id,name → { id: true, name: true }
|
|
206
|
+
*/
|
|
207
|
+
function parseSelectFlag(argv, defaultSelect) {
|
|
208
|
+
const raw = argv.select;
|
|
209
|
+
return typeof raw === 'string' ? buildSelectFromPaths(raw) : defaultSelect;
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Build the full findManyArgs object from CLI argv.
|
|
213
|
+
* Parses all pagination, filtering, ordering, and field selection flags
|
|
214
|
+
* in one call. Accepts an optional `extraWhere` to merge with dot-notation
|
|
215
|
+
* --where flags (used by the search handler to inject search clauses).
|
|
216
|
+
*
|
|
217
|
+
* @example
|
|
218
|
+
* const findManyArgs = parseFindManyArgs(argv, { id: true, name: true });
|
|
219
|
+
* const result = await client.user.findMany(findManyArgs).execute();
|
|
220
|
+
*/
|
|
221
|
+
function parseFindManyArgs(argv, defaultSelect, extraWhere) {
|
|
222
|
+
const limit = parseIntFlag(argv, 'limit');
|
|
223
|
+
const last = parseIntFlag(argv, 'last');
|
|
224
|
+
const offset = parseIntFlag(argv, 'offset');
|
|
225
|
+
const after = parseStringFlag(argv, 'after');
|
|
226
|
+
const before = parseStringFlag(argv, 'before');
|
|
227
|
+
const select = parseSelectFlag(argv, defaultSelect);
|
|
228
|
+
const parsed = unflattenDotNotation(argv);
|
|
229
|
+
const where = (parsed.where ?? extraWhere)
|
|
230
|
+
? { ...(extraWhere ?? {}), ...(parsed.where ?? {}) }
|
|
231
|
+
: undefined;
|
|
232
|
+
const orderBy = parseOrderByFlag(argv);
|
|
233
|
+
return {
|
|
234
|
+
select,
|
|
235
|
+
...(limit !== undefined ? { first: limit } : {}),
|
|
236
|
+
...(after !== undefined ? { after } : {}),
|
|
237
|
+
...(last !== undefined ? { last } : {}),
|
|
238
|
+
...(before !== undefined ? { before } : {}),
|
|
239
|
+
...(offset !== undefined ? { offset } : {}),
|
|
240
|
+
...(where !== undefined ? { where } : {}),
|
|
241
|
+
...(orderBy !== undefined ? { orderBy } : {}),
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Build findFirst args from CLI argv.
|
|
246
|
+
* Like parseFindManyArgs but without pagination flags (no limit/offset/after/before/last)
|
|
247
|
+
* — findFirst returns the first matching record. Supports select, where, and orderBy.
|
|
248
|
+
*/
|
|
249
|
+
function parseFindFirstArgs(argv, defaultSelect) {
|
|
250
|
+
const select = parseSelectFlag(argv, defaultSelect);
|
|
251
|
+
const parsed = unflattenDotNotation(argv);
|
|
252
|
+
const where = parsed.where;
|
|
253
|
+
const orderBy = parseOrderByFlag(argv);
|
|
254
|
+
return {
|
|
255
|
+
select,
|
|
256
|
+
...(where !== undefined ? { where } : {}),
|
|
257
|
+
...(orderBy !== undefined ? { orderBy } : {}),
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
function buildSelectFromPaths(paths) {
|
|
261
|
+
const result = {};
|
|
262
|
+
const trimmedPaths = paths
|
|
263
|
+
.split(',')
|
|
264
|
+
.map((p) => p.trim())
|
|
265
|
+
.filter((p) => p.length > 0);
|
|
266
|
+
for (const path of trimmedPaths) {
|
|
267
|
+
if (!path.includes('.')) {
|
|
268
|
+
// Simple scalar field: clientMutationId -> { clientMutationId: true }
|
|
269
|
+
result[path] = true;
|
|
270
|
+
}
|
|
271
|
+
else {
|
|
272
|
+
// Nested path: result.accessToken -> { result: { select: { accessToken: true } } }
|
|
273
|
+
// Convert dot-notation to ORM's { select: { ... } } nesting pattern
|
|
274
|
+
const parts = path.split('.');
|
|
275
|
+
let current = result;
|
|
276
|
+
for (let i = 0; i < parts.length; i++) {
|
|
277
|
+
const part = parts[i];
|
|
278
|
+
if (i === parts.length - 1) {
|
|
279
|
+
// Leaf node: set to true
|
|
280
|
+
nested_obj_1.default.set(current, part, true);
|
|
281
|
+
}
|
|
282
|
+
else {
|
|
283
|
+
// Intermediate node: ensure { select: { ... } } wrapper exists
|
|
284
|
+
if (!current[part] || typeof current[part] !== 'object') {
|
|
285
|
+
current[part] = { select: {} };
|
|
286
|
+
}
|
|
287
|
+
const wrapper = current[part];
|
|
288
|
+
if (!wrapper.select || typeof wrapper.select !== 'object') {
|
|
289
|
+
wrapper.select = {};
|
|
290
|
+
}
|
|
291
|
+
current = wrapper.select;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
return result;
|
|
297
|
+
}
|
package/compute/index.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/**
|
|
18
|
+
* GraphQL SDK - auto-generated, do not edit
|
|
19
|
+
* @generated by @constructive-io/graphql-codegen
|
|
20
|
+
*/
|
|
21
|
+
__exportStar(require("./orm"), exports);
|
|
22
|
+
__exportStar(require("./cli"), exports);
|