@constructive-sdk/cli 0.23.3 → 0.24.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/admin/cli/commands/app-limit-event.js +248 -2
- package/admin/cli/commands/app-limit.js +44 -0
- package/admin/cli/commands/org-limit-aggregate.js +44 -0
- package/admin/cli/commands/org-limit-event.js +248 -2
- package/admin/cli/commands/org-limit.js +44 -0
- package/admin/cli/commands.js +31 -33
- package/admin/cli/executor.d.ts +15 -16
- package/admin/orm/index.d.ts +31 -33
- package/admin/orm/index.js +32 -33
- package/admin/orm/input-types.d.ts +2090 -2039
- package/admin/orm/input-types.js +4 -4
- package/admin/orm/models/appLimitEvent.d.ts +26 -2
- package/admin/orm/models/appLimitEvent.js +45 -0
- package/admin/orm/models/index.d.ts +15 -16
- package/admin/orm/models/index.js +31 -33
- package/admin/orm/models/orgLimitEvent.d.ts +26 -2
- package/admin/orm/models/orgLimitEvent.js +45 -0
- package/{esm/public/cli/commands/agent-message.d.ts → auth/cli/commands/audit-log-auth.d.ts} +1 -1
- package/auth/cli/commands/{audit-log.js → audit-log-auth.js} +14 -14
- package/auth/cli/commands.js +5 -5
- package/auth/cli/executor.d.ts +6 -6
- package/auth/orm/index.d.ts +8 -8
- package/auth/orm/index.js +4 -3
- package/auth/orm/input-types.d.ts +94 -94
- package/auth/orm/input-types.js +1 -1
- package/auth/orm/models/auditLogAuth.d.ts +54 -0
- package/{public/orm/models/agentMessage.js → auth/orm/models/auditLogAuth.js} +27 -27
- package/auth/orm/models/index.d.ts +1 -1
- package/auth/orm/models/index.js +3 -3
- package/auth/orm/mutation/index.d.ts +9 -9
- package/auth/orm/mutation/index.js +12 -12
- package/esm/admin/cli/commands/app-limit-event.js +248 -2
- package/esm/admin/cli/commands/app-limit.js +44 -0
- package/esm/admin/cli/commands/org-limit-aggregate.js +44 -0
- package/esm/admin/cli/commands/org-limit-event.js +248 -2
- package/esm/admin/cli/commands/org-limit.js +44 -0
- package/esm/admin/cli/commands.js +31 -33
- package/esm/admin/cli/executor.d.ts +15 -16
- package/esm/admin/orm/index.d.ts +31 -33
- package/esm/admin/orm/index.js +31 -33
- package/esm/admin/orm/input-types.d.ts +2090 -2039
- package/esm/admin/orm/input-types.js +4 -4
- package/esm/admin/orm/models/appLimitEvent.d.ts +26 -2
- package/esm/admin/orm/models/appLimitEvent.js +46 -1
- package/esm/admin/orm/models/index.d.ts +15 -16
- package/esm/admin/orm/models/index.js +15 -16
- package/esm/admin/orm/models/orgLimitEvent.d.ts +26 -2
- package/esm/admin/orm/models/orgLimitEvent.js +46 -1
- package/esm/auth/cli/commands/audit-log-auth.d.ts +8 -0
- package/esm/{public/cli/commands/audit-log.js → auth/cli/commands/audit-log-auth.js} +14 -14
- package/esm/auth/cli/commands.js +5 -5
- package/esm/auth/cli/executor.d.ts +6 -6
- package/esm/auth/orm/index.d.ts +8 -8
- package/esm/auth/orm/index.js +3 -3
- package/esm/auth/orm/input-types.d.ts +94 -94
- package/esm/auth/orm/input-types.js +1 -1
- package/esm/auth/orm/models/auditLogAuth.d.ts +54 -0
- package/esm/{public/orm/models/auditLog.js → auth/orm/models/auditLogAuth.js} +25 -25
- package/esm/auth/orm/models/index.d.ts +1 -1
- package/esm/auth/orm/models/index.js +1 -1
- package/esm/auth/orm/mutation/index.d.ts +9 -9
- package/esm/auth/orm/mutation/index.js +12 -12
- package/esm/objects/orm/index.d.ts +1 -1
- package/esm/objects/orm/index.js +1 -1
- package/esm/public/cli/commands/{agent-thread.d.ts → agent-module.d.ts} +1 -1
- package/esm/public/cli/commands/agent-module.js +690 -0
- package/esm/public/cli/commands/app-limit-event.js +248 -2
- package/esm/public/cli/commands/app-limit.js +44 -0
- package/esm/public/cli/commands/apply-registry-defaults.d.ts +8 -0
- package/esm/public/cli/commands/{rev-parse.js → apply-registry-defaults.js} +9 -12
- package/esm/public/cli/commands/audit-log-auth.d.ts +8 -0
- package/esm/{auth/cli/commands/audit-log.js → public/cli/commands/audit-log-auth.js} +14 -14
- package/esm/public/cli/commands/billing-module.js +88 -0
- package/esm/public/cli/commands/compute-log-module.d.ts +8 -0
- package/esm/public/cli/commands/compute-log-module.js +514 -0
- package/esm/public/cli/commands/config-secrets-org-module.d.ts +8 -0
- package/esm/public/cli/commands/{encrypted-secrets-module.js → config-secrets-org-module.js} +8 -8
- package/esm/public/cli/commands/config-secrets-user-module.d.ts +8 -0
- package/esm/public/cli/commands/{object.js → config-secrets-user-module.js} +60 -67
- package/esm/public/cli/commands/construct-blueprint.js +1 -1
- package/{admin/cli/commands/usage-snapshot.d.ts → esm/public/cli/commands/db-usage-module.d.ts} +1 -1
- package/esm/public/cli/commands/db-usage-module.js +558 -0
- package/esm/public/cli/commands/entity-type-provision.js +386 -34
- package/esm/public/cli/commands/field.js +4 -26
- package/esm/public/cli/commands/function-module.d.ts +8 -0
- package/esm/public/cli/commands/function-module.js +778 -0
- package/{auth/cli/commands/audit-log.d.ts → esm/public/cli/commands/graph-module.d.ts} +1 -1
- package/esm/public/cli/commands/graph-module.js +584 -0
- package/esm/public/cli/commands/inference-log-module.d.ts +8 -0
- package/esm/public/cli/commands/inference-log-module.js +514 -0
- package/esm/public/cli/commands/memberships-module.js +22 -0
- package/esm/public/cli/commands/merkle-store-module.d.ts +8 -0
- package/esm/public/cli/commands/merkle-store-module.js +498 -0
- package/esm/public/cli/commands/namespace-module.d.ts +8 -0
- package/esm/public/cli/commands/namespace-module.js +558 -0
- package/esm/public/cli/commands/org-limit-aggregate.js +44 -0
- package/esm/public/cli/commands/org-limit-event.js +248 -2
- package/esm/public/cli/commands/org-limit.js +44 -0
- package/esm/public/cli/commands/partition.js +44 -0
- package/esm/public/cli/commands/storage-log-module.d.ts +8 -0
- package/esm/public/cli/commands/storage-log-module.js +514 -0
- package/esm/public/cli/commands/storage-module.js +36 -14
- package/esm/public/cli/commands/transfer-log-module.d.ts +8 -0
- package/esm/public/cli/commands/transfer-log-module.js +514 -0
- package/esm/public/cli/commands.js +83 -101
- package/esm/public/cli/executor.d.ts +72 -125
- package/esm/public/orm/index.d.ts +102 -153
- package/esm/public/orm/index.js +59 -55
- package/esm/public/orm/input-types.d.ts +6255 -3877
- package/esm/public/orm/input-types.js +24 -15
- package/esm/public/orm/models/agentModule.d.ts +54 -0
- package/esm/public/orm/models/{agentThread.js → agentModule.js} +25 -25
- package/esm/public/orm/models/appLimitEvent.d.ts +26 -2
- package/esm/public/orm/models/appLimitEvent.js +46 -1
- package/esm/public/orm/models/auditLogAuth.d.ts +54 -0
- package/esm/{auth/orm/models/auditLog.js → public/orm/models/auditLogAuth.js} +25 -25
- package/esm/public/orm/models/computeLogModule.d.ts +54 -0
- package/esm/public/orm/models/{commit.js → computeLogModule.js} +25 -25
- package/esm/public/orm/models/configSecretsOrgModule.d.ts +54 -0
- package/esm/public/orm/models/{encryptedSecretsModule.js → configSecretsOrgModule.js} +25 -25
- package/esm/public/orm/models/configSecretsUserModule.d.ts +54 -0
- package/esm/public/orm/models/configSecretsUserModule.js +100 -0
- package/esm/public/orm/models/dbUsageModule.d.ts +54 -0
- package/esm/{admin/orm/models/usageSnapshot.js → public/orm/models/dbUsageModule.js} +25 -25
- package/esm/public/orm/models/functionModule.d.ts +54 -0
- package/esm/public/orm/models/{agentMessage.js → functionModule.js} +25 -25
- package/esm/public/orm/models/graphModule.d.ts +54 -0
- package/esm/public/orm/models/{agentTask.js → graphModule.js} +25 -25
- package/esm/public/orm/models/index.d.ts +29 -27
- package/esm/public/orm/models/index.js +29 -27
- package/esm/public/orm/models/inferenceLogModule.d.ts +54 -0
- package/esm/public/orm/models/inferenceLogModule.js +100 -0
- package/esm/public/orm/models/merkleStoreModule.d.ts +54 -0
- package/esm/public/orm/models/merkleStoreModule.js +100 -0
- package/esm/public/orm/models/namespaceModule.d.ts +54 -0
- package/esm/public/orm/models/namespaceModule.js +100 -0
- package/esm/public/orm/models/orgLimitEvent.d.ts +26 -2
- package/esm/public/orm/models/orgLimitEvent.js +46 -1
- package/esm/public/orm/models/storageLogModule.d.ts +54 -0
- package/esm/public/orm/models/{store.js → storageLogModule.js} +25 -25
- package/esm/public/orm/models/transferLogModule.d.ts +54 -0
- package/esm/public/orm/models/transferLogModule.js +100 -0
- package/esm/public/orm/mutation/index.d.ts +69 -133
- package/esm/public/orm/mutation/index.js +78 -174
- package/esm/public/orm/query/index.d.ts +22 -71
- package/esm/public/orm/query/index.js +36 -124
- package/objects/orm/index.d.ts +1 -1
- package/objects/orm/index.js +2 -1
- package/package.json +6 -6
- package/{esm/public/cli/commands/agent-task.d.ts → public/cli/commands/agent-module.d.ts} +1 -1
- package/public/cli/commands/agent-module.js +692 -0
- package/public/cli/commands/app-limit-event.js +248 -2
- package/public/cli/commands/app-limit.js +44 -0
- package/public/cli/commands/apply-registry-defaults.d.ts +8 -0
- package/public/cli/commands/{rev-parse.js → apply-registry-defaults.js} +9 -12
- package/public/cli/commands/audit-log-auth.d.ts +8 -0
- package/public/cli/commands/{audit-log.js → audit-log-auth.js} +14 -14
- package/public/cli/commands/billing-module.js +88 -0
- package/public/cli/commands/compute-log-module.d.ts +8 -0
- package/public/cli/commands/compute-log-module.js +516 -0
- package/public/cli/commands/config-secrets-org-module.d.ts +8 -0
- package/public/cli/commands/{encrypted-secrets-module.js → config-secrets-org-module.js} +8 -8
- package/public/cli/commands/config-secrets-user-module.d.ts +8 -0
- package/public/cli/commands/{object.js → config-secrets-user-module.js} +60 -67
- package/public/cli/commands/construct-blueprint.js +1 -1
- package/{esm/admin/cli/commands/usage-snapshot.d.ts → public/cli/commands/db-usage-module.d.ts} +1 -1
- package/public/cli/commands/db-usage-module.js +560 -0
- package/public/cli/commands/entity-type-provision.js +386 -34
- package/public/cli/commands/field.js +4 -26
- package/public/cli/commands/function-module.d.ts +8 -0
- package/public/cli/commands/function-module.js +780 -0
- package/{esm/auth/cli/commands/audit-log.d.ts → public/cli/commands/graph-module.d.ts} +1 -1
- package/public/cli/commands/graph-module.js +586 -0
- package/public/cli/commands/inference-log-module.d.ts +8 -0
- package/public/cli/commands/inference-log-module.js +516 -0
- package/public/cli/commands/memberships-module.js +22 -0
- package/public/cli/commands/merkle-store-module.d.ts +8 -0
- package/public/cli/commands/merkle-store-module.js +500 -0
- package/public/cli/commands/namespace-module.d.ts +8 -0
- package/public/cli/commands/namespace-module.js +560 -0
- package/public/cli/commands/org-limit-aggregate.js +44 -0
- package/public/cli/commands/org-limit-event.js +248 -2
- package/public/cli/commands/org-limit.js +44 -0
- package/public/cli/commands/partition.js +44 -0
- package/public/cli/commands/storage-log-module.d.ts +8 -0
- package/public/cli/commands/storage-log-module.js +516 -0
- package/public/cli/commands/storage-module.js +36 -14
- package/public/cli/commands/transfer-log-module.d.ts +8 -0
- package/public/cli/commands/transfer-log-module.js +516 -0
- package/public/cli/commands.js +83 -101
- package/public/cli/executor.d.ts +72 -125
- package/public/orm/index.d.ts +102 -153
- package/public/orm/index.js +60 -55
- package/public/orm/input-types.d.ts +6255 -3877
- package/public/orm/input-types.js +24 -15
- package/public/orm/models/agentModule.d.ts +54 -0
- package/public/orm/models/{agentThread.js → agentModule.js} +27 -27
- package/public/orm/models/appLimitEvent.d.ts +26 -2
- package/public/orm/models/appLimitEvent.js +45 -0
- package/public/orm/models/auditLogAuth.d.ts +54 -0
- package/{admin/orm/models/usageSnapshot.js → public/orm/models/auditLogAuth.js} +27 -27
- package/public/orm/models/computeLogModule.d.ts +54 -0
- package/{auth/orm/models/auditLog.js → public/orm/models/computeLogModule.js} +27 -27
- package/public/orm/models/configSecretsOrgModule.d.ts +54 -0
- package/public/orm/models/{encryptedSecretsModule.js → configSecretsOrgModule.js} +27 -27
- package/public/orm/models/configSecretsUserModule.d.ts +54 -0
- package/public/orm/models/{ref.js → configSecretsUserModule.js} +27 -27
- package/public/orm/models/dbUsageModule.d.ts +54 -0
- package/public/orm/models/{usageSnapshot.js → dbUsageModule.js} +27 -27
- package/public/orm/models/functionModule.d.ts +54 -0
- package/public/orm/models/functionModule.js +104 -0
- package/public/orm/models/graphModule.d.ts +54 -0
- package/public/orm/models/{agentTask.js → graphModule.js} +27 -27
- package/public/orm/models/index.d.ts +29 -27
- package/public/orm/models/index.js +61 -57
- package/public/orm/models/inferenceLogModule.d.ts +54 -0
- package/public/orm/models/inferenceLogModule.js +104 -0
- package/public/orm/models/merkleStoreModule.d.ts +54 -0
- package/public/orm/models/merkleStoreModule.js +104 -0
- package/public/orm/models/namespaceModule.d.ts +54 -0
- package/public/orm/models/namespaceModule.js +104 -0
- package/public/orm/models/orgLimitEvent.d.ts +26 -2
- package/public/orm/models/orgLimitEvent.js +45 -0
- package/public/orm/models/storageLogModule.d.ts +54 -0
- package/public/orm/models/storageLogModule.js +104 -0
- package/public/orm/models/transferLogModule.d.ts +54 -0
- package/public/orm/models/transferLogModule.js +104 -0
- package/public/orm/mutation/index.d.ts +69 -133
- package/public/orm/mutation/index.js +78 -174
- package/public/orm/query/index.d.ts +22 -71
- package/public/orm/query/index.js +36 -124
- package/admin/cli/commands/usage-snapshot.js +0 -316
- package/admin/orm/models/usageSnapshot.d.ts +0 -54
- package/auth/orm/models/auditLog.d.ts +0 -54
- package/esm/admin/cli/commands/usage-snapshot.js +0 -314
- package/esm/admin/orm/models/usageSnapshot.d.ts +0 -54
- package/esm/auth/orm/models/auditLog.d.ts +0 -54
- package/esm/public/cli/commands/agent-message.js +0 -324
- package/esm/public/cli/commands/agent-task.js +0 -368
- package/esm/public/cli/commands/agent-thread.js +0 -372
- package/esm/public/cli/commands/audit-log.d.ts +0 -8
- package/esm/public/cli/commands/commit.d.ts +0 -8
- package/esm/public/cli/commands/commit.js +0 -380
- package/esm/public/cli/commands/encrypted-secrets-module.d.ts +0 -8
- package/esm/public/cli/commands/freeze-objects.d.ts +0 -8
- package/esm/public/cli/commands/freeze-objects.js +0 -34
- package/esm/public/cli/commands/get-all-objects-from-root.d.ts +0 -8
- package/esm/public/cli/commands/get-all-objects-from-root.js +0 -52
- package/esm/public/cli/commands/get-all-record.d.ts +0 -8
- package/esm/public/cli/commands/get-all-record.js +0 -124
- package/esm/public/cli/commands/get-object-at-path.d.ts +0 -8
- package/esm/public/cli/commands/get-object-at-path.js +0 -47
- package/esm/public/cli/commands/get-path-objects-from-root.d.ts +0 -8
- package/esm/public/cli/commands/get-path-objects-from-root.js +0 -57
- package/esm/public/cli/commands/init-empty-repo.d.ts +0 -8
- package/esm/public/cli/commands/init-empty-repo.js +0 -34
- package/esm/public/cli/commands/insert-node-at-path.d.ts +0 -8
- package/esm/public/cli/commands/insert-node-at-path.js +0 -34
- package/esm/public/cli/commands/object.d.ts +0 -8
- package/esm/public/cli/commands/ref.d.ts +0 -8
- package/esm/public/cli/commands/ref.js +0 -290
- package/esm/public/cli/commands/remove-node-at-path.d.ts +0 -8
- package/esm/public/cli/commands/remove-node-at-path.js +0 -34
- package/esm/public/cli/commands/rev-parse.d.ts +0 -8
- package/esm/public/cli/commands/set-and-commit.d.ts +0 -8
- package/esm/public/cli/commands/set-and-commit.js +0 -34
- package/esm/public/cli/commands/set-data-at-path.d.ts +0 -8
- package/esm/public/cli/commands/set-data-at-path.js +0 -34
- package/esm/public/cli/commands/set-props-and-commit.d.ts +0 -8
- package/esm/public/cli/commands/set-props-and-commit.js +0 -34
- package/esm/public/cli/commands/store.d.ts +0 -8
- package/esm/public/cli/commands/store.js +0 -276
- package/esm/public/cli/commands/update-node-at-path.d.ts +0 -8
- package/esm/public/cli/commands/update-node-at-path.js +0 -34
- package/esm/public/cli/commands/usage-snapshot.d.ts +0 -8
- package/esm/public/cli/commands/usage-snapshot.js +0 -314
- package/esm/public/orm/models/agentMessage.d.ts +0 -54
- package/esm/public/orm/models/agentTask.d.ts +0 -54
- package/esm/public/orm/models/agentThread.d.ts +0 -54
- package/esm/public/orm/models/auditLog.d.ts +0 -54
- package/esm/public/orm/models/commit.d.ts +0 -54
- package/esm/public/orm/models/encryptedSecretsModule.d.ts +0 -54
- package/esm/public/orm/models/getAllRecord.d.ts +0 -30
- package/esm/public/orm/models/getAllRecord.js +0 -55
- package/esm/public/orm/models/object.d.ts +0 -54
- package/esm/public/orm/models/object.js +0 -90
- package/esm/public/orm/models/ref.d.ts +0 -54
- package/esm/public/orm/models/ref.js +0 -100
- package/esm/public/orm/models/store.d.ts +0 -54
- package/esm/public/orm/models/usageSnapshot.d.ts +0 -54
- package/esm/public/orm/models/usageSnapshot.js +0 -100
- package/public/cli/commands/agent-message.d.ts +0 -8
- package/public/cli/commands/agent-message.js +0 -326
- package/public/cli/commands/agent-task.d.ts +0 -8
- package/public/cli/commands/agent-task.js +0 -370
- package/public/cli/commands/agent-thread.d.ts +0 -8
- package/public/cli/commands/agent-thread.js +0 -374
- package/public/cli/commands/audit-log.d.ts +0 -8
- package/public/cli/commands/commit.d.ts +0 -8
- package/public/cli/commands/commit.js +0 -382
- package/public/cli/commands/encrypted-secrets-module.d.ts +0 -8
- package/public/cli/commands/freeze-objects.d.ts +0 -8
- package/public/cli/commands/freeze-objects.js +0 -36
- package/public/cli/commands/get-all-objects-from-root.d.ts +0 -8
- package/public/cli/commands/get-all-objects-from-root.js +0 -54
- package/public/cli/commands/get-all-record.d.ts +0 -8
- package/public/cli/commands/get-all-record.js +0 -126
- package/public/cli/commands/get-object-at-path.d.ts +0 -8
- package/public/cli/commands/get-object-at-path.js +0 -49
- package/public/cli/commands/get-path-objects-from-root.d.ts +0 -8
- package/public/cli/commands/get-path-objects-from-root.js +0 -59
- package/public/cli/commands/init-empty-repo.d.ts +0 -8
- package/public/cli/commands/init-empty-repo.js +0 -36
- package/public/cli/commands/insert-node-at-path.d.ts +0 -8
- package/public/cli/commands/insert-node-at-path.js +0 -36
- package/public/cli/commands/object.d.ts +0 -8
- package/public/cli/commands/ref.d.ts +0 -8
- package/public/cli/commands/ref.js +0 -292
- package/public/cli/commands/remove-node-at-path.d.ts +0 -8
- package/public/cli/commands/remove-node-at-path.js +0 -36
- package/public/cli/commands/rev-parse.d.ts +0 -8
- package/public/cli/commands/set-and-commit.d.ts +0 -8
- package/public/cli/commands/set-and-commit.js +0 -36
- package/public/cli/commands/set-data-at-path.d.ts +0 -8
- package/public/cli/commands/set-data-at-path.js +0 -36
- package/public/cli/commands/set-props-and-commit.d.ts +0 -8
- package/public/cli/commands/set-props-and-commit.js +0 -36
- package/public/cli/commands/store.d.ts +0 -8
- package/public/cli/commands/store.js +0 -278
- package/public/cli/commands/update-node-at-path.d.ts +0 -8
- package/public/cli/commands/update-node-at-path.js +0 -36
- package/public/cli/commands/usage-snapshot.d.ts +0 -8
- package/public/cli/commands/usage-snapshot.js +0 -316
- package/public/orm/models/agentMessage.d.ts +0 -54
- package/public/orm/models/agentTask.d.ts +0 -54
- package/public/orm/models/agentThread.d.ts +0 -54
- package/public/orm/models/auditLog.d.ts +0 -54
- package/public/orm/models/auditLog.js +0 -104
- package/public/orm/models/commit.d.ts +0 -54
- package/public/orm/models/commit.js +0 -104
- package/public/orm/models/encryptedSecretsModule.d.ts +0 -54
- package/public/orm/models/getAllRecord.d.ts +0 -30
- package/public/orm/models/getAllRecord.js +0 -59
- package/public/orm/models/object.d.ts +0 -54
- package/public/orm/models/object.js +0 -94
- package/public/orm/models/ref.d.ts +0 -54
- package/public/orm/models/store.d.ts +0 -54
- package/public/orm/models/store.js +0 -104
- package/public/orm/models/usageSnapshot.d.ts +0 -54
|
@@ -7,9 +7,13 @@ import { extractFirst } from 'inquirerer';
|
|
|
7
7
|
import { getClient } from '../executor';
|
|
8
8
|
import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils';
|
|
9
9
|
const fieldSchema = {
|
|
10
|
+
createdAt: 'string',
|
|
11
|
+
id: 'uuid',
|
|
10
12
|
name: 'string',
|
|
11
13
|
actorId: 'uuid',
|
|
12
14
|
entityId: 'uuid',
|
|
15
|
+
organizationId: 'uuid',
|
|
16
|
+
entityType: 'string',
|
|
13
17
|
eventType: 'string',
|
|
14
18
|
delta: 'int',
|
|
15
19
|
numBefore: 'int',
|
|
@@ -17,7 +21,7 @@ const fieldSchema = {
|
|
|
17
21
|
maxAtEvent: 'int',
|
|
18
22
|
reason: 'string',
|
|
19
23
|
};
|
|
20
|
-
const usage = '\norg-limit-event <command>\n\nCommands:\n list List orgLimitEvent records\n find-first Find first matching orgLimitEvent record\n create Create a new orgLimitEvent\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';
|
|
24
|
+
const usage = '\norg-limit-event <command>\n\nCommands:\n list List orgLimitEvent records\n find-first Find first matching orgLimitEvent record\n get Get a orgLimitEvent by ID\n create Create a new orgLimitEvent\n update Update an existing orgLimitEvent\n delete Delete a orgLimitEvent\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';
|
|
21
25
|
export default async (argv, prompter, _options) => {
|
|
22
26
|
if (argv.help || argv.h) {
|
|
23
27
|
console.log(usage);
|
|
@@ -30,7 +34,7 @@ export default async (argv, prompter, _options) => {
|
|
|
30
34
|
type: 'autocomplete',
|
|
31
35
|
name: 'subcommand',
|
|
32
36
|
message: 'What do you want to do?',
|
|
33
|
-
options: ['list', 'find-first', 'create'],
|
|
37
|
+
options: ['list', 'find-first', 'get', 'create', 'update', 'delete'],
|
|
34
38
|
},
|
|
35
39
|
]);
|
|
36
40
|
return handleTableSubcommand(answer.subcommand, newArgv, prompter);
|
|
@@ -43,8 +47,14 @@ async function handleTableSubcommand(subcommand, argv, prompter) {
|
|
|
43
47
|
return handleList(argv, prompter);
|
|
44
48
|
case 'find-first':
|
|
45
49
|
return handleFindFirst(argv, prompter);
|
|
50
|
+
case 'get':
|
|
51
|
+
return handleGet(argv, prompter);
|
|
46
52
|
case 'create':
|
|
47
53
|
return handleCreate(argv, prompter);
|
|
54
|
+
case 'update':
|
|
55
|
+
return handleUpdate(argv, prompter);
|
|
56
|
+
case 'delete':
|
|
57
|
+
return handleDelete(argv, prompter);
|
|
48
58
|
default:
|
|
49
59
|
console.log(usage);
|
|
50
60
|
process.exit(1);
|
|
@@ -53,9 +63,13 @@ async function handleTableSubcommand(subcommand, argv, prompter) {
|
|
|
53
63
|
async function handleList(argv, _prompter) {
|
|
54
64
|
try {
|
|
55
65
|
const defaultSelect = {
|
|
66
|
+
createdAt: true,
|
|
67
|
+
id: true,
|
|
56
68
|
name: true,
|
|
57
69
|
actorId: true,
|
|
58
70
|
entityId: true,
|
|
71
|
+
organizationId: true,
|
|
72
|
+
entityType: true,
|
|
59
73
|
eventType: true,
|
|
60
74
|
delta: true,
|
|
61
75
|
numBefore: true,
|
|
@@ -79,9 +93,13 @@ async function handleList(argv, _prompter) {
|
|
|
79
93
|
async function handleFindFirst(argv, _prompter) {
|
|
80
94
|
try {
|
|
81
95
|
const defaultSelect = {
|
|
96
|
+
createdAt: true,
|
|
97
|
+
id: true,
|
|
82
98
|
name: true,
|
|
83
99
|
actorId: true,
|
|
84
100
|
entityId: true,
|
|
101
|
+
organizationId: true,
|
|
102
|
+
entityType: true,
|
|
85
103
|
eventType: true,
|
|
86
104
|
delta: true,
|
|
87
105
|
numBefore: true,
|
|
@@ -102,6 +120,47 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
102
120
|
process.exit(1);
|
|
103
121
|
}
|
|
104
122
|
}
|
|
123
|
+
async function handleGet(argv, prompter) {
|
|
124
|
+
try {
|
|
125
|
+
const answers = await prompter.prompt(argv, [
|
|
126
|
+
{
|
|
127
|
+
type: 'text',
|
|
128
|
+
name: 'id',
|
|
129
|
+
message: 'id',
|
|
130
|
+
required: true,
|
|
131
|
+
},
|
|
132
|
+
]);
|
|
133
|
+
const client = getClient();
|
|
134
|
+
const result = await client.orgLimitEvent
|
|
135
|
+
.findOne({
|
|
136
|
+
id: answers.id,
|
|
137
|
+
select: {
|
|
138
|
+
createdAt: true,
|
|
139
|
+
id: true,
|
|
140
|
+
name: true,
|
|
141
|
+
actorId: true,
|
|
142
|
+
entityId: true,
|
|
143
|
+
organizationId: true,
|
|
144
|
+
entityType: true,
|
|
145
|
+
eventType: true,
|
|
146
|
+
delta: true,
|
|
147
|
+
numBefore: true,
|
|
148
|
+
numAfter: true,
|
|
149
|
+
maxAtEvent: true,
|
|
150
|
+
reason: true,
|
|
151
|
+
},
|
|
152
|
+
})
|
|
153
|
+
.execute();
|
|
154
|
+
console.log(JSON.stringify(result, null, 2));
|
|
155
|
+
}
|
|
156
|
+
catch (error) {
|
|
157
|
+
console.error('Record not found.');
|
|
158
|
+
if (error instanceof Error) {
|
|
159
|
+
console.error(error.message);
|
|
160
|
+
}
|
|
161
|
+
process.exit(1);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
105
164
|
async function handleCreate(argv, prompter) {
|
|
106
165
|
try {
|
|
107
166
|
const rawAnswers = await prompter.prompt(argv, [
|
|
@@ -126,6 +185,20 @@ async function handleCreate(argv, prompter) {
|
|
|
126
185
|
required: false,
|
|
127
186
|
skipPrompt: true,
|
|
128
187
|
},
|
|
188
|
+
{
|
|
189
|
+
type: 'text',
|
|
190
|
+
name: 'organizationId',
|
|
191
|
+
message: 'organizationId',
|
|
192
|
+
required: false,
|
|
193
|
+
skipPrompt: true,
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
type: 'text',
|
|
197
|
+
name: 'entityType',
|
|
198
|
+
message: 'entityType',
|
|
199
|
+
required: false,
|
|
200
|
+
skipPrompt: true,
|
|
201
|
+
},
|
|
129
202
|
{
|
|
130
203
|
type: 'text',
|
|
131
204
|
name: 'eventType',
|
|
@@ -178,6 +251,8 @@ async function handleCreate(argv, prompter) {
|
|
|
178
251
|
name: cleanedData.name,
|
|
179
252
|
actorId: cleanedData.actorId,
|
|
180
253
|
entityId: cleanedData.entityId,
|
|
254
|
+
organizationId: cleanedData.organizationId,
|
|
255
|
+
entityType: cleanedData.entityType,
|
|
181
256
|
eventType: cleanedData.eventType,
|
|
182
257
|
delta: cleanedData.delta,
|
|
183
258
|
numBefore: cleanedData.numBefore,
|
|
@@ -186,9 +261,13 @@ async function handleCreate(argv, prompter) {
|
|
|
186
261
|
reason: cleanedData.reason,
|
|
187
262
|
},
|
|
188
263
|
select: {
|
|
264
|
+
createdAt: true,
|
|
265
|
+
id: true,
|
|
189
266
|
name: true,
|
|
190
267
|
actorId: true,
|
|
191
268
|
entityId: true,
|
|
269
|
+
organizationId: true,
|
|
270
|
+
entityType: true,
|
|
192
271
|
eventType: true,
|
|
193
272
|
delta: true,
|
|
194
273
|
numBefore: true,
|
|
@@ -208,3 +287,170 @@ async function handleCreate(argv, prompter) {
|
|
|
208
287
|
process.exit(1);
|
|
209
288
|
}
|
|
210
289
|
}
|
|
290
|
+
async function handleUpdate(argv, prompter) {
|
|
291
|
+
try {
|
|
292
|
+
const rawAnswers = await prompter.prompt(argv, [
|
|
293
|
+
{
|
|
294
|
+
type: 'text',
|
|
295
|
+
name: 'id',
|
|
296
|
+
message: 'id',
|
|
297
|
+
required: true,
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
type: 'text',
|
|
301
|
+
name: 'name',
|
|
302
|
+
message: 'name',
|
|
303
|
+
required: false,
|
|
304
|
+
skipPrompt: true,
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
type: 'text',
|
|
308
|
+
name: 'actorId',
|
|
309
|
+
message: 'actorId',
|
|
310
|
+
required: false,
|
|
311
|
+
skipPrompt: true,
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
type: 'text',
|
|
315
|
+
name: 'entityId',
|
|
316
|
+
message: 'entityId',
|
|
317
|
+
required: false,
|
|
318
|
+
skipPrompt: true,
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
type: 'text',
|
|
322
|
+
name: 'organizationId',
|
|
323
|
+
message: 'organizationId',
|
|
324
|
+
required: false,
|
|
325
|
+
skipPrompt: true,
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
type: 'text',
|
|
329
|
+
name: 'entityType',
|
|
330
|
+
message: 'entityType',
|
|
331
|
+
required: false,
|
|
332
|
+
skipPrompt: true,
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
type: 'text',
|
|
336
|
+
name: 'eventType',
|
|
337
|
+
message: 'eventType',
|
|
338
|
+
required: false,
|
|
339
|
+
skipPrompt: true,
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
type: 'text',
|
|
343
|
+
name: 'delta',
|
|
344
|
+
message: 'delta',
|
|
345
|
+
required: false,
|
|
346
|
+
skipPrompt: true,
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
type: 'text',
|
|
350
|
+
name: 'numBefore',
|
|
351
|
+
message: 'numBefore',
|
|
352
|
+
required: false,
|
|
353
|
+
skipPrompt: true,
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
type: 'text',
|
|
357
|
+
name: 'numAfter',
|
|
358
|
+
message: 'numAfter',
|
|
359
|
+
required: false,
|
|
360
|
+
skipPrompt: true,
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
type: 'text',
|
|
364
|
+
name: 'maxAtEvent',
|
|
365
|
+
message: 'maxAtEvent',
|
|
366
|
+
required: false,
|
|
367
|
+
skipPrompt: true,
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
type: 'text',
|
|
371
|
+
name: 'reason',
|
|
372
|
+
message: 'reason',
|
|
373
|
+
required: false,
|
|
374
|
+
skipPrompt: true,
|
|
375
|
+
},
|
|
376
|
+
]);
|
|
377
|
+
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
378
|
+
const cleanedData = stripUndefined(answers, fieldSchema);
|
|
379
|
+
const client = getClient();
|
|
380
|
+
const result = await client.orgLimitEvent
|
|
381
|
+
.update({
|
|
382
|
+
where: {
|
|
383
|
+
id: answers.id,
|
|
384
|
+
},
|
|
385
|
+
data: {
|
|
386
|
+
name: cleanedData.name,
|
|
387
|
+
actorId: cleanedData.actorId,
|
|
388
|
+
entityId: cleanedData.entityId,
|
|
389
|
+
organizationId: cleanedData.organizationId,
|
|
390
|
+
entityType: cleanedData.entityType,
|
|
391
|
+
eventType: cleanedData.eventType,
|
|
392
|
+
delta: cleanedData.delta,
|
|
393
|
+
numBefore: cleanedData.numBefore,
|
|
394
|
+
numAfter: cleanedData.numAfter,
|
|
395
|
+
maxAtEvent: cleanedData.maxAtEvent,
|
|
396
|
+
reason: cleanedData.reason,
|
|
397
|
+
},
|
|
398
|
+
select: {
|
|
399
|
+
createdAt: true,
|
|
400
|
+
id: true,
|
|
401
|
+
name: true,
|
|
402
|
+
actorId: true,
|
|
403
|
+
entityId: true,
|
|
404
|
+
organizationId: true,
|
|
405
|
+
entityType: true,
|
|
406
|
+
eventType: true,
|
|
407
|
+
delta: true,
|
|
408
|
+
numBefore: true,
|
|
409
|
+
numAfter: true,
|
|
410
|
+
maxAtEvent: true,
|
|
411
|
+
reason: true,
|
|
412
|
+
},
|
|
413
|
+
})
|
|
414
|
+
.execute();
|
|
415
|
+
console.log(JSON.stringify(result, null, 2));
|
|
416
|
+
}
|
|
417
|
+
catch (error) {
|
|
418
|
+
console.error('Failed to update record.');
|
|
419
|
+
if (error instanceof Error) {
|
|
420
|
+
console.error(error.message);
|
|
421
|
+
}
|
|
422
|
+
process.exit(1);
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
async function handleDelete(argv, prompter) {
|
|
426
|
+
try {
|
|
427
|
+
const rawAnswers = await prompter.prompt(argv, [
|
|
428
|
+
{
|
|
429
|
+
type: 'text',
|
|
430
|
+
name: 'id',
|
|
431
|
+
message: 'id',
|
|
432
|
+
required: true,
|
|
433
|
+
},
|
|
434
|
+
]);
|
|
435
|
+
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
436
|
+
const client = getClient();
|
|
437
|
+
const result = await client.orgLimitEvent
|
|
438
|
+
.delete({
|
|
439
|
+
where: {
|
|
440
|
+
id: answers.id,
|
|
441
|
+
},
|
|
442
|
+
select: {
|
|
443
|
+
id: true,
|
|
444
|
+
},
|
|
445
|
+
})
|
|
446
|
+
.execute();
|
|
447
|
+
console.log(JSON.stringify(result, null, 2));
|
|
448
|
+
}
|
|
449
|
+
catch (error) {
|
|
450
|
+
console.error('Failed to delete record.');
|
|
451
|
+
if (error instanceof Error) {
|
|
452
|
+
console.error(error.message);
|
|
453
|
+
}
|
|
454
|
+
process.exit(1);
|
|
455
|
+
}
|
|
456
|
+
}
|
|
@@ -19,6 +19,8 @@ const fieldSchema = {
|
|
|
19
19
|
purchasedCredits: 'int',
|
|
20
20
|
periodCredits: 'int',
|
|
21
21
|
entityId: 'uuid',
|
|
22
|
+
organizationId: 'uuid',
|
|
23
|
+
entityType: 'string',
|
|
22
24
|
};
|
|
23
25
|
const usage = '\norg-limit <command>\n\nCommands:\n list List orgLimit records\n find-first Find first matching orgLimit record\n get Get a orgLimit by ID\n create Create a new orgLimit\n update Update an existing orgLimit\n delete Delete a orgLimit\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';
|
|
24
26
|
export default async (argv, prompter, _options) => {
|
|
@@ -74,6 +76,8 @@ async function handleList(argv, _prompter) {
|
|
|
74
76
|
purchasedCredits: true,
|
|
75
77
|
periodCredits: true,
|
|
76
78
|
entityId: true,
|
|
79
|
+
organizationId: true,
|
|
80
|
+
entityType: true,
|
|
77
81
|
};
|
|
78
82
|
const findManyArgs = parseFindManyArgs(argv, defaultSelect);
|
|
79
83
|
const client = getClient();
|
|
@@ -103,6 +107,8 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
103
107
|
purchasedCredits: true,
|
|
104
108
|
periodCredits: true,
|
|
105
109
|
entityId: true,
|
|
110
|
+
organizationId: true,
|
|
111
|
+
entityType: true,
|
|
106
112
|
};
|
|
107
113
|
const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
|
|
108
114
|
const client = getClient();
|
|
@@ -144,6 +150,8 @@ async function handleGet(argv, prompter) {
|
|
|
144
150
|
purchasedCredits: true,
|
|
145
151
|
periodCredits: true,
|
|
146
152
|
entityId: true,
|
|
153
|
+
organizationId: true,
|
|
154
|
+
entityType: true,
|
|
147
155
|
},
|
|
148
156
|
})
|
|
149
157
|
.execute();
|
|
@@ -235,6 +243,20 @@ async function handleCreate(argv, prompter) {
|
|
|
235
243
|
message: 'entityId',
|
|
236
244
|
required: true,
|
|
237
245
|
},
|
|
246
|
+
{
|
|
247
|
+
type: 'text',
|
|
248
|
+
name: 'organizationId',
|
|
249
|
+
message: 'organizationId',
|
|
250
|
+
required: false,
|
|
251
|
+
skipPrompt: true,
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
type: 'text',
|
|
255
|
+
name: 'entityType',
|
|
256
|
+
message: 'entityType',
|
|
257
|
+
required: false,
|
|
258
|
+
skipPrompt: true,
|
|
259
|
+
},
|
|
238
260
|
]);
|
|
239
261
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
240
262
|
const cleanedData = stripUndefined(answers, fieldSchema);
|
|
@@ -253,6 +275,8 @@ async function handleCreate(argv, prompter) {
|
|
|
253
275
|
purchasedCredits: cleanedData.purchasedCredits,
|
|
254
276
|
periodCredits: cleanedData.periodCredits,
|
|
255
277
|
entityId: cleanedData.entityId,
|
|
278
|
+
organizationId: cleanedData.organizationId,
|
|
279
|
+
entityType: cleanedData.entityType,
|
|
256
280
|
},
|
|
257
281
|
select: {
|
|
258
282
|
id: true,
|
|
@@ -267,6 +291,8 @@ async function handleCreate(argv, prompter) {
|
|
|
267
291
|
purchasedCredits: true,
|
|
268
292
|
periodCredits: true,
|
|
269
293
|
entityId: true,
|
|
294
|
+
organizationId: true,
|
|
295
|
+
entityType: true,
|
|
270
296
|
},
|
|
271
297
|
})
|
|
272
298
|
.execute();
|
|
@@ -364,6 +390,20 @@ async function handleUpdate(argv, prompter) {
|
|
|
364
390
|
message: 'entityId',
|
|
365
391
|
required: false,
|
|
366
392
|
},
|
|
393
|
+
{
|
|
394
|
+
type: 'text',
|
|
395
|
+
name: 'organizationId',
|
|
396
|
+
message: 'organizationId',
|
|
397
|
+
required: false,
|
|
398
|
+
skipPrompt: true,
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
type: 'text',
|
|
402
|
+
name: 'entityType',
|
|
403
|
+
message: 'entityType',
|
|
404
|
+
required: false,
|
|
405
|
+
skipPrompt: true,
|
|
406
|
+
},
|
|
367
407
|
]);
|
|
368
408
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
369
409
|
const cleanedData = stripUndefined(answers, fieldSchema);
|
|
@@ -385,6 +425,8 @@ async function handleUpdate(argv, prompter) {
|
|
|
385
425
|
purchasedCredits: cleanedData.purchasedCredits,
|
|
386
426
|
periodCredits: cleanedData.periodCredits,
|
|
387
427
|
entityId: cleanedData.entityId,
|
|
428
|
+
organizationId: cleanedData.organizationId,
|
|
429
|
+
entityType: cleanedData.entityType,
|
|
388
430
|
},
|
|
389
431
|
select: {
|
|
390
432
|
id: true,
|
|
@@ -399,6 +441,8 @@ async function handleUpdate(argv, prompter) {
|
|
|
399
441
|
purchasedCredits: true,
|
|
400
442
|
periodCredits: true,
|
|
401
443
|
entityId: true,
|
|
444
|
+
organizationId: true,
|
|
445
|
+
entityType: true,
|
|
402
446
|
},
|
|
403
447
|
})
|
|
404
448
|
.execute();
|
|
@@ -14,8 +14,10 @@ const fieldSchema = {
|
|
|
14
14
|
partitionKeyId: 'uuid',
|
|
15
15
|
interval: 'string',
|
|
16
16
|
retention: 'string',
|
|
17
|
+
retentionKeepTable: 'boolean',
|
|
17
18
|
premake: 'int',
|
|
18
19
|
namingPattern: 'string',
|
|
20
|
+
isParented: 'boolean',
|
|
19
21
|
createdAt: 'string',
|
|
20
22
|
updatedAt: 'string',
|
|
21
23
|
};
|
|
@@ -68,8 +70,10 @@ async function handleList(argv, _prompter) {
|
|
|
68
70
|
partitionKeyId: true,
|
|
69
71
|
interval: true,
|
|
70
72
|
retention: true,
|
|
73
|
+
retentionKeepTable: true,
|
|
71
74
|
premake: true,
|
|
72
75
|
namingPattern: true,
|
|
76
|
+
isParented: true,
|
|
73
77
|
createdAt: true,
|
|
74
78
|
updatedAt: true,
|
|
75
79
|
};
|
|
@@ -96,8 +100,10 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
96
100
|
partitionKeyId: true,
|
|
97
101
|
interval: true,
|
|
98
102
|
retention: true,
|
|
103
|
+
retentionKeepTable: true,
|
|
99
104
|
premake: true,
|
|
100
105
|
namingPattern: true,
|
|
106
|
+
isParented: true,
|
|
101
107
|
createdAt: true,
|
|
102
108
|
updatedAt: true,
|
|
103
109
|
};
|
|
@@ -136,8 +142,10 @@ async function handleGet(argv, prompter) {
|
|
|
136
142
|
partitionKeyId: true,
|
|
137
143
|
interval: true,
|
|
138
144
|
retention: true,
|
|
145
|
+
retentionKeepTable: true,
|
|
139
146
|
premake: true,
|
|
140
147
|
namingPattern: true,
|
|
148
|
+
isParented: true,
|
|
141
149
|
createdAt: true,
|
|
142
150
|
updatedAt: true,
|
|
143
151
|
},
|
|
@@ -194,6 +202,13 @@ async function handleCreate(argv, prompter) {
|
|
|
194
202
|
required: false,
|
|
195
203
|
skipPrompt: true,
|
|
196
204
|
},
|
|
205
|
+
{
|
|
206
|
+
type: 'boolean',
|
|
207
|
+
name: 'retentionKeepTable',
|
|
208
|
+
message: 'retentionKeepTable',
|
|
209
|
+
required: false,
|
|
210
|
+
skipPrompt: true,
|
|
211
|
+
},
|
|
197
212
|
{
|
|
198
213
|
type: 'text',
|
|
199
214
|
name: 'premake',
|
|
@@ -208,6 +223,13 @@ async function handleCreate(argv, prompter) {
|
|
|
208
223
|
required: false,
|
|
209
224
|
skipPrompt: true,
|
|
210
225
|
},
|
|
226
|
+
{
|
|
227
|
+
type: 'boolean',
|
|
228
|
+
name: 'isParented',
|
|
229
|
+
message: 'isParented',
|
|
230
|
+
required: false,
|
|
231
|
+
skipPrompt: true,
|
|
232
|
+
},
|
|
211
233
|
]);
|
|
212
234
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
213
235
|
const cleanedData = stripUndefined(answers, fieldSchema);
|
|
@@ -221,8 +243,10 @@ async function handleCreate(argv, prompter) {
|
|
|
221
243
|
partitionKeyId: cleanedData.partitionKeyId,
|
|
222
244
|
interval: cleanedData.interval,
|
|
223
245
|
retention: cleanedData.retention,
|
|
246
|
+
retentionKeepTable: cleanedData.retentionKeepTable,
|
|
224
247
|
premake: cleanedData.premake,
|
|
225
248
|
namingPattern: cleanedData.namingPattern,
|
|
249
|
+
isParented: cleanedData.isParented,
|
|
226
250
|
},
|
|
227
251
|
select: {
|
|
228
252
|
id: true,
|
|
@@ -232,8 +256,10 @@ async function handleCreate(argv, prompter) {
|
|
|
232
256
|
partitionKeyId: true,
|
|
233
257
|
interval: true,
|
|
234
258
|
retention: true,
|
|
259
|
+
retentionKeepTable: true,
|
|
235
260
|
premake: true,
|
|
236
261
|
namingPattern: true,
|
|
262
|
+
isParented: true,
|
|
237
263
|
createdAt: true,
|
|
238
264
|
updatedAt: true,
|
|
239
265
|
},
|
|
@@ -296,6 +322,13 @@ async function handleUpdate(argv, prompter) {
|
|
|
296
322
|
required: false,
|
|
297
323
|
skipPrompt: true,
|
|
298
324
|
},
|
|
325
|
+
{
|
|
326
|
+
type: 'boolean',
|
|
327
|
+
name: 'retentionKeepTable',
|
|
328
|
+
message: 'retentionKeepTable',
|
|
329
|
+
required: false,
|
|
330
|
+
skipPrompt: true,
|
|
331
|
+
},
|
|
299
332
|
{
|
|
300
333
|
type: 'text',
|
|
301
334
|
name: 'premake',
|
|
@@ -310,6 +343,13 @@ async function handleUpdate(argv, prompter) {
|
|
|
310
343
|
required: false,
|
|
311
344
|
skipPrompt: true,
|
|
312
345
|
},
|
|
346
|
+
{
|
|
347
|
+
type: 'boolean',
|
|
348
|
+
name: 'isParented',
|
|
349
|
+
message: 'isParented',
|
|
350
|
+
required: false,
|
|
351
|
+
skipPrompt: true,
|
|
352
|
+
},
|
|
313
353
|
]);
|
|
314
354
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
315
355
|
const cleanedData = stripUndefined(answers, fieldSchema);
|
|
@@ -326,8 +366,10 @@ async function handleUpdate(argv, prompter) {
|
|
|
326
366
|
partitionKeyId: cleanedData.partitionKeyId,
|
|
327
367
|
interval: cleanedData.interval,
|
|
328
368
|
retention: cleanedData.retention,
|
|
369
|
+
retentionKeepTable: cleanedData.retentionKeepTable,
|
|
329
370
|
premake: cleanedData.premake,
|
|
330
371
|
namingPattern: cleanedData.namingPattern,
|
|
372
|
+
isParented: cleanedData.isParented,
|
|
331
373
|
},
|
|
332
374
|
select: {
|
|
333
375
|
id: true,
|
|
@@ -337,8 +379,10 @@ async function handleUpdate(argv, prompter) {
|
|
|
337
379
|
partitionKeyId: true,
|
|
338
380
|
interval: true,
|
|
339
381
|
retention: true,
|
|
382
|
+
retentionKeepTable: true,
|
|
340
383
|
premake: true,
|
|
341
384
|
namingPattern: true,
|
|
385
|
+
isParented: true,
|
|
342
386
|
createdAt: true,
|
|
343
387
|
updatedAt: true,
|
|
344
388
|
},
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI commands for StorageLogModule
|
|
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;
|