@valentine-efagene/qshelter-common 2.0.73 → 2.0.74

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.
@@ -0,0 +1,2214 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as $Enums from "../enums.js";
3
+ import type * as Prisma from "../internal/prismaNamespace.js";
4
+ /**
5
+ * Model ApprovalRequest
6
+ *
7
+ */
8
+ export type ApprovalRequestModel = runtime.Types.Result.DefaultSelection<Prisma.$ApprovalRequestPayload>;
9
+ export type AggregateApprovalRequest = {
10
+ _count: ApprovalRequestCountAggregateOutputType | null;
11
+ _min: ApprovalRequestMinAggregateOutputType | null;
12
+ _max: ApprovalRequestMaxAggregateOutputType | null;
13
+ };
14
+ export type ApprovalRequestMinAggregateOutputType = {
15
+ id: string | null;
16
+ tenantId: string | null;
17
+ type: $Enums.ApprovalRequestType | null;
18
+ status: $Enums.ApprovalRequestStatus | null;
19
+ priority: $Enums.ApprovalRequestPriority | null;
20
+ entityType: string | null;
21
+ entityId: string | null;
22
+ title: string | null;
23
+ description: string | null;
24
+ requestedById: string | null;
25
+ assigneeId: string | null;
26
+ reviewedById: string | null;
27
+ reviewNotes: string | null;
28
+ decision: $Enums.ApprovalDecision | null;
29
+ expiresAt: Date | null;
30
+ createdAt: Date | null;
31
+ assignedAt: Date | null;
32
+ reviewedAt: Date | null;
33
+ completedAt: Date | null;
34
+ updatedAt: Date | null;
35
+ };
36
+ export type ApprovalRequestMaxAggregateOutputType = {
37
+ id: string | null;
38
+ tenantId: string | null;
39
+ type: $Enums.ApprovalRequestType | null;
40
+ status: $Enums.ApprovalRequestStatus | null;
41
+ priority: $Enums.ApprovalRequestPriority | null;
42
+ entityType: string | null;
43
+ entityId: string | null;
44
+ title: string | null;
45
+ description: string | null;
46
+ requestedById: string | null;
47
+ assigneeId: string | null;
48
+ reviewedById: string | null;
49
+ reviewNotes: string | null;
50
+ decision: $Enums.ApprovalDecision | null;
51
+ expiresAt: Date | null;
52
+ createdAt: Date | null;
53
+ assignedAt: Date | null;
54
+ reviewedAt: Date | null;
55
+ completedAt: Date | null;
56
+ updatedAt: Date | null;
57
+ };
58
+ export type ApprovalRequestCountAggregateOutputType = {
59
+ id: number;
60
+ tenantId: number;
61
+ type: number;
62
+ status: number;
63
+ priority: number;
64
+ entityType: number;
65
+ entityId: number;
66
+ title: number;
67
+ description: number;
68
+ payload: number;
69
+ requestedById: number;
70
+ assigneeId: number;
71
+ reviewedById: number;
72
+ reviewNotes: number;
73
+ decision: number;
74
+ expiresAt: number;
75
+ createdAt: number;
76
+ assignedAt: number;
77
+ reviewedAt: number;
78
+ completedAt: number;
79
+ updatedAt: number;
80
+ _all: number;
81
+ };
82
+ export type ApprovalRequestMinAggregateInputType = {
83
+ id?: true;
84
+ tenantId?: true;
85
+ type?: true;
86
+ status?: true;
87
+ priority?: true;
88
+ entityType?: true;
89
+ entityId?: true;
90
+ title?: true;
91
+ description?: true;
92
+ requestedById?: true;
93
+ assigneeId?: true;
94
+ reviewedById?: true;
95
+ reviewNotes?: true;
96
+ decision?: true;
97
+ expiresAt?: true;
98
+ createdAt?: true;
99
+ assignedAt?: true;
100
+ reviewedAt?: true;
101
+ completedAt?: true;
102
+ updatedAt?: true;
103
+ };
104
+ export type ApprovalRequestMaxAggregateInputType = {
105
+ id?: true;
106
+ tenantId?: true;
107
+ type?: true;
108
+ status?: true;
109
+ priority?: true;
110
+ entityType?: true;
111
+ entityId?: true;
112
+ title?: true;
113
+ description?: true;
114
+ requestedById?: true;
115
+ assigneeId?: true;
116
+ reviewedById?: true;
117
+ reviewNotes?: true;
118
+ decision?: true;
119
+ expiresAt?: true;
120
+ createdAt?: true;
121
+ assignedAt?: true;
122
+ reviewedAt?: true;
123
+ completedAt?: true;
124
+ updatedAt?: true;
125
+ };
126
+ export type ApprovalRequestCountAggregateInputType = {
127
+ id?: true;
128
+ tenantId?: true;
129
+ type?: true;
130
+ status?: true;
131
+ priority?: true;
132
+ entityType?: true;
133
+ entityId?: true;
134
+ title?: true;
135
+ description?: true;
136
+ payload?: true;
137
+ requestedById?: true;
138
+ assigneeId?: true;
139
+ reviewedById?: true;
140
+ reviewNotes?: true;
141
+ decision?: true;
142
+ expiresAt?: true;
143
+ createdAt?: true;
144
+ assignedAt?: true;
145
+ reviewedAt?: true;
146
+ completedAt?: true;
147
+ updatedAt?: true;
148
+ _all?: true;
149
+ };
150
+ export type ApprovalRequestAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
151
+ /**
152
+ * Filter which ApprovalRequest to aggregate.
153
+ */
154
+ where?: Prisma.ApprovalRequestWhereInput;
155
+ /**
156
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
157
+ *
158
+ * Determine the order of ApprovalRequests to fetch.
159
+ */
160
+ orderBy?: Prisma.ApprovalRequestOrderByWithRelationInput | Prisma.ApprovalRequestOrderByWithRelationInput[];
161
+ /**
162
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
163
+ *
164
+ * Sets the start position
165
+ */
166
+ cursor?: Prisma.ApprovalRequestWhereUniqueInput;
167
+ /**
168
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
169
+ *
170
+ * Take `±n` ApprovalRequests from the position of the cursor.
171
+ */
172
+ take?: number;
173
+ /**
174
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
175
+ *
176
+ * Skip the first `n` ApprovalRequests.
177
+ */
178
+ skip?: number;
179
+ /**
180
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
181
+ *
182
+ * Count returned ApprovalRequests
183
+ **/
184
+ _count?: true | ApprovalRequestCountAggregateInputType;
185
+ /**
186
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
187
+ *
188
+ * Select which fields to find the minimum value
189
+ **/
190
+ _min?: ApprovalRequestMinAggregateInputType;
191
+ /**
192
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
193
+ *
194
+ * Select which fields to find the maximum value
195
+ **/
196
+ _max?: ApprovalRequestMaxAggregateInputType;
197
+ };
198
+ export type GetApprovalRequestAggregateType<T extends ApprovalRequestAggregateArgs> = {
199
+ [P in keyof T & keyof AggregateApprovalRequest]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateApprovalRequest[P]> : Prisma.GetScalarType<T[P], AggregateApprovalRequest[P]>;
200
+ };
201
+ export type ApprovalRequestGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
202
+ where?: Prisma.ApprovalRequestWhereInput;
203
+ orderBy?: Prisma.ApprovalRequestOrderByWithAggregationInput | Prisma.ApprovalRequestOrderByWithAggregationInput[];
204
+ by: Prisma.ApprovalRequestScalarFieldEnum[] | Prisma.ApprovalRequestScalarFieldEnum;
205
+ having?: Prisma.ApprovalRequestScalarWhereWithAggregatesInput;
206
+ take?: number;
207
+ skip?: number;
208
+ _count?: ApprovalRequestCountAggregateInputType | true;
209
+ _min?: ApprovalRequestMinAggregateInputType;
210
+ _max?: ApprovalRequestMaxAggregateInputType;
211
+ };
212
+ export type ApprovalRequestGroupByOutputType = {
213
+ id: string;
214
+ tenantId: string;
215
+ type: $Enums.ApprovalRequestType;
216
+ status: $Enums.ApprovalRequestStatus;
217
+ priority: $Enums.ApprovalRequestPriority;
218
+ entityType: string;
219
+ entityId: string;
220
+ title: string;
221
+ description: string | null;
222
+ payload: runtime.JsonValue | null;
223
+ requestedById: string;
224
+ assigneeId: string | null;
225
+ reviewedById: string | null;
226
+ reviewNotes: string | null;
227
+ decision: $Enums.ApprovalDecision | null;
228
+ expiresAt: Date | null;
229
+ createdAt: Date;
230
+ assignedAt: Date | null;
231
+ reviewedAt: Date | null;
232
+ completedAt: Date | null;
233
+ updatedAt: Date;
234
+ _count: ApprovalRequestCountAggregateOutputType | null;
235
+ _min: ApprovalRequestMinAggregateOutputType | null;
236
+ _max: ApprovalRequestMaxAggregateOutputType | null;
237
+ };
238
+ type GetApprovalRequestGroupByPayload<T extends ApprovalRequestGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<ApprovalRequestGroupByOutputType, T['by']> & {
239
+ [P in ((keyof T) & (keyof ApprovalRequestGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], ApprovalRequestGroupByOutputType[P]> : Prisma.GetScalarType<T[P], ApprovalRequestGroupByOutputType[P]>;
240
+ }>>;
241
+ export type ApprovalRequestWhereInput = {
242
+ AND?: Prisma.ApprovalRequestWhereInput | Prisma.ApprovalRequestWhereInput[];
243
+ OR?: Prisma.ApprovalRequestWhereInput[];
244
+ NOT?: Prisma.ApprovalRequestWhereInput | Prisma.ApprovalRequestWhereInput[];
245
+ id?: Prisma.StringFilter<"ApprovalRequest"> | string;
246
+ tenantId?: Prisma.StringFilter<"ApprovalRequest"> | string;
247
+ type?: Prisma.EnumApprovalRequestTypeFilter<"ApprovalRequest"> | $Enums.ApprovalRequestType;
248
+ status?: Prisma.EnumApprovalRequestStatusFilter<"ApprovalRequest"> | $Enums.ApprovalRequestStatus;
249
+ priority?: Prisma.EnumApprovalRequestPriorityFilter<"ApprovalRequest"> | $Enums.ApprovalRequestPriority;
250
+ entityType?: Prisma.StringFilter<"ApprovalRequest"> | string;
251
+ entityId?: Prisma.StringFilter<"ApprovalRequest"> | string;
252
+ title?: Prisma.StringFilter<"ApprovalRequest"> | string;
253
+ description?: Prisma.StringNullableFilter<"ApprovalRequest"> | string | null;
254
+ payload?: Prisma.JsonNullableFilter<"ApprovalRequest">;
255
+ requestedById?: Prisma.StringFilter<"ApprovalRequest"> | string;
256
+ assigneeId?: Prisma.StringNullableFilter<"ApprovalRequest"> | string | null;
257
+ reviewedById?: Prisma.StringNullableFilter<"ApprovalRequest"> | string | null;
258
+ reviewNotes?: Prisma.StringNullableFilter<"ApprovalRequest"> | string | null;
259
+ decision?: Prisma.EnumApprovalDecisionNullableFilter<"ApprovalRequest"> | $Enums.ApprovalDecision | null;
260
+ expiresAt?: Prisma.DateTimeNullableFilter<"ApprovalRequest"> | Date | string | null;
261
+ createdAt?: Prisma.DateTimeFilter<"ApprovalRequest"> | Date | string;
262
+ assignedAt?: Prisma.DateTimeNullableFilter<"ApprovalRequest"> | Date | string | null;
263
+ reviewedAt?: Prisma.DateTimeNullableFilter<"ApprovalRequest"> | Date | string | null;
264
+ completedAt?: Prisma.DateTimeNullableFilter<"ApprovalRequest"> | Date | string | null;
265
+ updatedAt?: Prisma.DateTimeFilter<"ApprovalRequest"> | Date | string;
266
+ tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
267
+ requestedBy?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
268
+ assignee?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
269
+ reviewedBy?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
270
+ };
271
+ export type ApprovalRequestOrderByWithRelationInput = {
272
+ id?: Prisma.SortOrder;
273
+ tenantId?: Prisma.SortOrder;
274
+ type?: Prisma.SortOrder;
275
+ status?: Prisma.SortOrder;
276
+ priority?: Prisma.SortOrder;
277
+ entityType?: Prisma.SortOrder;
278
+ entityId?: Prisma.SortOrder;
279
+ title?: Prisma.SortOrder;
280
+ description?: Prisma.SortOrderInput | Prisma.SortOrder;
281
+ payload?: Prisma.SortOrderInput | Prisma.SortOrder;
282
+ requestedById?: Prisma.SortOrder;
283
+ assigneeId?: Prisma.SortOrderInput | Prisma.SortOrder;
284
+ reviewedById?: Prisma.SortOrderInput | Prisma.SortOrder;
285
+ reviewNotes?: Prisma.SortOrderInput | Prisma.SortOrder;
286
+ decision?: Prisma.SortOrderInput | Prisma.SortOrder;
287
+ expiresAt?: Prisma.SortOrderInput | Prisma.SortOrder;
288
+ createdAt?: Prisma.SortOrder;
289
+ assignedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
290
+ reviewedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
291
+ completedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
292
+ updatedAt?: Prisma.SortOrder;
293
+ tenant?: Prisma.TenantOrderByWithRelationInput;
294
+ requestedBy?: Prisma.UserOrderByWithRelationInput;
295
+ assignee?: Prisma.UserOrderByWithRelationInput;
296
+ reviewedBy?: Prisma.UserOrderByWithRelationInput;
297
+ _relevance?: Prisma.ApprovalRequestOrderByRelevanceInput;
298
+ };
299
+ export type ApprovalRequestWhereUniqueInput = Prisma.AtLeast<{
300
+ id?: string;
301
+ AND?: Prisma.ApprovalRequestWhereInput | Prisma.ApprovalRequestWhereInput[];
302
+ OR?: Prisma.ApprovalRequestWhereInput[];
303
+ NOT?: Prisma.ApprovalRequestWhereInput | Prisma.ApprovalRequestWhereInput[];
304
+ tenantId?: Prisma.StringFilter<"ApprovalRequest"> | string;
305
+ type?: Prisma.EnumApprovalRequestTypeFilter<"ApprovalRequest"> | $Enums.ApprovalRequestType;
306
+ status?: Prisma.EnumApprovalRequestStatusFilter<"ApprovalRequest"> | $Enums.ApprovalRequestStatus;
307
+ priority?: Prisma.EnumApprovalRequestPriorityFilter<"ApprovalRequest"> | $Enums.ApprovalRequestPriority;
308
+ entityType?: Prisma.StringFilter<"ApprovalRequest"> | string;
309
+ entityId?: Prisma.StringFilter<"ApprovalRequest"> | string;
310
+ title?: Prisma.StringFilter<"ApprovalRequest"> | string;
311
+ description?: Prisma.StringNullableFilter<"ApprovalRequest"> | string | null;
312
+ payload?: Prisma.JsonNullableFilter<"ApprovalRequest">;
313
+ requestedById?: Prisma.StringFilter<"ApprovalRequest"> | string;
314
+ assigneeId?: Prisma.StringNullableFilter<"ApprovalRequest"> | string | null;
315
+ reviewedById?: Prisma.StringNullableFilter<"ApprovalRequest"> | string | null;
316
+ reviewNotes?: Prisma.StringNullableFilter<"ApprovalRequest"> | string | null;
317
+ decision?: Prisma.EnumApprovalDecisionNullableFilter<"ApprovalRequest"> | $Enums.ApprovalDecision | null;
318
+ expiresAt?: Prisma.DateTimeNullableFilter<"ApprovalRequest"> | Date | string | null;
319
+ createdAt?: Prisma.DateTimeFilter<"ApprovalRequest"> | Date | string;
320
+ assignedAt?: Prisma.DateTimeNullableFilter<"ApprovalRequest"> | Date | string | null;
321
+ reviewedAt?: Prisma.DateTimeNullableFilter<"ApprovalRequest"> | Date | string | null;
322
+ completedAt?: Prisma.DateTimeNullableFilter<"ApprovalRequest"> | Date | string | null;
323
+ updatedAt?: Prisma.DateTimeFilter<"ApprovalRequest"> | Date | string;
324
+ tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
325
+ requestedBy?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
326
+ assignee?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
327
+ reviewedBy?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
328
+ }, "id">;
329
+ export type ApprovalRequestOrderByWithAggregationInput = {
330
+ id?: Prisma.SortOrder;
331
+ tenantId?: Prisma.SortOrder;
332
+ type?: Prisma.SortOrder;
333
+ status?: Prisma.SortOrder;
334
+ priority?: Prisma.SortOrder;
335
+ entityType?: Prisma.SortOrder;
336
+ entityId?: Prisma.SortOrder;
337
+ title?: Prisma.SortOrder;
338
+ description?: Prisma.SortOrderInput | Prisma.SortOrder;
339
+ payload?: Prisma.SortOrderInput | Prisma.SortOrder;
340
+ requestedById?: Prisma.SortOrder;
341
+ assigneeId?: Prisma.SortOrderInput | Prisma.SortOrder;
342
+ reviewedById?: Prisma.SortOrderInput | Prisma.SortOrder;
343
+ reviewNotes?: Prisma.SortOrderInput | Prisma.SortOrder;
344
+ decision?: Prisma.SortOrderInput | Prisma.SortOrder;
345
+ expiresAt?: Prisma.SortOrderInput | Prisma.SortOrder;
346
+ createdAt?: Prisma.SortOrder;
347
+ assignedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
348
+ reviewedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
349
+ completedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
350
+ updatedAt?: Prisma.SortOrder;
351
+ _count?: Prisma.ApprovalRequestCountOrderByAggregateInput;
352
+ _max?: Prisma.ApprovalRequestMaxOrderByAggregateInput;
353
+ _min?: Prisma.ApprovalRequestMinOrderByAggregateInput;
354
+ };
355
+ export type ApprovalRequestScalarWhereWithAggregatesInput = {
356
+ AND?: Prisma.ApprovalRequestScalarWhereWithAggregatesInput | Prisma.ApprovalRequestScalarWhereWithAggregatesInput[];
357
+ OR?: Prisma.ApprovalRequestScalarWhereWithAggregatesInput[];
358
+ NOT?: Prisma.ApprovalRequestScalarWhereWithAggregatesInput | Prisma.ApprovalRequestScalarWhereWithAggregatesInput[];
359
+ id?: Prisma.StringWithAggregatesFilter<"ApprovalRequest"> | string;
360
+ tenantId?: Prisma.StringWithAggregatesFilter<"ApprovalRequest"> | string;
361
+ type?: Prisma.EnumApprovalRequestTypeWithAggregatesFilter<"ApprovalRequest"> | $Enums.ApprovalRequestType;
362
+ status?: Prisma.EnumApprovalRequestStatusWithAggregatesFilter<"ApprovalRequest"> | $Enums.ApprovalRequestStatus;
363
+ priority?: Prisma.EnumApprovalRequestPriorityWithAggregatesFilter<"ApprovalRequest"> | $Enums.ApprovalRequestPriority;
364
+ entityType?: Prisma.StringWithAggregatesFilter<"ApprovalRequest"> | string;
365
+ entityId?: Prisma.StringWithAggregatesFilter<"ApprovalRequest"> | string;
366
+ title?: Prisma.StringWithAggregatesFilter<"ApprovalRequest"> | string;
367
+ description?: Prisma.StringNullableWithAggregatesFilter<"ApprovalRequest"> | string | null;
368
+ payload?: Prisma.JsonNullableWithAggregatesFilter<"ApprovalRequest">;
369
+ requestedById?: Prisma.StringWithAggregatesFilter<"ApprovalRequest"> | string;
370
+ assigneeId?: Prisma.StringNullableWithAggregatesFilter<"ApprovalRequest"> | string | null;
371
+ reviewedById?: Prisma.StringNullableWithAggregatesFilter<"ApprovalRequest"> | string | null;
372
+ reviewNotes?: Prisma.StringNullableWithAggregatesFilter<"ApprovalRequest"> | string | null;
373
+ decision?: Prisma.EnumApprovalDecisionNullableWithAggregatesFilter<"ApprovalRequest"> | $Enums.ApprovalDecision | null;
374
+ expiresAt?: Prisma.DateTimeNullableWithAggregatesFilter<"ApprovalRequest"> | Date | string | null;
375
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"ApprovalRequest"> | Date | string;
376
+ assignedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"ApprovalRequest"> | Date | string | null;
377
+ reviewedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"ApprovalRequest"> | Date | string | null;
378
+ completedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"ApprovalRequest"> | Date | string | null;
379
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"ApprovalRequest"> | Date | string;
380
+ };
381
+ export type ApprovalRequestCreateInput = {
382
+ id?: string;
383
+ type: $Enums.ApprovalRequestType;
384
+ status?: $Enums.ApprovalRequestStatus;
385
+ priority?: $Enums.ApprovalRequestPriority;
386
+ entityType: string;
387
+ entityId: string;
388
+ title: string;
389
+ description?: string | null;
390
+ payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
391
+ reviewNotes?: string | null;
392
+ decision?: $Enums.ApprovalDecision | null;
393
+ expiresAt?: Date | string | null;
394
+ createdAt?: Date | string;
395
+ assignedAt?: Date | string | null;
396
+ reviewedAt?: Date | string | null;
397
+ completedAt?: Date | string | null;
398
+ updatedAt?: Date | string;
399
+ tenant: Prisma.TenantCreateNestedOneWithoutApprovalRequestsInput;
400
+ requestedBy: Prisma.UserCreateNestedOneWithoutApprovalRequestsSubmittedInput;
401
+ assignee?: Prisma.UserCreateNestedOneWithoutApprovalRequestsAssignedInput;
402
+ reviewedBy?: Prisma.UserCreateNestedOneWithoutApprovalRequestsReviewedInput;
403
+ };
404
+ export type ApprovalRequestUncheckedCreateInput = {
405
+ id?: string;
406
+ tenantId: string;
407
+ type: $Enums.ApprovalRequestType;
408
+ status?: $Enums.ApprovalRequestStatus;
409
+ priority?: $Enums.ApprovalRequestPriority;
410
+ entityType: string;
411
+ entityId: string;
412
+ title: string;
413
+ description?: string | null;
414
+ payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
415
+ requestedById: string;
416
+ assigneeId?: string | null;
417
+ reviewedById?: string | null;
418
+ reviewNotes?: string | null;
419
+ decision?: $Enums.ApprovalDecision | null;
420
+ expiresAt?: Date | string | null;
421
+ createdAt?: Date | string;
422
+ assignedAt?: Date | string | null;
423
+ reviewedAt?: Date | string | null;
424
+ completedAt?: Date | string | null;
425
+ updatedAt?: Date | string;
426
+ };
427
+ export type ApprovalRequestUpdateInput = {
428
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
429
+ type?: Prisma.EnumApprovalRequestTypeFieldUpdateOperationsInput | $Enums.ApprovalRequestType;
430
+ status?: Prisma.EnumApprovalRequestStatusFieldUpdateOperationsInput | $Enums.ApprovalRequestStatus;
431
+ priority?: Prisma.EnumApprovalRequestPriorityFieldUpdateOperationsInput | $Enums.ApprovalRequestPriority;
432
+ entityType?: Prisma.StringFieldUpdateOperationsInput | string;
433
+ entityId?: Prisma.StringFieldUpdateOperationsInput | string;
434
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
435
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
436
+ payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
437
+ reviewNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
438
+ decision?: Prisma.NullableEnumApprovalDecisionFieldUpdateOperationsInput | $Enums.ApprovalDecision | null;
439
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
440
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
441
+ assignedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
442
+ reviewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
443
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
444
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
445
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutApprovalRequestsNestedInput;
446
+ requestedBy?: Prisma.UserUpdateOneRequiredWithoutApprovalRequestsSubmittedNestedInput;
447
+ assignee?: Prisma.UserUpdateOneWithoutApprovalRequestsAssignedNestedInput;
448
+ reviewedBy?: Prisma.UserUpdateOneWithoutApprovalRequestsReviewedNestedInput;
449
+ };
450
+ export type ApprovalRequestUncheckedUpdateInput = {
451
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
452
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
453
+ type?: Prisma.EnumApprovalRequestTypeFieldUpdateOperationsInput | $Enums.ApprovalRequestType;
454
+ status?: Prisma.EnumApprovalRequestStatusFieldUpdateOperationsInput | $Enums.ApprovalRequestStatus;
455
+ priority?: Prisma.EnumApprovalRequestPriorityFieldUpdateOperationsInput | $Enums.ApprovalRequestPriority;
456
+ entityType?: Prisma.StringFieldUpdateOperationsInput | string;
457
+ entityId?: Prisma.StringFieldUpdateOperationsInput | string;
458
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
459
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
460
+ payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
461
+ requestedById?: Prisma.StringFieldUpdateOperationsInput | string;
462
+ assigneeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
463
+ reviewedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
464
+ reviewNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
465
+ decision?: Prisma.NullableEnumApprovalDecisionFieldUpdateOperationsInput | $Enums.ApprovalDecision | null;
466
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
467
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
468
+ assignedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
469
+ reviewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
470
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
471
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
472
+ };
473
+ export type ApprovalRequestCreateManyInput = {
474
+ id?: string;
475
+ tenantId: string;
476
+ type: $Enums.ApprovalRequestType;
477
+ status?: $Enums.ApprovalRequestStatus;
478
+ priority?: $Enums.ApprovalRequestPriority;
479
+ entityType: string;
480
+ entityId: string;
481
+ title: string;
482
+ description?: string | null;
483
+ payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
484
+ requestedById: string;
485
+ assigneeId?: string | null;
486
+ reviewedById?: string | null;
487
+ reviewNotes?: string | null;
488
+ decision?: $Enums.ApprovalDecision | null;
489
+ expiresAt?: Date | string | null;
490
+ createdAt?: Date | string;
491
+ assignedAt?: Date | string | null;
492
+ reviewedAt?: Date | string | null;
493
+ completedAt?: Date | string | null;
494
+ updatedAt?: Date | string;
495
+ };
496
+ export type ApprovalRequestUpdateManyMutationInput = {
497
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
498
+ type?: Prisma.EnumApprovalRequestTypeFieldUpdateOperationsInput | $Enums.ApprovalRequestType;
499
+ status?: Prisma.EnumApprovalRequestStatusFieldUpdateOperationsInput | $Enums.ApprovalRequestStatus;
500
+ priority?: Prisma.EnumApprovalRequestPriorityFieldUpdateOperationsInput | $Enums.ApprovalRequestPriority;
501
+ entityType?: Prisma.StringFieldUpdateOperationsInput | string;
502
+ entityId?: Prisma.StringFieldUpdateOperationsInput | string;
503
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
504
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
505
+ payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
506
+ reviewNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
507
+ decision?: Prisma.NullableEnumApprovalDecisionFieldUpdateOperationsInput | $Enums.ApprovalDecision | null;
508
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
509
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
510
+ assignedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
511
+ reviewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
512
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
513
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
514
+ };
515
+ export type ApprovalRequestUncheckedUpdateManyInput = {
516
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
517
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
518
+ type?: Prisma.EnumApprovalRequestTypeFieldUpdateOperationsInput | $Enums.ApprovalRequestType;
519
+ status?: Prisma.EnumApprovalRequestStatusFieldUpdateOperationsInput | $Enums.ApprovalRequestStatus;
520
+ priority?: Prisma.EnumApprovalRequestPriorityFieldUpdateOperationsInput | $Enums.ApprovalRequestPriority;
521
+ entityType?: Prisma.StringFieldUpdateOperationsInput | string;
522
+ entityId?: Prisma.StringFieldUpdateOperationsInput | string;
523
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
524
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
525
+ payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
526
+ requestedById?: Prisma.StringFieldUpdateOperationsInput | string;
527
+ assigneeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
528
+ reviewedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
529
+ reviewNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
530
+ decision?: Prisma.NullableEnumApprovalDecisionFieldUpdateOperationsInput | $Enums.ApprovalDecision | null;
531
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
532
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
533
+ assignedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
534
+ reviewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
535
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
536
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
537
+ };
538
+ export type ApprovalRequestListRelationFilter = {
539
+ every?: Prisma.ApprovalRequestWhereInput;
540
+ some?: Prisma.ApprovalRequestWhereInput;
541
+ none?: Prisma.ApprovalRequestWhereInput;
542
+ };
543
+ export type ApprovalRequestOrderByRelationAggregateInput = {
544
+ _count?: Prisma.SortOrder;
545
+ };
546
+ export type ApprovalRequestOrderByRelevanceInput = {
547
+ fields: Prisma.ApprovalRequestOrderByRelevanceFieldEnum | Prisma.ApprovalRequestOrderByRelevanceFieldEnum[];
548
+ sort: Prisma.SortOrder;
549
+ search: string;
550
+ };
551
+ export type ApprovalRequestCountOrderByAggregateInput = {
552
+ id?: Prisma.SortOrder;
553
+ tenantId?: Prisma.SortOrder;
554
+ type?: Prisma.SortOrder;
555
+ status?: Prisma.SortOrder;
556
+ priority?: Prisma.SortOrder;
557
+ entityType?: Prisma.SortOrder;
558
+ entityId?: Prisma.SortOrder;
559
+ title?: Prisma.SortOrder;
560
+ description?: Prisma.SortOrder;
561
+ payload?: Prisma.SortOrder;
562
+ requestedById?: Prisma.SortOrder;
563
+ assigneeId?: Prisma.SortOrder;
564
+ reviewedById?: Prisma.SortOrder;
565
+ reviewNotes?: Prisma.SortOrder;
566
+ decision?: Prisma.SortOrder;
567
+ expiresAt?: Prisma.SortOrder;
568
+ createdAt?: Prisma.SortOrder;
569
+ assignedAt?: Prisma.SortOrder;
570
+ reviewedAt?: Prisma.SortOrder;
571
+ completedAt?: Prisma.SortOrder;
572
+ updatedAt?: Prisma.SortOrder;
573
+ };
574
+ export type ApprovalRequestMaxOrderByAggregateInput = {
575
+ id?: Prisma.SortOrder;
576
+ tenantId?: Prisma.SortOrder;
577
+ type?: Prisma.SortOrder;
578
+ status?: Prisma.SortOrder;
579
+ priority?: Prisma.SortOrder;
580
+ entityType?: Prisma.SortOrder;
581
+ entityId?: Prisma.SortOrder;
582
+ title?: Prisma.SortOrder;
583
+ description?: Prisma.SortOrder;
584
+ requestedById?: Prisma.SortOrder;
585
+ assigneeId?: Prisma.SortOrder;
586
+ reviewedById?: Prisma.SortOrder;
587
+ reviewNotes?: Prisma.SortOrder;
588
+ decision?: Prisma.SortOrder;
589
+ expiresAt?: Prisma.SortOrder;
590
+ createdAt?: Prisma.SortOrder;
591
+ assignedAt?: Prisma.SortOrder;
592
+ reviewedAt?: Prisma.SortOrder;
593
+ completedAt?: Prisma.SortOrder;
594
+ updatedAt?: Prisma.SortOrder;
595
+ };
596
+ export type ApprovalRequestMinOrderByAggregateInput = {
597
+ id?: Prisma.SortOrder;
598
+ tenantId?: Prisma.SortOrder;
599
+ type?: Prisma.SortOrder;
600
+ status?: Prisma.SortOrder;
601
+ priority?: Prisma.SortOrder;
602
+ entityType?: Prisma.SortOrder;
603
+ entityId?: Prisma.SortOrder;
604
+ title?: Prisma.SortOrder;
605
+ description?: Prisma.SortOrder;
606
+ requestedById?: Prisma.SortOrder;
607
+ assigneeId?: Prisma.SortOrder;
608
+ reviewedById?: Prisma.SortOrder;
609
+ reviewNotes?: Prisma.SortOrder;
610
+ decision?: Prisma.SortOrder;
611
+ expiresAt?: Prisma.SortOrder;
612
+ createdAt?: Prisma.SortOrder;
613
+ assignedAt?: Prisma.SortOrder;
614
+ reviewedAt?: Prisma.SortOrder;
615
+ completedAt?: Prisma.SortOrder;
616
+ updatedAt?: Prisma.SortOrder;
617
+ };
618
+ export type ApprovalRequestCreateNestedManyWithoutRequestedByInput = {
619
+ create?: Prisma.XOR<Prisma.ApprovalRequestCreateWithoutRequestedByInput, Prisma.ApprovalRequestUncheckedCreateWithoutRequestedByInput> | Prisma.ApprovalRequestCreateWithoutRequestedByInput[] | Prisma.ApprovalRequestUncheckedCreateWithoutRequestedByInput[];
620
+ connectOrCreate?: Prisma.ApprovalRequestCreateOrConnectWithoutRequestedByInput | Prisma.ApprovalRequestCreateOrConnectWithoutRequestedByInput[];
621
+ createMany?: Prisma.ApprovalRequestCreateManyRequestedByInputEnvelope;
622
+ connect?: Prisma.ApprovalRequestWhereUniqueInput | Prisma.ApprovalRequestWhereUniqueInput[];
623
+ };
624
+ export type ApprovalRequestCreateNestedManyWithoutAssigneeInput = {
625
+ create?: Prisma.XOR<Prisma.ApprovalRequestCreateWithoutAssigneeInput, Prisma.ApprovalRequestUncheckedCreateWithoutAssigneeInput> | Prisma.ApprovalRequestCreateWithoutAssigneeInput[] | Prisma.ApprovalRequestUncheckedCreateWithoutAssigneeInput[];
626
+ connectOrCreate?: Prisma.ApprovalRequestCreateOrConnectWithoutAssigneeInput | Prisma.ApprovalRequestCreateOrConnectWithoutAssigneeInput[];
627
+ createMany?: Prisma.ApprovalRequestCreateManyAssigneeInputEnvelope;
628
+ connect?: Prisma.ApprovalRequestWhereUniqueInput | Prisma.ApprovalRequestWhereUniqueInput[];
629
+ };
630
+ export type ApprovalRequestCreateNestedManyWithoutReviewedByInput = {
631
+ create?: Prisma.XOR<Prisma.ApprovalRequestCreateWithoutReviewedByInput, Prisma.ApprovalRequestUncheckedCreateWithoutReviewedByInput> | Prisma.ApprovalRequestCreateWithoutReviewedByInput[] | Prisma.ApprovalRequestUncheckedCreateWithoutReviewedByInput[];
632
+ connectOrCreate?: Prisma.ApprovalRequestCreateOrConnectWithoutReviewedByInput | Prisma.ApprovalRequestCreateOrConnectWithoutReviewedByInput[];
633
+ createMany?: Prisma.ApprovalRequestCreateManyReviewedByInputEnvelope;
634
+ connect?: Prisma.ApprovalRequestWhereUniqueInput | Prisma.ApprovalRequestWhereUniqueInput[];
635
+ };
636
+ export type ApprovalRequestUncheckedCreateNestedManyWithoutRequestedByInput = {
637
+ create?: Prisma.XOR<Prisma.ApprovalRequestCreateWithoutRequestedByInput, Prisma.ApprovalRequestUncheckedCreateWithoutRequestedByInput> | Prisma.ApprovalRequestCreateWithoutRequestedByInput[] | Prisma.ApprovalRequestUncheckedCreateWithoutRequestedByInput[];
638
+ connectOrCreate?: Prisma.ApprovalRequestCreateOrConnectWithoutRequestedByInput | Prisma.ApprovalRequestCreateOrConnectWithoutRequestedByInput[];
639
+ createMany?: Prisma.ApprovalRequestCreateManyRequestedByInputEnvelope;
640
+ connect?: Prisma.ApprovalRequestWhereUniqueInput | Prisma.ApprovalRequestWhereUniqueInput[];
641
+ };
642
+ export type ApprovalRequestUncheckedCreateNestedManyWithoutAssigneeInput = {
643
+ create?: Prisma.XOR<Prisma.ApprovalRequestCreateWithoutAssigneeInput, Prisma.ApprovalRequestUncheckedCreateWithoutAssigneeInput> | Prisma.ApprovalRequestCreateWithoutAssigneeInput[] | Prisma.ApprovalRequestUncheckedCreateWithoutAssigneeInput[];
644
+ connectOrCreate?: Prisma.ApprovalRequestCreateOrConnectWithoutAssigneeInput | Prisma.ApprovalRequestCreateOrConnectWithoutAssigneeInput[];
645
+ createMany?: Prisma.ApprovalRequestCreateManyAssigneeInputEnvelope;
646
+ connect?: Prisma.ApprovalRequestWhereUniqueInput | Prisma.ApprovalRequestWhereUniqueInput[];
647
+ };
648
+ export type ApprovalRequestUncheckedCreateNestedManyWithoutReviewedByInput = {
649
+ create?: Prisma.XOR<Prisma.ApprovalRequestCreateWithoutReviewedByInput, Prisma.ApprovalRequestUncheckedCreateWithoutReviewedByInput> | Prisma.ApprovalRequestCreateWithoutReviewedByInput[] | Prisma.ApprovalRequestUncheckedCreateWithoutReviewedByInput[];
650
+ connectOrCreate?: Prisma.ApprovalRequestCreateOrConnectWithoutReviewedByInput | Prisma.ApprovalRequestCreateOrConnectWithoutReviewedByInput[];
651
+ createMany?: Prisma.ApprovalRequestCreateManyReviewedByInputEnvelope;
652
+ connect?: Prisma.ApprovalRequestWhereUniqueInput | Prisma.ApprovalRequestWhereUniqueInput[];
653
+ };
654
+ export type ApprovalRequestUpdateManyWithoutRequestedByNestedInput = {
655
+ create?: Prisma.XOR<Prisma.ApprovalRequestCreateWithoutRequestedByInput, Prisma.ApprovalRequestUncheckedCreateWithoutRequestedByInput> | Prisma.ApprovalRequestCreateWithoutRequestedByInput[] | Prisma.ApprovalRequestUncheckedCreateWithoutRequestedByInput[];
656
+ connectOrCreate?: Prisma.ApprovalRequestCreateOrConnectWithoutRequestedByInput | Prisma.ApprovalRequestCreateOrConnectWithoutRequestedByInput[];
657
+ upsert?: Prisma.ApprovalRequestUpsertWithWhereUniqueWithoutRequestedByInput | Prisma.ApprovalRequestUpsertWithWhereUniqueWithoutRequestedByInput[];
658
+ createMany?: Prisma.ApprovalRequestCreateManyRequestedByInputEnvelope;
659
+ set?: Prisma.ApprovalRequestWhereUniqueInput | Prisma.ApprovalRequestWhereUniqueInput[];
660
+ disconnect?: Prisma.ApprovalRequestWhereUniqueInput | Prisma.ApprovalRequestWhereUniqueInput[];
661
+ delete?: Prisma.ApprovalRequestWhereUniqueInput | Prisma.ApprovalRequestWhereUniqueInput[];
662
+ connect?: Prisma.ApprovalRequestWhereUniqueInput | Prisma.ApprovalRequestWhereUniqueInput[];
663
+ update?: Prisma.ApprovalRequestUpdateWithWhereUniqueWithoutRequestedByInput | Prisma.ApprovalRequestUpdateWithWhereUniqueWithoutRequestedByInput[];
664
+ updateMany?: Prisma.ApprovalRequestUpdateManyWithWhereWithoutRequestedByInput | Prisma.ApprovalRequestUpdateManyWithWhereWithoutRequestedByInput[];
665
+ deleteMany?: Prisma.ApprovalRequestScalarWhereInput | Prisma.ApprovalRequestScalarWhereInput[];
666
+ };
667
+ export type ApprovalRequestUpdateManyWithoutAssigneeNestedInput = {
668
+ create?: Prisma.XOR<Prisma.ApprovalRequestCreateWithoutAssigneeInput, Prisma.ApprovalRequestUncheckedCreateWithoutAssigneeInput> | Prisma.ApprovalRequestCreateWithoutAssigneeInput[] | Prisma.ApprovalRequestUncheckedCreateWithoutAssigneeInput[];
669
+ connectOrCreate?: Prisma.ApprovalRequestCreateOrConnectWithoutAssigneeInput | Prisma.ApprovalRequestCreateOrConnectWithoutAssigneeInput[];
670
+ upsert?: Prisma.ApprovalRequestUpsertWithWhereUniqueWithoutAssigneeInput | Prisma.ApprovalRequestUpsertWithWhereUniqueWithoutAssigneeInput[];
671
+ createMany?: Prisma.ApprovalRequestCreateManyAssigneeInputEnvelope;
672
+ set?: Prisma.ApprovalRequestWhereUniqueInput | Prisma.ApprovalRequestWhereUniqueInput[];
673
+ disconnect?: Prisma.ApprovalRequestWhereUniqueInput | Prisma.ApprovalRequestWhereUniqueInput[];
674
+ delete?: Prisma.ApprovalRequestWhereUniqueInput | Prisma.ApprovalRequestWhereUniqueInput[];
675
+ connect?: Prisma.ApprovalRequestWhereUniqueInput | Prisma.ApprovalRequestWhereUniqueInput[];
676
+ update?: Prisma.ApprovalRequestUpdateWithWhereUniqueWithoutAssigneeInput | Prisma.ApprovalRequestUpdateWithWhereUniqueWithoutAssigneeInput[];
677
+ updateMany?: Prisma.ApprovalRequestUpdateManyWithWhereWithoutAssigneeInput | Prisma.ApprovalRequestUpdateManyWithWhereWithoutAssigneeInput[];
678
+ deleteMany?: Prisma.ApprovalRequestScalarWhereInput | Prisma.ApprovalRequestScalarWhereInput[];
679
+ };
680
+ export type ApprovalRequestUpdateManyWithoutReviewedByNestedInput = {
681
+ create?: Prisma.XOR<Prisma.ApprovalRequestCreateWithoutReviewedByInput, Prisma.ApprovalRequestUncheckedCreateWithoutReviewedByInput> | Prisma.ApprovalRequestCreateWithoutReviewedByInput[] | Prisma.ApprovalRequestUncheckedCreateWithoutReviewedByInput[];
682
+ connectOrCreate?: Prisma.ApprovalRequestCreateOrConnectWithoutReviewedByInput | Prisma.ApprovalRequestCreateOrConnectWithoutReviewedByInput[];
683
+ upsert?: Prisma.ApprovalRequestUpsertWithWhereUniqueWithoutReviewedByInput | Prisma.ApprovalRequestUpsertWithWhereUniqueWithoutReviewedByInput[];
684
+ createMany?: Prisma.ApprovalRequestCreateManyReviewedByInputEnvelope;
685
+ set?: Prisma.ApprovalRequestWhereUniqueInput | Prisma.ApprovalRequestWhereUniqueInput[];
686
+ disconnect?: Prisma.ApprovalRequestWhereUniqueInput | Prisma.ApprovalRequestWhereUniqueInput[];
687
+ delete?: Prisma.ApprovalRequestWhereUniqueInput | Prisma.ApprovalRequestWhereUniqueInput[];
688
+ connect?: Prisma.ApprovalRequestWhereUniqueInput | Prisma.ApprovalRequestWhereUniqueInput[];
689
+ update?: Prisma.ApprovalRequestUpdateWithWhereUniqueWithoutReviewedByInput | Prisma.ApprovalRequestUpdateWithWhereUniqueWithoutReviewedByInput[];
690
+ updateMany?: Prisma.ApprovalRequestUpdateManyWithWhereWithoutReviewedByInput | Prisma.ApprovalRequestUpdateManyWithWhereWithoutReviewedByInput[];
691
+ deleteMany?: Prisma.ApprovalRequestScalarWhereInput | Prisma.ApprovalRequestScalarWhereInput[];
692
+ };
693
+ export type ApprovalRequestUncheckedUpdateManyWithoutRequestedByNestedInput = {
694
+ create?: Prisma.XOR<Prisma.ApprovalRequestCreateWithoutRequestedByInput, Prisma.ApprovalRequestUncheckedCreateWithoutRequestedByInput> | Prisma.ApprovalRequestCreateWithoutRequestedByInput[] | Prisma.ApprovalRequestUncheckedCreateWithoutRequestedByInput[];
695
+ connectOrCreate?: Prisma.ApprovalRequestCreateOrConnectWithoutRequestedByInput | Prisma.ApprovalRequestCreateOrConnectWithoutRequestedByInput[];
696
+ upsert?: Prisma.ApprovalRequestUpsertWithWhereUniqueWithoutRequestedByInput | Prisma.ApprovalRequestUpsertWithWhereUniqueWithoutRequestedByInput[];
697
+ createMany?: Prisma.ApprovalRequestCreateManyRequestedByInputEnvelope;
698
+ set?: Prisma.ApprovalRequestWhereUniqueInput | Prisma.ApprovalRequestWhereUniqueInput[];
699
+ disconnect?: Prisma.ApprovalRequestWhereUniqueInput | Prisma.ApprovalRequestWhereUniqueInput[];
700
+ delete?: Prisma.ApprovalRequestWhereUniqueInput | Prisma.ApprovalRequestWhereUniqueInput[];
701
+ connect?: Prisma.ApprovalRequestWhereUniqueInput | Prisma.ApprovalRequestWhereUniqueInput[];
702
+ update?: Prisma.ApprovalRequestUpdateWithWhereUniqueWithoutRequestedByInput | Prisma.ApprovalRequestUpdateWithWhereUniqueWithoutRequestedByInput[];
703
+ updateMany?: Prisma.ApprovalRequestUpdateManyWithWhereWithoutRequestedByInput | Prisma.ApprovalRequestUpdateManyWithWhereWithoutRequestedByInput[];
704
+ deleteMany?: Prisma.ApprovalRequestScalarWhereInput | Prisma.ApprovalRequestScalarWhereInput[];
705
+ };
706
+ export type ApprovalRequestUncheckedUpdateManyWithoutAssigneeNestedInput = {
707
+ create?: Prisma.XOR<Prisma.ApprovalRequestCreateWithoutAssigneeInput, Prisma.ApprovalRequestUncheckedCreateWithoutAssigneeInput> | Prisma.ApprovalRequestCreateWithoutAssigneeInput[] | Prisma.ApprovalRequestUncheckedCreateWithoutAssigneeInput[];
708
+ connectOrCreate?: Prisma.ApprovalRequestCreateOrConnectWithoutAssigneeInput | Prisma.ApprovalRequestCreateOrConnectWithoutAssigneeInput[];
709
+ upsert?: Prisma.ApprovalRequestUpsertWithWhereUniqueWithoutAssigneeInput | Prisma.ApprovalRequestUpsertWithWhereUniqueWithoutAssigneeInput[];
710
+ createMany?: Prisma.ApprovalRequestCreateManyAssigneeInputEnvelope;
711
+ set?: Prisma.ApprovalRequestWhereUniqueInput | Prisma.ApprovalRequestWhereUniqueInput[];
712
+ disconnect?: Prisma.ApprovalRequestWhereUniqueInput | Prisma.ApprovalRequestWhereUniqueInput[];
713
+ delete?: Prisma.ApprovalRequestWhereUniqueInput | Prisma.ApprovalRequestWhereUniqueInput[];
714
+ connect?: Prisma.ApprovalRequestWhereUniqueInput | Prisma.ApprovalRequestWhereUniqueInput[];
715
+ update?: Prisma.ApprovalRequestUpdateWithWhereUniqueWithoutAssigneeInput | Prisma.ApprovalRequestUpdateWithWhereUniqueWithoutAssigneeInput[];
716
+ updateMany?: Prisma.ApprovalRequestUpdateManyWithWhereWithoutAssigneeInput | Prisma.ApprovalRequestUpdateManyWithWhereWithoutAssigneeInput[];
717
+ deleteMany?: Prisma.ApprovalRequestScalarWhereInput | Prisma.ApprovalRequestScalarWhereInput[];
718
+ };
719
+ export type ApprovalRequestUncheckedUpdateManyWithoutReviewedByNestedInput = {
720
+ create?: Prisma.XOR<Prisma.ApprovalRequestCreateWithoutReviewedByInput, Prisma.ApprovalRequestUncheckedCreateWithoutReviewedByInput> | Prisma.ApprovalRequestCreateWithoutReviewedByInput[] | Prisma.ApprovalRequestUncheckedCreateWithoutReviewedByInput[];
721
+ connectOrCreate?: Prisma.ApprovalRequestCreateOrConnectWithoutReviewedByInput | Prisma.ApprovalRequestCreateOrConnectWithoutReviewedByInput[];
722
+ upsert?: Prisma.ApprovalRequestUpsertWithWhereUniqueWithoutReviewedByInput | Prisma.ApprovalRequestUpsertWithWhereUniqueWithoutReviewedByInput[];
723
+ createMany?: Prisma.ApprovalRequestCreateManyReviewedByInputEnvelope;
724
+ set?: Prisma.ApprovalRequestWhereUniqueInput | Prisma.ApprovalRequestWhereUniqueInput[];
725
+ disconnect?: Prisma.ApprovalRequestWhereUniqueInput | Prisma.ApprovalRequestWhereUniqueInput[];
726
+ delete?: Prisma.ApprovalRequestWhereUniqueInput | Prisma.ApprovalRequestWhereUniqueInput[];
727
+ connect?: Prisma.ApprovalRequestWhereUniqueInput | Prisma.ApprovalRequestWhereUniqueInput[];
728
+ update?: Prisma.ApprovalRequestUpdateWithWhereUniqueWithoutReviewedByInput | Prisma.ApprovalRequestUpdateWithWhereUniqueWithoutReviewedByInput[];
729
+ updateMany?: Prisma.ApprovalRequestUpdateManyWithWhereWithoutReviewedByInput | Prisma.ApprovalRequestUpdateManyWithWhereWithoutReviewedByInput[];
730
+ deleteMany?: Prisma.ApprovalRequestScalarWhereInput | Prisma.ApprovalRequestScalarWhereInput[];
731
+ };
732
+ export type ApprovalRequestCreateNestedManyWithoutTenantInput = {
733
+ create?: Prisma.XOR<Prisma.ApprovalRequestCreateWithoutTenantInput, Prisma.ApprovalRequestUncheckedCreateWithoutTenantInput> | Prisma.ApprovalRequestCreateWithoutTenantInput[] | Prisma.ApprovalRequestUncheckedCreateWithoutTenantInput[];
734
+ connectOrCreate?: Prisma.ApprovalRequestCreateOrConnectWithoutTenantInput | Prisma.ApprovalRequestCreateOrConnectWithoutTenantInput[];
735
+ createMany?: Prisma.ApprovalRequestCreateManyTenantInputEnvelope;
736
+ connect?: Prisma.ApprovalRequestWhereUniqueInput | Prisma.ApprovalRequestWhereUniqueInput[];
737
+ };
738
+ export type ApprovalRequestUncheckedCreateNestedManyWithoutTenantInput = {
739
+ create?: Prisma.XOR<Prisma.ApprovalRequestCreateWithoutTenantInput, Prisma.ApprovalRequestUncheckedCreateWithoutTenantInput> | Prisma.ApprovalRequestCreateWithoutTenantInput[] | Prisma.ApprovalRequestUncheckedCreateWithoutTenantInput[];
740
+ connectOrCreate?: Prisma.ApprovalRequestCreateOrConnectWithoutTenantInput | Prisma.ApprovalRequestCreateOrConnectWithoutTenantInput[];
741
+ createMany?: Prisma.ApprovalRequestCreateManyTenantInputEnvelope;
742
+ connect?: Prisma.ApprovalRequestWhereUniqueInput | Prisma.ApprovalRequestWhereUniqueInput[];
743
+ };
744
+ export type ApprovalRequestUpdateManyWithoutTenantNestedInput = {
745
+ create?: Prisma.XOR<Prisma.ApprovalRequestCreateWithoutTenantInput, Prisma.ApprovalRequestUncheckedCreateWithoutTenantInput> | Prisma.ApprovalRequestCreateWithoutTenantInput[] | Prisma.ApprovalRequestUncheckedCreateWithoutTenantInput[];
746
+ connectOrCreate?: Prisma.ApprovalRequestCreateOrConnectWithoutTenantInput | Prisma.ApprovalRequestCreateOrConnectWithoutTenantInput[];
747
+ upsert?: Prisma.ApprovalRequestUpsertWithWhereUniqueWithoutTenantInput | Prisma.ApprovalRequestUpsertWithWhereUniqueWithoutTenantInput[];
748
+ createMany?: Prisma.ApprovalRequestCreateManyTenantInputEnvelope;
749
+ set?: Prisma.ApprovalRequestWhereUniqueInput | Prisma.ApprovalRequestWhereUniqueInput[];
750
+ disconnect?: Prisma.ApprovalRequestWhereUniqueInput | Prisma.ApprovalRequestWhereUniqueInput[];
751
+ delete?: Prisma.ApprovalRequestWhereUniqueInput | Prisma.ApprovalRequestWhereUniqueInput[];
752
+ connect?: Prisma.ApprovalRequestWhereUniqueInput | Prisma.ApprovalRequestWhereUniqueInput[];
753
+ update?: Prisma.ApprovalRequestUpdateWithWhereUniqueWithoutTenantInput | Prisma.ApprovalRequestUpdateWithWhereUniqueWithoutTenantInput[];
754
+ updateMany?: Prisma.ApprovalRequestUpdateManyWithWhereWithoutTenantInput | Prisma.ApprovalRequestUpdateManyWithWhereWithoutTenantInput[];
755
+ deleteMany?: Prisma.ApprovalRequestScalarWhereInput | Prisma.ApprovalRequestScalarWhereInput[];
756
+ };
757
+ export type ApprovalRequestUncheckedUpdateManyWithoutTenantNestedInput = {
758
+ create?: Prisma.XOR<Prisma.ApprovalRequestCreateWithoutTenantInput, Prisma.ApprovalRequestUncheckedCreateWithoutTenantInput> | Prisma.ApprovalRequestCreateWithoutTenantInput[] | Prisma.ApprovalRequestUncheckedCreateWithoutTenantInput[];
759
+ connectOrCreate?: Prisma.ApprovalRequestCreateOrConnectWithoutTenantInput | Prisma.ApprovalRequestCreateOrConnectWithoutTenantInput[];
760
+ upsert?: Prisma.ApprovalRequestUpsertWithWhereUniqueWithoutTenantInput | Prisma.ApprovalRequestUpsertWithWhereUniqueWithoutTenantInput[];
761
+ createMany?: Prisma.ApprovalRequestCreateManyTenantInputEnvelope;
762
+ set?: Prisma.ApprovalRequestWhereUniqueInput | Prisma.ApprovalRequestWhereUniqueInput[];
763
+ disconnect?: Prisma.ApprovalRequestWhereUniqueInput | Prisma.ApprovalRequestWhereUniqueInput[];
764
+ delete?: Prisma.ApprovalRequestWhereUniqueInput | Prisma.ApprovalRequestWhereUniqueInput[];
765
+ connect?: Prisma.ApprovalRequestWhereUniqueInput | Prisma.ApprovalRequestWhereUniqueInput[];
766
+ update?: Prisma.ApprovalRequestUpdateWithWhereUniqueWithoutTenantInput | Prisma.ApprovalRequestUpdateWithWhereUniqueWithoutTenantInput[];
767
+ updateMany?: Prisma.ApprovalRequestUpdateManyWithWhereWithoutTenantInput | Prisma.ApprovalRequestUpdateManyWithWhereWithoutTenantInput[];
768
+ deleteMany?: Prisma.ApprovalRequestScalarWhereInput | Prisma.ApprovalRequestScalarWhereInput[];
769
+ };
770
+ export type EnumApprovalRequestTypeFieldUpdateOperationsInput = {
771
+ set?: $Enums.ApprovalRequestType;
772
+ };
773
+ export type EnumApprovalRequestStatusFieldUpdateOperationsInput = {
774
+ set?: $Enums.ApprovalRequestStatus;
775
+ };
776
+ export type EnumApprovalRequestPriorityFieldUpdateOperationsInput = {
777
+ set?: $Enums.ApprovalRequestPriority;
778
+ };
779
+ export type NullableEnumApprovalDecisionFieldUpdateOperationsInput = {
780
+ set?: $Enums.ApprovalDecision | null;
781
+ };
782
+ export type ApprovalRequestCreateWithoutRequestedByInput = {
783
+ id?: string;
784
+ type: $Enums.ApprovalRequestType;
785
+ status?: $Enums.ApprovalRequestStatus;
786
+ priority?: $Enums.ApprovalRequestPriority;
787
+ entityType: string;
788
+ entityId: string;
789
+ title: string;
790
+ description?: string | null;
791
+ payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
792
+ reviewNotes?: string | null;
793
+ decision?: $Enums.ApprovalDecision | null;
794
+ expiresAt?: Date | string | null;
795
+ createdAt?: Date | string;
796
+ assignedAt?: Date | string | null;
797
+ reviewedAt?: Date | string | null;
798
+ completedAt?: Date | string | null;
799
+ updatedAt?: Date | string;
800
+ tenant: Prisma.TenantCreateNestedOneWithoutApprovalRequestsInput;
801
+ assignee?: Prisma.UserCreateNestedOneWithoutApprovalRequestsAssignedInput;
802
+ reviewedBy?: Prisma.UserCreateNestedOneWithoutApprovalRequestsReviewedInput;
803
+ };
804
+ export type ApprovalRequestUncheckedCreateWithoutRequestedByInput = {
805
+ id?: string;
806
+ tenantId: string;
807
+ type: $Enums.ApprovalRequestType;
808
+ status?: $Enums.ApprovalRequestStatus;
809
+ priority?: $Enums.ApprovalRequestPriority;
810
+ entityType: string;
811
+ entityId: string;
812
+ title: string;
813
+ description?: string | null;
814
+ payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
815
+ assigneeId?: string | null;
816
+ reviewedById?: string | null;
817
+ reviewNotes?: string | null;
818
+ decision?: $Enums.ApprovalDecision | null;
819
+ expiresAt?: Date | string | null;
820
+ createdAt?: Date | string;
821
+ assignedAt?: Date | string | null;
822
+ reviewedAt?: Date | string | null;
823
+ completedAt?: Date | string | null;
824
+ updatedAt?: Date | string;
825
+ };
826
+ export type ApprovalRequestCreateOrConnectWithoutRequestedByInput = {
827
+ where: Prisma.ApprovalRequestWhereUniqueInput;
828
+ create: Prisma.XOR<Prisma.ApprovalRequestCreateWithoutRequestedByInput, Prisma.ApprovalRequestUncheckedCreateWithoutRequestedByInput>;
829
+ };
830
+ export type ApprovalRequestCreateManyRequestedByInputEnvelope = {
831
+ data: Prisma.ApprovalRequestCreateManyRequestedByInput | Prisma.ApprovalRequestCreateManyRequestedByInput[];
832
+ skipDuplicates?: boolean;
833
+ };
834
+ export type ApprovalRequestCreateWithoutAssigneeInput = {
835
+ id?: string;
836
+ type: $Enums.ApprovalRequestType;
837
+ status?: $Enums.ApprovalRequestStatus;
838
+ priority?: $Enums.ApprovalRequestPriority;
839
+ entityType: string;
840
+ entityId: string;
841
+ title: string;
842
+ description?: string | null;
843
+ payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
844
+ reviewNotes?: string | null;
845
+ decision?: $Enums.ApprovalDecision | null;
846
+ expiresAt?: Date | string | null;
847
+ createdAt?: Date | string;
848
+ assignedAt?: Date | string | null;
849
+ reviewedAt?: Date | string | null;
850
+ completedAt?: Date | string | null;
851
+ updatedAt?: Date | string;
852
+ tenant: Prisma.TenantCreateNestedOneWithoutApprovalRequestsInput;
853
+ requestedBy: Prisma.UserCreateNestedOneWithoutApprovalRequestsSubmittedInput;
854
+ reviewedBy?: Prisma.UserCreateNestedOneWithoutApprovalRequestsReviewedInput;
855
+ };
856
+ export type ApprovalRequestUncheckedCreateWithoutAssigneeInput = {
857
+ id?: string;
858
+ tenantId: string;
859
+ type: $Enums.ApprovalRequestType;
860
+ status?: $Enums.ApprovalRequestStatus;
861
+ priority?: $Enums.ApprovalRequestPriority;
862
+ entityType: string;
863
+ entityId: string;
864
+ title: string;
865
+ description?: string | null;
866
+ payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
867
+ requestedById: string;
868
+ reviewedById?: string | null;
869
+ reviewNotes?: string | null;
870
+ decision?: $Enums.ApprovalDecision | null;
871
+ expiresAt?: Date | string | null;
872
+ createdAt?: Date | string;
873
+ assignedAt?: Date | string | null;
874
+ reviewedAt?: Date | string | null;
875
+ completedAt?: Date | string | null;
876
+ updatedAt?: Date | string;
877
+ };
878
+ export type ApprovalRequestCreateOrConnectWithoutAssigneeInput = {
879
+ where: Prisma.ApprovalRequestWhereUniqueInput;
880
+ create: Prisma.XOR<Prisma.ApprovalRequestCreateWithoutAssigneeInput, Prisma.ApprovalRequestUncheckedCreateWithoutAssigneeInput>;
881
+ };
882
+ export type ApprovalRequestCreateManyAssigneeInputEnvelope = {
883
+ data: Prisma.ApprovalRequestCreateManyAssigneeInput | Prisma.ApprovalRequestCreateManyAssigneeInput[];
884
+ skipDuplicates?: boolean;
885
+ };
886
+ export type ApprovalRequestCreateWithoutReviewedByInput = {
887
+ id?: string;
888
+ type: $Enums.ApprovalRequestType;
889
+ status?: $Enums.ApprovalRequestStatus;
890
+ priority?: $Enums.ApprovalRequestPriority;
891
+ entityType: string;
892
+ entityId: string;
893
+ title: string;
894
+ description?: string | null;
895
+ payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
896
+ reviewNotes?: string | null;
897
+ decision?: $Enums.ApprovalDecision | null;
898
+ expiresAt?: Date | string | null;
899
+ createdAt?: Date | string;
900
+ assignedAt?: Date | string | null;
901
+ reviewedAt?: Date | string | null;
902
+ completedAt?: Date | string | null;
903
+ updatedAt?: Date | string;
904
+ tenant: Prisma.TenantCreateNestedOneWithoutApprovalRequestsInput;
905
+ requestedBy: Prisma.UserCreateNestedOneWithoutApprovalRequestsSubmittedInput;
906
+ assignee?: Prisma.UserCreateNestedOneWithoutApprovalRequestsAssignedInput;
907
+ };
908
+ export type ApprovalRequestUncheckedCreateWithoutReviewedByInput = {
909
+ id?: string;
910
+ tenantId: string;
911
+ type: $Enums.ApprovalRequestType;
912
+ status?: $Enums.ApprovalRequestStatus;
913
+ priority?: $Enums.ApprovalRequestPriority;
914
+ entityType: string;
915
+ entityId: string;
916
+ title: string;
917
+ description?: string | null;
918
+ payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
919
+ requestedById: string;
920
+ assigneeId?: string | null;
921
+ reviewNotes?: string | null;
922
+ decision?: $Enums.ApprovalDecision | null;
923
+ expiresAt?: Date | string | null;
924
+ createdAt?: Date | string;
925
+ assignedAt?: Date | string | null;
926
+ reviewedAt?: Date | string | null;
927
+ completedAt?: Date | string | null;
928
+ updatedAt?: Date | string;
929
+ };
930
+ export type ApprovalRequestCreateOrConnectWithoutReviewedByInput = {
931
+ where: Prisma.ApprovalRequestWhereUniqueInput;
932
+ create: Prisma.XOR<Prisma.ApprovalRequestCreateWithoutReviewedByInput, Prisma.ApprovalRequestUncheckedCreateWithoutReviewedByInput>;
933
+ };
934
+ export type ApprovalRequestCreateManyReviewedByInputEnvelope = {
935
+ data: Prisma.ApprovalRequestCreateManyReviewedByInput | Prisma.ApprovalRequestCreateManyReviewedByInput[];
936
+ skipDuplicates?: boolean;
937
+ };
938
+ export type ApprovalRequestUpsertWithWhereUniqueWithoutRequestedByInput = {
939
+ where: Prisma.ApprovalRequestWhereUniqueInput;
940
+ update: Prisma.XOR<Prisma.ApprovalRequestUpdateWithoutRequestedByInput, Prisma.ApprovalRequestUncheckedUpdateWithoutRequestedByInput>;
941
+ create: Prisma.XOR<Prisma.ApprovalRequestCreateWithoutRequestedByInput, Prisma.ApprovalRequestUncheckedCreateWithoutRequestedByInput>;
942
+ };
943
+ export type ApprovalRequestUpdateWithWhereUniqueWithoutRequestedByInput = {
944
+ where: Prisma.ApprovalRequestWhereUniqueInput;
945
+ data: Prisma.XOR<Prisma.ApprovalRequestUpdateWithoutRequestedByInput, Prisma.ApprovalRequestUncheckedUpdateWithoutRequestedByInput>;
946
+ };
947
+ export type ApprovalRequestUpdateManyWithWhereWithoutRequestedByInput = {
948
+ where: Prisma.ApprovalRequestScalarWhereInput;
949
+ data: Prisma.XOR<Prisma.ApprovalRequestUpdateManyMutationInput, Prisma.ApprovalRequestUncheckedUpdateManyWithoutRequestedByInput>;
950
+ };
951
+ export type ApprovalRequestScalarWhereInput = {
952
+ AND?: Prisma.ApprovalRequestScalarWhereInput | Prisma.ApprovalRequestScalarWhereInput[];
953
+ OR?: Prisma.ApprovalRequestScalarWhereInput[];
954
+ NOT?: Prisma.ApprovalRequestScalarWhereInput | Prisma.ApprovalRequestScalarWhereInput[];
955
+ id?: Prisma.StringFilter<"ApprovalRequest"> | string;
956
+ tenantId?: Prisma.StringFilter<"ApprovalRequest"> | string;
957
+ type?: Prisma.EnumApprovalRequestTypeFilter<"ApprovalRequest"> | $Enums.ApprovalRequestType;
958
+ status?: Prisma.EnumApprovalRequestStatusFilter<"ApprovalRequest"> | $Enums.ApprovalRequestStatus;
959
+ priority?: Prisma.EnumApprovalRequestPriorityFilter<"ApprovalRequest"> | $Enums.ApprovalRequestPriority;
960
+ entityType?: Prisma.StringFilter<"ApprovalRequest"> | string;
961
+ entityId?: Prisma.StringFilter<"ApprovalRequest"> | string;
962
+ title?: Prisma.StringFilter<"ApprovalRequest"> | string;
963
+ description?: Prisma.StringNullableFilter<"ApprovalRequest"> | string | null;
964
+ payload?: Prisma.JsonNullableFilter<"ApprovalRequest">;
965
+ requestedById?: Prisma.StringFilter<"ApprovalRequest"> | string;
966
+ assigneeId?: Prisma.StringNullableFilter<"ApprovalRequest"> | string | null;
967
+ reviewedById?: Prisma.StringNullableFilter<"ApprovalRequest"> | string | null;
968
+ reviewNotes?: Prisma.StringNullableFilter<"ApprovalRequest"> | string | null;
969
+ decision?: Prisma.EnumApprovalDecisionNullableFilter<"ApprovalRequest"> | $Enums.ApprovalDecision | null;
970
+ expiresAt?: Prisma.DateTimeNullableFilter<"ApprovalRequest"> | Date | string | null;
971
+ createdAt?: Prisma.DateTimeFilter<"ApprovalRequest"> | Date | string;
972
+ assignedAt?: Prisma.DateTimeNullableFilter<"ApprovalRequest"> | Date | string | null;
973
+ reviewedAt?: Prisma.DateTimeNullableFilter<"ApprovalRequest"> | Date | string | null;
974
+ completedAt?: Prisma.DateTimeNullableFilter<"ApprovalRequest"> | Date | string | null;
975
+ updatedAt?: Prisma.DateTimeFilter<"ApprovalRequest"> | Date | string;
976
+ };
977
+ export type ApprovalRequestUpsertWithWhereUniqueWithoutAssigneeInput = {
978
+ where: Prisma.ApprovalRequestWhereUniqueInput;
979
+ update: Prisma.XOR<Prisma.ApprovalRequestUpdateWithoutAssigneeInput, Prisma.ApprovalRequestUncheckedUpdateWithoutAssigneeInput>;
980
+ create: Prisma.XOR<Prisma.ApprovalRequestCreateWithoutAssigneeInput, Prisma.ApprovalRequestUncheckedCreateWithoutAssigneeInput>;
981
+ };
982
+ export type ApprovalRequestUpdateWithWhereUniqueWithoutAssigneeInput = {
983
+ where: Prisma.ApprovalRequestWhereUniqueInput;
984
+ data: Prisma.XOR<Prisma.ApprovalRequestUpdateWithoutAssigneeInput, Prisma.ApprovalRequestUncheckedUpdateWithoutAssigneeInput>;
985
+ };
986
+ export type ApprovalRequestUpdateManyWithWhereWithoutAssigneeInput = {
987
+ where: Prisma.ApprovalRequestScalarWhereInput;
988
+ data: Prisma.XOR<Prisma.ApprovalRequestUpdateManyMutationInput, Prisma.ApprovalRequestUncheckedUpdateManyWithoutAssigneeInput>;
989
+ };
990
+ export type ApprovalRequestUpsertWithWhereUniqueWithoutReviewedByInput = {
991
+ where: Prisma.ApprovalRequestWhereUniqueInput;
992
+ update: Prisma.XOR<Prisma.ApprovalRequestUpdateWithoutReviewedByInput, Prisma.ApprovalRequestUncheckedUpdateWithoutReviewedByInput>;
993
+ create: Prisma.XOR<Prisma.ApprovalRequestCreateWithoutReviewedByInput, Prisma.ApprovalRequestUncheckedCreateWithoutReviewedByInput>;
994
+ };
995
+ export type ApprovalRequestUpdateWithWhereUniqueWithoutReviewedByInput = {
996
+ where: Prisma.ApprovalRequestWhereUniqueInput;
997
+ data: Prisma.XOR<Prisma.ApprovalRequestUpdateWithoutReviewedByInput, Prisma.ApprovalRequestUncheckedUpdateWithoutReviewedByInput>;
998
+ };
999
+ export type ApprovalRequestUpdateManyWithWhereWithoutReviewedByInput = {
1000
+ where: Prisma.ApprovalRequestScalarWhereInput;
1001
+ data: Prisma.XOR<Prisma.ApprovalRequestUpdateManyMutationInput, Prisma.ApprovalRequestUncheckedUpdateManyWithoutReviewedByInput>;
1002
+ };
1003
+ export type ApprovalRequestCreateWithoutTenantInput = {
1004
+ id?: string;
1005
+ type: $Enums.ApprovalRequestType;
1006
+ status?: $Enums.ApprovalRequestStatus;
1007
+ priority?: $Enums.ApprovalRequestPriority;
1008
+ entityType: string;
1009
+ entityId: string;
1010
+ title: string;
1011
+ description?: string | null;
1012
+ payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1013
+ reviewNotes?: string | null;
1014
+ decision?: $Enums.ApprovalDecision | null;
1015
+ expiresAt?: Date | string | null;
1016
+ createdAt?: Date | string;
1017
+ assignedAt?: Date | string | null;
1018
+ reviewedAt?: Date | string | null;
1019
+ completedAt?: Date | string | null;
1020
+ updatedAt?: Date | string;
1021
+ requestedBy: Prisma.UserCreateNestedOneWithoutApprovalRequestsSubmittedInput;
1022
+ assignee?: Prisma.UserCreateNestedOneWithoutApprovalRequestsAssignedInput;
1023
+ reviewedBy?: Prisma.UserCreateNestedOneWithoutApprovalRequestsReviewedInput;
1024
+ };
1025
+ export type ApprovalRequestUncheckedCreateWithoutTenantInput = {
1026
+ id?: string;
1027
+ type: $Enums.ApprovalRequestType;
1028
+ status?: $Enums.ApprovalRequestStatus;
1029
+ priority?: $Enums.ApprovalRequestPriority;
1030
+ entityType: string;
1031
+ entityId: string;
1032
+ title: string;
1033
+ description?: string | null;
1034
+ payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1035
+ requestedById: string;
1036
+ assigneeId?: string | null;
1037
+ reviewedById?: string | null;
1038
+ reviewNotes?: string | null;
1039
+ decision?: $Enums.ApprovalDecision | null;
1040
+ expiresAt?: Date | string | null;
1041
+ createdAt?: Date | string;
1042
+ assignedAt?: Date | string | null;
1043
+ reviewedAt?: Date | string | null;
1044
+ completedAt?: Date | string | null;
1045
+ updatedAt?: Date | string;
1046
+ };
1047
+ export type ApprovalRequestCreateOrConnectWithoutTenantInput = {
1048
+ where: Prisma.ApprovalRequestWhereUniqueInput;
1049
+ create: Prisma.XOR<Prisma.ApprovalRequestCreateWithoutTenantInput, Prisma.ApprovalRequestUncheckedCreateWithoutTenantInput>;
1050
+ };
1051
+ export type ApprovalRequestCreateManyTenantInputEnvelope = {
1052
+ data: Prisma.ApprovalRequestCreateManyTenantInput | Prisma.ApprovalRequestCreateManyTenantInput[];
1053
+ skipDuplicates?: boolean;
1054
+ };
1055
+ export type ApprovalRequestUpsertWithWhereUniqueWithoutTenantInput = {
1056
+ where: Prisma.ApprovalRequestWhereUniqueInput;
1057
+ update: Prisma.XOR<Prisma.ApprovalRequestUpdateWithoutTenantInput, Prisma.ApprovalRequestUncheckedUpdateWithoutTenantInput>;
1058
+ create: Prisma.XOR<Prisma.ApprovalRequestCreateWithoutTenantInput, Prisma.ApprovalRequestUncheckedCreateWithoutTenantInput>;
1059
+ };
1060
+ export type ApprovalRequestUpdateWithWhereUniqueWithoutTenantInput = {
1061
+ where: Prisma.ApprovalRequestWhereUniqueInput;
1062
+ data: Prisma.XOR<Prisma.ApprovalRequestUpdateWithoutTenantInput, Prisma.ApprovalRequestUncheckedUpdateWithoutTenantInput>;
1063
+ };
1064
+ export type ApprovalRequestUpdateManyWithWhereWithoutTenantInput = {
1065
+ where: Prisma.ApprovalRequestScalarWhereInput;
1066
+ data: Prisma.XOR<Prisma.ApprovalRequestUpdateManyMutationInput, Prisma.ApprovalRequestUncheckedUpdateManyWithoutTenantInput>;
1067
+ };
1068
+ export type ApprovalRequestCreateManyRequestedByInput = {
1069
+ id?: string;
1070
+ tenantId: string;
1071
+ type: $Enums.ApprovalRequestType;
1072
+ status?: $Enums.ApprovalRequestStatus;
1073
+ priority?: $Enums.ApprovalRequestPriority;
1074
+ entityType: string;
1075
+ entityId: string;
1076
+ title: string;
1077
+ description?: string | null;
1078
+ payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1079
+ assigneeId?: string | null;
1080
+ reviewedById?: string | null;
1081
+ reviewNotes?: string | null;
1082
+ decision?: $Enums.ApprovalDecision | null;
1083
+ expiresAt?: Date | string | null;
1084
+ createdAt?: Date | string;
1085
+ assignedAt?: Date | string | null;
1086
+ reviewedAt?: Date | string | null;
1087
+ completedAt?: Date | string | null;
1088
+ updatedAt?: Date | string;
1089
+ };
1090
+ export type ApprovalRequestCreateManyAssigneeInput = {
1091
+ id?: string;
1092
+ tenantId: string;
1093
+ type: $Enums.ApprovalRequestType;
1094
+ status?: $Enums.ApprovalRequestStatus;
1095
+ priority?: $Enums.ApprovalRequestPriority;
1096
+ entityType: string;
1097
+ entityId: string;
1098
+ title: string;
1099
+ description?: string | null;
1100
+ payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1101
+ requestedById: string;
1102
+ reviewedById?: string | null;
1103
+ reviewNotes?: string | null;
1104
+ decision?: $Enums.ApprovalDecision | null;
1105
+ expiresAt?: Date | string | null;
1106
+ createdAt?: Date | string;
1107
+ assignedAt?: Date | string | null;
1108
+ reviewedAt?: Date | string | null;
1109
+ completedAt?: Date | string | null;
1110
+ updatedAt?: Date | string;
1111
+ };
1112
+ export type ApprovalRequestCreateManyReviewedByInput = {
1113
+ id?: string;
1114
+ tenantId: string;
1115
+ type: $Enums.ApprovalRequestType;
1116
+ status?: $Enums.ApprovalRequestStatus;
1117
+ priority?: $Enums.ApprovalRequestPriority;
1118
+ entityType: string;
1119
+ entityId: string;
1120
+ title: string;
1121
+ description?: string | null;
1122
+ payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1123
+ requestedById: string;
1124
+ assigneeId?: string | null;
1125
+ reviewNotes?: string | null;
1126
+ decision?: $Enums.ApprovalDecision | null;
1127
+ expiresAt?: Date | string | null;
1128
+ createdAt?: Date | string;
1129
+ assignedAt?: Date | string | null;
1130
+ reviewedAt?: Date | string | null;
1131
+ completedAt?: Date | string | null;
1132
+ updatedAt?: Date | string;
1133
+ };
1134
+ export type ApprovalRequestUpdateWithoutRequestedByInput = {
1135
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1136
+ type?: Prisma.EnumApprovalRequestTypeFieldUpdateOperationsInput | $Enums.ApprovalRequestType;
1137
+ status?: Prisma.EnumApprovalRequestStatusFieldUpdateOperationsInput | $Enums.ApprovalRequestStatus;
1138
+ priority?: Prisma.EnumApprovalRequestPriorityFieldUpdateOperationsInput | $Enums.ApprovalRequestPriority;
1139
+ entityType?: Prisma.StringFieldUpdateOperationsInput | string;
1140
+ entityId?: Prisma.StringFieldUpdateOperationsInput | string;
1141
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1142
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1143
+ payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1144
+ reviewNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1145
+ decision?: Prisma.NullableEnumApprovalDecisionFieldUpdateOperationsInput | $Enums.ApprovalDecision | null;
1146
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1147
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1148
+ assignedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1149
+ reviewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1150
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1151
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1152
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutApprovalRequestsNestedInput;
1153
+ assignee?: Prisma.UserUpdateOneWithoutApprovalRequestsAssignedNestedInput;
1154
+ reviewedBy?: Prisma.UserUpdateOneWithoutApprovalRequestsReviewedNestedInput;
1155
+ };
1156
+ export type ApprovalRequestUncheckedUpdateWithoutRequestedByInput = {
1157
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1158
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1159
+ type?: Prisma.EnumApprovalRequestTypeFieldUpdateOperationsInput | $Enums.ApprovalRequestType;
1160
+ status?: Prisma.EnumApprovalRequestStatusFieldUpdateOperationsInput | $Enums.ApprovalRequestStatus;
1161
+ priority?: Prisma.EnumApprovalRequestPriorityFieldUpdateOperationsInput | $Enums.ApprovalRequestPriority;
1162
+ entityType?: Prisma.StringFieldUpdateOperationsInput | string;
1163
+ entityId?: Prisma.StringFieldUpdateOperationsInput | string;
1164
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1165
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1166
+ payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1167
+ assigneeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1168
+ reviewedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1169
+ reviewNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1170
+ decision?: Prisma.NullableEnumApprovalDecisionFieldUpdateOperationsInput | $Enums.ApprovalDecision | null;
1171
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1172
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1173
+ assignedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1174
+ reviewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1175
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1176
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1177
+ };
1178
+ export type ApprovalRequestUncheckedUpdateManyWithoutRequestedByInput = {
1179
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1180
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1181
+ type?: Prisma.EnumApprovalRequestTypeFieldUpdateOperationsInput | $Enums.ApprovalRequestType;
1182
+ status?: Prisma.EnumApprovalRequestStatusFieldUpdateOperationsInput | $Enums.ApprovalRequestStatus;
1183
+ priority?: Prisma.EnumApprovalRequestPriorityFieldUpdateOperationsInput | $Enums.ApprovalRequestPriority;
1184
+ entityType?: Prisma.StringFieldUpdateOperationsInput | string;
1185
+ entityId?: Prisma.StringFieldUpdateOperationsInput | string;
1186
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1187
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1188
+ payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1189
+ assigneeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1190
+ reviewedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1191
+ reviewNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1192
+ decision?: Prisma.NullableEnumApprovalDecisionFieldUpdateOperationsInput | $Enums.ApprovalDecision | null;
1193
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1194
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1195
+ assignedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1196
+ reviewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1197
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1198
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1199
+ };
1200
+ export type ApprovalRequestUpdateWithoutAssigneeInput = {
1201
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1202
+ type?: Prisma.EnumApprovalRequestTypeFieldUpdateOperationsInput | $Enums.ApprovalRequestType;
1203
+ status?: Prisma.EnumApprovalRequestStatusFieldUpdateOperationsInput | $Enums.ApprovalRequestStatus;
1204
+ priority?: Prisma.EnumApprovalRequestPriorityFieldUpdateOperationsInput | $Enums.ApprovalRequestPriority;
1205
+ entityType?: Prisma.StringFieldUpdateOperationsInput | string;
1206
+ entityId?: Prisma.StringFieldUpdateOperationsInput | string;
1207
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1208
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1209
+ payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1210
+ reviewNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1211
+ decision?: Prisma.NullableEnumApprovalDecisionFieldUpdateOperationsInput | $Enums.ApprovalDecision | null;
1212
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1213
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1214
+ assignedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1215
+ reviewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1216
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1217
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1218
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutApprovalRequestsNestedInput;
1219
+ requestedBy?: Prisma.UserUpdateOneRequiredWithoutApprovalRequestsSubmittedNestedInput;
1220
+ reviewedBy?: Prisma.UserUpdateOneWithoutApprovalRequestsReviewedNestedInput;
1221
+ };
1222
+ export type ApprovalRequestUncheckedUpdateWithoutAssigneeInput = {
1223
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1224
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1225
+ type?: Prisma.EnumApprovalRequestTypeFieldUpdateOperationsInput | $Enums.ApprovalRequestType;
1226
+ status?: Prisma.EnumApprovalRequestStatusFieldUpdateOperationsInput | $Enums.ApprovalRequestStatus;
1227
+ priority?: Prisma.EnumApprovalRequestPriorityFieldUpdateOperationsInput | $Enums.ApprovalRequestPriority;
1228
+ entityType?: Prisma.StringFieldUpdateOperationsInput | string;
1229
+ entityId?: Prisma.StringFieldUpdateOperationsInput | string;
1230
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1231
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1232
+ payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1233
+ requestedById?: Prisma.StringFieldUpdateOperationsInput | string;
1234
+ reviewedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1235
+ reviewNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1236
+ decision?: Prisma.NullableEnumApprovalDecisionFieldUpdateOperationsInput | $Enums.ApprovalDecision | null;
1237
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1238
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1239
+ assignedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1240
+ reviewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1241
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1242
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1243
+ };
1244
+ export type ApprovalRequestUncheckedUpdateManyWithoutAssigneeInput = {
1245
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1246
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1247
+ type?: Prisma.EnumApprovalRequestTypeFieldUpdateOperationsInput | $Enums.ApprovalRequestType;
1248
+ status?: Prisma.EnumApprovalRequestStatusFieldUpdateOperationsInput | $Enums.ApprovalRequestStatus;
1249
+ priority?: Prisma.EnumApprovalRequestPriorityFieldUpdateOperationsInput | $Enums.ApprovalRequestPriority;
1250
+ entityType?: Prisma.StringFieldUpdateOperationsInput | string;
1251
+ entityId?: Prisma.StringFieldUpdateOperationsInput | string;
1252
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1253
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1254
+ payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1255
+ requestedById?: Prisma.StringFieldUpdateOperationsInput | string;
1256
+ reviewedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1257
+ reviewNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1258
+ decision?: Prisma.NullableEnumApprovalDecisionFieldUpdateOperationsInput | $Enums.ApprovalDecision | null;
1259
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1260
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1261
+ assignedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1262
+ reviewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1263
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1264
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1265
+ };
1266
+ export type ApprovalRequestUpdateWithoutReviewedByInput = {
1267
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1268
+ type?: Prisma.EnumApprovalRequestTypeFieldUpdateOperationsInput | $Enums.ApprovalRequestType;
1269
+ status?: Prisma.EnumApprovalRequestStatusFieldUpdateOperationsInput | $Enums.ApprovalRequestStatus;
1270
+ priority?: Prisma.EnumApprovalRequestPriorityFieldUpdateOperationsInput | $Enums.ApprovalRequestPriority;
1271
+ entityType?: Prisma.StringFieldUpdateOperationsInput | string;
1272
+ entityId?: Prisma.StringFieldUpdateOperationsInput | string;
1273
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1274
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1275
+ payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1276
+ reviewNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1277
+ decision?: Prisma.NullableEnumApprovalDecisionFieldUpdateOperationsInput | $Enums.ApprovalDecision | null;
1278
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1279
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1280
+ assignedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1281
+ reviewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1282
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1283
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1284
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutApprovalRequestsNestedInput;
1285
+ requestedBy?: Prisma.UserUpdateOneRequiredWithoutApprovalRequestsSubmittedNestedInput;
1286
+ assignee?: Prisma.UserUpdateOneWithoutApprovalRequestsAssignedNestedInput;
1287
+ };
1288
+ export type ApprovalRequestUncheckedUpdateWithoutReviewedByInput = {
1289
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1290
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1291
+ type?: Prisma.EnumApprovalRequestTypeFieldUpdateOperationsInput | $Enums.ApprovalRequestType;
1292
+ status?: Prisma.EnumApprovalRequestStatusFieldUpdateOperationsInput | $Enums.ApprovalRequestStatus;
1293
+ priority?: Prisma.EnumApprovalRequestPriorityFieldUpdateOperationsInput | $Enums.ApprovalRequestPriority;
1294
+ entityType?: Prisma.StringFieldUpdateOperationsInput | string;
1295
+ entityId?: Prisma.StringFieldUpdateOperationsInput | string;
1296
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1297
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1298
+ payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1299
+ requestedById?: Prisma.StringFieldUpdateOperationsInput | string;
1300
+ assigneeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1301
+ reviewNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1302
+ decision?: Prisma.NullableEnumApprovalDecisionFieldUpdateOperationsInput | $Enums.ApprovalDecision | null;
1303
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1304
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1305
+ assignedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1306
+ reviewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1307
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1308
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1309
+ };
1310
+ export type ApprovalRequestUncheckedUpdateManyWithoutReviewedByInput = {
1311
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1312
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1313
+ type?: Prisma.EnumApprovalRequestTypeFieldUpdateOperationsInput | $Enums.ApprovalRequestType;
1314
+ status?: Prisma.EnumApprovalRequestStatusFieldUpdateOperationsInput | $Enums.ApprovalRequestStatus;
1315
+ priority?: Prisma.EnumApprovalRequestPriorityFieldUpdateOperationsInput | $Enums.ApprovalRequestPriority;
1316
+ entityType?: Prisma.StringFieldUpdateOperationsInput | string;
1317
+ entityId?: Prisma.StringFieldUpdateOperationsInput | string;
1318
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1319
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1320
+ payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1321
+ requestedById?: Prisma.StringFieldUpdateOperationsInput | string;
1322
+ assigneeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1323
+ reviewNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1324
+ decision?: Prisma.NullableEnumApprovalDecisionFieldUpdateOperationsInput | $Enums.ApprovalDecision | null;
1325
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1326
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1327
+ assignedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1328
+ reviewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1329
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1330
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1331
+ };
1332
+ export type ApprovalRequestCreateManyTenantInput = {
1333
+ id?: string;
1334
+ type: $Enums.ApprovalRequestType;
1335
+ status?: $Enums.ApprovalRequestStatus;
1336
+ priority?: $Enums.ApprovalRequestPriority;
1337
+ entityType: string;
1338
+ entityId: string;
1339
+ title: string;
1340
+ description?: string | null;
1341
+ payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1342
+ requestedById: string;
1343
+ assigneeId?: string | null;
1344
+ reviewedById?: string | null;
1345
+ reviewNotes?: string | null;
1346
+ decision?: $Enums.ApprovalDecision | null;
1347
+ expiresAt?: Date | string | null;
1348
+ createdAt?: Date | string;
1349
+ assignedAt?: Date | string | null;
1350
+ reviewedAt?: Date | string | null;
1351
+ completedAt?: Date | string | null;
1352
+ updatedAt?: Date | string;
1353
+ };
1354
+ export type ApprovalRequestUpdateWithoutTenantInput = {
1355
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1356
+ type?: Prisma.EnumApprovalRequestTypeFieldUpdateOperationsInput | $Enums.ApprovalRequestType;
1357
+ status?: Prisma.EnumApprovalRequestStatusFieldUpdateOperationsInput | $Enums.ApprovalRequestStatus;
1358
+ priority?: Prisma.EnumApprovalRequestPriorityFieldUpdateOperationsInput | $Enums.ApprovalRequestPriority;
1359
+ entityType?: Prisma.StringFieldUpdateOperationsInput | string;
1360
+ entityId?: Prisma.StringFieldUpdateOperationsInput | string;
1361
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1362
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1363
+ payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1364
+ reviewNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1365
+ decision?: Prisma.NullableEnumApprovalDecisionFieldUpdateOperationsInput | $Enums.ApprovalDecision | null;
1366
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1367
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1368
+ assignedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1369
+ reviewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1370
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1371
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1372
+ requestedBy?: Prisma.UserUpdateOneRequiredWithoutApprovalRequestsSubmittedNestedInput;
1373
+ assignee?: Prisma.UserUpdateOneWithoutApprovalRequestsAssignedNestedInput;
1374
+ reviewedBy?: Prisma.UserUpdateOneWithoutApprovalRequestsReviewedNestedInput;
1375
+ };
1376
+ export type ApprovalRequestUncheckedUpdateWithoutTenantInput = {
1377
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1378
+ type?: Prisma.EnumApprovalRequestTypeFieldUpdateOperationsInput | $Enums.ApprovalRequestType;
1379
+ status?: Prisma.EnumApprovalRequestStatusFieldUpdateOperationsInput | $Enums.ApprovalRequestStatus;
1380
+ priority?: Prisma.EnumApprovalRequestPriorityFieldUpdateOperationsInput | $Enums.ApprovalRequestPriority;
1381
+ entityType?: Prisma.StringFieldUpdateOperationsInput | string;
1382
+ entityId?: Prisma.StringFieldUpdateOperationsInput | string;
1383
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1384
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1385
+ payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1386
+ requestedById?: Prisma.StringFieldUpdateOperationsInput | string;
1387
+ assigneeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1388
+ reviewedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1389
+ reviewNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1390
+ decision?: Prisma.NullableEnumApprovalDecisionFieldUpdateOperationsInput | $Enums.ApprovalDecision | null;
1391
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1392
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1393
+ assignedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1394
+ reviewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1395
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1396
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1397
+ };
1398
+ export type ApprovalRequestUncheckedUpdateManyWithoutTenantInput = {
1399
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1400
+ type?: Prisma.EnumApprovalRequestTypeFieldUpdateOperationsInput | $Enums.ApprovalRequestType;
1401
+ status?: Prisma.EnumApprovalRequestStatusFieldUpdateOperationsInput | $Enums.ApprovalRequestStatus;
1402
+ priority?: Prisma.EnumApprovalRequestPriorityFieldUpdateOperationsInput | $Enums.ApprovalRequestPriority;
1403
+ entityType?: Prisma.StringFieldUpdateOperationsInput | string;
1404
+ entityId?: Prisma.StringFieldUpdateOperationsInput | string;
1405
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1406
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1407
+ payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1408
+ requestedById?: Prisma.StringFieldUpdateOperationsInput | string;
1409
+ assigneeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1410
+ reviewedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1411
+ reviewNotes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1412
+ decision?: Prisma.NullableEnumApprovalDecisionFieldUpdateOperationsInput | $Enums.ApprovalDecision | null;
1413
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1414
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1415
+ assignedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1416
+ reviewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1417
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1418
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1419
+ };
1420
+ export type ApprovalRequestSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1421
+ id?: boolean;
1422
+ tenantId?: boolean;
1423
+ type?: boolean;
1424
+ status?: boolean;
1425
+ priority?: boolean;
1426
+ entityType?: boolean;
1427
+ entityId?: boolean;
1428
+ title?: boolean;
1429
+ description?: boolean;
1430
+ payload?: boolean;
1431
+ requestedById?: boolean;
1432
+ assigneeId?: boolean;
1433
+ reviewedById?: boolean;
1434
+ reviewNotes?: boolean;
1435
+ decision?: boolean;
1436
+ expiresAt?: boolean;
1437
+ createdAt?: boolean;
1438
+ assignedAt?: boolean;
1439
+ reviewedAt?: boolean;
1440
+ completedAt?: boolean;
1441
+ updatedAt?: boolean;
1442
+ tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
1443
+ requestedBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
1444
+ assignee?: boolean | Prisma.ApprovalRequest$assigneeArgs<ExtArgs>;
1445
+ reviewedBy?: boolean | Prisma.ApprovalRequest$reviewedByArgs<ExtArgs>;
1446
+ }, ExtArgs["result"]["approvalRequest"]>;
1447
+ export type ApprovalRequestSelectScalar = {
1448
+ id?: boolean;
1449
+ tenantId?: boolean;
1450
+ type?: boolean;
1451
+ status?: boolean;
1452
+ priority?: boolean;
1453
+ entityType?: boolean;
1454
+ entityId?: boolean;
1455
+ title?: boolean;
1456
+ description?: boolean;
1457
+ payload?: boolean;
1458
+ requestedById?: boolean;
1459
+ assigneeId?: boolean;
1460
+ reviewedById?: boolean;
1461
+ reviewNotes?: boolean;
1462
+ decision?: boolean;
1463
+ expiresAt?: boolean;
1464
+ createdAt?: boolean;
1465
+ assignedAt?: boolean;
1466
+ reviewedAt?: boolean;
1467
+ completedAt?: boolean;
1468
+ updatedAt?: boolean;
1469
+ };
1470
+ export type ApprovalRequestOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "type" | "status" | "priority" | "entityType" | "entityId" | "title" | "description" | "payload" | "requestedById" | "assigneeId" | "reviewedById" | "reviewNotes" | "decision" | "expiresAt" | "createdAt" | "assignedAt" | "reviewedAt" | "completedAt" | "updatedAt", ExtArgs["result"]["approvalRequest"]>;
1471
+ export type ApprovalRequestInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1472
+ tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
1473
+ requestedBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
1474
+ assignee?: boolean | Prisma.ApprovalRequest$assigneeArgs<ExtArgs>;
1475
+ reviewedBy?: boolean | Prisma.ApprovalRequest$reviewedByArgs<ExtArgs>;
1476
+ };
1477
+ export type $ApprovalRequestPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1478
+ name: "ApprovalRequest";
1479
+ objects: {
1480
+ tenant: Prisma.$TenantPayload<ExtArgs>;
1481
+ requestedBy: Prisma.$UserPayload<ExtArgs>;
1482
+ assignee: Prisma.$UserPayload<ExtArgs> | null;
1483
+ reviewedBy: Prisma.$UserPayload<ExtArgs> | null;
1484
+ };
1485
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
1486
+ id: string;
1487
+ tenantId: string;
1488
+ type: $Enums.ApprovalRequestType;
1489
+ status: $Enums.ApprovalRequestStatus;
1490
+ priority: $Enums.ApprovalRequestPriority;
1491
+ entityType: string;
1492
+ entityId: string;
1493
+ title: string;
1494
+ description: string | null;
1495
+ payload: runtime.JsonValue | null;
1496
+ requestedById: string;
1497
+ assigneeId: string | null;
1498
+ reviewedById: string | null;
1499
+ reviewNotes: string | null;
1500
+ decision: $Enums.ApprovalDecision | null;
1501
+ expiresAt: Date | null;
1502
+ createdAt: Date;
1503
+ assignedAt: Date | null;
1504
+ reviewedAt: Date | null;
1505
+ completedAt: Date | null;
1506
+ updatedAt: Date;
1507
+ }, ExtArgs["result"]["approvalRequest"]>;
1508
+ composites: {};
1509
+ };
1510
+ export type ApprovalRequestGetPayload<S extends boolean | null | undefined | ApprovalRequestDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ApprovalRequestPayload, S>;
1511
+ export type ApprovalRequestCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<ApprovalRequestFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1512
+ select?: ApprovalRequestCountAggregateInputType | true;
1513
+ };
1514
+ export interface ApprovalRequestDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1515
+ [K: symbol]: {
1516
+ types: Prisma.TypeMap<ExtArgs>['model']['ApprovalRequest'];
1517
+ meta: {
1518
+ name: 'ApprovalRequest';
1519
+ };
1520
+ };
1521
+ /**
1522
+ * Find zero or one ApprovalRequest that matches the filter.
1523
+ * @param {ApprovalRequestFindUniqueArgs} args - Arguments to find a ApprovalRequest
1524
+ * @example
1525
+ * // Get one ApprovalRequest
1526
+ * const approvalRequest = await prisma.approvalRequest.findUnique({
1527
+ * where: {
1528
+ * // ... provide filter here
1529
+ * }
1530
+ * })
1531
+ */
1532
+ findUnique<T extends ApprovalRequestFindUniqueArgs>(args: Prisma.SelectSubset<T, ApprovalRequestFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ApprovalRequestClient<runtime.Types.Result.GetResult<Prisma.$ApprovalRequestPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1533
+ /**
1534
+ * Find one ApprovalRequest that matches the filter or throw an error with `error.code='P2025'`
1535
+ * if no matches were found.
1536
+ * @param {ApprovalRequestFindUniqueOrThrowArgs} args - Arguments to find a ApprovalRequest
1537
+ * @example
1538
+ * // Get one ApprovalRequest
1539
+ * const approvalRequest = await prisma.approvalRequest.findUniqueOrThrow({
1540
+ * where: {
1541
+ * // ... provide filter here
1542
+ * }
1543
+ * })
1544
+ */
1545
+ findUniqueOrThrow<T extends ApprovalRequestFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ApprovalRequestFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ApprovalRequestClient<runtime.Types.Result.GetResult<Prisma.$ApprovalRequestPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1546
+ /**
1547
+ * Find the first ApprovalRequest that matches the filter.
1548
+ * Note, that providing `undefined` is treated as the value not being there.
1549
+ * Read more here: https://pris.ly/d/null-undefined
1550
+ * @param {ApprovalRequestFindFirstArgs} args - Arguments to find a ApprovalRequest
1551
+ * @example
1552
+ * // Get one ApprovalRequest
1553
+ * const approvalRequest = await prisma.approvalRequest.findFirst({
1554
+ * where: {
1555
+ * // ... provide filter here
1556
+ * }
1557
+ * })
1558
+ */
1559
+ findFirst<T extends ApprovalRequestFindFirstArgs>(args?: Prisma.SelectSubset<T, ApprovalRequestFindFirstArgs<ExtArgs>>): Prisma.Prisma__ApprovalRequestClient<runtime.Types.Result.GetResult<Prisma.$ApprovalRequestPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1560
+ /**
1561
+ * Find the first ApprovalRequest that matches the filter or
1562
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1563
+ * Note, that providing `undefined` is treated as the value not being there.
1564
+ * Read more here: https://pris.ly/d/null-undefined
1565
+ * @param {ApprovalRequestFindFirstOrThrowArgs} args - Arguments to find a ApprovalRequest
1566
+ * @example
1567
+ * // Get one ApprovalRequest
1568
+ * const approvalRequest = await prisma.approvalRequest.findFirstOrThrow({
1569
+ * where: {
1570
+ * // ... provide filter here
1571
+ * }
1572
+ * })
1573
+ */
1574
+ findFirstOrThrow<T extends ApprovalRequestFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ApprovalRequestFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ApprovalRequestClient<runtime.Types.Result.GetResult<Prisma.$ApprovalRequestPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1575
+ /**
1576
+ * Find zero or more ApprovalRequests that matches the filter.
1577
+ * Note, that providing `undefined` is treated as the value not being there.
1578
+ * Read more here: https://pris.ly/d/null-undefined
1579
+ * @param {ApprovalRequestFindManyArgs} args - Arguments to filter and select certain fields only.
1580
+ * @example
1581
+ * // Get all ApprovalRequests
1582
+ * const approvalRequests = await prisma.approvalRequest.findMany()
1583
+ *
1584
+ * // Get first 10 ApprovalRequests
1585
+ * const approvalRequests = await prisma.approvalRequest.findMany({ take: 10 })
1586
+ *
1587
+ * // Only select the `id`
1588
+ * const approvalRequestWithIdOnly = await prisma.approvalRequest.findMany({ select: { id: true } })
1589
+ *
1590
+ */
1591
+ findMany<T extends ApprovalRequestFindManyArgs>(args?: Prisma.SelectSubset<T, ApprovalRequestFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ApprovalRequestPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
1592
+ /**
1593
+ * Create a ApprovalRequest.
1594
+ * @param {ApprovalRequestCreateArgs} args - Arguments to create a ApprovalRequest.
1595
+ * @example
1596
+ * // Create one ApprovalRequest
1597
+ * const ApprovalRequest = await prisma.approvalRequest.create({
1598
+ * data: {
1599
+ * // ... data to create a ApprovalRequest
1600
+ * }
1601
+ * })
1602
+ *
1603
+ */
1604
+ create<T extends ApprovalRequestCreateArgs>(args: Prisma.SelectSubset<T, ApprovalRequestCreateArgs<ExtArgs>>): Prisma.Prisma__ApprovalRequestClient<runtime.Types.Result.GetResult<Prisma.$ApprovalRequestPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1605
+ /**
1606
+ * Create many ApprovalRequests.
1607
+ * @param {ApprovalRequestCreateManyArgs} args - Arguments to create many ApprovalRequests.
1608
+ * @example
1609
+ * // Create many ApprovalRequests
1610
+ * const approvalRequest = await prisma.approvalRequest.createMany({
1611
+ * data: [
1612
+ * // ... provide data here
1613
+ * ]
1614
+ * })
1615
+ *
1616
+ */
1617
+ createMany<T extends ApprovalRequestCreateManyArgs>(args?: Prisma.SelectSubset<T, ApprovalRequestCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1618
+ /**
1619
+ * Delete a ApprovalRequest.
1620
+ * @param {ApprovalRequestDeleteArgs} args - Arguments to delete one ApprovalRequest.
1621
+ * @example
1622
+ * // Delete one ApprovalRequest
1623
+ * const ApprovalRequest = await prisma.approvalRequest.delete({
1624
+ * where: {
1625
+ * // ... filter to delete one ApprovalRequest
1626
+ * }
1627
+ * })
1628
+ *
1629
+ */
1630
+ delete<T extends ApprovalRequestDeleteArgs>(args: Prisma.SelectSubset<T, ApprovalRequestDeleteArgs<ExtArgs>>): Prisma.Prisma__ApprovalRequestClient<runtime.Types.Result.GetResult<Prisma.$ApprovalRequestPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1631
+ /**
1632
+ * Update one ApprovalRequest.
1633
+ * @param {ApprovalRequestUpdateArgs} args - Arguments to update one ApprovalRequest.
1634
+ * @example
1635
+ * // Update one ApprovalRequest
1636
+ * const approvalRequest = await prisma.approvalRequest.update({
1637
+ * where: {
1638
+ * // ... provide filter here
1639
+ * },
1640
+ * data: {
1641
+ * // ... provide data here
1642
+ * }
1643
+ * })
1644
+ *
1645
+ */
1646
+ update<T extends ApprovalRequestUpdateArgs>(args: Prisma.SelectSubset<T, ApprovalRequestUpdateArgs<ExtArgs>>): Prisma.Prisma__ApprovalRequestClient<runtime.Types.Result.GetResult<Prisma.$ApprovalRequestPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1647
+ /**
1648
+ * Delete zero or more ApprovalRequests.
1649
+ * @param {ApprovalRequestDeleteManyArgs} args - Arguments to filter ApprovalRequests to delete.
1650
+ * @example
1651
+ * // Delete a few ApprovalRequests
1652
+ * const { count } = await prisma.approvalRequest.deleteMany({
1653
+ * where: {
1654
+ * // ... provide filter here
1655
+ * }
1656
+ * })
1657
+ *
1658
+ */
1659
+ deleteMany<T extends ApprovalRequestDeleteManyArgs>(args?: Prisma.SelectSubset<T, ApprovalRequestDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1660
+ /**
1661
+ * Update zero or more ApprovalRequests.
1662
+ * Note, that providing `undefined` is treated as the value not being there.
1663
+ * Read more here: https://pris.ly/d/null-undefined
1664
+ * @param {ApprovalRequestUpdateManyArgs} args - Arguments to update one or more rows.
1665
+ * @example
1666
+ * // Update many ApprovalRequests
1667
+ * const approvalRequest = await prisma.approvalRequest.updateMany({
1668
+ * where: {
1669
+ * // ... provide filter here
1670
+ * },
1671
+ * data: {
1672
+ * // ... provide data here
1673
+ * }
1674
+ * })
1675
+ *
1676
+ */
1677
+ updateMany<T extends ApprovalRequestUpdateManyArgs>(args: Prisma.SelectSubset<T, ApprovalRequestUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1678
+ /**
1679
+ * Create or update one ApprovalRequest.
1680
+ * @param {ApprovalRequestUpsertArgs} args - Arguments to update or create a ApprovalRequest.
1681
+ * @example
1682
+ * // Update or create a ApprovalRequest
1683
+ * const approvalRequest = await prisma.approvalRequest.upsert({
1684
+ * create: {
1685
+ * // ... data to create a ApprovalRequest
1686
+ * },
1687
+ * update: {
1688
+ * // ... in case it already exists, update
1689
+ * },
1690
+ * where: {
1691
+ * // ... the filter for the ApprovalRequest we want to update
1692
+ * }
1693
+ * })
1694
+ */
1695
+ upsert<T extends ApprovalRequestUpsertArgs>(args: Prisma.SelectSubset<T, ApprovalRequestUpsertArgs<ExtArgs>>): Prisma.Prisma__ApprovalRequestClient<runtime.Types.Result.GetResult<Prisma.$ApprovalRequestPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1696
+ /**
1697
+ * Count the number of ApprovalRequests.
1698
+ * Note, that providing `undefined` is treated as the value not being there.
1699
+ * Read more here: https://pris.ly/d/null-undefined
1700
+ * @param {ApprovalRequestCountArgs} args - Arguments to filter ApprovalRequests to count.
1701
+ * @example
1702
+ * // Count the number of ApprovalRequests
1703
+ * const count = await prisma.approvalRequest.count({
1704
+ * where: {
1705
+ * // ... the filter for the ApprovalRequests we want to count
1706
+ * }
1707
+ * })
1708
+ **/
1709
+ count<T extends ApprovalRequestCountArgs>(args?: Prisma.Subset<T, ApprovalRequestCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], ApprovalRequestCountAggregateOutputType> : number>;
1710
+ /**
1711
+ * Allows you to perform aggregations operations on a ApprovalRequest.
1712
+ * Note, that providing `undefined` is treated as the value not being there.
1713
+ * Read more here: https://pris.ly/d/null-undefined
1714
+ * @param {ApprovalRequestAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1715
+ * @example
1716
+ * // Ordered by age ascending
1717
+ * // Where email contains prisma.io
1718
+ * // Limited to the 10 users
1719
+ * const aggregations = await prisma.user.aggregate({
1720
+ * _avg: {
1721
+ * age: true,
1722
+ * },
1723
+ * where: {
1724
+ * email: {
1725
+ * contains: "prisma.io",
1726
+ * },
1727
+ * },
1728
+ * orderBy: {
1729
+ * age: "asc",
1730
+ * },
1731
+ * take: 10,
1732
+ * })
1733
+ **/
1734
+ aggregate<T extends ApprovalRequestAggregateArgs>(args: Prisma.Subset<T, ApprovalRequestAggregateArgs>): Prisma.PrismaPromise<GetApprovalRequestAggregateType<T>>;
1735
+ /**
1736
+ * Group by ApprovalRequest.
1737
+ * Note, that providing `undefined` is treated as the value not being there.
1738
+ * Read more here: https://pris.ly/d/null-undefined
1739
+ * @param {ApprovalRequestGroupByArgs} args - Group by arguments.
1740
+ * @example
1741
+ * // Group by city, order by createdAt, get count
1742
+ * const result = await prisma.user.groupBy({
1743
+ * by: ['city', 'createdAt'],
1744
+ * orderBy: {
1745
+ * createdAt: true
1746
+ * },
1747
+ * _count: {
1748
+ * _all: true
1749
+ * },
1750
+ * })
1751
+ *
1752
+ **/
1753
+ groupBy<T extends ApprovalRequestGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1754
+ orderBy: ApprovalRequestGroupByArgs['orderBy'];
1755
+ } : {
1756
+ orderBy?: ApprovalRequestGroupByArgs['orderBy'];
1757
+ }, 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 ? {
1758
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1759
+ Error,
1760
+ 'Field ',
1761
+ P,
1762
+ ` in "having" needs to be provided in "by"`
1763
+ ];
1764
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1765
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1766
+ }[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 ? {} : {
1767
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1768
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1769
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1770
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, ApprovalRequestGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetApprovalRequestGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1771
+ /**
1772
+ * Fields of the ApprovalRequest model
1773
+ */
1774
+ readonly fields: ApprovalRequestFieldRefs;
1775
+ }
1776
+ /**
1777
+ * The delegate class that acts as a "Promise-like" for ApprovalRequest.
1778
+ * Why is this prefixed with `Prisma__`?
1779
+ * Because we want to prevent naming conflicts as mentioned in
1780
+ * https://github.com/prisma/prisma-client-js/issues/707
1781
+ */
1782
+ export interface Prisma__ApprovalRequestClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1783
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1784
+ tenant<T extends Prisma.TenantDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TenantDefaultArgs<ExtArgs>>): Prisma.Prisma__TenantClient<runtime.Types.Result.GetResult<Prisma.$TenantPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1785
+ requestedBy<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1786
+ assignee<T extends Prisma.ApprovalRequest$assigneeArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ApprovalRequest$assigneeArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1787
+ reviewedBy<T extends Prisma.ApprovalRequest$reviewedByArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ApprovalRequest$reviewedByArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1788
+ /**
1789
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1790
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1791
+ * @param onrejected The callback to execute when the Promise is rejected.
1792
+ * @returns A Promise for the completion of which ever callback is executed.
1793
+ */
1794
+ 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>;
1795
+ /**
1796
+ * Attaches a callback for only the rejection of the Promise.
1797
+ * @param onrejected The callback to execute when the Promise is rejected.
1798
+ * @returns A Promise for the completion of the callback.
1799
+ */
1800
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1801
+ /**
1802
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1803
+ * resolved value cannot be modified from the callback.
1804
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1805
+ * @returns A Promise for the completion of the callback.
1806
+ */
1807
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1808
+ }
1809
+ /**
1810
+ * Fields of the ApprovalRequest model
1811
+ */
1812
+ export interface ApprovalRequestFieldRefs {
1813
+ readonly id: Prisma.FieldRef<"ApprovalRequest", 'String'>;
1814
+ readonly tenantId: Prisma.FieldRef<"ApprovalRequest", 'String'>;
1815
+ readonly type: Prisma.FieldRef<"ApprovalRequest", 'ApprovalRequestType'>;
1816
+ readonly status: Prisma.FieldRef<"ApprovalRequest", 'ApprovalRequestStatus'>;
1817
+ readonly priority: Prisma.FieldRef<"ApprovalRequest", 'ApprovalRequestPriority'>;
1818
+ readonly entityType: Prisma.FieldRef<"ApprovalRequest", 'String'>;
1819
+ readonly entityId: Prisma.FieldRef<"ApprovalRequest", 'String'>;
1820
+ readonly title: Prisma.FieldRef<"ApprovalRequest", 'String'>;
1821
+ readonly description: Prisma.FieldRef<"ApprovalRequest", 'String'>;
1822
+ readonly payload: Prisma.FieldRef<"ApprovalRequest", 'Json'>;
1823
+ readonly requestedById: Prisma.FieldRef<"ApprovalRequest", 'String'>;
1824
+ readonly assigneeId: Prisma.FieldRef<"ApprovalRequest", 'String'>;
1825
+ readonly reviewedById: Prisma.FieldRef<"ApprovalRequest", 'String'>;
1826
+ readonly reviewNotes: Prisma.FieldRef<"ApprovalRequest", 'String'>;
1827
+ readonly decision: Prisma.FieldRef<"ApprovalRequest", 'ApprovalDecision'>;
1828
+ readonly expiresAt: Prisma.FieldRef<"ApprovalRequest", 'DateTime'>;
1829
+ readonly createdAt: Prisma.FieldRef<"ApprovalRequest", 'DateTime'>;
1830
+ readonly assignedAt: Prisma.FieldRef<"ApprovalRequest", 'DateTime'>;
1831
+ readonly reviewedAt: Prisma.FieldRef<"ApprovalRequest", 'DateTime'>;
1832
+ readonly completedAt: Prisma.FieldRef<"ApprovalRequest", 'DateTime'>;
1833
+ readonly updatedAt: Prisma.FieldRef<"ApprovalRequest", 'DateTime'>;
1834
+ }
1835
+ /**
1836
+ * ApprovalRequest findUnique
1837
+ */
1838
+ export type ApprovalRequestFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1839
+ /**
1840
+ * Select specific fields to fetch from the ApprovalRequest
1841
+ */
1842
+ select?: Prisma.ApprovalRequestSelect<ExtArgs> | null;
1843
+ /**
1844
+ * Omit specific fields from the ApprovalRequest
1845
+ */
1846
+ omit?: Prisma.ApprovalRequestOmit<ExtArgs> | null;
1847
+ /**
1848
+ * Choose, which related nodes to fetch as well
1849
+ */
1850
+ include?: Prisma.ApprovalRequestInclude<ExtArgs> | null;
1851
+ /**
1852
+ * Filter, which ApprovalRequest to fetch.
1853
+ */
1854
+ where: Prisma.ApprovalRequestWhereUniqueInput;
1855
+ };
1856
+ /**
1857
+ * ApprovalRequest findUniqueOrThrow
1858
+ */
1859
+ export type ApprovalRequestFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1860
+ /**
1861
+ * Select specific fields to fetch from the ApprovalRequest
1862
+ */
1863
+ select?: Prisma.ApprovalRequestSelect<ExtArgs> | null;
1864
+ /**
1865
+ * Omit specific fields from the ApprovalRequest
1866
+ */
1867
+ omit?: Prisma.ApprovalRequestOmit<ExtArgs> | null;
1868
+ /**
1869
+ * Choose, which related nodes to fetch as well
1870
+ */
1871
+ include?: Prisma.ApprovalRequestInclude<ExtArgs> | null;
1872
+ /**
1873
+ * Filter, which ApprovalRequest to fetch.
1874
+ */
1875
+ where: Prisma.ApprovalRequestWhereUniqueInput;
1876
+ };
1877
+ /**
1878
+ * ApprovalRequest findFirst
1879
+ */
1880
+ export type ApprovalRequestFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1881
+ /**
1882
+ * Select specific fields to fetch from the ApprovalRequest
1883
+ */
1884
+ select?: Prisma.ApprovalRequestSelect<ExtArgs> | null;
1885
+ /**
1886
+ * Omit specific fields from the ApprovalRequest
1887
+ */
1888
+ omit?: Prisma.ApprovalRequestOmit<ExtArgs> | null;
1889
+ /**
1890
+ * Choose, which related nodes to fetch as well
1891
+ */
1892
+ include?: Prisma.ApprovalRequestInclude<ExtArgs> | null;
1893
+ /**
1894
+ * Filter, which ApprovalRequest to fetch.
1895
+ */
1896
+ where?: Prisma.ApprovalRequestWhereInput;
1897
+ /**
1898
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1899
+ *
1900
+ * Determine the order of ApprovalRequests to fetch.
1901
+ */
1902
+ orderBy?: Prisma.ApprovalRequestOrderByWithRelationInput | Prisma.ApprovalRequestOrderByWithRelationInput[];
1903
+ /**
1904
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1905
+ *
1906
+ * Sets the position for searching for ApprovalRequests.
1907
+ */
1908
+ cursor?: Prisma.ApprovalRequestWhereUniqueInput;
1909
+ /**
1910
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1911
+ *
1912
+ * Take `±n` ApprovalRequests from the position of the cursor.
1913
+ */
1914
+ take?: number;
1915
+ /**
1916
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1917
+ *
1918
+ * Skip the first `n` ApprovalRequests.
1919
+ */
1920
+ skip?: number;
1921
+ /**
1922
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1923
+ *
1924
+ * Filter by unique combinations of ApprovalRequests.
1925
+ */
1926
+ distinct?: Prisma.ApprovalRequestScalarFieldEnum | Prisma.ApprovalRequestScalarFieldEnum[];
1927
+ };
1928
+ /**
1929
+ * ApprovalRequest findFirstOrThrow
1930
+ */
1931
+ export type ApprovalRequestFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1932
+ /**
1933
+ * Select specific fields to fetch from the ApprovalRequest
1934
+ */
1935
+ select?: Prisma.ApprovalRequestSelect<ExtArgs> | null;
1936
+ /**
1937
+ * Omit specific fields from the ApprovalRequest
1938
+ */
1939
+ omit?: Prisma.ApprovalRequestOmit<ExtArgs> | null;
1940
+ /**
1941
+ * Choose, which related nodes to fetch as well
1942
+ */
1943
+ include?: Prisma.ApprovalRequestInclude<ExtArgs> | null;
1944
+ /**
1945
+ * Filter, which ApprovalRequest to fetch.
1946
+ */
1947
+ where?: Prisma.ApprovalRequestWhereInput;
1948
+ /**
1949
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1950
+ *
1951
+ * Determine the order of ApprovalRequests to fetch.
1952
+ */
1953
+ orderBy?: Prisma.ApprovalRequestOrderByWithRelationInput | Prisma.ApprovalRequestOrderByWithRelationInput[];
1954
+ /**
1955
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1956
+ *
1957
+ * Sets the position for searching for ApprovalRequests.
1958
+ */
1959
+ cursor?: Prisma.ApprovalRequestWhereUniqueInput;
1960
+ /**
1961
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1962
+ *
1963
+ * Take `±n` ApprovalRequests from the position of the cursor.
1964
+ */
1965
+ take?: number;
1966
+ /**
1967
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1968
+ *
1969
+ * Skip the first `n` ApprovalRequests.
1970
+ */
1971
+ skip?: number;
1972
+ /**
1973
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1974
+ *
1975
+ * Filter by unique combinations of ApprovalRequests.
1976
+ */
1977
+ distinct?: Prisma.ApprovalRequestScalarFieldEnum | Prisma.ApprovalRequestScalarFieldEnum[];
1978
+ };
1979
+ /**
1980
+ * ApprovalRequest findMany
1981
+ */
1982
+ export type ApprovalRequestFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1983
+ /**
1984
+ * Select specific fields to fetch from the ApprovalRequest
1985
+ */
1986
+ select?: Prisma.ApprovalRequestSelect<ExtArgs> | null;
1987
+ /**
1988
+ * Omit specific fields from the ApprovalRequest
1989
+ */
1990
+ omit?: Prisma.ApprovalRequestOmit<ExtArgs> | null;
1991
+ /**
1992
+ * Choose, which related nodes to fetch as well
1993
+ */
1994
+ include?: Prisma.ApprovalRequestInclude<ExtArgs> | null;
1995
+ /**
1996
+ * Filter, which ApprovalRequests to fetch.
1997
+ */
1998
+ where?: Prisma.ApprovalRequestWhereInput;
1999
+ /**
2000
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2001
+ *
2002
+ * Determine the order of ApprovalRequests to fetch.
2003
+ */
2004
+ orderBy?: Prisma.ApprovalRequestOrderByWithRelationInput | Prisma.ApprovalRequestOrderByWithRelationInput[];
2005
+ /**
2006
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2007
+ *
2008
+ * Sets the position for listing ApprovalRequests.
2009
+ */
2010
+ cursor?: Prisma.ApprovalRequestWhereUniqueInput;
2011
+ /**
2012
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2013
+ *
2014
+ * Take `±n` ApprovalRequests from the position of the cursor.
2015
+ */
2016
+ take?: number;
2017
+ /**
2018
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2019
+ *
2020
+ * Skip the first `n` ApprovalRequests.
2021
+ */
2022
+ skip?: number;
2023
+ distinct?: Prisma.ApprovalRequestScalarFieldEnum | Prisma.ApprovalRequestScalarFieldEnum[];
2024
+ };
2025
+ /**
2026
+ * ApprovalRequest create
2027
+ */
2028
+ export type ApprovalRequestCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2029
+ /**
2030
+ * Select specific fields to fetch from the ApprovalRequest
2031
+ */
2032
+ select?: Prisma.ApprovalRequestSelect<ExtArgs> | null;
2033
+ /**
2034
+ * Omit specific fields from the ApprovalRequest
2035
+ */
2036
+ omit?: Prisma.ApprovalRequestOmit<ExtArgs> | null;
2037
+ /**
2038
+ * Choose, which related nodes to fetch as well
2039
+ */
2040
+ include?: Prisma.ApprovalRequestInclude<ExtArgs> | null;
2041
+ /**
2042
+ * The data needed to create a ApprovalRequest.
2043
+ */
2044
+ data: Prisma.XOR<Prisma.ApprovalRequestCreateInput, Prisma.ApprovalRequestUncheckedCreateInput>;
2045
+ };
2046
+ /**
2047
+ * ApprovalRequest createMany
2048
+ */
2049
+ export type ApprovalRequestCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2050
+ /**
2051
+ * The data used to create many ApprovalRequests.
2052
+ */
2053
+ data: Prisma.ApprovalRequestCreateManyInput | Prisma.ApprovalRequestCreateManyInput[];
2054
+ skipDuplicates?: boolean;
2055
+ };
2056
+ /**
2057
+ * ApprovalRequest update
2058
+ */
2059
+ export type ApprovalRequestUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2060
+ /**
2061
+ * Select specific fields to fetch from the ApprovalRequest
2062
+ */
2063
+ select?: Prisma.ApprovalRequestSelect<ExtArgs> | null;
2064
+ /**
2065
+ * Omit specific fields from the ApprovalRequest
2066
+ */
2067
+ omit?: Prisma.ApprovalRequestOmit<ExtArgs> | null;
2068
+ /**
2069
+ * Choose, which related nodes to fetch as well
2070
+ */
2071
+ include?: Prisma.ApprovalRequestInclude<ExtArgs> | null;
2072
+ /**
2073
+ * The data needed to update a ApprovalRequest.
2074
+ */
2075
+ data: Prisma.XOR<Prisma.ApprovalRequestUpdateInput, Prisma.ApprovalRequestUncheckedUpdateInput>;
2076
+ /**
2077
+ * Choose, which ApprovalRequest to update.
2078
+ */
2079
+ where: Prisma.ApprovalRequestWhereUniqueInput;
2080
+ };
2081
+ /**
2082
+ * ApprovalRequest updateMany
2083
+ */
2084
+ export type ApprovalRequestUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2085
+ /**
2086
+ * The data used to update ApprovalRequests.
2087
+ */
2088
+ data: Prisma.XOR<Prisma.ApprovalRequestUpdateManyMutationInput, Prisma.ApprovalRequestUncheckedUpdateManyInput>;
2089
+ /**
2090
+ * Filter which ApprovalRequests to update
2091
+ */
2092
+ where?: Prisma.ApprovalRequestWhereInput;
2093
+ /**
2094
+ * Limit how many ApprovalRequests to update.
2095
+ */
2096
+ limit?: number;
2097
+ };
2098
+ /**
2099
+ * ApprovalRequest upsert
2100
+ */
2101
+ export type ApprovalRequestUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2102
+ /**
2103
+ * Select specific fields to fetch from the ApprovalRequest
2104
+ */
2105
+ select?: Prisma.ApprovalRequestSelect<ExtArgs> | null;
2106
+ /**
2107
+ * Omit specific fields from the ApprovalRequest
2108
+ */
2109
+ omit?: Prisma.ApprovalRequestOmit<ExtArgs> | null;
2110
+ /**
2111
+ * Choose, which related nodes to fetch as well
2112
+ */
2113
+ include?: Prisma.ApprovalRequestInclude<ExtArgs> | null;
2114
+ /**
2115
+ * The filter to search for the ApprovalRequest to update in case it exists.
2116
+ */
2117
+ where: Prisma.ApprovalRequestWhereUniqueInput;
2118
+ /**
2119
+ * In case the ApprovalRequest found by the `where` argument doesn't exist, create a new ApprovalRequest with this data.
2120
+ */
2121
+ create: Prisma.XOR<Prisma.ApprovalRequestCreateInput, Prisma.ApprovalRequestUncheckedCreateInput>;
2122
+ /**
2123
+ * In case the ApprovalRequest was found with the provided `where` argument, update it with this data.
2124
+ */
2125
+ update: Prisma.XOR<Prisma.ApprovalRequestUpdateInput, Prisma.ApprovalRequestUncheckedUpdateInput>;
2126
+ };
2127
+ /**
2128
+ * ApprovalRequest delete
2129
+ */
2130
+ export type ApprovalRequestDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2131
+ /**
2132
+ * Select specific fields to fetch from the ApprovalRequest
2133
+ */
2134
+ select?: Prisma.ApprovalRequestSelect<ExtArgs> | null;
2135
+ /**
2136
+ * Omit specific fields from the ApprovalRequest
2137
+ */
2138
+ omit?: Prisma.ApprovalRequestOmit<ExtArgs> | null;
2139
+ /**
2140
+ * Choose, which related nodes to fetch as well
2141
+ */
2142
+ include?: Prisma.ApprovalRequestInclude<ExtArgs> | null;
2143
+ /**
2144
+ * Filter which ApprovalRequest to delete.
2145
+ */
2146
+ where: Prisma.ApprovalRequestWhereUniqueInput;
2147
+ };
2148
+ /**
2149
+ * ApprovalRequest deleteMany
2150
+ */
2151
+ export type ApprovalRequestDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2152
+ /**
2153
+ * Filter which ApprovalRequests to delete
2154
+ */
2155
+ where?: Prisma.ApprovalRequestWhereInput;
2156
+ /**
2157
+ * Limit how many ApprovalRequests to delete.
2158
+ */
2159
+ limit?: number;
2160
+ };
2161
+ /**
2162
+ * ApprovalRequest.assignee
2163
+ */
2164
+ export type ApprovalRequest$assigneeArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2165
+ /**
2166
+ * Select specific fields to fetch from the User
2167
+ */
2168
+ select?: Prisma.UserSelect<ExtArgs> | null;
2169
+ /**
2170
+ * Omit specific fields from the User
2171
+ */
2172
+ omit?: Prisma.UserOmit<ExtArgs> | null;
2173
+ /**
2174
+ * Choose, which related nodes to fetch as well
2175
+ */
2176
+ include?: Prisma.UserInclude<ExtArgs> | null;
2177
+ where?: Prisma.UserWhereInput;
2178
+ };
2179
+ /**
2180
+ * ApprovalRequest.reviewedBy
2181
+ */
2182
+ export type ApprovalRequest$reviewedByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2183
+ /**
2184
+ * Select specific fields to fetch from the User
2185
+ */
2186
+ select?: Prisma.UserSelect<ExtArgs> | null;
2187
+ /**
2188
+ * Omit specific fields from the User
2189
+ */
2190
+ omit?: Prisma.UserOmit<ExtArgs> | null;
2191
+ /**
2192
+ * Choose, which related nodes to fetch as well
2193
+ */
2194
+ include?: Prisma.UserInclude<ExtArgs> | null;
2195
+ where?: Prisma.UserWhereInput;
2196
+ };
2197
+ /**
2198
+ * ApprovalRequest without action
2199
+ */
2200
+ export type ApprovalRequestDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2201
+ /**
2202
+ * Select specific fields to fetch from the ApprovalRequest
2203
+ */
2204
+ select?: Prisma.ApprovalRequestSelect<ExtArgs> | null;
2205
+ /**
2206
+ * Omit specific fields from the ApprovalRequest
2207
+ */
2208
+ omit?: Prisma.ApprovalRequestOmit<ExtArgs> | null;
2209
+ /**
2210
+ * Choose, which related nodes to fetch as well
2211
+ */
2212
+ include?: Prisma.ApprovalRequestInclude<ExtArgs> | null;
2213
+ };
2214
+ export {};