@tiddlywiki/mws 0.1.14 → 0.2.1
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 +40121 -20116
- 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 +6 -34
- 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/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-LYDE4NDJ.css +1 -0
- package/public/admin-vanilla/main-Y4GDO4MD.js +1797 -0
- package/public/admin-vanilla/main-Y4GDO4MD.js.map +7 -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 `BagPermission` 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 BagPermission
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
export type BagPermissionModel = runtime.Types.Result.DefaultSelection<Prisma.$BagPermissionPayload>
|
|
22
|
+
|
|
23
|
+
export type AggregateBagPermission = {
|
|
24
|
+
_count: BagPermissionCountAggregateOutputType | null
|
|
25
|
+
_min: BagPermissionMinAggregateOutputType | null
|
|
26
|
+
_max: BagPermissionMaxAggregateOutputType | null
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type BagPermissionMinAggregateOutputType = {
|
|
30
|
+
bag_id: string | null
|
|
31
|
+
role_id: string | null
|
|
32
|
+
level: $Enums.BagPermissionLevel | null
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type BagPermissionMaxAggregateOutputType = {
|
|
36
|
+
bag_id: string | null
|
|
37
|
+
role_id: string | null
|
|
38
|
+
level: $Enums.BagPermissionLevel | null
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export type BagPermissionCountAggregateOutputType = {
|
|
42
|
+
bag_id: number
|
|
43
|
+
role_id: number
|
|
44
|
+
level: number
|
|
45
|
+
_all: number
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
export type BagPermissionMinAggregateInputType = {
|
|
50
|
+
bag_id?: true
|
|
51
|
+
role_id?: true
|
|
52
|
+
level?: true
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export type BagPermissionMaxAggregateInputType = {
|
|
56
|
+
bag_id?: true
|
|
57
|
+
role_id?: true
|
|
58
|
+
level?: true
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export type BagPermissionCountAggregateInputType = {
|
|
62
|
+
bag_id?: true
|
|
63
|
+
role_id?: true
|
|
64
|
+
level?: true
|
|
65
|
+
_all?: true
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export type BagPermissionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
69
|
+
/**
|
|
70
|
+
* Filter which BagPermission to aggregate.
|
|
71
|
+
*/
|
|
72
|
+
where?: Prisma.BagPermissionWhereInput
|
|
73
|
+
/**
|
|
74
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
75
|
+
*
|
|
76
|
+
* Determine the order of BagPermissions to fetch.
|
|
77
|
+
*/
|
|
78
|
+
orderBy?: Prisma.BagPermissionOrderByWithRelationInput | Prisma.BagPermissionOrderByWithRelationInput[]
|
|
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.BagPermissionWhereUniqueInput
|
|
85
|
+
/**
|
|
86
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
87
|
+
*
|
|
88
|
+
* Take `±n` BagPermissions 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` BagPermissions.
|
|
95
|
+
*/
|
|
96
|
+
skip?: number
|
|
97
|
+
/**
|
|
98
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
99
|
+
*
|
|
100
|
+
* Count returned BagPermissions
|
|
101
|
+
**/
|
|
102
|
+
_count?: true | BagPermissionCountAggregateInputType
|
|
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?: BagPermissionMinAggregateInputType
|
|
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?: BagPermissionMaxAggregateInputType
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export type GetBagPermissionAggregateType<T extends BagPermissionAggregateArgs> = {
|
|
118
|
+
[P in keyof T & keyof AggregateBagPermission]: P extends '_count' | 'count'
|
|
119
|
+
? T[P] extends true
|
|
120
|
+
? number
|
|
121
|
+
: Prisma.GetScalarType<T[P], AggregateBagPermission[P]>
|
|
122
|
+
: Prisma.GetScalarType<T[P], AggregateBagPermission[P]>
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
export type BagPermissionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
129
|
+
where?: Prisma.BagPermissionWhereInput
|
|
130
|
+
orderBy?: Prisma.BagPermissionOrderByWithAggregationInput | Prisma.BagPermissionOrderByWithAggregationInput[]
|
|
131
|
+
by: Prisma.BagPermissionScalarFieldEnum[] | Prisma.BagPermissionScalarFieldEnum
|
|
132
|
+
having?: Prisma.BagPermissionScalarWhereWithAggregatesInput
|
|
133
|
+
take?: number
|
|
134
|
+
skip?: number
|
|
135
|
+
_count?: BagPermissionCountAggregateInputType | true
|
|
136
|
+
_min?: BagPermissionMinAggregateInputType
|
|
137
|
+
_max?: BagPermissionMaxAggregateInputType
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export type BagPermissionGroupByOutputType = {
|
|
141
|
+
bag_id: string
|
|
142
|
+
role_id: string
|
|
143
|
+
level: $Enums.BagPermissionLevel
|
|
144
|
+
_count: BagPermissionCountAggregateOutputType | null
|
|
145
|
+
_min: BagPermissionMinAggregateOutputType | null
|
|
146
|
+
_max: BagPermissionMaxAggregateOutputType | null
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export type GetBagPermissionGroupByPayload<T extends BagPermissionGroupByArgs> = Prisma.PrismaPromise<
|
|
150
|
+
Array<
|
|
151
|
+
Prisma.PickEnumerable<BagPermissionGroupByOutputType, T['by']> &
|
|
152
|
+
{
|
|
153
|
+
[P in ((keyof T) & (keyof BagPermissionGroupByOutputType))]: P extends '_count'
|
|
154
|
+
? T[P] extends boolean
|
|
155
|
+
? number
|
|
156
|
+
: Prisma.GetScalarType<T[P], BagPermissionGroupByOutputType[P]>
|
|
157
|
+
: Prisma.GetScalarType<T[P], BagPermissionGroupByOutputType[P]>
|
|
158
|
+
}
|
|
159
|
+
>
|
|
160
|
+
>
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
export type BagPermissionWhereInput = {
|
|
165
|
+
AND?: Prisma.BagPermissionWhereInput | Prisma.BagPermissionWhereInput[]
|
|
166
|
+
OR?: Prisma.BagPermissionWhereInput[]
|
|
167
|
+
NOT?: Prisma.BagPermissionWhereInput | Prisma.BagPermissionWhereInput[]
|
|
168
|
+
bag_id?: Prisma.StringFilter<"BagPermission"> | string
|
|
169
|
+
role_id?: Prisma.StringFilter<"BagPermission"> | string
|
|
170
|
+
level?: Prisma.EnumBagPermissionLevelFilter<"BagPermission"> | $Enums.BagPermissionLevel
|
|
171
|
+
bag?: Prisma.XOR<Prisma.BagScalarRelationFilter, Prisma.BagWhereInput>
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export type BagPermissionOrderByWithRelationInput = {
|
|
175
|
+
bag_id?: Prisma.SortOrder
|
|
176
|
+
role_id?: Prisma.SortOrder
|
|
177
|
+
level?: Prisma.SortOrder
|
|
178
|
+
bag?: Prisma.BagOrderByWithRelationInput
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export type BagPermissionWhereUniqueInput = Prisma.AtLeast<{
|
|
182
|
+
bag_id_role_id?: Prisma.BagPermissionBag_idRole_idCompoundUniqueInput
|
|
183
|
+
AND?: Prisma.BagPermissionWhereInput | Prisma.BagPermissionWhereInput[]
|
|
184
|
+
OR?: Prisma.BagPermissionWhereInput[]
|
|
185
|
+
NOT?: Prisma.BagPermissionWhereInput | Prisma.BagPermissionWhereInput[]
|
|
186
|
+
bag_id?: Prisma.StringFilter<"BagPermission"> | string
|
|
187
|
+
role_id?: Prisma.StringFilter<"BagPermission"> | string
|
|
188
|
+
level?: Prisma.EnumBagPermissionLevelFilter<"BagPermission"> | $Enums.BagPermissionLevel
|
|
189
|
+
bag?: Prisma.XOR<Prisma.BagScalarRelationFilter, Prisma.BagWhereInput>
|
|
190
|
+
}, "bag_id_role_id">
|
|
191
|
+
|
|
192
|
+
export type BagPermissionOrderByWithAggregationInput = {
|
|
193
|
+
bag_id?: Prisma.SortOrder
|
|
194
|
+
role_id?: Prisma.SortOrder
|
|
195
|
+
level?: Prisma.SortOrder
|
|
196
|
+
_count?: Prisma.BagPermissionCountOrderByAggregateInput
|
|
197
|
+
_max?: Prisma.BagPermissionMaxOrderByAggregateInput
|
|
198
|
+
_min?: Prisma.BagPermissionMinOrderByAggregateInput
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export type BagPermissionScalarWhereWithAggregatesInput = {
|
|
202
|
+
AND?: Prisma.BagPermissionScalarWhereWithAggregatesInput | Prisma.BagPermissionScalarWhereWithAggregatesInput[]
|
|
203
|
+
OR?: Prisma.BagPermissionScalarWhereWithAggregatesInput[]
|
|
204
|
+
NOT?: Prisma.BagPermissionScalarWhereWithAggregatesInput | Prisma.BagPermissionScalarWhereWithAggregatesInput[]
|
|
205
|
+
bag_id?: Prisma.StringWithAggregatesFilter<"BagPermission"> | string
|
|
206
|
+
role_id?: Prisma.StringWithAggregatesFilter<"BagPermission"> | string
|
|
207
|
+
level?: Prisma.EnumBagPermissionLevelWithAggregatesFilter<"BagPermission"> | $Enums.BagPermissionLevel
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
export type BagPermissionCreateInput = {
|
|
211
|
+
role_id: string
|
|
212
|
+
level: $Enums.BagPermissionLevel
|
|
213
|
+
bag: Prisma.BagCreateNestedOneWithoutPermissionsInput
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export type BagPermissionUncheckedCreateInput = {
|
|
217
|
+
bag_id: string
|
|
218
|
+
role_id: string
|
|
219
|
+
level: $Enums.BagPermissionLevel
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export type BagPermissionUpdateInput = {
|
|
223
|
+
role_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
224
|
+
level?: Prisma.EnumBagPermissionLevelFieldUpdateOperationsInput | $Enums.BagPermissionLevel
|
|
225
|
+
bag?: Prisma.BagUpdateOneRequiredWithoutPermissionsNestedInput
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export type BagPermissionUncheckedUpdateInput = {
|
|
229
|
+
bag_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
230
|
+
role_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
231
|
+
level?: Prisma.EnumBagPermissionLevelFieldUpdateOperationsInput | $Enums.BagPermissionLevel
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export type BagPermissionCreateManyInput = {
|
|
235
|
+
bag_id: string
|
|
236
|
+
role_id: string
|
|
237
|
+
level: $Enums.BagPermissionLevel
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
export type BagPermissionUpdateManyMutationInput = {
|
|
241
|
+
role_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
242
|
+
level?: Prisma.EnumBagPermissionLevelFieldUpdateOperationsInput | $Enums.BagPermissionLevel
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export type BagPermissionUncheckedUpdateManyInput = {
|
|
246
|
+
bag_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
247
|
+
role_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
248
|
+
level?: Prisma.EnumBagPermissionLevelFieldUpdateOperationsInput | $Enums.BagPermissionLevel
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
export type BagPermissionListRelationFilter = {
|
|
252
|
+
every?: Prisma.BagPermissionWhereInput
|
|
253
|
+
some?: Prisma.BagPermissionWhereInput
|
|
254
|
+
none?: Prisma.BagPermissionWhereInput
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
export type BagPermissionOrderByRelationAggregateInput = {
|
|
258
|
+
_count?: Prisma.SortOrder
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export type BagPermissionBag_idRole_idCompoundUniqueInput = {
|
|
262
|
+
bag_id: string
|
|
263
|
+
role_id: string
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
export type BagPermissionCountOrderByAggregateInput = {
|
|
267
|
+
bag_id?: Prisma.SortOrder
|
|
268
|
+
role_id?: Prisma.SortOrder
|
|
269
|
+
level?: Prisma.SortOrder
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
export type BagPermissionMaxOrderByAggregateInput = {
|
|
273
|
+
bag_id?: Prisma.SortOrder
|
|
274
|
+
role_id?: Prisma.SortOrder
|
|
275
|
+
level?: Prisma.SortOrder
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
export type BagPermissionMinOrderByAggregateInput = {
|
|
279
|
+
bag_id?: Prisma.SortOrder
|
|
280
|
+
role_id?: Prisma.SortOrder
|
|
281
|
+
level?: Prisma.SortOrder
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
export type BagPermissionCreateNestedManyWithoutBagInput = {
|
|
285
|
+
create?: Prisma.XOR<Prisma.BagPermissionCreateWithoutBagInput, Prisma.BagPermissionUncheckedCreateWithoutBagInput> | Prisma.BagPermissionCreateWithoutBagInput[] | Prisma.BagPermissionUncheckedCreateWithoutBagInput[]
|
|
286
|
+
connectOrCreate?: Prisma.BagPermissionCreateOrConnectWithoutBagInput | Prisma.BagPermissionCreateOrConnectWithoutBagInput[]
|
|
287
|
+
createMany?: Prisma.BagPermissionCreateManyBagInputEnvelope
|
|
288
|
+
connect?: Prisma.BagPermissionWhereUniqueInput | Prisma.BagPermissionWhereUniqueInput[]
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
export type BagPermissionUncheckedCreateNestedManyWithoutBagInput = {
|
|
292
|
+
create?: Prisma.XOR<Prisma.BagPermissionCreateWithoutBagInput, Prisma.BagPermissionUncheckedCreateWithoutBagInput> | Prisma.BagPermissionCreateWithoutBagInput[] | Prisma.BagPermissionUncheckedCreateWithoutBagInput[]
|
|
293
|
+
connectOrCreate?: Prisma.BagPermissionCreateOrConnectWithoutBagInput | Prisma.BagPermissionCreateOrConnectWithoutBagInput[]
|
|
294
|
+
createMany?: Prisma.BagPermissionCreateManyBagInputEnvelope
|
|
295
|
+
connect?: Prisma.BagPermissionWhereUniqueInput | Prisma.BagPermissionWhereUniqueInput[]
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
export type BagPermissionUpdateManyWithoutBagNestedInput = {
|
|
299
|
+
create?: Prisma.XOR<Prisma.BagPermissionCreateWithoutBagInput, Prisma.BagPermissionUncheckedCreateWithoutBagInput> | Prisma.BagPermissionCreateWithoutBagInput[] | Prisma.BagPermissionUncheckedCreateWithoutBagInput[]
|
|
300
|
+
connectOrCreate?: Prisma.BagPermissionCreateOrConnectWithoutBagInput | Prisma.BagPermissionCreateOrConnectWithoutBagInput[]
|
|
301
|
+
upsert?: Prisma.BagPermissionUpsertWithWhereUniqueWithoutBagInput | Prisma.BagPermissionUpsertWithWhereUniqueWithoutBagInput[]
|
|
302
|
+
createMany?: Prisma.BagPermissionCreateManyBagInputEnvelope
|
|
303
|
+
set?: Prisma.BagPermissionWhereUniqueInput | Prisma.BagPermissionWhereUniqueInput[]
|
|
304
|
+
disconnect?: Prisma.BagPermissionWhereUniqueInput | Prisma.BagPermissionWhereUniqueInput[]
|
|
305
|
+
delete?: Prisma.BagPermissionWhereUniqueInput | Prisma.BagPermissionWhereUniqueInput[]
|
|
306
|
+
connect?: Prisma.BagPermissionWhereUniqueInput | Prisma.BagPermissionWhereUniqueInput[]
|
|
307
|
+
update?: Prisma.BagPermissionUpdateWithWhereUniqueWithoutBagInput | Prisma.BagPermissionUpdateWithWhereUniqueWithoutBagInput[]
|
|
308
|
+
updateMany?: Prisma.BagPermissionUpdateManyWithWhereWithoutBagInput | Prisma.BagPermissionUpdateManyWithWhereWithoutBagInput[]
|
|
309
|
+
deleteMany?: Prisma.BagPermissionScalarWhereInput | Prisma.BagPermissionScalarWhereInput[]
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
export type BagPermissionUncheckedUpdateManyWithoutBagNestedInput = {
|
|
313
|
+
create?: Prisma.XOR<Prisma.BagPermissionCreateWithoutBagInput, Prisma.BagPermissionUncheckedCreateWithoutBagInput> | Prisma.BagPermissionCreateWithoutBagInput[] | Prisma.BagPermissionUncheckedCreateWithoutBagInput[]
|
|
314
|
+
connectOrCreate?: Prisma.BagPermissionCreateOrConnectWithoutBagInput | Prisma.BagPermissionCreateOrConnectWithoutBagInput[]
|
|
315
|
+
upsert?: Prisma.BagPermissionUpsertWithWhereUniqueWithoutBagInput | Prisma.BagPermissionUpsertWithWhereUniqueWithoutBagInput[]
|
|
316
|
+
createMany?: Prisma.BagPermissionCreateManyBagInputEnvelope
|
|
317
|
+
set?: Prisma.BagPermissionWhereUniqueInput | Prisma.BagPermissionWhereUniqueInput[]
|
|
318
|
+
disconnect?: Prisma.BagPermissionWhereUniqueInput | Prisma.BagPermissionWhereUniqueInput[]
|
|
319
|
+
delete?: Prisma.BagPermissionWhereUniqueInput | Prisma.BagPermissionWhereUniqueInput[]
|
|
320
|
+
connect?: Prisma.BagPermissionWhereUniqueInput | Prisma.BagPermissionWhereUniqueInput[]
|
|
321
|
+
update?: Prisma.BagPermissionUpdateWithWhereUniqueWithoutBagInput | Prisma.BagPermissionUpdateWithWhereUniqueWithoutBagInput[]
|
|
322
|
+
updateMany?: Prisma.BagPermissionUpdateManyWithWhereWithoutBagInput | Prisma.BagPermissionUpdateManyWithWhereWithoutBagInput[]
|
|
323
|
+
deleteMany?: Prisma.BagPermissionScalarWhereInput | Prisma.BagPermissionScalarWhereInput[]
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
export type EnumBagPermissionLevelFieldUpdateOperationsInput = {
|
|
327
|
+
set?: $Enums.BagPermissionLevel
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
export type BagPermissionCreateWithoutBagInput = {
|
|
331
|
+
role_id: string
|
|
332
|
+
level: $Enums.BagPermissionLevel
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
export type BagPermissionUncheckedCreateWithoutBagInput = {
|
|
336
|
+
role_id: string
|
|
337
|
+
level: $Enums.BagPermissionLevel
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
export type BagPermissionCreateOrConnectWithoutBagInput = {
|
|
341
|
+
where: Prisma.BagPermissionWhereUniqueInput
|
|
342
|
+
create: Prisma.XOR<Prisma.BagPermissionCreateWithoutBagInput, Prisma.BagPermissionUncheckedCreateWithoutBagInput>
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
export type BagPermissionCreateManyBagInputEnvelope = {
|
|
346
|
+
data: Prisma.BagPermissionCreateManyBagInput | Prisma.BagPermissionCreateManyBagInput[]
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
export type BagPermissionUpsertWithWhereUniqueWithoutBagInput = {
|
|
350
|
+
where: Prisma.BagPermissionWhereUniqueInput
|
|
351
|
+
update: Prisma.XOR<Prisma.BagPermissionUpdateWithoutBagInput, Prisma.BagPermissionUncheckedUpdateWithoutBagInput>
|
|
352
|
+
create: Prisma.XOR<Prisma.BagPermissionCreateWithoutBagInput, Prisma.BagPermissionUncheckedCreateWithoutBagInput>
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
export type BagPermissionUpdateWithWhereUniqueWithoutBagInput = {
|
|
356
|
+
where: Prisma.BagPermissionWhereUniqueInput
|
|
357
|
+
data: Prisma.XOR<Prisma.BagPermissionUpdateWithoutBagInput, Prisma.BagPermissionUncheckedUpdateWithoutBagInput>
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
export type BagPermissionUpdateManyWithWhereWithoutBagInput = {
|
|
361
|
+
where: Prisma.BagPermissionScalarWhereInput
|
|
362
|
+
data: Prisma.XOR<Prisma.BagPermissionUpdateManyMutationInput, Prisma.BagPermissionUncheckedUpdateManyWithoutBagInput>
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
export type BagPermissionScalarWhereInput = {
|
|
366
|
+
AND?: Prisma.BagPermissionScalarWhereInput | Prisma.BagPermissionScalarWhereInput[]
|
|
367
|
+
OR?: Prisma.BagPermissionScalarWhereInput[]
|
|
368
|
+
NOT?: Prisma.BagPermissionScalarWhereInput | Prisma.BagPermissionScalarWhereInput[]
|
|
369
|
+
bag_id?: Prisma.StringFilter<"BagPermission"> | string
|
|
370
|
+
role_id?: Prisma.StringFilter<"BagPermission"> | string
|
|
371
|
+
level?: Prisma.EnumBagPermissionLevelFilter<"BagPermission"> | $Enums.BagPermissionLevel
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
export type BagPermissionCreateManyBagInput = {
|
|
375
|
+
role_id: string
|
|
376
|
+
level: $Enums.BagPermissionLevel
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
export type BagPermissionUpdateWithoutBagInput = {
|
|
380
|
+
role_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
381
|
+
level?: Prisma.EnumBagPermissionLevelFieldUpdateOperationsInput | $Enums.BagPermissionLevel
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
export type BagPermissionUncheckedUpdateWithoutBagInput = {
|
|
385
|
+
role_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
386
|
+
level?: Prisma.EnumBagPermissionLevelFieldUpdateOperationsInput | $Enums.BagPermissionLevel
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
export type BagPermissionUncheckedUpdateManyWithoutBagInput = {
|
|
390
|
+
role_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
391
|
+
level?: Prisma.EnumBagPermissionLevelFieldUpdateOperationsInput | $Enums.BagPermissionLevel
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
export type BagPermissionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
397
|
+
bag_id?: boolean
|
|
398
|
+
role_id?: boolean
|
|
399
|
+
level?: boolean
|
|
400
|
+
bag?: boolean | Prisma.BagDefaultArgs<ExtArgs>
|
|
401
|
+
}, ExtArgs["result"]["bagPermission"]>
|
|
402
|
+
|
|
403
|
+
export type BagPermissionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
404
|
+
bag_id?: boolean
|
|
405
|
+
role_id?: boolean
|
|
406
|
+
level?: boolean
|
|
407
|
+
bag?: boolean | Prisma.BagDefaultArgs<ExtArgs>
|
|
408
|
+
}, ExtArgs["result"]["bagPermission"]>
|
|
409
|
+
|
|
410
|
+
export type BagPermissionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
411
|
+
bag_id?: boolean
|
|
412
|
+
role_id?: boolean
|
|
413
|
+
level?: boolean
|
|
414
|
+
bag?: boolean | Prisma.BagDefaultArgs<ExtArgs>
|
|
415
|
+
}, ExtArgs["result"]["bagPermission"]>
|
|
416
|
+
|
|
417
|
+
export type BagPermissionSelectScalar = {
|
|
418
|
+
bag_id?: boolean
|
|
419
|
+
role_id?: boolean
|
|
420
|
+
level?: boolean
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
export type BagPermissionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"bag_id" | "role_id" | "level", ExtArgs["result"]["bagPermission"]>
|
|
424
|
+
export type BagPermissionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
425
|
+
bag?: boolean | Prisma.BagDefaultArgs<ExtArgs>
|
|
426
|
+
}
|
|
427
|
+
export type BagPermissionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
428
|
+
bag?: boolean | Prisma.BagDefaultArgs<ExtArgs>
|
|
429
|
+
}
|
|
430
|
+
export type BagPermissionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
431
|
+
bag?: boolean | Prisma.BagDefaultArgs<ExtArgs>
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
export type $BagPermissionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
435
|
+
name: "BagPermission"
|
|
436
|
+
objects: {
|
|
437
|
+
bag: Prisma.$BagPayload<ExtArgs>
|
|
438
|
+
}
|
|
439
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
440
|
+
bag_id: string
|
|
441
|
+
role_id: string
|
|
442
|
+
level: $Enums.BagPermissionLevel
|
|
443
|
+
}, ExtArgs["result"]["bagPermission"]>
|
|
444
|
+
composites: {}
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
export type BagPermissionGetPayload<S extends boolean | null | undefined | BagPermissionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$BagPermissionPayload, S>
|
|
448
|
+
|
|
449
|
+
export type BagPermissionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
450
|
+
Omit<BagPermissionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
451
|
+
select?: BagPermissionCountAggregateInputType | true
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
export interface BagPermissionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
455
|
+
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['BagPermission'], meta: { name: 'BagPermission' } }
|
|
456
|
+
/**
|
|
457
|
+
* Find zero or one BagPermission that matches the filter.
|
|
458
|
+
* @param {BagPermissionFindUniqueArgs} args - Arguments to find a BagPermission
|
|
459
|
+
* @example
|
|
460
|
+
* // Get one BagPermission
|
|
461
|
+
* const bagPermission = await prisma.bagPermission.findUnique({
|
|
462
|
+
* where: {
|
|
463
|
+
* // ... provide filter here
|
|
464
|
+
* }
|
|
465
|
+
* })
|
|
466
|
+
*/
|
|
467
|
+
findUnique<T extends BagPermissionFindUniqueArgs>(args: Prisma.SelectSubset<T, BagPermissionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__BagPermissionClient<runtime.Types.Result.GetResult<Prisma.$BagPermissionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
468
|
+
|
|
469
|
+
/**
|
|
470
|
+
* Find one BagPermission that matches the filter or throw an error with `error.code='P2025'`
|
|
471
|
+
* if no matches were found.
|
|
472
|
+
* @param {BagPermissionFindUniqueOrThrowArgs} args - Arguments to find a BagPermission
|
|
473
|
+
* @example
|
|
474
|
+
* // Get one BagPermission
|
|
475
|
+
* const bagPermission = await prisma.bagPermission.findUniqueOrThrow({
|
|
476
|
+
* where: {
|
|
477
|
+
* // ... provide filter here
|
|
478
|
+
* }
|
|
479
|
+
* })
|
|
480
|
+
*/
|
|
481
|
+
findUniqueOrThrow<T extends BagPermissionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, BagPermissionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__BagPermissionClient<runtime.Types.Result.GetResult<Prisma.$BagPermissionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* Find the first BagPermission 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 {BagPermissionFindFirstArgs} args - Arguments to find a BagPermission
|
|
488
|
+
* @example
|
|
489
|
+
* // Get one BagPermission
|
|
490
|
+
* const bagPermission = await prisma.bagPermission.findFirst({
|
|
491
|
+
* where: {
|
|
492
|
+
* // ... provide filter here
|
|
493
|
+
* }
|
|
494
|
+
* })
|
|
495
|
+
*/
|
|
496
|
+
findFirst<T extends BagPermissionFindFirstArgs>(args?: Prisma.SelectSubset<T, BagPermissionFindFirstArgs<ExtArgs>>): Prisma.Prisma__BagPermissionClient<runtime.Types.Result.GetResult<Prisma.$BagPermissionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* Find the first BagPermission 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 {BagPermissionFindFirstOrThrowArgs} args - Arguments to find a BagPermission
|
|
504
|
+
* @example
|
|
505
|
+
* // Get one BagPermission
|
|
506
|
+
* const bagPermission = await prisma.bagPermission.findFirstOrThrow({
|
|
507
|
+
* where: {
|
|
508
|
+
* // ... provide filter here
|
|
509
|
+
* }
|
|
510
|
+
* })
|
|
511
|
+
*/
|
|
512
|
+
findFirstOrThrow<T extends BagPermissionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, BagPermissionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__BagPermissionClient<runtime.Types.Result.GetResult<Prisma.$BagPermissionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
513
|
+
|
|
514
|
+
/**
|
|
515
|
+
* Find zero or more BagPermissions 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 {BagPermissionFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
519
|
+
* @example
|
|
520
|
+
* // Get all BagPermissions
|
|
521
|
+
* const bagPermissions = await prisma.bagPermission.findMany()
|
|
522
|
+
*
|
|
523
|
+
* // Get first 10 BagPermissions
|
|
524
|
+
* const bagPermissions = await prisma.bagPermission.findMany({ take: 10 })
|
|
525
|
+
*
|
|
526
|
+
* // Only select the `bag_id`
|
|
527
|
+
* const bagPermissionWithBag_idOnly = await prisma.bagPermission.findMany({ select: { bag_id: true } })
|
|
528
|
+
*
|
|
529
|
+
*/
|
|
530
|
+
findMany<T extends BagPermissionFindManyArgs>(args?: Prisma.SelectSubset<T, BagPermissionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$BagPermissionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* Create a BagPermission.
|
|
534
|
+
* @param {BagPermissionCreateArgs} args - Arguments to create a BagPermission.
|
|
535
|
+
* @example
|
|
536
|
+
* // Create one BagPermission
|
|
537
|
+
* const BagPermission = await prisma.bagPermission.create({
|
|
538
|
+
* data: {
|
|
539
|
+
* // ... data to create a BagPermission
|
|
540
|
+
* }
|
|
541
|
+
* })
|
|
542
|
+
*
|
|
543
|
+
*/
|
|
544
|
+
create<T extends BagPermissionCreateArgs>(args: Prisma.SelectSubset<T, BagPermissionCreateArgs<ExtArgs>>): Prisma.Prisma__BagPermissionClient<runtime.Types.Result.GetResult<Prisma.$BagPermissionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
545
|
+
|
|
546
|
+
/**
|
|
547
|
+
* Create many BagPermissions.
|
|
548
|
+
* @param {BagPermissionCreateManyArgs} args - Arguments to create many BagPermissions.
|
|
549
|
+
* @example
|
|
550
|
+
* // Create many BagPermissions
|
|
551
|
+
* const bagPermission = await prisma.bagPermission.createMany({
|
|
552
|
+
* data: [
|
|
553
|
+
* // ... provide data here
|
|
554
|
+
* ]
|
|
555
|
+
* })
|
|
556
|
+
*
|
|
557
|
+
*/
|
|
558
|
+
createMany<T extends BagPermissionCreateManyArgs>(args?: Prisma.SelectSubset<T, BagPermissionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* Create many BagPermissions and returns the data saved in the database.
|
|
562
|
+
* @param {BagPermissionCreateManyAndReturnArgs} args - Arguments to create many BagPermissions.
|
|
563
|
+
* @example
|
|
564
|
+
* // Create many BagPermissions
|
|
565
|
+
* const bagPermission = await prisma.bagPermission.createManyAndReturn({
|
|
566
|
+
* data: [
|
|
567
|
+
* // ... provide data here
|
|
568
|
+
* ]
|
|
569
|
+
* })
|
|
570
|
+
*
|
|
571
|
+
* // Create many BagPermissions and only return the `bag_id`
|
|
572
|
+
* const bagPermissionWithBag_idOnly = await prisma.bagPermission.createManyAndReturn({
|
|
573
|
+
* select: { bag_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 BagPermissionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, BagPermissionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$BagPermissionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
583
|
+
|
|
584
|
+
/**
|
|
585
|
+
* Delete a BagPermission.
|
|
586
|
+
* @param {BagPermissionDeleteArgs} args - Arguments to delete one BagPermission.
|
|
587
|
+
* @example
|
|
588
|
+
* // Delete one BagPermission
|
|
589
|
+
* const BagPermission = await prisma.bagPermission.delete({
|
|
590
|
+
* where: {
|
|
591
|
+
* // ... filter to delete one BagPermission
|
|
592
|
+
* }
|
|
593
|
+
* })
|
|
594
|
+
*
|
|
595
|
+
*/
|
|
596
|
+
delete<T extends BagPermissionDeleteArgs>(args: Prisma.SelectSubset<T, BagPermissionDeleteArgs<ExtArgs>>): Prisma.Prisma__BagPermissionClient<runtime.Types.Result.GetResult<Prisma.$BagPermissionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* Update one BagPermission.
|
|
600
|
+
* @param {BagPermissionUpdateArgs} args - Arguments to update one BagPermission.
|
|
601
|
+
* @example
|
|
602
|
+
* // Update one BagPermission
|
|
603
|
+
* const bagPermission = await prisma.bagPermission.update({
|
|
604
|
+
* where: {
|
|
605
|
+
* // ... provide filter here
|
|
606
|
+
* },
|
|
607
|
+
* data: {
|
|
608
|
+
* // ... provide data here
|
|
609
|
+
* }
|
|
610
|
+
* })
|
|
611
|
+
*
|
|
612
|
+
*/
|
|
613
|
+
update<T extends BagPermissionUpdateArgs>(args: Prisma.SelectSubset<T, BagPermissionUpdateArgs<ExtArgs>>): Prisma.Prisma__BagPermissionClient<runtime.Types.Result.GetResult<Prisma.$BagPermissionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
614
|
+
|
|
615
|
+
/**
|
|
616
|
+
* Delete zero or more BagPermissions.
|
|
617
|
+
* @param {BagPermissionDeleteManyArgs} args - Arguments to filter BagPermissions to delete.
|
|
618
|
+
* @example
|
|
619
|
+
* // Delete a few BagPermissions
|
|
620
|
+
* const { count } = await prisma.bagPermission.deleteMany({
|
|
621
|
+
* where: {
|
|
622
|
+
* // ... provide filter here
|
|
623
|
+
* }
|
|
624
|
+
* })
|
|
625
|
+
*
|
|
626
|
+
*/
|
|
627
|
+
deleteMany<T extends BagPermissionDeleteManyArgs>(args?: Prisma.SelectSubset<T, BagPermissionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
628
|
+
|
|
629
|
+
/**
|
|
630
|
+
* Update zero or more BagPermissions.
|
|
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 {BagPermissionUpdateManyArgs} args - Arguments to update one or more rows.
|
|
634
|
+
* @example
|
|
635
|
+
* // Update many BagPermissions
|
|
636
|
+
* const bagPermission = await prisma.bagPermission.updateMany({
|
|
637
|
+
* where: {
|
|
638
|
+
* // ... provide filter here
|
|
639
|
+
* },
|
|
640
|
+
* data: {
|
|
641
|
+
* // ... provide data here
|
|
642
|
+
* }
|
|
643
|
+
* })
|
|
644
|
+
*
|
|
645
|
+
*/
|
|
646
|
+
updateMany<T extends BagPermissionUpdateManyArgs>(args: Prisma.SelectSubset<T, BagPermissionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
647
|
+
|
|
648
|
+
/**
|
|
649
|
+
* Update zero or more BagPermissions and returns the data updated in the database.
|
|
650
|
+
* @param {BagPermissionUpdateManyAndReturnArgs} args - Arguments to update many BagPermissions.
|
|
651
|
+
* @example
|
|
652
|
+
* // Update many BagPermissions
|
|
653
|
+
* const bagPermission = await prisma.bagPermission.updateManyAndReturn({
|
|
654
|
+
* where: {
|
|
655
|
+
* // ... provide filter here
|
|
656
|
+
* },
|
|
657
|
+
* data: [
|
|
658
|
+
* // ... provide data here
|
|
659
|
+
* ]
|
|
660
|
+
* })
|
|
661
|
+
*
|
|
662
|
+
* // Update zero or more BagPermissions and only return the `bag_id`
|
|
663
|
+
* const bagPermissionWithBag_idOnly = await prisma.bagPermission.updateManyAndReturn({
|
|
664
|
+
* select: { bag_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 BagPermissionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, BagPermissionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$BagPermissionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
677
|
+
|
|
678
|
+
/**
|
|
679
|
+
* Create or update one BagPermission.
|
|
680
|
+
* @param {BagPermissionUpsertArgs} args - Arguments to update or create a BagPermission.
|
|
681
|
+
* @example
|
|
682
|
+
* // Update or create a BagPermission
|
|
683
|
+
* const bagPermission = await prisma.bagPermission.upsert({
|
|
684
|
+
* create: {
|
|
685
|
+
* // ... data to create a BagPermission
|
|
686
|
+
* },
|
|
687
|
+
* update: {
|
|
688
|
+
* // ... in case it already exists, update
|
|
689
|
+
* },
|
|
690
|
+
* where: {
|
|
691
|
+
* // ... the filter for the BagPermission we want to update
|
|
692
|
+
* }
|
|
693
|
+
* })
|
|
694
|
+
*/
|
|
695
|
+
upsert<T extends BagPermissionUpsertArgs>(args: Prisma.SelectSubset<T, BagPermissionUpsertArgs<ExtArgs>>): Prisma.Prisma__BagPermissionClient<runtime.Types.Result.GetResult<Prisma.$BagPermissionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
696
|
+
|
|
697
|
+
|
|
698
|
+
/**
|
|
699
|
+
* Count the number of BagPermissions.
|
|
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 {BagPermissionCountArgs} args - Arguments to filter BagPermissions to count.
|
|
703
|
+
* @example
|
|
704
|
+
* // Count the number of BagPermissions
|
|
705
|
+
* const count = await prisma.bagPermission.count({
|
|
706
|
+
* where: {
|
|
707
|
+
* // ... the filter for the BagPermissions we want to count
|
|
708
|
+
* }
|
|
709
|
+
* })
|
|
710
|
+
**/
|
|
711
|
+
count<T extends BagPermissionCountArgs>(
|
|
712
|
+
args?: Prisma.Subset<T, BagPermissionCountArgs>,
|
|
713
|
+
): Prisma.PrismaPromise<
|
|
714
|
+
T extends runtime.Types.Utils.Record<'select', any>
|
|
715
|
+
? T['select'] extends true
|
|
716
|
+
? number
|
|
717
|
+
: Prisma.GetScalarType<T['select'], BagPermissionCountAggregateOutputType>
|
|
718
|
+
: number
|
|
719
|
+
>
|
|
720
|
+
|
|
721
|
+
/**
|
|
722
|
+
* Allows you to perform aggregations operations on a BagPermission.
|
|
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 {BagPermissionAggregateArgs} 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 BagPermissionAggregateArgs>(args: Prisma.Subset<T, BagPermissionAggregateArgs>): Prisma.PrismaPromise<GetBagPermissionAggregateType<T>>
|
|
746
|
+
|
|
747
|
+
/**
|
|
748
|
+
* Group by BagPermission.
|
|
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 {BagPermissionGroupByArgs} 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 BagPermissionGroupByArgs,
|
|
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: BagPermissionGroupByArgs['orderBy'] }
|
|
773
|
+
: { orderBy?: BagPermissionGroupByArgs['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, BagPermissionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetBagPermissionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
823
|
+
/**
|
|
824
|
+
* Fields of the BagPermission model
|
|
825
|
+
*/
|
|
826
|
+
readonly fields: BagPermissionFieldRefs;
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
/**
|
|
830
|
+
* The delegate class that acts as a "Promise-like" for BagPermission.
|
|
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__BagPermissionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
836
|
+
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
837
|
+
bag<T extends Prisma.BagDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.BagDefaultArgs<ExtArgs>>): Prisma.Prisma__BagClient<runtime.Types.Result.GetResult<Prisma.$BagPayload<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 BagPermission model
|
|
865
|
+
*/
|
|
866
|
+
export interface BagPermissionFieldRefs {
|
|
867
|
+
readonly bag_id: Prisma.FieldRef<"BagPermission", 'String'>
|
|
868
|
+
readonly role_id: Prisma.FieldRef<"BagPermission", 'String'>
|
|
869
|
+
readonly level: Prisma.FieldRef<"BagPermission", 'BagPermissionLevel'>
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
|
|
873
|
+
// Custom InputTypes
|
|
874
|
+
/**
|
|
875
|
+
* BagPermission findUnique
|
|
876
|
+
*/
|
|
877
|
+
export type BagPermissionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
878
|
+
/**
|
|
879
|
+
* Select specific fields to fetch from the BagPermission
|
|
880
|
+
*/
|
|
881
|
+
select?: Prisma.BagPermissionSelect<ExtArgs> | null
|
|
882
|
+
/**
|
|
883
|
+
* Omit specific fields from the BagPermission
|
|
884
|
+
*/
|
|
885
|
+
omit?: Prisma.BagPermissionOmit<ExtArgs> | null
|
|
886
|
+
/**
|
|
887
|
+
* Choose, which related nodes to fetch as well
|
|
888
|
+
*/
|
|
889
|
+
include?: Prisma.BagPermissionInclude<ExtArgs> | null
|
|
890
|
+
/**
|
|
891
|
+
* Filter, which BagPermission to fetch.
|
|
892
|
+
*/
|
|
893
|
+
where: Prisma.BagPermissionWhereUniqueInput
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
/**
|
|
897
|
+
* BagPermission findUniqueOrThrow
|
|
898
|
+
*/
|
|
899
|
+
export type BagPermissionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
900
|
+
/**
|
|
901
|
+
* Select specific fields to fetch from the BagPermission
|
|
902
|
+
*/
|
|
903
|
+
select?: Prisma.BagPermissionSelect<ExtArgs> | null
|
|
904
|
+
/**
|
|
905
|
+
* Omit specific fields from the BagPermission
|
|
906
|
+
*/
|
|
907
|
+
omit?: Prisma.BagPermissionOmit<ExtArgs> | null
|
|
908
|
+
/**
|
|
909
|
+
* Choose, which related nodes to fetch as well
|
|
910
|
+
*/
|
|
911
|
+
include?: Prisma.BagPermissionInclude<ExtArgs> | null
|
|
912
|
+
/**
|
|
913
|
+
* Filter, which BagPermission to fetch.
|
|
914
|
+
*/
|
|
915
|
+
where: Prisma.BagPermissionWhereUniqueInput
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
/**
|
|
919
|
+
* BagPermission findFirst
|
|
920
|
+
*/
|
|
921
|
+
export type BagPermissionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
922
|
+
/**
|
|
923
|
+
* Select specific fields to fetch from the BagPermission
|
|
924
|
+
*/
|
|
925
|
+
select?: Prisma.BagPermissionSelect<ExtArgs> | null
|
|
926
|
+
/**
|
|
927
|
+
* Omit specific fields from the BagPermission
|
|
928
|
+
*/
|
|
929
|
+
omit?: Prisma.BagPermissionOmit<ExtArgs> | null
|
|
930
|
+
/**
|
|
931
|
+
* Choose, which related nodes to fetch as well
|
|
932
|
+
*/
|
|
933
|
+
include?: Prisma.BagPermissionInclude<ExtArgs> | null
|
|
934
|
+
/**
|
|
935
|
+
* Filter, which BagPermission to fetch.
|
|
936
|
+
*/
|
|
937
|
+
where?: Prisma.BagPermissionWhereInput
|
|
938
|
+
/**
|
|
939
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
940
|
+
*
|
|
941
|
+
* Determine the order of BagPermissions to fetch.
|
|
942
|
+
*/
|
|
943
|
+
orderBy?: Prisma.BagPermissionOrderByWithRelationInput | Prisma.BagPermissionOrderByWithRelationInput[]
|
|
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 BagPermissions.
|
|
948
|
+
*/
|
|
949
|
+
cursor?: Prisma.BagPermissionWhereUniqueInput
|
|
950
|
+
/**
|
|
951
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
952
|
+
*
|
|
953
|
+
* Take `±n` BagPermissions 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` BagPermissions.
|
|
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 BagPermissions.
|
|
966
|
+
*/
|
|
967
|
+
distinct?: Prisma.BagPermissionScalarFieldEnum | Prisma.BagPermissionScalarFieldEnum[]
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
/**
|
|
971
|
+
* BagPermission findFirstOrThrow
|
|
972
|
+
*/
|
|
973
|
+
export type BagPermissionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
974
|
+
/**
|
|
975
|
+
* Select specific fields to fetch from the BagPermission
|
|
976
|
+
*/
|
|
977
|
+
select?: Prisma.BagPermissionSelect<ExtArgs> | null
|
|
978
|
+
/**
|
|
979
|
+
* Omit specific fields from the BagPermission
|
|
980
|
+
*/
|
|
981
|
+
omit?: Prisma.BagPermissionOmit<ExtArgs> | null
|
|
982
|
+
/**
|
|
983
|
+
* Choose, which related nodes to fetch as well
|
|
984
|
+
*/
|
|
985
|
+
include?: Prisma.BagPermissionInclude<ExtArgs> | null
|
|
986
|
+
/**
|
|
987
|
+
* Filter, which BagPermission to fetch.
|
|
988
|
+
*/
|
|
989
|
+
where?: Prisma.BagPermissionWhereInput
|
|
990
|
+
/**
|
|
991
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
992
|
+
*
|
|
993
|
+
* Determine the order of BagPermissions to fetch.
|
|
994
|
+
*/
|
|
995
|
+
orderBy?: Prisma.BagPermissionOrderByWithRelationInput | Prisma.BagPermissionOrderByWithRelationInput[]
|
|
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 BagPermissions.
|
|
1000
|
+
*/
|
|
1001
|
+
cursor?: Prisma.BagPermissionWhereUniqueInput
|
|
1002
|
+
/**
|
|
1003
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1004
|
+
*
|
|
1005
|
+
* Take `±n` BagPermissions 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` BagPermissions.
|
|
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 BagPermissions.
|
|
1018
|
+
*/
|
|
1019
|
+
distinct?: Prisma.BagPermissionScalarFieldEnum | Prisma.BagPermissionScalarFieldEnum[]
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
/**
|
|
1023
|
+
* BagPermission findMany
|
|
1024
|
+
*/
|
|
1025
|
+
export type BagPermissionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1026
|
+
/**
|
|
1027
|
+
* Select specific fields to fetch from the BagPermission
|
|
1028
|
+
*/
|
|
1029
|
+
select?: Prisma.BagPermissionSelect<ExtArgs> | null
|
|
1030
|
+
/**
|
|
1031
|
+
* Omit specific fields from the BagPermission
|
|
1032
|
+
*/
|
|
1033
|
+
omit?: Prisma.BagPermissionOmit<ExtArgs> | null
|
|
1034
|
+
/**
|
|
1035
|
+
* Choose, which related nodes to fetch as well
|
|
1036
|
+
*/
|
|
1037
|
+
include?: Prisma.BagPermissionInclude<ExtArgs> | null
|
|
1038
|
+
/**
|
|
1039
|
+
* Filter, which BagPermissions to fetch.
|
|
1040
|
+
*/
|
|
1041
|
+
where?: Prisma.BagPermissionWhereInput
|
|
1042
|
+
/**
|
|
1043
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1044
|
+
*
|
|
1045
|
+
* Determine the order of BagPermissions to fetch.
|
|
1046
|
+
*/
|
|
1047
|
+
orderBy?: Prisma.BagPermissionOrderByWithRelationInput | Prisma.BagPermissionOrderByWithRelationInput[]
|
|
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 BagPermissions.
|
|
1052
|
+
*/
|
|
1053
|
+
cursor?: Prisma.BagPermissionWhereUniqueInput
|
|
1054
|
+
/**
|
|
1055
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1056
|
+
*
|
|
1057
|
+
* Take `±n` BagPermissions 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` BagPermissions.
|
|
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 BagPermissions.
|
|
1070
|
+
*/
|
|
1071
|
+
distinct?: Prisma.BagPermissionScalarFieldEnum | Prisma.BagPermissionScalarFieldEnum[]
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
/**
|
|
1075
|
+
* BagPermission create
|
|
1076
|
+
*/
|
|
1077
|
+
export type BagPermissionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1078
|
+
/**
|
|
1079
|
+
* Select specific fields to fetch from the BagPermission
|
|
1080
|
+
*/
|
|
1081
|
+
select?: Prisma.BagPermissionSelect<ExtArgs> | null
|
|
1082
|
+
/**
|
|
1083
|
+
* Omit specific fields from the BagPermission
|
|
1084
|
+
*/
|
|
1085
|
+
omit?: Prisma.BagPermissionOmit<ExtArgs> | null
|
|
1086
|
+
/**
|
|
1087
|
+
* Choose, which related nodes to fetch as well
|
|
1088
|
+
*/
|
|
1089
|
+
include?: Prisma.BagPermissionInclude<ExtArgs> | null
|
|
1090
|
+
/**
|
|
1091
|
+
* The data needed to create a BagPermission.
|
|
1092
|
+
*/
|
|
1093
|
+
data: Prisma.XOR<Prisma.BagPermissionCreateInput, Prisma.BagPermissionUncheckedCreateInput>
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
/**
|
|
1097
|
+
* BagPermission createMany
|
|
1098
|
+
*/
|
|
1099
|
+
export type BagPermissionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1100
|
+
/**
|
|
1101
|
+
* The data used to create many BagPermissions.
|
|
1102
|
+
*/
|
|
1103
|
+
data: Prisma.BagPermissionCreateManyInput | Prisma.BagPermissionCreateManyInput[]
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
/**
|
|
1107
|
+
* BagPermission createManyAndReturn
|
|
1108
|
+
*/
|
|
1109
|
+
export type BagPermissionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1110
|
+
/**
|
|
1111
|
+
* Select specific fields to fetch from the BagPermission
|
|
1112
|
+
*/
|
|
1113
|
+
select?: Prisma.BagPermissionSelectCreateManyAndReturn<ExtArgs> | null
|
|
1114
|
+
/**
|
|
1115
|
+
* Omit specific fields from the BagPermission
|
|
1116
|
+
*/
|
|
1117
|
+
omit?: Prisma.BagPermissionOmit<ExtArgs> | null
|
|
1118
|
+
/**
|
|
1119
|
+
* The data used to create many BagPermissions.
|
|
1120
|
+
*/
|
|
1121
|
+
data: Prisma.BagPermissionCreateManyInput | Prisma.BagPermissionCreateManyInput[]
|
|
1122
|
+
/**
|
|
1123
|
+
* Choose, which related nodes to fetch as well
|
|
1124
|
+
*/
|
|
1125
|
+
include?: Prisma.BagPermissionIncludeCreateManyAndReturn<ExtArgs> | null
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
/**
|
|
1129
|
+
* BagPermission update
|
|
1130
|
+
*/
|
|
1131
|
+
export type BagPermissionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1132
|
+
/**
|
|
1133
|
+
* Select specific fields to fetch from the BagPermission
|
|
1134
|
+
*/
|
|
1135
|
+
select?: Prisma.BagPermissionSelect<ExtArgs> | null
|
|
1136
|
+
/**
|
|
1137
|
+
* Omit specific fields from the BagPermission
|
|
1138
|
+
*/
|
|
1139
|
+
omit?: Prisma.BagPermissionOmit<ExtArgs> | null
|
|
1140
|
+
/**
|
|
1141
|
+
* Choose, which related nodes to fetch as well
|
|
1142
|
+
*/
|
|
1143
|
+
include?: Prisma.BagPermissionInclude<ExtArgs> | null
|
|
1144
|
+
/**
|
|
1145
|
+
* The data needed to update a BagPermission.
|
|
1146
|
+
*/
|
|
1147
|
+
data: Prisma.XOR<Prisma.BagPermissionUpdateInput, Prisma.BagPermissionUncheckedUpdateInput>
|
|
1148
|
+
/**
|
|
1149
|
+
* Choose, which BagPermission to update.
|
|
1150
|
+
*/
|
|
1151
|
+
where: Prisma.BagPermissionWhereUniqueInput
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
/**
|
|
1155
|
+
* BagPermission updateMany
|
|
1156
|
+
*/
|
|
1157
|
+
export type BagPermissionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1158
|
+
/**
|
|
1159
|
+
* The data used to update BagPermissions.
|
|
1160
|
+
*/
|
|
1161
|
+
data: Prisma.XOR<Prisma.BagPermissionUpdateManyMutationInput, Prisma.BagPermissionUncheckedUpdateManyInput>
|
|
1162
|
+
/**
|
|
1163
|
+
* Filter which BagPermissions to update
|
|
1164
|
+
*/
|
|
1165
|
+
where?: Prisma.BagPermissionWhereInput
|
|
1166
|
+
/**
|
|
1167
|
+
* Limit how many BagPermissions to update.
|
|
1168
|
+
*/
|
|
1169
|
+
limit?: number
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
/**
|
|
1173
|
+
* BagPermission updateManyAndReturn
|
|
1174
|
+
*/
|
|
1175
|
+
export type BagPermissionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1176
|
+
/**
|
|
1177
|
+
* Select specific fields to fetch from the BagPermission
|
|
1178
|
+
*/
|
|
1179
|
+
select?: Prisma.BagPermissionSelectUpdateManyAndReturn<ExtArgs> | null
|
|
1180
|
+
/**
|
|
1181
|
+
* Omit specific fields from the BagPermission
|
|
1182
|
+
*/
|
|
1183
|
+
omit?: Prisma.BagPermissionOmit<ExtArgs> | null
|
|
1184
|
+
/**
|
|
1185
|
+
* The data used to update BagPermissions.
|
|
1186
|
+
*/
|
|
1187
|
+
data: Prisma.XOR<Prisma.BagPermissionUpdateManyMutationInput, Prisma.BagPermissionUncheckedUpdateManyInput>
|
|
1188
|
+
/**
|
|
1189
|
+
* Filter which BagPermissions to update
|
|
1190
|
+
*/
|
|
1191
|
+
where?: Prisma.BagPermissionWhereInput
|
|
1192
|
+
/**
|
|
1193
|
+
* Limit how many BagPermissions to update.
|
|
1194
|
+
*/
|
|
1195
|
+
limit?: number
|
|
1196
|
+
/**
|
|
1197
|
+
* Choose, which related nodes to fetch as well
|
|
1198
|
+
*/
|
|
1199
|
+
include?: Prisma.BagPermissionIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
/**
|
|
1203
|
+
* BagPermission upsert
|
|
1204
|
+
*/
|
|
1205
|
+
export type BagPermissionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1206
|
+
/**
|
|
1207
|
+
* Select specific fields to fetch from the BagPermission
|
|
1208
|
+
*/
|
|
1209
|
+
select?: Prisma.BagPermissionSelect<ExtArgs> | null
|
|
1210
|
+
/**
|
|
1211
|
+
* Omit specific fields from the BagPermission
|
|
1212
|
+
*/
|
|
1213
|
+
omit?: Prisma.BagPermissionOmit<ExtArgs> | null
|
|
1214
|
+
/**
|
|
1215
|
+
* Choose, which related nodes to fetch as well
|
|
1216
|
+
*/
|
|
1217
|
+
include?: Prisma.BagPermissionInclude<ExtArgs> | null
|
|
1218
|
+
/**
|
|
1219
|
+
* The filter to search for the BagPermission to update in case it exists.
|
|
1220
|
+
*/
|
|
1221
|
+
where: Prisma.BagPermissionWhereUniqueInput
|
|
1222
|
+
/**
|
|
1223
|
+
* In case the BagPermission found by the `where` argument doesn't exist, create a new BagPermission with this data.
|
|
1224
|
+
*/
|
|
1225
|
+
create: Prisma.XOR<Prisma.BagPermissionCreateInput, Prisma.BagPermissionUncheckedCreateInput>
|
|
1226
|
+
/**
|
|
1227
|
+
* In case the BagPermission was found with the provided `where` argument, update it with this data.
|
|
1228
|
+
*/
|
|
1229
|
+
update: Prisma.XOR<Prisma.BagPermissionUpdateInput, Prisma.BagPermissionUncheckedUpdateInput>
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1232
|
+
/**
|
|
1233
|
+
* BagPermission delete
|
|
1234
|
+
*/
|
|
1235
|
+
export type BagPermissionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1236
|
+
/**
|
|
1237
|
+
* Select specific fields to fetch from the BagPermission
|
|
1238
|
+
*/
|
|
1239
|
+
select?: Prisma.BagPermissionSelect<ExtArgs> | null
|
|
1240
|
+
/**
|
|
1241
|
+
* Omit specific fields from the BagPermission
|
|
1242
|
+
*/
|
|
1243
|
+
omit?: Prisma.BagPermissionOmit<ExtArgs> | null
|
|
1244
|
+
/**
|
|
1245
|
+
* Choose, which related nodes to fetch as well
|
|
1246
|
+
*/
|
|
1247
|
+
include?: Prisma.BagPermissionInclude<ExtArgs> | null
|
|
1248
|
+
/**
|
|
1249
|
+
* Filter which BagPermission to delete.
|
|
1250
|
+
*/
|
|
1251
|
+
where: Prisma.BagPermissionWhereUniqueInput
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
/**
|
|
1255
|
+
* BagPermission deleteMany
|
|
1256
|
+
*/
|
|
1257
|
+
export type BagPermissionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1258
|
+
/**
|
|
1259
|
+
* Filter which BagPermissions to delete
|
|
1260
|
+
*/
|
|
1261
|
+
where?: Prisma.BagPermissionWhereInput
|
|
1262
|
+
/**
|
|
1263
|
+
* Limit how many BagPermissions to delete.
|
|
1264
|
+
*/
|
|
1265
|
+
limit?: number
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
/**
|
|
1269
|
+
* BagPermission without action
|
|
1270
|
+
*/
|
|
1271
|
+
export type BagPermissionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1272
|
+
/**
|
|
1273
|
+
* Select specific fields to fetch from the BagPermission
|
|
1274
|
+
*/
|
|
1275
|
+
select?: Prisma.BagPermissionSelect<ExtArgs> | null
|
|
1276
|
+
/**
|
|
1277
|
+
* Omit specific fields from the BagPermission
|
|
1278
|
+
*/
|
|
1279
|
+
omit?: Prisma.BagPermissionOmit<ExtArgs> | null
|
|
1280
|
+
/**
|
|
1281
|
+
* Choose, which related nodes to fetch as well
|
|
1282
|
+
*/
|
|
1283
|
+
include?: Prisma.BagPermissionInclude<ExtArgs> | null
|
|
1284
|
+
}
|