@illustrisinteractive/sentinel-nest 0.0.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/.prettierrc +4 -0
- package/README.md +98 -0
- package/config/config.json +24 -0
- package/dist/bin/commit.d.ts +1 -0
- package/dist/bin/commit.js +136 -0
- package/dist/bin/commit.js.map +1 -0
- package/dist/bin/init.d.ts +2 -0
- package/dist/bin/init.js +179 -0
- package/dist/bin/init.js.map +1 -0
- package/dist/bin/migrations/1-create-permission.d.ts +6 -0
- package/dist/bin/migrations/1-create-permission.js +30 -0
- package/dist/bin/migrations/1-create-permission.js.map +1 -0
- package/dist/bin/migrations/2-create-role.d.ts +2 -0
- package/dist/bin/migrations/2-create-role.js +29 -0
- package/dist/bin/migrations/2-create-role.js.map +1 -0
- package/dist/bin/migrations/3-create-rolepermissions.d.ts +2 -0
- package/dist/bin/migrations/3-create-rolepermissions.js +46 -0
- package/dist/bin/migrations/3-create-rolepermissions.js.map +1 -0
- package/dist/bin/migrations/4-create-model-roles.d.ts +2 -0
- package/dist/bin/migrations/4-create-model-roles.js +46 -0
- package/dist/bin/migrations/4-create-model-roles.js.map +1 -0
- package/dist/bin/resource.d.ts +1 -0
- package/dist/bin/resource.js +91 -0
- package/dist/bin/resource.js.map +1 -0
- package/dist/bin/sentinel.d.ts +2 -0
- package/dist/bin/sentinel.js +52 -0
- package/dist/bin/sentinel.js.map +1 -0
- package/dist/models/SecuredResource.d.ts +8 -0
- package/dist/models/SecuredResource.js +9 -0
- package/dist/models/SecuredResource.js.map +1 -0
- package/dist/models/SentinelConfig.d.ts +7 -0
- package/dist/models/SentinelConfig.js +3 -0
- package/dist/models/SentinelConfig.js.map +1 -0
- package/dist/models/sequelize/PermissionKey.d.ts +7 -0
- package/dist/models/sequelize/PermissionKey.js +39 -0
- package/dist/models/sequelize/PermissionKey.js.map +1 -0
- package/dist/prisma.config.d.ts +3 -0
- package/dist/prisma.config.js +14 -0
- package/dist/prisma.config.js.map +1 -0
- package/dist/src/can.decorator.d.ts +2 -0
- package/dist/src/can.decorator.js +6 -0
- package/dist/src/can.decorator.js.map +1 -0
- package/dist/src/generated/prisma/browser.d.ts +10 -0
- package/dist/src/generated/prisma/browser.js +44 -0
- package/dist/src/generated/prisma/browser.js.map +1 -0
- package/dist/src/generated/prisma/client.d.ts +14 -0
- package/dist/src/generated/prisma/client.js +46 -0
- package/dist/src/generated/prisma/client.js.map +1 -0
- package/dist/src/generated/prisma/commonInputTypes.d.ts +263 -0
- package/dist/src/generated/prisma/commonInputTypes.js +3 -0
- package/dist/src/generated/prisma/commonInputTypes.js.map +1 -0
- package/dist/src/generated/prisma/enums.d.ts +1 -0
- package/dist/src/generated/prisma/enums.js +3 -0
- package/dist/src/generated/prisma/enums.js.map +1 -0
- package/dist/src/generated/prisma/internal/class.d.ts +50 -0
- package/dist/src/generated/prisma/internal/class.js +75 -0
- package/dist/src/generated/prisma/internal/class.js.map +1 -0
- package/dist/src/generated/prisma/internal/prismaNamespace.d.ts +778 -0
- package/dist/src/generated/prisma/internal/prismaNamespace.js +128 -0
- package/dist/src/generated/prisma/internal/prismaNamespace.js.map +1 -0
- package/dist/src/generated/prisma/internal/prismaNamespaceBrowser.d.ts +88 -0
- package/dist/src/generated/prisma/internal/prismaNamespaceBrowser.js +112 -0
- package/dist/src/generated/prisma/internal/prismaNamespaceBrowser.js.map +1 -0
- package/dist/src/generated/prisma/models/ModelHasRoles.d.ts +691 -0
- package/dist/src/generated/prisma/models/ModelHasRoles.js +3 -0
- package/dist/src/generated/prisma/models/ModelHasRoles.js.map +1 -0
- package/dist/src/generated/prisma/models/PermissionKeys.d.ts +547 -0
- package/dist/src/generated/prisma/models/PermissionKeys.js +3 -0
- package/dist/src/generated/prisma/models/PermissionKeys.js.map +1 -0
- package/dist/src/generated/prisma/models/RoleHasPermissions.d.ts +675 -0
- package/dist/src/generated/prisma/models/RoleHasPermissions.js +3 -0
- package/dist/src/generated/prisma/models/RoleHasPermissions.js.map +1 -0
- package/dist/src/generated/prisma/models/Roles.d.ts +582 -0
- package/dist/src/generated/prisma/models/Roles.js +3 -0
- package/dist/src/generated/prisma/models/Roles.js.map +1 -0
- package/dist/src/generated/prisma/models/SequelizeMeta.d.ts +289 -0
- package/dist/src/generated/prisma/models/SequelizeMeta.js +3 -0
- package/dist/src/generated/prisma/models/SequelizeMeta.js.map +1 -0
- package/dist/src/generated/prisma/models/Users.d.ts +572 -0
- package/dist/src/generated/prisma/models/Users.js +3 -0
- package/dist/src/generated/prisma/models/Users.js.map +1 -0
- package/dist/src/generated/prisma/models.d.ts +7 -0
- package/dist/src/generated/prisma/models.js +3 -0
- package/dist/src/generated/prisma/models.js.map +1 -0
- package/dist/src/main.d.ts +6 -0
- package/dist/src/main.js +23 -0
- package/dist/src/main.js.map +1 -0
- package/dist/src/models/SecuredResource.d.ts +8 -0
- package/dist/src/models/SecuredResource.js +9 -0
- package/dist/src/models/SecuredResource.js.map +1 -0
- package/dist/src/models/SentinelConfig.d.ts +7 -0
- package/dist/src/models/SentinelConfig.js +3 -0
- package/dist/src/models/SentinelConfig.js.map +1 -0
- package/dist/src/models/SentinelModel.d.ts +35 -0
- package/dist/src/models/SentinelModel.js +3 -0
- package/dist/src/models/SentinelModel.js.map +1 -0
- package/dist/src/models/SentinelModuleOptions.d.ts +7 -0
- package/dist/src/models/SentinelModuleOptions.js +3 -0
- package/dist/src/models/SentinelModuleOptions.js.map +1 -0
- package/dist/src/prisma.service.d.ts +4 -0
- package/dist/src/prisma.service.js +29 -0
- package/dist/src/prisma.service.js.map +1 -0
- package/dist/src/sentinel.guard.d.ts +9 -0
- package/dist/src/sentinel.guard.js +73 -0
- package/dist/src/sentinel.guard.js.map +1 -0
- package/dist/src/sentinel.module-definition.d.ts +2 -0
- package/dist/src/sentinel.module-definition.js +7 -0
- package/dist/src/sentinel.module-definition.js.map +1 -0
- package/dist/src/sentinel.module.d.ts +3 -0
- package/dist/src/sentinel.module.js +40 -0
- package/dist/src/sentinel.module.js.map +1 -0
- package/dist/src/sentinel.service.d.ts +39 -0
- package/dist/src/sentinel.service.js +146 -0
- package/dist/src/sentinel.service.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/eslint.config.mjs +34 -0
- package/models/index.js +43 -0
- package/models/permissionkey.js +31 -0
- package/models/role.js +23 -0
- package/models/rolehaspermission.js +43 -0
- package/nest-cli.json +8 -0
- package/package.json +103 -0
- package/prisma/migrations/20260227023704_init/migration.sql +74 -0
- package/prisma/migrations/migration_lock.toml +3 -0
- package/prisma/schema.prisma +62 -0
- package/prisma.config.ts +14 -0
- package/src/bin/commit.ts +186 -0
- package/src/bin/init.ts +251 -0
- package/src/bin/migrations/1-create-permission.js +32 -0
- package/src/bin/migrations/2-create-role.js +29 -0
- package/src/bin/migrations/3-create-rolepermissions.js +46 -0
- package/src/bin/migrations/4-create-model-roles.js +46 -0
- package/src/bin/resource.ts +107 -0
- package/src/bin/sentinel.ts +115 -0
- package/src/bin/tsconfig.json +30 -0
- package/src/can.decorator.ts +4 -0
- package/src/generated/prisma/browser.ts +49 -0
- package/src/generated/prisma/client.ts +69 -0
- package/src/generated/prisma/commonInputTypes.ts +302 -0
- package/src/generated/prisma/enums.ts +15 -0
- package/src/generated/prisma/internal/class.ts +250 -0
- package/src/generated/prisma/internal/prismaNamespace.ts +1213 -0
- package/src/generated/prisma/internal/prismaNamespaceBrowser.ts +163 -0
- package/src/generated/prisma/models/ModelHasRoles.ts +1521 -0
- package/src/generated/prisma/models/PermissionKeys.ts +1362 -0
- package/src/generated/prisma/models/RoleHasPermissions.ts +1503 -0
- package/src/generated/prisma/models/Roles.ts +1437 -0
- package/src/generated/prisma/models/SequelizeMeta.ts +1032 -0
- package/src/generated/prisma/models/Users.ts +1402 -0
- package/src/generated/prisma/models.ts +17 -0
- package/src/main.ts +24 -0
- package/src/models/SecuredResource.d.ts +8 -0
- package/src/models/SecuredResource.ts +9 -0
- package/src/models/SentinelConfig.d.ts +7 -0
- package/src/models/SentinelConfig.ts +8 -0
- package/src/models/SentinelModel.ts +39 -0
- package/src/models/SentinelModuleOptions.ts +11 -0
- package/src/models/sequelize/PermissionKey.ts +22 -0
- package/src/models/tsconfig.json +25 -0
- package/src/prisma.service.ts +13 -0
- package/src/sentinel.guard.ts +63 -0
- package/src/sentinel.module-definition.ts +5 -0
- package/src/sentinel.module.ts +27 -0
- package/src/sentinel.service.ts +188 -0
- package/tsconfig.build.json +11 -0
- package/tsconfig.json +25 -0
|
@@ -0,0 +1,1362 @@
|
|
|
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 `PermissionKeys` model and its related types.
|
|
8
|
+
*
|
|
9
|
+
* 🟢 You can import this file directly.
|
|
10
|
+
*/
|
|
11
|
+
import type * as runtime from "@prisma/client/runtime/client"
|
|
12
|
+
import type * as $Enums from "../enums.js"
|
|
13
|
+
import type * as Prisma from "../internal/prismaNamespace.js"
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Model PermissionKeys
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export type PermissionKeysModel = runtime.Types.Result.DefaultSelection<Prisma.$PermissionKeysPayload>
|
|
20
|
+
|
|
21
|
+
export type AggregatePermissionKeys = {
|
|
22
|
+
_count: PermissionKeysCountAggregateOutputType | null
|
|
23
|
+
_min: PermissionKeysMinAggregateOutputType | null
|
|
24
|
+
_max: PermissionKeysMaxAggregateOutputType | null
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type PermissionKeysMinAggregateOutputType = {
|
|
28
|
+
id: string | null
|
|
29
|
+
resource: string | null
|
|
30
|
+
action: string | null
|
|
31
|
+
createdAt: Date | null
|
|
32
|
+
updatedAt: Date | null
|
|
33
|
+
description: string | null
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export type PermissionKeysMaxAggregateOutputType = {
|
|
37
|
+
id: string | null
|
|
38
|
+
resource: string | null
|
|
39
|
+
action: string | null
|
|
40
|
+
createdAt: Date | null
|
|
41
|
+
updatedAt: Date | null
|
|
42
|
+
description: string | null
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export type PermissionKeysCountAggregateOutputType = {
|
|
46
|
+
id: number
|
|
47
|
+
resource: number
|
|
48
|
+
action: number
|
|
49
|
+
createdAt: number
|
|
50
|
+
updatedAt: number
|
|
51
|
+
description: number
|
|
52
|
+
_all: number
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
export type PermissionKeysMinAggregateInputType = {
|
|
57
|
+
id?: true
|
|
58
|
+
resource?: true
|
|
59
|
+
action?: true
|
|
60
|
+
createdAt?: true
|
|
61
|
+
updatedAt?: true
|
|
62
|
+
description?: true
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export type PermissionKeysMaxAggregateInputType = {
|
|
66
|
+
id?: true
|
|
67
|
+
resource?: true
|
|
68
|
+
action?: true
|
|
69
|
+
createdAt?: true
|
|
70
|
+
updatedAt?: true
|
|
71
|
+
description?: true
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export type PermissionKeysCountAggregateInputType = {
|
|
75
|
+
id?: true
|
|
76
|
+
resource?: true
|
|
77
|
+
action?: true
|
|
78
|
+
createdAt?: true
|
|
79
|
+
updatedAt?: true
|
|
80
|
+
description?: true
|
|
81
|
+
_all?: true
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export type PermissionKeysAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
85
|
+
/**
|
|
86
|
+
* Filter which PermissionKeys to aggregate.
|
|
87
|
+
*/
|
|
88
|
+
where?: Prisma.PermissionKeysWhereInput
|
|
89
|
+
/**
|
|
90
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
91
|
+
*
|
|
92
|
+
* Determine the order of PermissionKeys to fetch.
|
|
93
|
+
*/
|
|
94
|
+
orderBy?: Prisma.PermissionKeysOrderByWithRelationInput | Prisma.PermissionKeysOrderByWithRelationInput[]
|
|
95
|
+
/**
|
|
96
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
97
|
+
*
|
|
98
|
+
* Sets the start position
|
|
99
|
+
*/
|
|
100
|
+
cursor?: Prisma.PermissionKeysWhereUniqueInput
|
|
101
|
+
/**
|
|
102
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
103
|
+
*
|
|
104
|
+
* Take `±n` PermissionKeys from the position of the cursor.
|
|
105
|
+
*/
|
|
106
|
+
take?: number
|
|
107
|
+
/**
|
|
108
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
109
|
+
*
|
|
110
|
+
* Skip the first `n` PermissionKeys.
|
|
111
|
+
*/
|
|
112
|
+
skip?: number
|
|
113
|
+
/**
|
|
114
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
115
|
+
*
|
|
116
|
+
* Count returned PermissionKeys
|
|
117
|
+
**/
|
|
118
|
+
_count?: true | PermissionKeysCountAggregateInputType
|
|
119
|
+
/**
|
|
120
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
121
|
+
*
|
|
122
|
+
* Select which fields to find the minimum value
|
|
123
|
+
**/
|
|
124
|
+
_min?: PermissionKeysMinAggregateInputType
|
|
125
|
+
/**
|
|
126
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
127
|
+
*
|
|
128
|
+
* Select which fields to find the maximum value
|
|
129
|
+
**/
|
|
130
|
+
_max?: PermissionKeysMaxAggregateInputType
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export type GetPermissionKeysAggregateType<T extends PermissionKeysAggregateArgs> = {
|
|
134
|
+
[P in keyof T & keyof AggregatePermissionKeys]: P extends '_count' | 'count'
|
|
135
|
+
? T[P] extends true
|
|
136
|
+
? number
|
|
137
|
+
: Prisma.GetScalarType<T[P], AggregatePermissionKeys[P]>
|
|
138
|
+
: Prisma.GetScalarType<T[P], AggregatePermissionKeys[P]>
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
export type PermissionKeysGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
145
|
+
where?: Prisma.PermissionKeysWhereInput
|
|
146
|
+
orderBy?: Prisma.PermissionKeysOrderByWithAggregationInput | Prisma.PermissionKeysOrderByWithAggregationInput[]
|
|
147
|
+
by: Prisma.PermissionKeysScalarFieldEnum[] | Prisma.PermissionKeysScalarFieldEnum
|
|
148
|
+
having?: Prisma.PermissionKeysScalarWhereWithAggregatesInput
|
|
149
|
+
take?: number
|
|
150
|
+
skip?: number
|
|
151
|
+
_count?: PermissionKeysCountAggregateInputType | true
|
|
152
|
+
_min?: PermissionKeysMinAggregateInputType
|
|
153
|
+
_max?: PermissionKeysMaxAggregateInputType
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export type PermissionKeysGroupByOutputType = {
|
|
157
|
+
id: string
|
|
158
|
+
resource: string | null
|
|
159
|
+
action: string | null
|
|
160
|
+
createdAt: Date
|
|
161
|
+
updatedAt: Date
|
|
162
|
+
description: string | null
|
|
163
|
+
_count: PermissionKeysCountAggregateOutputType | null
|
|
164
|
+
_min: PermissionKeysMinAggregateOutputType | null
|
|
165
|
+
_max: PermissionKeysMaxAggregateOutputType | null
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
type GetPermissionKeysGroupByPayload<T extends PermissionKeysGroupByArgs> = Prisma.PrismaPromise<
|
|
169
|
+
Array<
|
|
170
|
+
Prisma.PickEnumerable<PermissionKeysGroupByOutputType, T['by']> &
|
|
171
|
+
{
|
|
172
|
+
[P in ((keyof T) & (keyof PermissionKeysGroupByOutputType))]: P extends '_count'
|
|
173
|
+
? T[P] extends boolean
|
|
174
|
+
? number
|
|
175
|
+
: Prisma.GetScalarType<T[P], PermissionKeysGroupByOutputType[P]>
|
|
176
|
+
: Prisma.GetScalarType<T[P], PermissionKeysGroupByOutputType[P]>
|
|
177
|
+
}
|
|
178
|
+
>
|
|
179
|
+
>
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
export type PermissionKeysWhereInput = {
|
|
184
|
+
AND?: Prisma.PermissionKeysWhereInput | Prisma.PermissionKeysWhereInput[]
|
|
185
|
+
OR?: Prisma.PermissionKeysWhereInput[]
|
|
186
|
+
NOT?: Prisma.PermissionKeysWhereInput | Prisma.PermissionKeysWhereInput[]
|
|
187
|
+
id?: Prisma.StringFilter<"PermissionKeys"> | string
|
|
188
|
+
resource?: Prisma.StringNullableFilter<"PermissionKeys"> | string | null
|
|
189
|
+
action?: Prisma.StringNullableFilter<"PermissionKeys"> | string | null
|
|
190
|
+
createdAt?: Prisma.DateTimeFilter<"PermissionKeys"> | Date | string
|
|
191
|
+
updatedAt?: Prisma.DateTimeFilter<"PermissionKeys"> | Date | string
|
|
192
|
+
description?: Prisma.StringNullableFilter<"PermissionKeys"> | string | null
|
|
193
|
+
RoleHasPermissions?: Prisma.RoleHasPermissionsListRelationFilter
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export type PermissionKeysOrderByWithRelationInput = {
|
|
197
|
+
id?: Prisma.SortOrder
|
|
198
|
+
resource?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
199
|
+
action?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
200
|
+
createdAt?: Prisma.SortOrder
|
|
201
|
+
updatedAt?: Prisma.SortOrder
|
|
202
|
+
description?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
203
|
+
RoleHasPermissions?: Prisma.RoleHasPermissionsOrderByRelationAggregateInput
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export type PermissionKeysWhereUniqueInput = Prisma.AtLeast<{
|
|
207
|
+
id?: string
|
|
208
|
+
AND?: Prisma.PermissionKeysWhereInput | Prisma.PermissionKeysWhereInput[]
|
|
209
|
+
OR?: Prisma.PermissionKeysWhereInput[]
|
|
210
|
+
NOT?: Prisma.PermissionKeysWhereInput | Prisma.PermissionKeysWhereInput[]
|
|
211
|
+
resource?: Prisma.StringNullableFilter<"PermissionKeys"> | string | null
|
|
212
|
+
action?: Prisma.StringNullableFilter<"PermissionKeys"> | string | null
|
|
213
|
+
createdAt?: Prisma.DateTimeFilter<"PermissionKeys"> | Date | string
|
|
214
|
+
updatedAt?: Prisma.DateTimeFilter<"PermissionKeys"> | Date | string
|
|
215
|
+
description?: Prisma.StringNullableFilter<"PermissionKeys"> | string | null
|
|
216
|
+
RoleHasPermissions?: Prisma.RoleHasPermissionsListRelationFilter
|
|
217
|
+
}, "id">
|
|
218
|
+
|
|
219
|
+
export type PermissionKeysOrderByWithAggregationInput = {
|
|
220
|
+
id?: Prisma.SortOrder
|
|
221
|
+
resource?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
222
|
+
action?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
223
|
+
createdAt?: Prisma.SortOrder
|
|
224
|
+
updatedAt?: Prisma.SortOrder
|
|
225
|
+
description?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
226
|
+
_count?: Prisma.PermissionKeysCountOrderByAggregateInput
|
|
227
|
+
_max?: Prisma.PermissionKeysMaxOrderByAggregateInput
|
|
228
|
+
_min?: Prisma.PermissionKeysMinOrderByAggregateInput
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
export type PermissionKeysScalarWhereWithAggregatesInput = {
|
|
232
|
+
AND?: Prisma.PermissionKeysScalarWhereWithAggregatesInput | Prisma.PermissionKeysScalarWhereWithAggregatesInput[]
|
|
233
|
+
OR?: Prisma.PermissionKeysScalarWhereWithAggregatesInput[]
|
|
234
|
+
NOT?: Prisma.PermissionKeysScalarWhereWithAggregatesInput | Prisma.PermissionKeysScalarWhereWithAggregatesInput[]
|
|
235
|
+
id?: Prisma.StringWithAggregatesFilter<"PermissionKeys"> | string
|
|
236
|
+
resource?: Prisma.StringNullableWithAggregatesFilter<"PermissionKeys"> | string | null
|
|
237
|
+
action?: Prisma.StringNullableWithAggregatesFilter<"PermissionKeys"> | string | null
|
|
238
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"PermissionKeys"> | Date | string
|
|
239
|
+
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"PermissionKeys"> | Date | string
|
|
240
|
+
description?: Prisma.StringNullableWithAggregatesFilter<"PermissionKeys"> | string | null
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export type PermissionKeysCreateInput = {
|
|
244
|
+
id: string
|
|
245
|
+
resource?: string | null
|
|
246
|
+
action?: string | null
|
|
247
|
+
createdAt: Date | string
|
|
248
|
+
updatedAt: Date | string
|
|
249
|
+
description?: string | null
|
|
250
|
+
RoleHasPermissions?: Prisma.RoleHasPermissionsCreateNestedManyWithoutPermissionKeysInput
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
export type PermissionKeysUncheckedCreateInput = {
|
|
254
|
+
id: string
|
|
255
|
+
resource?: string | null
|
|
256
|
+
action?: string | null
|
|
257
|
+
createdAt: Date | string
|
|
258
|
+
updatedAt: Date | string
|
|
259
|
+
description?: string | null
|
|
260
|
+
RoleHasPermissions?: Prisma.RoleHasPermissionsUncheckedCreateNestedManyWithoutPermissionKeysInput
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
export type PermissionKeysUpdateInput = {
|
|
264
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
265
|
+
resource?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
266
|
+
action?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
267
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
268
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
269
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
270
|
+
RoleHasPermissions?: Prisma.RoleHasPermissionsUpdateManyWithoutPermissionKeysNestedInput
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
export type PermissionKeysUncheckedUpdateInput = {
|
|
274
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
275
|
+
resource?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
276
|
+
action?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
277
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
278
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
279
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
280
|
+
RoleHasPermissions?: Prisma.RoleHasPermissionsUncheckedUpdateManyWithoutPermissionKeysNestedInput
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
export type PermissionKeysCreateManyInput = {
|
|
284
|
+
id: string
|
|
285
|
+
resource?: string | null
|
|
286
|
+
action?: string | null
|
|
287
|
+
createdAt: Date | string
|
|
288
|
+
updatedAt: Date | string
|
|
289
|
+
description?: string | null
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
export type PermissionKeysUpdateManyMutationInput = {
|
|
293
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
294
|
+
resource?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
295
|
+
action?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
296
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
297
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
298
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
export type PermissionKeysUncheckedUpdateManyInput = {
|
|
302
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
303
|
+
resource?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
304
|
+
action?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
305
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
306
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
307
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
export type PermissionKeysCountOrderByAggregateInput = {
|
|
311
|
+
id?: Prisma.SortOrder
|
|
312
|
+
resource?: Prisma.SortOrder
|
|
313
|
+
action?: Prisma.SortOrder
|
|
314
|
+
createdAt?: Prisma.SortOrder
|
|
315
|
+
updatedAt?: Prisma.SortOrder
|
|
316
|
+
description?: Prisma.SortOrder
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
export type PermissionKeysMaxOrderByAggregateInput = {
|
|
320
|
+
id?: Prisma.SortOrder
|
|
321
|
+
resource?: Prisma.SortOrder
|
|
322
|
+
action?: Prisma.SortOrder
|
|
323
|
+
createdAt?: Prisma.SortOrder
|
|
324
|
+
updatedAt?: Prisma.SortOrder
|
|
325
|
+
description?: Prisma.SortOrder
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
export type PermissionKeysMinOrderByAggregateInput = {
|
|
329
|
+
id?: Prisma.SortOrder
|
|
330
|
+
resource?: Prisma.SortOrder
|
|
331
|
+
action?: Prisma.SortOrder
|
|
332
|
+
createdAt?: Prisma.SortOrder
|
|
333
|
+
updatedAt?: Prisma.SortOrder
|
|
334
|
+
description?: Prisma.SortOrder
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
export type PermissionKeysScalarRelationFilter = {
|
|
338
|
+
is?: Prisma.PermissionKeysWhereInput
|
|
339
|
+
isNot?: Prisma.PermissionKeysWhereInput
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
export type StringFieldUpdateOperationsInput = {
|
|
343
|
+
set?: string
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
export type NullableStringFieldUpdateOperationsInput = {
|
|
347
|
+
set?: string | null
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
export type PermissionKeysCreateNestedOneWithoutRoleHasPermissionsInput = {
|
|
351
|
+
create?: Prisma.XOR<Prisma.PermissionKeysCreateWithoutRoleHasPermissionsInput, Prisma.PermissionKeysUncheckedCreateWithoutRoleHasPermissionsInput>
|
|
352
|
+
connectOrCreate?: Prisma.PermissionKeysCreateOrConnectWithoutRoleHasPermissionsInput
|
|
353
|
+
connect?: Prisma.PermissionKeysWhereUniqueInput
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
export type PermissionKeysUpdateOneRequiredWithoutRoleHasPermissionsNestedInput = {
|
|
357
|
+
create?: Prisma.XOR<Prisma.PermissionKeysCreateWithoutRoleHasPermissionsInput, Prisma.PermissionKeysUncheckedCreateWithoutRoleHasPermissionsInput>
|
|
358
|
+
connectOrCreate?: Prisma.PermissionKeysCreateOrConnectWithoutRoleHasPermissionsInput
|
|
359
|
+
upsert?: Prisma.PermissionKeysUpsertWithoutRoleHasPermissionsInput
|
|
360
|
+
connect?: Prisma.PermissionKeysWhereUniqueInput
|
|
361
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.PermissionKeysUpdateToOneWithWhereWithoutRoleHasPermissionsInput, Prisma.PermissionKeysUpdateWithoutRoleHasPermissionsInput>, Prisma.PermissionKeysUncheckedUpdateWithoutRoleHasPermissionsInput>
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
export type PermissionKeysCreateWithoutRoleHasPermissionsInput = {
|
|
365
|
+
id: string
|
|
366
|
+
resource?: string | null
|
|
367
|
+
action?: string | null
|
|
368
|
+
createdAt: Date | string
|
|
369
|
+
updatedAt: Date | string
|
|
370
|
+
description?: string | null
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
export type PermissionKeysUncheckedCreateWithoutRoleHasPermissionsInput = {
|
|
374
|
+
id: string
|
|
375
|
+
resource?: string | null
|
|
376
|
+
action?: string | null
|
|
377
|
+
createdAt: Date | string
|
|
378
|
+
updatedAt: Date | string
|
|
379
|
+
description?: string | null
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
export type PermissionKeysCreateOrConnectWithoutRoleHasPermissionsInput = {
|
|
383
|
+
where: Prisma.PermissionKeysWhereUniqueInput
|
|
384
|
+
create: Prisma.XOR<Prisma.PermissionKeysCreateWithoutRoleHasPermissionsInput, Prisma.PermissionKeysUncheckedCreateWithoutRoleHasPermissionsInput>
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
export type PermissionKeysUpsertWithoutRoleHasPermissionsInput = {
|
|
388
|
+
update: Prisma.XOR<Prisma.PermissionKeysUpdateWithoutRoleHasPermissionsInput, Prisma.PermissionKeysUncheckedUpdateWithoutRoleHasPermissionsInput>
|
|
389
|
+
create: Prisma.XOR<Prisma.PermissionKeysCreateWithoutRoleHasPermissionsInput, Prisma.PermissionKeysUncheckedCreateWithoutRoleHasPermissionsInput>
|
|
390
|
+
where?: Prisma.PermissionKeysWhereInput
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
export type PermissionKeysUpdateToOneWithWhereWithoutRoleHasPermissionsInput = {
|
|
394
|
+
where?: Prisma.PermissionKeysWhereInput
|
|
395
|
+
data: Prisma.XOR<Prisma.PermissionKeysUpdateWithoutRoleHasPermissionsInput, Prisma.PermissionKeysUncheckedUpdateWithoutRoleHasPermissionsInput>
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
export type PermissionKeysUpdateWithoutRoleHasPermissionsInput = {
|
|
399
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
400
|
+
resource?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
401
|
+
action?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
402
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
403
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
404
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
export type PermissionKeysUncheckedUpdateWithoutRoleHasPermissionsInput = {
|
|
408
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
409
|
+
resource?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
410
|
+
action?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
411
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
412
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
413
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* Count Type PermissionKeysCountOutputType
|
|
419
|
+
*/
|
|
420
|
+
|
|
421
|
+
export type PermissionKeysCountOutputType = {
|
|
422
|
+
RoleHasPermissions: number
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
export type PermissionKeysCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
426
|
+
RoleHasPermissions?: boolean | PermissionKeysCountOutputTypeCountRoleHasPermissionsArgs
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* PermissionKeysCountOutputType without action
|
|
431
|
+
*/
|
|
432
|
+
export type PermissionKeysCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
433
|
+
/**
|
|
434
|
+
* Select specific fields to fetch from the PermissionKeysCountOutputType
|
|
435
|
+
*/
|
|
436
|
+
select?: Prisma.PermissionKeysCountOutputTypeSelect<ExtArgs> | null
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* PermissionKeysCountOutputType without action
|
|
441
|
+
*/
|
|
442
|
+
export type PermissionKeysCountOutputTypeCountRoleHasPermissionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
443
|
+
where?: Prisma.RoleHasPermissionsWhereInput
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
export type PermissionKeysSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
448
|
+
id?: boolean
|
|
449
|
+
resource?: boolean
|
|
450
|
+
action?: boolean
|
|
451
|
+
createdAt?: boolean
|
|
452
|
+
updatedAt?: boolean
|
|
453
|
+
description?: boolean
|
|
454
|
+
RoleHasPermissions?: boolean | Prisma.PermissionKeys$RoleHasPermissionsArgs<ExtArgs>
|
|
455
|
+
_count?: boolean | Prisma.PermissionKeysCountOutputTypeDefaultArgs<ExtArgs>
|
|
456
|
+
}, ExtArgs["result"]["permissionKeys"]>
|
|
457
|
+
|
|
458
|
+
export type PermissionKeysSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
459
|
+
id?: boolean
|
|
460
|
+
resource?: boolean
|
|
461
|
+
action?: boolean
|
|
462
|
+
createdAt?: boolean
|
|
463
|
+
updatedAt?: boolean
|
|
464
|
+
description?: boolean
|
|
465
|
+
}, ExtArgs["result"]["permissionKeys"]>
|
|
466
|
+
|
|
467
|
+
export type PermissionKeysSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
468
|
+
id?: boolean
|
|
469
|
+
resource?: boolean
|
|
470
|
+
action?: boolean
|
|
471
|
+
createdAt?: boolean
|
|
472
|
+
updatedAt?: boolean
|
|
473
|
+
description?: boolean
|
|
474
|
+
}, ExtArgs["result"]["permissionKeys"]>
|
|
475
|
+
|
|
476
|
+
export type PermissionKeysSelectScalar = {
|
|
477
|
+
id?: boolean
|
|
478
|
+
resource?: boolean
|
|
479
|
+
action?: boolean
|
|
480
|
+
createdAt?: boolean
|
|
481
|
+
updatedAt?: boolean
|
|
482
|
+
description?: boolean
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
export type PermissionKeysOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "resource" | "action" | "createdAt" | "updatedAt" | "description", ExtArgs["result"]["permissionKeys"]>
|
|
486
|
+
export type PermissionKeysInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
487
|
+
RoleHasPermissions?: boolean | Prisma.PermissionKeys$RoleHasPermissionsArgs<ExtArgs>
|
|
488
|
+
_count?: boolean | Prisma.PermissionKeysCountOutputTypeDefaultArgs<ExtArgs>
|
|
489
|
+
}
|
|
490
|
+
export type PermissionKeysIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
|
|
491
|
+
export type PermissionKeysIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
|
|
492
|
+
|
|
493
|
+
export type $PermissionKeysPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
494
|
+
name: "PermissionKeys"
|
|
495
|
+
objects: {
|
|
496
|
+
RoleHasPermissions: Prisma.$RoleHasPermissionsPayload<ExtArgs>[]
|
|
497
|
+
}
|
|
498
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
499
|
+
id: string
|
|
500
|
+
resource: string | null
|
|
501
|
+
action: string | null
|
|
502
|
+
createdAt: Date
|
|
503
|
+
updatedAt: Date
|
|
504
|
+
description: string | null
|
|
505
|
+
}, ExtArgs["result"]["permissionKeys"]>
|
|
506
|
+
composites: {}
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
export type PermissionKeysGetPayload<S extends boolean | null | undefined | PermissionKeysDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$PermissionKeysPayload, S>
|
|
510
|
+
|
|
511
|
+
export type PermissionKeysCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
512
|
+
Omit<PermissionKeysFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
513
|
+
select?: PermissionKeysCountAggregateInputType | true
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
export interface PermissionKeysDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
517
|
+
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['PermissionKeys'], meta: { name: 'PermissionKeys' } }
|
|
518
|
+
/**
|
|
519
|
+
* Find zero or one PermissionKeys that matches the filter.
|
|
520
|
+
* @param {PermissionKeysFindUniqueArgs} args - Arguments to find a PermissionKeys
|
|
521
|
+
* @example
|
|
522
|
+
* // Get one PermissionKeys
|
|
523
|
+
* const permissionKeys = await prisma.permissionKeys.findUnique({
|
|
524
|
+
* where: {
|
|
525
|
+
* // ... provide filter here
|
|
526
|
+
* }
|
|
527
|
+
* })
|
|
528
|
+
*/
|
|
529
|
+
findUnique<T extends PermissionKeysFindUniqueArgs>(args: Prisma.SelectSubset<T, PermissionKeysFindUniqueArgs<ExtArgs>>): Prisma.Prisma__PermissionKeysClient<runtime.Types.Result.GetResult<Prisma.$PermissionKeysPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* Find one PermissionKeys that matches the filter or throw an error with `error.code='P2025'`
|
|
533
|
+
* if no matches were found.
|
|
534
|
+
* @param {PermissionKeysFindUniqueOrThrowArgs} args - Arguments to find a PermissionKeys
|
|
535
|
+
* @example
|
|
536
|
+
* // Get one PermissionKeys
|
|
537
|
+
* const permissionKeys = await prisma.permissionKeys.findUniqueOrThrow({
|
|
538
|
+
* where: {
|
|
539
|
+
* // ... provide filter here
|
|
540
|
+
* }
|
|
541
|
+
* })
|
|
542
|
+
*/
|
|
543
|
+
findUniqueOrThrow<T extends PermissionKeysFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, PermissionKeysFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__PermissionKeysClient<runtime.Types.Result.GetResult<Prisma.$PermissionKeysPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* Find the first PermissionKeys that matches the filter.
|
|
547
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
548
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
549
|
+
* @param {PermissionKeysFindFirstArgs} args - Arguments to find a PermissionKeys
|
|
550
|
+
* @example
|
|
551
|
+
* // Get one PermissionKeys
|
|
552
|
+
* const permissionKeys = await prisma.permissionKeys.findFirst({
|
|
553
|
+
* where: {
|
|
554
|
+
* // ... provide filter here
|
|
555
|
+
* }
|
|
556
|
+
* })
|
|
557
|
+
*/
|
|
558
|
+
findFirst<T extends PermissionKeysFindFirstArgs>(args?: Prisma.SelectSubset<T, PermissionKeysFindFirstArgs<ExtArgs>>): Prisma.Prisma__PermissionKeysClient<runtime.Types.Result.GetResult<Prisma.$PermissionKeysPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* Find the first PermissionKeys that matches the filter or
|
|
562
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
563
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
564
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
565
|
+
* @param {PermissionKeysFindFirstOrThrowArgs} args - Arguments to find a PermissionKeys
|
|
566
|
+
* @example
|
|
567
|
+
* // Get one PermissionKeys
|
|
568
|
+
* const permissionKeys = await prisma.permissionKeys.findFirstOrThrow({
|
|
569
|
+
* where: {
|
|
570
|
+
* // ... provide filter here
|
|
571
|
+
* }
|
|
572
|
+
* })
|
|
573
|
+
*/
|
|
574
|
+
findFirstOrThrow<T extends PermissionKeysFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, PermissionKeysFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__PermissionKeysClient<runtime.Types.Result.GetResult<Prisma.$PermissionKeysPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
575
|
+
|
|
576
|
+
/**
|
|
577
|
+
* Find zero or more PermissionKeys that matches the filter.
|
|
578
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
579
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
580
|
+
* @param {PermissionKeysFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
581
|
+
* @example
|
|
582
|
+
* // Get all PermissionKeys
|
|
583
|
+
* const permissionKeys = await prisma.permissionKeys.findMany()
|
|
584
|
+
*
|
|
585
|
+
* // Get first 10 PermissionKeys
|
|
586
|
+
* const permissionKeys = await prisma.permissionKeys.findMany({ take: 10 })
|
|
587
|
+
*
|
|
588
|
+
* // Only select the `id`
|
|
589
|
+
* const permissionKeysWithIdOnly = await prisma.permissionKeys.findMany({ select: { id: true } })
|
|
590
|
+
*
|
|
591
|
+
*/
|
|
592
|
+
findMany<T extends PermissionKeysFindManyArgs>(args?: Prisma.SelectSubset<T, PermissionKeysFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PermissionKeysPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
593
|
+
|
|
594
|
+
/**
|
|
595
|
+
* Create a PermissionKeys.
|
|
596
|
+
* @param {PermissionKeysCreateArgs} args - Arguments to create a PermissionKeys.
|
|
597
|
+
* @example
|
|
598
|
+
* // Create one PermissionKeys
|
|
599
|
+
* const PermissionKeys = await prisma.permissionKeys.create({
|
|
600
|
+
* data: {
|
|
601
|
+
* // ... data to create a PermissionKeys
|
|
602
|
+
* }
|
|
603
|
+
* })
|
|
604
|
+
*
|
|
605
|
+
*/
|
|
606
|
+
create<T extends PermissionKeysCreateArgs>(args: Prisma.SelectSubset<T, PermissionKeysCreateArgs<ExtArgs>>): Prisma.Prisma__PermissionKeysClient<runtime.Types.Result.GetResult<Prisma.$PermissionKeysPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
607
|
+
|
|
608
|
+
/**
|
|
609
|
+
* Create many PermissionKeys.
|
|
610
|
+
* @param {PermissionKeysCreateManyArgs} args - Arguments to create many PermissionKeys.
|
|
611
|
+
* @example
|
|
612
|
+
* // Create many PermissionKeys
|
|
613
|
+
* const permissionKeys = await prisma.permissionKeys.createMany({
|
|
614
|
+
* data: [
|
|
615
|
+
* // ... provide data here
|
|
616
|
+
* ]
|
|
617
|
+
* })
|
|
618
|
+
*
|
|
619
|
+
*/
|
|
620
|
+
createMany<T extends PermissionKeysCreateManyArgs>(args?: Prisma.SelectSubset<T, PermissionKeysCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
621
|
+
|
|
622
|
+
/**
|
|
623
|
+
* Create many PermissionKeys and returns the data saved in the database.
|
|
624
|
+
* @param {PermissionKeysCreateManyAndReturnArgs} args - Arguments to create many PermissionKeys.
|
|
625
|
+
* @example
|
|
626
|
+
* // Create many PermissionKeys
|
|
627
|
+
* const permissionKeys = await prisma.permissionKeys.createManyAndReturn({
|
|
628
|
+
* data: [
|
|
629
|
+
* // ... provide data here
|
|
630
|
+
* ]
|
|
631
|
+
* })
|
|
632
|
+
*
|
|
633
|
+
* // Create many PermissionKeys and only return the `id`
|
|
634
|
+
* const permissionKeysWithIdOnly = await prisma.permissionKeys.createManyAndReturn({
|
|
635
|
+
* select: { id: true },
|
|
636
|
+
* data: [
|
|
637
|
+
* // ... provide data here
|
|
638
|
+
* ]
|
|
639
|
+
* })
|
|
640
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
641
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
642
|
+
*
|
|
643
|
+
*/
|
|
644
|
+
createManyAndReturn<T extends PermissionKeysCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, PermissionKeysCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PermissionKeysPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
645
|
+
|
|
646
|
+
/**
|
|
647
|
+
* Delete a PermissionKeys.
|
|
648
|
+
* @param {PermissionKeysDeleteArgs} args - Arguments to delete one PermissionKeys.
|
|
649
|
+
* @example
|
|
650
|
+
* // Delete one PermissionKeys
|
|
651
|
+
* const PermissionKeys = await prisma.permissionKeys.delete({
|
|
652
|
+
* where: {
|
|
653
|
+
* // ... filter to delete one PermissionKeys
|
|
654
|
+
* }
|
|
655
|
+
* })
|
|
656
|
+
*
|
|
657
|
+
*/
|
|
658
|
+
delete<T extends PermissionKeysDeleteArgs>(args: Prisma.SelectSubset<T, PermissionKeysDeleteArgs<ExtArgs>>): Prisma.Prisma__PermissionKeysClient<runtime.Types.Result.GetResult<Prisma.$PermissionKeysPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
659
|
+
|
|
660
|
+
/**
|
|
661
|
+
* Update one PermissionKeys.
|
|
662
|
+
* @param {PermissionKeysUpdateArgs} args - Arguments to update one PermissionKeys.
|
|
663
|
+
* @example
|
|
664
|
+
* // Update one PermissionKeys
|
|
665
|
+
* const permissionKeys = await prisma.permissionKeys.update({
|
|
666
|
+
* where: {
|
|
667
|
+
* // ... provide filter here
|
|
668
|
+
* },
|
|
669
|
+
* data: {
|
|
670
|
+
* // ... provide data here
|
|
671
|
+
* }
|
|
672
|
+
* })
|
|
673
|
+
*
|
|
674
|
+
*/
|
|
675
|
+
update<T extends PermissionKeysUpdateArgs>(args: Prisma.SelectSubset<T, PermissionKeysUpdateArgs<ExtArgs>>): Prisma.Prisma__PermissionKeysClient<runtime.Types.Result.GetResult<Prisma.$PermissionKeysPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
676
|
+
|
|
677
|
+
/**
|
|
678
|
+
* Delete zero or more PermissionKeys.
|
|
679
|
+
* @param {PermissionKeysDeleteManyArgs} args - Arguments to filter PermissionKeys to delete.
|
|
680
|
+
* @example
|
|
681
|
+
* // Delete a few PermissionKeys
|
|
682
|
+
* const { count } = await prisma.permissionKeys.deleteMany({
|
|
683
|
+
* where: {
|
|
684
|
+
* // ... provide filter here
|
|
685
|
+
* }
|
|
686
|
+
* })
|
|
687
|
+
*
|
|
688
|
+
*/
|
|
689
|
+
deleteMany<T extends PermissionKeysDeleteManyArgs>(args?: Prisma.SelectSubset<T, PermissionKeysDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
690
|
+
|
|
691
|
+
/**
|
|
692
|
+
* Update zero or more PermissionKeys.
|
|
693
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
694
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
695
|
+
* @param {PermissionKeysUpdateManyArgs} args - Arguments to update one or more rows.
|
|
696
|
+
* @example
|
|
697
|
+
* // Update many PermissionKeys
|
|
698
|
+
* const permissionKeys = await prisma.permissionKeys.updateMany({
|
|
699
|
+
* where: {
|
|
700
|
+
* // ... provide filter here
|
|
701
|
+
* },
|
|
702
|
+
* data: {
|
|
703
|
+
* // ... provide data here
|
|
704
|
+
* }
|
|
705
|
+
* })
|
|
706
|
+
*
|
|
707
|
+
*/
|
|
708
|
+
updateMany<T extends PermissionKeysUpdateManyArgs>(args: Prisma.SelectSubset<T, PermissionKeysUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
709
|
+
|
|
710
|
+
/**
|
|
711
|
+
* Update zero or more PermissionKeys and returns the data updated in the database.
|
|
712
|
+
* @param {PermissionKeysUpdateManyAndReturnArgs} args - Arguments to update many PermissionKeys.
|
|
713
|
+
* @example
|
|
714
|
+
* // Update many PermissionKeys
|
|
715
|
+
* const permissionKeys = await prisma.permissionKeys.updateManyAndReturn({
|
|
716
|
+
* where: {
|
|
717
|
+
* // ... provide filter here
|
|
718
|
+
* },
|
|
719
|
+
* data: [
|
|
720
|
+
* // ... provide data here
|
|
721
|
+
* ]
|
|
722
|
+
* })
|
|
723
|
+
*
|
|
724
|
+
* // Update zero or more PermissionKeys and only return the `id`
|
|
725
|
+
* const permissionKeysWithIdOnly = await prisma.permissionKeys.updateManyAndReturn({
|
|
726
|
+
* select: { id: true },
|
|
727
|
+
* where: {
|
|
728
|
+
* // ... provide filter here
|
|
729
|
+
* },
|
|
730
|
+
* data: [
|
|
731
|
+
* // ... provide data here
|
|
732
|
+
* ]
|
|
733
|
+
* })
|
|
734
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
735
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
736
|
+
*
|
|
737
|
+
*/
|
|
738
|
+
updateManyAndReturn<T extends PermissionKeysUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, PermissionKeysUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PermissionKeysPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
739
|
+
|
|
740
|
+
/**
|
|
741
|
+
* Create or update one PermissionKeys.
|
|
742
|
+
* @param {PermissionKeysUpsertArgs} args - Arguments to update or create a PermissionKeys.
|
|
743
|
+
* @example
|
|
744
|
+
* // Update or create a PermissionKeys
|
|
745
|
+
* const permissionKeys = await prisma.permissionKeys.upsert({
|
|
746
|
+
* create: {
|
|
747
|
+
* // ... data to create a PermissionKeys
|
|
748
|
+
* },
|
|
749
|
+
* update: {
|
|
750
|
+
* // ... in case it already exists, update
|
|
751
|
+
* },
|
|
752
|
+
* where: {
|
|
753
|
+
* // ... the filter for the PermissionKeys we want to update
|
|
754
|
+
* }
|
|
755
|
+
* })
|
|
756
|
+
*/
|
|
757
|
+
upsert<T extends PermissionKeysUpsertArgs>(args: Prisma.SelectSubset<T, PermissionKeysUpsertArgs<ExtArgs>>): Prisma.Prisma__PermissionKeysClient<runtime.Types.Result.GetResult<Prisma.$PermissionKeysPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
758
|
+
|
|
759
|
+
|
|
760
|
+
/**
|
|
761
|
+
* Count the number of PermissionKeys.
|
|
762
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
763
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
764
|
+
* @param {PermissionKeysCountArgs} args - Arguments to filter PermissionKeys to count.
|
|
765
|
+
* @example
|
|
766
|
+
* // Count the number of PermissionKeys
|
|
767
|
+
* const count = await prisma.permissionKeys.count({
|
|
768
|
+
* where: {
|
|
769
|
+
* // ... the filter for the PermissionKeys we want to count
|
|
770
|
+
* }
|
|
771
|
+
* })
|
|
772
|
+
**/
|
|
773
|
+
count<T extends PermissionKeysCountArgs>(
|
|
774
|
+
args?: Prisma.Subset<T, PermissionKeysCountArgs>,
|
|
775
|
+
): Prisma.PrismaPromise<
|
|
776
|
+
T extends runtime.Types.Utils.Record<'select', any>
|
|
777
|
+
? T['select'] extends true
|
|
778
|
+
? number
|
|
779
|
+
: Prisma.GetScalarType<T['select'], PermissionKeysCountAggregateOutputType>
|
|
780
|
+
: number
|
|
781
|
+
>
|
|
782
|
+
|
|
783
|
+
/**
|
|
784
|
+
* Allows you to perform aggregations operations on a PermissionKeys.
|
|
785
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
786
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
787
|
+
* @param {PermissionKeysAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
788
|
+
* @example
|
|
789
|
+
* // Ordered by age ascending
|
|
790
|
+
* // Where email contains prisma.io
|
|
791
|
+
* // Limited to the 10 users
|
|
792
|
+
* const aggregations = await prisma.user.aggregate({
|
|
793
|
+
* _avg: {
|
|
794
|
+
* age: true,
|
|
795
|
+
* },
|
|
796
|
+
* where: {
|
|
797
|
+
* email: {
|
|
798
|
+
* contains: "prisma.io",
|
|
799
|
+
* },
|
|
800
|
+
* },
|
|
801
|
+
* orderBy: {
|
|
802
|
+
* age: "asc",
|
|
803
|
+
* },
|
|
804
|
+
* take: 10,
|
|
805
|
+
* })
|
|
806
|
+
**/
|
|
807
|
+
aggregate<T extends PermissionKeysAggregateArgs>(args: Prisma.Subset<T, PermissionKeysAggregateArgs>): Prisma.PrismaPromise<GetPermissionKeysAggregateType<T>>
|
|
808
|
+
|
|
809
|
+
/**
|
|
810
|
+
* Group by PermissionKeys.
|
|
811
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
812
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
813
|
+
* @param {PermissionKeysGroupByArgs} args - Group by arguments.
|
|
814
|
+
* @example
|
|
815
|
+
* // Group by city, order by createdAt, get count
|
|
816
|
+
* const result = await prisma.user.groupBy({
|
|
817
|
+
* by: ['city', 'createdAt'],
|
|
818
|
+
* orderBy: {
|
|
819
|
+
* createdAt: true
|
|
820
|
+
* },
|
|
821
|
+
* _count: {
|
|
822
|
+
* _all: true
|
|
823
|
+
* },
|
|
824
|
+
* })
|
|
825
|
+
*
|
|
826
|
+
**/
|
|
827
|
+
groupBy<
|
|
828
|
+
T extends PermissionKeysGroupByArgs,
|
|
829
|
+
HasSelectOrTake extends Prisma.Or<
|
|
830
|
+
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
831
|
+
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
832
|
+
>,
|
|
833
|
+
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
834
|
+
? { orderBy: PermissionKeysGroupByArgs['orderBy'] }
|
|
835
|
+
: { orderBy?: PermissionKeysGroupByArgs['orderBy'] },
|
|
836
|
+
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
837
|
+
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
838
|
+
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
839
|
+
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
840
|
+
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
841
|
+
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
842
|
+
InputErrors extends ByEmpty extends Prisma.True
|
|
843
|
+
? `Error: "by" must not be empty.`
|
|
844
|
+
: HavingValid extends Prisma.False
|
|
845
|
+
? {
|
|
846
|
+
[P in HavingFields]: P extends ByFields
|
|
847
|
+
? never
|
|
848
|
+
: P extends string
|
|
849
|
+
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
850
|
+
: [
|
|
851
|
+
Error,
|
|
852
|
+
'Field ',
|
|
853
|
+
P,
|
|
854
|
+
` in "having" needs to be provided in "by"`,
|
|
855
|
+
]
|
|
856
|
+
}[HavingFields]
|
|
857
|
+
: 'take' extends Prisma.Keys<T>
|
|
858
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
859
|
+
? ByValid extends Prisma.True
|
|
860
|
+
? {}
|
|
861
|
+
: {
|
|
862
|
+
[P in OrderFields]: P extends ByFields
|
|
863
|
+
? never
|
|
864
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
865
|
+
}[OrderFields]
|
|
866
|
+
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
867
|
+
: 'skip' extends Prisma.Keys<T>
|
|
868
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
869
|
+
? ByValid extends Prisma.True
|
|
870
|
+
? {}
|
|
871
|
+
: {
|
|
872
|
+
[P in OrderFields]: P extends ByFields
|
|
873
|
+
? never
|
|
874
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
875
|
+
}[OrderFields]
|
|
876
|
+
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
877
|
+
: ByValid extends Prisma.True
|
|
878
|
+
? {}
|
|
879
|
+
: {
|
|
880
|
+
[P in OrderFields]: P extends ByFields
|
|
881
|
+
? never
|
|
882
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
883
|
+
}[OrderFields]
|
|
884
|
+
>(args: Prisma.SubsetIntersection<T, PermissionKeysGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPermissionKeysGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
885
|
+
/**
|
|
886
|
+
* Fields of the PermissionKeys model
|
|
887
|
+
*/
|
|
888
|
+
readonly fields: PermissionKeysFieldRefs;
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
/**
|
|
892
|
+
* The delegate class that acts as a "Promise-like" for PermissionKeys.
|
|
893
|
+
* Why is this prefixed with `Prisma__`?
|
|
894
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
895
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
896
|
+
*/
|
|
897
|
+
export interface Prisma__PermissionKeysClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
898
|
+
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
899
|
+
RoleHasPermissions<T extends Prisma.PermissionKeys$RoleHasPermissionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PermissionKeys$RoleHasPermissionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RoleHasPermissionsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
900
|
+
/**
|
|
901
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
902
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
903
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
904
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
905
|
+
*/
|
|
906
|
+
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>
|
|
907
|
+
/**
|
|
908
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
909
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
910
|
+
* @returns A Promise for the completion of the callback.
|
|
911
|
+
*/
|
|
912
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
913
|
+
/**
|
|
914
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
915
|
+
* resolved value cannot be modified from the callback.
|
|
916
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
917
|
+
* @returns A Promise for the completion of the callback.
|
|
918
|
+
*/
|
|
919
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
|
|
923
|
+
|
|
924
|
+
|
|
925
|
+
/**
|
|
926
|
+
* Fields of the PermissionKeys model
|
|
927
|
+
*/
|
|
928
|
+
export interface PermissionKeysFieldRefs {
|
|
929
|
+
readonly id: Prisma.FieldRef<"PermissionKeys", 'String'>
|
|
930
|
+
readonly resource: Prisma.FieldRef<"PermissionKeys", 'String'>
|
|
931
|
+
readonly action: Prisma.FieldRef<"PermissionKeys", 'String'>
|
|
932
|
+
readonly createdAt: Prisma.FieldRef<"PermissionKeys", 'DateTime'>
|
|
933
|
+
readonly updatedAt: Prisma.FieldRef<"PermissionKeys", 'DateTime'>
|
|
934
|
+
readonly description: Prisma.FieldRef<"PermissionKeys", 'String'>
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
|
|
938
|
+
// Custom InputTypes
|
|
939
|
+
/**
|
|
940
|
+
* PermissionKeys findUnique
|
|
941
|
+
*/
|
|
942
|
+
export type PermissionKeysFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
943
|
+
/**
|
|
944
|
+
* Select specific fields to fetch from the PermissionKeys
|
|
945
|
+
*/
|
|
946
|
+
select?: Prisma.PermissionKeysSelect<ExtArgs> | null
|
|
947
|
+
/**
|
|
948
|
+
* Omit specific fields from the PermissionKeys
|
|
949
|
+
*/
|
|
950
|
+
omit?: Prisma.PermissionKeysOmit<ExtArgs> | null
|
|
951
|
+
/**
|
|
952
|
+
* Choose, which related nodes to fetch as well
|
|
953
|
+
*/
|
|
954
|
+
include?: Prisma.PermissionKeysInclude<ExtArgs> | null
|
|
955
|
+
/**
|
|
956
|
+
* Filter, which PermissionKeys to fetch.
|
|
957
|
+
*/
|
|
958
|
+
where: Prisma.PermissionKeysWhereUniqueInput
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
/**
|
|
962
|
+
* PermissionKeys findUniqueOrThrow
|
|
963
|
+
*/
|
|
964
|
+
export type PermissionKeysFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
965
|
+
/**
|
|
966
|
+
* Select specific fields to fetch from the PermissionKeys
|
|
967
|
+
*/
|
|
968
|
+
select?: Prisma.PermissionKeysSelect<ExtArgs> | null
|
|
969
|
+
/**
|
|
970
|
+
* Omit specific fields from the PermissionKeys
|
|
971
|
+
*/
|
|
972
|
+
omit?: Prisma.PermissionKeysOmit<ExtArgs> | null
|
|
973
|
+
/**
|
|
974
|
+
* Choose, which related nodes to fetch as well
|
|
975
|
+
*/
|
|
976
|
+
include?: Prisma.PermissionKeysInclude<ExtArgs> | null
|
|
977
|
+
/**
|
|
978
|
+
* Filter, which PermissionKeys to fetch.
|
|
979
|
+
*/
|
|
980
|
+
where: Prisma.PermissionKeysWhereUniqueInput
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
/**
|
|
984
|
+
* PermissionKeys findFirst
|
|
985
|
+
*/
|
|
986
|
+
export type PermissionKeysFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
987
|
+
/**
|
|
988
|
+
* Select specific fields to fetch from the PermissionKeys
|
|
989
|
+
*/
|
|
990
|
+
select?: Prisma.PermissionKeysSelect<ExtArgs> | null
|
|
991
|
+
/**
|
|
992
|
+
* Omit specific fields from the PermissionKeys
|
|
993
|
+
*/
|
|
994
|
+
omit?: Prisma.PermissionKeysOmit<ExtArgs> | null
|
|
995
|
+
/**
|
|
996
|
+
* Choose, which related nodes to fetch as well
|
|
997
|
+
*/
|
|
998
|
+
include?: Prisma.PermissionKeysInclude<ExtArgs> | null
|
|
999
|
+
/**
|
|
1000
|
+
* Filter, which PermissionKeys to fetch.
|
|
1001
|
+
*/
|
|
1002
|
+
where?: Prisma.PermissionKeysWhereInput
|
|
1003
|
+
/**
|
|
1004
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1005
|
+
*
|
|
1006
|
+
* Determine the order of PermissionKeys to fetch.
|
|
1007
|
+
*/
|
|
1008
|
+
orderBy?: Prisma.PermissionKeysOrderByWithRelationInput | Prisma.PermissionKeysOrderByWithRelationInput[]
|
|
1009
|
+
/**
|
|
1010
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1011
|
+
*
|
|
1012
|
+
* Sets the position for searching for PermissionKeys.
|
|
1013
|
+
*/
|
|
1014
|
+
cursor?: Prisma.PermissionKeysWhereUniqueInput
|
|
1015
|
+
/**
|
|
1016
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1017
|
+
*
|
|
1018
|
+
* Take `±n` PermissionKeys from the position of the cursor.
|
|
1019
|
+
*/
|
|
1020
|
+
take?: number
|
|
1021
|
+
/**
|
|
1022
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1023
|
+
*
|
|
1024
|
+
* Skip the first `n` PermissionKeys.
|
|
1025
|
+
*/
|
|
1026
|
+
skip?: number
|
|
1027
|
+
/**
|
|
1028
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1029
|
+
*
|
|
1030
|
+
* Filter by unique combinations of PermissionKeys.
|
|
1031
|
+
*/
|
|
1032
|
+
distinct?: Prisma.PermissionKeysScalarFieldEnum | Prisma.PermissionKeysScalarFieldEnum[]
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
/**
|
|
1036
|
+
* PermissionKeys findFirstOrThrow
|
|
1037
|
+
*/
|
|
1038
|
+
export type PermissionKeysFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1039
|
+
/**
|
|
1040
|
+
* Select specific fields to fetch from the PermissionKeys
|
|
1041
|
+
*/
|
|
1042
|
+
select?: Prisma.PermissionKeysSelect<ExtArgs> | null
|
|
1043
|
+
/**
|
|
1044
|
+
* Omit specific fields from the PermissionKeys
|
|
1045
|
+
*/
|
|
1046
|
+
omit?: Prisma.PermissionKeysOmit<ExtArgs> | null
|
|
1047
|
+
/**
|
|
1048
|
+
* Choose, which related nodes to fetch as well
|
|
1049
|
+
*/
|
|
1050
|
+
include?: Prisma.PermissionKeysInclude<ExtArgs> | null
|
|
1051
|
+
/**
|
|
1052
|
+
* Filter, which PermissionKeys to fetch.
|
|
1053
|
+
*/
|
|
1054
|
+
where?: Prisma.PermissionKeysWhereInput
|
|
1055
|
+
/**
|
|
1056
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1057
|
+
*
|
|
1058
|
+
* Determine the order of PermissionKeys to fetch.
|
|
1059
|
+
*/
|
|
1060
|
+
orderBy?: Prisma.PermissionKeysOrderByWithRelationInput | Prisma.PermissionKeysOrderByWithRelationInput[]
|
|
1061
|
+
/**
|
|
1062
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1063
|
+
*
|
|
1064
|
+
* Sets the position for searching for PermissionKeys.
|
|
1065
|
+
*/
|
|
1066
|
+
cursor?: Prisma.PermissionKeysWhereUniqueInput
|
|
1067
|
+
/**
|
|
1068
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1069
|
+
*
|
|
1070
|
+
* Take `±n` PermissionKeys from the position of the cursor.
|
|
1071
|
+
*/
|
|
1072
|
+
take?: number
|
|
1073
|
+
/**
|
|
1074
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1075
|
+
*
|
|
1076
|
+
* Skip the first `n` PermissionKeys.
|
|
1077
|
+
*/
|
|
1078
|
+
skip?: number
|
|
1079
|
+
/**
|
|
1080
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1081
|
+
*
|
|
1082
|
+
* Filter by unique combinations of PermissionKeys.
|
|
1083
|
+
*/
|
|
1084
|
+
distinct?: Prisma.PermissionKeysScalarFieldEnum | Prisma.PermissionKeysScalarFieldEnum[]
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
/**
|
|
1088
|
+
* PermissionKeys findMany
|
|
1089
|
+
*/
|
|
1090
|
+
export type PermissionKeysFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1091
|
+
/**
|
|
1092
|
+
* Select specific fields to fetch from the PermissionKeys
|
|
1093
|
+
*/
|
|
1094
|
+
select?: Prisma.PermissionKeysSelect<ExtArgs> | null
|
|
1095
|
+
/**
|
|
1096
|
+
* Omit specific fields from the PermissionKeys
|
|
1097
|
+
*/
|
|
1098
|
+
omit?: Prisma.PermissionKeysOmit<ExtArgs> | null
|
|
1099
|
+
/**
|
|
1100
|
+
* Choose, which related nodes to fetch as well
|
|
1101
|
+
*/
|
|
1102
|
+
include?: Prisma.PermissionKeysInclude<ExtArgs> | null
|
|
1103
|
+
/**
|
|
1104
|
+
* Filter, which PermissionKeys to fetch.
|
|
1105
|
+
*/
|
|
1106
|
+
where?: Prisma.PermissionKeysWhereInput
|
|
1107
|
+
/**
|
|
1108
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1109
|
+
*
|
|
1110
|
+
* Determine the order of PermissionKeys to fetch.
|
|
1111
|
+
*/
|
|
1112
|
+
orderBy?: Prisma.PermissionKeysOrderByWithRelationInput | Prisma.PermissionKeysOrderByWithRelationInput[]
|
|
1113
|
+
/**
|
|
1114
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1115
|
+
*
|
|
1116
|
+
* Sets the position for listing PermissionKeys.
|
|
1117
|
+
*/
|
|
1118
|
+
cursor?: Prisma.PermissionKeysWhereUniqueInput
|
|
1119
|
+
/**
|
|
1120
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1121
|
+
*
|
|
1122
|
+
* Take `±n` PermissionKeys from the position of the cursor.
|
|
1123
|
+
*/
|
|
1124
|
+
take?: number
|
|
1125
|
+
/**
|
|
1126
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1127
|
+
*
|
|
1128
|
+
* Skip the first `n` PermissionKeys.
|
|
1129
|
+
*/
|
|
1130
|
+
skip?: number
|
|
1131
|
+
distinct?: Prisma.PermissionKeysScalarFieldEnum | Prisma.PermissionKeysScalarFieldEnum[]
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
/**
|
|
1135
|
+
* PermissionKeys create
|
|
1136
|
+
*/
|
|
1137
|
+
export type PermissionKeysCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1138
|
+
/**
|
|
1139
|
+
* Select specific fields to fetch from the PermissionKeys
|
|
1140
|
+
*/
|
|
1141
|
+
select?: Prisma.PermissionKeysSelect<ExtArgs> | null
|
|
1142
|
+
/**
|
|
1143
|
+
* Omit specific fields from the PermissionKeys
|
|
1144
|
+
*/
|
|
1145
|
+
omit?: Prisma.PermissionKeysOmit<ExtArgs> | null
|
|
1146
|
+
/**
|
|
1147
|
+
* Choose, which related nodes to fetch as well
|
|
1148
|
+
*/
|
|
1149
|
+
include?: Prisma.PermissionKeysInclude<ExtArgs> | null
|
|
1150
|
+
/**
|
|
1151
|
+
* The data needed to create a PermissionKeys.
|
|
1152
|
+
*/
|
|
1153
|
+
data: Prisma.XOR<Prisma.PermissionKeysCreateInput, Prisma.PermissionKeysUncheckedCreateInput>
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
/**
|
|
1157
|
+
* PermissionKeys createMany
|
|
1158
|
+
*/
|
|
1159
|
+
export type PermissionKeysCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1160
|
+
/**
|
|
1161
|
+
* The data used to create many PermissionKeys.
|
|
1162
|
+
*/
|
|
1163
|
+
data: Prisma.PermissionKeysCreateManyInput | Prisma.PermissionKeysCreateManyInput[]
|
|
1164
|
+
skipDuplicates?: boolean
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
/**
|
|
1168
|
+
* PermissionKeys createManyAndReturn
|
|
1169
|
+
*/
|
|
1170
|
+
export type PermissionKeysCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1171
|
+
/**
|
|
1172
|
+
* Select specific fields to fetch from the PermissionKeys
|
|
1173
|
+
*/
|
|
1174
|
+
select?: Prisma.PermissionKeysSelectCreateManyAndReturn<ExtArgs> | null
|
|
1175
|
+
/**
|
|
1176
|
+
* Omit specific fields from the PermissionKeys
|
|
1177
|
+
*/
|
|
1178
|
+
omit?: Prisma.PermissionKeysOmit<ExtArgs> | null
|
|
1179
|
+
/**
|
|
1180
|
+
* The data used to create many PermissionKeys.
|
|
1181
|
+
*/
|
|
1182
|
+
data: Prisma.PermissionKeysCreateManyInput | Prisma.PermissionKeysCreateManyInput[]
|
|
1183
|
+
skipDuplicates?: boolean
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
/**
|
|
1187
|
+
* PermissionKeys update
|
|
1188
|
+
*/
|
|
1189
|
+
export type PermissionKeysUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1190
|
+
/**
|
|
1191
|
+
* Select specific fields to fetch from the PermissionKeys
|
|
1192
|
+
*/
|
|
1193
|
+
select?: Prisma.PermissionKeysSelect<ExtArgs> | null
|
|
1194
|
+
/**
|
|
1195
|
+
* Omit specific fields from the PermissionKeys
|
|
1196
|
+
*/
|
|
1197
|
+
omit?: Prisma.PermissionKeysOmit<ExtArgs> | null
|
|
1198
|
+
/**
|
|
1199
|
+
* Choose, which related nodes to fetch as well
|
|
1200
|
+
*/
|
|
1201
|
+
include?: Prisma.PermissionKeysInclude<ExtArgs> | null
|
|
1202
|
+
/**
|
|
1203
|
+
* The data needed to update a PermissionKeys.
|
|
1204
|
+
*/
|
|
1205
|
+
data: Prisma.XOR<Prisma.PermissionKeysUpdateInput, Prisma.PermissionKeysUncheckedUpdateInput>
|
|
1206
|
+
/**
|
|
1207
|
+
* Choose, which PermissionKeys to update.
|
|
1208
|
+
*/
|
|
1209
|
+
where: Prisma.PermissionKeysWhereUniqueInput
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1212
|
+
/**
|
|
1213
|
+
* PermissionKeys updateMany
|
|
1214
|
+
*/
|
|
1215
|
+
export type PermissionKeysUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1216
|
+
/**
|
|
1217
|
+
* The data used to update PermissionKeys.
|
|
1218
|
+
*/
|
|
1219
|
+
data: Prisma.XOR<Prisma.PermissionKeysUpdateManyMutationInput, Prisma.PermissionKeysUncheckedUpdateManyInput>
|
|
1220
|
+
/**
|
|
1221
|
+
* Filter which PermissionKeys to update
|
|
1222
|
+
*/
|
|
1223
|
+
where?: Prisma.PermissionKeysWhereInput
|
|
1224
|
+
/**
|
|
1225
|
+
* Limit how many PermissionKeys to update.
|
|
1226
|
+
*/
|
|
1227
|
+
limit?: number
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
/**
|
|
1231
|
+
* PermissionKeys updateManyAndReturn
|
|
1232
|
+
*/
|
|
1233
|
+
export type PermissionKeysUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1234
|
+
/**
|
|
1235
|
+
* Select specific fields to fetch from the PermissionKeys
|
|
1236
|
+
*/
|
|
1237
|
+
select?: Prisma.PermissionKeysSelectUpdateManyAndReturn<ExtArgs> | null
|
|
1238
|
+
/**
|
|
1239
|
+
* Omit specific fields from the PermissionKeys
|
|
1240
|
+
*/
|
|
1241
|
+
omit?: Prisma.PermissionKeysOmit<ExtArgs> | null
|
|
1242
|
+
/**
|
|
1243
|
+
* The data used to update PermissionKeys.
|
|
1244
|
+
*/
|
|
1245
|
+
data: Prisma.XOR<Prisma.PermissionKeysUpdateManyMutationInput, Prisma.PermissionKeysUncheckedUpdateManyInput>
|
|
1246
|
+
/**
|
|
1247
|
+
* Filter which PermissionKeys to update
|
|
1248
|
+
*/
|
|
1249
|
+
where?: Prisma.PermissionKeysWhereInput
|
|
1250
|
+
/**
|
|
1251
|
+
* Limit how many PermissionKeys to update.
|
|
1252
|
+
*/
|
|
1253
|
+
limit?: number
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
/**
|
|
1257
|
+
* PermissionKeys upsert
|
|
1258
|
+
*/
|
|
1259
|
+
export type PermissionKeysUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1260
|
+
/**
|
|
1261
|
+
* Select specific fields to fetch from the PermissionKeys
|
|
1262
|
+
*/
|
|
1263
|
+
select?: Prisma.PermissionKeysSelect<ExtArgs> | null
|
|
1264
|
+
/**
|
|
1265
|
+
* Omit specific fields from the PermissionKeys
|
|
1266
|
+
*/
|
|
1267
|
+
omit?: Prisma.PermissionKeysOmit<ExtArgs> | null
|
|
1268
|
+
/**
|
|
1269
|
+
* Choose, which related nodes to fetch as well
|
|
1270
|
+
*/
|
|
1271
|
+
include?: Prisma.PermissionKeysInclude<ExtArgs> | null
|
|
1272
|
+
/**
|
|
1273
|
+
* The filter to search for the PermissionKeys to update in case it exists.
|
|
1274
|
+
*/
|
|
1275
|
+
where: Prisma.PermissionKeysWhereUniqueInput
|
|
1276
|
+
/**
|
|
1277
|
+
* In case the PermissionKeys found by the `where` argument doesn't exist, create a new PermissionKeys with this data.
|
|
1278
|
+
*/
|
|
1279
|
+
create: Prisma.XOR<Prisma.PermissionKeysCreateInput, Prisma.PermissionKeysUncheckedCreateInput>
|
|
1280
|
+
/**
|
|
1281
|
+
* In case the PermissionKeys was found with the provided `where` argument, update it with this data.
|
|
1282
|
+
*/
|
|
1283
|
+
update: Prisma.XOR<Prisma.PermissionKeysUpdateInput, Prisma.PermissionKeysUncheckedUpdateInput>
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
/**
|
|
1287
|
+
* PermissionKeys delete
|
|
1288
|
+
*/
|
|
1289
|
+
export type PermissionKeysDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1290
|
+
/**
|
|
1291
|
+
* Select specific fields to fetch from the PermissionKeys
|
|
1292
|
+
*/
|
|
1293
|
+
select?: Prisma.PermissionKeysSelect<ExtArgs> | null
|
|
1294
|
+
/**
|
|
1295
|
+
* Omit specific fields from the PermissionKeys
|
|
1296
|
+
*/
|
|
1297
|
+
omit?: Prisma.PermissionKeysOmit<ExtArgs> | null
|
|
1298
|
+
/**
|
|
1299
|
+
* Choose, which related nodes to fetch as well
|
|
1300
|
+
*/
|
|
1301
|
+
include?: Prisma.PermissionKeysInclude<ExtArgs> | null
|
|
1302
|
+
/**
|
|
1303
|
+
* Filter which PermissionKeys to delete.
|
|
1304
|
+
*/
|
|
1305
|
+
where: Prisma.PermissionKeysWhereUniqueInput
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1308
|
+
/**
|
|
1309
|
+
* PermissionKeys deleteMany
|
|
1310
|
+
*/
|
|
1311
|
+
export type PermissionKeysDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1312
|
+
/**
|
|
1313
|
+
* Filter which PermissionKeys to delete
|
|
1314
|
+
*/
|
|
1315
|
+
where?: Prisma.PermissionKeysWhereInput
|
|
1316
|
+
/**
|
|
1317
|
+
* Limit how many PermissionKeys to delete.
|
|
1318
|
+
*/
|
|
1319
|
+
limit?: number
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1322
|
+
/**
|
|
1323
|
+
* PermissionKeys.RoleHasPermissions
|
|
1324
|
+
*/
|
|
1325
|
+
export type PermissionKeys$RoleHasPermissionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1326
|
+
/**
|
|
1327
|
+
* Select specific fields to fetch from the RoleHasPermissions
|
|
1328
|
+
*/
|
|
1329
|
+
select?: Prisma.RoleHasPermissionsSelect<ExtArgs> | null
|
|
1330
|
+
/**
|
|
1331
|
+
* Omit specific fields from the RoleHasPermissions
|
|
1332
|
+
*/
|
|
1333
|
+
omit?: Prisma.RoleHasPermissionsOmit<ExtArgs> | null
|
|
1334
|
+
/**
|
|
1335
|
+
* Choose, which related nodes to fetch as well
|
|
1336
|
+
*/
|
|
1337
|
+
include?: Prisma.RoleHasPermissionsInclude<ExtArgs> | null
|
|
1338
|
+
where?: Prisma.RoleHasPermissionsWhereInput
|
|
1339
|
+
orderBy?: Prisma.RoleHasPermissionsOrderByWithRelationInput | Prisma.RoleHasPermissionsOrderByWithRelationInput[]
|
|
1340
|
+
cursor?: Prisma.RoleHasPermissionsWhereUniqueInput
|
|
1341
|
+
take?: number
|
|
1342
|
+
skip?: number
|
|
1343
|
+
distinct?: Prisma.RoleHasPermissionsScalarFieldEnum | Prisma.RoleHasPermissionsScalarFieldEnum[]
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
/**
|
|
1347
|
+
* PermissionKeys without action
|
|
1348
|
+
*/
|
|
1349
|
+
export type PermissionKeysDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1350
|
+
/**
|
|
1351
|
+
* Select specific fields to fetch from the PermissionKeys
|
|
1352
|
+
*/
|
|
1353
|
+
select?: Prisma.PermissionKeysSelect<ExtArgs> | null
|
|
1354
|
+
/**
|
|
1355
|
+
* Omit specific fields from the PermissionKeys
|
|
1356
|
+
*/
|
|
1357
|
+
omit?: Prisma.PermissionKeysOmit<ExtArgs> | null
|
|
1358
|
+
/**
|
|
1359
|
+
* Choose, which related nodes to fetch as well
|
|
1360
|
+
*/
|
|
1361
|
+
include?: Prisma.PermissionKeysInclude<ExtArgs> | null
|
|
1362
|
+
}
|