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