@wardby/cli 0.2.0 → 0.2.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/README.md +142 -67
- package/dist/claude-coding-worker/driver.d.ts +1 -0
- package/dist/claude-coding-worker/driver.js +4 -1
- package/dist/claude-coding-worker/main.js +3 -2
- package/dist/coding/protocol.d.ts +28 -3
- package/dist/coding/protocol.js +53 -2
- package/dist/coding-worker/artifact.d.ts +12 -0
- package/dist/coding-worker/artifact.js +48 -6
- package/dist/coding-worker/driver.d.ts +1 -0
- package/dist/coding-worker/driver.js +4 -1
- package/dist/coding-worker/errors.d.ts +7 -0
- package/dist/coding-worker/errors.js +18 -0
- package/dist/coding-worker/main.js +3 -2
- package/dist/core/budget-groups.d.ts +1 -1
- package/dist/core/coding-queue.d.ts +1 -1
- package/dist/core/datastores.d.ts +1 -1
- package/dist/core/db.d.ts +36 -2
- package/dist/core/db.js +69 -2
- package/dist/core/dispatch.d.ts +16 -1
- package/dist/core/dispatch.js +33 -5
- package/dist/core/http-runtime.js +3 -4
- package/dist/core/lease.d.ts +1 -1
- package/dist/core/private-directory.d.ts +20 -0
- package/dist/core/private-directory.js +36 -0
- package/dist/core/reconciler.d.ts +1 -1
- package/dist/core/runner.d.ts +1 -1
- package/dist/core/scheduler.d.ts +1 -1
- package/dist/core/secrets.d.ts +1 -1
- package/dist/core/subagent-memory-tools.d.ts +1 -1
- package/dist/core/webhooks.d.ts +1 -1
- package/dist/generated/prisma/browser.d.ts +228 -0
- package/dist/generated/prisma/browser.js +17 -0
- package/dist/generated/prisma/client.d.ts +247 -0
- package/dist/generated/prisma/client.js +34 -0
- package/dist/generated/prisma/commonInputTypes.d.ts +809 -0
- package/dist/generated/prisma/commonInputTypes.js +10 -0
- package/dist/generated/prisma/enums.d.ts +53 -0
- package/dist/generated/prisma/enums.js +54 -0
- package/dist/generated/prisma/internal/class.d.ts +462 -0
- package/dist/generated/prisma/internal/class.js +49 -0
- package/dist/generated/prisma/internal/prismaNamespace.d.ts +3325 -0
- package/dist/generated/prisma/internal/prismaNamespace.js +455 -0
- package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +449 -0
- package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +426 -0
- package/dist/generated/prisma/models/Agent.d.ts +3267 -0
- package/dist/generated/prisma/models/Agent.js +1 -0
- package/dist/generated/prisma/models/AgentDatastore.d.ts +1210 -0
- package/dist/generated/prisma/models/AgentDatastore.js +1 -0
- package/dist/generated/prisma/models/AgentMemory.d.ts +986 -0
- package/dist/generated/prisma/models/AgentMemory.js +1 -0
- package/dist/generated/prisma/models/AgentSecret.d.ts +1212 -0
- package/dist/generated/prisma/models/AgentSecret.js +1 -0
- package/dist/generated/prisma/models/AgentSubAgent.d.ts +1217 -0
- package/dist/generated/prisma/models/AgentSubAgent.js +1 -0
- package/dist/generated/prisma/models/AgentTool.d.ts +1309 -0
- package/dist/generated/prisma/models/AgentTool.js +1 -0
- package/dist/generated/prisma/models/AuthFormChallenge.d.ts +1298 -0
- package/dist/generated/prisma/models/AuthFormChallenge.js +1 -0
- package/dist/generated/prisma/models/AuthLoginKey.d.ts +1245 -0
- package/dist/generated/prisma/models/AuthLoginKey.js +1 -0
- package/dist/generated/prisma/models/AuthRateLimit.d.ts +979 -0
- package/dist/generated/prisma/models/AuthRateLimit.js +1 -0
- package/dist/generated/prisma/models/AuthSession.d.ts +1376 -0
- package/dist/generated/prisma/models/AuthSession.js +1 -0
- package/dist/generated/prisma/models/AuthUser.d.ts +1645 -0
- package/dist/generated/prisma/models/AuthUser.js +1 -0
- package/dist/generated/prisma/models/BudgetGroup.d.ts +1548 -0
- package/dist/generated/prisma/models/BudgetGroup.js +1 -0
- package/dist/generated/prisma/models/CodingAgentProfile.d.ts +1430 -0
- package/dist/generated/prisma/models/CodingAgentProfile.js +1 -0
- package/dist/generated/prisma/models/CodingProxyRequest.d.ts +1749 -0
- package/dist/generated/prisma/models/CodingProxyRequest.js +1 -0
- package/dist/generated/prisma/models/CodingProxySession.d.ts +1505 -0
- package/dist/generated/prisma/models/CodingProxySession.js +1 -0
- package/dist/generated/prisma/models/CodingRun.d.ts +2402 -0
- package/dist/generated/prisma/models/CodingRun.js +1 -0
- package/dist/generated/prisma/models/Datastore.d.ts +1434 -0
- package/dist/generated/prisma/models/Datastore.js +1 -0
- package/dist/generated/prisma/models/DatastoreEntry.d.ts +1314 -0
- package/dist/generated/prisma/models/DatastoreEntry.js +1 -0
- package/dist/generated/prisma/models/OAuthAuthorizationCode.d.ts +1526 -0
- package/dist/generated/prisma/models/OAuthAuthorizationCode.js +1 -0
- package/dist/generated/prisma/models/OAuthAuthorizationRequest.d.ts +1350 -0
- package/dist/generated/prisma/models/OAuthAuthorizationRequest.js +1 -0
- package/dist/generated/prisma/models/OAuthClient.d.ts +1289 -0
- package/dist/generated/prisma/models/OAuthClient.js +1 -0
- package/dist/generated/prisma/models/OAuthFamily.d.ts +1540 -0
- package/dist/generated/prisma/models/OAuthFamily.js +1 -0
- package/dist/generated/prisma/models/OAuthGrant.d.ts +1280 -0
- package/dist/generated/prisma/models/OAuthGrant.js +1 -0
- package/dist/generated/prisma/models/Principal.d.ts +1790 -0
- package/dist/generated/prisma/models/Principal.js +1 -0
- package/dist/generated/prisma/models/Run.d.ts +2281 -0
- package/dist/generated/prisma/models/Run.js +1 -0
- package/dist/generated/prisma/models/SchedulerLease.d.ts +970 -0
- package/dist/generated/prisma/models/SchedulerLease.js +1 -0
- package/dist/generated/prisma/models/Secret.d.ts +1399 -0
- package/dist/generated/prisma/models/Secret.js +1 -0
- package/dist/generated/prisma/models/SecretElicitationOutcome.d.ts +973 -0
- package/dist/generated/prisma/models/SecretElicitationOutcome.js +1 -0
- package/dist/generated/prisma/models/Task.d.ts +1176 -0
- package/dist/generated/prisma/models/Task.js +1 -0
- package/dist/generated/prisma/models/Tool.d.ts +1478 -0
- package/dist/generated/prisma/models/Tool.js +1 -0
- package/dist/generated/prisma/models/Webhook.d.ts +1386 -0
- package/dist/generated/prisma/models/Webhook.js +1 -0
- package/dist/generated/prisma/models.d.ts +32 -0
- package/dist/generated/prisma/models.js +1 -0
- package/dist/import/create.d.ts +1 -1
- package/dist/import/create.js +1 -1
- package/dist/import/index.d.ts +1 -1
- package/dist/mcp/auth/ownership.d.ts +19 -19
- package/dist/mcp/auth/principal.d.ts +1 -1
- package/dist/mcp/auth/resource-server.d.ts +1 -1
- package/dist/mcp/auth/self-hosted/browser.js +20 -6
- package/dist/mcp/auth/self-hosted/cli.d.ts +1 -1
- package/dist/mcp/auth/self-hosted/credentials.d.ts +1 -1
- package/dist/mcp/auth/self-hosted/rate-limit.d.ts +1 -1
- package/dist/mcp/auth/self-hosted/session.d.ts +1 -1
- package/dist/mcp/context.d.ts +1 -1
- package/dist/mcp/server.d.ts +1 -1
- package/dist/mcp/shared/page-style.d.ts +16 -0
- package/dist/mcp/shared/page-style.js +129 -0
- package/dist/mcp/tasks/manager.d.ts +1 -1
- package/dist/mcp/tools/agents.js +1 -1
- package/dist/mcp/tools/datastore.js +1 -1
- package/dist/mcp/tools/scheduling.js +1 -1
- package/dist/mcp/tools/secret-elicitation-form.d.ts +1 -1
- package/dist/mcp/tools/secret-elicitation-form.js +10 -28
- package/dist/mcp/tools/secret-elicitation.d.ts +1 -1
- package/dist/mcp/tools/subagents.js +1 -1
- package/dist/mcp/tools/tools.js +1 -1
- package/dist/mcp/transport/streamable-http.d.ts +1 -1
- package/dist/mcp/unattended-schedules.d.ts +1 -1
- package/dist/mcp/webhooks/ingress.d.ts +1 -1
- package/dist/providers/auth/index.d.ts +1 -1
- package/dist/providers/auth/self-hosted.d.ts +2 -2
- package/dist/providers/coding-proxy/prisma-ledger.d.ts +1 -1
- package/dist/providers/coding-proxy/runtime.d.ts +1 -1
- package/dist/providers/datastore/postgres.d.ts +1 -1
- package/dist/providers/executor/build.d.ts +1 -1
- package/dist/providers/executor/composition.d.ts +1 -1
- package/dist/providers/executor/container.d.ts +1 -1
- package/dist/providers/executor/container.js +10 -3
- package/dist/providers/executor/dbos.d.ts +1 -1
- package/dist/providers/jobs/docker.d.ts +11 -0
- package/dist/providers/jobs/docker.js +34 -18
- package/dist/providers/jobs/kubernetes.js +5 -10
- package/dist/providers/jobs/types.d.ts +2 -0
- package/dist/providers/memory/postgres.d.ts +1 -1
- package/dist/providers/vcs/git.js +2 -1
- package/dist/quickstart/index.js +22 -31
- package/dist/quickstart/migrate.d.ts +23 -0
- package/dist/quickstart/migrate.js +125 -0
- package/package.json +20 -10
- package/prisma/migrate.config.mjs +20 -0
- package/prisma/schema.prisma +10 -2
|
@@ -0,0 +1,970 @@
|
|
|
1
|
+
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as Prisma from "../internal/prismaNamespace.js";
|
|
3
|
+
/**
|
|
4
|
+
* Model SchedulerLease
|
|
5
|
+
* Phase 2: single-row-per-scope lease so exactly one scheduler process
|
|
6
|
+
* ticks at a time. `holder` is a process instance id (crypto.randomUUID()).
|
|
7
|
+
*/
|
|
8
|
+
export type SchedulerLeaseModel = runtime.Types.Result.DefaultSelection<Prisma.$SchedulerLeasePayload>;
|
|
9
|
+
export type AggregateSchedulerLease = {
|
|
10
|
+
_count: SchedulerLeaseCountAggregateOutputType | null;
|
|
11
|
+
_min: SchedulerLeaseMinAggregateOutputType | null;
|
|
12
|
+
_max: SchedulerLeaseMaxAggregateOutputType | null;
|
|
13
|
+
};
|
|
14
|
+
export type SchedulerLeaseMinAggregateOutputType = {
|
|
15
|
+
scope: string | null;
|
|
16
|
+
holder: string | null;
|
|
17
|
+
expiresAt: Date | null;
|
|
18
|
+
updatedAt: Date | null;
|
|
19
|
+
};
|
|
20
|
+
export type SchedulerLeaseMaxAggregateOutputType = {
|
|
21
|
+
scope: string | null;
|
|
22
|
+
holder: string | null;
|
|
23
|
+
expiresAt: Date | null;
|
|
24
|
+
updatedAt: Date | null;
|
|
25
|
+
};
|
|
26
|
+
export type SchedulerLeaseCountAggregateOutputType = {
|
|
27
|
+
scope: number;
|
|
28
|
+
holder: number;
|
|
29
|
+
expiresAt: number;
|
|
30
|
+
updatedAt: number;
|
|
31
|
+
_all: number;
|
|
32
|
+
};
|
|
33
|
+
export type SchedulerLeaseMinAggregateInputType = {
|
|
34
|
+
scope?: true;
|
|
35
|
+
holder?: true;
|
|
36
|
+
expiresAt?: true;
|
|
37
|
+
updatedAt?: true;
|
|
38
|
+
};
|
|
39
|
+
export type SchedulerLeaseMaxAggregateInputType = {
|
|
40
|
+
scope?: true;
|
|
41
|
+
holder?: true;
|
|
42
|
+
expiresAt?: true;
|
|
43
|
+
updatedAt?: true;
|
|
44
|
+
};
|
|
45
|
+
export type SchedulerLeaseCountAggregateInputType = {
|
|
46
|
+
scope?: true;
|
|
47
|
+
holder?: true;
|
|
48
|
+
expiresAt?: true;
|
|
49
|
+
updatedAt?: true;
|
|
50
|
+
_all?: true;
|
|
51
|
+
};
|
|
52
|
+
export type SchedulerLeaseAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
53
|
+
/**
|
|
54
|
+
* Filter which SchedulerLease to aggregate.
|
|
55
|
+
*/
|
|
56
|
+
where?: Prisma.SchedulerLeaseWhereInput;
|
|
57
|
+
/**
|
|
58
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
59
|
+
*
|
|
60
|
+
* Determine the order of SchedulerLeases to fetch.
|
|
61
|
+
*/
|
|
62
|
+
orderBy?: Prisma.SchedulerLeaseOrderByWithRelationInput | Prisma.SchedulerLeaseOrderByWithRelationInput[];
|
|
63
|
+
/**
|
|
64
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
65
|
+
*
|
|
66
|
+
* Sets the start position
|
|
67
|
+
*/
|
|
68
|
+
cursor?: Prisma.SchedulerLeaseWhereUniqueInput;
|
|
69
|
+
/**
|
|
70
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
71
|
+
*
|
|
72
|
+
* Take `±n` SchedulerLeases from the position of the cursor.
|
|
73
|
+
*/
|
|
74
|
+
take?: number;
|
|
75
|
+
/**
|
|
76
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
77
|
+
*
|
|
78
|
+
* Skip the first `n` SchedulerLeases.
|
|
79
|
+
*/
|
|
80
|
+
skip?: number;
|
|
81
|
+
/**
|
|
82
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
83
|
+
*
|
|
84
|
+
* Count returned SchedulerLeases
|
|
85
|
+
**/
|
|
86
|
+
_count?: true | SchedulerLeaseCountAggregateInputType;
|
|
87
|
+
/**
|
|
88
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
89
|
+
*
|
|
90
|
+
* Select which fields to find the minimum value
|
|
91
|
+
**/
|
|
92
|
+
_min?: SchedulerLeaseMinAggregateInputType;
|
|
93
|
+
/**
|
|
94
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
95
|
+
*
|
|
96
|
+
* Select which fields to find the maximum value
|
|
97
|
+
**/
|
|
98
|
+
_max?: SchedulerLeaseMaxAggregateInputType;
|
|
99
|
+
};
|
|
100
|
+
export type GetSchedulerLeaseAggregateType<T extends SchedulerLeaseAggregateArgs> = {
|
|
101
|
+
[P in keyof T & keyof AggregateSchedulerLease]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateSchedulerLease[P]> : Prisma.GetScalarType<T[P], AggregateSchedulerLease[P]>;
|
|
102
|
+
};
|
|
103
|
+
export type SchedulerLeaseGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
104
|
+
where?: Prisma.SchedulerLeaseWhereInput;
|
|
105
|
+
orderBy?: Prisma.SchedulerLeaseOrderByWithAggregationInput | Prisma.SchedulerLeaseOrderByWithAggregationInput[];
|
|
106
|
+
by: Prisma.SchedulerLeaseScalarFieldEnum[] | Prisma.SchedulerLeaseScalarFieldEnum;
|
|
107
|
+
having?: Prisma.SchedulerLeaseScalarWhereWithAggregatesInput;
|
|
108
|
+
take?: number;
|
|
109
|
+
skip?: number;
|
|
110
|
+
_count?: SchedulerLeaseCountAggregateInputType | true;
|
|
111
|
+
_min?: SchedulerLeaseMinAggregateInputType;
|
|
112
|
+
_max?: SchedulerLeaseMaxAggregateInputType;
|
|
113
|
+
};
|
|
114
|
+
export type SchedulerLeaseGroupByOutputType = {
|
|
115
|
+
scope: string;
|
|
116
|
+
holder: string;
|
|
117
|
+
expiresAt: Date;
|
|
118
|
+
updatedAt: Date;
|
|
119
|
+
_count: SchedulerLeaseCountAggregateOutputType | null;
|
|
120
|
+
_min: SchedulerLeaseMinAggregateOutputType | null;
|
|
121
|
+
_max: SchedulerLeaseMaxAggregateOutputType | null;
|
|
122
|
+
};
|
|
123
|
+
export type GetSchedulerLeaseGroupByPayload<T extends SchedulerLeaseGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<SchedulerLeaseGroupByOutputType, T['by']> & {
|
|
124
|
+
[P in ((keyof T) & (keyof SchedulerLeaseGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], SchedulerLeaseGroupByOutputType[P]> : Prisma.GetScalarType<T[P], SchedulerLeaseGroupByOutputType[P]>;
|
|
125
|
+
}>>;
|
|
126
|
+
export type SchedulerLeaseWhereInput = {
|
|
127
|
+
AND?: Prisma.SchedulerLeaseWhereInput | Prisma.SchedulerLeaseWhereInput[];
|
|
128
|
+
OR?: Prisma.SchedulerLeaseWhereInput[];
|
|
129
|
+
NOT?: Prisma.SchedulerLeaseWhereInput | Prisma.SchedulerLeaseWhereInput[];
|
|
130
|
+
scope?: Prisma.StringFilter<"SchedulerLease"> | string;
|
|
131
|
+
holder?: Prisma.StringFilter<"SchedulerLease"> | string;
|
|
132
|
+
expiresAt?: Prisma.DateTimeFilter<"SchedulerLease"> | Date | string;
|
|
133
|
+
updatedAt?: Prisma.DateTimeFilter<"SchedulerLease"> | Date | string;
|
|
134
|
+
};
|
|
135
|
+
export type SchedulerLeaseOrderByWithRelationInput = {
|
|
136
|
+
scope?: Prisma.SortOrder;
|
|
137
|
+
holder?: Prisma.SortOrder;
|
|
138
|
+
expiresAt?: Prisma.SortOrder;
|
|
139
|
+
updatedAt?: Prisma.SortOrder;
|
|
140
|
+
};
|
|
141
|
+
export type SchedulerLeaseWhereUniqueInput = Prisma.AtLeast<{
|
|
142
|
+
scope?: string;
|
|
143
|
+
AND?: Prisma.SchedulerLeaseWhereInput | Prisma.SchedulerLeaseWhereInput[];
|
|
144
|
+
OR?: Prisma.SchedulerLeaseWhereInput[];
|
|
145
|
+
NOT?: Prisma.SchedulerLeaseWhereInput | Prisma.SchedulerLeaseWhereInput[];
|
|
146
|
+
holder?: Prisma.StringFilter<"SchedulerLease"> | string;
|
|
147
|
+
expiresAt?: Prisma.DateTimeFilter<"SchedulerLease"> | Date | string;
|
|
148
|
+
updatedAt?: Prisma.DateTimeFilter<"SchedulerLease"> | Date | string;
|
|
149
|
+
}, "scope">;
|
|
150
|
+
export type SchedulerLeaseOrderByWithAggregationInput = {
|
|
151
|
+
scope?: Prisma.SortOrder;
|
|
152
|
+
holder?: Prisma.SortOrder;
|
|
153
|
+
expiresAt?: Prisma.SortOrder;
|
|
154
|
+
updatedAt?: Prisma.SortOrder;
|
|
155
|
+
_count?: Prisma.SchedulerLeaseCountOrderByAggregateInput;
|
|
156
|
+
_max?: Prisma.SchedulerLeaseMaxOrderByAggregateInput;
|
|
157
|
+
_min?: Prisma.SchedulerLeaseMinOrderByAggregateInput;
|
|
158
|
+
};
|
|
159
|
+
export type SchedulerLeaseScalarWhereWithAggregatesInput = {
|
|
160
|
+
AND?: Prisma.SchedulerLeaseScalarWhereWithAggregatesInput | Prisma.SchedulerLeaseScalarWhereWithAggregatesInput[];
|
|
161
|
+
OR?: Prisma.SchedulerLeaseScalarWhereWithAggregatesInput[];
|
|
162
|
+
NOT?: Prisma.SchedulerLeaseScalarWhereWithAggregatesInput | Prisma.SchedulerLeaseScalarWhereWithAggregatesInput[];
|
|
163
|
+
scope?: Prisma.StringWithAggregatesFilter<"SchedulerLease"> | string;
|
|
164
|
+
holder?: Prisma.StringWithAggregatesFilter<"SchedulerLease"> | string;
|
|
165
|
+
expiresAt?: Prisma.DateTimeWithAggregatesFilter<"SchedulerLease"> | Date | string;
|
|
166
|
+
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"SchedulerLease"> | Date | string;
|
|
167
|
+
};
|
|
168
|
+
export type SchedulerLeaseCreateInput = {
|
|
169
|
+
scope: string;
|
|
170
|
+
holder: string;
|
|
171
|
+
expiresAt: Date | string;
|
|
172
|
+
updatedAt?: Date | string;
|
|
173
|
+
};
|
|
174
|
+
export type SchedulerLeaseUncheckedCreateInput = {
|
|
175
|
+
scope: string;
|
|
176
|
+
holder: string;
|
|
177
|
+
expiresAt: Date | string;
|
|
178
|
+
updatedAt?: Date | string;
|
|
179
|
+
};
|
|
180
|
+
export type SchedulerLeaseUpdateInput = {
|
|
181
|
+
scope?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
182
|
+
holder?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
183
|
+
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
184
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
185
|
+
};
|
|
186
|
+
export type SchedulerLeaseUncheckedUpdateInput = {
|
|
187
|
+
scope?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
188
|
+
holder?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
189
|
+
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
190
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
191
|
+
};
|
|
192
|
+
export type SchedulerLeaseCreateManyInput = {
|
|
193
|
+
scope: string;
|
|
194
|
+
holder: string;
|
|
195
|
+
expiresAt: Date | string;
|
|
196
|
+
updatedAt?: Date | string;
|
|
197
|
+
};
|
|
198
|
+
export type SchedulerLeaseUpdateManyMutationInput = {
|
|
199
|
+
scope?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
200
|
+
holder?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
201
|
+
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
202
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
203
|
+
};
|
|
204
|
+
export type SchedulerLeaseUncheckedUpdateManyInput = {
|
|
205
|
+
scope?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
206
|
+
holder?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
207
|
+
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
208
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
209
|
+
};
|
|
210
|
+
export type SchedulerLeaseCountOrderByAggregateInput = {
|
|
211
|
+
scope?: Prisma.SortOrder;
|
|
212
|
+
holder?: Prisma.SortOrder;
|
|
213
|
+
expiresAt?: Prisma.SortOrder;
|
|
214
|
+
updatedAt?: Prisma.SortOrder;
|
|
215
|
+
};
|
|
216
|
+
export type SchedulerLeaseMaxOrderByAggregateInput = {
|
|
217
|
+
scope?: Prisma.SortOrder;
|
|
218
|
+
holder?: Prisma.SortOrder;
|
|
219
|
+
expiresAt?: Prisma.SortOrder;
|
|
220
|
+
updatedAt?: Prisma.SortOrder;
|
|
221
|
+
};
|
|
222
|
+
export type SchedulerLeaseMinOrderByAggregateInput = {
|
|
223
|
+
scope?: Prisma.SortOrder;
|
|
224
|
+
holder?: Prisma.SortOrder;
|
|
225
|
+
expiresAt?: Prisma.SortOrder;
|
|
226
|
+
updatedAt?: Prisma.SortOrder;
|
|
227
|
+
};
|
|
228
|
+
export type SchedulerLeaseSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
229
|
+
scope?: boolean;
|
|
230
|
+
holder?: boolean;
|
|
231
|
+
expiresAt?: boolean;
|
|
232
|
+
updatedAt?: boolean;
|
|
233
|
+
}, ExtArgs["result"]["schedulerLease"]>;
|
|
234
|
+
export type SchedulerLeaseSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
235
|
+
scope?: boolean;
|
|
236
|
+
holder?: boolean;
|
|
237
|
+
expiresAt?: boolean;
|
|
238
|
+
updatedAt?: boolean;
|
|
239
|
+
}, ExtArgs["result"]["schedulerLease"]>;
|
|
240
|
+
export type SchedulerLeaseSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
241
|
+
scope?: boolean;
|
|
242
|
+
holder?: boolean;
|
|
243
|
+
expiresAt?: boolean;
|
|
244
|
+
updatedAt?: boolean;
|
|
245
|
+
}, ExtArgs["result"]["schedulerLease"]>;
|
|
246
|
+
export type SchedulerLeaseSelectScalar = {
|
|
247
|
+
scope?: boolean;
|
|
248
|
+
holder?: boolean;
|
|
249
|
+
expiresAt?: boolean;
|
|
250
|
+
updatedAt?: boolean;
|
|
251
|
+
};
|
|
252
|
+
export type SchedulerLeaseOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"scope" | "holder" | "expiresAt" | "updatedAt", ExtArgs["result"]["schedulerLease"]>;
|
|
253
|
+
export type $SchedulerLeasePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
254
|
+
name: "SchedulerLease";
|
|
255
|
+
objects: {};
|
|
256
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
257
|
+
scope: string;
|
|
258
|
+
holder: string;
|
|
259
|
+
expiresAt: Date;
|
|
260
|
+
updatedAt: Date;
|
|
261
|
+
}, ExtArgs["result"]["schedulerLease"]>;
|
|
262
|
+
composites: {};
|
|
263
|
+
};
|
|
264
|
+
export type SchedulerLeaseGetPayload<S extends boolean | null | undefined | SchedulerLeaseDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$SchedulerLeasePayload, S>;
|
|
265
|
+
export type SchedulerLeaseCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<SchedulerLeaseFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
266
|
+
select?: SchedulerLeaseCountAggregateInputType | true;
|
|
267
|
+
};
|
|
268
|
+
export interface SchedulerLeaseDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
269
|
+
[K: symbol]: {
|
|
270
|
+
types: Prisma.TypeMap<ExtArgs>['model']['SchedulerLease'];
|
|
271
|
+
meta: {
|
|
272
|
+
name: 'SchedulerLease';
|
|
273
|
+
};
|
|
274
|
+
};
|
|
275
|
+
/**
|
|
276
|
+
* Find zero or one SchedulerLease that matches the filter.
|
|
277
|
+
* @param {SchedulerLeaseFindUniqueArgs} args - Arguments to find a SchedulerLease
|
|
278
|
+
* @example
|
|
279
|
+
* // Get one SchedulerLease
|
|
280
|
+
* const schedulerLease = await prisma.schedulerLease.findUnique({
|
|
281
|
+
* where: {
|
|
282
|
+
* // ... provide filter here
|
|
283
|
+
* }
|
|
284
|
+
* })
|
|
285
|
+
*/
|
|
286
|
+
findUnique<T extends SchedulerLeaseFindUniqueArgs>(args: Prisma.SelectSubset<T, SchedulerLeaseFindUniqueArgs<ExtArgs>>): Prisma.Prisma__SchedulerLeaseClient<runtime.Types.Result.GetResult<Prisma.$SchedulerLeasePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
287
|
+
/**
|
|
288
|
+
* Find one SchedulerLease that matches the filter or throw an error with `error.code='P2025'`
|
|
289
|
+
* if no matches were found.
|
|
290
|
+
* @param {SchedulerLeaseFindUniqueOrThrowArgs} args - Arguments to find a SchedulerLease
|
|
291
|
+
* @example
|
|
292
|
+
* // Get one SchedulerLease
|
|
293
|
+
* const schedulerLease = await prisma.schedulerLease.findUniqueOrThrow({
|
|
294
|
+
* where: {
|
|
295
|
+
* // ... provide filter here
|
|
296
|
+
* }
|
|
297
|
+
* })
|
|
298
|
+
*/
|
|
299
|
+
findUniqueOrThrow<T extends SchedulerLeaseFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, SchedulerLeaseFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__SchedulerLeaseClient<runtime.Types.Result.GetResult<Prisma.$SchedulerLeasePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
300
|
+
/**
|
|
301
|
+
* Find the first SchedulerLease that matches the filter.
|
|
302
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
303
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
304
|
+
* @param {SchedulerLeaseFindFirstArgs} args - Arguments to find a SchedulerLease
|
|
305
|
+
* @example
|
|
306
|
+
* // Get one SchedulerLease
|
|
307
|
+
* const schedulerLease = await prisma.schedulerLease.findFirst({
|
|
308
|
+
* where: {
|
|
309
|
+
* // ... provide filter here
|
|
310
|
+
* }
|
|
311
|
+
* })
|
|
312
|
+
*/
|
|
313
|
+
findFirst<T extends SchedulerLeaseFindFirstArgs>(args?: Prisma.SelectSubset<T, SchedulerLeaseFindFirstArgs<ExtArgs>>): Prisma.Prisma__SchedulerLeaseClient<runtime.Types.Result.GetResult<Prisma.$SchedulerLeasePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
314
|
+
/**
|
|
315
|
+
* Find the first SchedulerLease that matches the filter or
|
|
316
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
317
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
318
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
319
|
+
* @param {SchedulerLeaseFindFirstOrThrowArgs} args - Arguments to find a SchedulerLease
|
|
320
|
+
* @example
|
|
321
|
+
* // Get one SchedulerLease
|
|
322
|
+
* const schedulerLease = await prisma.schedulerLease.findFirstOrThrow({
|
|
323
|
+
* where: {
|
|
324
|
+
* // ... provide filter here
|
|
325
|
+
* }
|
|
326
|
+
* })
|
|
327
|
+
*/
|
|
328
|
+
findFirstOrThrow<T extends SchedulerLeaseFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, SchedulerLeaseFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__SchedulerLeaseClient<runtime.Types.Result.GetResult<Prisma.$SchedulerLeasePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
329
|
+
/**
|
|
330
|
+
* Find zero or more SchedulerLeases that matches the filter.
|
|
331
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
332
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
333
|
+
* @param {SchedulerLeaseFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
334
|
+
* @example
|
|
335
|
+
* // Get all SchedulerLeases
|
|
336
|
+
* const schedulerLeases = await prisma.schedulerLease.findMany()
|
|
337
|
+
*
|
|
338
|
+
* // Get first 10 SchedulerLeases
|
|
339
|
+
* const schedulerLeases = await prisma.schedulerLease.findMany({ take: 10 })
|
|
340
|
+
*
|
|
341
|
+
* // Only select the `scope`
|
|
342
|
+
* const schedulerLeaseWithScopeOnly = await prisma.schedulerLease.findMany({ select: { scope: true } })
|
|
343
|
+
*
|
|
344
|
+
*/
|
|
345
|
+
findMany<T extends SchedulerLeaseFindManyArgs>(args?: Prisma.SelectSubset<T, SchedulerLeaseFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SchedulerLeasePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
346
|
+
/**
|
|
347
|
+
* Create a SchedulerLease.
|
|
348
|
+
* @param {SchedulerLeaseCreateArgs} args - Arguments to create a SchedulerLease.
|
|
349
|
+
* @example
|
|
350
|
+
* // Create one SchedulerLease
|
|
351
|
+
* const SchedulerLease = await prisma.schedulerLease.create({
|
|
352
|
+
* data: {
|
|
353
|
+
* // ... data to create a SchedulerLease
|
|
354
|
+
* }
|
|
355
|
+
* })
|
|
356
|
+
*
|
|
357
|
+
*/
|
|
358
|
+
create<T extends SchedulerLeaseCreateArgs>(args: Prisma.SelectSubset<T, SchedulerLeaseCreateArgs<ExtArgs>>): Prisma.Prisma__SchedulerLeaseClient<runtime.Types.Result.GetResult<Prisma.$SchedulerLeasePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
359
|
+
/**
|
|
360
|
+
* Create many SchedulerLeases.
|
|
361
|
+
* @param {SchedulerLeaseCreateManyArgs} args - Arguments to create many SchedulerLeases.
|
|
362
|
+
* @example
|
|
363
|
+
* // Create many SchedulerLeases
|
|
364
|
+
* const schedulerLease = await prisma.schedulerLease.createMany({
|
|
365
|
+
* data: [
|
|
366
|
+
* // ... provide data here
|
|
367
|
+
* ]
|
|
368
|
+
* })
|
|
369
|
+
*
|
|
370
|
+
*/
|
|
371
|
+
createMany<T extends SchedulerLeaseCreateManyArgs>(args?: Prisma.SelectSubset<T, SchedulerLeaseCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
372
|
+
/**
|
|
373
|
+
* Create many SchedulerLeases and returns the data saved in the database.
|
|
374
|
+
* @param {SchedulerLeaseCreateManyAndReturnArgs} args - Arguments to create many SchedulerLeases.
|
|
375
|
+
* @example
|
|
376
|
+
* // Create many SchedulerLeases
|
|
377
|
+
* const schedulerLease = await prisma.schedulerLease.createManyAndReturn({
|
|
378
|
+
* data: [
|
|
379
|
+
* // ... provide data here
|
|
380
|
+
* ]
|
|
381
|
+
* })
|
|
382
|
+
*
|
|
383
|
+
* // Create many SchedulerLeases and only return the `scope`
|
|
384
|
+
* const schedulerLeaseWithScopeOnly = await prisma.schedulerLease.createManyAndReturn({
|
|
385
|
+
* select: { scope: true },
|
|
386
|
+
* data: [
|
|
387
|
+
* // ... provide data here
|
|
388
|
+
* ]
|
|
389
|
+
* })
|
|
390
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
391
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
392
|
+
*
|
|
393
|
+
*/
|
|
394
|
+
createManyAndReturn<T extends SchedulerLeaseCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, SchedulerLeaseCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SchedulerLeasePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
395
|
+
/**
|
|
396
|
+
* Delete a SchedulerLease.
|
|
397
|
+
* @param {SchedulerLeaseDeleteArgs} args - Arguments to delete one SchedulerLease.
|
|
398
|
+
* @example
|
|
399
|
+
* // Delete one SchedulerLease
|
|
400
|
+
* const SchedulerLease = await prisma.schedulerLease.delete({
|
|
401
|
+
* where: {
|
|
402
|
+
* // ... filter to delete one SchedulerLease
|
|
403
|
+
* }
|
|
404
|
+
* })
|
|
405
|
+
*
|
|
406
|
+
*/
|
|
407
|
+
delete<T extends SchedulerLeaseDeleteArgs>(args: Prisma.SelectSubset<T, SchedulerLeaseDeleteArgs<ExtArgs>>): Prisma.Prisma__SchedulerLeaseClient<runtime.Types.Result.GetResult<Prisma.$SchedulerLeasePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
408
|
+
/**
|
|
409
|
+
* Update one SchedulerLease.
|
|
410
|
+
* @param {SchedulerLeaseUpdateArgs} args - Arguments to update one SchedulerLease.
|
|
411
|
+
* @example
|
|
412
|
+
* // Update one SchedulerLease
|
|
413
|
+
* const schedulerLease = await prisma.schedulerLease.update({
|
|
414
|
+
* where: {
|
|
415
|
+
* // ... provide filter here
|
|
416
|
+
* },
|
|
417
|
+
* data: {
|
|
418
|
+
* // ... provide data here
|
|
419
|
+
* }
|
|
420
|
+
* })
|
|
421
|
+
*
|
|
422
|
+
*/
|
|
423
|
+
update<T extends SchedulerLeaseUpdateArgs>(args: Prisma.SelectSubset<T, SchedulerLeaseUpdateArgs<ExtArgs>>): Prisma.Prisma__SchedulerLeaseClient<runtime.Types.Result.GetResult<Prisma.$SchedulerLeasePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
424
|
+
/**
|
|
425
|
+
* Delete zero or more SchedulerLeases.
|
|
426
|
+
* @param {SchedulerLeaseDeleteManyArgs} args - Arguments to filter SchedulerLeases to delete.
|
|
427
|
+
* @example
|
|
428
|
+
* // Delete a few SchedulerLeases
|
|
429
|
+
* const { count } = await prisma.schedulerLease.deleteMany({
|
|
430
|
+
* where: {
|
|
431
|
+
* // ... provide filter here
|
|
432
|
+
* }
|
|
433
|
+
* })
|
|
434
|
+
*
|
|
435
|
+
*/
|
|
436
|
+
deleteMany<T extends SchedulerLeaseDeleteManyArgs>(args?: Prisma.SelectSubset<T, SchedulerLeaseDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
437
|
+
/**
|
|
438
|
+
* Update zero or more SchedulerLeases.
|
|
439
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
440
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
441
|
+
* @param {SchedulerLeaseUpdateManyArgs} args - Arguments to update one or more rows.
|
|
442
|
+
* @example
|
|
443
|
+
* // Update many SchedulerLeases
|
|
444
|
+
* const schedulerLease = await prisma.schedulerLease.updateMany({
|
|
445
|
+
* where: {
|
|
446
|
+
* // ... provide filter here
|
|
447
|
+
* },
|
|
448
|
+
* data: {
|
|
449
|
+
* // ... provide data here
|
|
450
|
+
* }
|
|
451
|
+
* })
|
|
452
|
+
*
|
|
453
|
+
*/
|
|
454
|
+
updateMany<T extends SchedulerLeaseUpdateManyArgs>(args: Prisma.SelectSubset<T, SchedulerLeaseUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
455
|
+
/**
|
|
456
|
+
* Update zero or more SchedulerLeases and returns the data updated in the database.
|
|
457
|
+
* @param {SchedulerLeaseUpdateManyAndReturnArgs} args - Arguments to update many SchedulerLeases.
|
|
458
|
+
* @example
|
|
459
|
+
* // Update many SchedulerLeases
|
|
460
|
+
* const schedulerLease = await prisma.schedulerLease.updateManyAndReturn({
|
|
461
|
+
* where: {
|
|
462
|
+
* // ... provide filter here
|
|
463
|
+
* },
|
|
464
|
+
* data: [
|
|
465
|
+
* // ... provide data here
|
|
466
|
+
* ]
|
|
467
|
+
* })
|
|
468
|
+
*
|
|
469
|
+
* // Update zero or more SchedulerLeases and only return the `scope`
|
|
470
|
+
* const schedulerLeaseWithScopeOnly = await prisma.schedulerLease.updateManyAndReturn({
|
|
471
|
+
* select: { scope: true },
|
|
472
|
+
* where: {
|
|
473
|
+
* // ... provide filter here
|
|
474
|
+
* },
|
|
475
|
+
* data: [
|
|
476
|
+
* // ... provide data here
|
|
477
|
+
* ]
|
|
478
|
+
* })
|
|
479
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
480
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
481
|
+
*
|
|
482
|
+
*/
|
|
483
|
+
updateManyAndReturn<T extends SchedulerLeaseUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, SchedulerLeaseUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SchedulerLeasePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
484
|
+
/**
|
|
485
|
+
* Create or update one SchedulerLease.
|
|
486
|
+
* @param {SchedulerLeaseUpsertArgs} args - Arguments to update or create a SchedulerLease.
|
|
487
|
+
* @example
|
|
488
|
+
* // Update or create a SchedulerLease
|
|
489
|
+
* const schedulerLease = await prisma.schedulerLease.upsert({
|
|
490
|
+
* create: {
|
|
491
|
+
* // ... data to create a SchedulerLease
|
|
492
|
+
* },
|
|
493
|
+
* update: {
|
|
494
|
+
* // ... in case it already exists, update
|
|
495
|
+
* },
|
|
496
|
+
* where: {
|
|
497
|
+
* // ... the filter for the SchedulerLease we want to update
|
|
498
|
+
* }
|
|
499
|
+
* })
|
|
500
|
+
*/
|
|
501
|
+
upsert<T extends SchedulerLeaseUpsertArgs>(args: Prisma.SelectSubset<T, SchedulerLeaseUpsertArgs<ExtArgs>>): Prisma.Prisma__SchedulerLeaseClient<runtime.Types.Result.GetResult<Prisma.$SchedulerLeasePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
502
|
+
/**
|
|
503
|
+
* Count the number of SchedulerLeases.
|
|
504
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
505
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
506
|
+
* @param {SchedulerLeaseCountArgs} args - Arguments to filter SchedulerLeases to count.
|
|
507
|
+
* @example
|
|
508
|
+
* // Count the number of SchedulerLeases
|
|
509
|
+
* const count = await prisma.schedulerLease.count({
|
|
510
|
+
* where: {
|
|
511
|
+
* // ... the filter for the SchedulerLeases we want to count
|
|
512
|
+
* }
|
|
513
|
+
* })
|
|
514
|
+
**/
|
|
515
|
+
count<T extends SchedulerLeaseCountArgs>(args?: Prisma.Subset<T, SchedulerLeaseCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], SchedulerLeaseCountAggregateOutputType> : number>;
|
|
516
|
+
/**
|
|
517
|
+
* Allows you to perform aggregations operations on a SchedulerLease.
|
|
518
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
519
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
520
|
+
* @param {SchedulerLeaseAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
521
|
+
* @example
|
|
522
|
+
* // Ordered by age ascending
|
|
523
|
+
* // Where email contains prisma.io
|
|
524
|
+
* // Limited to the 10 users
|
|
525
|
+
* const aggregations = await prisma.user.aggregate({
|
|
526
|
+
* _avg: {
|
|
527
|
+
* age: true,
|
|
528
|
+
* },
|
|
529
|
+
* where: {
|
|
530
|
+
* email: {
|
|
531
|
+
* contains: "prisma.io",
|
|
532
|
+
* },
|
|
533
|
+
* },
|
|
534
|
+
* orderBy: {
|
|
535
|
+
* age: "asc",
|
|
536
|
+
* },
|
|
537
|
+
* take: 10,
|
|
538
|
+
* })
|
|
539
|
+
**/
|
|
540
|
+
aggregate<T extends SchedulerLeaseAggregateArgs>(args: Prisma.Subset<T, SchedulerLeaseAggregateArgs>): Prisma.PrismaPromise<GetSchedulerLeaseAggregateType<T>>;
|
|
541
|
+
/**
|
|
542
|
+
* Group by SchedulerLease.
|
|
543
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
544
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
545
|
+
* @param {SchedulerLeaseGroupByArgs} args - Group by arguments.
|
|
546
|
+
* @example
|
|
547
|
+
* // Group by city, order by createdAt, get count
|
|
548
|
+
* const result = await prisma.user.groupBy({
|
|
549
|
+
* by: ['city', 'createdAt'],
|
|
550
|
+
* orderBy: {
|
|
551
|
+
* createdAt: true
|
|
552
|
+
* },
|
|
553
|
+
* _count: {
|
|
554
|
+
* _all: true
|
|
555
|
+
* },
|
|
556
|
+
* })
|
|
557
|
+
*
|
|
558
|
+
**/
|
|
559
|
+
groupBy<T extends SchedulerLeaseGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
560
|
+
orderBy: SchedulerLeaseGroupByArgs['orderBy'];
|
|
561
|
+
} : {
|
|
562
|
+
orderBy?: SchedulerLeaseGroupByArgs['orderBy'];
|
|
563
|
+
}, 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 ? {
|
|
564
|
+
[P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
|
|
565
|
+
Error,
|
|
566
|
+
'Field ',
|
|
567
|
+
P,
|
|
568
|
+
` in "having" needs to be provided in "by"`
|
|
569
|
+
];
|
|
570
|
+
}[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
571
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
572
|
+
}[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 ? {} : {
|
|
573
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
574
|
+
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
575
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
576
|
+
}[OrderFields]>(args: Prisma.SubsetIntersection<T, SchedulerLeaseGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSchedulerLeaseGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
577
|
+
/**
|
|
578
|
+
* Fields of the SchedulerLease model
|
|
579
|
+
*/
|
|
580
|
+
readonly fields: SchedulerLeaseFieldRefs;
|
|
581
|
+
}
|
|
582
|
+
/**
|
|
583
|
+
* The delegate class that acts as a "Promise-like" for SchedulerLease.
|
|
584
|
+
* Why is this prefixed with `Prisma__`?
|
|
585
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
586
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
587
|
+
*/
|
|
588
|
+
export interface Prisma__SchedulerLeaseClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
589
|
+
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
590
|
+
/**
|
|
591
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
592
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
593
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
594
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
595
|
+
*/
|
|
596
|
+
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>;
|
|
597
|
+
/**
|
|
598
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
599
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
600
|
+
* @returns A Promise for the completion of the callback.
|
|
601
|
+
*/
|
|
602
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
603
|
+
/**
|
|
604
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
605
|
+
* resolved value cannot be modified from the callback.
|
|
606
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
607
|
+
* @returns A Promise for the completion of the callback.
|
|
608
|
+
*/
|
|
609
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
610
|
+
}
|
|
611
|
+
/**
|
|
612
|
+
* Fields of the SchedulerLease model
|
|
613
|
+
*/
|
|
614
|
+
export interface SchedulerLeaseFieldRefs {
|
|
615
|
+
readonly scope: Prisma.FieldRef<"SchedulerLease", 'String'>;
|
|
616
|
+
readonly holder: Prisma.FieldRef<"SchedulerLease", 'String'>;
|
|
617
|
+
readonly expiresAt: Prisma.FieldRef<"SchedulerLease", 'DateTime'>;
|
|
618
|
+
readonly updatedAt: Prisma.FieldRef<"SchedulerLease", 'DateTime'>;
|
|
619
|
+
}
|
|
620
|
+
/**
|
|
621
|
+
* SchedulerLease findUnique
|
|
622
|
+
*/
|
|
623
|
+
export type SchedulerLeaseFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
624
|
+
/**
|
|
625
|
+
* Select specific fields to fetch from the SchedulerLease
|
|
626
|
+
*/
|
|
627
|
+
select?: Prisma.SchedulerLeaseSelect<ExtArgs> | null;
|
|
628
|
+
/**
|
|
629
|
+
* Omit specific fields from the SchedulerLease
|
|
630
|
+
*/
|
|
631
|
+
omit?: Prisma.SchedulerLeaseOmit<ExtArgs> | null;
|
|
632
|
+
/**
|
|
633
|
+
* Filter, which SchedulerLease to fetch.
|
|
634
|
+
*/
|
|
635
|
+
where: Prisma.SchedulerLeaseWhereUniqueInput;
|
|
636
|
+
};
|
|
637
|
+
/**
|
|
638
|
+
* SchedulerLease findUniqueOrThrow
|
|
639
|
+
*/
|
|
640
|
+
export type SchedulerLeaseFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
641
|
+
/**
|
|
642
|
+
* Select specific fields to fetch from the SchedulerLease
|
|
643
|
+
*/
|
|
644
|
+
select?: Prisma.SchedulerLeaseSelect<ExtArgs> | null;
|
|
645
|
+
/**
|
|
646
|
+
* Omit specific fields from the SchedulerLease
|
|
647
|
+
*/
|
|
648
|
+
omit?: Prisma.SchedulerLeaseOmit<ExtArgs> | null;
|
|
649
|
+
/**
|
|
650
|
+
* Filter, which SchedulerLease to fetch.
|
|
651
|
+
*/
|
|
652
|
+
where: Prisma.SchedulerLeaseWhereUniqueInput;
|
|
653
|
+
};
|
|
654
|
+
/**
|
|
655
|
+
* SchedulerLease findFirst
|
|
656
|
+
*/
|
|
657
|
+
export type SchedulerLeaseFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
658
|
+
/**
|
|
659
|
+
* Select specific fields to fetch from the SchedulerLease
|
|
660
|
+
*/
|
|
661
|
+
select?: Prisma.SchedulerLeaseSelect<ExtArgs> | null;
|
|
662
|
+
/**
|
|
663
|
+
* Omit specific fields from the SchedulerLease
|
|
664
|
+
*/
|
|
665
|
+
omit?: Prisma.SchedulerLeaseOmit<ExtArgs> | null;
|
|
666
|
+
/**
|
|
667
|
+
* Filter, which SchedulerLease to fetch.
|
|
668
|
+
*/
|
|
669
|
+
where?: Prisma.SchedulerLeaseWhereInput;
|
|
670
|
+
/**
|
|
671
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
672
|
+
*
|
|
673
|
+
* Determine the order of SchedulerLeases to fetch.
|
|
674
|
+
*/
|
|
675
|
+
orderBy?: Prisma.SchedulerLeaseOrderByWithRelationInput | Prisma.SchedulerLeaseOrderByWithRelationInput[];
|
|
676
|
+
/**
|
|
677
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
678
|
+
*
|
|
679
|
+
* Sets the position for searching for SchedulerLeases.
|
|
680
|
+
*/
|
|
681
|
+
cursor?: Prisma.SchedulerLeaseWhereUniqueInput;
|
|
682
|
+
/**
|
|
683
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
684
|
+
*
|
|
685
|
+
* Take `±n` SchedulerLeases from the position of the cursor.
|
|
686
|
+
*/
|
|
687
|
+
take?: number;
|
|
688
|
+
/**
|
|
689
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
690
|
+
*
|
|
691
|
+
* Skip the first `n` SchedulerLeases.
|
|
692
|
+
*/
|
|
693
|
+
skip?: number;
|
|
694
|
+
/**
|
|
695
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
696
|
+
*
|
|
697
|
+
* Filter by unique combinations of SchedulerLeases.
|
|
698
|
+
*/
|
|
699
|
+
distinct?: Prisma.SchedulerLeaseScalarFieldEnum | Prisma.SchedulerLeaseScalarFieldEnum[];
|
|
700
|
+
};
|
|
701
|
+
/**
|
|
702
|
+
* SchedulerLease findFirstOrThrow
|
|
703
|
+
*/
|
|
704
|
+
export type SchedulerLeaseFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
705
|
+
/**
|
|
706
|
+
* Select specific fields to fetch from the SchedulerLease
|
|
707
|
+
*/
|
|
708
|
+
select?: Prisma.SchedulerLeaseSelect<ExtArgs> | null;
|
|
709
|
+
/**
|
|
710
|
+
* Omit specific fields from the SchedulerLease
|
|
711
|
+
*/
|
|
712
|
+
omit?: Prisma.SchedulerLeaseOmit<ExtArgs> | null;
|
|
713
|
+
/**
|
|
714
|
+
* Filter, which SchedulerLease to fetch.
|
|
715
|
+
*/
|
|
716
|
+
where?: Prisma.SchedulerLeaseWhereInput;
|
|
717
|
+
/**
|
|
718
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
719
|
+
*
|
|
720
|
+
* Determine the order of SchedulerLeases to fetch.
|
|
721
|
+
*/
|
|
722
|
+
orderBy?: Prisma.SchedulerLeaseOrderByWithRelationInput | Prisma.SchedulerLeaseOrderByWithRelationInput[];
|
|
723
|
+
/**
|
|
724
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
725
|
+
*
|
|
726
|
+
* Sets the position for searching for SchedulerLeases.
|
|
727
|
+
*/
|
|
728
|
+
cursor?: Prisma.SchedulerLeaseWhereUniqueInput;
|
|
729
|
+
/**
|
|
730
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
731
|
+
*
|
|
732
|
+
* Take `±n` SchedulerLeases from the position of the cursor.
|
|
733
|
+
*/
|
|
734
|
+
take?: number;
|
|
735
|
+
/**
|
|
736
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
737
|
+
*
|
|
738
|
+
* Skip the first `n` SchedulerLeases.
|
|
739
|
+
*/
|
|
740
|
+
skip?: number;
|
|
741
|
+
/**
|
|
742
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
743
|
+
*
|
|
744
|
+
* Filter by unique combinations of SchedulerLeases.
|
|
745
|
+
*/
|
|
746
|
+
distinct?: Prisma.SchedulerLeaseScalarFieldEnum | Prisma.SchedulerLeaseScalarFieldEnum[];
|
|
747
|
+
};
|
|
748
|
+
/**
|
|
749
|
+
* SchedulerLease findMany
|
|
750
|
+
*/
|
|
751
|
+
export type SchedulerLeaseFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
752
|
+
/**
|
|
753
|
+
* Select specific fields to fetch from the SchedulerLease
|
|
754
|
+
*/
|
|
755
|
+
select?: Prisma.SchedulerLeaseSelect<ExtArgs> | null;
|
|
756
|
+
/**
|
|
757
|
+
* Omit specific fields from the SchedulerLease
|
|
758
|
+
*/
|
|
759
|
+
omit?: Prisma.SchedulerLeaseOmit<ExtArgs> | null;
|
|
760
|
+
/**
|
|
761
|
+
* Filter, which SchedulerLeases to fetch.
|
|
762
|
+
*/
|
|
763
|
+
where?: Prisma.SchedulerLeaseWhereInput;
|
|
764
|
+
/**
|
|
765
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
766
|
+
*
|
|
767
|
+
* Determine the order of SchedulerLeases to fetch.
|
|
768
|
+
*/
|
|
769
|
+
orderBy?: Prisma.SchedulerLeaseOrderByWithRelationInput | Prisma.SchedulerLeaseOrderByWithRelationInput[];
|
|
770
|
+
/**
|
|
771
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
772
|
+
*
|
|
773
|
+
* Sets the position for listing SchedulerLeases.
|
|
774
|
+
*/
|
|
775
|
+
cursor?: Prisma.SchedulerLeaseWhereUniqueInput;
|
|
776
|
+
/**
|
|
777
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
778
|
+
*
|
|
779
|
+
* Take `±n` SchedulerLeases from the position of the cursor.
|
|
780
|
+
*/
|
|
781
|
+
take?: number;
|
|
782
|
+
/**
|
|
783
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
784
|
+
*
|
|
785
|
+
* Skip the first `n` SchedulerLeases.
|
|
786
|
+
*/
|
|
787
|
+
skip?: number;
|
|
788
|
+
/**
|
|
789
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
790
|
+
*
|
|
791
|
+
* Filter by unique combinations of SchedulerLeases.
|
|
792
|
+
*/
|
|
793
|
+
distinct?: Prisma.SchedulerLeaseScalarFieldEnum | Prisma.SchedulerLeaseScalarFieldEnum[];
|
|
794
|
+
};
|
|
795
|
+
/**
|
|
796
|
+
* SchedulerLease create
|
|
797
|
+
*/
|
|
798
|
+
export type SchedulerLeaseCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
799
|
+
/**
|
|
800
|
+
* Select specific fields to fetch from the SchedulerLease
|
|
801
|
+
*/
|
|
802
|
+
select?: Prisma.SchedulerLeaseSelect<ExtArgs> | null;
|
|
803
|
+
/**
|
|
804
|
+
* Omit specific fields from the SchedulerLease
|
|
805
|
+
*/
|
|
806
|
+
omit?: Prisma.SchedulerLeaseOmit<ExtArgs> | null;
|
|
807
|
+
/**
|
|
808
|
+
* The data needed to create a SchedulerLease.
|
|
809
|
+
*/
|
|
810
|
+
data: Prisma.XOR<Prisma.SchedulerLeaseCreateInput, Prisma.SchedulerLeaseUncheckedCreateInput>;
|
|
811
|
+
};
|
|
812
|
+
/**
|
|
813
|
+
* SchedulerLease createMany
|
|
814
|
+
*/
|
|
815
|
+
export type SchedulerLeaseCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
816
|
+
/**
|
|
817
|
+
* The data used to create many SchedulerLeases.
|
|
818
|
+
*/
|
|
819
|
+
data: Prisma.SchedulerLeaseCreateManyInput | Prisma.SchedulerLeaseCreateManyInput[];
|
|
820
|
+
skipDuplicates?: boolean;
|
|
821
|
+
};
|
|
822
|
+
/**
|
|
823
|
+
* SchedulerLease createManyAndReturn
|
|
824
|
+
*/
|
|
825
|
+
export type SchedulerLeaseCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
826
|
+
/**
|
|
827
|
+
* Select specific fields to fetch from the SchedulerLease
|
|
828
|
+
*/
|
|
829
|
+
select?: Prisma.SchedulerLeaseSelectCreateManyAndReturn<ExtArgs> | null;
|
|
830
|
+
/**
|
|
831
|
+
* Omit specific fields from the SchedulerLease
|
|
832
|
+
*/
|
|
833
|
+
omit?: Prisma.SchedulerLeaseOmit<ExtArgs> | null;
|
|
834
|
+
/**
|
|
835
|
+
* The data used to create many SchedulerLeases.
|
|
836
|
+
*/
|
|
837
|
+
data: Prisma.SchedulerLeaseCreateManyInput | Prisma.SchedulerLeaseCreateManyInput[];
|
|
838
|
+
skipDuplicates?: boolean;
|
|
839
|
+
};
|
|
840
|
+
/**
|
|
841
|
+
* SchedulerLease update
|
|
842
|
+
*/
|
|
843
|
+
export type SchedulerLeaseUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
844
|
+
/**
|
|
845
|
+
* Select specific fields to fetch from the SchedulerLease
|
|
846
|
+
*/
|
|
847
|
+
select?: Prisma.SchedulerLeaseSelect<ExtArgs> | null;
|
|
848
|
+
/**
|
|
849
|
+
* Omit specific fields from the SchedulerLease
|
|
850
|
+
*/
|
|
851
|
+
omit?: Prisma.SchedulerLeaseOmit<ExtArgs> | null;
|
|
852
|
+
/**
|
|
853
|
+
* The data needed to update a SchedulerLease.
|
|
854
|
+
*/
|
|
855
|
+
data: Prisma.XOR<Prisma.SchedulerLeaseUpdateInput, Prisma.SchedulerLeaseUncheckedUpdateInput>;
|
|
856
|
+
/**
|
|
857
|
+
* Choose, which SchedulerLease to update.
|
|
858
|
+
*/
|
|
859
|
+
where: Prisma.SchedulerLeaseWhereUniqueInput;
|
|
860
|
+
};
|
|
861
|
+
/**
|
|
862
|
+
* SchedulerLease updateMany
|
|
863
|
+
*/
|
|
864
|
+
export type SchedulerLeaseUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
865
|
+
/**
|
|
866
|
+
* The data used to update SchedulerLeases.
|
|
867
|
+
*/
|
|
868
|
+
data: Prisma.XOR<Prisma.SchedulerLeaseUpdateManyMutationInput, Prisma.SchedulerLeaseUncheckedUpdateManyInput>;
|
|
869
|
+
/**
|
|
870
|
+
* Filter which SchedulerLeases to update
|
|
871
|
+
*/
|
|
872
|
+
where?: Prisma.SchedulerLeaseWhereInput;
|
|
873
|
+
/**
|
|
874
|
+
* Limit how many SchedulerLeases to update.
|
|
875
|
+
*/
|
|
876
|
+
limit?: number;
|
|
877
|
+
};
|
|
878
|
+
/**
|
|
879
|
+
* SchedulerLease updateManyAndReturn
|
|
880
|
+
*/
|
|
881
|
+
export type SchedulerLeaseUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
882
|
+
/**
|
|
883
|
+
* Select specific fields to fetch from the SchedulerLease
|
|
884
|
+
*/
|
|
885
|
+
select?: Prisma.SchedulerLeaseSelectUpdateManyAndReturn<ExtArgs> | null;
|
|
886
|
+
/**
|
|
887
|
+
* Omit specific fields from the SchedulerLease
|
|
888
|
+
*/
|
|
889
|
+
omit?: Prisma.SchedulerLeaseOmit<ExtArgs> | null;
|
|
890
|
+
/**
|
|
891
|
+
* The data used to update SchedulerLeases.
|
|
892
|
+
*/
|
|
893
|
+
data: Prisma.XOR<Prisma.SchedulerLeaseUpdateManyMutationInput, Prisma.SchedulerLeaseUncheckedUpdateManyInput>;
|
|
894
|
+
/**
|
|
895
|
+
* Filter which SchedulerLeases to update
|
|
896
|
+
*/
|
|
897
|
+
where?: Prisma.SchedulerLeaseWhereInput;
|
|
898
|
+
/**
|
|
899
|
+
* Limit how many SchedulerLeases to update.
|
|
900
|
+
*/
|
|
901
|
+
limit?: number;
|
|
902
|
+
};
|
|
903
|
+
/**
|
|
904
|
+
* SchedulerLease upsert
|
|
905
|
+
*/
|
|
906
|
+
export type SchedulerLeaseUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
907
|
+
/**
|
|
908
|
+
* Select specific fields to fetch from the SchedulerLease
|
|
909
|
+
*/
|
|
910
|
+
select?: Prisma.SchedulerLeaseSelect<ExtArgs> | null;
|
|
911
|
+
/**
|
|
912
|
+
* Omit specific fields from the SchedulerLease
|
|
913
|
+
*/
|
|
914
|
+
omit?: Prisma.SchedulerLeaseOmit<ExtArgs> | null;
|
|
915
|
+
/**
|
|
916
|
+
* The filter to search for the SchedulerLease to update in case it exists.
|
|
917
|
+
*/
|
|
918
|
+
where: Prisma.SchedulerLeaseWhereUniqueInput;
|
|
919
|
+
/**
|
|
920
|
+
* In case the SchedulerLease found by the `where` argument doesn't exist, create a new SchedulerLease with this data.
|
|
921
|
+
*/
|
|
922
|
+
create: Prisma.XOR<Prisma.SchedulerLeaseCreateInput, Prisma.SchedulerLeaseUncheckedCreateInput>;
|
|
923
|
+
/**
|
|
924
|
+
* In case the SchedulerLease was found with the provided `where` argument, update it with this data.
|
|
925
|
+
*/
|
|
926
|
+
update: Prisma.XOR<Prisma.SchedulerLeaseUpdateInput, Prisma.SchedulerLeaseUncheckedUpdateInput>;
|
|
927
|
+
};
|
|
928
|
+
/**
|
|
929
|
+
* SchedulerLease delete
|
|
930
|
+
*/
|
|
931
|
+
export type SchedulerLeaseDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
932
|
+
/**
|
|
933
|
+
* Select specific fields to fetch from the SchedulerLease
|
|
934
|
+
*/
|
|
935
|
+
select?: Prisma.SchedulerLeaseSelect<ExtArgs> | null;
|
|
936
|
+
/**
|
|
937
|
+
* Omit specific fields from the SchedulerLease
|
|
938
|
+
*/
|
|
939
|
+
omit?: Prisma.SchedulerLeaseOmit<ExtArgs> | null;
|
|
940
|
+
/**
|
|
941
|
+
* Filter which SchedulerLease to delete.
|
|
942
|
+
*/
|
|
943
|
+
where: Prisma.SchedulerLeaseWhereUniqueInput;
|
|
944
|
+
};
|
|
945
|
+
/**
|
|
946
|
+
* SchedulerLease deleteMany
|
|
947
|
+
*/
|
|
948
|
+
export type SchedulerLeaseDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
949
|
+
/**
|
|
950
|
+
* Filter which SchedulerLeases to delete
|
|
951
|
+
*/
|
|
952
|
+
where?: Prisma.SchedulerLeaseWhereInput;
|
|
953
|
+
/**
|
|
954
|
+
* Limit how many SchedulerLeases to delete.
|
|
955
|
+
*/
|
|
956
|
+
limit?: number;
|
|
957
|
+
};
|
|
958
|
+
/**
|
|
959
|
+
* SchedulerLease without action
|
|
960
|
+
*/
|
|
961
|
+
export type SchedulerLeaseDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
962
|
+
/**
|
|
963
|
+
* Select specific fields to fetch from the SchedulerLease
|
|
964
|
+
*/
|
|
965
|
+
select?: Prisma.SchedulerLeaseSelect<ExtArgs> | null;
|
|
966
|
+
/**
|
|
967
|
+
* Omit specific fields from the SchedulerLease
|
|
968
|
+
*/
|
|
969
|
+
omit?: Prisma.SchedulerLeaseOmit<ExtArgs> | null;
|
|
970
|
+
};
|