@valentine-efagene/qshelter-common 2.0.52 → 2.0.54

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