@koalarx/nest-cli 1.2.23 → 2.0.0

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 (27) hide show
  1. package/README.md +35 -1
  2. package/code-base/env/config.txt +0 -2
  3. package/code-base/startup-project/.eslintrc.js +12 -10
  4. package/code-base/startup-project/.vscode/launch.json +9 -24
  5. package/code-base/startup-project/Dockerfile +26 -5
  6. package/code-base/startup-project/package.json +11 -14
  7. package/code-base/startup-project/prisma/scripts/fix-extensions.mjs +31 -0
  8. package/code-base/startup-project/src/test/setup-e2e.ts +7 -2
  9. package/code-base/startup-project/tsconfig.build-prisma.json +21 -0
  10. package/code-base/startup-project/tsconfig.build.json +7 -2
  11. package/code-base/startup-project/tsconfig.json +1 -2
  12. package/commands/new-project/index.ts +1 -1
  13. package/index.js +2 -2
  14. package/package.json +1 -1
  15. package/code-base/startup-project/prisma/generated/browser.ts +0 -34
  16. package/code-base/startup-project/prisma/generated/client.ts +0 -54
  17. package/code-base/startup-project/prisma/generated/commonInputTypes.ts +0 -172
  18. package/code-base/startup-project/prisma/generated/enums.ts +0 -15
  19. package/code-base/startup-project/prisma/generated/internal/class.ts +0 -210
  20. package/code-base/startup-project/prisma/generated/internal/prismaNamespace.ts +0 -927
  21. package/code-base/startup-project/prisma/generated/internal/prismaNamespaceBrowser.ts +0 -116
  22. package/code-base/startup-project/prisma/generated/models/Person.ts +0 -1497
  23. package/code-base/startup-project/prisma/generated/models/PersonAddress.ts +0 -1265
  24. package/code-base/startup-project/prisma/generated/models/PersonPhone.ts +0 -1315
  25. package/code-base/startup-project/prisma/generated/models.ts +0 -14
  26. package/code-base/startup-project/vitest.config.e2e.mts +0 -19
  27. package/code-base/startup-project/vitest.config.mts +0 -18
@@ -1,1497 +0,0 @@
1
-
2
- /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
- /* eslint-disable */
4
- // biome-ignore-all lint: generated file
5
- // @ts-nocheck
6
- /*
7
- * This file exports the `Person` model and its related types.
8
- *
9
- * 🟢 You can import this file directly.
10
- */
11
- import type * as runtime from "@prisma/client/runtime/client"
12
- import type * as $Enums from "../enums"
13
- import type * as Prisma from "../internal/prismaNamespace"
14
-
15
- /**
16
- * Model Person
17
- *
18
- */
19
- export type PersonModel = runtime.Types.Result.DefaultSelection<Prisma.$PersonPayload>
20
-
21
- export type AggregatePerson = {
22
- _count: PersonCountAggregateOutputType | null
23
- _avg: PersonAvgAggregateOutputType | null
24
- _sum: PersonSumAggregateOutputType | null
25
- _min: PersonMinAggregateOutputType | null
26
- _max: PersonMaxAggregateOutputType | null
27
- }
28
-
29
- export type PersonAvgAggregateOutputType = {
30
- id: number | null
31
- personAddressId: number | null
32
- }
33
-
34
- export type PersonSumAggregateOutputType = {
35
- id: number | null
36
- personAddressId: number | null
37
- }
38
-
39
- export type PersonMinAggregateOutputType = {
40
- id: number | null
41
- name: string | null
42
- active: boolean | null
43
- personAddressId: number | null
44
- }
45
-
46
- export type PersonMaxAggregateOutputType = {
47
- id: number | null
48
- name: string | null
49
- active: boolean | null
50
- personAddressId: number | null
51
- }
52
-
53
- export type PersonCountAggregateOutputType = {
54
- id: number
55
- name: number
56
- active: number
57
- personAddressId: number
58
- _all: number
59
- }
60
-
61
-
62
- export type PersonAvgAggregateInputType = {
63
- id?: true
64
- personAddressId?: true
65
- }
66
-
67
- export type PersonSumAggregateInputType = {
68
- id?: true
69
- personAddressId?: true
70
- }
71
-
72
- export type PersonMinAggregateInputType = {
73
- id?: true
74
- name?: true
75
- active?: true
76
- personAddressId?: true
77
- }
78
-
79
- export type PersonMaxAggregateInputType = {
80
- id?: true
81
- name?: true
82
- active?: true
83
- personAddressId?: true
84
- }
85
-
86
- export type PersonCountAggregateInputType = {
87
- id?: true
88
- name?: true
89
- active?: true
90
- personAddressId?: true
91
- _all?: true
92
- }
93
-
94
- export type PersonAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
95
- /**
96
- * Filter which Person to aggregate.
97
- */
98
- where?: Prisma.PersonWhereInput
99
- /**
100
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
101
- *
102
- * Determine the order of People to fetch.
103
- */
104
- orderBy?: Prisma.PersonOrderByWithRelationInput | Prisma.PersonOrderByWithRelationInput[]
105
- /**
106
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
107
- *
108
- * Sets the start position
109
- */
110
- cursor?: Prisma.PersonWhereUniqueInput
111
- /**
112
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
113
- *
114
- * Take `±n` People from the position of the cursor.
115
- */
116
- take?: number
117
- /**
118
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
119
- *
120
- * Skip the first `n` People.
121
- */
122
- skip?: number
123
- /**
124
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
125
- *
126
- * Count returned People
127
- **/
128
- _count?: true | PersonCountAggregateInputType
129
- /**
130
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
131
- *
132
- * Select which fields to average
133
- **/
134
- _avg?: PersonAvgAggregateInputType
135
- /**
136
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
137
- *
138
- * Select which fields to sum
139
- **/
140
- _sum?: PersonSumAggregateInputType
141
- /**
142
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
143
- *
144
- * Select which fields to find the minimum value
145
- **/
146
- _min?: PersonMinAggregateInputType
147
- /**
148
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
149
- *
150
- * Select which fields to find the maximum value
151
- **/
152
- _max?: PersonMaxAggregateInputType
153
- }
154
-
155
- export type GetPersonAggregateType<T extends PersonAggregateArgs> = {
156
- [P in keyof T & keyof AggregatePerson]: P extends '_count' | 'count'
157
- ? T[P] extends true
158
- ? number
159
- : Prisma.GetScalarType<T[P], AggregatePerson[P]>
160
- : Prisma.GetScalarType<T[P], AggregatePerson[P]>
161
- }
162
-
163
-
164
-
165
-
166
- export type PersonGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
167
- where?: Prisma.PersonWhereInput
168
- orderBy?: Prisma.PersonOrderByWithAggregationInput | Prisma.PersonOrderByWithAggregationInput[]
169
- by: Prisma.PersonScalarFieldEnum[] | Prisma.PersonScalarFieldEnum
170
- having?: Prisma.PersonScalarWhereWithAggregatesInput
171
- take?: number
172
- skip?: number
173
- _count?: PersonCountAggregateInputType | true
174
- _avg?: PersonAvgAggregateInputType
175
- _sum?: PersonSumAggregateInputType
176
- _min?: PersonMinAggregateInputType
177
- _max?: PersonMaxAggregateInputType
178
- }
179
-
180
- export type PersonGroupByOutputType = {
181
- id: number
182
- name: string
183
- active: boolean
184
- personAddressId: number
185
- _count: PersonCountAggregateOutputType | null
186
- _avg: PersonAvgAggregateOutputType | null
187
- _sum: PersonSumAggregateOutputType | null
188
- _min: PersonMinAggregateOutputType | null
189
- _max: PersonMaxAggregateOutputType | null
190
- }
191
-
192
- type GetPersonGroupByPayload<T extends PersonGroupByArgs> = Prisma.PrismaPromise<
193
- Array<
194
- Prisma.PickEnumerable<PersonGroupByOutputType, T['by']> &
195
- {
196
- [P in ((keyof T) & (keyof PersonGroupByOutputType))]: P extends '_count'
197
- ? T[P] extends boolean
198
- ? number
199
- : Prisma.GetScalarType<T[P], PersonGroupByOutputType[P]>
200
- : Prisma.GetScalarType<T[P], PersonGroupByOutputType[P]>
201
- }
202
- >
203
- >
204
-
205
-
206
-
207
- export type PersonWhereInput = {
208
- AND?: Prisma.PersonWhereInput | Prisma.PersonWhereInput[]
209
- OR?: Prisma.PersonWhereInput[]
210
- NOT?: Prisma.PersonWhereInput | Prisma.PersonWhereInput[]
211
- id?: Prisma.IntFilter<"Person"> | number
212
- name?: Prisma.StringFilter<"Person"> | string
213
- active?: Prisma.BoolFilter<"Person"> | boolean
214
- personAddressId?: Prisma.IntFilter<"Person"> | number
215
- phones?: Prisma.PersonPhoneListRelationFilter
216
- address?: Prisma.XOR<Prisma.PersonAddressScalarRelationFilter, Prisma.PersonAddressWhereInput>
217
- }
218
-
219
- export type PersonOrderByWithRelationInput = {
220
- id?: Prisma.SortOrder
221
- name?: Prisma.SortOrder
222
- active?: Prisma.SortOrder
223
- personAddressId?: Prisma.SortOrder
224
- phones?: Prisma.PersonPhoneOrderByRelationAggregateInput
225
- address?: Prisma.PersonAddressOrderByWithRelationInput
226
- }
227
-
228
- export type PersonWhereUniqueInput = Prisma.AtLeast<{
229
- id?: number
230
- AND?: Prisma.PersonWhereInput | Prisma.PersonWhereInput[]
231
- OR?: Prisma.PersonWhereInput[]
232
- NOT?: Prisma.PersonWhereInput | Prisma.PersonWhereInput[]
233
- name?: Prisma.StringFilter<"Person"> | string
234
- active?: Prisma.BoolFilter<"Person"> | boolean
235
- personAddressId?: Prisma.IntFilter<"Person"> | number
236
- phones?: Prisma.PersonPhoneListRelationFilter
237
- address?: Prisma.XOR<Prisma.PersonAddressScalarRelationFilter, Prisma.PersonAddressWhereInput>
238
- }, "id">
239
-
240
- export type PersonOrderByWithAggregationInput = {
241
- id?: Prisma.SortOrder
242
- name?: Prisma.SortOrder
243
- active?: Prisma.SortOrder
244
- personAddressId?: Prisma.SortOrder
245
- _count?: Prisma.PersonCountOrderByAggregateInput
246
- _avg?: Prisma.PersonAvgOrderByAggregateInput
247
- _max?: Prisma.PersonMaxOrderByAggregateInput
248
- _min?: Prisma.PersonMinOrderByAggregateInput
249
- _sum?: Prisma.PersonSumOrderByAggregateInput
250
- }
251
-
252
- export type PersonScalarWhereWithAggregatesInput = {
253
- AND?: Prisma.PersonScalarWhereWithAggregatesInput | Prisma.PersonScalarWhereWithAggregatesInput[]
254
- OR?: Prisma.PersonScalarWhereWithAggregatesInput[]
255
- NOT?: Prisma.PersonScalarWhereWithAggregatesInput | Prisma.PersonScalarWhereWithAggregatesInput[]
256
- id?: Prisma.IntWithAggregatesFilter<"Person"> | number
257
- name?: Prisma.StringWithAggregatesFilter<"Person"> | string
258
- active?: Prisma.BoolWithAggregatesFilter<"Person"> | boolean
259
- personAddressId?: Prisma.IntWithAggregatesFilter<"Person"> | number
260
- }
261
-
262
- export type PersonCreateInput = {
263
- name: string
264
- active?: boolean
265
- phones?: Prisma.PersonPhoneCreateNestedManyWithoutPersonInput
266
- address: Prisma.PersonAddressCreateNestedOneWithoutPeopleInput
267
- }
268
-
269
- export type PersonUncheckedCreateInput = {
270
- id?: number
271
- name: string
272
- active?: boolean
273
- personAddressId: number
274
- phones?: Prisma.PersonPhoneUncheckedCreateNestedManyWithoutPersonInput
275
- }
276
-
277
- export type PersonUpdateInput = {
278
- name?: Prisma.StringFieldUpdateOperationsInput | string
279
- active?: Prisma.BoolFieldUpdateOperationsInput | boolean
280
- phones?: Prisma.PersonPhoneUpdateManyWithoutPersonNestedInput
281
- address?: Prisma.PersonAddressUpdateOneRequiredWithoutPeopleNestedInput
282
- }
283
-
284
- export type PersonUncheckedUpdateInput = {
285
- id?: Prisma.IntFieldUpdateOperationsInput | number
286
- name?: Prisma.StringFieldUpdateOperationsInput | string
287
- active?: Prisma.BoolFieldUpdateOperationsInput | boolean
288
- personAddressId?: Prisma.IntFieldUpdateOperationsInput | number
289
- phones?: Prisma.PersonPhoneUncheckedUpdateManyWithoutPersonNestedInput
290
- }
291
-
292
- export type PersonCreateManyInput = {
293
- id?: number
294
- name: string
295
- active?: boolean
296
- personAddressId: number
297
- }
298
-
299
- export type PersonUpdateManyMutationInput = {
300
- name?: Prisma.StringFieldUpdateOperationsInput | string
301
- active?: Prisma.BoolFieldUpdateOperationsInput | boolean
302
- }
303
-
304
- export type PersonUncheckedUpdateManyInput = {
305
- id?: Prisma.IntFieldUpdateOperationsInput | number
306
- name?: Prisma.StringFieldUpdateOperationsInput | string
307
- active?: Prisma.BoolFieldUpdateOperationsInput | boolean
308
- personAddressId?: Prisma.IntFieldUpdateOperationsInput | number
309
- }
310
-
311
- export type PersonCountOrderByAggregateInput = {
312
- id?: Prisma.SortOrder
313
- name?: Prisma.SortOrder
314
- active?: Prisma.SortOrder
315
- personAddressId?: Prisma.SortOrder
316
- }
317
-
318
- export type PersonAvgOrderByAggregateInput = {
319
- id?: Prisma.SortOrder
320
- personAddressId?: Prisma.SortOrder
321
- }
322
-
323
- export type PersonMaxOrderByAggregateInput = {
324
- id?: Prisma.SortOrder
325
- name?: Prisma.SortOrder
326
- active?: Prisma.SortOrder
327
- personAddressId?: Prisma.SortOrder
328
- }
329
-
330
- export type PersonMinOrderByAggregateInput = {
331
- id?: Prisma.SortOrder
332
- name?: Prisma.SortOrder
333
- active?: Prisma.SortOrder
334
- personAddressId?: Prisma.SortOrder
335
- }
336
-
337
- export type PersonSumOrderByAggregateInput = {
338
- id?: Prisma.SortOrder
339
- personAddressId?: Prisma.SortOrder
340
- }
341
-
342
- export type PersonScalarRelationFilter = {
343
- is?: Prisma.PersonWhereInput
344
- isNot?: Prisma.PersonWhereInput
345
- }
346
-
347
- export type PersonListRelationFilter = {
348
- every?: Prisma.PersonWhereInput
349
- some?: Prisma.PersonWhereInput
350
- none?: Prisma.PersonWhereInput
351
- }
352
-
353
- export type PersonOrderByRelationAggregateInput = {
354
- _count?: Prisma.SortOrder
355
- }
356
-
357
- export type StringFieldUpdateOperationsInput = {
358
- set?: string
359
- }
360
-
361
- export type BoolFieldUpdateOperationsInput = {
362
- set?: boolean
363
- }
364
-
365
- export type IntFieldUpdateOperationsInput = {
366
- set?: number
367
- increment?: number
368
- decrement?: number
369
- multiply?: number
370
- divide?: number
371
- }
372
-
373
- export type PersonCreateNestedOneWithoutPhonesInput = {
374
- create?: Prisma.XOR<Prisma.PersonCreateWithoutPhonesInput, Prisma.PersonUncheckedCreateWithoutPhonesInput>
375
- connectOrCreate?: Prisma.PersonCreateOrConnectWithoutPhonesInput
376
- connect?: Prisma.PersonWhereUniqueInput
377
- }
378
-
379
- export type PersonUpdateOneRequiredWithoutPhonesNestedInput = {
380
- create?: Prisma.XOR<Prisma.PersonCreateWithoutPhonesInput, Prisma.PersonUncheckedCreateWithoutPhonesInput>
381
- connectOrCreate?: Prisma.PersonCreateOrConnectWithoutPhonesInput
382
- upsert?: Prisma.PersonUpsertWithoutPhonesInput
383
- connect?: Prisma.PersonWhereUniqueInput
384
- update?: Prisma.XOR<Prisma.XOR<Prisma.PersonUpdateToOneWithWhereWithoutPhonesInput, Prisma.PersonUpdateWithoutPhonesInput>, Prisma.PersonUncheckedUpdateWithoutPhonesInput>
385
- }
386
-
387
- export type PersonCreateNestedManyWithoutAddressInput = {
388
- create?: Prisma.XOR<Prisma.PersonCreateWithoutAddressInput, Prisma.PersonUncheckedCreateWithoutAddressInput> | Prisma.PersonCreateWithoutAddressInput[] | Prisma.PersonUncheckedCreateWithoutAddressInput[]
389
- connectOrCreate?: Prisma.PersonCreateOrConnectWithoutAddressInput | Prisma.PersonCreateOrConnectWithoutAddressInput[]
390
- createMany?: Prisma.PersonCreateManyAddressInputEnvelope
391
- connect?: Prisma.PersonWhereUniqueInput | Prisma.PersonWhereUniqueInput[]
392
- }
393
-
394
- export type PersonUncheckedCreateNestedManyWithoutAddressInput = {
395
- create?: Prisma.XOR<Prisma.PersonCreateWithoutAddressInput, Prisma.PersonUncheckedCreateWithoutAddressInput> | Prisma.PersonCreateWithoutAddressInput[] | Prisma.PersonUncheckedCreateWithoutAddressInput[]
396
- connectOrCreate?: Prisma.PersonCreateOrConnectWithoutAddressInput | Prisma.PersonCreateOrConnectWithoutAddressInput[]
397
- createMany?: Prisma.PersonCreateManyAddressInputEnvelope
398
- connect?: Prisma.PersonWhereUniqueInput | Prisma.PersonWhereUniqueInput[]
399
- }
400
-
401
- export type PersonUpdateManyWithoutAddressNestedInput = {
402
- create?: Prisma.XOR<Prisma.PersonCreateWithoutAddressInput, Prisma.PersonUncheckedCreateWithoutAddressInput> | Prisma.PersonCreateWithoutAddressInput[] | Prisma.PersonUncheckedCreateWithoutAddressInput[]
403
- connectOrCreate?: Prisma.PersonCreateOrConnectWithoutAddressInput | Prisma.PersonCreateOrConnectWithoutAddressInput[]
404
- upsert?: Prisma.PersonUpsertWithWhereUniqueWithoutAddressInput | Prisma.PersonUpsertWithWhereUniqueWithoutAddressInput[]
405
- createMany?: Prisma.PersonCreateManyAddressInputEnvelope
406
- set?: Prisma.PersonWhereUniqueInput | Prisma.PersonWhereUniqueInput[]
407
- disconnect?: Prisma.PersonWhereUniqueInput | Prisma.PersonWhereUniqueInput[]
408
- delete?: Prisma.PersonWhereUniqueInput | Prisma.PersonWhereUniqueInput[]
409
- connect?: Prisma.PersonWhereUniqueInput | Prisma.PersonWhereUniqueInput[]
410
- update?: Prisma.PersonUpdateWithWhereUniqueWithoutAddressInput | Prisma.PersonUpdateWithWhereUniqueWithoutAddressInput[]
411
- updateMany?: Prisma.PersonUpdateManyWithWhereWithoutAddressInput | Prisma.PersonUpdateManyWithWhereWithoutAddressInput[]
412
- deleteMany?: Prisma.PersonScalarWhereInput | Prisma.PersonScalarWhereInput[]
413
- }
414
-
415
- export type PersonUncheckedUpdateManyWithoutAddressNestedInput = {
416
- create?: Prisma.XOR<Prisma.PersonCreateWithoutAddressInput, Prisma.PersonUncheckedCreateWithoutAddressInput> | Prisma.PersonCreateWithoutAddressInput[] | Prisma.PersonUncheckedCreateWithoutAddressInput[]
417
- connectOrCreate?: Prisma.PersonCreateOrConnectWithoutAddressInput | Prisma.PersonCreateOrConnectWithoutAddressInput[]
418
- upsert?: Prisma.PersonUpsertWithWhereUniqueWithoutAddressInput | Prisma.PersonUpsertWithWhereUniqueWithoutAddressInput[]
419
- createMany?: Prisma.PersonCreateManyAddressInputEnvelope
420
- set?: Prisma.PersonWhereUniqueInput | Prisma.PersonWhereUniqueInput[]
421
- disconnect?: Prisma.PersonWhereUniqueInput | Prisma.PersonWhereUniqueInput[]
422
- delete?: Prisma.PersonWhereUniqueInput | Prisma.PersonWhereUniqueInput[]
423
- connect?: Prisma.PersonWhereUniqueInput | Prisma.PersonWhereUniqueInput[]
424
- update?: Prisma.PersonUpdateWithWhereUniqueWithoutAddressInput | Prisma.PersonUpdateWithWhereUniqueWithoutAddressInput[]
425
- updateMany?: Prisma.PersonUpdateManyWithWhereWithoutAddressInput | Prisma.PersonUpdateManyWithWhereWithoutAddressInput[]
426
- deleteMany?: Prisma.PersonScalarWhereInput | Prisma.PersonScalarWhereInput[]
427
- }
428
-
429
- export type PersonCreateWithoutPhonesInput = {
430
- name: string
431
- active?: boolean
432
- address: Prisma.PersonAddressCreateNestedOneWithoutPeopleInput
433
- }
434
-
435
- export type PersonUncheckedCreateWithoutPhonesInput = {
436
- id?: number
437
- name: string
438
- active?: boolean
439
- personAddressId: number
440
- }
441
-
442
- export type PersonCreateOrConnectWithoutPhonesInput = {
443
- where: Prisma.PersonWhereUniqueInput
444
- create: Prisma.XOR<Prisma.PersonCreateWithoutPhonesInput, Prisma.PersonUncheckedCreateWithoutPhonesInput>
445
- }
446
-
447
- export type PersonUpsertWithoutPhonesInput = {
448
- update: Prisma.XOR<Prisma.PersonUpdateWithoutPhonesInput, Prisma.PersonUncheckedUpdateWithoutPhonesInput>
449
- create: Prisma.XOR<Prisma.PersonCreateWithoutPhonesInput, Prisma.PersonUncheckedCreateWithoutPhonesInput>
450
- where?: Prisma.PersonWhereInput
451
- }
452
-
453
- export type PersonUpdateToOneWithWhereWithoutPhonesInput = {
454
- where?: Prisma.PersonWhereInput
455
- data: Prisma.XOR<Prisma.PersonUpdateWithoutPhonesInput, Prisma.PersonUncheckedUpdateWithoutPhonesInput>
456
- }
457
-
458
- export type PersonUpdateWithoutPhonesInput = {
459
- name?: Prisma.StringFieldUpdateOperationsInput | string
460
- active?: Prisma.BoolFieldUpdateOperationsInput | boolean
461
- address?: Prisma.PersonAddressUpdateOneRequiredWithoutPeopleNestedInput
462
- }
463
-
464
- export type PersonUncheckedUpdateWithoutPhonesInput = {
465
- id?: Prisma.IntFieldUpdateOperationsInput | number
466
- name?: Prisma.StringFieldUpdateOperationsInput | string
467
- active?: Prisma.BoolFieldUpdateOperationsInput | boolean
468
- personAddressId?: Prisma.IntFieldUpdateOperationsInput | number
469
- }
470
-
471
- export type PersonCreateWithoutAddressInput = {
472
- name: string
473
- active?: boolean
474
- phones?: Prisma.PersonPhoneCreateNestedManyWithoutPersonInput
475
- }
476
-
477
- export type PersonUncheckedCreateWithoutAddressInput = {
478
- id?: number
479
- name: string
480
- active?: boolean
481
- phones?: Prisma.PersonPhoneUncheckedCreateNestedManyWithoutPersonInput
482
- }
483
-
484
- export type PersonCreateOrConnectWithoutAddressInput = {
485
- where: Prisma.PersonWhereUniqueInput
486
- create: Prisma.XOR<Prisma.PersonCreateWithoutAddressInput, Prisma.PersonUncheckedCreateWithoutAddressInput>
487
- }
488
-
489
- export type PersonCreateManyAddressInputEnvelope = {
490
- data: Prisma.PersonCreateManyAddressInput | Prisma.PersonCreateManyAddressInput[]
491
- skipDuplicates?: boolean
492
- }
493
-
494
- export type PersonUpsertWithWhereUniqueWithoutAddressInput = {
495
- where: Prisma.PersonWhereUniqueInput
496
- update: Prisma.XOR<Prisma.PersonUpdateWithoutAddressInput, Prisma.PersonUncheckedUpdateWithoutAddressInput>
497
- create: Prisma.XOR<Prisma.PersonCreateWithoutAddressInput, Prisma.PersonUncheckedCreateWithoutAddressInput>
498
- }
499
-
500
- export type PersonUpdateWithWhereUniqueWithoutAddressInput = {
501
- where: Prisma.PersonWhereUniqueInput
502
- data: Prisma.XOR<Prisma.PersonUpdateWithoutAddressInput, Prisma.PersonUncheckedUpdateWithoutAddressInput>
503
- }
504
-
505
- export type PersonUpdateManyWithWhereWithoutAddressInput = {
506
- where: Prisma.PersonScalarWhereInput
507
- data: Prisma.XOR<Prisma.PersonUpdateManyMutationInput, Prisma.PersonUncheckedUpdateManyWithoutAddressInput>
508
- }
509
-
510
- export type PersonScalarWhereInput = {
511
- AND?: Prisma.PersonScalarWhereInput | Prisma.PersonScalarWhereInput[]
512
- OR?: Prisma.PersonScalarWhereInput[]
513
- NOT?: Prisma.PersonScalarWhereInput | Prisma.PersonScalarWhereInput[]
514
- id?: Prisma.IntFilter<"Person"> | number
515
- name?: Prisma.StringFilter<"Person"> | string
516
- active?: Prisma.BoolFilter<"Person"> | boolean
517
- personAddressId?: Prisma.IntFilter<"Person"> | number
518
- }
519
-
520
- export type PersonCreateManyAddressInput = {
521
- id?: number
522
- name: string
523
- active?: boolean
524
- }
525
-
526
- export type PersonUpdateWithoutAddressInput = {
527
- name?: Prisma.StringFieldUpdateOperationsInput | string
528
- active?: Prisma.BoolFieldUpdateOperationsInput | boolean
529
- phones?: Prisma.PersonPhoneUpdateManyWithoutPersonNestedInput
530
- }
531
-
532
- export type PersonUncheckedUpdateWithoutAddressInput = {
533
- id?: Prisma.IntFieldUpdateOperationsInput | number
534
- name?: Prisma.StringFieldUpdateOperationsInput | string
535
- active?: Prisma.BoolFieldUpdateOperationsInput | boolean
536
- phones?: Prisma.PersonPhoneUncheckedUpdateManyWithoutPersonNestedInput
537
- }
538
-
539
- export type PersonUncheckedUpdateManyWithoutAddressInput = {
540
- id?: Prisma.IntFieldUpdateOperationsInput | number
541
- name?: Prisma.StringFieldUpdateOperationsInput | string
542
- active?: Prisma.BoolFieldUpdateOperationsInput | boolean
543
- }
544
-
545
-
546
- /**
547
- * Count Type PersonCountOutputType
548
- */
549
-
550
- export type PersonCountOutputType = {
551
- phones: number
552
- }
553
-
554
- export type PersonCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
555
- phones?: boolean | PersonCountOutputTypeCountPhonesArgs
556
- }
557
-
558
- /**
559
- * PersonCountOutputType without action
560
- */
561
- export type PersonCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
562
- /**
563
- * Select specific fields to fetch from the PersonCountOutputType
564
- */
565
- select?: Prisma.PersonCountOutputTypeSelect<ExtArgs> | null
566
- }
567
-
568
- /**
569
- * PersonCountOutputType without action
570
- */
571
- export type PersonCountOutputTypeCountPhonesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
572
- where?: Prisma.PersonPhoneWhereInput
573
- }
574
-
575
-
576
- export type PersonSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
577
- id?: boolean
578
- name?: boolean
579
- active?: boolean
580
- personAddressId?: boolean
581
- phones?: boolean | Prisma.Person$phonesArgs<ExtArgs>
582
- address?: boolean | Prisma.PersonAddressDefaultArgs<ExtArgs>
583
- _count?: boolean | Prisma.PersonCountOutputTypeDefaultArgs<ExtArgs>
584
- }, ExtArgs["result"]["person"]>
585
-
586
- export type PersonSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
587
- id?: boolean
588
- name?: boolean
589
- active?: boolean
590
- personAddressId?: boolean
591
- address?: boolean | Prisma.PersonAddressDefaultArgs<ExtArgs>
592
- }, ExtArgs["result"]["person"]>
593
-
594
- export type PersonSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
595
- id?: boolean
596
- name?: boolean
597
- active?: boolean
598
- personAddressId?: boolean
599
- address?: boolean | Prisma.PersonAddressDefaultArgs<ExtArgs>
600
- }, ExtArgs["result"]["person"]>
601
-
602
- export type PersonSelectScalar = {
603
- id?: boolean
604
- name?: boolean
605
- active?: boolean
606
- personAddressId?: boolean
607
- }
608
-
609
- export type PersonOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "active" | "personAddressId", ExtArgs["result"]["person"]>
610
- export type PersonInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
611
- phones?: boolean | Prisma.Person$phonesArgs<ExtArgs>
612
- address?: boolean | Prisma.PersonAddressDefaultArgs<ExtArgs>
613
- _count?: boolean | Prisma.PersonCountOutputTypeDefaultArgs<ExtArgs>
614
- }
615
- export type PersonIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
616
- address?: boolean | Prisma.PersonAddressDefaultArgs<ExtArgs>
617
- }
618
- export type PersonIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
619
- address?: boolean | Prisma.PersonAddressDefaultArgs<ExtArgs>
620
- }
621
-
622
- export type $PersonPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
623
- name: "Person"
624
- objects: {
625
- phones: Prisma.$PersonPhonePayload<ExtArgs>[]
626
- address: Prisma.$PersonAddressPayload<ExtArgs>
627
- }
628
- scalars: runtime.Types.Extensions.GetPayloadResult<{
629
- id: number
630
- name: string
631
- active: boolean
632
- personAddressId: number
633
- }, ExtArgs["result"]["person"]>
634
- composites: {}
635
- }
636
-
637
- export type PersonGetPayload<S extends boolean | null | undefined | PersonDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$PersonPayload, S>
638
-
639
- export type PersonCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
640
- Omit<PersonFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
641
- select?: PersonCountAggregateInputType | true
642
- }
643
-
644
- export interface PersonDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
645
- [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Person'], meta: { name: 'Person' } }
646
- /**
647
- * Find zero or one Person that matches the filter.
648
- * @param {PersonFindUniqueArgs} args - Arguments to find a Person
649
- * @example
650
- * // Get one Person
651
- * const person = await prisma.person.findUnique({
652
- * where: {
653
- * // ... provide filter here
654
- * }
655
- * })
656
- */
657
- findUnique<T extends PersonFindUniqueArgs>(args: Prisma.SelectSubset<T, PersonFindUniqueArgs<ExtArgs>>): Prisma.Prisma__PersonClient<runtime.Types.Result.GetResult<Prisma.$PersonPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
658
-
659
- /**
660
- * Find one Person that matches the filter or throw an error with `error.code='P2025'`
661
- * if no matches were found.
662
- * @param {PersonFindUniqueOrThrowArgs} args - Arguments to find a Person
663
- * @example
664
- * // Get one Person
665
- * const person = await prisma.person.findUniqueOrThrow({
666
- * where: {
667
- * // ... provide filter here
668
- * }
669
- * })
670
- */
671
- findUniqueOrThrow<T extends PersonFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, PersonFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__PersonClient<runtime.Types.Result.GetResult<Prisma.$PersonPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
672
-
673
- /**
674
- * Find the first Person that matches the filter.
675
- * Note, that providing `undefined` is treated as the value not being there.
676
- * Read more here: https://pris.ly/d/null-undefined
677
- * @param {PersonFindFirstArgs} args - Arguments to find a Person
678
- * @example
679
- * // Get one Person
680
- * const person = await prisma.person.findFirst({
681
- * where: {
682
- * // ... provide filter here
683
- * }
684
- * })
685
- */
686
- findFirst<T extends PersonFindFirstArgs>(args?: Prisma.SelectSubset<T, PersonFindFirstArgs<ExtArgs>>): Prisma.Prisma__PersonClient<runtime.Types.Result.GetResult<Prisma.$PersonPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
687
-
688
- /**
689
- * Find the first Person that matches the filter or
690
- * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
691
- * Note, that providing `undefined` is treated as the value not being there.
692
- * Read more here: https://pris.ly/d/null-undefined
693
- * @param {PersonFindFirstOrThrowArgs} args - Arguments to find a Person
694
- * @example
695
- * // Get one Person
696
- * const person = await prisma.person.findFirstOrThrow({
697
- * where: {
698
- * // ... provide filter here
699
- * }
700
- * })
701
- */
702
- findFirstOrThrow<T extends PersonFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, PersonFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__PersonClient<runtime.Types.Result.GetResult<Prisma.$PersonPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
703
-
704
- /**
705
- * Find zero or more People that matches the filter.
706
- * Note, that providing `undefined` is treated as the value not being there.
707
- * Read more here: https://pris.ly/d/null-undefined
708
- * @param {PersonFindManyArgs} args - Arguments to filter and select certain fields only.
709
- * @example
710
- * // Get all People
711
- * const people = await prisma.person.findMany()
712
- *
713
- * // Get first 10 People
714
- * const people = await prisma.person.findMany({ take: 10 })
715
- *
716
- * // Only select the `id`
717
- * const personWithIdOnly = await prisma.person.findMany({ select: { id: true } })
718
- *
719
- */
720
- findMany<T extends PersonFindManyArgs>(args?: Prisma.SelectSubset<T, PersonFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PersonPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
721
-
722
- /**
723
- * Create a Person.
724
- * @param {PersonCreateArgs} args - Arguments to create a Person.
725
- * @example
726
- * // Create one Person
727
- * const Person = await prisma.person.create({
728
- * data: {
729
- * // ... data to create a Person
730
- * }
731
- * })
732
- *
733
- */
734
- create<T extends PersonCreateArgs>(args: Prisma.SelectSubset<T, PersonCreateArgs<ExtArgs>>): Prisma.Prisma__PersonClient<runtime.Types.Result.GetResult<Prisma.$PersonPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
735
-
736
- /**
737
- * Create many People.
738
- * @param {PersonCreateManyArgs} args - Arguments to create many People.
739
- * @example
740
- * // Create many People
741
- * const person = await prisma.person.createMany({
742
- * data: [
743
- * // ... provide data here
744
- * ]
745
- * })
746
- *
747
- */
748
- createMany<T extends PersonCreateManyArgs>(args?: Prisma.SelectSubset<T, PersonCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
749
-
750
- /**
751
- * Create many People and returns the data saved in the database.
752
- * @param {PersonCreateManyAndReturnArgs} args - Arguments to create many People.
753
- * @example
754
- * // Create many People
755
- * const person = await prisma.person.createManyAndReturn({
756
- * data: [
757
- * // ... provide data here
758
- * ]
759
- * })
760
- *
761
- * // Create many People and only return the `id`
762
- * const personWithIdOnly = await prisma.person.createManyAndReturn({
763
- * select: { id: true },
764
- * data: [
765
- * // ... provide data here
766
- * ]
767
- * })
768
- * Note, that providing `undefined` is treated as the value not being there.
769
- * Read more here: https://pris.ly/d/null-undefined
770
- *
771
- */
772
- createManyAndReturn<T extends PersonCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, PersonCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PersonPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
773
-
774
- /**
775
- * Delete a Person.
776
- * @param {PersonDeleteArgs} args - Arguments to delete one Person.
777
- * @example
778
- * // Delete one Person
779
- * const Person = await prisma.person.delete({
780
- * where: {
781
- * // ... filter to delete one Person
782
- * }
783
- * })
784
- *
785
- */
786
- delete<T extends PersonDeleteArgs>(args: Prisma.SelectSubset<T, PersonDeleteArgs<ExtArgs>>): Prisma.Prisma__PersonClient<runtime.Types.Result.GetResult<Prisma.$PersonPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
787
-
788
- /**
789
- * Update one Person.
790
- * @param {PersonUpdateArgs} args - Arguments to update one Person.
791
- * @example
792
- * // Update one Person
793
- * const person = await prisma.person.update({
794
- * where: {
795
- * // ... provide filter here
796
- * },
797
- * data: {
798
- * // ... provide data here
799
- * }
800
- * })
801
- *
802
- */
803
- update<T extends PersonUpdateArgs>(args: Prisma.SelectSubset<T, PersonUpdateArgs<ExtArgs>>): Prisma.Prisma__PersonClient<runtime.Types.Result.GetResult<Prisma.$PersonPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
804
-
805
- /**
806
- * Delete zero or more People.
807
- * @param {PersonDeleteManyArgs} args - Arguments to filter People to delete.
808
- * @example
809
- * // Delete a few People
810
- * const { count } = await prisma.person.deleteMany({
811
- * where: {
812
- * // ... provide filter here
813
- * }
814
- * })
815
- *
816
- */
817
- deleteMany<T extends PersonDeleteManyArgs>(args?: Prisma.SelectSubset<T, PersonDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
818
-
819
- /**
820
- * Update zero or more People.
821
- * Note, that providing `undefined` is treated as the value not being there.
822
- * Read more here: https://pris.ly/d/null-undefined
823
- * @param {PersonUpdateManyArgs} args - Arguments to update one or more rows.
824
- * @example
825
- * // Update many People
826
- * const person = await prisma.person.updateMany({
827
- * where: {
828
- * // ... provide filter here
829
- * },
830
- * data: {
831
- * // ... provide data here
832
- * }
833
- * })
834
- *
835
- */
836
- updateMany<T extends PersonUpdateManyArgs>(args: Prisma.SelectSubset<T, PersonUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
837
-
838
- /**
839
- * Update zero or more People and returns the data updated in the database.
840
- * @param {PersonUpdateManyAndReturnArgs} args - Arguments to update many People.
841
- * @example
842
- * // Update many People
843
- * const person = await prisma.person.updateManyAndReturn({
844
- * where: {
845
- * // ... provide filter here
846
- * },
847
- * data: [
848
- * // ... provide data here
849
- * ]
850
- * })
851
- *
852
- * // Update zero or more People and only return the `id`
853
- * const personWithIdOnly = await prisma.person.updateManyAndReturn({
854
- * select: { id: true },
855
- * where: {
856
- * // ... provide filter here
857
- * },
858
- * data: [
859
- * // ... provide data here
860
- * ]
861
- * })
862
- * Note, that providing `undefined` is treated as the value not being there.
863
- * Read more here: https://pris.ly/d/null-undefined
864
- *
865
- */
866
- updateManyAndReturn<T extends PersonUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, PersonUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PersonPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
867
-
868
- /**
869
- * Create or update one Person.
870
- * @param {PersonUpsertArgs} args - Arguments to update or create a Person.
871
- * @example
872
- * // Update or create a Person
873
- * const person = await prisma.person.upsert({
874
- * create: {
875
- * // ... data to create a Person
876
- * },
877
- * update: {
878
- * // ... in case it already exists, update
879
- * },
880
- * where: {
881
- * // ... the filter for the Person we want to update
882
- * }
883
- * })
884
- */
885
- upsert<T extends PersonUpsertArgs>(args: Prisma.SelectSubset<T, PersonUpsertArgs<ExtArgs>>): Prisma.Prisma__PersonClient<runtime.Types.Result.GetResult<Prisma.$PersonPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
886
-
887
-
888
- /**
889
- * Count the number of People.
890
- * Note, that providing `undefined` is treated as the value not being there.
891
- * Read more here: https://pris.ly/d/null-undefined
892
- * @param {PersonCountArgs} args - Arguments to filter People to count.
893
- * @example
894
- * // Count the number of People
895
- * const count = await prisma.person.count({
896
- * where: {
897
- * // ... the filter for the People we want to count
898
- * }
899
- * })
900
- **/
901
- count<T extends PersonCountArgs>(
902
- args?: Prisma.Subset<T, PersonCountArgs>,
903
- ): Prisma.PrismaPromise<
904
- T extends runtime.Types.Utils.Record<'select', any>
905
- ? T['select'] extends true
906
- ? number
907
- : Prisma.GetScalarType<T['select'], PersonCountAggregateOutputType>
908
- : number
909
- >
910
-
911
- /**
912
- * Allows you to perform aggregations operations on a Person.
913
- * Note, that providing `undefined` is treated as the value not being there.
914
- * Read more here: https://pris.ly/d/null-undefined
915
- * @param {PersonAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
916
- * @example
917
- * // Ordered by age ascending
918
- * // Where email contains prisma.io
919
- * // Limited to the 10 users
920
- * const aggregations = await prisma.user.aggregate({
921
- * _avg: {
922
- * age: true,
923
- * },
924
- * where: {
925
- * email: {
926
- * contains: "prisma.io",
927
- * },
928
- * },
929
- * orderBy: {
930
- * age: "asc",
931
- * },
932
- * take: 10,
933
- * })
934
- **/
935
- aggregate<T extends PersonAggregateArgs>(args: Prisma.Subset<T, PersonAggregateArgs>): Prisma.PrismaPromise<GetPersonAggregateType<T>>
936
-
937
- /**
938
- * Group by Person.
939
- * Note, that providing `undefined` is treated as the value not being there.
940
- * Read more here: https://pris.ly/d/null-undefined
941
- * @param {PersonGroupByArgs} args - Group by arguments.
942
- * @example
943
- * // Group by city, order by createdAt, get count
944
- * const result = await prisma.user.groupBy({
945
- * by: ['city', 'createdAt'],
946
- * orderBy: {
947
- * createdAt: true
948
- * },
949
- * _count: {
950
- * _all: true
951
- * },
952
- * })
953
- *
954
- **/
955
- groupBy<
956
- T extends PersonGroupByArgs,
957
- HasSelectOrTake extends Prisma.Or<
958
- Prisma.Extends<'skip', Prisma.Keys<T>>,
959
- Prisma.Extends<'take', Prisma.Keys<T>>
960
- >,
961
- OrderByArg extends Prisma.True extends HasSelectOrTake
962
- ? { orderBy: PersonGroupByArgs['orderBy'] }
963
- : { orderBy?: PersonGroupByArgs['orderBy'] },
964
- OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
965
- ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
966
- ByValid extends Prisma.Has<ByFields, OrderFields>,
967
- HavingFields extends Prisma.GetHavingFields<T['having']>,
968
- HavingValid extends Prisma.Has<ByFields, HavingFields>,
969
- ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
970
- InputErrors extends ByEmpty extends Prisma.True
971
- ? `Error: "by" must not be empty.`
972
- : HavingValid extends Prisma.False
973
- ? {
974
- [P in HavingFields]: P extends ByFields
975
- ? never
976
- : P extends string
977
- ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
978
- : [
979
- Error,
980
- 'Field ',
981
- P,
982
- ` in "having" needs to be provided in "by"`,
983
- ]
984
- }[HavingFields]
985
- : 'take' extends Prisma.Keys<T>
986
- ? 'orderBy' extends Prisma.Keys<T>
987
- ? ByValid extends Prisma.True
988
- ? {}
989
- : {
990
- [P in OrderFields]: P extends ByFields
991
- ? never
992
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
993
- }[OrderFields]
994
- : 'Error: If you provide "take", you also need to provide "orderBy"'
995
- : 'skip' extends Prisma.Keys<T>
996
- ? 'orderBy' extends Prisma.Keys<T>
997
- ? ByValid extends Prisma.True
998
- ? {}
999
- : {
1000
- [P in OrderFields]: P extends ByFields
1001
- ? never
1002
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1003
- }[OrderFields]
1004
- : 'Error: If you provide "skip", you also need to provide "orderBy"'
1005
- : ByValid extends Prisma.True
1006
- ? {}
1007
- : {
1008
- [P in OrderFields]: P extends ByFields
1009
- ? never
1010
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1011
- }[OrderFields]
1012
- >(args: Prisma.SubsetIntersection<T, PersonGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPersonGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1013
- /**
1014
- * Fields of the Person model
1015
- */
1016
- readonly fields: PersonFieldRefs;
1017
- }
1018
-
1019
- /**
1020
- * The delegate class that acts as a "Promise-like" for Person.
1021
- * Why is this prefixed with `Prisma__`?
1022
- * Because we want to prevent naming conflicts as mentioned in
1023
- * https://github.com/prisma/prisma-client-js/issues/707
1024
- */
1025
- export interface Prisma__PersonClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1026
- readonly [Symbol.toStringTag]: "PrismaPromise"
1027
- phones<T extends Prisma.Person$phonesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Person$phonesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PersonPhonePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1028
- address<T extends Prisma.PersonAddressDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PersonAddressDefaultArgs<ExtArgs>>): Prisma.Prisma__PersonAddressClient<runtime.Types.Result.GetResult<Prisma.$PersonAddressPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
1029
- /**
1030
- * Attaches callbacks for the resolution and/or rejection of the Promise.
1031
- * @param onfulfilled The callback to execute when the Promise is resolved.
1032
- * @param onrejected The callback to execute when the Promise is rejected.
1033
- * @returns A Promise for the completion of which ever callback is executed.
1034
- */
1035
- 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>
1036
- /**
1037
- * Attaches a callback for only the rejection of the Promise.
1038
- * @param onrejected The callback to execute when the Promise is rejected.
1039
- * @returns A Promise for the completion of the callback.
1040
- */
1041
- catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1042
- /**
1043
- * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1044
- * resolved value cannot be modified from the callback.
1045
- * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1046
- * @returns A Promise for the completion of the callback.
1047
- */
1048
- finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1049
- }
1050
-
1051
-
1052
-
1053
-
1054
- /**
1055
- * Fields of the Person model
1056
- */
1057
- export interface PersonFieldRefs {
1058
- readonly id: Prisma.FieldRef<"Person", 'Int'>
1059
- readonly name: Prisma.FieldRef<"Person", 'String'>
1060
- readonly active: Prisma.FieldRef<"Person", 'Boolean'>
1061
- readonly personAddressId: Prisma.FieldRef<"Person", 'Int'>
1062
- }
1063
-
1064
-
1065
- // Custom InputTypes
1066
- /**
1067
- * Person findUnique
1068
- */
1069
- export type PersonFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1070
- /**
1071
- * Select specific fields to fetch from the Person
1072
- */
1073
- select?: Prisma.PersonSelect<ExtArgs> | null
1074
- /**
1075
- * Omit specific fields from the Person
1076
- */
1077
- omit?: Prisma.PersonOmit<ExtArgs> | null
1078
- /**
1079
- * Choose, which related nodes to fetch as well
1080
- */
1081
- include?: Prisma.PersonInclude<ExtArgs> | null
1082
- /**
1083
- * Filter, which Person to fetch.
1084
- */
1085
- where: Prisma.PersonWhereUniqueInput
1086
- }
1087
-
1088
- /**
1089
- * Person findUniqueOrThrow
1090
- */
1091
- export type PersonFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1092
- /**
1093
- * Select specific fields to fetch from the Person
1094
- */
1095
- select?: Prisma.PersonSelect<ExtArgs> | null
1096
- /**
1097
- * Omit specific fields from the Person
1098
- */
1099
- omit?: Prisma.PersonOmit<ExtArgs> | null
1100
- /**
1101
- * Choose, which related nodes to fetch as well
1102
- */
1103
- include?: Prisma.PersonInclude<ExtArgs> | null
1104
- /**
1105
- * Filter, which Person to fetch.
1106
- */
1107
- where: Prisma.PersonWhereUniqueInput
1108
- }
1109
-
1110
- /**
1111
- * Person findFirst
1112
- */
1113
- export type PersonFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1114
- /**
1115
- * Select specific fields to fetch from the Person
1116
- */
1117
- select?: Prisma.PersonSelect<ExtArgs> | null
1118
- /**
1119
- * Omit specific fields from the Person
1120
- */
1121
- omit?: Prisma.PersonOmit<ExtArgs> | null
1122
- /**
1123
- * Choose, which related nodes to fetch as well
1124
- */
1125
- include?: Prisma.PersonInclude<ExtArgs> | null
1126
- /**
1127
- * Filter, which Person to fetch.
1128
- */
1129
- where?: Prisma.PersonWhereInput
1130
- /**
1131
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1132
- *
1133
- * Determine the order of People to fetch.
1134
- */
1135
- orderBy?: Prisma.PersonOrderByWithRelationInput | Prisma.PersonOrderByWithRelationInput[]
1136
- /**
1137
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1138
- *
1139
- * Sets the position for searching for People.
1140
- */
1141
- cursor?: Prisma.PersonWhereUniqueInput
1142
- /**
1143
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1144
- *
1145
- * Take `±n` People from the position of the cursor.
1146
- */
1147
- take?: number
1148
- /**
1149
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1150
- *
1151
- * Skip the first `n` People.
1152
- */
1153
- skip?: number
1154
- /**
1155
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1156
- *
1157
- * Filter by unique combinations of People.
1158
- */
1159
- distinct?: Prisma.PersonScalarFieldEnum | Prisma.PersonScalarFieldEnum[]
1160
- }
1161
-
1162
- /**
1163
- * Person findFirstOrThrow
1164
- */
1165
- export type PersonFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1166
- /**
1167
- * Select specific fields to fetch from the Person
1168
- */
1169
- select?: Prisma.PersonSelect<ExtArgs> | null
1170
- /**
1171
- * Omit specific fields from the Person
1172
- */
1173
- omit?: Prisma.PersonOmit<ExtArgs> | null
1174
- /**
1175
- * Choose, which related nodes to fetch as well
1176
- */
1177
- include?: Prisma.PersonInclude<ExtArgs> | null
1178
- /**
1179
- * Filter, which Person to fetch.
1180
- */
1181
- where?: Prisma.PersonWhereInput
1182
- /**
1183
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1184
- *
1185
- * Determine the order of People to fetch.
1186
- */
1187
- orderBy?: Prisma.PersonOrderByWithRelationInput | Prisma.PersonOrderByWithRelationInput[]
1188
- /**
1189
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1190
- *
1191
- * Sets the position for searching for People.
1192
- */
1193
- cursor?: Prisma.PersonWhereUniqueInput
1194
- /**
1195
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1196
- *
1197
- * Take `±n` People from the position of the cursor.
1198
- */
1199
- take?: number
1200
- /**
1201
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1202
- *
1203
- * Skip the first `n` People.
1204
- */
1205
- skip?: number
1206
- /**
1207
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1208
- *
1209
- * Filter by unique combinations of People.
1210
- */
1211
- distinct?: Prisma.PersonScalarFieldEnum | Prisma.PersonScalarFieldEnum[]
1212
- }
1213
-
1214
- /**
1215
- * Person findMany
1216
- */
1217
- export type PersonFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1218
- /**
1219
- * Select specific fields to fetch from the Person
1220
- */
1221
- select?: Prisma.PersonSelect<ExtArgs> | null
1222
- /**
1223
- * Omit specific fields from the Person
1224
- */
1225
- omit?: Prisma.PersonOmit<ExtArgs> | null
1226
- /**
1227
- * Choose, which related nodes to fetch as well
1228
- */
1229
- include?: Prisma.PersonInclude<ExtArgs> | null
1230
- /**
1231
- * Filter, which People to fetch.
1232
- */
1233
- where?: Prisma.PersonWhereInput
1234
- /**
1235
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1236
- *
1237
- * Determine the order of People to fetch.
1238
- */
1239
- orderBy?: Prisma.PersonOrderByWithRelationInput | Prisma.PersonOrderByWithRelationInput[]
1240
- /**
1241
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1242
- *
1243
- * Sets the position for listing People.
1244
- */
1245
- cursor?: Prisma.PersonWhereUniqueInput
1246
- /**
1247
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1248
- *
1249
- * Take `±n` People from the position of the cursor.
1250
- */
1251
- take?: number
1252
- /**
1253
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1254
- *
1255
- * Skip the first `n` People.
1256
- */
1257
- skip?: number
1258
- distinct?: Prisma.PersonScalarFieldEnum | Prisma.PersonScalarFieldEnum[]
1259
- }
1260
-
1261
- /**
1262
- * Person create
1263
- */
1264
- export type PersonCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1265
- /**
1266
- * Select specific fields to fetch from the Person
1267
- */
1268
- select?: Prisma.PersonSelect<ExtArgs> | null
1269
- /**
1270
- * Omit specific fields from the Person
1271
- */
1272
- omit?: Prisma.PersonOmit<ExtArgs> | null
1273
- /**
1274
- * Choose, which related nodes to fetch as well
1275
- */
1276
- include?: Prisma.PersonInclude<ExtArgs> | null
1277
- /**
1278
- * The data needed to create a Person.
1279
- */
1280
- data: Prisma.XOR<Prisma.PersonCreateInput, Prisma.PersonUncheckedCreateInput>
1281
- }
1282
-
1283
- /**
1284
- * Person createMany
1285
- */
1286
- export type PersonCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1287
- /**
1288
- * The data used to create many People.
1289
- */
1290
- data: Prisma.PersonCreateManyInput | Prisma.PersonCreateManyInput[]
1291
- skipDuplicates?: boolean
1292
- }
1293
-
1294
- /**
1295
- * Person createManyAndReturn
1296
- */
1297
- export type PersonCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1298
- /**
1299
- * Select specific fields to fetch from the Person
1300
- */
1301
- select?: Prisma.PersonSelectCreateManyAndReturn<ExtArgs> | null
1302
- /**
1303
- * Omit specific fields from the Person
1304
- */
1305
- omit?: Prisma.PersonOmit<ExtArgs> | null
1306
- /**
1307
- * The data used to create many People.
1308
- */
1309
- data: Prisma.PersonCreateManyInput | Prisma.PersonCreateManyInput[]
1310
- skipDuplicates?: boolean
1311
- /**
1312
- * Choose, which related nodes to fetch as well
1313
- */
1314
- include?: Prisma.PersonIncludeCreateManyAndReturn<ExtArgs> | null
1315
- }
1316
-
1317
- /**
1318
- * Person update
1319
- */
1320
- export type PersonUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1321
- /**
1322
- * Select specific fields to fetch from the Person
1323
- */
1324
- select?: Prisma.PersonSelect<ExtArgs> | null
1325
- /**
1326
- * Omit specific fields from the Person
1327
- */
1328
- omit?: Prisma.PersonOmit<ExtArgs> | null
1329
- /**
1330
- * Choose, which related nodes to fetch as well
1331
- */
1332
- include?: Prisma.PersonInclude<ExtArgs> | null
1333
- /**
1334
- * The data needed to update a Person.
1335
- */
1336
- data: Prisma.XOR<Prisma.PersonUpdateInput, Prisma.PersonUncheckedUpdateInput>
1337
- /**
1338
- * Choose, which Person to update.
1339
- */
1340
- where: Prisma.PersonWhereUniqueInput
1341
- }
1342
-
1343
- /**
1344
- * Person updateMany
1345
- */
1346
- export type PersonUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1347
- /**
1348
- * The data used to update People.
1349
- */
1350
- data: Prisma.XOR<Prisma.PersonUpdateManyMutationInput, Prisma.PersonUncheckedUpdateManyInput>
1351
- /**
1352
- * Filter which People to update
1353
- */
1354
- where?: Prisma.PersonWhereInput
1355
- /**
1356
- * Limit how many People to update.
1357
- */
1358
- limit?: number
1359
- }
1360
-
1361
- /**
1362
- * Person updateManyAndReturn
1363
- */
1364
- export type PersonUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1365
- /**
1366
- * Select specific fields to fetch from the Person
1367
- */
1368
- select?: Prisma.PersonSelectUpdateManyAndReturn<ExtArgs> | null
1369
- /**
1370
- * Omit specific fields from the Person
1371
- */
1372
- omit?: Prisma.PersonOmit<ExtArgs> | null
1373
- /**
1374
- * The data used to update People.
1375
- */
1376
- data: Prisma.XOR<Prisma.PersonUpdateManyMutationInput, Prisma.PersonUncheckedUpdateManyInput>
1377
- /**
1378
- * Filter which People to update
1379
- */
1380
- where?: Prisma.PersonWhereInput
1381
- /**
1382
- * Limit how many People to update.
1383
- */
1384
- limit?: number
1385
- /**
1386
- * Choose, which related nodes to fetch as well
1387
- */
1388
- include?: Prisma.PersonIncludeUpdateManyAndReturn<ExtArgs> | null
1389
- }
1390
-
1391
- /**
1392
- * Person upsert
1393
- */
1394
- export type PersonUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1395
- /**
1396
- * Select specific fields to fetch from the Person
1397
- */
1398
- select?: Prisma.PersonSelect<ExtArgs> | null
1399
- /**
1400
- * Omit specific fields from the Person
1401
- */
1402
- omit?: Prisma.PersonOmit<ExtArgs> | null
1403
- /**
1404
- * Choose, which related nodes to fetch as well
1405
- */
1406
- include?: Prisma.PersonInclude<ExtArgs> | null
1407
- /**
1408
- * The filter to search for the Person to update in case it exists.
1409
- */
1410
- where: Prisma.PersonWhereUniqueInput
1411
- /**
1412
- * In case the Person found by the `where` argument doesn't exist, create a new Person with this data.
1413
- */
1414
- create: Prisma.XOR<Prisma.PersonCreateInput, Prisma.PersonUncheckedCreateInput>
1415
- /**
1416
- * In case the Person was found with the provided `where` argument, update it with this data.
1417
- */
1418
- update: Prisma.XOR<Prisma.PersonUpdateInput, Prisma.PersonUncheckedUpdateInput>
1419
- }
1420
-
1421
- /**
1422
- * Person delete
1423
- */
1424
- export type PersonDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1425
- /**
1426
- * Select specific fields to fetch from the Person
1427
- */
1428
- select?: Prisma.PersonSelect<ExtArgs> | null
1429
- /**
1430
- * Omit specific fields from the Person
1431
- */
1432
- omit?: Prisma.PersonOmit<ExtArgs> | null
1433
- /**
1434
- * Choose, which related nodes to fetch as well
1435
- */
1436
- include?: Prisma.PersonInclude<ExtArgs> | null
1437
- /**
1438
- * Filter which Person to delete.
1439
- */
1440
- where: Prisma.PersonWhereUniqueInput
1441
- }
1442
-
1443
- /**
1444
- * Person deleteMany
1445
- */
1446
- export type PersonDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1447
- /**
1448
- * Filter which People to delete
1449
- */
1450
- where?: Prisma.PersonWhereInput
1451
- /**
1452
- * Limit how many People to delete.
1453
- */
1454
- limit?: number
1455
- }
1456
-
1457
- /**
1458
- * Person.phones
1459
- */
1460
- export type Person$phonesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1461
- /**
1462
- * Select specific fields to fetch from the PersonPhone
1463
- */
1464
- select?: Prisma.PersonPhoneSelect<ExtArgs> | null
1465
- /**
1466
- * Omit specific fields from the PersonPhone
1467
- */
1468
- omit?: Prisma.PersonPhoneOmit<ExtArgs> | null
1469
- /**
1470
- * Choose, which related nodes to fetch as well
1471
- */
1472
- include?: Prisma.PersonPhoneInclude<ExtArgs> | null
1473
- where?: Prisma.PersonPhoneWhereInput
1474
- orderBy?: Prisma.PersonPhoneOrderByWithRelationInput | Prisma.PersonPhoneOrderByWithRelationInput[]
1475
- cursor?: Prisma.PersonPhoneWhereUniqueInput
1476
- take?: number
1477
- skip?: number
1478
- distinct?: Prisma.PersonPhoneScalarFieldEnum | Prisma.PersonPhoneScalarFieldEnum[]
1479
- }
1480
-
1481
- /**
1482
- * Person without action
1483
- */
1484
- export type PersonDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1485
- /**
1486
- * Select specific fields to fetch from the Person
1487
- */
1488
- select?: Prisma.PersonSelect<ExtArgs> | null
1489
- /**
1490
- * Omit specific fields from the Person
1491
- */
1492
- omit?: Prisma.PersonOmit<ExtArgs> | null
1493
- /**
1494
- * Choose, which related nodes to fetch as well
1495
- */
1496
- include?: Prisma.PersonInclude<ExtArgs> | null
1497
- }