@valentine-efagene/qshelter-common 2.0.142 → 2.0.144

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