@app-vitals/agent-admin 0.0.1 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Dockerfile +43 -0
- package/README.md +72 -2
- package/e2e/agents-page.e2e.ts +338 -0
- package/e2e/chat-degraded.e2e.ts +153 -0
- package/e2e/chat-page.e2e.ts +169 -0
- package/e2e/chat-progress.e2e.ts +206 -0
- package/e2e/chat-thread-page.e2e.ts +444 -0
- package/e2e/login-page.e2e.ts +148 -0
- package/e2e/test-server.ts +427 -0
- package/openapi.json +6098 -0
- package/openapi.platform.json +5553 -0
- package/package.json +62 -4
- package/playwright.config.ts +25 -0
- package/prisma/client/browser.ts +134 -0
- package/prisma/client/client.ts +158 -0
- package/prisma/client/commonInputTypes.ts +578 -0
- package/prisma/client/enums.ts +15 -0
- package/prisma/client/internal/class.ts +424 -0
- package/prisma/client/internal/prismaNamespace.ts +2898 -0
- package/prisma/client/internal/prismaNamespaceBrowser.ts +476 -0
- package/prisma/client/models/Account.ts +1774 -0
- package/prisma/client/models/AccountInvite.ts +1386 -0
- package/prisma/client/models/AccountMember.ts +1351 -0
- package/prisma/client/models/Agent.ts +4554 -0
- package/prisma/client/models/AgentAsk.ts +1373 -0
- package/prisma/client/models/AgentChatTokenUsageDailyByModel.ts +1638 -0
- package/prisma/client/models/AgentCronJob.ts +2416 -0
- package/prisma/client/models/AgentCronRun.ts +2858 -0
- package/prisma/client/models/AgentCronRunModelBreakdown.ts +1532 -0
- package/prisma/client/models/AgentCronRunSkillUsage.ts +1642 -0
- package/prisma/client/models/AgentEnv.ts +1421 -0
- package/prisma/client/models/AgentGitHubInstallationsSnapshot.ts +1289 -0
- package/prisma/client/models/AgentMember.ts +1316 -0
- package/prisma/client/models/AgentPhaseMethodology.ts +1355 -0
- package/prisma/client/models/AgentPlugin.ts +1421 -0
- package/prisma/client/models/AgentToken.ts +1380 -0
- package/prisma/client/models/AgentTool.ts +1351 -0
- package/prisma/client/models/AgentWorkQueueSnapshot.ts +1297 -0
- package/prisma/client/models/ChatThreadWatch.ts +1183 -0
- package/prisma/client/models/PushSubscription.ts +1233 -0
- package/prisma/client/models/SessionAlertState.ts +1187 -0
- package/prisma/client/models/SessionFollow.ts +1187 -0
- package/prisma/client/models/UserNotificationPrefs.ts +1221 -0
- package/prisma/client/models.ts +34 -0
- package/prisma/migrations/20260608000000_init/migration.sql +112 -0
- package/prisma/migrations/20260616000000_agent_members/migration.sql +18 -0
- package/prisma/migrations/20260624000000_add_agent_self_hosted/migration.sql +2 -0
- package/prisma/migrations/20260624120000_add_agent_repos/migration.sql +3 -0
- package/prisma/migrations/20260625000000_add_agent_cron_run/migration.sql +26 -0
- package/prisma/migrations/20260626000000_add_cron_run_token_fields/migration.sql +10 -0
- package/prisma/migrations/20260627000000_add_agent_chat_token_usage_daily/migration.sql +18 -0
- package/prisma/migrations/20260627010000_add_agent_chat_token_usage_fk/migration.sql +2 -0
- package/prisma/migrations/20260701000000_add_chat_threads_messages/migration.sql +37 -0
- package/prisma/migrations/20260701010000_drop_chat_threads_messages/migration.sql +17 -0
- package/prisma/migrations/20260701020000_add_cron_run_model_breakdown/migration.sql +23 -0
- package/prisma/migrations/20260701020000_chat_token_by_model/migration.sql +25 -0
- package/prisma/migrations/20260701030000_add_secret_flag_to_agent_env/migration.sql +2 -0
- package/prisma/migrations/20260701030000_drop_cron_run_legacy_columns/migration.sql +5 -0
- package/prisma/migrations/20260706000000_consolidate_cron_run_token_accounting/migration.sql +54 -0
- package/prisma/migrations/20260709000000_add_phase_to_agent_cron_run/migration.sql +8 -0
- package/prisma/migrations/20260717000000_add_item_tracking_to_agent_cron_run/migration.sql +10 -0
- package/prisma/migrations/20260717010000_add_agent_work_queue_snapshot/migration.sql +20 -0
- package/prisma/migrations/20260718000000_add_cron_phase_columns/migration.sql +25 -0
- package/prisma/migrations/20260718100000_drop_agent_cron_run_phase_column/migration.sql +8 -0
- package/prisma/migrations/20260724000000_add_agent_type_name/migration.sql +3 -0
- package/prisma/migrations/20260725232433_add_agent_author_allowlist/migration.sql +2 -0
- package/prisma/migrations/20260727120000_add_not_null_to_agent_author_allowlist/migration.sql +3 -0
- package/prisma/migrations/20260731000000_add_session_id_to_agent_cron_run/migration.sql +2 -0
- package/prisma/migrations/20260821000000_add_agent_restrict_slack_to_members/migration.sql +3 -0
- package/prisma/migrations/20260901000000_add_push_subscription_and_chat_thread_watch/migration.sql +40 -0
- package/prisma/migrations/20260903000000_add_agent_patch_author_allowlist/migration.sql +2 -0
- package/prisma/migrations/20260903120000_add_agent_review_author_allowlist/migration.sql +18 -0
- package/prisma/migrations/20260903150000_drop_agent_author_allowlist/migration.sql +14 -0
- package/prisma/migrations/20260905000000_add_started_at_index_to_agent_cron_run/migration.sql +11 -0
- package/prisma/migrations/20260906000000_add_session_follow_notification_prefs_alert_state/migration.sql +47 -0
- package/prisma/migrations/20260911000000_backfill_auto_follow_since/migration.sql +16 -0
- package/prisma/migrations/20260923115814_add_last_heartbeat_at_to_agent_cron_run/migration.sql +2 -0
- package/prisma/migrations/20260924120000_add_trial_expiry_fields_to_agent/migration.sql +6 -0
- package/prisma/migrations/20260929000000_add_agent_phase_methodology/migration.sql +21 -0
- package/prisma/migrations/20260929120000_add_agent_policy_fields/migration.sql +15 -0
- package/prisma/migrations/20261005000000_add_agent_github_installations_snapshot/migration.sql +21 -0
- package/prisma/migrations/20261008000000_add_cron_run_telemetry/migration.sql +50 -0
- package/prisma/migrations/20261008010000_add_account_models/migration.sql +48 -0
- package/prisma/migrations/20261008020000_add_cron_lockdown_disabled_at/migration.sql +3 -0
- package/prisma/migrations/20261009000000_chat_token_usage_bigint/migration.sql +7 -0
- package/prisma/migrations/20261010000000_add_cron_run_command_variant/migration.sql +2 -0
- package/prisma/migrations/20261019000000_add_agent_anthropic_identity/migration.sql +9 -0
- package/prisma/migrations/20261025000000_add_agent_ask/migration.sql +23 -0
- package/prisma/migrations/migration_lock.toml +3 -0
- package/prisma/schema/coding.prisma +85 -0
- package/prisma/schema/schema.prisma +506 -0
- package/prisma.config.ts +34 -0
- package/pwa-assets/icons/apple-touch-icon.png +0 -0
- package/pwa-assets/icons/favicon-32.png +0 -0
- package/pwa-assets/icons/icon-192.png +0 -0
- package/pwa-assets/icons/icon-512.png +0 -0
- package/pwa-assets/icons/icon-maskable-192.png +0 -0
- package/pwa-assets/icons/icon-maskable-512.png +0 -0
- package/src/account-agent-create.ts +42 -0
- package/src/account-agent-create.unit.test.ts +28 -0
- package/src/account-created-notifier.ts +71 -0
- package/src/account-created-notifier.unit.test.ts +70 -0
- package/src/account-email.ts +9 -0
- package/src/account-email.unit.test.ts +21 -0
- package/src/account-invites.ts +70 -0
- package/src/account-lifecycle.integration.test.ts +329 -0
- package/src/account-lifecycle.ts +206 -0
- package/src/account-lifecycle.unit.test.ts +108 -0
- package/src/account-members.ts +128 -0
- package/src/account-onboarding.integration.test.ts +101 -0
- package/src/account-onboarding.ts +95 -0
- package/src/account-trial-expiry-sweeper.ts +85 -0
- package/src/account-trial-warning-sweeper.integration.test.ts +228 -0
- package/src/account-trial-warning-sweeper.ts +216 -0
- package/src/accounts-api.integration.test.ts +196 -0
- package/src/accounts-api.smoke.test.ts +292 -0
- package/src/accounts-api.ts +289 -0
- package/src/accounts-api.unit.test.ts +93 -0
- package/src/accounts.integration.test.ts +178 -0
- package/src/accounts.ts +208 -0
- package/src/admin-boot-config.ts +574 -0
- package/src/admin-boot-config.unit.test.ts +28 -0
- package/src/admin-boot.boot-order.unit.test.ts +91 -0
- package/src/admin-boot.ts +690 -0
- package/src/admin-dev-login.smoke.test.ts +317 -0
- package/src/admin-extension.ts +432 -0
- package/src/admin-extension.unit.test.ts +532 -0
- package/src/admin-local-agent.smoke.test.ts +1643 -0
- package/src/admin-spec.smoke.test.ts +96 -0
- package/src/admin-spec.ts +186 -0
- package/src/admin-ui-account-nav.ts +20 -0
- package/src/admin-ui-account-pages.ts +131 -0
- package/src/admin-ui-account-pages.unit.test.ts +112 -0
- package/src/admin-ui-account.smoke.test.ts +286 -0
- package/src/admin-ui-account.ts +185 -0
- package/src/admin-ui-accounts-pages.ts +202 -0
- package/src/admin-ui-accounts-pages.unit.test.ts +138 -0
- package/src/admin-ui-accounts.smoke.test.ts +434 -0
- package/src/admin-ui-accounts.ts +266 -0
- package/src/admin-ui-layout.ts +60 -0
- package/src/admin-ui-layout.unit.test.ts +140 -0
- package/src/admin-ui-pages.ts +3489 -0
- package/src/admin-ui-pages.unit.test.ts +4355 -0
- package/src/admin-ui-push-test.smoke.test.ts +125 -0
- package/src/admin-ui-push-test.ts +102 -0
- package/src/admin-ui-styles.ts +656 -0
- package/src/admin-ui-styles.unit.test.ts +103 -0
- package/src/admin-ui.fixtures.ts +457 -0
- package/src/admin-ui.smoke.test.ts +7227 -0
- package/src/admin-ui.ts +3824 -0
- package/src/agent-account-assignment.ts +49 -0
- package/src/agent-account-assignment.unit.test.ts +99 -0
- package/src/agent-anthropic-identity.integration.test.ts +99 -0
- package/src/agent-anthropic-identity.ts +78 -0
- package/src/agent-anthropic-identity.unit.test.ts +77 -0
- package/src/agent-ask-config.ts +59 -0
- package/src/agent-ask-config.unit.test.ts +70 -0
- package/src/agent-ask.integration.test.ts +175 -0
- package/src/agent-ask.smoke.test.ts +457 -0
- package/src/agent-ask.ts +378 -0
- package/src/agent-chat-tokens.integration.test.ts +420 -0
- package/src/agent-chat-tokens.smoke.test.ts +551 -0
- package/src/agent-chat-tokens.ts +259 -0
- package/src/agent-cron-jobs.integration.test.ts +582 -0
- package/src/agent-cron-jobs.ts +615 -0
- package/src/agent-cron-jobs.unit.test.ts +420 -0
- package/src/agent-cron-run-stats.integration.test.ts +1551 -0
- package/src/agent-cron-run-stats.smoke.test.ts +953 -0
- package/src/agent-cron-run-stats.ts +752 -0
- package/src/agent-cron-runs.integration.test.ts +1491 -0
- package/src/agent-cron-runs.ts +489 -0
- package/src/agent-deletion-checklist.ts +128 -0
- package/src/agent-deletion-checklist.unit.test.ts +201 -0
- package/src/agent-deletion-per-agent.integration.test.ts +323 -0
- package/src/agent-deletion.integration.test.ts +323 -0
- package/src/agent-deletion.ts +329 -0
- package/src/agent-deletion.unit.test.ts +412 -0
- package/src/agent-envs.integration.test.ts +323 -0
- package/src/agent-envs.ts +244 -0
- package/src/agent-github-installations.integration.test.ts +115 -0
- package/src/agent-github-installations.ts +52 -0
- package/src/agent-manifest.ts +685 -0
- package/src/agent-manifest.unit.test.ts +870 -0
- package/src/agent-members.ts +69 -0
- package/src/agent-members.unit.test.ts +250 -0
- package/src/agent-patch-author-allowlist.integration.test.ts +218 -0
- package/src/agent-plugins.integration.test.ts +157 -0
- package/src/agent-plugins.ts +95 -0
- package/src/agent-plugins.unit.test.ts +43 -0
- package/src/agent-provisioner-per-agent.integration.test.ts +949 -0
- package/src/agent-provisioner.integration.test.ts +1245 -0
- package/src/agent-provisioner.ts +1650 -0
- package/src/agent-provisioner.unit.test.ts +1852 -0
- package/src/agent-tokens.integration.test.ts +150 -0
- package/src/agent-tokens.ts +112 -0
- package/src/agent-tools.integration.test.ts +129 -0
- package/src/agent-tools.ts +111 -0
- package/src/agents-api.integration.test.ts +705 -0
- package/src/agents-api.sentry.smoke.test.ts +478 -0
- package/src/agents-api.smoke.test.ts +5986 -0
- package/src/agents-api.ts +2826 -0
- package/src/agents.integration.test.ts +512 -0
- package/src/agents.ts +1097 -0
- package/src/agents.unit.test.ts +1736 -0
- package/src/anthropic-credential-guard.ts +44 -0
- package/src/anthropic-credential-guard.unit.test.ts +88 -0
- package/src/anthropic-federated-token-provider.integration.test.ts +248 -0
- package/src/anthropic-federated-token-provider.ts +249 -0
- package/src/anthropic-identity-client.fixtures.ts +237 -0
- package/src/anthropic-identity-client.integration.test.ts +342 -0
- package/src/anthropic-identity-client.ts +473 -0
- package/src/anthropic-identity-fixture-spec.integration.test.ts +169 -0
- package/src/anthropic-identity-name.integration.test.ts +83 -0
- package/src/anthropic-identity-name.ts +163 -0
- package/src/anthropic-identity-name.unit.test.ts +345 -0
- package/src/anthropic-openapi-contract.fixtures.ts +192 -0
- package/src/api-auth.ts +383 -0
- package/src/api-auth.unit.test.ts +837 -0
- package/src/api.smoke.test.ts +1225 -0
- package/src/api.ts +376 -0
- package/src/attachment-validation.ts +124 -0
- package/src/attachment-validation.unit.test.ts +218 -0
- package/src/caller-scope.ts +131 -0
- package/src/caller-scope.unit.test.ts +116 -0
- package/src/chat-credential-config.ts +22 -0
- package/src/chat-credentials-logging.unit.test.ts +92 -0
- package/src/chat-markers.ts +114 -0
- package/src/chat-markers.unit.test.ts +116 -0
- package/src/chat-service-provisioning-client.integration.test.ts +412 -0
- package/src/chat-service-provisioning-client.ts +221 -0
- package/src/chat.smoke.test.ts +1875 -0
- package/src/clock.ts +47 -0
- package/src/coding-task-store-provisioning-client.integration.test.ts +372 -0
- package/src/coding-task-store-provisioning-client.ts +156 -0
- package/src/crypto.ts +83 -0
- package/src/dev-auth-guard.ts +29 -0
- package/src/dev-auth-guard.unit.test.ts +51 -0
- package/src/errors.ts +77 -0
- package/src/errors.unit.test.ts +52 -0
- package/src/fixtures/anthropic-identity-recorded-fixtures.json +850 -0
- package/src/fixtures/anthropic-openapi/SDK_VERSION +1 -0
- package/src/fixtures/anthropic-openapi/mock-spec.json.gz +0 -0
- package/src/fixtures/chat-service-provisioning-cassette.json +156 -0
- package/src/fixtures/github-app-manifest-cassette.json +44 -0
- package/src/fixtures/google-auth-cassette.json +36 -0
- package/src/fixtures/http-chat-client-cassette.json +226 -0
- package/src/fixtures/k8s-cassette.json +470 -0
- package/src/fixtures/okta-auth-cassette.json +36 -0
- package/src/fixtures/slack-provision-cassette.json +12 -0
- package/src/fixtures/slack-provisioning-http-cassette.json +98 -0
- package/src/fixtures/task-store-provisioning-cassette.json +85 -0
- package/src/github-app-provisioning-client.integration.test.ts +149 -0
- package/src/github-app-provisioning-client.ts +161 -0
- package/src/github-app-provisioning-client.unit.test.ts +114 -0
- package/src/github-provisioning-service.ts +569 -0
- package/src/github-provisioning-service.unit.test.ts +123 -0
- package/src/google-auth-client.integration.test.ts +195 -0
- package/src/google-auth-client.ts +121 -0
- package/src/http-chat-client.integration.test.ts +554 -0
- package/src/http-chat-client.ts +533 -0
- package/src/http-chat-client.unit.test.ts +119 -0
- package/src/import-boundary.unit.test.ts +240 -0
- package/src/kubernetes-client.integration.test.ts +697 -0
- package/src/kubernetes-client.ts +1027 -0
- package/src/kubernetes-client.unit.test.ts +726 -0
- package/src/main.smoke.test.ts +91 -0
- package/src/main.ts +21 -0
- package/src/main.unit.test.ts +801 -0
- package/src/okta-auth-client.integration.test.ts +263 -0
- package/src/okta-auth-client.ts +152 -0
- package/src/openapi-schemas.ts +1310 -0
- package/src/openapi-schemas.unit.test.ts +348 -0
- package/src/per-agent-identity.fixtures.ts +305 -0
- package/src/platform-doc-route.ts +40 -0
- package/src/prisma-client.integration.test.ts +57 -0
- package/src/prisma-client.ts +187 -0
- package/src/prisma-client.unit.test.ts +178 -0
- package/src/prisma-tx.ts +23 -0
- package/src/push-content.ts +177 -0
- package/src/push-content.unit.test.ts +213 -0
- package/src/push-crypto.ts +135 -0
- package/src/push-crypto.unit.test.ts +66 -0
- package/src/push-sender.ts +169 -0
- package/src/push-sender.unit.test.ts +107 -0
- package/src/push-service.ts +332 -0
- package/src/push-service.unit.test.ts +679 -0
- package/src/push-toggle.ts +135 -0
- package/src/push-toggle.unit.test.ts +78 -0
- package/src/pwa-https-gating.smoke.test.ts +229 -0
- package/src/pwa-icons.unit.test.ts +41 -0
- package/src/pwa-routes.smoke.test.ts +276 -0
- package/src/pwa.ts +380 -0
- package/src/pwa.unit.test.ts +321 -0
- package/src/schema.unit.test.ts +122 -0
- package/src/self-serve-config.ts +52 -0
- package/src/self-serve-config.unit.test.ts +79 -0
- package/src/server.smoke.test.ts +273 -0
- package/src/server.ts +50 -0
- package/src/service-integration.ts +67 -0
- package/src/service-integration.unit.test.ts +129 -0
- package/src/slack-provisioning-client.integration.test.ts +308 -0
- package/src/slack-provisioning-client.ts +411 -0
- package/src/slack-provisioning-client.unit.test.ts +80 -0
- package/src/slack-provisioning-service.integration.test.ts +637 -0
- package/src/slack-provisioning-service.ts +451 -0
- package/src/slack-provisioning.integration.test.ts +395 -0
- package/src/specialty-manifest-loader.fixture.integration.test.ts +63 -0
- package/src/specialty-manifest-loader.ts +255 -0
- package/src/specialty-manifest-loader.unit.test.ts +301 -0
- package/src/specialty-registry.schema.unit.test.ts +35 -0
- package/src/specialty-registry.ts +236 -0
- package/src/specialty-registry.unit.test.ts +272 -0
- package/src/startup-policy-reconcile.ts +77 -0
- package/src/startup-policy-reconcile.unit.test.ts +251 -0
- package/src/theme-tokens.json +12 -0
- package/src/token-crypto.ts +60 -0
- package/src/token-crypto.unit.test.ts +182 -0
- package/src/trial-expiry-sweeper.integration.test.ts +318 -0
- package/src/trial-expiry-sweeper.ts +132 -0
- package/src/trial-expiry-sweeper.unit.test.ts +391 -0
- package/src/trial-expiry-warning-sweeper.integration.test.ts +468 -0
- package/src/trial-expiry-warning-sweeper.ts +447 -0
- package/src/trial-expiry-warning-sweeper.unit.test.ts +148 -0
- package/src/voice-contract.unit.test.ts +102 -0
- package/tsconfig.json +9 -0
|
@@ -0,0 +1,1297 @@
|
|
|
1
|
+
|
|
2
|
+
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// biome-ignore-all lint: generated file
|
|
5
|
+
// @ts-nocheck
|
|
6
|
+
/*
|
|
7
|
+
* This file exports the `AgentWorkQueueSnapshot` model and its related types.
|
|
8
|
+
*
|
|
9
|
+
* 🟢 You can import this file directly.
|
|
10
|
+
*/
|
|
11
|
+
import type * as runtime from "@prisma/client/runtime/client"
|
|
12
|
+
import type * as $Enums from "../enums.ts"
|
|
13
|
+
import type * as Prisma from "../internal/prismaNamespace.ts"
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Model AgentWorkQueueSnapshot
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export type AgentWorkQueueSnapshotModel = runtime.Types.Result.DefaultSelection<Prisma.$AgentWorkQueueSnapshotPayload>
|
|
20
|
+
|
|
21
|
+
export type AggregateAgentWorkQueueSnapshot = {
|
|
22
|
+
_count: AgentWorkQueueSnapshotCountAggregateOutputType | null
|
|
23
|
+
_min: AgentWorkQueueSnapshotMinAggregateOutputType | null
|
|
24
|
+
_max: AgentWorkQueueSnapshotMaxAggregateOutputType | null
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type AgentWorkQueueSnapshotMinAggregateOutputType = {
|
|
28
|
+
id: string | null
|
|
29
|
+
agentId: string | null
|
|
30
|
+
computedAt: Date | null
|
|
31
|
+
createdAt: Date | null
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export type AgentWorkQueueSnapshotMaxAggregateOutputType = {
|
|
35
|
+
id: string | null
|
|
36
|
+
agentId: string | null
|
|
37
|
+
computedAt: Date | null
|
|
38
|
+
createdAt: Date | null
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export type AgentWorkQueueSnapshotCountAggregateOutputType = {
|
|
42
|
+
id: number
|
|
43
|
+
agentId: number
|
|
44
|
+
computedAt: number
|
|
45
|
+
items: number
|
|
46
|
+
createdAt: number
|
|
47
|
+
_all: number
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
export type AgentWorkQueueSnapshotMinAggregateInputType = {
|
|
52
|
+
id?: true
|
|
53
|
+
agentId?: true
|
|
54
|
+
computedAt?: true
|
|
55
|
+
createdAt?: true
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export type AgentWorkQueueSnapshotMaxAggregateInputType = {
|
|
59
|
+
id?: true
|
|
60
|
+
agentId?: true
|
|
61
|
+
computedAt?: true
|
|
62
|
+
createdAt?: true
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export type AgentWorkQueueSnapshotCountAggregateInputType = {
|
|
66
|
+
id?: true
|
|
67
|
+
agentId?: true
|
|
68
|
+
computedAt?: true
|
|
69
|
+
items?: true
|
|
70
|
+
createdAt?: true
|
|
71
|
+
_all?: true
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export type AgentWorkQueueSnapshotAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
75
|
+
/**
|
|
76
|
+
* Filter which AgentWorkQueueSnapshot to aggregate.
|
|
77
|
+
*/
|
|
78
|
+
where?: Prisma.AgentWorkQueueSnapshotWhereInput
|
|
79
|
+
/**
|
|
80
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
81
|
+
*
|
|
82
|
+
* Determine the order of AgentWorkQueueSnapshots to fetch.
|
|
83
|
+
*/
|
|
84
|
+
orderBy?: Prisma.AgentWorkQueueSnapshotOrderByWithRelationInput | Prisma.AgentWorkQueueSnapshotOrderByWithRelationInput[]
|
|
85
|
+
/**
|
|
86
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
87
|
+
*
|
|
88
|
+
* Sets the start position
|
|
89
|
+
*/
|
|
90
|
+
cursor?: Prisma.AgentWorkQueueSnapshotWhereUniqueInput
|
|
91
|
+
/**
|
|
92
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
93
|
+
*
|
|
94
|
+
* Take `±n` AgentWorkQueueSnapshots from the position of the cursor.
|
|
95
|
+
*/
|
|
96
|
+
take?: number
|
|
97
|
+
/**
|
|
98
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
99
|
+
*
|
|
100
|
+
* Skip the first `n` AgentWorkQueueSnapshots.
|
|
101
|
+
*/
|
|
102
|
+
skip?: number
|
|
103
|
+
/**
|
|
104
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
105
|
+
*
|
|
106
|
+
* Count returned AgentWorkQueueSnapshots
|
|
107
|
+
**/
|
|
108
|
+
_count?: true | AgentWorkQueueSnapshotCountAggregateInputType
|
|
109
|
+
/**
|
|
110
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
111
|
+
*
|
|
112
|
+
* Select which fields to find the minimum value
|
|
113
|
+
**/
|
|
114
|
+
_min?: AgentWorkQueueSnapshotMinAggregateInputType
|
|
115
|
+
/**
|
|
116
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
117
|
+
*
|
|
118
|
+
* Select which fields to find the maximum value
|
|
119
|
+
**/
|
|
120
|
+
_max?: AgentWorkQueueSnapshotMaxAggregateInputType
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export type GetAgentWorkQueueSnapshotAggregateType<T extends AgentWorkQueueSnapshotAggregateArgs> = {
|
|
124
|
+
[P in keyof T & keyof AggregateAgentWorkQueueSnapshot]: P extends '_count' | 'count'
|
|
125
|
+
? T[P] extends true
|
|
126
|
+
? number
|
|
127
|
+
: Prisma.GetScalarType<T[P], AggregateAgentWorkQueueSnapshot[P]>
|
|
128
|
+
: Prisma.GetScalarType<T[P], AggregateAgentWorkQueueSnapshot[P]>
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
export type AgentWorkQueueSnapshotGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
135
|
+
where?: Prisma.AgentWorkQueueSnapshotWhereInput
|
|
136
|
+
orderBy?: Prisma.AgentWorkQueueSnapshotOrderByWithAggregationInput | Prisma.AgentWorkQueueSnapshotOrderByWithAggregationInput[]
|
|
137
|
+
by: Prisma.AgentWorkQueueSnapshotScalarFieldEnum[] | Prisma.AgentWorkQueueSnapshotScalarFieldEnum
|
|
138
|
+
having?: Prisma.AgentWorkQueueSnapshotScalarWhereWithAggregatesInput
|
|
139
|
+
take?: number
|
|
140
|
+
skip?: number
|
|
141
|
+
_count?: AgentWorkQueueSnapshotCountAggregateInputType | true
|
|
142
|
+
_min?: AgentWorkQueueSnapshotMinAggregateInputType
|
|
143
|
+
_max?: AgentWorkQueueSnapshotMaxAggregateInputType
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export type AgentWorkQueueSnapshotGroupByOutputType = {
|
|
147
|
+
id: string
|
|
148
|
+
agentId: string
|
|
149
|
+
computedAt: Date
|
|
150
|
+
items: runtime.JsonValue
|
|
151
|
+
createdAt: Date
|
|
152
|
+
_count: AgentWorkQueueSnapshotCountAggregateOutputType | null
|
|
153
|
+
_min: AgentWorkQueueSnapshotMinAggregateOutputType | null
|
|
154
|
+
_max: AgentWorkQueueSnapshotMaxAggregateOutputType | null
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export type GetAgentWorkQueueSnapshotGroupByPayload<T extends AgentWorkQueueSnapshotGroupByArgs> = Prisma.PrismaPromise<
|
|
158
|
+
Array<
|
|
159
|
+
Prisma.PickEnumerable<AgentWorkQueueSnapshotGroupByOutputType, T['by']> &
|
|
160
|
+
{
|
|
161
|
+
[P in ((keyof T) & (keyof AgentWorkQueueSnapshotGroupByOutputType))]: P extends '_count'
|
|
162
|
+
? T[P] extends boolean
|
|
163
|
+
? number
|
|
164
|
+
: Prisma.GetScalarType<T[P], AgentWorkQueueSnapshotGroupByOutputType[P]>
|
|
165
|
+
: Prisma.GetScalarType<T[P], AgentWorkQueueSnapshotGroupByOutputType[P]>
|
|
166
|
+
}
|
|
167
|
+
>
|
|
168
|
+
>
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
export type AgentWorkQueueSnapshotWhereInput = {
|
|
173
|
+
AND?: Prisma.AgentWorkQueueSnapshotWhereInput | Prisma.AgentWorkQueueSnapshotWhereInput[]
|
|
174
|
+
OR?: Prisma.AgentWorkQueueSnapshotWhereInput[]
|
|
175
|
+
NOT?: Prisma.AgentWorkQueueSnapshotWhereInput | Prisma.AgentWorkQueueSnapshotWhereInput[]
|
|
176
|
+
id?: Prisma.StringFilter<"AgentWorkQueueSnapshot"> | string
|
|
177
|
+
agentId?: Prisma.StringFilter<"AgentWorkQueueSnapshot"> | string
|
|
178
|
+
computedAt?: Prisma.DateTimeFilter<"AgentWorkQueueSnapshot"> | Date | string
|
|
179
|
+
items?: Prisma.JsonFilter<"AgentWorkQueueSnapshot">
|
|
180
|
+
createdAt?: Prisma.DateTimeFilter<"AgentWorkQueueSnapshot"> | Date | string
|
|
181
|
+
agent?: Prisma.XOR<Prisma.AgentScalarRelationFilter, Prisma.AgentWhereInput>
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export type AgentWorkQueueSnapshotOrderByWithRelationInput = {
|
|
185
|
+
id?: Prisma.SortOrder
|
|
186
|
+
agentId?: Prisma.SortOrder
|
|
187
|
+
computedAt?: Prisma.SortOrder
|
|
188
|
+
items?: Prisma.SortOrder
|
|
189
|
+
createdAt?: Prisma.SortOrder
|
|
190
|
+
agent?: Prisma.AgentOrderByWithRelationInput
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export type AgentWorkQueueSnapshotWhereUniqueInput = Prisma.AtLeast<{
|
|
194
|
+
id?: string
|
|
195
|
+
agentId?: string
|
|
196
|
+
AND?: Prisma.AgentWorkQueueSnapshotWhereInput | Prisma.AgentWorkQueueSnapshotWhereInput[]
|
|
197
|
+
OR?: Prisma.AgentWorkQueueSnapshotWhereInput[]
|
|
198
|
+
NOT?: Prisma.AgentWorkQueueSnapshotWhereInput | Prisma.AgentWorkQueueSnapshotWhereInput[]
|
|
199
|
+
computedAt?: Prisma.DateTimeFilter<"AgentWorkQueueSnapshot"> | Date | string
|
|
200
|
+
items?: Prisma.JsonFilter<"AgentWorkQueueSnapshot">
|
|
201
|
+
createdAt?: Prisma.DateTimeFilter<"AgentWorkQueueSnapshot"> | Date | string
|
|
202
|
+
agent?: Prisma.XOR<Prisma.AgentScalarRelationFilter, Prisma.AgentWhereInput>
|
|
203
|
+
}, "id" | "agentId">
|
|
204
|
+
|
|
205
|
+
export type AgentWorkQueueSnapshotOrderByWithAggregationInput = {
|
|
206
|
+
id?: Prisma.SortOrder
|
|
207
|
+
agentId?: Prisma.SortOrder
|
|
208
|
+
computedAt?: Prisma.SortOrder
|
|
209
|
+
items?: Prisma.SortOrder
|
|
210
|
+
createdAt?: Prisma.SortOrder
|
|
211
|
+
_count?: Prisma.AgentWorkQueueSnapshotCountOrderByAggregateInput
|
|
212
|
+
_max?: Prisma.AgentWorkQueueSnapshotMaxOrderByAggregateInput
|
|
213
|
+
_min?: Prisma.AgentWorkQueueSnapshotMinOrderByAggregateInput
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export type AgentWorkQueueSnapshotScalarWhereWithAggregatesInput = {
|
|
217
|
+
AND?: Prisma.AgentWorkQueueSnapshotScalarWhereWithAggregatesInput | Prisma.AgentWorkQueueSnapshotScalarWhereWithAggregatesInput[]
|
|
218
|
+
OR?: Prisma.AgentWorkQueueSnapshotScalarWhereWithAggregatesInput[]
|
|
219
|
+
NOT?: Prisma.AgentWorkQueueSnapshotScalarWhereWithAggregatesInput | Prisma.AgentWorkQueueSnapshotScalarWhereWithAggregatesInput[]
|
|
220
|
+
id?: Prisma.StringWithAggregatesFilter<"AgentWorkQueueSnapshot"> | string
|
|
221
|
+
agentId?: Prisma.StringWithAggregatesFilter<"AgentWorkQueueSnapshot"> | string
|
|
222
|
+
computedAt?: Prisma.DateTimeWithAggregatesFilter<"AgentWorkQueueSnapshot"> | Date | string
|
|
223
|
+
items?: Prisma.JsonWithAggregatesFilter<"AgentWorkQueueSnapshot">
|
|
224
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"AgentWorkQueueSnapshot"> | Date | string
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
export type AgentWorkQueueSnapshotCreateInput = {
|
|
228
|
+
id?: string
|
|
229
|
+
computedAt: Date | string
|
|
230
|
+
items: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
231
|
+
createdAt?: Date | string
|
|
232
|
+
agent: Prisma.AgentCreateNestedOneWithoutWorkQueueSnapshotInput
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export type AgentWorkQueueSnapshotUncheckedCreateInput = {
|
|
236
|
+
id?: string
|
|
237
|
+
agentId: string
|
|
238
|
+
computedAt: Date | string
|
|
239
|
+
items: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
240
|
+
createdAt?: Date | string
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export type AgentWorkQueueSnapshotUpdateInput = {
|
|
244
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
245
|
+
computedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
246
|
+
items?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
247
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
248
|
+
agent?: Prisma.AgentUpdateOneRequiredWithoutWorkQueueSnapshotNestedInput
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
export type AgentWorkQueueSnapshotUncheckedUpdateInput = {
|
|
252
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
253
|
+
agentId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
254
|
+
computedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
255
|
+
items?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
256
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
export type AgentWorkQueueSnapshotCreateManyInput = {
|
|
260
|
+
id?: string
|
|
261
|
+
agentId: string
|
|
262
|
+
computedAt: Date | string
|
|
263
|
+
items: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
264
|
+
createdAt?: Date | string
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
export type AgentWorkQueueSnapshotUpdateManyMutationInput = {
|
|
268
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
269
|
+
computedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
270
|
+
items?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
271
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
export type AgentWorkQueueSnapshotUncheckedUpdateManyInput = {
|
|
275
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
276
|
+
agentId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
277
|
+
computedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
278
|
+
items?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
279
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
export type AgentWorkQueueSnapshotCountOrderByAggregateInput = {
|
|
283
|
+
id?: Prisma.SortOrder
|
|
284
|
+
agentId?: Prisma.SortOrder
|
|
285
|
+
computedAt?: Prisma.SortOrder
|
|
286
|
+
items?: Prisma.SortOrder
|
|
287
|
+
createdAt?: Prisma.SortOrder
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
export type AgentWorkQueueSnapshotMaxOrderByAggregateInput = {
|
|
291
|
+
id?: Prisma.SortOrder
|
|
292
|
+
agentId?: Prisma.SortOrder
|
|
293
|
+
computedAt?: Prisma.SortOrder
|
|
294
|
+
createdAt?: Prisma.SortOrder
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
export type AgentWorkQueueSnapshotMinOrderByAggregateInput = {
|
|
298
|
+
id?: Prisma.SortOrder
|
|
299
|
+
agentId?: Prisma.SortOrder
|
|
300
|
+
computedAt?: Prisma.SortOrder
|
|
301
|
+
createdAt?: Prisma.SortOrder
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
export type AgentWorkQueueSnapshotNullableScalarRelationFilter = {
|
|
305
|
+
is?: Prisma.AgentWorkQueueSnapshotWhereInput | null
|
|
306
|
+
isNot?: Prisma.AgentWorkQueueSnapshotWhereInput | null
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
export type StringFieldUpdateOperationsInput = {
|
|
310
|
+
set?: string
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
export type DateTimeFieldUpdateOperationsInput = {
|
|
314
|
+
set?: Date | string
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
export type AgentWorkQueueSnapshotCreateNestedOneWithoutAgentInput = {
|
|
318
|
+
create?: Prisma.XOR<Prisma.AgentWorkQueueSnapshotCreateWithoutAgentInput, Prisma.AgentWorkQueueSnapshotUncheckedCreateWithoutAgentInput>
|
|
319
|
+
connectOrCreate?: Prisma.AgentWorkQueueSnapshotCreateOrConnectWithoutAgentInput
|
|
320
|
+
connect?: Prisma.AgentWorkQueueSnapshotWhereUniqueInput
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
export type AgentWorkQueueSnapshotUncheckedCreateNestedOneWithoutAgentInput = {
|
|
324
|
+
create?: Prisma.XOR<Prisma.AgentWorkQueueSnapshotCreateWithoutAgentInput, Prisma.AgentWorkQueueSnapshotUncheckedCreateWithoutAgentInput>
|
|
325
|
+
connectOrCreate?: Prisma.AgentWorkQueueSnapshotCreateOrConnectWithoutAgentInput
|
|
326
|
+
connect?: Prisma.AgentWorkQueueSnapshotWhereUniqueInput
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
export type AgentWorkQueueSnapshotUpdateOneWithoutAgentNestedInput = {
|
|
330
|
+
create?: Prisma.XOR<Prisma.AgentWorkQueueSnapshotCreateWithoutAgentInput, Prisma.AgentWorkQueueSnapshotUncheckedCreateWithoutAgentInput>
|
|
331
|
+
connectOrCreate?: Prisma.AgentWorkQueueSnapshotCreateOrConnectWithoutAgentInput
|
|
332
|
+
upsert?: Prisma.AgentWorkQueueSnapshotUpsertWithoutAgentInput
|
|
333
|
+
disconnect?: Prisma.AgentWorkQueueSnapshotWhereInput | boolean
|
|
334
|
+
delete?: Prisma.AgentWorkQueueSnapshotWhereInput | boolean
|
|
335
|
+
connect?: Prisma.AgentWorkQueueSnapshotWhereUniqueInput
|
|
336
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.AgentWorkQueueSnapshotUpdateToOneWithWhereWithoutAgentInput, Prisma.AgentWorkQueueSnapshotUpdateWithoutAgentInput>, Prisma.AgentWorkQueueSnapshotUncheckedUpdateWithoutAgentInput>
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
export type AgentWorkQueueSnapshotUncheckedUpdateOneWithoutAgentNestedInput = {
|
|
340
|
+
create?: Prisma.XOR<Prisma.AgentWorkQueueSnapshotCreateWithoutAgentInput, Prisma.AgentWorkQueueSnapshotUncheckedCreateWithoutAgentInput>
|
|
341
|
+
connectOrCreate?: Prisma.AgentWorkQueueSnapshotCreateOrConnectWithoutAgentInput
|
|
342
|
+
upsert?: Prisma.AgentWorkQueueSnapshotUpsertWithoutAgentInput
|
|
343
|
+
disconnect?: Prisma.AgentWorkQueueSnapshotWhereInput | boolean
|
|
344
|
+
delete?: Prisma.AgentWorkQueueSnapshotWhereInput | boolean
|
|
345
|
+
connect?: Prisma.AgentWorkQueueSnapshotWhereUniqueInput
|
|
346
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.AgentWorkQueueSnapshotUpdateToOneWithWhereWithoutAgentInput, Prisma.AgentWorkQueueSnapshotUpdateWithoutAgentInput>, Prisma.AgentWorkQueueSnapshotUncheckedUpdateWithoutAgentInput>
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
export type AgentWorkQueueSnapshotCreateWithoutAgentInput = {
|
|
350
|
+
id?: string
|
|
351
|
+
computedAt: Date | string
|
|
352
|
+
items: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
353
|
+
createdAt?: Date | string
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
export type AgentWorkQueueSnapshotUncheckedCreateWithoutAgentInput = {
|
|
357
|
+
id?: string
|
|
358
|
+
computedAt: Date | string
|
|
359
|
+
items: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
360
|
+
createdAt?: Date | string
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
export type AgentWorkQueueSnapshotCreateOrConnectWithoutAgentInput = {
|
|
364
|
+
where: Prisma.AgentWorkQueueSnapshotWhereUniqueInput
|
|
365
|
+
create: Prisma.XOR<Prisma.AgentWorkQueueSnapshotCreateWithoutAgentInput, Prisma.AgentWorkQueueSnapshotUncheckedCreateWithoutAgentInput>
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
export type AgentWorkQueueSnapshotUpsertWithoutAgentInput = {
|
|
369
|
+
update: Prisma.XOR<Prisma.AgentWorkQueueSnapshotUpdateWithoutAgentInput, Prisma.AgentWorkQueueSnapshotUncheckedUpdateWithoutAgentInput>
|
|
370
|
+
create: Prisma.XOR<Prisma.AgentWorkQueueSnapshotCreateWithoutAgentInput, Prisma.AgentWorkQueueSnapshotUncheckedCreateWithoutAgentInput>
|
|
371
|
+
where?: Prisma.AgentWorkQueueSnapshotWhereInput
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
export type AgentWorkQueueSnapshotUpdateToOneWithWhereWithoutAgentInput = {
|
|
375
|
+
where?: Prisma.AgentWorkQueueSnapshotWhereInput
|
|
376
|
+
data: Prisma.XOR<Prisma.AgentWorkQueueSnapshotUpdateWithoutAgentInput, Prisma.AgentWorkQueueSnapshotUncheckedUpdateWithoutAgentInput>
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
export type AgentWorkQueueSnapshotUpdateWithoutAgentInput = {
|
|
380
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
381
|
+
computedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
382
|
+
items?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
383
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
export type AgentWorkQueueSnapshotUncheckedUpdateWithoutAgentInput = {
|
|
387
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
388
|
+
computedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
389
|
+
items?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
390
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
export type AgentWorkQueueSnapshotSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
396
|
+
id?: boolean
|
|
397
|
+
agentId?: boolean
|
|
398
|
+
computedAt?: boolean
|
|
399
|
+
items?: boolean
|
|
400
|
+
createdAt?: boolean
|
|
401
|
+
agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
|
|
402
|
+
}, ExtArgs["result"]["agentWorkQueueSnapshot"]>
|
|
403
|
+
|
|
404
|
+
export type AgentWorkQueueSnapshotSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
405
|
+
id?: boolean
|
|
406
|
+
agentId?: boolean
|
|
407
|
+
computedAt?: boolean
|
|
408
|
+
items?: boolean
|
|
409
|
+
createdAt?: boolean
|
|
410
|
+
agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
|
|
411
|
+
}, ExtArgs["result"]["agentWorkQueueSnapshot"]>
|
|
412
|
+
|
|
413
|
+
export type AgentWorkQueueSnapshotSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
414
|
+
id?: boolean
|
|
415
|
+
agentId?: boolean
|
|
416
|
+
computedAt?: boolean
|
|
417
|
+
items?: boolean
|
|
418
|
+
createdAt?: boolean
|
|
419
|
+
agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
|
|
420
|
+
}, ExtArgs["result"]["agentWorkQueueSnapshot"]>
|
|
421
|
+
|
|
422
|
+
export type AgentWorkQueueSnapshotSelectScalar = {
|
|
423
|
+
id?: boolean
|
|
424
|
+
agentId?: boolean
|
|
425
|
+
computedAt?: boolean
|
|
426
|
+
items?: boolean
|
|
427
|
+
createdAt?: boolean
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
export type AgentWorkQueueSnapshotOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "agentId" | "computedAt" | "items" | "createdAt", ExtArgs["result"]["agentWorkQueueSnapshot"]>
|
|
431
|
+
export type AgentWorkQueueSnapshotInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
432
|
+
agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
|
|
433
|
+
}
|
|
434
|
+
export type AgentWorkQueueSnapshotIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
435
|
+
agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
|
|
436
|
+
}
|
|
437
|
+
export type AgentWorkQueueSnapshotIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
438
|
+
agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
export type $AgentWorkQueueSnapshotPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
442
|
+
name: "AgentWorkQueueSnapshot"
|
|
443
|
+
objects: {
|
|
444
|
+
agent: Prisma.$AgentPayload<ExtArgs>
|
|
445
|
+
}
|
|
446
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
447
|
+
id: string
|
|
448
|
+
agentId: string
|
|
449
|
+
computedAt: Date
|
|
450
|
+
items: runtime.JsonValue
|
|
451
|
+
createdAt: Date
|
|
452
|
+
}, ExtArgs["result"]["agentWorkQueueSnapshot"]>
|
|
453
|
+
composites: {}
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
export type AgentWorkQueueSnapshotGetPayload<S extends boolean | null | undefined | AgentWorkQueueSnapshotDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AgentWorkQueueSnapshotPayload, S>
|
|
457
|
+
|
|
458
|
+
export type AgentWorkQueueSnapshotCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
459
|
+
Omit<AgentWorkQueueSnapshotFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
460
|
+
select?: AgentWorkQueueSnapshotCountAggregateInputType | true
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
export interface AgentWorkQueueSnapshotDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
464
|
+
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AgentWorkQueueSnapshot'], meta: { name: 'AgentWorkQueueSnapshot' } }
|
|
465
|
+
/**
|
|
466
|
+
* Find zero or one AgentWorkQueueSnapshot that matches the filter.
|
|
467
|
+
* @param {AgentWorkQueueSnapshotFindUniqueArgs} args - Arguments to find a AgentWorkQueueSnapshot
|
|
468
|
+
* @example
|
|
469
|
+
* // Get one AgentWorkQueueSnapshot
|
|
470
|
+
* const agentWorkQueueSnapshot = await prisma.agentWorkQueueSnapshot.findUnique({
|
|
471
|
+
* where: {
|
|
472
|
+
* // ... provide filter here
|
|
473
|
+
* }
|
|
474
|
+
* })
|
|
475
|
+
*/
|
|
476
|
+
findUnique<T extends AgentWorkQueueSnapshotFindUniqueArgs>(args: Prisma.SelectSubset<T, AgentWorkQueueSnapshotFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AgentWorkQueueSnapshotClient<runtime.Types.Result.GetResult<Prisma.$AgentWorkQueueSnapshotPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
477
|
+
|
|
478
|
+
/**
|
|
479
|
+
* Find one AgentWorkQueueSnapshot that matches the filter or throw an error with `error.code='P2025'`
|
|
480
|
+
* if no matches were found.
|
|
481
|
+
* @param {AgentWorkQueueSnapshotFindUniqueOrThrowArgs} args - Arguments to find a AgentWorkQueueSnapshot
|
|
482
|
+
* @example
|
|
483
|
+
* // Get one AgentWorkQueueSnapshot
|
|
484
|
+
* const agentWorkQueueSnapshot = await prisma.agentWorkQueueSnapshot.findUniqueOrThrow({
|
|
485
|
+
* where: {
|
|
486
|
+
* // ... provide filter here
|
|
487
|
+
* }
|
|
488
|
+
* })
|
|
489
|
+
*/
|
|
490
|
+
findUniqueOrThrow<T extends AgentWorkQueueSnapshotFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AgentWorkQueueSnapshotFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AgentWorkQueueSnapshotClient<runtime.Types.Result.GetResult<Prisma.$AgentWorkQueueSnapshotPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* Find the first AgentWorkQueueSnapshot that matches the filter.
|
|
494
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
495
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
496
|
+
* @param {AgentWorkQueueSnapshotFindFirstArgs} args - Arguments to find a AgentWorkQueueSnapshot
|
|
497
|
+
* @example
|
|
498
|
+
* // Get one AgentWorkQueueSnapshot
|
|
499
|
+
* const agentWorkQueueSnapshot = await prisma.agentWorkQueueSnapshot.findFirst({
|
|
500
|
+
* where: {
|
|
501
|
+
* // ... provide filter here
|
|
502
|
+
* }
|
|
503
|
+
* })
|
|
504
|
+
*/
|
|
505
|
+
findFirst<T extends AgentWorkQueueSnapshotFindFirstArgs>(args?: Prisma.SelectSubset<T, AgentWorkQueueSnapshotFindFirstArgs<ExtArgs>>): Prisma.Prisma__AgentWorkQueueSnapshotClient<runtime.Types.Result.GetResult<Prisma.$AgentWorkQueueSnapshotPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
506
|
+
|
|
507
|
+
/**
|
|
508
|
+
* Find the first AgentWorkQueueSnapshot that matches the filter or
|
|
509
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
510
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
511
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
512
|
+
* @param {AgentWorkQueueSnapshotFindFirstOrThrowArgs} args - Arguments to find a AgentWorkQueueSnapshot
|
|
513
|
+
* @example
|
|
514
|
+
* // Get one AgentWorkQueueSnapshot
|
|
515
|
+
* const agentWorkQueueSnapshot = await prisma.agentWorkQueueSnapshot.findFirstOrThrow({
|
|
516
|
+
* where: {
|
|
517
|
+
* // ... provide filter here
|
|
518
|
+
* }
|
|
519
|
+
* })
|
|
520
|
+
*/
|
|
521
|
+
findFirstOrThrow<T extends AgentWorkQueueSnapshotFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AgentWorkQueueSnapshotFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AgentWorkQueueSnapshotClient<runtime.Types.Result.GetResult<Prisma.$AgentWorkQueueSnapshotPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* Find zero or more AgentWorkQueueSnapshots that matches the filter.
|
|
525
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
526
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
527
|
+
* @param {AgentWorkQueueSnapshotFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
528
|
+
* @example
|
|
529
|
+
* // Get all AgentWorkQueueSnapshots
|
|
530
|
+
* const agentWorkQueueSnapshots = await prisma.agentWorkQueueSnapshot.findMany()
|
|
531
|
+
*
|
|
532
|
+
* // Get first 10 AgentWorkQueueSnapshots
|
|
533
|
+
* const agentWorkQueueSnapshots = await prisma.agentWorkQueueSnapshot.findMany({ take: 10 })
|
|
534
|
+
*
|
|
535
|
+
* // Only select the `id`
|
|
536
|
+
* const agentWorkQueueSnapshotWithIdOnly = await prisma.agentWorkQueueSnapshot.findMany({ select: { id: true } })
|
|
537
|
+
*
|
|
538
|
+
*/
|
|
539
|
+
findMany<T extends AgentWorkQueueSnapshotFindManyArgs>(args?: Prisma.SelectSubset<T, AgentWorkQueueSnapshotFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentWorkQueueSnapshotPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
540
|
+
|
|
541
|
+
/**
|
|
542
|
+
* Create a AgentWorkQueueSnapshot.
|
|
543
|
+
* @param {AgentWorkQueueSnapshotCreateArgs} args - Arguments to create a AgentWorkQueueSnapshot.
|
|
544
|
+
* @example
|
|
545
|
+
* // Create one AgentWorkQueueSnapshot
|
|
546
|
+
* const AgentWorkQueueSnapshot = await prisma.agentWorkQueueSnapshot.create({
|
|
547
|
+
* data: {
|
|
548
|
+
* // ... data to create a AgentWorkQueueSnapshot
|
|
549
|
+
* }
|
|
550
|
+
* })
|
|
551
|
+
*
|
|
552
|
+
*/
|
|
553
|
+
create<T extends AgentWorkQueueSnapshotCreateArgs>(args: Prisma.SelectSubset<T, AgentWorkQueueSnapshotCreateArgs<ExtArgs>>): Prisma.Prisma__AgentWorkQueueSnapshotClient<runtime.Types.Result.GetResult<Prisma.$AgentWorkQueueSnapshotPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
554
|
+
|
|
555
|
+
/**
|
|
556
|
+
* Create many AgentWorkQueueSnapshots.
|
|
557
|
+
* @param {AgentWorkQueueSnapshotCreateManyArgs} args - Arguments to create many AgentWorkQueueSnapshots.
|
|
558
|
+
* @example
|
|
559
|
+
* // Create many AgentWorkQueueSnapshots
|
|
560
|
+
* const agentWorkQueueSnapshot = await prisma.agentWorkQueueSnapshot.createMany({
|
|
561
|
+
* data: [
|
|
562
|
+
* // ... provide data here
|
|
563
|
+
* ]
|
|
564
|
+
* })
|
|
565
|
+
*
|
|
566
|
+
*/
|
|
567
|
+
createMany<T extends AgentWorkQueueSnapshotCreateManyArgs>(args?: Prisma.SelectSubset<T, AgentWorkQueueSnapshotCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
568
|
+
|
|
569
|
+
/**
|
|
570
|
+
* Create many AgentWorkQueueSnapshots and returns the data saved in the database.
|
|
571
|
+
* @param {AgentWorkQueueSnapshotCreateManyAndReturnArgs} args - Arguments to create many AgentWorkQueueSnapshots.
|
|
572
|
+
* @example
|
|
573
|
+
* // Create many AgentWorkQueueSnapshots
|
|
574
|
+
* const agentWorkQueueSnapshot = await prisma.agentWorkQueueSnapshot.createManyAndReturn({
|
|
575
|
+
* data: [
|
|
576
|
+
* // ... provide data here
|
|
577
|
+
* ]
|
|
578
|
+
* })
|
|
579
|
+
*
|
|
580
|
+
* // Create many AgentWorkQueueSnapshots and only return the `id`
|
|
581
|
+
* const agentWorkQueueSnapshotWithIdOnly = await prisma.agentWorkQueueSnapshot.createManyAndReturn({
|
|
582
|
+
* select: { id: true },
|
|
583
|
+
* data: [
|
|
584
|
+
* // ... provide data here
|
|
585
|
+
* ]
|
|
586
|
+
* })
|
|
587
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
588
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
589
|
+
*
|
|
590
|
+
*/
|
|
591
|
+
createManyAndReturn<T extends AgentWorkQueueSnapshotCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AgentWorkQueueSnapshotCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentWorkQueueSnapshotPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* Delete a AgentWorkQueueSnapshot.
|
|
595
|
+
* @param {AgentWorkQueueSnapshotDeleteArgs} args - Arguments to delete one AgentWorkQueueSnapshot.
|
|
596
|
+
* @example
|
|
597
|
+
* // Delete one AgentWorkQueueSnapshot
|
|
598
|
+
* const AgentWorkQueueSnapshot = await prisma.agentWorkQueueSnapshot.delete({
|
|
599
|
+
* where: {
|
|
600
|
+
* // ... filter to delete one AgentWorkQueueSnapshot
|
|
601
|
+
* }
|
|
602
|
+
* })
|
|
603
|
+
*
|
|
604
|
+
*/
|
|
605
|
+
delete<T extends AgentWorkQueueSnapshotDeleteArgs>(args: Prisma.SelectSubset<T, AgentWorkQueueSnapshotDeleteArgs<ExtArgs>>): Prisma.Prisma__AgentWorkQueueSnapshotClient<runtime.Types.Result.GetResult<Prisma.$AgentWorkQueueSnapshotPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
606
|
+
|
|
607
|
+
/**
|
|
608
|
+
* Update one AgentWorkQueueSnapshot.
|
|
609
|
+
* @param {AgentWorkQueueSnapshotUpdateArgs} args - Arguments to update one AgentWorkQueueSnapshot.
|
|
610
|
+
* @example
|
|
611
|
+
* // Update one AgentWorkQueueSnapshot
|
|
612
|
+
* const agentWorkQueueSnapshot = await prisma.agentWorkQueueSnapshot.update({
|
|
613
|
+
* where: {
|
|
614
|
+
* // ... provide filter here
|
|
615
|
+
* },
|
|
616
|
+
* data: {
|
|
617
|
+
* // ... provide data here
|
|
618
|
+
* }
|
|
619
|
+
* })
|
|
620
|
+
*
|
|
621
|
+
*/
|
|
622
|
+
update<T extends AgentWorkQueueSnapshotUpdateArgs>(args: Prisma.SelectSubset<T, AgentWorkQueueSnapshotUpdateArgs<ExtArgs>>): Prisma.Prisma__AgentWorkQueueSnapshotClient<runtime.Types.Result.GetResult<Prisma.$AgentWorkQueueSnapshotPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
623
|
+
|
|
624
|
+
/**
|
|
625
|
+
* Delete zero or more AgentWorkQueueSnapshots.
|
|
626
|
+
* @param {AgentWorkQueueSnapshotDeleteManyArgs} args - Arguments to filter AgentWorkQueueSnapshots to delete.
|
|
627
|
+
* @example
|
|
628
|
+
* // Delete a few AgentWorkQueueSnapshots
|
|
629
|
+
* const { count } = await prisma.agentWorkQueueSnapshot.deleteMany({
|
|
630
|
+
* where: {
|
|
631
|
+
* // ... provide filter here
|
|
632
|
+
* }
|
|
633
|
+
* })
|
|
634
|
+
*
|
|
635
|
+
*/
|
|
636
|
+
deleteMany<T extends AgentWorkQueueSnapshotDeleteManyArgs>(args?: Prisma.SelectSubset<T, AgentWorkQueueSnapshotDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
637
|
+
|
|
638
|
+
/**
|
|
639
|
+
* Update zero or more AgentWorkQueueSnapshots.
|
|
640
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
641
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
642
|
+
* @param {AgentWorkQueueSnapshotUpdateManyArgs} args - Arguments to update one or more rows.
|
|
643
|
+
* @example
|
|
644
|
+
* // Update many AgentWorkQueueSnapshots
|
|
645
|
+
* const agentWorkQueueSnapshot = await prisma.agentWorkQueueSnapshot.updateMany({
|
|
646
|
+
* where: {
|
|
647
|
+
* // ... provide filter here
|
|
648
|
+
* },
|
|
649
|
+
* data: {
|
|
650
|
+
* // ... provide data here
|
|
651
|
+
* }
|
|
652
|
+
* })
|
|
653
|
+
*
|
|
654
|
+
*/
|
|
655
|
+
updateMany<T extends AgentWorkQueueSnapshotUpdateManyArgs>(args: Prisma.SelectSubset<T, AgentWorkQueueSnapshotUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
656
|
+
|
|
657
|
+
/**
|
|
658
|
+
* Update zero or more AgentWorkQueueSnapshots and returns the data updated in the database.
|
|
659
|
+
* @param {AgentWorkQueueSnapshotUpdateManyAndReturnArgs} args - Arguments to update many AgentWorkQueueSnapshots.
|
|
660
|
+
* @example
|
|
661
|
+
* // Update many AgentWorkQueueSnapshots
|
|
662
|
+
* const agentWorkQueueSnapshot = await prisma.agentWorkQueueSnapshot.updateManyAndReturn({
|
|
663
|
+
* where: {
|
|
664
|
+
* // ... provide filter here
|
|
665
|
+
* },
|
|
666
|
+
* data: [
|
|
667
|
+
* // ... provide data here
|
|
668
|
+
* ]
|
|
669
|
+
* })
|
|
670
|
+
*
|
|
671
|
+
* // Update zero or more AgentWorkQueueSnapshots and only return the `id`
|
|
672
|
+
* const agentWorkQueueSnapshotWithIdOnly = await prisma.agentWorkQueueSnapshot.updateManyAndReturn({
|
|
673
|
+
* select: { id: true },
|
|
674
|
+
* where: {
|
|
675
|
+
* // ... provide filter here
|
|
676
|
+
* },
|
|
677
|
+
* data: [
|
|
678
|
+
* // ... provide data here
|
|
679
|
+
* ]
|
|
680
|
+
* })
|
|
681
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
682
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
683
|
+
*
|
|
684
|
+
*/
|
|
685
|
+
updateManyAndReturn<T extends AgentWorkQueueSnapshotUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AgentWorkQueueSnapshotUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentWorkQueueSnapshotPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
686
|
+
|
|
687
|
+
/**
|
|
688
|
+
* Create or update one AgentWorkQueueSnapshot.
|
|
689
|
+
* @param {AgentWorkQueueSnapshotUpsertArgs} args - Arguments to update or create a AgentWorkQueueSnapshot.
|
|
690
|
+
* @example
|
|
691
|
+
* // Update or create a AgentWorkQueueSnapshot
|
|
692
|
+
* const agentWorkQueueSnapshot = await prisma.agentWorkQueueSnapshot.upsert({
|
|
693
|
+
* create: {
|
|
694
|
+
* // ... data to create a AgentWorkQueueSnapshot
|
|
695
|
+
* },
|
|
696
|
+
* update: {
|
|
697
|
+
* // ... in case it already exists, update
|
|
698
|
+
* },
|
|
699
|
+
* where: {
|
|
700
|
+
* // ... the filter for the AgentWorkQueueSnapshot we want to update
|
|
701
|
+
* }
|
|
702
|
+
* })
|
|
703
|
+
*/
|
|
704
|
+
upsert<T extends AgentWorkQueueSnapshotUpsertArgs>(args: Prisma.SelectSubset<T, AgentWorkQueueSnapshotUpsertArgs<ExtArgs>>): Prisma.Prisma__AgentWorkQueueSnapshotClient<runtime.Types.Result.GetResult<Prisma.$AgentWorkQueueSnapshotPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
705
|
+
|
|
706
|
+
|
|
707
|
+
/**
|
|
708
|
+
* Count the number of AgentWorkQueueSnapshots.
|
|
709
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
710
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
711
|
+
* @param {AgentWorkQueueSnapshotCountArgs} args - Arguments to filter AgentWorkQueueSnapshots to count.
|
|
712
|
+
* @example
|
|
713
|
+
* // Count the number of AgentWorkQueueSnapshots
|
|
714
|
+
* const count = await prisma.agentWorkQueueSnapshot.count({
|
|
715
|
+
* where: {
|
|
716
|
+
* // ... the filter for the AgentWorkQueueSnapshots we want to count
|
|
717
|
+
* }
|
|
718
|
+
* })
|
|
719
|
+
**/
|
|
720
|
+
count<T extends AgentWorkQueueSnapshotCountArgs>(
|
|
721
|
+
args?: Prisma.Subset<T, AgentWorkQueueSnapshotCountArgs>,
|
|
722
|
+
): Prisma.PrismaPromise<
|
|
723
|
+
T extends runtime.Types.Utils.Record<'select', any>
|
|
724
|
+
? T['select'] extends true
|
|
725
|
+
? number
|
|
726
|
+
: Prisma.GetScalarType<T['select'], AgentWorkQueueSnapshotCountAggregateOutputType>
|
|
727
|
+
: number
|
|
728
|
+
>
|
|
729
|
+
|
|
730
|
+
/**
|
|
731
|
+
* Allows you to perform aggregations operations on a AgentWorkQueueSnapshot.
|
|
732
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
733
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
734
|
+
* @param {AgentWorkQueueSnapshotAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
735
|
+
* @example
|
|
736
|
+
* // Ordered by age ascending
|
|
737
|
+
* // Where email contains prisma.io
|
|
738
|
+
* // Limited to the 10 users
|
|
739
|
+
* const aggregations = await prisma.user.aggregate({
|
|
740
|
+
* _avg: {
|
|
741
|
+
* age: true,
|
|
742
|
+
* },
|
|
743
|
+
* where: {
|
|
744
|
+
* email: {
|
|
745
|
+
* contains: "prisma.io",
|
|
746
|
+
* },
|
|
747
|
+
* },
|
|
748
|
+
* orderBy: {
|
|
749
|
+
* age: "asc",
|
|
750
|
+
* },
|
|
751
|
+
* take: 10,
|
|
752
|
+
* })
|
|
753
|
+
**/
|
|
754
|
+
aggregate<T extends AgentWorkQueueSnapshotAggregateArgs>(args: Prisma.Subset<T, AgentWorkQueueSnapshotAggregateArgs>): Prisma.PrismaPromise<GetAgentWorkQueueSnapshotAggregateType<T>>
|
|
755
|
+
|
|
756
|
+
/**
|
|
757
|
+
* Group by AgentWorkQueueSnapshot.
|
|
758
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
759
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
760
|
+
* @param {AgentWorkQueueSnapshotGroupByArgs} args - Group by arguments.
|
|
761
|
+
* @example
|
|
762
|
+
* // Group by city, order by createdAt, get count
|
|
763
|
+
* const result = await prisma.user.groupBy({
|
|
764
|
+
* by: ['city', 'createdAt'],
|
|
765
|
+
* orderBy: {
|
|
766
|
+
* createdAt: true
|
|
767
|
+
* },
|
|
768
|
+
* _count: {
|
|
769
|
+
* _all: true
|
|
770
|
+
* },
|
|
771
|
+
* })
|
|
772
|
+
*
|
|
773
|
+
**/
|
|
774
|
+
groupBy<
|
|
775
|
+
T extends AgentWorkQueueSnapshotGroupByArgs,
|
|
776
|
+
HasSelectOrTake extends Prisma.Or<
|
|
777
|
+
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
778
|
+
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
779
|
+
>,
|
|
780
|
+
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
781
|
+
? { orderBy: AgentWorkQueueSnapshotGroupByArgs['orderBy'] }
|
|
782
|
+
: { orderBy?: AgentWorkQueueSnapshotGroupByArgs['orderBy'] },
|
|
783
|
+
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
784
|
+
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
785
|
+
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
786
|
+
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
787
|
+
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
788
|
+
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
789
|
+
InputErrors extends ByEmpty extends Prisma.True
|
|
790
|
+
? `Error: "by" must not be empty.`
|
|
791
|
+
: HavingValid extends Prisma.False
|
|
792
|
+
? {
|
|
793
|
+
[P in HavingFields]: P extends ByFields
|
|
794
|
+
? never
|
|
795
|
+
: P extends string
|
|
796
|
+
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
797
|
+
: [
|
|
798
|
+
Error,
|
|
799
|
+
'Field ',
|
|
800
|
+
P,
|
|
801
|
+
` in "having" needs to be provided in "by"`,
|
|
802
|
+
]
|
|
803
|
+
}[HavingFields]
|
|
804
|
+
: 'take' extends Prisma.Keys<T>
|
|
805
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
806
|
+
? ByValid extends Prisma.True
|
|
807
|
+
? {}
|
|
808
|
+
: {
|
|
809
|
+
[P in OrderFields]: P extends ByFields
|
|
810
|
+
? never
|
|
811
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
812
|
+
}[OrderFields]
|
|
813
|
+
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
814
|
+
: 'skip' extends Prisma.Keys<T>
|
|
815
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
816
|
+
? ByValid extends Prisma.True
|
|
817
|
+
? {}
|
|
818
|
+
: {
|
|
819
|
+
[P in OrderFields]: P extends ByFields
|
|
820
|
+
? never
|
|
821
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
822
|
+
}[OrderFields]
|
|
823
|
+
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
824
|
+
: ByValid extends Prisma.True
|
|
825
|
+
? {}
|
|
826
|
+
: {
|
|
827
|
+
[P in OrderFields]: P extends ByFields
|
|
828
|
+
? never
|
|
829
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
830
|
+
}[OrderFields]
|
|
831
|
+
>(args: Prisma.SubsetIntersection<T, AgentWorkQueueSnapshotGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAgentWorkQueueSnapshotGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
832
|
+
/**
|
|
833
|
+
* Fields of the AgentWorkQueueSnapshot model
|
|
834
|
+
*/
|
|
835
|
+
readonly fields: AgentWorkQueueSnapshotFieldRefs;
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
/**
|
|
839
|
+
* The delegate class that acts as a "Promise-like" for AgentWorkQueueSnapshot.
|
|
840
|
+
* Why is this prefixed with `Prisma__`?
|
|
841
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
842
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
843
|
+
*/
|
|
844
|
+
export interface Prisma__AgentWorkQueueSnapshotClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
845
|
+
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
846
|
+
agent<T extends Prisma.AgentDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AgentDefaultArgs<ExtArgs>>): Prisma.Prisma__AgentClient<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
847
|
+
/**
|
|
848
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
849
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
850
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
851
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
852
|
+
*/
|
|
853
|
+
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
|
854
|
+
/**
|
|
855
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
856
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
857
|
+
* @returns A Promise for the completion of the callback.
|
|
858
|
+
*/
|
|
859
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
860
|
+
/**
|
|
861
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
862
|
+
* resolved value cannot be modified from the callback.
|
|
863
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
864
|
+
* @returns A Promise for the completion of the callback.
|
|
865
|
+
*/
|
|
866
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
|
|
870
|
+
|
|
871
|
+
|
|
872
|
+
/**
|
|
873
|
+
* Fields of the AgentWorkQueueSnapshot model
|
|
874
|
+
*/
|
|
875
|
+
export interface AgentWorkQueueSnapshotFieldRefs {
|
|
876
|
+
readonly id: Prisma.FieldRef<"AgentWorkQueueSnapshot", 'String'>
|
|
877
|
+
readonly agentId: Prisma.FieldRef<"AgentWorkQueueSnapshot", 'String'>
|
|
878
|
+
readonly computedAt: Prisma.FieldRef<"AgentWorkQueueSnapshot", 'DateTime'>
|
|
879
|
+
readonly items: Prisma.FieldRef<"AgentWorkQueueSnapshot", 'Json'>
|
|
880
|
+
readonly createdAt: Prisma.FieldRef<"AgentWorkQueueSnapshot", 'DateTime'>
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
|
|
884
|
+
// Custom InputTypes
|
|
885
|
+
/**
|
|
886
|
+
* AgentWorkQueueSnapshot findUnique
|
|
887
|
+
*/
|
|
888
|
+
export type AgentWorkQueueSnapshotFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
889
|
+
/**
|
|
890
|
+
* Select specific fields to fetch from the AgentWorkQueueSnapshot
|
|
891
|
+
*/
|
|
892
|
+
select?: Prisma.AgentWorkQueueSnapshotSelect<ExtArgs> | null
|
|
893
|
+
/**
|
|
894
|
+
* Omit specific fields from the AgentWorkQueueSnapshot
|
|
895
|
+
*/
|
|
896
|
+
omit?: Prisma.AgentWorkQueueSnapshotOmit<ExtArgs> | null
|
|
897
|
+
/**
|
|
898
|
+
* Choose, which related nodes to fetch as well
|
|
899
|
+
*/
|
|
900
|
+
include?: Prisma.AgentWorkQueueSnapshotInclude<ExtArgs> | null
|
|
901
|
+
/**
|
|
902
|
+
* Filter, which AgentWorkQueueSnapshot to fetch.
|
|
903
|
+
*/
|
|
904
|
+
where: Prisma.AgentWorkQueueSnapshotWhereUniqueInput
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
/**
|
|
908
|
+
* AgentWorkQueueSnapshot findUniqueOrThrow
|
|
909
|
+
*/
|
|
910
|
+
export type AgentWorkQueueSnapshotFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
911
|
+
/**
|
|
912
|
+
* Select specific fields to fetch from the AgentWorkQueueSnapshot
|
|
913
|
+
*/
|
|
914
|
+
select?: Prisma.AgentWorkQueueSnapshotSelect<ExtArgs> | null
|
|
915
|
+
/**
|
|
916
|
+
* Omit specific fields from the AgentWorkQueueSnapshot
|
|
917
|
+
*/
|
|
918
|
+
omit?: Prisma.AgentWorkQueueSnapshotOmit<ExtArgs> | null
|
|
919
|
+
/**
|
|
920
|
+
* Choose, which related nodes to fetch as well
|
|
921
|
+
*/
|
|
922
|
+
include?: Prisma.AgentWorkQueueSnapshotInclude<ExtArgs> | null
|
|
923
|
+
/**
|
|
924
|
+
* Filter, which AgentWorkQueueSnapshot to fetch.
|
|
925
|
+
*/
|
|
926
|
+
where: Prisma.AgentWorkQueueSnapshotWhereUniqueInput
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
/**
|
|
930
|
+
* AgentWorkQueueSnapshot findFirst
|
|
931
|
+
*/
|
|
932
|
+
export type AgentWorkQueueSnapshotFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
933
|
+
/**
|
|
934
|
+
* Select specific fields to fetch from the AgentWorkQueueSnapshot
|
|
935
|
+
*/
|
|
936
|
+
select?: Prisma.AgentWorkQueueSnapshotSelect<ExtArgs> | null
|
|
937
|
+
/**
|
|
938
|
+
* Omit specific fields from the AgentWorkQueueSnapshot
|
|
939
|
+
*/
|
|
940
|
+
omit?: Prisma.AgentWorkQueueSnapshotOmit<ExtArgs> | null
|
|
941
|
+
/**
|
|
942
|
+
* Choose, which related nodes to fetch as well
|
|
943
|
+
*/
|
|
944
|
+
include?: Prisma.AgentWorkQueueSnapshotInclude<ExtArgs> | null
|
|
945
|
+
/**
|
|
946
|
+
* Filter, which AgentWorkQueueSnapshot to fetch.
|
|
947
|
+
*/
|
|
948
|
+
where?: Prisma.AgentWorkQueueSnapshotWhereInput
|
|
949
|
+
/**
|
|
950
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
951
|
+
*
|
|
952
|
+
* Determine the order of AgentWorkQueueSnapshots to fetch.
|
|
953
|
+
*/
|
|
954
|
+
orderBy?: Prisma.AgentWorkQueueSnapshotOrderByWithRelationInput | Prisma.AgentWorkQueueSnapshotOrderByWithRelationInput[]
|
|
955
|
+
/**
|
|
956
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
957
|
+
*
|
|
958
|
+
* Sets the position for searching for AgentWorkQueueSnapshots.
|
|
959
|
+
*/
|
|
960
|
+
cursor?: Prisma.AgentWorkQueueSnapshotWhereUniqueInput
|
|
961
|
+
/**
|
|
962
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
963
|
+
*
|
|
964
|
+
* Take `±n` AgentWorkQueueSnapshots from the position of the cursor.
|
|
965
|
+
*/
|
|
966
|
+
take?: number
|
|
967
|
+
/**
|
|
968
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
969
|
+
*
|
|
970
|
+
* Skip the first `n` AgentWorkQueueSnapshots.
|
|
971
|
+
*/
|
|
972
|
+
skip?: number
|
|
973
|
+
/**
|
|
974
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
975
|
+
*
|
|
976
|
+
* Filter by unique combinations of AgentWorkQueueSnapshots.
|
|
977
|
+
*/
|
|
978
|
+
distinct?: Prisma.AgentWorkQueueSnapshotScalarFieldEnum | Prisma.AgentWorkQueueSnapshotScalarFieldEnum[]
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
/**
|
|
982
|
+
* AgentWorkQueueSnapshot findFirstOrThrow
|
|
983
|
+
*/
|
|
984
|
+
export type AgentWorkQueueSnapshotFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
985
|
+
/**
|
|
986
|
+
* Select specific fields to fetch from the AgentWorkQueueSnapshot
|
|
987
|
+
*/
|
|
988
|
+
select?: Prisma.AgentWorkQueueSnapshotSelect<ExtArgs> | null
|
|
989
|
+
/**
|
|
990
|
+
* Omit specific fields from the AgentWorkQueueSnapshot
|
|
991
|
+
*/
|
|
992
|
+
omit?: Prisma.AgentWorkQueueSnapshotOmit<ExtArgs> | null
|
|
993
|
+
/**
|
|
994
|
+
* Choose, which related nodes to fetch as well
|
|
995
|
+
*/
|
|
996
|
+
include?: Prisma.AgentWorkQueueSnapshotInclude<ExtArgs> | null
|
|
997
|
+
/**
|
|
998
|
+
* Filter, which AgentWorkQueueSnapshot to fetch.
|
|
999
|
+
*/
|
|
1000
|
+
where?: Prisma.AgentWorkQueueSnapshotWhereInput
|
|
1001
|
+
/**
|
|
1002
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1003
|
+
*
|
|
1004
|
+
* Determine the order of AgentWorkQueueSnapshots to fetch.
|
|
1005
|
+
*/
|
|
1006
|
+
orderBy?: Prisma.AgentWorkQueueSnapshotOrderByWithRelationInput | Prisma.AgentWorkQueueSnapshotOrderByWithRelationInput[]
|
|
1007
|
+
/**
|
|
1008
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1009
|
+
*
|
|
1010
|
+
* Sets the position for searching for AgentWorkQueueSnapshots.
|
|
1011
|
+
*/
|
|
1012
|
+
cursor?: Prisma.AgentWorkQueueSnapshotWhereUniqueInput
|
|
1013
|
+
/**
|
|
1014
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1015
|
+
*
|
|
1016
|
+
* Take `±n` AgentWorkQueueSnapshots from the position of the cursor.
|
|
1017
|
+
*/
|
|
1018
|
+
take?: number
|
|
1019
|
+
/**
|
|
1020
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1021
|
+
*
|
|
1022
|
+
* Skip the first `n` AgentWorkQueueSnapshots.
|
|
1023
|
+
*/
|
|
1024
|
+
skip?: number
|
|
1025
|
+
/**
|
|
1026
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1027
|
+
*
|
|
1028
|
+
* Filter by unique combinations of AgentWorkQueueSnapshots.
|
|
1029
|
+
*/
|
|
1030
|
+
distinct?: Prisma.AgentWorkQueueSnapshotScalarFieldEnum | Prisma.AgentWorkQueueSnapshotScalarFieldEnum[]
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
/**
|
|
1034
|
+
* AgentWorkQueueSnapshot findMany
|
|
1035
|
+
*/
|
|
1036
|
+
export type AgentWorkQueueSnapshotFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1037
|
+
/**
|
|
1038
|
+
* Select specific fields to fetch from the AgentWorkQueueSnapshot
|
|
1039
|
+
*/
|
|
1040
|
+
select?: Prisma.AgentWorkQueueSnapshotSelect<ExtArgs> | null
|
|
1041
|
+
/**
|
|
1042
|
+
* Omit specific fields from the AgentWorkQueueSnapshot
|
|
1043
|
+
*/
|
|
1044
|
+
omit?: Prisma.AgentWorkQueueSnapshotOmit<ExtArgs> | null
|
|
1045
|
+
/**
|
|
1046
|
+
* Choose, which related nodes to fetch as well
|
|
1047
|
+
*/
|
|
1048
|
+
include?: Prisma.AgentWorkQueueSnapshotInclude<ExtArgs> | null
|
|
1049
|
+
/**
|
|
1050
|
+
* Filter, which AgentWorkQueueSnapshots to fetch.
|
|
1051
|
+
*/
|
|
1052
|
+
where?: Prisma.AgentWorkQueueSnapshotWhereInput
|
|
1053
|
+
/**
|
|
1054
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1055
|
+
*
|
|
1056
|
+
* Determine the order of AgentWorkQueueSnapshots to fetch.
|
|
1057
|
+
*/
|
|
1058
|
+
orderBy?: Prisma.AgentWorkQueueSnapshotOrderByWithRelationInput | Prisma.AgentWorkQueueSnapshotOrderByWithRelationInput[]
|
|
1059
|
+
/**
|
|
1060
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1061
|
+
*
|
|
1062
|
+
* Sets the position for listing AgentWorkQueueSnapshots.
|
|
1063
|
+
*/
|
|
1064
|
+
cursor?: Prisma.AgentWorkQueueSnapshotWhereUniqueInput
|
|
1065
|
+
/**
|
|
1066
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1067
|
+
*
|
|
1068
|
+
* Take `±n` AgentWorkQueueSnapshots from the position of the cursor.
|
|
1069
|
+
*/
|
|
1070
|
+
take?: number
|
|
1071
|
+
/**
|
|
1072
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1073
|
+
*
|
|
1074
|
+
* Skip the first `n` AgentWorkQueueSnapshots.
|
|
1075
|
+
*/
|
|
1076
|
+
skip?: number
|
|
1077
|
+
/**
|
|
1078
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1079
|
+
*
|
|
1080
|
+
* Filter by unique combinations of AgentWorkQueueSnapshots.
|
|
1081
|
+
*/
|
|
1082
|
+
distinct?: Prisma.AgentWorkQueueSnapshotScalarFieldEnum | Prisma.AgentWorkQueueSnapshotScalarFieldEnum[]
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
/**
|
|
1086
|
+
* AgentWorkQueueSnapshot create
|
|
1087
|
+
*/
|
|
1088
|
+
export type AgentWorkQueueSnapshotCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1089
|
+
/**
|
|
1090
|
+
* Select specific fields to fetch from the AgentWorkQueueSnapshot
|
|
1091
|
+
*/
|
|
1092
|
+
select?: Prisma.AgentWorkQueueSnapshotSelect<ExtArgs> | null
|
|
1093
|
+
/**
|
|
1094
|
+
* Omit specific fields from the AgentWorkQueueSnapshot
|
|
1095
|
+
*/
|
|
1096
|
+
omit?: Prisma.AgentWorkQueueSnapshotOmit<ExtArgs> | null
|
|
1097
|
+
/**
|
|
1098
|
+
* Choose, which related nodes to fetch as well
|
|
1099
|
+
*/
|
|
1100
|
+
include?: Prisma.AgentWorkQueueSnapshotInclude<ExtArgs> | null
|
|
1101
|
+
/**
|
|
1102
|
+
* The data needed to create a AgentWorkQueueSnapshot.
|
|
1103
|
+
*/
|
|
1104
|
+
data: Prisma.XOR<Prisma.AgentWorkQueueSnapshotCreateInput, Prisma.AgentWorkQueueSnapshotUncheckedCreateInput>
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
/**
|
|
1108
|
+
* AgentWorkQueueSnapshot createMany
|
|
1109
|
+
*/
|
|
1110
|
+
export type AgentWorkQueueSnapshotCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1111
|
+
/**
|
|
1112
|
+
* The data used to create many AgentWorkQueueSnapshots.
|
|
1113
|
+
*/
|
|
1114
|
+
data: Prisma.AgentWorkQueueSnapshotCreateManyInput | Prisma.AgentWorkQueueSnapshotCreateManyInput[]
|
|
1115
|
+
skipDuplicates?: boolean
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
/**
|
|
1119
|
+
* AgentWorkQueueSnapshot createManyAndReturn
|
|
1120
|
+
*/
|
|
1121
|
+
export type AgentWorkQueueSnapshotCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1122
|
+
/**
|
|
1123
|
+
* Select specific fields to fetch from the AgentWorkQueueSnapshot
|
|
1124
|
+
*/
|
|
1125
|
+
select?: Prisma.AgentWorkQueueSnapshotSelectCreateManyAndReturn<ExtArgs> | null
|
|
1126
|
+
/**
|
|
1127
|
+
* Omit specific fields from the AgentWorkQueueSnapshot
|
|
1128
|
+
*/
|
|
1129
|
+
omit?: Prisma.AgentWorkQueueSnapshotOmit<ExtArgs> | null
|
|
1130
|
+
/**
|
|
1131
|
+
* The data used to create many AgentWorkQueueSnapshots.
|
|
1132
|
+
*/
|
|
1133
|
+
data: Prisma.AgentWorkQueueSnapshotCreateManyInput | Prisma.AgentWorkQueueSnapshotCreateManyInput[]
|
|
1134
|
+
skipDuplicates?: boolean
|
|
1135
|
+
/**
|
|
1136
|
+
* Choose, which related nodes to fetch as well
|
|
1137
|
+
*/
|
|
1138
|
+
include?: Prisma.AgentWorkQueueSnapshotIncludeCreateManyAndReturn<ExtArgs> | null
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
/**
|
|
1142
|
+
* AgentWorkQueueSnapshot update
|
|
1143
|
+
*/
|
|
1144
|
+
export type AgentWorkQueueSnapshotUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1145
|
+
/**
|
|
1146
|
+
* Select specific fields to fetch from the AgentWorkQueueSnapshot
|
|
1147
|
+
*/
|
|
1148
|
+
select?: Prisma.AgentWorkQueueSnapshotSelect<ExtArgs> | null
|
|
1149
|
+
/**
|
|
1150
|
+
* Omit specific fields from the AgentWorkQueueSnapshot
|
|
1151
|
+
*/
|
|
1152
|
+
omit?: Prisma.AgentWorkQueueSnapshotOmit<ExtArgs> | null
|
|
1153
|
+
/**
|
|
1154
|
+
* Choose, which related nodes to fetch as well
|
|
1155
|
+
*/
|
|
1156
|
+
include?: Prisma.AgentWorkQueueSnapshotInclude<ExtArgs> | null
|
|
1157
|
+
/**
|
|
1158
|
+
* The data needed to update a AgentWorkQueueSnapshot.
|
|
1159
|
+
*/
|
|
1160
|
+
data: Prisma.XOR<Prisma.AgentWorkQueueSnapshotUpdateInput, Prisma.AgentWorkQueueSnapshotUncheckedUpdateInput>
|
|
1161
|
+
/**
|
|
1162
|
+
* Choose, which AgentWorkQueueSnapshot to update.
|
|
1163
|
+
*/
|
|
1164
|
+
where: Prisma.AgentWorkQueueSnapshotWhereUniqueInput
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
/**
|
|
1168
|
+
* AgentWorkQueueSnapshot updateMany
|
|
1169
|
+
*/
|
|
1170
|
+
export type AgentWorkQueueSnapshotUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1171
|
+
/**
|
|
1172
|
+
* The data used to update AgentWorkQueueSnapshots.
|
|
1173
|
+
*/
|
|
1174
|
+
data: Prisma.XOR<Prisma.AgentWorkQueueSnapshotUpdateManyMutationInput, Prisma.AgentWorkQueueSnapshotUncheckedUpdateManyInput>
|
|
1175
|
+
/**
|
|
1176
|
+
* Filter which AgentWorkQueueSnapshots to update
|
|
1177
|
+
*/
|
|
1178
|
+
where?: Prisma.AgentWorkQueueSnapshotWhereInput
|
|
1179
|
+
/**
|
|
1180
|
+
* Limit how many AgentWorkQueueSnapshots to update.
|
|
1181
|
+
*/
|
|
1182
|
+
limit?: number
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
/**
|
|
1186
|
+
* AgentWorkQueueSnapshot updateManyAndReturn
|
|
1187
|
+
*/
|
|
1188
|
+
export type AgentWorkQueueSnapshotUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1189
|
+
/**
|
|
1190
|
+
* Select specific fields to fetch from the AgentWorkQueueSnapshot
|
|
1191
|
+
*/
|
|
1192
|
+
select?: Prisma.AgentWorkQueueSnapshotSelectUpdateManyAndReturn<ExtArgs> | null
|
|
1193
|
+
/**
|
|
1194
|
+
* Omit specific fields from the AgentWorkQueueSnapshot
|
|
1195
|
+
*/
|
|
1196
|
+
omit?: Prisma.AgentWorkQueueSnapshotOmit<ExtArgs> | null
|
|
1197
|
+
/**
|
|
1198
|
+
* The data used to update AgentWorkQueueSnapshots.
|
|
1199
|
+
*/
|
|
1200
|
+
data: Prisma.XOR<Prisma.AgentWorkQueueSnapshotUpdateManyMutationInput, Prisma.AgentWorkQueueSnapshotUncheckedUpdateManyInput>
|
|
1201
|
+
/**
|
|
1202
|
+
* Filter which AgentWorkQueueSnapshots to update
|
|
1203
|
+
*/
|
|
1204
|
+
where?: Prisma.AgentWorkQueueSnapshotWhereInput
|
|
1205
|
+
/**
|
|
1206
|
+
* Limit how many AgentWorkQueueSnapshots to update.
|
|
1207
|
+
*/
|
|
1208
|
+
limit?: number
|
|
1209
|
+
/**
|
|
1210
|
+
* Choose, which related nodes to fetch as well
|
|
1211
|
+
*/
|
|
1212
|
+
include?: Prisma.AgentWorkQueueSnapshotIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
/**
|
|
1216
|
+
* AgentWorkQueueSnapshot upsert
|
|
1217
|
+
*/
|
|
1218
|
+
export type AgentWorkQueueSnapshotUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1219
|
+
/**
|
|
1220
|
+
* Select specific fields to fetch from the AgentWorkQueueSnapshot
|
|
1221
|
+
*/
|
|
1222
|
+
select?: Prisma.AgentWorkQueueSnapshotSelect<ExtArgs> | null
|
|
1223
|
+
/**
|
|
1224
|
+
* Omit specific fields from the AgentWorkQueueSnapshot
|
|
1225
|
+
*/
|
|
1226
|
+
omit?: Prisma.AgentWorkQueueSnapshotOmit<ExtArgs> | null
|
|
1227
|
+
/**
|
|
1228
|
+
* Choose, which related nodes to fetch as well
|
|
1229
|
+
*/
|
|
1230
|
+
include?: Prisma.AgentWorkQueueSnapshotInclude<ExtArgs> | null
|
|
1231
|
+
/**
|
|
1232
|
+
* The filter to search for the AgentWorkQueueSnapshot to update in case it exists.
|
|
1233
|
+
*/
|
|
1234
|
+
where: Prisma.AgentWorkQueueSnapshotWhereUniqueInput
|
|
1235
|
+
/**
|
|
1236
|
+
* In case the AgentWorkQueueSnapshot found by the `where` argument doesn't exist, create a new AgentWorkQueueSnapshot with this data.
|
|
1237
|
+
*/
|
|
1238
|
+
create: Prisma.XOR<Prisma.AgentWorkQueueSnapshotCreateInput, Prisma.AgentWorkQueueSnapshotUncheckedCreateInput>
|
|
1239
|
+
/**
|
|
1240
|
+
* In case the AgentWorkQueueSnapshot was found with the provided `where` argument, update it with this data.
|
|
1241
|
+
*/
|
|
1242
|
+
update: Prisma.XOR<Prisma.AgentWorkQueueSnapshotUpdateInput, Prisma.AgentWorkQueueSnapshotUncheckedUpdateInput>
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1245
|
+
/**
|
|
1246
|
+
* AgentWorkQueueSnapshot delete
|
|
1247
|
+
*/
|
|
1248
|
+
export type AgentWorkQueueSnapshotDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1249
|
+
/**
|
|
1250
|
+
* Select specific fields to fetch from the AgentWorkQueueSnapshot
|
|
1251
|
+
*/
|
|
1252
|
+
select?: Prisma.AgentWorkQueueSnapshotSelect<ExtArgs> | null
|
|
1253
|
+
/**
|
|
1254
|
+
* Omit specific fields from the AgentWorkQueueSnapshot
|
|
1255
|
+
*/
|
|
1256
|
+
omit?: Prisma.AgentWorkQueueSnapshotOmit<ExtArgs> | null
|
|
1257
|
+
/**
|
|
1258
|
+
* Choose, which related nodes to fetch as well
|
|
1259
|
+
*/
|
|
1260
|
+
include?: Prisma.AgentWorkQueueSnapshotInclude<ExtArgs> | null
|
|
1261
|
+
/**
|
|
1262
|
+
* Filter which AgentWorkQueueSnapshot to delete.
|
|
1263
|
+
*/
|
|
1264
|
+
where: Prisma.AgentWorkQueueSnapshotWhereUniqueInput
|
|
1265
|
+
}
|
|
1266
|
+
|
|
1267
|
+
/**
|
|
1268
|
+
* AgentWorkQueueSnapshot deleteMany
|
|
1269
|
+
*/
|
|
1270
|
+
export type AgentWorkQueueSnapshotDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1271
|
+
/**
|
|
1272
|
+
* Filter which AgentWorkQueueSnapshots to delete
|
|
1273
|
+
*/
|
|
1274
|
+
where?: Prisma.AgentWorkQueueSnapshotWhereInput
|
|
1275
|
+
/**
|
|
1276
|
+
* Limit how many AgentWorkQueueSnapshots to delete.
|
|
1277
|
+
*/
|
|
1278
|
+
limit?: number
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
/**
|
|
1282
|
+
* AgentWorkQueueSnapshot without action
|
|
1283
|
+
*/
|
|
1284
|
+
export type AgentWorkQueueSnapshotDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1285
|
+
/**
|
|
1286
|
+
* Select specific fields to fetch from the AgentWorkQueueSnapshot
|
|
1287
|
+
*/
|
|
1288
|
+
select?: Prisma.AgentWorkQueueSnapshotSelect<ExtArgs> | null
|
|
1289
|
+
/**
|
|
1290
|
+
* Omit specific fields from the AgentWorkQueueSnapshot
|
|
1291
|
+
*/
|
|
1292
|
+
omit?: Prisma.AgentWorkQueueSnapshotOmit<ExtArgs> | null
|
|
1293
|
+
/**
|
|
1294
|
+
* Choose, which related nodes to fetch as well
|
|
1295
|
+
*/
|
|
1296
|
+
include?: Prisma.AgentWorkQueueSnapshotInclude<ExtArgs> | null
|
|
1297
|
+
}
|