@allbluecn/database 0.3.14 → 0.4.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/desktop-init.ts +128 -0
- package/generated/browser.ts +494 -0
- package/generated/client.ts +518 -0
- package/generated/commonInputTypes.ts +1056 -0
- package/generated/enums.ts +93 -0
- package/generated/internal/class.ts +1144 -0
- package/generated/internal/prismaNamespace.ts +9603 -0
- package/generated/internal/prismaNamespaceBrowser.ts +1695 -0
- package/generated/models/Account.ts +1648 -0
- package/generated/models/AgentConversation.ts +1651 -0
- package/generated/models/AgentMessage.ts +1409 -0
- package/generated/models/AiProvider.ts +1607 -0
- package/generated/models/AiProviderConfig.ts +1514 -0
- package/generated/models/AiUsageLog.ts +1863 -0
- package/generated/models/AnyHubApp.ts +1911 -0
- package/generated/models/AnyHubMarketApp.ts +2008 -0
- package/generated/models/AnyHubPermission.ts +1422 -0
- package/generated/models/AnyHubRecommendation.ts +1870 -0
- package/generated/models/AnyHubRecommender.ts +1471 -0
- package/generated/models/Artboard.ts +1811 -0
- package/generated/models/ArtboardExport.ts +1548 -0
- package/generated/models/ArticleFavorite.ts +1352 -0
- package/generated/models/AuditLog.ts +1533 -0
- package/generated/models/Block.ts +1650 -0
- package/generated/models/BlockComponent.ts +1734 -0
- package/generated/models/BlockInstance.ts +2043 -0
- package/generated/models/BookmarkCategory.ts +1670 -0
- package/generated/models/ChatInterrupt.ts +1699 -0
- package/generated/models/ChatMessage.ts +1438 -0
- package/generated/models/ChatRun.ts +1632 -0
- package/generated/models/ChatThread.ts +2133 -0
- package/generated/models/Comment.ts +2206 -0
- package/generated/models/CommentIgnore.ts +1430 -0
- package/generated/models/CommentReaction.ts +1472 -0
- package/generated/models/ComplianceExport.ts +1345 -0
- package/generated/models/Component.ts +2345 -0
- package/generated/models/ComponentInstance.ts +2102 -0
- package/generated/models/ComponentTag.ts +1281 -0
- package/generated/models/CustomRole.ts +1560 -0
- package/generated/models/DesignProject.ts +1643 -0
- package/generated/models/DictionaryTerm.ts +1642 -0
- package/generated/models/GenerationRun.ts +1543 -0
- package/generated/models/IndustryCompliance.ts +1797 -0
- package/generated/models/InvitationCode.ts +1417 -0
- package/generated/models/InvitationUse.ts +1424 -0
- package/generated/models/Invoice.ts +1710 -0
- package/generated/models/KnowledgeBase.ts +1671 -0
- package/generated/models/KnowledgeDocument.ts +2458 -0
- package/generated/models/KnowledgeShareRecord.ts +1352 -0
- package/generated/models/Label.ts +1482 -0
- package/generated/models/LegalRegulation.ts +1873 -0
- package/generated/models/LicenseActivation.ts +1415 -0
- package/generated/models/LicenseKey.ts +1884 -0
- package/generated/models/LoginLog.ts +1450 -0
- package/generated/models/MonitoringErrorReport.ts +1299 -0
- package/generated/models/MonitoringHealthSnapshot.ts +1249 -0
- package/generated/models/MonitoringMetricsSnapshot.ts +1369 -0
- package/generated/models/MonitoringRequestLog.ts +1283 -0
- package/generated/models/PRD.ts +2805 -0
- package/generated/models/PRDPage.ts +2402 -0
- package/generated/models/PRDTag.ts +1430 -0
- package/generated/models/PRDVersion.ts +2121 -0
- package/generated/models/PageVersion.ts +1523 -0
- package/generated/models/PasswordResetToken.ts +1380 -0
- package/generated/models/Plan.ts +2069 -0
- package/generated/models/Project.ts +2148 -0
- package/generated/models/ProjectActivity.ts +1582 -0
- package/generated/models/ProjectMember.ts +1512 -0
- package/generated/models/ProviderEvent.ts +1227 -0
- package/generated/models/Reference.ts +1177 -0
- package/generated/models/Review.ts +1912 -0
- package/generated/models/ReviewComment.ts +1904 -0
- package/generated/models/RoleAssignment.ts +1430 -0
- package/generated/models/SequenceCounter.ts +1137 -0
- package/generated/models/Share.ts +1681 -0
- package/generated/models/ShareVersion.ts +1389 -0
- package/generated/models/SsoMapping.ts +1512 -0
- package/generated/models/SsoProvider.ts +1639 -0
- package/generated/models/Story.ts +5234 -0
- package/generated/models/StoryActivity.ts +1664 -0
- package/generated/models/StoryAttachment.ts +1467 -0
- package/generated/models/StoryComment.ts +1992 -0
- package/generated/models/StoryDependency.ts +1517 -0
- package/generated/models/StoryDocLink.ts +1430 -0
- package/generated/models/StoryFilterView.ts +1587 -0
- package/generated/models/StoryLabel.ts +1349 -0
- package/generated/models/StoryLink.ts +1415 -0
- package/generated/models/StoryPrdLink.ts +1430 -0
- package/generated/models/StoryReaction.ts +1472 -0
- package/generated/models/Subscription.ts +2147 -0
- package/generated/models/SystemSetting.ts +1217 -0
- package/generated/models/Tag.ts +1655 -0
- package/generated/models/TeamInvitation.ts +1526 -0
- package/generated/models/TeamMembership.ts +1436 -0
- package/generated/models/Template.ts +1391 -0
- package/generated/models/TemplateBlock.ts +1664 -0
- package/generated/models/ThirdPartyDependency.ts +1473 -0
- package/generated/models/UsageRecord.ts +1505 -0
- package/generated/models/User.ts +20998 -0
- package/generated/models/UserAgent.ts +1900 -0
- package/generated/models/UserSkill.ts +1456 -0
- package/generated/models/WebsiteBookmark.ts +2219 -0
- package/generated/models/Workspace.ts +2279 -0
- package/generated/models.ts +106 -0
- package/generated-sqlite/browser.ts +399 -0
- package/generated-sqlite/client.ts +423 -0
- package/generated-sqlite/commonInputTypes.ts +608 -0
- package/generated-sqlite/enums.ts +15 -0
- package/generated-sqlite/internal/class.ts +954 -0
- package/generated-sqlite/internal/prismaNamespace.ts +7716 -0
- package/generated-sqlite/internal/prismaNamespaceBrowser.ts +1415 -0
- package/generated-sqlite/models/AgentConversation.ts +1647 -0
- package/generated-sqlite/models/AgentMessage.ts +1406 -0
- package/generated-sqlite/models/AiProvider.ts +1605 -0
- package/generated-sqlite/models/AiProviderConfig.ts +1511 -0
- package/generated-sqlite/models/AiUsageLog.ts +1845 -0
- package/generated-sqlite/models/AnyHubApp.ts +1908 -0
- package/generated-sqlite/models/AnyHubMarketApp.ts +1997 -0
- package/generated-sqlite/models/AnyHubPermission.ts +1419 -0
- package/generated-sqlite/models/AnyHubRecommendation.ts +1867 -0
- package/generated-sqlite/models/AnyHubRecommender.ts +1467 -0
- package/generated-sqlite/models/Artboard.ts +1808 -0
- package/generated-sqlite/models/ArtboardExport.ts +1545 -0
- package/generated-sqlite/models/ArticleFavorite.ts +1349 -0
- package/generated-sqlite/models/AuditLog.ts +1287 -0
- package/generated-sqlite/models/Block.ts +1648 -0
- package/generated-sqlite/models/BlockComponent.ts +1730 -0
- package/generated-sqlite/models/BlockInstance.ts +2039 -0
- package/generated-sqlite/models/BookmarkCategory.ts +1667 -0
- package/generated-sqlite/models/ChatInterrupt.ts +1695 -0
- package/generated-sqlite/models/ChatMessage.ts +1435 -0
- package/generated-sqlite/models/ChatRun.ts +1629 -0
- package/generated-sqlite/models/ChatThread.ts +2129 -0
- package/generated-sqlite/models/Comment.ts +2201 -0
- package/generated-sqlite/models/CommentIgnore.ts +1426 -0
- package/generated-sqlite/models/ComplianceExport.ts +1343 -0
- package/generated-sqlite/models/Component.ts +2326 -0
- package/generated-sqlite/models/ComponentInstance.ts +2097 -0
- package/generated-sqlite/models/ComponentTag.ts +1278 -0
- package/generated-sqlite/models/CustomRole.ts +1209 -0
- package/generated-sqlite/models/DesignProject.ts +1640 -0
- package/generated-sqlite/models/DictionaryTerm.ts +1639 -0
- package/generated-sqlite/models/GenerationRun.ts +1540 -0
- package/generated-sqlite/models/IndustryCompliance.ts +1794 -0
- package/generated-sqlite/models/InvitationCode.ts +1415 -0
- package/generated-sqlite/models/InvitationUse.ts +1420 -0
- package/generated-sqlite/models/Invoice.ts +1707 -0
- package/generated-sqlite/models/KnowledgeBase.ts +1668 -0
- package/generated-sqlite/models/KnowledgeDocument.ts +2282 -0
- package/generated-sqlite/models/KnowledgeShareRecord.ts +1349 -0
- package/generated-sqlite/models/LegalRegulation.ts +1870 -0
- package/generated-sqlite/models/LicenseActivation.ts +1203 -0
- package/generated-sqlite/models/LicenseKey.ts +1443 -0
- package/generated-sqlite/models/LoginLog.ts +1447 -0
- package/generated-sqlite/models/PRD.ts +2616 -0
- package/generated-sqlite/models/PRDPage.ts +2398 -0
- package/generated-sqlite/models/PRDTag.ts +1426 -0
- package/generated-sqlite/models/PRDVersion.ts +2117 -0
- package/generated-sqlite/models/PageVersion.ts +1528 -0
- package/generated-sqlite/models/PasswordResetToken.ts +1377 -0
- package/generated-sqlite/models/Plan.ts +2060 -0
- package/generated-sqlite/models/Project.ts +1994 -0
- package/generated-sqlite/models/ProjectActivity.ts +1578 -0
- package/generated-sqlite/models/ProjectMember.ts +1508 -0
- package/generated-sqlite/models/ProviderEvent.ts +1225 -0
- package/generated-sqlite/models/Reference.ts +1175 -0
- package/generated-sqlite/models/Review.ts +1903 -0
- package/generated-sqlite/models/ReviewComment.ts +1899 -0
- package/generated-sqlite/models/RoleAssignment.ts +1125 -0
- package/generated-sqlite/models/Share.ts +1674 -0
- package/generated-sqlite/models/ShareVersion.ts +1385 -0
- package/generated-sqlite/models/SsoMapping.ts +1181 -0
- package/generated-sqlite/models/SsoProvider.ts +1266 -0
- package/generated-sqlite/models/Subscription.ts +2137 -0
- package/generated-sqlite/models/SystemSetting.ts +1215 -0
- package/generated-sqlite/models/Tag.ts +1652 -0
- package/generated-sqlite/models/TeamInvitation.ts +1523 -0
- package/generated-sqlite/models/TeamMembership.ts +1433 -0
- package/generated-sqlite/models/Template.ts +1389 -0
- package/generated-sqlite/models/TemplateBlock.ts +1660 -0
- package/generated-sqlite/models/ThirdPartyDependency.ts +1471 -0
- package/generated-sqlite/models/UsageRecord.ts +1498 -0
- package/generated-sqlite/models/User.ts +13558 -0
- package/generated-sqlite/models/UserAgent.ts +1897 -0
- package/generated-sqlite/models/UserSkill.ts +1453 -0
- package/generated-sqlite/models/WebsiteBookmark.ts +2215 -0
- package/generated-sqlite/models/Workspace.ts +1824 -0
- package/generated-sqlite/models.ts +87 -0
- package/package.json +7 -3
- package/LICENSE +0 -661
|
@@ -0,0 +1,1560 @@
|
|
|
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 `CustomRole` 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"
|
|
13
|
+
import type * as Prisma from "../internal/prismaNamespace"
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Model CustomRole
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export type CustomRoleModel = runtime.Types.Result.DefaultSelection<Prisma.$CustomRolePayload>
|
|
20
|
+
|
|
21
|
+
export type AggregateCustomRole = {
|
|
22
|
+
_count: CustomRoleCountAggregateOutputType | null
|
|
23
|
+
_min: CustomRoleMinAggregateOutputType | null
|
|
24
|
+
_max: CustomRoleMaxAggregateOutputType | null
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type CustomRoleMinAggregateOutputType = {
|
|
28
|
+
id: string | null
|
|
29
|
+
workspaceId: string | null
|
|
30
|
+
name: string | null
|
|
31
|
+
isSystem: boolean | null
|
|
32
|
+
createdAt: Date | null
|
|
33
|
+
updatedAt: Date | null
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export type CustomRoleMaxAggregateOutputType = {
|
|
37
|
+
id: string | null
|
|
38
|
+
workspaceId: string | null
|
|
39
|
+
name: string | null
|
|
40
|
+
isSystem: boolean | null
|
|
41
|
+
createdAt: Date | null
|
|
42
|
+
updatedAt: Date | null
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export type CustomRoleCountAggregateOutputType = {
|
|
46
|
+
id: number
|
|
47
|
+
workspaceId: number
|
|
48
|
+
name: number
|
|
49
|
+
permissions: number
|
|
50
|
+
isSystem: number
|
|
51
|
+
createdAt: number
|
|
52
|
+
updatedAt: number
|
|
53
|
+
_all: number
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
export type CustomRoleMinAggregateInputType = {
|
|
58
|
+
id?: true
|
|
59
|
+
workspaceId?: true
|
|
60
|
+
name?: true
|
|
61
|
+
isSystem?: true
|
|
62
|
+
createdAt?: true
|
|
63
|
+
updatedAt?: true
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export type CustomRoleMaxAggregateInputType = {
|
|
67
|
+
id?: true
|
|
68
|
+
workspaceId?: true
|
|
69
|
+
name?: true
|
|
70
|
+
isSystem?: true
|
|
71
|
+
createdAt?: true
|
|
72
|
+
updatedAt?: true
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export type CustomRoleCountAggregateInputType = {
|
|
76
|
+
id?: true
|
|
77
|
+
workspaceId?: true
|
|
78
|
+
name?: true
|
|
79
|
+
permissions?: true
|
|
80
|
+
isSystem?: true
|
|
81
|
+
createdAt?: true
|
|
82
|
+
updatedAt?: true
|
|
83
|
+
_all?: true
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export type CustomRoleAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
87
|
+
/**
|
|
88
|
+
* Filter which CustomRole to aggregate.
|
|
89
|
+
*/
|
|
90
|
+
where?: Prisma.CustomRoleWhereInput
|
|
91
|
+
/**
|
|
92
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
93
|
+
*
|
|
94
|
+
* Determine the order of CustomRoles to fetch.
|
|
95
|
+
*/
|
|
96
|
+
orderBy?: Prisma.CustomRoleOrderByWithRelationInput | Prisma.CustomRoleOrderByWithRelationInput[]
|
|
97
|
+
/**
|
|
98
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
99
|
+
*
|
|
100
|
+
* Sets the start position
|
|
101
|
+
*/
|
|
102
|
+
cursor?: Prisma.CustomRoleWhereUniqueInput
|
|
103
|
+
/**
|
|
104
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
105
|
+
*
|
|
106
|
+
* Take `±n` CustomRoles from the position of the cursor.
|
|
107
|
+
*/
|
|
108
|
+
take?: number
|
|
109
|
+
/**
|
|
110
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
111
|
+
*
|
|
112
|
+
* Skip the first `n` CustomRoles.
|
|
113
|
+
*/
|
|
114
|
+
skip?: number
|
|
115
|
+
/**
|
|
116
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
117
|
+
*
|
|
118
|
+
* Count returned CustomRoles
|
|
119
|
+
**/
|
|
120
|
+
_count?: true | CustomRoleCountAggregateInputType
|
|
121
|
+
/**
|
|
122
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
123
|
+
*
|
|
124
|
+
* Select which fields to find the minimum value
|
|
125
|
+
**/
|
|
126
|
+
_min?: CustomRoleMinAggregateInputType
|
|
127
|
+
/**
|
|
128
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
129
|
+
*
|
|
130
|
+
* Select which fields to find the maximum value
|
|
131
|
+
**/
|
|
132
|
+
_max?: CustomRoleMaxAggregateInputType
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export type GetCustomRoleAggregateType<T extends CustomRoleAggregateArgs> = {
|
|
136
|
+
[P in keyof T & keyof AggregateCustomRole]: P extends '_count' | 'count'
|
|
137
|
+
? T[P] extends true
|
|
138
|
+
? number
|
|
139
|
+
: Prisma.GetScalarType<T[P], AggregateCustomRole[P]>
|
|
140
|
+
: Prisma.GetScalarType<T[P], AggregateCustomRole[P]>
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
export type CustomRoleGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
147
|
+
where?: Prisma.CustomRoleWhereInput
|
|
148
|
+
orderBy?: Prisma.CustomRoleOrderByWithAggregationInput | Prisma.CustomRoleOrderByWithAggregationInput[]
|
|
149
|
+
by: Prisma.CustomRoleScalarFieldEnum[] | Prisma.CustomRoleScalarFieldEnum
|
|
150
|
+
having?: Prisma.CustomRoleScalarWhereWithAggregatesInput
|
|
151
|
+
take?: number
|
|
152
|
+
skip?: number
|
|
153
|
+
_count?: CustomRoleCountAggregateInputType | true
|
|
154
|
+
_min?: CustomRoleMinAggregateInputType
|
|
155
|
+
_max?: CustomRoleMaxAggregateInputType
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export type CustomRoleGroupByOutputType = {
|
|
159
|
+
id: string
|
|
160
|
+
workspaceId: string
|
|
161
|
+
name: string
|
|
162
|
+
permissions: runtime.JsonValue
|
|
163
|
+
isSystem: boolean
|
|
164
|
+
createdAt: Date
|
|
165
|
+
updatedAt: Date
|
|
166
|
+
_count: CustomRoleCountAggregateOutputType | null
|
|
167
|
+
_min: CustomRoleMinAggregateOutputType | null
|
|
168
|
+
_max: CustomRoleMaxAggregateOutputType | null
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export type GetCustomRoleGroupByPayload<T extends CustomRoleGroupByArgs> = Prisma.PrismaPromise<
|
|
172
|
+
Array<
|
|
173
|
+
Prisma.PickEnumerable<CustomRoleGroupByOutputType, T['by']> &
|
|
174
|
+
{
|
|
175
|
+
[P in ((keyof T) & (keyof CustomRoleGroupByOutputType))]: P extends '_count'
|
|
176
|
+
? T[P] extends boolean
|
|
177
|
+
? number
|
|
178
|
+
: Prisma.GetScalarType<T[P], CustomRoleGroupByOutputType[P]>
|
|
179
|
+
: Prisma.GetScalarType<T[P], CustomRoleGroupByOutputType[P]>
|
|
180
|
+
}
|
|
181
|
+
>
|
|
182
|
+
>
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
export type CustomRoleWhereInput = {
|
|
187
|
+
AND?: Prisma.CustomRoleWhereInput | Prisma.CustomRoleWhereInput[]
|
|
188
|
+
OR?: Prisma.CustomRoleWhereInput[]
|
|
189
|
+
NOT?: Prisma.CustomRoleWhereInput | Prisma.CustomRoleWhereInput[]
|
|
190
|
+
id?: Prisma.StringFilter<"CustomRole"> | string
|
|
191
|
+
workspaceId?: Prisma.StringFilter<"CustomRole"> | string
|
|
192
|
+
name?: Prisma.StringFilter<"CustomRole"> | string
|
|
193
|
+
permissions?: Prisma.JsonFilter<"CustomRole">
|
|
194
|
+
isSystem?: Prisma.BoolFilter<"CustomRole"> | boolean
|
|
195
|
+
createdAt?: Prisma.DateTimeFilter<"CustomRole"> | Date | string
|
|
196
|
+
updatedAt?: Prisma.DateTimeFilter<"CustomRole"> | Date | string
|
|
197
|
+
workspace?: Prisma.XOR<Prisma.WorkspaceScalarRelationFilter, Prisma.WorkspaceWhereInput>
|
|
198
|
+
assignments?: Prisma.RoleAssignmentListRelationFilter
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export type CustomRoleOrderByWithRelationInput = {
|
|
202
|
+
id?: Prisma.SortOrder
|
|
203
|
+
workspaceId?: Prisma.SortOrder
|
|
204
|
+
name?: Prisma.SortOrder
|
|
205
|
+
permissions?: Prisma.SortOrder
|
|
206
|
+
isSystem?: Prisma.SortOrder
|
|
207
|
+
createdAt?: Prisma.SortOrder
|
|
208
|
+
updatedAt?: Prisma.SortOrder
|
|
209
|
+
workspace?: Prisma.WorkspaceOrderByWithRelationInput
|
|
210
|
+
assignments?: Prisma.RoleAssignmentOrderByRelationAggregateInput
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export type CustomRoleWhereUniqueInput = Prisma.AtLeast<{
|
|
214
|
+
id?: string
|
|
215
|
+
workspaceId_name?: Prisma.CustomRoleWorkspaceIdNameCompoundUniqueInput
|
|
216
|
+
AND?: Prisma.CustomRoleWhereInput | Prisma.CustomRoleWhereInput[]
|
|
217
|
+
OR?: Prisma.CustomRoleWhereInput[]
|
|
218
|
+
NOT?: Prisma.CustomRoleWhereInput | Prisma.CustomRoleWhereInput[]
|
|
219
|
+
workspaceId?: Prisma.StringFilter<"CustomRole"> | string
|
|
220
|
+
name?: Prisma.StringFilter<"CustomRole"> | string
|
|
221
|
+
permissions?: Prisma.JsonFilter<"CustomRole">
|
|
222
|
+
isSystem?: Prisma.BoolFilter<"CustomRole"> | boolean
|
|
223
|
+
createdAt?: Prisma.DateTimeFilter<"CustomRole"> | Date | string
|
|
224
|
+
updatedAt?: Prisma.DateTimeFilter<"CustomRole"> | Date | string
|
|
225
|
+
workspace?: Prisma.XOR<Prisma.WorkspaceScalarRelationFilter, Prisma.WorkspaceWhereInput>
|
|
226
|
+
assignments?: Prisma.RoleAssignmentListRelationFilter
|
|
227
|
+
}, "id" | "workspaceId_name">
|
|
228
|
+
|
|
229
|
+
export type CustomRoleOrderByWithAggregationInput = {
|
|
230
|
+
id?: Prisma.SortOrder
|
|
231
|
+
workspaceId?: Prisma.SortOrder
|
|
232
|
+
name?: Prisma.SortOrder
|
|
233
|
+
permissions?: Prisma.SortOrder
|
|
234
|
+
isSystem?: Prisma.SortOrder
|
|
235
|
+
createdAt?: Prisma.SortOrder
|
|
236
|
+
updatedAt?: Prisma.SortOrder
|
|
237
|
+
_count?: Prisma.CustomRoleCountOrderByAggregateInput
|
|
238
|
+
_max?: Prisma.CustomRoleMaxOrderByAggregateInput
|
|
239
|
+
_min?: Prisma.CustomRoleMinOrderByAggregateInput
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
export type CustomRoleScalarWhereWithAggregatesInput = {
|
|
243
|
+
AND?: Prisma.CustomRoleScalarWhereWithAggregatesInput | Prisma.CustomRoleScalarWhereWithAggregatesInput[]
|
|
244
|
+
OR?: Prisma.CustomRoleScalarWhereWithAggregatesInput[]
|
|
245
|
+
NOT?: Prisma.CustomRoleScalarWhereWithAggregatesInput | Prisma.CustomRoleScalarWhereWithAggregatesInput[]
|
|
246
|
+
id?: Prisma.StringWithAggregatesFilter<"CustomRole"> | string
|
|
247
|
+
workspaceId?: Prisma.StringWithAggregatesFilter<"CustomRole"> | string
|
|
248
|
+
name?: Prisma.StringWithAggregatesFilter<"CustomRole"> | string
|
|
249
|
+
permissions?: Prisma.JsonWithAggregatesFilter<"CustomRole">
|
|
250
|
+
isSystem?: Prisma.BoolWithAggregatesFilter<"CustomRole"> | boolean
|
|
251
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"CustomRole"> | Date | string
|
|
252
|
+
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"CustomRole"> | Date | string
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
export type CustomRoleCreateInput = {
|
|
256
|
+
id?: string
|
|
257
|
+
name: string
|
|
258
|
+
permissions: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
259
|
+
isSystem?: boolean
|
|
260
|
+
createdAt?: Date | string
|
|
261
|
+
updatedAt?: Date | string
|
|
262
|
+
workspace: Prisma.WorkspaceCreateNestedOneWithoutCustomRolesInput
|
|
263
|
+
assignments?: Prisma.RoleAssignmentCreateNestedManyWithoutRoleInput
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
export type CustomRoleUncheckedCreateInput = {
|
|
267
|
+
id?: string
|
|
268
|
+
workspaceId: string
|
|
269
|
+
name: string
|
|
270
|
+
permissions: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
271
|
+
isSystem?: boolean
|
|
272
|
+
createdAt?: Date | string
|
|
273
|
+
updatedAt?: Date | string
|
|
274
|
+
assignments?: Prisma.RoleAssignmentUncheckedCreateNestedManyWithoutRoleInput
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
export type CustomRoleUpdateInput = {
|
|
278
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
279
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
280
|
+
permissions?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
281
|
+
isSystem?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
282
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
283
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
284
|
+
workspace?: Prisma.WorkspaceUpdateOneRequiredWithoutCustomRolesNestedInput
|
|
285
|
+
assignments?: Prisma.RoleAssignmentUpdateManyWithoutRoleNestedInput
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
export type CustomRoleUncheckedUpdateInput = {
|
|
289
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
290
|
+
workspaceId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
291
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
292
|
+
permissions?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
293
|
+
isSystem?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
294
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
295
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
296
|
+
assignments?: Prisma.RoleAssignmentUncheckedUpdateManyWithoutRoleNestedInput
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
export type CustomRoleCreateManyInput = {
|
|
300
|
+
id?: string
|
|
301
|
+
workspaceId: string
|
|
302
|
+
name: string
|
|
303
|
+
permissions: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
304
|
+
isSystem?: boolean
|
|
305
|
+
createdAt?: Date | string
|
|
306
|
+
updatedAt?: Date | string
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
export type CustomRoleUpdateManyMutationInput = {
|
|
310
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
311
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
312
|
+
permissions?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
313
|
+
isSystem?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
314
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
315
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
export type CustomRoleUncheckedUpdateManyInput = {
|
|
319
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
320
|
+
workspaceId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
321
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
322
|
+
permissions?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
323
|
+
isSystem?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
324
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
325
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
export type CustomRoleListRelationFilter = {
|
|
329
|
+
every?: Prisma.CustomRoleWhereInput
|
|
330
|
+
some?: Prisma.CustomRoleWhereInput
|
|
331
|
+
none?: Prisma.CustomRoleWhereInput
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
export type CustomRoleOrderByRelationAggregateInput = {
|
|
335
|
+
_count?: Prisma.SortOrder
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
export type CustomRoleWorkspaceIdNameCompoundUniqueInput = {
|
|
339
|
+
workspaceId: string
|
|
340
|
+
name: string
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
export type CustomRoleCountOrderByAggregateInput = {
|
|
344
|
+
id?: Prisma.SortOrder
|
|
345
|
+
workspaceId?: Prisma.SortOrder
|
|
346
|
+
name?: Prisma.SortOrder
|
|
347
|
+
permissions?: Prisma.SortOrder
|
|
348
|
+
isSystem?: Prisma.SortOrder
|
|
349
|
+
createdAt?: Prisma.SortOrder
|
|
350
|
+
updatedAt?: Prisma.SortOrder
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
export type CustomRoleMaxOrderByAggregateInput = {
|
|
354
|
+
id?: Prisma.SortOrder
|
|
355
|
+
workspaceId?: Prisma.SortOrder
|
|
356
|
+
name?: Prisma.SortOrder
|
|
357
|
+
isSystem?: Prisma.SortOrder
|
|
358
|
+
createdAt?: Prisma.SortOrder
|
|
359
|
+
updatedAt?: Prisma.SortOrder
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
export type CustomRoleMinOrderByAggregateInput = {
|
|
363
|
+
id?: Prisma.SortOrder
|
|
364
|
+
workspaceId?: Prisma.SortOrder
|
|
365
|
+
name?: Prisma.SortOrder
|
|
366
|
+
isSystem?: Prisma.SortOrder
|
|
367
|
+
createdAt?: Prisma.SortOrder
|
|
368
|
+
updatedAt?: Prisma.SortOrder
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
export type CustomRoleScalarRelationFilter = {
|
|
372
|
+
is?: Prisma.CustomRoleWhereInput
|
|
373
|
+
isNot?: Prisma.CustomRoleWhereInput
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
export type CustomRoleCreateNestedManyWithoutWorkspaceInput = {
|
|
377
|
+
create?: Prisma.XOR<Prisma.CustomRoleCreateWithoutWorkspaceInput, Prisma.CustomRoleUncheckedCreateWithoutWorkspaceInput> | Prisma.CustomRoleCreateWithoutWorkspaceInput[] | Prisma.CustomRoleUncheckedCreateWithoutWorkspaceInput[]
|
|
378
|
+
connectOrCreate?: Prisma.CustomRoleCreateOrConnectWithoutWorkspaceInput | Prisma.CustomRoleCreateOrConnectWithoutWorkspaceInput[]
|
|
379
|
+
createMany?: Prisma.CustomRoleCreateManyWorkspaceInputEnvelope
|
|
380
|
+
connect?: Prisma.CustomRoleWhereUniqueInput | Prisma.CustomRoleWhereUniqueInput[]
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
export type CustomRoleUncheckedCreateNestedManyWithoutWorkspaceInput = {
|
|
384
|
+
create?: Prisma.XOR<Prisma.CustomRoleCreateWithoutWorkspaceInput, Prisma.CustomRoleUncheckedCreateWithoutWorkspaceInput> | Prisma.CustomRoleCreateWithoutWorkspaceInput[] | Prisma.CustomRoleUncheckedCreateWithoutWorkspaceInput[]
|
|
385
|
+
connectOrCreate?: Prisma.CustomRoleCreateOrConnectWithoutWorkspaceInput | Prisma.CustomRoleCreateOrConnectWithoutWorkspaceInput[]
|
|
386
|
+
createMany?: Prisma.CustomRoleCreateManyWorkspaceInputEnvelope
|
|
387
|
+
connect?: Prisma.CustomRoleWhereUniqueInput | Prisma.CustomRoleWhereUniqueInput[]
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
export type CustomRoleUpdateManyWithoutWorkspaceNestedInput = {
|
|
391
|
+
create?: Prisma.XOR<Prisma.CustomRoleCreateWithoutWorkspaceInput, Prisma.CustomRoleUncheckedCreateWithoutWorkspaceInput> | Prisma.CustomRoleCreateWithoutWorkspaceInput[] | Prisma.CustomRoleUncheckedCreateWithoutWorkspaceInput[]
|
|
392
|
+
connectOrCreate?: Prisma.CustomRoleCreateOrConnectWithoutWorkspaceInput | Prisma.CustomRoleCreateOrConnectWithoutWorkspaceInput[]
|
|
393
|
+
upsert?: Prisma.CustomRoleUpsertWithWhereUniqueWithoutWorkspaceInput | Prisma.CustomRoleUpsertWithWhereUniqueWithoutWorkspaceInput[]
|
|
394
|
+
createMany?: Prisma.CustomRoleCreateManyWorkspaceInputEnvelope
|
|
395
|
+
set?: Prisma.CustomRoleWhereUniqueInput | Prisma.CustomRoleWhereUniqueInput[]
|
|
396
|
+
disconnect?: Prisma.CustomRoleWhereUniqueInput | Prisma.CustomRoleWhereUniqueInput[]
|
|
397
|
+
delete?: Prisma.CustomRoleWhereUniqueInput | Prisma.CustomRoleWhereUniqueInput[]
|
|
398
|
+
connect?: Prisma.CustomRoleWhereUniqueInput | Prisma.CustomRoleWhereUniqueInput[]
|
|
399
|
+
update?: Prisma.CustomRoleUpdateWithWhereUniqueWithoutWorkspaceInput | Prisma.CustomRoleUpdateWithWhereUniqueWithoutWorkspaceInput[]
|
|
400
|
+
updateMany?: Prisma.CustomRoleUpdateManyWithWhereWithoutWorkspaceInput | Prisma.CustomRoleUpdateManyWithWhereWithoutWorkspaceInput[]
|
|
401
|
+
deleteMany?: Prisma.CustomRoleScalarWhereInput | Prisma.CustomRoleScalarWhereInput[]
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
export type CustomRoleUncheckedUpdateManyWithoutWorkspaceNestedInput = {
|
|
405
|
+
create?: Prisma.XOR<Prisma.CustomRoleCreateWithoutWorkspaceInput, Prisma.CustomRoleUncheckedCreateWithoutWorkspaceInput> | Prisma.CustomRoleCreateWithoutWorkspaceInput[] | Prisma.CustomRoleUncheckedCreateWithoutWorkspaceInput[]
|
|
406
|
+
connectOrCreate?: Prisma.CustomRoleCreateOrConnectWithoutWorkspaceInput | Prisma.CustomRoleCreateOrConnectWithoutWorkspaceInput[]
|
|
407
|
+
upsert?: Prisma.CustomRoleUpsertWithWhereUniqueWithoutWorkspaceInput | Prisma.CustomRoleUpsertWithWhereUniqueWithoutWorkspaceInput[]
|
|
408
|
+
createMany?: Prisma.CustomRoleCreateManyWorkspaceInputEnvelope
|
|
409
|
+
set?: Prisma.CustomRoleWhereUniqueInput | Prisma.CustomRoleWhereUniqueInput[]
|
|
410
|
+
disconnect?: Prisma.CustomRoleWhereUniqueInput | Prisma.CustomRoleWhereUniqueInput[]
|
|
411
|
+
delete?: Prisma.CustomRoleWhereUniqueInput | Prisma.CustomRoleWhereUniqueInput[]
|
|
412
|
+
connect?: Prisma.CustomRoleWhereUniqueInput | Prisma.CustomRoleWhereUniqueInput[]
|
|
413
|
+
update?: Prisma.CustomRoleUpdateWithWhereUniqueWithoutWorkspaceInput | Prisma.CustomRoleUpdateWithWhereUniqueWithoutWorkspaceInput[]
|
|
414
|
+
updateMany?: Prisma.CustomRoleUpdateManyWithWhereWithoutWorkspaceInput | Prisma.CustomRoleUpdateManyWithWhereWithoutWorkspaceInput[]
|
|
415
|
+
deleteMany?: Prisma.CustomRoleScalarWhereInput | Prisma.CustomRoleScalarWhereInput[]
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
export type CustomRoleCreateNestedOneWithoutAssignmentsInput = {
|
|
419
|
+
create?: Prisma.XOR<Prisma.CustomRoleCreateWithoutAssignmentsInput, Prisma.CustomRoleUncheckedCreateWithoutAssignmentsInput>
|
|
420
|
+
connectOrCreate?: Prisma.CustomRoleCreateOrConnectWithoutAssignmentsInput
|
|
421
|
+
connect?: Prisma.CustomRoleWhereUniqueInput
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
export type CustomRoleUpdateOneRequiredWithoutAssignmentsNestedInput = {
|
|
425
|
+
create?: Prisma.XOR<Prisma.CustomRoleCreateWithoutAssignmentsInput, Prisma.CustomRoleUncheckedCreateWithoutAssignmentsInput>
|
|
426
|
+
connectOrCreate?: Prisma.CustomRoleCreateOrConnectWithoutAssignmentsInput
|
|
427
|
+
upsert?: Prisma.CustomRoleUpsertWithoutAssignmentsInput
|
|
428
|
+
connect?: Prisma.CustomRoleWhereUniqueInput
|
|
429
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.CustomRoleUpdateToOneWithWhereWithoutAssignmentsInput, Prisma.CustomRoleUpdateWithoutAssignmentsInput>, Prisma.CustomRoleUncheckedUpdateWithoutAssignmentsInput>
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
export type CustomRoleCreateWithoutWorkspaceInput = {
|
|
433
|
+
id?: string
|
|
434
|
+
name: string
|
|
435
|
+
permissions: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
436
|
+
isSystem?: boolean
|
|
437
|
+
createdAt?: Date | string
|
|
438
|
+
updatedAt?: Date | string
|
|
439
|
+
assignments?: Prisma.RoleAssignmentCreateNestedManyWithoutRoleInput
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
export type CustomRoleUncheckedCreateWithoutWorkspaceInput = {
|
|
443
|
+
id?: string
|
|
444
|
+
name: string
|
|
445
|
+
permissions: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
446
|
+
isSystem?: boolean
|
|
447
|
+
createdAt?: Date | string
|
|
448
|
+
updatedAt?: Date | string
|
|
449
|
+
assignments?: Prisma.RoleAssignmentUncheckedCreateNestedManyWithoutRoleInput
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
export type CustomRoleCreateOrConnectWithoutWorkspaceInput = {
|
|
453
|
+
where: Prisma.CustomRoleWhereUniqueInput
|
|
454
|
+
create: Prisma.XOR<Prisma.CustomRoleCreateWithoutWorkspaceInput, Prisma.CustomRoleUncheckedCreateWithoutWorkspaceInput>
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
export type CustomRoleCreateManyWorkspaceInputEnvelope = {
|
|
458
|
+
data: Prisma.CustomRoleCreateManyWorkspaceInput | Prisma.CustomRoleCreateManyWorkspaceInput[]
|
|
459
|
+
skipDuplicates?: boolean
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
export type CustomRoleUpsertWithWhereUniqueWithoutWorkspaceInput = {
|
|
463
|
+
where: Prisma.CustomRoleWhereUniqueInput
|
|
464
|
+
update: Prisma.XOR<Prisma.CustomRoleUpdateWithoutWorkspaceInput, Prisma.CustomRoleUncheckedUpdateWithoutWorkspaceInput>
|
|
465
|
+
create: Prisma.XOR<Prisma.CustomRoleCreateWithoutWorkspaceInput, Prisma.CustomRoleUncheckedCreateWithoutWorkspaceInput>
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
export type CustomRoleUpdateWithWhereUniqueWithoutWorkspaceInput = {
|
|
469
|
+
where: Prisma.CustomRoleWhereUniqueInput
|
|
470
|
+
data: Prisma.XOR<Prisma.CustomRoleUpdateWithoutWorkspaceInput, Prisma.CustomRoleUncheckedUpdateWithoutWorkspaceInput>
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
export type CustomRoleUpdateManyWithWhereWithoutWorkspaceInput = {
|
|
474
|
+
where: Prisma.CustomRoleScalarWhereInput
|
|
475
|
+
data: Prisma.XOR<Prisma.CustomRoleUpdateManyMutationInput, Prisma.CustomRoleUncheckedUpdateManyWithoutWorkspaceInput>
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
export type CustomRoleScalarWhereInput = {
|
|
479
|
+
AND?: Prisma.CustomRoleScalarWhereInput | Prisma.CustomRoleScalarWhereInput[]
|
|
480
|
+
OR?: Prisma.CustomRoleScalarWhereInput[]
|
|
481
|
+
NOT?: Prisma.CustomRoleScalarWhereInput | Prisma.CustomRoleScalarWhereInput[]
|
|
482
|
+
id?: Prisma.StringFilter<"CustomRole"> | string
|
|
483
|
+
workspaceId?: Prisma.StringFilter<"CustomRole"> | string
|
|
484
|
+
name?: Prisma.StringFilter<"CustomRole"> | string
|
|
485
|
+
permissions?: Prisma.JsonFilter<"CustomRole">
|
|
486
|
+
isSystem?: Prisma.BoolFilter<"CustomRole"> | boolean
|
|
487
|
+
createdAt?: Prisma.DateTimeFilter<"CustomRole"> | Date | string
|
|
488
|
+
updatedAt?: Prisma.DateTimeFilter<"CustomRole"> | Date | string
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
export type CustomRoleCreateWithoutAssignmentsInput = {
|
|
492
|
+
id?: string
|
|
493
|
+
name: string
|
|
494
|
+
permissions: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
495
|
+
isSystem?: boolean
|
|
496
|
+
createdAt?: Date | string
|
|
497
|
+
updatedAt?: Date | string
|
|
498
|
+
workspace: Prisma.WorkspaceCreateNestedOneWithoutCustomRolesInput
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
export type CustomRoleUncheckedCreateWithoutAssignmentsInput = {
|
|
502
|
+
id?: string
|
|
503
|
+
workspaceId: string
|
|
504
|
+
name: string
|
|
505
|
+
permissions: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
506
|
+
isSystem?: boolean
|
|
507
|
+
createdAt?: Date | string
|
|
508
|
+
updatedAt?: Date | string
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
export type CustomRoleCreateOrConnectWithoutAssignmentsInput = {
|
|
512
|
+
where: Prisma.CustomRoleWhereUniqueInput
|
|
513
|
+
create: Prisma.XOR<Prisma.CustomRoleCreateWithoutAssignmentsInput, Prisma.CustomRoleUncheckedCreateWithoutAssignmentsInput>
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
export type CustomRoleUpsertWithoutAssignmentsInput = {
|
|
517
|
+
update: Prisma.XOR<Prisma.CustomRoleUpdateWithoutAssignmentsInput, Prisma.CustomRoleUncheckedUpdateWithoutAssignmentsInput>
|
|
518
|
+
create: Prisma.XOR<Prisma.CustomRoleCreateWithoutAssignmentsInput, Prisma.CustomRoleUncheckedCreateWithoutAssignmentsInput>
|
|
519
|
+
where?: Prisma.CustomRoleWhereInput
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
export type CustomRoleUpdateToOneWithWhereWithoutAssignmentsInput = {
|
|
523
|
+
where?: Prisma.CustomRoleWhereInput
|
|
524
|
+
data: Prisma.XOR<Prisma.CustomRoleUpdateWithoutAssignmentsInput, Prisma.CustomRoleUncheckedUpdateWithoutAssignmentsInput>
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
export type CustomRoleUpdateWithoutAssignmentsInput = {
|
|
528
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
529
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
530
|
+
permissions?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
531
|
+
isSystem?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
532
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
533
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
534
|
+
workspace?: Prisma.WorkspaceUpdateOneRequiredWithoutCustomRolesNestedInput
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
export type CustomRoleUncheckedUpdateWithoutAssignmentsInput = {
|
|
538
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
539
|
+
workspaceId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
540
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
541
|
+
permissions?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
542
|
+
isSystem?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
543
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
544
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
export type CustomRoleCreateManyWorkspaceInput = {
|
|
548
|
+
id?: string
|
|
549
|
+
name: string
|
|
550
|
+
permissions: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
551
|
+
isSystem?: boolean
|
|
552
|
+
createdAt?: Date | string
|
|
553
|
+
updatedAt?: Date | string
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
export type CustomRoleUpdateWithoutWorkspaceInput = {
|
|
557
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
558
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
559
|
+
permissions?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
560
|
+
isSystem?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
561
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
562
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
563
|
+
assignments?: Prisma.RoleAssignmentUpdateManyWithoutRoleNestedInput
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
export type CustomRoleUncheckedUpdateWithoutWorkspaceInput = {
|
|
567
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
568
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
569
|
+
permissions?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
570
|
+
isSystem?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
571
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
572
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
573
|
+
assignments?: Prisma.RoleAssignmentUncheckedUpdateManyWithoutRoleNestedInput
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
export type CustomRoleUncheckedUpdateManyWithoutWorkspaceInput = {
|
|
577
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
578
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
579
|
+
permissions?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
580
|
+
isSystem?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
581
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
582
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
/**
|
|
587
|
+
* Count Type CustomRoleCountOutputType
|
|
588
|
+
*/
|
|
589
|
+
|
|
590
|
+
export type CustomRoleCountOutputType = {
|
|
591
|
+
assignments: number
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
export type CustomRoleCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
595
|
+
assignments?: boolean | CustomRoleCountOutputTypeCountAssignmentsArgs
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* CustomRoleCountOutputType without action
|
|
600
|
+
*/
|
|
601
|
+
export type CustomRoleCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
602
|
+
/**
|
|
603
|
+
* Select specific fields to fetch from the CustomRoleCountOutputType
|
|
604
|
+
*/
|
|
605
|
+
select?: Prisma.CustomRoleCountOutputTypeSelect<ExtArgs> | null
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
/**
|
|
609
|
+
* CustomRoleCountOutputType without action
|
|
610
|
+
*/
|
|
611
|
+
export type CustomRoleCountOutputTypeCountAssignmentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
612
|
+
where?: Prisma.RoleAssignmentWhereInput
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
|
|
616
|
+
export type CustomRoleSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
617
|
+
id?: boolean
|
|
618
|
+
workspaceId?: boolean
|
|
619
|
+
name?: boolean
|
|
620
|
+
permissions?: boolean
|
|
621
|
+
isSystem?: boolean
|
|
622
|
+
createdAt?: boolean
|
|
623
|
+
updatedAt?: boolean
|
|
624
|
+
workspace?: boolean | Prisma.WorkspaceDefaultArgs<ExtArgs>
|
|
625
|
+
assignments?: boolean | Prisma.CustomRole$assignmentsArgs<ExtArgs>
|
|
626
|
+
_count?: boolean | Prisma.CustomRoleCountOutputTypeDefaultArgs<ExtArgs>
|
|
627
|
+
}, ExtArgs["result"]["customRole"]>
|
|
628
|
+
|
|
629
|
+
export type CustomRoleSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
630
|
+
id?: boolean
|
|
631
|
+
workspaceId?: boolean
|
|
632
|
+
name?: boolean
|
|
633
|
+
permissions?: boolean
|
|
634
|
+
isSystem?: boolean
|
|
635
|
+
createdAt?: boolean
|
|
636
|
+
updatedAt?: boolean
|
|
637
|
+
workspace?: boolean | Prisma.WorkspaceDefaultArgs<ExtArgs>
|
|
638
|
+
}, ExtArgs["result"]["customRole"]>
|
|
639
|
+
|
|
640
|
+
export type CustomRoleSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
641
|
+
id?: boolean
|
|
642
|
+
workspaceId?: boolean
|
|
643
|
+
name?: boolean
|
|
644
|
+
permissions?: boolean
|
|
645
|
+
isSystem?: boolean
|
|
646
|
+
createdAt?: boolean
|
|
647
|
+
updatedAt?: boolean
|
|
648
|
+
workspace?: boolean | Prisma.WorkspaceDefaultArgs<ExtArgs>
|
|
649
|
+
}, ExtArgs["result"]["customRole"]>
|
|
650
|
+
|
|
651
|
+
export type CustomRoleSelectScalar = {
|
|
652
|
+
id?: boolean
|
|
653
|
+
workspaceId?: boolean
|
|
654
|
+
name?: boolean
|
|
655
|
+
permissions?: boolean
|
|
656
|
+
isSystem?: boolean
|
|
657
|
+
createdAt?: boolean
|
|
658
|
+
updatedAt?: boolean
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
export type CustomRoleOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "workspaceId" | "name" | "permissions" | "isSystem" | "createdAt" | "updatedAt", ExtArgs["result"]["customRole"]>
|
|
662
|
+
export type CustomRoleInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
663
|
+
workspace?: boolean | Prisma.WorkspaceDefaultArgs<ExtArgs>
|
|
664
|
+
assignments?: boolean | Prisma.CustomRole$assignmentsArgs<ExtArgs>
|
|
665
|
+
_count?: boolean | Prisma.CustomRoleCountOutputTypeDefaultArgs<ExtArgs>
|
|
666
|
+
}
|
|
667
|
+
export type CustomRoleIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
668
|
+
workspace?: boolean | Prisma.WorkspaceDefaultArgs<ExtArgs>
|
|
669
|
+
}
|
|
670
|
+
export type CustomRoleIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
671
|
+
workspace?: boolean | Prisma.WorkspaceDefaultArgs<ExtArgs>
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
export type $CustomRolePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
675
|
+
name: "CustomRole"
|
|
676
|
+
objects: {
|
|
677
|
+
workspace: Prisma.$WorkspacePayload<ExtArgs>
|
|
678
|
+
assignments: Prisma.$RoleAssignmentPayload<ExtArgs>[]
|
|
679
|
+
}
|
|
680
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
681
|
+
id: string
|
|
682
|
+
workspaceId: string
|
|
683
|
+
name: string
|
|
684
|
+
permissions: runtime.JsonValue
|
|
685
|
+
isSystem: boolean
|
|
686
|
+
createdAt: Date
|
|
687
|
+
updatedAt: Date
|
|
688
|
+
}, ExtArgs["result"]["customRole"]>
|
|
689
|
+
composites: {}
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
export type CustomRoleGetPayload<S extends boolean | null | undefined | CustomRoleDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$CustomRolePayload, S>
|
|
693
|
+
|
|
694
|
+
export type CustomRoleCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
695
|
+
Omit<CustomRoleFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
696
|
+
select?: CustomRoleCountAggregateInputType | true
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
export interface CustomRoleDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
700
|
+
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['CustomRole'], meta: { name: 'CustomRole' } }
|
|
701
|
+
/**
|
|
702
|
+
* Find zero or one CustomRole that matches the filter.
|
|
703
|
+
* @param {CustomRoleFindUniqueArgs} args - Arguments to find a CustomRole
|
|
704
|
+
* @example
|
|
705
|
+
* // Get one CustomRole
|
|
706
|
+
* const customRole = await prisma.customRole.findUnique({
|
|
707
|
+
* where: {
|
|
708
|
+
* // ... provide filter here
|
|
709
|
+
* }
|
|
710
|
+
* })
|
|
711
|
+
*/
|
|
712
|
+
findUnique<T extends CustomRoleFindUniqueArgs>(args: Prisma.SelectSubset<T, CustomRoleFindUniqueArgs<ExtArgs>>): Prisma.Prisma__CustomRoleClient<runtime.Types.Result.GetResult<Prisma.$CustomRolePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
713
|
+
|
|
714
|
+
/**
|
|
715
|
+
* Find one CustomRole that matches the filter or throw an error with `error.code='P2025'`
|
|
716
|
+
* if no matches were found.
|
|
717
|
+
* @param {CustomRoleFindUniqueOrThrowArgs} args - Arguments to find a CustomRole
|
|
718
|
+
* @example
|
|
719
|
+
* // Get one CustomRole
|
|
720
|
+
* const customRole = await prisma.customRole.findUniqueOrThrow({
|
|
721
|
+
* where: {
|
|
722
|
+
* // ... provide filter here
|
|
723
|
+
* }
|
|
724
|
+
* })
|
|
725
|
+
*/
|
|
726
|
+
findUniqueOrThrow<T extends CustomRoleFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, CustomRoleFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__CustomRoleClient<runtime.Types.Result.GetResult<Prisma.$CustomRolePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
727
|
+
|
|
728
|
+
/**
|
|
729
|
+
* Find the first CustomRole that matches the filter.
|
|
730
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
731
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
732
|
+
* @param {CustomRoleFindFirstArgs} args - Arguments to find a CustomRole
|
|
733
|
+
* @example
|
|
734
|
+
* // Get one CustomRole
|
|
735
|
+
* const customRole = await prisma.customRole.findFirst({
|
|
736
|
+
* where: {
|
|
737
|
+
* // ... provide filter here
|
|
738
|
+
* }
|
|
739
|
+
* })
|
|
740
|
+
*/
|
|
741
|
+
findFirst<T extends CustomRoleFindFirstArgs>(args?: Prisma.SelectSubset<T, CustomRoleFindFirstArgs<ExtArgs>>): Prisma.Prisma__CustomRoleClient<runtime.Types.Result.GetResult<Prisma.$CustomRolePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
742
|
+
|
|
743
|
+
/**
|
|
744
|
+
* Find the first CustomRole that matches the filter or
|
|
745
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
746
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
747
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
748
|
+
* @param {CustomRoleFindFirstOrThrowArgs} args - Arguments to find a CustomRole
|
|
749
|
+
* @example
|
|
750
|
+
* // Get one CustomRole
|
|
751
|
+
* const customRole = await prisma.customRole.findFirstOrThrow({
|
|
752
|
+
* where: {
|
|
753
|
+
* // ... provide filter here
|
|
754
|
+
* }
|
|
755
|
+
* })
|
|
756
|
+
*/
|
|
757
|
+
findFirstOrThrow<T extends CustomRoleFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, CustomRoleFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__CustomRoleClient<runtime.Types.Result.GetResult<Prisma.$CustomRolePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
758
|
+
|
|
759
|
+
/**
|
|
760
|
+
* Find zero or more CustomRoles that matches the filter.
|
|
761
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
762
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
763
|
+
* @param {CustomRoleFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
764
|
+
* @example
|
|
765
|
+
* // Get all CustomRoles
|
|
766
|
+
* const customRoles = await prisma.customRole.findMany()
|
|
767
|
+
*
|
|
768
|
+
* // Get first 10 CustomRoles
|
|
769
|
+
* const customRoles = await prisma.customRole.findMany({ take: 10 })
|
|
770
|
+
*
|
|
771
|
+
* // Only select the `id`
|
|
772
|
+
* const customRoleWithIdOnly = await prisma.customRole.findMany({ select: { id: true } })
|
|
773
|
+
*
|
|
774
|
+
*/
|
|
775
|
+
findMany<T extends CustomRoleFindManyArgs>(args?: Prisma.SelectSubset<T, CustomRoleFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CustomRolePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
776
|
+
|
|
777
|
+
/**
|
|
778
|
+
* Create a CustomRole.
|
|
779
|
+
* @param {CustomRoleCreateArgs} args - Arguments to create a CustomRole.
|
|
780
|
+
* @example
|
|
781
|
+
* // Create one CustomRole
|
|
782
|
+
* const CustomRole = await prisma.customRole.create({
|
|
783
|
+
* data: {
|
|
784
|
+
* // ... data to create a CustomRole
|
|
785
|
+
* }
|
|
786
|
+
* })
|
|
787
|
+
*
|
|
788
|
+
*/
|
|
789
|
+
create<T extends CustomRoleCreateArgs>(args: Prisma.SelectSubset<T, CustomRoleCreateArgs<ExtArgs>>): Prisma.Prisma__CustomRoleClient<runtime.Types.Result.GetResult<Prisma.$CustomRolePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
790
|
+
|
|
791
|
+
/**
|
|
792
|
+
* Create many CustomRoles.
|
|
793
|
+
* @param {CustomRoleCreateManyArgs} args - Arguments to create many CustomRoles.
|
|
794
|
+
* @example
|
|
795
|
+
* // Create many CustomRoles
|
|
796
|
+
* const customRole = await prisma.customRole.createMany({
|
|
797
|
+
* data: [
|
|
798
|
+
* // ... provide data here
|
|
799
|
+
* ]
|
|
800
|
+
* })
|
|
801
|
+
*
|
|
802
|
+
*/
|
|
803
|
+
createMany<T extends CustomRoleCreateManyArgs>(args?: Prisma.SelectSubset<T, CustomRoleCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
804
|
+
|
|
805
|
+
/**
|
|
806
|
+
* Create many CustomRoles and returns the data saved in the database.
|
|
807
|
+
* @param {CustomRoleCreateManyAndReturnArgs} args - Arguments to create many CustomRoles.
|
|
808
|
+
* @example
|
|
809
|
+
* // Create many CustomRoles
|
|
810
|
+
* const customRole = await prisma.customRole.createManyAndReturn({
|
|
811
|
+
* data: [
|
|
812
|
+
* // ... provide data here
|
|
813
|
+
* ]
|
|
814
|
+
* })
|
|
815
|
+
*
|
|
816
|
+
* // Create many CustomRoles and only return the `id`
|
|
817
|
+
* const customRoleWithIdOnly = await prisma.customRole.createManyAndReturn({
|
|
818
|
+
* select: { id: true },
|
|
819
|
+
* data: [
|
|
820
|
+
* // ... provide data here
|
|
821
|
+
* ]
|
|
822
|
+
* })
|
|
823
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
824
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
825
|
+
*
|
|
826
|
+
*/
|
|
827
|
+
createManyAndReturn<T extends CustomRoleCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, CustomRoleCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CustomRolePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
828
|
+
|
|
829
|
+
/**
|
|
830
|
+
* Delete a CustomRole.
|
|
831
|
+
* @param {CustomRoleDeleteArgs} args - Arguments to delete one CustomRole.
|
|
832
|
+
* @example
|
|
833
|
+
* // Delete one CustomRole
|
|
834
|
+
* const CustomRole = await prisma.customRole.delete({
|
|
835
|
+
* where: {
|
|
836
|
+
* // ... filter to delete one CustomRole
|
|
837
|
+
* }
|
|
838
|
+
* })
|
|
839
|
+
*
|
|
840
|
+
*/
|
|
841
|
+
delete<T extends CustomRoleDeleteArgs>(args: Prisma.SelectSubset<T, CustomRoleDeleteArgs<ExtArgs>>): Prisma.Prisma__CustomRoleClient<runtime.Types.Result.GetResult<Prisma.$CustomRolePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
842
|
+
|
|
843
|
+
/**
|
|
844
|
+
* Update one CustomRole.
|
|
845
|
+
* @param {CustomRoleUpdateArgs} args - Arguments to update one CustomRole.
|
|
846
|
+
* @example
|
|
847
|
+
* // Update one CustomRole
|
|
848
|
+
* const customRole = await prisma.customRole.update({
|
|
849
|
+
* where: {
|
|
850
|
+
* // ... provide filter here
|
|
851
|
+
* },
|
|
852
|
+
* data: {
|
|
853
|
+
* // ... provide data here
|
|
854
|
+
* }
|
|
855
|
+
* })
|
|
856
|
+
*
|
|
857
|
+
*/
|
|
858
|
+
update<T extends CustomRoleUpdateArgs>(args: Prisma.SelectSubset<T, CustomRoleUpdateArgs<ExtArgs>>): Prisma.Prisma__CustomRoleClient<runtime.Types.Result.GetResult<Prisma.$CustomRolePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
859
|
+
|
|
860
|
+
/**
|
|
861
|
+
* Delete zero or more CustomRoles.
|
|
862
|
+
* @param {CustomRoleDeleteManyArgs} args - Arguments to filter CustomRoles to delete.
|
|
863
|
+
* @example
|
|
864
|
+
* // Delete a few CustomRoles
|
|
865
|
+
* const { count } = await prisma.customRole.deleteMany({
|
|
866
|
+
* where: {
|
|
867
|
+
* // ... provide filter here
|
|
868
|
+
* }
|
|
869
|
+
* })
|
|
870
|
+
*
|
|
871
|
+
*/
|
|
872
|
+
deleteMany<T extends CustomRoleDeleteManyArgs>(args?: Prisma.SelectSubset<T, CustomRoleDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
873
|
+
|
|
874
|
+
/**
|
|
875
|
+
* Update zero or more CustomRoles.
|
|
876
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
877
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
878
|
+
* @param {CustomRoleUpdateManyArgs} args - Arguments to update one or more rows.
|
|
879
|
+
* @example
|
|
880
|
+
* // Update many CustomRoles
|
|
881
|
+
* const customRole = await prisma.customRole.updateMany({
|
|
882
|
+
* where: {
|
|
883
|
+
* // ... provide filter here
|
|
884
|
+
* },
|
|
885
|
+
* data: {
|
|
886
|
+
* // ... provide data here
|
|
887
|
+
* }
|
|
888
|
+
* })
|
|
889
|
+
*
|
|
890
|
+
*/
|
|
891
|
+
updateMany<T extends CustomRoleUpdateManyArgs>(args: Prisma.SelectSubset<T, CustomRoleUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
892
|
+
|
|
893
|
+
/**
|
|
894
|
+
* Update zero or more CustomRoles and returns the data updated in the database.
|
|
895
|
+
* @param {CustomRoleUpdateManyAndReturnArgs} args - Arguments to update many CustomRoles.
|
|
896
|
+
* @example
|
|
897
|
+
* // Update many CustomRoles
|
|
898
|
+
* const customRole = await prisma.customRole.updateManyAndReturn({
|
|
899
|
+
* where: {
|
|
900
|
+
* // ... provide filter here
|
|
901
|
+
* },
|
|
902
|
+
* data: [
|
|
903
|
+
* // ... provide data here
|
|
904
|
+
* ]
|
|
905
|
+
* })
|
|
906
|
+
*
|
|
907
|
+
* // Update zero or more CustomRoles and only return the `id`
|
|
908
|
+
* const customRoleWithIdOnly = await prisma.customRole.updateManyAndReturn({
|
|
909
|
+
* select: { id: true },
|
|
910
|
+
* where: {
|
|
911
|
+
* // ... provide filter here
|
|
912
|
+
* },
|
|
913
|
+
* data: [
|
|
914
|
+
* // ... provide data here
|
|
915
|
+
* ]
|
|
916
|
+
* })
|
|
917
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
918
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
919
|
+
*
|
|
920
|
+
*/
|
|
921
|
+
updateManyAndReturn<T extends CustomRoleUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, CustomRoleUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CustomRolePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
922
|
+
|
|
923
|
+
/**
|
|
924
|
+
* Create or update one CustomRole.
|
|
925
|
+
* @param {CustomRoleUpsertArgs} args - Arguments to update or create a CustomRole.
|
|
926
|
+
* @example
|
|
927
|
+
* // Update or create a CustomRole
|
|
928
|
+
* const customRole = await prisma.customRole.upsert({
|
|
929
|
+
* create: {
|
|
930
|
+
* // ... data to create a CustomRole
|
|
931
|
+
* },
|
|
932
|
+
* update: {
|
|
933
|
+
* // ... in case it already exists, update
|
|
934
|
+
* },
|
|
935
|
+
* where: {
|
|
936
|
+
* // ... the filter for the CustomRole we want to update
|
|
937
|
+
* }
|
|
938
|
+
* })
|
|
939
|
+
*/
|
|
940
|
+
upsert<T extends CustomRoleUpsertArgs>(args: Prisma.SelectSubset<T, CustomRoleUpsertArgs<ExtArgs>>): Prisma.Prisma__CustomRoleClient<runtime.Types.Result.GetResult<Prisma.$CustomRolePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
941
|
+
|
|
942
|
+
|
|
943
|
+
/**
|
|
944
|
+
* Count the number of CustomRoles.
|
|
945
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
946
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
947
|
+
* @param {CustomRoleCountArgs} args - Arguments to filter CustomRoles to count.
|
|
948
|
+
* @example
|
|
949
|
+
* // Count the number of CustomRoles
|
|
950
|
+
* const count = await prisma.customRole.count({
|
|
951
|
+
* where: {
|
|
952
|
+
* // ... the filter for the CustomRoles we want to count
|
|
953
|
+
* }
|
|
954
|
+
* })
|
|
955
|
+
**/
|
|
956
|
+
count<T extends CustomRoleCountArgs>(
|
|
957
|
+
args?: Prisma.Subset<T, CustomRoleCountArgs>,
|
|
958
|
+
): Prisma.PrismaPromise<
|
|
959
|
+
T extends runtime.Types.Utils.Record<'select', any>
|
|
960
|
+
? T['select'] extends true
|
|
961
|
+
? number
|
|
962
|
+
: Prisma.GetScalarType<T['select'], CustomRoleCountAggregateOutputType>
|
|
963
|
+
: number
|
|
964
|
+
>
|
|
965
|
+
|
|
966
|
+
/**
|
|
967
|
+
* Allows you to perform aggregations operations on a CustomRole.
|
|
968
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
969
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
970
|
+
* @param {CustomRoleAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
971
|
+
* @example
|
|
972
|
+
* // Ordered by age ascending
|
|
973
|
+
* // Where email contains prisma.io
|
|
974
|
+
* // Limited to the 10 users
|
|
975
|
+
* const aggregations = await prisma.user.aggregate({
|
|
976
|
+
* _avg: {
|
|
977
|
+
* age: true,
|
|
978
|
+
* },
|
|
979
|
+
* where: {
|
|
980
|
+
* email: {
|
|
981
|
+
* contains: "prisma.io",
|
|
982
|
+
* },
|
|
983
|
+
* },
|
|
984
|
+
* orderBy: {
|
|
985
|
+
* age: "asc",
|
|
986
|
+
* },
|
|
987
|
+
* take: 10,
|
|
988
|
+
* })
|
|
989
|
+
**/
|
|
990
|
+
aggregate<T extends CustomRoleAggregateArgs>(args: Prisma.Subset<T, CustomRoleAggregateArgs>): Prisma.PrismaPromise<GetCustomRoleAggregateType<T>>
|
|
991
|
+
|
|
992
|
+
/**
|
|
993
|
+
* Group by CustomRole.
|
|
994
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
995
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
996
|
+
* @param {CustomRoleGroupByArgs} args - Group by arguments.
|
|
997
|
+
* @example
|
|
998
|
+
* // Group by city, order by createdAt, get count
|
|
999
|
+
* const result = await prisma.user.groupBy({
|
|
1000
|
+
* by: ['city', 'createdAt'],
|
|
1001
|
+
* orderBy: {
|
|
1002
|
+
* createdAt: true
|
|
1003
|
+
* },
|
|
1004
|
+
* _count: {
|
|
1005
|
+
* _all: true
|
|
1006
|
+
* },
|
|
1007
|
+
* })
|
|
1008
|
+
*
|
|
1009
|
+
**/
|
|
1010
|
+
groupBy<
|
|
1011
|
+
T extends CustomRoleGroupByArgs,
|
|
1012
|
+
HasSelectOrTake extends Prisma.Or<
|
|
1013
|
+
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
1014
|
+
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
1015
|
+
>,
|
|
1016
|
+
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
1017
|
+
? { orderBy: CustomRoleGroupByArgs['orderBy'] }
|
|
1018
|
+
: { orderBy?: CustomRoleGroupByArgs['orderBy'] },
|
|
1019
|
+
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
1020
|
+
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
1021
|
+
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
1022
|
+
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
1023
|
+
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
1024
|
+
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
1025
|
+
InputErrors extends ByEmpty extends Prisma.True
|
|
1026
|
+
? `Error: "by" must not be empty.`
|
|
1027
|
+
: HavingValid extends Prisma.False
|
|
1028
|
+
? {
|
|
1029
|
+
[P in HavingFields]: P extends ByFields
|
|
1030
|
+
? never
|
|
1031
|
+
: P extends string
|
|
1032
|
+
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
1033
|
+
: [
|
|
1034
|
+
Error,
|
|
1035
|
+
'Field ',
|
|
1036
|
+
P,
|
|
1037
|
+
` in "having" needs to be provided in "by"`,
|
|
1038
|
+
]
|
|
1039
|
+
}[HavingFields]
|
|
1040
|
+
: 'take' extends Prisma.Keys<T>
|
|
1041
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
1042
|
+
? ByValid extends Prisma.True
|
|
1043
|
+
? {}
|
|
1044
|
+
: {
|
|
1045
|
+
[P in OrderFields]: P extends ByFields
|
|
1046
|
+
? never
|
|
1047
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
1048
|
+
}[OrderFields]
|
|
1049
|
+
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
1050
|
+
: 'skip' extends Prisma.Keys<T>
|
|
1051
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
1052
|
+
? ByValid extends Prisma.True
|
|
1053
|
+
? {}
|
|
1054
|
+
: {
|
|
1055
|
+
[P in OrderFields]: P extends ByFields
|
|
1056
|
+
? never
|
|
1057
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
1058
|
+
}[OrderFields]
|
|
1059
|
+
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
1060
|
+
: ByValid extends Prisma.True
|
|
1061
|
+
? {}
|
|
1062
|
+
: {
|
|
1063
|
+
[P in OrderFields]: P extends ByFields
|
|
1064
|
+
? never
|
|
1065
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
1066
|
+
}[OrderFields]
|
|
1067
|
+
>(args: Prisma.SubsetIntersection<T, CustomRoleGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCustomRoleGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
1068
|
+
/**
|
|
1069
|
+
* Fields of the CustomRole model
|
|
1070
|
+
*/
|
|
1071
|
+
readonly fields: CustomRoleFieldRefs;
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
/**
|
|
1075
|
+
* The delegate class that acts as a "Promise-like" for CustomRole.
|
|
1076
|
+
* Why is this prefixed with `Prisma__`?
|
|
1077
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
1078
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
1079
|
+
*/
|
|
1080
|
+
export interface Prisma__CustomRoleClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
1081
|
+
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
1082
|
+
workspace<T extends Prisma.WorkspaceDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.WorkspaceDefaultArgs<ExtArgs>>): Prisma.Prisma__WorkspaceClient<runtime.Types.Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
1083
|
+
assignments<T extends Prisma.CustomRole$assignmentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.CustomRole$assignmentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RoleAssignmentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
1084
|
+
/**
|
|
1085
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1086
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
1087
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1088
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
1089
|
+
*/
|
|
1090
|
+
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>
|
|
1091
|
+
/**
|
|
1092
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
1093
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1094
|
+
* @returns A Promise for the completion of the callback.
|
|
1095
|
+
*/
|
|
1096
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
1097
|
+
/**
|
|
1098
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
1099
|
+
* resolved value cannot be modified from the callback.
|
|
1100
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
1101
|
+
* @returns A Promise for the completion of the callback.
|
|
1102
|
+
*/
|
|
1103
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
|
|
1107
|
+
|
|
1108
|
+
|
|
1109
|
+
/**
|
|
1110
|
+
* Fields of the CustomRole model
|
|
1111
|
+
*/
|
|
1112
|
+
export interface CustomRoleFieldRefs {
|
|
1113
|
+
readonly id: Prisma.FieldRef<"CustomRole", 'String'>
|
|
1114
|
+
readonly workspaceId: Prisma.FieldRef<"CustomRole", 'String'>
|
|
1115
|
+
readonly name: Prisma.FieldRef<"CustomRole", 'String'>
|
|
1116
|
+
readonly permissions: Prisma.FieldRef<"CustomRole", 'Json'>
|
|
1117
|
+
readonly isSystem: Prisma.FieldRef<"CustomRole", 'Boolean'>
|
|
1118
|
+
readonly createdAt: Prisma.FieldRef<"CustomRole", 'DateTime'>
|
|
1119
|
+
readonly updatedAt: Prisma.FieldRef<"CustomRole", 'DateTime'>
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
|
|
1123
|
+
// Custom InputTypes
|
|
1124
|
+
/**
|
|
1125
|
+
* CustomRole findUnique
|
|
1126
|
+
*/
|
|
1127
|
+
export type CustomRoleFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1128
|
+
/**
|
|
1129
|
+
* Select specific fields to fetch from the CustomRole
|
|
1130
|
+
*/
|
|
1131
|
+
select?: Prisma.CustomRoleSelect<ExtArgs> | null
|
|
1132
|
+
/**
|
|
1133
|
+
* Omit specific fields from the CustomRole
|
|
1134
|
+
*/
|
|
1135
|
+
omit?: Prisma.CustomRoleOmit<ExtArgs> | null
|
|
1136
|
+
/**
|
|
1137
|
+
* Choose, which related nodes to fetch as well
|
|
1138
|
+
*/
|
|
1139
|
+
include?: Prisma.CustomRoleInclude<ExtArgs> | null
|
|
1140
|
+
/**
|
|
1141
|
+
* Filter, which CustomRole to fetch.
|
|
1142
|
+
*/
|
|
1143
|
+
where: Prisma.CustomRoleWhereUniqueInput
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
/**
|
|
1147
|
+
* CustomRole findUniqueOrThrow
|
|
1148
|
+
*/
|
|
1149
|
+
export type CustomRoleFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1150
|
+
/**
|
|
1151
|
+
* Select specific fields to fetch from the CustomRole
|
|
1152
|
+
*/
|
|
1153
|
+
select?: Prisma.CustomRoleSelect<ExtArgs> | null
|
|
1154
|
+
/**
|
|
1155
|
+
* Omit specific fields from the CustomRole
|
|
1156
|
+
*/
|
|
1157
|
+
omit?: Prisma.CustomRoleOmit<ExtArgs> | null
|
|
1158
|
+
/**
|
|
1159
|
+
* Choose, which related nodes to fetch as well
|
|
1160
|
+
*/
|
|
1161
|
+
include?: Prisma.CustomRoleInclude<ExtArgs> | null
|
|
1162
|
+
/**
|
|
1163
|
+
* Filter, which CustomRole to fetch.
|
|
1164
|
+
*/
|
|
1165
|
+
where: Prisma.CustomRoleWhereUniqueInput
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
/**
|
|
1169
|
+
* CustomRole findFirst
|
|
1170
|
+
*/
|
|
1171
|
+
export type CustomRoleFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1172
|
+
/**
|
|
1173
|
+
* Select specific fields to fetch from the CustomRole
|
|
1174
|
+
*/
|
|
1175
|
+
select?: Prisma.CustomRoleSelect<ExtArgs> | null
|
|
1176
|
+
/**
|
|
1177
|
+
* Omit specific fields from the CustomRole
|
|
1178
|
+
*/
|
|
1179
|
+
omit?: Prisma.CustomRoleOmit<ExtArgs> | null
|
|
1180
|
+
/**
|
|
1181
|
+
* Choose, which related nodes to fetch as well
|
|
1182
|
+
*/
|
|
1183
|
+
include?: Prisma.CustomRoleInclude<ExtArgs> | null
|
|
1184
|
+
/**
|
|
1185
|
+
* Filter, which CustomRole to fetch.
|
|
1186
|
+
*/
|
|
1187
|
+
where?: Prisma.CustomRoleWhereInput
|
|
1188
|
+
/**
|
|
1189
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1190
|
+
*
|
|
1191
|
+
* Determine the order of CustomRoles to fetch.
|
|
1192
|
+
*/
|
|
1193
|
+
orderBy?: Prisma.CustomRoleOrderByWithRelationInput | Prisma.CustomRoleOrderByWithRelationInput[]
|
|
1194
|
+
/**
|
|
1195
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1196
|
+
*
|
|
1197
|
+
* Sets the position for searching for CustomRoles.
|
|
1198
|
+
*/
|
|
1199
|
+
cursor?: Prisma.CustomRoleWhereUniqueInput
|
|
1200
|
+
/**
|
|
1201
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1202
|
+
*
|
|
1203
|
+
* Take `±n` CustomRoles from the position of the cursor.
|
|
1204
|
+
*/
|
|
1205
|
+
take?: number
|
|
1206
|
+
/**
|
|
1207
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1208
|
+
*
|
|
1209
|
+
* Skip the first `n` CustomRoles.
|
|
1210
|
+
*/
|
|
1211
|
+
skip?: number
|
|
1212
|
+
/**
|
|
1213
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1214
|
+
*
|
|
1215
|
+
* Filter by unique combinations of CustomRoles.
|
|
1216
|
+
*/
|
|
1217
|
+
distinct?: Prisma.CustomRoleScalarFieldEnum | Prisma.CustomRoleScalarFieldEnum[]
|
|
1218
|
+
}
|
|
1219
|
+
|
|
1220
|
+
/**
|
|
1221
|
+
* CustomRole findFirstOrThrow
|
|
1222
|
+
*/
|
|
1223
|
+
export type CustomRoleFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1224
|
+
/**
|
|
1225
|
+
* Select specific fields to fetch from the CustomRole
|
|
1226
|
+
*/
|
|
1227
|
+
select?: Prisma.CustomRoleSelect<ExtArgs> | null
|
|
1228
|
+
/**
|
|
1229
|
+
* Omit specific fields from the CustomRole
|
|
1230
|
+
*/
|
|
1231
|
+
omit?: Prisma.CustomRoleOmit<ExtArgs> | null
|
|
1232
|
+
/**
|
|
1233
|
+
* Choose, which related nodes to fetch as well
|
|
1234
|
+
*/
|
|
1235
|
+
include?: Prisma.CustomRoleInclude<ExtArgs> | null
|
|
1236
|
+
/**
|
|
1237
|
+
* Filter, which CustomRole to fetch.
|
|
1238
|
+
*/
|
|
1239
|
+
where?: Prisma.CustomRoleWhereInput
|
|
1240
|
+
/**
|
|
1241
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1242
|
+
*
|
|
1243
|
+
* Determine the order of CustomRoles to fetch.
|
|
1244
|
+
*/
|
|
1245
|
+
orderBy?: Prisma.CustomRoleOrderByWithRelationInput | Prisma.CustomRoleOrderByWithRelationInput[]
|
|
1246
|
+
/**
|
|
1247
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1248
|
+
*
|
|
1249
|
+
* Sets the position for searching for CustomRoles.
|
|
1250
|
+
*/
|
|
1251
|
+
cursor?: Prisma.CustomRoleWhereUniqueInput
|
|
1252
|
+
/**
|
|
1253
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1254
|
+
*
|
|
1255
|
+
* Take `±n` CustomRoles from the position of the cursor.
|
|
1256
|
+
*/
|
|
1257
|
+
take?: number
|
|
1258
|
+
/**
|
|
1259
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1260
|
+
*
|
|
1261
|
+
* Skip the first `n` CustomRoles.
|
|
1262
|
+
*/
|
|
1263
|
+
skip?: number
|
|
1264
|
+
/**
|
|
1265
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1266
|
+
*
|
|
1267
|
+
* Filter by unique combinations of CustomRoles.
|
|
1268
|
+
*/
|
|
1269
|
+
distinct?: Prisma.CustomRoleScalarFieldEnum | Prisma.CustomRoleScalarFieldEnum[]
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
/**
|
|
1273
|
+
* CustomRole findMany
|
|
1274
|
+
*/
|
|
1275
|
+
export type CustomRoleFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1276
|
+
/**
|
|
1277
|
+
* Select specific fields to fetch from the CustomRole
|
|
1278
|
+
*/
|
|
1279
|
+
select?: Prisma.CustomRoleSelect<ExtArgs> | null
|
|
1280
|
+
/**
|
|
1281
|
+
* Omit specific fields from the CustomRole
|
|
1282
|
+
*/
|
|
1283
|
+
omit?: Prisma.CustomRoleOmit<ExtArgs> | null
|
|
1284
|
+
/**
|
|
1285
|
+
* Choose, which related nodes to fetch as well
|
|
1286
|
+
*/
|
|
1287
|
+
include?: Prisma.CustomRoleInclude<ExtArgs> | null
|
|
1288
|
+
/**
|
|
1289
|
+
* Filter, which CustomRoles to fetch.
|
|
1290
|
+
*/
|
|
1291
|
+
where?: Prisma.CustomRoleWhereInput
|
|
1292
|
+
/**
|
|
1293
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1294
|
+
*
|
|
1295
|
+
* Determine the order of CustomRoles to fetch.
|
|
1296
|
+
*/
|
|
1297
|
+
orderBy?: Prisma.CustomRoleOrderByWithRelationInput | Prisma.CustomRoleOrderByWithRelationInput[]
|
|
1298
|
+
/**
|
|
1299
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1300
|
+
*
|
|
1301
|
+
* Sets the position for listing CustomRoles.
|
|
1302
|
+
*/
|
|
1303
|
+
cursor?: Prisma.CustomRoleWhereUniqueInput
|
|
1304
|
+
/**
|
|
1305
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1306
|
+
*
|
|
1307
|
+
* Take `±n` CustomRoles from the position of the cursor.
|
|
1308
|
+
*/
|
|
1309
|
+
take?: number
|
|
1310
|
+
/**
|
|
1311
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1312
|
+
*
|
|
1313
|
+
* Skip the first `n` CustomRoles.
|
|
1314
|
+
*/
|
|
1315
|
+
skip?: number
|
|
1316
|
+
/**
|
|
1317
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1318
|
+
*
|
|
1319
|
+
* Filter by unique combinations of CustomRoles.
|
|
1320
|
+
*/
|
|
1321
|
+
distinct?: Prisma.CustomRoleScalarFieldEnum | Prisma.CustomRoleScalarFieldEnum[]
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
/**
|
|
1325
|
+
* CustomRole create
|
|
1326
|
+
*/
|
|
1327
|
+
export type CustomRoleCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1328
|
+
/**
|
|
1329
|
+
* Select specific fields to fetch from the CustomRole
|
|
1330
|
+
*/
|
|
1331
|
+
select?: Prisma.CustomRoleSelect<ExtArgs> | null
|
|
1332
|
+
/**
|
|
1333
|
+
* Omit specific fields from the CustomRole
|
|
1334
|
+
*/
|
|
1335
|
+
omit?: Prisma.CustomRoleOmit<ExtArgs> | null
|
|
1336
|
+
/**
|
|
1337
|
+
* Choose, which related nodes to fetch as well
|
|
1338
|
+
*/
|
|
1339
|
+
include?: Prisma.CustomRoleInclude<ExtArgs> | null
|
|
1340
|
+
/**
|
|
1341
|
+
* The data needed to create a CustomRole.
|
|
1342
|
+
*/
|
|
1343
|
+
data: Prisma.XOR<Prisma.CustomRoleCreateInput, Prisma.CustomRoleUncheckedCreateInput>
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
/**
|
|
1347
|
+
* CustomRole createMany
|
|
1348
|
+
*/
|
|
1349
|
+
export type CustomRoleCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1350
|
+
/**
|
|
1351
|
+
* The data used to create many CustomRoles.
|
|
1352
|
+
*/
|
|
1353
|
+
data: Prisma.CustomRoleCreateManyInput | Prisma.CustomRoleCreateManyInput[]
|
|
1354
|
+
skipDuplicates?: boolean
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1357
|
+
/**
|
|
1358
|
+
* CustomRole createManyAndReturn
|
|
1359
|
+
*/
|
|
1360
|
+
export type CustomRoleCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1361
|
+
/**
|
|
1362
|
+
* Select specific fields to fetch from the CustomRole
|
|
1363
|
+
*/
|
|
1364
|
+
select?: Prisma.CustomRoleSelectCreateManyAndReturn<ExtArgs> | null
|
|
1365
|
+
/**
|
|
1366
|
+
* Omit specific fields from the CustomRole
|
|
1367
|
+
*/
|
|
1368
|
+
omit?: Prisma.CustomRoleOmit<ExtArgs> | null
|
|
1369
|
+
/**
|
|
1370
|
+
* The data used to create many CustomRoles.
|
|
1371
|
+
*/
|
|
1372
|
+
data: Prisma.CustomRoleCreateManyInput | Prisma.CustomRoleCreateManyInput[]
|
|
1373
|
+
skipDuplicates?: boolean
|
|
1374
|
+
/**
|
|
1375
|
+
* Choose, which related nodes to fetch as well
|
|
1376
|
+
*/
|
|
1377
|
+
include?: Prisma.CustomRoleIncludeCreateManyAndReturn<ExtArgs> | null
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
/**
|
|
1381
|
+
* CustomRole update
|
|
1382
|
+
*/
|
|
1383
|
+
export type CustomRoleUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1384
|
+
/**
|
|
1385
|
+
* Select specific fields to fetch from the CustomRole
|
|
1386
|
+
*/
|
|
1387
|
+
select?: Prisma.CustomRoleSelect<ExtArgs> | null
|
|
1388
|
+
/**
|
|
1389
|
+
* Omit specific fields from the CustomRole
|
|
1390
|
+
*/
|
|
1391
|
+
omit?: Prisma.CustomRoleOmit<ExtArgs> | null
|
|
1392
|
+
/**
|
|
1393
|
+
* Choose, which related nodes to fetch as well
|
|
1394
|
+
*/
|
|
1395
|
+
include?: Prisma.CustomRoleInclude<ExtArgs> | null
|
|
1396
|
+
/**
|
|
1397
|
+
* The data needed to update a CustomRole.
|
|
1398
|
+
*/
|
|
1399
|
+
data: Prisma.XOR<Prisma.CustomRoleUpdateInput, Prisma.CustomRoleUncheckedUpdateInput>
|
|
1400
|
+
/**
|
|
1401
|
+
* Choose, which CustomRole to update.
|
|
1402
|
+
*/
|
|
1403
|
+
where: Prisma.CustomRoleWhereUniqueInput
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1406
|
+
/**
|
|
1407
|
+
* CustomRole updateMany
|
|
1408
|
+
*/
|
|
1409
|
+
export type CustomRoleUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1410
|
+
/**
|
|
1411
|
+
* The data used to update CustomRoles.
|
|
1412
|
+
*/
|
|
1413
|
+
data: Prisma.XOR<Prisma.CustomRoleUpdateManyMutationInput, Prisma.CustomRoleUncheckedUpdateManyInput>
|
|
1414
|
+
/**
|
|
1415
|
+
* Filter which CustomRoles to update
|
|
1416
|
+
*/
|
|
1417
|
+
where?: Prisma.CustomRoleWhereInput
|
|
1418
|
+
/**
|
|
1419
|
+
* Limit how many CustomRoles to update.
|
|
1420
|
+
*/
|
|
1421
|
+
limit?: number
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1424
|
+
/**
|
|
1425
|
+
* CustomRole updateManyAndReturn
|
|
1426
|
+
*/
|
|
1427
|
+
export type CustomRoleUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1428
|
+
/**
|
|
1429
|
+
* Select specific fields to fetch from the CustomRole
|
|
1430
|
+
*/
|
|
1431
|
+
select?: Prisma.CustomRoleSelectUpdateManyAndReturn<ExtArgs> | null
|
|
1432
|
+
/**
|
|
1433
|
+
* Omit specific fields from the CustomRole
|
|
1434
|
+
*/
|
|
1435
|
+
omit?: Prisma.CustomRoleOmit<ExtArgs> | null
|
|
1436
|
+
/**
|
|
1437
|
+
* The data used to update CustomRoles.
|
|
1438
|
+
*/
|
|
1439
|
+
data: Prisma.XOR<Prisma.CustomRoleUpdateManyMutationInput, Prisma.CustomRoleUncheckedUpdateManyInput>
|
|
1440
|
+
/**
|
|
1441
|
+
* Filter which CustomRoles to update
|
|
1442
|
+
*/
|
|
1443
|
+
where?: Prisma.CustomRoleWhereInput
|
|
1444
|
+
/**
|
|
1445
|
+
* Limit how many CustomRoles to update.
|
|
1446
|
+
*/
|
|
1447
|
+
limit?: number
|
|
1448
|
+
/**
|
|
1449
|
+
* Choose, which related nodes to fetch as well
|
|
1450
|
+
*/
|
|
1451
|
+
include?: Prisma.CustomRoleIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1454
|
+
/**
|
|
1455
|
+
* CustomRole upsert
|
|
1456
|
+
*/
|
|
1457
|
+
export type CustomRoleUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1458
|
+
/**
|
|
1459
|
+
* Select specific fields to fetch from the CustomRole
|
|
1460
|
+
*/
|
|
1461
|
+
select?: Prisma.CustomRoleSelect<ExtArgs> | null
|
|
1462
|
+
/**
|
|
1463
|
+
* Omit specific fields from the CustomRole
|
|
1464
|
+
*/
|
|
1465
|
+
omit?: Prisma.CustomRoleOmit<ExtArgs> | null
|
|
1466
|
+
/**
|
|
1467
|
+
* Choose, which related nodes to fetch as well
|
|
1468
|
+
*/
|
|
1469
|
+
include?: Prisma.CustomRoleInclude<ExtArgs> | null
|
|
1470
|
+
/**
|
|
1471
|
+
* The filter to search for the CustomRole to update in case it exists.
|
|
1472
|
+
*/
|
|
1473
|
+
where: Prisma.CustomRoleWhereUniqueInput
|
|
1474
|
+
/**
|
|
1475
|
+
* In case the CustomRole found by the `where` argument doesn't exist, create a new CustomRole with this data.
|
|
1476
|
+
*/
|
|
1477
|
+
create: Prisma.XOR<Prisma.CustomRoleCreateInput, Prisma.CustomRoleUncheckedCreateInput>
|
|
1478
|
+
/**
|
|
1479
|
+
* In case the CustomRole was found with the provided `where` argument, update it with this data.
|
|
1480
|
+
*/
|
|
1481
|
+
update: Prisma.XOR<Prisma.CustomRoleUpdateInput, Prisma.CustomRoleUncheckedUpdateInput>
|
|
1482
|
+
}
|
|
1483
|
+
|
|
1484
|
+
/**
|
|
1485
|
+
* CustomRole delete
|
|
1486
|
+
*/
|
|
1487
|
+
export type CustomRoleDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1488
|
+
/**
|
|
1489
|
+
* Select specific fields to fetch from the CustomRole
|
|
1490
|
+
*/
|
|
1491
|
+
select?: Prisma.CustomRoleSelect<ExtArgs> | null
|
|
1492
|
+
/**
|
|
1493
|
+
* Omit specific fields from the CustomRole
|
|
1494
|
+
*/
|
|
1495
|
+
omit?: Prisma.CustomRoleOmit<ExtArgs> | null
|
|
1496
|
+
/**
|
|
1497
|
+
* Choose, which related nodes to fetch as well
|
|
1498
|
+
*/
|
|
1499
|
+
include?: Prisma.CustomRoleInclude<ExtArgs> | null
|
|
1500
|
+
/**
|
|
1501
|
+
* Filter which CustomRole to delete.
|
|
1502
|
+
*/
|
|
1503
|
+
where: Prisma.CustomRoleWhereUniqueInput
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
/**
|
|
1507
|
+
* CustomRole deleteMany
|
|
1508
|
+
*/
|
|
1509
|
+
export type CustomRoleDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1510
|
+
/**
|
|
1511
|
+
* Filter which CustomRoles to delete
|
|
1512
|
+
*/
|
|
1513
|
+
where?: Prisma.CustomRoleWhereInput
|
|
1514
|
+
/**
|
|
1515
|
+
* Limit how many CustomRoles to delete.
|
|
1516
|
+
*/
|
|
1517
|
+
limit?: number
|
|
1518
|
+
}
|
|
1519
|
+
|
|
1520
|
+
/**
|
|
1521
|
+
* CustomRole.assignments
|
|
1522
|
+
*/
|
|
1523
|
+
export type CustomRole$assignmentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1524
|
+
/**
|
|
1525
|
+
* Select specific fields to fetch from the RoleAssignment
|
|
1526
|
+
*/
|
|
1527
|
+
select?: Prisma.RoleAssignmentSelect<ExtArgs> | null
|
|
1528
|
+
/**
|
|
1529
|
+
* Omit specific fields from the RoleAssignment
|
|
1530
|
+
*/
|
|
1531
|
+
omit?: Prisma.RoleAssignmentOmit<ExtArgs> | null
|
|
1532
|
+
/**
|
|
1533
|
+
* Choose, which related nodes to fetch as well
|
|
1534
|
+
*/
|
|
1535
|
+
include?: Prisma.RoleAssignmentInclude<ExtArgs> | null
|
|
1536
|
+
where?: Prisma.RoleAssignmentWhereInput
|
|
1537
|
+
orderBy?: Prisma.RoleAssignmentOrderByWithRelationInput | Prisma.RoleAssignmentOrderByWithRelationInput[]
|
|
1538
|
+
cursor?: Prisma.RoleAssignmentWhereUniqueInput
|
|
1539
|
+
take?: number
|
|
1540
|
+
skip?: number
|
|
1541
|
+
distinct?: Prisma.RoleAssignmentScalarFieldEnum | Prisma.RoleAssignmentScalarFieldEnum[]
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1544
|
+
/**
|
|
1545
|
+
* CustomRole without action
|
|
1546
|
+
*/
|
|
1547
|
+
export type CustomRoleDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1548
|
+
/**
|
|
1549
|
+
* Select specific fields to fetch from the CustomRole
|
|
1550
|
+
*/
|
|
1551
|
+
select?: Prisma.CustomRoleSelect<ExtArgs> | null
|
|
1552
|
+
/**
|
|
1553
|
+
* Omit specific fields from the CustomRole
|
|
1554
|
+
*/
|
|
1555
|
+
omit?: Prisma.CustomRoleOmit<ExtArgs> | null
|
|
1556
|
+
/**
|
|
1557
|
+
* Choose, which related nodes to fetch as well
|
|
1558
|
+
*/
|
|
1559
|
+
include?: Prisma.CustomRoleInclude<ExtArgs> | null
|
|
1560
|
+
}
|