@constructive-sdk/cli 0.32.2 → 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 +2 -2
- 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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* CLI commands for
|
|
2
|
+
* CLI commands for GetAllTreeNodesRecord
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
@@ -10,7 +10,7 @@ const fieldSchema = {
|
|
|
10
10
|
data: 'json',
|
|
11
11
|
path: 'string',
|
|
12
12
|
};
|
|
13
|
-
const usage = '\
|
|
13
|
+
const usage = '\nget-all-tree-nodes-record <command>\n\nCommands:\n list List getAllTreeNodesRecord records\n find-first Find first matching getAllTreeNodesRecord record\n create Create a new getAllTreeNodesRecord\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';
|
|
14
14
|
export default async (argv, prompter, _options) => {
|
|
15
15
|
if (argv.help || argv.h) {
|
|
16
16
|
console.log(usage);
|
|
@@ -51,7 +51,7 @@ async function handleList(argv, _prompter) {
|
|
|
51
51
|
};
|
|
52
52
|
const findManyArgs = parseFindManyArgs(argv, defaultSelect);
|
|
53
53
|
const client = getClient();
|
|
54
|
-
const result = await client.
|
|
54
|
+
const result = await client.getAllTreeNodesRecord.findMany(findManyArgs).execute();
|
|
55
55
|
console.log(JSON.stringify(result, null, 2));
|
|
56
56
|
}
|
|
57
57
|
catch (error) {
|
|
@@ -70,7 +70,7 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
70
70
|
};
|
|
71
71
|
const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
|
|
72
72
|
const client = getClient();
|
|
73
|
-
const result = await client.
|
|
73
|
+
const result = await client.getAllTreeNodesRecord.findFirst(findFirstArgs).execute();
|
|
74
74
|
console.log(JSON.stringify(result, null, 2));
|
|
75
75
|
}
|
|
76
76
|
catch (error) {
|
|
@@ -100,7 +100,7 @@ async function handleCreate(argv, prompter) {
|
|
|
100
100
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
101
101
|
const cleanedData = stripUndefined(answers, fieldSchema);
|
|
102
102
|
const client = getClient();
|
|
103
|
-
const result = await client.
|
|
103
|
+
const result = await client.getAllTreeNodesRecord
|
|
104
104
|
.create({
|
|
105
105
|
data: {
|
|
106
106
|
data: cleanedData.data,
|
|
@@ -9,11 +9,11 @@ import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined }
|
|
|
9
9
|
const fieldSchema = {
|
|
10
10
|
authorId: 'uuid',
|
|
11
11
|
committerId: 'uuid',
|
|
12
|
+
databaseId: 'uuid',
|
|
12
13
|
date: 'string',
|
|
13
14
|
id: 'uuid',
|
|
14
15
|
message: 'string',
|
|
15
16
|
parentIds: 'uuid',
|
|
16
|
-
scopeId: 'uuid',
|
|
17
17
|
storeId: 'uuid',
|
|
18
18
|
treeId: 'uuid',
|
|
19
19
|
};
|
|
@@ -61,11 +61,11 @@ async function handleList(argv, _prompter) {
|
|
|
61
61
|
const defaultSelect = {
|
|
62
62
|
authorId: true,
|
|
63
63
|
committerId: true,
|
|
64
|
+
databaseId: true,
|
|
64
65
|
date: true,
|
|
65
66
|
id: true,
|
|
66
67
|
message: true,
|
|
67
68
|
parentIds: true,
|
|
68
|
-
scopeId: true,
|
|
69
69
|
storeId: true,
|
|
70
70
|
treeId: true,
|
|
71
71
|
};
|
|
@@ -87,11 +87,11 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
87
87
|
const defaultSelect = {
|
|
88
88
|
authorId: true,
|
|
89
89
|
committerId: true,
|
|
90
|
+
databaseId: true,
|
|
90
91
|
date: true,
|
|
91
92
|
id: true,
|
|
92
93
|
message: true,
|
|
93
94
|
parentIds: true,
|
|
94
|
-
scopeId: true,
|
|
95
95
|
storeId: true,
|
|
96
96
|
treeId: true,
|
|
97
97
|
};
|
|
@@ -125,11 +125,11 @@ async function handleGet(argv, prompter) {
|
|
|
125
125
|
select: {
|
|
126
126
|
authorId: true,
|
|
127
127
|
committerId: true,
|
|
128
|
+
databaseId: true,
|
|
128
129
|
date: true,
|
|
129
130
|
id: true,
|
|
130
131
|
message: true,
|
|
131
132
|
parentIds: true,
|
|
132
|
-
scopeId: true,
|
|
133
133
|
storeId: true,
|
|
134
134
|
treeId: true,
|
|
135
135
|
},
|
|
@@ -162,6 +162,12 @@ async function handleCreate(argv, prompter) {
|
|
|
162
162
|
required: false,
|
|
163
163
|
skipPrompt: true,
|
|
164
164
|
},
|
|
165
|
+
{
|
|
166
|
+
type: 'text',
|
|
167
|
+
name: 'databaseId',
|
|
168
|
+
message: 'databaseId',
|
|
169
|
+
required: true,
|
|
170
|
+
},
|
|
165
171
|
{
|
|
166
172
|
type: 'text',
|
|
167
173
|
name: 'date',
|
|
@@ -183,12 +189,6 @@ async function handleCreate(argv, prompter) {
|
|
|
183
189
|
required: false,
|
|
184
190
|
skipPrompt: true,
|
|
185
191
|
},
|
|
186
|
-
{
|
|
187
|
-
type: 'text',
|
|
188
|
-
name: 'scopeId',
|
|
189
|
-
message: 'scopeId',
|
|
190
|
-
required: true,
|
|
191
|
-
},
|
|
192
192
|
{
|
|
193
193
|
type: 'text',
|
|
194
194
|
name: 'storeId',
|
|
@@ -211,21 +211,21 @@ async function handleCreate(argv, prompter) {
|
|
|
211
211
|
data: {
|
|
212
212
|
authorId: cleanedData.authorId,
|
|
213
213
|
committerId: cleanedData.committerId,
|
|
214
|
+
databaseId: cleanedData.databaseId,
|
|
214
215
|
date: cleanedData.date,
|
|
215
216
|
message: cleanedData.message,
|
|
216
217
|
parentIds: cleanedData.parentIds,
|
|
217
|
-
scopeId: cleanedData.scopeId,
|
|
218
218
|
storeId: cleanedData.storeId,
|
|
219
219
|
treeId: cleanedData.treeId,
|
|
220
220
|
},
|
|
221
221
|
select: {
|
|
222
222
|
authorId: true,
|
|
223
223
|
committerId: true,
|
|
224
|
+
databaseId: true,
|
|
224
225
|
date: true,
|
|
225
226
|
id: true,
|
|
226
227
|
message: true,
|
|
227
228
|
parentIds: true,
|
|
228
|
-
scopeId: true,
|
|
229
229
|
storeId: true,
|
|
230
230
|
treeId: true,
|
|
231
231
|
},
|
|
@@ -252,8 +252,8 @@ async function handleUpdate(argv, prompter) {
|
|
|
252
252
|
},
|
|
253
253
|
{
|
|
254
254
|
type: 'text',
|
|
255
|
-
name: '
|
|
256
|
-
message: '
|
|
255
|
+
name: 'databaseId',
|
|
256
|
+
message: 'databaseId',
|
|
257
257
|
required: true,
|
|
258
258
|
},
|
|
259
259
|
{
|
|
@@ -312,7 +312,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
312
312
|
.update({
|
|
313
313
|
where: {
|
|
314
314
|
id: answers.id,
|
|
315
|
-
|
|
315
|
+
databaseId: answers.databaseId,
|
|
316
316
|
},
|
|
317
317
|
data: {
|
|
318
318
|
authorId: cleanedData.authorId,
|
|
@@ -326,11 +326,11 @@ async function handleUpdate(argv, prompter) {
|
|
|
326
326
|
select: {
|
|
327
327
|
authorId: true,
|
|
328
328
|
committerId: true,
|
|
329
|
+
databaseId: true,
|
|
329
330
|
date: true,
|
|
330
331
|
id: true,
|
|
331
332
|
message: true,
|
|
332
333
|
parentIds: true,
|
|
333
|
-
scopeId: true,
|
|
334
334
|
storeId: true,
|
|
335
335
|
treeId: true,
|
|
336
336
|
},
|
|
@@ -357,8 +357,8 @@ async function handleDelete(argv, prompter) {
|
|
|
357
357
|
},
|
|
358
358
|
{
|
|
359
359
|
type: 'text',
|
|
360
|
-
name: '
|
|
361
|
-
message: '
|
|
360
|
+
name: 'databaseId',
|
|
361
|
+
message: 'databaseId',
|
|
362
362
|
required: true,
|
|
363
363
|
},
|
|
364
364
|
]);
|
|
@@ -368,7 +368,7 @@ async function handleDelete(argv, prompter) {
|
|
|
368
368
|
.delete({
|
|
369
369
|
where: {
|
|
370
370
|
id: answers.id,
|
|
371
|
-
|
|
371
|
+
databaseId: answers.databaseId,
|
|
372
372
|
},
|
|
373
373
|
select: {
|
|
374
374
|
id: true,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI commands for InfraGetAllTreeNodesRecord
|
|
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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* CLI commands for
|
|
2
|
+
* CLI commands for InfraGetAllTreeNodesRecord
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
@@ -7,11 +7,10 @@ import { extractFirst } from 'inquirerer';
|
|
|
7
7
|
import { getClient } from '../executor';
|
|
8
8
|
import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils';
|
|
9
9
|
const fieldSchema = {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
upload: 'string',
|
|
10
|
+
data: 'json',
|
|
11
|
+
path: 'string',
|
|
13
12
|
};
|
|
14
|
-
const usage = '\
|
|
13
|
+
const usage = '\ninfra-get-all-tree-nodes-record <command>\n\nCommands:\n list List infraGetAllTreeNodesRecord records\n find-first Find first matching infraGetAllTreeNodesRecord record\n create Create a new infraGetAllTreeNodesRecord\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';
|
|
15
14
|
export default async (argv, prompter, _options) => {
|
|
16
15
|
if (argv.help || argv.h) {
|
|
17
16
|
console.log(usage);
|
|
@@ -47,13 +46,12 @@ async function handleTableSubcommand(subcommand, argv, prompter) {
|
|
|
47
46
|
async function handleList(argv, _prompter) {
|
|
48
47
|
try {
|
|
49
48
|
const defaultSelect = {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
upload: true,
|
|
49
|
+
data: true,
|
|
50
|
+
path: true,
|
|
53
51
|
};
|
|
54
52
|
const findManyArgs = parseFindManyArgs(argv, defaultSelect);
|
|
55
53
|
const client = getClient();
|
|
56
|
-
const result = await client.
|
|
54
|
+
const result = await client.infraGetAllTreeNodesRecord.findMany(findManyArgs).execute();
|
|
57
55
|
console.log(JSON.stringify(result, null, 2));
|
|
58
56
|
}
|
|
59
57
|
catch (error) {
|
|
@@ -67,13 +65,12 @@ async function handleList(argv, _prompter) {
|
|
|
67
65
|
async function handleFindFirst(argv, _prompter) {
|
|
68
66
|
try {
|
|
69
67
|
const defaultSelect = {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
upload: true,
|
|
68
|
+
data: true,
|
|
69
|
+
path: true,
|
|
73
70
|
};
|
|
74
71
|
const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
|
|
75
72
|
const client = getClient();
|
|
76
|
-
const result = await client.
|
|
73
|
+
const result = await client.infraGetAllTreeNodesRecord.findFirst(findFirstArgs).execute();
|
|
77
74
|
console.log(JSON.stringify(result, null, 2));
|
|
78
75
|
}
|
|
79
76
|
catch (error) {
|
|
@@ -88,33 +85,30 @@ async function handleCreate(argv, prompter) {
|
|
|
88
85
|
try {
|
|
89
86
|
const rawAnswers = await prompter.prompt(argv, [
|
|
90
87
|
{
|
|
91
|
-
type: '
|
|
92
|
-
name: '
|
|
93
|
-
message: '
|
|
94
|
-
required:
|
|
95
|
-
skipPrompt: true,
|
|
88
|
+
type: 'json',
|
|
89
|
+
name: 'data',
|
|
90
|
+
message: 'data',
|
|
91
|
+
required: true,
|
|
96
92
|
},
|
|
97
93
|
{
|
|
98
94
|
type: 'text',
|
|
99
|
-
name: '
|
|
100
|
-
message: '
|
|
101
|
-
required:
|
|
102
|
-
skipPrompt: true,
|
|
95
|
+
name: 'path',
|
|
96
|
+
message: 'path',
|
|
97
|
+
required: true,
|
|
103
98
|
},
|
|
104
99
|
]);
|
|
105
100
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
106
101
|
const cleanedData = stripUndefined(answers, fieldSchema);
|
|
107
102
|
const client = getClient();
|
|
108
|
-
const result = await client.
|
|
103
|
+
const result = await client.infraGetAllTreeNodesRecord
|
|
109
104
|
.create({
|
|
110
105
|
data: {
|
|
111
|
-
|
|
112
|
-
|
|
106
|
+
data: cleanedData.data,
|
|
107
|
+
path: cleanedData.path,
|
|
113
108
|
},
|
|
114
109
|
select: {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
upload: true,
|
|
110
|
+
data: true,
|
|
111
|
+
path: true,
|
|
118
112
|
},
|
|
119
113
|
})
|
|
120
114
|
.execute();
|
|
@@ -9,10 +9,10 @@ import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined }
|
|
|
9
9
|
const fieldSchema = {
|
|
10
10
|
createdAt: 'string',
|
|
11
11
|
data: 'json',
|
|
12
|
+
databaseId: 'uuid',
|
|
12
13
|
id: 'uuid',
|
|
13
14
|
kids: 'uuid',
|
|
14
15
|
ktree: 'string',
|
|
15
|
-
scopeId: 'uuid',
|
|
16
16
|
};
|
|
17
17
|
const usage = '\ninfra-object <command>\n\nCommands:\n list List infraObject records\n find-first Find first matching infraObject record\n get Get a infraObject by ID\n create Create a new infraObject\n update Update an existing infraObject\n delete Delete a infraObject\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';
|
|
18
18
|
export default async (argv, prompter, _options) => {
|
|
@@ -58,10 +58,10 @@ async function handleList(argv, _prompter) {
|
|
|
58
58
|
const defaultSelect = {
|
|
59
59
|
createdAt: true,
|
|
60
60
|
data: true,
|
|
61
|
+
databaseId: true,
|
|
61
62
|
id: true,
|
|
62
63
|
kids: true,
|
|
63
64
|
ktree: true,
|
|
64
|
-
scopeId: true,
|
|
65
65
|
};
|
|
66
66
|
const findManyArgs = parseFindManyArgs(argv, defaultSelect);
|
|
67
67
|
const client = getClient();
|
|
@@ -81,10 +81,10 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
81
81
|
const defaultSelect = {
|
|
82
82
|
createdAt: true,
|
|
83
83
|
data: true,
|
|
84
|
+
databaseId: true,
|
|
84
85
|
id: true,
|
|
85
86
|
kids: true,
|
|
86
87
|
ktree: true,
|
|
87
|
-
scopeId: true,
|
|
88
88
|
};
|
|
89
89
|
const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
|
|
90
90
|
const client = getClient();
|
|
@@ -116,10 +116,10 @@ async function handleGet(argv, prompter) {
|
|
|
116
116
|
select: {
|
|
117
117
|
createdAt: true,
|
|
118
118
|
data: true,
|
|
119
|
+
databaseId: true,
|
|
119
120
|
id: true,
|
|
120
121
|
kids: true,
|
|
121
122
|
ktree: true,
|
|
122
|
-
scopeId: true,
|
|
123
123
|
},
|
|
124
124
|
})
|
|
125
125
|
.execute();
|
|
@@ -143,6 +143,12 @@ async function handleCreate(argv, prompter) {
|
|
|
143
143
|
required: false,
|
|
144
144
|
skipPrompt: true,
|
|
145
145
|
},
|
|
146
|
+
{
|
|
147
|
+
type: 'text',
|
|
148
|
+
name: 'databaseId',
|
|
149
|
+
message: 'databaseId',
|
|
150
|
+
required: true,
|
|
151
|
+
},
|
|
146
152
|
{
|
|
147
153
|
type: 'text',
|
|
148
154
|
name: 'kids',
|
|
@@ -157,12 +163,6 @@ async function handleCreate(argv, prompter) {
|
|
|
157
163
|
required: false,
|
|
158
164
|
skipPrompt: true,
|
|
159
165
|
},
|
|
160
|
-
{
|
|
161
|
-
type: 'text',
|
|
162
|
-
name: 'scopeId',
|
|
163
|
-
message: 'scopeId',
|
|
164
|
-
required: true,
|
|
165
|
-
},
|
|
166
166
|
]);
|
|
167
167
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
168
168
|
const cleanedData = stripUndefined(answers, fieldSchema);
|
|
@@ -171,17 +171,17 @@ async function handleCreate(argv, prompter) {
|
|
|
171
171
|
.create({
|
|
172
172
|
data: {
|
|
173
173
|
data: cleanedData.data,
|
|
174
|
+
databaseId: cleanedData.databaseId,
|
|
174
175
|
kids: cleanedData.kids,
|
|
175
176
|
ktree: cleanedData.ktree,
|
|
176
|
-
scopeId: cleanedData.scopeId,
|
|
177
177
|
},
|
|
178
178
|
select: {
|
|
179
179
|
createdAt: true,
|
|
180
180
|
data: true,
|
|
181
|
+
databaseId: true,
|
|
181
182
|
id: true,
|
|
182
183
|
kids: true,
|
|
183
184
|
ktree: true,
|
|
184
|
-
scopeId: true,
|
|
185
185
|
},
|
|
186
186
|
})
|
|
187
187
|
.execute();
|
|
@@ -206,8 +206,8 @@ async function handleUpdate(argv, prompter) {
|
|
|
206
206
|
},
|
|
207
207
|
{
|
|
208
208
|
type: 'text',
|
|
209
|
-
name: '
|
|
210
|
-
message: '
|
|
209
|
+
name: 'databaseId',
|
|
210
|
+
message: 'databaseId',
|
|
211
211
|
required: true,
|
|
212
212
|
},
|
|
213
213
|
{
|
|
@@ -239,7 +239,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
239
239
|
.update({
|
|
240
240
|
where: {
|
|
241
241
|
id: answers.id,
|
|
242
|
-
|
|
242
|
+
databaseId: answers.databaseId,
|
|
243
243
|
},
|
|
244
244
|
data: {
|
|
245
245
|
data: cleanedData.data,
|
|
@@ -249,10 +249,10 @@ async function handleUpdate(argv, prompter) {
|
|
|
249
249
|
select: {
|
|
250
250
|
createdAt: true,
|
|
251
251
|
data: true,
|
|
252
|
+
databaseId: true,
|
|
252
253
|
id: true,
|
|
253
254
|
kids: true,
|
|
254
255
|
ktree: true,
|
|
255
|
-
scopeId: true,
|
|
256
256
|
},
|
|
257
257
|
})
|
|
258
258
|
.execute();
|
|
@@ -277,8 +277,8 @@ async function handleDelete(argv, prompter) {
|
|
|
277
277
|
},
|
|
278
278
|
{
|
|
279
279
|
type: 'text',
|
|
280
|
-
name: '
|
|
281
|
-
message: '
|
|
280
|
+
name: 'databaseId',
|
|
281
|
+
message: 'databaseId',
|
|
282
282
|
required: true,
|
|
283
283
|
},
|
|
284
284
|
]);
|
|
@@ -288,7 +288,7 @@ async function handleDelete(argv, prompter) {
|
|
|
288
288
|
.delete({
|
|
289
289
|
where: {
|
|
290
290
|
id: answers.id,
|
|
291
|
-
|
|
291
|
+
databaseId: answers.databaseId,
|
|
292
292
|
},
|
|
293
293
|
select: {
|
|
294
294
|
id: true,
|
|
@@ -8,9 +8,9 @@ import { getClient } from '../executor';
|
|
|
8
8
|
import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils';
|
|
9
9
|
const fieldSchema = {
|
|
10
10
|
commitId: 'uuid',
|
|
11
|
+
databaseId: 'uuid',
|
|
11
12
|
id: 'uuid',
|
|
12
13
|
name: 'string',
|
|
13
|
-
scopeId: 'uuid',
|
|
14
14
|
storeId: 'uuid',
|
|
15
15
|
};
|
|
16
16
|
const usage = '\ninfra-ref <command>\n\nCommands:\n list List infraRef records\n find-first Find first matching infraRef record\n get Get a infraRef by ID\n create Create a new infraRef\n update Update an existing infraRef\n delete Delete a infraRef\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';
|
|
@@ -56,9 +56,9 @@ async function handleList(argv, _prompter) {
|
|
|
56
56
|
try {
|
|
57
57
|
const defaultSelect = {
|
|
58
58
|
commitId: true,
|
|
59
|
+
databaseId: true,
|
|
59
60
|
id: true,
|
|
60
61
|
name: true,
|
|
61
|
-
scopeId: true,
|
|
62
62
|
storeId: true,
|
|
63
63
|
};
|
|
64
64
|
const findManyArgs = parseFindManyArgs(argv, defaultSelect);
|
|
@@ -78,9 +78,9 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
78
78
|
try {
|
|
79
79
|
const defaultSelect = {
|
|
80
80
|
commitId: true,
|
|
81
|
+
databaseId: true,
|
|
81
82
|
id: true,
|
|
82
83
|
name: true,
|
|
83
|
-
scopeId: true,
|
|
84
84
|
storeId: true,
|
|
85
85
|
};
|
|
86
86
|
const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
|
|
@@ -112,9 +112,9 @@ async function handleGet(argv, prompter) {
|
|
|
112
112
|
id: answers.id,
|
|
113
113
|
select: {
|
|
114
114
|
commitId: true,
|
|
115
|
+
databaseId: true,
|
|
115
116
|
id: true,
|
|
116
117
|
name: true,
|
|
117
|
-
scopeId: true,
|
|
118
118
|
storeId: true,
|
|
119
119
|
},
|
|
120
120
|
})
|
|
@@ -141,14 +141,14 @@ async function handleCreate(argv, prompter) {
|
|
|
141
141
|
},
|
|
142
142
|
{
|
|
143
143
|
type: 'text',
|
|
144
|
-
name: '
|
|
145
|
-
message: '
|
|
144
|
+
name: 'databaseId',
|
|
145
|
+
message: 'databaseId',
|
|
146
146
|
required: true,
|
|
147
147
|
},
|
|
148
148
|
{
|
|
149
149
|
type: 'text',
|
|
150
|
-
name: '
|
|
151
|
-
message: '
|
|
150
|
+
name: 'name',
|
|
151
|
+
message: 'name',
|
|
152
152
|
required: true,
|
|
153
153
|
},
|
|
154
154
|
{
|
|
@@ -165,15 +165,15 @@ async function handleCreate(argv, prompter) {
|
|
|
165
165
|
.create({
|
|
166
166
|
data: {
|
|
167
167
|
commitId: cleanedData.commitId,
|
|
168
|
+
databaseId: cleanedData.databaseId,
|
|
168
169
|
name: cleanedData.name,
|
|
169
|
-
scopeId: cleanedData.scopeId,
|
|
170
170
|
storeId: cleanedData.storeId,
|
|
171
171
|
},
|
|
172
172
|
select: {
|
|
173
173
|
commitId: true,
|
|
174
|
+
databaseId: true,
|
|
174
175
|
id: true,
|
|
175
176
|
name: true,
|
|
176
|
-
scopeId: true,
|
|
177
177
|
storeId: true,
|
|
178
178
|
},
|
|
179
179
|
})
|
|
@@ -199,8 +199,8 @@ async function handleUpdate(argv, prompter) {
|
|
|
199
199
|
},
|
|
200
200
|
{
|
|
201
201
|
type: 'text',
|
|
202
|
-
name: '
|
|
203
|
-
message: '
|
|
202
|
+
name: 'databaseId',
|
|
203
|
+
message: 'databaseId',
|
|
204
204
|
required: true,
|
|
205
205
|
},
|
|
206
206
|
{
|
|
@@ -230,7 +230,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
230
230
|
.update({
|
|
231
231
|
where: {
|
|
232
232
|
id: answers.id,
|
|
233
|
-
|
|
233
|
+
databaseId: answers.databaseId,
|
|
234
234
|
},
|
|
235
235
|
data: {
|
|
236
236
|
commitId: cleanedData.commitId,
|
|
@@ -239,9 +239,9 @@ async function handleUpdate(argv, prompter) {
|
|
|
239
239
|
},
|
|
240
240
|
select: {
|
|
241
241
|
commitId: true,
|
|
242
|
+
databaseId: true,
|
|
242
243
|
id: true,
|
|
243
244
|
name: true,
|
|
244
|
-
scopeId: true,
|
|
245
245
|
storeId: true,
|
|
246
246
|
},
|
|
247
247
|
})
|
|
@@ -267,8 +267,8 @@ async function handleDelete(argv, prompter) {
|
|
|
267
267
|
},
|
|
268
268
|
{
|
|
269
269
|
type: 'text',
|
|
270
|
-
name: '
|
|
271
|
-
message: '
|
|
270
|
+
name: 'databaseId',
|
|
271
|
+
message: 'databaseId',
|
|
272
272
|
required: true,
|
|
273
273
|
},
|
|
274
274
|
]);
|
|
@@ -278,7 +278,7 @@ async function handleDelete(argv, prompter) {
|
|
|
278
278
|
.delete({
|
|
279
279
|
where: {
|
|
280
280
|
id: answers.id,
|
|
281
|
-
|
|
281
|
+
databaseId: answers.databaseId,
|
|
282
282
|
},
|
|
283
283
|
select: {
|
|
284
284
|
id: true,
|