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