@constructive-sdk/cli 0.23.2 → 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
package/admin/orm/input-types.js
CHANGED
|
@@ -3,10 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.connectionFieldsMap = void 0;
|
|
4
4
|
// ============ Connection Fields Map ============
|
|
5
5
|
exports.connectionFieldsMap = {
|
|
6
|
-
AppLimitCreditCode: {
|
|
7
|
-
appLimitCreditCodeItemsByCreditCodeId: 'AppLimitCreditCodeItem',
|
|
8
|
-
appLimitCreditRedemptionsByCreditCodeId: 'AppLimitCreditRedemption',
|
|
9
|
-
},
|
|
10
6
|
AppLimitDefault: {
|
|
11
7
|
appLimitCreditsByDefaultLimitId: 'AppLimitCredit',
|
|
12
8
|
appLimitCreditCodeItemsByDefaultLimitId: 'AppLimitCreditCodeItem',
|
|
@@ -14,4 +10,8 @@ exports.connectionFieldsMap = {
|
|
|
14
10
|
OrgLimitDefault: {
|
|
15
11
|
orgLimitCreditsByDefaultLimitId: 'OrgLimitCredit',
|
|
16
12
|
},
|
|
13
|
+
AppLimitCreditCode: {
|
|
14
|
+
appLimitCreditCodeItemsByCreditCodeId: 'AppLimitCreditCodeItem',
|
|
15
|
+
appLimitCreditRedemptionsByCreditCodeId: 'AppLimitCreditRedemption',
|
|
16
|
+
},
|
|
17
17
|
};
|
|
@@ -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
|
}
|
|
@@ -44,6 +44,27 @@ class AppLimitEventModel {
|
|
|
44
44
|
}),
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
|
+
findOne(args) {
|
|
48
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('AppLimitEvent', 'appLimitEvents', args.select, {
|
|
49
|
+
where: {
|
|
50
|
+
id: {
|
|
51
|
+
equalTo: args.id,
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
first: 1,
|
|
55
|
+
}, 'AppLimitEventFilter', 'AppLimitEventOrderBy', input_types_1.connectionFieldsMap);
|
|
56
|
+
return new query_builder_1.QueryBuilder({
|
|
57
|
+
client: this.client,
|
|
58
|
+
operation: 'query',
|
|
59
|
+
operationName: 'AppLimitEvent',
|
|
60
|
+
fieldName: 'appLimitEvent',
|
|
61
|
+
document,
|
|
62
|
+
variables,
|
|
63
|
+
transform: (data) => ({
|
|
64
|
+
appLimitEvent: data.appLimitEvents?.nodes?.[0] ?? null,
|
|
65
|
+
}),
|
|
66
|
+
});
|
|
67
|
+
}
|
|
47
68
|
create(args) {
|
|
48
69
|
const { document, variables } = (0, query_builder_1.buildCreateDocument)('AppLimitEvent', 'createAppLimitEvent', 'appLimitEvent', args.select, args.data, 'CreateAppLimitEventInput', input_types_1.connectionFieldsMap);
|
|
49
70
|
return new query_builder_1.QueryBuilder({
|
|
@@ -55,5 +76,29 @@ class AppLimitEventModel {
|
|
|
55
76
|
variables,
|
|
56
77
|
});
|
|
57
78
|
}
|
|
79
|
+
update(args) {
|
|
80
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('AppLimitEvent', 'updateAppLimitEvent', 'appLimitEvent', args.select, args.where.id, args.data, 'UpdateAppLimitEventInput', 'id', 'appLimitEventPatch', input_types_1.connectionFieldsMap);
|
|
81
|
+
return new query_builder_1.QueryBuilder({
|
|
82
|
+
client: this.client,
|
|
83
|
+
operation: 'mutation',
|
|
84
|
+
operationName: 'AppLimitEvent',
|
|
85
|
+
fieldName: 'updateAppLimitEvent',
|
|
86
|
+
document,
|
|
87
|
+
variables,
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
delete(args) {
|
|
91
|
+
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('AppLimitEvent', 'deleteAppLimitEvent', 'appLimitEvent', {
|
|
92
|
+
id: args.where.id,
|
|
93
|
+
}, 'DeleteAppLimitEventInput', args.select, input_types_1.connectionFieldsMap);
|
|
94
|
+
return new query_builder_1.QueryBuilder({
|
|
95
|
+
client: this.client,
|
|
96
|
+
operation: 'mutation',
|
|
97
|
+
operationName: 'AppLimitEvent',
|
|
98
|
+
fieldName: 'deleteAppLimitEvent',
|
|
99
|
+
document,
|
|
100
|
+
variables,
|
|
101
|
+
});
|
|
102
|
+
}
|
|
58
103
|
}
|
|
59
104
|
exports.AppLimitEventModel = AppLimitEventModel;
|
|
@@ -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';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.OrgInviteModel = exports.OrgLimitModel = exports.OrgLimitAggregateModel = exports.AppLimitModel = exports.AppInviteModel = exports.OrgMemberProfileModel = exports.OrgMembershipModel = exports.AppMembershipModel = exports.OrgLimitEventModel = exports.AppLimitEventModel = exports.OrgMembershipSettingModel = exports.OrgGrantModel = exports.OrgClaimedInviteModel = exports.AppGrantModel = exports.MembershipTypeModel = exports.OrgLimitWarningModel = exports.AppClaimedInviteModel = exports.OrgChartEdgeGrantModel = exports.AppLimitWarningModel = exports.AppLimitCreditCodeModel = exports.OrgLimitCreditModel = exports.OrgLimitDefaultModel = exports.AppLimitDefaultModel = exports.OrgChartEdgeModel = exports.OrgLimitCapModel = exports.AppLimitCapModel = exports.OrgLimitCapsDefaultModel = exports.AppLimitCapsDefaultModel = exports.OrgOwnerGrantModel = exports.OrgMembershipDefaultModel = exports.OrgAdminGrantModel = exports.AppMembershipDefaultModel = exports.OrgPermissionDefaultModel = exports.AppOwnerGrantModel = exports.AppAdminGrantModel = exports.AppPermissionDefaultModel = exports.OrgMemberModel = exports.AppLimitCreditModel = exports.AppLimitCreditCodeItemModel = exports.AppLimitCreditRedemptionModel = exports.OrgPermissionModel = exports.AppPermissionModel = exports.OrgGetSubordinatesRecordModel = exports.OrgGetManagersRecordModel = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Models barrel export
|
|
6
6
|
* @generated by @constructive-io/graphql-codegen
|
|
@@ -24,14 +24,20 @@ var orgMember_1 = require("./orgMember");
|
|
|
24
24
|
Object.defineProperty(exports, "OrgMemberModel", { enumerable: true, get: function () { return orgMember_1.OrgMemberModel; } });
|
|
25
25
|
var appPermissionDefault_1 = require("./appPermissionDefault");
|
|
26
26
|
Object.defineProperty(exports, "AppPermissionDefaultModel", { enumerable: true, get: function () { return appPermissionDefault_1.AppPermissionDefaultModel; } });
|
|
27
|
-
var appLimitCreditCode_1 = require("./appLimitCreditCode");
|
|
28
|
-
Object.defineProperty(exports, "AppLimitCreditCodeModel", { enumerable: true, get: function () { return appLimitCreditCode_1.AppLimitCreditCodeModel; } });
|
|
29
|
-
var orgPermissionDefault_1 = require("./orgPermissionDefault");
|
|
30
|
-
Object.defineProperty(exports, "OrgPermissionDefaultModel", { enumerable: true, get: function () { return orgPermissionDefault_1.OrgPermissionDefaultModel; } });
|
|
31
27
|
var appAdminGrant_1 = require("./appAdminGrant");
|
|
32
28
|
Object.defineProperty(exports, "AppAdminGrantModel", { enumerable: true, get: function () { return appAdminGrant_1.AppAdminGrantModel; } });
|
|
33
29
|
var appOwnerGrant_1 = require("./appOwnerGrant");
|
|
34
30
|
Object.defineProperty(exports, "AppOwnerGrantModel", { enumerable: true, get: function () { return appOwnerGrant_1.AppOwnerGrantModel; } });
|
|
31
|
+
var orgPermissionDefault_1 = require("./orgPermissionDefault");
|
|
32
|
+
Object.defineProperty(exports, "OrgPermissionDefaultModel", { enumerable: true, get: function () { return orgPermissionDefault_1.OrgPermissionDefaultModel; } });
|
|
33
|
+
var appMembershipDefault_1 = require("./appMembershipDefault");
|
|
34
|
+
Object.defineProperty(exports, "AppMembershipDefaultModel", { enumerable: true, get: function () { return appMembershipDefault_1.AppMembershipDefaultModel; } });
|
|
35
|
+
var orgAdminGrant_1 = require("./orgAdminGrant");
|
|
36
|
+
Object.defineProperty(exports, "OrgAdminGrantModel", { enumerable: true, get: function () { return orgAdminGrant_1.OrgAdminGrantModel; } });
|
|
37
|
+
var orgMembershipDefault_1 = require("./orgMembershipDefault");
|
|
38
|
+
Object.defineProperty(exports, "OrgMembershipDefaultModel", { enumerable: true, get: function () { return orgMembershipDefault_1.OrgMembershipDefaultModel; } });
|
|
39
|
+
var orgOwnerGrant_1 = require("./orgOwnerGrant");
|
|
40
|
+
Object.defineProperty(exports, "OrgOwnerGrantModel", { enumerable: true, get: function () { return orgOwnerGrant_1.OrgOwnerGrantModel; } });
|
|
35
41
|
var appLimitCapsDefault_1 = require("./appLimitCapsDefault");
|
|
36
42
|
Object.defineProperty(exports, "AppLimitCapsDefaultModel", { enumerable: true, get: function () { return appLimitCapsDefault_1.AppLimitCapsDefaultModel; } });
|
|
37
43
|
var orgLimitCapsDefault_1 = require("./orgLimitCapsDefault");
|
|
@@ -40,59 +46,51 @@ var appLimitCap_1 = require("./appLimitCap");
|
|
|
40
46
|
Object.defineProperty(exports, "AppLimitCapModel", { enumerable: true, get: function () { return appLimitCap_1.AppLimitCapModel; } });
|
|
41
47
|
var orgLimitCap_1 = require("./orgLimitCap");
|
|
42
48
|
Object.defineProperty(exports, "OrgLimitCapModel", { enumerable: true, get: function () { return orgLimitCap_1.OrgLimitCapModel; } });
|
|
43
|
-
var
|
|
44
|
-
Object.defineProperty(exports, "
|
|
45
|
-
var orgOwnerGrant_1 = require("./orgOwnerGrant");
|
|
46
|
-
Object.defineProperty(exports, "OrgOwnerGrantModel", { enumerable: true, get: function () { return orgOwnerGrant_1.OrgOwnerGrantModel; } });
|
|
47
|
-
var membershipType_1 = require("./membershipType");
|
|
48
|
-
Object.defineProperty(exports, "MembershipTypeModel", { enumerable: true, get: function () { return membershipType_1.MembershipTypeModel; } });
|
|
49
|
+
var orgChartEdge_1 = require("./orgChartEdge");
|
|
50
|
+
Object.defineProperty(exports, "OrgChartEdgeModel", { enumerable: true, get: function () { return orgChartEdge_1.OrgChartEdgeModel; } });
|
|
49
51
|
var appLimitDefault_1 = require("./appLimitDefault");
|
|
50
52
|
Object.defineProperty(exports, "AppLimitDefaultModel", { enumerable: true, get: function () { return appLimitDefault_1.AppLimitDefaultModel; } });
|
|
51
53
|
var orgLimitDefault_1 = require("./orgLimitDefault");
|
|
52
54
|
Object.defineProperty(exports, "OrgLimitDefaultModel", { enumerable: true, get: function () { return orgLimitDefault_1.OrgLimitDefaultModel; } });
|
|
53
55
|
var orgLimitCredit_1 = require("./orgLimitCredit");
|
|
54
56
|
Object.defineProperty(exports, "OrgLimitCreditModel", { enumerable: true, get: function () { return orgLimitCredit_1.OrgLimitCreditModel; } });
|
|
57
|
+
var appLimitCreditCode_1 = require("./appLimitCreditCode");
|
|
58
|
+
Object.defineProperty(exports, "AppLimitCreditCodeModel", { enumerable: true, get: function () { return appLimitCreditCode_1.AppLimitCreditCodeModel; } });
|
|
55
59
|
var appLimitWarning_1 = require("./appLimitWarning");
|
|
56
60
|
Object.defineProperty(exports, "AppLimitWarningModel", { enumerable: true, get: function () { return appLimitWarning_1.AppLimitWarningModel; } });
|
|
57
|
-
var orgLimitWarning_1 = require("./orgLimitWarning");
|
|
58
|
-
Object.defineProperty(exports, "OrgLimitWarningModel", { enumerable: true, get: function () { return orgLimitWarning_1.OrgLimitWarningModel; } });
|
|
59
61
|
var orgChartEdgeGrant_1 = require("./orgChartEdgeGrant");
|
|
60
62
|
Object.defineProperty(exports, "OrgChartEdgeGrantModel", { enumerable: true, get: function () { return orgChartEdgeGrant_1.OrgChartEdgeGrantModel; } });
|
|
61
63
|
var appClaimedInvite_1 = require("./appClaimedInvite");
|
|
62
64
|
Object.defineProperty(exports, "AppClaimedInviteModel", { enumerable: true, get: function () { return appClaimedInvite_1.AppClaimedInviteModel; } });
|
|
65
|
+
var orgLimitWarning_1 = require("./orgLimitWarning");
|
|
66
|
+
Object.defineProperty(exports, "OrgLimitWarningModel", { enumerable: true, get: function () { return orgLimitWarning_1.OrgLimitWarningModel; } });
|
|
67
|
+
var membershipType_1 = require("./membershipType");
|
|
68
|
+
Object.defineProperty(exports, "MembershipTypeModel", { enumerable: true, get: function () { return membershipType_1.MembershipTypeModel; } });
|
|
63
69
|
var appGrant_1 = require("./appGrant");
|
|
64
70
|
Object.defineProperty(exports, "AppGrantModel", { enumerable: true, get: function () { return appGrant_1.AppGrantModel; } });
|
|
65
|
-
var appMembershipDefault_1 = require("./appMembershipDefault");
|
|
66
|
-
Object.defineProperty(exports, "AppMembershipDefaultModel", { enumerable: true, get: function () { return appMembershipDefault_1.AppMembershipDefaultModel; } });
|
|
67
|
-
var orgMembershipDefault_1 = require("./orgMembershipDefault");
|
|
68
|
-
Object.defineProperty(exports, "OrgMembershipDefaultModel", { enumerable: true, get: function () { return orgMembershipDefault_1.OrgMembershipDefaultModel; } });
|
|
69
71
|
var orgClaimedInvite_1 = require("./orgClaimedInvite");
|
|
70
72
|
Object.defineProperty(exports, "OrgClaimedInviteModel", { enumerable: true, get: function () { return orgClaimedInvite_1.OrgClaimedInviteModel; } });
|
|
73
|
+
var orgGrant_1 = require("./orgGrant");
|
|
74
|
+
Object.defineProperty(exports, "OrgGrantModel", { enumerable: true, get: function () { return orgGrant_1.OrgGrantModel; } });
|
|
75
|
+
var orgMembershipSetting_1 = require("./orgMembershipSetting");
|
|
76
|
+
Object.defineProperty(exports, "OrgMembershipSettingModel", { enumerable: true, get: function () { return orgMembershipSetting_1.OrgMembershipSettingModel; } });
|
|
71
77
|
var appLimitEvent_1 = require("./appLimitEvent");
|
|
72
78
|
Object.defineProperty(exports, "AppLimitEventModel", { enumerable: true, get: function () { return appLimitEvent_1.AppLimitEventModel; } });
|
|
73
79
|
var orgLimitEvent_1 = require("./orgLimitEvent");
|
|
74
80
|
Object.defineProperty(exports, "OrgLimitEventModel", { enumerable: true, get: function () { return orgLimitEvent_1.OrgLimitEventModel; } });
|
|
75
|
-
var
|
|
76
|
-
Object.defineProperty(exports, "
|
|
77
|
-
var
|
|
78
|
-
Object.defineProperty(exports, "
|
|
79
|
-
var
|
|
80
|
-
Object.defineProperty(exports, "
|
|
81
|
-
var appLimit_1 = require("./appLimit");
|
|
82
|
-
Object.defineProperty(exports, "AppLimitModel", { enumerable: true, get: function () { return appLimit_1.AppLimitModel; } });
|
|
81
|
+
var appMembership_1 = require("./appMembership");
|
|
82
|
+
Object.defineProperty(exports, "AppMembershipModel", { enumerable: true, get: function () { return appMembership_1.AppMembershipModel; } });
|
|
83
|
+
var orgMembership_1 = require("./orgMembership");
|
|
84
|
+
Object.defineProperty(exports, "OrgMembershipModel", { enumerable: true, get: function () { return orgMembership_1.OrgMembershipModel; } });
|
|
85
|
+
var orgMemberProfile_1 = require("./orgMemberProfile");
|
|
86
|
+
Object.defineProperty(exports, "OrgMemberProfileModel", { enumerable: true, get: function () { return orgMemberProfile_1.OrgMemberProfileModel; } });
|
|
83
87
|
var appInvite_1 = require("./appInvite");
|
|
84
88
|
Object.defineProperty(exports, "AppInviteModel", { enumerable: true, get: function () { return appInvite_1.AppInviteModel; } });
|
|
85
|
-
var
|
|
86
|
-
Object.defineProperty(exports, "
|
|
89
|
+
var appLimit_1 = require("./appLimit");
|
|
90
|
+
Object.defineProperty(exports, "AppLimitModel", { enumerable: true, get: function () { return appLimit_1.AppLimitModel; } });
|
|
87
91
|
var orgLimitAggregate_1 = require("./orgLimitAggregate");
|
|
88
92
|
Object.defineProperty(exports, "OrgLimitAggregateModel", { enumerable: true, get: function () { return orgLimitAggregate_1.OrgLimitAggregateModel; } });
|
|
89
93
|
var orgLimit_1 = require("./orgLimit");
|
|
90
94
|
Object.defineProperty(exports, "OrgLimitModel", { enumerable: true, get: function () { return orgLimit_1.OrgLimitModel; } });
|
|
91
|
-
var orgMemberProfile_1 = require("./orgMemberProfile");
|
|
92
|
-
Object.defineProperty(exports, "OrgMemberProfileModel", { enumerable: true, get: function () { return orgMemberProfile_1.OrgMemberProfileModel; } });
|
|
93
|
-
var appMembership_1 = require("./appMembership");
|
|
94
|
-
Object.defineProperty(exports, "AppMembershipModel", { enumerable: true, get: function () { return appMembership_1.AppMembershipModel; } });
|
|
95
95
|
var orgInvite_1 = require("./orgInvite");
|
|
96
96
|
Object.defineProperty(exports, "OrgInviteModel", { enumerable: true, get: function () { return orgInvite_1.OrgInviteModel; } });
|
|
97
|
-
var orgMembership_1 = require("./orgMembership");
|
|
98
|
-
Object.defineProperty(exports, "OrgMembershipModel", { enumerable: true, get: function () { return orgMembership_1.OrgMembershipModel; } });
|
|
@@ -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
|
}
|
|
@@ -44,6 +44,27 @@ class OrgLimitEventModel {
|
|
|
44
44
|
}),
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
|
+
findOne(args) {
|
|
48
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('OrgLimitEvent', 'orgLimitEvents', args.select, {
|
|
49
|
+
where: {
|
|
50
|
+
id: {
|
|
51
|
+
equalTo: args.id,
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
first: 1,
|
|
55
|
+
}, 'OrgLimitEventFilter', 'OrgLimitEventOrderBy', input_types_1.connectionFieldsMap);
|
|
56
|
+
return new query_builder_1.QueryBuilder({
|
|
57
|
+
client: this.client,
|
|
58
|
+
operation: 'query',
|
|
59
|
+
operationName: 'OrgLimitEvent',
|
|
60
|
+
fieldName: 'orgLimitEvent',
|
|
61
|
+
document,
|
|
62
|
+
variables,
|
|
63
|
+
transform: (data) => ({
|
|
64
|
+
orgLimitEvent: data.orgLimitEvents?.nodes?.[0] ?? null,
|
|
65
|
+
}),
|
|
66
|
+
});
|
|
67
|
+
}
|
|
47
68
|
create(args) {
|
|
48
69
|
const { document, variables } = (0, query_builder_1.buildCreateDocument)('OrgLimitEvent', 'createOrgLimitEvent', 'orgLimitEvent', args.select, args.data, 'CreateOrgLimitEventInput', input_types_1.connectionFieldsMap);
|
|
49
70
|
return new query_builder_1.QueryBuilder({
|
|
@@ -55,5 +76,29 @@ class OrgLimitEventModel {
|
|
|
55
76
|
variables,
|
|
56
77
|
});
|
|
57
78
|
}
|
|
79
|
+
update(args) {
|
|
80
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('OrgLimitEvent', 'updateOrgLimitEvent', 'orgLimitEvent', args.select, args.where.id, args.data, 'UpdateOrgLimitEventInput', 'id', 'orgLimitEventPatch', input_types_1.connectionFieldsMap);
|
|
81
|
+
return new query_builder_1.QueryBuilder({
|
|
82
|
+
client: this.client,
|
|
83
|
+
operation: 'mutation',
|
|
84
|
+
operationName: 'OrgLimitEvent',
|
|
85
|
+
fieldName: 'updateOrgLimitEvent',
|
|
86
|
+
document,
|
|
87
|
+
variables,
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
delete(args) {
|
|
91
|
+
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('OrgLimitEvent', 'deleteOrgLimitEvent', 'orgLimitEvent', {
|
|
92
|
+
id: args.where.id,
|
|
93
|
+
}, 'DeleteOrgLimitEventInput', args.select, input_types_1.connectionFieldsMap);
|
|
94
|
+
return new query_builder_1.QueryBuilder({
|
|
95
|
+
client: this.client,
|
|
96
|
+
operation: 'mutation',
|
|
97
|
+
operationName: 'OrgLimitEvent',
|
|
98
|
+
fieldName: 'deleteOrgLimitEvent',
|
|
99
|
+
document,
|
|
100
|
+
variables,
|
|
101
|
+
});
|
|
102
|
+
}
|
|
58
103
|
}
|
|
59
104
|
exports.OrgLimitEventModel = OrgLimitEventModel;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
/**
|
|
4
|
-
* CLI commands for
|
|
4
|
+
* CLI commands for AuditLogAuth
|
|
5
5
|
* @generated by @constructive-io/graphql-codegen
|
|
6
6
|
* DO NOT EDIT - changes will be overwritten
|
|
7
7
|
*/
|
|
@@ -9,6 +9,7 @@ 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',
|
|
12
13
|
id: 'uuid',
|
|
13
14
|
event: 'string',
|
|
14
15
|
actorId: 'uuid',
|
|
@@ -16,9 +17,8 @@ const fieldSchema = {
|
|
|
16
17
|
userAgent: 'string',
|
|
17
18
|
ipAddress: 'string',
|
|
18
19
|
success: 'boolean',
|
|
19
|
-
createdAt: 'string',
|
|
20
20
|
};
|
|
21
|
-
const usage = '\naudit-log <command>\n\nCommands:\n list List
|
|
21
|
+
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';
|
|
22
22
|
exports.default = async (argv, prompter, _options) => {
|
|
23
23
|
if (argv.help || argv.h) {
|
|
24
24
|
console.log(usage);
|
|
@@ -60,6 +60,7 @@ async function handleTableSubcommand(subcommand, argv, prompter) {
|
|
|
60
60
|
async function handleList(argv, _prompter) {
|
|
61
61
|
try {
|
|
62
62
|
const defaultSelect = {
|
|
63
|
+
createdAt: true,
|
|
63
64
|
id: true,
|
|
64
65
|
event: true,
|
|
65
66
|
actorId: true,
|
|
@@ -67,11 +68,10 @@ async function handleList(argv, _prompter) {
|
|
|
67
68
|
userAgent: true,
|
|
68
69
|
ipAddress: true,
|
|
69
70
|
success: true,
|
|
70
|
-
createdAt: true,
|
|
71
71
|
};
|
|
72
72
|
const findManyArgs = (0, utils_1.parseFindManyArgs)(argv, defaultSelect);
|
|
73
73
|
const client = (0, executor_1.getClient)();
|
|
74
|
-
const result = await client.
|
|
74
|
+
const result = await client.auditLogAuth.findMany(findManyArgs).execute();
|
|
75
75
|
console.log(JSON.stringify(result, null, 2));
|
|
76
76
|
}
|
|
77
77
|
catch (error) {
|
|
@@ -85,6 +85,7 @@ async function handleList(argv, _prompter) {
|
|
|
85
85
|
async function handleFindFirst(argv, _prompter) {
|
|
86
86
|
try {
|
|
87
87
|
const defaultSelect = {
|
|
88
|
+
createdAt: true,
|
|
88
89
|
id: true,
|
|
89
90
|
event: true,
|
|
90
91
|
actorId: true,
|
|
@@ -92,11 +93,10 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
92
93
|
userAgent: true,
|
|
93
94
|
ipAddress: true,
|
|
94
95
|
success: true,
|
|
95
|
-
createdAt: true,
|
|
96
96
|
};
|
|
97
97
|
const findFirstArgs = (0, utils_1.parseFindFirstArgs)(argv, defaultSelect);
|
|
98
98
|
const client = (0, executor_1.getClient)();
|
|
99
|
-
const result = await client.
|
|
99
|
+
const result = await client.auditLogAuth.findFirst(findFirstArgs).execute();
|
|
100
100
|
console.log(JSON.stringify(result, null, 2));
|
|
101
101
|
}
|
|
102
102
|
catch (error) {
|
|
@@ -118,10 +118,11 @@ async function handleGet(argv, prompter) {
|
|
|
118
118
|
},
|
|
119
119
|
]);
|
|
120
120
|
const client = (0, executor_1.getClient)();
|
|
121
|
-
const result = await client.
|
|
121
|
+
const result = await client.auditLogAuth
|
|
122
122
|
.findOne({
|
|
123
123
|
id: answers.id,
|
|
124
124
|
select: {
|
|
125
|
+
createdAt: true,
|
|
125
126
|
id: true,
|
|
126
127
|
event: true,
|
|
127
128
|
actorId: true,
|
|
@@ -129,7 +130,6 @@ async function handleGet(argv, prompter) {
|
|
|
129
130
|
userAgent: true,
|
|
130
131
|
ipAddress: true,
|
|
131
132
|
success: true,
|
|
132
|
-
createdAt: true,
|
|
133
133
|
},
|
|
134
134
|
})
|
|
135
135
|
.execute();
|
|
@@ -190,7 +190,7 @@ async function handleCreate(argv, prompter) {
|
|
|
190
190
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
191
191
|
const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
|
|
192
192
|
const client = (0, executor_1.getClient)();
|
|
193
|
-
const result = await client.
|
|
193
|
+
const result = await client.auditLogAuth
|
|
194
194
|
.create({
|
|
195
195
|
data: {
|
|
196
196
|
event: cleanedData.event,
|
|
@@ -201,6 +201,7 @@ async function handleCreate(argv, prompter) {
|
|
|
201
201
|
success: cleanedData.success,
|
|
202
202
|
},
|
|
203
203
|
select: {
|
|
204
|
+
createdAt: true,
|
|
204
205
|
id: true,
|
|
205
206
|
event: true,
|
|
206
207
|
actorId: true,
|
|
@@ -208,7 +209,6 @@ async function handleCreate(argv, prompter) {
|
|
|
208
209
|
userAgent: true,
|
|
209
210
|
ipAddress: true,
|
|
210
211
|
success: true,
|
|
211
|
-
createdAt: true,
|
|
212
212
|
},
|
|
213
213
|
})
|
|
214
214
|
.execute();
|
|
@@ -275,7 +275,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
275
275
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
276
276
|
const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
|
|
277
277
|
const client = (0, executor_1.getClient)();
|
|
278
|
-
const result = await client.
|
|
278
|
+
const result = await client.auditLogAuth
|
|
279
279
|
.update({
|
|
280
280
|
where: {
|
|
281
281
|
id: answers.id,
|
|
@@ -289,6 +289,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
289
289
|
success: cleanedData.success,
|
|
290
290
|
},
|
|
291
291
|
select: {
|
|
292
|
+
createdAt: true,
|
|
292
293
|
id: true,
|
|
293
294
|
event: true,
|
|
294
295
|
actorId: true,
|
|
@@ -296,7 +297,6 @@ async function handleUpdate(argv, prompter) {
|
|
|
296
297
|
userAgent: true,
|
|
297
298
|
ipAddress: true,
|
|
298
299
|
success: true,
|
|
299
|
-
createdAt: true,
|
|
300
300
|
},
|
|
301
301
|
})
|
|
302
302
|
.execute();
|
|
@@ -322,7 +322,7 @@ async function handleDelete(argv, prompter) {
|
|
|
322
322
|
]);
|
|
323
323
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
324
324
|
const client = (0, executor_1.getClient)();
|
|
325
|
-
const result = await client.
|
|
325
|
+
const result = await client.auditLogAuth
|
|
326
326
|
.delete({
|
|
327
327
|
where: {
|
|
328
328
|
id: answers.id,
|
package/auth/cli/commands.js
CHANGED
|
@@ -16,7 +16,7 @@ const email_1 = __importDefault(require("./commands/email"));
|
|
|
16
16
|
const phone_number_1 = __importDefault(require("./commands/phone-number"));
|
|
17
17
|
const crypto_address_1 = __importDefault(require("./commands/crypto-address"));
|
|
18
18
|
const webauthn_credential_1 = __importDefault(require("./commands/webauthn-credential"));
|
|
19
|
-
const
|
|
19
|
+
const audit_log_auth_1 = __importDefault(require("./commands/audit-log-auth"));
|
|
20
20
|
const identity_provider_1 = __importDefault(require("./commands/identity-provider"));
|
|
21
21
|
const role_type_1 = __importDefault(require("./commands/role-type"));
|
|
22
22
|
const user_connected_account_1 = __importDefault(require("./commands/user-connected-account"));
|
|
@@ -41,10 +41,10 @@ const provision_new_user_1 = __importDefault(require("./commands/provision-new-u
|
|
|
41
41
|
const reset_password_1 = __importDefault(require("./commands/reset-password"));
|
|
42
42
|
const sign_in_cross_origin_1 = __importDefault(require("./commands/sign-in-cross-origin"));
|
|
43
43
|
const sign_up_1 = __importDefault(require("./commands/sign-up"));
|
|
44
|
-
const request_cross_origin_token_1 = __importDefault(require("./commands/request-cross-origin-token"));
|
|
45
44
|
const sign_in_1 = __importDefault(require("./commands/sign-in"));
|
|
46
45
|
const extend_token_expires_1 = __importDefault(require("./commands/extend-token-expires"));
|
|
47
46
|
const create_api_key_1 = __importDefault(require("./commands/create-api-key"));
|
|
47
|
+
const request_cross_origin_token_1 = __importDefault(require("./commands/request-cross-origin-token"));
|
|
48
48
|
const forgot_password_1 = __importDefault(require("./commands/forgot-password"));
|
|
49
49
|
const send_verification_email_1 = __importDefault(require("./commands/send-verification-email"));
|
|
50
50
|
const provision_bucket_1 = __importDefault(require("./commands/provision-bucket"));
|
|
@@ -55,7 +55,7 @@ const createCommandMap = () => ({
|
|
|
55
55
|
'phone-number': phone_number_1.default,
|
|
56
56
|
'crypto-address': crypto_address_1.default,
|
|
57
57
|
'webauthn-credential': webauthn_credential_1.default,
|
|
58
|
-
'audit-log':
|
|
58
|
+
'audit-log-auth': audit_log_auth_1.default,
|
|
59
59
|
'identity-provider': identity_provider_1.default,
|
|
60
60
|
'role-type': role_type_1.default,
|
|
61
61
|
'user-connected-account': user_connected_account_1.default,
|
|
@@ -80,15 +80,15 @@ const createCommandMap = () => ({
|
|
|
80
80
|
'reset-password': reset_password_1.default,
|
|
81
81
|
'sign-in-cross-origin': sign_in_cross_origin_1.default,
|
|
82
82
|
'sign-up': sign_up_1.default,
|
|
83
|
-
'request-cross-origin-token': request_cross_origin_token_1.default,
|
|
84
83
|
'sign-in': sign_in_1.default,
|
|
85
84
|
'extend-token-expires': extend_token_expires_1.default,
|
|
86
85
|
'create-api-key': create_api_key_1.default,
|
|
86
|
+
'request-cross-origin-token': request_cross_origin_token_1.default,
|
|
87
87
|
'forgot-password': forgot_password_1.default,
|
|
88
88
|
'send-verification-email': send_verification_email_1.default,
|
|
89
89
|
'provision-bucket': provision_bucket_1.default,
|
|
90
90
|
});
|
|
91
|
-
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
|
|
91
|
+
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';
|
|
92
92
|
const commands = async (argv, prompter, options) => {
|
|
93
93
|
if (argv.help || argv.h) {
|
|
94
94
|
console.log(usage);
|