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