@highstate/backend 0.9.26 → 0.9.28
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/dist/{chunk-GJTMJQUW.js → chunk-QSHSXLO2.js} +18 -9
- package/dist/chunk-QSHSXLO2.js.map +1 -0
- package/dist/index.js +292 -132
- package/dist/index.js.map +1 -1
- package/dist/shared/index.js +1 -1
- package/package.json +3 -3
- package/prisma/backend/_schema/layout.prisma +3 -1
- package/prisma/backend/_schema/project.prisma +4 -2
- package/prisma/backend/_schema/unlock-method.prisma +19 -0
- package/prisma/backend/sqlite/migrations/{20250818082732_add_models → 20250928124105_initial_migration}/migration.sql +48 -16
- package/prisma/project/api-key.prisma +3 -1
- package/prisma/project/artifact.prisma +2 -2
- package/prisma/project/custom-status.prisma +1 -1
- package/prisma/project/layout.prisma +4 -0
- package/prisma/project/migrations/{20250816081310_initial → 20250928130725_initial_migration}/migration.sql +132 -46
- package/prisma/project/terminal.prisma +2 -2
- package/prisma/project/unlock-method.prisma +1 -1
- package/prisma/project/worker.prisma +1 -1
- package/src/business/backend-unlock.test.ts +133 -0
- package/src/business/backend-unlock.ts +76 -0
- package/src/business/index.ts +1 -0
- package/src/business/settings.test.ts +3 -2
- package/src/database/_generated/backend/postgresql/client.ts +9 -4
- package/src/database/_generated/backend/postgresql/internal/class.ts +147 -168
- package/src/database/_generated/backend/postgresql/internal/prismaNamespace.ts +127 -40
- package/src/database/_generated/backend/postgresql/models/BackendUnlockMethod.ts +1156 -0
- package/src/database/_generated/backend/postgresql/models/Project.ts +2 -2
- package/src/database/_generated/backend/postgresql/models/ProjectSpace.ts +7 -1
- package/src/database/_generated/backend/postgresql/models/UserWorkspaceLayout.ts +1067 -0
- package/src/database/_generated/backend/postgresql/models.ts +2 -1
- package/src/database/_generated/backend/sqlite/client.ts +9 -4
- package/src/database/_generated/backend/sqlite/internal/class.ts +146 -165
- package/src/database/_generated/backend/sqlite/internal/prismaNamespace.ts +127 -40
- package/src/database/_generated/backend/sqlite/models/BackendUnlockMethod.ts +1154 -0
- package/src/database/_generated/backend/sqlite/models/Project.ts +2 -2
- package/src/database/_generated/backend/sqlite/models/ProjectSpace.ts +7 -1
- package/src/database/_generated/backend/sqlite/models/UserWorkspaceLayout.ts +1065 -0
- package/src/database/_generated/backend/sqlite/models.ts +2 -1
- package/src/database/_generated/project/commonInputTypes.ts +26 -26
- package/src/database/_generated/project/internal/class.ts +7 -8
- package/src/database/_generated/project/internal/prismaNamespace.ts +8 -7
- package/src/database/_generated/project/models/ApiKey.ts +2 -0
- package/src/database/_generated/project/models/Artifact.ts +2 -2
- package/src/database/_generated/project/models/InstanceCustomStatus.ts +1 -1
- package/src/database/_generated/project/models/OperationLog.ts +49 -1
- package/src/database/_generated/project/models/UnlockMethod.ts +2 -2
- package/src/database/_generated/project/models/UserCompositeViewport.ts +16 -14
- package/src/database/_generated/project/models/UserProjectViewport.ts +11 -9
- package/src/database/_generated/project/models/WorkerVersion.ts +1 -5
- package/src/database/abstractions.ts +25 -3
- package/src/database/factory.ts +5 -6
- package/src/database/local/backend.ts +148 -18
- package/src/database/manager.ts +30 -2
- package/src/database/prisma.ts +1 -0
- package/src/orchestrator/operation-plan.ts +0 -19
- package/src/orchestrator/operation.ts +21 -4
- package/src/services.ts +12 -3
- package/src/shared/models/backend/unlock-method.ts +7 -13
- package/src/shared/models/errors.ts +14 -0
- package/src/shared/models/prisma.ts +10 -2
- package/src/test-utils/database.ts +34 -6
- package/dist/chunk-GJTMJQUW.js.map +0 -1
- package/prisma/backend/sqlite/migrations/20250817070609_initiial/migration.sql +0 -34
- package/prisma/backend/sqlite/migrations/20250817104948_add_fields/migration.sql +0 -59
- package/prisma/backend/sqlite/migrations/20250818083106_a/migration.sql +0 -19
- package/prisma/backend/sqlite/migrations/20250818101945_hi/migration.sql +0 -1
- package/prisma/backend/sqlite/migrations/20250819082315_a/migration.sql +0 -5
- package/prisma/project/migrations/20250816082523_test/migration.sql +0 -72
- package/prisma/project/migrations/20250818065643_update/migration.sql +0 -42
- package/prisma/project/migrations/20250818070758_a/migration.sql +0 -8
- package/prisma/project/migrations/20250818070913_a/migration.sql +0 -8
- package/prisma/project/migrations/20250818082720_add_motels/migration.sql +0 -11
- package/prisma/project/migrations/20250818112523_hello/migration.sql +0 -35
- package/prisma/project/migrations/20250819082305_a/migration.sql +0 -14
- package/prisma/project/migrations/20250819165004_add_missing_fields/migration.sql +0 -216
- package/prisma/project/migrations/20250819171309_a/migration.sql +0 -22
- package/prisma/project/migrations/20250820113949_a/migration.sql +0 -66
- package/prisma/project/migrations/20250820144256_b/migration.sql +0 -31
- package/prisma/project/migrations/20250820145547_a/migration.sql +0 -24
- package/prisma/project/migrations/20250820182517_b/migration.sql +0 -2
- package/prisma/project/migrations/20250821172324_a/migration.sql +0 -2
- package/prisma/project/migrations/20250822081339_a/migration.sql +0 -219
- package/prisma/project/migrations/20250822083742_b/migration.sql +0 -1
- package/prisma/project/migrations/20250822105134_boom/migration.sql +0 -1
- package/prisma/project/migrations/20250822141028_b/migration.sql +0 -1
- package/prisma/project/migrations/20250822142342_b/migration.sql +0 -16
- package/prisma/project/migrations/20250824072720_a/migration.sql +0 -1
- package/prisma/project/migrations/20250824093656_b/migration.sql +0 -21
- package/prisma/project/migrations/20250825082518_a/migration.sql +0 -1
- package/prisma/project/migrations/20250825085343_b/migration.sql +0 -1
- package/prisma/project/migrations/20250825091312_a/migration.sql +0 -1
- package/prisma/project/migrations/20250903095431_hi/migration.sql +0 -44
- package/prisma/project/migrations/20250903174255_a/migration.sql +0 -24
- package/prisma/project/migrations/20250908095205_hi/migration.sql +0 -18
- package/prisma/project/migrations/20250909155857_hi/migration.sql +0 -15
- package/prisma/project/migrations/20250921092621_b/migration.sql +0 -33
- package/prisma/project/migrations/20250921093911_b/migration.sql +0 -1
- package/src/database/_generated/backend/postgresql/models/UserWorkspaseLayout.ts +0 -1065
- package/src/database/_generated/backend/sqlite/models/UserWorkspaseLayout.ts +0 -1063
|
@@ -0,0 +1,1154 @@
|
|
|
1
|
+
|
|
2
|
+
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
/**
|
|
6
|
+
* This file exports the `BackendUnlockMethod` model and its related types.
|
|
7
|
+
*
|
|
8
|
+
* 🟢 You can import this file directly.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import type * as PJTG from '../pjtg.ts';
|
|
12
|
+
import * as runtime from "@prisma/client/runtime/client"
|
|
13
|
+
import type * as $Enums from "../enums.ts"
|
|
14
|
+
import type * as Prisma from "../internal/prismaNamespace.ts"
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Model BackendUnlockMethod
|
|
18
|
+
* Unlock methods describe trusted identities that can decrypt the backend master key.
|
|
19
|
+
*/
|
|
20
|
+
export type BackendUnlockMethodModel = runtime.Types.Result.DefaultSelection<Prisma.$BackendUnlockMethodPayload>
|
|
21
|
+
|
|
22
|
+
export type AggregateBackendUnlockMethod = {
|
|
23
|
+
_count: BackendUnlockMethodCountAggregateOutputType | null
|
|
24
|
+
_min: BackendUnlockMethodMinAggregateOutputType | null
|
|
25
|
+
_max: BackendUnlockMethodMaxAggregateOutputType | null
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export type BackendUnlockMethodMinAggregateOutputType = {
|
|
29
|
+
id: string | null
|
|
30
|
+
recipient: string | null
|
|
31
|
+
createdAt: Date | null
|
|
32
|
+
updatedAt: Date | null
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type BackendUnlockMethodMaxAggregateOutputType = {
|
|
36
|
+
id: string | null
|
|
37
|
+
recipient: string | null
|
|
38
|
+
createdAt: Date | null
|
|
39
|
+
updatedAt: Date | null
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export type BackendUnlockMethodCountAggregateOutputType = {
|
|
43
|
+
id: number
|
|
44
|
+
meta: number
|
|
45
|
+
recipient: number
|
|
46
|
+
createdAt: number
|
|
47
|
+
updatedAt: number
|
|
48
|
+
_all: number
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
export type BackendUnlockMethodMinAggregateInputType = {
|
|
53
|
+
id?: true
|
|
54
|
+
recipient?: true
|
|
55
|
+
createdAt?: true
|
|
56
|
+
updatedAt?: true
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export type BackendUnlockMethodMaxAggregateInputType = {
|
|
60
|
+
id?: true
|
|
61
|
+
recipient?: true
|
|
62
|
+
createdAt?: true
|
|
63
|
+
updatedAt?: true
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export type BackendUnlockMethodCountAggregateInputType = {
|
|
67
|
+
id?: true
|
|
68
|
+
meta?: true
|
|
69
|
+
recipient?: true
|
|
70
|
+
createdAt?: true
|
|
71
|
+
updatedAt?: true
|
|
72
|
+
_all?: true
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export type BackendUnlockMethodAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
76
|
+
/**
|
|
77
|
+
* Filter which BackendUnlockMethod to aggregate.
|
|
78
|
+
*/
|
|
79
|
+
where?: Prisma.BackendUnlockMethodWhereInput
|
|
80
|
+
/**
|
|
81
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
82
|
+
*
|
|
83
|
+
* Determine the order of BackendUnlockMethods to fetch.
|
|
84
|
+
*/
|
|
85
|
+
orderBy?: Prisma.BackendUnlockMethodOrderByWithRelationInput | Prisma.BackendUnlockMethodOrderByWithRelationInput[]
|
|
86
|
+
/**
|
|
87
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
88
|
+
*
|
|
89
|
+
* Sets the start position
|
|
90
|
+
*/
|
|
91
|
+
cursor?: Prisma.BackendUnlockMethodWhereUniqueInput
|
|
92
|
+
/**
|
|
93
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
94
|
+
*
|
|
95
|
+
* Take `±n` BackendUnlockMethods from the position of the cursor.
|
|
96
|
+
*/
|
|
97
|
+
take?: number
|
|
98
|
+
/**
|
|
99
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
100
|
+
*
|
|
101
|
+
* Skip the first `n` BackendUnlockMethods.
|
|
102
|
+
*/
|
|
103
|
+
skip?: number
|
|
104
|
+
/**
|
|
105
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
106
|
+
*
|
|
107
|
+
* Count returned BackendUnlockMethods
|
|
108
|
+
**/
|
|
109
|
+
_count?: true | BackendUnlockMethodCountAggregateInputType
|
|
110
|
+
/**
|
|
111
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
112
|
+
*
|
|
113
|
+
* Select which fields to find the minimum value
|
|
114
|
+
**/
|
|
115
|
+
_min?: BackendUnlockMethodMinAggregateInputType
|
|
116
|
+
/**
|
|
117
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
118
|
+
*
|
|
119
|
+
* Select which fields to find the maximum value
|
|
120
|
+
**/
|
|
121
|
+
_max?: BackendUnlockMethodMaxAggregateInputType
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export type GetBackendUnlockMethodAggregateType<T extends BackendUnlockMethodAggregateArgs> = {
|
|
125
|
+
[P in keyof T & keyof AggregateBackendUnlockMethod]: P extends '_count' | 'count'
|
|
126
|
+
? T[P] extends true
|
|
127
|
+
? number
|
|
128
|
+
: Prisma.GetScalarType<T[P], AggregateBackendUnlockMethod[P]>
|
|
129
|
+
: Prisma.GetScalarType<T[P], AggregateBackendUnlockMethod[P]>
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
export type BackendUnlockMethodGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
136
|
+
where?: Prisma.BackendUnlockMethodWhereInput
|
|
137
|
+
orderBy?: Prisma.BackendUnlockMethodOrderByWithAggregationInput | Prisma.BackendUnlockMethodOrderByWithAggregationInput[]
|
|
138
|
+
by: Prisma.BackendUnlockMethodScalarFieldEnum[] | Prisma.BackendUnlockMethodScalarFieldEnum
|
|
139
|
+
having?: Prisma.BackendUnlockMethodScalarWhereWithAggregatesInput
|
|
140
|
+
take?: number
|
|
141
|
+
skip?: number
|
|
142
|
+
_count?: BackendUnlockMethodCountAggregateInputType | true
|
|
143
|
+
_min?: BackendUnlockMethodMinAggregateInputType
|
|
144
|
+
_max?: BackendUnlockMethodMaxAggregateInputType
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export type BackendUnlockMethodGroupByOutputType = {
|
|
148
|
+
id: string
|
|
149
|
+
meta: PrismaJson.BackendUnlockMethodMeta
|
|
150
|
+
recipient: string
|
|
151
|
+
createdAt: Date
|
|
152
|
+
updatedAt: Date
|
|
153
|
+
_count: BackendUnlockMethodCountAggregateOutputType | null
|
|
154
|
+
_min: BackendUnlockMethodMinAggregateOutputType | null
|
|
155
|
+
_max: BackendUnlockMethodMaxAggregateOutputType | null
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
type GetBackendUnlockMethodGroupByPayload<T extends BackendUnlockMethodGroupByArgs> = Prisma.PrismaPromise<
|
|
159
|
+
Array<
|
|
160
|
+
Prisma.PickEnumerable<BackendUnlockMethodGroupByOutputType, T['by']> &
|
|
161
|
+
{
|
|
162
|
+
[P in ((keyof T) & (keyof BackendUnlockMethodGroupByOutputType))]: P extends '_count'
|
|
163
|
+
? T[P] extends boolean
|
|
164
|
+
? number
|
|
165
|
+
: Prisma.GetScalarType<T[P], BackendUnlockMethodGroupByOutputType[P]>
|
|
166
|
+
: Prisma.GetScalarType<T[P], BackendUnlockMethodGroupByOutputType[P]>
|
|
167
|
+
}
|
|
168
|
+
>
|
|
169
|
+
>
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
export type BackendUnlockMethodWhereInput = {
|
|
174
|
+
AND?: Prisma.BackendUnlockMethodWhereInput | Prisma.BackendUnlockMethodWhereInput[]
|
|
175
|
+
OR?: Prisma.BackendUnlockMethodWhereInput[]
|
|
176
|
+
NOT?: Prisma.BackendUnlockMethodWhereInput | Prisma.BackendUnlockMethodWhereInput[]
|
|
177
|
+
id?: Prisma.StringFilter<"BackendUnlockMethod"> | string
|
|
178
|
+
meta?: Prisma.JsonFilter<"BackendUnlockMethod">
|
|
179
|
+
recipient?: Prisma.StringFilter<"BackendUnlockMethod"> | string
|
|
180
|
+
createdAt?: Prisma.DateTimeFilter<"BackendUnlockMethod"> | Date | string
|
|
181
|
+
updatedAt?: Prisma.DateTimeFilter<"BackendUnlockMethod"> | Date | string
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export type BackendUnlockMethodOrderByWithRelationInput = {
|
|
185
|
+
id?: Prisma.SortOrder
|
|
186
|
+
meta?: Prisma.SortOrder
|
|
187
|
+
recipient?: Prisma.SortOrder
|
|
188
|
+
createdAt?: Prisma.SortOrder
|
|
189
|
+
updatedAt?: Prisma.SortOrder
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export type BackendUnlockMethodWhereUniqueInput = Prisma.AtLeast<{
|
|
193
|
+
id?: string
|
|
194
|
+
recipient?: string
|
|
195
|
+
AND?: Prisma.BackendUnlockMethodWhereInput | Prisma.BackendUnlockMethodWhereInput[]
|
|
196
|
+
OR?: Prisma.BackendUnlockMethodWhereInput[]
|
|
197
|
+
NOT?: Prisma.BackendUnlockMethodWhereInput | Prisma.BackendUnlockMethodWhereInput[]
|
|
198
|
+
meta?: Prisma.JsonFilter<"BackendUnlockMethod">
|
|
199
|
+
createdAt?: Prisma.DateTimeFilter<"BackendUnlockMethod"> | Date | string
|
|
200
|
+
updatedAt?: Prisma.DateTimeFilter<"BackendUnlockMethod"> | Date | string
|
|
201
|
+
}, "id" | "recipient">
|
|
202
|
+
|
|
203
|
+
export type BackendUnlockMethodOrderByWithAggregationInput = {
|
|
204
|
+
id?: Prisma.SortOrder
|
|
205
|
+
meta?: Prisma.SortOrder
|
|
206
|
+
recipient?: Prisma.SortOrder
|
|
207
|
+
createdAt?: Prisma.SortOrder
|
|
208
|
+
updatedAt?: Prisma.SortOrder
|
|
209
|
+
_count?: Prisma.BackendUnlockMethodCountOrderByAggregateInput
|
|
210
|
+
_max?: Prisma.BackendUnlockMethodMaxOrderByAggregateInput
|
|
211
|
+
_min?: Prisma.BackendUnlockMethodMinOrderByAggregateInput
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
export type BackendUnlockMethodScalarWhereWithAggregatesInput = {
|
|
215
|
+
AND?: Prisma.BackendUnlockMethodScalarWhereWithAggregatesInput | Prisma.BackendUnlockMethodScalarWhereWithAggregatesInput[]
|
|
216
|
+
OR?: Prisma.BackendUnlockMethodScalarWhereWithAggregatesInput[]
|
|
217
|
+
NOT?: Prisma.BackendUnlockMethodScalarWhereWithAggregatesInput | Prisma.BackendUnlockMethodScalarWhereWithAggregatesInput[]
|
|
218
|
+
id?: Prisma.StringWithAggregatesFilter<"BackendUnlockMethod"> | string
|
|
219
|
+
meta?: Prisma.JsonWithAggregatesFilter<"BackendUnlockMethod">
|
|
220
|
+
recipient?: Prisma.StringWithAggregatesFilter<"BackendUnlockMethod"> | string
|
|
221
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"BackendUnlockMethod"> | Date | string
|
|
222
|
+
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"BackendUnlockMethod"> | Date | string
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export type BackendUnlockMethodCreateInput = {
|
|
226
|
+
id?: string
|
|
227
|
+
meta: PrismaJson.BackendUnlockMethodMeta
|
|
228
|
+
recipient: string
|
|
229
|
+
createdAt?: Date | string
|
|
230
|
+
updatedAt?: Date | string
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
export type BackendUnlockMethodUncheckedCreateInput = {
|
|
234
|
+
id?: string
|
|
235
|
+
meta: PrismaJson.BackendUnlockMethodMeta
|
|
236
|
+
recipient: string
|
|
237
|
+
createdAt?: Date | string
|
|
238
|
+
updatedAt?: Date | string
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
export type BackendUnlockMethodUpdateInput = {
|
|
242
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
243
|
+
meta?: PrismaJson.BackendUnlockMethodMeta
|
|
244
|
+
recipient?: Prisma.StringFieldUpdateOperationsInput | string
|
|
245
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
246
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
export type BackendUnlockMethodUncheckedUpdateInput = {
|
|
250
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
251
|
+
meta?: PrismaJson.BackendUnlockMethodMeta
|
|
252
|
+
recipient?: Prisma.StringFieldUpdateOperationsInput | string
|
|
253
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
254
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
export type BackendUnlockMethodCreateManyInput = {
|
|
258
|
+
id?: string
|
|
259
|
+
meta: PrismaJson.BackendUnlockMethodMeta
|
|
260
|
+
recipient: string
|
|
261
|
+
createdAt?: Date | string
|
|
262
|
+
updatedAt?: Date | string
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
export type BackendUnlockMethodUpdateManyMutationInput = {
|
|
266
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
267
|
+
meta?: PrismaJson.BackendUnlockMethodMeta
|
|
268
|
+
recipient?: Prisma.StringFieldUpdateOperationsInput | string
|
|
269
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
270
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
export type BackendUnlockMethodUncheckedUpdateManyInput = {
|
|
274
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
275
|
+
meta?: PrismaJson.BackendUnlockMethodMeta
|
|
276
|
+
recipient?: Prisma.StringFieldUpdateOperationsInput | string
|
|
277
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
278
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
export type BackendUnlockMethodCountOrderByAggregateInput = {
|
|
282
|
+
id?: Prisma.SortOrder
|
|
283
|
+
meta?: Prisma.SortOrder
|
|
284
|
+
recipient?: Prisma.SortOrder
|
|
285
|
+
createdAt?: Prisma.SortOrder
|
|
286
|
+
updatedAt?: Prisma.SortOrder
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
export type BackendUnlockMethodMaxOrderByAggregateInput = {
|
|
290
|
+
id?: Prisma.SortOrder
|
|
291
|
+
recipient?: Prisma.SortOrder
|
|
292
|
+
createdAt?: Prisma.SortOrder
|
|
293
|
+
updatedAt?: Prisma.SortOrder
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
export type BackendUnlockMethodMinOrderByAggregateInput = {
|
|
297
|
+
id?: Prisma.SortOrder
|
|
298
|
+
recipient?: Prisma.SortOrder
|
|
299
|
+
createdAt?: Prisma.SortOrder
|
|
300
|
+
updatedAt?: Prisma.SortOrder
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
export type BackendUnlockMethodSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
306
|
+
id?: boolean
|
|
307
|
+
meta?: boolean
|
|
308
|
+
recipient?: boolean
|
|
309
|
+
createdAt?: boolean
|
|
310
|
+
updatedAt?: boolean
|
|
311
|
+
}, ExtArgs["result"]["backendUnlockMethod"]>
|
|
312
|
+
|
|
313
|
+
export type BackendUnlockMethodSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
314
|
+
id?: boolean
|
|
315
|
+
meta?: boolean
|
|
316
|
+
recipient?: boolean
|
|
317
|
+
createdAt?: boolean
|
|
318
|
+
updatedAt?: boolean
|
|
319
|
+
}, ExtArgs["result"]["backendUnlockMethod"]>
|
|
320
|
+
|
|
321
|
+
export type BackendUnlockMethodSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
322
|
+
id?: boolean
|
|
323
|
+
meta?: boolean
|
|
324
|
+
recipient?: boolean
|
|
325
|
+
createdAt?: boolean
|
|
326
|
+
updatedAt?: boolean
|
|
327
|
+
}, ExtArgs["result"]["backendUnlockMethod"]>
|
|
328
|
+
|
|
329
|
+
export type BackendUnlockMethodSelectScalar = {
|
|
330
|
+
id?: boolean
|
|
331
|
+
meta?: boolean
|
|
332
|
+
recipient?: boolean
|
|
333
|
+
createdAt?: boolean
|
|
334
|
+
updatedAt?: boolean
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
export type BackendUnlockMethodOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "meta" | "recipient" | "createdAt" | "updatedAt", ExtArgs["result"]["backendUnlockMethod"]>
|
|
338
|
+
|
|
339
|
+
export type $BackendUnlockMethodPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
340
|
+
name: "BackendUnlockMethod"
|
|
341
|
+
objects: {}
|
|
342
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
343
|
+
/**
|
|
344
|
+
* The CUIDv2 of the unlock method.
|
|
345
|
+
*/
|
|
346
|
+
id: string
|
|
347
|
+
/**
|
|
348
|
+
* The metadata of the unlock method managed by the backend.
|
|
349
|
+
*
|
|
350
|
+
* [BackendUnlockMethodMeta]
|
|
351
|
+
*/
|
|
352
|
+
meta: PrismaJson.BackendUnlockMethodMeta
|
|
353
|
+
/**
|
|
354
|
+
* The AGE recipient for this unlock method.
|
|
355
|
+
*/
|
|
356
|
+
recipient: string
|
|
357
|
+
/**
|
|
358
|
+
* The time when the unlock method was created.
|
|
359
|
+
*/
|
|
360
|
+
createdAt: Date
|
|
361
|
+
/**
|
|
362
|
+
* The time when the unlock method was last updated.
|
|
363
|
+
*/
|
|
364
|
+
updatedAt: Date
|
|
365
|
+
}, ExtArgs["result"]["backendUnlockMethod"]>
|
|
366
|
+
composites: {}
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
export type BackendUnlockMethodGetPayload<S extends boolean | null | undefined | BackendUnlockMethodDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$BackendUnlockMethodPayload, S>
|
|
370
|
+
|
|
371
|
+
export type BackendUnlockMethodCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
372
|
+
Omit<BackendUnlockMethodFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
373
|
+
select?: BackendUnlockMethodCountAggregateInputType | true
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
export interface BackendUnlockMethodDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
377
|
+
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['BackendUnlockMethod'], meta: { name: 'BackendUnlockMethod' } }
|
|
378
|
+
/**
|
|
379
|
+
* Find zero or one BackendUnlockMethod that matches the filter.
|
|
380
|
+
* @param {BackendUnlockMethodFindUniqueArgs} args - Arguments to find a BackendUnlockMethod
|
|
381
|
+
* @example
|
|
382
|
+
* // Get one BackendUnlockMethod
|
|
383
|
+
* const backendUnlockMethod = await prisma.backendUnlockMethod.findUnique({
|
|
384
|
+
* where: {
|
|
385
|
+
* // ... provide filter here
|
|
386
|
+
* }
|
|
387
|
+
* })
|
|
388
|
+
*/
|
|
389
|
+
findUnique<T extends BackendUnlockMethodFindUniqueArgs>(args: Prisma.SelectSubset<T, BackendUnlockMethodFindUniqueArgs<ExtArgs>>): Prisma.Prisma__BackendUnlockMethodClient<runtime.Types.Result.GetResult<Prisma.$BackendUnlockMethodPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* Find one BackendUnlockMethod that matches the filter or throw an error with `error.code='P2025'`
|
|
393
|
+
* if no matches were found.
|
|
394
|
+
* @param {BackendUnlockMethodFindUniqueOrThrowArgs} args - Arguments to find a BackendUnlockMethod
|
|
395
|
+
* @example
|
|
396
|
+
* // Get one BackendUnlockMethod
|
|
397
|
+
* const backendUnlockMethod = await prisma.backendUnlockMethod.findUniqueOrThrow({
|
|
398
|
+
* where: {
|
|
399
|
+
* // ... provide filter here
|
|
400
|
+
* }
|
|
401
|
+
* })
|
|
402
|
+
*/
|
|
403
|
+
findUniqueOrThrow<T extends BackendUnlockMethodFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, BackendUnlockMethodFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__BackendUnlockMethodClient<runtime.Types.Result.GetResult<Prisma.$BackendUnlockMethodPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* Find the first BackendUnlockMethod that matches the filter.
|
|
407
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
408
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
409
|
+
* @param {BackendUnlockMethodFindFirstArgs} args - Arguments to find a BackendUnlockMethod
|
|
410
|
+
* @example
|
|
411
|
+
* // Get one BackendUnlockMethod
|
|
412
|
+
* const backendUnlockMethod = await prisma.backendUnlockMethod.findFirst({
|
|
413
|
+
* where: {
|
|
414
|
+
* // ... provide filter here
|
|
415
|
+
* }
|
|
416
|
+
* })
|
|
417
|
+
*/
|
|
418
|
+
findFirst<T extends BackendUnlockMethodFindFirstArgs>(args?: Prisma.SelectSubset<T, BackendUnlockMethodFindFirstArgs<ExtArgs>>): Prisma.Prisma__BackendUnlockMethodClient<runtime.Types.Result.GetResult<Prisma.$BackendUnlockMethodPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* Find the first BackendUnlockMethod that matches the filter or
|
|
422
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
423
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
424
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
425
|
+
* @param {BackendUnlockMethodFindFirstOrThrowArgs} args - Arguments to find a BackendUnlockMethod
|
|
426
|
+
* @example
|
|
427
|
+
* // Get one BackendUnlockMethod
|
|
428
|
+
* const backendUnlockMethod = await prisma.backendUnlockMethod.findFirstOrThrow({
|
|
429
|
+
* where: {
|
|
430
|
+
* // ... provide filter here
|
|
431
|
+
* }
|
|
432
|
+
* })
|
|
433
|
+
*/
|
|
434
|
+
findFirstOrThrow<T extends BackendUnlockMethodFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, BackendUnlockMethodFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__BackendUnlockMethodClient<runtime.Types.Result.GetResult<Prisma.$BackendUnlockMethodPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* Find zero or more BackendUnlockMethods that matches the filter.
|
|
438
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
439
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
440
|
+
* @param {BackendUnlockMethodFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
441
|
+
* @example
|
|
442
|
+
* // Get all BackendUnlockMethods
|
|
443
|
+
* const backendUnlockMethods = await prisma.backendUnlockMethod.findMany()
|
|
444
|
+
*
|
|
445
|
+
* // Get first 10 BackendUnlockMethods
|
|
446
|
+
* const backendUnlockMethods = await prisma.backendUnlockMethod.findMany({ take: 10 })
|
|
447
|
+
*
|
|
448
|
+
* // Only select the `id`
|
|
449
|
+
* const backendUnlockMethodWithIdOnly = await prisma.backendUnlockMethod.findMany({ select: { id: true } })
|
|
450
|
+
*
|
|
451
|
+
*/
|
|
452
|
+
findMany<T extends BackendUnlockMethodFindManyArgs>(args?: Prisma.SelectSubset<T, BackendUnlockMethodFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$BackendUnlockMethodPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* Create a BackendUnlockMethod.
|
|
456
|
+
* @param {BackendUnlockMethodCreateArgs} args - Arguments to create a BackendUnlockMethod.
|
|
457
|
+
* @example
|
|
458
|
+
* // Create one BackendUnlockMethod
|
|
459
|
+
* const BackendUnlockMethod = await prisma.backendUnlockMethod.create({
|
|
460
|
+
* data: {
|
|
461
|
+
* // ... data to create a BackendUnlockMethod
|
|
462
|
+
* }
|
|
463
|
+
* })
|
|
464
|
+
*
|
|
465
|
+
*/
|
|
466
|
+
create<T extends BackendUnlockMethodCreateArgs>(args: Prisma.SelectSubset<T, BackendUnlockMethodCreateArgs<ExtArgs>>): Prisma.Prisma__BackendUnlockMethodClient<runtime.Types.Result.GetResult<Prisma.$BackendUnlockMethodPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* Create many BackendUnlockMethods.
|
|
470
|
+
* @param {BackendUnlockMethodCreateManyArgs} args - Arguments to create many BackendUnlockMethods.
|
|
471
|
+
* @example
|
|
472
|
+
* // Create many BackendUnlockMethods
|
|
473
|
+
* const backendUnlockMethod = await prisma.backendUnlockMethod.createMany({
|
|
474
|
+
* data: [
|
|
475
|
+
* // ... provide data here
|
|
476
|
+
* ]
|
|
477
|
+
* })
|
|
478
|
+
*
|
|
479
|
+
*/
|
|
480
|
+
createMany<T extends BackendUnlockMethodCreateManyArgs>(args?: Prisma.SelectSubset<T, BackendUnlockMethodCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
481
|
+
|
|
482
|
+
/**
|
|
483
|
+
* Create many BackendUnlockMethods and returns the data saved in the database.
|
|
484
|
+
* @param {BackendUnlockMethodCreateManyAndReturnArgs} args - Arguments to create many BackendUnlockMethods.
|
|
485
|
+
* @example
|
|
486
|
+
* // Create many BackendUnlockMethods
|
|
487
|
+
* const backendUnlockMethod = await prisma.backendUnlockMethod.createManyAndReturn({
|
|
488
|
+
* data: [
|
|
489
|
+
* // ... provide data here
|
|
490
|
+
* ]
|
|
491
|
+
* })
|
|
492
|
+
*
|
|
493
|
+
* // Create many BackendUnlockMethods and only return the `id`
|
|
494
|
+
* const backendUnlockMethodWithIdOnly = await prisma.backendUnlockMethod.createManyAndReturn({
|
|
495
|
+
* select: { id: true },
|
|
496
|
+
* data: [
|
|
497
|
+
* // ... provide data here
|
|
498
|
+
* ]
|
|
499
|
+
* })
|
|
500
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
501
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
502
|
+
*
|
|
503
|
+
*/
|
|
504
|
+
createManyAndReturn<T extends BackendUnlockMethodCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, BackendUnlockMethodCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$BackendUnlockMethodPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* Delete a BackendUnlockMethod.
|
|
508
|
+
* @param {BackendUnlockMethodDeleteArgs} args - Arguments to delete one BackendUnlockMethod.
|
|
509
|
+
* @example
|
|
510
|
+
* // Delete one BackendUnlockMethod
|
|
511
|
+
* const BackendUnlockMethod = await prisma.backendUnlockMethod.delete({
|
|
512
|
+
* where: {
|
|
513
|
+
* // ... filter to delete one BackendUnlockMethod
|
|
514
|
+
* }
|
|
515
|
+
* })
|
|
516
|
+
*
|
|
517
|
+
*/
|
|
518
|
+
delete<T extends BackendUnlockMethodDeleteArgs>(args: Prisma.SelectSubset<T, BackendUnlockMethodDeleteArgs<ExtArgs>>): Prisma.Prisma__BackendUnlockMethodClient<runtime.Types.Result.GetResult<Prisma.$BackendUnlockMethodPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
* Update one BackendUnlockMethod.
|
|
522
|
+
* @param {BackendUnlockMethodUpdateArgs} args - Arguments to update one BackendUnlockMethod.
|
|
523
|
+
* @example
|
|
524
|
+
* // Update one BackendUnlockMethod
|
|
525
|
+
* const backendUnlockMethod = await prisma.backendUnlockMethod.update({
|
|
526
|
+
* where: {
|
|
527
|
+
* // ... provide filter here
|
|
528
|
+
* },
|
|
529
|
+
* data: {
|
|
530
|
+
* // ... provide data here
|
|
531
|
+
* }
|
|
532
|
+
* })
|
|
533
|
+
*
|
|
534
|
+
*/
|
|
535
|
+
update<T extends BackendUnlockMethodUpdateArgs>(args: Prisma.SelectSubset<T, BackendUnlockMethodUpdateArgs<ExtArgs>>): Prisma.Prisma__BackendUnlockMethodClient<runtime.Types.Result.GetResult<Prisma.$BackendUnlockMethodPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* Delete zero or more BackendUnlockMethods.
|
|
539
|
+
* @param {BackendUnlockMethodDeleteManyArgs} args - Arguments to filter BackendUnlockMethods to delete.
|
|
540
|
+
* @example
|
|
541
|
+
* // Delete a few BackendUnlockMethods
|
|
542
|
+
* const { count } = await prisma.backendUnlockMethod.deleteMany({
|
|
543
|
+
* where: {
|
|
544
|
+
* // ... provide filter here
|
|
545
|
+
* }
|
|
546
|
+
* })
|
|
547
|
+
*
|
|
548
|
+
*/
|
|
549
|
+
deleteMany<T extends BackendUnlockMethodDeleteManyArgs>(args?: Prisma.SelectSubset<T, BackendUnlockMethodDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
550
|
+
|
|
551
|
+
/**
|
|
552
|
+
* Update zero or more BackendUnlockMethods.
|
|
553
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
554
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
555
|
+
* @param {BackendUnlockMethodUpdateManyArgs} args - Arguments to update one or more rows.
|
|
556
|
+
* @example
|
|
557
|
+
* // Update many BackendUnlockMethods
|
|
558
|
+
* const backendUnlockMethod = await prisma.backendUnlockMethod.updateMany({
|
|
559
|
+
* where: {
|
|
560
|
+
* // ... provide filter here
|
|
561
|
+
* },
|
|
562
|
+
* data: {
|
|
563
|
+
* // ... provide data here
|
|
564
|
+
* }
|
|
565
|
+
* })
|
|
566
|
+
*
|
|
567
|
+
*/
|
|
568
|
+
updateMany<T extends BackendUnlockMethodUpdateManyArgs>(args: Prisma.SelectSubset<T, BackendUnlockMethodUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
569
|
+
|
|
570
|
+
/**
|
|
571
|
+
* Update zero or more BackendUnlockMethods and returns the data updated in the database.
|
|
572
|
+
* @param {BackendUnlockMethodUpdateManyAndReturnArgs} args - Arguments to update many BackendUnlockMethods.
|
|
573
|
+
* @example
|
|
574
|
+
* // Update many BackendUnlockMethods
|
|
575
|
+
* const backendUnlockMethod = await prisma.backendUnlockMethod.updateManyAndReturn({
|
|
576
|
+
* where: {
|
|
577
|
+
* // ... provide filter here
|
|
578
|
+
* },
|
|
579
|
+
* data: [
|
|
580
|
+
* // ... provide data here
|
|
581
|
+
* ]
|
|
582
|
+
* })
|
|
583
|
+
*
|
|
584
|
+
* // Update zero or more BackendUnlockMethods and only return the `id`
|
|
585
|
+
* const backendUnlockMethodWithIdOnly = await prisma.backendUnlockMethod.updateManyAndReturn({
|
|
586
|
+
* select: { id: true },
|
|
587
|
+
* where: {
|
|
588
|
+
* // ... provide filter here
|
|
589
|
+
* },
|
|
590
|
+
* data: [
|
|
591
|
+
* // ... provide data here
|
|
592
|
+
* ]
|
|
593
|
+
* })
|
|
594
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
595
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
596
|
+
*
|
|
597
|
+
*/
|
|
598
|
+
updateManyAndReturn<T extends BackendUnlockMethodUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, BackendUnlockMethodUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$BackendUnlockMethodPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* Create or update one BackendUnlockMethod.
|
|
602
|
+
* @param {BackendUnlockMethodUpsertArgs} args - Arguments to update or create a BackendUnlockMethod.
|
|
603
|
+
* @example
|
|
604
|
+
* // Update or create a BackendUnlockMethod
|
|
605
|
+
* const backendUnlockMethod = await prisma.backendUnlockMethod.upsert({
|
|
606
|
+
* create: {
|
|
607
|
+
* // ... data to create a BackendUnlockMethod
|
|
608
|
+
* },
|
|
609
|
+
* update: {
|
|
610
|
+
* // ... in case it already exists, update
|
|
611
|
+
* },
|
|
612
|
+
* where: {
|
|
613
|
+
* // ... the filter for the BackendUnlockMethod we want to update
|
|
614
|
+
* }
|
|
615
|
+
* })
|
|
616
|
+
*/
|
|
617
|
+
upsert<T extends BackendUnlockMethodUpsertArgs>(args: Prisma.SelectSubset<T, BackendUnlockMethodUpsertArgs<ExtArgs>>): Prisma.Prisma__BackendUnlockMethodClient<runtime.Types.Result.GetResult<Prisma.$BackendUnlockMethodPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
618
|
+
|
|
619
|
+
|
|
620
|
+
/**
|
|
621
|
+
* Count the number of BackendUnlockMethods.
|
|
622
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
623
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
624
|
+
* @param {BackendUnlockMethodCountArgs} args - Arguments to filter BackendUnlockMethods to count.
|
|
625
|
+
* @example
|
|
626
|
+
* // Count the number of BackendUnlockMethods
|
|
627
|
+
* const count = await prisma.backendUnlockMethod.count({
|
|
628
|
+
* where: {
|
|
629
|
+
* // ... the filter for the BackendUnlockMethods we want to count
|
|
630
|
+
* }
|
|
631
|
+
* })
|
|
632
|
+
**/
|
|
633
|
+
count<T extends BackendUnlockMethodCountArgs>(
|
|
634
|
+
args?: Prisma.Subset<T, BackendUnlockMethodCountArgs>,
|
|
635
|
+
): Prisma.PrismaPromise<
|
|
636
|
+
T extends runtime.Types.Utils.Record<'select', any>
|
|
637
|
+
? T['select'] extends true
|
|
638
|
+
? number
|
|
639
|
+
: Prisma.GetScalarType<T['select'], BackendUnlockMethodCountAggregateOutputType>
|
|
640
|
+
: number
|
|
641
|
+
>
|
|
642
|
+
|
|
643
|
+
/**
|
|
644
|
+
* Allows you to perform aggregations operations on a BackendUnlockMethod.
|
|
645
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
646
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
647
|
+
* @param {BackendUnlockMethodAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
648
|
+
* @example
|
|
649
|
+
* // Ordered by age ascending
|
|
650
|
+
* // Where email contains prisma.io
|
|
651
|
+
* // Limited to the 10 users
|
|
652
|
+
* const aggregations = await prisma.user.aggregate({
|
|
653
|
+
* _avg: {
|
|
654
|
+
* age: true,
|
|
655
|
+
* },
|
|
656
|
+
* where: {
|
|
657
|
+
* email: {
|
|
658
|
+
* contains: "prisma.io",
|
|
659
|
+
* },
|
|
660
|
+
* },
|
|
661
|
+
* orderBy: {
|
|
662
|
+
* age: "asc",
|
|
663
|
+
* },
|
|
664
|
+
* take: 10,
|
|
665
|
+
* })
|
|
666
|
+
**/
|
|
667
|
+
aggregate<T extends BackendUnlockMethodAggregateArgs>(args: Prisma.Subset<T, BackendUnlockMethodAggregateArgs>): Prisma.PrismaPromise<GetBackendUnlockMethodAggregateType<T>>
|
|
668
|
+
|
|
669
|
+
/**
|
|
670
|
+
* Group by BackendUnlockMethod.
|
|
671
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
672
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
673
|
+
* @param {BackendUnlockMethodGroupByArgs} args - Group by arguments.
|
|
674
|
+
* @example
|
|
675
|
+
* // Group by city, order by createdAt, get count
|
|
676
|
+
* const result = await prisma.user.groupBy({
|
|
677
|
+
* by: ['city', 'createdAt'],
|
|
678
|
+
* orderBy: {
|
|
679
|
+
* createdAt: true
|
|
680
|
+
* },
|
|
681
|
+
* _count: {
|
|
682
|
+
* _all: true
|
|
683
|
+
* },
|
|
684
|
+
* })
|
|
685
|
+
*
|
|
686
|
+
**/
|
|
687
|
+
groupBy<
|
|
688
|
+
T extends BackendUnlockMethodGroupByArgs,
|
|
689
|
+
HasSelectOrTake extends Prisma.Or<
|
|
690
|
+
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
691
|
+
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
692
|
+
>,
|
|
693
|
+
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
694
|
+
? { orderBy: BackendUnlockMethodGroupByArgs['orderBy'] }
|
|
695
|
+
: { orderBy?: BackendUnlockMethodGroupByArgs['orderBy'] },
|
|
696
|
+
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
697
|
+
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
698
|
+
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
699
|
+
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
700
|
+
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
701
|
+
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
702
|
+
InputErrors extends ByEmpty extends Prisma.True
|
|
703
|
+
? `Error: "by" must not be empty.`
|
|
704
|
+
: HavingValid extends Prisma.False
|
|
705
|
+
? {
|
|
706
|
+
[P in HavingFields]: P extends ByFields
|
|
707
|
+
? never
|
|
708
|
+
: P extends string
|
|
709
|
+
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
710
|
+
: [
|
|
711
|
+
Error,
|
|
712
|
+
'Field ',
|
|
713
|
+
P,
|
|
714
|
+
` in "having" needs to be provided in "by"`,
|
|
715
|
+
]
|
|
716
|
+
}[HavingFields]
|
|
717
|
+
: 'take' extends Prisma.Keys<T>
|
|
718
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
719
|
+
? ByValid extends Prisma.True
|
|
720
|
+
? {}
|
|
721
|
+
: {
|
|
722
|
+
[P in OrderFields]: P extends ByFields
|
|
723
|
+
? never
|
|
724
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
725
|
+
}[OrderFields]
|
|
726
|
+
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
727
|
+
: 'skip' extends Prisma.Keys<T>
|
|
728
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
729
|
+
? ByValid extends Prisma.True
|
|
730
|
+
? {}
|
|
731
|
+
: {
|
|
732
|
+
[P in OrderFields]: P extends ByFields
|
|
733
|
+
? never
|
|
734
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
735
|
+
}[OrderFields]
|
|
736
|
+
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
737
|
+
: ByValid extends Prisma.True
|
|
738
|
+
? {}
|
|
739
|
+
: {
|
|
740
|
+
[P in OrderFields]: P extends ByFields
|
|
741
|
+
? never
|
|
742
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
743
|
+
}[OrderFields]
|
|
744
|
+
>(args: Prisma.SubsetIntersection<T, BackendUnlockMethodGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetBackendUnlockMethodGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
745
|
+
/**
|
|
746
|
+
* Fields of the BackendUnlockMethod model
|
|
747
|
+
*/
|
|
748
|
+
readonly fields: BackendUnlockMethodFieldRefs;
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
/**
|
|
752
|
+
* The delegate class that acts as a "Promise-like" for BackendUnlockMethod.
|
|
753
|
+
* Why is this prefixed with `Prisma__`?
|
|
754
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
755
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
756
|
+
*/
|
|
757
|
+
export interface Prisma__BackendUnlockMethodClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
758
|
+
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
759
|
+
/**
|
|
760
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
761
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
762
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
763
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
764
|
+
*/
|
|
765
|
+
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>
|
|
766
|
+
/**
|
|
767
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
768
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
769
|
+
* @returns A Promise for the completion of the callback.
|
|
770
|
+
*/
|
|
771
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
772
|
+
/**
|
|
773
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
774
|
+
* resolved value cannot be modified from the callback.
|
|
775
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
776
|
+
* @returns A Promise for the completion of the callback.
|
|
777
|
+
*/
|
|
778
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
|
|
782
|
+
|
|
783
|
+
|
|
784
|
+
/**
|
|
785
|
+
* Fields of the BackendUnlockMethod model
|
|
786
|
+
*/
|
|
787
|
+
export interface BackendUnlockMethodFieldRefs {
|
|
788
|
+
readonly id: Prisma.FieldRef<"BackendUnlockMethod", 'String'>
|
|
789
|
+
readonly meta: Prisma.FieldRef<"BackendUnlockMethod", 'Json'>
|
|
790
|
+
readonly recipient: Prisma.FieldRef<"BackendUnlockMethod", 'String'>
|
|
791
|
+
readonly createdAt: Prisma.FieldRef<"BackendUnlockMethod", 'DateTime'>
|
|
792
|
+
readonly updatedAt: Prisma.FieldRef<"BackendUnlockMethod", 'DateTime'>
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
|
|
796
|
+
// Custom InputTypes
|
|
797
|
+
/**
|
|
798
|
+
* BackendUnlockMethod findUnique
|
|
799
|
+
*/
|
|
800
|
+
export type BackendUnlockMethodFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
801
|
+
/**
|
|
802
|
+
* Select specific fields to fetch from the BackendUnlockMethod
|
|
803
|
+
*/
|
|
804
|
+
select?: Prisma.BackendUnlockMethodSelect<ExtArgs> | null
|
|
805
|
+
/**
|
|
806
|
+
* Omit specific fields from the BackendUnlockMethod
|
|
807
|
+
*/
|
|
808
|
+
omit?: Prisma.BackendUnlockMethodOmit<ExtArgs> | null
|
|
809
|
+
/**
|
|
810
|
+
* Filter, which BackendUnlockMethod to fetch.
|
|
811
|
+
*/
|
|
812
|
+
where: Prisma.BackendUnlockMethodWhereUniqueInput
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
/**
|
|
816
|
+
* BackendUnlockMethod findUniqueOrThrow
|
|
817
|
+
*/
|
|
818
|
+
export type BackendUnlockMethodFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
819
|
+
/**
|
|
820
|
+
* Select specific fields to fetch from the BackendUnlockMethod
|
|
821
|
+
*/
|
|
822
|
+
select?: Prisma.BackendUnlockMethodSelect<ExtArgs> | null
|
|
823
|
+
/**
|
|
824
|
+
* Omit specific fields from the BackendUnlockMethod
|
|
825
|
+
*/
|
|
826
|
+
omit?: Prisma.BackendUnlockMethodOmit<ExtArgs> | null
|
|
827
|
+
/**
|
|
828
|
+
* Filter, which BackendUnlockMethod to fetch.
|
|
829
|
+
*/
|
|
830
|
+
where: Prisma.BackendUnlockMethodWhereUniqueInput
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
/**
|
|
834
|
+
* BackendUnlockMethod findFirst
|
|
835
|
+
*/
|
|
836
|
+
export type BackendUnlockMethodFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
837
|
+
/**
|
|
838
|
+
* Select specific fields to fetch from the BackendUnlockMethod
|
|
839
|
+
*/
|
|
840
|
+
select?: Prisma.BackendUnlockMethodSelect<ExtArgs> | null
|
|
841
|
+
/**
|
|
842
|
+
* Omit specific fields from the BackendUnlockMethod
|
|
843
|
+
*/
|
|
844
|
+
omit?: Prisma.BackendUnlockMethodOmit<ExtArgs> | null
|
|
845
|
+
/**
|
|
846
|
+
* Filter, which BackendUnlockMethod to fetch.
|
|
847
|
+
*/
|
|
848
|
+
where?: Prisma.BackendUnlockMethodWhereInput
|
|
849
|
+
/**
|
|
850
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
851
|
+
*
|
|
852
|
+
* Determine the order of BackendUnlockMethods to fetch.
|
|
853
|
+
*/
|
|
854
|
+
orderBy?: Prisma.BackendUnlockMethodOrderByWithRelationInput | Prisma.BackendUnlockMethodOrderByWithRelationInput[]
|
|
855
|
+
/**
|
|
856
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
857
|
+
*
|
|
858
|
+
* Sets the position for searching for BackendUnlockMethods.
|
|
859
|
+
*/
|
|
860
|
+
cursor?: Prisma.BackendUnlockMethodWhereUniqueInput
|
|
861
|
+
/**
|
|
862
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
863
|
+
*
|
|
864
|
+
* Take `±n` BackendUnlockMethods from the position of the cursor.
|
|
865
|
+
*/
|
|
866
|
+
take?: number
|
|
867
|
+
/**
|
|
868
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
869
|
+
*
|
|
870
|
+
* Skip the first `n` BackendUnlockMethods.
|
|
871
|
+
*/
|
|
872
|
+
skip?: number
|
|
873
|
+
/**
|
|
874
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
875
|
+
*
|
|
876
|
+
* Filter by unique combinations of BackendUnlockMethods.
|
|
877
|
+
*/
|
|
878
|
+
distinct?: Prisma.BackendUnlockMethodScalarFieldEnum | Prisma.BackendUnlockMethodScalarFieldEnum[]
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
/**
|
|
882
|
+
* BackendUnlockMethod findFirstOrThrow
|
|
883
|
+
*/
|
|
884
|
+
export type BackendUnlockMethodFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
885
|
+
/**
|
|
886
|
+
* Select specific fields to fetch from the BackendUnlockMethod
|
|
887
|
+
*/
|
|
888
|
+
select?: Prisma.BackendUnlockMethodSelect<ExtArgs> | null
|
|
889
|
+
/**
|
|
890
|
+
* Omit specific fields from the BackendUnlockMethod
|
|
891
|
+
*/
|
|
892
|
+
omit?: Prisma.BackendUnlockMethodOmit<ExtArgs> | null
|
|
893
|
+
/**
|
|
894
|
+
* Filter, which BackendUnlockMethod to fetch.
|
|
895
|
+
*/
|
|
896
|
+
where?: Prisma.BackendUnlockMethodWhereInput
|
|
897
|
+
/**
|
|
898
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
899
|
+
*
|
|
900
|
+
* Determine the order of BackendUnlockMethods to fetch.
|
|
901
|
+
*/
|
|
902
|
+
orderBy?: Prisma.BackendUnlockMethodOrderByWithRelationInput | Prisma.BackendUnlockMethodOrderByWithRelationInput[]
|
|
903
|
+
/**
|
|
904
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
905
|
+
*
|
|
906
|
+
* Sets the position for searching for BackendUnlockMethods.
|
|
907
|
+
*/
|
|
908
|
+
cursor?: Prisma.BackendUnlockMethodWhereUniqueInput
|
|
909
|
+
/**
|
|
910
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
911
|
+
*
|
|
912
|
+
* Take `±n` BackendUnlockMethods from the position of the cursor.
|
|
913
|
+
*/
|
|
914
|
+
take?: number
|
|
915
|
+
/**
|
|
916
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
917
|
+
*
|
|
918
|
+
* Skip the first `n` BackendUnlockMethods.
|
|
919
|
+
*/
|
|
920
|
+
skip?: number
|
|
921
|
+
/**
|
|
922
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
923
|
+
*
|
|
924
|
+
* Filter by unique combinations of BackendUnlockMethods.
|
|
925
|
+
*/
|
|
926
|
+
distinct?: Prisma.BackendUnlockMethodScalarFieldEnum | Prisma.BackendUnlockMethodScalarFieldEnum[]
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
/**
|
|
930
|
+
* BackendUnlockMethod findMany
|
|
931
|
+
*/
|
|
932
|
+
export type BackendUnlockMethodFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
933
|
+
/**
|
|
934
|
+
* Select specific fields to fetch from the BackendUnlockMethod
|
|
935
|
+
*/
|
|
936
|
+
select?: Prisma.BackendUnlockMethodSelect<ExtArgs> | null
|
|
937
|
+
/**
|
|
938
|
+
* Omit specific fields from the BackendUnlockMethod
|
|
939
|
+
*/
|
|
940
|
+
omit?: Prisma.BackendUnlockMethodOmit<ExtArgs> | null
|
|
941
|
+
/**
|
|
942
|
+
* Filter, which BackendUnlockMethods to fetch.
|
|
943
|
+
*/
|
|
944
|
+
where?: Prisma.BackendUnlockMethodWhereInput
|
|
945
|
+
/**
|
|
946
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
947
|
+
*
|
|
948
|
+
* Determine the order of BackendUnlockMethods to fetch.
|
|
949
|
+
*/
|
|
950
|
+
orderBy?: Prisma.BackendUnlockMethodOrderByWithRelationInput | Prisma.BackendUnlockMethodOrderByWithRelationInput[]
|
|
951
|
+
/**
|
|
952
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
953
|
+
*
|
|
954
|
+
* Sets the position for listing BackendUnlockMethods.
|
|
955
|
+
*/
|
|
956
|
+
cursor?: Prisma.BackendUnlockMethodWhereUniqueInput
|
|
957
|
+
/**
|
|
958
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
959
|
+
*
|
|
960
|
+
* Take `±n` BackendUnlockMethods from the position of the cursor.
|
|
961
|
+
*/
|
|
962
|
+
take?: number
|
|
963
|
+
/**
|
|
964
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
965
|
+
*
|
|
966
|
+
* Skip the first `n` BackendUnlockMethods.
|
|
967
|
+
*/
|
|
968
|
+
skip?: number
|
|
969
|
+
distinct?: Prisma.BackendUnlockMethodScalarFieldEnum | Prisma.BackendUnlockMethodScalarFieldEnum[]
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
/**
|
|
973
|
+
* BackendUnlockMethod create
|
|
974
|
+
*/
|
|
975
|
+
export type BackendUnlockMethodCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
976
|
+
/**
|
|
977
|
+
* Select specific fields to fetch from the BackendUnlockMethod
|
|
978
|
+
*/
|
|
979
|
+
select?: Prisma.BackendUnlockMethodSelect<ExtArgs> | null
|
|
980
|
+
/**
|
|
981
|
+
* Omit specific fields from the BackendUnlockMethod
|
|
982
|
+
*/
|
|
983
|
+
omit?: Prisma.BackendUnlockMethodOmit<ExtArgs> | null
|
|
984
|
+
/**
|
|
985
|
+
* The data needed to create a BackendUnlockMethod.
|
|
986
|
+
*/
|
|
987
|
+
data: Prisma.XOR<Prisma.BackendUnlockMethodCreateInput, Prisma.BackendUnlockMethodUncheckedCreateInput>
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
/**
|
|
991
|
+
* BackendUnlockMethod createMany
|
|
992
|
+
*/
|
|
993
|
+
export type BackendUnlockMethodCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
994
|
+
/**
|
|
995
|
+
* The data used to create many BackendUnlockMethods.
|
|
996
|
+
*/
|
|
997
|
+
data: Prisma.BackendUnlockMethodCreateManyInput | Prisma.BackendUnlockMethodCreateManyInput[]
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
/**
|
|
1001
|
+
* BackendUnlockMethod createManyAndReturn
|
|
1002
|
+
*/
|
|
1003
|
+
export type BackendUnlockMethodCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1004
|
+
/**
|
|
1005
|
+
* Select specific fields to fetch from the BackendUnlockMethod
|
|
1006
|
+
*/
|
|
1007
|
+
select?: Prisma.BackendUnlockMethodSelectCreateManyAndReturn<ExtArgs> | null
|
|
1008
|
+
/**
|
|
1009
|
+
* Omit specific fields from the BackendUnlockMethod
|
|
1010
|
+
*/
|
|
1011
|
+
omit?: Prisma.BackendUnlockMethodOmit<ExtArgs> | null
|
|
1012
|
+
/**
|
|
1013
|
+
* The data used to create many BackendUnlockMethods.
|
|
1014
|
+
*/
|
|
1015
|
+
data: Prisma.BackendUnlockMethodCreateManyInput | Prisma.BackendUnlockMethodCreateManyInput[]
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
/**
|
|
1019
|
+
* BackendUnlockMethod update
|
|
1020
|
+
*/
|
|
1021
|
+
export type BackendUnlockMethodUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1022
|
+
/**
|
|
1023
|
+
* Select specific fields to fetch from the BackendUnlockMethod
|
|
1024
|
+
*/
|
|
1025
|
+
select?: Prisma.BackendUnlockMethodSelect<ExtArgs> | null
|
|
1026
|
+
/**
|
|
1027
|
+
* Omit specific fields from the BackendUnlockMethod
|
|
1028
|
+
*/
|
|
1029
|
+
omit?: Prisma.BackendUnlockMethodOmit<ExtArgs> | null
|
|
1030
|
+
/**
|
|
1031
|
+
* The data needed to update a BackendUnlockMethod.
|
|
1032
|
+
*/
|
|
1033
|
+
data: Prisma.XOR<Prisma.BackendUnlockMethodUpdateInput, Prisma.BackendUnlockMethodUncheckedUpdateInput>
|
|
1034
|
+
/**
|
|
1035
|
+
* Choose, which BackendUnlockMethod to update.
|
|
1036
|
+
*/
|
|
1037
|
+
where: Prisma.BackendUnlockMethodWhereUniqueInput
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
/**
|
|
1041
|
+
* BackendUnlockMethod updateMany
|
|
1042
|
+
*/
|
|
1043
|
+
export type BackendUnlockMethodUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1044
|
+
/**
|
|
1045
|
+
* The data used to update BackendUnlockMethods.
|
|
1046
|
+
*/
|
|
1047
|
+
data: Prisma.XOR<Prisma.BackendUnlockMethodUpdateManyMutationInput, Prisma.BackendUnlockMethodUncheckedUpdateManyInput>
|
|
1048
|
+
/**
|
|
1049
|
+
* Filter which BackendUnlockMethods to update
|
|
1050
|
+
*/
|
|
1051
|
+
where?: Prisma.BackendUnlockMethodWhereInput
|
|
1052
|
+
/**
|
|
1053
|
+
* Limit how many BackendUnlockMethods to update.
|
|
1054
|
+
*/
|
|
1055
|
+
limit?: number
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
/**
|
|
1059
|
+
* BackendUnlockMethod updateManyAndReturn
|
|
1060
|
+
*/
|
|
1061
|
+
export type BackendUnlockMethodUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1062
|
+
/**
|
|
1063
|
+
* Select specific fields to fetch from the BackendUnlockMethod
|
|
1064
|
+
*/
|
|
1065
|
+
select?: Prisma.BackendUnlockMethodSelectUpdateManyAndReturn<ExtArgs> | null
|
|
1066
|
+
/**
|
|
1067
|
+
* Omit specific fields from the BackendUnlockMethod
|
|
1068
|
+
*/
|
|
1069
|
+
omit?: Prisma.BackendUnlockMethodOmit<ExtArgs> | null
|
|
1070
|
+
/**
|
|
1071
|
+
* The data used to update BackendUnlockMethods.
|
|
1072
|
+
*/
|
|
1073
|
+
data: Prisma.XOR<Prisma.BackendUnlockMethodUpdateManyMutationInput, Prisma.BackendUnlockMethodUncheckedUpdateManyInput>
|
|
1074
|
+
/**
|
|
1075
|
+
* Filter which BackendUnlockMethods to update
|
|
1076
|
+
*/
|
|
1077
|
+
where?: Prisma.BackendUnlockMethodWhereInput
|
|
1078
|
+
/**
|
|
1079
|
+
* Limit how many BackendUnlockMethods to update.
|
|
1080
|
+
*/
|
|
1081
|
+
limit?: number
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
/**
|
|
1085
|
+
* BackendUnlockMethod upsert
|
|
1086
|
+
*/
|
|
1087
|
+
export type BackendUnlockMethodUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1088
|
+
/**
|
|
1089
|
+
* Select specific fields to fetch from the BackendUnlockMethod
|
|
1090
|
+
*/
|
|
1091
|
+
select?: Prisma.BackendUnlockMethodSelect<ExtArgs> | null
|
|
1092
|
+
/**
|
|
1093
|
+
* Omit specific fields from the BackendUnlockMethod
|
|
1094
|
+
*/
|
|
1095
|
+
omit?: Prisma.BackendUnlockMethodOmit<ExtArgs> | null
|
|
1096
|
+
/**
|
|
1097
|
+
* The filter to search for the BackendUnlockMethod to update in case it exists.
|
|
1098
|
+
*/
|
|
1099
|
+
where: Prisma.BackendUnlockMethodWhereUniqueInput
|
|
1100
|
+
/**
|
|
1101
|
+
* In case the BackendUnlockMethod found by the `where` argument doesn't exist, create a new BackendUnlockMethod with this data.
|
|
1102
|
+
*/
|
|
1103
|
+
create: Prisma.XOR<Prisma.BackendUnlockMethodCreateInput, Prisma.BackendUnlockMethodUncheckedCreateInput>
|
|
1104
|
+
/**
|
|
1105
|
+
* In case the BackendUnlockMethod was found with the provided `where` argument, update it with this data.
|
|
1106
|
+
*/
|
|
1107
|
+
update: Prisma.XOR<Prisma.BackendUnlockMethodUpdateInput, Prisma.BackendUnlockMethodUncheckedUpdateInput>
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
/**
|
|
1111
|
+
* BackendUnlockMethod delete
|
|
1112
|
+
*/
|
|
1113
|
+
export type BackendUnlockMethodDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1114
|
+
/**
|
|
1115
|
+
* Select specific fields to fetch from the BackendUnlockMethod
|
|
1116
|
+
*/
|
|
1117
|
+
select?: Prisma.BackendUnlockMethodSelect<ExtArgs> | null
|
|
1118
|
+
/**
|
|
1119
|
+
* Omit specific fields from the BackendUnlockMethod
|
|
1120
|
+
*/
|
|
1121
|
+
omit?: Prisma.BackendUnlockMethodOmit<ExtArgs> | null
|
|
1122
|
+
/**
|
|
1123
|
+
* Filter which BackendUnlockMethod to delete.
|
|
1124
|
+
*/
|
|
1125
|
+
where: Prisma.BackendUnlockMethodWhereUniqueInput
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
/**
|
|
1129
|
+
* BackendUnlockMethod deleteMany
|
|
1130
|
+
*/
|
|
1131
|
+
export type BackendUnlockMethodDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1132
|
+
/**
|
|
1133
|
+
* Filter which BackendUnlockMethods to delete
|
|
1134
|
+
*/
|
|
1135
|
+
where?: Prisma.BackendUnlockMethodWhereInput
|
|
1136
|
+
/**
|
|
1137
|
+
* Limit how many BackendUnlockMethods to delete.
|
|
1138
|
+
*/
|
|
1139
|
+
limit?: number
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1142
|
+
/**
|
|
1143
|
+
* BackendUnlockMethod without action
|
|
1144
|
+
*/
|
|
1145
|
+
export type BackendUnlockMethodDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1146
|
+
/**
|
|
1147
|
+
* Select specific fields to fetch from the BackendUnlockMethod
|
|
1148
|
+
*/
|
|
1149
|
+
select?: Prisma.BackendUnlockMethodSelect<ExtArgs> | null
|
|
1150
|
+
/**
|
|
1151
|
+
* Omit specific fields from the BackendUnlockMethod
|
|
1152
|
+
*/
|
|
1153
|
+
omit?: Prisma.BackendUnlockMethodOmit<ExtArgs> | null
|
|
1154
|
+
}
|