@valentine-efagene/qshelter-common 2.0.4 → 2.0.5

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