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