@prenta/core 8.9.2 → 8.11.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 (294) hide show
  1. package/CHANGELOG.md +105 -0
  2. package/dist/actions.d.ts +25 -0
  3. package/dist/actions.d.ts.map +1 -1
  4. package/dist/actions.js +51 -4
  5. package/dist/actions.js.map +1 -1
  6. package/dist/ai/batch-links.d.ts +105 -0
  7. package/dist/ai/batch-links.d.ts.map +1 -0
  8. package/dist/ai/batch-links.js +667 -0
  9. package/dist/ai/batch-links.js.map +1 -0
  10. package/dist/ai/batch-list.d.ts +127 -4
  11. package/dist/ai/batch-list.d.ts.map +1 -1
  12. package/dist/ai/batch-list.js +250 -14
  13. package/dist/ai/batch-list.js.map +1 -1
  14. package/dist/ai/providers/http.d.ts +4 -0
  15. package/dist/ai/providers/http.d.ts.map +1 -1
  16. package/dist/ai/providers/http.js +9 -8
  17. package/dist/ai/providers/http.js.map +1 -1
  18. package/dist/ai/tasks/editor-text.d.ts +39 -0
  19. package/dist/ai/tasks/editor-text.d.ts.map +1 -0
  20. package/dist/ai/tasks/editor-text.js +45 -0
  21. package/dist/ai/tasks/editor-text.js.map +1 -0
  22. package/dist/ai/tasks/link-embeddings.d.ts +22 -0
  23. package/dist/ai/tasks/link-embeddings.d.ts.map +1 -1
  24. package/dist/ai/tasks/link-embeddings.js +24 -10
  25. package/dist/ai/tasks/link-embeddings.js.map +1 -1
  26. package/dist/ai/usage.d.ts +7 -0
  27. package/dist/ai/usage.d.ts.map +1 -1
  28. package/dist/ai/usage.js +11 -0
  29. package/dist/ai/usage.js.map +1 -1
  30. package/dist/api/guarded-db.d.ts +6 -0
  31. package/dist/api/guarded-db.d.ts.map +1 -1
  32. package/dist/api/guarded-db.js +13 -1
  33. package/dist/api/guarded-db.js.map +1 -1
  34. package/dist/api/handlers.d.ts.map +1 -1
  35. package/dist/api/handlers.js +2 -0
  36. package/dist/api/handlers.js.map +1 -1
  37. package/dist/api/openapi.d.ts.map +1 -1
  38. package/dist/api/openapi.js +103 -0
  39. package/dist/api/openapi.js.map +1 -1
  40. package/dist/api/route-helpers/forms.d.ts.map +1 -1
  41. package/dist/api/route-helpers/forms.js +7 -1
  42. package/dist/api/route-helpers/forms.js.map +1 -1
  43. package/dist/api/routes/ai-authoring.d.ts.map +1 -1
  44. package/dist/api/routes/ai-authoring.js +1 -0
  45. package/dist/api/routes/ai-authoring.js.map +1 -1
  46. package/dist/api/routes/ai-seo.d.ts.map +1 -1
  47. package/dist/api/routes/ai-seo.js +20 -18
  48. package/dist/api/routes/ai-seo.js.map +1 -1
  49. package/dist/api/routes/media.d.ts.map +1 -1
  50. package/dist/api/routes/media.js +3 -1
  51. package/dist/api/routes/media.js.map +1 -1
  52. package/dist/api/routes/scheduling.d.ts.map +1 -1
  53. package/dist/api/routes/scheduling.js +33 -2
  54. package/dist/api/routes/scheduling.js.map +1 -1
  55. package/dist/appearance/color.d.ts +17 -0
  56. package/dist/appearance/color.d.ts.map +1 -1
  57. package/dist/appearance/color.js +162 -1
  58. package/dist/appearance/color.js.map +1 -1
  59. package/dist/appearance/index.d.ts +3 -3
  60. package/dist/appearance/index.d.ts.map +1 -1
  61. package/dist/appearance/index.js +2 -2
  62. package/dist/appearance/index.js.map +1 -1
  63. package/dist/appearance/resolve.d.ts.map +1 -1
  64. package/dist/appearance/resolve.js +4 -2
  65. package/dist/appearance/resolve.js.map +1 -1
  66. package/dist/appearance/theme-tokens.d.ts +60 -11
  67. package/dist/appearance/theme-tokens.d.ts.map +1 -1
  68. package/dist/appearance/theme-tokens.js +184 -175
  69. package/dist/appearance/theme-tokens.js.map +1 -1
  70. package/dist/appearance/types.d.ts +16 -2
  71. package/dist/appearance/types.d.ts.map +1 -1
  72. package/dist/astro-site.d.ts +1 -11
  73. package/dist/astro-site.d.ts.map +1 -1
  74. package/dist/astro-site.js +4 -0
  75. package/dist/astro-site.js.map +1 -1
  76. package/dist/auth/team.d.ts +1 -0
  77. package/dist/auth/team.d.ts.map +1 -1
  78. package/dist/auth/team.js +1 -1
  79. package/dist/auth/team.js.map +1 -1
  80. package/dist/cache/http.d.ts +20 -0
  81. package/dist/cache/http.d.ts.map +1 -1
  82. package/dist/cache/http.js +42 -0
  83. package/dist/cache/http.js.map +1 -1
  84. package/dist/chrome/announcement.d.ts +30 -0
  85. package/dist/chrome/announcement.d.ts.map +1 -0
  86. package/dist/chrome/announcement.js +190 -0
  87. package/dist/chrome/announcement.js.map +1 -0
  88. package/dist/chrome/codegen.d.ts +17 -0
  89. package/dist/chrome/codegen.d.ts.map +1 -0
  90. package/dist/chrome/codegen.js +96 -0
  91. package/dist/chrome/codegen.js.map +1 -0
  92. package/dist/chrome/contract.d.ts +161 -0
  93. package/dist/chrome/contract.d.ts.map +1 -0
  94. package/dist/chrome/contract.js +2 -0
  95. package/dist/chrome/contract.js.map +1 -0
  96. package/dist/chrome/memory-store.d.ts +15 -0
  97. package/dist/chrome/memory-store.d.ts.map +1 -0
  98. package/dist/chrome/memory-store.js +54 -0
  99. package/dist/chrome/memory-store.js.map +1 -0
  100. package/dist/chrome/overrides.d.ts +25 -0
  101. package/dist/chrome/overrides.d.ts.map +1 -0
  102. package/dist/chrome/overrides.js +180 -0
  103. package/dist/chrome/overrides.js.map +1 -0
  104. package/dist/chrome/parse.d.ts +36 -0
  105. package/dist/chrome/parse.d.ts.map +1 -0
  106. package/dist/chrome/parse.js +277 -0
  107. package/dist/chrome/parse.js.map +1 -0
  108. package/dist/chrome/prisma-store.d.ts +11 -0
  109. package/dist/chrome/prisma-store.d.ts.map +1 -0
  110. package/dist/chrome/prisma-store.js +48 -0
  111. package/dist/chrome/prisma-store.js.map +1 -0
  112. package/dist/chrome/public.d.ts +22 -0
  113. package/dist/chrome/public.d.ts.map +1 -0
  114. package/dist/chrome/public.js +181 -0
  115. package/dist/chrome/public.js.map +1 -0
  116. package/dist/chrome/resolve.d.ts +36 -0
  117. package/dist/chrome/resolve.d.ts.map +1 -0
  118. package/dist/chrome/resolve.js +165 -0
  119. package/dist/chrome/resolve.js.map +1 -0
  120. package/dist/chrome/revalidate.d.ts +9 -0
  121. package/dist/chrome/revalidate.d.ts.map +1 -0
  122. package/dist/chrome/revalidate.js +51 -0
  123. package/dist/chrome/revalidate.js.map +1 -0
  124. package/dist/chrome/routes.d.ts +14 -0
  125. package/dist/chrome/routes.d.ts.map +1 -0
  126. package/dist/chrome/routes.js +349 -0
  127. package/dist/chrome/routes.js.map +1 -0
  128. package/dist/chrome/schema.d.ts +231 -0
  129. package/dist/chrome/schema.d.ts.map +1 -0
  130. package/dist/chrome/schema.js +73 -0
  131. package/dist/chrome/schema.js.map +1 -0
  132. package/dist/chrome/service.d.ts +76 -0
  133. package/dist/chrome/service.d.ts.map +1 -0
  134. package/dist/chrome/service.js +286 -0
  135. package/dist/chrome/service.js.map +1 -0
  136. package/dist/chrome/settings.d.ts +14 -0
  137. package/dist/chrome/settings.d.ts.map +1 -0
  138. package/dist/chrome/settings.js +142 -0
  139. package/dist/chrome/settings.js.map +1 -0
  140. package/dist/chrome/store.d.ts +48 -0
  141. package/dist/chrome/store.d.ts.map +1 -0
  142. package/dist/chrome/store.js +26 -0
  143. package/dist/chrome/store.js.map +1 -0
  144. package/dist/chrome/values.d.ts +98 -0
  145. package/dist/chrome/values.d.ts.map +1 -0
  146. package/dist/chrome/values.js +491 -0
  147. package/dist/chrome/values.js.map +1 -0
  148. package/dist/config/define.d.ts +2 -0
  149. package/dist/config/define.d.ts.map +1 -1
  150. package/dist/config/define.js +2 -0
  151. package/dist/config/define.js.map +1 -1
  152. package/dist/db/model-types.d.ts +62 -0
  153. package/dist/db/model-types.d.ts.map +1 -1
  154. package/dist/forms/attribution-settings.d.ts +23 -0
  155. package/dist/forms/attribution-settings.d.ts.map +1 -0
  156. package/dist/forms/attribution-settings.js +42 -0
  157. package/dist/forms/attribution-settings.js.map +1 -0
  158. package/dist/forms/attribution.d.ts +5 -1
  159. package/dist/forms/attribution.d.ts.map +1 -1
  160. package/dist/forms/attribution.js +6 -4
  161. package/dist/forms/attribution.js.map +1 -1
  162. package/dist/forms/client-validation.d.ts.map +1 -1
  163. package/dist/forms/client-validation.js +3 -0
  164. package/dist/forms/client-validation.js.map +1 -1
  165. package/dist/forms/form-model.d.ts +109 -0
  166. package/dist/forms/form-model.d.ts.map +1 -0
  167. package/dist/forms/form-model.js +192 -0
  168. package/dist/forms/form-model.js.map +1 -0
  169. package/dist/forms/index.d.ts +2 -2
  170. package/dist/forms/index.d.ts.map +1 -1
  171. package/dist/forms/index.js +1 -1
  172. package/dist/forms/index.js.map +1 -1
  173. package/dist/forms/service.d.ts +19 -1
  174. package/dist/forms/service.d.ts.map +1 -1
  175. package/dist/forms/service.js +152 -0
  176. package/dist/forms/service.js.map +1 -1
  177. package/dist/forms/spam.d.ts +0 -12
  178. package/dist/forms/spam.d.ts.map +1 -1
  179. package/dist/forms/spam.js +30 -0
  180. package/dist/forms/spam.js.map +1 -1
  181. package/dist/forms/submission.d.ts +7 -0
  182. package/dist/forms/submission.d.ts.map +1 -1
  183. package/dist/forms/submission.js +33 -0
  184. package/dist/forms/submission.js.map +1 -1
  185. package/dist/forms/types.d.ts +26 -1
  186. package/dist/forms/types.d.ts.map +1 -1
  187. package/dist/forms/types.js +9 -1
  188. package/dist/forms/types.js.map +1 -1
  189. package/dist/generated/browser.d.ts +35 -3
  190. package/dist/generated/client.d.ts +35 -3
  191. package/dist/generated/internal/class.d.ts +44 -0
  192. package/dist/generated/internal/class.js +4 -4
  193. package/dist/generated/internal/prismaNamespace.d.ts +403 -1
  194. package/dist/generated/internal/prismaNamespace.js +95 -1
  195. package/dist/generated/internal/prismaNamespaceBrowser.d.ts +102 -0
  196. package/dist/generated/internal/prismaNamespaceBrowser.js +95 -1
  197. package/dist/generated/models/ChromeRegion.d.ts +1203 -0
  198. package/dist/generated/models/ChromeRegion.js +1 -0
  199. package/dist/generated/models/Job.d.ts +732 -5
  200. package/dist/generated/models/JobEvent.d.ts +1339 -0
  201. package/dist/generated/models/JobEvent.js +1 -0
  202. package/dist/generated/models/JobReviewItem.d.ts +1470 -0
  203. package/dist/generated/models/JobReviewItem.js +1 -0
  204. package/dist/generated/models/SystemSetting.d.ts +952 -0
  205. package/dist/generated/models/SystemSetting.js +1 -0
  206. package/dist/generated/models.d.ts +4 -0
  207. package/dist/index.d.ts +12 -5
  208. package/dist/index.d.ts.map +1 -1
  209. package/dist/index.js +8 -3
  210. package/dist/index.js.map +1 -1
  211. package/dist/jobs/batch-ai.d.ts +53 -0
  212. package/dist/jobs/batch-ai.d.ts.map +1 -0
  213. package/dist/jobs/batch-ai.js +314 -0
  214. package/dist/jobs/batch-ai.js.map +1 -0
  215. package/dist/jobs/contract.d.ts +193 -0
  216. package/dist/jobs/contract.d.ts.map +1 -0
  217. package/dist/jobs/contract.js +2 -0
  218. package/dist/jobs/contract.js.map +1 -0
  219. package/dist/jobs/error-text.d.ts +23 -0
  220. package/dist/jobs/error-text.d.ts.map +1 -0
  221. package/dist/jobs/error-text.js +110 -0
  222. package/dist/jobs/error-text.js.map +1 -0
  223. package/dist/jobs/handlers.d.ts.map +1 -1
  224. package/dist/jobs/handlers.js +48 -7
  225. package/dist/jobs/handlers.js.map +1 -1
  226. package/dist/jobs/memory-store.d.ts +26 -2
  227. package/dist/jobs/memory-store.d.ts.map +1 -1
  228. package/dist/jobs/memory-store.js +157 -3
  229. package/dist/jobs/memory-store.js.map +1 -1
  230. package/dist/jobs/outcomes.d.ts +46 -0
  231. package/dist/jobs/outcomes.d.ts.map +1 -0
  232. package/dist/jobs/outcomes.js +251 -0
  233. package/dist/jobs/outcomes.js.map +1 -0
  234. package/dist/jobs/prisma-store.d.ts +14 -2
  235. package/dist/jobs/prisma-store.d.ts.map +1 -1
  236. package/dist/jobs/prisma-store.js +257 -15
  237. package/dist/jobs/prisma-store.js.map +1 -1
  238. package/dist/jobs/queue.d.ts +62 -2
  239. package/dist/jobs/queue.d.ts.map +1 -1
  240. package/dist/jobs/queue.js +412 -36
  241. package/dist/jobs/queue.js.map +1 -1
  242. package/dist/jobs/retention.d.ts +11 -0
  243. package/dist/jobs/retention.d.ts.map +1 -0
  244. package/dist/jobs/retention.js +18 -0
  245. package/dist/jobs/retention.js.map +1 -0
  246. package/dist/jobs/review.d.ts +111 -0
  247. package/dist/jobs/review.d.ts.map +1 -0
  248. package/dist/jobs/review.js +461 -0
  249. package/dist/jobs/review.js.map +1 -0
  250. package/dist/jobs/routes.d.ts.map +1 -1
  251. package/dist/jobs/routes.js +491 -16
  252. package/dist/jobs/routes.js.map +1 -1
  253. package/dist/jobs/serialize.d.ts +40 -0
  254. package/dist/jobs/serialize.d.ts.map +1 -0
  255. package/dist/jobs/serialize.js +275 -0
  256. package/dist/jobs/serialize.js.map +1 -0
  257. package/dist/jobs/types.d.ts +141 -2
  258. package/dist/jobs/types.d.ts.map +1 -1
  259. package/dist/jobs/worker-status.d.ts +27 -0
  260. package/dist/jobs/worker-status.d.ts.map +1 -0
  261. package/dist/jobs/worker-status.js +66 -0
  262. package/dist/jobs/worker-status.js.map +1 -0
  263. package/dist/media/optimize.d.ts.map +1 -1
  264. package/dist/media/optimize.js +4 -2
  265. package/dist/media/optimize.js.map +1 -1
  266. package/dist/next-site.d.ts +1 -0
  267. package/dist/next-site.d.ts.map +1 -1
  268. package/dist/next-site.js +3 -0
  269. package/dist/next-site.js.map +1 -1
  270. package/dist/seo/audit-runner.d.ts.map +1 -1
  271. package/dist/seo/audit-runner.js +23 -2
  272. package/dist/seo/audit-runner.js.map +1 -1
  273. package/dist/seo/issue-fix-link-insert.d.ts +11 -0
  274. package/dist/seo/issue-fix-link-insert.d.ts.map +1 -1
  275. package/dist/seo/issue-fix-link-insert.js +122 -8
  276. package/dist/seo/issue-fix-link-insert.js.map +1 -1
  277. package/dist/server-site.d.ts.map +1 -1
  278. package/dist/server-site.js +15 -0
  279. package/dist/server-site.js.map +1 -1
  280. package/dist/site.d.ts +8 -0
  281. package/dist/site.d.ts.map +1 -1
  282. package/dist/site.js +6 -0
  283. package/dist/site.js.map +1 -1
  284. package/dist/webhooks/index.d.ts +3 -1
  285. package/dist/webhooks/index.d.ts.map +1 -1
  286. package/dist/webhooks/index.js.map +1 -1
  287. package/package.json +6 -1
  288. package/prisma/migrations/0025_job_cancel_review/down.sql +60 -0
  289. package/prisma/migrations/0025_job_cancel_review/migration.sql +56 -0
  290. package/prisma/migrations/0026_job_creator_system_settings/down.sql +30 -0
  291. package/prisma/migrations/0026_job_creator_system_settings/migration.sql +14 -0
  292. package/prisma/migrations/0027_chrome_regions/down.sql +24 -0
  293. package/prisma/migrations/0027_chrome_regions/migration.sql +16 -0
  294. package/prisma/schema.prisma +105 -15
@@ -0,0 +1,952 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model SystemSetting
5
+ * Machine-written state keyed by name, such as the job worker's last tick
6
+ * (`jobs.worker`). Separate from the `settings` global so a background write
7
+ * can never overwrite an admin's save, and no user id is needed.
8
+ */
9
+ export type SystemSettingModel = runtime.Types.Result.DefaultSelection<Prisma.$SystemSettingPayload>;
10
+ export type AggregateSystemSetting = {
11
+ _count: SystemSettingCountAggregateOutputType | null;
12
+ _min: SystemSettingMinAggregateOutputType | null;
13
+ _max: SystemSettingMaxAggregateOutputType | null;
14
+ };
15
+ export type SystemSettingMinAggregateOutputType = {
16
+ key: string | null;
17
+ updatedAt: Date | null;
18
+ };
19
+ export type SystemSettingMaxAggregateOutputType = {
20
+ key: string | null;
21
+ updatedAt: Date | null;
22
+ };
23
+ export type SystemSettingCountAggregateOutputType = {
24
+ key: number;
25
+ value: number;
26
+ updatedAt: number;
27
+ _all: number;
28
+ };
29
+ export type SystemSettingMinAggregateInputType = {
30
+ key?: true;
31
+ updatedAt?: true;
32
+ };
33
+ export type SystemSettingMaxAggregateInputType = {
34
+ key?: true;
35
+ updatedAt?: true;
36
+ };
37
+ export type SystemSettingCountAggregateInputType = {
38
+ key?: true;
39
+ value?: true;
40
+ updatedAt?: true;
41
+ _all?: true;
42
+ };
43
+ export type SystemSettingAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
44
+ /**
45
+ * Filter which SystemSetting to aggregate.
46
+ */
47
+ where?: Prisma.SystemSettingWhereInput;
48
+ /**
49
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
50
+ *
51
+ * Determine the order of SystemSettings to fetch.
52
+ */
53
+ orderBy?: Prisma.SystemSettingOrderByWithRelationInput | Prisma.SystemSettingOrderByWithRelationInput[];
54
+ /**
55
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
56
+ *
57
+ * Sets the start position
58
+ */
59
+ cursor?: Prisma.SystemSettingWhereUniqueInput;
60
+ /**
61
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
62
+ *
63
+ * Take `±n` SystemSettings from the position of the cursor.
64
+ */
65
+ take?: number;
66
+ /**
67
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
68
+ *
69
+ * Skip the first `n` SystemSettings.
70
+ */
71
+ skip?: number;
72
+ /**
73
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
74
+ *
75
+ * Count returned SystemSettings
76
+ **/
77
+ _count?: true | SystemSettingCountAggregateInputType;
78
+ /**
79
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
80
+ *
81
+ * Select which fields to find the minimum value
82
+ **/
83
+ _min?: SystemSettingMinAggregateInputType;
84
+ /**
85
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
86
+ *
87
+ * Select which fields to find the maximum value
88
+ **/
89
+ _max?: SystemSettingMaxAggregateInputType;
90
+ };
91
+ export type GetSystemSettingAggregateType<T extends SystemSettingAggregateArgs> = {
92
+ [P in keyof T & keyof AggregateSystemSetting]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateSystemSetting[P]> : Prisma.GetScalarType<T[P], AggregateSystemSetting[P]>;
93
+ };
94
+ export type SystemSettingGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
95
+ where?: Prisma.SystemSettingWhereInput;
96
+ orderBy?: Prisma.SystemSettingOrderByWithAggregationInput | Prisma.SystemSettingOrderByWithAggregationInput[];
97
+ by: Prisma.SystemSettingScalarFieldEnum[] | Prisma.SystemSettingScalarFieldEnum;
98
+ having?: Prisma.SystemSettingScalarWhereWithAggregatesInput;
99
+ take?: number;
100
+ skip?: number;
101
+ _count?: SystemSettingCountAggregateInputType | true;
102
+ _min?: SystemSettingMinAggregateInputType;
103
+ _max?: SystemSettingMaxAggregateInputType;
104
+ };
105
+ export type SystemSettingGroupByOutputType = {
106
+ key: string;
107
+ value: runtime.JsonValue;
108
+ updatedAt: Date;
109
+ _count: SystemSettingCountAggregateOutputType | null;
110
+ _min: SystemSettingMinAggregateOutputType | null;
111
+ _max: SystemSettingMaxAggregateOutputType | null;
112
+ };
113
+ export type GetSystemSettingGroupByPayload<T extends SystemSettingGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<SystemSettingGroupByOutputType, T['by']> & {
114
+ [P in ((keyof T) & (keyof SystemSettingGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], SystemSettingGroupByOutputType[P]> : Prisma.GetScalarType<T[P], SystemSettingGroupByOutputType[P]>;
115
+ }>>;
116
+ export type SystemSettingWhereInput = {
117
+ AND?: Prisma.SystemSettingWhereInput | Prisma.SystemSettingWhereInput[];
118
+ OR?: Prisma.SystemSettingWhereInput[];
119
+ NOT?: Prisma.SystemSettingWhereInput | Prisma.SystemSettingWhereInput[];
120
+ key?: Prisma.StringFilter<"SystemSetting"> | string;
121
+ value?: Prisma.JsonFilter<"SystemSetting">;
122
+ updatedAt?: Prisma.DateTimeFilter<"SystemSetting"> | Date | string;
123
+ };
124
+ export type SystemSettingOrderByWithRelationInput = {
125
+ key?: Prisma.SortOrder;
126
+ value?: Prisma.SortOrder;
127
+ updatedAt?: Prisma.SortOrder;
128
+ _relevance?: Prisma.SystemSettingOrderByRelevanceInput;
129
+ };
130
+ export type SystemSettingWhereUniqueInput = Prisma.AtLeast<{
131
+ key?: string;
132
+ AND?: Prisma.SystemSettingWhereInput | Prisma.SystemSettingWhereInput[];
133
+ OR?: Prisma.SystemSettingWhereInput[];
134
+ NOT?: Prisma.SystemSettingWhereInput | Prisma.SystemSettingWhereInput[];
135
+ value?: Prisma.JsonFilter<"SystemSetting">;
136
+ updatedAt?: Prisma.DateTimeFilter<"SystemSetting"> | Date | string;
137
+ }, "key">;
138
+ export type SystemSettingOrderByWithAggregationInput = {
139
+ key?: Prisma.SortOrder;
140
+ value?: Prisma.SortOrder;
141
+ updatedAt?: Prisma.SortOrder;
142
+ _count?: Prisma.SystemSettingCountOrderByAggregateInput;
143
+ _max?: Prisma.SystemSettingMaxOrderByAggregateInput;
144
+ _min?: Prisma.SystemSettingMinOrderByAggregateInput;
145
+ };
146
+ export type SystemSettingScalarWhereWithAggregatesInput = {
147
+ AND?: Prisma.SystemSettingScalarWhereWithAggregatesInput | Prisma.SystemSettingScalarWhereWithAggregatesInput[];
148
+ OR?: Prisma.SystemSettingScalarWhereWithAggregatesInput[];
149
+ NOT?: Prisma.SystemSettingScalarWhereWithAggregatesInput | Prisma.SystemSettingScalarWhereWithAggregatesInput[];
150
+ key?: Prisma.StringWithAggregatesFilter<"SystemSetting"> | string;
151
+ value?: Prisma.JsonWithAggregatesFilter<"SystemSetting">;
152
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"SystemSetting"> | Date | string;
153
+ };
154
+ export type SystemSettingCreateInput = {
155
+ key: string;
156
+ value: Prisma.JsonNullValueInput | runtime.InputJsonValue;
157
+ updatedAt?: Date | string;
158
+ };
159
+ export type SystemSettingUncheckedCreateInput = {
160
+ key: string;
161
+ value: Prisma.JsonNullValueInput | runtime.InputJsonValue;
162
+ updatedAt?: Date | string;
163
+ };
164
+ export type SystemSettingUpdateInput = {
165
+ key?: Prisma.StringFieldUpdateOperationsInput | string;
166
+ value?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
167
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
168
+ };
169
+ export type SystemSettingUncheckedUpdateInput = {
170
+ key?: Prisma.StringFieldUpdateOperationsInput | string;
171
+ value?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
172
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
173
+ };
174
+ export type SystemSettingCreateManyInput = {
175
+ key: string;
176
+ value: Prisma.JsonNullValueInput | runtime.InputJsonValue;
177
+ updatedAt?: Date | string;
178
+ };
179
+ export type SystemSettingUpdateManyMutationInput = {
180
+ key?: Prisma.StringFieldUpdateOperationsInput | string;
181
+ value?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
182
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
183
+ };
184
+ export type SystemSettingUncheckedUpdateManyInput = {
185
+ key?: Prisma.StringFieldUpdateOperationsInput | string;
186
+ value?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
187
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
188
+ };
189
+ export type SystemSettingOrderByRelevanceInput = {
190
+ fields: Prisma.SystemSettingOrderByRelevanceFieldEnum | Prisma.SystemSettingOrderByRelevanceFieldEnum[];
191
+ sort: Prisma.SortOrder;
192
+ search: string;
193
+ };
194
+ export type SystemSettingCountOrderByAggregateInput = {
195
+ key?: Prisma.SortOrder;
196
+ value?: Prisma.SortOrder;
197
+ updatedAt?: Prisma.SortOrder;
198
+ };
199
+ export type SystemSettingMaxOrderByAggregateInput = {
200
+ key?: Prisma.SortOrder;
201
+ updatedAt?: Prisma.SortOrder;
202
+ };
203
+ export type SystemSettingMinOrderByAggregateInput = {
204
+ key?: Prisma.SortOrder;
205
+ updatedAt?: Prisma.SortOrder;
206
+ };
207
+ export type SystemSettingSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
208
+ key?: boolean;
209
+ value?: boolean;
210
+ updatedAt?: boolean;
211
+ }, ExtArgs["result"]["systemSetting"]>;
212
+ export type SystemSettingSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
213
+ key?: boolean;
214
+ value?: boolean;
215
+ updatedAt?: boolean;
216
+ }, ExtArgs["result"]["systemSetting"]>;
217
+ export type SystemSettingSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
218
+ key?: boolean;
219
+ value?: boolean;
220
+ updatedAt?: boolean;
221
+ }, ExtArgs["result"]["systemSetting"]>;
222
+ export type SystemSettingSelectScalar = {
223
+ key?: boolean;
224
+ value?: boolean;
225
+ updatedAt?: boolean;
226
+ };
227
+ export type SystemSettingOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"key" | "value" | "updatedAt", ExtArgs["result"]["systemSetting"]>;
228
+ export type $SystemSettingPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
229
+ name: "SystemSetting";
230
+ objects: {};
231
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
232
+ key: string;
233
+ value: runtime.JsonValue;
234
+ updatedAt: Date;
235
+ }, ExtArgs["result"]["systemSetting"]>;
236
+ composites: {};
237
+ };
238
+ export type SystemSettingGetPayload<S extends boolean | null | undefined | SystemSettingDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$SystemSettingPayload, S>;
239
+ export type SystemSettingCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<SystemSettingFindManyArgs, 'select' | 'include' | 'distinct' | 'omit' | 'relationLoadStrategy'> & {
240
+ select?: SystemSettingCountAggregateInputType | true;
241
+ };
242
+ export interface SystemSettingDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
243
+ [K: symbol]: {
244
+ types: Prisma.TypeMap<ExtArgs>['model']['SystemSetting'];
245
+ meta: {
246
+ name: 'SystemSetting';
247
+ };
248
+ };
249
+ /**
250
+ * Find zero or one SystemSetting that matches the filter.
251
+ * @param {SystemSettingFindUniqueArgs} args - Arguments to find a SystemSetting
252
+ * @example
253
+ * // Get one SystemSetting
254
+ * const systemSetting = await prisma.systemSetting.findUnique({
255
+ * where: {
256
+ * // ... provide filter here
257
+ * }
258
+ * })
259
+ */
260
+ findUnique<T extends SystemSettingFindUniqueArgs>(args: Prisma.SelectSubset<T, SystemSettingFindUniqueArgs<ExtArgs>>): Prisma.Prisma__SystemSettingClient<runtime.Types.Result.GetResult<Prisma.$SystemSettingPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
261
+ /**
262
+ * Find one SystemSetting that matches the filter or throw an error with `error.code='P2025'`
263
+ * if no matches were found.
264
+ * @param {SystemSettingFindUniqueOrThrowArgs} args - Arguments to find a SystemSetting
265
+ * @example
266
+ * // Get one SystemSetting
267
+ * const systemSetting = await prisma.systemSetting.findUniqueOrThrow({
268
+ * where: {
269
+ * // ... provide filter here
270
+ * }
271
+ * })
272
+ */
273
+ findUniqueOrThrow<T extends SystemSettingFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, SystemSettingFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__SystemSettingClient<runtime.Types.Result.GetResult<Prisma.$SystemSettingPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
274
+ /**
275
+ * Find the first SystemSetting that matches the filter.
276
+ * Note, that providing `undefined` is treated as the value not being there.
277
+ * Read more here: https://pris.ly/d/null-undefined
278
+ * @param {SystemSettingFindFirstArgs} args - Arguments to find a SystemSetting
279
+ * @example
280
+ * // Get one SystemSetting
281
+ * const systemSetting = await prisma.systemSetting.findFirst({
282
+ * where: {
283
+ * // ... provide filter here
284
+ * }
285
+ * })
286
+ */
287
+ findFirst<T extends SystemSettingFindFirstArgs>(args?: Prisma.SelectSubset<T, SystemSettingFindFirstArgs<ExtArgs>>): Prisma.Prisma__SystemSettingClient<runtime.Types.Result.GetResult<Prisma.$SystemSettingPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
288
+ /**
289
+ * Find the first SystemSetting that matches the filter or
290
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
291
+ * Note, that providing `undefined` is treated as the value not being there.
292
+ * Read more here: https://pris.ly/d/null-undefined
293
+ * @param {SystemSettingFindFirstOrThrowArgs} args - Arguments to find a SystemSetting
294
+ * @example
295
+ * // Get one SystemSetting
296
+ * const systemSetting = await prisma.systemSetting.findFirstOrThrow({
297
+ * where: {
298
+ * // ... provide filter here
299
+ * }
300
+ * })
301
+ */
302
+ findFirstOrThrow<T extends SystemSettingFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, SystemSettingFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__SystemSettingClient<runtime.Types.Result.GetResult<Prisma.$SystemSettingPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
303
+ /**
304
+ * Find zero or more SystemSettings that matches the filter.
305
+ * Note, that providing `undefined` is treated as the value not being there.
306
+ * Read more here: https://pris.ly/d/null-undefined
307
+ * @param {SystemSettingFindManyArgs} args - Arguments to filter and select certain fields only.
308
+ * @example
309
+ * // Get all SystemSettings
310
+ * const systemSettings = await prisma.systemSetting.findMany()
311
+ *
312
+ * // Get first 10 SystemSettings
313
+ * const systemSettings = await prisma.systemSetting.findMany({ take: 10 })
314
+ *
315
+ * // Only select the `key`
316
+ * const systemSettingWithKeyOnly = await prisma.systemSetting.findMany({ select: { key: true } })
317
+ *
318
+ */
319
+ findMany<T extends SystemSettingFindManyArgs>(args?: Prisma.SelectSubset<T, SystemSettingFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SystemSettingPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
320
+ /**
321
+ * Create a SystemSetting.
322
+ * @param {SystemSettingCreateArgs} args - Arguments to create a SystemSetting.
323
+ * @example
324
+ * // Create one SystemSetting
325
+ * const SystemSetting = await prisma.systemSetting.create({
326
+ * data: {
327
+ * // ... data to create a SystemSetting
328
+ * }
329
+ * })
330
+ *
331
+ */
332
+ create<T extends SystemSettingCreateArgs>(args: Prisma.SelectSubset<T, SystemSettingCreateArgs<ExtArgs>>): Prisma.Prisma__SystemSettingClient<runtime.Types.Result.GetResult<Prisma.$SystemSettingPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
333
+ /**
334
+ * Create many SystemSettings.
335
+ * @param {SystemSettingCreateManyArgs} args - Arguments to create many SystemSettings.
336
+ * @example
337
+ * // Create many SystemSettings
338
+ * const systemSetting = await prisma.systemSetting.createMany({
339
+ * data: [
340
+ * // ... provide data here
341
+ * ]
342
+ * })
343
+ *
344
+ */
345
+ createMany<T extends SystemSettingCreateManyArgs>(args?: Prisma.SelectSubset<T, SystemSettingCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
346
+ /**
347
+ * Create many SystemSettings and returns the data saved in the database.
348
+ * @param {SystemSettingCreateManyAndReturnArgs} args - Arguments to create many SystemSettings.
349
+ * @example
350
+ * // Create many SystemSettings
351
+ * const systemSetting = await prisma.systemSetting.createManyAndReturn({
352
+ * data: [
353
+ * // ... provide data here
354
+ * ]
355
+ * })
356
+ *
357
+ * // Create many SystemSettings and only return the `key`
358
+ * const systemSettingWithKeyOnly = await prisma.systemSetting.createManyAndReturn({
359
+ * select: { key: true },
360
+ * data: [
361
+ * // ... provide data here
362
+ * ]
363
+ * })
364
+ * Note, that providing `undefined` is treated as the value not being there.
365
+ * Read more here: https://pris.ly/d/null-undefined
366
+ *
367
+ */
368
+ createManyAndReturn<T extends SystemSettingCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, SystemSettingCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SystemSettingPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
369
+ /**
370
+ * Delete a SystemSetting.
371
+ * @param {SystemSettingDeleteArgs} args - Arguments to delete one SystemSetting.
372
+ * @example
373
+ * // Delete one SystemSetting
374
+ * const SystemSetting = await prisma.systemSetting.delete({
375
+ * where: {
376
+ * // ... filter to delete one SystemSetting
377
+ * }
378
+ * })
379
+ *
380
+ */
381
+ delete<T extends SystemSettingDeleteArgs>(args: Prisma.SelectSubset<T, SystemSettingDeleteArgs<ExtArgs>>): Prisma.Prisma__SystemSettingClient<runtime.Types.Result.GetResult<Prisma.$SystemSettingPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
382
+ /**
383
+ * Update one SystemSetting.
384
+ * @param {SystemSettingUpdateArgs} args - Arguments to update one SystemSetting.
385
+ * @example
386
+ * // Update one SystemSetting
387
+ * const systemSetting = await prisma.systemSetting.update({
388
+ * where: {
389
+ * // ... provide filter here
390
+ * },
391
+ * data: {
392
+ * // ... provide data here
393
+ * }
394
+ * })
395
+ *
396
+ */
397
+ update<T extends SystemSettingUpdateArgs>(args: Prisma.SelectSubset<T, SystemSettingUpdateArgs<ExtArgs>>): Prisma.Prisma__SystemSettingClient<runtime.Types.Result.GetResult<Prisma.$SystemSettingPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
398
+ /**
399
+ * Delete zero or more SystemSettings.
400
+ * @param {SystemSettingDeleteManyArgs} args - Arguments to filter SystemSettings to delete.
401
+ * @example
402
+ * // Delete a few SystemSettings
403
+ * const { count } = await prisma.systemSetting.deleteMany({
404
+ * where: {
405
+ * // ... provide filter here
406
+ * }
407
+ * })
408
+ *
409
+ */
410
+ deleteMany<T extends SystemSettingDeleteManyArgs>(args?: Prisma.SelectSubset<T, SystemSettingDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
411
+ /**
412
+ * Update zero or more SystemSettings.
413
+ * Note, that providing `undefined` is treated as the value not being there.
414
+ * Read more here: https://pris.ly/d/null-undefined
415
+ * @param {SystemSettingUpdateManyArgs} args - Arguments to update one or more rows.
416
+ * @example
417
+ * // Update many SystemSettings
418
+ * const systemSetting = await prisma.systemSetting.updateMany({
419
+ * where: {
420
+ * // ... provide filter here
421
+ * },
422
+ * data: {
423
+ * // ... provide data here
424
+ * }
425
+ * })
426
+ *
427
+ */
428
+ updateMany<T extends SystemSettingUpdateManyArgs>(args: Prisma.SelectSubset<T, SystemSettingUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
429
+ /**
430
+ * Update zero or more SystemSettings and returns the data updated in the database.
431
+ * @param {SystemSettingUpdateManyAndReturnArgs} args - Arguments to update many SystemSettings.
432
+ * @example
433
+ * // Update many SystemSettings
434
+ * const systemSetting = await prisma.systemSetting.updateManyAndReturn({
435
+ * where: {
436
+ * // ... provide filter here
437
+ * },
438
+ * data: [
439
+ * // ... provide data here
440
+ * ]
441
+ * })
442
+ *
443
+ * // Update zero or more SystemSettings and only return the `key`
444
+ * const systemSettingWithKeyOnly = await prisma.systemSetting.updateManyAndReturn({
445
+ * select: { key: true },
446
+ * where: {
447
+ * // ... provide filter here
448
+ * },
449
+ * data: [
450
+ * // ... provide data here
451
+ * ]
452
+ * })
453
+ * Note, that providing `undefined` is treated as the value not being there.
454
+ * Read more here: https://pris.ly/d/null-undefined
455
+ *
456
+ */
457
+ updateManyAndReturn<T extends SystemSettingUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, SystemSettingUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SystemSettingPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
458
+ /**
459
+ * Create or update one SystemSetting.
460
+ * @param {SystemSettingUpsertArgs} args - Arguments to update or create a SystemSetting.
461
+ * @example
462
+ * // Update or create a SystemSetting
463
+ * const systemSetting = await prisma.systemSetting.upsert({
464
+ * create: {
465
+ * // ... data to create a SystemSetting
466
+ * },
467
+ * update: {
468
+ * // ... in case it already exists, update
469
+ * },
470
+ * where: {
471
+ * // ... the filter for the SystemSetting we want to update
472
+ * }
473
+ * })
474
+ */
475
+ upsert<T extends SystemSettingUpsertArgs>(args: Prisma.SelectSubset<T, SystemSettingUpsertArgs<ExtArgs>>): Prisma.Prisma__SystemSettingClient<runtime.Types.Result.GetResult<Prisma.$SystemSettingPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
476
+ /**
477
+ * Count the number of SystemSettings.
478
+ * Note, that providing `undefined` is treated as the value not being there.
479
+ * Read more here: https://pris.ly/d/null-undefined
480
+ * @param {SystemSettingCountArgs} args - Arguments to filter SystemSettings to count.
481
+ * @example
482
+ * // Count the number of SystemSettings
483
+ * const count = await prisma.systemSetting.count({
484
+ * where: {
485
+ * // ... the filter for the SystemSettings we want to count
486
+ * }
487
+ * })
488
+ **/
489
+ count<T extends SystemSettingCountArgs>(args?: Prisma.Subset<T, SystemSettingCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], SystemSettingCountAggregateOutputType> : number>;
490
+ /**
491
+ * Allows you to perform aggregations operations on a SystemSetting.
492
+ * Note, that providing `undefined` is treated as the value not being there.
493
+ * Read more here: https://pris.ly/d/null-undefined
494
+ * @param {SystemSettingAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
495
+ * @example
496
+ * // Ordered by age ascending
497
+ * // Where email contains prisma.io
498
+ * // Limited to the 10 users
499
+ * const aggregations = await prisma.user.aggregate({
500
+ * _avg: {
501
+ * age: true,
502
+ * },
503
+ * where: {
504
+ * email: {
505
+ * contains: "prisma.io",
506
+ * },
507
+ * },
508
+ * orderBy: {
509
+ * age: "asc",
510
+ * },
511
+ * take: 10,
512
+ * })
513
+ **/
514
+ aggregate<T extends SystemSettingAggregateArgs>(args: Prisma.Subset<T, SystemSettingAggregateArgs>): Prisma.PrismaPromise<GetSystemSettingAggregateType<T>>;
515
+ /**
516
+ * Group by SystemSetting.
517
+ * Note, that providing `undefined` is treated as the value not being there.
518
+ * Read more here: https://pris.ly/d/null-undefined
519
+ * @param {SystemSettingGroupByArgs} args - Group by arguments.
520
+ * @example
521
+ * // Group by city, order by createdAt, get count
522
+ * const result = await prisma.user.groupBy({
523
+ * by: ['city', 'createdAt'],
524
+ * orderBy: {
525
+ * createdAt: true
526
+ * },
527
+ * _count: {
528
+ * _all: true
529
+ * },
530
+ * })
531
+ *
532
+ **/
533
+ groupBy<T extends SystemSettingGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
534
+ orderBy: SystemSettingGroupByArgs['orderBy'];
535
+ } : {
536
+ orderBy?: SystemSettingGroupByArgs['orderBy'];
537
+ }, 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 ? {
538
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
539
+ Error,
540
+ 'Field ',
541
+ P,
542
+ ` in "having" needs to be provided in "by"`
543
+ ];
544
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
545
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
546
+ }[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 ? {} : {
547
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
548
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
549
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
550
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, SystemSettingGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSystemSettingGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
551
+ /**
552
+ * Fields of the SystemSetting model
553
+ */
554
+ readonly fields: SystemSettingFieldRefs;
555
+ }
556
+ /**
557
+ * The delegate class that acts as a "Promise-like" for SystemSetting.
558
+ * Why is this prefixed with `Prisma__`?
559
+ * Because we want to prevent naming conflicts as mentioned in
560
+ * https://github.com/prisma/prisma-client-js/issues/707
561
+ */
562
+ export interface Prisma__SystemSettingClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
563
+ readonly [Symbol.toStringTag]: "PrismaPromise";
564
+ /**
565
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
566
+ * @param onfulfilled The callback to execute when the Promise is resolved.
567
+ * @param onrejected The callback to execute when the Promise is rejected.
568
+ * @returns A Promise for the completion of which ever callback is executed.
569
+ */
570
+ 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>;
571
+ /**
572
+ * Attaches a callback for only the rejection of the Promise.
573
+ * @param onrejected The callback to execute when the Promise is rejected.
574
+ * @returns A Promise for the completion of the callback.
575
+ */
576
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
577
+ /**
578
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
579
+ * resolved value cannot be modified from the callback.
580
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
581
+ * @returns A Promise for the completion of the callback.
582
+ */
583
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
584
+ }
585
+ /**
586
+ * Fields of the SystemSetting model
587
+ */
588
+ export interface SystemSettingFieldRefs {
589
+ readonly key: Prisma.FieldRef<"SystemSetting", 'String'>;
590
+ readonly value: Prisma.FieldRef<"SystemSetting", 'Json'>;
591
+ readonly updatedAt: Prisma.FieldRef<"SystemSetting", 'DateTime'>;
592
+ }
593
+ /**
594
+ * SystemSetting findUnique
595
+ */
596
+ export type SystemSettingFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
597
+ /**
598
+ * Select specific fields to fetch from the SystemSetting
599
+ */
600
+ select?: Prisma.SystemSettingSelect<ExtArgs> | null;
601
+ /**
602
+ * Omit specific fields from the SystemSetting
603
+ */
604
+ omit?: Prisma.SystemSettingOmit<ExtArgs> | null;
605
+ /**
606
+ * Filter, which SystemSetting to fetch.
607
+ */
608
+ where: Prisma.SystemSettingWhereUniqueInput;
609
+ relationLoadStrategy?: Prisma.RelationLoadStrategy;
610
+ };
611
+ /**
612
+ * SystemSetting findUniqueOrThrow
613
+ */
614
+ export type SystemSettingFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
615
+ /**
616
+ * Select specific fields to fetch from the SystemSetting
617
+ */
618
+ select?: Prisma.SystemSettingSelect<ExtArgs> | null;
619
+ /**
620
+ * Omit specific fields from the SystemSetting
621
+ */
622
+ omit?: Prisma.SystemSettingOmit<ExtArgs> | null;
623
+ /**
624
+ * Filter, which SystemSetting to fetch.
625
+ */
626
+ where: Prisma.SystemSettingWhereUniqueInput;
627
+ relationLoadStrategy?: Prisma.RelationLoadStrategy;
628
+ };
629
+ /**
630
+ * SystemSetting findFirst
631
+ */
632
+ export type SystemSettingFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
633
+ /**
634
+ * Select specific fields to fetch from the SystemSetting
635
+ */
636
+ select?: Prisma.SystemSettingSelect<ExtArgs> | null;
637
+ /**
638
+ * Omit specific fields from the SystemSetting
639
+ */
640
+ omit?: Prisma.SystemSettingOmit<ExtArgs> | null;
641
+ /**
642
+ * Filter, which SystemSetting to fetch.
643
+ */
644
+ where?: Prisma.SystemSettingWhereInput;
645
+ /**
646
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
647
+ *
648
+ * Determine the order of SystemSettings to fetch.
649
+ */
650
+ orderBy?: Prisma.SystemSettingOrderByWithRelationInput | Prisma.SystemSettingOrderByWithRelationInput[];
651
+ /**
652
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
653
+ *
654
+ * Sets the position for searching for SystemSettings.
655
+ */
656
+ cursor?: Prisma.SystemSettingWhereUniqueInput;
657
+ /**
658
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
659
+ *
660
+ * Take `±n` SystemSettings from the position of the cursor.
661
+ */
662
+ take?: number;
663
+ /**
664
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
665
+ *
666
+ * Skip the first `n` SystemSettings.
667
+ */
668
+ skip?: number;
669
+ /**
670
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
671
+ *
672
+ * Filter by unique combinations of SystemSettings.
673
+ */
674
+ distinct?: Prisma.SystemSettingScalarFieldEnum | Prisma.SystemSettingScalarFieldEnum[];
675
+ relationLoadStrategy?: Prisma.RelationLoadStrategy;
676
+ };
677
+ /**
678
+ * SystemSetting findFirstOrThrow
679
+ */
680
+ export type SystemSettingFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
681
+ /**
682
+ * Select specific fields to fetch from the SystemSetting
683
+ */
684
+ select?: Prisma.SystemSettingSelect<ExtArgs> | null;
685
+ /**
686
+ * Omit specific fields from the SystemSetting
687
+ */
688
+ omit?: Prisma.SystemSettingOmit<ExtArgs> | null;
689
+ /**
690
+ * Filter, which SystemSetting to fetch.
691
+ */
692
+ where?: Prisma.SystemSettingWhereInput;
693
+ /**
694
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
695
+ *
696
+ * Determine the order of SystemSettings to fetch.
697
+ */
698
+ orderBy?: Prisma.SystemSettingOrderByWithRelationInput | Prisma.SystemSettingOrderByWithRelationInput[];
699
+ /**
700
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
701
+ *
702
+ * Sets the position for searching for SystemSettings.
703
+ */
704
+ cursor?: Prisma.SystemSettingWhereUniqueInput;
705
+ /**
706
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
707
+ *
708
+ * Take `±n` SystemSettings from the position of the cursor.
709
+ */
710
+ take?: number;
711
+ /**
712
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
713
+ *
714
+ * Skip the first `n` SystemSettings.
715
+ */
716
+ skip?: number;
717
+ /**
718
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
719
+ *
720
+ * Filter by unique combinations of SystemSettings.
721
+ */
722
+ distinct?: Prisma.SystemSettingScalarFieldEnum | Prisma.SystemSettingScalarFieldEnum[];
723
+ relationLoadStrategy?: Prisma.RelationLoadStrategy;
724
+ };
725
+ /**
726
+ * SystemSetting findMany
727
+ */
728
+ export type SystemSettingFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
729
+ /**
730
+ * Select specific fields to fetch from the SystemSetting
731
+ */
732
+ select?: Prisma.SystemSettingSelect<ExtArgs> | null;
733
+ /**
734
+ * Omit specific fields from the SystemSetting
735
+ */
736
+ omit?: Prisma.SystemSettingOmit<ExtArgs> | null;
737
+ /**
738
+ * Filter, which SystemSettings to fetch.
739
+ */
740
+ where?: Prisma.SystemSettingWhereInput;
741
+ /**
742
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
743
+ *
744
+ * Determine the order of SystemSettings to fetch.
745
+ */
746
+ orderBy?: Prisma.SystemSettingOrderByWithRelationInput | Prisma.SystemSettingOrderByWithRelationInput[];
747
+ /**
748
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
749
+ *
750
+ * Sets the position for listing SystemSettings.
751
+ */
752
+ cursor?: Prisma.SystemSettingWhereUniqueInput;
753
+ /**
754
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
755
+ *
756
+ * Take `±n` SystemSettings from the position of the cursor.
757
+ */
758
+ take?: number;
759
+ /**
760
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
761
+ *
762
+ * Skip the first `n` SystemSettings.
763
+ */
764
+ skip?: number;
765
+ /**
766
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
767
+ *
768
+ * Filter by unique combinations of SystemSettings.
769
+ */
770
+ distinct?: Prisma.SystemSettingScalarFieldEnum | Prisma.SystemSettingScalarFieldEnum[];
771
+ relationLoadStrategy?: Prisma.RelationLoadStrategy;
772
+ };
773
+ /**
774
+ * SystemSetting create
775
+ */
776
+ export type SystemSettingCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
777
+ /**
778
+ * Select specific fields to fetch from the SystemSetting
779
+ */
780
+ select?: Prisma.SystemSettingSelect<ExtArgs> | null;
781
+ /**
782
+ * Omit specific fields from the SystemSetting
783
+ */
784
+ omit?: Prisma.SystemSettingOmit<ExtArgs> | null;
785
+ /**
786
+ * The data needed to create a SystemSetting.
787
+ */
788
+ data: Prisma.XOR<Prisma.SystemSettingCreateInput, Prisma.SystemSettingUncheckedCreateInput>;
789
+ relationLoadStrategy?: Prisma.RelationLoadStrategy;
790
+ };
791
+ /**
792
+ * SystemSetting createMany
793
+ */
794
+ export type SystemSettingCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
795
+ /**
796
+ * The data used to create many SystemSettings.
797
+ */
798
+ data: Prisma.SystemSettingCreateManyInput | Prisma.SystemSettingCreateManyInput[];
799
+ skipDuplicates?: boolean;
800
+ };
801
+ /**
802
+ * SystemSetting createManyAndReturn
803
+ */
804
+ export type SystemSettingCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
805
+ /**
806
+ * Select specific fields to fetch from the SystemSetting
807
+ */
808
+ select?: Prisma.SystemSettingSelectCreateManyAndReturn<ExtArgs> | null;
809
+ /**
810
+ * Omit specific fields from the SystemSetting
811
+ */
812
+ omit?: Prisma.SystemSettingOmit<ExtArgs> | null;
813
+ /**
814
+ * The data used to create many SystemSettings.
815
+ */
816
+ data: Prisma.SystemSettingCreateManyInput | Prisma.SystemSettingCreateManyInput[];
817
+ skipDuplicates?: boolean;
818
+ };
819
+ /**
820
+ * SystemSetting update
821
+ */
822
+ export type SystemSettingUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
823
+ /**
824
+ * Select specific fields to fetch from the SystemSetting
825
+ */
826
+ select?: Prisma.SystemSettingSelect<ExtArgs> | null;
827
+ /**
828
+ * Omit specific fields from the SystemSetting
829
+ */
830
+ omit?: Prisma.SystemSettingOmit<ExtArgs> | null;
831
+ /**
832
+ * The data needed to update a SystemSetting.
833
+ */
834
+ data: Prisma.XOR<Prisma.SystemSettingUpdateInput, Prisma.SystemSettingUncheckedUpdateInput>;
835
+ /**
836
+ * Choose, which SystemSetting to update.
837
+ */
838
+ where: Prisma.SystemSettingWhereUniqueInput;
839
+ relationLoadStrategy?: Prisma.RelationLoadStrategy;
840
+ };
841
+ /**
842
+ * SystemSetting updateMany
843
+ */
844
+ export type SystemSettingUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
845
+ /**
846
+ * The data used to update SystemSettings.
847
+ */
848
+ data: Prisma.XOR<Prisma.SystemSettingUpdateManyMutationInput, Prisma.SystemSettingUncheckedUpdateManyInput>;
849
+ /**
850
+ * Filter which SystemSettings to update
851
+ */
852
+ where?: Prisma.SystemSettingWhereInput;
853
+ /**
854
+ * Limit how many SystemSettings to update.
855
+ */
856
+ limit?: number;
857
+ };
858
+ /**
859
+ * SystemSetting updateManyAndReturn
860
+ */
861
+ export type SystemSettingUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
862
+ /**
863
+ * Select specific fields to fetch from the SystemSetting
864
+ */
865
+ select?: Prisma.SystemSettingSelectUpdateManyAndReturn<ExtArgs> | null;
866
+ /**
867
+ * Omit specific fields from the SystemSetting
868
+ */
869
+ omit?: Prisma.SystemSettingOmit<ExtArgs> | null;
870
+ /**
871
+ * The data used to update SystemSettings.
872
+ */
873
+ data: Prisma.XOR<Prisma.SystemSettingUpdateManyMutationInput, Prisma.SystemSettingUncheckedUpdateManyInput>;
874
+ /**
875
+ * Filter which SystemSettings to update
876
+ */
877
+ where?: Prisma.SystemSettingWhereInput;
878
+ /**
879
+ * Limit how many SystemSettings to update.
880
+ */
881
+ limit?: number;
882
+ };
883
+ /**
884
+ * SystemSetting upsert
885
+ */
886
+ export type SystemSettingUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
887
+ /**
888
+ * Select specific fields to fetch from the SystemSetting
889
+ */
890
+ select?: Prisma.SystemSettingSelect<ExtArgs> | null;
891
+ /**
892
+ * Omit specific fields from the SystemSetting
893
+ */
894
+ omit?: Prisma.SystemSettingOmit<ExtArgs> | null;
895
+ /**
896
+ * The filter to search for the SystemSetting to update in case it exists.
897
+ */
898
+ where: Prisma.SystemSettingWhereUniqueInput;
899
+ /**
900
+ * In case the SystemSetting found by the `where` argument doesn't exist, create a new SystemSetting with this data.
901
+ */
902
+ create: Prisma.XOR<Prisma.SystemSettingCreateInput, Prisma.SystemSettingUncheckedCreateInput>;
903
+ /**
904
+ * In case the SystemSetting was found with the provided `where` argument, update it with this data.
905
+ */
906
+ update: Prisma.XOR<Prisma.SystemSettingUpdateInput, Prisma.SystemSettingUncheckedUpdateInput>;
907
+ relationLoadStrategy?: Prisma.RelationLoadStrategy;
908
+ };
909
+ /**
910
+ * SystemSetting delete
911
+ */
912
+ export type SystemSettingDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
913
+ /**
914
+ * Select specific fields to fetch from the SystemSetting
915
+ */
916
+ select?: Prisma.SystemSettingSelect<ExtArgs> | null;
917
+ /**
918
+ * Omit specific fields from the SystemSetting
919
+ */
920
+ omit?: Prisma.SystemSettingOmit<ExtArgs> | null;
921
+ /**
922
+ * Filter which SystemSetting to delete.
923
+ */
924
+ where: Prisma.SystemSettingWhereUniqueInput;
925
+ relationLoadStrategy?: Prisma.RelationLoadStrategy;
926
+ };
927
+ /**
928
+ * SystemSetting deleteMany
929
+ */
930
+ export type SystemSettingDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
931
+ /**
932
+ * Filter which SystemSettings to delete
933
+ */
934
+ where?: Prisma.SystemSettingWhereInput;
935
+ /**
936
+ * Limit how many SystemSettings to delete.
937
+ */
938
+ limit?: number;
939
+ };
940
+ /**
941
+ * SystemSetting without action
942
+ */
943
+ export type SystemSettingDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
944
+ /**
945
+ * Select specific fields to fetch from the SystemSetting
946
+ */
947
+ select?: Prisma.SystemSettingSelect<ExtArgs> | null;
948
+ /**
949
+ * Omit specific fields from the SystemSetting
950
+ */
951
+ omit?: Prisma.SystemSettingOmit<ExtArgs> | null;
952
+ };