@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,1067 @@
|
|
|
1
|
+
|
|
2
|
+
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
/**
|
|
6
|
+
* This file exports the `UserWorkspaceLayout` 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 UserWorkspaceLayout
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
export type UserWorkspaceLayoutModel = runtime.Types.Result.DefaultSelection<Prisma.$UserWorkspaceLayoutPayload>
|
|
21
|
+
|
|
22
|
+
export type AggregateUserWorkspaceLayout = {
|
|
23
|
+
_count: UserWorkspaceLayoutCountAggregateOutputType | null
|
|
24
|
+
_min: UserWorkspaceLayoutMinAggregateOutputType | null
|
|
25
|
+
_max: UserWorkspaceLayoutMaxAggregateOutputType | null
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export type UserWorkspaceLayoutMinAggregateOutputType = {
|
|
29
|
+
userId: string | null
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export type UserWorkspaceLayoutMaxAggregateOutputType = {
|
|
33
|
+
userId: string | null
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export type UserWorkspaceLayoutCountAggregateOutputType = {
|
|
37
|
+
userId: number
|
|
38
|
+
layout: number
|
|
39
|
+
_all: number
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
export type UserWorkspaceLayoutMinAggregateInputType = {
|
|
44
|
+
userId?: true
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export type UserWorkspaceLayoutMaxAggregateInputType = {
|
|
48
|
+
userId?: true
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export type UserWorkspaceLayoutCountAggregateInputType = {
|
|
52
|
+
userId?: true
|
|
53
|
+
layout?: true
|
|
54
|
+
_all?: true
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type UserWorkspaceLayoutAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
58
|
+
/**
|
|
59
|
+
* Filter which UserWorkspaceLayout to aggregate.
|
|
60
|
+
*/
|
|
61
|
+
where?: Prisma.UserWorkspaceLayoutWhereInput
|
|
62
|
+
/**
|
|
63
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
64
|
+
*
|
|
65
|
+
* Determine the order of UserWorkspaceLayouts to fetch.
|
|
66
|
+
*/
|
|
67
|
+
orderBy?: Prisma.UserWorkspaceLayoutOrderByWithRelationInput | Prisma.UserWorkspaceLayoutOrderByWithRelationInput[]
|
|
68
|
+
/**
|
|
69
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
70
|
+
*
|
|
71
|
+
* Sets the start position
|
|
72
|
+
*/
|
|
73
|
+
cursor?: Prisma.UserWorkspaceLayoutWhereUniqueInput
|
|
74
|
+
/**
|
|
75
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
76
|
+
*
|
|
77
|
+
* Take `±n` UserWorkspaceLayouts from the position of the cursor.
|
|
78
|
+
*/
|
|
79
|
+
take?: number
|
|
80
|
+
/**
|
|
81
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
82
|
+
*
|
|
83
|
+
* Skip the first `n` UserWorkspaceLayouts.
|
|
84
|
+
*/
|
|
85
|
+
skip?: number
|
|
86
|
+
/**
|
|
87
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
88
|
+
*
|
|
89
|
+
* Count returned UserWorkspaceLayouts
|
|
90
|
+
**/
|
|
91
|
+
_count?: true | UserWorkspaceLayoutCountAggregateInputType
|
|
92
|
+
/**
|
|
93
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
94
|
+
*
|
|
95
|
+
* Select which fields to find the minimum value
|
|
96
|
+
**/
|
|
97
|
+
_min?: UserWorkspaceLayoutMinAggregateInputType
|
|
98
|
+
/**
|
|
99
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
100
|
+
*
|
|
101
|
+
* Select which fields to find the maximum value
|
|
102
|
+
**/
|
|
103
|
+
_max?: UserWorkspaceLayoutMaxAggregateInputType
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export type GetUserWorkspaceLayoutAggregateType<T extends UserWorkspaceLayoutAggregateArgs> = {
|
|
107
|
+
[P in keyof T & keyof AggregateUserWorkspaceLayout]: P extends '_count' | 'count'
|
|
108
|
+
? T[P] extends true
|
|
109
|
+
? number
|
|
110
|
+
: Prisma.GetScalarType<T[P], AggregateUserWorkspaceLayout[P]>
|
|
111
|
+
: Prisma.GetScalarType<T[P], AggregateUserWorkspaceLayout[P]>
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
export type UserWorkspaceLayoutGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
118
|
+
where?: Prisma.UserWorkspaceLayoutWhereInput
|
|
119
|
+
orderBy?: Prisma.UserWorkspaceLayoutOrderByWithAggregationInput | Prisma.UserWorkspaceLayoutOrderByWithAggregationInput[]
|
|
120
|
+
by: Prisma.UserWorkspaceLayoutScalarFieldEnum[] | Prisma.UserWorkspaceLayoutScalarFieldEnum
|
|
121
|
+
having?: Prisma.UserWorkspaceLayoutScalarWhereWithAggregatesInput
|
|
122
|
+
take?: number
|
|
123
|
+
skip?: number
|
|
124
|
+
_count?: UserWorkspaceLayoutCountAggregateInputType | true
|
|
125
|
+
_min?: UserWorkspaceLayoutMinAggregateInputType
|
|
126
|
+
_max?: UserWorkspaceLayoutMaxAggregateInputType
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export type UserWorkspaceLayoutGroupByOutputType = {
|
|
130
|
+
userId: string
|
|
131
|
+
layout: (unknown)
|
|
132
|
+
_count: UserWorkspaceLayoutCountAggregateOutputType | null
|
|
133
|
+
_min: UserWorkspaceLayoutMinAggregateOutputType | null
|
|
134
|
+
_max: UserWorkspaceLayoutMaxAggregateOutputType | null
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
type GetUserWorkspaceLayoutGroupByPayload<T extends UserWorkspaceLayoutGroupByArgs> = Prisma.PrismaPromise<
|
|
138
|
+
Array<
|
|
139
|
+
Prisma.PickEnumerable<UserWorkspaceLayoutGroupByOutputType, T['by']> &
|
|
140
|
+
{
|
|
141
|
+
[P in ((keyof T) & (keyof UserWorkspaceLayoutGroupByOutputType))]: P extends '_count'
|
|
142
|
+
? T[P] extends boolean
|
|
143
|
+
? number
|
|
144
|
+
: Prisma.GetScalarType<T[P], UserWorkspaceLayoutGroupByOutputType[P]>
|
|
145
|
+
: Prisma.GetScalarType<T[P], UserWorkspaceLayoutGroupByOutputType[P]>
|
|
146
|
+
}
|
|
147
|
+
>
|
|
148
|
+
>
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
export type UserWorkspaceLayoutWhereInput = {
|
|
153
|
+
AND?: Prisma.UserWorkspaceLayoutWhereInput | Prisma.UserWorkspaceLayoutWhereInput[]
|
|
154
|
+
OR?: Prisma.UserWorkspaceLayoutWhereInput[]
|
|
155
|
+
NOT?: Prisma.UserWorkspaceLayoutWhereInput | Prisma.UserWorkspaceLayoutWhereInput[]
|
|
156
|
+
userId?: Prisma.StringFilter<"UserWorkspaceLayout"> | string
|
|
157
|
+
layout?: Prisma.JsonFilter<"UserWorkspaceLayout">
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export type UserWorkspaceLayoutOrderByWithRelationInput = {
|
|
161
|
+
userId?: Prisma.SortOrder
|
|
162
|
+
layout?: Prisma.SortOrder
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export type UserWorkspaceLayoutWhereUniqueInput = Prisma.AtLeast<{
|
|
166
|
+
userId?: string
|
|
167
|
+
AND?: Prisma.UserWorkspaceLayoutWhereInput | Prisma.UserWorkspaceLayoutWhereInput[]
|
|
168
|
+
OR?: Prisma.UserWorkspaceLayoutWhereInput[]
|
|
169
|
+
NOT?: Prisma.UserWorkspaceLayoutWhereInput | Prisma.UserWorkspaceLayoutWhereInput[]
|
|
170
|
+
layout?: Prisma.JsonFilter<"UserWorkspaceLayout">
|
|
171
|
+
}, "userId">
|
|
172
|
+
|
|
173
|
+
export type UserWorkspaceLayoutOrderByWithAggregationInput = {
|
|
174
|
+
userId?: Prisma.SortOrder
|
|
175
|
+
layout?: Prisma.SortOrder
|
|
176
|
+
_count?: Prisma.UserWorkspaceLayoutCountOrderByAggregateInput
|
|
177
|
+
_max?: Prisma.UserWorkspaceLayoutMaxOrderByAggregateInput
|
|
178
|
+
_min?: Prisma.UserWorkspaceLayoutMinOrderByAggregateInput
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export type UserWorkspaceLayoutScalarWhereWithAggregatesInput = {
|
|
182
|
+
AND?: Prisma.UserWorkspaceLayoutScalarWhereWithAggregatesInput | Prisma.UserWorkspaceLayoutScalarWhereWithAggregatesInput[]
|
|
183
|
+
OR?: Prisma.UserWorkspaceLayoutScalarWhereWithAggregatesInput[]
|
|
184
|
+
NOT?: Prisma.UserWorkspaceLayoutScalarWhereWithAggregatesInput | Prisma.UserWorkspaceLayoutScalarWhereWithAggregatesInput[]
|
|
185
|
+
userId?: Prisma.StringWithAggregatesFilter<"UserWorkspaceLayout"> | string
|
|
186
|
+
layout?: Prisma.JsonWithAggregatesFilter<"UserWorkspaceLayout">
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export type UserWorkspaceLayoutCreateInput = {
|
|
190
|
+
userId: string
|
|
191
|
+
layout: (unknown)
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
export type UserWorkspaceLayoutUncheckedCreateInput = {
|
|
195
|
+
userId: string
|
|
196
|
+
layout: (unknown)
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export type UserWorkspaceLayoutUpdateInput = {
|
|
200
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
201
|
+
layout?: (unknown)
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export type UserWorkspaceLayoutUncheckedUpdateInput = {
|
|
205
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
206
|
+
layout?: (unknown)
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
export type UserWorkspaceLayoutCreateManyInput = {
|
|
210
|
+
userId: string
|
|
211
|
+
layout: (unknown)
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
export type UserWorkspaceLayoutUpdateManyMutationInput = {
|
|
215
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
216
|
+
layout?: (unknown)
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export type UserWorkspaceLayoutUncheckedUpdateManyInput = {
|
|
220
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
221
|
+
layout?: (unknown)
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export type UserWorkspaceLayoutCountOrderByAggregateInput = {
|
|
225
|
+
userId?: Prisma.SortOrder
|
|
226
|
+
layout?: Prisma.SortOrder
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
export type UserWorkspaceLayoutMaxOrderByAggregateInput = {
|
|
230
|
+
userId?: Prisma.SortOrder
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
export type UserWorkspaceLayoutMinOrderByAggregateInput = {
|
|
234
|
+
userId?: Prisma.SortOrder
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
export type StringFieldUpdateOperationsInput = {
|
|
238
|
+
set?: string
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
export type UserWorkspaceLayoutSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
244
|
+
userId?: boolean
|
|
245
|
+
layout?: boolean
|
|
246
|
+
}, ExtArgs["result"]["userWorkspaceLayout"]>
|
|
247
|
+
|
|
248
|
+
export type UserWorkspaceLayoutSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
249
|
+
userId?: boolean
|
|
250
|
+
layout?: boolean
|
|
251
|
+
}, ExtArgs["result"]["userWorkspaceLayout"]>
|
|
252
|
+
|
|
253
|
+
export type UserWorkspaceLayoutSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
254
|
+
userId?: boolean
|
|
255
|
+
layout?: boolean
|
|
256
|
+
}, ExtArgs["result"]["userWorkspaceLayout"]>
|
|
257
|
+
|
|
258
|
+
export type UserWorkspaceLayoutSelectScalar = {
|
|
259
|
+
userId?: boolean
|
|
260
|
+
layout?: boolean
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
export type UserWorkspaceLayoutOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"userId" | "layout", ExtArgs["result"]["userWorkspaceLayout"]>
|
|
264
|
+
|
|
265
|
+
export type $UserWorkspaceLayoutPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
266
|
+
name: "UserWorkspaceLayout"
|
|
267
|
+
objects: {}
|
|
268
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
269
|
+
/**
|
|
270
|
+
* The opaque ID of the user to which this layout belongs.
|
|
271
|
+
*/
|
|
272
|
+
userId: string
|
|
273
|
+
/**
|
|
274
|
+
* The layout of the user workspace managed by the frontend.
|
|
275
|
+
*
|
|
276
|
+
* ![unknown]
|
|
277
|
+
*/
|
|
278
|
+
layout: (unknown)
|
|
279
|
+
}, ExtArgs["result"]["userWorkspaceLayout"]>
|
|
280
|
+
composites: {}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
export type UserWorkspaceLayoutGetPayload<S extends boolean | null | undefined | UserWorkspaceLayoutDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$UserWorkspaceLayoutPayload, S>
|
|
284
|
+
|
|
285
|
+
export type UserWorkspaceLayoutCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
286
|
+
Omit<UserWorkspaceLayoutFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
287
|
+
select?: UserWorkspaceLayoutCountAggregateInputType | true
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
export interface UserWorkspaceLayoutDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
291
|
+
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['UserWorkspaceLayout'], meta: { name: 'UserWorkspaceLayout' } }
|
|
292
|
+
/**
|
|
293
|
+
* Find zero or one UserWorkspaceLayout that matches the filter.
|
|
294
|
+
* @param {UserWorkspaceLayoutFindUniqueArgs} args - Arguments to find a UserWorkspaceLayout
|
|
295
|
+
* @example
|
|
296
|
+
* // Get one UserWorkspaceLayout
|
|
297
|
+
* const userWorkspaceLayout = await prisma.userWorkspaceLayout.findUnique({
|
|
298
|
+
* where: {
|
|
299
|
+
* // ... provide filter here
|
|
300
|
+
* }
|
|
301
|
+
* })
|
|
302
|
+
*/
|
|
303
|
+
findUnique<T extends UserWorkspaceLayoutFindUniqueArgs>(args: Prisma.SelectSubset<T, UserWorkspaceLayoutFindUniqueArgs<ExtArgs>>): Prisma.Prisma__UserWorkspaceLayoutClient<runtime.Types.Result.GetResult<Prisma.$UserWorkspaceLayoutPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* Find one UserWorkspaceLayout that matches the filter or throw an error with `error.code='P2025'`
|
|
307
|
+
* if no matches were found.
|
|
308
|
+
* @param {UserWorkspaceLayoutFindUniqueOrThrowArgs} args - Arguments to find a UserWorkspaceLayout
|
|
309
|
+
* @example
|
|
310
|
+
* // Get one UserWorkspaceLayout
|
|
311
|
+
* const userWorkspaceLayout = await prisma.userWorkspaceLayout.findUniqueOrThrow({
|
|
312
|
+
* where: {
|
|
313
|
+
* // ... provide filter here
|
|
314
|
+
* }
|
|
315
|
+
* })
|
|
316
|
+
*/
|
|
317
|
+
findUniqueOrThrow<T extends UserWorkspaceLayoutFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, UserWorkspaceLayoutFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__UserWorkspaceLayoutClient<runtime.Types.Result.GetResult<Prisma.$UserWorkspaceLayoutPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* Find the first UserWorkspaceLayout that matches the filter.
|
|
321
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
322
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
323
|
+
* @param {UserWorkspaceLayoutFindFirstArgs} args - Arguments to find a UserWorkspaceLayout
|
|
324
|
+
* @example
|
|
325
|
+
* // Get one UserWorkspaceLayout
|
|
326
|
+
* const userWorkspaceLayout = await prisma.userWorkspaceLayout.findFirst({
|
|
327
|
+
* where: {
|
|
328
|
+
* // ... provide filter here
|
|
329
|
+
* }
|
|
330
|
+
* })
|
|
331
|
+
*/
|
|
332
|
+
findFirst<T extends UserWorkspaceLayoutFindFirstArgs>(args?: Prisma.SelectSubset<T, UserWorkspaceLayoutFindFirstArgs<ExtArgs>>): Prisma.Prisma__UserWorkspaceLayoutClient<runtime.Types.Result.GetResult<Prisma.$UserWorkspaceLayoutPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* Find the first UserWorkspaceLayout that matches the filter or
|
|
336
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
337
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
338
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
339
|
+
* @param {UserWorkspaceLayoutFindFirstOrThrowArgs} args - Arguments to find a UserWorkspaceLayout
|
|
340
|
+
* @example
|
|
341
|
+
* // Get one UserWorkspaceLayout
|
|
342
|
+
* const userWorkspaceLayout = await prisma.userWorkspaceLayout.findFirstOrThrow({
|
|
343
|
+
* where: {
|
|
344
|
+
* // ... provide filter here
|
|
345
|
+
* }
|
|
346
|
+
* })
|
|
347
|
+
*/
|
|
348
|
+
findFirstOrThrow<T extends UserWorkspaceLayoutFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, UserWorkspaceLayoutFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__UserWorkspaceLayoutClient<runtime.Types.Result.GetResult<Prisma.$UserWorkspaceLayoutPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* Find zero or more UserWorkspaceLayouts that matches the filter.
|
|
352
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
353
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
354
|
+
* @param {UserWorkspaceLayoutFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
355
|
+
* @example
|
|
356
|
+
* // Get all UserWorkspaceLayouts
|
|
357
|
+
* const userWorkspaceLayouts = await prisma.userWorkspaceLayout.findMany()
|
|
358
|
+
*
|
|
359
|
+
* // Get first 10 UserWorkspaceLayouts
|
|
360
|
+
* const userWorkspaceLayouts = await prisma.userWorkspaceLayout.findMany({ take: 10 })
|
|
361
|
+
*
|
|
362
|
+
* // Only select the `userId`
|
|
363
|
+
* const userWorkspaceLayoutWithUserIdOnly = await prisma.userWorkspaceLayout.findMany({ select: { userId: true } })
|
|
364
|
+
*
|
|
365
|
+
*/
|
|
366
|
+
findMany<T extends UserWorkspaceLayoutFindManyArgs>(args?: Prisma.SelectSubset<T, UserWorkspaceLayoutFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserWorkspaceLayoutPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* Create a UserWorkspaceLayout.
|
|
370
|
+
* @param {UserWorkspaceLayoutCreateArgs} args - Arguments to create a UserWorkspaceLayout.
|
|
371
|
+
* @example
|
|
372
|
+
* // Create one UserWorkspaceLayout
|
|
373
|
+
* const UserWorkspaceLayout = await prisma.userWorkspaceLayout.create({
|
|
374
|
+
* data: {
|
|
375
|
+
* // ... data to create a UserWorkspaceLayout
|
|
376
|
+
* }
|
|
377
|
+
* })
|
|
378
|
+
*
|
|
379
|
+
*/
|
|
380
|
+
create<T extends UserWorkspaceLayoutCreateArgs>(args: Prisma.SelectSubset<T, UserWorkspaceLayoutCreateArgs<ExtArgs>>): Prisma.Prisma__UserWorkspaceLayoutClient<runtime.Types.Result.GetResult<Prisma.$UserWorkspaceLayoutPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* Create many UserWorkspaceLayouts.
|
|
384
|
+
* @param {UserWorkspaceLayoutCreateManyArgs} args - Arguments to create many UserWorkspaceLayouts.
|
|
385
|
+
* @example
|
|
386
|
+
* // Create many UserWorkspaceLayouts
|
|
387
|
+
* const userWorkspaceLayout = await prisma.userWorkspaceLayout.createMany({
|
|
388
|
+
* data: [
|
|
389
|
+
* // ... provide data here
|
|
390
|
+
* ]
|
|
391
|
+
* })
|
|
392
|
+
*
|
|
393
|
+
*/
|
|
394
|
+
createMany<T extends UserWorkspaceLayoutCreateManyArgs>(args?: Prisma.SelectSubset<T, UserWorkspaceLayoutCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* Create many UserWorkspaceLayouts and returns the data saved in the database.
|
|
398
|
+
* @param {UserWorkspaceLayoutCreateManyAndReturnArgs} args - Arguments to create many UserWorkspaceLayouts.
|
|
399
|
+
* @example
|
|
400
|
+
* // Create many UserWorkspaceLayouts
|
|
401
|
+
* const userWorkspaceLayout = await prisma.userWorkspaceLayout.createManyAndReturn({
|
|
402
|
+
* data: [
|
|
403
|
+
* // ... provide data here
|
|
404
|
+
* ]
|
|
405
|
+
* })
|
|
406
|
+
*
|
|
407
|
+
* // Create many UserWorkspaceLayouts and only return the `userId`
|
|
408
|
+
* const userWorkspaceLayoutWithUserIdOnly = await prisma.userWorkspaceLayout.createManyAndReturn({
|
|
409
|
+
* select: { userId: true },
|
|
410
|
+
* data: [
|
|
411
|
+
* // ... provide data here
|
|
412
|
+
* ]
|
|
413
|
+
* })
|
|
414
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
415
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
416
|
+
*
|
|
417
|
+
*/
|
|
418
|
+
createManyAndReturn<T extends UserWorkspaceLayoutCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, UserWorkspaceLayoutCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserWorkspaceLayoutPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* Delete a UserWorkspaceLayout.
|
|
422
|
+
* @param {UserWorkspaceLayoutDeleteArgs} args - Arguments to delete one UserWorkspaceLayout.
|
|
423
|
+
* @example
|
|
424
|
+
* // Delete one UserWorkspaceLayout
|
|
425
|
+
* const UserWorkspaceLayout = await prisma.userWorkspaceLayout.delete({
|
|
426
|
+
* where: {
|
|
427
|
+
* // ... filter to delete one UserWorkspaceLayout
|
|
428
|
+
* }
|
|
429
|
+
* })
|
|
430
|
+
*
|
|
431
|
+
*/
|
|
432
|
+
delete<T extends UserWorkspaceLayoutDeleteArgs>(args: Prisma.SelectSubset<T, UserWorkspaceLayoutDeleteArgs<ExtArgs>>): Prisma.Prisma__UserWorkspaceLayoutClient<runtime.Types.Result.GetResult<Prisma.$UserWorkspaceLayoutPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
433
|
+
|
|
434
|
+
/**
|
|
435
|
+
* Update one UserWorkspaceLayout.
|
|
436
|
+
* @param {UserWorkspaceLayoutUpdateArgs} args - Arguments to update one UserWorkspaceLayout.
|
|
437
|
+
* @example
|
|
438
|
+
* // Update one UserWorkspaceLayout
|
|
439
|
+
* const userWorkspaceLayout = await prisma.userWorkspaceLayout.update({
|
|
440
|
+
* where: {
|
|
441
|
+
* // ... provide filter here
|
|
442
|
+
* },
|
|
443
|
+
* data: {
|
|
444
|
+
* // ... provide data here
|
|
445
|
+
* }
|
|
446
|
+
* })
|
|
447
|
+
*
|
|
448
|
+
*/
|
|
449
|
+
update<T extends UserWorkspaceLayoutUpdateArgs>(args: Prisma.SelectSubset<T, UserWorkspaceLayoutUpdateArgs<ExtArgs>>): Prisma.Prisma__UserWorkspaceLayoutClient<runtime.Types.Result.GetResult<Prisma.$UserWorkspaceLayoutPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
450
|
+
|
|
451
|
+
/**
|
|
452
|
+
* Delete zero or more UserWorkspaceLayouts.
|
|
453
|
+
* @param {UserWorkspaceLayoutDeleteManyArgs} args - Arguments to filter UserWorkspaceLayouts to delete.
|
|
454
|
+
* @example
|
|
455
|
+
* // Delete a few UserWorkspaceLayouts
|
|
456
|
+
* const { count } = await prisma.userWorkspaceLayout.deleteMany({
|
|
457
|
+
* where: {
|
|
458
|
+
* // ... provide filter here
|
|
459
|
+
* }
|
|
460
|
+
* })
|
|
461
|
+
*
|
|
462
|
+
*/
|
|
463
|
+
deleteMany<T extends UserWorkspaceLayoutDeleteManyArgs>(args?: Prisma.SelectSubset<T, UserWorkspaceLayoutDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
464
|
+
|
|
465
|
+
/**
|
|
466
|
+
* Update zero or more UserWorkspaceLayouts.
|
|
467
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
468
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
469
|
+
* @param {UserWorkspaceLayoutUpdateManyArgs} args - Arguments to update one or more rows.
|
|
470
|
+
* @example
|
|
471
|
+
* // Update many UserWorkspaceLayouts
|
|
472
|
+
* const userWorkspaceLayout = await prisma.userWorkspaceLayout.updateMany({
|
|
473
|
+
* where: {
|
|
474
|
+
* // ... provide filter here
|
|
475
|
+
* },
|
|
476
|
+
* data: {
|
|
477
|
+
* // ... provide data here
|
|
478
|
+
* }
|
|
479
|
+
* })
|
|
480
|
+
*
|
|
481
|
+
*/
|
|
482
|
+
updateMany<T extends UserWorkspaceLayoutUpdateManyArgs>(args: Prisma.SelectSubset<T, UserWorkspaceLayoutUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* Update zero or more UserWorkspaceLayouts and returns the data updated in the database.
|
|
486
|
+
* @param {UserWorkspaceLayoutUpdateManyAndReturnArgs} args - Arguments to update many UserWorkspaceLayouts.
|
|
487
|
+
* @example
|
|
488
|
+
* // Update many UserWorkspaceLayouts
|
|
489
|
+
* const userWorkspaceLayout = await prisma.userWorkspaceLayout.updateManyAndReturn({
|
|
490
|
+
* where: {
|
|
491
|
+
* // ... provide filter here
|
|
492
|
+
* },
|
|
493
|
+
* data: [
|
|
494
|
+
* // ... provide data here
|
|
495
|
+
* ]
|
|
496
|
+
* })
|
|
497
|
+
*
|
|
498
|
+
* // Update zero or more UserWorkspaceLayouts and only return the `userId`
|
|
499
|
+
* const userWorkspaceLayoutWithUserIdOnly = await prisma.userWorkspaceLayout.updateManyAndReturn({
|
|
500
|
+
* select: { userId: true },
|
|
501
|
+
* where: {
|
|
502
|
+
* // ... provide filter here
|
|
503
|
+
* },
|
|
504
|
+
* data: [
|
|
505
|
+
* // ... provide data here
|
|
506
|
+
* ]
|
|
507
|
+
* })
|
|
508
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
509
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
510
|
+
*
|
|
511
|
+
*/
|
|
512
|
+
updateManyAndReturn<T extends UserWorkspaceLayoutUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, UserWorkspaceLayoutUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserWorkspaceLayoutPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
513
|
+
|
|
514
|
+
/**
|
|
515
|
+
* Create or update one UserWorkspaceLayout.
|
|
516
|
+
* @param {UserWorkspaceLayoutUpsertArgs} args - Arguments to update or create a UserWorkspaceLayout.
|
|
517
|
+
* @example
|
|
518
|
+
* // Update or create a UserWorkspaceLayout
|
|
519
|
+
* const userWorkspaceLayout = await prisma.userWorkspaceLayout.upsert({
|
|
520
|
+
* create: {
|
|
521
|
+
* // ... data to create a UserWorkspaceLayout
|
|
522
|
+
* },
|
|
523
|
+
* update: {
|
|
524
|
+
* // ... in case it already exists, update
|
|
525
|
+
* },
|
|
526
|
+
* where: {
|
|
527
|
+
* // ... the filter for the UserWorkspaceLayout we want to update
|
|
528
|
+
* }
|
|
529
|
+
* })
|
|
530
|
+
*/
|
|
531
|
+
upsert<T extends UserWorkspaceLayoutUpsertArgs>(args: Prisma.SelectSubset<T, UserWorkspaceLayoutUpsertArgs<ExtArgs>>): Prisma.Prisma__UserWorkspaceLayoutClient<runtime.Types.Result.GetResult<Prisma.$UserWorkspaceLayoutPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+
/**
|
|
535
|
+
* Count the number of UserWorkspaceLayouts.
|
|
536
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
537
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
538
|
+
* @param {UserWorkspaceLayoutCountArgs} args - Arguments to filter UserWorkspaceLayouts to count.
|
|
539
|
+
* @example
|
|
540
|
+
* // Count the number of UserWorkspaceLayouts
|
|
541
|
+
* const count = await prisma.userWorkspaceLayout.count({
|
|
542
|
+
* where: {
|
|
543
|
+
* // ... the filter for the UserWorkspaceLayouts we want to count
|
|
544
|
+
* }
|
|
545
|
+
* })
|
|
546
|
+
**/
|
|
547
|
+
count<T extends UserWorkspaceLayoutCountArgs>(
|
|
548
|
+
args?: Prisma.Subset<T, UserWorkspaceLayoutCountArgs>,
|
|
549
|
+
): Prisma.PrismaPromise<
|
|
550
|
+
T extends runtime.Types.Utils.Record<'select', any>
|
|
551
|
+
? T['select'] extends true
|
|
552
|
+
? number
|
|
553
|
+
: Prisma.GetScalarType<T['select'], UserWorkspaceLayoutCountAggregateOutputType>
|
|
554
|
+
: number
|
|
555
|
+
>
|
|
556
|
+
|
|
557
|
+
/**
|
|
558
|
+
* Allows you to perform aggregations operations on a UserWorkspaceLayout.
|
|
559
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
560
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
561
|
+
* @param {UserWorkspaceLayoutAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
562
|
+
* @example
|
|
563
|
+
* // Ordered by age ascending
|
|
564
|
+
* // Where email contains prisma.io
|
|
565
|
+
* // Limited to the 10 users
|
|
566
|
+
* const aggregations = await prisma.user.aggregate({
|
|
567
|
+
* _avg: {
|
|
568
|
+
* age: true,
|
|
569
|
+
* },
|
|
570
|
+
* where: {
|
|
571
|
+
* email: {
|
|
572
|
+
* contains: "prisma.io",
|
|
573
|
+
* },
|
|
574
|
+
* },
|
|
575
|
+
* orderBy: {
|
|
576
|
+
* age: "asc",
|
|
577
|
+
* },
|
|
578
|
+
* take: 10,
|
|
579
|
+
* })
|
|
580
|
+
**/
|
|
581
|
+
aggregate<T extends UserWorkspaceLayoutAggregateArgs>(args: Prisma.Subset<T, UserWorkspaceLayoutAggregateArgs>): Prisma.PrismaPromise<GetUserWorkspaceLayoutAggregateType<T>>
|
|
582
|
+
|
|
583
|
+
/**
|
|
584
|
+
* Group by UserWorkspaceLayout.
|
|
585
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
586
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
587
|
+
* @param {UserWorkspaceLayoutGroupByArgs} args - Group by arguments.
|
|
588
|
+
* @example
|
|
589
|
+
* // Group by city, order by createdAt, get count
|
|
590
|
+
* const result = await prisma.user.groupBy({
|
|
591
|
+
* by: ['city', 'createdAt'],
|
|
592
|
+
* orderBy: {
|
|
593
|
+
* createdAt: true
|
|
594
|
+
* },
|
|
595
|
+
* _count: {
|
|
596
|
+
* _all: true
|
|
597
|
+
* },
|
|
598
|
+
* })
|
|
599
|
+
*
|
|
600
|
+
**/
|
|
601
|
+
groupBy<
|
|
602
|
+
T extends UserWorkspaceLayoutGroupByArgs,
|
|
603
|
+
HasSelectOrTake extends Prisma.Or<
|
|
604
|
+
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
605
|
+
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
606
|
+
>,
|
|
607
|
+
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
608
|
+
? { orderBy: UserWorkspaceLayoutGroupByArgs['orderBy'] }
|
|
609
|
+
: { orderBy?: UserWorkspaceLayoutGroupByArgs['orderBy'] },
|
|
610
|
+
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
611
|
+
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
612
|
+
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
613
|
+
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
614
|
+
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
615
|
+
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
616
|
+
InputErrors extends ByEmpty extends Prisma.True
|
|
617
|
+
? `Error: "by" must not be empty.`
|
|
618
|
+
: HavingValid extends Prisma.False
|
|
619
|
+
? {
|
|
620
|
+
[P in HavingFields]: P extends ByFields
|
|
621
|
+
? never
|
|
622
|
+
: P extends string
|
|
623
|
+
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
624
|
+
: [
|
|
625
|
+
Error,
|
|
626
|
+
'Field ',
|
|
627
|
+
P,
|
|
628
|
+
` in "having" needs to be provided in "by"`,
|
|
629
|
+
]
|
|
630
|
+
}[HavingFields]
|
|
631
|
+
: 'take' extends Prisma.Keys<T>
|
|
632
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
633
|
+
? ByValid extends Prisma.True
|
|
634
|
+
? {}
|
|
635
|
+
: {
|
|
636
|
+
[P in OrderFields]: P extends ByFields
|
|
637
|
+
? never
|
|
638
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
639
|
+
}[OrderFields]
|
|
640
|
+
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
641
|
+
: 'skip' extends Prisma.Keys<T>
|
|
642
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
643
|
+
? ByValid extends Prisma.True
|
|
644
|
+
? {}
|
|
645
|
+
: {
|
|
646
|
+
[P in OrderFields]: P extends ByFields
|
|
647
|
+
? never
|
|
648
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
649
|
+
}[OrderFields]
|
|
650
|
+
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
651
|
+
: ByValid extends Prisma.True
|
|
652
|
+
? {}
|
|
653
|
+
: {
|
|
654
|
+
[P in OrderFields]: P extends ByFields
|
|
655
|
+
? never
|
|
656
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
657
|
+
}[OrderFields]
|
|
658
|
+
>(args: Prisma.SubsetIntersection<T, UserWorkspaceLayoutGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUserWorkspaceLayoutGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
659
|
+
/**
|
|
660
|
+
* Fields of the UserWorkspaceLayout model
|
|
661
|
+
*/
|
|
662
|
+
readonly fields: UserWorkspaceLayoutFieldRefs;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
/**
|
|
666
|
+
* The delegate class that acts as a "Promise-like" for UserWorkspaceLayout.
|
|
667
|
+
* Why is this prefixed with `Prisma__`?
|
|
668
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
669
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
670
|
+
*/
|
|
671
|
+
export interface Prisma__UserWorkspaceLayoutClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
672
|
+
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
673
|
+
/**
|
|
674
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
675
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
676
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
677
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
678
|
+
*/
|
|
679
|
+
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>
|
|
680
|
+
/**
|
|
681
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
682
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
683
|
+
* @returns A Promise for the completion of the callback.
|
|
684
|
+
*/
|
|
685
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
686
|
+
/**
|
|
687
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
688
|
+
* resolved value cannot be modified from the callback.
|
|
689
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
690
|
+
* @returns A Promise for the completion of the callback.
|
|
691
|
+
*/
|
|
692
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
|
|
696
|
+
|
|
697
|
+
|
|
698
|
+
/**
|
|
699
|
+
* Fields of the UserWorkspaceLayout model
|
|
700
|
+
*/
|
|
701
|
+
export interface UserWorkspaceLayoutFieldRefs {
|
|
702
|
+
readonly userId: Prisma.FieldRef<"UserWorkspaceLayout", 'String'>
|
|
703
|
+
readonly layout: Prisma.FieldRef<"UserWorkspaceLayout", 'Json'>
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
|
|
707
|
+
// Custom InputTypes
|
|
708
|
+
/**
|
|
709
|
+
* UserWorkspaceLayout findUnique
|
|
710
|
+
*/
|
|
711
|
+
export type UserWorkspaceLayoutFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
712
|
+
/**
|
|
713
|
+
* Select specific fields to fetch from the UserWorkspaceLayout
|
|
714
|
+
*/
|
|
715
|
+
select?: Prisma.UserWorkspaceLayoutSelect<ExtArgs> | null
|
|
716
|
+
/**
|
|
717
|
+
* Omit specific fields from the UserWorkspaceLayout
|
|
718
|
+
*/
|
|
719
|
+
omit?: Prisma.UserWorkspaceLayoutOmit<ExtArgs> | null
|
|
720
|
+
/**
|
|
721
|
+
* Filter, which UserWorkspaceLayout to fetch.
|
|
722
|
+
*/
|
|
723
|
+
where: Prisma.UserWorkspaceLayoutWhereUniqueInput
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
/**
|
|
727
|
+
* UserWorkspaceLayout findUniqueOrThrow
|
|
728
|
+
*/
|
|
729
|
+
export type UserWorkspaceLayoutFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
730
|
+
/**
|
|
731
|
+
* Select specific fields to fetch from the UserWorkspaceLayout
|
|
732
|
+
*/
|
|
733
|
+
select?: Prisma.UserWorkspaceLayoutSelect<ExtArgs> | null
|
|
734
|
+
/**
|
|
735
|
+
* Omit specific fields from the UserWorkspaceLayout
|
|
736
|
+
*/
|
|
737
|
+
omit?: Prisma.UserWorkspaceLayoutOmit<ExtArgs> | null
|
|
738
|
+
/**
|
|
739
|
+
* Filter, which UserWorkspaceLayout to fetch.
|
|
740
|
+
*/
|
|
741
|
+
where: Prisma.UserWorkspaceLayoutWhereUniqueInput
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
/**
|
|
745
|
+
* UserWorkspaceLayout findFirst
|
|
746
|
+
*/
|
|
747
|
+
export type UserWorkspaceLayoutFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
748
|
+
/**
|
|
749
|
+
* Select specific fields to fetch from the UserWorkspaceLayout
|
|
750
|
+
*/
|
|
751
|
+
select?: Prisma.UserWorkspaceLayoutSelect<ExtArgs> | null
|
|
752
|
+
/**
|
|
753
|
+
* Omit specific fields from the UserWorkspaceLayout
|
|
754
|
+
*/
|
|
755
|
+
omit?: Prisma.UserWorkspaceLayoutOmit<ExtArgs> | null
|
|
756
|
+
/**
|
|
757
|
+
* Filter, which UserWorkspaceLayout to fetch.
|
|
758
|
+
*/
|
|
759
|
+
where?: Prisma.UserWorkspaceLayoutWhereInput
|
|
760
|
+
/**
|
|
761
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
762
|
+
*
|
|
763
|
+
* Determine the order of UserWorkspaceLayouts to fetch.
|
|
764
|
+
*/
|
|
765
|
+
orderBy?: Prisma.UserWorkspaceLayoutOrderByWithRelationInput | Prisma.UserWorkspaceLayoutOrderByWithRelationInput[]
|
|
766
|
+
/**
|
|
767
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
768
|
+
*
|
|
769
|
+
* Sets the position for searching for UserWorkspaceLayouts.
|
|
770
|
+
*/
|
|
771
|
+
cursor?: Prisma.UserWorkspaceLayoutWhereUniqueInput
|
|
772
|
+
/**
|
|
773
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
774
|
+
*
|
|
775
|
+
* Take `±n` UserWorkspaceLayouts from the position of the cursor.
|
|
776
|
+
*/
|
|
777
|
+
take?: number
|
|
778
|
+
/**
|
|
779
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
780
|
+
*
|
|
781
|
+
* Skip the first `n` UserWorkspaceLayouts.
|
|
782
|
+
*/
|
|
783
|
+
skip?: number
|
|
784
|
+
/**
|
|
785
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
786
|
+
*
|
|
787
|
+
* Filter by unique combinations of UserWorkspaceLayouts.
|
|
788
|
+
*/
|
|
789
|
+
distinct?: Prisma.UserWorkspaceLayoutScalarFieldEnum | Prisma.UserWorkspaceLayoutScalarFieldEnum[]
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
/**
|
|
793
|
+
* UserWorkspaceLayout findFirstOrThrow
|
|
794
|
+
*/
|
|
795
|
+
export type UserWorkspaceLayoutFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
796
|
+
/**
|
|
797
|
+
* Select specific fields to fetch from the UserWorkspaceLayout
|
|
798
|
+
*/
|
|
799
|
+
select?: Prisma.UserWorkspaceLayoutSelect<ExtArgs> | null
|
|
800
|
+
/**
|
|
801
|
+
* Omit specific fields from the UserWorkspaceLayout
|
|
802
|
+
*/
|
|
803
|
+
omit?: Prisma.UserWorkspaceLayoutOmit<ExtArgs> | null
|
|
804
|
+
/**
|
|
805
|
+
* Filter, which UserWorkspaceLayout to fetch.
|
|
806
|
+
*/
|
|
807
|
+
where?: Prisma.UserWorkspaceLayoutWhereInput
|
|
808
|
+
/**
|
|
809
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
810
|
+
*
|
|
811
|
+
* Determine the order of UserWorkspaceLayouts to fetch.
|
|
812
|
+
*/
|
|
813
|
+
orderBy?: Prisma.UserWorkspaceLayoutOrderByWithRelationInput | Prisma.UserWorkspaceLayoutOrderByWithRelationInput[]
|
|
814
|
+
/**
|
|
815
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
816
|
+
*
|
|
817
|
+
* Sets the position for searching for UserWorkspaceLayouts.
|
|
818
|
+
*/
|
|
819
|
+
cursor?: Prisma.UserWorkspaceLayoutWhereUniqueInput
|
|
820
|
+
/**
|
|
821
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
822
|
+
*
|
|
823
|
+
* Take `±n` UserWorkspaceLayouts from the position of the cursor.
|
|
824
|
+
*/
|
|
825
|
+
take?: number
|
|
826
|
+
/**
|
|
827
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
828
|
+
*
|
|
829
|
+
* Skip the first `n` UserWorkspaceLayouts.
|
|
830
|
+
*/
|
|
831
|
+
skip?: number
|
|
832
|
+
/**
|
|
833
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
834
|
+
*
|
|
835
|
+
* Filter by unique combinations of UserWorkspaceLayouts.
|
|
836
|
+
*/
|
|
837
|
+
distinct?: Prisma.UserWorkspaceLayoutScalarFieldEnum | Prisma.UserWorkspaceLayoutScalarFieldEnum[]
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
/**
|
|
841
|
+
* UserWorkspaceLayout findMany
|
|
842
|
+
*/
|
|
843
|
+
export type UserWorkspaceLayoutFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
844
|
+
/**
|
|
845
|
+
* Select specific fields to fetch from the UserWorkspaceLayout
|
|
846
|
+
*/
|
|
847
|
+
select?: Prisma.UserWorkspaceLayoutSelect<ExtArgs> | null
|
|
848
|
+
/**
|
|
849
|
+
* Omit specific fields from the UserWorkspaceLayout
|
|
850
|
+
*/
|
|
851
|
+
omit?: Prisma.UserWorkspaceLayoutOmit<ExtArgs> | null
|
|
852
|
+
/**
|
|
853
|
+
* Filter, which UserWorkspaceLayouts to fetch.
|
|
854
|
+
*/
|
|
855
|
+
where?: Prisma.UserWorkspaceLayoutWhereInput
|
|
856
|
+
/**
|
|
857
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
858
|
+
*
|
|
859
|
+
* Determine the order of UserWorkspaceLayouts to fetch.
|
|
860
|
+
*/
|
|
861
|
+
orderBy?: Prisma.UserWorkspaceLayoutOrderByWithRelationInput | Prisma.UserWorkspaceLayoutOrderByWithRelationInput[]
|
|
862
|
+
/**
|
|
863
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
864
|
+
*
|
|
865
|
+
* Sets the position for listing UserWorkspaceLayouts.
|
|
866
|
+
*/
|
|
867
|
+
cursor?: Prisma.UserWorkspaceLayoutWhereUniqueInput
|
|
868
|
+
/**
|
|
869
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
870
|
+
*
|
|
871
|
+
* Take `±n` UserWorkspaceLayouts from the position of the cursor.
|
|
872
|
+
*/
|
|
873
|
+
take?: number
|
|
874
|
+
/**
|
|
875
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
876
|
+
*
|
|
877
|
+
* Skip the first `n` UserWorkspaceLayouts.
|
|
878
|
+
*/
|
|
879
|
+
skip?: number
|
|
880
|
+
distinct?: Prisma.UserWorkspaceLayoutScalarFieldEnum | Prisma.UserWorkspaceLayoutScalarFieldEnum[]
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
/**
|
|
884
|
+
* UserWorkspaceLayout create
|
|
885
|
+
*/
|
|
886
|
+
export type UserWorkspaceLayoutCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
887
|
+
/**
|
|
888
|
+
* Select specific fields to fetch from the UserWorkspaceLayout
|
|
889
|
+
*/
|
|
890
|
+
select?: Prisma.UserWorkspaceLayoutSelect<ExtArgs> | null
|
|
891
|
+
/**
|
|
892
|
+
* Omit specific fields from the UserWorkspaceLayout
|
|
893
|
+
*/
|
|
894
|
+
omit?: Prisma.UserWorkspaceLayoutOmit<ExtArgs> | null
|
|
895
|
+
/**
|
|
896
|
+
* The data needed to create a UserWorkspaceLayout.
|
|
897
|
+
*/
|
|
898
|
+
data: Prisma.XOR<Prisma.UserWorkspaceLayoutCreateInput, Prisma.UserWorkspaceLayoutUncheckedCreateInput>
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
/**
|
|
902
|
+
* UserWorkspaceLayout createMany
|
|
903
|
+
*/
|
|
904
|
+
export type UserWorkspaceLayoutCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
905
|
+
/**
|
|
906
|
+
* The data used to create many UserWorkspaceLayouts.
|
|
907
|
+
*/
|
|
908
|
+
data: Prisma.UserWorkspaceLayoutCreateManyInput | Prisma.UserWorkspaceLayoutCreateManyInput[]
|
|
909
|
+
skipDuplicates?: boolean
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
/**
|
|
913
|
+
* UserWorkspaceLayout createManyAndReturn
|
|
914
|
+
*/
|
|
915
|
+
export type UserWorkspaceLayoutCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
916
|
+
/**
|
|
917
|
+
* Select specific fields to fetch from the UserWorkspaceLayout
|
|
918
|
+
*/
|
|
919
|
+
select?: Prisma.UserWorkspaceLayoutSelectCreateManyAndReturn<ExtArgs> | null
|
|
920
|
+
/**
|
|
921
|
+
* Omit specific fields from the UserWorkspaceLayout
|
|
922
|
+
*/
|
|
923
|
+
omit?: Prisma.UserWorkspaceLayoutOmit<ExtArgs> | null
|
|
924
|
+
/**
|
|
925
|
+
* The data used to create many UserWorkspaceLayouts.
|
|
926
|
+
*/
|
|
927
|
+
data: Prisma.UserWorkspaceLayoutCreateManyInput | Prisma.UserWorkspaceLayoutCreateManyInput[]
|
|
928
|
+
skipDuplicates?: boolean
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
/**
|
|
932
|
+
* UserWorkspaceLayout update
|
|
933
|
+
*/
|
|
934
|
+
export type UserWorkspaceLayoutUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
935
|
+
/**
|
|
936
|
+
* Select specific fields to fetch from the UserWorkspaceLayout
|
|
937
|
+
*/
|
|
938
|
+
select?: Prisma.UserWorkspaceLayoutSelect<ExtArgs> | null
|
|
939
|
+
/**
|
|
940
|
+
* Omit specific fields from the UserWorkspaceLayout
|
|
941
|
+
*/
|
|
942
|
+
omit?: Prisma.UserWorkspaceLayoutOmit<ExtArgs> | null
|
|
943
|
+
/**
|
|
944
|
+
* The data needed to update a UserWorkspaceLayout.
|
|
945
|
+
*/
|
|
946
|
+
data: Prisma.XOR<Prisma.UserWorkspaceLayoutUpdateInput, Prisma.UserWorkspaceLayoutUncheckedUpdateInput>
|
|
947
|
+
/**
|
|
948
|
+
* Choose, which UserWorkspaceLayout to update.
|
|
949
|
+
*/
|
|
950
|
+
where: Prisma.UserWorkspaceLayoutWhereUniqueInput
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
/**
|
|
954
|
+
* UserWorkspaceLayout updateMany
|
|
955
|
+
*/
|
|
956
|
+
export type UserWorkspaceLayoutUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
957
|
+
/**
|
|
958
|
+
* The data used to update UserWorkspaceLayouts.
|
|
959
|
+
*/
|
|
960
|
+
data: Prisma.XOR<Prisma.UserWorkspaceLayoutUpdateManyMutationInput, Prisma.UserWorkspaceLayoutUncheckedUpdateManyInput>
|
|
961
|
+
/**
|
|
962
|
+
* Filter which UserWorkspaceLayouts to update
|
|
963
|
+
*/
|
|
964
|
+
where?: Prisma.UserWorkspaceLayoutWhereInput
|
|
965
|
+
/**
|
|
966
|
+
* Limit how many UserWorkspaceLayouts to update.
|
|
967
|
+
*/
|
|
968
|
+
limit?: number
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
/**
|
|
972
|
+
* UserWorkspaceLayout updateManyAndReturn
|
|
973
|
+
*/
|
|
974
|
+
export type UserWorkspaceLayoutUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
975
|
+
/**
|
|
976
|
+
* Select specific fields to fetch from the UserWorkspaceLayout
|
|
977
|
+
*/
|
|
978
|
+
select?: Prisma.UserWorkspaceLayoutSelectUpdateManyAndReturn<ExtArgs> | null
|
|
979
|
+
/**
|
|
980
|
+
* Omit specific fields from the UserWorkspaceLayout
|
|
981
|
+
*/
|
|
982
|
+
omit?: Prisma.UserWorkspaceLayoutOmit<ExtArgs> | null
|
|
983
|
+
/**
|
|
984
|
+
* The data used to update UserWorkspaceLayouts.
|
|
985
|
+
*/
|
|
986
|
+
data: Prisma.XOR<Prisma.UserWorkspaceLayoutUpdateManyMutationInput, Prisma.UserWorkspaceLayoutUncheckedUpdateManyInput>
|
|
987
|
+
/**
|
|
988
|
+
* Filter which UserWorkspaceLayouts to update
|
|
989
|
+
*/
|
|
990
|
+
where?: Prisma.UserWorkspaceLayoutWhereInput
|
|
991
|
+
/**
|
|
992
|
+
* Limit how many UserWorkspaceLayouts to update.
|
|
993
|
+
*/
|
|
994
|
+
limit?: number
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
/**
|
|
998
|
+
* UserWorkspaceLayout upsert
|
|
999
|
+
*/
|
|
1000
|
+
export type UserWorkspaceLayoutUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1001
|
+
/**
|
|
1002
|
+
* Select specific fields to fetch from the UserWorkspaceLayout
|
|
1003
|
+
*/
|
|
1004
|
+
select?: Prisma.UserWorkspaceLayoutSelect<ExtArgs> | null
|
|
1005
|
+
/**
|
|
1006
|
+
* Omit specific fields from the UserWorkspaceLayout
|
|
1007
|
+
*/
|
|
1008
|
+
omit?: Prisma.UserWorkspaceLayoutOmit<ExtArgs> | null
|
|
1009
|
+
/**
|
|
1010
|
+
* The filter to search for the UserWorkspaceLayout to update in case it exists.
|
|
1011
|
+
*/
|
|
1012
|
+
where: Prisma.UserWorkspaceLayoutWhereUniqueInput
|
|
1013
|
+
/**
|
|
1014
|
+
* In case the UserWorkspaceLayout found by the `where` argument doesn't exist, create a new UserWorkspaceLayout with this data.
|
|
1015
|
+
*/
|
|
1016
|
+
create: Prisma.XOR<Prisma.UserWorkspaceLayoutCreateInput, Prisma.UserWorkspaceLayoutUncheckedCreateInput>
|
|
1017
|
+
/**
|
|
1018
|
+
* In case the UserWorkspaceLayout was found with the provided `where` argument, update it with this data.
|
|
1019
|
+
*/
|
|
1020
|
+
update: Prisma.XOR<Prisma.UserWorkspaceLayoutUpdateInput, Prisma.UserWorkspaceLayoutUncheckedUpdateInput>
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
/**
|
|
1024
|
+
* UserWorkspaceLayout delete
|
|
1025
|
+
*/
|
|
1026
|
+
export type UserWorkspaceLayoutDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1027
|
+
/**
|
|
1028
|
+
* Select specific fields to fetch from the UserWorkspaceLayout
|
|
1029
|
+
*/
|
|
1030
|
+
select?: Prisma.UserWorkspaceLayoutSelect<ExtArgs> | null
|
|
1031
|
+
/**
|
|
1032
|
+
* Omit specific fields from the UserWorkspaceLayout
|
|
1033
|
+
*/
|
|
1034
|
+
omit?: Prisma.UserWorkspaceLayoutOmit<ExtArgs> | null
|
|
1035
|
+
/**
|
|
1036
|
+
* Filter which UserWorkspaceLayout to delete.
|
|
1037
|
+
*/
|
|
1038
|
+
where: Prisma.UserWorkspaceLayoutWhereUniqueInput
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
/**
|
|
1042
|
+
* UserWorkspaceLayout deleteMany
|
|
1043
|
+
*/
|
|
1044
|
+
export type UserWorkspaceLayoutDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1045
|
+
/**
|
|
1046
|
+
* Filter which UserWorkspaceLayouts to delete
|
|
1047
|
+
*/
|
|
1048
|
+
where?: Prisma.UserWorkspaceLayoutWhereInput
|
|
1049
|
+
/**
|
|
1050
|
+
* Limit how many UserWorkspaceLayouts to delete.
|
|
1051
|
+
*/
|
|
1052
|
+
limit?: number
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
/**
|
|
1056
|
+
* UserWorkspaceLayout without action
|
|
1057
|
+
*/
|
|
1058
|
+
export type UserWorkspaceLayoutDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1059
|
+
/**
|
|
1060
|
+
* Select specific fields to fetch from the UserWorkspaceLayout
|
|
1061
|
+
*/
|
|
1062
|
+
select?: Prisma.UserWorkspaceLayoutSelect<ExtArgs> | null
|
|
1063
|
+
/**
|
|
1064
|
+
* Omit specific fields from the UserWorkspaceLayout
|
|
1065
|
+
*/
|
|
1066
|
+
omit?: Prisma.UserWorkspaceLayoutOmit<ExtArgs> | null
|
|
1067
|
+
}
|