@wardby/cli 0.3.0 → 0.4.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/.env.example +22 -3
- package/README.md +11 -9
- package/dist/cli-help.d.ts +1 -1
- package/dist/cli-help.js +1 -0
- package/dist/cli.js +68 -10
- package/dist/coding/base-commit.d.ts +6 -0
- package/dist/coding/base-commit.js +12 -0
- package/dist/coding/protocol.d.ts +17 -1
- package/dist/coding/protocol.js +17 -6
- package/dist/coding/provider.d.ts +6 -1
- package/dist/coding/provider.js +16 -9
- package/dist/config/providers.d.ts +25 -0
- package/dist/config/providers.js +71 -0
- package/dist/core/attribution.d.ts +101 -0
- package/dist/core/attribution.js +208 -0
- package/dist/core/budget-groups.d.ts +17 -10
- package/dist/core/budget-groups.js +15 -12
- package/dist/core/coding-queue.d.ts +3 -0
- package/dist/core/coding-queue.js +6 -2
- package/dist/core/coding-service-status.d.ts +11 -0
- package/dist/core/coding-service-status.js +17 -0
- package/dist/core/cost-report.d.ts +88 -0
- package/dist/core/cost-report.js +248 -0
- package/dist/core/dispatch.d.ts +42 -2
- package/dist/core/dispatch.js +144 -26
- package/dist/core/engine-native.js +17 -4
- package/dist/core/glob.d.ts +10 -0
- package/dist/core/glob.js +33 -0
- package/dist/core/host-events.d.ts +24 -1
- package/dist/core/host-events.js +341 -1
- package/dist/core/host-status.d.ts +19 -2
- package/dist/core/host-status.js +47 -30
- package/dist/core/issue-bridge.d.ts +60 -0
- package/dist/core/issue-bridge.js +189 -0
- package/dist/core/issue-dedupe.d.ts +70 -0
- package/dist/core/issue-dedupe.js +255 -0
- package/dist/core/issue-events.d.ts +42 -0
- package/dist/core/issue-events.js +155 -0
- package/dist/core/issue-status.d.ts +29 -0
- package/dist/core/issue-status.js +241 -0
- package/dist/core/issue-tracker-tools.d.ts +64 -0
- package/dist/core/issue-tracker-tools.js +850 -0
- package/dist/core/model-usage.d.ts +10 -0
- package/dist/core/model-usage.js +24 -0
- package/dist/core/reconciler.d.ts +8 -4
- package/dist/core/reconciler.js +15 -4
- package/dist/core/review-host-tools.js +10 -3
- package/dist/core/run-pricing.d.ts +61 -0
- package/dist/core/run-pricing.js +56 -0
- package/dist/core/runner.d.ts +5 -2
- package/dist/core/runner.js +178 -27
- package/dist/core/scheduler.d.ts +4 -1
- package/dist/core/scheduler.js +3 -2
- package/dist/core/self-defects.d.ts +80 -0
- package/dist/core/self-defects.js +180 -0
- package/dist/core/tool-names.js +3 -0
- package/dist/core/webhooks.d.ts +9 -1
- package/dist/core/webhooks.js +19 -1
- package/dist/env.js +6 -1
- package/dist/generated/prisma/browser.d.ts +66 -0
- package/dist/generated/prisma/client.d.ts +66 -0
- package/dist/generated/prisma/commonInputTypes.d.ts +122 -52
- package/dist/generated/prisma/enums.d.ts +7 -0
- package/dist/generated/prisma/enums.js +6 -0
- package/dist/generated/prisma/internal/class.d.ts +99 -0
- package/dist/generated/prisma/internal/class.js +4 -4
- package/dist/generated/prisma/internal/prismaNamespace.d.ts +826 -1
- package/dist/generated/prisma/internal/prismaNamespace.js +135 -2
- package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +142 -0
- package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +135 -2
- package/dist/generated/prisma/models/Agent.d.ts +389 -1
- package/dist/generated/prisma/models/AgentIssueProject.d.ts +1838 -0
- package/dist/generated/prisma/models/AgentIssueProject.js +1 -0
- package/dist/generated/prisma/models/AgentRepository.d.ts +1 -1
- package/dist/generated/prisma/models/AuthUser.d.ts +1 -1
- package/dist/generated/prisma/models/CodingProxySession.d.ts +73 -1
- package/dist/generated/prisma/models/CodingRun.d.ts +130 -1
- package/dist/generated/prisma/models/CodingRunServiceStatus.d.ts +1404 -0
- package/dist/generated/prisma/models/CodingRunServiceStatus.js +1 -0
- package/dist/generated/prisma/models/IssueFingerprint.d.ts +1183 -0
- package/dist/generated/prisma/models/IssueFingerprint.js +1 -0
- package/dist/generated/prisma/models/IssuePullRequest.d.ts +1255 -0
- package/dist/generated/prisma/models/IssuePullRequest.js +1 -0
- package/dist/generated/prisma/models/ModelCatalogEntry.d.ts +1322 -0
- package/dist/generated/prisma/models/ModelCatalogEntry.js +1 -0
- package/dist/generated/prisma/models/Run.d.ts +933 -1
- package/dist/generated/prisma/models/RunAttribution.d.ts +1259 -0
- package/dist/generated/prisma/models/RunAttribution.js +1 -0
- package/dist/generated/prisma/models/RunIssueStatus.d.ts +1199 -0
- package/dist/generated/prisma/models/RunIssueStatus.js +1 -0
- package/dist/generated/prisma/models/RunModelUsage.d.ts +1316 -0
- package/dist/generated/prisma/models/RunModelUsage.js +1 -0
- package/dist/generated/prisma/models/WorkItem.d.ts +1408 -0
- package/dist/generated/prisma/models/WorkItem.js +1 -0
- package/dist/generated/prisma/models.d.ts +9 -0
- package/dist/help-index.json +355 -16
- package/dist/import/neutral-schema.d.ts +16 -16
- package/dist/knowledge/check.d.ts +13 -0
- package/dist/knowledge/check.js +69 -0
- package/dist/knowledge/cli.d.ts +14 -0
- package/dist/knowledge/cli.js +67 -0
- package/dist/knowledge/concept.d.ts +54 -0
- package/dist/knowledge/concept.js +78 -0
- package/dist/knowledge/note.d.ts +11 -0
- package/dist/knowledge/note.js +39 -0
- package/dist/knowledge/relevance.d.ts +11 -0
- package/dist/knowledge/relevance.js +14 -0
- package/dist/knowledge/span-hash.d.ts +3 -0
- package/dist/knowledge/span-hash.js +16 -0
- package/dist/mcp/auth/access.d.ts +4 -2
- package/dist/mcp/auth/ownership.d.ts +9 -9
- package/dist/mcp/auth/resource-server.d.ts +3 -1
- package/dist/mcp/auth/resource-server.js +18 -3
- package/dist/mcp/auth/self-hosted/credentials.d.ts +3 -3
- package/dist/mcp/auth/self-hosted/session.d.ts +5 -5
- package/dist/mcp/context.d.ts +3 -0
- package/dist/mcp/host-events/deliveries.d.ts +9 -0
- package/dist/mcp/host-events/deliveries.js +17 -0
- package/dist/mcp/host-events/github-ingress.d.ts +4 -2
- package/dist/mcp/host-events/github-ingress.js +4 -13
- package/dist/mcp/host-events/jira-ingress.d.ts +29 -0
- package/dist/mcp/host-events/jira-ingress.js +92 -0
- package/dist/mcp/index.d.ts +2 -0
- package/dist/mcp/index.js +87 -9
- package/dist/mcp/server.js +5 -2
- package/dist/mcp/tools/agents.js +74 -3
- package/dist/mcp/tools/cost-report.d.ts +8 -0
- package/dist/mcp/tools/cost-report.js +60 -0
- package/dist/mcp/tools/issue-projects.d.ts +2 -0
- package/dist/mcp/tools/issue-projects.js +238 -0
- package/dist/mcp/tools/model-catalog.d.ts +22 -0
- package/dist/mcp/tools/model-catalog.js +423 -0
- package/dist/mcp/tools/repositories.js +2 -1
- package/dist/mcp/tools/tools.d.ts +2 -2
- package/dist/mcp/tools/trigger.js +33 -5
- package/dist/mcp/transport/streamable-http.d.ts +5 -0
- package/dist/mcp/transport/streamable-http.js +23 -1
- package/dist/mcp/webhooks/ingress.d.ts +2 -1
- package/dist/mcp/webhooks/ingress.js +9 -2
- package/dist/providers/auth/self-hosted.d.ts +8 -1
- package/dist/providers/auth/self-hosted.js +39 -2
- package/dist/providers/coding-proxy/memory-ledger.d.ts +1 -1
- package/dist/providers/coding-proxy/memory-ledger.js +10 -1
- package/dist/providers/coding-proxy/metering.d.ts +2 -1
- package/dist/providers/coding-proxy/metering.js +13 -2
- package/dist/providers/coding-proxy/prisma-ledger.js +59 -6
- package/dist/providers/coding-proxy/proxy.d.ts +12 -2
- package/dist/providers/coding-proxy/proxy.js +92 -30
- package/dist/providers/coding-proxy/types.d.ts +18 -1
- package/dist/providers/coding-proxy/types.js +12 -1
- package/dist/providers/engine/types.d.ts +19 -0
- package/dist/providers/executor/composition.js +9 -1
- package/dist/providers/executor/container.d.ts +30 -2
- package/dist/providers/executor/container.js +98 -17
- package/dist/providers/executor/dbos.d.ts +2 -0
- package/dist/providers/executor/dbos.js +7 -5
- package/dist/providers/executor/routing.d.ts +6 -0
- package/dist/providers/executor/routing.js +5 -0
- package/dist/providers/executor/types.d.ts +12 -0
- package/dist/providers/issue-tracker/adf.d.ts +31 -0
- package/dist/providers/issue-tracker/adf.js +181 -0
- package/dist/providers/issue-tracker/index.d.ts +5 -0
- package/dist/providers/issue-tracker/index.js +12 -0
- package/dist/providers/issue-tracker/jira-client.d.ts +41 -0
- package/dist/providers/issue-tracker/jira-client.js +151 -0
- package/dist/providers/issue-tracker/jira-events.d.ts +3 -0
- package/dist/providers/issue-tracker/jira-events.js +98 -0
- package/dist/providers/issue-tracker/jira.d.ts +116 -0
- package/dist/providers/issue-tracker/jira.js +502 -0
- package/dist/providers/issue-tracker/types.d.ts +269 -0
- package/dist/providers/issue-tracker/types.js +16 -0
- package/dist/providers/jobs/docker.d.ts +5 -1
- package/dist/providers/jobs/docker.js +61 -33
- package/dist/providers/jobs/kubernetes.d.ts +3 -0
- package/dist/providers/jobs/kubernetes.js +44 -4
- package/dist/providers/jobs/service-state.d.ts +22 -0
- package/dist/providers/jobs/service-state.js +17 -0
- package/dist/providers/llm/anthropic.d.ts +3 -3
- package/dist/providers/llm/anthropic.js +3 -9
- package/dist/providers/llm/bedrock.d.ts +3 -3
- package/dist/providers/llm/bedrock.js +3 -9
- package/dist/providers/llm/catalog-lookup.d.ts +10 -0
- package/dist/providers/llm/catalog-lookup.js +15 -0
- package/dist/providers/llm/catalog-shipped.d.ts +18 -0
- package/dist/providers/llm/catalog-shipped.js +197 -0
- package/dist/providers/llm/catalog-store.d.ts +58 -0
- package/dist/providers/llm/catalog-store.js +138 -0
- package/dist/providers/llm/catalog-types.d.ts +66 -0
- package/dist/providers/llm/catalog-types.js +64 -0
- package/dist/providers/llm/catalog.d.ts +61 -0
- package/dist/providers/llm/catalog.js +147 -0
- package/dist/providers/llm/claude-provider.d.ts +10 -14
- package/dist/providers/llm/claude-provider.js +11 -6
- package/dist/providers/llm/index.d.ts +9 -6
- package/dist/providers/llm/index.js +8 -5
- package/dist/providers/llm/openai.d.ts +14 -5
- package/dist/providers/llm/openai.js +24 -14
- package/dist/providers/llm/pricing-core.d.ts +5 -3
- package/dist/providers/llm/registration.js +8 -12
- package/dist/providers/llm/routing.d.ts +18 -17
- package/dist/providers/llm/routing.js +40 -24
- package/dist/providers/review-host/github-events.js +47 -1
- package/dist/providers/review-host/github.js +7 -6
- package/dist/providers/review-host/types.d.ts +25 -0
- package/dist/providers/vcs/git.js +2 -22
- package/dist/providers/vcs/github.d.ts +20 -0
- package/dist/providers/vcs/github.js +28 -2
- package/dist/providers/vcs/types.d.ts +6 -0
- package/dist/quickstart/index.d.ts +8 -0
- package/dist/quickstart/index.js +34 -34
- package/dist/serve.js +8 -2
- package/dist/viewer/api-schema.d.ts +2757 -0
- package/dist/viewer/api-schema.js +165 -0
- package/dist/viewer/build-schemas.d.ts +2 -0
- package/dist/viewer/build-schemas.js +18 -0
- package/dist/viewer/event-bus.d.ts +38 -0
- package/dist/viewer/event-bus.js +232 -0
- package/dist/viewer/graph.d.ts +40 -0
- package/dist/viewer/graph.js +243 -0
- package/dist/viewer/http.d.ts +30 -0
- package/dist/viewer/http.js +133 -0
- package/dist/viewer/run-detail.d.ts +4 -0
- package/dist/viewer/run-detail.js +61 -0
- package/dist/wardby-bin.js +5 -0
- package/docs/README.md +10 -0
- package/docs/agent-recipes.md +383 -0
- package/docs/code-review-agents.md +29 -2
- package/docs/coding-agent-setup.md +3 -0
- package/docs/coding-worker-isolation.md +39 -5
- package/docs/getting-started-gke.md +28 -11
- package/docs/getting-started-identity-provider.md +49 -38
- package/docs/getting-started.md +14 -0
- package/docs/jira-agents.md +649 -0
- package/docs/knowledge.md +387 -0
- package/docs/models.md +221 -0
- package/docs/security-deployment.md +19 -9
- package/docs/viewer-api.md +142 -0
- package/help/admin-viewer.md +39 -0
- package/help/agent-recipes.md +173 -0
- package/help/architecture-agent.md +189 -0
- package/help/builder-agent.md +80 -0
- package/help/code-review-agents.md +6 -0
- package/help/cost-attribution.md +67 -0
- package/help/creating-agents.md +22 -0
- package/help/deploy-gke.md +6 -0
- package/help/errors/model-unavailable.md +63 -0
- package/help/getting-started.md +1 -0
- package/help/github.md +18 -0
- package/help/identity-and-access.md +8 -3
- package/help/jira.md +135 -0
- package/help/knowledge.md +47 -0
- package/help/models.md +90 -0
- package/help/operating-agents.md +7 -1
- package/help/troubleshooting/budgets.md +6 -0
- package/package.json +5 -2
- package/prisma/migrations/20260930000000_jira_issue_projects/migration.sql +34 -0
- package/prisma/migrations/20261001000000_jira_phase2_allowlists/migration.sql +3 -0
- package/prisma/migrations/20261001010000_jira_link_types_allowlist/migration.sql +2 -0
- package/prisma/migrations/20261002000000_jira_coding_bridge/migration.sql +28 -0
- package/prisma/migrations/20261002010000_jira_issue_creation/migration.sql +25 -0
- package/prisma/migrations/20261003000000_issue_cost_attribution/migration.sql +56 -0
- package/prisma/migrations/20261003010000_coding_run_service_status/migration.sql +23 -0
- package/prisma/migrations/20261003020000_viewer_notify/migration.sql +54 -0
- package/prisma/migrations/20261003030000_viewer_notify_fixes/migration.sql +47 -0
- package/prisma/migrations/20261003040000_viewer_indexes/migration.sql +12 -0
- package/prisma/migrations/20261004000000_model_catalog/migration.sql +26 -0
- package/prisma/schema.prisma +258 -2
- package/dist/mcp/tools/models.d.ts +0 -8
- package/dist/mcp/tools/models.js +0 -15
- package/dist/providers/llm/pricing-anthropic.d.ts +0 -14
- package/dist/providers/llm/pricing-anthropic.js +0 -48
- package/dist/providers/llm/pricing-bedrock-claude.d.ts +0 -20
- package/dist/providers/llm/pricing-bedrock-claude.js +0 -46
- package/dist/providers/llm/pricing.d.ts +0 -30
- package/dist/providers/llm/pricing.js +0 -74
|
@@ -0,0 +1,1408 @@
|
|
|
1
|
+
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as Prisma from "../internal/prismaNamespace.js";
|
|
3
|
+
/**
|
|
4
|
+
* Model WorkItem
|
|
5
|
+
* Latest known state of an issue/epic in an external tracker (Jira, later
|
|
6
|
+
* Linear). Shared by every run attributed to it; titles are refreshed by the
|
|
7
|
+
* next snapshot, so reports always show current names.
|
|
8
|
+
*/
|
|
9
|
+
export type WorkItemModel = runtime.Types.Result.DefaultSelection<Prisma.$WorkItemPayload>;
|
|
10
|
+
export type AggregateWorkItem = {
|
|
11
|
+
_count: WorkItemCountAggregateOutputType | null;
|
|
12
|
+
_min: WorkItemMinAggregateOutputType | null;
|
|
13
|
+
_max: WorkItemMaxAggregateOutputType | null;
|
|
14
|
+
};
|
|
15
|
+
export type WorkItemMinAggregateOutputType = {
|
|
16
|
+
id: string | null;
|
|
17
|
+
provider: string | null;
|
|
18
|
+
key: string | null;
|
|
19
|
+
title: string | null;
|
|
20
|
+
type: string | null;
|
|
21
|
+
url: string | null;
|
|
22
|
+
scopeKey: string | null;
|
|
23
|
+
parentKey: string | null;
|
|
24
|
+
parentKind: string | null;
|
|
25
|
+
refreshedAt: Date | null;
|
|
26
|
+
createdAt: Date | null;
|
|
27
|
+
updatedAt: Date | null;
|
|
28
|
+
};
|
|
29
|
+
export type WorkItemMaxAggregateOutputType = {
|
|
30
|
+
id: string | null;
|
|
31
|
+
provider: string | null;
|
|
32
|
+
key: string | null;
|
|
33
|
+
title: string | null;
|
|
34
|
+
type: string | null;
|
|
35
|
+
url: string | null;
|
|
36
|
+
scopeKey: string | null;
|
|
37
|
+
parentKey: string | null;
|
|
38
|
+
parentKind: string | null;
|
|
39
|
+
refreshedAt: Date | null;
|
|
40
|
+
createdAt: Date | null;
|
|
41
|
+
updatedAt: Date | null;
|
|
42
|
+
};
|
|
43
|
+
export type WorkItemCountAggregateOutputType = {
|
|
44
|
+
id: number;
|
|
45
|
+
provider: number;
|
|
46
|
+
key: number;
|
|
47
|
+
title: number;
|
|
48
|
+
type: number;
|
|
49
|
+
url: number;
|
|
50
|
+
scopeKey: number;
|
|
51
|
+
parentKey: number;
|
|
52
|
+
parentKind: number;
|
|
53
|
+
refreshedAt: number;
|
|
54
|
+
createdAt: number;
|
|
55
|
+
updatedAt: number;
|
|
56
|
+
_all: number;
|
|
57
|
+
};
|
|
58
|
+
export type WorkItemMinAggregateInputType = {
|
|
59
|
+
id?: true;
|
|
60
|
+
provider?: true;
|
|
61
|
+
key?: true;
|
|
62
|
+
title?: true;
|
|
63
|
+
type?: true;
|
|
64
|
+
url?: true;
|
|
65
|
+
scopeKey?: true;
|
|
66
|
+
parentKey?: true;
|
|
67
|
+
parentKind?: true;
|
|
68
|
+
refreshedAt?: true;
|
|
69
|
+
createdAt?: true;
|
|
70
|
+
updatedAt?: true;
|
|
71
|
+
};
|
|
72
|
+
export type WorkItemMaxAggregateInputType = {
|
|
73
|
+
id?: true;
|
|
74
|
+
provider?: true;
|
|
75
|
+
key?: true;
|
|
76
|
+
title?: true;
|
|
77
|
+
type?: true;
|
|
78
|
+
url?: true;
|
|
79
|
+
scopeKey?: true;
|
|
80
|
+
parentKey?: true;
|
|
81
|
+
parentKind?: true;
|
|
82
|
+
refreshedAt?: true;
|
|
83
|
+
createdAt?: true;
|
|
84
|
+
updatedAt?: true;
|
|
85
|
+
};
|
|
86
|
+
export type WorkItemCountAggregateInputType = {
|
|
87
|
+
id?: true;
|
|
88
|
+
provider?: true;
|
|
89
|
+
key?: true;
|
|
90
|
+
title?: true;
|
|
91
|
+
type?: true;
|
|
92
|
+
url?: true;
|
|
93
|
+
scopeKey?: true;
|
|
94
|
+
parentKey?: true;
|
|
95
|
+
parentKind?: true;
|
|
96
|
+
refreshedAt?: true;
|
|
97
|
+
createdAt?: true;
|
|
98
|
+
updatedAt?: true;
|
|
99
|
+
_all?: true;
|
|
100
|
+
};
|
|
101
|
+
export type WorkItemAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
102
|
+
/**
|
|
103
|
+
* Filter which WorkItem to aggregate.
|
|
104
|
+
*/
|
|
105
|
+
where?: Prisma.WorkItemWhereInput;
|
|
106
|
+
/**
|
|
107
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
108
|
+
*
|
|
109
|
+
* Determine the order of WorkItems to fetch.
|
|
110
|
+
*/
|
|
111
|
+
orderBy?: Prisma.WorkItemOrderByWithRelationInput | Prisma.WorkItemOrderByWithRelationInput[];
|
|
112
|
+
/**
|
|
113
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
114
|
+
*
|
|
115
|
+
* Sets the start position
|
|
116
|
+
*/
|
|
117
|
+
cursor?: Prisma.WorkItemWhereUniqueInput;
|
|
118
|
+
/**
|
|
119
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
120
|
+
*
|
|
121
|
+
* Take `±n` WorkItems from the position of the cursor.
|
|
122
|
+
*/
|
|
123
|
+
take?: number;
|
|
124
|
+
/**
|
|
125
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
126
|
+
*
|
|
127
|
+
* Skip the first `n` WorkItems.
|
|
128
|
+
*/
|
|
129
|
+
skip?: number;
|
|
130
|
+
/**
|
|
131
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
132
|
+
*
|
|
133
|
+
* Count returned WorkItems
|
|
134
|
+
**/
|
|
135
|
+
_count?: true | WorkItemCountAggregateInputType;
|
|
136
|
+
/**
|
|
137
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
138
|
+
*
|
|
139
|
+
* Select which fields to find the minimum value
|
|
140
|
+
**/
|
|
141
|
+
_min?: WorkItemMinAggregateInputType;
|
|
142
|
+
/**
|
|
143
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
144
|
+
*
|
|
145
|
+
* Select which fields to find the maximum value
|
|
146
|
+
**/
|
|
147
|
+
_max?: WorkItemMaxAggregateInputType;
|
|
148
|
+
};
|
|
149
|
+
export type GetWorkItemAggregateType<T extends WorkItemAggregateArgs> = {
|
|
150
|
+
[P in keyof T & keyof AggregateWorkItem]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateWorkItem[P]> : Prisma.GetScalarType<T[P], AggregateWorkItem[P]>;
|
|
151
|
+
};
|
|
152
|
+
export type WorkItemGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
153
|
+
where?: Prisma.WorkItemWhereInput;
|
|
154
|
+
orderBy?: Prisma.WorkItemOrderByWithAggregationInput | Prisma.WorkItemOrderByWithAggregationInput[];
|
|
155
|
+
by: Prisma.WorkItemScalarFieldEnum[] | Prisma.WorkItemScalarFieldEnum;
|
|
156
|
+
having?: Prisma.WorkItemScalarWhereWithAggregatesInput;
|
|
157
|
+
take?: number;
|
|
158
|
+
skip?: number;
|
|
159
|
+
_count?: WorkItemCountAggregateInputType | true;
|
|
160
|
+
_min?: WorkItemMinAggregateInputType;
|
|
161
|
+
_max?: WorkItemMaxAggregateInputType;
|
|
162
|
+
};
|
|
163
|
+
export type WorkItemGroupByOutputType = {
|
|
164
|
+
id: string;
|
|
165
|
+
provider: string;
|
|
166
|
+
key: string;
|
|
167
|
+
title: string | null;
|
|
168
|
+
type: string | null;
|
|
169
|
+
url: string | null;
|
|
170
|
+
scopeKey: string;
|
|
171
|
+
parentKey: string | null;
|
|
172
|
+
parentKind: string | null;
|
|
173
|
+
refreshedAt: Date | null;
|
|
174
|
+
createdAt: Date;
|
|
175
|
+
updatedAt: Date;
|
|
176
|
+
_count: WorkItemCountAggregateOutputType | null;
|
|
177
|
+
_min: WorkItemMinAggregateOutputType | null;
|
|
178
|
+
_max: WorkItemMaxAggregateOutputType | null;
|
|
179
|
+
};
|
|
180
|
+
export type GetWorkItemGroupByPayload<T extends WorkItemGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<WorkItemGroupByOutputType, T['by']> & {
|
|
181
|
+
[P in ((keyof T) & (keyof WorkItemGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], WorkItemGroupByOutputType[P]> : Prisma.GetScalarType<T[P], WorkItemGroupByOutputType[P]>;
|
|
182
|
+
}>>;
|
|
183
|
+
export type WorkItemWhereInput = {
|
|
184
|
+
AND?: Prisma.WorkItemWhereInput | Prisma.WorkItemWhereInput[];
|
|
185
|
+
OR?: Prisma.WorkItemWhereInput[];
|
|
186
|
+
NOT?: Prisma.WorkItemWhereInput | Prisma.WorkItemWhereInput[];
|
|
187
|
+
id?: Prisma.StringFilter<"WorkItem"> | string;
|
|
188
|
+
provider?: Prisma.StringFilter<"WorkItem"> | string;
|
|
189
|
+
key?: Prisma.StringFilter<"WorkItem"> | string;
|
|
190
|
+
title?: Prisma.StringNullableFilter<"WorkItem"> | string | null;
|
|
191
|
+
type?: Prisma.StringNullableFilter<"WorkItem"> | string | null;
|
|
192
|
+
url?: Prisma.StringNullableFilter<"WorkItem"> | string | null;
|
|
193
|
+
scopeKey?: Prisma.StringFilter<"WorkItem"> | string;
|
|
194
|
+
parentKey?: Prisma.StringNullableFilter<"WorkItem"> | string | null;
|
|
195
|
+
parentKind?: Prisma.StringNullableFilter<"WorkItem"> | string | null;
|
|
196
|
+
refreshedAt?: Prisma.DateTimeNullableFilter<"WorkItem"> | Date | string | null;
|
|
197
|
+
createdAt?: Prisma.DateTimeFilter<"WorkItem"> | Date | string;
|
|
198
|
+
updatedAt?: Prisma.DateTimeFilter<"WorkItem"> | Date | string;
|
|
199
|
+
attributions?: Prisma.RunAttributionListRelationFilter;
|
|
200
|
+
};
|
|
201
|
+
export type WorkItemOrderByWithRelationInput = {
|
|
202
|
+
id?: Prisma.SortOrder;
|
|
203
|
+
provider?: Prisma.SortOrder;
|
|
204
|
+
key?: Prisma.SortOrder;
|
|
205
|
+
title?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
206
|
+
type?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
207
|
+
url?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
208
|
+
scopeKey?: Prisma.SortOrder;
|
|
209
|
+
parentKey?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
210
|
+
parentKind?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
211
|
+
refreshedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
212
|
+
createdAt?: Prisma.SortOrder;
|
|
213
|
+
updatedAt?: Prisma.SortOrder;
|
|
214
|
+
attributions?: Prisma.RunAttributionOrderByRelationAggregateInput;
|
|
215
|
+
};
|
|
216
|
+
export type WorkItemWhereUniqueInput = Prisma.AtLeast<{
|
|
217
|
+
id?: string;
|
|
218
|
+
provider_key?: Prisma.WorkItemProviderKeyCompoundUniqueInput;
|
|
219
|
+
AND?: Prisma.WorkItemWhereInput | Prisma.WorkItemWhereInput[];
|
|
220
|
+
OR?: Prisma.WorkItemWhereInput[];
|
|
221
|
+
NOT?: Prisma.WorkItemWhereInput | Prisma.WorkItemWhereInput[];
|
|
222
|
+
provider?: Prisma.StringFilter<"WorkItem"> | string;
|
|
223
|
+
key?: Prisma.StringFilter<"WorkItem"> | string;
|
|
224
|
+
title?: Prisma.StringNullableFilter<"WorkItem"> | string | null;
|
|
225
|
+
type?: Prisma.StringNullableFilter<"WorkItem"> | string | null;
|
|
226
|
+
url?: Prisma.StringNullableFilter<"WorkItem"> | string | null;
|
|
227
|
+
scopeKey?: Prisma.StringFilter<"WorkItem"> | string;
|
|
228
|
+
parentKey?: Prisma.StringNullableFilter<"WorkItem"> | string | null;
|
|
229
|
+
parentKind?: Prisma.StringNullableFilter<"WorkItem"> | string | null;
|
|
230
|
+
refreshedAt?: Prisma.DateTimeNullableFilter<"WorkItem"> | Date | string | null;
|
|
231
|
+
createdAt?: Prisma.DateTimeFilter<"WorkItem"> | Date | string;
|
|
232
|
+
updatedAt?: Prisma.DateTimeFilter<"WorkItem"> | Date | string;
|
|
233
|
+
attributions?: Prisma.RunAttributionListRelationFilter;
|
|
234
|
+
}, "id" | "provider_key">;
|
|
235
|
+
export type WorkItemOrderByWithAggregationInput = {
|
|
236
|
+
id?: Prisma.SortOrder;
|
|
237
|
+
provider?: Prisma.SortOrder;
|
|
238
|
+
key?: Prisma.SortOrder;
|
|
239
|
+
title?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
240
|
+
type?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
241
|
+
url?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
242
|
+
scopeKey?: Prisma.SortOrder;
|
|
243
|
+
parentKey?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
244
|
+
parentKind?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
245
|
+
refreshedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
246
|
+
createdAt?: Prisma.SortOrder;
|
|
247
|
+
updatedAt?: Prisma.SortOrder;
|
|
248
|
+
_count?: Prisma.WorkItemCountOrderByAggregateInput;
|
|
249
|
+
_max?: Prisma.WorkItemMaxOrderByAggregateInput;
|
|
250
|
+
_min?: Prisma.WorkItemMinOrderByAggregateInput;
|
|
251
|
+
};
|
|
252
|
+
export type WorkItemScalarWhereWithAggregatesInput = {
|
|
253
|
+
AND?: Prisma.WorkItemScalarWhereWithAggregatesInput | Prisma.WorkItemScalarWhereWithAggregatesInput[];
|
|
254
|
+
OR?: Prisma.WorkItemScalarWhereWithAggregatesInput[];
|
|
255
|
+
NOT?: Prisma.WorkItemScalarWhereWithAggregatesInput | Prisma.WorkItemScalarWhereWithAggregatesInput[];
|
|
256
|
+
id?: Prisma.StringWithAggregatesFilter<"WorkItem"> | string;
|
|
257
|
+
provider?: Prisma.StringWithAggregatesFilter<"WorkItem"> | string;
|
|
258
|
+
key?: Prisma.StringWithAggregatesFilter<"WorkItem"> | string;
|
|
259
|
+
title?: Prisma.StringNullableWithAggregatesFilter<"WorkItem"> | string | null;
|
|
260
|
+
type?: Prisma.StringNullableWithAggregatesFilter<"WorkItem"> | string | null;
|
|
261
|
+
url?: Prisma.StringNullableWithAggregatesFilter<"WorkItem"> | string | null;
|
|
262
|
+
scopeKey?: Prisma.StringWithAggregatesFilter<"WorkItem"> | string;
|
|
263
|
+
parentKey?: Prisma.StringNullableWithAggregatesFilter<"WorkItem"> | string | null;
|
|
264
|
+
parentKind?: Prisma.StringNullableWithAggregatesFilter<"WorkItem"> | string | null;
|
|
265
|
+
refreshedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"WorkItem"> | Date | string | null;
|
|
266
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"WorkItem"> | Date | string;
|
|
267
|
+
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"WorkItem"> | Date | string;
|
|
268
|
+
};
|
|
269
|
+
export type WorkItemCreateInput = {
|
|
270
|
+
id?: string;
|
|
271
|
+
provider: string;
|
|
272
|
+
key: string;
|
|
273
|
+
title?: string | null;
|
|
274
|
+
type?: string | null;
|
|
275
|
+
url?: string | null;
|
|
276
|
+
scopeKey: string;
|
|
277
|
+
parentKey?: string | null;
|
|
278
|
+
parentKind?: string | null;
|
|
279
|
+
refreshedAt?: Date | string | null;
|
|
280
|
+
createdAt?: Date | string;
|
|
281
|
+
updatedAt?: Date | string;
|
|
282
|
+
attributions?: Prisma.RunAttributionCreateNestedManyWithoutWorkItemInput;
|
|
283
|
+
};
|
|
284
|
+
export type WorkItemUncheckedCreateInput = {
|
|
285
|
+
id?: string;
|
|
286
|
+
provider: string;
|
|
287
|
+
key: string;
|
|
288
|
+
title?: string | null;
|
|
289
|
+
type?: string | null;
|
|
290
|
+
url?: string | null;
|
|
291
|
+
scopeKey: string;
|
|
292
|
+
parentKey?: string | null;
|
|
293
|
+
parentKind?: string | null;
|
|
294
|
+
refreshedAt?: Date | string | null;
|
|
295
|
+
createdAt?: Date | string;
|
|
296
|
+
updatedAt?: Date | string;
|
|
297
|
+
attributions?: Prisma.RunAttributionUncheckedCreateNestedManyWithoutWorkItemInput;
|
|
298
|
+
};
|
|
299
|
+
export type WorkItemUpdateInput = {
|
|
300
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
301
|
+
provider?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
302
|
+
key?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
303
|
+
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
304
|
+
type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
305
|
+
url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
306
|
+
scopeKey?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
307
|
+
parentKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
308
|
+
parentKind?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
309
|
+
refreshedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
310
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
311
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
312
|
+
attributions?: Prisma.RunAttributionUpdateManyWithoutWorkItemNestedInput;
|
|
313
|
+
};
|
|
314
|
+
export type WorkItemUncheckedUpdateInput = {
|
|
315
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
316
|
+
provider?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
317
|
+
key?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
318
|
+
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
319
|
+
type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
320
|
+
url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
321
|
+
scopeKey?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
322
|
+
parentKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
323
|
+
parentKind?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
324
|
+
refreshedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
325
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
326
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
327
|
+
attributions?: Prisma.RunAttributionUncheckedUpdateManyWithoutWorkItemNestedInput;
|
|
328
|
+
};
|
|
329
|
+
export type WorkItemCreateManyInput = {
|
|
330
|
+
id?: string;
|
|
331
|
+
provider: string;
|
|
332
|
+
key: string;
|
|
333
|
+
title?: string | null;
|
|
334
|
+
type?: string | null;
|
|
335
|
+
url?: string | null;
|
|
336
|
+
scopeKey: string;
|
|
337
|
+
parentKey?: string | null;
|
|
338
|
+
parentKind?: string | null;
|
|
339
|
+
refreshedAt?: Date | string | null;
|
|
340
|
+
createdAt?: Date | string;
|
|
341
|
+
updatedAt?: Date | string;
|
|
342
|
+
};
|
|
343
|
+
export type WorkItemUpdateManyMutationInput = {
|
|
344
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
345
|
+
provider?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
346
|
+
key?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
347
|
+
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
348
|
+
type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
349
|
+
url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
350
|
+
scopeKey?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
351
|
+
parentKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
352
|
+
parentKind?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
353
|
+
refreshedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
354
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
355
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
356
|
+
};
|
|
357
|
+
export type WorkItemUncheckedUpdateManyInput = {
|
|
358
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
359
|
+
provider?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
360
|
+
key?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
361
|
+
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
362
|
+
type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
363
|
+
url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
364
|
+
scopeKey?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
365
|
+
parentKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
366
|
+
parentKind?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
367
|
+
refreshedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
368
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
369
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
370
|
+
};
|
|
371
|
+
export type WorkItemProviderKeyCompoundUniqueInput = {
|
|
372
|
+
provider: string;
|
|
373
|
+
key: string;
|
|
374
|
+
};
|
|
375
|
+
export type WorkItemCountOrderByAggregateInput = {
|
|
376
|
+
id?: Prisma.SortOrder;
|
|
377
|
+
provider?: Prisma.SortOrder;
|
|
378
|
+
key?: Prisma.SortOrder;
|
|
379
|
+
title?: Prisma.SortOrder;
|
|
380
|
+
type?: Prisma.SortOrder;
|
|
381
|
+
url?: Prisma.SortOrder;
|
|
382
|
+
scopeKey?: Prisma.SortOrder;
|
|
383
|
+
parentKey?: Prisma.SortOrder;
|
|
384
|
+
parentKind?: Prisma.SortOrder;
|
|
385
|
+
refreshedAt?: Prisma.SortOrder;
|
|
386
|
+
createdAt?: Prisma.SortOrder;
|
|
387
|
+
updatedAt?: Prisma.SortOrder;
|
|
388
|
+
};
|
|
389
|
+
export type WorkItemMaxOrderByAggregateInput = {
|
|
390
|
+
id?: Prisma.SortOrder;
|
|
391
|
+
provider?: Prisma.SortOrder;
|
|
392
|
+
key?: Prisma.SortOrder;
|
|
393
|
+
title?: Prisma.SortOrder;
|
|
394
|
+
type?: Prisma.SortOrder;
|
|
395
|
+
url?: Prisma.SortOrder;
|
|
396
|
+
scopeKey?: Prisma.SortOrder;
|
|
397
|
+
parentKey?: Prisma.SortOrder;
|
|
398
|
+
parentKind?: Prisma.SortOrder;
|
|
399
|
+
refreshedAt?: Prisma.SortOrder;
|
|
400
|
+
createdAt?: Prisma.SortOrder;
|
|
401
|
+
updatedAt?: Prisma.SortOrder;
|
|
402
|
+
};
|
|
403
|
+
export type WorkItemMinOrderByAggregateInput = {
|
|
404
|
+
id?: Prisma.SortOrder;
|
|
405
|
+
provider?: Prisma.SortOrder;
|
|
406
|
+
key?: Prisma.SortOrder;
|
|
407
|
+
title?: Prisma.SortOrder;
|
|
408
|
+
type?: Prisma.SortOrder;
|
|
409
|
+
url?: Prisma.SortOrder;
|
|
410
|
+
scopeKey?: Prisma.SortOrder;
|
|
411
|
+
parentKey?: Prisma.SortOrder;
|
|
412
|
+
parentKind?: Prisma.SortOrder;
|
|
413
|
+
refreshedAt?: Prisma.SortOrder;
|
|
414
|
+
createdAt?: Prisma.SortOrder;
|
|
415
|
+
updatedAt?: Prisma.SortOrder;
|
|
416
|
+
};
|
|
417
|
+
export type WorkItemScalarRelationFilter = {
|
|
418
|
+
is?: Prisma.WorkItemWhereInput;
|
|
419
|
+
isNot?: Prisma.WorkItemWhereInput;
|
|
420
|
+
};
|
|
421
|
+
export type WorkItemCreateNestedOneWithoutAttributionsInput = {
|
|
422
|
+
create?: Prisma.XOR<Prisma.WorkItemCreateWithoutAttributionsInput, Prisma.WorkItemUncheckedCreateWithoutAttributionsInput>;
|
|
423
|
+
connectOrCreate?: Prisma.WorkItemCreateOrConnectWithoutAttributionsInput;
|
|
424
|
+
connect?: Prisma.WorkItemWhereUniqueInput;
|
|
425
|
+
};
|
|
426
|
+
export type WorkItemUpdateOneRequiredWithoutAttributionsNestedInput = {
|
|
427
|
+
create?: Prisma.XOR<Prisma.WorkItemCreateWithoutAttributionsInput, Prisma.WorkItemUncheckedCreateWithoutAttributionsInput>;
|
|
428
|
+
connectOrCreate?: Prisma.WorkItemCreateOrConnectWithoutAttributionsInput;
|
|
429
|
+
upsert?: Prisma.WorkItemUpsertWithoutAttributionsInput;
|
|
430
|
+
connect?: Prisma.WorkItemWhereUniqueInput;
|
|
431
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.WorkItemUpdateToOneWithWhereWithoutAttributionsInput, Prisma.WorkItemUpdateWithoutAttributionsInput>, Prisma.WorkItemUncheckedUpdateWithoutAttributionsInput>;
|
|
432
|
+
};
|
|
433
|
+
export type WorkItemCreateWithoutAttributionsInput = {
|
|
434
|
+
id?: string;
|
|
435
|
+
provider: string;
|
|
436
|
+
key: string;
|
|
437
|
+
title?: string | null;
|
|
438
|
+
type?: string | null;
|
|
439
|
+
url?: string | null;
|
|
440
|
+
scopeKey: string;
|
|
441
|
+
parentKey?: string | null;
|
|
442
|
+
parentKind?: string | null;
|
|
443
|
+
refreshedAt?: Date | string | null;
|
|
444
|
+
createdAt?: Date | string;
|
|
445
|
+
updatedAt?: Date | string;
|
|
446
|
+
};
|
|
447
|
+
export type WorkItemUncheckedCreateWithoutAttributionsInput = {
|
|
448
|
+
id?: string;
|
|
449
|
+
provider: string;
|
|
450
|
+
key: string;
|
|
451
|
+
title?: string | null;
|
|
452
|
+
type?: string | null;
|
|
453
|
+
url?: string | null;
|
|
454
|
+
scopeKey: string;
|
|
455
|
+
parentKey?: string | null;
|
|
456
|
+
parentKind?: string | null;
|
|
457
|
+
refreshedAt?: Date | string | null;
|
|
458
|
+
createdAt?: Date | string;
|
|
459
|
+
updatedAt?: Date | string;
|
|
460
|
+
};
|
|
461
|
+
export type WorkItemCreateOrConnectWithoutAttributionsInput = {
|
|
462
|
+
where: Prisma.WorkItemWhereUniqueInput;
|
|
463
|
+
create: Prisma.XOR<Prisma.WorkItemCreateWithoutAttributionsInput, Prisma.WorkItemUncheckedCreateWithoutAttributionsInput>;
|
|
464
|
+
};
|
|
465
|
+
export type WorkItemUpsertWithoutAttributionsInput = {
|
|
466
|
+
update: Prisma.XOR<Prisma.WorkItemUpdateWithoutAttributionsInput, Prisma.WorkItemUncheckedUpdateWithoutAttributionsInput>;
|
|
467
|
+
create: Prisma.XOR<Prisma.WorkItemCreateWithoutAttributionsInput, Prisma.WorkItemUncheckedCreateWithoutAttributionsInput>;
|
|
468
|
+
where?: Prisma.WorkItemWhereInput;
|
|
469
|
+
};
|
|
470
|
+
export type WorkItemUpdateToOneWithWhereWithoutAttributionsInput = {
|
|
471
|
+
where?: Prisma.WorkItemWhereInput;
|
|
472
|
+
data: Prisma.XOR<Prisma.WorkItemUpdateWithoutAttributionsInput, Prisma.WorkItemUncheckedUpdateWithoutAttributionsInput>;
|
|
473
|
+
};
|
|
474
|
+
export type WorkItemUpdateWithoutAttributionsInput = {
|
|
475
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
476
|
+
provider?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
477
|
+
key?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
478
|
+
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
479
|
+
type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
480
|
+
url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
481
|
+
scopeKey?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
482
|
+
parentKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
483
|
+
parentKind?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
484
|
+
refreshedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
485
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
486
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
487
|
+
};
|
|
488
|
+
export type WorkItemUncheckedUpdateWithoutAttributionsInput = {
|
|
489
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
490
|
+
provider?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
491
|
+
key?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
492
|
+
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
493
|
+
type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
494
|
+
url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
495
|
+
scopeKey?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
496
|
+
parentKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
497
|
+
parentKind?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
498
|
+
refreshedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
499
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
500
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
501
|
+
};
|
|
502
|
+
/**
|
|
503
|
+
* Count Type WorkItemCountOutputType
|
|
504
|
+
*/
|
|
505
|
+
export type WorkItemCountOutputType = {
|
|
506
|
+
attributions: number;
|
|
507
|
+
};
|
|
508
|
+
export type WorkItemCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
509
|
+
attributions?: boolean | WorkItemCountOutputTypeCountAttributionsArgs;
|
|
510
|
+
};
|
|
511
|
+
/**
|
|
512
|
+
* WorkItemCountOutputType without action
|
|
513
|
+
*/
|
|
514
|
+
export type WorkItemCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
515
|
+
/**
|
|
516
|
+
* Select specific fields to fetch from the WorkItemCountOutputType
|
|
517
|
+
*/
|
|
518
|
+
select?: Prisma.WorkItemCountOutputTypeSelect<ExtArgs> | null;
|
|
519
|
+
};
|
|
520
|
+
/**
|
|
521
|
+
* WorkItemCountOutputType without action
|
|
522
|
+
*/
|
|
523
|
+
export type WorkItemCountOutputTypeCountAttributionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
524
|
+
where?: Prisma.RunAttributionWhereInput;
|
|
525
|
+
};
|
|
526
|
+
export type WorkItemSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
527
|
+
id?: boolean;
|
|
528
|
+
provider?: boolean;
|
|
529
|
+
key?: boolean;
|
|
530
|
+
title?: boolean;
|
|
531
|
+
type?: boolean;
|
|
532
|
+
url?: boolean;
|
|
533
|
+
scopeKey?: boolean;
|
|
534
|
+
parentKey?: boolean;
|
|
535
|
+
parentKind?: boolean;
|
|
536
|
+
refreshedAt?: boolean;
|
|
537
|
+
createdAt?: boolean;
|
|
538
|
+
updatedAt?: boolean;
|
|
539
|
+
attributions?: boolean | Prisma.WorkItem$attributionsArgs<ExtArgs>;
|
|
540
|
+
_count?: boolean | Prisma.WorkItemCountOutputTypeDefaultArgs<ExtArgs>;
|
|
541
|
+
}, ExtArgs["result"]["workItem"]>;
|
|
542
|
+
export type WorkItemSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
543
|
+
id?: boolean;
|
|
544
|
+
provider?: boolean;
|
|
545
|
+
key?: boolean;
|
|
546
|
+
title?: boolean;
|
|
547
|
+
type?: boolean;
|
|
548
|
+
url?: boolean;
|
|
549
|
+
scopeKey?: boolean;
|
|
550
|
+
parentKey?: boolean;
|
|
551
|
+
parentKind?: boolean;
|
|
552
|
+
refreshedAt?: boolean;
|
|
553
|
+
createdAt?: boolean;
|
|
554
|
+
updatedAt?: boolean;
|
|
555
|
+
}, ExtArgs["result"]["workItem"]>;
|
|
556
|
+
export type WorkItemSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
557
|
+
id?: boolean;
|
|
558
|
+
provider?: boolean;
|
|
559
|
+
key?: boolean;
|
|
560
|
+
title?: boolean;
|
|
561
|
+
type?: boolean;
|
|
562
|
+
url?: boolean;
|
|
563
|
+
scopeKey?: boolean;
|
|
564
|
+
parentKey?: boolean;
|
|
565
|
+
parentKind?: boolean;
|
|
566
|
+
refreshedAt?: boolean;
|
|
567
|
+
createdAt?: boolean;
|
|
568
|
+
updatedAt?: boolean;
|
|
569
|
+
}, ExtArgs["result"]["workItem"]>;
|
|
570
|
+
export type WorkItemSelectScalar = {
|
|
571
|
+
id?: boolean;
|
|
572
|
+
provider?: boolean;
|
|
573
|
+
key?: boolean;
|
|
574
|
+
title?: boolean;
|
|
575
|
+
type?: boolean;
|
|
576
|
+
url?: boolean;
|
|
577
|
+
scopeKey?: boolean;
|
|
578
|
+
parentKey?: boolean;
|
|
579
|
+
parentKind?: boolean;
|
|
580
|
+
refreshedAt?: boolean;
|
|
581
|
+
createdAt?: boolean;
|
|
582
|
+
updatedAt?: boolean;
|
|
583
|
+
};
|
|
584
|
+
export type WorkItemOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "provider" | "key" | "title" | "type" | "url" | "scopeKey" | "parentKey" | "parentKind" | "refreshedAt" | "createdAt" | "updatedAt", ExtArgs["result"]["workItem"]>;
|
|
585
|
+
export type WorkItemInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
586
|
+
attributions?: boolean | Prisma.WorkItem$attributionsArgs<ExtArgs>;
|
|
587
|
+
_count?: boolean | Prisma.WorkItemCountOutputTypeDefaultArgs<ExtArgs>;
|
|
588
|
+
};
|
|
589
|
+
export type WorkItemIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {};
|
|
590
|
+
export type WorkItemIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {};
|
|
591
|
+
export type $WorkItemPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
592
|
+
name: "WorkItem";
|
|
593
|
+
objects: {
|
|
594
|
+
attributions: Prisma.$RunAttributionPayload<ExtArgs>[];
|
|
595
|
+
};
|
|
596
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
597
|
+
id: string;
|
|
598
|
+
/**
|
|
599
|
+
* "jira" | "linear" | ...
|
|
600
|
+
*/
|
|
601
|
+
provider: string;
|
|
602
|
+
/**
|
|
603
|
+
* PAY-241, ENG-123
|
|
604
|
+
*/
|
|
605
|
+
key: string;
|
|
606
|
+
title: string | null;
|
|
607
|
+
type: string | null;
|
|
608
|
+
url: string | null;
|
|
609
|
+
/**
|
|
610
|
+
* Jira project / Linear team.
|
|
611
|
+
*/
|
|
612
|
+
scopeKey: string;
|
|
613
|
+
/**
|
|
614
|
+
* The current parent (epic or parent issue), refreshed on each snapshot.
|
|
615
|
+
*/
|
|
616
|
+
parentKey: string | null;
|
|
617
|
+
/**
|
|
618
|
+
* "epic" | "parent" | ...
|
|
619
|
+
*/
|
|
620
|
+
parentKind: string | null;
|
|
621
|
+
/**
|
|
622
|
+
* Last successful snapshot; null = key-only (never snapshotted).
|
|
623
|
+
*/
|
|
624
|
+
refreshedAt: Date | null;
|
|
625
|
+
createdAt: Date;
|
|
626
|
+
updatedAt: Date;
|
|
627
|
+
}, ExtArgs["result"]["workItem"]>;
|
|
628
|
+
composites: {};
|
|
629
|
+
};
|
|
630
|
+
export type WorkItemGetPayload<S extends boolean | null | undefined | WorkItemDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$WorkItemPayload, S>;
|
|
631
|
+
export type WorkItemCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<WorkItemFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
632
|
+
select?: WorkItemCountAggregateInputType | true;
|
|
633
|
+
};
|
|
634
|
+
export interface WorkItemDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
635
|
+
[K: symbol]: {
|
|
636
|
+
types: Prisma.TypeMap<ExtArgs>['model']['WorkItem'];
|
|
637
|
+
meta: {
|
|
638
|
+
name: 'WorkItem';
|
|
639
|
+
};
|
|
640
|
+
};
|
|
641
|
+
/**
|
|
642
|
+
* Find zero or one WorkItem that matches the filter.
|
|
643
|
+
* @param {WorkItemFindUniqueArgs} args - Arguments to find a WorkItem
|
|
644
|
+
* @example
|
|
645
|
+
* // Get one WorkItem
|
|
646
|
+
* const workItem = await prisma.workItem.findUnique({
|
|
647
|
+
* where: {
|
|
648
|
+
* // ... provide filter here
|
|
649
|
+
* }
|
|
650
|
+
* })
|
|
651
|
+
*/
|
|
652
|
+
findUnique<T extends WorkItemFindUniqueArgs>(args: Prisma.SelectSubset<T, WorkItemFindUniqueArgs<ExtArgs>>): Prisma.Prisma__WorkItemClient<runtime.Types.Result.GetResult<Prisma.$WorkItemPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
653
|
+
/**
|
|
654
|
+
* Find one WorkItem that matches the filter or throw an error with `error.code='P2025'`
|
|
655
|
+
* if no matches were found.
|
|
656
|
+
* @param {WorkItemFindUniqueOrThrowArgs} args - Arguments to find a WorkItem
|
|
657
|
+
* @example
|
|
658
|
+
* // Get one WorkItem
|
|
659
|
+
* const workItem = await prisma.workItem.findUniqueOrThrow({
|
|
660
|
+
* where: {
|
|
661
|
+
* // ... provide filter here
|
|
662
|
+
* }
|
|
663
|
+
* })
|
|
664
|
+
*/
|
|
665
|
+
findUniqueOrThrow<T extends WorkItemFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, WorkItemFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__WorkItemClient<runtime.Types.Result.GetResult<Prisma.$WorkItemPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
666
|
+
/**
|
|
667
|
+
* Find the first WorkItem that matches the filter.
|
|
668
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
669
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
670
|
+
* @param {WorkItemFindFirstArgs} args - Arguments to find a WorkItem
|
|
671
|
+
* @example
|
|
672
|
+
* // Get one WorkItem
|
|
673
|
+
* const workItem = await prisma.workItem.findFirst({
|
|
674
|
+
* where: {
|
|
675
|
+
* // ... provide filter here
|
|
676
|
+
* }
|
|
677
|
+
* })
|
|
678
|
+
*/
|
|
679
|
+
findFirst<T extends WorkItemFindFirstArgs>(args?: Prisma.SelectSubset<T, WorkItemFindFirstArgs<ExtArgs>>): Prisma.Prisma__WorkItemClient<runtime.Types.Result.GetResult<Prisma.$WorkItemPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
680
|
+
/**
|
|
681
|
+
* Find the first WorkItem that matches the filter or
|
|
682
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
683
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
684
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
685
|
+
* @param {WorkItemFindFirstOrThrowArgs} args - Arguments to find a WorkItem
|
|
686
|
+
* @example
|
|
687
|
+
* // Get one WorkItem
|
|
688
|
+
* const workItem = await prisma.workItem.findFirstOrThrow({
|
|
689
|
+
* where: {
|
|
690
|
+
* // ... provide filter here
|
|
691
|
+
* }
|
|
692
|
+
* })
|
|
693
|
+
*/
|
|
694
|
+
findFirstOrThrow<T extends WorkItemFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, WorkItemFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__WorkItemClient<runtime.Types.Result.GetResult<Prisma.$WorkItemPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
695
|
+
/**
|
|
696
|
+
* Find zero or more WorkItems that matches the filter.
|
|
697
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
698
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
699
|
+
* @param {WorkItemFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
700
|
+
* @example
|
|
701
|
+
* // Get all WorkItems
|
|
702
|
+
* const workItems = await prisma.workItem.findMany()
|
|
703
|
+
*
|
|
704
|
+
* // Get first 10 WorkItems
|
|
705
|
+
* const workItems = await prisma.workItem.findMany({ take: 10 })
|
|
706
|
+
*
|
|
707
|
+
* // Only select the `id`
|
|
708
|
+
* const workItemWithIdOnly = await prisma.workItem.findMany({ select: { id: true } })
|
|
709
|
+
*
|
|
710
|
+
*/
|
|
711
|
+
findMany<T extends WorkItemFindManyArgs>(args?: Prisma.SelectSubset<T, WorkItemFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorkItemPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
712
|
+
/**
|
|
713
|
+
* Create a WorkItem.
|
|
714
|
+
* @param {WorkItemCreateArgs} args - Arguments to create a WorkItem.
|
|
715
|
+
* @example
|
|
716
|
+
* // Create one WorkItem
|
|
717
|
+
* const WorkItem = await prisma.workItem.create({
|
|
718
|
+
* data: {
|
|
719
|
+
* // ... data to create a WorkItem
|
|
720
|
+
* }
|
|
721
|
+
* })
|
|
722
|
+
*
|
|
723
|
+
*/
|
|
724
|
+
create<T extends WorkItemCreateArgs>(args: Prisma.SelectSubset<T, WorkItemCreateArgs<ExtArgs>>): Prisma.Prisma__WorkItemClient<runtime.Types.Result.GetResult<Prisma.$WorkItemPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
725
|
+
/**
|
|
726
|
+
* Create many WorkItems.
|
|
727
|
+
* @param {WorkItemCreateManyArgs} args - Arguments to create many WorkItems.
|
|
728
|
+
* @example
|
|
729
|
+
* // Create many WorkItems
|
|
730
|
+
* const workItem = await prisma.workItem.createMany({
|
|
731
|
+
* data: [
|
|
732
|
+
* // ... provide data here
|
|
733
|
+
* ]
|
|
734
|
+
* })
|
|
735
|
+
*
|
|
736
|
+
*/
|
|
737
|
+
createMany<T extends WorkItemCreateManyArgs>(args?: Prisma.SelectSubset<T, WorkItemCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
738
|
+
/**
|
|
739
|
+
* Create many WorkItems and returns the data saved in the database.
|
|
740
|
+
* @param {WorkItemCreateManyAndReturnArgs} args - Arguments to create many WorkItems.
|
|
741
|
+
* @example
|
|
742
|
+
* // Create many WorkItems
|
|
743
|
+
* const workItem = await prisma.workItem.createManyAndReturn({
|
|
744
|
+
* data: [
|
|
745
|
+
* // ... provide data here
|
|
746
|
+
* ]
|
|
747
|
+
* })
|
|
748
|
+
*
|
|
749
|
+
* // Create many WorkItems and only return the `id`
|
|
750
|
+
* const workItemWithIdOnly = await prisma.workItem.createManyAndReturn({
|
|
751
|
+
* select: { id: true },
|
|
752
|
+
* data: [
|
|
753
|
+
* // ... provide data here
|
|
754
|
+
* ]
|
|
755
|
+
* })
|
|
756
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
757
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
758
|
+
*
|
|
759
|
+
*/
|
|
760
|
+
createManyAndReturn<T extends WorkItemCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, WorkItemCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorkItemPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
761
|
+
/**
|
|
762
|
+
* Delete a WorkItem.
|
|
763
|
+
* @param {WorkItemDeleteArgs} args - Arguments to delete one WorkItem.
|
|
764
|
+
* @example
|
|
765
|
+
* // Delete one WorkItem
|
|
766
|
+
* const WorkItem = await prisma.workItem.delete({
|
|
767
|
+
* where: {
|
|
768
|
+
* // ... filter to delete one WorkItem
|
|
769
|
+
* }
|
|
770
|
+
* })
|
|
771
|
+
*
|
|
772
|
+
*/
|
|
773
|
+
delete<T extends WorkItemDeleteArgs>(args: Prisma.SelectSubset<T, WorkItemDeleteArgs<ExtArgs>>): Prisma.Prisma__WorkItemClient<runtime.Types.Result.GetResult<Prisma.$WorkItemPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
774
|
+
/**
|
|
775
|
+
* Update one WorkItem.
|
|
776
|
+
* @param {WorkItemUpdateArgs} args - Arguments to update one WorkItem.
|
|
777
|
+
* @example
|
|
778
|
+
* // Update one WorkItem
|
|
779
|
+
* const workItem = await prisma.workItem.update({
|
|
780
|
+
* where: {
|
|
781
|
+
* // ... provide filter here
|
|
782
|
+
* },
|
|
783
|
+
* data: {
|
|
784
|
+
* // ... provide data here
|
|
785
|
+
* }
|
|
786
|
+
* })
|
|
787
|
+
*
|
|
788
|
+
*/
|
|
789
|
+
update<T extends WorkItemUpdateArgs>(args: Prisma.SelectSubset<T, WorkItemUpdateArgs<ExtArgs>>): Prisma.Prisma__WorkItemClient<runtime.Types.Result.GetResult<Prisma.$WorkItemPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
790
|
+
/**
|
|
791
|
+
* Delete zero or more WorkItems.
|
|
792
|
+
* @param {WorkItemDeleteManyArgs} args - Arguments to filter WorkItems to delete.
|
|
793
|
+
* @example
|
|
794
|
+
* // Delete a few WorkItems
|
|
795
|
+
* const { count } = await prisma.workItem.deleteMany({
|
|
796
|
+
* where: {
|
|
797
|
+
* // ... provide filter here
|
|
798
|
+
* }
|
|
799
|
+
* })
|
|
800
|
+
*
|
|
801
|
+
*/
|
|
802
|
+
deleteMany<T extends WorkItemDeleteManyArgs>(args?: Prisma.SelectSubset<T, WorkItemDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
803
|
+
/**
|
|
804
|
+
* Update zero or more WorkItems.
|
|
805
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
806
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
807
|
+
* @param {WorkItemUpdateManyArgs} args - Arguments to update one or more rows.
|
|
808
|
+
* @example
|
|
809
|
+
* // Update many WorkItems
|
|
810
|
+
* const workItem = await prisma.workItem.updateMany({
|
|
811
|
+
* where: {
|
|
812
|
+
* // ... provide filter here
|
|
813
|
+
* },
|
|
814
|
+
* data: {
|
|
815
|
+
* // ... provide data here
|
|
816
|
+
* }
|
|
817
|
+
* })
|
|
818
|
+
*
|
|
819
|
+
*/
|
|
820
|
+
updateMany<T extends WorkItemUpdateManyArgs>(args: Prisma.SelectSubset<T, WorkItemUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
821
|
+
/**
|
|
822
|
+
* Update zero or more WorkItems and returns the data updated in the database.
|
|
823
|
+
* @param {WorkItemUpdateManyAndReturnArgs} args - Arguments to update many WorkItems.
|
|
824
|
+
* @example
|
|
825
|
+
* // Update many WorkItems
|
|
826
|
+
* const workItem = await prisma.workItem.updateManyAndReturn({
|
|
827
|
+
* where: {
|
|
828
|
+
* // ... provide filter here
|
|
829
|
+
* },
|
|
830
|
+
* data: [
|
|
831
|
+
* // ... provide data here
|
|
832
|
+
* ]
|
|
833
|
+
* })
|
|
834
|
+
*
|
|
835
|
+
* // Update zero or more WorkItems and only return the `id`
|
|
836
|
+
* const workItemWithIdOnly = await prisma.workItem.updateManyAndReturn({
|
|
837
|
+
* select: { id: true },
|
|
838
|
+
* where: {
|
|
839
|
+
* // ... provide filter here
|
|
840
|
+
* },
|
|
841
|
+
* data: [
|
|
842
|
+
* // ... provide data here
|
|
843
|
+
* ]
|
|
844
|
+
* })
|
|
845
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
846
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
847
|
+
*
|
|
848
|
+
*/
|
|
849
|
+
updateManyAndReturn<T extends WorkItemUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, WorkItemUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorkItemPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
850
|
+
/**
|
|
851
|
+
* Create or update one WorkItem.
|
|
852
|
+
* @param {WorkItemUpsertArgs} args - Arguments to update or create a WorkItem.
|
|
853
|
+
* @example
|
|
854
|
+
* // Update or create a WorkItem
|
|
855
|
+
* const workItem = await prisma.workItem.upsert({
|
|
856
|
+
* create: {
|
|
857
|
+
* // ... data to create a WorkItem
|
|
858
|
+
* },
|
|
859
|
+
* update: {
|
|
860
|
+
* // ... in case it already exists, update
|
|
861
|
+
* },
|
|
862
|
+
* where: {
|
|
863
|
+
* // ... the filter for the WorkItem we want to update
|
|
864
|
+
* }
|
|
865
|
+
* })
|
|
866
|
+
*/
|
|
867
|
+
upsert<T extends WorkItemUpsertArgs>(args: Prisma.SelectSubset<T, WorkItemUpsertArgs<ExtArgs>>): Prisma.Prisma__WorkItemClient<runtime.Types.Result.GetResult<Prisma.$WorkItemPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
868
|
+
/**
|
|
869
|
+
* Count the number of WorkItems.
|
|
870
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
871
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
872
|
+
* @param {WorkItemCountArgs} args - Arguments to filter WorkItems to count.
|
|
873
|
+
* @example
|
|
874
|
+
* // Count the number of WorkItems
|
|
875
|
+
* const count = await prisma.workItem.count({
|
|
876
|
+
* where: {
|
|
877
|
+
* // ... the filter for the WorkItems we want to count
|
|
878
|
+
* }
|
|
879
|
+
* })
|
|
880
|
+
**/
|
|
881
|
+
count<T extends WorkItemCountArgs>(args?: Prisma.Subset<T, WorkItemCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], WorkItemCountAggregateOutputType> : number>;
|
|
882
|
+
/**
|
|
883
|
+
* Allows you to perform aggregations operations on a WorkItem.
|
|
884
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
885
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
886
|
+
* @param {WorkItemAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
887
|
+
* @example
|
|
888
|
+
* // Ordered by age ascending
|
|
889
|
+
* // Where email contains prisma.io
|
|
890
|
+
* // Limited to the 10 users
|
|
891
|
+
* const aggregations = await prisma.user.aggregate({
|
|
892
|
+
* _avg: {
|
|
893
|
+
* age: true,
|
|
894
|
+
* },
|
|
895
|
+
* where: {
|
|
896
|
+
* email: {
|
|
897
|
+
* contains: "prisma.io",
|
|
898
|
+
* },
|
|
899
|
+
* },
|
|
900
|
+
* orderBy: {
|
|
901
|
+
* age: "asc",
|
|
902
|
+
* },
|
|
903
|
+
* take: 10,
|
|
904
|
+
* })
|
|
905
|
+
**/
|
|
906
|
+
aggregate<T extends WorkItemAggregateArgs>(args: Prisma.Subset<T, WorkItemAggregateArgs>): Prisma.PrismaPromise<GetWorkItemAggregateType<T>>;
|
|
907
|
+
/**
|
|
908
|
+
* Group by WorkItem.
|
|
909
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
910
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
911
|
+
* @param {WorkItemGroupByArgs} args - Group by arguments.
|
|
912
|
+
* @example
|
|
913
|
+
* // Group by city, order by createdAt, get count
|
|
914
|
+
* const result = await prisma.user.groupBy({
|
|
915
|
+
* by: ['city', 'createdAt'],
|
|
916
|
+
* orderBy: {
|
|
917
|
+
* createdAt: true
|
|
918
|
+
* },
|
|
919
|
+
* _count: {
|
|
920
|
+
* _all: true
|
|
921
|
+
* },
|
|
922
|
+
* })
|
|
923
|
+
*
|
|
924
|
+
**/
|
|
925
|
+
groupBy<T extends WorkItemGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
926
|
+
orderBy: WorkItemGroupByArgs['orderBy'];
|
|
927
|
+
} : {
|
|
928
|
+
orderBy?: WorkItemGroupByArgs['orderBy'];
|
|
929
|
+
}, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
|
|
930
|
+
[P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
|
|
931
|
+
Error,
|
|
932
|
+
'Field ',
|
|
933
|
+
P,
|
|
934
|
+
` in "having" needs to be provided in "by"`
|
|
935
|
+
];
|
|
936
|
+
}[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
937
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
938
|
+
}[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
939
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
940
|
+
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
941
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
942
|
+
}[OrderFields]>(args: Prisma.SubsetIntersection<T, WorkItemGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetWorkItemGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
943
|
+
/**
|
|
944
|
+
* Fields of the WorkItem model
|
|
945
|
+
*/
|
|
946
|
+
readonly fields: WorkItemFieldRefs;
|
|
947
|
+
}
|
|
948
|
+
/**
|
|
949
|
+
* The delegate class that acts as a "Promise-like" for WorkItem.
|
|
950
|
+
* Why is this prefixed with `Prisma__`?
|
|
951
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
952
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
953
|
+
*/
|
|
954
|
+
export interface Prisma__WorkItemClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
955
|
+
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
956
|
+
attributions<T extends Prisma.WorkItem$attributionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.WorkItem$attributionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RunAttributionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
957
|
+
/**
|
|
958
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
959
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
960
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
961
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
962
|
+
*/
|
|
963
|
+
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>;
|
|
964
|
+
/**
|
|
965
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
966
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
967
|
+
* @returns A Promise for the completion of the callback.
|
|
968
|
+
*/
|
|
969
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
970
|
+
/**
|
|
971
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
972
|
+
* resolved value cannot be modified from the callback.
|
|
973
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
974
|
+
* @returns A Promise for the completion of the callback.
|
|
975
|
+
*/
|
|
976
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
977
|
+
}
|
|
978
|
+
/**
|
|
979
|
+
* Fields of the WorkItem model
|
|
980
|
+
*/
|
|
981
|
+
export interface WorkItemFieldRefs {
|
|
982
|
+
readonly id: Prisma.FieldRef<"WorkItem", 'String'>;
|
|
983
|
+
readonly provider: Prisma.FieldRef<"WorkItem", 'String'>;
|
|
984
|
+
readonly key: Prisma.FieldRef<"WorkItem", 'String'>;
|
|
985
|
+
readonly title: Prisma.FieldRef<"WorkItem", 'String'>;
|
|
986
|
+
readonly type: Prisma.FieldRef<"WorkItem", 'String'>;
|
|
987
|
+
readonly url: Prisma.FieldRef<"WorkItem", 'String'>;
|
|
988
|
+
readonly scopeKey: Prisma.FieldRef<"WorkItem", 'String'>;
|
|
989
|
+
readonly parentKey: Prisma.FieldRef<"WorkItem", 'String'>;
|
|
990
|
+
readonly parentKind: Prisma.FieldRef<"WorkItem", 'String'>;
|
|
991
|
+
readonly refreshedAt: Prisma.FieldRef<"WorkItem", 'DateTime'>;
|
|
992
|
+
readonly createdAt: Prisma.FieldRef<"WorkItem", 'DateTime'>;
|
|
993
|
+
readonly updatedAt: Prisma.FieldRef<"WorkItem", 'DateTime'>;
|
|
994
|
+
}
|
|
995
|
+
/**
|
|
996
|
+
* WorkItem findUnique
|
|
997
|
+
*/
|
|
998
|
+
export type WorkItemFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
999
|
+
/**
|
|
1000
|
+
* Select specific fields to fetch from the WorkItem
|
|
1001
|
+
*/
|
|
1002
|
+
select?: Prisma.WorkItemSelect<ExtArgs> | null;
|
|
1003
|
+
/**
|
|
1004
|
+
* Omit specific fields from the WorkItem
|
|
1005
|
+
*/
|
|
1006
|
+
omit?: Prisma.WorkItemOmit<ExtArgs> | null;
|
|
1007
|
+
/**
|
|
1008
|
+
* Choose, which related nodes to fetch as well
|
|
1009
|
+
*/
|
|
1010
|
+
include?: Prisma.WorkItemInclude<ExtArgs> | null;
|
|
1011
|
+
/**
|
|
1012
|
+
* Filter, which WorkItem to fetch.
|
|
1013
|
+
*/
|
|
1014
|
+
where: Prisma.WorkItemWhereUniqueInput;
|
|
1015
|
+
};
|
|
1016
|
+
/**
|
|
1017
|
+
* WorkItem findUniqueOrThrow
|
|
1018
|
+
*/
|
|
1019
|
+
export type WorkItemFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1020
|
+
/**
|
|
1021
|
+
* Select specific fields to fetch from the WorkItem
|
|
1022
|
+
*/
|
|
1023
|
+
select?: Prisma.WorkItemSelect<ExtArgs> | null;
|
|
1024
|
+
/**
|
|
1025
|
+
* Omit specific fields from the WorkItem
|
|
1026
|
+
*/
|
|
1027
|
+
omit?: Prisma.WorkItemOmit<ExtArgs> | null;
|
|
1028
|
+
/**
|
|
1029
|
+
* Choose, which related nodes to fetch as well
|
|
1030
|
+
*/
|
|
1031
|
+
include?: Prisma.WorkItemInclude<ExtArgs> | null;
|
|
1032
|
+
/**
|
|
1033
|
+
* Filter, which WorkItem to fetch.
|
|
1034
|
+
*/
|
|
1035
|
+
where: Prisma.WorkItemWhereUniqueInput;
|
|
1036
|
+
};
|
|
1037
|
+
/**
|
|
1038
|
+
* WorkItem findFirst
|
|
1039
|
+
*/
|
|
1040
|
+
export type WorkItemFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1041
|
+
/**
|
|
1042
|
+
* Select specific fields to fetch from the WorkItem
|
|
1043
|
+
*/
|
|
1044
|
+
select?: Prisma.WorkItemSelect<ExtArgs> | null;
|
|
1045
|
+
/**
|
|
1046
|
+
* Omit specific fields from the WorkItem
|
|
1047
|
+
*/
|
|
1048
|
+
omit?: Prisma.WorkItemOmit<ExtArgs> | null;
|
|
1049
|
+
/**
|
|
1050
|
+
* Choose, which related nodes to fetch as well
|
|
1051
|
+
*/
|
|
1052
|
+
include?: Prisma.WorkItemInclude<ExtArgs> | null;
|
|
1053
|
+
/**
|
|
1054
|
+
* Filter, which WorkItem to fetch.
|
|
1055
|
+
*/
|
|
1056
|
+
where?: Prisma.WorkItemWhereInput;
|
|
1057
|
+
/**
|
|
1058
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1059
|
+
*
|
|
1060
|
+
* Determine the order of WorkItems to fetch.
|
|
1061
|
+
*/
|
|
1062
|
+
orderBy?: Prisma.WorkItemOrderByWithRelationInput | Prisma.WorkItemOrderByWithRelationInput[];
|
|
1063
|
+
/**
|
|
1064
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1065
|
+
*
|
|
1066
|
+
* Sets the position for searching for WorkItems.
|
|
1067
|
+
*/
|
|
1068
|
+
cursor?: Prisma.WorkItemWhereUniqueInput;
|
|
1069
|
+
/**
|
|
1070
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1071
|
+
*
|
|
1072
|
+
* Take `±n` WorkItems from the position of the cursor.
|
|
1073
|
+
*/
|
|
1074
|
+
take?: number;
|
|
1075
|
+
/**
|
|
1076
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1077
|
+
*
|
|
1078
|
+
* Skip the first `n` WorkItems.
|
|
1079
|
+
*/
|
|
1080
|
+
skip?: number;
|
|
1081
|
+
/**
|
|
1082
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1083
|
+
*
|
|
1084
|
+
* Filter by unique combinations of WorkItems.
|
|
1085
|
+
*/
|
|
1086
|
+
distinct?: Prisma.WorkItemScalarFieldEnum | Prisma.WorkItemScalarFieldEnum[];
|
|
1087
|
+
};
|
|
1088
|
+
/**
|
|
1089
|
+
* WorkItem findFirstOrThrow
|
|
1090
|
+
*/
|
|
1091
|
+
export type WorkItemFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1092
|
+
/**
|
|
1093
|
+
* Select specific fields to fetch from the WorkItem
|
|
1094
|
+
*/
|
|
1095
|
+
select?: Prisma.WorkItemSelect<ExtArgs> | null;
|
|
1096
|
+
/**
|
|
1097
|
+
* Omit specific fields from the WorkItem
|
|
1098
|
+
*/
|
|
1099
|
+
omit?: Prisma.WorkItemOmit<ExtArgs> | null;
|
|
1100
|
+
/**
|
|
1101
|
+
* Choose, which related nodes to fetch as well
|
|
1102
|
+
*/
|
|
1103
|
+
include?: Prisma.WorkItemInclude<ExtArgs> | null;
|
|
1104
|
+
/**
|
|
1105
|
+
* Filter, which WorkItem to fetch.
|
|
1106
|
+
*/
|
|
1107
|
+
where?: Prisma.WorkItemWhereInput;
|
|
1108
|
+
/**
|
|
1109
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1110
|
+
*
|
|
1111
|
+
* Determine the order of WorkItems to fetch.
|
|
1112
|
+
*/
|
|
1113
|
+
orderBy?: Prisma.WorkItemOrderByWithRelationInput | Prisma.WorkItemOrderByWithRelationInput[];
|
|
1114
|
+
/**
|
|
1115
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1116
|
+
*
|
|
1117
|
+
* Sets the position for searching for WorkItems.
|
|
1118
|
+
*/
|
|
1119
|
+
cursor?: Prisma.WorkItemWhereUniqueInput;
|
|
1120
|
+
/**
|
|
1121
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1122
|
+
*
|
|
1123
|
+
* Take `±n` WorkItems from the position of the cursor.
|
|
1124
|
+
*/
|
|
1125
|
+
take?: number;
|
|
1126
|
+
/**
|
|
1127
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1128
|
+
*
|
|
1129
|
+
* Skip the first `n` WorkItems.
|
|
1130
|
+
*/
|
|
1131
|
+
skip?: number;
|
|
1132
|
+
/**
|
|
1133
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1134
|
+
*
|
|
1135
|
+
* Filter by unique combinations of WorkItems.
|
|
1136
|
+
*/
|
|
1137
|
+
distinct?: Prisma.WorkItemScalarFieldEnum | Prisma.WorkItemScalarFieldEnum[];
|
|
1138
|
+
};
|
|
1139
|
+
/**
|
|
1140
|
+
* WorkItem findMany
|
|
1141
|
+
*/
|
|
1142
|
+
export type WorkItemFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1143
|
+
/**
|
|
1144
|
+
* Select specific fields to fetch from the WorkItem
|
|
1145
|
+
*/
|
|
1146
|
+
select?: Prisma.WorkItemSelect<ExtArgs> | null;
|
|
1147
|
+
/**
|
|
1148
|
+
* Omit specific fields from the WorkItem
|
|
1149
|
+
*/
|
|
1150
|
+
omit?: Prisma.WorkItemOmit<ExtArgs> | null;
|
|
1151
|
+
/**
|
|
1152
|
+
* Choose, which related nodes to fetch as well
|
|
1153
|
+
*/
|
|
1154
|
+
include?: Prisma.WorkItemInclude<ExtArgs> | null;
|
|
1155
|
+
/**
|
|
1156
|
+
* Filter, which WorkItems to fetch.
|
|
1157
|
+
*/
|
|
1158
|
+
where?: Prisma.WorkItemWhereInput;
|
|
1159
|
+
/**
|
|
1160
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1161
|
+
*
|
|
1162
|
+
* Determine the order of WorkItems to fetch.
|
|
1163
|
+
*/
|
|
1164
|
+
orderBy?: Prisma.WorkItemOrderByWithRelationInput | Prisma.WorkItemOrderByWithRelationInput[];
|
|
1165
|
+
/**
|
|
1166
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1167
|
+
*
|
|
1168
|
+
* Sets the position for listing WorkItems.
|
|
1169
|
+
*/
|
|
1170
|
+
cursor?: Prisma.WorkItemWhereUniqueInput;
|
|
1171
|
+
/**
|
|
1172
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1173
|
+
*
|
|
1174
|
+
* Take `±n` WorkItems from the position of the cursor.
|
|
1175
|
+
*/
|
|
1176
|
+
take?: number;
|
|
1177
|
+
/**
|
|
1178
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1179
|
+
*
|
|
1180
|
+
* Skip the first `n` WorkItems.
|
|
1181
|
+
*/
|
|
1182
|
+
skip?: number;
|
|
1183
|
+
/**
|
|
1184
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1185
|
+
*
|
|
1186
|
+
* Filter by unique combinations of WorkItems.
|
|
1187
|
+
*/
|
|
1188
|
+
distinct?: Prisma.WorkItemScalarFieldEnum | Prisma.WorkItemScalarFieldEnum[];
|
|
1189
|
+
};
|
|
1190
|
+
/**
|
|
1191
|
+
* WorkItem create
|
|
1192
|
+
*/
|
|
1193
|
+
export type WorkItemCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1194
|
+
/**
|
|
1195
|
+
* Select specific fields to fetch from the WorkItem
|
|
1196
|
+
*/
|
|
1197
|
+
select?: Prisma.WorkItemSelect<ExtArgs> | null;
|
|
1198
|
+
/**
|
|
1199
|
+
* Omit specific fields from the WorkItem
|
|
1200
|
+
*/
|
|
1201
|
+
omit?: Prisma.WorkItemOmit<ExtArgs> | null;
|
|
1202
|
+
/**
|
|
1203
|
+
* Choose, which related nodes to fetch as well
|
|
1204
|
+
*/
|
|
1205
|
+
include?: Prisma.WorkItemInclude<ExtArgs> | null;
|
|
1206
|
+
/**
|
|
1207
|
+
* The data needed to create a WorkItem.
|
|
1208
|
+
*/
|
|
1209
|
+
data: Prisma.XOR<Prisma.WorkItemCreateInput, Prisma.WorkItemUncheckedCreateInput>;
|
|
1210
|
+
};
|
|
1211
|
+
/**
|
|
1212
|
+
* WorkItem createMany
|
|
1213
|
+
*/
|
|
1214
|
+
export type WorkItemCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1215
|
+
/**
|
|
1216
|
+
* The data used to create many WorkItems.
|
|
1217
|
+
*/
|
|
1218
|
+
data: Prisma.WorkItemCreateManyInput | Prisma.WorkItemCreateManyInput[];
|
|
1219
|
+
skipDuplicates?: boolean;
|
|
1220
|
+
};
|
|
1221
|
+
/**
|
|
1222
|
+
* WorkItem createManyAndReturn
|
|
1223
|
+
*/
|
|
1224
|
+
export type WorkItemCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1225
|
+
/**
|
|
1226
|
+
* Select specific fields to fetch from the WorkItem
|
|
1227
|
+
*/
|
|
1228
|
+
select?: Prisma.WorkItemSelectCreateManyAndReturn<ExtArgs> | null;
|
|
1229
|
+
/**
|
|
1230
|
+
* Omit specific fields from the WorkItem
|
|
1231
|
+
*/
|
|
1232
|
+
omit?: Prisma.WorkItemOmit<ExtArgs> | null;
|
|
1233
|
+
/**
|
|
1234
|
+
* The data used to create many WorkItems.
|
|
1235
|
+
*/
|
|
1236
|
+
data: Prisma.WorkItemCreateManyInput | Prisma.WorkItemCreateManyInput[];
|
|
1237
|
+
skipDuplicates?: boolean;
|
|
1238
|
+
};
|
|
1239
|
+
/**
|
|
1240
|
+
* WorkItem update
|
|
1241
|
+
*/
|
|
1242
|
+
export type WorkItemUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1243
|
+
/**
|
|
1244
|
+
* Select specific fields to fetch from the WorkItem
|
|
1245
|
+
*/
|
|
1246
|
+
select?: Prisma.WorkItemSelect<ExtArgs> | null;
|
|
1247
|
+
/**
|
|
1248
|
+
* Omit specific fields from the WorkItem
|
|
1249
|
+
*/
|
|
1250
|
+
omit?: Prisma.WorkItemOmit<ExtArgs> | null;
|
|
1251
|
+
/**
|
|
1252
|
+
* Choose, which related nodes to fetch as well
|
|
1253
|
+
*/
|
|
1254
|
+
include?: Prisma.WorkItemInclude<ExtArgs> | null;
|
|
1255
|
+
/**
|
|
1256
|
+
* The data needed to update a WorkItem.
|
|
1257
|
+
*/
|
|
1258
|
+
data: Prisma.XOR<Prisma.WorkItemUpdateInput, Prisma.WorkItemUncheckedUpdateInput>;
|
|
1259
|
+
/**
|
|
1260
|
+
* Choose, which WorkItem to update.
|
|
1261
|
+
*/
|
|
1262
|
+
where: Prisma.WorkItemWhereUniqueInput;
|
|
1263
|
+
};
|
|
1264
|
+
/**
|
|
1265
|
+
* WorkItem updateMany
|
|
1266
|
+
*/
|
|
1267
|
+
export type WorkItemUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1268
|
+
/**
|
|
1269
|
+
* The data used to update WorkItems.
|
|
1270
|
+
*/
|
|
1271
|
+
data: Prisma.XOR<Prisma.WorkItemUpdateManyMutationInput, Prisma.WorkItemUncheckedUpdateManyInput>;
|
|
1272
|
+
/**
|
|
1273
|
+
* Filter which WorkItems to update
|
|
1274
|
+
*/
|
|
1275
|
+
where?: Prisma.WorkItemWhereInput;
|
|
1276
|
+
/**
|
|
1277
|
+
* Limit how many WorkItems to update.
|
|
1278
|
+
*/
|
|
1279
|
+
limit?: number;
|
|
1280
|
+
};
|
|
1281
|
+
/**
|
|
1282
|
+
* WorkItem updateManyAndReturn
|
|
1283
|
+
*/
|
|
1284
|
+
export type WorkItemUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1285
|
+
/**
|
|
1286
|
+
* Select specific fields to fetch from the WorkItem
|
|
1287
|
+
*/
|
|
1288
|
+
select?: Prisma.WorkItemSelectUpdateManyAndReturn<ExtArgs> | null;
|
|
1289
|
+
/**
|
|
1290
|
+
* Omit specific fields from the WorkItem
|
|
1291
|
+
*/
|
|
1292
|
+
omit?: Prisma.WorkItemOmit<ExtArgs> | null;
|
|
1293
|
+
/**
|
|
1294
|
+
* The data used to update WorkItems.
|
|
1295
|
+
*/
|
|
1296
|
+
data: Prisma.XOR<Prisma.WorkItemUpdateManyMutationInput, Prisma.WorkItemUncheckedUpdateManyInput>;
|
|
1297
|
+
/**
|
|
1298
|
+
* Filter which WorkItems to update
|
|
1299
|
+
*/
|
|
1300
|
+
where?: Prisma.WorkItemWhereInput;
|
|
1301
|
+
/**
|
|
1302
|
+
* Limit how many WorkItems to update.
|
|
1303
|
+
*/
|
|
1304
|
+
limit?: number;
|
|
1305
|
+
};
|
|
1306
|
+
/**
|
|
1307
|
+
* WorkItem upsert
|
|
1308
|
+
*/
|
|
1309
|
+
export type WorkItemUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1310
|
+
/**
|
|
1311
|
+
* Select specific fields to fetch from the WorkItem
|
|
1312
|
+
*/
|
|
1313
|
+
select?: Prisma.WorkItemSelect<ExtArgs> | null;
|
|
1314
|
+
/**
|
|
1315
|
+
* Omit specific fields from the WorkItem
|
|
1316
|
+
*/
|
|
1317
|
+
omit?: Prisma.WorkItemOmit<ExtArgs> | null;
|
|
1318
|
+
/**
|
|
1319
|
+
* Choose, which related nodes to fetch as well
|
|
1320
|
+
*/
|
|
1321
|
+
include?: Prisma.WorkItemInclude<ExtArgs> | null;
|
|
1322
|
+
/**
|
|
1323
|
+
* The filter to search for the WorkItem to update in case it exists.
|
|
1324
|
+
*/
|
|
1325
|
+
where: Prisma.WorkItemWhereUniqueInput;
|
|
1326
|
+
/**
|
|
1327
|
+
* In case the WorkItem found by the `where` argument doesn't exist, create a new WorkItem with this data.
|
|
1328
|
+
*/
|
|
1329
|
+
create: Prisma.XOR<Prisma.WorkItemCreateInput, Prisma.WorkItemUncheckedCreateInput>;
|
|
1330
|
+
/**
|
|
1331
|
+
* In case the WorkItem was found with the provided `where` argument, update it with this data.
|
|
1332
|
+
*/
|
|
1333
|
+
update: Prisma.XOR<Prisma.WorkItemUpdateInput, Prisma.WorkItemUncheckedUpdateInput>;
|
|
1334
|
+
};
|
|
1335
|
+
/**
|
|
1336
|
+
* WorkItem delete
|
|
1337
|
+
*/
|
|
1338
|
+
export type WorkItemDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1339
|
+
/**
|
|
1340
|
+
* Select specific fields to fetch from the WorkItem
|
|
1341
|
+
*/
|
|
1342
|
+
select?: Prisma.WorkItemSelect<ExtArgs> | null;
|
|
1343
|
+
/**
|
|
1344
|
+
* Omit specific fields from the WorkItem
|
|
1345
|
+
*/
|
|
1346
|
+
omit?: Prisma.WorkItemOmit<ExtArgs> | null;
|
|
1347
|
+
/**
|
|
1348
|
+
* Choose, which related nodes to fetch as well
|
|
1349
|
+
*/
|
|
1350
|
+
include?: Prisma.WorkItemInclude<ExtArgs> | null;
|
|
1351
|
+
/**
|
|
1352
|
+
* Filter which WorkItem to delete.
|
|
1353
|
+
*/
|
|
1354
|
+
where: Prisma.WorkItemWhereUniqueInput;
|
|
1355
|
+
};
|
|
1356
|
+
/**
|
|
1357
|
+
* WorkItem deleteMany
|
|
1358
|
+
*/
|
|
1359
|
+
export type WorkItemDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1360
|
+
/**
|
|
1361
|
+
* Filter which WorkItems to delete
|
|
1362
|
+
*/
|
|
1363
|
+
where?: Prisma.WorkItemWhereInput;
|
|
1364
|
+
/**
|
|
1365
|
+
* Limit how many WorkItems to delete.
|
|
1366
|
+
*/
|
|
1367
|
+
limit?: number;
|
|
1368
|
+
};
|
|
1369
|
+
/**
|
|
1370
|
+
* WorkItem.attributions
|
|
1371
|
+
*/
|
|
1372
|
+
export type WorkItem$attributionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1373
|
+
/**
|
|
1374
|
+
* Select specific fields to fetch from the RunAttribution
|
|
1375
|
+
*/
|
|
1376
|
+
select?: Prisma.RunAttributionSelect<ExtArgs> | null;
|
|
1377
|
+
/**
|
|
1378
|
+
* Omit specific fields from the RunAttribution
|
|
1379
|
+
*/
|
|
1380
|
+
omit?: Prisma.RunAttributionOmit<ExtArgs> | null;
|
|
1381
|
+
/**
|
|
1382
|
+
* Choose, which related nodes to fetch as well
|
|
1383
|
+
*/
|
|
1384
|
+
include?: Prisma.RunAttributionInclude<ExtArgs> | null;
|
|
1385
|
+
where?: Prisma.RunAttributionWhereInput;
|
|
1386
|
+
orderBy?: Prisma.RunAttributionOrderByWithRelationInput | Prisma.RunAttributionOrderByWithRelationInput[];
|
|
1387
|
+
cursor?: Prisma.RunAttributionWhereUniqueInput;
|
|
1388
|
+
take?: number;
|
|
1389
|
+
skip?: number;
|
|
1390
|
+
distinct?: Prisma.RunAttributionScalarFieldEnum | Prisma.RunAttributionScalarFieldEnum[];
|
|
1391
|
+
};
|
|
1392
|
+
/**
|
|
1393
|
+
* WorkItem without action
|
|
1394
|
+
*/
|
|
1395
|
+
export type WorkItemDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1396
|
+
/**
|
|
1397
|
+
* Select specific fields to fetch from the WorkItem
|
|
1398
|
+
*/
|
|
1399
|
+
select?: Prisma.WorkItemSelect<ExtArgs> | null;
|
|
1400
|
+
/**
|
|
1401
|
+
* Omit specific fields from the WorkItem
|
|
1402
|
+
*/
|
|
1403
|
+
omit?: Prisma.WorkItemOmit<ExtArgs> | null;
|
|
1404
|
+
/**
|
|
1405
|
+
* Choose, which related nodes to fetch as well
|
|
1406
|
+
*/
|
|
1407
|
+
include?: Prisma.WorkItemInclude<ExtArgs> | null;
|
|
1408
|
+
};
|