@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,434 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/**
|
|
4
|
+
* CLI commands for WebhookEvent
|
|
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
|
+
createdAt: 'string',
|
|
13
|
+
databaseId: 'uuid',
|
|
14
|
+
endpointId: 'uuid',
|
|
15
|
+
error: 'string',
|
|
16
|
+
externalEventId: 'string',
|
|
17
|
+
id: 'uuid',
|
|
18
|
+
invocationCreatedAt: 'string',
|
|
19
|
+
invocationId: 'uuid',
|
|
20
|
+
payload: 'json',
|
|
21
|
+
provider: 'string',
|
|
22
|
+
providerTimestamp: 'string',
|
|
23
|
+
status: 'string',
|
|
24
|
+
updatedAt: 'string',
|
|
25
|
+
};
|
|
26
|
+
const usage = '\nwebhook-event <command>\n\nCommands:\n list List webhookEvent records\n find-first Find first matching webhookEvent record\n get Get a webhookEvent by ID\n create Create a new webhookEvent\n update Update an existing webhookEvent\n delete Delete a webhookEvent\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';
|
|
27
|
+
exports.default = async (argv, prompter, _options) => {
|
|
28
|
+
if (argv.help || argv.h) {
|
|
29
|
+
console.log(usage);
|
|
30
|
+
process.exit(0);
|
|
31
|
+
}
|
|
32
|
+
const { first: subcommand, newArgv } = (0, inquirerer_1.extractFirst)(argv);
|
|
33
|
+
if (!subcommand) {
|
|
34
|
+
const answer = await prompter.prompt(argv, [
|
|
35
|
+
{
|
|
36
|
+
type: 'autocomplete',
|
|
37
|
+
name: 'subcommand',
|
|
38
|
+
message: 'What do you want to do?',
|
|
39
|
+
options: ['list', 'find-first', 'get', 'create', 'update', 'delete'],
|
|
40
|
+
},
|
|
41
|
+
]);
|
|
42
|
+
return handleTableSubcommand(answer.subcommand, newArgv, prompter);
|
|
43
|
+
}
|
|
44
|
+
return handleTableSubcommand(subcommand, newArgv, prompter);
|
|
45
|
+
};
|
|
46
|
+
async function handleTableSubcommand(subcommand, argv, prompter) {
|
|
47
|
+
switch (subcommand) {
|
|
48
|
+
case 'list':
|
|
49
|
+
return handleList(argv, prompter);
|
|
50
|
+
case 'find-first':
|
|
51
|
+
return handleFindFirst(argv, prompter);
|
|
52
|
+
case 'get':
|
|
53
|
+
return handleGet(argv, prompter);
|
|
54
|
+
case 'create':
|
|
55
|
+
return handleCreate(argv, prompter);
|
|
56
|
+
case 'update':
|
|
57
|
+
return handleUpdate(argv, prompter);
|
|
58
|
+
case 'delete':
|
|
59
|
+
return handleDelete(argv, prompter);
|
|
60
|
+
default:
|
|
61
|
+
console.log(usage);
|
|
62
|
+
process.exit(1);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
async function handleList(argv, _prompter) {
|
|
66
|
+
try {
|
|
67
|
+
const defaultSelect = {
|
|
68
|
+
createdAt: true,
|
|
69
|
+
databaseId: true,
|
|
70
|
+
endpointId: true,
|
|
71
|
+
error: true,
|
|
72
|
+
externalEventId: true,
|
|
73
|
+
id: true,
|
|
74
|
+
invocationCreatedAt: true,
|
|
75
|
+
invocationId: true,
|
|
76
|
+
payload: true,
|
|
77
|
+
provider: true,
|
|
78
|
+
providerTimestamp: true,
|
|
79
|
+
status: true,
|
|
80
|
+
updatedAt: true,
|
|
81
|
+
};
|
|
82
|
+
const findManyArgs = (0, utils_1.parseFindManyArgs)(argv, defaultSelect);
|
|
83
|
+
const client = (0, executor_1.getClient)();
|
|
84
|
+
const result = await client.webhookEvent.findMany(findManyArgs).execute();
|
|
85
|
+
console.log(JSON.stringify(result, null, 2));
|
|
86
|
+
}
|
|
87
|
+
catch (error) {
|
|
88
|
+
console.error('Failed to list records.');
|
|
89
|
+
if (error instanceof Error) {
|
|
90
|
+
console.error(error.message);
|
|
91
|
+
}
|
|
92
|
+
process.exit(1);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
async function handleFindFirst(argv, _prompter) {
|
|
96
|
+
try {
|
|
97
|
+
const defaultSelect = {
|
|
98
|
+
createdAt: true,
|
|
99
|
+
databaseId: true,
|
|
100
|
+
endpointId: true,
|
|
101
|
+
error: true,
|
|
102
|
+
externalEventId: true,
|
|
103
|
+
id: true,
|
|
104
|
+
invocationCreatedAt: true,
|
|
105
|
+
invocationId: true,
|
|
106
|
+
payload: true,
|
|
107
|
+
provider: true,
|
|
108
|
+
providerTimestamp: true,
|
|
109
|
+
status: true,
|
|
110
|
+
updatedAt: true,
|
|
111
|
+
};
|
|
112
|
+
const findFirstArgs = (0, utils_1.parseFindFirstArgs)(argv, defaultSelect);
|
|
113
|
+
const client = (0, executor_1.getClient)();
|
|
114
|
+
const result = await client.webhookEvent.findFirst(findFirstArgs).execute();
|
|
115
|
+
console.log(JSON.stringify(result, null, 2));
|
|
116
|
+
}
|
|
117
|
+
catch (error) {
|
|
118
|
+
console.error('Failed to find record.');
|
|
119
|
+
if (error instanceof Error) {
|
|
120
|
+
console.error(error.message);
|
|
121
|
+
}
|
|
122
|
+
process.exit(1);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
async function handleGet(argv, prompter) {
|
|
126
|
+
try {
|
|
127
|
+
const answers = await prompter.prompt(argv, [
|
|
128
|
+
{
|
|
129
|
+
type: 'text',
|
|
130
|
+
name: 'id',
|
|
131
|
+
message: 'id',
|
|
132
|
+
required: true,
|
|
133
|
+
},
|
|
134
|
+
]);
|
|
135
|
+
const client = (0, executor_1.getClient)();
|
|
136
|
+
const result = await client.webhookEvent
|
|
137
|
+
.findOne({
|
|
138
|
+
id: answers.id,
|
|
139
|
+
select: {
|
|
140
|
+
createdAt: true,
|
|
141
|
+
databaseId: true,
|
|
142
|
+
endpointId: true,
|
|
143
|
+
error: true,
|
|
144
|
+
externalEventId: true,
|
|
145
|
+
id: true,
|
|
146
|
+
invocationCreatedAt: true,
|
|
147
|
+
invocationId: true,
|
|
148
|
+
payload: true,
|
|
149
|
+
provider: true,
|
|
150
|
+
providerTimestamp: true,
|
|
151
|
+
status: true,
|
|
152
|
+
updatedAt: true,
|
|
153
|
+
},
|
|
154
|
+
})
|
|
155
|
+
.execute();
|
|
156
|
+
console.log(JSON.stringify(result, null, 2));
|
|
157
|
+
}
|
|
158
|
+
catch (error) {
|
|
159
|
+
console.error('Record not found.');
|
|
160
|
+
if (error instanceof Error) {
|
|
161
|
+
console.error(error.message);
|
|
162
|
+
}
|
|
163
|
+
process.exit(1);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
async function handleCreate(argv, prompter) {
|
|
167
|
+
try {
|
|
168
|
+
const rawAnswers = await prompter.prompt(argv, [
|
|
169
|
+
{
|
|
170
|
+
type: 'text',
|
|
171
|
+
name: 'databaseId',
|
|
172
|
+
message: 'databaseId',
|
|
173
|
+
required: true,
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
type: 'text',
|
|
177
|
+
name: 'endpointId',
|
|
178
|
+
message: 'endpointId',
|
|
179
|
+
required: true,
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
type: 'text',
|
|
183
|
+
name: 'error',
|
|
184
|
+
message: 'error',
|
|
185
|
+
required: false,
|
|
186
|
+
skipPrompt: true,
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
type: 'text',
|
|
190
|
+
name: 'externalEventId',
|
|
191
|
+
message: 'externalEventId',
|
|
192
|
+
required: true,
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
type: 'text',
|
|
196
|
+
name: 'invocationCreatedAt',
|
|
197
|
+
message: 'invocationCreatedAt',
|
|
198
|
+
required: false,
|
|
199
|
+
skipPrompt: true,
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
type: 'text',
|
|
203
|
+
name: 'invocationId',
|
|
204
|
+
message: 'invocationId',
|
|
205
|
+
required: false,
|
|
206
|
+
skipPrompt: true,
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
type: 'json',
|
|
210
|
+
name: 'payload',
|
|
211
|
+
message: 'payload',
|
|
212
|
+
required: false,
|
|
213
|
+
skipPrompt: true,
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
type: 'text',
|
|
217
|
+
name: 'provider',
|
|
218
|
+
message: 'provider',
|
|
219
|
+
required: true,
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
type: 'text',
|
|
223
|
+
name: 'providerTimestamp',
|
|
224
|
+
message: 'providerTimestamp',
|
|
225
|
+
required: false,
|
|
226
|
+
skipPrompt: true,
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
type: 'text',
|
|
230
|
+
name: 'status',
|
|
231
|
+
message: 'status',
|
|
232
|
+
required: false,
|
|
233
|
+
skipPrompt: true,
|
|
234
|
+
},
|
|
235
|
+
]);
|
|
236
|
+
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
237
|
+
const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
|
|
238
|
+
const client = (0, executor_1.getClient)();
|
|
239
|
+
const result = await client.webhookEvent
|
|
240
|
+
.create({
|
|
241
|
+
data: {
|
|
242
|
+
databaseId: cleanedData.databaseId,
|
|
243
|
+
endpointId: cleanedData.endpointId,
|
|
244
|
+
error: cleanedData.error,
|
|
245
|
+
externalEventId: cleanedData.externalEventId,
|
|
246
|
+
invocationCreatedAt: cleanedData.invocationCreatedAt,
|
|
247
|
+
invocationId: cleanedData.invocationId,
|
|
248
|
+
payload: cleanedData.payload,
|
|
249
|
+
provider: cleanedData.provider,
|
|
250
|
+
providerTimestamp: cleanedData.providerTimestamp,
|
|
251
|
+
status: cleanedData.status,
|
|
252
|
+
},
|
|
253
|
+
select: {
|
|
254
|
+
createdAt: true,
|
|
255
|
+
databaseId: true,
|
|
256
|
+
endpointId: true,
|
|
257
|
+
error: true,
|
|
258
|
+
externalEventId: true,
|
|
259
|
+
id: true,
|
|
260
|
+
invocationCreatedAt: true,
|
|
261
|
+
invocationId: true,
|
|
262
|
+
payload: true,
|
|
263
|
+
provider: true,
|
|
264
|
+
providerTimestamp: true,
|
|
265
|
+
status: true,
|
|
266
|
+
updatedAt: true,
|
|
267
|
+
},
|
|
268
|
+
})
|
|
269
|
+
.execute();
|
|
270
|
+
console.log(JSON.stringify(result, null, 2));
|
|
271
|
+
}
|
|
272
|
+
catch (error) {
|
|
273
|
+
console.error('Failed to create record.');
|
|
274
|
+
if (error instanceof Error) {
|
|
275
|
+
console.error(error.message);
|
|
276
|
+
}
|
|
277
|
+
process.exit(1);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
async function handleUpdate(argv, prompter) {
|
|
281
|
+
try {
|
|
282
|
+
const rawAnswers = await prompter.prompt(argv, [
|
|
283
|
+
{
|
|
284
|
+
type: 'text',
|
|
285
|
+
name: 'id',
|
|
286
|
+
message: 'id',
|
|
287
|
+
required: true,
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
type: 'text',
|
|
291
|
+
name: 'databaseId',
|
|
292
|
+
message: 'databaseId',
|
|
293
|
+
required: false,
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
type: 'text',
|
|
297
|
+
name: 'endpointId',
|
|
298
|
+
message: 'endpointId',
|
|
299
|
+
required: false,
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
type: 'text',
|
|
303
|
+
name: 'error',
|
|
304
|
+
message: 'error',
|
|
305
|
+
required: false,
|
|
306
|
+
skipPrompt: true,
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
type: 'text',
|
|
310
|
+
name: 'externalEventId',
|
|
311
|
+
message: 'externalEventId',
|
|
312
|
+
required: false,
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
type: 'text',
|
|
316
|
+
name: 'invocationCreatedAt',
|
|
317
|
+
message: 'invocationCreatedAt',
|
|
318
|
+
required: false,
|
|
319
|
+
skipPrompt: true,
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
type: 'text',
|
|
323
|
+
name: 'invocationId',
|
|
324
|
+
message: 'invocationId',
|
|
325
|
+
required: false,
|
|
326
|
+
skipPrompt: true,
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
type: 'json',
|
|
330
|
+
name: 'payload',
|
|
331
|
+
message: 'payload',
|
|
332
|
+
required: false,
|
|
333
|
+
skipPrompt: true,
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
type: 'text',
|
|
337
|
+
name: 'provider',
|
|
338
|
+
message: 'provider',
|
|
339
|
+
required: false,
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
type: 'text',
|
|
343
|
+
name: 'providerTimestamp',
|
|
344
|
+
message: 'providerTimestamp',
|
|
345
|
+
required: false,
|
|
346
|
+
skipPrompt: true,
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
type: 'text',
|
|
350
|
+
name: 'status',
|
|
351
|
+
message: 'status',
|
|
352
|
+
required: false,
|
|
353
|
+
skipPrompt: true,
|
|
354
|
+
},
|
|
355
|
+
]);
|
|
356
|
+
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
357
|
+
const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
|
|
358
|
+
const client = (0, executor_1.getClient)();
|
|
359
|
+
const result = await client.webhookEvent
|
|
360
|
+
.update({
|
|
361
|
+
where: {
|
|
362
|
+
id: answers.id,
|
|
363
|
+
},
|
|
364
|
+
data: {
|
|
365
|
+
databaseId: cleanedData.databaseId,
|
|
366
|
+
endpointId: cleanedData.endpointId,
|
|
367
|
+
error: cleanedData.error,
|
|
368
|
+
externalEventId: cleanedData.externalEventId,
|
|
369
|
+
invocationCreatedAt: cleanedData.invocationCreatedAt,
|
|
370
|
+
invocationId: cleanedData.invocationId,
|
|
371
|
+
payload: cleanedData.payload,
|
|
372
|
+
provider: cleanedData.provider,
|
|
373
|
+
providerTimestamp: cleanedData.providerTimestamp,
|
|
374
|
+
status: cleanedData.status,
|
|
375
|
+
},
|
|
376
|
+
select: {
|
|
377
|
+
createdAt: true,
|
|
378
|
+
databaseId: true,
|
|
379
|
+
endpointId: true,
|
|
380
|
+
error: true,
|
|
381
|
+
externalEventId: true,
|
|
382
|
+
id: true,
|
|
383
|
+
invocationCreatedAt: true,
|
|
384
|
+
invocationId: true,
|
|
385
|
+
payload: true,
|
|
386
|
+
provider: true,
|
|
387
|
+
providerTimestamp: true,
|
|
388
|
+
status: true,
|
|
389
|
+
updatedAt: true,
|
|
390
|
+
},
|
|
391
|
+
})
|
|
392
|
+
.execute();
|
|
393
|
+
console.log(JSON.stringify(result, null, 2));
|
|
394
|
+
}
|
|
395
|
+
catch (error) {
|
|
396
|
+
console.error('Failed to update record.');
|
|
397
|
+
if (error instanceof Error) {
|
|
398
|
+
console.error(error.message);
|
|
399
|
+
}
|
|
400
|
+
process.exit(1);
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
async function handleDelete(argv, prompter) {
|
|
404
|
+
try {
|
|
405
|
+
const rawAnswers = await prompter.prompt(argv, [
|
|
406
|
+
{
|
|
407
|
+
type: 'text',
|
|
408
|
+
name: 'id',
|
|
409
|
+
message: 'id',
|
|
410
|
+
required: true,
|
|
411
|
+
},
|
|
412
|
+
]);
|
|
413
|
+
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
414
|
+
const client = (0, executor_1.getClient)();
|
|
415
|
+
const result = await client.webhookEvent
|
|
416
|
+
.delete({
|
|
417
|
+
where: {
|
|
418
|
+
id: answers.id,
|
|
419
|
+
},
|
|
420
|
+
select: {
|
|
421
|
+
id: true,
|
|
422
|
+
},
|
|
423
|
+
})
|
|
424
|
+
.execute();
|
|
425
|
+
console.log(JSON.stringify(result, null, 2));
|
|
426
|
+
}
|
|
427
|
+
catch (error) {
|
|
428
|
+
console.error('Failed to delete record.');
|
|
429
|
+
if (error instanceof Error) {
|
|
430
|
+
console.error(error.message);
|
|
431
|
+
}
|
|
432
|
+
process.exit(1);
|
|
433
|
+
}
|
|
434
|
+
}
|
package/compute/cli/commands.js
CHANGED
|
@@ -13,6 +13,7 @@ const inquirerer_1 = require("inquirerer");
|
|
|
13
13
|
const context_1 = __importDefault(require("./commands/context"));
|
|
14
14
|
const auth_1 = __importDefault(require("./commands/auth"));
|
|
15
15
|
const db_preset_1 = __importDefault(require("./commands/db-preset"));
|
|
16
|
+
const declared_capacity_1 = __importDefault(require("./commands/declared-capacity"));
|
|
16
17
|
const function_api_binding_1 = __importDefault(require("./commands/function-api-binding"));
|
|
17
18
|
const function_definition_1 = __importDefault(require("./commands/function-definition"));
|
|
18
19
|
const function_deployment_1 = __importDefault(require("./commands/function-deployment"));
|
|
@@ -27,35 +28,55 @@ const function_graph_object_1 = __importDefault(require("./commands/function-gra
|
|
|
27
28
|
const function_graph_ref_1 = __importDefault(require("./commands/function-graph-ref"));
|
|
28
29
|
const function_graph_store_1 = __importDefault(require("./commands/function-graph-store"));
|
|
29
30
|
const function_invocation_1 = __importDefault(require("./commands/function-invocation"));
|
|
30
|
-
const
|
|
31
|
+
const get_all_tree_nodes_record_1 = __importDefault(require("./commands/get-all-tree-nodes-record"));
|
|
31
32
|
const infra_commit_1 = __importDefault(require("./commands/infra-commit"));
|
|
32
|
-
const
|
|
33
|
+
const infra_get_all_tree_nodes_record_1 = __importDefault(require("./commands/infra-get-all-tree-nodes-record"));
|
|
33
34
|
const infra_object_1 = __importDefault(require("./commands/infra-object"));
|
|
34
35
|
const infra_ref_1 = __importDefault(require("./commands/infra-ref"));
|
|
35
36
|
const infra_store_1 = __importDefault(require("./commands/infra-store"));
|
|
36
37
|
const integration_provider_1 = __importDefault(require("./commands/integration-provider"));
|
|
37
38
|
const namespace_1 = __importDefault(require("./commands/namespace"));
|
|
38
39
|
const namespace_event_1 = __importDefault(require("./commands/namespace-event"));
|
|
40
|
+
const platform_declared_capacity_1 = __importDefault(require("./commands/platform-declared-capacity"));
|
|
39
41
|
const platform_function_api_binding_1 = __importDefault(require("./commands/platform-function-api-binding"));
|
|
40
42
|
const platform_function_definition_1 = __importDefault(require("./commands/platform-function-definition"));
|
|
41
43
|
const platform_function_deployment_1 = __importDefault(require("./commands/platform-function-deployment"));
|
|
42
44
|
const platform_function_deployment_event_1 = __importDefault(require("./commands/platform-function-deployment-event"));
|
|
43
45
|
const platform_function_execution_log_1 = __importDefault(require("./commands/platform-function-execution-log"));
|
|
44
46
|
const platform_function_invocation_1 = __importDefault(require("./commands/platform-function-invocation"));
|
|
47
|
+
const platform_infra_commit_1 = __importDefault(require("./commands/platform-infra-commit"));
|
|
48
|
+
const platform_infra_get_all_tree_nodes_record_1 = __importDefault(require("./commands/platform-infra-get-all-tree-nodes-record"));
|
|
49
|
+
const platform_infra_object_1 = __importDefault(require("./commands/platform-infra-object"));
|
|
50
|
+
const platform_infra_ref_1 = __importDefault(require("./commands/platform-infra-ref"));
|
|
51
|
+
const platform_infra_store_1 = __importDefault(require("./commands/platform-infra-store"));
|
|
45
52
|
const platform_namespace_1 = __importDefault(require("./commands/platform-namespace"));
|
|
46
53
|
const platform_namespace_event_1 = __importDefault(require("./commands/platform-namespace-event"));
|
|
47
54
|
const platform_resource_1 = __importDefault(require("./commands/platform-resource"));
|
|
48
55
|
const platform_resource_definition_1 = __importDefault(require("./commands/platform-resource-definition"));
|
|
49
56
|
const platform_resource_event_1 = __importDefault(require("./commands/platform-resource-event"));
|
|
57
|
+
const platform_resource_installation_1 = __importDefault(require("./commands/platform-resource-installation"));
|
|
50
58
|
const platform_resource_status_check_1 = __importDefault(require("./commands/platform-resource-status-check"));
|
|
59
|
+
const platform_resource_usage_log_1 = __importDefault(require("./commands/platform-resource-usage-log"));
|
|
60
|
+
const platform_resource_usage_summary_1 = __importDefault(require("./commands/platform-resource-usage-summary"));
|
|
61
|
+
const platform_resource_utilization_daily_1 = __importDefault(require("./commands/platform-resource-utilization-daily"));
|
|
62
|
+
const platform_resources_health_1 = __importDefault(require("./commands/platform-resources-health"));
|
|
51
63
|
const platform_resources_requirements_state_1 = __importDefault(require("./commands/platform-resources-requirements-state"));
|
|
52
64
|
const platform_resources_resolved_requirement_1 = __importDefault(require("./commands/platform-resources-resolved-requirement"));
|
|
65
|
+
const platform_webhook_endpoint_1 = __importDefault(require("./commands/platform-webhook-endpoint"));
|
|
66
|
+
const platform_webhook_event_1 = __importDefault(require("./commands/platform-webhook-event"));
|
|
53
67
|
const resource_1 = __importDefault(require("./commands/resource"));
|
|
54
68
|
const resource_definition_1 = __importDefault(require("./commands/resource-definition"));
|
|
55
69
|
const resource_event_1 = __importDefault(require("./commands/resource-event"));
|
|
70
|
+
const resource_installation_1 = __importDefault(require("./commands/resource-installation"));
|
|
56
71
|
const resource_status_check_1 = __importDefault(require("./commands/resource-status-check"));
|
|
72
|
+
const resource_usage_log_1 = __importDefault(require("./commands/resource-usage-log"));
|
|
73
|
+
const resource_usage_summary_1 = __importDefault(require("./commands/resource-usage-summary"));
|
|
74
|
+
const resource_utilization_daily_1 = __importDefault(require("./commands/resource-utilization-daily"));
|
|
75
|
+
const resources_health_1 = __importDefault(require("./commands/resources-health"));
|
|
57
76
|
const resources_requirements_state_1 = __importDefault(require("./commands/resources-requirements-state"));
|
|
58
77
|
const resources_resolved_requirement_1 = __importDefault(require("./commands/resources-resolved-requirement"));
|
|
78
|
+
const webhook_endpoint_1 = __importDefault(require("./commands/webhook-endpoint"));
|
|
79
|
+
const webhook_event_1 = __importDefault(require("./commands/webhook-event"));
|
|
59
80
|
const read_function_graph_1 = __importDefault(require("./commands/read-function-graph"));
|
|
60
81
|
const add_edge_1 = __importDefault(require("./commands/add-edge"));
|
|
61
82
|
const add_edge_and_save_1 = __importDefault(require("./commands/add-edge-and-save"));
|
|
@@ -69,7 +90,18 @@ const infra_insert_node_at_path_1 = __importDefault(require("./commands/infra-in
|
|
|
69
90
|
const infra_set_data_at_path_1 = __importDefault(require("./commands/infra-set-data-at-path"));
|
|
70
91
|
const init_empty_repo_1 = __importDefault(require("./commands/init-empty-repo"));
|
|
71
92
|
const insert_node_at_path_1 = __importDefault(require("./commands/insert-node-at-path"));
|
|
93
|
+
const platform_infra_init_empty_repo_1 = __importDefault(require("./commands/platform-infra-init-empty-repo"));
|
|
94
|
+
const platform_infra_insert_node_at_path_1 = __importDefault(require("./commands/platform-infra-insert-node-at-path"));
|
|
95
|
+
const platform_infra_set_data_at_path_1 = __importDefault(require("./commands/platform-infra-set-data-at-path"));
|
|
96
|
+
const platform_resource_installations_install_1 = __importDefault(require("./commands/platform-resource-installations-install"));
|
|
97
|
+
const platform_resource_installations_rollback_1 = __importDefault(require("./commands/platform-resource-installations-rollback"));
|
|
98
|
+
const platform_resource_installations_uninstall_1 = __importDefault(require("./commands/platform-resource-installations-uninstall"));
|
|
99
|
+
const platform_resource_installations_upgrade_1 = __importDefault(require("./commands/platform-resource-installations-upgrade"));
|
|
72
100
|
const provision_bucket_1 = __importDefault(require("./commands/provision-bucket"));
|
|
101
|
+
const resource_installations_install_1 = __importDefault(require("./commands/resource-installations-install"));
|
|
102
|
+
const resource_installations_rollback_1 = __importDefault(require("./commands/resource-installations-rollback"));
|
|
103
|
+
const resource_installations_uninstall_1 = __importDefault(require("./commands/resource-installations-uninstall"));
|
|
104
|
+
const resource_installations_upgrade_1 = __importDefault(require("./commands/resource-installations-upgrade"));
|
|
73
105
|
const save_graph_1 = __importDefault(require("./commands/save-graph"));
|
|
74
106
|
const set_data_at_path_1 = __importDefault(require("./commands/set-data-at-path"));
|
|
75
107
|
const start_execution_1 = __importDefault(require("./commands/start-execution"));
|
|
@@ -78,6 +110,7 @@ const createCommandMap = () => ({
|
|
|
78
110
|
context: context_1.default,
|
|
79
111
|
auth: auth_1.default,
|
|
80
112
|
'db-preset': db_preset_1.default,
|
|
113
|
+
'declared-capacity': declared_capacity_1.default,
|
|
81
114
|
'function-api-binding': function_api_binding_1.default,
|
|
82
115
|
'function-definition': function_definition_1.default,
|
|
83
116
|
'function-deployment': function_deployment_1.default,
|
|
@@ -92,35 +125,55 @@ const createCommandMap = () => ({
|
|
|
92
125
|
'function-graph-ref': function_graph_ref_1.default,
|
|
93
126
|
'function-graph-store': function_graph_store_1.default,
|
|
94
127
|
'function-invocation': function_invocation_1.default,
|
|
95
|
-
'get-all-record':
|
|
128
|
+
'get-all-tree-nodes-record': get_all_tree_nodes_record_1.default,
|
|
96
129
|
'infra-commit': infra_commit_1.default,
|
|
97
|
-
'infra-get-all-record':
|
|
130
|
+
'infra-get-all-tree-nodes-record': infra_get_all_tree_nodes_record_1.default,
|
|
98
131
|
'infra-object': infra_object_1.default,
|
|
99
132
|
'infra-ref': infra_ref_1.default,
|
|
100
133
|
'infra-store': infra_store_1.default,
|
|
101
134
|
'integration-provider': integration_provider_1.default,
|
|
102
135
|
namespace: namespace_1.default,
|
|
103
136
|
'namespace-event': namespace_event_1.default,
|
|
137
|
+
'platform-declared-capacity': platform_declared_capacity_1.default,
|
|
104
138
|
'platform-function-api-binding': platform_function_api_binding_1.default,
|
|
105
139
|
'platform-function-definition': platform_function_definition_1.default,
|
|
106
140
|
'platform-function-deployment': platform_function_deployment_1.default,
|
|
107
141
|
'platform-function-deployment-event': platform_function_deployment_event_1.default,
|
|
108
142
|
'platform-function-execution-log': platform_function_execution_log_1.default,
|
|
109
143
|
'platform-function-invocation': platform_function_invocation_1.default,
|
|
144
|
+
'platform-infra-commit': platform_infra_commit_1.default,
|
|
145
|
+
'platform-infra-get-all-tree-nodes-record': platform_infra_get_all_tree_nodes_record_1.default,
|
|
146
|
+
'platform-infra-object': platform_infra_object_1.default,
|
|
147
|
+
'platform-infra-ref': platform_infra_ref_1.default,
|
|
148
|
+
'platform-infra-store': platform_infra_store_1.default,
|
|
110
149
|
'platform-namespace': platform_namespace_1.default,
|
|
111
150
|
'platform-namespace-event': platform_namespace_event_1.default,
|
|
112
151
|
'platform-resource': platform_resource_1.default,
|
|
113
152
|
'platform-resource-definition': platform_resource_definition_1.default,
|
|
114
153
|
'platform-resource-event': platform_resource_event_1.default,
|
|
154
|
+
'platform-resource-installation': platform_resource_installation_1.default,
|
|
115
155
|
'platform-resource-status-check': platform_resource_status_check_1.default,
|
|
156
|
+
'platform-resource-usage-log': platform_resource_usage_log_1.default,
|
|
157
|
+
'platform-resource-usage-summary': platform_resource_usage_summary_1.default,
|
|
158
|
+
'platform-resource-utilization-daily': platform_resource_utilization_daily_1.default,
|
|
159
|
+
'platform-resources-health': platform_resources_health_1.default,
|
|
116
160
|
'platform-resources-requirements-state': platform_resources_requirements_state_1.default,
|
|
117
161
|
'platform-resources-resolved-requirement': platform_resources_resolved_requirement_1.default,
|
|
162
|
+
'platform-webhook-endpoint': platform_webhook_endpoint_1.default,
|
|
163
|
+
'platform-webhook-event': platform_webhook_event_1.default,
|
|
118
164
|
resource: resource_1.default,
|
|
119
165
|
'resource-definition': resource_definition_1.default,
|
|
120
166
|
'resource-event': resource_event_1.default,
|
|
167
|
+
'resource-installation': resource_installation_1.default,
|
|
121
168
|
'resource-status-check': resource_status_check_1.default,
|
|
169
|
+
'resource-usage-log': resource_usage_log_1.default,
|
|
170
|
+
'resource-usage-summary': resource_usage_summary_1.default,
|
|
171
|
+
'resource-utilization-daily': resource_utilization_daily_1.default,
|
|
172
|
+
'resources-health': resources_health_1.default,
|
|
122
173
|
'resources-requirements-state': resources_requirements_state_1.default,
|
|
123
174
|
'resources-resolved-requirement': resources_resolved_requirement_1.default,
|
|
175
|
+
'webhook-endpoint': webhook_endpoint_1.default,
|
|
176
|
+
'webhook-event': webhook_event_1.default,
|
|
124
177
|
'read-function-graph': read_function_graph_1.default,
|
|
125
178
|
'add-edge': add_edge_1.default,
|
|
126
179
|
'add-edge-and-save': add_edge_and_save_1.default,
|
|
@@ -134,13 +187,24 @@ const createCommandMap = () => ({
|
|
|
134
187
|
'infra-set-data-at-path': infra_set_data_at_path_1.default,
|
|
135
188
|
'init-empty-repo': init_empty_repo_1.default,
|
|
136
189
|
'insert-node-at-path': insert_node_at_path_1.default,
|
|
190
|
+
'platform-infra-init-empty-repo': platform_infra_init_empty_repo_1.default,
|
|
191
|
+
'platform-infra-insert-node-at-path': platform_infra_insert_node_at_path_1.default,
|
|
192
|
+
'platform-infra-set-data-at-path': platform_infra_set_data_at_path_1.default,
|
|
193
|
+
'platform-resource-installations-install': platform_resource_installations_install_1.default,
|
|
194
|
+
'platform-resource-installations-rollback': platform_resource_installations_rollback_1.default,
|
|
195
|
+
'platform-resource-installations-uninstall': platform_resource_installations_uninstall_1.default,
|
|
196
|
+
'platform-resource-installations-upgrade': platform_resource_installations_upgrade_1.default,
|
|
137
197
|
'provision-bucket': provision_bucket_1.default,
|
|
198
|
+
'resource-installations-install': resource_installations_install_1.default,
|
|
199
|
+
'resource-installations-rollback': resource_installations_rollback_1.default,
|
|
200
|
+
'resource-installations-uninstall': resource_installations_uninstall_1.default,
|
|
201
|
+
'resource-installations-upgrade': resource_installations_upgrade_1.default,
|
|
138
202
|
'save-graph': save_graph_1.default,
|
|
139
203
|
'set-data-at-path': set_data_at_path_1.default,
|
|
140
204
|
'start-execution': start_execution_1.default,
|
|
141
205
|
'validate-function-graph': validate_function_graph_1.default,
|
|
142
206
|
});
|
|
143
|
-
const usage = '\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n db-preset dbPreset CRUD operations\n function-api-binding functionApiBinding CRUD operations\n function-definition functionDefinition CRUD operations\n function-deployment functionDeployment CRUD operations\n function-deployment-event functionDeploymentEvent CRUD operations\n function-execution-log functionExecutionLog CRUD operations\n function-graph-commit functionGraphCommit CRUD operations\n function-graph functionGraph CRUD operations\n function-graph-execution functionGraphExecution CRUD operations\n function-graph-execution-node-state functionGraphExecutionNodeState CRUD operations\n function-graph-execution-output functionGraphExecutionOutput CRUD operations\n function-graph-object functionGraphObject CRUD operations\n function-graph-ref functionGraphRef CRUD operations\n function-graph-store functionGraphStore CRUD operations\n function-invocation functionInvocation CRUD operations\n get-all-record
|
|
207
|
+
const usage = '\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n db-preset dbPreset CRUD operations\n declared-capacity declaredCapacity CRUD operations\n function-api-binding functionApiBinding CRUD operations\n function-definition functionDefinition CRUD operations\n function-deployment functionDeployment CRUD operations\n function-deployment-event functionDeploymentEvent CRUD operations\n function-execution-log functionExecutionLog CRUD operations\n function-graph-commit functionGraphCommit CRUD operations\n function-graph functionGraph CRUD operations\n function-graph-execution functionGraphExecution CRUD operations\n function-graph-execution-node-state functionGraphExecutionNodeState CRUD operations\n function-graph-execution-output functionGraphExecutionOutput CRUD operations\n function-graph-object functionGraphObject CRUD operations\n function-graph-ref functionGraphRef CRUD operations\n function-graph-store functionGraphStore CRUD operations\n function-invocation functionInvocation CRUD operations\n get-all-tree-nodes-record getAllTreeNodesRecord CRUD operations\n infra-commit infraCommit CRUD operations\n infra-get-all-tree-nodes-record infraGetAllTreeNodesRecord CRUD operations\n infra-object infraObject CRUD operations\n infra-ref infraRef CRUD operations\n infra-store infraStore CRUD operations\n integration-provider integrationProvider CRUD operations\n namespace namespace CRUD operations\n namespace-event namespaceEvent CRUD operations\n platform-declared-capacity platformDeclaredCapacity CRUD operations\n platform-function-api-binding platformFunctionApiBinding CRUD operations\n platform-function-definition platformFunctionDefinition CRUD operations\n platform-function-deployment platformFunctionDeployment CRUD operations\n platform-function-deployment-event platformFunctionDeploymentEvent CRUD operations\n platform-function-execution-log platformFunctionExecutionLog CRUD operations\n platform-function-invocation platformFunctionInvocation CRUD operations\n platform-infra-commit platformInfraCommit CRUD operations\n platform-infra-get-all-tree-nodes-record platformInfraGetAllTreeNodesRecord CRUD operations\n platform-infra-object platformInfraObject CRUD operations\n platform-infra-ref platformInfraRef CRUD operations\n platform-infra-store platformInfraStore CRUD operations\n platform-namespace platformNamespace CRUD operations\n platform-namespace-event platformNamespaceEvent CRUD operations\n platform-resource platformResource CRUD operations\n platform-resource-definition platformResourceDefinition CRUD operations\n platform-resource-event platformResourceEvent CRUD operations\n platform-resource-installation platformResourceInstallation CRUD operations\n platform-resource-status-check platformResourceStatusCheck CRUD operations\n platform-resource-usage-log platformResourceUsageLog CRUD operations\n platform-resource-usage-summary platformResourceUsageSummary CRUD operations\n platform-resource-utilization-daily platformResourceUtilizationDaily CRUD operations\n platform-resources-health platformResourcesHealth CRUD operations\n platform-resources-requirements-state platformResourcesRequirementsState CRUD operations\n platform-resources-resolved-requirement platformResourcesResolvedRequirement CRUD operations\n platform-webhook-endpoint platformWebhookEndpoint CRUD operations\n platform-webhook-event platformWebhookEvent CRUD operations\n resource resource CRUD operations\n resource-definition resourceDefinition CRUD operations\n resource-event resourceEvent CRUD operations\n resource-installation resourceInstallation CRUD operations\n resource-status-check resourceStatusCheck CRUD operations\n resource-usage-log resourceUsageLog CRUD operations\n resource-usage-summary resourceUsageSummary CRUD operations\n resource-utilization-daily resourceUtilizationDaily CRUD operations\n resources-health resourcesHealth CRUD operations\n resources-requirements-state resourcesRequirementsState CRUD operations\n resources-resolved-requirement resourcesResolvedRequirement CRUD operations\n webhook-endpoint webhookEndpoint CRUD operations\n webhook-event webhookEvent CRUD operations\n read-function-graph readFunctionGraph\n add-edge addEdge\n add-edge-and-save addEdgeAndSave\n add-node addNode\n add-node-and-save addNodeAndSave\n copy-graph copyGraph\n import-definitions importDefinitions\n import-graph-json importGraphJson\n infra-init-empty-repo infraInitEmptyRepo\n infra-insert-node-at-path infraInsertNodeAtPath\n infra-set-data-at-path infraSetDataAtPath\n init-empty-repo initEmptyRepo\n insert-node-at-path insertNodeAtPath\n platform-infra-init-empty-repo platformInfraInitEmptyRepo\n platform-infra-insert-node-at-path platformInfraInsertNodeAtPath\n platform-infra-set-data-at-path platformInfraSetDataAtPath\n platform-resource-installations-install platformResourceInstallationsInstall\n platform-resource-installations-rollback platformResourceInstallationsRollback\n platform-resource-installations-uninstall platformResourceInstallationsUninstall\n platform-resource-installations-upgrade platformResourceInstallationsUpgrade\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 resource-installations-install resourceInstallationsInstall\n resource-installations-rollback resourceInstallationsRollback\n resource-installations-uninstall resourceInstallationsUninstall\n resource-installations-upgrade resourceInstallationsUpgrade\n save-graph saveGraph\n set-data-at-path setDataAtPath\n start-execution startExecution\n validate-function-graph validateFunctionGraph\n\n --help, -h Show this help message\n --version, -v Show version\n';
|
|
144
208
|
const commands = async (argv, prompter, options) => {
|
|
145
209
|
if (argv.help || argv.h) {
|
|
146
210
|
console.log(usage);
|