@valentine-efagene/qshelter-common 2.0.51 → 2.0.53
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/dist/src/middleware/tenant.js +3 -3
- package/package.json +1 -1
- package/dist/generated/client/models/ContractPhaseStep.d.ts +0 -1819
- package/dist/generated/client/models/ContractPhaseStep.js +0 -1
- package/dist/generated/client/models/ContractPhaseStepApproval.d.ts +0 -1253
- package/dist/generated/client/models/ContractPhaseStepApproval.js +0 -1
- package/dist/generated/client/models/ContractPhaseStepDocument.d.ts +0 -1052
- package/dist/generated/client/models/ContractPhaseStepDocument.js +0 -1
- package/dist/generated/client/models/Mortgage.d.ts +0 -2777
- package/dist/generated/client/models/Mortgage.js +0 -1
- package/dist/generated/client/models/MortgageDocument.d.ts +0 -1118
- package/dist/generated/client/models/MortgageDocument.js +0 -1
- package/dist/generated/client/models/MortgageDownpaymentInstallment.d.ts +0 -1189
- package/dist/generated/client/models/MortgageDownpaymentInstallment.js +0 -1
- package/dist/generated/client/models/MortgageDownpaymentPayment.d.ts +0 -1189
- package/dist/generated/client/models/MortgageDownpaymentPayment.js +0 -1
- package/dist/generated/client/models/MortgageDownpaymentPlan.d.ts +0 -1428
- package/dist/generated/client/models/MortgageDownpaymentPlan.js +0 -1
- package/dist/generated/client/models/MortgageStep.d.ts +0 -1222
- package/dist/generated/client/models/MortgageStep.js +0 -1
- package/dist/generated/client/models/MortgageTransition.d.ts +0 -1118
- package/dist/generated/client/models/MortgageTransition.js +0 -1
- package/dist/generated/client/models/MortgageTransitionEvent.d.ts +0 -1052
- package/dist/generated/client/models/MortgageTransitionEvent.js +0 -1
- package/dist/generated/client/models/MortgageType.d.ts +0 -1052
- package/dist/generated/client/models/MortgageType.js +0 -1
- package/dist/generated/client/models/Payment.d.ts +0 -2026
- package/dist/generated/client/models/Payment.js +0 -1
- package/dist/generated/client/models/PaymentInstallment.d.ts +0 -1539
- package/dist/generated/client/models/PaymentInstallment.js +0 -1
- package/dist/generated/client/models/PaymentSchedule.d.ts +0 -1450
- package/dist/generated/client/models/PaymentSchedule.js +0 -1
- package/dist/index.d.ts +0 -6
- package/dist/index.js +0 -6
- package/dist/src/generated/client/client.d.ts +0 -201
- package/dist/src/generated/client/client.js +0 -32
- package/dist/src/generated/client/commonInputTypes.d.ts +0 -403
- package/dist/src/generated/client/commonInputTypes.js +0 -10
- package/dist/src/generated/client/enums.d.ts +0 -1
- package/dist/src/generated/client/enums.js +0 -10
- package/dist/src/generated/client/internal/class.d.ts +0 -511
- package/dist/src/generated/client/internal/class.js +0 -40
- package/dist/src/generated/client/internal/prismaNamespace.d.ts +0 -3571
- package/dist/src/generated/client/internal/prismaNamespace.js +0 -739
- package/dist/src/generated/client/models/Amenity.d.ts +0 -1020
- package/dist/src/generated/client/models/Amenity.js +0 -1
- package/dist/src/generated/client/models/Contract.d.ts +0 -2099
- package/dist/src/generated/client/models/Contract.js +0 -1
- package/dist/src/generated/client/models/ContractDocument.d.ts +0 -1118
- package/dist/src/generated/client/models/ContractDocument.js +0 -1
- package/dist/src/generated/client/models/DeviceEndpoint.d.ts +0 -1118
- package/dist/src/generated/client/models/DeviceEndpoint.js +0 -1
- package/dist/src/generated/client/models/EmailPreference.d.ts +0 -1151
- package/dist/src/generated/client/models/EmailPreference.js +0 -1
- package/dist/src/generated/client/models/Mortgage.d.ts +0 -2777
- package/dist/src/generated/client/models/Mortgage.js +0 -1
- package/dist/src/generated/client/models/MortgageDocument.d.ts +0 -1118
- package/dist/src/generated/client/models/MortgageDocument.js +0 -1
- package/dist/src/generated/client/models/MortgageDownpaymentInstallment.d.ts +0 -1189
- package/dist/src/generated/client/models/MortgageDownpaymentInstallment.js +0 -1
- package/dist/src/generated/client/models/MortgageDownpaymentPayment.d.ts +0 -1189
- package/dist/src/generated/client/models/MortgageDownpaymentPayment.js +0 -1
- package/dist/src/generated/client/models/MortgageDownpaymentPlan.d.ts +0 -1428
- package/dist/src/generated/client/models/MortgageDownpaymentPlan.js +0 -1
- package/dist/src/generated/client/models/MortgageStep.d.ts +0 -1222
- package/dist/src/generated/client/models/MortgageStep.js +0 -1
- package/dist/src/generated/client/models/MortgageTransition.d.ts +0 -1118
- package/dist/src/generated/client/models/MortgageTransition.js +0 -1
- package/dist/src/generated/client/models/MortgageTransitionEvent.d.ts +0 -1052
- package/dist/src/generated/client/models/MortgageTransitionEvent.js +0 -1
- package/dist/src/generated/client/models/MortgageType.d.ts +0 -1052
- package/dist/src/generated/client/models/MortgageType.js +0 -1
- package/dist/src/generated/client/models/OAuthState.d.ts +0 -864
- package/dist/src/generated/client/models/OAuthState.js +0 -1
- package/dist/src/generated/client/models/PasswordReset.d.ts +0 -1085
- package/dist/src/generated/client/models/PasswordReset.js +0 -1
- package/dist/src/generated/client/models/Payment.d.ts +0 -2026
- package/dist/src/generated/client/models/Payment.js +0 -1
- package/dist/src/generated/client/models/PaymentInstallment.d.ts +0 -1539
- package/dist/src/generated/client/models/PaymentInstallment.js +0 -1
- package/dist/src/generated/client/models/PaymentPlan.d.ts +0 -2148
- package/dist/src/generated/client/models/PaymentPlan.js +0 -1
- package/dist/src/generated/client/models/PaymentSchedule.d.ts +0 -1450
- package/dist/src/generated/client/models/PaymentSchedule.js +0 -1
- package/dist/src/generated/client/models/Permission.d.ts +0 -1115
- package/dist/src/generated/client/models/Permission.js +0 -1
- package/dist/src/generated/client/models/Property.d.ts +0 -3254
- package/dist/src/generated/client/models/Property.js +0 -1
- package/dist/src/generated/client/models/PropertyAmenity.d.ts +0 -1080
- package/dist/src/generated/client/models/PropertyAmenity.js +0 -1
- package/dist/src/generated/client/models/PropertyDocument.d.ts +0 -1118
- package/dist/src/generated/client/models/PropertyDocument.js +0 -1
- package/dist/src/generated/client/models/PropertyMedia.d.ts +0 -1331
- package/dist/src/generated/client/models/PropertyMedia.js +0 -1
- package/dist/src/generated/client/models/RefreshToken.d.ts +0 -1085
- package/dist/src/generated/client/models/RefreshToken.js +0 -1
- package/dist/src/generated/client/models/Role.d.ts +0 -1153
- package/dist/src/generated/client/models/Role.js +0 -1
- package/dist/src/generated/client/models/RolePermission.d.ts +0 -1080
- package/dist/src/generated/client/models/RolePermission.js +0 -1
- package/dist/src/generated/client/models/Settings.d.ts +0 -916
- package/dist/src/generated/client/models/Settings.js +0 -1
- package/dist/src/generated/client/models/Social.d.ts +0 -1090
- package/dist/src/generated/client/models/Social.js +0 -1
- package/dist/src/generated/client/models/Tenant.d.ts +0 -1082
- package/dist/src/generated/client/models/Tenant.js +0 -1
- package/dist/src/generated/client/models/Transaction.d.ts +0 -1222
- package/dist/src/generated/client/models/Transaction.js +0 -1
- package/dist/src/generated/client/models/User.d.ts +0 -4239
- package/dist/src/generated/client/models/User.js +0 -1
- package/dist/src/generated/client/models/UserRole.d.ts +0 -1080
- package/dist/src/generated/client/models/UserRole.js +0 -1
- package/dist/src/generated/client/models/UserSuspension.d.ts +0 -1085
- package/dist/src/generated/client/models/UserSuspension.js +0 -1
- package/dist/src/generated/client/models/Wallet.d.ts +0 -1191
- package/dist/src/generated/client/models/Wallet.js +0 -1
- package/dist/src/generated/client/models.d.ts +0 -37
- package/dist/src/generated/client/models.js +0 -1
|
@@ -1,1153 +0,0 @@
|
|
|
1
|
-
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
|
-
import type * as Prisma from "../internal/prismaNamespace.js";
|
|
3
|
-
/**
|
|
4
|
-
* Model Role
|
|
5
|
-
*
|
|
6
|
-
*/
|
|
7
|
-
export type RoleModel = runtime.Types.Result.DefaultSelection<Prisma.$RolePayload>;
|
|
8
|
-
export type AggregateRole = {
|
|
9
|
-
_count: RoleCountAggregateOutputType | null;
|
|
10
|
-
_min: RoleMinAggregateOutputType | null;
|
|
11
|
-
_max: RoleMaxAggregateOutputType | null;
|
|
12
|
-
};
|
|
13
|
-
export type RoleMinAggregateOutputType = {
|
|
14
|
-
id: string | null;
|
|
15
|
-
name: string | null;
|
|
16
|
-
description: string | null;
|
|
17
|
-
createdAt: Date | null;
|
|
18
|
-
updatedAt: Date | null;
|
|
19
|
-
};
|
|
20
|
-
export type RoleMaxAggregateOutputType = {
|
|
21
|
-
id: string | null;
|
|
22
|
-
name: string | null;
|
|
23
|
-
description: string | null;
|
|
24
|
-
createdAt: Date | null;
|
|
25
|
-
updatedAt: Date | null;
|
|
26
|
-
};
|
|
27
|
-
export type RoleCountAggregateOutputType = {
|
|
28
|
-
id: number;
|
|
29
|
-
name: number;
|
|
30
|
-
description: number;
|
|
31
|
-
createdAt: number;
|
|
32
|
-
updatedAt: number;
|
|
33
|
-
_all: number;
|
|
34
|
-
};
|
|
35
|
-
export type RoleMinAggregateInputType = {
|
|
36
|
-
id?: true;
|
|
37
|
-
name?: true;
|
|
38
|
-
description?: true;
|
|
39
|
-
createdAt?: true;
|
|
40
|
-
updatedAt?: true;
|
|
41
|
-
};
|
|
42
|
-
export type RoleMaxAggregateInputType = {
|
|
43
|
-
id?: true;
|
|
44
|
-
name?: true;
|
|
45
|
-
description?: true;
|
|
46
|
-
createdAt?: true;
|
|
47
|
-
updatedAt?: true;
|
|
48
|
-
};
|
|
49
|
-
export type RoleCountAggregateInputType = {
|
|
50
|
-
id?: true;
|
|
51
|
-
name?: true;
|
|
52
|
-
description?: true;
|
|
53
|
-
createdAt?: true;
|
|
54
|
-
updatedAt?: true;
|
|
55
|
-
_all?: true;
|
|
56
|
-
};
|
|
57
|
-
export type RoleAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
58
|
-
/**
|
|
59
|
-
* Filter which Role to aggregate.
|
|
60
|
-
*/
|
|
61
|
-
where?: Prisma.RoleWhereInput;
|
|
62
|
-
/**
|
|
63
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
64
|
-
*
|
|
65
|
-
* Determine the order of Roles to fetch.
|
|
66
|
-
*/
|
|
67
|
-
orderBy?: Prisma.RoleOrderByWithRelationInput | Prisma.RoleOrderByWithRelationInput[];
|
|
68
|
-
/**
|
|
69
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
70
|
-
*
|
|
71
|
-
* Sets the start position
|
|
72
|
-
*/
|
|
73
|
-
cursor?: Prisma.RoleWhereUniqueInput;
|
|
74
|
-
/**
|
|
75
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
76
|
-
*
|
|
77
|
-
* Take `±n` Roles from the position of the cursor.
|
|
78
|
-
*/
|
|
79
|
-
take?: number;
|
|
80
|
-
/**
|
|
81
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
82
|
-
*
|
|
83
|
-
* Skip the first `n` Roles.
|
|
84
|
-
*/
|
|
85
|
-
skip?: number;
|
|
86
|
-
/**
|
|
87
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
88
|
-
*
|
|
89
|
-
* Count returned Roles
|
|
90
|
-
**/
|
|
91
|
-
_count?: true | RoleCountAggregateInputType;
|
|
92
|
-
/**
|
|
93
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
94
|
-
*
|
|
95
|
-
* Select which fields to find the minimum value
|
|
96
|
-
**/
|
|
97
|
-
_min?: RoleMinAggregateInputType;
|
|
98
|
-
/**
|
|
99
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
100
|
-
*
|
|
101
|
-
* Select which fields to find the maximum value
|
|
102
|
-
**/
|
|
103
|
-
_max?: RoleMaxAggregateInputType;
|
|
104
|
-
};
|
|
105
|
-
export type GetRoleAggregateType<T extends RoleAggregateArgs> = {
|
|
106
|
-
[P in keyof T & keyof AggregateRole]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateRole[P]> : Prisma.GetScalarType<T[P], AggregateRole[P]>;
|
|
107
|
-
};
|
|
108
|
-
export type RoleGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
109
|
-
where?: Prisma.RoleWhereInput;
|
|
110
|
-
orderBy?: Prisma.RoleOrderByWithAggregationInput | Prisma.RoleOrderByWithAggregationInput[];
|
|
111
|
-
by: Prisma.RoleScalarFieldEnum[] | Prisma.RoleScalarFieldEnum;
|
|
112
|
-
having?: Prisma.RoleScalarWhereWithAggregatesInput;
|
|
113
|
-
take?: number;
|
|
114
|
-
skip?: number;
|
|
115
|
-
_count?: RoleCountAggregateInputType | true;
|
|
116
|
-
_min?: RoleMinAggregateInputType;
|
|
117
|
-
_max?: RoleMaxAggregateInputType;
|
|
118
|
-
};
|
|
119
|
-
export type RoleGroupByOutputType = {
|
|
120
|
-
id: string;
|
|
121
|
-
name: string;
|
|
122
|
-
description: string | null;
|
|
123
|
-
createdAt: Date;
|
|
124
|
-
updatedAt: Date;
|
|
125
|
-
_count: RoleCountAggregateOutputType | null;
|
|
126
|
-
_min: RoleMinAggregateOutputType | null;
|
|
127
|
-
_max: RoleMaxAggregateOutputType | null;
|
|
128
|
-
};
|
|
129
|
-
type GetRoleGroupByPayload<T extends RoleGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<RoleGroupByOutputType, T['by']> & {
|
|
130
|
-
[P in ((keyof T) & (keyof RoleGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], RoleGroupByOutputType[P]> : Prisma.GetScalarType<T[P], RoleGroupByOutputType[P]>;
|
|
131
|
-
}>>;
|
|
132
|
-
export type RoleWhereInput = {
|
|
133
|
-
AND?: Prisma.RoleWhereInput | Prisma.RoleWhereInput[];
|
|
134
|
-
OR?: Prisma.RoleWhereInput[];
|
|
135
|
-
NOT?: Prisma.RoleWhereInput | Prisma.RoleWhereInput[];
|
|
136
|
-
id?: Prisma.StringFilter<"Role"> | string;
|
|
137
|
-
name?: Prisma.StringFilter<"Role"> | string;
|
|
138
|
-
description?: Prisma.StringNullableFilter<"Role"> | string | null;
|
|
139
|
-
createdAt?: Prisma.DateTimeFilter<"Role"> | Date | string;
|
|
140
|
-
updatedAt?: Prisma.DateTimeFilter<"Role"> | Date | string;
|
|
141
|
-
userRoles?: Prisma.UserRoleListRelationFilter;
|
|
142
|
-
permissions?: Prisma.RolePermissionListRelationFilter;
|
|
143
|
-
};
|
|
144
|
-
export type RoleOrderByWithRelationInput = {
|
|
145
|
-
id?: Prisma.SortOrder;
|
|
146
|
-
name?: Prisma.SortOrder;
|
|
147
|
-
description?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
148
|
-
createdAt?: Prisma.SortOrder;
|
|
149
|
-
updatedAt?: Prisma.SortOrder;
|
|
150
|
-
userRoles?: Prisma.UserRoleOrderByRelationAggregateInput;
|
|
151
|
-
permissions?: Prisma.RolePermissionOrderByRelationAggregateInput;
|
|
152
|
-
_relevance?: Prisma.RoleOrderByRelevanceInput;
|
|
153
|
-
};
|
|
154
|
-
export type RoleWhereUniqueInput = Prisma.AtLeast<{
|
|
155
|
-
id?: string;
|
|
156
|
-
name?: string;
|
|
157
|
-
AND?: Prisma.RoleWhereInput | Prisma.RoleWhereInput[];
|
|
158
|
-
OR?: Prisma.RoleWhereInput[];
|
|
159
|
-
NOT?: Prisma.RoleWhereInput | Prisma.RoleWhereInput[];
|
|
160
|
-
description?: Prisma.StringNullableFilter<"Role"> | string | null;
|
|
161
|
-
createdAt?: Prisma.DateTimeFilter<"Role"> | Date | string;
|
|
162
|
-
updatedAt?: Prisma.DateTimeFilter<"Role"> | Date | string;
|
|
163
|
-
userRoles?: Prisma.UserRoleListRelationFilter;
|
|
164
|
-
permissions?: Prisma.RolePermissionListRelationFilter;
|
|
165
|
-
}, "id" | "name">;
|
|
166
|
-
export type RoleOrderByWithAggregationInput = {
|
|
167
|
-
id?: Prisma.SortOrder;
|
|
168
|
-
name?: Prisma.SortOrder;
|
|
169
|
-
description?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
170
|
-
createdAt?: Prisma.SortOrder;
|
|
171
|
-
updatedAt?: Prisma.SortOrder;
|
|
172
|
-
_count?: Prisma.RoleCountOrderByAggregateInput;
|
|
173
|
-
_max?: Prisma.RoleMaxOrderByAggregateInput;
|
|
174
|
-
_min?: Prisma.RoleMinOrderByAggregateInput;
|
|
175
|
-
};
|
|
176
|
-
export type RoleScalarWhereWithAggregatesInput = {
|
|
177
|
-
AND?: Prisma.RoleScalarWhereWithAggregatesInput | Prisma.RoleScalarWhereWithAggregatesInput[];
|
|
178
|
-
OR?: Prisma.RoleScalarWhereWithAggregatesInput[];
|
|
179
|
-
NOT?: Prisma.RoleScalarWhereWithAggregatesInput | Prisma.RoleScalarWhereWithAggregatesInput[];
|
|
180
|
-
id?: Prisma.StringWithAggregatesFilter<"Role"> | string;
|
|
181
|
-
name?: Prisma.StringWithAggregatesFilter<"Role"> | string;
|
|
182
|
-
description?: Prisma.StringNullableWithAggregatesFilter<"Role"> | string | null;
|
|
183
|
-
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Role"> | Date | string;
|
|
184
|
-
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Role"> | Date | string;
|
|
185
|
-
};
|
|
186
|
-
export type RoleCreateInput = {
|
|
187
|
-
id?: string;
|
|
188
|
-
name: string;
|
|
189
|
-
description?: string | null;
|
|
190
|
-
createdAt?: Date | string;
|
|
191
|
-
updatedAt?: Date | string;
|
|
192
|
-
userRoles?: Prisma.UserRoleCreateNestedManyWithoutRoleInput;
|
|
193
|
-
permissions?: Prisma.RolePermissionCreateNestedManyWithoutRoleInput;
|
|
194
|
-
};
|
|
195
|
-
export type RoleUncheckedCreateInput = {
|
|
196
|
-
id?: string;
|
|
197
|
-
name: string;
|
|
198
|
-
description?: string | null;
|
|
199
|
-
createdAt?: Date | string;
|
|
200
|
-
updatedAt?: Date | string;
|
|
201
|
-
userRoles?: Prisma.UserRoleUncheckedCreateNestedManyWithoutRoleInput;
|
|
202
|
-
permissions?: Prisma.RolePermissionUncheckedCreateNestedManyWithoutRoleInput;
|
|
203
|
-
};
|
|
204
|
-
export type RoleUpdateInput = {
|
|
205
|
-
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
206
|
-
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
207
|
-
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
208
|
-
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
209
|
-
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
210
|
-
userRoles?: Prisma.UserRoleUpdateManyWithoutRoleNestedInput;
|
|
211
|
-
permissions?: Prisma.RolePermissionUpdateManyWithoutRoleNestedInput;
|
|
212
|
-
};
|
|
213
|
-
export type RoleUncheckedUpdateInput = {
|
|
214
|
-
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
215
|
-
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
216
|
-
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
217
|
-
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
218
|
-
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
219
|
-
userRoles?: Prisma.UserRoleUncheckedUpdateManyWithoutRoleNestedInput;
|
|
220
|
-
permissions?: Prisma.RolePermissionUncheckedUpdateManyWithoutRoleNestedInput;
|
|
221
|
-
};
|
|
222
|
-
export type RoleCreateManyInput = {
|
|
223
|
-
id?: string;
|
|
224
|
-
name: string;
|
|
225
|
-
description?: string | null;
|
|
226
|
-
createdAt?: Date | string;
|
|
227
|
-
updatedAt?: Date | string;
|
|
228
|
-
};
|
|
229
|
-
export type RoleUpdateManyMutationInput = {
|
|
230
|
-
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
231
|
-
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
232
|
-
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
233
|
-
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
234
|
-
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
235
|
-
};
|
|
236
|
-
export type RoleUncheckedUpdateManyInput = {
|
|
237
|
-
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
238
|
-
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
239
|
-
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
240
|
-
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
241
|
-
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
242
|
-
};
|
|
243
|
-
export type RoleOrderByRelevanceInput = {
|
|
244
|
-
fields: Prisma.RoleOrderByRelevanceFieldEnum | Prisma.RoleOrderByRelevanceFieldEnum[];
|
|
245
|
-
sort: Prisma.SortOrder;
|
|
246
|
-
search: string;
|
|
247
|
-
};
|
|
248
|
-
export type RoleCountOrderByAggregateInput = {
|
|
249
|
-
id?: Prisma.SortOrder;
|
|
250
|
-
name?: Prisma.SortOrder;
|
|
251
|
-
description?: Prisma.SortOrder;
|
|
252
|
-
createdAt?: Prisma.SortOrder;
|
|
253
|
-
updatedAt?: Prisma.SortOrder;
|
|
254
|
-
};
|
|
255
|
-
export type RoleMaxOrderByAggregateInput = {
|
|
256
|
-
id?: Prisma.SortOrder;
|
|
257
|
-
name?: Prisma.SortOrder;
|
|
258
|
-
description?: Prisma.SortOrder;
|
|
259
|
-
createdAt?: Prisma.SortOrder;
|
|
260
|
-
updatedAt?: Prisma.SortOrder;
|
|
261
|
-
};
|
|
262
|
-
export type RoleMinOrderByAggregateInput = {
|
|
263
|
-
id?: Prisma.SortOrder;
|
|
264
|
-
name?: Prisma.SortOrder;
|
|
265
|
-
description?: Prisma.SortOrder;
|
|
266
|
-
createdAt?: Prisma.SortOrder;
|
|
267
|
-
updatedAt?: Prisma.SortOrder;
|
|
268
|
-
};
|
|
269
|
-
export type RoleScalarRelationFilter = {
|
|
270
|
-
is?: Prisma.RoleWhereInput;
|
|
271
|
-
isNot?: Prisma.RoleWhereInput;
|
|
272
|
-
};
|
|
273
|
-
export type RoleCreateNestedOneWithoutPermissionsInput = {
|
|
274
|
-
create?: Prisma.XOR<Prisma.RoleCreateWithoutPermissionsInput, Prisma.RoleUncheckedCreateWithoutPermissionsInput>;
|
|
275
|
-
connectOrCreate?: Prisma.RoleCreateOrConnectWithoutPermissionsInput;
|
|
276
|
-
connect?: Prisma.RoleWhereUniqueInput;
|
|
277
|
-
};
|
|
278
|
-
export type RoleUpdateOneRequiredWithoutPermissionsNestedInput = {
|
|
279
|
-
create?: Prisma.XOR<Prisma.RoleCreateWithoutPermissionsInput, Prisma.RoleUncheckedCreateWithoutPermissionsInput>;
|
|
280
|
-
connectOrCreate?: Prisma.RoleCreateOrConnectWithoutPermissionsInput;
|
|
281
|
-
upsert?: Prisma.RoleUpsertWithoutPermissionsInput;
|
|
282
|
-
connect?: Prisma.RoleWhereUniqueInput;
|
|
283
|
-
update?: Prisma.XOR<Prisma.XOR<Prisma.RoleUpdateToOneWithWhereWithoutPermissionsInput, Prisma.RoleUpdateWithoutPermissionsInput>, Prisma.RoleUncheckedUpdateWithoutPermissionsInput>;
|
|
284
|
-
};
|
|
285
|
-
export type RoleCreateNestedOneWithoutUserRolesInput = {
|
|
286
|
-
create?: Prisma.XOR<Prisma.RoleCreateWithoutUserRolesInput, Prisma.RoleUncheckedCreateWithoutUserRolesInput>;
|
|
287
|
-
connectOrCreate?: Prisma.RoleCreateOrConnectWithoutUserRolesInput;
|
|
288
|
-
connect?: Prisma.RoleWhereUniqueInput;
|
|
289
|
-
};
|
|
290
|
-
export type RoleUpdateOneRequiredWithoutUserRolesNestedInput = {
|
|
291
|
-
create?: Prisma.XOR<Prisma.RoleCreateWithoutUserRolesInput, Prisma.RoleUncheckedCreateWithoutUserRolesInput>;
|
|
292
|
-
connectOrCreate?: Prisma.RoleCreateOrConnectWithoutUserRolesInput;
|
|
293
|
-
upsert?: Prisma.RoleUpsertWithoutUserRolesInput;
|
|
294
|
-
connect?: Prisma.RoleWhereUniqueInput;
|
|
295
|
-
update?: Prisma.XOR<Prisma.XOR<Prisma.RoleUpdateToOneWithWhereWithoutUserRolesInput, Prisma.RoleUpdateWithoutUserRolesInput>, Prisma.RoleUncheckedUpdateWithoutUserRolesInput>;
|
|
296
|
-
};
|
|
297
|
-
export type RoleCreateWithoutPermissionsInput = {
|
|
298
|
-
id?: string;
|
|
299
|
-
name: string;
|
|
300
|
-
description?: string | null;
|
|
301
|
-
createdAt?: Date | string;
|
|
302
|
-
updatedAt?: Date | string;
|
|
303
|
-
userRoles?: Prisma.UserRoleCreateNestedManyWithoutRoleInput;
|
|
304
|
-
};
|
|
305
|
-
export type RoleUncheckedCreateWithoutPermissionsInput = {
|
|
306
|
-
id?: string;
|
|
307
|
-
name: string;
|
|
308
|
-
description?: string | null;
|
|
309
|
-
createdAt?: Date | string;
|
|
310
|
-
updatedAt?: Date | string;
|
|
311
|
-
userRoles?: Prisma.UserRoleUncheckedCreateNestedManyWithoutRoleInput;
|
|
312
|
-
};
|
|
313
|
-
export type RoleCreateOrConnectWithoutPermissionsInput = {
|
|
314
|
-
where: Prisma.RoleWhereUniqueInput;
|
|
315
|
-
create: Prisma.XOR<Prisma.RoleCreateWithoutPermissionsInput, Prisma.RoleUncheckedCreateWithoutPermissionsInput>;
|
|
316
|
-
};
|
|
317
|
-
export type RoleUpsertWithoutPermissionsInput = {
|
|
318
|
-
update: Prisma.XOR<Prisma.RoleUpdateWithoutPermissionsInput, Prisma.RoleUncheckedUpdateWithoutPermissionsInput>;
|
|
319
|
-
create: Prisma.XOR<Prisma.RoleCreateWithoutPermissionsInput, Prisma.RoleUncheckedCreateWithoutPermissionsInput>;
|
|
320
|
-
where?: Prisma.RoleWhereInput;
|
|
321
|
-
};
|
|
322
|
-
export type RoleUpdateToOneWithWhereWithoutPermissionsInput = {
|
|
323
|
-
where?: Prisma.RoleWhereInput;
|
|
324
|
-
data: Prisma.XOR<Prisma.RoleUpdateWithoutPermissionsInput, Prisma.RoleUncheckedUpdateWithoutPermissionsInput>;
|
|
325
|
-
};
|
|
326
|
-
export type RoleUpdateWithoutPermissionsInput = {
|
|
327
|
-
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
328
|
-
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
329
|
-
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
330
|
-
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
331
|
-
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
332
|
-
userRoles?: Prisma.UserRoleUpdateManyWithoutRoleNestedInput;
|
|
333
|
-
};
|
|
334
|
-
export type RoleUncheckedUpdateWithoutPermissionsInput = {
|
|
335
|
-
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
336
|
-
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
337
|
-
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
338
|
-
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
339
|
-
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
340
|
-
userRoles?: Prisma.UserRoleUncheckedUpdateManyWithoutRoleNestedInput;
|
|
341
|
-
};
|
|
342
|
-
export type RoleCreateWithoutUserRolesInput = {
|
|
343
|
-
id?: string;
|
|
344
|
-
name: string;
|
|
345
|
-
description?: string | null;
|
|
346
|
-
createdAt?: Date | string;
|
|
347
|
-
updatedAt?: Date | string;
|
|
348
|
-
permissions?: Prisma.RolePermissionCreateNestedManyWithoutRoleInput;
|
|
349
|
-
};
|
|
350
|
-
export type RoleUncheckedCreateWithoutUserRolesInput = {
|
|
351
|
-
id?: string;
|
|
352
|
-
name: string;
|
|
353
|
-
description?: string | null;
|
|
354
|
-
createdAt?: Date | string;
|
|
355
|
-
updatedAt?: Date | string;
|
|
356
|
-
permissions?: Prisma.RolePermissionUncheckedCreateNestedManyWithoutRoleInput;
|
|
357
|
-
};
|
|
358
|
-
export type RoleCreateOrConnectWithoutUserRolesInput = {
|
|
359
|
-
where: Prisma.RoleWhereUniqueInput;
|
|
360
|
-
create: Prisma.XOR<Prisma.RoleCreateWithoutUserRolesInput, Prisma.RoleUncheckedCreateWithoutUserRolesInput>;
|
|
361
|
-
};
|
|
362
|
-
export type RoleUpsertWithoutUserRolesInput = {
|
|
363
|
-
update: Prisma.XOR<Prisma.RoleUpdateWithoutUserRolesInput, Prisma.RoleUncheckedUpdateWithoutUserRolesInput>;
|
|
364
|
-
create: Prisma.XOR<Prisma.RoleCreateWithoutUserRolesInput, Prisma.RoleUncheckedCreateWithoutUserRolesInput>;
|
|
365
|
-
where?: Prisma.RoleWhereInput;
|
|
366
|
-
};
|
|
367
|
-
export type RoleUpdateToOneWithWhereWithoutUserRolesInput = {
|
|
368
|
-
where?: Prisma.RoleWhereInput;
|
|
369
|
-
data: Prisma.XOR<Prisma.RoleUpdateWithoutUserRolesInput, Prisma.RoleUncheckedUpdateWithoutUserRolesInput>;
|
|
370
|
-
};
|
|
371
|
-
export type RoleUpdateWithoutUserRolesInput = {
|
|
372
|
-
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
373
|
-
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
374
|
-
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
375
|
-
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
376
|
-
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
377
|
-
permissions?: Prisma.RolePermissionUpdateManyWithoutRoleNestedInput;
|
|
378
|
-
};
|
|
379
|
-
export type RoleUncheckedUpdateWithoutUserRolesInput = {
|
|
380
|
-
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
381
|
-
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
382
|
-
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
383
|
-
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
384
|
-
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
385
|
-
permissions?: Prisma.RolePermissionUncheckedUpdateManyWithoutRoleNestedInput;
|
|
386
|
-
};
|
|
387
|
-
/**
|
|
388
|
-
* Count Type RoleCountOutputType
|
|
389
|
-
*/
|
|
390
|
-
export type RoleCountOutputType = {
|
|
391
|
-
userRoles: number;
|
|
392
|
-
permissions: number;
|
|
393
|
-
};
|
|
394
|
-
export type RoleCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
395
|
-
userRoles?: boolean | RoleCountOutputTypeCountUserRolesArgs;
|
|
396
|
-
permissions?: boolean | RoleCountOutputTypeCountPermissionsArgs;
|
|
397
|
-
};
|
|
398
|
-
/**
|
|
399
|
-
* RoleCountOutputType without action
|
|
400
|
-
*/
|
|
401
|
-
export type RoleCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
402
|
-
/**
|
|
403
|
-
* Select specific fields to fetch from the RoleCountOutputType
|
|
404
|
-
*/
|
|
405
|
-
select?: Prisma.RoleCountOutputTypeSelect<ExtArgs> | null;
|
|
406
|
-
};
|
|
407
|
-
/**
|
|
408
|
-
* RoleCountOutputType without action
|
|
409
|
-
*/
|
|
410
|
-
export type RoleCountOutputTypeCountUserRolesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
411
|
-
where?: Prisma.UserRoleWhereInput;
|
|
412
|
-
};
|
|
413
|
-
/**
|
|
414
|
-
* RoleCountOutputType without action
|
|
415
|
-
*/
|
|
416
|
-
export type RoleCountOutputTypeCountPermissionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
417
|
-
where?: Prisma.RolePermissionWhereInput;
|
|
418
|
-
};
|
|
419
|
-
export type RoleSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
420
|
-
id?: boolean;
|
|
421
|
-
name?: boolean;
|
|
422
|
-
description?: boolean;
|
|
423
|
-
createdAt?: boolean;
|
|
424
|
-
updatedAt?: boolean;
|
|
425
|
-
userRoles?: boolean | Prisma.Role$userRolesArgs<ExtArgs>;
|
|
426
|
-
permissions?: boolean | Prisma.Role$permissionsArgs<ExtArgs>;
|
|
427
|
-
_count?: boolean | Prisma.RoleCountOutputTypeDefaultArgs<ExtArgs>;
|
|
428
|
-
}, ExtArgs["result"]["role"]>;
|
|
429
|
-
export type RoleSelectScalar = {
|
|
430
|
-
id?: boolean;
|
|
431
|
-
name?: boolean;
|
|
432
|
-
description?: boolean;
|
|
433
|
-
createdAt?: boolean;
|
|
434
|
-
updatedAt?: boolean;
|
|
435
|
-
};
|
|
436
|
-
export type RoleOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "description" | "createdAt" | "updatedAt", ExtArgs["result"]["role"]>;
|
|
437
|
-
export type RoleInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
438
|
-
userRoles?: boolean | Prisma.Role$userRolesArgs<ExtArgs>;
|
|
439
|
-
permissions?: boolean | Prisma.Role$permissionsArgs<ExtArgs>;
|
|
440
|
-
_count?: boolean | Prisma.RoleCountOutputTypeDefaultArgs<ExtArgs>;
|
|
441
|
-
};
|
|
442
|
-
export type $RolePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
443
|
-
name: "Role";
|
|
444
|
-
objects: {
|
|
445
|
-
userRoles: Prisma.$UserRolePayload<ExtArgs>[];
|
|
446
|
-
permissions: Prisma.$RolePermissionPayload<ExtArgs>[];
|
|
447
|
-
};
|
|
448
|
-
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
449
|
-
id: string;
|
|
450
|
-
name: string;
|
|
451
|
-
description: string | null;
|
|
452
|
-
createdAt: Date;
|
|
453
|
-
updatedAt: Date;
|
|
454
|
-
}, ExtArgs["result"]["role"]>;
|
|
455
|
-
composites: {};
|
|
456
|
-
};
|
|
457
|
-
export type RoleGetPayload<S extends boolean | null | undefined | RoleDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$RolePayload, S>;
|
|
458
|
-
export type RoleCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<RoleFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
459
|
-
select?: RoleCountAggregateInputType | true;
|
|
460
|
-
};
|
|
461
|
-
export interface RoleDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
462
|
-
[K: symbol]: {
|
|
463
|
-
types: Prisma.TypeMap<ExtArgs>['model']['Role'];
|
|
464
|
-
meta: {
|
|
465
|
-
name: 'Role';
|
|
466
|
-
};
|
|
467
|
-
};
|
|
468
|
-
/**
|
|
469
|
-
* Find zero or one Role that matches the filter.
|
|
470
|
-
* @param {RoleFindUniqueArgs} args - Arguments to find a Role
|
|
471
|
-
* @example
|
|
472
|
-
* // Get one Role
|
|
473
|
-
* const role = await prisma.role.findUnique({
|
|
474
|
-
* where: {
|
|
475
|
-
* // ... provide filter here
|
|
476
|
-
* }
|
|
477
|
-
* })
|
|
478
|
-
*/
|
|
479
|
-
findUnique<T extends RoleFindUniqueArgs>(args: Prisma.SelectSubset<T, RoleFindUniqueArgs<ExtArgs>>): Prisma.Prisma__RoleClient<runtime.Types.Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
480
|
-
/**
|
|
481
|
-
* Find one Role that matches the filter or throw an error with `error.code='P2025'`
|
|
482
|
-
* if no matches were found.
|
|
483
|
-
* @param {RoleFindUniqueOrThrowArgs} args - Arguments to find a Role
|
|
484
|
-
* @example
|
|
485
|
-
* // Get one Role
|
|
486
|
-
* const role = await prisma.role.findUniqueOrThrow({
|
|
487
|
-
* where: {
|
|
488
|
-
* // ... provide filter here
|
|
489
|
-
* }
|
|
490
|
-
* })
|
|
491
|
-
*/
|
|
492
|
-
findUniqueOrThrow<T extends RoleFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, RoleFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__RoleClient<runtime.Types.Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
493
|
-
/**
|
|
494
|
-
* Find the first Role that matches the filter.
|
|
495
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
496
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
497
|
-
* @param {RoleFindFirstArgs} args - Arguments to find a Role
|
|
498
|
-
* @example
|
|
499
|
-
* // Get one Role
|
|
500
|
-
* const role = await prisma.role.findFirst({
|
|
501
|
-
* where: {
|
|
502
|
-
* // ... provide filter here
|
|
503
|
-
* }
|
|
504
|
-
* })
|
|
505
|
-
*/
|
|
506
|
-
findFirst<T extends RoleFindFirstArgs>(args?: Prisma.SelectSubset<T, RoleFindFirstArgs<ExtArgs>>): Prisma.Prisma__RoleClient<runtime.Types.Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
507
|
-
/**
|
|
508
|
-
* Find the first Role that matches the filter or
|
|
509
|
-
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
510
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
511
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
512
|
-
* @param {RoleFindFirstOrThrowArgs} args - Arguments to find a Role
|
|
513
|
-
* @example
|
|
514
|
-
* // Get one Role
|
|
515
|
-
* const role = await prisma.role.findFirstOrThrow({
|
|
516
|
-
* where: {
|
|
517
|
-
* // ... provide filter here
|
|
518
|
-
* }
|
|
519
|
-
* })
|
|
520
|
-
*/
|
|
521
|
-
findFirstOrThrow<T extends RoleFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, RoleFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__RoleClient<runtime.Types.Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
522
|
-
/**
|
|
523
|
-
* Find zero or more Roles that matches the filter.
|
|
524
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
525
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
526
|
-
* @param {RoleFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
527
|
-
* @example
|
|
528
|
-
* // Get all Roles
|
|
529
|
-
* const roles = await prisma.role.findMany()
|
|
530
|
-
*
|
|
531
|
-
* // Get first 10 Roles
|
|
532
|
-
* const roles = await prisma.role.findMany({ take: 10 })
|
|
533
|
-
*
|
|
534
|
-
* // Only select the `id`
|
|
535
|
-
* const roleWithIdOnly = await prisma.role.findMany({ select: { id: true } })
|
|
536
|
-
*
|
|
537
|
-
*/
|
|
538
|
-
findMany<T extends RoleFindManyArgs>(args?: Prisma.SelectSubset<T, RoleFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
539
|
-
/**
|
|
540
|
-
* Create a Role.
|
|
541
|
-
* @param {RoleCreateArgs} args - Arguments to create a Role.
|
|
542
|
-
* @example
|
|
543
|
-
* // Create one Role
|
|
544
|
-
* const Role = await prisma.role.create({
|
|
545
|
-
* data: {
|
|
546
|
-
* // ... data to create a Role
|
|
547
|
-
* }
|
|
548
|
-
* })
|
|
549
|
-
*
|
|
550
|
-
*/
|
|
551
|
-
create<T extends RoleCreateArgs>(args: Prisma.SelectSubset<T, RoleCreateArgs<ExtArgs>>): Prisma.Prisma__RoleClient<runtime.Types.Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
552
|
-
/**
|
|
553
|
-
* Create many Roles.
|
|
554
|
-
* @param {RoleCreateManyArgs} args - Arguments to create many Roles.
|
|
555
|
-
* @example
|
|
556
|
-
* // Create many Roles
|
|
557
|
-
* const role = await prisma.role.createMany({
|
|
558
|
-
* data: [
|
|
559
|
-
* // ... provide data here
|
|
560
|
-
* ]
|
|
561
|
-
* })
|
|
562
|
-
*
|
|
563
|
-
*/
|
|
564
|
-
createMany<T extends RoleCreateManyArgs>(args?: Prisma.SelectSubset<T, RoleCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
565
|
-
/**
|
|
566
|
-
* Delete a Role.
|
|
567
|
-
* @param {RoleDeleteArgs} args - Arguments to delete one Role.
|
|
568
|
-
* @example
|
|
569
|
-
* // Delete one Role
|
|
570
|
-
* const Role = await prisma.role.delete({
|
|
571
|
-
* where: {
|
|
572
|
-
* // ... filter to delete one Role
|
|
573
|
-
* }
|
|
574
|
-
* })
|
|
575
|
-
*
|
|
576
|
-
*/
|
|
577
|
-
delete<T extends RoleDeleteArgs>(args: Prisma.SelectSubset<T, RoleDeleteArgs<ExtArgs>>): Prisma.Prisma__RoleClient<runtime.Types.Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
578
|
-
/**
|
|
579
|
-
* Update one Role.
|
|
580
|
-
* @param {RoleUpdateArgs} args - Arguments to update one Role.
|
|
581
|
-
* @example
|
|
582
|
-
* // Update one Role
|
|
583
|
-
* const role = await prisma.role.update({
|
|
584
|
-
* where: {
|
|
585
|
-
* // ... provide filter here
|
|
586
|
-
* },
|
|
587
|
-
* data: {
|
|
588
|
-
* // ... provide data here
|
|
589
|
-
* }
|
|
590
|
-
* })
|
|
591
|
-
*
|
|
592
|
-
*/
|
|
593
|
-
update<T extends RoleUpdateArgs>(args: Prisma.SelectSubset<T, RoleUpdateArgs<ExtArgs>>): Prisma.Prisma__RoleClient<runtime.Types.Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
594
|
-
/**
|
|
595
|
-
* Delete zero or more Roles.
|
|
596
|
-
* @param {RoleDeleteManyArgs} args - Arguments to filter Roles to delete.
|
|
597
|
-
* @example
|
|
598
|
-
* // Delete a few Roles
|
|
599
|
-
* const { count } = await prisma.role.deleteMany({
|
|
600
|
-
* where: {
|
|
601
|
-
* // ... provide filter here
|
|
602
|
-
* }
|
|
603
|
-
* })
|
|
604
|
-
*
|
|
605
|
-
*/
|
|
606
|
-
deleteMany<T extends RoleDeleteManyArgs>(args?: Prisma.SelectSubset<T, RoleDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
607
|
-
/**
|
|
608
|
-
* Update zero or more Roles.
|
|
609
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
610
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
611
|
-
* @param {RoleUpdateManyArgs} args - Arguments to update one or more rows.
|
|
612
|
-
* @example
|
|
613
|
-
* // Update many Roles
|
|
614
|
-
* const role = await prisma.role.updateMany({
|
|
615
|
-
* where: {
|
|
616
|
-
* // ... provide filter here
|
|
617
|
-
* },
|
|
618
|
-
* data: {
|
|
619
|
-
* // ... provide data here
|
|
620
|
-
* }
|
|
621
|
-
* })
|
|
622
|
-
*
|
|
623
|
-
*/
|
|
624
|
-
updateMany<T extends RoleUpdateManyArgs>(args: Prisma.SelectSubset<T, RoleUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
625
|
-
/**
|
|
626
|
-
* Create or update one Role.
|
|
627
|
-
* @param {RoleUpsertArgs} args - Arguments to update or create a Role.
|
|
628
|
-
* @example
|
|
629
|
-
* // Update or create a Role
|
|
630
|
-
* const role = await prisma.role.upsert({
|
|
631
|
-
* create: {
|
|
632
|
-
* // ... data to create a Role
|
|
633
|
-
* },
|
|
634
|
-
* update: {
|
|
635
|
-
* // ... in case it already exists, update
|
|
636
|
-
* },
|
|
637
|
-
* where: {
|
|
638
|
-
* // ... the filter for the Role we want to update
|
|
639
|
-
* }
|
|
640
|
-
* })
|
|
641
|
-
*/
|
|
642
|
-
upsert<T extends RoleUpsertArgs>(args: Prisma.SelectSubset<T, RoleUpsertArgs<ExtArgs>>): Prisma.Prisma__RoleClient<runtime.Types.Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
643
|
-
/**
|
|
644
|
-
* Count the number of Roles.
|
|
645
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
646
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
647
|
-
* @param {RoleCountArgs} args - Arguments to filter Roles to count.
|
|
648
|
-
* @example
|
|
649
|
-
* // Count the number of Roles
|
|
650
|
-
* const count = await prisma.role.count({
|
|
651
|
-
* where: {
|
|
652
|
-
* // ... the filter for the Roles we want to count
|
|
653
|
-
* }
|
|
654
|
-
* })
|
|
655
|
-
**/
|
|
656
|
-
count<T extends RoleCountArgs>(args?: Prisma.Subset<T, RoleCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], RoleCountAggregateOutputType> : number>;
|
|
657
|
-
/**
|
|
658
|
-
* Allows you to perform aggregations operations on a Role.
|
|
659
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
660
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
661
|
-
* @param {RoleAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
662
|
-
* @example
|
|
663
|
-
* // Ordered by age ascending
|
|
664
|
-
* // Where email contains prisma.io
|
|
665
|
-
* // Limited to the 10 users
|
|
666
|
-
* const aggregations = await prisma.user.aggregate({
|
|
667
|
-
* _avg: {
|
|
668
|
-
* age: true,
|
|
669
|
-
* },
|
|
670
|
-
* where: {
|
|
671
|
-
* email: {
|
|
672
|
-
* contains: "prisma.io",
|
|
673
|
-
* },
|
|
674
|
-
* },
|
|
675
|
-
* orderBy: {
|
|
676
|
-
* age: "asc",
|
|
677
|
-
* },
|
|
678
|
-
* take: 10,
|
|
679
|
-
* })
|
|
680
|
-
**/
|
|
681
|
-
aggregate<T extends RoleAggregateArgs>(args: Prisma.Subset<T, RoleAggregateArgs>): Prisma.PrismaPromise<GetRoleAggregateType<T>>;
|
|
682
|
-
/**
|
|
683
|
-
* Group by Role.
|
|
684
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
685
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
686
|
-
* @param {RoleGroupByArgs} args - Group by arguments.
|
|
687
|
-
* @example
|
|
688
|
-
* // Group by city, order by createdAt, get count
|
|
689
|
-
* const result = await prisma.user.groupBy({
|
|
690
|
-
* by: ['city', 'createdAt'],
|
|
691
|
-
* orderBy: {
|
|
692
|
-
* createdAt: true
|
|
693
|
-
* },
|
|
694
|
-
* _count: {
|
|
695
|
-
* _all: true
|
|
696
|
-
* },
|
|
697
|
-
* })
|
|
698
|
-
*
|
|
699
|
-
**/
|
|
700
|
-
groupBy<T extends RoleGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
701
|
-
orderBy: RoleGroupByArgs['orderBy'];
|
|
702
|
-
} : {
|
|
703
|
-
orderBy?: RoleGroupByArgs['orderBy'];
|
|
704
|
-
}, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
|
|
705
|
-
[P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
|
|
706
|
-
Error,
|
|
707
|
-
'Field ',
|
|
708
|
-
P,
|
|
709
|
-
` in "having" needs to be provided in "by"`
|
|
710
|
-
];
|
|
711
|
-
}[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
712
|
-
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
713
|
-
}[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
714
|
-
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
715
|
-
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
716
|
-
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
717
|
-
}[OrderFields]>(args: Prisma.SubsetIntersection<T, RoleGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetRoleGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
718
|
-
/**
|
|
719
|
-
* Fields of the Role model
|
|
720
|
-
*/
|
|
721
|
-
readonly fields: RoleFieldRefs;
|
|
722
|
-
}
|
|
723
|
-
/**
|
|
724
|
-
* The delegate class that acts as a "Promise-like" for Role.
|
|
725
|
-
* Why is this prefixed with `Prisma__`?
|
|
726
|
-
* Because we want to prevent naming conflicts as mentioned in
|
|
727
|
-
* https://github.com/prisma/prisma-client-js/issues/707
|
|
728
|
-
*/
|
|
729
|
-
export interface Prisma__RoleClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
730
|
-
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
731
|
-
userRoles<T extends Prisma.Role$userRolesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Role$userRolesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserRolePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
732
|
-
permissions<T extends Prisma.Role$permissionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Role$permissionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RolePermissionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
733
|
-
/**
|
|
734
|
-
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
735
|
-
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
736
|
-
* @param onrejected The callback to execute when the Promise is rejected.
|
|
737
|
-
* @returns A Promise for the completion of which ever callback is executed.
|
|
738
|
-
*/
|
|
739
|
-
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>;
|
|
740
|
-
/**
|
|
741
|
-
* Attaches a callback for only the rejection of the Promise.
|
|
742
|
-
* @param onrejected The callback to execute when the Promise is rejected.
|
|
743
|
-
* @returns A Promise for the completion of the callback.
|
|
744
|
-
*/
|
|
745
|
-
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
746
|
-
/**
|
|
747
|
-
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
748
|
-
* resolved value cannot be modified from the callback.
|
|
749
|
-
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
750
|
-
* @returns A Promise for the completion of the callback.
|
|
751
|
-
*/
|
|
752
|
-
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
753
|
-
}
|
|
754
|
-
/**
|
|
755
|
-
* Fields of the Role model
|
|
756
|
-
*/
|
|
757
|
-
export interface RoleFieldRefs {
|
|
758
|
-
readonly id: Prisma.FieldRef<"Role", 'String'>;
|
|
759
|
-
readonly name: Prisma.FieldRef<"Role", 'String'>;
|
|
760
|
-
readonly description: Prisma.FieldRef<"Role", 'String'>;
|
|
761
|
-
readonly createdAt: Prisma.FieldRef<"Role", 'DateTime'>;
|
|
762
|
-
readonly updatedAt: Prisma.FieldRef<"Role", 'DateTime'>;
|
|
763
|
-
}
|
|
764
|
-
/**
|
|
765
|
-
* Role findUnique
|
|
766
|
-
*/
|
|
767
|
-
export type RoleFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
768
|
-
/**
|
|
769
|
-
* Select specific fields to fetch from the Role
|
|
770
|
-
*/
|
|
771
|
-
select?: Prisma.RoleSelect<ExtArgs> | null;
|
|
772
|
-
/**
|
|
773
|
-
* Omit specific fields from the Role
|
|
774
|
-
*/
|
|
775
|
-
omit?: Prisma.RoleOmit<ExtArgs> | null;
|
|
776
|
-
/**
|
|
777
|
-
* Choose, which related nodes to fetch as well
|
|
778
|
-
*/
|
|
779
|
-
include?: Prisma.RoleInclude<ExtArgs> | null;
|
|
780
|
-
/**
|
|
781
|
-
* Filter, which Role to fetch.
|
|
782
|
-
*/
|
|
783
|
-
where: Prisma.RoleWhereUniqueInput;
|
|
784
|
-
};
|
|
785
|
-
/**
|
|
786
|
-
* Role findUniqueOrThrow
|
|
787
|
-
*/
|
|
788
|
-
export type RoleFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
789
|
-
/**
|
|
790
|
-
* Select specific fields to fetch from the Role
|
|
791
|
-
*/
|
|
792
|
-
select?: Prisma.RoleSelect<ExtArgs> | null;
|
|
793
|
-
/**
|
|
794
|
-
* Omit specific fields from the Role
|
|
795
|
-
*/
|
|
796
|
-
omit?: Prisma.RoleOmit<ExtArgs> | null;
|
|
797
|
-
/**
|
|
798
|
-
* Choose, which related nodes to fetch as well
|
|
799
|
-
*/
|
|
800
|
-
include?: Prisma.RoleInclude<ExtArgs> | null;
|
|
801
|
-
/**
|
|
802
|
-
* Filter, which Role to fetch.
|
|
803
|
-
*/
|
|
804
|
-
where: Prisma.RoleWhereUniqueInput;
|
|
805
|
-
};
|
|
806
|
-
/**
|
|
807
|
-
* Role findFirst
|
|
808
|
-
*/
|
|
809
|
-
export type RoleFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
810
|
-
/**
|
|
811
|
-
* Select specific fields to fetch from the Role
|
|
812
|
-
*/
|
|
813
|
-
select?: Prisma.RoleSelect<ExtArgs> | null;
|
|
814
|
-
/**
|
|
815
|
-
* Omit specific fields from the Role
|
|
816
|
-
*/
|
|
817
|
-
omit?: Prisma.RoleOmit<ExtArgs> | null;
|
|
818
|
-
/**
|
|
819
|
-
* Choose, which related nodes to fetch as well
|
|
820
|
-
*/
|
|
821
|
-
include?: Prisma.RoleInclude<ExtArgs> | null;
|
|
822
|
-
/**
|
|
823
|
-
* Filter, which Role to fetch.
|
|
824
|
-
*/
|
|
825
|
-
where?: Prisma.RoleWhereInput;
|
|
826
|
-
/**
|
|
827
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
828
|
-
*
|
|
829
|
-
* Determine the order of Roles to fetch.
|
|
830
|
-
*/
|
|
831
|
-
orderBy?: Prisma.RoleOrderByWithRelationInput | Prisma.RoleOrderByWithRelationInput[];
|
|
832
|
-
/**
|
|
833
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
834
|
-
*
|
|
835
|
-
* Sets the position for searching for Roles.
|
|
836
|
-
*/
|
|
837
|
-
cursor?: Prisma.RoleWhereUniqueInput;
|
|
838
|
-
/**
|
|
839
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
840
|
-
*
|
|
841
|
-
* Take `±n` Roles from the position of the cursor.
|
|
842
|
-
*/
|
|
843
|
-
take?: number;
|
|
844
|
-
/**
|
|
845
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
846
|
-
*
|
|
847
|
-
* Skip the first `n` Roles.
|
|
848
|
-
*/
|
|
849
|
-
skip?: number;
|
|
850
|
-
/**
|
|
851
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
852
|
-
*
|
|
853
|
-
* Filter by unique combinations of Roles.
|
|
854
|
-
*/
|
|
855
|
-
distinct?: Prisma.RoleScalarFieldEnum | Prisma.RoleScalarFieldEnum[];
|
|
856
|
-
};
|
|
857
|
-
/**
|
|
858
|
-
* Role findFirstOrThrow
|
|
859
|
-
*/
|
|
860
|
-
export type RoleFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
861
|
-
/**
|
|
862
|
-
* Select specific fields to fetch from the Role
|
|
863
|
-
*/
|
|
864
|
-
select?: Prisma.RoleSelect<ExtArgs> | null;
|
|
865
|
-
/**
|
|
866
|
-
* Omit specific fields from the Role
|
|
867
|
-
*/
|
|
868
|
-
omit?: Prisma.RoleOmit<ExtArgs> | null;
|
|
869
|
-
/**
|
|
870
|
-
* Choose, which related nodes to fetch as well
|
|
871
|
-
*/
|
|
872
|
-
include?: Prisma.RoleInclude<ExtArgs> | null;
|
|
873
|
-
/**
|
|
874
|
-
* Filter, which Role to fetch.
|
|
875
|
-
*/
|
|
876
|
-
where?: Prisma.RoleWhereInput;
|
|
877
|
-
/**
|
|
878
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
879
|
-
*
|
|
880
|
-
* Determine the order of Roles to fetch.
|
|
881
|
-
*/
|
|
882
|
-
orderBy?: Prisma.RoleOrderByWithRelationInput | Prisma.RoleOrderByWithRelationInput[];
|
|
883
|
-
/**
|
|
884
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
885
|
-
*
|
|
886
|
-
* Sets the position for searching for Roles.
|
|
887
|
-
*/
|
|
888
|
-
cursor?: Prisma.RoleWhereUniqueInput;
|
|
889
|
-
/**
|
|
890
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
891
|
-
*
|
|
892
|
-
* Take `±n` Roles from the position of the cursor.
|
|
893
|
-
*/
|
|
894
|
-
take?: number;
|
|
895
|
-
/**
|
|
896
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
897
|
-
*
|
|
898
|
-
* Skip the first `n` Roles.
|
|
899
|
-
*/
|
|
900
|
-
skip?: number;
|
|
901
|
-
/**
|
|
902
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
903
|
-
*
|
|
904
|
-
* Filter by unique combinations of Roles.
|
|
905
|
-
*/
|
|
906
|
-
distinct?: Prisma.RoleScalarFieldEnum | Prisma.RoleScalarFieldEnum[];
|
|
907
|
-
};
|
|
908
|
-
/**
|
|
909
|
-
* Role findMany
|
|
910
|
-
*/
|
|
911
|
-
export type RoleFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
912
|
-
/**
|
|
913
|
-
* Select specific fields to fetch from the Role
|
|
914
|
-
*/
|
|
915
|
-
select?: Prisma.RoleSelect<ExtArgs> | null;
|
|
916
|
-
/**
|
|
917
|
-
* Omit specific fields from the Role
|
|
918
|
-
*/
|
|
919
|
-
omit?: Prisma.RoleOmit<ExtArgs> | null;
|
|
920
|
-
/**
|
|
921
|
-
* Choose, which related nodes to fetch as well
|
|
922
|
-
*/
|
|
923
|
-
include?: Prisma.RoleInclude<ExtArgs> | null;
|
|
924
|
-
/**
|
|
925
|
-
* Filter, which Roles to fetch.
|
|
926
|
-
*/
|
|
927
|
-
where?: Prisma.RoleWhereInput;
|
|
928
|
-
/**
|
|
929
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
930
|
-
*
|
|
931
|
-
* Determine the order of Roles to fetch.
|
|
932
|
-
*/
|
|
933
|
-
orderBy?: Prisma.RoleOrderByWithRelationInput | Prisma.RoleOrderByWithRelationInput[];
|
|
934
|
-
/**
|
|
935
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
936
|
-
*
|
|
937
|
-
* Sets the position for listing Roles.
|
|
938
|
-
*/
|
|
939
|
-
cursor?: Prisma.RoleWhereUniqueInput;
|
|
940
|
-
/**
|
|
941
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
942
|
-
*
|
|
943
|
-
* Take `±n` Roles from the position of the cursor.
|
|
944
|
-
*/
|
|
945
|
-
take?: number;
|
|
946
|
-
/**
|
|
947
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
948
|
-
*
|
|
949
|
-
* Skip the first `n` Roles.
|
|
950
|
-
*/
|
|
951
|
-
skip?: number;
|
|
952
|
-
distinct?: Prisma.RoleScalarFieldEnum | Prisma.RoleScalarFieldEnum[];
|
|
953
|
-
};
|
|
954
|
-
/**
|
|
955
|
-
* Role create
|
|
956
|
-
*/
|
|
957
|
-
export type RoleCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
958
|
-
/**
|
|
959
|
-
* Select specific fields to fetch from the Role
|
|
960
|
-
*/
|
|
961
|
-
select?: Prisma.RoleSelect<ExtArgs> | null;
|
|
962
|
-
/**
|
|
963
|
-
* Omit specific fields from the Role
|
|
964
|
-
*/
|
|
965
|
-
omit?: Prisma.RoleOmit<ExtArgs> | null;
|
|
966
|
-
/**
|
|
967
|
-
* Choose, which related nodes to fetch as well
|
|
968
|
-
*/
|
|
969
|
-
include?: Prisma.RoleInclude<ExtArgs> | null;
|
|
970
|
-
/**
|
|
971
|
-
* The data needed to create a Role.
|
|
972
|
-
*/
|
|
973
|
-
data: Prisma.XOR<Prisma.RoleCreateInput, Prisma.RoleUncheckedCreateInput>;
|
|
974
|
-
};
|
|
975
|
-
/**
|
|
976
|
-
* Role createMany
|
|
977
|
-
*/
|
|
978
|
-
export type RoleCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
979
|
-
/**
|
|
980
|
-
* The data used to create many Roles.
|
|
981
|
-
*/
|
|
982
|
-
data: Prisma.RoleCreateManyInput | Prisma.RoleCreateManyInput[];
|
|
983
|
-
skipDuplicates?: boolean;
|
|
984
|
-
};
|
|
985
|
-
/**
|
|
986
|
-
* Role update
|
|
987
|
-
*/
|
|
988
|
-
export type RoleUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
989
|
-
/**
|
|
990
|
-
* Select specific fields to fetch from the Role
|
|
991
|
-
*/
|
|
992
|
-
select?: Prisma.RoleSelect<ExtArgs> | null;
|
|
993
|
-
/**
|
|
994
|
-
* Omit specific fields from the Role
|
|
995
|
-
*/
|
|
996
|
-
omit?: Prisma.RoleOmit<ExtArgs> | null;
|
|
997
|
-
/**
|
|
998
|
-
* Choose, which related nodes to fetch as well
|
|
999
|
-
*/
|
|
1000
|
-
include?: Prisma.RoleInclude<ExtArgs> | null;
|
|
1001
|
-
/**
|
|
1002
|
-
* The data needed to update a Role.
|
|
1003
|
-
*/
|
|
1004
|
-
data: Prisma.XOR<Prisma.RoleUpdateInput, Prisma.RoleUncheckedUpdateInput>;
|
|
1005
|
-
/**
|
|
1006
|
-
* Choose, which Role to update.
|
|
1007
|
-
*/
|
|
1008
|
-
where: Prisma.RoleWhereUniqueInput;
|
|
1009
|
-
};
|
|
1010
|
-
/**
|
|
1011
|
-
* Role updateMany
|
|
1012
|
-
*/
|
|
1013
|
-
export type RoleUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1014
|
-
/**
|
|
1015
|
-
* The data used to update Roles.
|
|
1016
|
-
*/
|
|
1017
|
-
data: Prisma.XOR<Prisma.RoleUpdateManyMutationInput, Prisma.RoleUncheckedUpdateManyInput>;
|
|
1018
|
-
/**
|
|
1019
|
-
* Filter which Roles to update
|
|
1020
|
-
*/
|
|
1021
|
-
where?: Prisma.RoleWhereInput;
|
|
1022
|
-
/**
|
|
1023
|
-
* Limit how many Roles to update.
|
|
1024
|
-
*/
|
|
1025
|
-
limit?: number;
|
|
1026
|
-
};
|
|
1027
|
-
/**
|
|
1028
|
-
* Role upsert
|
|
1029
|
-
*/
|
|
1030
|
-
export type RoleUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1031
|
-
/**
|
|
1032
|
-
* Select specific fields to fetch from the Role
|
|
1033
|
-
*/
|
|
1034
|
-
select?: Prisma.RoleSelect<ExtArgs> | null;
|
|
1035
|
-
/**
|
|
1036
|
-
* Omit specific fields from the Role
|
|
1037
|
-
*/
|
|
1038
|
-
omit?: Prisma.RoleOmit<ExtArgs> | null;
|
|
1039
|
-
/**
|
|
1040
|
-
* Choose, which related nodes to fetch as well
|
|
1041
|
-
*/
|
|
1042
|
-
include?: Prisma.RoleInclude<ExtArgs> | null;
|
|
1043
|
-
/**
|
|
1044
|
-
* The filter to search for the Role to update in case it exists.
|
|
1045
|
-
*/
|
|
1046
|
-
where: Prisma.RoleWhereUniqueInput;
|
|
1047
|
-
/**
|
|
1048
|
-
* In case the Role found by the `where` argument doesn't exist, create a new Role with this data.
|
|
1049
|
-
*/
|
|
1050
|
-
create: Prisma.XOR<Prisma.RoleCreateInput, Prisma.RoleUncheckedCreateInput>;
|
|
1051
|
-
/**
|
|
1052
|
-
* In case the Role was found with the provided `where` argument, update it with this data.
|
|
1053
|
-
*/
|
|
1054
|
-
update: Prisma.XOR<Prisma.RoleUpdateInput, Prisma.RoleUncheckedUpdateInput>;
|
|
1055
|
-
};
|
|
1056
|
-
/**
|
|
1057
|
-
* Role delete
|
|
1058
|
-
*/
|
|
1059
|
-
export type RoleDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1060
|
-
/**
|
|
1061
|
-
* Select specific fields to fetch from the Role
|
|
1062
|
-
*/
|
|
1063
|
-
select?: Prisma.RoleSelect<ExtArgs> | null;
|
|
1064
|
-
/**
|
|
1065
|
-
* Omit specific fields from the Role
|
|
1066
|
-
*/
|
|
1067
|
-
omit?: Prisma.RoleOmit<ExtArgs> | null;
|
|
1068
|
-
/**
|
|
1069
|
-
* Choose, which related nodes to fetch as well
|
|
1070
|
-
*/
|
|
1071
|
-
include?: Prisma.RoleInclude<ExtArgs> | null;
|
|
1072
|
-
/**
|
|
1073
|
-
* Filter which Role to delete.
|
|
1074
|
-
*/
|
|
1075
|
-
where: Prisma.RoleWhereUniqueInput;
|
|
1076
|
-
};
|
|
1077
|
-
/**
|
|
1078
|
-
* Role deleteMany
|
|
1079
|
-
*/
|
|
1080
|
-
export type RoleDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1081
|
-
/**
|
|
1082
|
-
* Filter which Roles to delete
|
|
1083
|
-
*/
|
|
1084
|
-
where?: Prisma.RoleWhereInput;
|
|
1085
|
-
/**
|
|
1086
|
-
* Limit how many Roles to delete.
|
|
1087
|
-
*/
|
|
1088
|
-
limit?: number;
|
|
1089
|
-
};
|
|
1090
|
-
/**
|
|
1091
|
-
* Role.userRoles
|
|
1092
|
-
*/
|
|
1093
|
-
export type Role$userRolesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1094
|
-
/**
|
|
1095
|
-
* Select specific fields to fetch from the UserRole
|
|
1096
|
-
*/
|
|
1097
|
-
select?: Prisma.UserRoleSelect<ExtArgs> | null;
|
|
1098
|
-
/**
|
|
1099
|
-
* Omit specific fields from the UserRole
|
|
1100
|
-
*/
|
|
1101
|
-
omit?: Prisma.UserRoleOmit<ExtArgs> | null;
|
|
1102
|
-
/**
|
|
1103
|
-
* Choose, which related nodes to fetch as well
|
|
1104
|
-
*/
|
|
1105
|
-
include?: Prisma.UserRoleInclude<ExtArgs> | null;
|
|
1106
|
-
where?: Prisma.UserRoleWhereInput;
|
|
1107
|
-
orderBy?: Prisma.UserRoleOrderByWithRelationInput | Prisma.UserRoleOrderByWithRelationInput[];
|
|
1108
|
-
cursor?: Prisma.UserRoleWhereUniqueInput;
|
|
1109
|
-
take?: number;
|
|
1110
|
-
skip?: number;
|
|
1111
|
-
distinct?: Prisma.UserRoleScalarFieldEnum | Prisma.UserRoleScalarFieldEnum[];
|
|
1112
|
-
};
|
|
1113
|
-
/**
|
|
1114
|
-
* Role.permissions
|
|
1115
|
-
*/
|
|
1116
|
-
export type Role$permissionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1117
|
-
/**
|
|
1118
|
-
* Select specific fields to fetch from the RolePermission
|
|
1119
|
-
*/
|
|
1120
|
-
select?: Prisma.RolePermissionSelect<ExtArgs> | null;
|
|
1121
|
-
/**
|
|
1122
|
-
* Omit specific fields from the RolePermission
|
|
1123
|
-
*/
|
|
1124
|
-
omit?: Prisma.RolePermissionOmit<ExtArgs> | null;
|
|
1125
|
-
/**
|
|
1126
|
-
* Choose, which related nodes to fetch as well
|
|
1127
|
-
*/
|
|
1128
|
-
include?: Prisma.RolePermissionInclude<ExtArgs> | null;
|
|
1129
|
-
where?: Prisma.RolePermissionWhereInput;
|
|
1130
|
-
orderBy?: Prisma.RolePermissionOrderByWithRelationInput | Prisma.RolePermissionOrderByWithRelationInput[];
|
|
1131
|
-
cursor?: Prisma.RolePermissionWhereUniqueInput;
|
|
1132
|
-
take?: number;
|
|
1133
|
-
skip?: number;
|
|
1134
|
-
distinct?: Prisma.RolePermissionScalarFieldEnum | Prisma.RolePermissionScalarFieldEnum[];
|
|
1135
|
-
};
|
|
1136
|
-
/**
|
|
1137
|
-
* Role without action
|
|
1138
|
-
*/
|
|
1139
|
-
export type RoleDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1140
|
-
/**
|
|
1141
|
-
* Select specific fields to fetch from the Role
|
|
1142
|
-
*/
|
|
1143
|
-
select?: Prisma.RoleSelect<ExtArgs> | null;
|
|
1144
|
-
/**
|
|
1145
|
-
* Omit specific fields from the Role
|
|
1146
|
-
*/
|
|
1147
|
-
omit?: Prisma.RoleOmit<ExtArgs> | null;
|
|
1148
|
-
/**
|
|
1149
|
-
* Choose, which related nodes to fetch as well
|
|
1150
|
-
*/
|
|
1151
|
-
include?: Prisma.RoleInclude<ExtArgs> | null;
|
|
1152
|
-
};
|
|
1153
|
-
export {};
|