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