@tiddlywiki/mws 0.1.13 → 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 (118) hide show
  1. package/README.md +41 -20
  2. package/dist/metafile-esm.json +1 -1
  3. package/dist/mws.js +40249 -20249
  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 +11 -39
  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/multiwikiclientadaptor.js +1 -1
  14. package/plugins/client/tiddlers/syncer/new-multiwikiclientadaptor.js +432 -0
  15. package/plugins/client/tiddlers/syncer/syncer.js +123 -241
  16. package/plugins/client/tsconfig.json +5 -1
  17. package/prisma/browser.ts +2 -0
  18. package/prisma/client/browser.ts +84 -0
  19. package/prisma/client/client.ts +108 -0
  20. package/prisma/client/commonInputTypes.ts +598 -0
  21. package/prisma/client/enums.ts +42 -0
  22. package/prisma/client/internal/class.ts +326 -0
  23. package/prisma/client/internal/prismaNamespace.ts +1870 -0
  24. package/prisma/client/internal/prismaNamespaceBrowser.ts +259 -0
  25. package/prisma/client/models/Bag.ts +1701 -0
  26. package/prisma/client/models/BagPermission.ts +1284 -0
  27. package/prisma/client/models/Recipe.ts +1722 -0
  28. package/prisma/client/models/RecipeBag.ts +1518 -0
  29. package/prisma/client/models/RecipePermission.ts +1284 -0
  30. package/prisma/client/models/Roles.ts +1316 -0
  31. package/prisma/client/models/Sessions.ts +1344 -0
  32. package/prisma/client/models/Settings.ts +1093 -0
  33. package/prisma/client/models/Template.ts +1477 -0
  34. package/prisma/client/models/TemplatePermission.ts +1284 -0
  35. package/prisma/client/models/Tiddler.ts +1434 -0
  36. package/prisma/client/models/TiddlerEvent.ts +1360 -0
  37. package/prisma/client/models/Users.ts +1579 -0
  38. package/prisma/client/models.ts +24 -0
  39. package/prisma/client/pjtg.ts +183 -0
  40. package/prisma/index.ts +74 -0
  41. package/prisma/migrations/20260708160259_init/migration.sql +172 -0
  42. package/prisma/migrations-v1/migration_lock.toml +3 -0
  43. package/prisma/package.json +12 -0
  44. package/prisma/schema.prisma +147 -89
  45. package/prisma/types.ts +9 -0
  46. package/public/.default.html +1 -0
  47. package/public/admin-vanilla/fish.svg +399 -0
  48. package/public/admin-vanilla/fish2.svg +389 -0
  49. package/public/admin-vanilla/main-64WYHWYI.js +1791 -0
  50. package/public/admin-vanilla/main-64WYHWYI.js.map +7 -0
  51. package/public/admin-vanilla/main-LYDE4NDJ.css +1 -0
  52. package/public/admin-vanilla/normalize.css +349 -0
  53. package/public/admin-vanilla/polyfill-ADOI2A4V.js +2 -0
  54. package/public/admin-vanilla/polyfill-ADOI2A4V.js.map +7 -0
  55. package/public/{react-admin → admin-vanilla}/site.webmanifest +1 -1
  56. package/public/admin-vanilla.html +62 -0
  57. package/public/admin-vanilla.json +1 -0
  58. package/public/{react-admin → stats}/stats.html +5 -2
  59. package/public/{react-admin → stats}/stats.js +2 -1
  60. package/scripts/build-docs.sh +30 -0
  61. package/scripts/helpers.mjs +107 -0
  62. package/scripts/json.js +8 -0
  63. package/scripts/scripts.mjs +114 -0
  64. package/prisma/client/client.d.ts +0 -1
  65. package/prisma/client/client.js +0 -3
  66. package/prisma/client/default.d.ts +0 -1
  67. package/prisma/client/default.js +0 -3
  68. package/prisma/client/edge.d.ts +0 -1
  69. package/prisma/client/edge.js +0 -297
  70. package/prisma/client/index-browser.js +0 -275
  71. package/prisma/client/index.d.ts +0 -17770
  72. package/prisma/client/index.js +0 -324
  73. package/prisma/client/package.json +0 -173
  74. package/prisma/client/query_engine_bg.js +0 -811
  75. package/prisma/client/query_engine_bg.wasm +0 -0
  76. package/prisma/client/runtime/edge-esm.js +0 -10000
  77. package/prisma/client/runtime/edge.js +0 -10036
  78. package/prisma/client/runtime/index-browser.d.ts +0 -370
  79. package/prisma/client/runtime/index-browser.js +0 -2300
  80. package/prisma/client/runtime/library.d.ts +0 -3681
  81. package/prisma/client/runtime/library.js +0 -10604
  82. package/prisma/client/runtime/react-native.js +0 -10629
  83. package/prisma/client/runtime/wasm-compiler-edge.js +0 -11238
  84. package/prisma/client/runtime/wasm-engine-edge.js +0 -7801
  85. package/prisma/client/schema.prisma +0 -156
  86. package/prisma/client/wasm-edge-light-loader.mjs +0 -4
  87. package/prisma/client/wasm-worker-loader.mjs +0 -4
  88. package/prisma/client/wasm.d.ts +0 -1
  89. package/prisma/client/wasm.js +0 -304
  90. package/prisma/global.ts +0 -53
  91. package/public/react-admin/chunk-YALWN5OT.js +0 -2
  92. package/public/react-admin/esm-L4WLVWJN.js +0 -3
  93. package/public/react-admin/esm-L4WLVWJN.js.map +0 -7
  94. package/public/react-admin/esm-QMNGI3LF.js +0 -3
  95. package/public/react-admin/esm-QMNGI3LF.js.map +0 -7
  96. package/public/react-admin/index.html +0 -36
  97. package/public/react-admin/main.js +0 -268
  98. package/public/react-admin/main.js.map +0 -7
  99. package/public/react-admin/stats.json +0 -1
  100. package/scripts.mjs +0 -142
  101. /package/prisma/{migrations → migrations-v1}/20250606001949_init/migration.sql +0 -0
  102. /package/prisma/{migrations → migrations-v1}/20250613000526_remove_group/migration.sql +0 -0
  103. /package/prisma/{migrations → migrations-v1}/20250620014502_settings/migration.sql +0 -0
  104. /package/prisma/{migrations → migrations-v1}/20250707205229_recipes/migration.sql +0 -0
  105. /package/public/{react-admin → admin-vanilla}/android-chrome-192x192.png +0 -0
  106. /package/public/{react-admin → admin-vanilla}/android-chrome-512x512.png +0 -0
  107. /package/public/{react-admin → admin-vanilla}/apple-touch-icon.png +0 -0
  108. /package/public/{react-admin → admin-vanilla}/favicon-16x16.png +0 -0
  109. /package/public/{react-admin → admin-vanilla}/favicon-32x32.png +0 -0
  110. /package/public/{react-admin → admin-vanilla}/favicon.ico +0 -0
  111. /package/public/{react-admin → admin-vanilla}/favicon.png +0 -0
  112. /package/public/{react-admin/chunk-YALWN5OT.js.map → admin-vanilla/main-LYDE4NDJ.css.map} +0 -0
  113. /package/public/{react-admin → admin-vanilla}/missing-favicon.png +0 -0
  114. /package/public/{react-admin → admin-vanilla}/motovun-jack.jpg +0 -0
  115. /package/public/{react-admin → admin-vanilla}/mws-icon.png +0 -0
  116. /package/public/{react-admin → admin-vanilla}/vite.svg +0 -0
  117. /package/public/{react-admin → stats}/stats.css +0 -0
  118. /package/public/{react-admin → stats}/stats.svg +0 -0
@@ -0,0 +1,1284 @@
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 `RecipePermission` 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 RecipePermission
19
+ *
20
+ */
21
+ export type RecipePermissionModel = runtime.Types.Result.DefaultSelection<Prisma.$RecipePermissionPayload>
22
+
23
+ export type AggregateRecipePermission = {
24
+ _count: RecipePermissionCountAggregateOutputType | null
25
+ _min: RecipePermissionMinAggregateOutputType | null
26
+ _max: RecipePermissionMaxAggregateOutputType | null
27
+ }
28
+
29
+ export type RecipePermissionMinAggregateOutputType = {
30
+ recipe_id: string | null
31
+ role_id: string | null
32
+ level: $Enums.RecipePermissionLevel | null
33
+ }
34
+
35
+ export type RecipePermissionMaxAggregateOutputType = {
36
+ recipe_id: string | null
37
+ role_id: string | null
38
+ level: $Enums.RecipePermissionLevel | null
39
+ }
40
+
41
+ export type RecipePermissionCountAggregateOutputType = {
42
+ recipe_id: number
43
+ role_id: number
44
+ level: number
45
+ _all: number
46
+ }
47
+
48
+
49
+ export type RecipePermissionMinAggregateInputType = {
50
+ recipe_id?: true
51
+ role_id?: true
52
+ level?: true
53
+ }
54
+
55
+ export type RecipePermissionMaxAggregateInputType = {
56
+ recipe_id?: true
57
+ role_id?: true
58
+ level?: true
59
+ }
60
+
61
+ export type RecipePermissionCountAggregateInputType = {
62
+ recipe_id?: true
63
+ role_id?: true
64
+ level?: true
65
+ _all?: true
66
+ }
67
+
68
+ export type RecipePermissionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
69
+ /**
70
+ * Filter which RecipePermission to aggregate.
71
+ */
72
+ where?: Prisma.RecipePermissionWhereInput
73
+ /**
74
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
75
+ *
76
+ * Determine the order of RecipePermissions to fetch.
77
+ */
78
+ orderBy?: Prisma.RecipePermissionOrderByWithRelationInput | Prisma.RecipePermissionOrderByWithRelationInput[]
79
+ /**
80
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
81
+ *
82
+ * Sets the start position
83
+ */
84
+ cursor?: Prisma.RecipePermissionWhereUniqueInput
85
+ /**
86
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
87
+ *
88
+ * Take `±n` RecipePermissions from the position of the cursor.
89
+ */
90
+ take?: number
91
+ /**
92
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
93
+ *
94
+ * Skip the first `n` RecipePermissions.
95
+ */
96
+ skip?: number
97
+ /**
98
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
99
+ *
100
+ * Count returned RecipePermissions
101
+ **/
102
+ _count?: true | RecipePermissionCountAggregateInputType
103
+ /**
104
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
105
+ *
106
+ * Select which fields to find the minimum value
107
+ **/
108
+ _min?: RecipePermissionMinAggregateInputType
109
+ /**
110
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
111
+ *
112
+ * Select which fields to find the maximum value
113
+ **/
114
+ _max?: RecipePermissionMaxAggregateInputType
115
+ }
116
+
117
+ export type GetRecipePermissionAggregateType<T extends RecipePermissionAggregateArgs> = {
118
+ [P in keyof T & keyof AggregateRecipePermission]: P extends '_count' | 'count'
119
+ ? T[P] extends true
120
+ ? number
121
+ : Prisma.GetScalarType<T[P], AggregateRecipePermission[P]>
122
+ : Prisma.GetScalarType<T[P], AggregateRecipePermission[P]>
123
+ }
124
+
125
+
126
+
127
+
128
+ export type RecipePermissionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
129
+ where?: Prisma.RecipePermissionWhereInput
130
+ orderBy?: Prisma.RecipePermissionOrderByWithAggregationInput | Prisma.RecipePermissionOrderByWithAggregationInput[]
131
+ by: Prisma.RecipePermissionScalarFieldEnum[] | Prisma.RecipePermissionScalarFieldEnum
132
+ having?: Prisma.RecipePermissionScalarWhereWithAggregatesInput
133
+ take?: number
134
+ skip?: number
135
+ _count?: RecipePermissionCountAggregateInputType | true
136
+ _min?: RecipePermissionMinAggregateInputType
137
+ _max?: RecipePermissionMaxAggregateInputType
138
+ }
139
+
140
+ export type RecipePermissionGroupByOutputType = {
141
+ recipe_id: string
142
+ role_id: string
143
+ level: $Enums.RecipePermissionLevel
144
+ _count: RecipePermissionCountAggregateOutputType | null
145
+ _min: RecipePermissionMinAggregateOutputType | null
146
+ _max: RecipePermissionMaxAggregateOutputType | null
147
+ }
148
+
149
+ export type GetRecipePermissionGroupByPayload<T extends RecipePermissionGroupByArgs> = Prisma.PrismaPromise<
150
+ Array<
151
+ Prisma.PickEnumerable<RecipePermissionGroupByOutputType, T['by']> &
152
+ {
153
+ [P in ((keyof T) & (keyof RecipePermissionGroupByOutputType))]: P extends '_count'
154
+ ? T[P] extends boolean
155
+ ? number
156
+ : Prisma.GetScalarType<T[P], RecipePermissionGroupByOutputType[P]>
157
+ : Prisma.GetScalarType<T[P], RecipePermissionGroupByOutputType[P]>
158
+ }
159
+ >
160
+ >
161
+
162
+
163
+
164
+ export type RecipePermissionWhereInput = {
165
+ AND?: Prisma.RecipePermissionWhereInput | Prisma.RecipePermissionWhereInput[]
166
+ OR?: Prisma.RecipePermissionWhereInput[]
167
+ NOT?: Prisma.RecipePermissionWhereInput | Prisma.RecipePermissionWhereInput[]
168
+ recipe_id?: Prisma.StringFilter<"RecipePermission"> | string
169
+ role_id?: Prisma.StringFilter<"RecipePermission"> | string
170
+ level?: Prisma.EnumRecipePermissionLevelFilter<"RecipePermission"> | $Enums.RecipePermissionLevel
171
+ recipe?: Prisma.XOR<Prisma.RecipeScalarRelationFilter, Prisma.RecipeWhereInput>
172
+ }
173
+
174
+ export type RecipePermissionOrderByWithRelationInput = {
175
+ recipe_id?: Prisma.SortOrder
176
+ role_id?: Prisma.SortOrder
177
+ level?: Prisma.SortOrder
178
+ recipe?: Prisma.RecipeOrderByWithRelationInput
179
+ }
180
+
181
+ export type RecipePermissionWhereUniqueInput = Prisma.AtLeast<{
182
+ recipe_id_role_id?: Prisma.RecipePermissionRecipe_idRole_idCompoundUniqueInput
183
+ AND?: Prisma.RecipePermissionWhereInput | Prisma.RecipePermissionWhereInput[]
184
+ OR?: Prisma.RecipePermissionWhereInput[]
185
+ NOT?: Prisma.RecipePermissionWhereInput | Prisma.RecipePermissionWhereInput[]
186
+ recipe_id?: Prisma.StringFilter<"RecipePermission"> | string
187
+ role_id?: Prisma.StringFilter<"RecipePermission"> | string
188
+ level?: Prisma.EnumRecipePermissionLevelFilter<"RecipePermission"> | $Enums.RecipePermissionLevel
189
+ recipe?: Prisma.XOR<Prisma.RecipeScalarRelationFilter, Prisma.RecipeWhereInput>
190
+ }, "recipe_id_role_id">
191
+
192
+ export type RecipePermissionOrderByWithAggregationInput = {
193
+ recipe_id?: Prisma.SortOrder
194
+ role_id?: Prisma.SortOrder
195
+ level?: Prisma.SortOrder
196
+ _count?: Prisma.RecipePermissionCountOrderByAggregateInput
197
+ _max?: Prisma.RecipePermissionMaxOrderByAggregateInput
198
+ _min?: Prisma.RecipePermissionMinOrderByAggregateInput
199
+ }
200
+
201
+ export type RecipePermissionScalarWhereWithAggregatesInput = {
202
+ AND?: Prisma.RecipePermissionScalarWhereWithAggregatesInput | Prisma.RecipePermissionScalarWhereWithAggregatesInput[]
203
+ OR?: Prisma.RecipePermissionScalarWhereWithAggregatesInput[]
204
+ NOT?: Prisma.RecipePermissionScalarWhereWithAggregatesInput | Prisma.RecipePermissionScalarWhereWithAggregatesInput[]
205
+ recipe_id?: Prisma.StringWithAggregatesFilter<"RecipePermission"> | string
206
+ role_id?: Prisma.StringWithAggregatesFilter<"RecipePermission"> | string
207
+ level?: Prisma.EnumRecipePermissionLevelWithAggregatesFilter<"RecipePermission"> | $Enums.RecipePermissionLevel
208
+ }
209
+
210
+ export type RecipePermissionCreateInput = {
211
+ role_id: string
212
+ level: $Enums.RecipePermissionLevel
213
+ recipe: Prisma.RecipeCreateNestedOneWithoutPermissionsInput
214
+ }
215
+
216
+ export type RecipePermissionUncheckedCreateInput = {
217
+ recipe_id: string
218
+ role_id: string
219
+ level: $Enums.RecipePermissionLevel
220
+ }
221
+
222
+ export type RecipePermissionUpdateInput = {
223
+ role_id?: Prisma.StringFieldUpdateOperationsInput | string
224
+ level?: Prisma.EnumRecipePermissionLevelFieldUpdateOperationsInput | $Enums.RecipePermissionLevel
225
+ recipe?: Prisma.RecipeUpdateOneRequiredWithoutPermissionsNestedInput
226
+ }
227
+
228
+ export type RecipePermissionUncheckedUpdateInput = {
229
+ recipe_id?: Prisma.StringFieldUpdateOperationsInput | string
230
+ role_id?: Prisma.StringFieldUpdateOperationsInput | string
231
+ level?: Prisma.EnumRecipePermissionLevelFieldUpdateOperationsInput | $Enums.RecipePermissionLevel
232
+ }
233
+
234
+ export type RecipePermissionCreateManyInput = {
235
+ recipe_id: string
236
+ role_id: string
237
+ level: $Enums.RecipePermissionLevel
238
+ }
239
+
240
+ export type RecipePermissionUpdateManyMutationInput = {
241
+ role_id?: Prisma.StringFieldUpdateOperationsInput | string
242
+ level?: Prisma.EnumRecipePermissionLevelFieldUpdateOperationsInput | $Enums.RecipePermissionLevel
243
+ }
244
+
245
+ export type RecipePermissionUncheckedUpdateManyInput = {
246
+ recipe_id?: Prisma.StringFieldUpdateOperationsInput | string
247
+ role_id?: Prisma.StringFieldUpdateOperationsInput | string
248
+ level?: Prisma.EnumRecipePermissionLevelFieldUpdateOperationsInput | $Enums.RecipePermissionLevel
249
+ }
250
+
251
+ export type RecipePermissionListRelationFilter = {
252
+ every?: Prisma.RecipePermissionWhereInput
253
+ some?: Prisma.RecipePermissionWhereInput
254
+ none?: Prisma.RecipePermissionWhereInput
255
+ }
256
+
257
+ export type RecipePermissionOrderByRelationAggregateInput = {
258
+ _count?: Prisma.SortOrder
259
+ }
260
+
261
+ export type RecipePermissionRecipe_idRole_idCompoundUniqueInput = {
262
+ recipe_id: string
263
+ role_id: string
264
+ }
265
+
266
+ export type RecipePermissionCountOrderByAggregateInput = {
267
+ recipe_id?: Prisma.SortOrder
268
+ role_id?: Prisma.SortOrder
269
+ level?: Prisma.SortOrder
270
+ }
271
+
272
+ export type RecipePermissionMaxOrderByAggregateInput = {
273
+ recipe_id?: Prisma.SortOrder
274
+ role_id?: Prisma.SortOrder
275
+ level?: Prisma.SortOrder
276
+ }
277
+
278
+ export type RecipePermissionMinOrderByAggregateInput = {
279
+ recipe_id?: Prisma.SortOrder
280
+ role_id?: Prisma.SortOrder
281
+ level?: Prisma.SortOrder
282
+ }
283
+
284
+ export type RecipePermissionCreateNestedManyWithoutRecipeInput = {
285
+ create?: Prisma.XOR<Prisma.RecipePermissionCreateWithoutRecipeInput, Prisma.RecipePermissionUncheckedCreateWithoutRecipeInput> | Prisma.RecipePermissionCreateWithoutRecipeInput[] | Prisma.RecipePermissionUncheckedCreateWithoutRecipeInput[]
286
+ connectOrCreate?: Prisma.RecipePermissionCreateOrConnectWithoutRecipeInput | Prisma.RecipePermissionCreateOrConnectWithoutRecipeInput[]
287
+ createMany?: Prisma.RecipePermissionCreateManyRecipeInputEnvelope
288
+ connect?: Prisma.RecipePermissionWhereUniqueInput | Prisma.RecipePermissionWhereUniqueInput[]
289
+ }
290
+
291
+ export type RecipePermissionUncheckedCreateNestedManyWithoutRecipeInput = {
292
+ create?: Prisma.XOR<Prisma.RecipePermissionCreateWithoutRecipeInput, Prisma.RecipePermissionUncheckedCreateWithoutRecipeInput> | Prisma.RecipePermissionCreateWithoutRecipeInput[] | Prisma.RecipePermissionUncheckedCreateWithoutRecipeInput[]
293
+ connectOrCreate?: Prisma.RecipePermissionCreateOrConnectWithoutRecipeInput | Prisma.RecipePermissionCreateOrConnectWithoutRecipeInput[]
294
+ createMany?: Prisma.RecipePermissionCreateManyRecipeInputEnvelope
295
+ connect?: Prisma.RecipePermissionWhereUniqueInput | Prisma.RecipePermissionWhereUniqueInput[]
296
+ }
297
+
298
+ export type RecipePermissionUpdateManyWithoutRecipeNestedInput = {
299
+ create?: Prisma.XOR<Prisma.RecipePermissionCreateWithoutRecipeInput, Prisma.RecipePermissionUncheckedCreateWithoutRecipeInput> | Prisma.RecipePermissionCreateWithoutRecipeInput[] | Prisma.RecipePermissionUncheckedCreateWithoutRecipeInput[]
300
+ connectOrCreate?: Prisma.RecipePermissionCreateOrConnectWithoutRecipeInput | Prisma.RecipePermissionCreateOrConnectWithoutRecipeInput[]
301
+ upsert?: Prisma.RecipePermissionUpsertWithWhereUniqueWithoutRecipeInput | Prisma.RecipePermissionUpsertWithWhereUniqueWithoutRecipeInput[]
302
+ createMany?: Prisma.RecipePermissionCreateManyRecipeInputEnvelope
303
+ set?: Prisma.RecipePermissionWhereUniqueInput | Prisma.RecipePermissionWhereUniqueInput[]
304
+ disconnect?: Prisma.RecipePermissionWhereUniqueInput | Prisma.RecipePermissionWhereUniqueInput[]
305
+ delete?: Prisma.RecipePermissionWhereUniqueInput | Prisma.RecipePermissionWhereUniqueInput[]
306
+ connect?: Prisma.RecipePermissionWhereUniqueInput | Prisma.RecipePermissionWhereUniqueInput[]
307
+ update?: Prisma.RecipePermissionUpdateWithWhereUniqueWithoutRecipeInput | Prisma.RecipePermissionUpdateWithWhereUniqueWithoutRecipeInput[]
308
+ updateMany?: Prisma.RecipePermissionUpdateManyWithWhereWithoutRecipeInput | Prisma.RecipePermissionUpdateManyWithWhereWithoutRecipeInput[]
309
+ deleteMany?: Prisma.RecipePermissionScalarWhereInput | Prisma.RecipePermissionScalarWhereInput[]
310
+ }
311
+
312
+ export type RecipePermissionUncheckedUpdateManyWithoutRecipeNestedInput = {
313
+ create?: Prisma.XOR<Prisma.RecipePermissionCreateWithoutRecipeInput, Prisma.RecipePermissionUncheckedCreateWithoutRecipeInput> | Prisma.RecipePermissionCreateWithoutRecipeInput[] | Prisma.RecipePermissionUncheckedCreateWithoutRecipeInput[]
314
+ connectOrCreate?: Prisma.RecipePermissionCreateOrConnectWithoutRecipeInput | Prisma.RecipePermissionCreateOrConnectWithoutRecipeInput[]
315
+ upsert?: Prisma.RecipePermissionUpsertWithWhereUniqueWithoutRecipeInput | Prisma.RecipePermissionUpsertWithWhereUniqueWithoutRecipeInput[]
316
+ createMany?: Prisma.RecipePermissionCreateManyRecipeInputEnvelope
317
+ set?: Prisma.RecipePermissionWhereUniqueInput | Prisma.RecipePermissionWhereUniqueInput[]
318
+ disconnect?: Prisma.RecipePermissionWhereUniqueInput | Prisma.RecipePermissionWhereUniqueInput[]
319
+ delete?: Prisma.RecipePermissionWhereUniqueInput | Prisma.RecipePermissionWhereUniqueInput[]
320
+ connect?: Prisma.RecipePermissionWhereUniqueInput | Prisma.RecipePermissionWhereUniqueInput[]
321
+ update?: Prisma.RecipePermissionUpdateWithWhereUniqueWithoutRecipeInput | Prisma.RecipePermissionUpdateWithWhereUniqueWithoutRecipeInput[]
322
+ updateMany?: Prisma.RecipePermissionUpdateManyWithWhereWithoutRecipeInput | Prisma.RecipePermissionUpdateManyWithWhereWithoutRecipeInput[]
323
+ deleteMany?: Prisma.RecipePermissionScalarWhereInput | Prisma.RecipePermissionScalarWhereInput[]
324
+ }
325
+
326
+ export type EnumRecipePermissionLevelFieldUpdateOperationsInput = {
327
+ set?: $Enums.RecipePermissionLevel
328
+ }
329
+
330
+ export type RecipePermissionCreateWithoutRecipeInput = {
331
+ role_id: string
332
+ level: $Enums.RecipePermissionLevel
333
+ }
334
+
335
+ export type RecipePermissionUncheckedCreateWithoutRecipeInput = {
336
+ role_id: string
337
+ level: $Enums.RecipePermissionLevel
338
+ }
339
+
340
+ export type RecipePermissionCreateOrConnectWithoutRecipeInput = {
341
+ where: Prisma.RecipePermissionWhereUniqueInput
342
+ create: Prisma.XOR<Prisma.RecipePermissionCreateWithoutRecipeInput, Prisma.RecipePermissionUncheckedCreateWithoutRecipeInput>
343
+ }
344
+
345
+ export type RecipePermissionCreateManyRecipeInputEnvelope = {
346
+ data: Prisma.RecipePermissionCreateManyRecipeInput | Prisma.RecipePermissionCreateManyRecipeInput[]
347
+ }
348
+
349
+ export type RecipePermissionUpsertWithWhereUniqueWithoutRecipeInput = {
350
+ where: Prisma.RecipePermissionWhereUniqueInput
351
+ update: Prisma.XOR<Prisma.RecipePermissionUpdateWithoutRecipeInput, Prisma.RecipePermissionUncheckedUpdateWithoutRecipeInput>
352
+ create: Prisma.XOR<Prisma.RecipePermissionCreateWithoutRecipeInput, Prisma.RecipePermissionUncheckedCreateWithoutRecipeInput>
353
+ }
354
+
355
+ export type RecipePermissionUpdateWithWhereUniqueWithoutRecipeInput = {
356
+ where: Prisma.RecipePermissionWhereUniqueInput
357
+ data: Prisma.XOR<Prisma.RecipePermissionUpdateWithoutRecipeInput, Prisma.RecipePermissionUncheckedUpdateWithoutRecipeInput>
358
+ }
359
+
360
+ export type RecipePermissionUpdateManyWithWhereWithoutRecipeInput = {
361
+ where: Prisma.RecipePermissionScalarWhereInput
362
+ data: Prisma.XOR<Prisma.RecipePermissionUpdateManyMutationInput, Prisma.RecipePermissionUncheckedUpdateManyWithoutRecipeInput>
363
+ }
364
+
365
+ export type RecipePermissionScalarWhereInput = {
366
+ AND?: Prisma.RecipePermissionScalarWhereInput | Prisma.RecipePermissionScalarWhereInput[]
367
+ OR?: Prisma.RecipePermissionScalarWhereInput[]
368
+ NOT?: Prisma.RecipePermissionScalarWhereInput | Prisma.RecipePermissionScalarWhereInput[]
369
+ recipe_id?: Prisma.StringFilter<"RecipePermission"> | string
370
+ role_id?: Prisma.StringFilter<"RecipePermission"> | string
371
+ level?: Prisma.EnumRecipePermissionLevelFilter<"RecipePermission"> | $Enums.RecipePermissionLevel
372
+ }
373
+
374
+ export type RecipePermissionCreateManyRecipeInput = {
375
+ role_id: string
376
+ level: $Enums.RecipePermissionLevel
377
+ }
378
+
379
+ export type RecipePermissionUpdateWithoutRecipeInput = {
380
+ role_id?: Prisma.StringFieldUpdateOperationsInput | string
381
+ level?: Prisma.EnumRecipePermissionLevelFieldUpdateOperationsInput | $Enums.RecipePermissionLevel
382
+ }
383
+
384
+ export type RecipePermissionUncheckedUpdateWithoutRecipeInput = {
385
+ role_id?: Prisma.StringFieldUpdateOperationsInput | string
386
+ level?: Prisma.EnumRecipePermissionLevelFieldUpdateOperationsInput | $Enums.RecipePermissionLevel
387
+ }
388
+
389
+ export type RecipePermissionUncheckedUpdateManyWithoutRecipeInput = {
390
+ role_id?: Prisma.StringFieldUpdateOperationsInput | string
391
+ level?: Prisma.EnumRecipePermissionLevelFieldUpdateOperationsInput | $Enums.RecipePermissionLevel
392
+ }
393
+
394
+
395
+
396
+ export type RecipePermissionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
397
+ recipe_id?: boolean
398
+ role_id?: boolean
399
+ level?: boolean
400
+ recipe?: boolean | Prisma.RecipeDefaultArgs<ExtArgs>
401
+ }, ExtArgs["result"]["recipePermission"]>
402
+
403
+ export type RecipePermissionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
404
+ recipe_id?: boolean
405
+ role_id?: boolean
406
+ level?: boolean
407
+ recipe?: boolean | Prisma.RecipeDefaultArgs<ExtArgs>
408
+ }, ExtArgs["result"]["recipePermission"]>
409
+
410
+ export type RecipePermissionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
411
+ recipe_id?: boolean
412
+ role_id?: boolean
413
+ level?: boolean
414
+ recipe?: boolean | Prisma.RecipeDefaultArgs<ExtArgs>
415
+ }, ExtArgs["result"]["recipePermission"]>
416
+
417
+ export type RecipePermissionSelectScalar = {
418
+ recipe_id?: boolean
419
+ role_id?: boolean
420
+ level?: boolean
421
+ }
422
+
423
+ export type RecipePermissionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"recipe_id" | "role_id" | "level", ExtArgs["result"]["recipePermission"]>
424
+ export type RecipePermissionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
425
+ recipe?: boolean | Prisma.RecipeDefaultArgs<ExtArgs>
426
+ }
427
+ export type RecipePermissionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
428
+ recipe?: boolean | Prisma.RecipeDefaultArgs<ExtArgs>
429
+ }
430
+ export type RecipePermissionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
431
+ recipe?: boolean | Prisma.RecipeDefaultArgs<ExtArgs>
432
+ }
433
+
434
+ export type $RecipePermissionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
435
+ name: "RecipePermission"
436
+ objects: {
437
+ recipe: Prisma.$RecipePayload<ExtArgs>
438
+ }
439
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
440
+ recipe_id: string
441
+ role_id: string
442
+ level: $Enums.RecipePermissionLevel
443
+ }, ExtArgs["result"]["recipePermission"]>
444
+ composites: {}
445
+ }
446
+
447
+ export type RecipePermissionGetPayload<S extends boolean | null | undefined | RecipePermissionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$RecipePermissionPayload, S>
448
+
449
+ export type RecipePermissionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
450
+ Omit<RecipePermissionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
451
+ select?: RecipePermissionCountAggregateInputType | true
452
+ }
453
+
454
+ export interface RecipePermissionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
455
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['RecipePermission'], meta: { name: 'RecipePermission' } }
456
+ /**
457
+ * Find zero or one RecipePermission that matches the filter.
458
+ * @param {RecipePermissionFindUniqueArgs} args - Arguments to find a RecipePermission
459
+ * @example
460
+ * // Get one RecipePermission
461
+ * const recipePermission = await prisma.recipePermission.findUnique({
462
+ * where: {
463
+ * // ... provide filter here
464
+ * }
465
+ * })
466
+ */
467
+ findUnique<T extends RecipePermissionFindUniqueArgs>(args: Prisma.SelectSubset<T, RecipePermissionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__RecipePermissionClient<runtime.Types.Result.GetResult<Prisma.$RecipePermissionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
468
+
469
+ /**
470
+ * Find one RecipePermission that matches the filter or throw an error with `error.code='P2025'`
471
+ * if no matches were found.
472
+ * @param {RecipePermissionFindUniqueOrThrowArgs} args - Arguments to find a RecipePermission
473
+ * @example
474
+ * // Get one RecipePermission
475
+ * const recipePermission = await prisma.recipePermission.findUniqueOrThrow({
476
+ * where: {
477
+ * // ... provide filter here
478
+ * }
479
+ * })
480
+ */
481
+ findUniqueOrThrow<T extends RecipePermissionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, RecipePermissionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__RecipePermissionClient<runtime.Types.Result.GetResult<Prisma.$RecipePermissionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
482
+
483
+ /**
484
+ * Find the first RecipePermission that matches the filter.
485
+ * Note, that providing `undefined` is treated as the value not being there.
486
+ * Read more here: https://pris.ly/d/null-undefined
487
+ * @param {RecipePermissionFindFirstArgs} args - Arguments to find a RecipePermission
488
+ * @example
489
+ * // Get one RecipePermission
490
+ * const recipePermission = await prisma.recipePermission.findFirst({
491
+ * where: {
492
+ * // ... provide filter here
493
+ * }
494
+ * })
495
+ */
496
+ findFirst<T extends RecipePermissionFindFirstArgs>(args?: Prisma.SelectSubset<T, RecipePermissionFindFirstArgs<ExtArgs>>): Prisma.Prisma__RecipePermissionClient<runtime.Types.Result.GetResult<Prisma.$RecipePermissionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
497
+
498
+ /**
499
+ * Find the first RecipePermission that matches the filter or
500
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
501
+ * Note, that providing `undefined` is treated as the value not being there.
502
+ * Read more here: https://pris.ly/d/null-undefined
503
+ * @param {RecipePermissionFindFirstOrThrowArgs} args - Arguments to find a RecipePermission
504
+ * @example
505
+ * // Get one RecipePermission
506
+ * const recipePermission = await prisma.recipePermission.findFirstOrThrow({
507
+ * where: {
508
+ * // ... provide filter here
509
+ * }
510
+ * })
511
+ */
512
+ findFirstOrThrow<T extends RecipePermissionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, RecipePermissionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__RecipePermissionClient<runtime.Types.Result.GetResult<Prisma.$RecipePermissionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
513
+
514
+ /**
515
+ * Find zero or more RecipePermissions that matches the filter.
516
+ * Note, that providing `undefined` is treated as the value not being there.
517
+ * Read more here: https://pris.ly/d/null-undefined
518
+ * @param {RecipePermissionFindManyArgs} args - Arguments to filter and select certain fields only.
519
+ * @example
520
+ * // Get all RecipePermissions
521
+ * const recipePermissions = await prisma.recipePermission.findMany()
522
+ *
523
+ * // Get first 10 RecipePermissions
524
+ * const recipePermissions = await prisma.recipePermission.findMany({ take: 10 })
525
+ *
526
+ * // Only select the `recipe_id`
527
+ * const recipePermissionWithRecipe_idOnly = await prisma.recipePermission.findMany({ select: { recipe_id: true } })
528
+ *
529
+ */
530
+ findMany<T extends RecipePermissionFindManyArgs>(args?: Prisma.SelectSubset<T, RecipePermissionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RecipePermissionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
531
+
532
+ /**
533
+ * Create a RecipePermission.
534
+ * @param {RecipePermissionCreateArgs} args - Arguments to create a RecipePermission.
535
+ * @example
536
+ * // Create one RecipePermission
537
+ * const RecipePermission = await prisma.recipePermission.create({
538
+ * data: {
539
+ * // ... data to create a RecipePermission
540
+ * }
541
+ * })
542
+ *
543
+ */
544
+ create<T extends RecipePermissionCreateArgs>(args: Prisma.SelectSubset<T, RecipePermissionCreateArgs<ExtArgs>>): Prisma.Prisma__RecipePermissionClient<runtime.Types.Result.GetResult<Prisma.$RecipePermissionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
545
+
546
+ /**
547
+ * Create many RecipePermissions.
548
+ * @param {RecipePermissionCreateManyArgs} args - Arguments to create many RecipePermissions.
549
+ * @example
550
+ * // Create many RecipePermissions
551
+ * const recipePermission = await prisma.recipePermission.createMany({
552
+ * data: [
553
+ * // ... provide data here
554
+ * ]
555
+ * })
556
+ *
557
+ */
558
+ createMany<T extends RecipePermissionCreateManyArgs>(args?: Prisma.SelectSubset<T, RecipePermissionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
559
+
560
+ /**
561
+ * Create many RecipePermissions and returns the data saved in the database.
562
+ * @param {RecipePermissionCreateManyAndReturnArgs} args - Arguments to create many RecipePermissions.
563
+ * @example
564
+ * // Create many RecipePermissions
565
+ * const recipePermission = await prisma.recipePermission.createManyAndReturn({
566
+ * data: [
567
+ * // ... provide data here
568
+ * ]
569
+ * })
570
+ *
571
+ * // Create many RecipePermissions and only return the `recipe_id`
572
+ * const recipePermissionWithRecipe_idOnly = await prisma.recipePermission.createManyAndReturn({
573
+ * select: { recipe_id: true },
574
+ * data: [
575
+ * // ... provide data here
576
+ * ]
577
+ * })
578
+ * Note, that providing `undefined` is treated as the value not being there.
579
+ * Read more here: https://pris.ly/d/null-undefined
580
+ *
581
+ */
582
+ createManyAndReturn<T extends RecipePermissionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, RecipePermissionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RecipePermissionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
583
+
584
+ /**
585
+ * Delete a RecipePermission.
586
+ * @param {RecipePermissionDeleteArgs} args - Arguments to delete one RecipePermission.
587
+ * @example
588
+ * // Delete one RecipePermission
589
+ * const RecipePermission = await prisma.recipePermission.delete({
590
+ * where: {
591
+ * // ... filter to delete one RecipePermission
592
+ * }
593
+ * })
594
+ *
595
+ */
596
+ delete<T extends RecipePermissionDeleteArgs>(args: Prisma.SelectSubset<T, RecipePermissionDeleteArgs<ExtArgs>>): Prisma.Prisma__RecipePermissionClient<runtime.Types.Result.GetResult<Prisma.$RecipePermissionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
597
+
598
+ /**
599
+ * Update one RecipePermission.
600
+ * @param {RecipePermissionUpdateArgs} args - Arguments to update one RecipePermission.
601
+ * @example
602
+ * // Update one RecipePermission
603
+ * const recipePermission = await prisma.recipePermission.update({
604
+ * where: {
605
+ * // ... provide filter here
606
+ * },
607
+ * data: {
608
+ * // ... provide data here
609
+ * }
610
+ * })
611
+ *
612
+ */
613
+ update<T extends RecipePermissionUpdateArgs>(args: Prisma.SelectSubset<T, RecipePermissionUpdateArgs<ExtArgs>>): Prisma.Prisma__RecipePermissionClient<runtime.Types.Result.GetResult<Prisma.$RecipePermissionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
614
+
615
+ /**
616
+ * Delete zero or more RecipePermissions.
617
+ * @param {RecipePermissionDeleteManyArgs} args - Arguments to filter RecipePermissions to delete.
618
+ * @example
619
+ * // Delete a few RecipePermissions
620
+ * const { count } = await prisma.recipePermission.deleteMany({
621
+ * where: {
622
+ * // ... provide filter here
623
+ * }
624
+ * })
625
+ *
626
+ */
627
+ deleteMany<T extends RecipePermissionDeleteManyArgs>(args?: Prisma.SelectSubset<T, RecipePermissionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
628
+
629
+ /**
630
+ * Update zero or more RecipePermissions.
631
+ * Note, that providing `undefined` is treated as the value not being there.
632
+ * Read more here: https://pris.ly/d/null-undefined
633
+ * @param {RecipePermissionUpdateManyArgs} args - Arguments to update one or more rows.
634
+ * @example
635
+ * // Update many RecipePermissions
636
+ * const recipePermission = await prisma.recipePermission.updateMany({
637
+ * where: {
638
+ * // ... provide filter here
639
+ * },
640
+ * data: {
641
+ * // ... provide data here
642
+ * }
643
+ * })
644
+ *
645
+ */
646
+ updateMany<T extends RecipePermissionUpdateManyArgs>(args: Prisma.SelectSubset<T, RecipePermissionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
647
+
648
+ /**
649
+ * Update zero or more RecipePermissions and returns the data updated in the database.
650
+ * @param {RecipePermissionUpdateManyAndReturnArgs} args - Arguments to update many RecipePermissions.
651
+ * @example
652
+ * // Update many RecipePermissions
653
+ * const recipePermission = await prisma.recipePermission.updateManyAndReturn({
654
+ * where: {
655
+ * // ... provide filter here
656
+ * },
657
+ * data: [
658
+ * // ... provide data here
659
+ * ]
660
+ * })
661
+ *
662
+ * // Update zero or more RecipePermissions and only return the `recipe_id`
663
+ * const recipePermissionWithRecipe_idOnly = await prisma.recipePermission.updateManyAndReturn({
664
+ * select: { recipe_id: true },
665
+ * where: {
666
+ * // ... provide filter here
667
+ * },
668
+ * data: [
669
+ * // ... provide data here
670
+ * ]
671
+ * })
672
+ * Note, that providing `undefined` is treated as the value not being there.
673
+ * Read more here: https://pris.ly/d/null-undefined
674
+ *
675
+ */
676
+ updateManyAndReturn<T extends RecipePermissionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, RecipePermissionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RecipePermissionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
677
+
678
+ /**
679
+ * Create or update one RecipePermission.
680
+ * @param {RecipePermissionUpsertArgs} args - Arguments to update or create a RecipePermission.
681
+ * @example
682
+ * // Update or create a RecipePermission
683
+ * const recipePermission = await prisma.recipePermission.upsert({
684
+ * create: {
685
+ * // ... data to create a RecipePermission
686
+ * },
687
+ * update: {
688
+ * // ... in case it already exists, update
689
+ * },
690
+ * where: {
691
+ * // ... the filter for the RecipePermission we want to update
692
+ * }
693
+ * })
694
+ */
695
+ upsert<T extends RecipePermissionUpsertArgs>(args: Prisma.SelectSubset<T, RecipePermissionUpsertArgs<ExtArgs>>): Prisma.Prisma__RecipePermissionClient<runtime.Types.Result.GetResult<Prisma.$RecipePermissionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
696
+
697
+
698
+ /**
699
+ * Count the number of RecipePermissions.
700
+ * Note, that providing `undefined` is treated as the value not being there.
701
+ * Read more here: https://pris.ly/d/null-undefined
702
+ * @param {RecipePermissionCountArgs} args - Arguments to filter RecipePermissions to count.
703
+ * @example
704
+ * // Count the number of RecipePermissions
705
+ * const count = await prisma.recipePermission.count({
706
+ * where: {
707
+ * // ... the filter for the RecipePermissions we want to count
708
+ * }
709
+ * })
710
+ **/
711
+ count<T extends RecipePermissionCountArgs>(
712
+ args?: Prisma.Subset<T, RecipePermissionCountArgs>,
713
+ ): Prisma.PrismaPromise<
714
+ T extends runtime.Types.Utils.Record<'select', any>
715
+ ? T['select'] extends true
716
+ ? number
717
+ : Prisma.GetScalarType<T['select'], RecipePermissionCountAggregateOutputType>
718
+ : number
719
+ >
720
+
721
+ /**
722
+ * Allows you to perform aggregations operations on a RecipePermission.
723
+ * Note, that providing `undefined` is treated as the value not being there.
724
+ * Read more here: https://pris.ly/d/null-undefined
725
+ * @param {RecipePermissionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
726
+ * @example
727
+ * // Ordered by age ascending
728
+ * // Where email contains prisma.io
729
+ * // Limited to the 10 users
730
+ * const aggregations = await prisma.user.aggregate({
731
+ * _avg: {
732
+ * age: true,
733
+ * },
734
+ * where: {
735
+ * email: {
736
+ * contains: "prisma.io",
737
+ * },
738
+ * },
739
+ * orderBy: {
740
+ * age: "asc",
741
+ * },
742
+ * take: 10,
743
+ * })
744
+ **/
745
+ aggregate<T extends RecipePermissionAggregateArgs>(args: Prisma.Subset<T, RecipePermissionAggregateArgs>): Prisma.PrismaPromise<GetRecipePermissionAggregateType<T>>
746
+
747
+ /**
748
+ * Group by RecipePermission.
749
+ * Note, that providing `undefined` is treated as the value not being there.
750
+ * Read more here: https://pris.ly/d/null-undefined
751
+ * @param {RecipePermissionGroupByArgs} args - Group by arguments.
752
+ * @example
753
+ * // Group by city, order by createdAt, get count
754
+ * const result = await prisma.user.groupBy({
755
+ * by: ['city', 'createdAt'],
756
+ * orderBy: {
757
+ * createdAt: true
758
+ * },
759
+ * _count: {
760
+ * _all: true
761
+ * },
762
+ * })
763
+ *
764
+ **/
765
+ groupBy<
766
+ T extends RecipePermissionGroupByArgs,
767
+ HasSelectOrTake extends Prisma.Or<
768
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
769
+ Prisma.Extends<'take', Prisma.Keys<T>>
770
+ >,
771
+ OrderByArg extends Prisma.True extends HasSelectOrTake
772
+ ? { orderBy: RecipePermissionGroupByArgs['orderBy'] }
773
+ : { orderBy?: RecipePermissionGroupByArgs['orderBy'] },
774
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
775
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
776
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
777
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
778
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
779
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
780
+ InputErrors extends ByEmpty extends Prisma.True
781
+ ? `Error: "by" must not be empty.`
782
+ : HavingValid extends Prisma.False
783
+ ? {
784
+ [P in HavingFields]: P extends ByFields
785
+ ? never
786
+ : P extends string
787
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
788
+ : [
789
+ Error,
790
+ 'Field ',
791
+ P,
792
+ ` in "having" needs to be provided in "by"`,
793
+ ]
794
+ }[HavingFields]
795
+ : 'take' extends Prisma.Keys<T>
796
+ ? 'orderBy' extends Prisma.Keys<T>
797
+ ? ByValid extends Prisma.True
798
+ ? {}
799
+ : {
800
+ [P in OrderFields]: P extends ByFields
801
+ ? never
802
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
803
+ }[OrderFields]
804
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
805
+ : 'skip' extends Prisma.Keys<T>
806
+ ? 'orderBy' extends Prisma.Keys<T>
807
+ ? ByValid extends Prisma.True
808
+ ? {}
809
+ : {
810
+ [P in OrderFields]: P extends ByFields
811
+ ? never
812
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
813
+ }[OrderFields]
814
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
815
+ : ByValid extends Prisma.True
816
+ ? {}
817
+ : {
818
+ [P in OrderFields]: P extends ByFields
819
+ ? never
820
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
821
+ }[OrderFields]
822
+ >(args: Prisma.SubsetIntersection<T, RecipePermissionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetRecipePermissionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
823
+ /**
824
+ * Fields of the RecipePermission model
825
+ */
826
+ readonly fields: RecipePermissionFieldRefs;
827
+ }
828
+
829
+ /**
830
+ * The delegate class that acts as a "Promise-like" for RecipePermission.
831
+ * Why is this prefixed with `Prisma__`?
832
+ * Because we want to prevent naming conflicts as mentioned in
833
+ * https://github.com/prisma/prisma-client-js/issues/707
834
+ */
835
+ export interface Prisma__RecipePermissionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
836
+ readonly [Symbol.toStringTag]: "PrismaPromise"
837
+ recipe<T extends Prisma.RecipeDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.RecipeDefaultArgs<ExtArgs>>): Prisma.Prisma__RecipeClient<runtime.Types.Result.GetResult<Prisma.$RecipePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
838
+ /**
839
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
840
+ * @param onfulfilled The callback to execute when the Promise is resolved.
841
+ * @param onrejected The callback to execute when the Promise is rejected.
842
+ * @returns A Promise for the completion of which ever callback is executed.
843
+ */
844
+ 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>
845
+ /**
846
+ * Attaches a callback for only the rejection of the Promise.
847
+ * @param onrejected The callback to execute when the Promise is rejected.
848
+ * @returns A Promise for the completion of the callback.
849
+ */
850
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
851
+ /**
852
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
853
+ * resolved value cannot be modified from the callback.
854
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
855
+ * @returns A Promise for the completion of the callback.
856
+ */
857
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
858
+ }
859
+
860
+
861
+
862
+
863
+ /**
864
+ * Fields of the RecipePermission model
865
+ */
866
+ export interface RecipePermissionFieldRefs {
867
+ readonly recipe_id: Prisma.FieldRef<"RecipePermission", 'String'>
868
+ readonly role_id: Prisma.FieldRef<"RecipePermission", 'String'>
869
+ readonly level: Prisma.FieldRef<"RecipePermission", 'RecipePermissionLevel'>
870
+ }
871
+
872
+
873
+ // Custom InputTypes
874
+ /**
875
+ * RecipePermission findUnique
876
+ */
877
+ export type RecipePermissionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
878
+ /**
879
+ * Select specific fields to fetch from the RecipePermission
880
+ */
881
+ select?: Prisma.RecipePermissionSelect<ExtArgs> | null
882
+ /**
883
+ * Omit specific fields from the RecipePermission
884
+ */
885
+ omit?: Prisma.RecipePermissionOmit<ExtArgs> | null
886
+ /**
887
+ * Choose, which related nodes to fetch as well
888
+ */
889
+ include?: Prisma.RecipePermissionInclude<ExtArgs> | null
890
+ /**
891
+ * Filter, which RecipePermission to fetch.
892
+ */
893
+ where: Prisma.RecipePermissionWhereUniqueInput
894
+ }
895
+
896
+ /**
897
+ * RecipePermission findUniqueOrThrow
898
+ */
899
+ export type RecipePermissionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
900
+ /**
901
+ * Select specific fields to fetch from the RecipePermission
902
+ */
903
+ select?: Prisma.RecipePermissionSelect<ExtArgs> | null
904
+ /**
905
+ * Omit specific fields from the RecipePermission
906
+ */
907
+ omit?: Prisma.RecipePermissionOmit<ExtArgs> | null
908
+ /**
909
+ * Choose, which related nodes to fetch as well
910
+ */
911
+ include?: Prisma.RecipePermissionInclude<ExtArgs> | null
912
+ /**
913
+ * Filter, which RecipePermission to fetch.
914
+ */
915
+ where: Prisma.RecipePermissionWhereUniqueInput
916
+ }
917
+
918
+ /**
919
+ * RecipePermission findFirst
920
+ */
921
+ export type RecipePermissionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
922
+ /**
923
+ * Select specific fields to fetch from the RecipePermission
924
+ */
925
+ select?: Prisma.RecipePermissionSelect<ExtArgs> | null
926
+ /**
927
+ * Omit specific fields from the RecipePermission
928
+ */
929
+ omit?: Prisma.RecipePermissionOmit<ExtArgs> | null
930
+ /**
931
+ * Choose, which related nodes to fetch as well
932
+ */
933
+ include?: Prisma.RecipePermissionInclude<ExtArgs> | null
934
+ /**
935
+ * Filter, which RecipePermission to fetch.
936
+ */
937
+ where?: Prisma.RecipePermissionWhereInput
938
+ /**
939
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
940
+ *
941
+ * Determine the order of RecipePermissions to fetch.
942
+ */
943
+ orderBy?: Prisma.RecipePermissionOrderByWithRelationInput | Prisma.RecipePermissionOrderByWithRelationInput[]
944
+ /**
945
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
946
+ *
947
+ * Sets the position for searching for RecipePermissions.
948
+ */
949
+ cursor?: Prisma.RecipePermissionWhereUniqueInput
950
+ /**
951
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
952
+ *
953
+ * Take `±n` RecipePermissions from the position of the cursor.
954
+ */
955
+ take?: number
956
+ /**
957
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
958
+ *
959
+ * Skip the first `n` RecipePermissions.
960
+ */
961
+ skip?: number
962
+ /**
963
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
964
+ *
965
+ * Filter by unique combinations of RecipePermissions.
966
+ */
967
+ distinct?: Prisma.RecipePermissionScalarFieldEnum | Prisma.RecipePermissionScalarFieldEnum[]
968
+ }
969
+
970
+ /**
971
+ * RecipePermission findFirstOrThrow
972
+ */
973
+ export type RecipePermissionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
974
+ /**
975
+ * Select specific fields to fetch from the RecipePermission
976
+ */
977
+ select?: Prisma.RecipePermissionSelect<ExtArgs> | null
978
+ /**
979
+ * Omit specific fields from the RecipePermission
980
+ */
981
+ omit?: Prisma.RecipePermissionOmit<ExtArgs> | null
982
+ /**
983
+ * Choose, which related nodes to fetch as well
984
+ */
985
+ include?: Prisma.RecipePermissionInclude<ExtArgs> | null
986
+ /**
987
+ * Filter, which RecipePermission to fetch.
988
+ */
989
+ where?: Prisma.RecipePermissionWhereInput
990
+ /**
991
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
992
+ *
993
+ * Determine the order of RecipePermissions to fetch.
994
+ */
995
+ orderBy?: Prisma.RecipePermissionOrderByWithRelationInput | Prisma.RecipePermissionOrderByWithRelationInput[]
996
+ /**
997
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
998
+ *
999
+ * Sets the position for searching for RecipePermissions.
1000
+ */
1001
+ cursor?: Prisma.RecipePermissionWhereUniqueInput
1002
+ /**
1003
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1004
+ *
1005
+ * Take `±n` RecipePermissions from the position of the cursor.
1006
+ */
1007
+ take?: number
1008
+ /**
1009
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1010
+ *
1011
+ * Skip the first `n` RecipePermissions.
1012
+ */
1013
+ skip?: number
1014
+ /**
1015
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1016
+ *
1017
+ * Filter by unique combinations of RecipePermissions.
1018
+ */
1019
+ distinct?: Prisma.RecipePermissionScalarFieldEnum | Prisma.RecipePermissionScalarFieldEnum[]
1020
+ }
1021
+
1022
+ /**
1023
+ * RecipePermission findMany
1024
+ */
1025
+ export type RecipePermissionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1026
+ /**
1027
+ * Select specific fields to fetch from the RecipePermission
1028
+ */
1029
+ select?: Prisma.RecipePermissionSelect<ExtArgs> | null
1030
+ /**
1031
+ * Omit specific fields from the RecipePermission
1032
+ */
1033
+ omit?: Prisma.RecipePermissionOmit<ExtArgs> | null
1034
+ /**
1035
+ * Choose, which related nodes to fetch as well
1036
+ */
1037
+ include?: Prisma.RecipePermissionInclude<ExtArgs> | null
1038
+ /**
1039
+ * Filter, which RecipePermissions to fetch.
1040
+ */
1041
+ where?: Prisma.RecipePermissionWhereInput
1042
+ /**
1043
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1044
+ *
1045
+ * Determine the order of RecipePermissions to fetch.
1046
+ */
1047
+ orderBy?: Prisma.RecipePermissionOrderByWithRelationInput | Prisma.RecipePermissionOrderByWithRelationInput[]
1048
+ /**
1049
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1050
+ *
1051
+ * Sets the position for listing RecipePermissions.
1052
+ */
1053
+ cursor?: Prisma.RecipePermissionWhereUniqueInput
1054
+ /**
1055
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1056
+ *
1057
+ * Take `±n` RecipePermissions from the position of the cursor.
1058
+ */
1059
+ take?: number
1060
+ /**
1061
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1062
+ *
1063
+ * Skip the first `n` RecipePermissions.
1064
+ */
1065
+ skip?: number
1066
+ /**
1067
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1068
+ *
1069
+ * Filter by unique combinations of RecipePermissions.
1070
+ */
1071
+ distinct?: Prisma.RecipePermissionScalarFieldEnum | Prisma.RecipePermissionScalarFieldEnum[]
1072
+ }
1073
+
1074
+ /**
1075
+ * RecipePermission create
1076
+ */
1077
+ export type RecipePermissionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1078
+ /**
1079
+ * Select specific fields to fetch from the RecipePermission
1080
+ */
1081
+ select?: Prisma.RecipePermissionSelect<ExtArgs> | null
1082
+ /**
1083
+ * Omit specific fields from the RecipePermission
1084
+ */
1085
+ omit?: Prisma.RecipePermissionOmit<ExtArgs> | null
1086
+ /**
1087
+ * Choose, which related nodes to fetch as well
1088
+ */
1089
+ include?: Prisma.RecipePermissionInclude<ExtArgs> | null
1090
+ /**
1091
+ * The data needed to create a RecipePermission.
1092
+ */
1093
+ data: Prisma.XOR<Prisma.RecipePermissionCreateInput, Prisma.RecipePermissionUncheckedCreateInput>
1094
+ }
1095
+
1096
+ /**
1097
+ * RecipePermission createMany
1098
+ */
1099
+ export type RecipePermissionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1100
+ /**
1101
+ * The data used to create many RecipePermissions.
1102
+ */
1103
+ data: Prisma.RecipePermissionCreateManyInput | Prisma.RecipePermissionCreateManyInput[]
1104
+ }
1105
+
1106
+ /**
1107
+ * RecipePermission createManyAndReturn
1108
+ */
1109
+ export type RecipePermissionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1110
+ /**
1111
+ * Select specific fields to fetch from the RecipePermission
1112
+ */
1113
+ select?: Prisma.RecipePermissionSelectCreateManyAndReturn<ExtArgs> | null
1114
+ /**
1115
+ * Omit specific fields from the RecipePermission
1116
+ */
1117
+ omit?: Prisma.RecipePermissionOmit<ExtArgs> | null
1118
+ /**
1119
+ * The data used to create many RecipePermissions.
1120
+ */
1121
+ data: Prisma.RecipePermissionCreateManyInput | Prisma.RecipePermissionCreateManyInput[]
1122
+ /**
1123
+ * Choose, which related nodes to fetch as well
1124
+ */
1125
+ include?: Prisma.RecipePermissionIncludeCreateManyAndReturn<ExtArgs> | null
1126
+ }
1127
+
1128
+ /**
1129
+ * RecipePermission update
1130
+ */
1131
+ export type RecipePermissionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1132
+ /**
1133
+ * Select specific fields to fetch from the RecipePermission
1134
+ */
1135
+ select?: Prisma.RecipePermissionSelect<ExtArgs> | null
1136
+ /**
1137
+ * Omit specific fields from the RecipePermission
1138
+ */
1139
+ omit?: Prisma.RecipePermissionOmit<ExtArgs> | null
1140
+ /**
1141
+ * Choose, which related nodes to fetch as well
1142
+ */
1143
+ include?: Prisma.RecipePermissionInclude<ExtArgs> | null
1144
+ /**
1145
+ * The data needed to update a RecipePermission.
1146
+ */
1147
+ data: Prisma.XOR<Prisma.RecipePermissionUpdateInput, Prisma.RecipePermissionUncheckedUpdateInput>
1148
+ /**
1149
+ * Choose, which RecipePermission to update.
1150
+ */
1151
+ where: Prisma.RecipePermissionWhereUniqueInput
1152
+ }
1153
+
1154
+ /**
1155
+ * RecipePermission updateMany
1156
+ */
1157
+ export type RecipePermissionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1158
+ /**
1159
+ * The data used to update RecipePermissions.
1160
+ */
1161
+ data: Prisma.XOR<Prisma.RecipePermissionUpdateManyMutationInput, Prisma.RecipePermissionUncheckedUpdateManyInput>
1162
+ /**
1163
+ * Filter which RecipePermissions to update
1164
+ */
1165
+ where?: Prisma.RecipePermissionWhereInput
1166
+ /**
1167
+ * Limit how many RecipePermissions to update.
1168
+ */
1169
+ limit?: number
1170
+ }
1171
+
1172
+ /**
1173
+ * RecipePermission updateManyAndReturn
1174
+ */
1175
+ export type RecipePermissionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1176
+ /**
1177
+ * Select specific fields to fetch from the RecipePermission
1178
+ */
1179
+ select?: Prisma.RecipePermissionSelectUpdateManyAndReturn<ExtArgs> | null
1180
+ /**
1181
+ * Omit specific fields from the RecipePermission
1182
+ */
1183
+ omit?: Prisma.RecipePermissionOmit<ExtArgs> | null
1184
+ /**
1185
+ * The data used to update RecipePermissions.
1186
+ */
1187
+ data: Prisma.XOR<Prisma.RecipePermissionUpdateManyMutationInput, Prisma.RecipePermissionUncheckedUpdateManyInput>
1188
+ /**
1189
+ * Filter which RecipePermissions to update
1190
+ */
1191
+ where?: Prisma.RecipePermissionWhereInput
1192
+ /**
1193
+ * Limit how many RecipePermissions to update.
1194
+ */
1195
+ limit?: number
1196
+ /**
1197
+ * Choose, which related nodes to fetch as well
1198
+ */
1199
+ include?: Prisma.RecipePermissionIncludeUpdateManyAndReturn<ExtArgs> | null
1200
+ }
1201
+
1202
+ /**
1203
+ * RecipePermission upsert
1204
+ */
1205
+ export type RecipePermissionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1206
+ /**
1207
+ * Select specific fields to fetch from the RecipePermission
1208
+ */
1209
+ select?: Prisma.RecipePermissionSelect<ExtArgs> | null
1210
+ /**
1211
+ * Omit specific fields from the RecipePermission
1212
+ */
1213
+ omit?: Prisma.RecipePermissionOmit<ExtArgs> | null
1214
+ /**
1215
+ * Choose, which related nodes to fetch as well
1216
+ */
1217
+ include?: Prisma.RecipePermissionInclude<ExtArgs> | null
1218
+ /**
1219
+ * The filter to search for the RecipePermission to update in case it exists.
1220
+ */
1221
+ where: Prisma.RecipePermissionWhereUniqueInput
1222
+ /**
1223
+ * In case the RecipePermission found by the `where` argument doesn't exist, create a new RecipePermission with this data.
1224
+ */
1225
+ create: Prisma.XOR<Prisma.RecipePermissionCreateInput, Prisma.RecipePermissionUncheckedCreateInput>
1226
+ /**
1227
+ * In case the RecipePermission was found with the provided `where` argument, update it with this data.
1228
+ */
1229
+ update: Prisma.XOR<Prisma.RecipePermissionUpdateInput, Prisma.RecipePermissionUncheckedUpdateInput>
1230
+ }
1231
+
1232
+ /**
1233
+ * RecipePermission delete
1234
+ */
1235
+ export type RecipePermissionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1236
+ /**
1237
+ * Select specific fields to fetch from the RecipePermission
1238
+ */
1239
+ select?: Prisma.RecipePermissionSelect<ExtArgs> | null
1240
+ /**
1241
+ * Omit specific fields from the RecipePermission
1242
+ */
1243
+ omit?: Prisma.RecipePermissionOmit<ExtArgs> | null
1244
+ /**
1245
+ * Choose, which related nodes to fetch as well
1246
+ */
1247
+ include?: Prisma.RecipePermissionInclude<ExtArgs> | null
1248
+ /**
1249
+ * Filter which RecipePermission to delete.
1250
+ */
1251
+ where: Prisma.RecipePermissionWhereUniqueInput
1252
+ }
1253
+
1254
+ /**
1255
+ * RecipePermission deleteMany
1256
+ */
1257
+ export type RecipePermissionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1258
+ /**
1259
+ * Filter which RecipePermissions to delete
1260
+ */
1261
+ where?: Prisma.RecipePermissionWhereInput
1262
+ /**
1263
+ * Limit how many RecipePermissions to delete.
1264
+ */
1265
+ limit?: number
1266
+ }
1267
+
1268
+ /**
1269
+ * RecipePermission without action
1270
+ */
1271
+ export type RecipePermissionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1272
+ /**
1273
+ * Select specific fields to fetch from the RecipePermission
1274
+ */
1275
+ select?: Prisma.RecipePermissionSelect<ExtArgs> | null
1276
+ /**
1277
+ * Omit specific fields from the RecipePermission
1278
+ */
1279
+ omit?: Prisma.RecipePermissionOmit<ExtArgs> | null
1280
+ /**
1281
+ * Choose, which related nodes to fetch as well
1282
+ */
1283
+ include?: Prisma.RecipePermissionInclude<ExtArgs> | null
1284
+ }