@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.
- package/README.md +41 -20
- package/dist/metafile-esm.json +1 -1
- package/dist/mws.js +40249 -20249
- package/dist/mws.js.map +1 -1
- package/mws.run.mjs +28 -8
- package/package.json +20 -33
- package/plugins/client/plugin.info +1 -1
- package/plugins/client/src/multiwikiclientadaptor.ts +11 -39
- package/plugins/client/src/mws.d.ts +2 -1
- package/plugins/client/src/new-multiwikiclientadaptor.ts +634 -0
- package/plugins/client/src/types.d.ts +2531 -1036
- package/plugins/client/tiddlers/managetiddleraction.js +0 -5
- package/plugins/client/tiddlers/syncer/multiwikiclientadaptor.js +1 -1
- package/plugins/client/tiddlers/syncer/new-multiwikiclientadaptor.js +432 -0
- package/plugins/client/tiddlers/syncer/syncer.js +123 -241
- package/plugins/client/tsconfig.json +5 -1
- package/prisma/browser.ts +2 -0
- package/prisma/client/browser.ts +84 -0
- package/prisma/client/client.ts +108 -0
- package/prisma/client/commonInputTypes.ts +598 -0
- package/prisma/client/enums.ts +42 -0
- package/prisma/client/internal/class.ts +326 -0
- package/prisma/client/internal/prismaNamespace.ts +1870 -0
- package/prisma/client/internal/prismaNamespaceBrowser.ts +259 -0
- package/prisma/client/models/Bag.ts +1701 -0
- package/prisma/client/models/BagPermission.ts +1284 -0
- package/prisma/client/models/Recipe.ts +1722 -0
- package/prisma/client/models/RecipeBag.ts +1518 -0
- package/prisma/client/models/RecipePermission.ts +1284 -0
- package/prisma/client/models/Roles.ts +1316 -0
- package/prisma/client/models/Sessions.ts +1344 -0
- package/prisma/client/models/Settings.ts +1093 -0
- package/prisma/client/models/Template.ts +1477 -0
- package/prisma/client/models/TemplatePermission.ts +1284 -0
- package/prisma/client/models/Tiddler.ts +1434 -0
- package/prisma/client/models/TiddlerEvent.ts +1360 -0
- package/prisma/client/models/Users.ts +1579 -0
- package/prisma/client/models.ts +24 -0
- package/prisma/client/pjtg.ts +183 -0
- package/prisma/index.ts +74 -0
- package/prisma/migrations/20260708160259_init/migration.sql +172 -0
- package/prisma/migrations-v1/migration_lock.toml +3 -0
- package/prisma/package.json +12 -0
- package/prisma/schema.prisma +147 -89
- package/prisma/types.ts +9 -0
- package/public/.default.html +1 -0
- package/public/admin-vanilla/fish.svg +399 -0
- package/public/admin-vanilla/fish2.svg +389 -0
- package/public/admin-vanilla/main-64WYHWYI.js +1791 -0
- package/public/admin-vanilla/main-64WYHWYI.js.map +7 -0
- package/public/admin-vanilla/main-LYDE4NDJ.css +1 -0
- package/public/admin-vanilla/normalize.css +349 -0
- package/public/admin-vanilla/polyfill-ADOI2A4V.js +2 -0
- package/public/admin-vanilla/polyfill-ADOI2A4V.js.map +7 -0
- package/public/{react-admin → admin-vanilla}/site.webmanifest +1 -1
- package/public/admin-vanilla.html +62 -0
- package/public/admin-vanilla.json +1 -0
- package/public/{react-admin → stats}/stats.html +5 -2
- package/public/{react-admin → stats}/stats.js +2 -1
- package/scripts/build-docs.sh +30 -0
- package/scripts/helpers.mjs +107 -0
- package/scripts/json.js +8 -0
- package/scripts/scripts.mjs +114 -0
- package/prisma/client/client.d.ts +0 -1
- package/prisma/client/client.js +0 -3
- package/prisma/client/default.d.ts +0 -1
- package/prisma/client/default.js +0 -3
- package/prisma/client/edge.d.ts +0 -1
- package/prisma/client/edge.js +0 -297
- package/prisma/client/index-browser.js +0 -275
- package/prisma/client/index.d.ts +0 -17770
- package/prisma/client/index.js +0 -324
- package/prisma/client/package.json +0 -173
- package/prisma/client/query_engine_bg.js +0 -811
- package/prisma/client/query_engine_bg.wasm +0 -0
- package/prisma/client/runtime/edge-esm.js +0 -10000
- package/prisma/client/runtime/edge.js +0 -10036
- package/prisma/client/runtime/index-browser.d.ts +0 -370
- package/prisma/client/runtime/index-browser.js +0 -2300
- package/prisma/client/runtime/library.d.ts +0 -3681
- package/prisma/client/runtime/library.js +0 -10604
- package/prisma/client/runtime/react-native.js +0 -10629
- package/prisma/client/runtime/wasm-compiler-edge.js +0 -11238
- package/prisma/client/runtime/wasm-engine-edge.js +0 -7801
- package/prisma/client/schema.prisma +0 -156
- package/prisma/client/wasm-edge-light-loader.mjs +0 -4
- package/prisma/client/wasm-worker-loader.mjs +0 -4
- package/prisma/client/wasm.d.ts +0 -1
- package/prisma/client/wasm.js +0 -304
- package/prisma/global.ts +0 -53
- package/public/react-admin/chunk-YALWN5OT.js +0 -2
- package/public/react-admin/esm-L4WLVWJN.js +0 -3
- package/public/react-admin/esm-L4WLVWJN.js.map +0 -7
- package/public/react-admin/esm-QMNGI3LF.js +0 -3
- package/public/react-admin/esm-QMNGI3LF.js.map +0 -7
- package/public/react-admin/index.html +0 -36
- package/public/react-admin/main.js +0 -268
- package/public/react-admin/main.js.map +0 -7
- package/public/react-admin/stats.json +0 -1
- package/scripts.mjs +0 -142
- /package/prisma/{migrations → migrations-v1}/20250606001949_init/migration.sql +0 -0
- /package/prisma/{migrations → migrations-v1}/20250613000526_remove_group/migration.sql +0 -0
- /package/prisma/{migrations → migrations-v1}/20250620014502_settings/migration.sql +0 -0
- /package/prisma/{migrations → migrations-v1}/20250707205229_recipes/migration.sql +0 -0
- /package/public/{react-admin → admin-vanilla}/android-chrome-192x192.png +0 -0
- /package/public/{react-admin → admin-vanilla}/android-chrome-512x512.png +0 -0
- /package/public/{react-admin → admin-vanilla}/apple-touch-icon.png +0 -0
- /package/public/{react-admin → admin-vanilla}/favicon-16x16.png +0 -0
- /package/public/{react-admin → admin-vanilla}/favicon-32x32.png +0 -0
- /package/public/{react-admin → admin-vanilla}/favicon.ico +0 -0
- /package/public/{react-admin → admin-vanilla}/favicon.png +0 -0
- /package/public/{react-admin/chunk-YALWN5OT.js.map → admin-vanilla/main-LYDE4NDJ.css.map} +0 -0
- /package/public/{react-admin → admin-vanilla}/missing-favicon.png +0 -0
- /package/public/{react-admin → admin-vanilla}/motovun-jack.jpg +0 -0
- /package/public/{react-admin → admin-vanilla}/mws-icon.png +0 -0
- /package/public/{react-admin → admin-vanilla}/vite.svg +0 -0
- /package/public/{react-admin → stats}/stats.css +0 -0
- /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 `TemplatePermission` 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 TemplatePermission
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
export type TemplatePermissionModel = runtime.Types.Result.DefaultSelection<Prisma.$TemplatePermissionPayload>
|
|
22
|
+
|
|
23
|
+
export type AggregateTemplatePermission = {
|
|
24
|
+
_count: TemplatePermissionCountAggregateOutputType | null
|
|
25
|
+
_min: TemplatePermissionMinAggregateOutputType | null
|
|
26
|
+
_max: TemplatePermissionMaxAggregateOutputType | null
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type TemplatePermissionMinAggregateOutputType = {
|
|
30
|
+
template_id: string | null
|
|
31
|
+
role_id: string | null
|
|
32
|
+
level: $Enums.TemplatePermissionLevel | null
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type TemplatePermissionMaxAggregateOutputType = {
|
|
36
|
+
template_id: string | null
|
|
37
|
+
role_id: string | null
|
|
38
|
+
level: $Enums.TemplatePermissionLevel | null
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export type TemplatePermissionCountAggregateOutputType = {
|
|
42
|
+
template_id: number
|
|
43
|
+
role_id: number
|
|
44
|
+
level: number
|
|
45
|
+
_all: number
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
export type TemplatePermissionMinAggregateInputType = {
|
|
50
|
+
template_id?: true
|
|
51
|
+
role_id?: true
|
|
52
|
+
level?: true
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export type TemplatePermissionMaxAggregateInputType = {
|
|
56
|
+
template_id?: true
|
|
57
|
+
role_id?: true
|
|
58
|
+
level?: true
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export type TemplatePermissionCountAggregateInputType = {
|
|
62
|
+
template_id?: true
|
|
63
|
+
role_id?: true
|
|
64
|
+
level?: true
|
|
65
|
+
_all?: true
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export type TemplatePermissionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
69
|
+
/**
|
|
70
|
+
* Filter which TemplatePermission to aggregate.
|
|
71
|
+
*/
|
|
72
|
+
where?: Prisma.TemplatePermissionWhereInput
|
|
73
|
+
/**
|
|
74
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
75
|
+
*
|
|
76
|
+
* Determine the order of TemplatePermissions to fetch.
|
|
77
|
+
*/
|
|
78
|
+
orderBy?: Prisma.TemplatePermissionOrderByWithRelationInput | Prisma.TemplatePermissionOrderByWithRelationInput[]
|
|
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.TemplatePermissionWhereUniqueInput
|
|
85
|
+
/**
|
|
86
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
87
|
+
*
|
|
88
|
+
* Take `±n` TemplatePermissions 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` TemplatePermissions.
|
|
95
|
+
*/
|
|
96
|
+
skip?: number
|
|
97
|
+
/**
|
|
98
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
99
|
+
*
|
|
100
|
+
* Count returned TemplatePermissions
|
|
101
|
+
**/
|
|
102
|
+
_count?: true | TemplatePermissionCountAggregateInputType
|
|
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?: TemplatePermissionMinAggregateInputType
|
|
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?: TemplatePermissionMaxAggregateInputType
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export type GetTemplatePermissionAggregateType<T extends TemplatePermissionAggregateArgs> = {
|
|
118
|
+
[P in keyof T & keyof AggregateTemplatePermission]: P extends '_count' | 'count'
|
|
119
|
+
? T[P] extends true
|
|
120
|
+
? number
|
|
121
|
+
: Prisma.GetScalarType<T[P], AggregateTemplatePermission[P]>
|
|
122
|
+
: Prisma.GetScalarType<T[P], AggregateTemplatePermission[P]>
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
export type TemplatePermissionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
129
|
+
where?: Prisma.TemplatePermissionWhereInput
|
|
130
|
+
orderBy?: Prisma.TemplatePermissionOrderByWithAggregationInput | Prisma.TemplatePermissionOrderByWithAggregationInput[]
|
|
131
|
+
by: Prisma.TemplatePermissionScalarFieldEnum[] | Prisma.TemplatePermissionScalarFieldEnum
|
|
132
|
+
having?: Prisma.TemplatePermissionScalarWhereWithAggregatesInput
|
|
133
|
+
take?: number
|
|
134
|
+
skip?: number
|
|
135
|
+
_count?: TemplatePermissionCountAggregateInputType | true
|
|
136
|
+
_min?: TemplatePermissionMinAggregateInputType
|
|
137
|
+
_max?: TemplatePermissionMaxAggregateInputType
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export type TemplatePermissionGroupByOutputType = {
|
|
141
|
+
template_id: string
|
|
142
|
+
role_id: string
|
|
143
|
+
level: $Enums.TemplatePermissionLevel
|
|
144
|
+
_count: TemplatePermissionCountAggregateOutputType | null
|
|
145
|
+
_min: TemplatePermissionMinAggregateOutputType | null
|
|
146
|
+
_max: TemplatePermissionMaxAggregateOutputType | null
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export type GetTemplatePermissionGroupByPayload<T extends TemplatePermissionGroupByArgs> = Prisma.PrismaPromise<
|
|
150
|
+
Array<
|
|
151
|
+
Prisma.PickEnumerable<TemplatePermissionGroupByOutputType, T['by']> &
|
|
152
|
+
{
|
|
153
|
+
[P in ((keyof T) & (keyof TemplatePermissionGroupByOutputType))]: P extends '_count'
|
|
154
|
+
? T[P] extends boolean
|
|
155
|
+
? number
|
|
156
|
+
: Prisma.GetScalarType<T[P], TemplatePermissionGroupByOutputType[P]>
|
|
157
|
+
: Prisma.GetScalarType<T[P], TemplatePermissionGroupByOutputType[P]>
|
|
158
|
+
}
|
|
159
|
+
>
|
|
160
|
+
>
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
export type TemplatePermissionWhereInput = {
|
|
165
|
+
AND?: Prisma.TemplatePermissionWhereInput | Prisma.TemplatePermissionWhereInput[]
|
|
166
|
+
OR?: Prisma.TemplatePermissionWhereInput[]
|
|
167
|
+
NOT?: Prisma.TemplatePermissionWhereInput | Prisma.TemplatePermissionWhereInput[]
|
|
168
|
+
template_id?: Prisma.StringFilter<"TemplatePermission"> | string
|
|
169
|
+
role_id?: Prisma.StringFilter<"TemplatePermission"> | string
|
|
170
|
+
level?: Prisma.EnumTemplatePermissionLevelFilter<"TemplatePermission"> | $Enums.TemplatePermissionLevel
|
|
171
|
+
template?: Prisma.XOR<Prisma.TemplateScalarRelationFilter, Prisma.TemplateWhereInput>
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export type TemplatePermissionOrderByWithRelationInput = {
|
|
175
|
+
template_id?: Prisma.SortOrder
|
|
176
|
+
role_id?: Prisma.SortOrder
|
|
177
|
+
level?: Prisma.SortOrder
|
|
178
|
+
template?: Prisma.TemplateOrderByWithRelationInput
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export type TemplatePermissionWhereUniqueInput = Prisma.AtLeast<{
|
|
182
|
+
template_id_role_id?: Prisma.TemplatePermissionTemplate_idRole_idCompoundUniqueInput
|
|
183
|
+
AND?: Prisma.TemplatePermissionWhereInput | Prisma.TemplatePermissionWhereInput[]
|
|
184
|
+
OR?: Prisma.TemplatePermissionWhereInput[]
|
|
185
|
+
NOT?: Prisma.TemplatePermissionWhereInput | Prisma.TemplatePermissionWhereInput[]
|
|
186
|
+
template_id?: Prisma.StringFilter<"TemplatePermission"> | string
|
|
187
|
+
role_id?: Prisma.StringFilter<"TemplatePermission"> | string
|
|
188
|
+
level?: Prisma.EnumTemplatePermissionLevelFilter<"TemplatePermission"> | $Enums.TemplatePermissionLevel
|
|
189
|
+
template?: Prisma.XOR<Prisma.TemplateScalarRelationFilter, Prisma.TemplateWhereInput>
|
|
190
|
+
}, "template_id_role_id">
|
|
191
|
+
|
|
192
|
+
export type TemplatePermissionOrderByWithAggregationInput = {
|
|
193
|
+
template_id?: Prisma.SortOrder
|
|
194
|
+
role_id?: Prisma.SortOrder
|
|
195
|
+
level?: Prisma.SortOrder
|
|
196
|
+
_count?: Prisma.TemplatePermissionCountOrderByAggregateInput
|
|
197
|
+
_max?: Prisma.TemplatePermissionMaxOrderByAggregateInput
|
|
198
|
+
_min?: Prisma.TemplatePermissionMinOrderByAggregateInput
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export type TemplatePermissionScalarWhereWithAggregatesInput = {
|
|
202
|
+
AND?: Prisma.TemplatePermissionScalarWhereWithAggregatesInput | Prisma.TemplatePermissionScalarWhereWithAggregatesInput[]
|
|
203
|
+
OR?: Prisma.TemplatePermissionScalarWhereWithAggregatesInput[]
|
|
204
|
+
NOT?: Prisma.TemplatePermissionScalarWhereWithAggregatesInput | Prisma.TemplatePermissionScalarWhereWithAggregatesInput[]
|
|
205
|
+
template_id?: Prisma.StringWithAggregatesFilter<"TemplatePermission"> | string
|
|
206
|
+
role_id?: Prisma.StringWithAggregatesFilter<"TemplatePermission"> | string
|
|
207
|
+
level?: Prisma.EnumTemplatePermissionLevelWithAggregatesFilter<"TemplatePermission"> | $Enums.TemplatePermissionLevel
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
export type TemplatePermissionCreateInput = {
|
|
211
|
+
role_id: string
|
|
212
|
+
level: $Enums.TemplatePermissionLevel
|
|
213
|
+
template: Prisma.TemplateCreateNestedOneWithoutPermissionsInput
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export type TemplatePermissionUncheckedCreateInput = {
|
|
217
|
+
template_id: string
|
|
218
|
+
role_id: string
|
|
219
|
+
level: $Enums.TemplatePermissionLevel
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export type TemplatePermissionUpdateInput = {
|
|
223
|
+
role_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
224
|
+
level?: Prisma.EnumTemplatePermissionLevelFieldUpdateOperationsInput | $Enums.TemplatePermissionLevel
|
|
225
|
+
template?: Prisma.TemplateUpdateOneRequiredWithoutPermissionsNestedInput
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export type TemplatePermissionUncheckedUpdateInput = {
|
|
229
|
+
template_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
230
|
+
role_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
231
|
+
level?: Prisma.EnumTemplatePermissionLevelFieldUpdateOperationsInput | $Enums.TemplatePermissionLevel
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export type TemplatePermissionCreateManyInput = {
|
|
235
|
+
template_id: string
|
|
236
|
+
role_id: string
|
|
237
|
+
level: $Enums.TemplatePermissionLevel
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
export type TemplatePermissionUpdateManyMutationInput = {
|
|
241
|
+
role_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
242
|
+
level?: Prisma.EnumTemplatePermissionLevelFieldUpdateOperationsInput | $Enums.TemplatePermissionLevel
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export type TemplatePermissionUncheckedUpdateManyInput = {
|
|
246
|
+
template_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
247
|
+
role_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
248
|
+
level?: Prisma.EnumTemplatePermissionLevelFieldUpdateOperationsInput | $Enums.TemplatePermissionLevel
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
export type TemplatePermissionListRelationFilter = {
|
|
252
|
+
every?: Prisma.TemplatePermissionWhereInput
|
|
253
|
+
some?: Prisma.TemplatePermissionWhereInput
|
|
254
|
+
none?: Prisma.TemplatePermissionWhereInput
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
export type TemplatePermissionOrderByRelationAggregateInput = {
|
|
258
|
+
_count?: Prisma.SortOrder
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export type TemplatePermissionTemplate_idRole_idCompoundUniqueInput = {
|
|
262
|
+
template_id: string
|
|
263
|
+
role_id: string
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
export type TemplatePermissionCountOrderByAggregateInput = {
|
|
267
|
+
template_id?: Prisma.SortOrder
|
|
268
|
+
role_id?: Prisma.SortOrder
|
|
269
|
+
level?: Prisma.SortOrder
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
export type TemplatePermissionMaxOrderByAggregateInput = {
|
|
273
|
+
template_id?: Prisma.SortOrder
|
|
274
|
+
role_id?: Prisma.SortOrder
|
|
275
|
+
level?: Prisma.SortOrder
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
export type TemplatePermissionMinOrderByAggregateInput = {
|
|
279
|
+
template_id?: Prisma.SortOrder
|
|
280
|
+
role_id?: Prisma.SortOrder
|
|
281
|
+
level?: Prisma.SortOrder
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
export type TemplatePermissionCreateNestedManyWithoutTemplateInput = {
|
|
285
|
+
create?: Prisma.XOR<Prisma.TemplatePermissionCreateWithoutTemplateInput, Prisma.TemplatePermissionUncheckedCreateWithoutTemplateInput> | Prisma.TemplatePermissionCreateWithoutTemplateInput[] | Prisma.TemplatePermissionUncheckedCreateWithoutTemplateInput[]
|
|
286
|
+
connectOrCreate?: Prisma.TemplatePermissionCreateOrConnectWithoutTemplateInput | Prisma.TemplatePermissionCreateOrConnectWithoutTemplateInput[]
|
|
287
|
+
createMany?: Prisma.TemplatePermissionCreateManyTemplateInputEnvelope
|
|
288
|
+
connect?: Prisma.TemplatePermissionWhereUniqueInput | Prisma.TemplatePermissionWhereUniqueInput[]
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
export type TemplatePermissionUncheckedCreateNestedManyWithoutTemplateInput = {
|
|
292
|
+
create?: Prisma.XOR<Prisma.TemplatePermissionCreateWithoutTemplateInput, Prisma.TemplatePermissionUncheckedCreateWithoutTemplateInput> | Prisma.TemplatePermissionCreateWithoutTemplateInput[] | Prisma.TemplatePermissionUncheckedCreateWithoutTemplateInput[]
|
|
293
|
+
connectOrCreate?: Prisma.TemplatePermissionCreateOrConnectWithoutTemplateInput | Prisma.TemplatePermissionCreateOrConnectWithoutTemplateInput[]
|
|
294
|
+
createMany?: Prisma.TemplatePermissionCreateManyTemplateInputEnvelope
|
|
295
|
+
connect?: Prisma.TemplatePermissionWhereUniqueInput | Prisma.TemplatePermissionWhereUniqueInput[]
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
export type TemplatePermissionUpdateManyWithoutTemplateNestedInput = {
|
|
299
|
+
create?: Prisma.XOR<Prisma.TemplatePermissionCreateWithoutTemplateInput, Prisma.TemplatePermissionUncheckedCreateWithoutTemplateInput> | Prisma.TemplatePermissionCreateWithoutTemplateInput[] | Prisma.TemplatePermissionUncheckedCreateWithoutTemplateInput[]
|
|
300
|
+
connectOrCreate?: Prisma.TemplatePermissionCreateOrConnectWithoutTemplateInput | Prisma.TemplatePermissionCreateOrConnectWithoutTemplateInput[]
|
|
301
|
+
upsert?: Prisma.TemplatePermissionUpsertWithWhereUniqueWithoutTemplateInput | Prisma.TemplatePermissionUpsertWithWhereUniqueWithoutTemplateInput[]
|
|
302
|
+
createMany?: Prisma.TemplatePermissionCreateManyTemplateInputEnvelope
|
|
303
|
+
set?: Prisma.TemplatePermissionWhereUniqueInput | Prisma.TemplatePermissionWhereUniqueInput[]
|
|
304
|
+
disconnect?: Prisma.TemplatePermissionWhereUniqueInput | Prisma.TemplatePermissionWhereUniqueInput[]
|
|
305
|
+
delete?: Prisma.TemplatePermissionWhereUniqueInput | Prisma.TemplatePermissionWhereUniqueInput[]
|
|
306
|
+
connect?: Prisma.TemplatePermissionWhereUniqueInput | Prisma.TemplatePermissionWhereUniqueInput[]
|
|
307
|
+
update?: Prisma.TemplatePermissionUpdateWithWhereUniqueWithoutTemplateInput | Prisma.TemplatePermissionUpdateWithWhereUniqueWithoutTemplateInput[]
|
|
308
|
+
updateMany?: Prisma.TemplatePermissionUpdateManyWithWhereWithoutTemplateInput | Prisma.TemplatePermissionUpdateManyWithWhereWithoutTemplateInput[]
|
|
309
|
+
deleteMany?: Prisma.TemplatePermissionScalarWhereInput | Prisma.TemplatePermissionScalarWhereInput[]
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
export type TemplatePermissionUncheckedUpdateManyWithoutTemplateNestedInput = {
|
|
313
|
+
create?: Prisma.XOR<Prisma.TemplatePermissionCreateWithoutTemplateInput, Prisma.TemplatePermissionUncheckedCreateWithoutTemplateInput> | Prisma.TemplatePermissionCreateWithoutTemplateInput[] | Prisma.TemplatePermissionUncheckedCreateWithoutTemplateInput[]
|
|
314
|
+
connectOrCreate?: Prisma.TemplatePermissionCreateOrConnectWithoutTemplateInput | Prisma.TemplatePermissionCreateOrConnectWithoutTemplateInput[]
|
|
315
|
+
upsert?: Prisma.TemplatePermissionUpsertWithWhereUniqueWithoutTemplateInput | Prisma.TemplatePermissionUpsertWithWhereUniqueWithoutTemplateInput[]
|
|
316
|
+
createMany?: Prisma.TemplatePermissionCreateManyTemplateInputEnvelope
|
|
317
|
+
set?: Prisma.TemplatePermissionWhereUniqueInput | Prisma.TemplatePermissionWhereUniqueInput[]
|
|
318
|
+
disconnect?: Prisma.TemplatePermissionWhereUniqueInput | Prisma.TemplatePermissionWhereUniqueInput[]
|
|
319
|
+
delete?: Prisma.TemplatePermissionWhereUniqueInput | Prisma.TemplatePermissionWhereUniqueInput[]
|
|
320
|
+
connect?: Prisma.TemplatePermissionWhereUniqueInput | Prisma.TemplatePermissionWhereUniqueInput[]
|
|
321
|
+
update?: Prisma.TemplatePermissionUpdateWithWhereUniqueWithoutTemplateInput | Prisma.TemplatePermissionUpdateWithWhereUniqueWithoutTemplateInput[]
|
|
322
|
+
updateMany?: Prisma.TemplatePermissionUpdateManyWithWhereWithoutTemplateInput | Prisma.TemplatePermissionUpdateManyWithWhereWithoutTemplateInput[]
|
|
323
|
+
deleteMany?: Prisma.TemplatePermissionScalarWhereInput | Prisma.TemplatePermissionScalarWhereInput[]
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
export type EnumTemplatePermissionLevelFieldUpdateOperationsInput = {
|
|
327
|
+
set?: $Enums.TemplatePermissionLevel
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
export type TemplatePermissionCreateWithoutTemplateInput = {
|
|
331
|
+
role_id: string
|
|
332
|
+
level: $Enums.TemplatePermissionLevel
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
export type TemplatePermissionUncheckedCreateWithoutTemplateInput = {
|
|
336
|
+
role_id: string
|
|
337
|
+
level: $Enums.TemplatePermissionLevel
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
export type TemplatePermissionCreateOrConnectWithoutTemplateInput = {
|
|
341
|
+
where: Prisma.TemplatePermissionWhereUniqueInput
|
|
342
|
+
create: Prisma.XOR<Prisma.TemplatePermissionCreateWithoutTemplateInput, Prisma.TemplatePermissionUncheckedCreateWithoutTemplateInput>
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
export type TemplatePermissionCreateManyTemplateInputEnvelope = {
|
|
346
|
+
data: Prisma.TemplatePermissionCreateManyTemplateInput | Prisma.TemplatePermissionCreateManyTemplateInput[]
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
export type TemplatePermissionUpsertWithWhereUniqueWithoutTemplateInput = {
|
|
350
|
+
where: Prisma.TemplatePermissionWhereUniqueInput
|
|
351
|
+
update: Prisma.XOR<Prisma.TemplatePermissionUpdateWithoutTemplateInput, Prisma.TemplatePermissionUncheckedUpdateWithoutTemplateInput>
|
|
352
|
+
create: Prisma.XOR<Prisma.TemplatePermissionCreateWithoutTemplateInput, Prisma.TemplatePermissionUncheckedCreateWithoutTemplateInput>
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
export type TemplatePermissionUpdateWithWhereUniqueWithoutTemplateInput = {
|
|
356
|
+
where: Prisma.TemplatePermissionWhereUniqueInput
|
|
357
|
+
data: Prisma.XOR<Prisma.TemplatePermissionUpdateWithoutTemplateInput, Prisma.TemplatePermissionUncheckedUpdateWithoutTemplateInput>
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
export type TemplatePermissionUpdateManyWithWhereWithoutTemplateInput = {
|
|
361
|
+
where: Prisma.TemplatePermissionScalarWhereInput
|
|
362
|
+
data: Prisma.XOR<Prisma.TemplatePermissionUpdateManyMutationInput, Prisma.TemplatePermissionUncheckedUpdateManyWithoutTemplateInput>
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
export type TemplatePermissionScalarWhereInput = {
|
|
366
|
+
AND?: Prisma.TemplatePermissionScalarWhereInput | Prisma.TemplatePermissionScalarWhereInput[]
|
|
367
|
+
OR?: Prisma.TemplatePermissionScalarWhereInput[]
|
|
368
|
+
NOT?: Prisma.TemplatePermissionScalarWhereInput | Prisma.TemplatePermissionScalarWhereInput[]
|
|
369
|
+
template_id?: Prisma.StringFilter<"TemplatePermission"> | string
|
|
370
|
+
role_id?: Prisma.StringFilter<"TemplatePermission"> | string
|
|
371
|
+
level?: Prisma.EnumTemplatePermissionLevelFilter<"TemplatePermission"> | $Enums.TemplatePermissionLevel
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
export type TemplatePermissionCreateManyTemplateInput = {
|
|
375
|
+
role_id: string
|
|
376
|
+
level: $Enums.TemplatePermissionLevel
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
export type TemplatePermissionUpdateWithoutTemplateInput = {
|
|
380
|
+
role_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
381
|
+
level?: Prisma.EnumTemplatePermissionLevelFieldUpdateOperationsInput | $Enums.TemplatePermissionLevel
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
export type TemplatePermissionUncheckedUpdateWithoutTemplateInput = {
|
|
385
|
+
role_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
386
|
+
level?: Prisma.EnumTemplatePermissionLevelFieldUpdateOperationsInput | $Enums.TemplatePermissionLevel
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
export type TemplatePermissionUncheckedUpdateManyWithoutTemplateInput = {
|
|
390
|
+
role_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
391
|
+
level?: Prisma.EnumTemplatePermissionLevelFieldUpdateOperationsInput | $Enums.TemplatePermissionLevel
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
export type TemplatePermissionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
397
|
+
template_id?: boolean
|
|
398
|
+
role_id?: boolean
|
|
399
|
+
level?: boolean
|
|
400
|
+
template?: boolean | Prisma.TemplateDefaultArgs<ExtArgs>
|
|
401
|
+
}, ExtArgs["result"]["templatePermission"]>
|
|
402
|
+
|
|
403
|
+
export type TemplatePermissionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
404
|
+
template_id?: boolean
|
|
405
|
+
role_id?: boolean
|
|
406
|
+
level?: boolean
|
|
407
|
+
template?: boolean | Prisma.TemplateDefaultArgs<ExtArgs>
|
|
408
|
+
}, ExtArgs["result"]["templatePermission"]>
|
|
409
|
+
|
|
410
|
+
export type TemplatePermissionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
411
|
+
template_id?: boolean
|
|
412
|
+
role_id?: boolean
|
|
413
|
+
level?: boolean
|
|
414
|
+
template?: boolean | Prisma.TemplateDefaultArgs<ExtArgs>
|
|
415
|
+
}, ExtArgs["result"]["templatePermission"]>
|
|
416
|
+
|
|
417
|
+
export type TemplatePermissionSelectScalar = {
|
|
418
|
+
template_id?: boolean
|
|
419
|
+
role_id?: boolean
|
|
420
|
+
level?: boolean
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
export type TemplatePermissionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"template_id" | "role_id" | "level", ExtArgs["result"]["templatePermission"]>
|
|
424
|
+
export type TemplatePermissionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
425
|
+
template?: boolean | Prisma.TemplateDefaultArgs<ExtArgs>
|
|
426
|
+
}
|
|
427
|
+
export type TemplatePermissionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
428
|
+
template?: boolean | Prisma.TemplateDefaultArgs<ExtArgs>
|
|
429
|
+
}
|
|
430
|
+
export type TemplatePermissionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
431
|
+
template?: boolean | Prisma.TemplateDefaultArgs<ExtArgs>
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
export type $TemplatePermissionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
435
|
+
name: "TemplatePermission"
|
|
436
|
+
objects: {
|
|
437
|
+
template: Prisma.$TemplatePayload<ExtArgs>
|
|
438
|
+
}
|
|
439
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
440
|
+
template_id: string
|
|
441
|
+
role_id: string
|
|
442
|
+
level: $Enums.TemplatePermissionLevel
|
|
443
|
+
}, ExtArgs["result"]["templatePermission"]>
|
|
444
|
+
composites: {}
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
export type TemplatePermissionGetPayload<S extends boolean | null | undefined | TemplatePermissionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$TemplatePermissionPayload, S>
|
|
448
|
+
|
|
449
|
+
export type TemplatePermissionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
450
|
+
Omit<TemplatePermissionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
451
|
+
select?: TemplatePermissionCountAggregateInputType | true
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
export interface TemplatePermissionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
455
|
+
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['TemplatePermission'], meta: { name: 'TemplatePermission' } }
|
|
456
|
+
/**
|
|
457
|
+
* Find zero or one TemplatePermission that matches the filter.
|
|
458
|
+
* @param {TemplatePermissionFindUniqueArgs} args - Arguments to find a TemplatePermission
|
|
459
|
+
* @example
|
|
460
|
+
* // Get one TemplatePermission
|
|
461
|
+
* const templatePermission = await prisma.templatePermission.findUnique({
|
|
462
|
+
* where: {
|
|
463
|
+
* // ... provide filter here
|
|
464
|
+
* }
|
|
465
|
+
* })
|
|
466
|
+
*/
|
|
467
|
+
findUnique<T extends TemplatePermissionFindUniqueArgs>(args: Prisma.SelectSubset<T, TemplatePermissionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__TemplatePermissionClient<runtime.Types.Result.GetResult<Prisma.$TemplatePermissionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
468
|
+
|
|
469
|
+
/**
|
|
470
|
+
* Find one TemplatePermission that matches the filter or throw an error with `error.code='P2025'`
|
|
471
|
+
* if no matches were found.
|
|
472
|
+
* @param {TemplatePermissionFindUniqueOrThrowArgs} args - Arguments to find a TemplatePermission
|
|
473
|
+
* @example
|
|
474
|
+
* // Get one TemplatePermission
|
|
475
|
+
* const templatePermission = await prisma.templatePermission.findUniqueOrThrow({
|
|
476
|
+
* where: {
|
|
477
|
+
* // ... provide filter here
|
|
478
|
+
* }
|
|
479
|
+
* })
|
|
480
|
+
*/
|
|
481
|
+
findUniqueOrThrow<T extends TemplatePermissionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, TemplatePermissionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__TemplatePermissionClient<runtime.Types.Result.GetResult<Prisma.$TemplatePermissionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* Find the first TemplatePermission 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 {TemplatePermissionFindFirstArgs} args - Arguments to find a TemplatePermission
|
|
488
|
+
* @example
|
|
489
|
+
* // Get one TemplatePermission
|
|
490
|
+
* const templatePermission = await prisma.templatePermission.findFirst({
|
|
491
|
+
* where: {
|
|
492
|
+
* // ... provide filter here
|
|
493
|
+
* }
|
|
494
|
+
* })
|
|
495
|
+
*/
|
|
496
|
+
findFirst<T extends TemplatePermissionFindFirstArgs>(args?: Prisma.SelectSubset<T, TemplatePermissionFindFirstArgs<ExtArgs>>): Prisma.Prisma__TemplatePermissionClient<runtime.Types.Result.GetResult<Prisma.$TemplatePermissionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* Find the first TemplatePermission 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 {TemplatePermissionFindFirstOrThrowArgs} args - Arguments to find a TemplatePermission
|
|
504
|
+
* @example
|
|
505
|
+
* // Get one TemplatePermission
|
|
506
|
+
* const templatePermission = await prisma.templatePermission.findFirstOrThrow({
|
|
507
|
+
* where: {
|
|
508
|
+
* // ... provide filter here
|
|
509
|
+
* }
|
|
510
|
+
* })
|
|
511
|
+
*/
|
|
512
|
+
findFirstOrThrow<T extends TemplatePermissionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, TemplatePermissionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__TemplatePermissionClient<runtime.Types.Result.GetResult<Prisma.$TemplatePermissionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
513
|
+
|
|
514
|
+
/**
|
|
515
|
+
* Find zero or more TemplatePermissions 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 {TemplatePermissionFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
519
|
+
* @example
|
|
520
|
+
* // Get all TemplatePermissions
|
|
521
|
+
* const templatePermissions = await prisma.templatePermission.findMany()
|
|
522
|
+
*
|
|
523
|
+
* // Get first 10 TemplatePermissions
|
|
524
|
+
* const templatePermissions = await prisma.templatePermission.findMany({ take: 10 })
|
|
525
|
+
*
|
|
526
|
+
* // Only select the `template_id`
|
|
527
|
+
* const templatePermissionWithTemplate_idOnly = await prisma.templatePermission.findMany({ select: { template_id: true } })
|
|
528
|
+
*
|
|
529
|
+
*/
|
|
530
|
+
findMany<T extends TemplatePermissionFindManyArgs>(args?: Prisma.SelectSubset<T, TemplatePermissionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TemplatePermissionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* Create a TemplatePermission.
|
|
534
|
+
* @param {TemplatePermissionCreateArgs} args - Arguments to create a TemplatePermission.
|
|
535
|
+
* @example
|
|
536
|
+
* // Create one TemplatePermission
|
|
537
|
+
* const TemplatePermission = await prisma.templatePermission.create({
|
|
538
|
+
* data: {
|
|
539
|
+
* // ... data to create a TemplatePermission
|
|
540
|
+
* }
|
|
541
|
+
* })
|
|
542
|
+
*
|
|
543
|
+
*/
|
|
544
|
+
create<T extends TemplatePermissionCreateArgs>(args: Prisma.SelectSubset<T, TemplatePermissionCreateArgs<ExtArgs>>): Prisma.Prisma__TemplatePermissionClient<runtime.Types.Result.GetResult<Prisma.$TemplatePermissionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
545
|
+
|
|
546
|
+
/**
|
|
547
|
+
* Create many TemplatePermissions.
|
|
548
|
+
* @param {TemplatePermissionCreateManyArgs} args - Arguments to create many TemplatePermissions.
|
|
549
|
+
* @example
|
|
550
|
+
* // Create many TemplatePermissions
|
|
551
|
+
* const templatePermission = await prisma.templatePermission.createMany({
|
|
552
|
+
* data: [
|
|
553
|
+
* // ... provide data here
|
|
554
|
+
* ]
|
|
555
|
+
* })
|
|
556
|
+
*
|
|
557
|
+
*/
|
|
558
|
+
createMany<T extends TemplatePermissionCreateManyArgs>(args?: Prisma.SelectSubset<T, TemplatePermissionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* Create many TemplatePermissions and returns the data saved in the database.
|
|
562
|
+
* @param {TemplatePermissionCreateManyAndReturnArgs} args - Arguments to create many TemplatePermissions.
|
|
563
|
+
* @example
|
|
564
|
+
* // Create many TemplatePermissions
|
|
565
|
+
* const templatePermission = await prisma.templatePermission.createManyAndReturn({
|
|
566
|
+
* data: [
|
|
567
|
+
* // ... provide data here
|
|
568
|
+
* ]
|
|
569
|
+
* })
|
|
570
|
+
*
|
|
571
|
+
* // Create many TemplatePermissions and only return the `template_id`
|
|
572
|
+
* const templatePermissionWithTemplate_idOnly = await prisma.templatePermission.createManyAndReturn({
|
|
573
|
+
* select: { template_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 TemplatePermissionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, TemplatePermissionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TemplatePermissionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
583
|
+
|
|
584
|
+
/**
|
|
585
|
+
* Delete a TemplatePermission.
|
|
586
|
+
* @param {TemplatePermissionDeleteArgs} args - Arguments to delete one TemplatePermission.
|
|
587
|
+
* @example
|
|
588
|
+
* // Delete one TemplatePermission
|
|
589
|
+
* const TemplatePermission = await prisma.templatePermission.delete({
|
|
590
|
+
* where: {
|
|
591
|
+
* // ... filter to delete one TemplatePermission
|
|
592
|
+
* }
|
|
593
|
+
* })
|
|
594
|
+
*
|
|
595
|
+
*/
|
|
596
|
+
delete<T extends TemplatePermissionDeleteArgs>(args: Prisma.SelectSubset<T, TemplatePermissionDeleteArgs<ExtArgs>>): Prisma.Prisma__TemplatePermissionClient<runtime.Types.Result.GetResult<Prisma.$TemplatePermissionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* Update one TemplatePermission.
|
|
600
|
+
* @param {TemplatePermissionUpdateArgs} args - Arguments to update one TemplatePermission.
|
|
601
|
+
* @example
|
|
602
|
+
* // Update one TemplatePermission
|
|
603
|
+
* const templatePermission = await prisma.templatePermission.update({
|
|
604
|
+
* where: {
|
|
605
|
+
* // ... provide filter here
|
|
606
|
+
* },
|
|
607
|
+
* data: {
|
|
608
|
+
* // ... provide data here
|
|
609
|
+
* }
|
|
610
|
+
* })
|
|
611
|
+
*
|
|
612
|
+
*/
|
|
613
|
+
update<T extends TemplatePermissionUpdateArgs>(args: Prisma.SelectSubset<T, TemplatePermissionUpdateArgs<ExtArgs>>): Prisma.Prisma__TemplatePermissionClient<runtime.Types.Result.GetResult<Prisma.$TemplatePermissionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
614
|
+
|
|
615
|
+
/**
|
|
616
|
+
* Delete zero or more TemplatePermissions.
|
|
617
|
+
* @param {TemplatePermissionDeleteManyArgs} args - Arguments to filter TemplatePermissions to delete.
|
|
618
|
+
* @example
|
|
619
|
+
* // Delete a few TemplatePermissions
|
|
620
|
+
* const { count } = await prisma.templatePermission.deleteMany({
|
|
621
|
+
* where: {
|
|
622
|
+
* // ... provide filter here
|
|
623
|
+
* }
|
|
624
|
+
* })
|
|
625
|
+
*
|
|
626
|
+
*/
|
|
627
|
+
deleteMany<T extends TemplatePermissionDeleteManyArgs>(args?: Prisma.SelectSubset<T, TemplatePermissionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
628
|
+
|
|
629
|
+
/**
|
|
630
|
+
* Update zero or more TemplatePermissions.
|
|
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 {TemplatePermissionUpdateManyArgs} args - Arguments to update one or more rows.
|
|
634
|
+
* @example
|
|
635
|
+
* // Update many TemplatePermissions
|
|
636
|
+
* const templatePermission = await prisma.templatePermission.updateMany({
|
|
637
|
+
* where: {
|
|
638
|
+
* // ... provide filter here
|
|
639
|
+
* },
|
|
640
|
+
* data: {
|
|
641
|
+
* // ... provide data here
|
|
642
|
+
* }
|
|
643
|
+
* })
|
|
644
|
+
*
|
|
645
|
+
*/
|
|
646
|
+
updateMany<T extends TemplatePermissionUpdateManyArgs>(args: Prisma.SelectSubset<T, TemplatePermissionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
647
|
+
|
|
648
|
+
/**
|
|
649
|
+
* Update zero or more TemplatePermissions and returns the data updated in the database.
|
|
650
|
+
* @param {TemplatePermissionUpdateManyAndReturnArgs} args - Arguments to update many TemplatePermissions.
|
|
651
|
+
* @example
|
|
652
|
+
* // Update many TemplatePermissions
|
|
653
|
+
* const templatePermission = await prisma.templatePermission.updateManyAndReturn({
|
|
654
|
+
* where: {
|
|
655
|
+
* // ... provide filter here
|
|
656
|
+
* },
|
|
657
|
+
* data: [
|
|
658
|
+
* // ... provide data here
|
|
659
|
+
* ]
|
|
660
|
+
* })
|
|
661
|
+
*
|
|
662
|
+
* // Update zero or more TemplatePermissions and only return the `template_id`
|
|
663
|
+
* const templatePermissionWithTemplate_idOnly = await prisma.templatePermission.updateManyAndReturn({
|
|
664
|
+
* select: { template_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 TemplatePermissionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, TemplatePermissionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TemplatePermissionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
677
|
+
|
|
678
|
+
/**
|
|
679
|
+
* Create or update one TemplatePermission.
|
|
680
|
+
* @param {TemplatePermissionUpsertArgs} args - Arguments to update or create a TemplatePermission.
|
|
681
|
+
* @example
|
|
682
|
+
* // Update or create a TemplatePermission
|
|
683
|
+
* const templatePermission = await prisma.templatePermission.upsert({
|
|
684
|
+
* create: {
|
|
685
|
+
* // ... data to create a TemplatePermission
|
|
686
|
+
* },
|
|
687
|
+
* update: {
|
|
688
|
+
* // ... in case it already exists, update
|
|
689
|
+
* },
|
|
690
|
+
* where: {
|
|
691
|
+
* // ... the filter for the TemplatePermission we want to update
|
|
692
|
+
* }
|
|
693
|
+
* })
|
|
694
|
+
*/
|
|
695
|
+
upsert<T extends TemplatePermissionUpsertArgs>(args: Prisma.SelectSubset<T, TemplatePermissionUpsertArgs<ExtArgs>>): Prisma.Prisma__TemplatePermissionClient<runtime.Types.Result.GetResult<Prisma.$TemplatePermissionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
696
|
+
|
|
697
|
+
|
|
698
|
+
/**
|
|
699
|
+
* Count the number of TemplatePermissions.
|
|
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 {TemplatePermissionCountArgs} args - Arguments to filter TemplatePermissions to count.
|
|
703
|
+
* @example
|
|
704
|
+
* // Count the number of TemplatePermissions
|
|
705
|
+
* const count = await prisma.templatePermission.count({
|
|
706
|
+
* where: {
|
|
707
|
+
* // ... the filter for the TemplatePermissions we want to count
|
|
708
|
+
* }
|
|
709
|
+
* })
|
|
710
|
+
**/
|
|
711
|
+
count<T extends TemplatePermissionCountArgs>(
|
|
712
|
+
args?: Prisma.Subset<T, TemplatePermissionCountArgs>,
|
|
713
|
+
): Prisma.PrismaPromise<
|
|
714
|
+
T extends runtime.Types.Utils.Record<'select', any>
|
|
715
|
+
? T['select'] extends true
|
|
716
|
+
? number
|
|
717
|
+
: Prisma.GetScalarType<T['select'], TemplatePermissionCountAggregateOutputType>
|
|
718
|
+
: number
|
|
719
|
+
>
|
|
720
|
+
|
|
721
|
+
/**
|
|
722
|
+
* Allows you to perform aggregations operations on a TemplatePermission.
|
|
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 {TemplatePermissionAggregateArgs} 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 TemplatePermissionAggregateArgs>(args: Prisma.Subset<T, TemplatePermissionAggregateArgs>): Prisma.PrismaPromise<GetTemplatePermissionAggregateType<T>>
|
|
746
|
+
|
|
747
|
+
/**
|
|
748
|
+
* Group by TemplatePermission.
|
|
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 {TemplatePermissionGroupByArgs} 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 TemplatePermissionGroupByArgs,
|
|
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: TemplatePermissionGroupByArgs['orderBy'] }
|
|
773
|
+
: { orderBy?: TemplatePermissionGroupByArgs['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, TemplatePermissionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTemplatePermissionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
823
|
+
/**
|
|
824
|
+
* Fields of the TemplatePermission model
|
|
825
|
+
*/
|
|
826
|
+
readonly fields: TemplatePermissionFieldRefs;
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
/**
|
|
830
|
+
* The delegate class that acts as a "Promise-like" for TemplatePermission.
|
|
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__TemplatePermissionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
836
|
+
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
837
|
+
template<T extends Prisma.TemplateDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TemplateDefaultArgs<ExtArgs>>): Prisma.Prisma__TemplateClient<runtime.Types.Result.GetResult<Prisma.$TemplatePayload<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 TemplatePermission model
|
|
865
|
+
*/
|
|
866
|
+
export interface TemplatePermissionFieldRefs {
|
|
867
|
+
readonly template_id: Prisma.FieldRef<"TemplatePermission", 'String'>
|
|
868
|
+
readonly role_id: Prisma.FieldRef<"TemplatePermission", 'String'>
|
|
869
|
+
readonly level: Prisma.FieldRef<"TemplatePermission", 'TemplatePermissionLevel'>
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
|
|
873
|
+
// Custom InputTypes
|
|
874
|
+
/**
|
|
875
|
+
* TemplatePermission findUnique
|
|
876
|
+
*/
|
|
877
|
+
export type TemplatePermissionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
878
|
+
/**
|
|
879
|
+
* Select specific fields to fetch from the TemplatePermission
|
|
880
|
+
*/
|
|
881
|
+
select?: Prisma.TemplatePermissionSelect<ExtArgs> | null
|
|
882
|
+
/**
|
|
883
|
+
* Omit specific fields from the TemplatePermission
|
|
884
|
+
*/
|
|
885
|
+
omit?: Prisma.TemplatePermissionOmit<ExtArgs> | null
|
|
886
|
+
/**
|
|
887
|
+
* Choose, which related nodes to fetch as well
|
|
888
|
+
*/
|
|
889
|
+
include?: Prisma.TemplatePermissionInclude<ExtArgs> | null
|
|
890
|
+
/**
|
|
891
|
+
* Filter, which TemplatePermission to fetch.
|
|
892
|
+
*/
|
|
893
|
+
where: Prisma.TemplatePermissionWhereUniqueInput
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
/**
|
|
897
|
+
* TemplatePermission findUniqueOrThrow
|
|
898
|
+
*/
|
|
899
|
+
export type TemplatePermissionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
900
|
+
/**
|
|
901
|
+
* Select specific fields to fetch from the TemplatePermission
|
|
902
|
+
*/
|
|
903
|
+
select?: Prisma.TemplatePermissionSelect<ExtArgs> | null
|
|
904
|
+
/**
|
|
905
|
+
* Omit specific fields from the TemplatePermission
|
|
906
|
+
*/
|
|
907
|
+
omit?: Prisma.TemplatePermissionOmit<ExtArgs> | null
|
|
908
|
+
/**
|
|
909
|
+
* Choose, which related nodes to fetch as well
|
|
910
|
+
*/
|
|
911
|
+
include?: Prisma.TemplatePermissionInclude<ExtArgs> | null
|
|
912
|
+
/**
|
|
913
|
+
* Filter, which TemplatePermission to fetch.
|
|
914
|
+
*/
|
|
915
|
+
where: Prisma.TemplatePermissionWhereUniqueInput
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
/**
|
|
919
|
+
* TemplatePermission findFirst
|
|
920
|
+
*/
|
|
921
|
+
export type TemplatePermissionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
922
|
+
/**
|
|
923
|
+
* Select specific fields to fetch from the TemplatePermission
|
|
924
|
+
*/
|
|
925
|
+
select?: Prisma.TemplatePermissionSelect<ExtArgs> | null
|
|
926
|
+
/**
|
|
927
|
+
* Omit specific fields from the TemplatePermission
|
|
928
|
+
*/
|
|
929
|
+
omit?: Prisma.TemplatePermissionOmit<ExtArgs> | null
|
|
930
|
+
/**
|
|
931
|
+
* Choose, which related nodes to fetch as well
|
|
932
|
+
*/
|
|
933
|
+
include?: Prisma.TemplatePermissionInclude<ExtArgs> | null
|
|
934
|
+
/**
|
|
935
|
+
* Filter, which TemplatePermission to fetch.
|
|
936
|
+
*/
|
|
937
|
+
where?: Prisma.TemplatePermissionWhereInput
|
|
938
|
+
/**
|
|
939
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
940
|
+
*
|
|
941
|
+
* Determine the order of TemplatePermissions to fetch.
|
|
942
|
+
*/
|
|
943
|
+
orderBy?: Prisma.TemplatePermissionOrderByWithRelationInput | Prisma.TemplatePermissionOrderByWithRelationInput[]
|
|
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 TemplatePermissions.
|
|
948
|
+
*/
|
|
949
|
+
cursor?: Prisma.TemplatePermissionWhereUniqueInput
|
|
950
|
+
/**
|
|
951
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
952
|
+
*
|
|
953
|
+
* Take `±n` TemplatePermissions 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` TemplatePermissions.
|
|
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 TemplatePermissions.
|
|
966
|
+
*/
|
|
967
|
+
distinct?: Prisma.TemplatePermissionScalarFieldEnum | Prisma.TemplatePermissionScalarFieldEnum[]
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
/**
|
|
971
|
+
* TemplatePermission findFirstOrThrow
|
|
972
|
+
*/
|
|
973
|
+
export type TemplatePermissionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
974
|
+
/**
|
|
975
|
+
* Select specific fields to fetch from the TemplatePermission
|
|
976
|
+
*/
|
|
977
|
+
select?: Prisma.TemplatePermissionSelect<ExtArgs> | null
|
|
978
|
+
/**
|
|
979
|
+
* Omit specific fields from the TemplatePermission
|
|
980
|
+
*/
|
|
981
|
+
omit?: Prisma.TemplatePermissionOmit<ExtArgs> | null
|
|
982
|
+
/**
|
|
983
|
+
* Choose, which related nodes to fetch as well
|
|
984
|
+
*/
|
|
985
|
+
include?: Prisma.TemplatePermissionInclude<ExtArgs> | null
|
|
986
|
+
/**
|
|
987
|
+
* Filter, which TemplatePermission to fetch.
|
|
988
|
+
*/
|
|
989
|
+
where?: Prisma.TemplatePermissionWhereInput
|
|
990
|
+
/**
|
|
991
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
992
|
+
*
|
|
993
|
+
* Determine the order of TemplatePermissions to fetch.
|
|
994
|
+
*/
|
|
995
|
+
orderBy?: Prisma.TemplatePermissionOrderByWithRelationInput | Prisma.TemplatePermissionOrderByWithRelationInput[]
|
|
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 TemplatePermissions.
|
|
1000
|
+
*/
|
|
1001
|
+
cursor?: Prisma.TemplatePermissionWhereUniqueInput
|
|
1002
|
+
/**
|
|
1003
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1004
|
+
*
|
|
1005
|
+
* Take `±n` TemplatePermissions 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` TemplatePermissions.
|
|
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 TemplatePermissions.
|
|
1018
|
+
*/
|
|
1019
|
+
distinct?: Prisma.TemplatePermissionScalarFieldEnum | Prisma.TemplatePermissionScalarFieldEnum[]
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
/**
|
|
1023
|
+
* TemplatePermission findMany
|
|
1024
|
+
*/
|
|
1025
|
+
export type TemplatePermissionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1026
|
+
/**
|
|
1027
|
+
* Select specific fields to fetch from the TemplatePermission
|
|
1028
|
+
*/
|
|
1029
|
+
select?: Prisma.TemplatePermissionSelect<ExtArgs> | null
|
|
1030
|
+
/**
|
|
1031
|
+
* Omit specific fields from the TemplatePermission
|
|
1032
|
+
*/
|
|
1033
|
+
omit?: Prisma.TemplatePermissionOmit<ExtArgs> | null
|
|
1034
|
+
/**
|
|
1035
|
+
* Choose, which related nodes to fetch as well
|
|
1036
|
+
*/
|
|
1037
|
+
include?: Prisma.TemplatePermissionInclude<ExtArgs> | null
|
|
1038
|
+
/**
|
|
1039
|
+
* Filter, which TemplatePermissions to fetch.
|
|
1040
|
+
*/
|
|
1041
|
+
where?: Prisma.TemplatePermissionWhereInput
|
|
1042
|
+
/**
|
|
1043
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1044
|
+
*
|
|
1045
|
+
* Determine the order of TemplatePermissions to fetch.
|
|
1046
|
+
*/
|
|
1047
|
+
orderBy?: Prisma.TemplatePermissionOrderByWithRelationInput | Prisma.TemplatePermissionOrderByWithRelationInput[]
|
|
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 TemplatePermissions.
|
|
1052
|
+
*/
|
|
1053
|
+
cursor?: Prisma.TemplatePermissionWhereUniqueInput
|
|
1054
|
+
/**
|
|
1055
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1056
|
+
*
|
|
1057
|
+
* Take `±n` TemplatePermissions 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` TemplatePermissions.
|
|
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 TemplatePermissions.
|
|
1070
|
+
*/
|
|
1071
|
+
distinct?: Prisma.TemplatePermissionScalarFieldEnum | Prisma.TemplatePermissionScalarFieldEnum[]
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
/**
|
|
1075
|
+
* TemplatePermission create
|
|
1076
|
+
*/
|
|
1077
|
+
export type TemplatePermissionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1078
|
+
/**
|
|
1079
|
+
* Select specific fields to fetch from the TemplatePermission
|
|
1080
|
+
*/
|
|
1081
|
+
select?: Prisma.TemplatePermissionSelect<ExtArgs> | null
|
|
1082
|
+
/**
|
|
1083
|
+
* Omit specific fields from the TemplatePermission
|
|
1084
|
+
*/
|
|
1085
|
+
omit?: Prisma.TemplatePermissionOmit<ExtArgs> | null
|
|
1086
|
+
/**
|
|
1087
|
+
* Choose, which related nodes to fetch as well
|
|
1088
|
+
*/
|
|
1089
|
+
include?: Prisma.TemplatePermissionInclude<ExtArgs> | null
|
|
1090
|
+
/**
|
|
1091
|
+
* The data needed to create a TemplatePermission.
|
|
1092
|
+
*/
|
|
1093
|
+
data: Prisma.XOR<Prisma.TemplatePermissionCreateInput, Prisma.TemplatePermissionUncheckedCreateInput>
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
/**
|
|
1097
|
+
* TemplatePermission createMany
|
|
1098
|
+
*/
|
|
1099
|
+
export type TemplatePermissionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1100
|
+
/**
|
|
1101
|
+
* The data used to create many TemplatePermissions.
|
|
1102
|
+
*/
|
|
1103
|
+
data: Prisma.TemplatePermissionCreateManyInput | Prisma.TemplatePermissionCreateManyInput[]
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
/**
|
|
1107
|
+
* TemplatePermission createManyAndReturn
|
|
1108
|
+
*/
|
|
1109
|
+
export type TemplatePermissionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1110
|
+
/**
|
|
1111
|
+
* Select specific fields to fetch from the TemplatePermission
|
|
1112
|
+
*/
|
|
1113
|
+
select?: Prisma.TemplatePermissionSelectCreateManyAndReturn<ExtArgs> | null
|
|
1114
|
+
/**
|
|
1115
|
+
* Omit specific fields from the TemplatePermission
|
|
1116
|
+
*/
|
|
1117
|
+
omit?: Prisma.TemplatePermissionOmit<ExtArgs> | null
|
|
1118
|
+
/**
|
|
1119
|
+
* The data used to create many TemplatePermissions.
|
|
1120
|
+
*/
|
|
1121
|
+
data: Prisma.TemplatePermissionCreateManyInput | Prisma.TemplatePermissionCreateManyInput[]
|
|
1122
|
+
/**
|
|
1123
|
+
* Choose, which related nodes to fetch as well
|
|
1124
|
+
*/
|
|
1125
|
+
include?: Prisma.TemplatePermissionIncludeCreateManyAndReturn<ExtArgs> | null
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
/**
|
|
1129
|
+
* TemplatePermission update
|
|
1130
|
+
*/
|
|
1131
|
+
export type TemplatePermissionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1132
|
+
/**
|
|
1133
|
+
* Select specific fields to fetch from the TemplatePermission
|
|
1134
|
+
*/
|
|
1135
|
+
select?: Prisma.TemplatePermissionSelect<ExtArgs> | null
|
|
1136
|
+
/**
|
|
1137
|
+
* Omit specific fields from the TemplatePermission
|
|
1138
|
+
*/
|
|
1139
|
+
omit?: Prisma.TemplatePermissionOmit<ExtArgs> | null
|
|
1140
|
+
/**
|
|
1141
|
+
* Choose, which related nodes to fetch as well
|
|
1142
|
+
*/
|
|
1143
|
+
include?: Prisma.TemplatePermissionInclude<ExtArgs> | null
|
|
1144
|
+
/**
|
|
1145
|
+
* The data needed to update a TemplatePermission.
|
|
1146
|
+
*/
|
|
1147
|
+
data: Prisma.XOR<Prisma.TemplatePermissionUpdateInput, Prisma.TemplatePermissionUncheckedUpdateInput>
|
|
1148
|
+
/**
|
|
1149
|
+
* Choose, which TemplatePermission to update.
|
|
1150
|
+
*/
|
|
1151
|
+
where: Prisma.TemplatePermissionWhereUniqueInput
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
/**
|
|
1155
|
+
* TemplatePermission updateMany
|
|
1156
|
+
*/
|
|
1157
|
+
export type TemplatePermissionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1158
|
+
/**
|
|
1159
|
+
* The data used to update TemplatePermissions.
|
|
1160
|
+
*/
|
|
1161
|
+
data: Prisma.XOR<Prisma.TemplatePermissionUpdateManyMutationInput, Prisma.TemplatePermissionUncheckedUpdateManyInput>
|
|
1162
|
+
/**
|
|
1163
|
+
* Filter which TemplatePermissions to update
|
|
1164
|
+
*/
|
|
1165
|
+
where?: Prisma.TemplatePermissionWhereInput
|
|
1166
|
+
/**
|
|
1167
|
+
* Limit how many TemplatePermissions to update.
|
|
1168
|
+
*/
|
|
1169
|
+
limit?: number
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
/**
|
|
1173
|
+
* TemplatePermission updateManyAndReturn
|
|
1174
|
+
*/
|
|
1175
|
+
export type TemplatePermissionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1176
|
+
/**
|
|
1177
|
+
* Select specific fields to fetch from the TemplatePermission
|
|
1178
|
+
*/
|
|
1179
|
+
select?: Prisma.TemplatePermissionSelectUpdateManyAndReturn<ExtArgs> | null
|
|
1180
|
+
/**
|
|
1181
|
+
* Omit specific fields from the TemplatePermission
|
|
1182
|
+
*/
|
|
1183
|
+
omit?: Prisma.TemplatePermissionOmit<ExtArgs> | null
|
|
1184
|
+
/**
|
|
1185
|
+
* The data used to update TemplatePermissions.
|
|
1186
|
+
*/
|
|
1187
|
+
data: Prisma.XOR<Prisma.TemplatePermissionUpdateManyMutationInput, Prisma.TemplatePermissionUncheckedUpdateManyInput>
|
|
1188
|
+
/**
|
|
1189
|
+
* Filter which TemplatePermissions to update
|
|
1190
|
+
*/
|
|
1191
|
+
where?: Prisma.TemplatePermissionWhereInput
|
|
1192
|
+
/**
|
|
1193
|
+
* Limit how many TemplatePermissions to update.
|
|
1194
|
+
*/
|
|
1195
|
+
limit?: number
|
|
1196
|
+
/**
|
|
1197
|
+
* Choose, which related nodes to fetch as well
|
|
1198
|
+
*/
|
|
1199
|
+
include?: Prisma.TemplatePermissionIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
/**
|
|
1203
|
+
* TemplatePermission upsert
|
|
1204
|
+
*/
|
|
1205
|
+
export type TemplatePermissionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1206
|
+
/**
|
|
1207
|
+
* Select specific fields to fetch from the TemplatePermission
|
|
1208
|
+
*/
|
|
1209
|
+
select?: Prisma.TemplatePermissionSelect<ExtArgs> | null
|
|
1210
|
+
/**
|
|
1211
|
+
* Omit specific fields from the TemplatePermission
|
|
1212
|
+
*/
|
|
1213
|
+
omit?: Prisma.TemplatePermissionOmit<ExtArgs> | null
|
|
1214
|
+
/**
|
|
1215
|
+
* Choose, which related nodes to fetch as well
|
|
1216
|
+
*/
|
|
1217
|
+
include?: Prisma.TemplatePermissionInclude<ExtArgs> | null
|
|
1218
|
+
/**
|
|
1219
|
+
* The filter to search for the TemplatePermission to update in case it exists.
|
|
1220
|
+
*/
|
|
1221
|
+
where: Prisma.TemplatePermissionWhereUniqueInput
|
|
1222
|
+
/**
|
|
1223
|
+
* In case the TemplatePermission found by the `where` argument doesn't exist, create a new TemplatePermission with this data.
|
|
1224
|
+
*/
|
|
1225
|
+
create: Prisma.XOR<Prisma.TemplatePermissionCreateInput, Prisma.TemplatePermissionUncheckedCreateInput>
|
|
1226
|
+
/**
|
|
1227
|
+
* In case the TemplatePermission was found with the provided `where` argument, update it with this data.
|
|
1228
|
+
*/
|
|
1229
|
+
update: Prisma.XOR<Prisma.TemplatePermissionUpdateInput, Prisma.TemplatePermissionUncheckedUpdateInput>
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1232
|
+
/**
|
|
1233
|
+
* TemplatePermission delete
|
|
1234
|
+
*/
|
|
1235
|
+
export type TemplatePermissionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1236
|
+
/**
|
|
1237
|
+
* Select specific fields to fetch from the TemplatePermission
|
|
1238
|
+
*/
|
|
1239
|
+
select?: Prisma.TemplatePermissionSelect<ExtArgs> | null
|
|
1240
|
+
/**
|
|
1241
|
+
* Omit specific fields from the TemplatePermission
|
|
1242
|
+
*/
|
|
1243
|
+
omit?: Prisma.TemplatePermissionOmit<ExtArgs> | null
|
|
1244
|
+
/**
|
|
1245
|
+
* Choose, which related nodes to fetch as well
|
|
1246
|
+
*/
|
|
1247
|
+
include?: Prisma.TemplatePermissionInclude<ExtArgs> | null
|
|
1248
|
+
/**
|
|
1249
|
+
* Filter which TemplatePermission to delete.
|
|
1250
|
+
*/
|
|
1251
|
+
where: Prisma.TemplatePermissionWhereUniqueInput
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
/**
|
|
1255
|
+
* TemplatePermission deleteMany
|
|
1256
|
+
*/
|
|
1257
|
+
export type TemplatePermissionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1258
|
+
/**
|
|
1259
|
+
* Filter which TemplatePermissions to delete
|
|
1260
|
+
*/
|
|
1261
|
+
where?: Prisma.TemplatePermissionWhereInput
|
|
1262
|
+
/**
|
|
1263
|
+
* Limit how many TemplatePermissions to delete.
|
|
1264
|
+
*/
|
|
1265
|
+
limit?: number
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
/**
|
|
1269
|
+
* TemplatePermission without action
|
|
1270
|
+
*/
|
|
1271
|
+
export type TemplatePermissionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1272
|
+
/**
|
|
1273
|
+
* Select specific fields to fetch from the TemplatePermission
|
|
1274
|
+
*/
|
|
1275
|
+
select?: Prisma.TemplatePermissionSelect<ExtArgs> | null
|
|
1276
|
+
/**
|
|
1277
|
+
* Omit specific fields from the TemplatePermission
|
|
1278
|
+
*/
|
|
1279
|
+
omit?: Prisma.TemplatePermissionOmit<ExtArgs> | null
|
|
1280
|
+
/**
|
|
1281
|
+
* Choose, which related nodes to fetch as well
|
|
1282
|
+
*/
|
|
1283
|
+
include?: Prisma.TemplatePermissionInclude<ExtArgs> | null
|
|
1284
|
+
}
|