@constructive-sdk/cli 0.32.1 → 0.32.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agent/orm/input-types.d.ts +24 -0
- package/agent/orm/input-types.js +3 -0
- package/api/cli/commands/ast-migration.js +20 -31
- package/{esm/infra/cli/commands/infra-ref.d.ts → api/cli/commands/http-route.d.ts} +1 -1
- package/api/cli/commands/http-route.js +434 -0
- package/{esm/compute/cli/commands/get-all-record.d.ts → api/cli/commands/managed-domain.d.ts} +1 -1
- package/api/cli/commands/managed-domain.js +382 -0
- package/api/cli/commands/resolve-http-route.d.ts +8 -0
- package/api/cli/commands/resolve-http-route.js +44 -0
- package/api/cli/commands/sql-action.js +20 -31
- package/api/cli/commands.js +7 -3
- package/api/cli/executor.d.ts +7 -1
- package/api/orm/index.d.ts +9 -2
- package/api/orm/index.js +4 -2
- package/api/orm/input-types.d.ts +498 -143
- package/api/orm/input-types.js +4 -0
- package/api/orm/models/httpRoute.d.ts +54 -0
- package/{infra/orm/models/infraRef.js → api/orm/models/httpRoute.js} +27 -30
- package/api/orm/models/index.d.ts +2 -1
- package/api/orm/models/index.js +5 -3
- package/api/orm/models/managedDomain.d.ts +54 -0
- package/{infra/orm/models/infraCommit.js → api/orm/models/managedDomain.js} +27 -30
- package/api/orm/query/index.d.ts +12 -0
- package/api/orm/query/index.js +20 -0
- package/auth/cli/commands/identity-provider.js +4 -8
- package/auth/cli/commands/org-api-key-list.js +9 -18
- package/auth/cli/commands/user-connected-account.js +5 -10
- package/auth/orm/input-types.d.ts +155 -182
- package/auth/orm/input-types.js +4 -0
- package/compute/cli/commands/declared-capacity.d.ts +8 -0
- package/compute/cli/commands/declared-capacity.js +247 -0
- package/compute/cli/commands/function-definition.js +48 -0
- package/compute/cli/commands/function-graph-execution-node-state.js +66 -0
- package/compute/cli/commands/function-graph-execution.js +176 -0
- package/compute/cli/commands/function-invocation.js +66 -0
- package/compute/cli/commands/get-all-tree-nodes-record.d.ts +8 -0
- package/compute/cli/commands/{get-all-record.js → get-all-tree-nodes-record.js} +5 -5
- package/compute/cli/commands/infra-commit.js +19 -19
- package/compute/cli/commands/infra-get-all-tree-nodes-record.d.ts +8 -0
- package/{api/cli/commands/migrate-file.js → compute/cli/commands/infra-get-all-tree-nodes-record.js} +22 -28
- package/compute/cli/commands/infra-object.js +19 -19
- package/compute/cli/commands/infra-ref.js +17 -17
- package/compute/cli/commands/infra-store.js +20 -20
- package/compute/cli/commands/namespace-event.js +0 -154
- package/compute/cli/commands/platform-declared-capacity.d.ts +8 -0
- package/compute/cli/commands/platform-declared-capacity.js +247 -0
- package/compute/cli/commands/platform-function-definition.js +48 -0
- package/compute/cli/commands/platform-function-invocation.js +66 -0
- package/compute/cli/commands/platform-infra-commit.d.ts +8 -0
- package/{infra/cli/commands/infra-commit.js → compute/cli/commands/platform-infra-commit.js} +8 -8
- package/compute/cli/commands/platform-infra-get-all-tree-nodes-record.d.ts +8 -0
- package/compute/cli/commands/{infra-get-all-record.js → platform-infra-get-all-tree-nodes-record.js} +7 -5
- package/compute/cli/commands/platform-infra-init-empty-repo.d.ts +8 -0
- package/{infra/cli/commands/infra-init-empty-repo.js → compute/cli/commands/platform-infra-init-empty-repo.js} +3 -3
- package/compute/cli/commands/platform-infra-insert-node-at-path.d.ts +8 -0
- package/compute/cli/commands/platform-infra-insert-node-at-path.js +36 -0
- package/compute/cli/commands/platform-infra-object.d.ts +8 -0
- package/{infra/cli/commands/infra-object.js → compute/cli/commands/platform-infra-object.js} +8 -8
- package/compute/cli/commands/platform-infra-ref.d.ts +8 -0
- package/{infra/cli/commands/infra-ref.js → compute/cli/commands/platform-infra-ref.js} +8 -8
- package/compute/cli/commands/platform-infra-set-data-at-path.d.ts +8 -0
- package/{infra/cli/commands/infra-set-data-at-path.js → compute/cli/commands/platform-infra-set-data-at-path.js} +3 -3
- package/compute/cli/commands/{infra-get-all-record.d.ts → platform-infra-store.d.ts} +1 -1
- package/{infra/cli/commands/infra-store.js → compute/cli/commands/platform-infra-store.js} +8 -8
- package/compute/cli/commands/platform-namespace-event.js +0 -154
- package/compute/cli/commands/platform-resource-installation.d.ts +8 -0
- package/compute/cli/commands/platform-resource-installation.js +436 -0
- package/compute/cli/commands/platform-resource-installations-install.d.ts +8 -0
- package/compute/cli/commands/platform-resource-installations-install.js +36 -0
- package/compute/cli/commands/platform-resource-installations-rollback.d.ts +8 -0
- package/compute/cli/commands/platform-resource-installations-rollback.js +36 -0
- package/compute/cli/commands/platform-resource-installations-uninstall.d.ts +8 -0
- package/compute/cli/commands/platform-resource-installations-uninstall.js +36 -0
- package/compute/cli/commands/platform-resource-installations-upgrade.d.ts +8 -0
- package/compute/cli/commands/platform-resource-installations-upgrade.js +36 -0
- package/compute/cli/commands/platform-resource-usage-log.d.ts +8 -0
- package/compute/cli/commands/platform-resource-usage-log.js +386 -0
- package/compute/cli/commands/platform-resource-usage-summary.d.ts +8 -0
- package/compute/cli/commands/platform-resource-usage-summary.js +389 -0
- package/compute/cli/commands/platform-resource-utilization-daily.d.ts +8 -0
- package/compute/cli/commands/platform-resource-utilization-daily.js +313 -0
- package/compute/cli/commands/platform-resource.js +51 -0
- package/compute/cli/commands/platform-resources-health.d.ts +8 -0
- package/compute/cli/commands/platform-resources-health.js +413 -0
- package/compute/cli/commands/platform-webhook-endpoint.d.ts +8 -0
- package/compute/cli/commands/platform-webhook-endpoint.js +432 -0
- package/compute/cli/commands/platform-webhook-event.d.ts +8 -0
- package/compute/cli/commands/platform-webhook-event.js +414 -0
- package/compute/cli/commands/resource-installation.d.ts +8 -0
- package/compute/cli/commands/resource-installation.js +456 -0
- package/compute/cli/commands/resource-installations-install.d.ts +8 -0
- package/compute/cli/commands/resource-installations-install.js +36 -0
- package/compute/cli/commands/resource-installations-rollback.d.ts +8 -0
- package/compute/cli/commands/resource-installations-rollback.js +36 -0
- package/compute/cli/commands/resource-installations-uninstall.d.ts +8 -0
- package/compute/cli/commands/resource-installations-uninstall.js +36 -0
- package/compute/cli/commands/resource-installations-upgrade.d.ts +8 -0
- package/compute/cli/commands/resource-installations-upgrade.js +36 -0
- package/compute/cli/commands/resource-usage-log.d.ts +8 -0
- package/compute/cli/commands/resource-usage-log.js +406 -0
- package/compute/cli/commands/resource-usage-summary.d.ts +8 -0
- package/compute/cli/commands/resource-usage-summary.js +409 -0
- package/compute/cli/commands/resource-utilization-daily.d.ts +8 -0
- package/compute/cli/commands/resource-utilization-daily.js +313 -0
- package/compute/cli/commands/resource.js +51 -0
- package/compute/cli/commands/resources-health.d.ts +8 -0
- package/compute/cli/commands/resources-health.js +424 -0
- package/compute/cli/commands/webhook-endpoint.d.ts +8 -0
- package/compute/cli/commands/webhook-endpoint.js +452 -0
- package/{api/cli/commands/migrate-file.d.ts → compute/cli/commands/webhook-event.d.ts} +1 -1
- package/compute/cli/commands/webhook-event.js +434 -0
- package/compute/cli/commands.js +69 -5
- package/compute/cli/executor.d.ts +78 -2
- package/compute/orm/index.d.ts +101 -4
- package/compute/orm/index.js +46 -4
- package/compute/orm/input-types.d.ts +5356 -772
- package/compute/orm/input-types.js +34 -2
- package/compute/orm/models/declaredCapacity.d.ts +30 -0
- package/compute/orm/models/{infraGetAllRecord.js → declaredCapacity.js} +15 -15
- package/compute/orm/models/getAllTreeNodesRecord.d.ts +30 -0
- package/compute/orm/models/{getAllRecord.js → getAllTreeNodesRecord.js} +15 -15
- package/compute/orm/models/index.d.ts +23 -2
- package/compute/orm/models/index.js +48 -5
- package/compute/orm/models/infraCommit.d.ts +2 -2
- package/compute/orm/models/infraCommit.js +2 -2
- package/compute/orm/models/infraGetAllTreeNodesRecord.d.ts +30 -0
- package/compute/orm/models/infraGetAllTreeNodesRecord.js +59 -0
- package/compute/orm/models/infraObject.d.ts +2 -2
- package/compute/orm/models/infraObject.js +2 -2
- package/compute/orm/models/infraRef.d.ts +2 -2
- package/compute/orm/models/infraRef.js +2 -2
- package/compute/orm/models/platformDeclaredCapacity.d.ts +30 -0
- package/{objects/orm/models/getAllRecord.js → compute/orm/models/platformDeclaredCapacity.js} +15 -15
- package/compute/orm/models/platformInfraCommit.d.ts +56 -0
- package/compute/orm/models/platformInfraCommit.js +107 -0
- package/compute/orm/models/platformInfraGetAllTreeNodesRecord.d.ts +30 -0
- package/compute/orm/models/platformInfraGetAllTreeNodesRecord.js +59 -0
- package/compute/orm/models/platformInfraObject.d.ts +56 -0
- package/{infra/orm/models/infraObject.js → compute/orm/models/platformInfraObject.js} +25 -25
- package/compute/orm/models/platformInfraRef.d.ts +56 -0
- package/compute/orm/models/platformInfraRef.js +107 -0
- package/compute/orm/models/platformInfraStore.d.ts +54 -0
- package/compute/orm/models/platformInfraStore.js +104 -0
- package/compute/orm/models/platformResourceInstallation.d.ts +54 -0
- package/compute/orm/models/platformResourceInstallation.js +104 -0
- package/compute/orm/models/platformResourceUsageLog.d.ts +56 -0
- package/compute/orm/models/platformResourceUsageLog.js +107 -0
- package/compute/orm/models/platformResourceUsageSummary.d.ts +56 -0
- package/compute/orm/models/platformResourceUsageSummary.js +107 -0
- package/compute/orm/models/platformResourceUtilizationDaily.d.ts +30 -0
- package/compute/orm/models/platformResourceUtilizationDaily.js +59 -0
- package/compute/orm/models/platformResourcesHealth.d.ts +36 -0
- package/compute/orm/models/platformResourcesHealth.js +80 -0
- package/compute/orm/models/platformWebhookEndpoint.d.ts +54 -0
- package/compute/orm/models/platformWebhookEndpoint.js +104 -0
- package/compute/orm/models/platformWebhookEvent.d.ts +54 -0
- package/compute/orm/models/platformWebhookEvent.js +104 -0
- package/compute/orm/models/resourceInstallation.d.ts +54 -0
- package/compute/orm/models/resourceInstallation.js +104 -0
- package/compute/orm/models/resourceUsageLog.d.ts +56 -0
- package/compute/orm/models/resourceUsageLog.js +107 -0
- package/compute/orm/models/resourceUsageSummary.d.ts +56 -0
- package/compute/orm/models/resourceUsageSummary.js +107 -0
- package/compute/orm/models/resourceUtilizationDaily.d.ts +30 -0
- package/compute/orm/models/resourceUtilizationDaily.js +59 -0
- package/compute/orm/models/resourcesHealth.d.ts +36 -0
- package/{api/orm/models/migrateFile.js → compute/orm/models/resourcesHealth.js} +20 -20
- package/compute/orm/models/webhookEndpoint.d.ts +54 -0
- package/compute/orm/models/webhookEndpoint.js +104 -0
- package/compute/orm/models/webhookEvent.d.ts +54 -0
- package/{infra/orm/models/infraStore.js → compute/orm/models/webhookEvent.js} +27 -27
- package/compute/orm/mutation/index.d.ts +89 -1
- package/compute/orm/mutation/index.js +132 -0
- package/config/cli/commands/platform-internal-secret.js +7 -14
- package/config/cli/commands/platform-secret.js +8 -16
- package/config/cli/commands/secret.js +9 -18
- package/config/orm/input-types.d.ts +4 -79
- package/esm/agent/orm/input-types.d.ts +24 -0
- package/esm/agent/orm/input-types.js +3 -0
- package/esm/api/cli/commands/ast-migration.js +20 -31
- package/{infra/cli/commands/infra-ref.d.ts → esm/api/cli/commands/http-route.d.ts} +1 -1
- package/esm/api/cli/commands/http-route.js +432 -0
- package/esm/api/cli/commands/{migrate-file.d.ts → managed-domain.d.ts} +1 -1
- package/esm/api/cli/commands/managed-domain.js +380 -0
- package/esm/api/cli/commands/resolve-http-route.d.ts +8 -0
- package/esm/api/cli/commands/resolve-http-route.js +42 -0
- package/esm/api/cli/commands/sql-action.js +20 -31
- package/esm/api/cli/commands.js +7 -3
- package/esm/api/cli/executor.d.ts +7 -1
- package/esm/api/orm/index.d.ts +9 -2
- package/esm/api/orm/index.js +4 -2
- package/esm/api/orm/input-types.d.ts +498 -143
- package/esm/api/orm/input-types.js +4 -0
- package/esm/api/orm/models/httpRoute.d.ts +54 -0
- package/esm/{infra/orm/models/infraRef.js → api/orm/models/httpRoute.js} +25 -28
- package/esm/api/orm/models/index.d.ts +2 -1
- package/esm/api/orm/models/index.js +2 -1
- package/esm/api/orm/models/managedDomain.d.ts +54 -0
- package/esm/{infra/orm/models/infraCommit.js → api/orm/models/managedDomain.js} +25 -28
- package/esm/api/orm/query/index.d.ts +12 -0
- package/esm/api/orm/query/index.js +20 -0
- package/esm/auth/cli/commands/identity-provider.js +4 -8
- package/esm/auth/cli/commands/org-api-key-list.js +9 -18
- package/esm/auth/cli/commands/user-connected-account.js +5 -10
- package/esm/auth/orm/input-types.d.ts +155 -182
- package/esm/auth/orm/input-types.js +4 -0
- package/esm/compute/cli/commands/declared-capacity.d.ts +8 -0
- package/esm/compute/cli/commands/declared-capacity.js +245 -0
- package/esm/compute/cli/commands/function-definition.js +48 -0
- package/esm/compute/cli/commands/function-graph-execution-node-state.js +66 -0
- package/esm/compute/cli/commands/function-graph-execution.js +176 -0
- package/esm/compute/cli/commands/function-invocation.js +66 -0
- package/esm/compute/cli/commands/get-all-tree-nodes-record.d.ts +8 -0
- package/esm/{infra/cli/commands/infra-get-all-record.js → compute/cli/commands/get-all-tree-nodes-record.js} +5 -5
- package/esm/compute/cli/commands/infra-commit.js +19 -19
- package/esm/compute/cli/commands/infra-get-all-tree-nodes-record.d.ts +8 -0
- package/esm/{api/cli/commands/migrate-file.js → compute/cli/commands/infra-get-all-tree-nodes-record.js} +22 -28
- package/esm/compute/cli/commands/infra-object.js +19 -19
- package/esm/compute/cli/commands/infra-ref.js +17 -17
- package/esm/compute/cli/commands/infra-store.js +20 -20
- package/esm/compute/cli/commands/namespace-event.js +0 -154
- package/esm/compute/cli/commands/platform-declared-capacity.d.ts +8 -0
- package/esm/compute/cli/commands/platform-declared-capacity.js +245 -0
- package/esm/compute/cli/commands/platform-function-definition.js +48 -0
- package/esm/compute/cli/commands/platform-function-invocation.js +66 -0
- package/esm/compute/cli/commands/platform-infra-commit.d.ts +8 -0
- package/esm/{infra/cli/commands/infra-commit.js → compute/cli/commands/platform-infra-commit.js} +8 -8
- package/esm/compute/cli/commands/platform-infra-get-all-tree-nodes-record.d.ts +8 -0
- package/esm/compute/cli/commands/{infra-get-all-record.js → platform-infra-get-all-tree-nodes-record.js} +7 -5
- package/esm/compute/cli/commands/platform-infra-init-empty-repo.d.ts +8 -0
- package/esm/{infra/cli/commands/infra-insert-node-at-path.js → compute/cli/commands/platform-infra-init-empty-repo.js} +3 -3
- package/esm/compute/cli/commands/platform-infra-insert-node-at-path.d.ts +8 -0
- package/esm/compute/cli/commands/platform-infra-insert-node-at-path.js +34 -0
- package/esm/compute/cli/commands/platform-infra-object.d.ts +8 -0
- package/esm/{infra/cli/commands/infra-object.js → compute/cli/commands/platform-infra-object.js} +8 -8
- package/esm/compute/cli/commands/platform-infra-ref.d.ts +8 -0
- package/esm/{infra/cli/commands/infra-ref.js → compute/cli/commands/platform-infra-ref.js} +8 -8
- package/esm/compute/cli/commands/platform-infra-set-data-at-path.d.ts +8 -0
- package/esm/{infra/cli/commands/infra-set-data-at-path.js → compute/cli/commands/platform-infra-set-data-at-path.js} +3 -3
- package/esm/compute/cli/commands/platform-infra-store.d.ts +8 -0
- package/esm/{infra/cli/commands/infra-store.js → compute/cli/commands/platform-infra-store.js} +8 -8
- package/esm/compute/cli/commands/platform-namespace-event.js +0 -154
- package/esm/compute/cli/commands/platform-resource-installation.d.ts +8 -0
- package/esm/compute/cli/commands/platform-resource-installation.js +434 -0
- package/esm/compute/cli/commands/platform-resource-installations-install.d.ts +8 -0
- package/esm/compute/cli/commands/platform-resource-installations-install.js +34 -0
- package/esm/compute/cli/commands/platform-resource-installations-rollback.d.ts +8 -0
- package/esm/compute/cli/commands/platform-resource-installations-rollback.js +34 -0
- package/esm/compute/cli/commands/platform-resource-installations-uninstall.d.ts +8 -0
- package/esm/compute/cli/commands/platform-resource-installations-uninstall.js +34 -0
- package/esm/compute/cli/commands/platform-resource-installations-upgrade.d.ts +8 -0
- package/esm/compute/cli/commands/platform-resource-installations-upgrade.js +34 -0
- package/esm/compute/cli/commands/platform-resource-usage-log.d.ts +8 -0
- package/esm/compute/cli/commands/platform-resource-usage-log.js +384 -0
- package/esm/compute/cli/commands/platform-resource-usage-summary.d.ts +8 -0
- package/esm/compute/cli/commands/platform-resource-usage-summary.js +387 -0
- package/esm/compute/cli/commands/platform-resource-utilization-daily.d.ts +8 -0
- package/esm/compute/cli/commands/platform-resource-utilization-daily.js +311 -0
- package/esm/compute/cli/commands/platform-resource.js +51 -0
- package/esm/compute/cli/commands/platform-resources-health.d.ts +8 -0
- package/esm/compute/cli/commands/platform-resources-health.js +411 -0
- package/esm/compute/cli/commands/platform-webhook-endpoint.d.ts +8 -0
- package/esm/compute/cli/commands/platform-webhook-endpoint.js +430 -0
- package/esm/compute/cli/commands/platform-webhook-event.d.ts +8 -0
- package/esm/compute/cli/commands/platform-webhook-event.js +412 -0
- package/esm/compute/cli/commands/resource-installation.d.ts +8 -0
- package/esm/compute/cli/commands/resource-installation.js +454 -0
- package/esm/compute/cli/commands/resource-installations-install.d.ts +8 -0
- package/esm/compute/cli/commands/resource-installations-install.js +34 -0
- package/esm/compute/cli/commands/resource-installations-rollback.d.ts +8 -0
- package/esm/compute/cli/commands/resource-installations-rollback.js +34 -0
- package/esm/compute/cli/commands/resource-installations-uninstall.d.ts +8 -0
- package/esm/compute/cli/commands/resource-installations-uninstall.js +34 -0
- package/esm/compute/cli/commands/resource-installations-upgrade.d.ts +8 -0
- package/esm/compute/cli/commands/resource-installations-upgrade.js +34 -0
- package/esm/compute/cli/commands/resource-usage-log.d.ts +8 -0
- package/esm/compute/cli/commands/resource-usage-log.js +404 -0
- package/esm/compute/cli/commands/resource-usage-summary.d.ts +8 -0
- package/esm/compute/cli/commands/resource-usage-summary.js +407 -0
- package/esm/compute/cli/commands/resource-utilization-daily.d.ts +8 -0
- package/esm/compute/cli/commands/resource-utilization-daily.js +311 -0
- package/esm/compute/cli/commands/resource.js +51 -0
- package/esm/compute/cli/commands/resources-health.d.ts +8 -0
- package/esm/compute/cli/commands/resources-health.js +422 -0
- package/esm/compute/cli/commands/webhook-endpoint.d.ts +8 -0
- package/esm/compute/cli/commands/webhook-endpoint.js +450 -0
- package/{compute/cli/commands/get-all-record.d.ts → esm/compute/cli/commands/webhook-event.d.ts} +1 -1
- package/esm/compute/cli/commands/webhook-event.js +432 -0
- package/esm/compute/cli/commands.js +69 -5
- package/esm/compute/cli/executor.d.ts +78 -2
- package/esm/compute/orm/index.d.ts +101 -4
- package/esm/compute/orm/index.js +46 -4
- package/esm/compute/orm/input-types.d.ts +5356 -772
- package/esm/compute/orm/input-types.js +34 -2
- package/esm/compute/orm/models/declaredCapacity.d.ts +30 -0
- package/esm/{infra/orm/models/infraGetAllRecord.js → compute/orm/models/declaredCapacity.js} +13 -13
- package/esm/compute/orm/models/getAllTreeNodesRecord.d.ts +30 -0
- package/esm/{objects/orm/models/getAllRecord.js → compute/orm/models/getAllTreeNodesRecord.js} +13 -13
- package/esm/compute/orm/models/index.d.ts +23 -2
- package/esm/compute/orm/models/index.js +23 -2
- package/esm/compute/orm/models/infraCommit.d.ts +2 -2
- package/esm/compute/orm/models/infraCommit.js +2 -2
- package/esm/compute/orm/models/infraGetAllTreeNodesRecord.d.ts +30 -0
- package/esm/compute/orm/models/{infraGetAllRecord.js → infraGetAllTreeNodesRecord.js} +13 -13
- package/esm/compute/orm/models/infraObject.d.ts +2 -2
- package/esm/compute/orm/models/infraObject.js +2 -2
- package/esm/compute/orm/models/infraRef.d.ts +2 -2
- package/esm/compute/orm/models/infraRef.js +2 -2
- package/esm/compute/orm/models/platformDeclaredCapacity.d.ts +30 -0
- package/esm/compute/orm/models/platformDeclaredCapacity.js +55 -0
- package/esm/compute/orm/models/platformInfraCommit.d.ts +56 -0
- package/esm/compute/orm/models/platformInfraCommit.js +103 -0
- package/esm/compute/orm/models/platformInfraGetAllTreeNodesRecord.d.ts +30 -0
- package/esm/compute/orm/models/platformInfraGetAllTreeNodesRecord.js +55 -0
- package/esm/compute/orm/models/platformInfraObject.d.ts +56 -0
- package/esm/{infra/orm/models/infraObject.js → compute/orm/models/platformInfraObject.js} +23 -23
- package/esm/compute/orm/models/platformInfraRef.d.ts +56 -0
- package/esm/compute/orm/models/platformInfraRef.js +103 -0
- package/esm/compute/orm/models/platformInfraStore.d.ts +54 -0
- package/esm/compute/orm/models/platformInfraStore.js +100 -0
- package/esm/compute/orm/models/platformResourceInstallation.d.ts +54 -0
- package/esm/compute/orm/models/platformResourceInstallation.js +100 -0
- package/esm/compute/orm/models/platformResourceUsageLog.d.ts +56 -0
- package/esm/compute/orm/models/platformResourceUsageLog.js +103 -0
- package/esm/compute/orm/models/platformResourceUsageSummary.d.ts +56 -0
- package/esm/compute/orm/models/platformResourceUsageSummary.js +103 -0
- package/esm/compute/orm/models/platformResourceUtilizationDaily.d.ts +30 -0
- package/esm/compute/orm/models/platformResourceUtilizationDaily.js +55 -0
- package/esm/compute/orm/models/platformResourcesHealth.d.ts +36 -0
- package/esm/compute/orm/models/platformResourcesHealth.js +76 -0
- package/esm/compute/orm/models/platformWebhookEndpoint.d.ts +54 -0
- package/esm/compute/orm/models/platformWebhookEndpoint.js +100 -0
- package/esm/compute/orm/models/platformWebhookEvent.d.ts +54 -0
- package/esm/compute/orm/models/platformWebhookEvent.js +100 -0
- package/esm/compute/orm/models/resourceInstallation.d.ts +54 -0
- package/esm/compute/orm/models/resourceInstallation.js +100 -0
- package/esm/compute/orm/models/resourceUsageLog.d.ts +56 -0
- package/esm/compute/orm/models/resourceUsageLog.js +103 -0
- package/esm/compute/orm/models/resourceUsageSummary.d.ts +56 -0
- package/esm/compute/orm/models/resourceUsageSummary.js +103 -0
- package/esm/compute/orm/models/resourceUtilizationDaily.d.ts +30 -0
- package/esm/compute/orm/models/resourceUtilizationDaily.js +55 -0
- package/esm/compute/orm/models/resourcesHealth.d.ts +36 -0
- package/esm/{api/orm/models/migrateFile.js → compute/orm/models/resourcesHealth.js} +18 -18
- package/esm/compute/orm/models/webhookEndpoint.d.ts +54 -0
- package/esm/compute/orm/models/webhookEndpoint.js +100 -0
- package/esm/compute/orm/models/webhookEvent.d.ts +54 -0
- package/esm/{infra/orm/models/infraStore.js → compute/orm/models/webhookEvent.js} +25 -25
- package/esm/compute/orm/mutation/index.d.ts +89 -1
- package/esm/compute/orm/mutation/index.js +132 -0
- package/esm/config/cli/commands/platform-internal-secret.js +7 -14
- package/esm/config/cli/commands/platform-secret.js +8 -16
- package/esm/config/cli/commands/secret.js +9 -18
- package/esm/config/orm/input-types.d.ts +4 -79
- package/esm/infra/cli/commands/namespace-event.js +0 -154
- package/esm/infra/cli/commands/platform-infra-commit.d.ts +8 -0
- package/esm/infra/cli/commands/platform-infra-commit.js +387 -0
- package/esm/infra/cli/commands/platform-infra-get-all-tree-nodes-record.d.ts +8 -0
- package/esm/{objects/cli/commands/get-all-record.js → infra/cli/commands/platform-infra-get-all-tree-nodes-record.js} +7 -5
- package/esm/infra/cli/commands/platform-infra-init-empty-repo.d.ts +8 -0
- package/esm/infra/cli/commands/{infra-init-empty-repo.js → platform-infra-init-empty-repo.js} +3 -3
- package/esm/infra/cli/commands/platform-infra-insert-node-at-path.d.ts +8 -0
- package/esm/infra/cli/commands/platform-infra-insert-node-at-path.js +34 -0
- package/esm/infra/cli/commands/platform-infra-object.d.ts +8 -0
- package/esm/infra/cli/commands/platform-infra-object.js +307 -0
- package/esm/infra/cli/commands/platform-infra-ref.d.ts +8 -0
- package/esm/infra/cli/commands/platform-infra-ref.js +297 -0
- package/esm/infra/cli/commands/platform-infra-set-data-at-path.d.ts +8 -0
- package/esm/infra/cli/commands/platform-infra-set-data-at-path.js +34 -0
- package/esm/infra/cli/commands/platform-infra-store.d.ts +8 -0
- package/esm/infra/cli/commands/platform-infra-store.js +276 -0
- package/esm/infra/cli/commands/platform-namespace-event.js +0 -154
- package/esm/infra/cli/commands.js +17 -17
- package/esm/infra/cli/executor.d.ts +14 -14
- package/esm/infra/orm/index.d.ts +19 -19
- package/esm/infra/orm/index.js +10 -10
- package/esm/infra/orm/input-types.d.ts +542 -668
- package/esm/infra/orm/models/index.d.ts +5 -5
- package/esm/infra/orm/models/index.js +5 -5
- package/esm/infra/orm/models/platformInfraCommit.d.ts +56 -0
- package/esm/infra/orm/models/platformInfraCommit.js +103 -0
- package/esm/infra/orm/models/platformInfraGetAllTreeNodesRecord.d.ts +30 -0
- package/esm/infra/orm/models/platformInfraGetAllTreeNodesRecord.js +55 -0
- package/esm/infra/orm/models/platformInfraObject.d.ts +56 -0
- package/esm/infra/orm/models/platformInfraObject.js +93 -0
- package/esm/infra/orm/models/platformInfraRef.d.ts +56 -0
- package/esm/infra/orm/models/platformInfraRef.js +103 -0
- package/esm/infra/orm/models/platformInfraStore.d.ts +54 -0
- package/esm/infra/orm/models/platformInfraStore.js +100 -0
- package/esm/infra/orm/mutation/index.d.ts +16 -16
- package/esm/infra/orm/mutation/index.js +18 -18
- package/esm/modules/cli/commands/compute-log-module.js +24 -24
- package/esm/modules/cli/commands/db-usage-module.js +88 -88
- package/esm/modules/cli/commands/devices-module.js +32 -32
- package/esm/modules/cli/commands/function-module.js +44 -0
- package/esm/modules/cli/commands/http-route-module.d.ts +8 -0
- package/esm/modules/cli/commands/http-route-module.js +646 -0
- package/esm/modules/cli/commands/inference-log-module.js +24 -24
- package/esm/modules/cli/commands/rate-limits-module.js +46 -46
- package/esm/modules/cli/commands/resource-module.js +220 -0
- package/esm/modules/cli/commands/sessions-module.js +48 -48
- package/esm/modules/cli/commands/storage-log-module.js +24 -24
- package/esm/modules/cli/commands/transfer-log-module.js +24 -24
- package/esm/modules/cli/commands/webhook-module.d.ts +8 -0
- package/esm/modules/cli/commands/webhook-module.js +690 -0
- package/esm/modules/cli/commands.js +5 -1
- package/esm/modules/cli/executor.d.ts +2 -0
- package/esm/modules/orm/index.d.ts +4 -0
- package/esm/modules/orm/index.js +4 -0
- package/esm/modules/orm/input-types.d.ts +802 -166
- package/esm/modules/orm/models/httpRouteModule.d.ts +54 -0
- package/esm/modules/orm/models/httpRouteModule.js +100 -0
- package/esm/modules/orm/models/index.d.ts +2 -0
- package/esm/modules/orm/models/index.js +2 -0
- package/esm/modules/orm/models/webhookModule.d.ts +54 -0
- package/esm/modules/orm/models/webhookModule.js +100 -0
- package/esm/objects/cli/commands/get-all-tree-nodes-record.d.ts +8 -0
- package/esm/{compute/cli/commands/get-all-record.js → objects/cli/commands/get-all-tree-nodes-record.js} +5 -5
- package/esm/objects/cli/commands.js +3 -3
- package/esm/objects/cli/executor.d.ts +1 -1
- package/esm/objects/orm/index.d.ts +2 -2
- package/esm/objects/orm/index.js +2 -2
- package/esm/objects/orm/input-types.d.ts +15 -15
- package/esm/objects/orm/models/getAllTreeNodesRecord.d.ts +30 -0
- package/esm/{compute/orm/models/getAllRecord.js → objects/orm/models/getAllTreeNodesRecord.js} +13 -13
- package/esm/objects/orm/models/index.d.ts +1 -1
- package/esm/objects/orm/models/index.js +1 -1
- package/infra/cli/commands/namespace-event.js +0 -154
- package/infra/cli/commands/platform-infra-commit.d.ts +8 -0
- package/infra/cli/commands/platform-infra-commit.js +389 -0
- package/infra/cli/commands/platform-infra-get-all-tree-nodes-record.d.ts +8 -0
- package/infra/cli/commands/{infra-get-all-record.js → platform-infra-get-all-tree-nodes-record.js} +7 -5
- package/infra/cli/commands/platform-infra-init-empty-repo.d.ts +8 -0
- package/infra/cli/commands/{infra-insert-node-at-path.js → platform-infra-init-empty-repo.js} +3 -3
- package/infra/cli/commands/platform-infra-insert-node-at-path.d.ts +8 -0
- package/infra/cli/commands/platform-infra-insert-node-at-path.js +36 -0
- package/infra/cli/commands/platform-infra-object.d.ts +8 -0
- package/infra/cli/commands/platform-infra-object.js +309 -0
- package/infra/cli/commands/platform-infra-ref.d.ts +8 -0
- package/infra/cli/commands/platform-infra-ref.js +299 -0
- package/infra/cli/commands/platform-infra-set-data-at-path.d.ts +8 -0
- package/infra/cli/commands/platform-infra-set-data-at-path.js +36 -0
- package/infra/cli/commands/platform-infra-store.d.ts +8 -0
- package/infra/cli/commands/platform-infra-store.js +278 -0
- package/infra/cli/commands/platform-namespace-event.js +0 -154
- package/infra/cli/commands.js +17 -17
- package/infra/cli/executor.d.ts +14 -14
- package/infra/orm/index.d.ts +19 -19
- package/infra/orm/index.js +10 -10
- package/infra/orm/input-types.d.ts +542 -668
- package/infra/orm/models/index.d.ts +5 -5
- package/infra/orm/models/index.js +11 -11
- package/infra/orm/models/platformInfraCommit.d.ts +56 -0
- package/infra/orm/models/platformInfraCommit.js +107 -0
- package/infra/orm/models/platformInfraGetAllTreeNodesRecord.d.ts +30 -0
- package/infra/orm/models/platformInfraGetAllTreeNodesRecord.js +59 -0
- package/infra/orm/models/platformInfraObject.d.ts +56 -0
- package/infra/orm/models/platformInfraObject.js +97 -0
- package/infra/orm/models/platformInfraRef.d.ts +56 -0
- package/infra/orm/models/platformInfraRef.js +107 -0
- package/infra/orm/models/platformInfraStore.d.ts +54 -0
- package/infra/orm/models/platformInfraStore.js +104 -0
- package/infra/orm/mutation/index.d.ts +16 -16
- package/infra/orm/mutation/index.js +18 -18
- package/modules/cli/commands/compute-log-module.js +24 -24
- package/modules/cli/commands/db-usage-module.js +88 -88
- package/modules/cli/commands/devices-module.js +32 -32
- package/modules/cli/commands/function-module.js +44 -0
- package/modules/cli/commands/http-route-module.d.ts +8 -0
- package/modules/cli/commands/http-route-module.js +648 -0
- package/modules/cli/commands/inference-log-module.js +24 -24
- package/modules/cli/commands/rate-limits-module.js +46 -46
- package/modules/cli/commands/resource-module.js +220 -0
- package/modules/cli/commands/sessions-module.js +48 -48
- package/modules/cli/commands/storage-log-module.js +24 -24
- package/modules/cli/commands/transfer-log-module.js +24 -24
- package/modules/cli/commands/webhook-module.d.ts +8 -0
- package/modules/cli/commands/webhook-module.js +692 -0
- package/modules/cli/commands.js +5 -1
- package/modules/cli/executor.d.ts +2 -0
- package/modules/orm/index.d.ts +4 -0
- package/modules/orm/index.js +4 -0
- package/modules/orm/input-types.d.ts +802 -166
- package/modules/orm/models/httpRouteModule.d.ts +54 -0
- package/modules/orm/models/httpRouteModule.js +104 -0
- package/modules/orm/models/index.d.ts +2 -0
- package/modules/orm/models/index.js +6 -2
- package/modules/orm/models/webhookModule.d.ts +54 -0
- package/modules/orm/models/webhookModule.js +104 -0
- package/objects/cli/commands/get-all-tree-nodes-record.d.ts +8 -0
- package/objects/cli/commands/{get-all-record.js → get-all-tree-nodes-record.js} +5 -5
- package/objects/cli/commands.js +3 -3
- package/objects/cli/executor.d.ts +1 -1
- package/objects/orm/index.d.ts +2 -2
- package/objects/orm/index.js +2 -2
- package/objects/orm/input-types.d.ts +15 -15
- package/objects/orm/models/getAllTreeNodesRecord.d.ts +30 -0
- package/{infra/orm/models/infraGetAllRecord.js → objects/orm/models/getAllTreeNodesRecord.js} +15 -15
- package/objects/orm/models/index.d.ts +1 -1
- package/objects/orm/models/index.js +3 -3
- package/package.json +3 -3
- package/api/orm/models/migrateFile.d.ts +0 -36
- package/compute/orm/models/getAllRecord.d.ts +0 -30
- package/compute/orm/models/infraGetAllRecord.d.ts +0 -30
- package/esm/api/orm/models/migrateFile.d.ts +0 -36
- package/esm/compute/cli/commands/infra-get-all-record.d.ts +0 -8
- package/esm/compute/orm/models/getAllRecord.d.ts +0 -30
- package/esm/compute/orm/models/infraGetAllRecord.d.ts +0 -30
- package/esm/infra/cli/commands/infra-commit.d.ts +0 -8
- package/esm/infra/cli/commands/infra-get-all-record.d.ts +0 -8
- package/esm/infra/cli/commands/infra-init-empty-repo.d.ts +0 -8
- package/esm/infra/cli/commands/infra-insert-node-at-path.d.ts +0 -8
- package/esm/infra/cli/commands/infra-object.d.ts +0 -8
- package/esm/infra/cli/commands/infra-set-data-at-path.d.ts +0 -8
- package/esm/infra/cli/commands/infra-store.d.ts +0 -8
- package/esm/infra/orm/models/infraCommit.d.ts +0 -56
- package/esm/infra/orm/models/infraGetAllRecord.d.ts +0 -30
- package/esm/infra/orm/models/infraObject.d.ts +0 -56
- package/esm/infra/orm/models/infraRef.d.ts +0 -56
- package/esm/infra/orm/models/infraStore.d.ts +0 -54
- package/esm/objects/cli/commands/get-all-record.d.ts +0 -8
- package/esm/objects/orm/models/getAllRecord.d.ts +0 -30
- package/infra/cli/commands/infra-commit.d.ts +0 -8
- package/infra/cli/commands/infra-get-all-record.d.ts +0 -8
- package/infra/cli/commands/infra-init-empty-repo.d.ts +0 -8
- package/infra/cli/commands/infra-insert-node-at-path.d.ts +0 -8
- package/infra/cli/commands/infra-object.d.ts +0 -8
- package/infra/cli/commands/infra-set-data-at-path.d.ts +0 -8
- package/infra/cli/commands/infra-store.d.ts +0 -8
- package/infra/orm/models/infraCommit.d.ts +0 -56
- package/infra/orm/models/infraGetAllRecord.d.ts +0 -30
- package/infra/orm/models/infraObject.d.ts +0 -56
- package/infra/orm/models/infraRef.d.ts +0 -56
- package/infra/orm/models/infraStore.d.ts +0 -54
- package/objects/cli/commands/get-all-record.d.ts +0 -8
- package/objects/orm/models/getAllRecord.d.ts +0 -30
|
@@ -0,0 +1,382 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/**
|
|
4
|
+
* CLI commands for ManagedDomain
|
|
5
|
+
* @generated by @constructive-io/graphql-codegen
|
|
6
|
+
* DO NOT EDIT - changes will be overwritten
|
|
7
|
+
*/
|
|
8
|
+
const inquirerer_1 = require("inquirerer");
|
|
9
|
+
const executor_1 = require("../executor");
|
|
10
|
+
const utils_1 = require("../utils");
|
|
11
|
+
const fieldSchema = {
|
|
12
|
+
annotations: 'json',
|
|
13
|
+
databaseId: 'uuid',
|
|
14
|
+
domain: 'string',
|
|
15
|
+
id: 'uuid',
|
|
16
|
+
isWildcard: 'boolean',
|
|
17
|
+
tlsReadyAt: 'string',
|
|
18
|
+
tlsStatus: 'string',
|
|
19
|
+
verificationStatus: 'string',
|
|
20
|
+
verifiedAt: 'string',
|
|
21
|
+
};
|
|
22
|
+
const usage = '\nmanaged-domain <command>\n\nCommands:\n list List managedDomain records\n find-first Find first matching managedDomain record\n get Get a managedDomain by ID\n create Create a new managedDomain\n update Update an existing managedDomain\n delete Delete a managedDomain\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n';
|
|
23
|
+
exports.default = async (argv, prompter, _options) => {
|
|
24
|
+
if (argv.help || argv.h) {
|
|
25
|
+
console.log(usage);
|
|
26
|
+
process.exit(0);
|
|
27
|
+
}
|
|
28
|
+
const { first: subcommand, newArgv } = (0, inquirerer_1.extractFirst)(argv);
|
|
29
|
+
if (!subcommand) {
|
|
30
|
+
const answer = await prompter.prompt(argv, [
|
|
31
|
+
{
|
|
32
|
+
type: 'autocomplete',
|
|
33
|
+
name: 'subcommand',
|
|
34
|
+
message: 'What do you want to do?',
|
|
35
|
+
options: ['list', 'find-first', 'get', 'create', 'update', 'delete'],
|
|
36
|
+
},
|
|
37
|
+
]);
|
|
38
|
+
return handleTableSubcommand(answer.subcommand, newArgv, prompter);
|
|
39
|
+
}
|
|
40
|
+
return handleTableSubcommand(subcommand, newArgv, prompter);
|
|
41
|
+
};
|
|
42
|
+
async function handleTableSubcommand(subcommand, argv, prompter) {
|
|
43
|
+
switch (subcommand) {
|
|
44
|
+
case 'list':
|
|
45
|
+
return handleList(argv, prompter);
|
|
46
|
+
case 'find-first':
|
|
47
|
+
return handleFindFirst(argv, prompter);
|
|
48
|
+
case 'get':
|
|
49
|
+
return handleGet(argv, prompter);
|
|
50
|
+
case 'create':
|
|
51
|
+
return handleCreate(argv, prompter);
|
|
52
|
+
case 'update':
|
|
53
|
+
return handleUpdate(argv, prompter);
|
|
54
|
+
case 'delete':
|
|
55
|
+
return handleDelete(argv, prompter);
|
|
56
|
+
default:
|
|
57
|
+
console.log(usage);
|
|
58
|
+
process.exit(1);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
async function handleList(argv, _prompter) {
|
|
62
|
+
try {
|
|
63
|
+
const defaultSelect = {
|
|
64
|
+
annotations: true,
|
|
65
|
+
databaseId: true,
|
|
66
|
+
domain: true,
|
|
67
|
+
id: true,
|
|
68
|
+
isWildcard: true,
|
|
69
|
+
tlsReadyAt: true,
|
|
70
|
+
tlsStatus: true,
|
|
71
|
+
verificationStatus: true,
|
|
72
|
+
verifiedAt: true,
|
|
73
|
+
};
|
|
74
|
+
const findManyArgs = (0, utils_1.parseFindManyArgs)(argv, defaultSelect);
|
|
75
|
+
const client = (0, executor_1.getClient)();
|
|
76
|
+
const result = await client.managedDomain.findMany(findManyArgs).execute();
|
|
77
|
+
console.log(JSON.stringify(result, null, 2));
|
|
78
|
+
}
|
|
79
|
+
catch (error) {
|
|
80
|
+
console.error('Failed to list records.');
|
|
81
|
+
if (error instanceof Error) {
|
|
82
|
+
console.error(error.message);
|
|
83
|
+
}
|
|
84
|
+
process.exit(1);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
async function handleFindFirst(argv, _prompter) {
|
|
88
|
+
try {
|
|
89
|
+
const defaultSelect = {
|
|
90
|
+
annotations: true,
|
|
91
|
+
databaseId: true,
|
|
92
|
+
domain: true,
|
|
93
|
+
id: true,
|
|
94
|
+
isWildcard: true,
|
|
95
|
+
tlsReadyAt: true,
|
|
96
|
+
tlsStatus: true,
|
|
97
|
+
verificationStatus: true,
|
|
98
|
+
verifiedAt: true,
|
|
99
|
+
};
|
|
100
|
+
const findFirstArgs = (0, utils_1.parseFindFirstArgs)(argv, defaultSelect);
|
|
101
|
+
const client = (0, executor_1.getClient)();
|
|
102
|
+
const result = await client.managedDomain.findFirst(findFirstArgs).execute();
|
|
103
|
+
console.log(JSON.stringify(result, null, 2));
|
|
104
|
+
}
|
|
105
|
+
catch (error) {
|
|
106
|
+
console.error('Failed to find record.');
|
|
107
|
+
if (error instanceof Error) {
|
|
108
|
+
console.error(error.message);
|
|
109
|
+
}
|
|
110
|
+
process.exit(1);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
async function handleGet(argv, prompter) {
|
|
114
|
+
try {
|
|
115
|
+
const answers = await prompter.prompt(argv, [
|
|
116
|
+
{
|
|
117
|
+
type: 'text',
|
|
118
|
+
name: 'id',
|
|
119
|
+
message: 'id',
|
|
120
|
+
required: true,
|
|
121
|
+
},
|
|
122
|
+
]);
|
|
123
|
+
const client = (0, executor_1.getClient)();
|
|
124
|
+
const result = await client.managedDomain
|
|
125
|
+
.findOne({
|
|
126
|
+
id: answers.id,
|
|
127
|
+
select: {
|
|
128
|
+
annotations: true,
|
|
129
|
+
databaseId: true,
|
|
130
|
+
domain: true,
|
|
131
|
+
id: true,
|
|
132
|
+
isWildcard: true,
|
|
133
|
+
tlsReadyAt: true,
|
|
134
|
+
tlsStatus: true,
|
|
135
|
+
verificationStatus: true,
|
|
136
|
+
verifiedAt: true,
|
|
137
|
+
},
|
|
138
|
+
})
|
|
139
|
+
.execute();
|
|
140
|
+
console.log(JSON.stringify(result, null, 2));
|
|
141
|
+
}
|
|
142
|
+
catch (error) {
|
|
143
|
+
console.error('Record not found.');
|
|
144
|
+
if (error instanceof Error) {
|
|
145
|
+
console.error(error.message);
|
|
146
|
+
}
|
|
147
|
+
process.exit(1);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
async function handleCreate(argv, prompter) {
|
|
151
|
+
try {
|
|
152
|
+
const rawAnswers = await prompter.prompt(argv, [
|
|
153
|
+
{
|
|
154
|
+
type: 'json',
|
|
155
|
+
name: 'annotations',
|
|
156
|
+
message: 'annotations',
|
|
157
|
+
required: false,
|
|
158
|
+
skipPrompt: true,
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
type: 'text',
|
|
162
|
+
name: 'databaseId',
|
|
163
|
+
message: 'databaseId',
|
|
164
|
+
required: true,
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
type: 'text',
|
|
168
|
+
name: 'domain',
|
|
169
|
+
message: 'domain',
|
|
170
|
+
required: true,
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
type: 'boolean',
|
|
174
|
+
name: 'isWildcard',
|
|
175
|
+
message: 'isWildcard',
|
|
176
|
+
required: false,
|
|
177
|
+
skipPrompt: true,
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
type: 'text',
|
|
181
|
+
name: 'tlsReadyAt',
|
|
182
|
+
message: 'tlsReadyAt',
|
|
183
|
+
required: false,
|
|
184
|
+
skipPrompt: true,
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
type: 'text',
|
|
188
|
+
name: 'tlsStatus',
|
|
189
|
+
message: 'tlsStatus',
|
|
190
|
+
required: false,
|
|
191
|
+
skipPrompt: true,
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
type: 'text',
|
|
195
|
+
name: 'verificationStatus',
|
|
196
|
+
message: 'verificationStatus',
|
|
197
|
+
required: false,
|
|
198
|
+
skipPrompt: true,
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
type: 'text',
|
|
202
|
+
name: 'verifiedAt',
|
|
203
|
+
message: 'verifiedAt',
|
|
204
|
+
required: false,
|
|
205
|
+
skipPrompt: true,
|
|
206
|
+
},
|
|
207
|
+
]);
|
|
208
|
+
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
209
|
+
const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
|
|
210
|
+
const client = (0, executor_1.getClient)();
|
|
211
|
+
const result = await client.managedDomain
|
|
212
|
+
.create({
|
|
213
|
+
data: {
|
|
214
|
+
annotations: cleanedData.annotations,
|
|
215
|
+
databaseId: cleanedData.databaseId,
|
|
216
|
+
domain: cleanedData.domain,
|
|
217
|
+
isWildcard: cleanedData.isWildcard,
|
|
218
|
+
tlsReadyAt: cleanedData.tlsReadyAt,
|
|
219
|
+
tlsStatus: cleanedData.tlsStatus,
|
|
220
|
+
verificationStatus: cleanedData.verificationStatus,
|
|
221
|
+
verifiedAt: cleanedData.verifiedAt,
|
|
222
|
+
},
|
|
223
|
+
select: {
|
|
224
|
+
annotations: true,
|
|
225
|
+
databaseId: true,
|
|
226
|
+
domain: true,
|
|
227
|
+
id: true,
|
|
228
|
+
isWildcard: true,
|
|
229
|
+
tlsReadyAt: true,
|
|
230
|
+
tlsStatus: true,
|
|
231
|
+
verificationStatus: true,
|
|
232
|
+
verifiedAt: true,
|
|
233
|
+
},
|
|
234
|
+
})
|
|
235
|
+
.execute();
|
|
236
|
+
console.log(JSON.stringify(result, null, 2));
|
|
237
|
+
}
|
|
238
|
+
catch (error) {
|
|
239
|
+
console.error('Failed to create record.');
|
|
240
|
+
if (error instanceof Error) {
|
|
241
|
+
console.error(error.message);
|
|
242
|
+
}
|
|
243
|
+
process.exit(1);
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
async function handleUpdate(argv, prompter) {
|
|
247
|
+
try {
|
|
248
|
+
const rawAnswers = await prompter.prompt(argv, [
|
|
249
|
+
{
|
|
250
|
+
type: 'text',
|
|
251
|
+
name: 'id',
|
|
252
|
+
message: 'id',
|
|
253
|
+
required: true,
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
type: 'json',
|
|
257
|
+
name: 'annotations',
|
|
258
|
+
message: 'annotations',
|
|
259
|
+
required: false,
|
|
260
|
+
skipPrompt: true,
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
type: 'text',
|
|
264
|
+
name: 'databaseId',
|
|
265
|
+
message: 'databaseId',
|
|
266
|
+
required: false,
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
type: 'text',
|
|
270
|
+
name: 'domain',
|
|
271
|
+
message: 'domain',
|
|
272
|
+
required: false,
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
type: 'boolean',
|
|
276
|
+
name: 'isWildcard',
|
|
277
|
+
message: 'isWildcard',
|
|
278
|
+
required: false,
|
|
279
|
+
skipPrompt: true,
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
type: 'text',
|
|
283
|
+
name: 'tlsReadyAt',
|
|
284
|
+
message: 'tlsReadyAt',
|
|
285
|
+
required: false,
|
|
286
|
+
skipPrompt: true,
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
type: 'text',
|
|
290
|
+
name: 'tlsStatus',
|
|
291
|
+
message: 'tlsStatus',
|
|
292
|
+
required: false,
|
|
293
|
+
skipPrompt: true,
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
type: 'text',
|
|
297
|
+
name: 'verificationStatus',
|
|
298
|
+
message: 'verificationStatus',
|
|
299
|
+
required: false,
|
|
300
|
+
skipPrompt: true,
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
type: 'text',
|
|
304
|
+
name: 'verifiedAt',
|
|
305
|
+
message: 'verifiedAt',
|
|
306
|
+
required: false,
|
|
307
|
+
skipPrompt: true,
|
|
308
|
+
},
|
|
309
|
+
]);
|
|
310
|
+
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
311
|
+
const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
|
|
312
|
+
const client = (0, executor_1.getClient)();
|
|
313
|
+
const result = await client.managedDomain
|
|
314
|
+
.update({
|
|
315
|
+
where: {
|
|
316
|
+
id: answers.id,
|
|
317
|
+
},
|
|
318
|
+
data: {
|
|
319
|
+
annotations: cleanedData.annotations,
|
|
320
|
+
databaseId: cleanedData.databaseId,
|
|
321
|
+
domain: cleanedData.domain,
|
|
322
|
+
isWildcard: cleanedData.isWildcard,
|
|
323
|
+
tlsReadyAt: cleanedData.tlsReadyAt,
|
|
324
|
+
tlsStatus: cleanedData.tlsStatus,
|
|
325
|
+
verificationStatus: cleanedData.verificationStatus,
|
|
326
|
+
verifiedAt: cleanedData.verifiedAt,
|
|
327
|
+
},
|
|
328
|
+
select: {
|
|
329
|
+
annotations: true,
|
|
330
|
+
databaseId: true,
|
|
331
|
+
domain: true,
|
|
332
|
+
id: true,
|
|
333
|
+
isWildcard: true,
|
|
334
|
+
tlsReadyAt: true,
|
|
335
|
+
tlsStatus: true,
|
|
336
|
+
verificationStatus: true,
|
|
337
|
+
verifiedAt: true,
|
|
338
|
+
},
|
|
339
|
+
})
|
|
340
|
+
.execute();
|
|
341
|
+
console.log(JSON.stringify(result, null, 2));
|
|
342
|
+
}
|
|
343
|
+
catch (error) {
|
|
344
|
+
console.error('Failed to update record.');
|
|
345
|
+
if (error instanceof Error) {
|
|
346
|
+
console.error(error.message);
|
|
347
|
+
}
|
|
348
|
+
process.exit(1);
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
async function handleDelete(argv, prompter) {
|
|
352
|
+
try {
|
|
353
|
+
const rawAnswers = await prompter.prompt(argv, [
|
|
354
|
+
{
|
|
355
|
+
type: 'text',
|
|
356
|
+
name: 'id',
|
|
357
|
+
message: 'id',
|
|
358
|
+
required: true,
|
|
359
|
+
},
|
|
360
|
+
]);
|
|
361
|
+
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
362
|
+
const client = (0, executor_1.getClient)();
|
|
363
|
+
const result = await client.managedDomain
|
|
364
|
+
.delete({
|
|
365
|
+
where: {
|
|
366
|
+
id: answers.id,
|
|
367
|
+
},
|
|
368
|
+
select: {
|
|
369
|
+
id: true,
|
|
370
|
+
},
|
|
371
|
+
})
|
|
372
|
+
.execute();
|
|
373
|
+
console.log(JSON.stringify(result, null, 2));
|
|
374
|
+
}
|
|
375
|
+
catch (error) {
|
|
376
|
+
console.error('Failed to delete record.');
|
|
377
|
+
if (error instanceof Error) {
|
|
378
|
+
console.error(error.message);
|
|
379
|
+
}
|
|
380
|
+
process.exit(1);
|
|
381
|
+
}
|
|
382
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI command for query resolveHttpRoute
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { CLIOptions, Inquirerer } from 'inquirerer';
|
|
7
|
+
declare const _default: (argv: Partial<Record<string, unknown>>, prompter: Inquirerer, _options: CLIOptions) => Promise<void>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const executor_1 = require("../executor");
|
|
4
|
+
const utils_1 = require("../utils");
|
|
5
|
+
exports.default = async (argv, prompter, _options) => {
|
|
6
|
+
try {
|
|
7
|
+
if (argv.help || argv.h) {
|
|
8
|
+
console.log('resolve-http-route - resolveHttpRoute\n\nUsage: resolve-http-route [OPTIONS]\n');
|
|
9
|
+
process.exit(0);
|
|
10
|
+
}
|
|
11
|
+
const answers = await prompter.prompt(argv, [
|
|
12
|
+
{
|
|
13
|
+
type: 'text',
|
|
14
|
+
name: 'pHost',
|
|
15
|
+
message: 'pHost',
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
type: 'text',
|
|
19
|
+
name: 'pMethod',
|
|
20
|
+
message: 'pMethod',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
type: 'text',
|
|
24
|
+
name: 'pPath',
|
|
25
|
+
message: 'pPath',
|
|
26
|
+
},
|
|
27
|
+
]);
|
|
28
|
+
const client = (0, executor_1.getClient)();
|
|
29
|
+
const selectFields = (0, utils_1.buildSelectFromPaths)(argv.select ?? '');
|
|
30
|
+
const result = await client.query
|
|
31
|
+
.resolveHttpRoute(answers, {
|
|
32
|
+
select: selectFields,
|
|
33
|
+
})
|
|
34
|
+
.execute();
|
|
35
|
+
console.log(JSON.stringify(result, null, 2));
|
|
36
|
+
}
|
|
37
|
+
catch (error) {
|
|
38
|
+
console.error('Failed: resolveHttpRoute');
|
|
39
|
+
if (error instanceof Error) {
|
|
40
|
+
console.error(error.message);
|
|
41
|
+
}
|
|
42
|
+
process.exit(1);
|
|
43
|
+
}
|
|
44
|
+
};
|
|
@@ -9,8 +9,8 @@ const inquirerer_1 = require("inquirerer");
|
|
|
9
9
|
const executor_1 = require("../executor");
|
|
10
10
|
const utils_1 = require("../utils");
|
|
11
11
|
const fieldSchema = {
|
|
12
|
-
action: 'string',
|
|
13
12
|
actionId: 'uuid',
|
|
13
|
+
actionName: 'string',
|
|
14
14
|
actorId: 'uuid',
|
|
15
15
|
content: 'string',
|
|
16
16
|
createdAt: 'string',
|
|
@@ -59,8 +59,8 @@ async function handleTableSubcommand(subcommand, argv, prompter) {
|
|
|
59
59
|
async function handleList(argv, _prompter) {
|
|
60
60
|
try {
|
|
61
61
|
const defaultSelect = {
|
|
62
|
-
action: true,
|
|
63
62
|
actionId: true,
|
|
63
|
+
actionName: true,
|
|
64
64
|
actorId: true,
|
|
65
65
|
content: true,
|
|
66
66
|
createdAt: true,
|
|
@@ -89,8 +89,8 @@ async function handleList(argv, _prompter) {
|
|
|
89
89
|
async function handleFindFirst(argv, _prompter) {
|
|
90
90
|
try {
|
|
91
91
|
const defaultSelect = {
|
|
92
|
-
action: true,
|
|
93
92
|
actionId: true,
|
|
93
|
+
actionName: true,
|
|
94
94
|
actorId: true,
|
|
95
95
|
content: true,
|
|
96
96
|
createdAt: true,
|
|
@@ -121,80 +121,69 @@ async function handleCreate(argv, prompter) {
|
|
|
121
121
|
const rawAnswers = await prompter.prompt(argv, [
|
|
122
122
|
{
|
|
123
123
|
type: 'text',
|
|
124
|
-
name: '
|
|
125
|
-
message: '
|
|
126
|
-
required:
|
|
127
|
-
skipPrompt: true,
|
|
124
|
+
name: 'actionId',
|
|
125
|
+
message: 'actionId',
|
|
126
|
+
required: true,
|
|
128
127
|
},
|
|
129
128
|
{
|
|
130
129
|
type: 'text',
|
|
131
|
-
name: '
|
|
132
|
-
message: '
|
|
133
|
-
required:
|
|
134
|
-
skipPrompt: true,
|
|
130
|
+
name: 'actionName',
|
|
131
|
+
message: 'actionName',
|
|
132
|
+
required: true,
|
|
135
133
|
},
|
|
136
134
|
{
|
|
137
135
|
type: 'text',
|
|
138
136
|
name: 'actorId',
|
|
139
137
|
message: 'actorId',
|
|
140
|
-
required:
|
|
141
|
-
skipPrompt: true,
|
|
138
|
+
required: true,
|
|
142
139
|
},
|
|
143
140
|
{
|
|
144
141
|
type: 'text',
|
|
145
142
|
name: 'content',
|
|
146
143
|
message: 'content',
|
|
147
|
-
required:
|
|
148
|
-
skipPrompt: true,
|
|
144
|
+
required: true,
|
|
149
145
|
},
|
|
150
146
|
{
|
|
151
147
|
type: 'text',
|
|
152
148
|
name: 'databaseId',
|
|
153
149
|
message: 'databaseId',
|
|
154
|
-
required:
|
|
155
|
-
skipPrompt: true,
|
|
150
|
+
required: true,
|
|
156
151
|
},
|
|
157
152
|
{
|
|
158
153
|
type: 'text',
|
|
159
154
|
name: 'deploy',
|
|
160
155
|
message: 'deploy',
|
|
161
|
-
required:
|
|
162
|
-
skipPrompt: true,
|
|
156
|
+
required: true,
|
|
163
157
|
},
|
|
164
158
|
{
|
|
165
159
|
type: 'text',
|
|
166
160
|
name: 'deps',
|
|
167
161
|
message: 'deps',
|
|
168
|
-
required:
|
|
169
|
-
skipPrompt: true,
|
|
162
|
+
required: true,
|
|
170
163
|
},
|
|
171
164
|
{
|
|
172
165
|
type: 'text',
|
|
173
166
|
name: 'name',
|
|
174
167
|
message: 'name',
|
|
175
|
-
required:
|
|
176
|
-
skipPrompt: true,
|
|
168
|
+
required: true,
|
|
177
169
|
},
|
|
178
170
|
{
|
|
179
171
|
type: 'json',
|
|
180
172
|
name: 'payload',
|
|
181
173
|
message: 'payload',
|
|
182
|
-
required:
|
|
183
|
-
skipPrompt: true,
|
|
174
|
+
required: true,
|
|
184
175
|
},
|
|
185
176
|
{
|
|
186
177
|
type: 'text',
|
|
187
178
|
name: 'revert',
|
|
188
179
|
message: 'revert',
|
|
189
|
-
required:
|
|
190
|
-
skipPrompt: true,
|
|
180
|
+
required: true,
|
|
191
181
|
},
|
|
192
182
|
{
|
|
193
183
|
type: 'text',
|
|
194
184
|
name: 'verify',
|
|
195
185
|
message: 'verify',
|
|
196
|
-
required:
|
|
197
|
-
skipPrompt: true,
|
|
186
|
+
required: true,
|
|
198
187
|
},
|
|
199
188
|
]);
|
|
200
189
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
@@ -203,8 +192,8 @@ async function handleCreate(argv, prompter) {
|
|
|
203
192
|
const result = await client.sqlAction
|
|
204
193
|
.create({
|
|
205
194
|
data: {
|
|
206
|
-
action: cleanedData.action,
|
|
207
195
|
actionId: cleanedData.actionId,
|
|
196
|
+
actionName: cleanedData.actionName,
|
|
208
197
|
actorId: cleanedData.actorId,
|
|
209
198
|
content: cleanedData.content,
|
|
210
199
|
databaseId: cleanedData.databaseId,
|
|
@@ -216,8 +205,8 @@ async function handleCreate(argv, prompter) {
|
|
|
216
205
|
verify: cleanedData.verify,
|
|
217
206
|
},
|
|
218
207
|
select: {
|
|
219
|
-
action: true,
|
|
220
208
|
actionId: true,
|
|
209
|
+
actionName: true,
|
|
221
210
|
actorId: true,
|
|
222
211
|
content: true,
|
|
223
212
|
createdAt: true,
|
package/api/cli/commands.js
CHANGED
|
@@ -32,8 +32,9 @@ const field_1 = __importDefault(require("./commands/field"));
|
|
|
32
32
|
const foreign_key_constraint_1 = __importDefault(require("./commands/foreign-key-constraint"));
|
|
33
33
|
const full_text_search_1 = __importDefault(require("./commands/full-text-search"));
|
|
34
34
|
const function_1 = __importDefault(require("./commands/function"));
|
|
35
|
+
const http_route_1 = __importDefault(require("./commands/http-route"));
|
|
35
36
|
const index_1 = __importDefault(require("./commands/index"));
|
|
36
|
-
const
|
|
37
|
+
const managed_domain_1 = __importDefault(require("./commands/managed-domain"));
|
|
37
38
|
const node_type_registry_1 = __importDefault(require("./commands/node-type-registry"));
|
|
38
39
|
const partition_1 = __importDefault(require("./commands/partition"));
|
|
39
40
|
const policy_1 = __importDefault(require("./commands/policy"));
|
|
@@ -59,6 +60,7 @@ const view_rule_1 = __importDefault(require("./commands/view-rule"));
|
|
|
59
60
|
const view_table_1 = __importDefault(require("./commands/view-table"));
|
|
60
61
|
const webauthn_setting_1 = __importDefault(require("./commands/webauthn-setting"));
|
|
61
62
|
const apply_registry_defaults_1 = __importDefault(require("./commands/apply-registry-defaults"));
|
|
63
|
+
const resolve_http_route_1 = __importDefault(require("./commands/resolve-http-route"));
|
|
62
64
|
const accept_database_transfer_1 = __importDefault(require("./commands/accept-database-transfer"));
|
|
63
65
|
const apply_rls_1 = __importDefault(require("./commands/apply-rls"));
|
|
64
66
|
const cancel_database_transfer_1 = __importDefault(require("./commands/cancel-database-transfer"));
|
|
@@ -89,8 +91,9 @@ const createCommandMap = () => ({
|
|
|
89
91
|
'foreign-key-constraint': foreign_key_constraint_1.default,
|
|
90
92
|
'full-text-search': full_text_search_1.default,
|
|
91
93
|
function: function_1.default,
|
|
94
|
+
'http-route': http_route_1.default,
|
|
92
95
|
index: index_1.default,
|
|
93
|
-
'
|
|
96
|
+
'managed-domain': managed_domain_1.default,
|
|
94
97
|
'node-type-registry': node_type_registry_1.default,
|
|
95
98
|
partition: partition_1.default,
|
|
96
99
|
policy: policy_1.default,
|
|
@@ -116,6 +119,7 @@ const createCommandMap = () => ({
|
|
|
116
119
|
'view-table': view_table_1.default,
|
|
117
120
|
'webauthn-setting': webauthn_setting_1.default,
|
|
118
121
|
'apply-registry-defaults': apply_registry_defaults_1.default,
|
|
122
|
+
'resolve-http-route': resolve_http_route_1.default,
|
|
119
123
|
'accept-database-transfer': accept_database_transfer_1.default,
|
|
120
124
|
'apply-rls': apply_rls_1.default,
|
|
121
125
|
'cancel-database-transfer': cancel_database_transfer_1.default,
|
|
@@ -124,7 +128,7 @@ const createCommandMap = () => ({
|
|
|
124
128
|
'request-database': request_database_1.default,
|
|
125
129
|
'set-field-order': set_field_order_1.default,
|
|
126
130
|
});
|
|
127
|
-
const usage = "\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n api api CRUD operations\n api-module apiModule CRUD operations\n api-schema apiSchema CRUD operations\n api-setting apiSetting CRUD operations\n app app CRUD operations\n ast-migration astMigration CRUD operations\n check-constraint checkConstraint CRUD operations\n composite-type compositeType CRUD operations\n cors-setting corsSetting CRUD operations\n database database CRUD operations\n database-setting databaseSetting CRUD operations\n database-transfer databaseTransfer CRUD operations\n default-privilege defaultPrivilege CRUD operations\n domain domain CRUD operations\n embedding-chunk embeddingChunk CRUD operations\n enum enum CRUD operations\n field field CRUD operations\n foreign-key-constraint foreignKeyConstraint CRUD operations\n full-text-search fullTextSearch CRUD operations\n function function CRUD operations\n index index CRUD operations\n
|
|
131
|
+
const usage = "\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n api api CRUD operations\n api-module apiModule CRUD operations\n api-schema apiSchema CRUD operations\n api-setting apiSetting CRUD operations\n app app CRUD operations\n ast-migration astMigration CRUD operations\n check-constraint checkConstraint CRUD operations\n composite-type compositeType CRUD operations\n cors-setting corsSetting CRUD operations\n database database CRUD operations\n database-setting databaseSetting CRUD operations\n database-transfer databaseTransfer CRUD operations\n default-privilege defaultPrivilege CRUD operations\n domain domain CRUD operations\n embedding-chunk embeddingChunk CRUD operations\n enum enum CRUD operations\n field field CRUD operations\n foreign-key-constraint foreignKeyConstraint CRUD operations\n full-text-search fullTextSearch CRUD operations\n function function CRUD operations\n http-route httpRoute CRUD operations\n index index CRUD operations\n managed-domain managedDomain CRUD operations\n node-type-registry nodeTypeRegistry CRUD operations\n partition partition CRUD operations\n policy policy CRUD operations\n primary-key-constraint primaryKeyConstraint CRUD operations\n pubkey-setting pubkeySetting CRUD operations\n rls-setting rlsSetting CRUD operations\n schema schema CRUD operations\n schema-grant schemaGrant CRUD operations\n site site CRUD operations\n site-metadatum siteMetadatum CRUD operations\n site-module siteModule CRUD operations\n site-theme siteTheme CRUD operations\n spatial-relation spatialRelation CRUD operations\n sql-action sqlAction CRUD operations\n table table CRUD operations\n table-grant tableGrant CRUD operations\n trigger trigger CRUD operations\n trigger-function triggerFunction CRUD operations\n unique-constraint uniqueConstraint CRUD operations\n view view CRUD operations\n view-grant viewGrant CRUD operations\n view-rule viewRule CRUD operations\n view-table viewTable CRUD operations\n webauthn-setting webauthnSetting CRUD operations\n apply-registry-defaults applyRegistryDefaults\n resolve-http-route resolveHttpRoute\n accept-database-transfer acceptDatabaseTransfer\n apply-rls applyRls\n cancel-database-transfer cancelDatabaseTransfer\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n reject-database-transfer rejectDatabaseTransfer\n request-database Requests a database and returns a ticket (database_provision_module row) to poll.\n\nPass exactly one of preset_slug or modules. The pool, presets, and owner bootstrap are private implementation details: a warm pool hit fulfills the ticket immediately (fulfilled_at set, deferred owner bootstrap), otherwise the database is cold-provisioned with exactly the requested modules. Poll the ticket until status = 'completed'; it then carries database_id and fulfilled_at.\n\nExample usage:\n SELECT * FROM metaschema_public.request_database('my_app', 'example.com', preset_slug := 'full');\n SELECT * FROM metaschema_public.request_database('my_app', 'example.com', modules := '[\"users_module\", \"emails_module\"]'::jsonb);\n set-field-order setFieldOrder\n\n --help, -h Show this help message\n --version, -v Show version\n";
|
|
128
132
|
const commands = async (argv, prompter, options) => {
|
|
129
133
|
if (argv.help || argv.h) {
|
|
130
134
|
console.log(usage);
|
package/api/cli/executor.d.ts
CHANGED
|
@@ -20,8 +20,9 @@ export declare function getClient(contextName?: string): {
|
|
|
20
20
|
foreignKeyConstraint: import("../orm").ForeignKeyConstraintModel;
|
|
21
21
|
fullTextSearch: import("../orm").FullTextSearchModel;
|
|
22
22
|
function: import("../orm").FunctionModel;
|
|
23
|
+
httpRoute: import("../orm").HttpRouteModel;
|
|
23
24
|
index: import("../orm").IndexModel;
|
|
24
|
-
|
|
25
|
+
managedDomain: import("../orm").ManagedDomainModel;
|
|
25
26
|
nodeTypeRegistry: import("../orm").NodeTypeRegistryModel;
|
|
26
27
|
partition: import("../orm").PartitionModel;
|
|
27
28
|
policy: import("../orm").PolicyModel;
|
|
@@ -52,6 +53,11 @@ export declare function getClient(contextName?: string): {
|
|
|
52
53
|
}) => import("../orm").QueryBuilder<{
|
|
53
54
|
applyRegistryDefaults: unknown | null;
|
|
54
55
|
}>;
|
|
56
|
+
resolveHttpRoute: <S extends import("../orm/input-types").ResolveHttpRouteRecordSelect>(args: import("../orm/query").ResolveHttpRouteVariables, options: {
|
|
57
|
+
select: S;
|
|
58
|
+
} & import("../orm").StrictSelect<S, import("../orm/input-types").ResolveHttpRouteRecordSelect>) => import("../orm").QueryBuilder<{
|
|
59
|
+
resolveHttpRoute: import("../orm").InferSelectResult<import("../orm/input-types").ResolveHttpRouteRecord, S> | null;
|
|
60
|
+
}>;
|
|
55
61
|
};
|
|
56
62
|
mutation: {
|
|
57
63
|
acceptDatabaseTransfer: <S extends import("../orm/input-types").AcceptDatabaseTransferPayloadSelect>(args: import("../orm/mutation").AcceptDatabaseTransferVariables, options: {
|