@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
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
// ============ Connection Fields Map ============
|
|
2
2
|
export const connectionFieldsMap = {
|
|
3
|
-
AppLimitCreditCode: {
|
|
4
|
-
appLimitCreditCodeItemsByCreditCodeId: 'AppLimitCreditCodeItem',
|
|
5
|
-
appLimitCreditRedemptionsByCreditCodeId: 'AppLimitCreditRedemption',
|
|
6
|
-
},
|
|
7
3
|
AppLimitDefault: {
|
|
8
4
|
appLimitCreditsByDefaultLimitId: 'AppLimitCredit',
|
|
9
5
|
appLimitCreditCodeItemsByDefaultLimitId: 'AppLimitCreditCodeItem',
|
|
@@ -11,4 +7,8 @@ export const connectionFieldsMap = {
|
|
|
11
7
|
OrgLimitDefault: {
|
|
12
8
|
orgLimitCreditsByDefaultLimitId: 'OrgLimitCredit',
|
|
13
9
|
},
|
|
10
|
+
AppLimitCreditCode: {
|
|
11
|
+
appLimitCreditCodeItemsByCreditCodeId: 'AppLimitCreditCodeItem',
|
|
12
|
+
appLimitCreditRedemptionsByCreditCodeId: 'AppLimitCreditRedemption',
|
|
13
|
+
},
|
|
14
14
|
};
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { OrmClient } from '../client';
|
|
7
7
|
import { QueryBuilder } from '../query-builder';
|
|
8
|
-
import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
-
import type { AppLimitEventWithRelations, AppLimitEventSelect, AppLimitEventFilter, AppLimitEventOrderBy, CreateAppLimitEventInput } from '../input-types';
|
|
8
|
+
import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
+
import type { AppLimitEventWithRelations, AppLimitEventSelect, AppLimitEventFilter, AppLimitEventOrderBy, CreateAppLimitEventInput, AppLimitEventPatch } from '../input-types';
|
|
10
10
|
export declare class AppLimitEventModel {
|
|
11
11
|
private client;
|
|
12
12
|
constructor(client: OrmClient);
|
|
@@ -20,6 +20,12 @@ export declare class AppLimitEventModel {
|
|
|
20
20
|
} & StrictSelect<S, AppLimitEventSelect>): QueryBuilder<{
|
|
21
21
|
appLimitEvent: InferSelectResult<AppLimitEventWithRelations, S> | null;
|
|
22
22
|
}>;
|
|
23
|
+
findOne<S extends AppLimitEventSelect>(args: {
|
|
24
|
+
id: string;
|
|
25
|
+
select: S;
|
|
26
|
+
} & StrictSelect<S, AppLimitEventSelect>): QueryBuilder<{
|
|
27
|
+
appLimitEvent: InferSelectResult<AppLimitEventWithRelations, S> | null;
|
|
28
|
+
}>;
|
|
23
29
|
create<S extends AppLimitEventSelect>(args: CreateArgs<S, CreateAppLimitEventInput['appLimitEvent']> & {
|
|
24
30
|
select: S;
|
|
25
31
|
} & StrictSelect<S, AppLimitEventSelect>): QueryBuilder<{
|
|
@@ -27,4 +33,22 @@ export declare class AppLimitEventModel {
|
|
|
27
33
|
appLimitEvent: InferSelectResult<AppLimitEventWithRelations, S>;
|
|
28
34
|
};
|
|
29
35
|
}>;
|
|
36
|
+
update<S extends AppLimitEventSelect>(args: UpdateArgs<S, {
|
|
37
|
+
id: string;
|
|
38
|
+
}, AppLimitEventPatch> & {
|
|
39
|
+
select: S;
|
|
40
|
+
} & StrictSelect<S, AppLimitEventSelect>): QueryBuilder<{
|
|
41
|
+
updateAppLimitEvent: {
|
|
42
|
+
appLimitEvent: InferSelectResult<AppLimitEventWithRelations, S>;
|
|
43
|
+
};
|
|
44
|
+
}>;
|
|
45
|
+
delete<S extends AppLimitEventSelect>(args: DeleteArgs<{
|
|
46
|
+
id: string;
|
|
47
|
+
}, S> & {
|
|
48
|
+
select: S;
|
|
49
|
+
} & StrictSelect<S, AppLimitEventSelect>): QueryBuilder<{
|
|
50
|
+
deleteAppLimitEvent: {
|
|
51
|
+
appLimitEvent: InferSelectResult<AppLimitEventWithRelations, S>;
|
|
52
|
+
};
|
|
53
|
+
}>;
|
|
30
54
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, } from '../query-builder';
|
|
1
|
+
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
|
|
2
2
|
import { connectionFieldsMap } from '../input-types';
|
|
3
3
|
export class AppLimitEventModel {
|
|
4
4
|
client;
|
|
@@ -41,6 +41,27 @@ export class AppLimitEventModel {
|
|
|
41
41
|
}),
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
|
+
findOne(args) {
|
|
45
|
+
const { document, variables } = buildFindManyDocument('AppLimitEvent', 'appLimitEvents', args.select, {
|
|
46
|
+
where: {
|
|
47
|
+
id: {
|
|
48
|
+
equalTo: args.id,
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
first: 1,
|
|
52
|
+
}, 'AppLimitEventFilter', 'AppLimitEventOrderBy', connectionFieldsMap);
|
|
53
|
+
return new QueryBuilder({
|
|
54
|
+
client: this.client,
|
|
55
|
+
operation: 'query',
|
|
56
|
+
operationName: 'AppLimitEvent',
|
|
57
|
+
fieldName: 'appLimitEvent',
|
|
58
|
+
document,
|
|
59
|
+
variables,
|
|
60
|
+
transform: (data) => ({
|
|
61
|
+
appLimitEvent: data.appLimitEvents?.nodes?.[0] ?? null,
|
|
62
|
+
}),
|
|
63
|
+
});
|
|
64
|
+
}
|
|
44
65
|
create(args) {
|
|
45
66
|
const { document, variables } = buildCreateDocument('AppLimitEvent', 'createAppLimitEvent', 'appLimitEvent', args.select, args.data, 'CreateAppLimitEventInput', connectionFieldsMap);
|
|
46
67
|
return new QueryBuilder({
|
|
@@ -52,4 +73,28 @@ export class AppLimitEventModel {
|
|
|
52
73
|
variables,
|
|
53
74
|
});
|
|
54
75
|
}
|
|
76
|
+
update(args) {
|
|
77
|
+
const { document, variables } = buildUpdateByPkDocument('AppLimitEvent', 'updateAppLimitEvent', 'appLimitEvent', args.select, args.where.id, args.data, 'UpdateAppLimitEventInput', 'id', 'appLimitEventPatch', connectionFieldsMap);
|
|
78
|
+
return new QueryBuilder({
|
|
79
|
+
client: this.client,
|
|
80
|
+
operation: 'mutation',
|
|
81
|
+
operationName: 'AppLimitEvent',
|
|
82
|
+
fieldName: 'updateAppLimitEvent',
|
|
83
|
+
document,
|
|
84
|
+
variables,
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
delete(args) {
|
|
88
|
+
const { document, variables } = buildDeleteByPkDocument('AppLimitEvent', 'deleteAppLimitEvent', 'appLimitEvent', {
|
|
89
|
+
id: args.where.id,
|
|
90
|
+
}, 'DeleteAppLimitEventInput', args.select, connectionFieldsMap);
|
|
91
|
+
return new QueryBuilder({
|
|
92
|
+
client: this.client,
|
|
93
|
+
operation: 'mutation',
|
|
94
|
+
operationName: 'AppLimitEvent',
|
|
95
|
+
fieldName: 'deleteAppLimitEvent',
|
|
96
|
+
document,
|
|
97
|
+
variables,
|
|
98
|
+
});
|
|
99
|
+
}
|
|
55
100
|
}
|
|
@@ -12,39 +12,38 @@ export { AppLimitCreditCodeItemModel } from './appLimitCreditCodeItem';
|
|
|
12
12
|
export { AppLimitCreditModel } from './appLimitCredit';
|
|
13
13
|
export { OrgMemberModel } from './orgMember';
|
|
14
14
|
export { AppPermissionDefaultModel } from './appPermissionDefault';
|
|
15
|
-
export { AppLimitCreditCodeModel } from './appLimitCreditCode';
|
|
16
|
-
export { OrgPermissionDefaultModel } from './orgPermissionDefault';
|
|
17
15
|
export { AppAdminGrantModel } from './appAdminGrant';
|
|
18
16
|
export { AppOwnerGrantModel } from './appOwnerGrant';
|
|
17
|
+
export { OrgPermissionDefaultModel } from './orgPermissionDefault';
|
|
18
|
+
export { AppMembershipDefaultModel } from './appMembershipDefault';
|
|
19
|
+
export { OrgAdminGrantModel } from './orgAdminGrant';
|
|
20
|
+
export { OrgMembershipDefaultModel } from './orgMembershipDefault';
|
|
21
|
+
export { OrgOwnerGrantModel } from './orgOwnerGrant';
|
|
19
22
|
export { AppLimitCapsDefaultModel } from './appLimitCapsDefault';
|
|
20
23
|
export { OrgLimitCapsDefaultModel } from './orgLimitCapsDefault';
|
|
21
24
|
export { AppLimitCapModel } from './appLimitCap';
|
|
22
25
|
export { OrgLimitCapModel } from './orgLimitCap';
|
|
23
|
-
export {
|
|
24
|
-
export { OrgOwnerGrantModel } from './orgOwnerGrant';
|
|
25
|
-
export { MembershipTypeModel } from './membershipType';
|
|
26
|
+
export { OrgChartEdgeModel } from './orgChartEdge';
|
|
26
27
|
export { AppLimitDefaultModel } from './appLimitDefault';
|
|
27
28
|
export { OrgLimitDefaultModel } from './orgLimitDefault';
|
|
28
29
|
export { OrgLimitCreditModel } from './orgLimitCredit';
|
|
30
|
+
export { AppLimitCreditCodeModel } from './appLimitCreditCode';
|
|
29
31
|
export { AppLimitWarningModel } from './appLimitWarning';
|
|
30
|
-
export { OrgLimitWarningModel } from './orgLimitWarning';
|
|
31
32
|
export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant';
|
|
32
33
|
export { AppClaimedInviteModel } from './appClaimedInvite';
|
|
34
|
+
export { OrgLimitWarningModel } from './orgLimitWarning';
|
|
35
|
+
export { MembershipTypeModel } from './membershipType';
|
|
33
36
|
export { AppGrantModel } from './appGrant';
|
|
34
|
-
export { AppMembershipDefaultModel } from './appMembershipDefault';
|
|
35
|
-
export { OrgMembershipDefaultModel } from './orgMembershipDefault';
|
|
36
37
|
export { OrgClaimedInviteModel } from './orgClaimedInvite';
|
|
38
|
+
export { OrgGrantModel } from './orgGrant';
|
|
39
|
+
export { OrgMembershipSettingModel } from './orgMembershipSetting';
|
|
37
40
|
export { AppLimitEventModel } from './appLimitEvent';
|
|
38
41
|
export { OrgLimitEventModel } from './orgLimitEvent';
|
|
39
|
-
export {
|
|
40
|
-
export {
|
|
41
|
-
export {
|
|
42
|
-
export { AppLimitModel } from './appLimit';
|
|
42
|
+
export { AppMembershipModel } from './appMembership';
|
|
43
|
+
export { OrgMembershipModel } from './orgMembership';
|
|
44
|
+
export { OrgMemberProfileModel } from './orgMemberProfile';
|
|
43
45
|
export { AppInviteModel } from './appInvite';
|
|
44
|
-
export {
|
|
46
|
+
export { AppLimitModel } from './appLimit';
|
|
45
47
|
export { OrgLimitAggregateModel } from './orgLimitAggregate';
|
|
46
48
|
export { OrgLimitModel } from './orgLimit';
|
|
47
|
-
export { OrgMemberProfileModel } from './orgMemberProfile';
|
|
48
|
-
export { AppMembershipModel } from './appMembership';
|
|
49
49
|
export { OrgInviteModel } from './orgInvite';
|
|
50
|
-
export { OrgMembershipModel } from './orgMembership';
|
|
@@ -12,39 +12,38 @@ export { AppLimitCreditCodeItemModel } from './appLimitCreditCodeItem';
|
|
|
12
12
|
export { AppLimitCreditModel } from './appLimitCredit';
|
|
13
13
|
export { OrgMemberModel } from './orgMember';
|
|
14
14
|
export { AppPermissionDefaultModel } from './appPermissionDefault';
|
|
15
|
-
export { AppLimitCreditCodeModel } from './appLimitCreditCode';
|
|
16
|
-
export { OrgPermissionDefaultModel } from './orgPermissionDefault';
|
|
17
15
|
export { AppAdminGrantModel } from './appAdminGrant';
|
|
18
16
|
export { AppOwnerGrantModel } from './appOwnerGrant';
|
|
17
|
+
export { OrgPermissionDefaultModel } from './orgPermissionDefault';
|
|
18
|
+
export { AppMembershipDefaultModel } from './appMembershipDefault';
|
|
19
|
+
export { OrgAdminGrantModel } from './orgAdminGrant';
|
|
20
|
+
export { OrgMembershipDefaultModel } from './orgMembershipDefault';
|
|
21
|
+
export { OrgOwnerGrantModel } from './orgOwnerGrant';
|
|
19
22
|
export { AppLimitCapsDefaultModel } from './appLimitCapsDefault';
|
|
20
23
|
export { OrgLimitCapsDefaultModel } from './orgLimitCapsDefault';
|
|
21
24
|
export { AppLimitCapModel } from './appLimitCap';
|
|
22
25
|
export { OrgLimitCapModel } from './orgLimitCap';
|
|
23
|
-
export {
|
|
24
|
-
export { OrgOwnerGrantModel } from './orgOwnerGrant';
|
|
25
|
-
export { MembershipTypeModel } from './membershipType';
|
|
26
|
+
export { OrgChartEdgeModel } from './orgChartEdge';
|
|
26
27
|
export { AppLimitDefaultModel } from './appLimitDefault';
|
|
27
28
|
export { OrgLimitDefaultModel } from './orgLimitDefault';
|
|
28
29
|
export { OrgLimitCreditModel } from './orgLimitCredit';
|
|
30
|
+
export { AppLimitCreditCodeModel } from './appLimitCreditCode';
|
|
29
31
|
export { AppLimitWarningModel } from './appLimitWarning';
|
|
30
|
-
export { OrgLimitWarningModel } from './orgLimitWarning';
|
|
31
32
|
export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant';
|
|
32
33
|
export { AppClaimedInviteModel } from './appClaimedInvite';
|
|
34
|
+
export { OrgLimitWarningModel } from './orgLimitWarning';
|
|
35
|
+
export { MembershipTypeModel } from './membershipType';
|
|
33
36
|
export { AppGrantModel } from './appGrant';
|
|
34
|
-
export { AppMembershipDefaultModel } from './appMembershipDefault';
|
|
35
|
-
export { OrgMembershipDefaultModel } from './orgMembershipDefault';
|
|
36
37
|
export { OrgClaimedInviteModel } from './orgClaimedInvite';
|
|
38
|
+
export { OrgGrantModel } from './orgGrant';
|
|
39
|
+
export { OrgMembershipSettingModel } from './orgMembershipSetting';
|
|
37
40
|
export { AppLimitEventModel } from './appLimitEvent';
|
|
38
41
|
export { OrgLimitEventModel } from './orgLimitEvent';
|
|
39
|
-
export {
|
|
40
|
-
export {
|
|
41
|
-
export {
|
|
42
|
-
export { AppLimitModel } from './appLimit';
|
|
42
|
+
export { AppMembershipModel } from './appMembership';
|
|
43
|
+
export { OrgMembershipModel } from './orgMembership';
|
|
44
|
+
export { OrgMemberProfileModel } from './orgMemberProfile';
|
|
43
45
|
export { AppInviteModel } from './appInvite';
|
|
44
|
-
export {
|
|
46
|
+
export { AppLimitModel } from './appLimit';
|
|
45
47
|
export { OrgLimitAggregateModel } from './orgLimitAggregate';
|
|
46
48
|
export { OrgLimitModel } from './orgLimit';
|
|
47
|
-
export { OrgMemberProfileModel } from './orgMemberProfile';
|
|
48
|
-
export { AppMembershipModel } from './appMembership';
|
|
49
49
|
export { OrgInviteModel } from './orgInvite';
|
|
50
|
-
export { OrgMembershipModel } from './orgMembership';
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { OrmClient } from '../client';
|
|
7
7
|
import { QueryBuilder } from '../query-builder';
|
|
8
|
-
import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
-
import type { OrgLimitEventWithRelations, OrgLimitEventSelect, OrgLimitEventFilter, OrgLimitEventOrderBy, CreateOrgLimitEventInput } from '../input-types';
|
|
8
|
+
import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
+
import type { OrgLimitEventWithRelations, OrgLimitEventSelect, OrgLimitEventFilter, OrgLimitEventOrderBy, CreateOrgLimitEventInput, OrgLimitEventPatch } from '../input-types';
|
|
10
10
|
export declare class OrgLimitEventModel {
|
|
11
11
|
private client;
|
|
12
12
|
constructor(client: OrmClient);
|
|
@@ -20,6 +20,12 @@ export declare class OrgLimitEventModel {
|
|
|
20
20
|
} & StrictSelect<S, OrgLimitEventSelect>): QueryBuilder<{
|
|
21
21
|
orgLimitEvent: InferSelectResult<OrgLimitEventWithRelations, S> | null;
|
|
22
22
|
}>;
|
|
23
|
+
findOne<S extends OrgLimitEventSelect>(args: {
|
|
24
|
+
id: string;
|
|
25
|
+
select: S;
|
|
26
|
+
} & StrictSelect<S, OrgLimitEventSelect>): QueryBuilder<{
|
|
27
|
+
orgLimitEvent: InferSelectResult<OrgLimitEventWithRelations, S> | null;
|
|
28
|
+
}>;
|
|
23
29
|
create<S extends OrgLimitEventSelect>(args: CreateArgs<S, CreateOrgLimitEventInput['orgLimitEvent']> & {
|
|
24
30
|
select: S;
|
|
25
31
|
} & StrictSelect<S, OrgLimitEventSelect>): QueryBuilder<{
|
|
@@ -27,4 +33,22 @@ export declare class OrgLimitEventModel {
|
|
|
27
33
|
orgLimitEvent: InferSelectResult<OrgLimitEventWithRelations, S>;
|
|
28
34
|
};
|
|
29
35
|
}>;
|
|
36
|
+
update<S extends OrgLimitEventSelect>(args: UpdateArgs<S, {
|
|
37
|
+
id: string;
|
|
38
|
+
}, OrgLimitEventPatch> & {
|
|
39
|
+
select: S;
|
|
40
|
+
} & StrictSelect<S, OrgLimitEventSelect>): QueryBuilder<{
|
|
41
|
+
updateOrgLimitEvent: {
|
|
42
|
+
orgLimitEvent: InferSelectResult<OrgLimitEventWithRelations, S>;
|
|
43
|
+
};
|
|
44
|
+
}>;
|
|
45
|
+
delete<S extends OrgLimitEventSelect>(args: DeleteArgs<{
|
|
46
|
+
id: string;
|
|
47
|
+
}, S> & {
|
|
48
|
+
select: S;
|
|
49
|
+
} & StrictSelect<S, OrgLimitEventSelect>): QueryBuilder<{
|
|
50
|
+
deleteOrgLimitEvent: {
|
|
51
|
+
orgLimitEvent: InferSelectResult<OrgLimitEventWithRelations, S>;
|
|
52
|
+
};
|
|
53
|
+
}>;
|
|
30
54
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, } from '../query-builder';
|
|
1
|
+
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
|
|
2
2
|
import { connectionFieldsMap } from '../input-types';
|
|
3
3
|
export class OrgLimitEventModel {
|
|
4
4
|
client;
|
|
@@ -41,6 +41,27 @@ export class OrgLimitEventModel {
|
|
|
41
41
|
}),
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
|
+
findOne(args) {
|
|
45
|
+
const { document, variables } = buildFindManyDocument('OrgLimitEvent', 'orgLimitEvents', args.select, {
|
|
46
|
+
where: {
|
|
47
|
+
id: {
|
|
48
|
+
equalTo: args.id,
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
first: 1,
|
|
52
|
+
}, 'OrgLimitEventFilter', 'OrgLimitEventOrderBy', connectionFieldsMap);
|
|
53
|
+
return new QueryBuilder({
|
|
54
|
+
client: this.client,
|
|
55
|
+
operation: 'query',
|
|
56
|
+
operationName: 'OrgLimitEvent',
|
|
57
|
+
fieldName: 'orgLimitEvent',
|
|
58
|
+
document,
|
|
59
|
+
variables,
|
|
60
|
+
transform: (data) => ({
|
|
61
|
+
orgLimitEvent: data.orgLimitEvents?.nodes?.[0] ?? null,
|
|
62
|
+
}),
|
|
63
|
+
});
|
|
64
|
+
}
|
|
44
65
|
create(args) {
|
|
45
66
|
const { document, variables } = buildCreateDocument('OrgLimitEvent', 'createOrgLimitEvent', 'orgLimitEvent', args.select, args.data, 'CreateOrgLimitEventInput', connectionFieldsMap);
|
|
46
67
|
return new QueryBuilder({
|
|
@@ -52,4 +73,28 @@ export class OrgLimitEventModel {
|
|
|
52
73
|
variables,
|
|
53
74
|
});
|
|
54
75
|
}
|
|
76
|
+
update(args) {
|
|
77
|
+
const { document, variables } = buildUpdateByPkDocument('OrgLimitEvent', 'updateOrgLimitEvent', 'orgLimitEvent', args.select, args.where.id, args.data, 'UpdateOrgLimitEventInput', 'id', 'orgLimitEventPatch', connectionFieldsMap);
|
|
78
|
+
return new QueryBuilder({
|
|
79
|
+
client: this.client,
|
|
80
|
+
operation: 'mutation',
|
|
81
|
+
operationName: 'OrgLimitEvent',
|
|
82
|
+
fieldName: 'updateOrgLimitEvent',
|
|
83
|
+
document,
|
|
84
|
+
variables,
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
delete(args) {
|
|
88
|
+
const { document, variables } = buildDeleteByPkDocument('OrgLimitEvent', 'deleteOrgLimitEvent', 'orgLimitEvent', {
|
|
89
|
+
id: args.where.id,
|
|
90
|
+
}, 'DeleteOrgLimitEventInput', args.select, connectionFieldsMap);
|
|
91
|
+
return new QueryBuilder({
|
|
92
|
+
client: this.client,
|
|
93
|
+
operation: 'mutation',
|
|
94
|
+
operationName: 'OrgLimitEvent',
|
|
95
|
+
fieldName: 'deleteOrgLimitEvent',
|
|
96
|
+
document,
|
|
97
|
+
variables,
|
|
98
|
+
});
|
|
99
|
+
}
|
|
55
100
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI commands for AuditLogAuth
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { CLIOptions, Inquirerer } from 'inquirerer';
|
|
7
|
+
declare const _default: (argv: Partial<Record<string, unknown>>, prompter: Inquirerer, _options: CLIOptions) => Promise<void>;
|
|
8
|
+
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* CLI commands for
|
|
2
|
+
* CLI commands for AuditLogAuth
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
@@ -7,6 +7,7 @@ import { extractFirst } from 'inquirerer';
|
|
|
7
7
|
import { getClient } from '../executor';
|
|
8
8
|
import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils';
|
|
9
9
|
const fieldSchema = {
|
|
10
|
+
createdAt: 'string',
|
|
10
11
|
id: 'uuid',
|
|
11
12
|
event: 'string',
|
|
12
13
|
actorId: 'uuid',
|
|
@@ -14,9 +15,8 @@ const fieldSchema = {
|
|
|
14
15
|
userAgent: 'string',
|
|
15
16
|
ipAddress: 'string',
|
|
16
17
|
success: 'boolean',
|
|
17
|
-
createdAt: 'string',
|
|
18
18
|
};
|
|
19
|
-
const usage = '\naudit-log <command>\n\nCommands:\n list List
|
|
19
|
+
const usage = '\naudit-log-auth <command>\n\nCommands:\n list List auditLogAuth records\n find-first Find first matching auditLogAuth record\n get Get a auditLogAuth by ID\n create Create a new auditLogAuth\n update Update an existing auditLogAuth\n delete Delete a auditLogAuth\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';
|
|
20
20
|
export default async (argv, prompter, _options) => {
|
|
21
21
|
if (argv.help || argv.h) {
|
|
22
22
|
console.log(usage);
|
|
@@ -58,6 +58,7 @@ async function handleTableSubcommand(subcommand, argv, prompter) {
|
|
|
58
58
|
async function handleList(argv, _prompter) {
|
|
59
59
|
try {
|
|
60
60
|
const defaultSelect = {
|
|
61
|
+
createdAt: true,
|
|
61
62
|
id: true,
|
|
62
63
|
event: true,
|
|
63
64
|
actorId: true,
|
|
@@ -65,11 +66,10 @@ async function handleList(argv, _prompter) {
|
|
|
65
66
|
userAgent: true,
|
|
66
67
|
ipAddress: true,
|
|
67
68
|
success: true,
|
|
68
|
-
createdAt: true,
|
|
69
69
|
};
|
|
70
70
|
const findManyArgs = parseFindManyArgs(argv, defaultSelect);
|
|
71
71
|
const client = getClient();
|
|
72
|
-
const result = await client.
|
|
72
|
+
const result = await client.auditLogAuth.findMany(findManyArgs).execute();
|
|
73
73
|
console.log(JSON.stringify(result, null, 2));
|
|
74
74
|
}
|
|
75
75
|
catch (error) {
|
|
@@ -83,6 +83,7 @@ async function handleList(argv, _prompter) {
|
|
|
83
83
|
async function handleFindFirst(argv, _prompter) {
|
|
84
84
|
try {
|
|
85
85
|
const defaultSelect = {
|
|
86
|
+
createdAt: true,
|
|
86
87
|
id: true,
|
|
87
88
|
event: true,
|
|
88
89
|
actorId: true,
|
|
@@ -90,11 +91,10 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
90
91
|
userAgent: true,
|
|
91
92
|
ipAddress: true,
|
|
92
93
|
success: true,
|
|
93
|
-
createdAt: true,
|
|
94
94
|
};
|
|
95
95
|
const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
|
|
96
96
|
const client = getClient();
|
|
97
|
-
const result = await client.
|
|
97
|
+
const result = await client.auditLogAuth.findFirst(findFirstArgs).execute();
|
|
98
98
|
console.log(JSON.stringify(result, null, 2));
|
|
99
99
|
}
|
|
100
100
|
catch (error) {
|
|
@@ -116,10 +116,11 @@ async function handleGet(argv, prompter) {
|
|
|
116
116
|
},
|
|
117
117
|
]);
|
|
118
118
|
const client = getClient();
|
|
119
|
-
const result = await client.
|
|
119
|
+
const result = await client.auditLogAuth
|
|
120
120
|
.findOne({
|
|
121
121
|
id: answers.id,
|
|
122
122
|
select: {
|
|
123
|
+
createdAt: true,
|
|
123
124
|
id: true,
|
|
124
125
|
event: true,
|
|
125
126
|
actorId: true,
|
|
@@ -127,7 +128,6 @@ async function handleGet(argv, prompter) {
|
|
|
127
128
|
userAgent: true,
|
|
128
129
|
ipAddress: true,
|
|
129
130
|
success: true,
|
|
130
|
-
createdAt: true,
|
|
131
131
|
},
|
|
132
132
|
})
|
|
133
133
|
.execute();
|
|
@@ -188,7 +188,7 @@ async function handleCreate(argv, prompter) {
|
|
|
188
188
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
189
189
|
const cleanedData = stripUndefined(answers, fieldSchema);
|
|
190
190
|
const client = getClient();
|
|
191
|
-
const result = await client.
|
|
191
|
+
const result = await client.auditLogAuth
|
|
192
192
|
.create({
|
|
193
193
|
data: {
|
|
194
194
|
event: cleanedData.event,
|
|
@@ -199,6 +199,7 @@ async function handleCreate(argv, prompter) {
|
|
|
199
199
|
success: cleanedData.success,
|
|
200
200
|
},
|
|
201
201
|
select: {
|
|
202
|
+
createdAt: true,
|
|
202
203
|
id: true,
|
|
203
204
|
event: true,
|
|
204
205
|
actorId: true,
|
|
@@ -206,7 +207,6 @@ async function handleCreate(argv, prompter) {
|
|
|
206
207
|
userAgent: true,
|
|
207
208
|
ipAddress: true,
|
|
208
209
|
success: true,
|
|
209
|
-
createdAt: true,
|
|
210
210
|
},
|
|
211
211
|
})
|
|
212
212
|
.execute();
|
|
@@ -273,7 +273,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
273
273
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
274
274
|
const cleanedData = stripUndefined(answers, fieldSchema);
|
|
275
275
|
const client = getClient();
|
|
276
|
-
const result = await client.
|
|
276
|
+
const result = await client.auditLogAuth
|
|
277
277
|
.update({
|
|
278
278
|
where: {
|
|
279
279
|
id: answers.id,
|
|
@@ -287,6 +287,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
287
287
|
success: cleanedData.success,
|
|
288
288
|
},
|
|
289
289
|
select: {
|
|
290
|
+
createdAt: true,
|
|
290
291
|
id: true,
|
|
291
292
|
event: true,
|
|
292
293
|
actorId: true,
|
|
@@ -294,7 +295,6 @@ async function handleUpdate(argv, prompter) {
|
|
|
294
295
|
userAgent: true,
|
|
295
296
|
ipAddress: true,
|
|
296
297
|
success: true,
|
|
297
|
-
createdAt: true,
|
|
298
298
|
},
|
|
299
299
|
})
|
|
300
300
|
.execute();
|
|
@@ -320,7 +320,7 @@ async function handleDelete(argv, prompter) {
|
|
|
320
320
|
]);
|
|
321
321
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
322
322
|
const client = getClient();
|
|
323
|
-
const result = await client.
|
|
323
|
+
const result = await client.auditLogAuth
|
|
324
324
|
.delete({
|
|
325
325
|
where: {
|
|
326
326
|
id: answers.id,
|
package/esm/auth/cli/commands.js
CHANGED
|
@@ -10,7 +10,7 @@ import emailCmd from './commands/email';
|
|
|
10
10
|
import phoneNumberCmd from './commands/phone-number';
|
|
11
11
|
import cryptoAddressCmd from './commands/crypto-address';
|
|
12
12
|
import webauthnCredentialCmd from './commands/webauthn-credential';
|
|
13
|
-
import
|
|
13
|
+
import auditLogAuthCmd from './commands/audit-log-auth';
|
|
14
14
|
import identityProviderCmd from './commands/identity-provider';
|
|
15
15
|
import roleTypeCmd from './commands/role-type';
|
|
16
16
|
import userConnectedAccountCmd from './commands/user-connected-account';
|
|
@@ -35,10 +35,10 @@ import provisionNewUserCmd from './commands/provision-new-user';
|
|
|
35
35
|
import resetPasswordCmd from './commands/reset-password';
|
|
36
36
|
import signInCrossOriginCmd from './commands/sign-in-cross-origin';
|
|
37
37
|
import signUpCmd from './commands/sign-up';
|
|
38
|
-
import requestCrossOriginTokenCmd from './commands/request-cross-origin-token';
|
|
39
38
|
import signInCmd from './commands/sign-in';
|
|
40
39
|
import extendTokenExpiresCmd from './commands/extend-token-expires';
|
|
41
40
|
import createApiKeyCmd from './commands/create-api-key';
|
|
41
|
+
import requestCrossOriginTokenCmd from './commands/request-cross-origin-token';
|
|
42
42
|
import forgotPasswordCmd from './commands/forgot-password';
|
|
43
43
|
import sendVerificationEmailCmd from './commands/send-verification-email';
|
|
44
44
|
import provisionBucketCmd from './commands/provision-bucket';
|
|
@@ -49,7 +49,7 @@ const createCommandMap = () => ({
|
|
|
49
49
|
'phone-number': phoneNumberCmd,
|
|
50
50
|
'crypto-address': cryptoAddressCmd,
|
|
51
51
|
'webauthn-credential': webauthnCredentialCmd,
|
|
52
|
-
'audit-log':
|
|
52
|
+
'audit-log-auth': auditLogAuthCmd,
|
|
53
53
|
'identity-provider': identityProviderCmd,
|
|
54
54
|
'role-type': roleTypeCmd,
|
|
55
55
|
'user-connected-account': userConnectedAccountCmd,
|
|
@@ -74,15 +74,15 @@ const createCommandMap = () => ({
|
|
|
74
74
|
'reset-password': resetPasswordCmd,
|
|
75
75
|
'sign-in-cross-origin': signInCrossOriginCmd,
|
|
76
76
|
'sign-up': signUpCmd,
|
|
77
|
-
'request-cross-origin-token': requestCrossOriginTokenCmd,
|
|
78
77
|
'sign-in': signInCmd,
|
|
79
78
|
'extend-token-expires': extendTokenExpiresCmd,
|
|
80
79
|
'create-api-key': createApiKeyCmd,
|
|
80
|
+
'request-cross-origin-token': requestCrossOriginTokenCmd,
|
|
81
81
|
'forgot-password': forgotPasswordCmd,
|
|
82
82
|
'send-verification-email': sendVerificationEmailCmd,
|
|
83
83
|
'provision-bucket': provisionBucketCmd,
|
|
84
84
|
});
|
|
85
|
-
const usage = '\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n email email CRUD operations\n phone-number phoneNumber CRUD operations\n crypto-address cryptoAddress CRUD operations\n webauthn-credential webauthnCredential CRUD operations\n audit-log
|
|
85
|
+
const usage = '\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n email email CRUD operations\n phone-number phoneNumber CRUD operations\n crypto-address cryptoAddress CRUD operations\n webauthn-credential webauthnCredential CRUD operations\n audit-log-auth auditLogAuth CRUD operations\n identity-provider identityProvider CRUD operations\n role-type roleType CRUD operations\n user-connected-account userConnectedAccount CRUD operations\n user user CRUD operations\n current-user-agent currentUserAgent\n current-ip-address currentIpAddress\n current-user-id currentUserId\n require-step-up requireStepUp\n current-user currentUser\n sign-out signOut\n send-account-deletion-email sendAccountDeletionEmail\n check-password checkPassword\n disconnect-account disconnectAccount\n revoke-api-key revokeApiKey\n revoke-session revokeSession\n verify-password verifyPassword\n verify-totp verifyTotp\n confirm-delete-account confirmDeleteAccount\n set-password setPassword\n verify-email verifyEmail\n provision-new-user provisionNewUser\n reset-password resetPassword\n sign-in-cross-origin signInCrossOrigin\n sign-up signUp\n sign-in signIn\n extend-token-expires extendTokenExpires\n create-api-key createApiKey\n request-cross-origin-token requestCrossOriginToken\n forgot-password forgotPassword\n send-verification-email sendVerificationEmail\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';
|
|
86
86
|
export const commands = async (argv, prompter, options) => {
|
|
87
87
|
if (argv.help || argv.h) {
|
|
88
88
|
console.log(usage);
|
|
@@ -4,7 +4,7 @@ export declare function getClient(contextName?: string): {
|
|
|
4
4
|
phoneNumber: import("..").PhoneNumberModel;
|
|
5
5
|
cryptoAddress: import("..").CryptoAddressModel;
|
|
6
6
|
webauthnCredential: import("..").WebauthnCredentialModel;
|
|
7
|
-
|
|
7
|
+
auditLogAuth: import("..").AuditLogAuthModel;
|
|
8
8
|
identityProvider: import("..").IdentityProviderModel;
|
|
9
9
|
roleType: import("..").RoleTypeModel;
|
|
10
10
|
userConnectedAccount: import("..").UserConnectedAccountModel;
|
|
@@ -112,11 +112,6 @@ export declare function getClient(contextName?: string): {
|
|
|
112
112
|
} & import("..").StrictSelect<S, import("../orm/input-types").SignUpPayloadSelect>) => import("..").QueryBuilder<{
|
|
113
113
|
signUp: import("..").InferSelectResult<import("../orm/input-types").SignUpPayload, S> | null;
|
|
114
114
|
}>;
|
|
115
|
-
requestCrossOriginToken: <S extends import("../orm/input-types").RequestCrossOriginTokenPayloadSelect>(args: import("../orm/mutation").RequestCrossOriginTokenVariables, options: {
|
|
116
|
-
select: S;
|
|
117
|
-
} & import("..").StrictSelect<S, import("../orm/input-types").RequestCrossOriginTokenPayloadSelect>) => import("..").QueryBuilder<{
|
|
118
|
-
requestCrossOriginToken: import("..").InferSelectResult<import("../orm/input-types").RequestCrossOriginTokenPayload, S> | null;
|
|
119
|
-
}>;
|
|
120
115
|
signIn: <S extends import("../orm/input-types").SignInPayloadSelect>(args: import("../orm/mutation").SignInVariables, options: {
|
|
121
116
|
select: S;
|
|
122
117
|
} & import("..").StrictSelect<S, import("../orm/input-types").SignInPayloadSelect>) => import("..").QueryBuilder<{
|
|
@@ -132,6 +127,11 @@ export declare function getClient(contextName?: string): {
|
|
|
132
127
|
} & import("..").StrictSelect<S, import("../orm/input-types").CreateApiKeyPayloadSelect>) => import("..").QueryBuilder<{
|
|
133
128
|
createApiKey: import("..").InferSelectResult<import("../orm/input-types").CreateApiKeyPayload, S> | null;
|
|
134
129
|
}>;
|
|
130
|
+
requestCrossOriginToken: <S extends import("../orm/input-types").RequestCrossOriginTokenPayloadSelect>(args: import("../orm/mutation").RequestCrossOriginTokenVariables, options: {
|
|
131
|
+
select: S;
|
|
132
|
+
} & import("..").StrictSelect<S, import("../orm/input-types").RequestCrossOriginTokenPayloadSelect>) => import("..").QueryBuilder<{
|
|
133
|
+
requestCrossOriginToken: import("..").InferSelectResult<import("../orm/input-types").RequestCrossOriginTokenPayload, S> | null;
|
|
134
|
+
}>;
|
|
135
135
|
forgotPassword: <S extends import("../orm/input-types").ForgotPasswordPayloadSelect>(args: import("../orm/mutation").ForgotPasswordVariables, options: {
|
|
136
136
|
select: S;
|
|
137
137
|
} & import("..").StrictSelect<S, import("../orm/input-types").ForgotPasswordPayloadSelect>) => import("..").QueryBuilder<{
|
package/esm/auth/orm/index.d.ts
CHANGED
|
@@ -3,13 +3,13 @@ import { EmailModel } from './models/email';
|
|
|
3
3
|
import { PhoneNumberModel } from './models/phoneNumber';
|
|
4
4
|
import { CryptoAddressModel } from './models/cryptoAddress';
|
|
5
5
|
import { WebauthnCredentialModel } from './models/webauthnCredential';
|
|
6
|
-
import {
|
|
6
|
+
import { AuditLogAuthModel } from './models/auditLogAuth';
|
|
7
7
|
import { IdentityProviderModel } from './models/identityProvider';
|
|
8
8
|
import { RoleTypeModel } from './models/roleType';
|
|
9
9
|
import { UserConnectedAccountModel } from './models/userConnectedAccount';
|
|
10
10
|
import { UserModel } from './models/user';
|
|
11
11
|
export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client';
|
|
12
|
-
export { GraphQLRequestError } from './client';
|
|
12
|
+
export { GraphQLRequestError, FetchAdapter } from './client';
|
|
13
13
|
export { QueryBuilder } from './query-builder';
|
|
14
14
|
export * from './select-types';
|
|
15
15
|
export * from './models';
|
|
@@ -43,7 +43,7 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
43
43
|
phoneNumber: PhoneNumberModel;
|
|
44
44
|
cryptoAddress: CryptoAddressModel;
|
|
45
45
|
webauthnCredential: WebauthnCredentialModel;
|
|
46
|
-
|
|
46
|
+
auditLogAuth: AuditLogAuthModel;
|
|
47
47
|
identityProvider: IdentityProviderModel;
|
|
48
48
|
roleType: RoleTypeModel;
|
|
49
49
|
userConnectedAccount: UserConnectedAccountModel;
|
|
@@ -151,11 +151,6 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
151
151
|
} & import("./select-types").StrictSelect<S, import("./input-types").SignUpPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
152
152
|
signUp: import("./select-types").InferSelectResult<import("./input-types").SignUpPayload, S> | null;
|
|
153
153
|
}>;
|
|
154
|
-
requestCrossOriginToken: <S extends import("./input-types").RequestCrossOriginTokenPayloadSelect>(args: import("./mutation").RequestCrossOriginTokenVariables, options: {
|
|
155
|
-
select: S;
|
|
156
|
-
} & import("./select-types").StrictSelect<S, import("./input-types").RequestCrossOriginTokenPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
157
|
-
requestCrossOriginToken: import("./select-types").InferSelectResult<import("./input-types").RequestCrossOriginTokenPayload, S> | null;
|
|
158
|
-
}>;
|
|
159
154
|
signIn: <S extends import("./input-types").SignInPayloadSelect>(args: import("./mutation").SignInVariables, options: {
|
|
160
155
|
select: S;
|
|
161
156
|
} & import("./select-types").StrictSelect<S, import("./input-types").SignInPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
@@ -171,6 +166,11 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
171
166
|
} & import("./select-types").StrictSelect<S, import("./input-types").CreateApiKeyPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
172
167
|
createApiKey: import("./select-types").InferSelectResult<import("./input-types").CreateApiKeyPayload, S> | null;
|
|
173
168
|
}>;
|
|
169
|
+
requestCrossOriginToken: <S extends import("./input-types").RequestCrossOriginTokenPayloadSelect>(args: import("./mutation").RequestCrossOriginTokenVariables, options: {
|
|
170
|
+
select: S;
|
|
171
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").RequestCrossOriginTokenPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
172
|
+
requestCrossOriginToken: import("./select-types").InferSelectResult<import("./input-types").RequestCrossOriginTokenPayload, S> | null;
|
|
173
|
+
}>;
|
|
174
174
|
forgotPassword: <S extends import("./input-types").ForgotPasswordPayloadSelect>(args: import("./mutation").ForgotPasswordVariables, options: {
|
|
175
175
|
select: S;
|
|
176
176
|
} & import("./select-types").StrictSelect<S, import("./input-types").ForgotPasswordPayloadSelect>) => import("./query-builder").QueryBuilder<{
|