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