@igstack/app-catalog-backend-core 0.3.1-alpha-20260403020019 → 0.3.1-alpha-20260405015231

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.
Files changed (83) hide show
  1. package/dist/db/syncAppCatalog.d.mts +11 -1
  2. package/dist/db/syncAppCatalog.d.mts.map +1 -1
  3. package/dist/db/syncAppCatalog.mjs +54 -2
  4. package/dist/db/syncAppCatalog.mjs.map +1 -1
  5. package/dist/db/tableSyncMagazine.d.mts +18 -0
  6. package/dist/db/tableSyncMagazine.d.mts.map +1 -1
  7. package/dist/db/tableSyncMagazine.mjs +18 -0
  8. package/dist/db/tableSyncMagazine.mjs.map +1 -1
  9. package/dist/generated/prisma/client.mjs.map +1 -1
  10. package/dist/generated/prisma/commonInputTypes.d.mts +50 -50
  11. package/dist/generated/prisma/commonInputTypes.d.mts.map +1 -1
  12. package/dist/generated/prisma/enums.d.mts +2 -0
  13. package/dist/generated/prisma/enums.d.mts.map +1 -1
  14. package/dist/generated/prisma/internal/class.d.mts +48 -0
  15. package/dist/generated/prisma/internal/class.d.mts.map +1 -1
  16. package/dist/generated/prisma/internal/class.mjs +4 -4
  17. package/dist/generated/prisma/internal/class.mjs.map +1 -1
  18. package/dist/generated/prisma/internal/prismaNamespace.d.mts +362 -12
  19. package/dist/generated/prisma/internal/prismaNamespace.d.mts.map +1 -1
  20. package/dist/generated/prisma/models/DbAppForCatalog.d.mts +198 -3
  21. package/dist/generated/prisma/models/DbAppForCatalog.d.mts.map +1 -1
  22. package/dist/generated/prisma/models/DbAsset.d.mts +2 -8
  23. package/dist/generated/prisma/models/DbAsset.d.mts.map +1 -1
  24. package/dist/generated/prisma/models/DbGroup.d.mts +1124 -0
  25. package/dist/generated/prisma/models/DbGroup.d.mts.map +1 -0
  26. package/dist/generated/prisma/models/DbGroupMembership.d.mts +1199 -0
  27. package/dist/generated/prisma/models/DbGroupMembership.d.mts.map +1 -0
  28. package/dist/generated/prisma/models/DbPerson.d.mts +1155 -0
  29. package/dist/generated/prisma/models/DbPerson.d.mts.map +1 -0
  30. package/dist/generated/prisma/models/DbSubResource.d.mts +1468 -0
  31. package/dist/generated/prisma/models/DbSubResource.d.mts.map +1 -0
  32. package/dist/generated/prisma/models/SourceReference.d.mts +1 -1
  33. package/dist/generated/prisma/models.d.mts +6 -2
  34. package/dist/index.d.mts +5 -3
  35. package/dist/middleware/featureRegistry.mjs +5 -1
  36. package/dist/middleware/featureRegistry.mjs.map +1 -1
  37. package/dist/modules/appCatalog/checkLinks.d.mts.map +1 -1
  38. package/dist/modules/appCatalog/checkLinks.mjs +31 -2
  39. package/dist/modules/appCatalog/checkLinks.mjs.map +1 -1
  40. package/dist/modules/appCatalog/service.mjs +52 -5
  41. package/dist/modules/appCatalog/service.mjs.map +1 -1
  42. package/dist/modules/auth/registerAuthRoutes.mjs +5 -1
  43. package/dist/modules/auth/registerAuthRoutes.mjs.map +1 -1
  44. package/dist/modules/lighthouseKeeper/tools.d.mts +1 -1
  45. package/dist/modules/lighthouseKeeper/tools.mjs +1 -1
  46. package/dist/modules/lighthouseKeeper/tools.mjs.map +1 -1
  47. package/dist/types/common/appCatalogTypes.d.mts +19 -1
  48. package/dist/types/common/appCatalogTypes.d.mts.map +1 -1
  49. package/dist/types/common/approvalMethodTypes.d.mts +52 -36
  50. package/dist/types/common/approvalMethodTypes.d.mts.map +1 -1
  51. package/dist/types/common/personGroupTypes.d.mts +22 -0
  52. package/dist/types/common/personGroupTypes.d.mts.map +1 -0
  53. package/dist/types/common/subResourceTypes.d.mts +24 -0
  54. package/dist/types/common/subResourceTypes.d.mts.map +1 -0
  55. package/package.json +3 -3
  56. package/prisma/schema.prisma +59 -0
  57. package/src/db/syncAppCatalog.ts +73 -1
  58. package/src/db/tableSyncMagazine.ts +18 -0
  59. package/src/generated/prisma/browser.ts +20 -0
  60. package/src/generated/prisma/client.ts +20 -0
  61. package/src/generated/prisma/commonInputTypes.ts +54 -54
  62. package/src/generated/prisma/enums.ts +3 -1
  63. package/src/generated/prisma/internal/class.ts +44 -4
  64. package/src/generated/prisma/internal/prismaNamespace.ts +373 -15
  65. package/src/generated/prisma/internal/prismaNamespaceBrowser.ts +58 -0
  66. package/src/generated/prisma/models/DbAppForCatalog.ts +208 -1
  67. package/src/generated/prisma/models/DbAsset.ts +0 -8
  68. package/src/generated/prisma/models/DbGroup.ts +1324 -0
  69. package/src/generated/prisma/models/DbGroupMembership.ts +1432 -0
  70. package/src/generated/prisma/models/DbPerson.ts +1356 -0
  71. package/src/generated/prisma/models/DbSubResource.ts +1692 -0
  72. package/src/generated/prisma/models.ts +4 -0
  73. package/src/middleware/featureRegistry.ts +4 -1
  74. package/src/modules/appCatalog/checkLinks.ts +58 -5
  75. package/src/modules/appCatalog/service.ts +80 -6
  76. package/src/modules/auth/registerAuthRoutes.ts +4 -1
  77. package/src/modules/lighthouseKeeper/tools.ts +1 -1
  78. package/src/prisma-json-types.d.ts +6 -0
  79. package/src/types/common/appCatalogTypes.ts +23 -0
  80. package/src/types/common/approvalMethodTypes.ts +59 -57
  81. package/src/types/common/personGroupTypes.ts +20 -0
  82. package/src/types/common/subResourceTypes.ts +20 -0
  83. package/src/types/index.ts +2 -0
@@ -0,0 +1,1356 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
+ /* eslint-disable */
4
+ // biome-ignore-all lint: generated file
5
+ // @ts-nocheck
6
+ /*
7
+ * This file exports the `DbPerson` model and its related types.
8
+ *
9
+ * 🟢 You can import this file directly.
10
+ */
11
+
12
+ import type * as PJTG from '../pjtg';
13
+ import type * as runtime from "@prisma/client/runtime/client"
14
+ import type * as $Enums from "../enums"
15
+ import type * as Prisma from "../internal/prismaNamespace"
16
+
17
+ /**
18
+ * Model DbPerson
19
+ *
20
+ */
21
+ export type DbPersonModel = runtime.Types.Result.DefaultSelection<Prisma.$DbPersonPayload>
22
+
23
+ export type AggregateDbPerson = {
24
+ _count: DbPersonCountAggregateOutputType | null
25
+ _min: DbPersonMinAggregateOutputType | null
26
+ _max: DbPersonMaxAggregateOutputType | null
27
+ }
28
+
29
+ export type DbPersonMinAggregateOutputType = {
30
+ slug: string | null
31
+ firstName: string | null
32
+ lastName: string | null
33
+ email: string | null
34
+ createdAt: Date | null
35
+ updatedAt: Date | null
36
+ }
37
+
38
+ export type DbPersonMaxAggregateOutputType = {
39
+ slug: string | null
40
+ firstName: string | null
41
+ lastName: string | null
42
+ email: string | null
43
+ createdAt: Date | null
44
+ updatedAt: Date | null
45
+ }
46
+
47
+ export type DbPersonCountAggregateOutputType = {
48
+ slug: number
49
+ firstName: number
50
+ lastName: number
51
+ email: number
52
+ createdAt: number
53
+ updatedAt: number
54
+ _all: number
55
+ }
56
+
57
+
58
+ export type DbPersonMinAggregateInputType = {
59
+ slug?: true
60
+ firstName?: true
61
+ lastName?: true
62
+ email?: true
63
+ createdAt?: true
64
+ updatedAt?: true
65
+ }
66
+
67
+ export type DbPersonMaxAggregateInputType = {
68
+ slug?: true
69
+ firstName?: true
70
+ lastName?: true
71
+ email?: true
72
+ createdAt?: true
73
+ updatedAt?: true
74
+ }
75
+
76
+ export type DbPersonCountAggregateInputType = {
77
+ slug?: true
78
+ firstName?: true
79
+ lastName?: true
80
+ email?: true
81
+ createdAt?: true
82
+ updatedAt?: true
83
+ _all?: true
84
+ }
85
+
86
+ export type DbPersonAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
87
+ /**
88
+ * Filter which DbPerson to aggregate.
89
+ */
90
+ where?: Prisma.DbPersonWhereInput
91
+ /**
92
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
93
+ *
94
+ * Determine the order of DbPeople to fetch.
95
+ */
96
+ orderBy?: Prisma.DbPersonOrderByWithRelationInput | Prisma.DbPersonOrderByWithRelationInput[]
97
+ /**
98
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
99
+ *
100
+ * Sets the start position
101
+ */
102
+ cursor?: Prisma.DbPersonWhereUniqueInput
103
+ /**
104
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
105
+ *
106
+ * Take `±n` DbPeople from the position of the cursor.
107
+ */
108
+ take?: number
109
+ /**
110
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
111
+ *
112
+ * Skip the first `n` DbPeople.
113
+ */
114
+ skip?: number
115
+ /**
116
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
117
+ *
118
+ * Count returned DbPeople
119
+ **/
120
+ _count?: true | DbPersonCountAggregateInputType
121
+ /**
122
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
123
+ *
124
+ * Select which fields to find the minimum value
125
+ **/
126
+ _min?: DbPersonMinAggregateInputType
127
+ /**
128
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
129
+ *
130
+ * Select which fields to find the maximum value
131
+ **/
132
+ _max?: DbPersonMaxAggregateInputType
133
+ }
134
+
135
+ export type GetDbPersonAggregateType<T extends DbPersonAggregateArgs> = {
136
+ [P in keyof T & keyof AggregateDbPerson]: P extends '_count' | 'count'
137
+ ? T[P] extends true
138
+ ? number
139
+ : Prisma.GetScalarType<T[P], AggregateDbPerson[P]>
140
+ : Prisma.GetScalarType<T[P], AggregateDbPerson[P]>
141
+ }
142
+
143
+
144
+
145
+
146
+ export type DbPersonGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
147
+ where?: Prisma.DbPersonWhereInput
148
+ orderBy?: Prisma.DbPersonOrderByWithAggregationInput | Prisma.DbPersonOrderByWithAggregationInput[]
149
+ by: Prisma.DbPersonScalarFieldEnum[] | Prisma.DbPersonScalarFieldEnum
150
+ having?: Prisma.DbPersonScalarWhereWithAggregatesInput
151
+ take?: number
152
+ skip?: number
153
+ _count?: DbPersonCountAggregateInputType | true
154
+ _min?: DbPersonMinAggregateInputType
155
+ _max?: DbPersonMaxAggregateInputType
156
+ }
157
+
158
+ export type DbPersonGroupByOutputType = {
159
+ slug: string
160
+ firstName: string
161
+ lastName: string
162
+ email: string | null
163
+ createdAt: Date
164
+ updatedAt: Date
165
+ _count: DbPersonCountAggregateOutputType | null
166
+ _min: DbPersonMinAggregateOutputType | null
167
+ _max: DbPersonMaxAggregateOutputType | null
168
+ }
169
+
170
+ type GetDbPersonGroupByPayload<T extends DbPersonGroupByArgs> = Prisma.PrismaPromise<
171
+ Array<
172
+ Prisma.PickEnumerable<DbPersonGroupByOutputType, T['by']> &
173
+ {
174
+ [P in ((keyof T) & (keyof DbPersonGroupByOutputType))]: P extends '_count'
175
+ ? T[P] extends boolean
176
+ ? number
177
+ : Prisma.GetScalarType<T[P], DbPersonGroupByOutputType[P]>
178
+ : Prisma.GetScalarType<T[P], DbPersonGroupByOutputType[P]>
179
+ }
180
+ >
181
+ >
182
+
183
+
184
+
185
+ export type DbPersonWhereInput = {
186
+ AND?: Prisma.DbPersonWhereInput | Prisma.DbPersonWhereInput[]
187
+ OR?: Prisma.DbPersonWhereInput[]
188
+ NOT?: Prisma.DbPersonWhereInput | Prisma.DbPersonWhereInput[]
189
+ slug?: Prisma.StringFilter<"DbPerson"> | string
190
+ firstName?: Prisma.StringFilter<"DbPerson"> | string
191
+ lastName?: Prisma.StringFilter<"DbPerson"> | string
192
+ email?: Prisma.StringNullableFilter<"DbPerson"> | string | null
193
+ createdAt?: Prisma.DateTimeFilter<"DbPerson"> | Date | string
194
+ updatedAt?: Prisma.DateTimeFilter<"DbPerson"> | Date | string
195
+ memberships?: Prisma.DbGroupMembershipListRelationFilter
196
+ }
197
+
198
+ export type DbPersonOrderByWithRelationInput = {
199
+ slug?: Prisma.SortOrder
200
+ firstName?: Prisma.SortOrder
201
+ lastName?: Prisma.SortOrder
202
+ email?: Prisma.SortOrderInput | Prisma.SortOrder
203
+ createdAt?: Prisma.SortOrder
204
+ updatedAt?: Prisma.SortOrder
205
+ memberships?: Prisma.DbGroupMembershipOrderByRelationAggregateInput
206
+ }
207
+
208
+ export type DbPersonWhereUniqueInput = Prisma.AtLeast<{
209
+ slug?: string
210
+ email?: string
211
+ AND?: Prisma.DbPersonWhereInput | Prisma.DbPersonWhereInput[]
212
+ OR?: Prisma.DbPersonWhereInput[]
213
+ NOT?: Prisma.DbPersonWhereInput | Prisma.DbPersonWhereInput[]
214
+ firstName?: Prisma.StringFilter<"DbPerson"> | string
215
+ lastName?: Prisma.StringFilter<"DbPerson"> | string
216
+ createdAt?: Prisma.DateTimeFilter<"DbPerson"> | Date | string
217
+ updatedAt?: Prisma.DateTimeFilter<"DbPerson"> | Date | string
218
+ memberships?: Prisma.DbGroupMembershipListRelationFilter
219
+ }, "slug" | "email">
220
+
221
+ export type DbPersonOrderByWithAggregationInput = {
222
+ slug?: Prisma.SortOrder
223
+ firstName?: Prisma.SortOrder
224
+ lastName?: Prisma.SortOrder
225
+ email?: Prisma.SortOrderInput | Prisma.SortOrder
226
+ createdAt?: Prisma.SortOrder
227
+ updatedAt?: Prisma.SortOrder
228
+ _count?: Prisma.DbPersonCountOrderByAggregateInput
229
+ _max?: Prisma.DbPersonMaxOrderByAggregateInput
230
+ _min?: Prisma.DbPersonMinOrderByAggregateInput
231
+ }
232
+
233
+ export type DbPersonScalarWhereWithAggregatesInput = {
234
+ AND?: Prisma.DbPersonScalarWhereWithAggregatesInput | Prisma.DbPersonScalarWhereWithAggregatesInput[]
235
+ OR?: Prisma.DbPersonScalarWhereWithAggregatesInput[]
236
+ NOT?: Prisma.DbPersonScalarWhereWithAggregatesInput | Prisma.DbPersonScalarWhereWithAggregatesInput[]
237
+ slug?: Prisma.StringWithAggregatesFilter<"DbPerson"> | string
238
+ firstName?: Prisma.StringWithAggregatesFilter<"DbPerson"> | string
239
+ lastName?: Prisma.StringWithAggregatesFilter<"DbPerson"> | string
240
+ email?: Prisma.StringNullableWithAggregatesFilter<"DbPerson"> | string | null
241
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"DbPerson"> | Date | string
242
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"DbPerson"> | Date | string
243
+ }
244
+
245
+ export type DbPersonCreateInput = {
246
+ slug: string
247
+ firstName: string
248
+ lastName: string
249
+ email?: string | null
250
+ createdAt?: Date | string
251
+ updatedAt?: Date | string
252
+ memberships?: Prisma.DbGroupMembershipCreateNestedManyWithoutPersonInput
253
+ }
254
+
255
+ export type DbPersonUncheckedCreateInput = {
256
+ slug: string
257
+ firstName: string
258
+ lastName: string
259
+ email?: string | null
260
+ createdAt?: Date | string
261
+ updatedAt?: Date | string
262
+ memberships?: Prisma.DbGroupMembershipUncheckedCreateNestedManyWithoutPersonInput
263
+ }
264
+
265
+ export type DbPersonUpdateInput = {
266
+ slug?: Prisma.StringFieldUpdateOperationsInput | string
267
+ firstName?: Prisma.StringFieldUpdateOperationsInput | string
268
+ lastName?: Prisma.StringFieldUpdateOperationsInput | string
269
+ email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
270
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
271
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
272
+ memberships?: Prisma.DbGroupMembershipUpdateManyWithoutPersonNestedInput
273
+ }
274
+
275
+ export type DbPersonUncheckedUpdateInput = {
276
+ slug?: Prisma.StringFieldUpdateOperationsInput | string
277
+ firstName?: Prisma.StringFieldUpdateOperationsInput | string
278
+ lastName?: Prisma.StringFieldUpdateOperationsInput | string
279
+ email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
280
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
281
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
282
+ memberships?: Prisma.DbGroupMembershipUncheckedUpdateManyWithoutPersonNestedInput
283
+ }
284
+
285
+ export type DbPersonCreateManyInput = {
286
+ slug: string
287
+ firstName: string
288
+ lastName: string
289
+ email?: string | null
290
+ createdAt?: Date | string
291
+ updatedAt?: Date | string
292
+ }
293
+
294
+ export type DbPersonUpdateManyMutationInput = {
295
+ slug?: Prisma.StringFieldUpdateOperationsInput | string
296
+ firstName?: Prisma.StringFieldUpdateOperationsInput | string
297
+ lastName?: Prisma.StringFieldUpdateOperationsInput | string
298
+ email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
299
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
300
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
301
+ }
302
+
303
+ export type DbPersonUncheckedUpdateManyInput = {
304
+ slug?: Prisma.StringFieldUpdateOperationsInput | string
305
+ firstName?: Prisma.StringFieldUpdateOperationsInput | string
306
+ lastName?: Prisma.StringFieldUpdateOperationsInput | string
307
+ email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
308
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
309
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
310
+ }
311
+
312
+ export type DbPersonCountOrderByAggregateInput = {
313
+ slug?: Prisma.SortOrder
314
+ firstName?: Prisma.SortOrder
315
+ lastName?: Prisma.SortOrder
316
+ email?: Prisma.SortOrder
317
+ createdAt?: Prisma.SortOrder
318
+ updatedAt?: Prisma.SortOrder
319
+ }
320
+
321
+ export type DbPersonMaxOrderByAggregateInput = {
322
+ slug?: Prisma.SortOrder
323
+ firstName?: Prisma.SortOrder
324
+ lastName?: Prisma.SortOrder
325
+ email?: Prisma.SortOrder
326
+ createdAt?: Prisma.SortOrder
327
+ updatedAt?: Prisma.SortOrder
328
+ }
329
+
330
+ export type DbPersonMinOrderByAggregateInput = {
331
+ slug?: Prisma.SortOrder
332
+ firstName?: Prisma.SortOrder
333
+ lastName?: Prisma.SortOrder
334
+ email?: Prisma.SortOrder
335
+ createdAt?: Prisma.SortOrder
336
+ updatedAt?: Prisma.SortOrder
337
+ }
338
+
339
+ export type DbPersonScalarRelationFilter = {
340
+ is?: Prisma.DbPersonWhereInput
341
+ isNot?: Prisma.DbPersonWhereInput
342
+ }
343
+
344
+ export type DbPersonCreateNestedOneWithoutMembershipsInput = {
345
+ create?: Prisma.XOR<Prisma.DbPersonCreateWithoutMembershipsInput, Prisma.DbPersonUncheckedCreateWithoutMembershipsInput>
346
+ connectOrCreate?: Prisma.DbPersonCreateOrConnectWithoutMembershipsInput
347
+ connect?: Prisma.DbPersonWhereUniqueInput
348
+ }
349
+
350
+ export type DbPersonUpdateOneRequiredWithoutMembershipsNestedInput = {
351
+ create?: Prisma.XOR<Prisma.DbPersonCreateWithoutMembershipsInput, Prisma.DbPersonUncheckedCreateWithoutMembershipsInput>
352
+ connectOrCreate?: Prisma.DbPersonCreateOrConnectWithoutMembershipsInput
353
+ upsert?: Prisma.DbPersonUpsertWithoutMembershipsInput
354
+ connect?: Prisma.DbPersonWhereUniqueInput
355
+ update?: Prisma.XOR<Prisma.XOR<Prisma.DbPersonUpdateToOneWithWhereWithoutMembershipsInput, Prisma.DbPersonUpdateWithoutMembershipsInput>, Prisma.DbPersonUncheckedUpdateWithoutMembershipsInput>
356
+ }
357
+
358
+ export type DbPersonCreateWithoutMembershipsInput = {
359
+ slug: string
360
+ firstName: string
361
+ lastName: string
362
+ email?: string | null
363
+ createdAt?: Date | string
364
+ updatedAt?: Date | string
365
+ }
366
+
367
+ export type DbPersonUncheckedCreateWithoutMembershipsInput = {
368
+ slug: string
369
+ firstName: string
370
+ lastName: string
371
+ email?: string | null
372
+ createdAt?: Date | string
373
+ updatedAt?: Date | string
374
+ }
375
+
376
+ export type DbPersonCreateOrConnectWithoutMembershipsInput = {
377
+ where: Prisma.DbPersonWhereUniqueInput
378
+ create: Prisma.XOR<Prisma.DbPersonCreateWithoutMembershipsInput, Prisma.DbPersonUncheckedCreateWithoutMembershipsInput>
379
+ }
380
+
381
+ export type DbPersonUpsertWithoutMembershipsInput = {
382
+ update: Prisma.XOR<Prisma.DbPersonUpdateWithoutMembershipsInput, Prisma.DbPersonUncheckedUpdateWithoutMembershipsInput>
383
+ create: Prisma.XOR<Prisma.DbPersonCreateWithoutMembershipsInput, Prisma.DbPersonUncheckedCreateWithoutMembershipsInput>
384
+ where?: Prisma.DbPersonWhereInput
385
+ }
386
+
387
+ export type DbPersonUpdateToOneWithWhereWithoutMembershipsInput = {
388
+ where?: Prisma.DbPersonWhereInput
389
+ data: Prisma.XOR<Prisma.DbPersonUpdateWithoutMembershipsInput, Prisma.DbPersonUncheckedUpdateWithoutMembershipsInput>
390
+ }
391
+
392
+ export type DbPersonUpdateWithoutMembershipsInput = {
393
+ slug?: Prisma.StringFieldUpdateOperationsInput | string
394
+ firstName?: Prisma.StringFieldUpdateOperationsInput | string
395
+ lastName?: Prisma.StringFieldUpdateOperationsInput | string
396
+ email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
397
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
398
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
399
+ }
400
+
401
+ export type DbPersonUncheckedUpdateWithoutMembershipsInput = {
402
+ slug?: Prisma.StringFieldUpdateOperationsInput | string
403
+ firstName?: Prisma.StringFieldUpdateOperationsInput | string
404
+ lastName?: Prisma.StringFieldUpdateOperationsInput | string
405
+ email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
406
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
407
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
408
+ }
409
+
410
+
411
+ /**
412
+ * Count Type DbPersonCountOutputType
413
+ */
414
+
415
+ export type DbPersonCountOutputType = {
416
+ memberships: number
417
+ }
418
+
419
+ export type DbPersonCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
420
+ memberships?: boolean | DbPersonCountOutputTypeCountMembershipsArgs
421
+ }
422
+
423
+ /**
424
+ * DbPersonCountOutputType without action
425
+ */
426
+ export type DbPersonCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
427
+ /**
428
+ * Select specific fields to fetch from the DbPersonCountOutputType
429
+ */
430
+ select?: Prisma.DbPersonCountOutputTypeSelect<ExtArgs> | null
431
+ }
432
+
433
+ /**
434
+ * DbPersonCountOutputType without action
435
+ */
436
+ export type DbPersonCountOutputTypeCountMembershipsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
437
+ where?: Prisma.DbGroupMembershipWhereInput
438
+ }
439
+
440
+
441
+ export type DbPersonSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
442
+ slug?: boolean
443
+ firstName?: boolean
444
+ lastName?: boolean
445
+ email?: boolean
446
+ createdAt?: boolean
447
+ updatedAt?: boolean
448
+ memberships?: boolean | Prisma.DbPerson$membershipsArgs<ExtArgs>
449
+ _count?: boolean | Prisma.DbPersonCountOutputTypeDefaultArgs<ExtArgs>
450
+ }, ExtArgs["result"]["dbPerson"]>
451
+
452
+ export type DbPersonSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
453
+ slug?: boolean
454
+ firstName?: boolean
455
+ lastName?: boolean
456
+ email?: boolean
457
+ createdAt?: boolean
458
+ updatedAt?: boolean
459
+ }, ExtArgs["result"]["dbPerson"]>
460
+
461
+ export type DbPersonSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
462
+ slug?: boolean
463
+ firstName?: boolean
464
+ lastName?: boolean
465
+ email?: boolean
466
+ createdAt?: boolean
467
+ updatedAt?: boolean
468
+ }, ExtArgs["result"]["dbPerson"]>
469
+
470
+ export type DbPersonSelectScalar = {
471
+ slug?: boolean
472
+ firstName?: boolean
473
+ lastName?: boolean
474
+ email?: boolean
475
+ createdAt?: boolean
476
+ updatedAt?: boolean
477
+ }
478
+
479
+ export type DbPersonOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"slug" | "firstName" | "lastName" | "email" | "createdAt" | "updatedAt", ExtArgs["result"]["dbPerson"]>
480
+ export type DbPersonInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
481
+ memberships?: boolean | Prisma.DbPerson$membershipsArgs<ExtArgs>
482
+ _count?: boolean | Prisma.DbPersonCountOutputTypeDefaultArgs<ExtArgs>
483
+ }
484
+ export type DbPersonIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
485
+ export type DbPersonIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
486
+
487
+ export type $DbPersonPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
488
+ name: "DbPerson"
489
+ objects: {
490
+ memberships: Prisma.$DbGroupMembershipPayload<ExtArgs>[]
491
+ }
492
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
493
+ slug: string
494
+ firstName: string
495
+ lastName: string
496
+ email: string | null
497
+ createdAt: Date
498
+ updatedAt: Date
499
+ }, ExtArgs["result"]["dbPerson"]>
500
+ composites: {}
501
+ }
502
+
503
+ export type DbPersonGetPayload<S extends boolean | null | undefined | DbPersonDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$DbPersonPayload, S>
504
+
505
+ export type DbPersonCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
506
+ Omit<DbPersonFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
507
+ select?: DbPersonCountAggregateInputType | true
508
+ }
509
+
510
+ export interface DbPersonDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
511
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['DbPerson'], meta: { name: 'DbPerson' } }
512
+ /**
513
+ * Find zero or one DbPerson that matches the filter.
514
+ * @param {DbPersonFindUniqueArgs} args - Arguments to find a DbPerson
515
+ * @example
516
+ * // Get one DbPerson
517
+ * const dbPerson = await prisma.dbPerson.findUnique({
518
+ * where: {
519
+ * // ... provide filter here
520
+ * }
521
+ * })
522
+ */
523
+ findUnique<T extends DbPersonFindUniqueArgs>(args: Prisma.SelectSubset<T, DbPersonFindUniqueArgs<ExtArgs>>): Prisma.Prisma__DbPersonClient<runtime.Types.Result.GetResult<Prisma.$DbPersonPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
524
+
525
+ /**
526
+ * Find one DbPerson that matches the filter or throw an error with `error.code='P2025'`
527
+ * if no matches were found.
528
+ * @param {DbPersonFindUniqueOrThrowArgs} args - Arguments to find a DbPerson
529
+ * @example
530
+ * // Get one DbPerson
531
+ * const dbPerson = await prisma.dbPerson.findUniqueOrThrow({
532
+ * where: {
533
+ * // ... provide filter here
534
+ * }
535
+ * })
536
+ */
537
+ findUniqueOrThrow<T extends DbPersonFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, DbPersonFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__DbPersonClient<runtime.Types.Result.GetResult<Prisma.$DbPersonPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
538
+
539
+ /**
540
+ * Find the first DbPerson that matches the filter.
541
+ * Note, that providing `undefined` is treated as the value not being there.
542
+ * Read more here: https://pris.ly/d/null-undefined
543
+ * @param {DbPersonFindFirstArgs} args - Arguments to find a DbPerson
544
+ * @example
545
+ * // Get one DbPerson
546
+ * const dbPerson = await prisma.dbPerson.findFirst({
547
+ * where: {
548
+ * // ... provide filter here
549
+ * }
550
+ * })
551
+ */
552
+ findFirst<T extends DbPersonFindFirstArgs>(args?: Prisma.SelectSubset<T, DbPersonFindFirstArgs<ExtArgs>>): Prisma.Prisma__DbPersonClient<runtime.Types.Result.GetResult<Prisma.$DbPersonPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
553
+
554
+ /**
555
+ * Find the first DbPerson that matches the filter or
556
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
557
+ * Note, that providing `undefined` is treated as the value not being there.
558
+ * Read more here: https://pris.ly/d/null-undefined
559
+ * @param {DbPersonFindFirstOrThrowArgs} args - Arguments to find a DbPerson
560
+ * @example
561
+ * // Get one DbPerson
562
+ * const dbPerson = await prisma.dbPerson.findFirstOrThrow({
563
+ * where: {
564
+ * // ... provide filter here
565
+ * }
566
+ * })
567
+ */
568
+ findFirstOrThrow<T extends DbPersonFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, DbPersonFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__DbPersonClient<runtime.Types.Result.GetResult<Prisma.$DbPersonPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
569
+
570
+ /**
571
+ * Find zero or more DbPeople that matches the filter.
572
+ * Note, that providing `undefined` is treated as the value not being there.
573
+ * Read more here: https://pris.ly/d/null-undefined
574
+ * @param {DbPersonFindManyArgs} args - Arguments to filter and select certain fields only.
575
+ * @example
576
+ * // Get all DbPeople
577
+ * const dbPeople = await prisma.dbPerson.findMany()
578
+ *
579
+ * // Get first 10 DbPeople
580
+ * const dbPeople = await prisma.dbPerson.findMany({ take: 10 })
581
+ *
582
+ * // Only select the `slug`
583
+ * const dbPersonWithSlugOnly = await prisma.dbPerson.findMany({ select: { slug: true } })
584
+ *
585
+ */
586
+ findMany<T extends DbPersonFindManyArgs>(args?: Prisma.SelectSubset<T, DbPersonFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DbPersonPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
587
+
588
+ /**
589
+ * Create a DbPerson.
590
+ * @param {DbPersonCreateArgs} args - Arguments to create a DbPerson.
591
+ * @example
592
+ * // Create one DbPerson
593
+ * const DbPerson = await prisma.dbPerson.create({
594
+ * data: {
595
+ * // ... data to create a DbPerson
596
+ * }
597
+ * })
598
+ *
599
+ */
600
+ create<T extends DbPersonCreateArgs>(args: Prisma.SelectSubset<T, DbPersonCreateArgs<ExtArgs>>): Prisma.Prisma__DbPersonClient<runtime.Types.Result.GetResult<Prisma.$DbPersonPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
601
+
602
+ /**
603
+ * Create many DbPeople.
604
+ * @param {DbPersonCreateManyArgs} args - Arguments to create many DbPeople.
605
+ * @example
606
+ * // Create many DbPeople
607
+ * const dbPerson = await prisma.dbPerson.createMany({
608
+ * data: [
609
+ * // ... provide data here
610
+ * ]
611
+ * })
612
+ *
613
+ */
614
+ createMany<T extends DbPersonCreateManyArgs>(args?: Prisma.SelectSubset<T, DbPersonCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
615
+
616
+ /**
617
+ * Create many DbPeople and returns the data saved in the database.
618
+ * @param {DbPersonCreateManyAndReturnArgs} args - Arguments to create many DbPeople.
619
+ * @example
620
+ * // Create many DbPeople
621
+ * const dbPerson = await prisma.dbPerson.createManyAndReturn({
622
+ * data: [
623
+ * // ... provide data here
624
+ * ]
625
+ * })
626
+ *
627
+ * // Create many DbPeople and only return the `slug`
628
+ * const dbPersonWithSlugOnly = await prisma.dbPerson.createManyAndReturn({
629
+ * select: { slug: true },
630
+ * data: [
631
+ * // ... provide data here
632
+ * ]
633
+ * })
634
+ * Note, that providing `undefined` is treated as the value not being there.
635
+ * Read more here: https://pris.ly/d/null-undefined
636
+ *
637
+ */
638
+ createManyAndReturn<T extends DbPersonCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, DbPersonCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DbPersonPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
639
+
640
+ /**
641
+ * Delete a DbPerson.
642
+ * @param {DbPersonDeleteArgs} args - Arguments to delete one DbPerson.
643
+ * @example
644
+ * // Delete one DbPerson
645
+ * const DbPerson = await prisma.dbPerson.delete({
646
+ * where: {
647
+ * // ... filter to delete one DbPerson
648
+ * }
649
+ * })
650
+ *
651
+ */
652
+ delete<T extends DbPersonDeleteArgs>(args: Prisma.SelectSubset<T, DbPersonDeleteArgs<ExtArgs>>): Prisma.Prisma__DbPersonClient<runtime.Types.Result.GetResult<Prisma.$DbPersonPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
653
+
654
+ /**
655
+ * Update one DbPerson.
656
+ * @param {DbPersonUpdateArgs} args - Arguments to update one DbPerson.
657
+ * @example
658
+ * // Update one DbPerson
659
+ * const dbPerson = await prisma.dbPerson.update({
660
+ * where: {
661
+ * // ... provide filter here
662
+ * },
663
+ * data: {
664
+ * // ... provide data here
665
+ * }
666
+ * })
667
+ *
668
+ */
669
+ update<T extends DbPersonUpdateArgs>(args: Prisma.SelectSubset<T, DbPersonUpdateArgs<ExtArgs>>): Prisma.Prisma__DbPersonClient<runtime.Types.Result.GetResult<Prisma.$DbPersonPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
670
+
671
+ /**
672
+ * Delete zero or more DbPeople.
673
+ * @param {DbPersonDeleteManyArgs} args - Arguments to filter DbPeople to delete.
674
+ * @example
675
+ * // Delete a few DbPeople
676
+ * const { count } = await prisma.dbPerson.deleteMany({
677
+ * where: {
678
+ * // ... provide filter here
679
+ * }
680
+ * })
681
+ *
682
+ */
683
+ deleteMany<T extends DbPersonDeleteManyArgs>(args?: Prisma.SelectSubset<T, DbPersonDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
684
+
685
+ /**
686
+ * Update zero or more DbPeople.
687
+ * Note, that providing `undefined` is treated as the value not being there.
688
+ * Read more here: https://pris.ly/d/null-undefined
689
+ * @param {DbPersonUpdateManyArgs} args - Arguments to update one or more rows.
690
+ * @example
691
+ * // Update many DbPeople
692
+ * const dbPerson = await prisma.dbPerson.updateMany({
693
+ * where: {
694
+ * // ... provide filter here
695
+ * },
696
+ * data: {
697
+ * // ... provide data here
698
+ * }
699
+ * })
700
+ *
701
+ */
702
+ updateMany<T extends DbPersonUpdateManyArgs>(args: Prisma.SelectSubset<T, DbPersonUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
703
+
704
+ /**
705
+ * Update zero or more DbPeople and returns the data updated in the database.
706
+ * @param {DbPersonUpdateManyAndReturnArgs} args - Arguments to update many DbPeople.
707
+ * @example
708
+ * // Update many DbPeople
709
+ * const dbPerson = await prisma.dbPerson.updateManyAndReturn({
710
+ * where: {
711
+ * // ... provide filter here
712
+ * },
713
+ * data: [
714
+ * // ... provide data here
715
+ * ]
716
+ * })
717
+ *
718
+ * // Update zero or more DbPeople and only return the `slug`
719
+ * const dbPersonWithSlugOnly = await prisma.dbPerson.updateManyAndReturn({
720
+ * select: { slug: true },
721
+ * where: {
722
+ * // ... provide filter here
723
+ * },
724
+ * data: [
725
+ * // ... provide data here
726
+ * ]
727
+ * })
728
+ * Note, that providing `undefined` is treated as the value not being there.
729
+ * Read more here: https://pris.ly/d/null-undefined
730
+ *
731
+ */
732
+ updateManyAndReturn<T extends DbPersonUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, DbPersonUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DbPersonPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
733
+
734
+ /**
735
+ * Create or update one DbPerson.
736
+ * @param {DbPersonUpsertArgs} args - Arguments to update or create a DbPerson.
737
+ * @example
738
+ * // Update or create a DbPerson
739
+ * const dbPerson = await prisma.dbPerson.upsert({
740
+ * create: {
741
+ * // ... data to create a DbPerson
742
+ * },
743
+ * update: {
744
+ * // ... in case it already exists, update
745
+ * },
746
+ * where: {
747
+ * // ... the filter for the DbPerson we want to update
748
+ * }
749
+ * })
750
+ */
751
+ upsert<T extends DbPersonUpsertArgs>(args: Prisma.SelectSubset<T, DbPersonUpsertArgs<ExtArgs>>): Prisma.Prisma__DbPersonClient<runtime.Types.Result.GetResult<Prisma.$DbPersonPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
752
+
753
+
754
+ /**
755
+ * Count the number of DbPeople.
756
+ * Note, that providing `undefined` is treated as the value not being there.
757
+ * Read more here: https://pris.ly/d/null-undefined
758
+ * @param {DbPersonCountArgs} args - Arguments to filter DbPeople to count.
759
+ * @example
760
+ * // Count the number of DbPeople
761
+ * const count = await prisma.dbPerson.count({
762
+ * where: {
763
+ * // ... the filter for the DbPeople we want to count
764
+ * }
765
+ * })
766
+ **/
767
+ count<T extends DbPersonCountArgs>(
768
+ args?: Prisma.Subset<T, DbPersonCountArgs>,
769
+ ): Prisma.PrismaPromise<
770
+ T extends runtime.Types.Utils.Record<'select', any>
771
+ ? T['select'] extends true
772
+ ? number
773
+ : Prisma.GetScalarType<T['select'], DbPersonCountAggregateOutputType>
774
+ : number
775
+ >
776
+
777
+ /**
778
+ * Allows you to perform aggregations operations on a DbPerson.
779
+ * Note, that providing `undefined` is treated as the value not being there.
780
+ * Read more here: https://pris.ly/d/null-undefined
781
+ * @param {DbPersonAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
782
+ * @example
783
+ * // Ordered by age ascending
784
+ * // Where email contains prisma.io
785
+ * // Limited to the 10 users
786
+ * const aggregations = await prisma.user.aggregate({
787
+ * _avg: {
788
+ * age: true,
789
+ * },
790
+ * where: {
791
+ * email: {
792
+ * contains: "prisma.io",
793
+ * },
794
+ * },
795
+ * orderBy: {
796
+ * age: "asc",
797
+ * },
798
+ * take: 10,
799
+ * })
800
+ **/
801
+ aggregate<T extends DbPersonAggregateArgs>(args: Prisma.Subset<T, DbPersonAggregateArgs>): Prisma.PrismaPromise<GetDbPersonAggregateType<T>>
802
+
803
+ /**
804
+ * Group by DbPerson.
805
+ * Note, that providing `undefined` is treated as the value not being there.
806
+ * Read more here: https://pris.ly/d/null-undefined
807
+ * @param {DbPersonGroupByArgs} args - Group by arguments.
808
+ * @example
809
+ * // Group by city, order by createdAt, get count
810
+ * const result = await prisma.user.groupBy({
811
+ * by: ['city', 'createdAt'],
812
+ * orderBy: {
813
+ * createdAt: true
814
+ * },
815
+ * _count: {
816
+ * _all: true
817
+ * },
818
+ * })
819
+ *
820
+ **/
821
+ groupBy<
822
+ T extends DbPersonGroupByArgs,
823
+ HasSelectOrTake extends Prisma.Or<
824
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
825
+ Prisma.Extends<'take', Prisma.Keys<T>>
826
+ >,
827
+ OrderByArg extends Prisma.True extends HasSelectOrTake
828
+ ? { orderBy: DbPersonGroupByArgs['orderBy'] }
829
+ : { orderBy?: DbPersonGroupByArgs['orderBy'] },
830
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
831
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
832
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
833
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
834
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
835
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
836
+ InputErrors extends ByEmpty extends Prisma.True
837
+ ? `Error: "by" must not be empty.`
838
+ : HavingValid extends Prisma.False
839
+ ? {
840
+ [P in HavingFields]: P extends ByFields
841
+ ? never
842
+ : P extends string
843
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
844
+ : [
845
+ Error,
846
+ 'Field ',
847
+ P,
848
+ ` in "having" needs to be provided in "by"`,
849
+ ]
850
+ }[HavingFields]
851
+ : 'take' extends Prisma.Keys<T>
852
+ ? 'orderBy' extends Prisma.Keys<T>
853
+ ? ByValid extends Prisma.True
854
+ ? {}
855
+ : {
856
+ [P in OrderFields]: P extends ByFields
857
+ ? never
858
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
859
+ }[OrderFields]
860
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
861
+ : 'skip' extends Prisma.Keys<T>
862
+ ? 'orderBy' extends Prisma.Keys<T>
863
+ ? ByValid extends Prisma.True
864
+ ? {}
865
+ : {
866
+ [P in OrderFields]: P extends ByFields
867
+ ? never
868
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
869
+ }[OrderFields]
870
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
871
+ : ByValid extends Prisma.True
872
+ ? {}
873
+ : {
874
+ [P in OrderFields]: P extends ByFields
875
+ ? never
876
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
877
+ }[OrderFields]
878
+ >(args: Prisma.SubsetIntersection<T, DbPersonGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetDbPersonGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
879
+ /**
880
+ * Fields of the DbPerson model
881
+ */
882
+ readonly fields: DbPersonFieldRefs;
883
+ }
884
+
885
+ /**
886
+ * The delegate class that acts as a "Promise-like" for DbPerson.
887
+ * Why is this prefixed with `Prisma__`?
888
+ * Because we want to prevent naming conflicts as mentioned in
889
+ * https://github.com/prisma/prisma-client-js/issues/707
890
+ */
891
+ export interface Prisma__DbPersonClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
892
+ readonly [Symbol.toStringTag]: "PrismaPromise"
893
+ memberships<T extends Prisma.DbPerson$membershipsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DbPerson$membershipsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DbGroupMembershipPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
894
+ /**
895
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
896
+ * @param onfulfilled The callback to execute when the Promise is resolved.
897
+ * @param onrejected The callback to execute when the Promise is rejected.
898
+ * @returns A Promise for the completion of which ever callback is executed.
899
+ */
900
+ 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>
901
+ /**
902
+ * Attaches a callback for only the rejection of the Promise.
903
+ * @param onrejected The callback to execute when the Promise is rejected.
904
+ * @returns A Promise for the completion of the callback.
905
+ */
906
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
907
+ /**
908
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
909
+ * resolved value cannot be modified from the callback.
910
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
911
+ * @returns A Promise for the completion of the callback.
912
+ */
913
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
914
+ }
915
+
916
+
917
+
918
+
919
+ /**
920
+ * Fields of the DbPerson model
921
+ */
922
+ export interface DbPersonFieldRefs {
923
+ readonly slug: Prisma.FieldRef<"DbPerson", 'String'>
924
+ readonly firstName: Prisma.FieldRef<"DbPerson", 'String'>
925
+ readonly lastName: Prisma.FieldRef<"DbPerson", 'String'>
926
+ readonly email: Prisma.FieldRef<"DbPerson", 'String'>
927
+ readonly createdAt: Prisma.FieldRef<"DbPerson", 'DateTime'>
928
+ readonly updatedAt: Prisma.FieldRef<"DbPerson", 'DateTime'>
929
+ }
930
+
931
+
932
+ // Custom InputTypes
933
+ /**
934
+ * DbPerson findUnique
935
+ */
936
+ export type DbPersonFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
937
+ /**
938
+ * Select specific fields to fetch from the DbPerson
939
+ */
940
+ select?: Prisma.DbPersonSelect<ExtArgs> | null
941
+ /**
942
+ * Omit specific fields from the DbPerson
943
+ */
944
+ omit?: Prisma.DbPersonOmit<ExtArgs> | null
945
+ /**
946
+ * Choose, which related nodes to fetch as well
947
+ */
948
+ include?: Prisma.DbPersonInclude<ExtArgs> | null
949
+ /**
950
+ * Filter, which DbPerson to fetch.
951
+ */
952
+ where: Prisma.DbPersonWhereUniqueInput
953
+ }
954
+
955
+ /**
956
+ * DbPerson findUniqueOrThrow
957
+ */
958
+ export type DbPersonFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
959
+ /**
960
+ * Select specific fields to fetch from the DbPerson
961
+ */
962
+ select?: Prisma.DbPersonSelect<ExtArgs> | null
963
+ /**
964
+ * Omit specific fields from the DbPerson
965
+ */
966
+ omit?: Prisma.DbPersonOmit<ExtArgs> | null
967
+ /**
968
+ * Choose, which related nodes to fetch as well
969
+ */
970
+ include?: Prisma.DbPersonInclude<ExtArgs> | null
971
+ /**
972
+ * Filter, which DbPerson to fetch.
973
+ */
974
+ where: Prisma.DbPersonWhereUniqueInput
975
+ }
976
+
977
+ /**
978
+ * DbPerson findFirst
979
+ */
980
+ export type DbPersonFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
981
+ /**
982
+ * Select specific fields to fetch from the DbPerson
983
+ */
984
+ select?: Prisma.DbPersonSelect<ExtArgs> | null
985
+ /**
986
+ * Omit specific fields from the DbPerson
987
+ */
988
+ omit?: Prisma.DbPersonOmit<ExtArgs> | null
989
+ /**
990
+ * Choose, which related nodes to fetch as well
991
+ */
992
+ include?: Prisma.DbPersonInclude<ExtArgs> | null
993
+ /**
994
+ * Filter, which DbPerson to fetch.
995
+ */
996
+ where?: Prisma.DbPersonWhereInput
997
+ /**
998
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
999
+ *
1000
+ * Determine the order of DbPeople to fetch.
1001
+ */
1002
+ orderBy?: Prisma.DbPersonOrderByWithRelationInput | Prisma.DbPersonOrderByWithRelationInput[]
1003
+ /**
1004
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1005
+ *
1006
+ * Sets the position for searching for DbPeople.
1007
+ */
1008
+ cursor?: Prisma.DbPersonWhereUniqueInput
1009
+ /**
1010
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1011
+ *
1012
+ * Take `±n` DbPeople from the position of the cursor.
1013
+ */
1014
+ take?: number
1015
+ /**
1016
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1017
+ *
1018
+ * Skip the first `n` DbPeople.
1019
+ */
1020
+ skip?: number
1021
+ /**
1022
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1023
+ *
1024
+ * Filter by unique combinations of DbPeople.
1025
+ */
1026
+ distinct?: Prisma.DbPersonScalarFieldEnum | Prisma.DbPersonScalarFieldEnum[]
1027
+ }
1028
+
1029
+ /**
1030
+ * DbPerson findFirstOrThrow
1031
+ */
1032
+ export type DbPersonFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1033
+ /**
1034
+ * Select specific fields to fetch from the DbPerson
1035
+ */
1036
+ select?: Prisma.DbPersonSelect<ExtArgs> | null
1037
+ /**
1038
+ * Omit specific fields from the DbPerson
1039
+ */
1040
+ omit?: Prisma.DbPersonOmit<ExtArgs> | null
1041
+ /**
1042
+ * Choose, which related nodes to fetch as well
1043
+ */
1044
+ include?: Prisma.DbPersonInclude<ExtArgs> | null
1045
+ /**
1046
+ * Filter, which DbPerson to fetch.
1047
+ */
1048
+ where?: Prisma.DbPersonWhereInput
1049
+ /**
1050
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1051
+ *
1052
+ * Determine the order of DbPeople to fetch.
1053
+ */
1054
+ orderBy?: Prisma.DbPersonOrderByWithRelationInput | Prisma.DbPersonOrderByWithRelationInput[]
1055
+ /**
1056
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1057
+ *
1058
+ * Sets the position for searching for DbPeople.
1059
+ */
1060
+ cursor?: Prisma.DbPersonWhereUniqueInput
1061
+ /**
1062
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1063
+ *
1064
+ * Take `±n` DbPeople from the position of the cursor.
1065
+ */
1066
+ take?: number
1067
+ /**
1068
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1069
+ *
1070
+ * Skip the first `n` DbPeople.
1071
+ */
1072
+ skip?: number
1073
+ /**
1074
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1075
+ *
1076
+ * Filter by unique combinations of DbPeople.
1077
+ */
1078
+ distinct?: Prisma.DbPersonScalarFieldEnum | Prisma.DbPersonScalarFieldEnum[]
1079
+ }
1080
+
1081
+ /**
1082
+ * DbPerson findMany
1083
+ */
1084
+ export type DbPersonFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1085
+ /**
1086
+ * Select specific fields to fetch from the DbPerson
1087
+ */
1088
+ select?: Prisma.DbPersonSelect<ExtArgs> | null
1089
+ /**
1090
+ * Omit specific fields from the DbPerson
1091
+ */
1092
+ omit?: Prisma.DbPersonOmit<ExtArgs> | null
1093
+ /**
1094
+ * Choose, which related nodes to fetch as well
1095
+ */
1096
+ include?: Prisma.DbPersonInclude<ExtArgs> | null
1097
+ /**
1098
+ * Filter, which DbPeople to fetch.
1099
+ */
1100
+ where?: Prisma.DbPersonWhereInput
1101
+ /**
1102
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1103
+ *
1104
+ * Determine the order of DbPeople to fetch.
1105
+ */
1106
+ orderBy?: Prisma.DbPersonOrderByWithRelationInput | Prisma.DbPersonOrderByWithRelationInput[]
1107
+ /**
1108
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1109
+ *
1110
+ * Sets the position for listing DbPeople.
1111
+ */
1112
+ cursor?: Prisma.DbPersonWhereUniqueInput
1113
+ /**
1114
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1115
+ *
1116
+ * Take `±n` DbPeople from the position of the cursor.
1117
+ */
1118
+ take?: number
1119
+ /**
1120
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1121
+ *
1122
+ * Skip the first `n` DbPeople.
1123
+ */
1124
+ skip?: number
1125
+ distinct?: Prisma.DbPersonScalarFieldEnum | Prisma.DbPersonScalarFieldEnum[]
1126
+ }
1127
+
1128
+ /**
1129
+ * DbPerson create
1130
+ */
1131
+ export type DbPersonCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1132
+ /**
1133
+ * Select specific fields to fetch from the DbPerson
1134
+ */
1135
+ select?: Prisma.DbPersonSelect<ExtArgs> | null
1136
+ /**
1137
+ * Omit specific fields from the DbPerson
1138
+ */
1139
+ omit?: Prisma.DbPersonOmit<ExtArgs> | null
1140
+ /**
1141
+ * Choose, which related nodes to fetch as well
1142
+ */
1143
+ include?: Prisma.DbPersonInclude<ExtArgs> | null
1144
+ /**
1145
+ * The data needed to create a DbPerson.
1146
+ */
1147
+ data: Prisma.XOR<Prisma.DbPersonCreateInput, Prisma.DbPersonUncheckedCreateInput>
1148
+ }
1149
+
1150
+ /**
1151
+ * DbPerson createMany
1152
+ */
1153
+ export type DbPersonCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1154
+ /**
1155
+ * The data used to create many DbPeople.
1156
+ */
1157
+ data: Prisma.DbPersonCreateManyInput | Prisma.DbPersonCreateManyInput[]
1158
+ skipDuplicates?: boolean
1159
+ }
1160
+
1161
+ /**
1162
+ * DbPerson createManyAndReturn
1163
+ */
1164
+ export type DbPersonCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1165
+ /**
1166
+ * Select specific fields to fetch from the DbPerson
1167
+ */
1168
+ select?: Prisma.DbPersonSelectCreateManyAndReturn<ExtArgs> | null
1169
+ /**
1170
+ * Omit specific fields from the DbPerson
1171
+ */
1172
+ omit?: Prisma.DbPersonOmit<ExtArgs> | null
1173
+ /**
1174
+ * The data used to create many DbPeople.
1175
+ */
1176
+ data: Prisma.DbPersonCreateManyInput | Prisma.DbPersonCreateManyInput[]
1177
+ skipDuplicates?: boolean
1178
+ }
1179
+
1180
+ /**
1181
+ * DbPerson update
1182
+ */
1183
+ export type DbPersonUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1184
+ /**
1185
+ * Select specific fields to fetch from the DbPerson
1186
+ */
1187
+ select?: Prisma.DbPersonSelect<ExtArgs> | null
1188
+ /**
1189
+ * Omit specific fields from the DbPerson
1190
+ */
1191
+ omit?: Prisma.DbPersonOmit<ExtArgs> | null
1192
+ /**
1193
+ * Choose, which related nodes to fetch as well
1194
+ */
1195
+ include?: Prisma.DbPersonInclude<ExtArgs> | null
1196
+ /**
1197
+ * The data needed to update a DbPerson.
1198
+ */
1199
+ data: Prisma.XOR<Prisma.DbPersonUpdateInput, Prisma.DbPersonUncheckedUpdateInput>
1200
+ /**
1201
+ * Choose, which DbPerson to update.
1202
+ */
1203
+ where: Prisma.DbPersonWhereUniqueInput
1204
+ }
1205
+
1206
+ /**
1207
+ * DbPerson updateMany
1208
+ */
1209
+ export type DbPersonUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1210
+ /**
1211
+ * The data used to update DbPeople.
1212
+ */
1213
+ data: Prisma.XOR<Prisma.DbPersonUpdateManyMutationInput, Prisma.DbPersonUncheckedUpdateManyInput>
1214
+ /**
1215
+ * Filter which DbPeople to update
1216
+ */
1217
+ where?: Prisma.DbPersonWhereInput
1218
+ /**
1219
+ * Limit how many DbPeople to update.
1220
+ */
1221
+ limit?: number
1222
+ }
1223
+
1224
+ /**
1225
+ * DbPerson updateManyAndReturn
1226
+ */
1227
+ export type DbPersonUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1228
+ /**
1229
+ * Select specific fields to fetch from the DbPerson
1230
+ */
1231
+ select?: Prisma.DbPersonSelectUpdateManyAndReturn<ExtArgs> | null
1232
+ /**
1233
+ * Omit specific fields from the DbPerson
1234
+ */
1235
+ omit?: Prisma.DbPersonOmit<ExtArgs> | null
1236
+ /**
1237
+ * The data used to update DbPeople.
1238
+ */
1239
+ data: Prisma.XOR<Prisma.DbPersonUpdateManyMutationInput, Prisma.DbPersonUncheckedUpdateManyInput>
1240
+ /**
1241
+ * Filter which DbPeople to update
1242
+ */
1243
+ where?: Prisma.DbPersonWhereInput
1244
+ /**
1245
+ * Limit how many DbPeople to update.
1246
+ */
1247
+ limit?: number
1248
+ }
1249
+
1250
+ /**
1251
+ * DbPerson upsert
1252
+ */
1253
+ export type DbPersonUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1254
+ /**
1255
+ * Select specific fields to fetch from the DbPerson
1256
+ */
1257
+ select?: Prisma.DbPersonSelect<ExtArgs> | null
1258
+ /**
1259
+ * Omit specific fields from the DbPerson
1260
+ */
1261
+ omit?: Prisma.DbPersonOmit<ExtArgs> | null
1262
+ /**
1263
+ * Choose, which related nodes to fetch as well
1264
+ */
1265
+ include?: Prisma.DbPersonInclude<ExtArgs> | null
1266
+ /**
1267
+ * The filter to search for the DbPerson to update in case it exists.
1268
+ */
1269
+ where: Prisma.DbPersonWhereUniqueInput
1270
+ /**
1271
+ * In case the DbPerson found by the `where` argument doesn't exist, create a new DbPerson with this data.
1272
+ */
1273
+ create: Prisma.XOR<Prisma.DbPersonCreateInput, Prisma.DbPersonUncheckedCreateInput>
1274
+ /**
1275
+ * In case the DbPerson was found with the provided `where` argument, update it with this data.
1276
+ */
1277
+ update: Prisma.XOR<Prisma.DbPersonUpdateInput, Prisma.DbPersonUncheckedUpdateInput>
1278
+ }
1279
+
1280
+ /**
1281
+ * DbPerson delete
1282
+ */
1283
+ export type DbPersonDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1284
+ /**
1285
+ * Select specific fields to fetch from the DbPerson
1286
+ */
1287
+ select?: Prisma.DbPersonSelect<ExtArgs> | null
1288
+ /**
1289
+ * Omit specific fields from the DbPerson
1290
+ */
1291
+ omit?: Prisma.DbPersonOmit<ExtArgs> | null
1292
+ /**
1293
+ * Choose, which related nodes to fetch as well
1294
+ */
1295
+ include?: Prisma.DbPersonInclude<ExtArgs> | null
1296
+ /**
1297
+ * Filter which DbPerson to delete.
1298
+ */
1299
+ where: Prisma.DbPersonWhereUniqueInput
1300
+ }
1301
+
1302
+ /**
1303
+ * DbPerson deleteMany
1304
+ */
1305
+ export type DbPersonDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1306
+ /**
1307
+ * Filter which DbPeople to delete
1308
+ */
1309
+ where?: Prisma.DbPersonWhereInput
1310
+ /**
1311
+ * Limit how many DbPeople to delete.
1312
+ */
1313
+ limit?: number
1314
+ }
1315
+
1316
+ /**
1317
+ * DbPerson.memberships
1318
+ */
1319
+ export type DbPerson$membershipsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1320
+ /**
1321
+ * Select specific fields to fetch from the DbGroupMembership
1322
+ */
1323
+ select?: Prisma.DbGroupMembershipSelect<ExtArgs> | null
1324
+ /**
1325
+ * Omit specific fields from the DbGroupMembership
1326
+ */
1327
+ omit?: Prisma.DbGroupMembershipOmit<ExtArgs> | null
1328
+ /**
1329
+ * Choose, which related nodes to fetch as well
1330
+ */
1331
+ include?: Prisma.DbGroupMembershipInclude<ExtArgs> | null
1332
+ where?: Prisma.DbGroupMembershipWhereInput
1333
+ orderBy?: Prisma.DbGroupMembershipOrderByWithRelationInput | Prisma.DbGroupMembershipOrderByWithRelationInput[]
1334
+ cursor?: Prisma.DbGroupMembershipWhereUniqueInput
1335
+ take?: number
1336
+ skip?: number
1337
+ distinct?: Prisma.DbGroupMembershipScalarFieldEnum | Prisma.DbGroupMembershipScalarFieldEnum[]
1338
+ }
1339
+
1340
+ /**
1341
+ * DbPerson without action
1342
+ */
1343
+ export type DbPersonDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1344
+ /**
1345
+ * Select specific fields to fetch from the DbPerson
1346
+ */
1347
+ select?: Prisma.DbPersonSelect<ExtArgs> | null
1348
+ /**
1349
+ * Omit specific fields from the DbPerson
1350
+ */
1351
+ omit?: Prisma.DbPersonOmit<ExtArgs> | null
1352
+ /**
1353
+ * Choose, which related nodes to fetch as well
1354
+ */
1355
+ include?: Prisma.DbPersonInclude<ExtArgs> | null
1356
+ }