@constructive-sdk/cli 0.23.3 → 0.24.0
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/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
|
@@ -9,9 +9,13 @@ const inquirerer_1 = require("inquirerer");
|
|
|
9
9
|
const executor_1 = require("../executor");
|
|
10
10
|
const utils_1 = require("../utils");
|
|
11
11
|
const fieldSchema = {
|
|
12
|
+
createdAt: 'string',
|
|
13
|
+
id: 'uuid',
|
|
12
14
|
name: 'string',
|
|
13
15
|
actorId: 'uuid',
|
|
14
16
|
entityId: 'uuid',
|
|
17
|
+
organizationId: 'uuid',
|
|
18
|
+
entityType: 'string',
|
|
15
19
|
eventType: 'string',
|
|
16
20
|
delta: 'int',
|
|
17
21
|
numBefore: 'int',
|
|
@@ -19,7 +23,7 @@ const fieldSchema = {
|
|
|
19
23
|
maxAtEvent: 'int',
|
|
20
24
|
reason: 'string',
|
|
21
25
|
};
|
|
22
|
-
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';
|
|
26
|
+
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';
|
|
23
27
|
exports.default = async (argv, prompter, _options) => {
|
|
24
28
|
if (argv.help || argv.h) {
|
|
25
29
|
console.log(usage);
|
|
@@ -32,7 +36,7 @@ exports.default = async (argv, prompter, _options) => {
|
|
|
32
36
|
type: 'autocomplete',
|
|
33
37
|
name: 'subcommand',
|
|
34
38
|
message: 'What do you want to do?',
|
|
35
|
-
options: ['list', 'find-first', 'create'],
|
|
39
|
+
options: ['list', 'find-first', 'get', 'create', 'update', 'delete'],
|
|
36
40
|
},
|
|
37
41
|
]);
|
|
38
42
|
return handleTableSubcommand(answer.subcommand, newArgv, prompter);
|
|
@@ -45,8 +49,14 @@ async function handleTableSubcommand(subcommand, argv, prompter) {
|
|
|
45
49
|
return handleList(argv, prompter);
|
|
46
50
|
case 'find-first':
|
|
47
51
|
return handleFindFirst(argv, prompter);
|
|
52
|
+
case 'get':
|
|
53
|
+
return handleGet(argv, prompter);
|
|
48
54
|
case 'create':
|
|
49
55
|
return handleCreate(argv, prompter);
|
|
56
|
+
case 'update':
|
|
57
|
+
return handleUpdate(argv, prompter);
|
|
58
|
+
case 'delete':
|
|
59
|
+
return handleDelete(argv, prompter);
|
|
50
60
|
default:
|
|
51
61
|
console.log(usage);
|
|
52
62
|
process.exit(1);
|
|
@@ -55,9 +65,13 @@ async function handleTableSubcommand(subcommand, argv, prompter) {
|
|
|
55
65
|
async function handleList(argv, _prompter) {
|
|
56
66
|
try {
|
|
57
67
|
const defaultSelect = {
|
|
68
|
+
createdAt: true,
|
|
69
|
+
id: true,
|
|
58
70
|
name: true,
|
|
59
71
|
actorId: true,
|
|
60
72
|
entityId: true,
|
|
73
|
+
organizationId: true,
|
|
74
|
+
entityType: true,
|
|
61
75
|
eventType: true,
|
|
62
76
|
delta: true,
|
|
63
77
|
numBefore: true,
|
|
@@ -81,9 +95,13 @@ async function handleList(argv, _prompter) {
|
|
|
81
95
|
async function handleFindFirst(argv, _prompter) {
|
|
82
96
|
try {
|
|
83
97
|
const defaultSelect = {
|
|
98
|
+
createdAt: true,
|
|
99
|
+
id: true,
|
|
84
100
|
name: true,
|
|
85
101
|
actorId: true,
|
|
86
102
|
entityId: true,
|
|
103
|
+
organizationId: true,
|
|
104
|
+
entityType: true,
|
|
87
105
|
eventType: true,
|
|
88
106
|
delta: true,
|
|
89
107
|
numBefore: true,
|
|
@@ -104,6 +122,47 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
104
122
|
process.exit(1);
|
|
105
123
|
}
|
|
106
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.orgLimitEvent
|
|
137
|
+
.findOne({
|
|
138
|
+
id: answers.id,
|
|
139
|
+
select: {
|
|
140
|
+
createdAt: true,
|
|
141
|
+
id: true,
|
|
142
|
+
name: true,
|
|
143
|
+
actorId: true,
|
|
144
|
+
entityId: true,
|
|
145
|
+
organizationId: true,
|
|
146
|
+
entityType: true,
|
|
147
|
+
eventType: true,
|
|
148
|
+
delta: true,
|
|
149
|
+
numBefore: true,
|
|
150
|
+
numAfter: true,
|
|
151
|
+
maxAtEvent: true,
|
|
152
|
+
reason: 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
|
+
}
|
|
107
166
|
async function handleCreate(argv, prompter) {
|
|
108
167
|
try {
|
|
109
168
|
const rawAnswers = await prompter.prompt(argv, [
|
|
@@ -128,6 +187,20 @@ async function handleCreate(argv, prompter) {
|
|
|
128
187
|
required: false,
|
|
129
188
|
skipPrompt: true,
|
|
130
189
|
},
|
|
190
|
+
{
|
|
191
|
+
type: 'text',
|
|
192
|
+
name: 'organizationId',
|
|
193
|
+
message: 'organizationId',
|
|
194
|
+
required: false,
|
|
195
|
+
skipPrompt: true,
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
type: 'text',
|
|
199
|
+
name: 'entityType',
|
|
200
|
+
message: 'entityType',
|
|
201
|
+
required: false,
|
|
202
|
+
skipPrompt: true,
|
|
203
|
+
},
|
|
131
204
|
{
|
|
132
205
|
type: 'text',
|
|
133
206
|
name: 'eventType',
|
|
@@ -180,6 +253,8 @@ async function handleCreate(argv, prompter) {
|
|
|
180
253
|
name: cleanedData.name,
|
|
181
254
|
actorId: cleanedData.actorId,
|
|
182
255
|
entityId: cleanedData.entityId,
|
|
256
|
+
organizationId: cleanedData.organizationId,
|
|
257
|
+
entityType: cleanedData.entityType,
|
|
183
258
|
eventType: cleanedData.eventType,
|
|
184
259
|
delta: cleanedData.delta,
|
|
185
260
|
numBefore: cleanedData.numBefore,
|
|
@@ -188,9 +263,13 @@ async function handleCreate(argv, prompter) {
|
|
|
188
263
|
reason: cleanedData.reason,
|
|
189
264
|
},
|
|
190
265
|
select: {
|
|
266
|
+
createdAt: true,
|
|
267
|
+
id: true,
|
|
191
268
|
name: true,
|
|
192
269
|
actorId: true,
|
|
193
270
|
entityId: true,
|
|
271
|
+
organizationId: true,
|
|
272
|
+
entityType: true,
|
|
194
273
|
eventType: true,
|
|
195
274
|
delta: true,
|
|
196
275
|
numBefore: true,
|
|
@@ -210,3 +289,170 @@ async function handleCreate(argv, prompter) {
|
|
|
210
289
|
process.exit(1);
|
|
211
290
|
}
|
|
212
291
|
}
|
|
292
|
+
async function handleUpdate(argv, prompter) {
|
|
293
|
+
try {
|
|
294
|
+
const rawAnswers = await prompter.prompt(argv, [
|
|
295
|
+
{
|
|
296
|
+
type: 'text',
|
|
297
|
+
name: 'id',
|
|
298
|
+
message: 'id',
|
|
299
|
+
required: true,
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
type: 'text',
|
|
303
|
+
name: 'name',
|
|
304
|
+
message: 'name',
|
|
305
|
+
required: false,
|
|
306
|
+
skipPrompt: true,
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
type: 'text',
|
|
310
|
+
name: 'actorId',
|
|
311
|
+
message: 'actorId',
|
|
312
|
+
required: false,
|
|
313
|
+
skipPrompt: true,
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
type: 'text',
|
|
317
|
+
name: 'entityId',
|
|
318
|
+
message: 'entityId',
|
|
319
|
+
required: false,
|
|
320
|
+
skipPrompt: true,
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
type: 'text',
|
|
324
|
+
name: 'organizationId',
|
|
325
|
+
message: 'organizationId',
|
|
326
|
+
required: false,
|
|
327
|
+
skipPrompt: true,
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
type: 'text',
|
|
331
|
+
name: 'entityType',
|
|
332
|
+
message: 'entityType',
|
|
333
|
+
required: false,
|
|
334
|
+
skipPrompt: true,
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
type: 'text',
|
|
338
|
+
name: 'eventType',
|
|
339
|
+
message: 'eventType',
|
|
340
|
+
required: false,
|
|
341
|
+
skipPrompt: true,
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
type: 'text',
|
|
345
|
+
name: 'delta',
|
|
346
|
+
message: 'delta',
|
|
347
|
+
required: false,
|
|
348
|
+
skipPrompt: true,
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
type: 'text',
|
|
352
|
+
name: 'numBefore',
|
|
353
|
+
message: 'numBefore',
|
|
354
|
+
required: false,
|
|
355
|
+
skipPrompt: true,
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
type: 'text',
|
|
359
|
+
name: 'numAfter',
|
|
360
|
+
message: 'numAfter',
|
|
361
|
+
required: false,
|
|
362
|
+
skipPrompt: true,
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
type: 'text',
|
|
366
|
+
name: 'maxAtEvent',
|
|
367
|
+
message: 'maxAtEvent',
|
|
368
|
+
required: false,
|
|
369
|
+
skipPrompt: true,
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
type: 'text',
|
|
373
|
+
name: 'reason',
|
|
374
|
+
message: 'reason',
|
|
375
|
+
required: false,
|
|
376
|
+
skipPrompt: true,
|
|
377
|
+
},
|
|
378
|
+
]);
|
|
379
|
+
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
380
|
+
const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
|
|
381
|
+
const client = (0, executor_1.getClient)();
|
|
382
|
+
const result = await client.orgLimitEvent
|
|
383
|
+
.update({
|
|
384
|
+
where: {
|
|
385
|
+
id: answers.id,
|
|
386
|
+
},
|
|
387
|
+
data: {
|
|
388
|
+
name: cleanedData.name,
|
|
389
|
+
actorId: cleanedData.actorId,
|
|
390
|
+
entityId: cleanedData.entityId,
|
|
391
|
+
organizationId: cleanedData.organizationId,
|
|
392
|
+
entityType: cleanedData.entityType,
|
|
393
|
+
eventType: cleanedData.eventType,
|
|
394
|
+
delta: cleanedData.delta,
|
|
395
|
+
numBefore: cleanedData.numBefore,
|
|
396
|
+
numAfter: cleanedData.numAfter,
|
|
397
|
+
maxAtEvent: cleanedData.maxAtEvent,
|
|
398
|
+
reason: cleanedData.reason,
|
|
399
|
+
},
|
|
400
|
+
select: {
|
|
401
|
+
createdAt: true,
|
|
402
|
+
id: true,
|
|
403
|
+
name: true,
|
|
404
|
+
actorId: true,
|
|
405
|
+
entityId: true,
|
|
406
|
+
organizationId: true,
|
|
407
|
+
entityType: true,
|
|
408
|
+
eventType: true,
|
|
409
|
+
delta: true,
|
|
410
|
+
numBefore: true,
|
|
411
|
+
numAfter: true,
|
|
412
|
+
maxAtEvent: true,
|
|
413
|
+
reason: true,
|
|
414
|
+
},
|
|
415
|
+
})
|
|
416
|
+
.execute();
|
|
417
|
+
console.log(JSON.stringify(result, null, 2));
|
|
418
|
+
}
|
|
419
|
+
catch (error) {
|
|
420
|
+
console.error('Failed to update record.');
|
|
421
|
+
if (error instanceof Error) {
|
|
422
|
+
console.error(error.message);
|
|
423
|
+
}
|
|
424
|
+
process.exit(1);
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
async function handleDelete(argv, prompter) {
|
|
428
|
+
try {
|
|
429
|
+
const rawAnswers = await prompter.prompt(argv, [
|
|
430
|
+
{
|
|
431
|
+
type: 'text',
|
|
432
|
+
name: 'id',
|
|
433
|
+
message: 'id',
|
|
434
|
+
required: true,
|
|
435
|
+
},
|
|
436
|
+
]);
|
|
437
|
+
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
438
|
+
const client = (0, executor_1.getClient)();
|
|
439
|
+
const result = await client.orgLimitEvent
|
|
440
|
+
.delete({
|
|
441
|
+
where: {
|
|
442
|
+
id: answers.id,
|
|
443
|
+
},
|
|
444
|
+
select: {
|
|
445
|
+
id: true,
|
|
446
|
+
},
|
|
447
|
+
})
|
|
448
|
+
.execute();
|
|
449
|
+
console.log(JSON.stringify(result, null, 2));
|
|
450
|
+
}
|
|
451
|
+
catch (error) {
|
|
452
|
+
console.error('Failed to delete record.');
|
|
453
|
+
if (error instanceof Error) {
|
|
454
|
+
console.error(error.message);
|
|
455
|
+
}
|
|
456
|
+
process.exit(1);
|
|
457
|
+
}
|
|
458
|
+
}
|
|
@@ -21,6 +21,8 @@ const fieldSchema = {
|
|
|
21
21
|
purchasedCredits: 'int',
|
|
22
22
|
periodCredits: 'int',
|
|
23
23
|
entityId: 'uuid',
|
|
24
|
+
organizationId: 'uuid',
|
|
25
|
+
entityType: 'string',
|
|
24
26
|
};
|
|
25
27
|
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';
|
|
26
28
|
exports.default = async (argv, prompter, _options) => {
|
|
@@ -76,6 +78,8 @@ async function handleList(argv, _prompter) {
|
|
|
76
78
|
purchasedCredits: true,
|
|
77
79
|
periodCredits: true,
|
|
78
80
|
entityId: true,
|
|
81
|
+
organizationId: true,
|
|
82
|
+
entityType: true,
|
|
79
83
|
};
|
|
80
84
|
const findManyArgs = (0, utils_1.parseFindManyArgs)(argv, defaultSelect);
|
|
81
85
|
const client = (0, executor_1.getClient)();
|
|
@@ -105,6 +109,8 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
105
109
|
purchasedCredits: true,
|
|
106
110
|
periodCredits: true,
|
|
107
111
|
entityId: true,
|
|
112
|
+
organizationId: true,
|
|
113
|
+
entityType: true,
|
|
108
114
|
};
|
|
109
115
|
const findFirstArgs = (0, utils_1.parseFindFirstArgs)(argv, defaultSelect);
|
|
110
116
|
const client = (0, executor_1.getClient)();
|
|
@@ -146,6 +152,8 @@ async function handleGet(argv, prompter) {
|
|
|
146
152
|
purchasedCredits: true,
|
|
147
153
|
periodCredits: true,
|
|
148
154
|
entityId: true,
|
|
155
|
+
organizationId: true,
|
|
156
|
+
entityType: true,
|
|
149
157
|
},
|
|
150
158
|
})
|
|
151
159
|
.execute();
|
|
@@ -237,6 +245,20 @@ async function handleCreate(argv, prompter) {
|
|
|
237
245
|
message: 'entityId',
|
|
238
246
|
required: true,
|
|
239
247
|
},
|
|
248
|
+
{
|
|
249
|
+
type: 'text',
|
|
250
|
+
name: 'organizationId',
|
|
251
|
+
message: 'organizationId',
|
|
252
|
+
required: false,
|
|
253
|
+
skipPrompt: true,
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
type: 'text',
|
|
257
|
+
name: 'entityType',
|
|
258
|
+
message: 'entityType',
|
|
259
|
+
required: false,
|
|
260
|
+
skipPrompt: true,
|
|
261
|
+
},
|
|
240
262
|
]);
|
|
241
263
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
242
264
|
const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
|
|
@@ -255,6 +277,8 @@ async function handleCreate(argv, prompter) {
|
|
|
255
277
|
purchasedCredits: cleanedData.purchasedCredits,
|
|
256
278
|
periodCredits: cleanedData.periodCredits,
|
|
257
279
|
entityId: cleanedData.entityId,
|
|
280
|
+
organizationId: cleanedData.organizationId,
|
|
281
|
+
entityType: cleanedData.entityType,
|
|
258
282
|
},
|
|
259
283
|
select: {
|
|
260
284
|
id: true,
|
|
@@ -269,6 +293,8 @@ async function handleCreate(argv, prompter) {
|
|
|
269
293
|
purchasedCredits: true,
|
|
270
294
|
periodCredits: true,
|
|
271
295
|
entityId: true,
|
|
296
|
+
organizationId: true,
|
|
297
|
+
entityType: true,
|
|
272
298
|
},
|
|
273
299
|
})
|
|
274
300
|
.execute();
|
|
@@ -366,6 +392,20 @@ async function handleUpdate(argv, prompter) {
|
|
|
366
392
|
message: 'entityId',
|
|
367
393
|
required: false,
|
|
368
394
|
},
|
|
395
|
+
{
|
|
396
|
+
type: 'text',
|
|
397
|
+
name: 'organizationId',
|
|
398
|
+
message: 'organizationId',
|
|
399
|
+
required: false,
|
|
400
|
+
skipPrompt: true,
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
type: 'text',
|
|
404
|
+
name: 'entityType',
|
|
405
|
+
message: 'entityType',
|
|
406
|
+
required: false,
|
|
407
|
+
skipPrompt: true,
|
|
408
|
+
},
|
|
369
409
|
]);
|
|
370
410
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
371
411
|
const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
|
|
@@ -387,6 +427,8 @@ async function handleUpdate(argv, prompter) {
|
|
|
387
427
|
purchasedCredits: cleanedData.purchasedCredits,
|
|
388
428
|
periodCredits: cleanedData.periodCredits,
|
|
389
429
|
entityId: cleanedData.entityId,
|
|
430
|
+
organizationId: cleanedData.organizationId,
|
|
431
|
+
entityType: cleanedData.entityType,
|
|
390
432
|
},
|
|
391
433
|
select: {
|
|
392
434
|
id: true,
|
|
@@ -401,6 +443,8 @@ async function handleUpdate(argv, prompter) {
|
|
|
401
443
|
purchasedCredits: true,
|
|
402
444
|
periodCredits: true,
|
|
403
445
|
entityId: true,
|
|
446
|
+
organizationId: true,
|
|
447
|
+
entityType: true,
|
|
404
448
|
},
|
|
405
449
|
})
|
|
406
450
|
.execute();
|
package/admin/cli/commands.js
CHANGED
|
@@ -21,42 +21,41 @@ const app_limit_credit_code_item_1 = __importDefault(require("./commands/app-lim
|
|
|
21
21
|
const app_limit_credit_1 = __importDefault(require("./commands/app-limit-credit"));
|
|
22
22
|
const org_member_1 = __importDefault(require("./commands/org-member"));
|
|
23
23
|
const app_permission_default_1 = __importDefault(require("./commands/app-permission-default"));
|
|
24
|
-
const app_limit_credit_code_1 = __importDefault(require("./commands/app-limit-credit-code"));
|
|
25
|
-
const org_permission_default_1 = __importDefault(require("./commands/org-permission-default"));
|
|
26
24
|
const app_admin_grant_1 = __importDefault(require("./commands/app-admin-grant"));
|
|
27
25
|
const app_owner_grant_1 = __importDefault(require("./commands/app-owner-grant"));
|
|
26
|
+
const org_permission_default_1 = __importDefault(require("./commands/org-permission-default"));
|
|
27
|
+
const app_membership_default_1 = __importDefault(require("./commands/app-membership-default"));
|
|
28
|
+
const org_admin_grant_1 = __importDefault(require("./commands/org-admin-grant"));
|
|
29
|
+
const org_membership_default_1 = __importDefault(require("./commands/org-membership-default"));
|
|
30
|
+
const org_owner_grant_1 = __importDefault(require("./commands/org-owner-grant"));
|
|
28
31
|
const app_limit_caps_default_1 = __importDefault(require("./commands/app-limit-caps-default"));
|
|
29
32
|
const org_limit_caps_default_1 = __importDefault(require("./commands/org-limit-caps-default"));
|
|
30
33
|
const app_limit_cap_1 = __importDefault(require("./commands/app-limit-cap"));
|
|
31
34
|
const org_limit_cap_1 = __importDefault(require("./commands/org-limit-cap"));
|
|
32
|
-
const
|
|
33
|
-
const org_owner_grant_1 = __importDefault(require("./commands/org-owner-grant"));
|
|
34
|
-
const membership_type_1 = __importDefault(require("./commands/membership-type"));
|
|
35
|
+
const org_chart_edge_1 = __importDefault(require("./commands/org-chart-edge"));
|
|
35
36
|
const app_limit_default_1 = __importDefault(require("./commands/app-limit-default"));
|
|
36
37
|
const org_limit_default_1 = __importDefault(require("./commands/org-limit-default"));
|
|
37
38
|
const org_limit_credit_1 = __importDefault(require("./commands/org-limit-credit"));
|
|
39
|
+
const app_limit_credit_code_1 = __importDefault(require("./commands/app-limit-credit-code"));
|
|
38
40
|
const app_limit_warning_1 = __importDefault(require("./commands/app-limit-warning"));
|
|
39
|
-
const org_limit_warning_1 = __importDefault(require("./commands/org-limit-warning"));
|
|
40
41
|
const org_chart_edge_grant_1 = __importDefault(require("./commands/org-chart-edge-grant"));
|
|
41
42
|
const app_claimed_invite_1 = __importDefault(require("./commands/app-claimed-invite"));
|
|
43
|
+
const org_limit_warning_1 = __importDefault(require("./commands/org-limit-warning"));
|
|
44
|
+
const membership_type_1 = __importDefault(require("./commands/membership-type"));
|
|
42
45
|
const app_grant_1 = __importDefault(require("./commands/app-grant"));
|
|
43
|
-
const app_membership_default_1 = __importDefault(require("./commands/app-membership-default"));
|
|
44
|
-
const org_membership_default_1 = __importDefault(require("./commands/org-membership-default"));
|
|
45
46
|
const org_claimed_invite_1 = __importDefault(require("./commands/org-claimed-invite"));
|
|
47
|
+
const org_grant_1 = __importDefault(require("./commands/org-grant"));
|
|
48
|
+
const org_membership_setting_1 = __importDefault(require("./commands/org-membership-setting"));
|
|
46
49
|
const app_limit_event_1 = __importDefault(require("./commands/app-limit-event"));
|
|
47
50
|
const org_limit_event_1 = __importDefault(require("./commands/org-limit-event"));
|
|
48
|
-
const
|
|
49
|
-
const
|
|
50
|
-
const
|
|
51
|
-
const app_limit_1 = __importDefault(require("./commands/app-limit"));
|
|
51
|
+
const app_membership_1 = __importDefault(require("./commands/app-membership"));
|
|
52
|
+
const org_membership_1 = __importDefault(require("./commands/org-membership"));
|
|
53
|
+
const org_member_profile_1 = __importDefault(require("./commands/org-member-profile"));
|
|
52
54
|
const app_invite_1 = __importDefault(require("./commands/app-invite"));
|
|
53
|
-
const
|
|
55
|
+
const app_limit_1 = __importDefault(require("./commands/app-limit"));
|
|
54
56
|
const org_limit_aggregate_1 = __importDefault(require("./commands/org-limit-aggregate"));
|
|
55
57
|
const org_limit_1 = __importDefault(require("./commands/org-limit"));
|
|
56
|
-
const org_member_profile_1 = __importDefault(require("./commands/org-member-profile"));
|
|
57
|
-
const app_membership_1 = __importDefault(require("./commands/app-membership"));
|
|
58
58
|
const org_invite_1 = __importDefault(require("./commands/org-invite"));
|
|
59
|
-
const org_membership_1 = __importDefault(require("./commands/org-membership"));
|
|
60
59
|
const app_permissions_get_padded_mask_1 = __importDefault(require("./commands/app-permissions-get-padded-mask"));
|
|
61
60
|
const org_permissions_get_padded_mask_1 = __importDefault(require("./commands/org-permissions-get-padded-mask"));
|
|
62
61
|
const org_is_manager_of_1 = __importDefault(require("./commands/org-is-manager-of"));
|
|
@@ -81,42 +80,41 @@ const createCommandMap = () => ({
|
|
|
81
80
|
'app-limit-credit': app_limit_credit_1.default,
|
|
82
81
|
'org-member': org_member_1.default,
|
|
83
82
|
'app-permission-default': app_permission_default_1.default,
|
|
84
|
-
'app-limit-credit-code': app_limit_credit_code_1.default,
|
|
85
|
-
'org-permission-default': org_permission_default_1.default,
|
|
86
83
|
'app-admin-grant': app_admin_grant_1.default,
|
|
87
84
|
'app-owner-grant': app_owner_grant_1.default,
|
|
85
|
+
'org-permission-default': org_permission_default_1.default,
|
|
86
|
+
'app-membership-default': app_membership_default_1.default,
|
|
87
|
+
'org-admin-grant': org_admin_grant_1.default,
|
|
88
|
+
'org-membership-default': org_membership_default_1.default,
|
|
89
|
+
'org-owner-grant': org_owner_grant_1.default,
|
|
88
90
|
'app-limit-caps-default': app_limit_caps_default_1.default,
|
|
89
91
|
'org-limit-caps-default': org_limit_caps_default_1.default,
|
|
90
92
|
'app-limit-cap': app_limit_cap_1.default,
|
|
91
93
|
'org-limit-cap': org_limit_cap_1.default,
|
|
92
|
-
'org-
|
|
93
|
-
'org-owner-grant': org_owner_grant_1.default,
|
|
94
|
-
'membership-type': membership_type_1.default,
|
|
94
|
+
'org-chart-edge': org_chart_edge_1.default,
|
|
95
95
|
'app-limit-default': app_limit_default_1.default,
|
|
96
96
|
'org-limit-default': org_limit_default_1.default,
|
|
97
97
|
'org-limit-credit': org_limit_credit_1.default,
|
|
98
|
+
'app-limit-credit-code': app_limit_credit_code_1.default,
|
|
98
99
|
'app-limit-warning': app_limit_warning_1.default,
|
|
99
|
-
'org-limit-warning': org_limit_warning_1.default,
|
|
100
100
|
'org-chart-edge-grant': org_chart_edge_grant_1.default,
|
|
101
101
|
'app-claimed-invite': app_claimed_invite_1.default,
|
|
102
|
+
'org-limit-warning': org_limit_warning_1.default,
|
|
103
|
+
'membership-type': membership_type_1.default,
|
|
102
104
|
'app-grant': app_grant_1.default,
|
|
103
|
-
'app-membership-default': app_membership_default_1.default,
|
|
104
|
-
'org-membership-default': org_membership_default_1.default,
|
|
105
105
|
'org-claimed-invite': org_claimed_invite_1.default,
|
|
106
|
+
'org-grant': org_grant_1.default,
|
|
107
|
+
'org-membership-setting': org_membership_setting_1.default,
|
|
106
108
|
'app-limit-event': app_limit_event_1.default,
|
|
107
109
|
'org-limit-event': org_limit_event_1.default,
|
|
108
|
-
'
|
|
109
|
-
'org-
|
|
110
|
-
'
|
|
111
|
-
'app-limit': app_limit_1.default,
|
|
110
|
+
'app-membership': app_membership_1.default,
|
|
111
|
+
'org-membership': org_membership_1.default,
|
|
112
|
+
'org-member-profile': org_member_profile_1.default,
|
|
112
113
|
'app-invite': app_invite_1.default,
|
|
113
|
-
'
|
|
114
|
+
'app-limit': app_limit_1.default,
|
|
114
115
|
'org-limit-aggregate': org_limit_aggregate_1.default,
|
|
115
116
|
'org-limit': org_limit_1.default,
|
|
116
|
-
'org-member-profile': org_member_profile_1.default,
|
|
117
|
-
'app-membership': app_membership_1.default,
|
|
118
117
|
'org-invite': org_invite_1.default,
|
|
119
|
-
'org-membership': org_membership_1.default,
|
|
120
118
|
'app-permissions-get-padded-mask': app_permissions_get_padded_mask_1.default,
|
|
121
119
|
'org-permissions-get-padded-mask': org_permissions_get_padded_mask_1.default,
|
|
122
120
|
'org-is-manager-of': org_is_manager_of_1.default,
|
|
@@ -130,7 +128,7 @@ const createCommandMap = () => ({
|
|
|
130
128
|
'submit-org-invite-code': submit_org_invite_code_1.default,
|
|
131
129
|
'provision-bucket': provision_bucket_1.default,
|
|
132
130
|
});
|
|
133
|
-
const usage = '\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n org-get-managers-record orgGetManagersRecord CRUD operations\n org-get-subordinates-record orgGetSubordinatesRecord CRUD operations\n app-permission appPermission CRUD operations\n org-permission orgPermission CRUD operations\n app-limit-credit-redemption appLimitCreditRedemption CRUD operations\n app-limit-credit-code-item appLimitCreditCodeItem CRUD operations\n app-limit-credit appLimitCredit CRUD operations\n org-member orgMember CRUD operations\n app-permission-default appPermissionDefault CRUD operations\n app-
|
|
131
|
+
const usage = '\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n org-get-managers-record orgGetManagersRecord CRUD operations\n org-get-subordinates-record orgGetSubordinatesRecord CRUD operations\n app-permission appPermission CRUD operations\n org-permission orgPermission CRUD operations\n app-limit-credit-redemption appLimitCreditRedemption CRUD operations\n app-limit-credit-code-item appLimitCreditCodeItem CRUD operations\n app-limit-credit appLimitCredit CRUD operations\n org-member orgMember CRUD operations\n app-permission-default appPermissionDefault CRUD operations\n app-admin-grant appAdminGrant CRUD operations\n app-owner-grant appOwnerGrant CRUD operations\n org-permission-default orgPermissionDefault CRUD operations\n app-membership-default appMembershipDefault CRUD operations\n org-admin-grant orgAdminGrant CRUD operations\n org-membership-default orgMembershipDefault CRUD operations\n org-owner-grant orgOwnerGrant CRUD operations\n app-limit-caps-default appLimitCapsDefault CRUD operations\n org-limit-caps-default orgLimitCapsDefault CRUD operations\n app-limit-cap appLimitCap CRUD operations\n org-limit-cap orgLimitCap CRUD operations\n org-chart-edge orgChartEdge CRUD operations\n app-limit-default appLimitDefault CRUD operations\n org-limit-default orgLimitDefault CRUD operations\n org-limit-credit orgLimitCredit CRUD operations\n app-limit-credit-code appLimitCreditCode CRUD operations\n app-limit-warning appLimitWarning CRUD operations\n org-chart-edge-grant orgChartEdgeGrant CRUD operations\n app-claimed-invite appClaimedInvite CRUD operations\n org-limit-warning orgLimitWarning CRUD operations\n membership-type membershipType CRUD operations\n app-grant appGrant CRUD operations\n org-claimed-invite orgClaimedInvite CRUD operations\n org-grant orgGrant CRUD operations\n org-membership-setting orgMembershipSetting CRUD operations\n app-limit-event appLimitEvent CRUD operations\n org-limit-event orgLimitEvent CRUD operations\n app-membership appMembership CRUD operations\n org-membership orgMembership CRUD operations\n org-member-profile orgMemberProfile CRUD operations\n app-invite appInvite CRUD operations\n app-limit appLimit CRUD operations\n org-limit-aggregate orgLimitAggregate CRUD operations\n org-limit orgLimit CRUD operations\n org-invite orgInvite CRUD operations\n app-permissions-get-padded-mask appPermissionsGetPaddedMask\n org-permissions-get-padded-mask orgPermissionsGetPaddedMask\n org-is-manager-of orgIsManagerOf\n app-permissions-get-mask appPermissionsGetMask\n org-permissions-get-mask orgPermissionsGetMask\n app-permissions-get-mask-by-names appPermissionsGetMaskByNames\n org-permissions-get-mask-by-names orgPermissionsGetMaskByNames\n app-permissions-get-by-mask Reads and enables pagination through a set of `AppPermission`.\n org-permissions-get-by-mask Reads and enables pagination through a set of `OrgPermission`.\n submit-app-invite-code submitAppInviteCode\n submit-org-invite-code submitOrgInviteCode\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\n --help, -h Show this help message\n --version, -v Show version\n';
|
|
134
132
|
const commands = async (argv, prompter, options) => {
|
|
135
133
|
if (argv.help || argv.h) {
|
|
136
134
|
console.log(usage);
|
package/admin/cli/executor.d.ts
CHANGED
|
@@ -9,42 +9,41 @@ export declare function getClient(contextName?: string): {
|
|
|
9
9
|
appLimitCredit: import("../orm").AppLimitCreditModel;
|
|
10
10
|
orgMember: import("../orm").OrgMemberModel;
|
|
11
11
|
appPermissionDefault: import("../orm").AppPermissionDefaultModel;
|
|
12
|
-
appLimitCreditCode: import("../orm").AppLimitCreditCodeModel;
|
|
13
|
-
orgPermissionDefault: import("../orm").OrgPermissionDefaultModel;
|
|
14
12
|
appAdminGrant: import("../orm").AppAdminGrantModel;
|
|
15
13
|
appOwnerGrant: import("../orm").AppOwnerGrantModel;
|
|
14
|
+
orgPermissionDefault: import("../orm").OrgPermissionDefaultModel;
|
|
15
|
+
appMembershipDefault: import("../orm").AppMembershipDefaultModel;
|
|
16
|
+
orgAdminGrant: import("../orm").OrgAdminGrantModel;
|
|
17
|
+
orgMembershipDefault: import("../orm").OrgMembershipDefaultModel;
|
|
18
|
+
orgOwnerGrant: import("../orm").OrgOwnerGrantModel;
|
|
16
19
|
appLimitCapsDefault: import("../orm").AppLimitCapsDefaultModel;
|
|
17
20
|
orgLimitCapsDefault: import("../orm").OrgLimitCapsDefaultModel;
|
|
18
21
|
appLimitCap: import("../orm").AppLimitCapModel;
|
|
19
22
|
orgLimitCap: import("../orm").OrgLimitCapModel;
|
|
20
|
-
|
|
21
|
-
orgOwnerGrant: import("../orm").OrgOwnerGrantModel;
|
|
22
|
-
membershipType: import("../orm").MembershipTypeModel;
|
|
23
|
+
orgChartEdge: import("../orm").OrgChartEdgeModel;
|
|
23
24
|
appLimitDefault: import("../orm").AppLimitDefaultModel;
|
|
24
25
|
orgLimitDefault: import("../orm").OrgLimitDefaultModel;
|
|
25
26
|
orgLimitCredit: import("../orm").OrgLimitCreditModel;
|
|
27
|
+
appLimitCreditCode: import("../orm").AppLimitCreditCodeModel;
|
|
26
28
|
appLimitWarning: import("../orm").AppLimitWarningModel;
|
|
27
|
-
orgLimitWarning: import("../orm").OrgLimitWarningModel;
|
|
28
29
|
orgChartEdgeGrant: import("../orm").OrgChartEdgeGrantModel;
|
|
29
30
|
appClaimedInvite: import("../orm").AppClaimedInviteModel;
|
|
31
|
+
orgLimitWarning: import("../orm").OrgLimitWarningModel;
|
|
32
|
+
membershipType: import("../orm").MembershipTypeModel;
|
|
30
33
|
appGrant: import("../orm").AppGrantModel;
|
|
31
|
-
appMembershipDefault: import("../orm").AppMembershipDefaultModel;
|
|
32
|
-
orgMembershipDefault: import("../orm").OrgMembershipDefaultModel;
|
|
33
34
|
orgClaimedInvite: import("../orm").OrgClaimedInviteModel;
|
|
35
|
+
orgGrant: import("../orm").OrgGrantModel;
|
|
36
|
+
orgMembershipSetting: import("../orm").OrgMembershipSettingModel;
|
|
34
37
|
appLimitEvent: import("../orm").AppLimitEventModel;
|
|
35
38
|
orgLimitEvent: import("../orm").OrgLimitEventModel;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
appLimit: import("../orm").AppLimitModel;
|
|
39
|
+
appMembership: import("../orm").AppMembershipModel;
|
|
40
|
+
orgMembership: import("../orm").OrgMembershipModel;
|
|
41
|
+
orgMemberProfile: import("../orm").OrgMemberProfileModel;
|
|
40
42
|
appInvite: import("../orm").AppInviteModel;
|
|
41
|
-
|
|
43
|
+
appLimit: import("../orm").AppLimitModel;
|
|
42
44
|
orgLimitAggregate: import("../orm").OrgLimitAggregateModel;
|
|
43
45
|
orgLimit: import("../orm").OrgLimitModel;
|
|
44
|
-
orgMemberProfile: import("../orm").OrgMemberProfileModel;
|
|
45
|
-
appMembership: import("../orm").AppMembershipModel;
|
|
46
46
|
orgInvite: import("../orm").OrgInviteModel;
|
|
47
|
-
orgMembership: import("../orm").OrgMembershipModel;
|
|
48
47
|
query: {
|
|
49
48
|
appPermissionsGetPaddedMask: (args: import("../orm/query").AppPermissionsGetPaddedMaskVariables, options?: {
|
|
50
49
|
select?: Record<string, unknown>;
|