@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
|
@@ -0,0 +1,516 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/**
|
|
4
|
+
* CLI commands for InferenceLogModule
|
|
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
|
+
id: 'uuid',
|
|
13
|
+
databaseId: 'uuid',
|
|
14
|
+
schemaId: 'uuid',
|
|
15
|
+
privateSchemaId: 'uuid',
|
|
16
|
+
inferenceLogTableId: 'uuid',
|
|
17
|
+
inferenceLogTableName: 'string',
|
|
18
|
+
usageDailyTableId: 'uuid',
|
|
19
|
+
usageDailyTableName: 'string',
|
|
20
|
+
interval: 'string',
|
|
21
|
+
retention: 'string',
|
|
22
|
+
premake: 'int',
|
|
23
|
+
scope: 'string',
|
|
24
|
+
actorFkTableId: 'uuid',
|
|
25
|
+
entityFkTableId: 'uuid',
|
|
26
|
+
prefix: 'string',
|
|
27
|
+
};
|
|
28
|
+
const usage = '\ninference-log-module <command>\n\nCommands:\n list List inferenceLogModule records\n find-first Find first matching inferenceLogModule record\n get Get a inferenceLogModule by ID\n create Create a new inferenceLogModule\n update Update an existing inferenceLogModule\n delete Delete a inferenceLogModule\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';
|
|
29
|
+
exports.default = async (argv, prompter, _options) => {
|
|
30
|
+
if (argv.help || argv.h) {
|
|
31
|
+
console.log(usage);
|
|
32
|
+
process.exit(0);
|
|
33
|
+
}
|
|
34
|
+
const { first: subcommand, newArgv } = (0, inquirerer_1.extractFirst)(argv);
|
|
35
|
+
if (!subcommand) {
|
|
36
|
+
const answer = await prompter.prompt(argv, [
|
|
37
|
+
{
|
|
38
|
+
type: 'autocomplete',
|
|
39
|
+
name: 'subcommand',
|
|
40
|
+
message: 'What do you want to do?',
|
|
41
|
+
options: ['list', 'find-first', 'get', 'create', 'update', 'delete'],
|
|
42
|
+
},
|
|
43
|
+
]);
|
|
44
|
+
return handleTableSubcommand(answer.subcommand, newArgv, prompter);
|
|
45
|
+
}
|
|
46
|
+
return handleTableSubcommand(subcommand, newArgv, prompter);
|
|
47
|
+
};
|
|
48
|
+
async function handleTableSubcommand(subcommand, argv, prompter) {
|
|
49
|
+
switch (subcommand) {
|
|
50
|
+
case 'list':
|
|
51
|
+
return handleList(argv, prompter);
|
|
52
|
+
case 'find-first':
|
|
53
|
+
return handleFindFirst(argv, prompter);
|
|
54
|
+
case 'get':
|
|
55
|
+
return handleGet(argv, prompter);
|
|
56
|
+
case 'create':
|
|
57
|
+
return handleCreate(argv, prompter);
|
|
58
|
+
case 'update':
|
|
59
|
+
return handleUpdate(argv, prompter);
|
|
60
|
+
case 'delete':
|
|
61
|
+
return handleDelete(argv, prompter);
|
|
62
|
+
default:
|
|
63
|
+
console.log(usage);
|
|
64
|
+
process.exit(1);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
async function handleList(argv, _prompter) {
|
|
68
|
+
try {
|
|
69
|
+
const defaultSelect = {
|
|
70
|
+
id: true,
|
|
71
|
+
databaseId: true,
|
|
72
|
+
schemaId: true,
|
|
73
|
+
privateSchemaId: true,
|
|
74
|
+
inferenceLogTableId: true,
|
|
75
|
+
inferenceLogTableName: true,
|
|
76
|
+
usageDailyTableId: true,
|
|
77
|
+
usageDailyTableName: true,
|
|
78
|
+
interval: true,
|
|
79
|
+
retention: true,
|
|
80
|
+
premake: true,
|
|
81
|
+
scope: true,
|
|
82
|
+
actorFkTableId: true,
|
|
83
|
+
entityFkTableId: true,
|
|
84
|
+
prefix: true,
|
|
85
|
+
};
|
|
86
|
+
const findManyArgs = (0, utils_1.parseFindManyArgs)(argv, defaultSelect);
|
|
87
|
+
const client = (0, executor_1.getClient)();
|
|
88
|
+
const result = await client.inferenceLogModule.findMany(findManyArgs).execute();
|
|
89
|
+
console.log(JSON.stringify(result, null, 2));
|
|
90
|
+
}
|
|
91
|
+
catch (error) {
|
|
92
|
+
console.error('Failed to list records.');
|
|
93
|
+
if (error instanceof Error) {
|
|
94
|
+
console.error(error.message);
|
|
95
|
+
}
|
|
96
|
+
process.exit(1);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
async function handleFindFirst(argv, _prompter) {
|
|
100
|
+
try {
|
|
101
|
+
const defaultSelect = {
|
|
102
|
+
id: true,
|
|
103
|
+
databaseId: true,
|
|
104
|
+
schemaId: true,
|
|
105
|
+
privateSchemaId: true,
|
|
106
|
+
inferenceLogTableId: true,
|
|
107
|
+
inferenceLogTableName: true,
|
|
108
|
+
usageDailyTableId: true,
|
|
109
|
+
usageDailyTableName: true,
|
|
110
|
+
interval: true,
|
|
111
|
+
retention: true,
|
|
112
|
+
premake: true,
|
|
113
|
+
scope: true,
|
|
114
|
+
actorFkTableId: true,
|
|
115
|
+
entityFkTableId: true,
|
|
116
|
+
prefix: true,
|
|
117
|
+
};
|
|
118
|
+
const findFirstArgs = (0, utils_1.parseFindFirstArgs)(argv, defaultSelect);
|
|
119
|
+
const client = (0, executor_1.getClient)();
|
|
120
|
+
const result = await client.inferenceLogModule.findFirst(findFirstArgs).execute();
|
|
121
|
+
console.log(JSON.stringify(result, null, 2));
|
|
122
|
+
}
|
|
123
|
+
catch (error) {
|
|
124
|
+
console.error('Failed to find record.');
|
|
125
|
+
if (error instanceof Error) {
|
|
126
|
+
console.error(error.message);
|
|
127
|
+
}
|
|
128
|
+
process.exit(1);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
async function handleGet(argv, prompter) {
|
|
132
|
+
try {
|
|
133
|
+
const answers = await prompter.prompt(argv, [
|
|
134
|
+
{
|
|
135
|
+
type: 'text',
|
|
136
|
+
name: 'id',
|
|
137
|
+
message: 'id',
|
|
138
|
+
required: true,
|
|
139
|
+
},
|
|
140
|
+
]);
|
|
141
|
+
const client = (0, executor_1.getClient)();
|
|
142
|
+
const result = await client.inferenceLogModule
|
|
143
|
+
.findOne({
|
|
144
|
+
id: answers.id,
|
|
145
|
+
select: {
|
|
146
|
+
id: true,
|
|
147
|
+
databaseId: true,
|
|
148
|
+
schemaId: true,
|
|
149
|
+
privateSchemaId: true,
|
|
150
|
+
inferenceLogTableId: true,
|
|
151
|
+
inferenceLogTableName: true,
|
|
152
|
+
usageDailyTableId: true,
|
|
153
|
+
usageDailyTableName: true,
|
|
154
|
+
interval: true,
|
|
155
|
+
retention: true,
|
|
156
|
+
premake: true,
|
|
157
|
+
scope: true,
|
|
158
|
+
actorFkTableId: true,
|
|
159
|
+
entityFkTableId: true,
|
|
160
|
+
prefix: true,
|
|
161
|
+
},
|
|
162
|
+
})
|
|
163
|
+
.execute();
|
|
164
|
+
console.log(JSON.stringify(result, null, 2));
|
|
165
|
+
}
|
|
166
|
+
catch (error) {
|
|
167
|
+
console.error('Record not found.');
|
|
168
|
+
if (error instanceof Error) {
|
|
169
|
+
console.error(error.message);
|
|
170
|
+
}
|
|
171
|
+
process.exit(1);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
async function handleCreate(argv, prompter) {
|
|
175
|
+
try {
|
|
176
|
+
const rawAnswers = await prompter.prompt(argv, [
|
|
177
|
+
{
|
|
178
|
+
type: 'text',
|
|
179
|
+
name: 'databaseId',
|
|
180
|
+
message: 'databaseId',
|
|
181
|
+
required: true,
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
type: 'text',
|
|
185
|
+
name: 'schemaId',
|
|
186
|
+
message: 'schemaId',
|
|
187
|
+
required: false,
|
|
188
|
+
skipPrompt: true,
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
type: 'text',
|
|
192
|
+
name: 'privateSchemaId',
|
|
193
|
+
message: 'privateSchemaId',
|
|
194
|
+
required: false,
|
|
195
|
+
skipPrompt: true,
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
type: 'text',
|
|
199
|
+
name: 'inferenceLogTableId',
|
|
200
|
+
message: 'inferenceLogTableId',
|
|
201
|
+
required: false,
|
|
202
|
+
skipPrompt: true,
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
type: 'text',
|
|
206
|
+
name: 'inferenceLogTableName',
|
|
207
|
+
message: 'inferenceLogTableName',
|
|
208
|
+
required: false,
|
|
209
|
+
skipPrompt: true,
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
type: 'text',
|
|
213
|
+
name: 'usageDailyTableId',
|
|
214
|
+
message: 'usageDailyTableId',
|
|
215
|
+
required: false,
|
|
216
|
+
skipPrompt: true,
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
type: 'text',
|
|
220
|
+
name: 'usageDailyTableName',
|
|
221
|
+
message: 'usageDailyTableName',
|
|
222
|
+
required: false,
|
|
223
|
+
skipPrompt: true,
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
type: 'text',
|
|
227
|
+
name: 'interval',
|
|
228
|
+
message: 'interval',
|
|
229
|
+
required: false,
|
|
230
|
+
skipPrompt: true,
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
type: 'text',
|
|
234
|
+
name: 'retention',
|
|
235
|
+
message: 'retention',
|
|
236
|
+
required: false,
|
|
237
|
+
skipPrompt: true,
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
type: 'text',
|
|
241
|
+
name: 'premake',
|
|
242
|
+
message: 'premake',
|
|
243
|
+
required: false,
|
|
244
|
+
skipPrompt: true,
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
type: 'text',
|
|
248
|
+
name: 'scope',
|
|
249
|
+
message: 'scope',
|
|
250
|
+
required: false,
|
|
251
|
+
skipPrompt: true,
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
type: 'text',
|
|
255
|
+
name: 'actorFkTableId',
|
|
256
|
+
message: 'actorFkTableId',
|
|
257
|
+
required: false,
|
|
258
|
+
skipPrompt: true,
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
type: 'text',
|
|
262
|
+
name: 'entityFkTableId',
|
|
263
|
+
message: 'entityFkTableId',
|
|
264
|
+
required: false,
|
|
265
|
+
skipPrompt: true,
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
type: 'text',
|
|
269
|
+
name: 'prefix',
|
|
270
|
+
message: 'prefix',
|
|
271
|
+
required: false,
|
|
272
|
+
skipPrompt: true,
|
|
273
|
+
},
|
|
274
|
+
]);
|
|
275
|
+
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
276
|
+
const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
|
|
277
|
+
const client = (0, executor_1.getClient)();
|
|
278
|
+
const result = await client.inferenceLogModule
|
|
279
|
+
.create({
|
|
280
|
+
data: {
|
|
281
|
+
databaseId: cleanedData.databaseId,
|
|
282
|
+
schemaId: cleanedData.schemaId,
|
|
283
|
+
privateSchemaId: cleanedData.privateSchemaId,
|
|
284
|
+
inferenceLogTableId: cleanedData.inferenceLogTableId,
|
|
285
|
+
inferenceLogTableName: cleanedData.inferenceLogTableName,
|
|
286
|
+
usageDailyTableId: cleanedData.usageDailyTableId,
|
|
287
|
+
usageDailyTableName: cleanedData.usageDailyTableName,
|
|
288
|
+
interval: cleanedData.interval,
|
|
289
|
+
retention: cleanedData.retention,
|
|
290
|
+
premake: cleanedData.premake,
|
|
291
|
+
scope: cleanedData.scope,
|
|
292
|
+
actorFkTableId: cleanedData.actorFkTableId,
|
|
293
|
+
entityFkTableId: cleanedData.entityFkTableId,
|
|
294
|
+
prefix: cleanedData.prefix,
|
|
295
|
+
},
|
|
296
|
+
select: {
|
|
297
|
+
id: true,
|
|
298
|
+
databaseId: true,
|
|
299
|
+
schemaId: true,
|
|
300
|
+
privateSchemaId: true,
|
|
301
|
+
inferenceLogTableId: true,
|
|
302
|
+
inferenceLogTableName: true,
|
|
303
|
+
usageDailyTableId: true,
|
|
304
|
+
usageDailyTableName: true,
|
|
305
|
+
interval: true,
|
|
306
|
+
retention: true,
|
|
307
|
+
premake: true,
|
|
308
|
+
scope: true,
|
|
309
|
+
actorFkTableId: true,
|
|
310
|
+
entityFkTableId: true,
|
|
311
|
+
prefix: true,
|
|
312
|
+
},
|
|
313
|
+
})
|
|
314
|
+
.execute();
|
|
315
|
+
console.log(JSON.stringify(result, null, 2));
|
|
316
|
+
}
|
|
317
|
+
catch (error) {
|
|
318
|
+
console.error('Failed to create record.');
|
|
319
|
+
if (error instanceof Error) {
|
|
320
|
+
console.error(error.message);
|
|
321
|
+
}
|
|
322
|
+
process.exit(1);
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
async function handleUpdate(argv, prompter) {
|
|
326
|
+
try {
|
|
327
|
+
const rawAnswers = await prompter.prompt(argv, [
|
|
328
|
+
{
|
|
329
|
+
type: 'text',
|
|
330
|
+
name: 'id',
|
|
331
|
+
message: 'id',
|
|
332
|
+
required: true,
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
type: 'text',
|
|
336
|
+
name: 'databaseId',
|
|
337
|
+
message: 'databaseId',
|
|
338
|
+
required: false,
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
type: 'text',
|
|
342
|
+
name: 'schemaId',
|
|
343
|
+
message: 'schemaId',
|
|
344
|
+
required: false,
|
|
345
|
+
skipPrompt: true,
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
type: 'text',
|
|
349
|
+
name: 'privateSchemaId',
|
|
350
|
+
message: 'privateSchemaId',
|
|
351
|
+
required: false,
|
|
352
|
+
skipPrompt: true,
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
type: 'text',
|
|
356
|
+
name: 'inferenceLogTableId',
|
|
357
|
+
message: 'inferenceLogTableId',
|
|
358
|
+
required: false,
|
|
359
|
+
skipPrompt: true,
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
type: 'text',
|
|
363
|
+
name: 'inferenceLogTableName',
|
|
364
|
+
message: 'inferenceLogTableName',
|
|
365
|
+
required: false,
|
|
366
|
+
skipPrompt: true,
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
type: 'text',
|
|
370
|
+
name: 'usageDailyTableId',
|
|
371
|
+
message: 'usageDailyTableId',
|
|
372
|
+
required: false,
|
|
373
|
+
skipPrompt: true,
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
type: 'text',
|
|
377
|
+
name: 'usageDailyTableName',
|
|
378
|
+
message: 'usageDailyTableName',
|
|
379
|
+
required: false,
|
|
380
|
+
skipPrompt: true,
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
type: 'text',
|
|
384
|
+
name: 'interval',
|
|
385
|
+
message: 'interval',
|
|
386
|
+
required: false,
|
|
387
|
+
skipPrompt: true,
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
type: 'text',
|
|
391
|
+
name: 'retention',
|
|
392
|
+
message: 'retention',
|
|
393
|
+
required: false,
|
|
394
|
+
skipPrompt: true,
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
type: 'text',
|
|
398
|
+
name: 'premake',
|
|
399
|
+
message: 'premake',
|
|
400
|
+
required: false,
|
|
401
|
+
skipPrompt: true,
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
type: 'text',
|
|
405
|
+
name: 'scope',
|
|
406
|
+
message: 'scope',
|
|
407
|
+
required: false,
|
|
408
|
+
skipPrompt: true,
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
type: 'text',
|
|
412
|
+
name: 'actorFkTableId',
|
|
413
|
+
message: 'actorFkTableId',
|
|
414
|
+
required: false,
|
|
415
|
+
skipPrompt: true,
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
type: 'text',
|
|
419
|
+
name: 'entityFkTableId',
|
|
420
|
+
message: 'entityFkTableId',
|
|
421
|
+
required: false,
|
|
422
|
+
skipPrompt: true,
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
type: 'text',
|
|
426
|
+
name: 'prefix',
|
|
427
|
+
message: 'prefix',
|
|
428
|
+
required: false,
|
|
429
|
+
skipPrompt: true,
|
|
430
|
+
},
|
|
431
|
+
]);
|
|
432
|
+
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
433
|
+
const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
|
|
434
|
+
const client = (0, executor_1.getClient)();
|
|
435
|
+
const result = await client.inferenceLogModule
|
|
436
|
+
.update({
|
|
437
|
+
where: {
|
|
438
|
+
id: answers.id,
|
|
439
|
+
},
|
|
440
|
+
data: {
|
|
441
|
+
databaseId: cleanedData.databaseId,
|
|
442
|
+
schemaId: cleanedData.schemaId,
|
|
443
|
+
privateSchemaId: cleanedData.privateSchemaId,
|
|
444
|
+
inferenceLogTableId: cleanedData.inferenceLogTableId,
|
|
445
|
+
inferenceLogTableName: cleanedData.inferenceLogTableName,
|
|
446
|
+
usageDailyTableId: cleanedData.usageDailyTableId,
|
|
447
|
+
usageDailyTableName: cleanedData.usageDailyTableName,
|
|
448
|
+
interval: cleanedData.interval,
|
|
449
|
+
retention: cleanedData.retention,
|
|
450
|
+
premake: cleanedData.premake,
|
|
451
|
+
scope: cleanedData.scope,
|
|
452
|
+
actorFkTableId: cleanedData.actorFkTableId,
|
|
453
|
+
entityFkTableId: cleanedData.entityFkTableId,
|
|
454
|
+
prefix: cleanedData.prefix,
|
|
455
|
+
},
|
|
456
|
+
select: {
|
|
457
|
+
id: true,
|
|
458
|
+
databaseId: true,
|
|
459
|
+
schemaId: true,
|
|
460
|
+
privateSchemaId: true,
|
|
461
|
+
inferenceLogTableId: true,
|
|
462
|
+
inferenceLogTableName: true,
|
|
463
|
+
usageDailyTableId: true,
|
|
464
|
+
usageDailyTableName: true,
|
|
465
|
+
interval: true,
|
|
466
|
+
retention: true,
|
|
467
|
+
premake: true,
|
|
468
|
+
scope: true,
|
|
469
|
+
actorFkTableId: true,
|
|
470
|
+
entityFkTableId: true,
|
|
471
|
+
prefix: true,
|
|
472
|
+
},
|
|
473
|
+
})
|
|
474
|
+
.execute();
|
|
475
|
+
console.log(JSON.stringify(result, null, 2));
|
|
476
|
+
}
|
|
477
|
+
catch (error) {
|
|
478
|
+
console.error('Failed to update record.');
|
|
479
|
+
if (error instanceof Error) {
|
|
480
|
+
console.error(error.message);
|
|
481
|
+
}
|
|
482
|
+
process.exit(1);
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
async function handleDelete(argv, prompter) {
|
|
486
|
+
try {
|
|
487
|
+
const rawAnswers = await prompter.prompt(argv, [
|
|
488
|
+
{
|
|
489
|
+
type: 'text',
|
|
490
|
+
name: 'id',
|
|
491
|
+
message: 'id',
|
|
492
|
+
required: true,
|
|
493
|
+
},
|
|
494
|
+
]);
|
|
495
|
+
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
496
|
+
const client = (0, executor_1.getClient)();
|
|
497
|
+
const result = await client.inferenceLogModule
|
|
498
|
+
.delete({
|
|
499
|
+
where: {
|
|
500
|
+
id: answers.id,
|
|
501
|
+
},
|
|
502
|
+
select: {
|
|
503
|
+
id: true,
|
|
504
|
+
},
|
|
505
|
+
})
|
|
506
|
+
.execute();
|
|
507
|
+
console.log(JSON.stringify(result, null, 2));
|
|
508
|
+
}
|
|
509
|
+
catch (error) {
|
|
510
|
+
console.error('Failed to delete record.');
|
|
511
|
+
if (error instanceof Error) {
|
|
512
|
+
console.error(error.message);
|
|
513
|
+
}
|
|
514
|
+
process.exit(1);
|
|
515
|
+
}
|
|
516
|
+
}
|
|
@@ -37,6 +37,7 @@ const fieldSchema = {
|
|
|
37
37
|
entityTableId: 'uuid',
|
|
38
38
|
entityTableOwnerId: 'uuid',
|
|
39
39
|
prefix: 'string',
|
|
40
|
+
getOrgFn: 'string',
|
|
40
41
|
actorMaskCheck: 'string',
|
|
41
42
|
actorPermCheck: 'string',
|
|
42
43
|
entityIdsByMask: 'string',
|
|
@@ -114,6 +115,7 @@ async function handleList(argv, _prompter) {
|
|
|
114
115
|
entityTableId: true,
|
|
115
116
|
entityTableOwnerId: true,
|
|
116
117
|
prefix: true,
|
|
118
|
+
getOrgFn: true,
|
|
117
119
|
actorMaskCheck: true,
|
|
118
120
|
actorPermCheck: true,
|
|
119
121
|
entityIdsByMask: true,
|
|
@@ -165,6 +167,7 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
165
167
|
entityTableId: true,
|
|
166
168
|
entityTableOwnerId: true,
|
|
167
169
|
prefix: true,
|
|
170
|
+
getOrgFn: true,
|
|
168
171
|
actorMaskCheck: true,
|
|
169
172
|
actorPermCheck: true,
|
|
170
173
|
entityIdsByMask: true,
|
|
@@ -228,6 +231,7 @@ async function handleGet(argv, prompter) {
|
|
|
228
231
|
entityTableId: true,
|
|
229
232
|
entityTableOwnerId: true,
|
|
230
233
|
prefix: true,
|
|
234
|
+
getOrgFn: true,
|
|
231
235
|
actorMaskCheck: true,
|
|
232
236
|
actorPermCheck: true,
|
|
233
237
|
entityIdsByMask: true,
|
|
@@ -437,6 +441,13 @@ async function handleCreate(argv, prompter) {
|
|
|
437
441
|
required: false,
|
|
438
442
|
skipPrompt: true,
|
|
439
443
|
},
|
|
444
|
+
{
|
|
445
|
+
type: 'text',
|
|
446
|
+
name: 'getOrgFn',
|
|
447
|
+
message: 'getOrgFn',
|
|
448
|
+
required: false,
|
|
449
|
+
skipPrompt: true,
|
|
450
|
+
},
|
|
440
451
|
{
|
|
441
452
|
type: 'text',
|
|
442
453
|
name: 'actorMaskCheck',
|
|
@@ -513,6 +524,7 @@ async function handleCreate(argv, prompter) {
|
|
|
513
524
|
entityTableId: cleanedData.entityTableId,
|
|
514
525
|
entityTableOwnerId: cleanedData.entityTableOwnerId,
|
|
515
526
|
prefix: cleanedData.prefix,
|
|
527
|
+
getOrgFn: cleanedData.getOrgFn,
|
|
516
528
|
actorMaskCheck: cleanedData.actorMaskCheck,
|
|
517
529
|
actorPermCheck: cleanedData.actorPermCheck,
|
|
518
530
|
entityIdsByMask: cleanedData.entityIdsByMask,
|
|
@@ -549,6 +561,7 @@ async function handleCreate(argv, prompter) {
|
|
|
549
561
|
entityTableId: true,
|
|
550
562
|
entityTableOwnerId: true,
|
|
551
563
|
prefix: true,
|
|
564
|
+
getOrgFn: true,
|
|
552
565
|
actorMaskCheck: true,
|
|
553
566
|
actorPermCheck: true,
|
|
554
567
|
entityIdsByMask: true,
|
|
@@ -764,6 +777,13 @@ async function handleUpdate(argv, prompter) {
|
|
|
764
777
|
required: false,
|
|
765
778
|
skipPrompt: true,
|
|
766
779
|
},
|
|
780
|
+
{
|
|
781
|
+
type: 'text',
|
|
782
|
+
name: 'getOrgFn',
|
|
783
|
+
message: 'getOrgFn',
|
|
784
|
+
required: false,
|
|
785
|
+
skipPrompt: true,
|
|
786
|
+
},
|
|
767
787
|
{
|
|
768
788
|
type: 'text',
|
|
769
789
|
name: 'actorMaskCheck',
|
|
@@ -843,6 +863,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
843
863
|
entityTableId: cleanedData.entityTableId,
|
|
844
864
|
entityTableOwnerId: cleanedData.entityTableOwnerId,
|
|
845
865
|
prefix: cleanedData.prefix,
|
|
866
|
+
getOrgFn: cleanedData.getOrgFn,
|
|
846
867
|
actorMaskCheck: cleanedData.actorMaskCheck,
|
|
847
868
|
actorPermCheck: cleanedData.actorPermCheck,
|
|
848
869
|
entityIdsByMask: cleanedData.entityIdsByMask,
|
|
@@ -879,6 +900,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
879
900
|
entityTableId: true,
|
|
880
901
|
entityTableOwnerId: true,
|
|
881
902
|
prefix: true,
|
|
903
|
+
getOrgFn: true,
|
|
882
904
|
actorMaskCheck: true,
|
|
883
905
|
actorPermCheck: true,
|
|
884
906
|
entityIdsByMask: true,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI commands for MerkleStoreModule
|
|
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;
|