@valentine-efagene/qshelter-common 2.0.36 → 2.0.38

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,2570 @@
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 OfferLetter
6
+ *
7
+ */
8
+ export type OfferLetterModel = runtime.Types.Result.DefaultSelection<Prisma.$OfferLetterPayload>;
9
+ export type AggregateOfferLetter = {
10
+ _count: OfferLetterCountAggregateOutputType | null;
11
+ _min: OfferLetterMinAggregateOutputType | null;
12
+ _max: OfferLetterMaxAggregateOutputType | null;
13
+ };
14
+ export type OfferLetterMinAggregateOutputType = {
15
+ id: string | null;
16
+ tenantId: string | null;
17
+ contractId: string | null;
18
+ templateId: string | null;
19
+ letterNumber: string | null;
20
+ type: $Enums.OfferLetterType | null;
21
+ status: $Enums.OfferLetterStatus | null;
22
+ htmlContent: string | null;
23
+ pdfUrl: string | null;
24
+ pdfKey: string | null;
25
+ sentAt: Date | null;
26
+ viewedAt: Date | null;
27
+ signedAt: Date | null;
28
+ signatureIp: string | null;
29
+ expiresAt: Date | null;
30
+ expiredAt: Date | null;
31
+ cancelledAt: Date | null;
32
+ cancelReason: string | null;
33
+ generatedById: string | null;
34
+ sentById: string | null;
35
+ createdAt: Date | null;
36
+ updatedAt: Date | null;
37
+ };
38
+ export type OfferLetterMaxAggregateOutputType = {
39
+ id: string | null;
40
+ tenantId: string | null;
41
+ contractId: string | null;
42
+ templateId: string | null;
43
+ letterNumber: string | null;
44
+ type: $Enums.OfferLetterType | null;
45
+ status: $Enums.OfferLetterStatus | null;
46
+ htmlContent: string | null;
47
+ pdfUrl: string | null;
48
+ pdfKey: string | null;
49
+ sentAt: Date | null;
50
+ viewedAt: Date | null;
51
+ signedAt: Date | null;
52
+ signatureIp: string | null;
53
+ expiresAt: Date | null;
54
+ expiredAt: Date | null;
55
+ cancelledAt: Date | null;
56
+ cancelReason: string | null;
57
+ generatedById: string | null;
58
+ sentById: string | null;
59
+ createdAt: Date | null;
60
+ updatedAt: Date | null;
61
+ };
62
+ export type OfferLetterCountAggregateOutputType = {
63
+ id: number;
64
+ tenantId: number;
65
+ contractId: number;
66
+ templateId: number;
67
+ letterNumber: number;
68
+ type: number;
69
+ status: number;
70
+ htmlContent: number;
71
+ pdfUrl: number;
72
+ pdfKey: number;
73
+ mergeData: number;
74
+ sentAt: number;
75
+ viewedAt: number;
76
+ signedAt: number;
77
+ signatureIp: number;
78
+ signatureData: number;
79
+ expiresAt: number;
80
+ expiredAt: number;
81
+ cancelledAt: number;
82
+ cancelReason: number;
83
+ generatedById: number;
84
+ sentById: number;
85
+ createdAt: number;
86
+ updatedAt: number;
87
+ _all: number;
88
+ };
89
+ export type OfferLetterMinAggregateInputType = {
90
+ id?: true;
91
+ tenantId?: true;
92
+ contractId?: true;
93
+ templateId?: true;
94
+ letterNumber?: true;
95
+ type?: true;
96
+ status?: true;
97
+ htmlContent?: true;
98
+ pdfUrl?: true;
99
+ pdfKey?: true;
100
+ sentAt?: true;
101
+ viewedAt?: true;
102
+ signedAt?: true;
103
+ signatureIp?: true;
104
+ expiresAt?: true;
105
+ expiredAt?: true;
106
+ cancelledAt?: true;
107
+ cancelReason?: true;
108
+ generatedById?: true;
109
+ sentById?: true;
110
+ createdAt?: true;
111
+ updatedAt?: true;
112
+ };
113
+ export type OfferLetterMaxAggregateInputType = {
114
+ id?: true;
115
+ tenantId?: true;
116
+ contractId?: true;
117
+ templateId?: true;
118
+ letterNumber?: true;
119
+ type?: true;
120
+ status?: true;
121
+ htmlContent?: true;
122
+ pdfUrl?: true;
123
+ pdfKey?: true;
124
+ sentAt?: true;
125
+ viewedAt?: true;
126
+ signedAt?: true;
127
+ signatureIp?: true;
128
+ expiresAt?: true;
129
+ expiredAt?: true;
130
+ cancelledAt?: true;
131
+ cancelReason?: true;
132
+ generatedById?: true;
133
+ sentById?: true;
134
+ createdAt?: true;
135
+ updatedAt?: true;
136
+ };
137
+ export type OfferLetterCountAggregateInputType = {
138
+ id?: true;
139
+ tenantId?: true;
140
+ contractId?: true;
141
+ templateId?: true;
142
+ letterNumber?: true;
143
+ type?: true;
144
+ status?: true;
145
+ htmlContent?: true;
146
+ pdfUrl?: true;
147
+ pdfKey?: true;
148
+ mergeData?: true;
149
+ sentAt?: true;
150
+ viewedAt?: true;
151
+ signedAt?: true;
152
+ signatureIp?: true;
153
+ signatureData?: true;
154
+ expiresAt?: true;
155
+ expiredAt?: true;
156
+ cancelledAt?: true;
157
+ cancelReason?: true;
158
+ generatedById?: true;
159
+ sentById?: true;
160
+ createdAt?: true;
161
+ updatedAt?: true;
162
+ _all?: true;
163
+ };
164
+ export type OfferLetterAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
165
+ /**
166
+ * Filter which OfferLetter to aggregate.
167
+ */
168
+ where?: Prisma.OfferLetterWhereInput;
169
+ /**
170
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
171
+ *
172
+ * Determine the order of OfferLetters to fetch.
173
+ */
174
+ orderBy?: Prisma.OfferLetterOrderByWithRelationInput | Prisma.OfferLetterOrderByWithRelationInput[];
175
+ /**
176
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
177
+ *
178
+ * Sets the start position
179
+ */
180
+ cursor?: Prisma.OfferLetterWhereUniqueInput;
181
+ /**
182
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
183
+ *
184
+ * Take `±n` OfferLetters from the position of the cursor.
185
+ */
186
+ take?: number;
187
+ /**
188
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
189
+ *
190
+ * Skip the first `n` OfferLetters.
191
+ */
192
+ skip?: number;
193
+ /**
194
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
195
+ *
196
+ * Count returned OfferLetters
197
+ **/
198
+ _count?: true | OfferLetterCountAggregateInputType;
199
+ /**
200
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
201
+ *
202
+ * Select which fields to find the minimum value
203
+ **/
204
+ _min?: OfferLetterMinAggregateInputType;
205
+ /**
206
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
207
+ *
208
+ * Select which fields to find the maximum value
209
+ **/
210
+ _max?: OfferLetterMaxAggregateInputType;
211
+ };
212
+ export type GetOfferLetterAggregateType<T extends OfferLetterAggregateArgs> = {
213
+ [P in keyof T & keyof AggregateOfferLetter]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateOfferLetter[P]> : Prisma.GetScalarType<T[P], AggregateOfferLetter[P]>;
214
+ };
215
+ export type OfferLetterGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
216
+ where?: Prisma.OfferLetterWhereInput;
217
+ orderBy?: Prisma.OfferLetterOrderByWithAggregationInput | Prisma.OfferLetterOrderByWithAggregationInput[];
218
+ by: Prisma.OfferLetterScalarFieldEnum[] | Prisma.OfferLetterScalarFieldEnum;
219
+ having?: Prisma.OfferLetterScalarWhereWithAggregatesInput;
220
+ take?: number;
221
+ skip?: number;
222
+ _count?: OfferLetterCountAggregateInputType | true;
223
+ _min?: OfferLetterMinAggregateInputType;
224
+ _max?: OfferLetterMaxAggregateInputType;
225
+ };
226
+ export type OfferLetterGroupByOutputType = {
227
+ id: string;
228
+ tenantId: string;
229
+ contractId: string;
230
+ templateId: string;
231
+ letterNumber: string;
232
+ type: $Enums.OfferLetterType;
233
+ status: $Enums.OfferLetterStatus;
234
+ htmlContent: string | null;
235
+ pdfUrl: string | null;
236
+ pdfKey: string | null;
237
+ mergeData: runtime.JsonValue | null;
238
+ sentAt: Date | null;
239
+ viewedAt: Date | null;
240
+ signedAt: Date | null;
241
+ signatureIp: string | null;
242
+ signatureData: runtime.JsonValue | null;
243
+ expiresAt: Date | null;
244
+ expiredAt: Date | null;
245
+ cancelledAt: Date | null;
246
+ cancelReason: string | null;
247
+ generatedById: string | null;
248
+ sentById: string | null;
249
+ createdAt: Date;
250
+ updatedAt: Date;
251
+ _count: OfferLetterCountAggregateOutputType | null;
252
+ _min: OfferLetterMinAggregateOutputType | null;
253
+ _max: OfferLetterMaxAggregateOutputType | null;
254
+ };
255
+ type GetOfferLetterGroupByPayload<T extends OfferLetterGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<OfferLetterGroupByOutputType, T['by']> & {
256
+ [P in ((keyof T) & (keyof OfferLetterGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], OfferLetterGroupByOutputType[P]> : Prisma.GetScalarType<T[P], OfferLetterGroupByOutputType[P]>;
257
+ }>>;
258
+ export type OfferLetterWhereInput = {
259
+ AND?: Prisma.OfferLetterWhereInput | Prisma.OfferLetterWhereInput[];
260
+ OR?: Prisma.OfferLetterWhereInput[];
261
+ NOT?: Prisma.OfferLetterWhereInput | Prisma.OfferLetterWhereInput[];
262
+ id?: Prisma.StringFilter<"OfferLetter"> | string;
263
+ tenantId?: Prisma.StringFilter<"OfferLetter"> | string;
264
+ contractId?: Prisma.StringFilter<"OfferLetter"> | string;
265
+ templateId?: Prisma.StringFilter<"OfferLetter"> | string;
266
+ letterNumber?: Prisma.StringFilter<"OfferLetter"> | string;
267
+ type?: Prisma.EnumOfferLetterTypeFilter<"OfferLetter"> | $Enums.OfferLetterType;
268
+ status?: Prisma.EnumOfferLetterStatusFilter<"OfferLetter"> | $Enums.OfferLetterStatus;
269
+ htmlContent?: Prisma.StringNullableFilter<"OfferLetter"> | string | null;
270
+ pdfUrl?: Prisma.StringNullableFilter<"OfferLetter"> | string | null;
271
+ pdfKey?: Prisma.StringNullableFilter<"OfferLetter"> | string | null;
272
+ mergeData?: Prisma.JsonNullableFilter<"OfferLetter">;
273
+ sentAt?: Prisma.DateTimeNullableFilter<"OfferLetter"> | Date | string | null;
274
+ viewedAt?: Prisma.DateTimeNullableFilter<"OfferLetter"> | Date | string | null;
275
+ signedAt?: Prisma.DateTimeNullableFilter<"OfferLetter"> | Date | string | null;
276
+ signatureIp?: Prisma.StringNullableFilter<"OfferLetter"> | string | null;
277
+ signatureData?: Prisma.JsonNullableFilter<"OfferLetter">;
278
+ expiresAt?: Prisma.DateTimeNullableFilter<"OfferLetter"> | Date | string | null;
279
+ expiredAt?: Prisma.DateTimeNullableFilter<"OfferLetter"> | Date | string | null;
280
+ cancelledAt?: Prisma.DateTimeNullableFilter<"OfferLetter"> | Date | string | null;
281
+ cancelReason?: Prisma.StringNullableFilter<"OfferLetter"> | string | null;
282
+ generatedById?: Prisma.StringNullableFilter<"OfferLetter"> | string | null;
283
+ sentById?: Prisma.StringNullableFilter<"OfferLetter"> | string | null;
284
+ createdAt?: Prisma.DateTimeFilter<"OfferLetter"> | Date | string;
285
+ updatedAt?: Prisma.DateTimeFilter<"OfferLetter"> | Date | string;
286
+ tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
287
+ contract?: Prisma.XOR<Prisma.ContractScalarRelationFilter, Prisma.ContractWhereInput>;
288
+ template?: Prisma.XOR<Prisma.DocumentTemplateScalarRelationFilter, Prisma.DocumentTemplateWhereInput>;
289
+ generatedBy?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
290
+ sentBy?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
291
+ };
292
+ export type OfferLetterOrderByWithRelationInput = {
293
+ id?: Prisma.SortOrder;
294
+ tenantId?: Prisma.SortOrder;
295
+ contractId?: Prisma.SortOrder;
296
+ templateId?: Prisma.SortOrder;
297
+ letterNumber?: Prisma.SortOrder;
298
+ type?: Prisma.SortOrder;
299
+ status?: Prisma.SortOrder;
300
+ htmlContent?: Prisma.SortOrderInput | Prisma.SortOrder;
301
+ pdfUrl?: Prisma.SortOrderInput | Prisma.SortOrder;
302
+ pdfKey?: Prisma.SortOrderInput | Prisma.SortOrder;
303
+ mergeData?: Prisma.SortOrderInput | Prisma.SortOrder;
304
+ sentAt?: Prisma.SortOrderInput | Prisma.SortOrder;
305
+ viewedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
306
+ signedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
307
+ signatureIp?: Prisma.SortOrderInput | Prisma.SortOrder;
308
+ signatureData?: Prisma.SortOrderInput | Prisma.SortOrder;
309
+ expiresAt?: Prisma.SortOrderInput | Prisma.SortOrder;
310
+ expiredAt?: Prisma.SortOrderInput | Prisma.SortOrder;
311
+ cancelledAt?: Prisma.SortOrderInput | Prisma.SortOrder;
312
+ cancelReason?: Prisma.SortOrderInput | Prisma.SortOrder;
313
+ generatedById?: Prisma.SortOrderInput | Prisma.SortOrder;
314
+ sentById?: Prisma.SortOrderInput | Prisma.SortOrder;
315
+ createdAt?: Prisma.SortOrder;
316
+ updatedAt?: Prisma.SortOrder;
317
+ tenant?: Prisma.TenantOrderByWithRelationInput;
318
+ contract?: Prisma.ContractOrderByWithRelationInput;
319
+ template?: Prisma.DocumentTemplateOrderByWithRelationInput;
320
+ generatedBy?: Prisma.UserOrderByWithRelationInput;
321
+ sentBy?: Prisma.UserOrderByWithRelationInput;
322
+ _relevance?: Prisma.OfferLetterOrderByRelevanceInput;
323
+ };
324
+ export type OfferLetterWhereUniqueInput = Prisma.AtLeast<{
325
+ id?: string;
326
+ letterNumber?: string;
327
+ AND?: Prisma.OfferLetterWhereInput | Prisma.OfferLetterWhereInput[];
328
+ OR?: Prisma.OfferLetterWhereInput[];
329
+ NOT?: Prisma.OfferLetterWhereInput | Prisma.OfferLetterWhereInput[];
330
+ tenantId?: Prisma.StringFilter<"OfferLetter"> | string;
331
+ contractId?: Prisma.StringFilter<"OfferLetter"> | string;
332
+ templateId?: Prisma.StringFilter<"OfferLetter"> | string;
333
+ type?: Prisma.EnumOfferLetterTypeFilter<"OfferLetter"> | $Enums.OfferLetterType;
334
+ status?: Prisma.EnumOfferLetterStatusFilter<"OfferLetter"> | $Enums.OfferLetterStatus;
335
+ htmlContent?: Prisma.StringNullableFilter<"OfferLetter"> | string | null;
336
+ pdfUrl?: Prisma.StringNullableFilter<"OfferLetter"> | string | null;
337
+ pdfKey?: Prisma.StringNullableFilter<"OfferLetter"> | string | null;
338
+ mergeData?: Prisma.JsonNullableFilter<"OfferLetter">;
339
+ sentAt?: Prisma.DateTimeNullableFilter<"OfferLetter"> | Date | string | null;
340
+ viewedAt?: Prisma.DateTimeNullableFilter<"OfferLetter"> | Date | string | null;
341
+ signedAt?: Prisma.DateTimeNullableFilter<"OfferLetter"> | Date | string | null;
342
+ signatureIp?: Prisma.StringNullableFilter<"OfferLetter"> | string | null;
343
+ signatureData?: Prisma.JsonNullableFilter<"OfferLetter">;
344
+ expiresAt?: Prisma.DateTimeNullableFilter<"OfferLetter"> | Date | string | null;
345
+ expiredAt?: Prisma.DateTimeNullableFilter<"OfferLetter"> | Date | string | null;
346
+ cancelledAt?: Prisma.DateTimeNullableFilter<"OfferLetter"> | Date | string | null;
347
+ cancelReason?: Prisma.StringNullableFilter<"OfferLetter"> | string | null;
348
+ generatedById?: Prisma.StringNullableFilter<"OfferLetter"> | string | null;
349
+ sentById?: Prisma.StringNullableFilter<"OfferLetter"> | string | null;
350
+ createdAt?: Prisma.DateTimeFilter<"OfferLetter"> | Date | string;
351
+ updatedAt?: Prisma.DateTimeFilter<"OfferLetter"> | Date | string;
352
+ tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
353
+ contract?: Prisma.XOR<Prisma.ContractScalarRelationFilter, Prisma.ContractWhereInput>;
354
+ template?: Prisma.XOR<Prisma.DocumentTemplateScalarRelationFilter, Prisma.DocumentTemplateWhereInput>;
355
+ generatedBy?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
356
+ sentBy?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
357
+ }, "id" | "letterNumber">;
358
+ export type OfferLetterOrderByWithAggregationInput = {
359
+ id?: Prisma.SortOrder;
360
+ tenantId?: Prisma.SortOrder;
361
+ contractId?: Prisma.SortOrder;
362
+ templateId?: Prisma.SortOrder;
363
+ letterNumber?: Prisma.SortOrder;
364
+ type?: Prisma.SortOrder;
365
+ status?: Prisma.SortOrder;
366
+ htmlContent?: Prisma.SortOrderInput | Prisma.SortOrder;
367
+ pdfUrl?: Prisma.SortOrderInput | Prisma.SortOrder;
368
+ pdfKey?: Prisma.SortOrderInput | Prisma.SortOrder;
369
+ mergeData?: Prisma.SortOrderInput | Prisma.SortOrder;
370
+ sentAt?: Prisma.SortOrderInput | Prisma.SortOrder;
371
+ viewedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
372
+ signedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
373
+ signatureIp?: Prisma.SortOrderInput | Prisma.SortOrder;
374
+ signatureData?: Prisma.SortOrderInput | Prisma.SortOrder;
375
+ expiresAt?: Prisma.SortOrderInput | Prisma.SortOrder;
376
+ expiredAt?: Prisma.SortOrderInput | Prisma.SortOrder;
377
+ cancelledAt?: Prisma.SortOrderInput | Prisma.SortOrder;
378
+ cancelReason?: Prisma.SortOrderInput | Prisma.SortOrder;
379
+ generatedById?: Prisma.SortOrderInput | Prisma.SortOrder;
380
+ sentById?: Prisma.SortOrderInput | Prisma.SortOrder;
381
+ createdAt?: Prisma.SortOrder;
382
+ updatedAt?: Prisma.SortOrder;
383
+ _count?: Prisma.OfferLetterCountOrderByAggregateInput;
384
+ _max?: Prisma.OfferLetterMaxOrderByAggregateInput;
385
+ _min?: Prisma.OfferLetterMinOrderByAggregateInput;
386
+ };
387
+ export type OfferLetterScalarWhereWithAggregatesInput = {
388
+ AND?: Prisma.OfferLetterScalarWhereWithAggregatesInput | Prisma.OfferLetterScalarWhereWithAggregatesInput[];
389
+ OR?: Prisma.OfferLetterScalarWhereWithAggregatesInput[];
390
+ NOT?: Prisma.OfferLetterScalarWhereWithAggregatesInput | Prisma.OfferLetterScalarWhereWithAggregatesInput[];
391
+ id?: Prisma.StringWithAggregatesFilter<"OfferLetter"> | string;
392
+ tenantId?: Prisma.StringWithAggregatesFilter<"OfferLetter"> | string;
393
+ contractId?: Prisma.StringWithAggregatesFilter<"OfferLetter"> | string;
394
+ templateId?: Prisma.StringWithAggregatesFilter<"OfferLetter"> | string;
395
+ letterNumber?: Prisma.StringWithAggregatesFilter<"OfferLetter"> | string;
396
+ type?: Prisma.EnumOfferLetterTypeWithAggregatesFilter<"OfferLetter"> | $Enums.OfferLetterType;
397
+ status?: Prisma.EnumOfferLetterStatusWithAggregatesFilter<"OfferLetter"> | $Enums.OfferLetterStatus;
398
+ htmlContent?: Prisma.StringNullableWithAggregatesFilter<"OfferLetter"> | string | null;
399
+ pdfUrl?: Prisma.StringNullableWithAggregatesFilter<"OfferLetter"> | string | null;
400
+ pdfKey?: Prisma.StringNullableWithAggregatesFilter<"OfferLetter"> | string | null;
401
+ mergeData?: Prisma.JsonNullableWithAggregatesFilter<"OfferLetter">;
402
+ sentAt?: Prisma.DateTimeNullableWithAggregatesFilter<"OfferLetter"> | Date | string | null;
403
+ viewedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"OfferLetter"> | Date | string | null;
404
+ signedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"OfferLetter"> | Date | string | null;
405
+ signatureIp?: Prisma.StringNullableWithAggregatesFilter<"OfferLetter"> | string | null;
406
+ signatureData?: Prisma.JsonNullableWithAggregatesFilter<"OfferLetter">;
407
+ expiresAt?: Prisma.DateTimeNullableWithAggregatesFilter<"OfferLetter"> | Date | string | null;
408
+ expiredAt?: Prisma.DateTimeNullableWithAggregatesFilter<"OfferLetter"> | Date | string | null;
409
+ cancelledAt?: Prisma.DateTimeNullableWithAggregatesFilter<"OfferLetter"> | Date | string | null;
410
+ cancelReason?: Prisma.StringNullableWithAggregatesFilter<"OfferLetter"> | string | null;
411
+ generatedById?: Prisma.StringNullableWithAggregatesFilter<"OfferLetter"> | string | null;
412
+ sentById?: Prisma.StringNullableWithAggregatesFilter<"OfferLetter"> | string | null;
413
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"OfferLetter"> | Date | string;
414
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"OfferLetter"> | Date | string;
415
+ };
416
+ export type OfferLetterCreateInput = {
417
+ id?: string;
418
+ letterNumber: string;
419
+ type: $Enums.OfferLetterType;
420
+ status?: $Enums.OfferLetterStatus;
421
+ htmlContent?: string | null;
422
+ pdfUrl?: string | null;
423
+ pdfKey?: string | null;
424
+ mergeData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
425
+ sentAt?: Date | string | null;
426
+ viewedAt?: Date | string | null;
427
+ signedAt?: Date | string | null;
428
+ signatureIp?: string | null;
429
+ signatureData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
430
+ expiresAt?: Date | string | null;
431
+ expiredAt?: Date | string | null;
432
+ cancelledAt?: Date | string | null;
433
+ cancelReason?: string | null;
434
+ createdAt?: Date | string;
435
+ updatedAt?: Date | string;
436
+ tenant: Prisma.TenantCreateNestedOneWithoutOfferLettersInput;
437
+ contract: Prisma.ContractCreateNestedOneWithoutOfferLettersInput;
438
+ template: Prisma.DocumentTemplateCreateNestedOneWithoutOfferLettersInput;
439
+ generatedBy?: Prisma.UserCreateNestedOneWithoutOfferLettersGeneratedInput;
440
+ sentBy?: Prisma.UserCreateNestedOneWithoutOfferLettersSentInput;
441
+ };
442
+ export type OfferLetterUncheckedCreateInput = {
443
+ id?: string;
444
+ tenantId: string;
445
+ contractId: string;
446
+ templateId: string;
447
+ letterNumber: string;
448
+ type: $Enums.OfferLetterType;
449
+ status?: $Enums.OfferLetterStatus;
450
+ htmlContent?: string | null;
451
+ pdfUrl?: string | null;
452
+ pdfKey?: string | null;
453
+ mergeData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
454
+ sentAt?: Date | string | null;
455
+ viewedAt?: Date | string | null;
456
+ signedAt?: Date | string | null;
457
+ signatureIp?: string | null;
458
+ signatureData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
459
+ expiresAt?: Date | string | null;
460
+ expiredAt?: Date | string | null;
461
+ cancelledAt?: Date | string | null;
462
+ cancelReason?: string | null;
463
+ generatedById?: string | null;
464
+ sentById?: string | null;
465
+ createdAt?: Date | string;
466
+ updatedAt?: Date | string;
467
+ };
468
+ export type OfferLetterUpdateInput = {
469
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
470
+ letterNumber?: Prisma.StringFieldUpdateOperationsInput | string;
471
+ type?: Prisma.EnumOfferLetterTypeFieldUpdateOperationsInput | $Enums.OfferLetterType;
472
+ status?: Prisma.EnumOfferLetterStatusFieldUpdateOperationsInput | $Enums.OfferLetterStatus;
473
+ htmlContent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
474
+ pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
475
+ pdfKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
476
+ mergeData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
477
+ sentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
478
+ viewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
479
+ signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
480
+ signatureIp?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
481
+ signatureData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
482
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
483
+ expiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
484
+ cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
485
+ cancelReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
486
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
487
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
488
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutOfferLettersNestedInput;
489
+ contract?: Prisma.ContractUpdateOneRequiredWithoutOfferLettersNestedInput;
490
+ template?: Prisma.DocumentTemplateUpdateOneRequiredWithoutOfferLettersNestedInput;
491
+ generatedBy?: Prisma.UserUpdateOneWithoutOfferLettersGeneratedNestedInput;
492
+ sentBy?: Prisma.UserUpdateOneWithoutOfferLettersSentNestedInput;
493
+ };
494
+ export type OfferLetterUncheckedUpdateInput = {
495
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
496
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
497
+ contractId?: Prisma.StringFieldUpdateOperationsInput | string;
498
+ templateId?: Prisma.StringFieldUpdateOperationsInput | string;
499
+ letterNumber?: Prisma.StringFieldUpdateOperationsInput | string;
500
+ type?: Prisma.EnumOfferLetterTypeFieldUpdateOperationsInput | $Enums.OfferLetterType;
501
+ status?: Prisma.EnumOfferLetterStatusFieldUpdateOperationsInput | $Enums.OfferLetterStatus;
502
+ htmlContent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
503
+ pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
504
+ pdfKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
505
+ mergeData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
506
+ sentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
507
+ viewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
508
+ signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
509
+ signatureIp?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
510
+ signatureData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
511
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
512
+ expiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
513
+ cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
514
+ cancelReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
515
+ generatedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
516
+ sentById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
517
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
518
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
519
+ };
520
+ export type OfferLetterCreateManyInput = {
521
+ id?: string;
522
+ tenantId: string;
523
+ contractId: string;
524
+ templateId: string;
525
+ letterNumber: string;
526
+ type: $Enums.OfferLetterType;
527
+ status?: $Enums.OfferLetterStatus;
528
+ htmlContent?: string | null;
529
+ pdfUrl?: string | null;
530
+ pdfKey?: string | null;
531
+ mergeData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
532
+ sentAt?: Date | string | null;
533
+ viewedAt?: Date | string | null;
534
+ signedAt?: Date | string | null;
535
+ signatureIp?: string | null;
536
+ signatureData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
537
+ expiresAt?: Date | string | null;
538
+ expiredAt?: Date | string | null;
539
+ cancelledAt?: Date | string | null;
540
+ cancelReason?: string | null;
541
+ generatedById?: string | null;
542
+ sentById?: string | null;
543
+ createdAt?: Date | string;
544
+ updatedAt?: Date | string;
545
+ };
546
+ export type OfferLetterUpdateManyMutationInput = {
547
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
548
+ letterNumber?: Prisma.StringFieldUpdateOperationsInput | string;
549
+ type?: Prisma.EnumOfferLetterTypeFieldUpdateOperationsInput | $Enums.OfferLetterType;
550
+ status?: Prisma.EnumOfferLetterStatusFieldUpdateOperationsInput | $Enums.OfferLetterStatus;
551
+ htmlContent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
552
+ pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
553
+ pdfKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
554
+ mergeData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
555
+ sentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
556
+ viewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
557
+ signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
558
+ signatureIp?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
559
+ signatureData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
560
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
561
+ expiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
562
+ cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
563
+ cancelReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
564
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
565
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
566
+ };
567
+ export type OfferLetterUncheckedUpdateManyInput = {
568
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
569
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
570
+ contractId?: Prisma.StringFieldUpdateOperationsInput | string;
571
+ templateId?: Prisma.StringFieldUpdateOperationsInput | string;
572
+ letterNumber?: Prisma.StringFieldUpdateOperationsInput | string;
573
+ type?: Prisma.EnumOfferLetterTypeFieldUpdateOperationsInput | $Enums.OfferLetterType;
574
+ status?: Prisma.EnumOfferLetterStatusFieldUpdateOperationsInput | $Enums.OfferLetterStatus;
575
+ htmlContent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
576
+ pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
577
+ pdfKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
578
+ mergeData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
579
+ sentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
580
+ viewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
581
+ signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
582
+ signatureIp?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
583
+ signatureData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
584
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
585
+ expiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
586
+ cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
587
+ cancelReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
588
+ generatedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
589
+ sentById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
590
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
591
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
592
+ };
593
+ export type OfferLetterListRelationFilter = {
594
+ every?: Prisma.OfferLetterWhereInput;
595
+ some?: Prisma.OfferLetterWhereInput;
596
+ none?: Prisma.OfferLetterWhereInput;
597
+ };
598
+ export type OfferLetterOrderByRelationAggregateInput = {
599
+ _count?: Prisma.SortOrder;
600
+ };
601
+ export type OfferLetterOrderByRelevanceInput = {
602
+ fields: Prisma.OfferLetterOrderByRelevanceFieldEnum | Prisma.OfferLetterOrderByRelevanceFieldEnum[];
603
+ sort: Prisma.SortOrder;
604
+ search: string;
605
+ };
606
+ export type OfferLetterCountOrderByAggregateInput = {
607
+ id?: Prisma.SortOrder;
608
+ tenantId?: Prisma.SortOrder;
609
+ contractId?: Prisma.SortOrder;
610
+ templateId?: Prisma.SortOrder;
611
+ letterNumber?: Prisma.SortOrder;
612
+ type?: Prisma.SortOrder;
613
+ status?: Prisma.SortOrder;
614
+ htmlContent?: Prisma.SortOrder;
615
+ pdfUrl?: Prisma.SortOrder;
616
+ pdfKey?: Prisma.SortOrder;
617
+ mergeData?: Prisma.SortOrder;
618
+ sentAt?: Prisma.SortOrder;
619
+ viewedAt?: Prisma.SortOrder;
620
+ signedAt?: Prisma.SortOrder;
621
+ signatureIp?: Prisma.SortOrder;
622
+ signatureData?: Prisma.SortOrder;
623
+ expiresAt?: Prisma.SortOrder;
624
+ expiredAt?: Prisma.SortOrder;
625
+ cancelledAt?: Prisma.SortOrder;
626
+ cancelReason?: Prisma.SortOrder;
627
+ generatedById?: Prisma.SortOrder;
628
+ sentById?: Prisma.SortOrder;
629
+ createdAt?: Prisma.SortOrder;
630
+ updatedAt?: Prisma.SortOrder;
631
+ };
632
+ export type OfferLetterMaxOrderByAggregateInput = {
633
+ id?: Prisma.SortOrder;
634
+ tenantId?: Prisma.SortOrder;
635
+ contractId?: Prisma.SortOrder;
636
+ templateId?: Prisma.SortOrder;
637
+ letterNumber?: Prisma.SortOrder;
638
+ type?: Prisma.SortOrder;
639
+ status?: Prisma.SortOrder;
640
+ htmlContent?: Prisma.SortOrder;
641
+ pdfUrl?: Prisma.SortOrder;
642
+ pdfKey?: Prisma.SortOrder;
643
+ sentAt?: Prisma.SortOrder;
644
+ viewedAt?: Prisma.SortOrder;
645
+ signedAt?: Prisma.SortOrder;
646
+ signatureIp?: Prisma.SortOrder;
647
+ expiresAt?: Prisma.SortOrder;
648
+ expiredAt?: Prisma.SortOrder;
649
+ cancelledAt?: Prisma.SortOrder;
650
+ cancelReason?: Prisma.SortOrder;
651
+ generatedById?: Prisma.SortOrder;
652
+ sentById?: Prisma.SortOrder;
653
+ createdAt?: Prisma.SortOrder;
654
+ updatedAt?: Prisma.SortOrder;
655
+ };
656
+ export type OfferLetterMinOrderByAggregateInput = {
657
+ id?: Prisma.SortOrder;
658
+ tenantId?: Prisma.SortOrder;
659
+ contractId?: Prisma.SortOrder;
660
+ templateId?: Prisma.SortOrder;
661
+ letterNumber?: Prisma.SortOrder;
662
+ type?: Prisma.SortOrder;
663
+ status?: Prisma.SortOrder;
664
+ htmlContent?: Prisma.SortOrder;
665
+ pdfUrl?: Prisma.SortOrder;
666
+ pdfKey?: Prisma.SortOrder;
667
+ sentAt?: Prisma.SortOrder;
668
+ viewedAt?: Prisma.SortOrder;
669
+ signedAt?: Prisma.SortOrder;
670
+ signatureIp?: Prisma.SortOrder;
671
+ expiresAt?: Prisma.SortOrder;
672
+ expiredAt?: Prisma.SortOrder;
673
+ cancelledAt?: Prisma.SortOrder;
674
+ cancelReason?: Prisma.SortOrder;
675
+ generatedById?: Prisma.SortOrder;
676
+ sentById?: Prisma.SortOrder;
677
+ createdAt?: Prisma.SortOrder;
678
+ updatedAt?: Prisma.SortOrder;
679
+ };
680
+ export type OfferLetterCreateNestedManyWithoutGeneratedByInput = {
681
+ create?: Prisma.XOR<Prisma.OfferLetterCreateWithoutGeneratedByInput, Prisma.OfferLetterUncheckedCreateWithoutGeneratedByInput> | Prisma.OfferLetterCreateWithoutGeneratedByInput[] | Prisma.OfferLetterUncheckedCreateWithoutGeneratedByInput[];
682
+ connectOrCreate?: Prisma.OfferLetterCreateOrConnectWithoutGeneratedByInput | Prisma.OfferLetterCreateOrConnectWithoutGeneratedByInput[];
683
+ createMany?: Prisma.OfferLetterCreateManyGeneratedByInputEnvelope;
684
+ connect?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
685
+ };
686
+ export type OfferLetterCreateNestedManyWithoutSentByInput = {
687
+ create?: Prisma.XOR<Prisma.OfferLetterCreateWithoutSentByInput, Prisma.OfferLetterUncheckedCreateWithoutSentByInput> | Prisma.OfferLetterCreateWithoutSentByInput[] | Prisma.OfferLetterUncheckedCreateWithoutSentByInput[];
688
+ connectOrCreate?: Prisma.OfferLetterCreateOrConnectWithoutSentByInput | Prisma.OfferLetterCreateOrConnectWithoutSentByInput[];
689
+ createMany?: Prisma.OfferLetterCreateManySentByInputEnvelope;
690
+ connect?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
691
+ };
692
+ export type OfferLetterUncheckedCreateNestedManyWithoutGeneratedByInput = {
693
+ create?: Prisma.XOR<Prisma.OfferLetterCreateWithoutGeneratedByInput, Prisma.OfferLetterUncheckedCreateWithoutGeneratedByInput> | Prisma.OfferLetterCreateWithoutGeneratedByInput[] | Prisma.OfferLetterUncheckedCreateWithoutGeneratedByInput[];
694
+ connectOrCreate?: Prisma.OfferLetterCreateOrConnectWithoutGeneratedByInput | Prisma.OfferLetterCreateOrConnectWithoutGeneratedByInput[];
695
+ createMany?: Prisma.OfferLetterCreateManyGeneratedByInputEnvelope;
696
+ connect?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
697
+ };
698
+ export type OfferLetterUncheckedCreateNestedManyWithoutSentByInput = {
699
+ create?: Prisma.XOR<Prisma.OfferLetterCreateWithoutSentByInput, Prisma.OfferLetterUncheckedCreateWithoutSentByInput> | Prisma.OfferLetterCreateWithoutSentByInput[] | Prisma.OfferLetterUncheckedCreateWithoutSentByInput[];
700
+ connectOrCreate?: Prisma.OfferLetterCreateOrConnectWithoutSentByInput | Prisma.OfferLetterCreateOrConnectWithoutSentByInput[];
701
+ createMany?: Prisma.OfferLetterCreateManySentByInputEnvelope;
702
+ connect?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
703
+ };
704
+ export type OfferLetterUpdateManyWithoutGeneratedByNestedInput = {
705
+ create?: Prisma.XOR<Prisma.OfferLetterCreateWithoutGeneratedByInput, Prisma.OfferLetterUncheckedCreateWithoutGeneratedByInput> | Prisma.OfferLetterCreateWithoutGeneratedByInput[] | Prisma.OfferLetterUncheckedCreateWithoutGeneratedByInput[];
706
+ connectOrCreate?: Prisma.OfferLetterCreateOrConnectWithoutGeneratedByInput | Prisma.OfferLetterCreateOrConnectWithoutGeneratedByInput[];
707
+ upsert?: Prisma.OfferLetterUpsertWithWhereUniqueWithoutGeneratedByInput | Prisma.OfferLetterUpsertWithWhereUniqueWithoutGeneratedByInput[];
708
+ createMany?: Prisma.OfferLetterCreateManyGeneratedByInputEnvelope;
709
+ set?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
710
+ disconnect?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
711
+ delete?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
712
+ connect?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
713
+ update?: Prisma.OfferLetterUpdateWithWhereUniqueWithoutGeneratedByInput | Prisma.OfferLetterUpdateWithWhereUniqueWithoutGeneratedByInput[];
714
+ updateMany?: Prisma.OfferLetterUpdateManyWithWhereWithoutGeneratedByInput | Prisma.OfferLetterUpdateManyWithWhereWithoutGeneratedByInput[];
715
+ deleteMany?: Prisma.OfferLetterScalarWhereInput | Prisma.OfferLetterScalarWhereInput[];
716
+ };
717
+ export type OfferLetterUpdateManyWithoutSentByNestedInput = {
718
+ create?: Prisma.XOR<Prisma.OfferLetterCreateWithoutSentByInput, Prisma.OfferLetterUncheckedCreateWithoutSentByInput> | Prisma.OfferLetterCreateWithoutSentByInput[] | Prisma.OfferLetterUncheckedCreateWithoutSentByInput[];
719
+ connectOrCreate?: Prisma.OfferLetterCreateOrConnectWithoutSentByInput | Prisma.OfferLetterCreateOrConnectWithoutSentByInput[];
720
+ upsert?: Prisma.OfferLetterUpsertWithWhereUniqueWithoutSentByInput | Prisma.OfferLetterUpsertWithWhereUniqueWithoutSentByInput[];
721
+ createMany?: Prisma.OfferLetterCreateManySentByInputEnvelope;
722
+ set?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
723
+ disconnect?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
724
+ delete?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
725
+ connect?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
726
+ update?: Prisma.OfferLetterUpdateWithWhereUniqueWithoutSentByInput | Prisma.OfferLetterUpdateWithWhereUniqueWithoutSentByInput[];
727
+ updateMany?: Prisma.OfferLetterUpdateManyWithWhereWithoutSentByInput | Prisma.OfferLetterUpdateManyWithWhereWithoutSentByInput[];
728
+ deleteMany?: Prisma.OfferLetterScalarWhereInput | Prisma.OfferLetterScalarWhereInput[];
729
+ };
730
+ export type OfferLetterUncheckedUpdateManyWithoutGeneratedByNestedInput = {
731
+ create?: Prisma.XOR<Prisma.OfferLetterCreateWithoutGeneratedByInput, Prisma.OfferLetterUncheckedCreateWithoutGeneratedByInput> | Prisma.OfferLetterCreateWithoutGeneratedByInput[] | Prisma.OfferLetterUncheckedCreateWithoutGeneratedByInput[];
732
+ connectOrCreate?: Prisma.OfferLetterCreateOrConnectWithoutGeneratedByInput | Prisma.OfferLetterCreateOrConnectWithoutGeneratedByInput[];
733
+ upsert?: Prisma.OfferLetterUpsertWithWhereUniqueWithoutGeneratedByInput | Prisma.OfferLetterUpsertWithWhereUniqueWithoutGeneratedByInput[];
734
+ createMany?: Prisma.OfferLetterCreateManyGeneratedByInputEnvelope;
735
+ set?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
736
+ disconnect?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
737
+ delete?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
738
+ connect?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
739
+ update?: Prisma.OfferLetterUpdateWithWhereUniqueWithoutGeneratedByInput | Prisma.OfferLetterUpdateWithWhereUniqueWithoutGeneratedByInput[];
740
+ updateMany?: Prisma.OfferLetterUpdateManyWithWhereWithoutGeneratedByInput | Prisma.OfferLetterUpdateManyWithWhereWithoutGeneratedByInput[];
741
+ deleteMany?: Prisma.OfferLetterScalarWhereInput | Prisma.OfferLetterScalarWhereInput[];
742
+ };
743
+ export type OfferLetterUncheckedUpdateManyWithoutSentByNestedInput = {
744
+ create?: Prisma.XOR<Prisma.OfferLetterCreateWithoutSentByInput, Prisma.OfferLetterUncheckedCreateWithoutSentByInput> | Prisma.OfferLetterCreateWithoutSentByInput[] | Prisma.OfferLetterUncheckedCreateWithoutSentByInput[];
745
+ connectOrCreate?: Prisma.OfferLetterCreateOrConnectWithoutSentByInput | Prisma.OfferLetterCreateOrConnectWithoutSentByInput[];
746
+ upsert?: Prisma.OfferLetterUpsertWithWhereUniqueWithoutSentByInput | Prisma.OfferLetterUpsertWithWhereUniqueWithoutSentByInput[];
747
+ createMany?: Prisma.OfferLetterCreateManySentByInputEnvelope;
748
+ set?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
749
+ disconnect?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
750
+ delete?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
751
+ connect?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
752
+ update?: Prisma.OfferLetterUpdateWithWhereUniqueWithoutSentByInput | Prisma.OfferLetterUpdateWithWhereUniqueWithoutSentByInput[];
753
+ updateMany?: Prisma.OfferLetterUpdateManyWithWhereWithoutSentByInput | Prisma.OfferLetterUpdateManyWithWhereWithoutSentByInput[];
754
+ deleteMany?: Prisma.OfferLetterScalarWhereInput | Prisma.OfferLetterScalarWhereInput[];
755
+ };
756
+ export type OfferLetterCreateNestedManyWithoutTenantInput = {
757
+ create?: Prisma.XOR<Prisma.OfferLetterCreateWithoutTenantInput, Prisma.OfferLetterUncheckedCreateWithoutTenantInput> | Prisma.OfferLetterCreateWithoutTenantInput[] | Prisma.OfferLetterUncheckedCreateWithoutTenantInput[];
758
+ connectOrCreate?: Prisma.OfferLetterCreateOrConnectWithoutTenantInput | Prisma.OfferLetterCreateOrConnectWithoutTenantInput[];
759
+ createMany?: Prisma.OfferLetterCreateManyTenantInputEnvelope;
760
+ connect?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
761
+ };
762
+ export type OfferLetterUncheckedCreateNestedManyWithoutTenantInput = {
763
+ create?: Prisma.XOR<Prisma.OfferLetterCreateWithoutTenantInput, Prisma.OfferLetterUncheckedCreateWithoutTenantInput> | Prisma.OfferLetterCreateWithoutTenantInput[] | Prisma.OfferLetterUncheckedCreateWithoutTenantInput[];
764
+ connectOrCreate?: Prisma.OfferLetterCreateOrConnectWithoutTenantInput | Prisma.OfferLetterCreateOrConnectWithoutTenantInput[];
765
+ createMany?: Prisma.OfferLetterCreateManyTenantInputEnvelope;
766
+ connect?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
767
+ };
768
+ export type OfferLetterUpdateManyWithoutTenantNestedInput = {
769
+ create?: Prisma.XOR<Prisma.OfferLetterCreateWithoutTenantInput, Prisma.OfferLetterUncheckedCreateWithoutTenantInput> | Prisma.OfferLetterCreateWithoutTenantInput[] | Prisma.OfferLetterUncheckedCreateWithoutTenantInput[];
770
+ connectOrCreate?: Prisma.OfferLetterCreateOrConnectWithoutTenantInput | Prisma.OfferLetterCreateOrConnectWithoutTenantInput[];
771
+ upsert?: Prisma.OfferLetterUpsertWithWhereUniqueWithoutTenantInput | Prisma.OfferLetterUpsertWithWhereUniqueWithoutTenantInput[];
772
+ createMany?: Prisma.OfferLetterCreateManyTenantInputEnvelope;
773
+ set?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
774
+ disconnect?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
775
+ delete?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
776
+ connect?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
777
+ update?: Prisma.OfferLetterUpdateWithWhereUniqueWithoutTenantInput | Prisma.OfferLetterUpdateWithWhereUniqueWithoutTenantInput[];
778
+ updateMany?: Prisma.OfferLetterUpdateManyWithWhereWithoutTenantInput | Prisma.OfferLetterUpdateManyWithWhereWithoutTenantInput[];
779
+ deleteMany?: Prisma.OfferLetterScalarWhereInput | Prisma.OfferLetterScalarWhereInput[];
780
+ };
781
+ export type OfferLetterUncheckedUpdateManyWithoutTenantNestedInput = {
782
+ create?: Prisma.XOR<Prisma.OfferLetterCreateWithoutTenantInput, Prisma.OfferLetterUncheckedCreateWithoutTenantInput> | Prisma.OfferLetterCreateWithoutTenantInput[] | Prisma.OfferLetterUncheckedCreateWithoutTenantInput[];
783
+ connectOrCreate?: Prisma.OfferLetterCreateOrConnectWithoutTenantInput | Prisma.OfferLetterCreateOrConnectWithoutTenantInput[];
784
+ upsert?: Prisma.OfferLetterUpsertWithWhereUniqueWithoutTenantInput | Prisma.OfferLetterUpsertWithWhereUniqueWithoutTenantInput[];
785
+ createMany?: Prisma.OfferLetterCreateManyTenantInputEnvelope;
786
+ set?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
787
+ disconnect?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
788
+ delete?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
789
+ connect?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
790
+ update?: Prisma.OfferLetterUpdateWithWhereUniqueWithoutTenantInput | Prisma.OfferLetterUpdateWithWhereUniqueWithoutTenantInput[];
791
+ updateMany?: Prisma.OfferLetterUpdateManyWithWhereWithoutTenantInput | Prisma.OfferLetterUpdateManyWithWhereWithoutTenantInput[];
792
+ deleteMany?: Prisma.OfferLetterScalarWhereInput | Prisma.OfferLetterScalarWhereInput[];
793
+ };
794
+ export type OfferLetterCreateNestedManyWithoutContractInput = {
795
+ create?: Prisma.XOR<Prisma.OfferLetterCreateWithoutContractInput, Prisma.OfferLetterUncheckedCreateWithoutContractInput> | Prisma.OfferLetterCreateWithoutContractInput[] | Prisma.OfferLetterUncheckedCreateWithoutContractInput[];
796
+ connectOrCreate?: Prisma.OfferLetterCreateOrConnectWithoutContractInput | Prisma.OfferLetterCreateOrConnectWithoutContractInput[];
797
+ createMany?: Prisma.OfferLetterCreateManyContractInputEnvelope;
798
+ connect?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
799
+ };
800
+ export type OfferLetterUncheckedCreateNestedManyWithoutContractInput = {
801
+ create?: Prisma.XOR<Prisma.OfferLetterCreateWithoutContractInput, Prisma.OfferLetterUncheckedCreateWithoutContractInput> | Prisma.OfferLetterCreateWithoutContractInput[] | Prisma.OfferLetterUncheckedCreateWithoutContractInput[];
802
+ connectOrCreate?: Prisma.OfferLetterCreateOrConnectWithoutContractInput | Prisma.OfferLetterCreateOrConnectWithoutContractInput[];
803
+ createMany?: Prisma.OfferLetterCreateManyContractInputEnvelope;
804
+ connect?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
805
+ };
806
+ export type OfferLetterUpdateManyWithoutContractNestedInput = {
807
+ create?: Prisma.XOR<Prisma.OfferLetterCreateWithoutContractInput, Prisma.OfferLetterUncheckedCreateWithoutContractInput> | Prisma.OfferLetterCreateWithoutContractInput[] | Prisma.OfferLetterUncheckedCreateWithoutContractInput[];
808
+ connectOrCreate?: Prisma.OfferLetterCreateOrConnectWithoutContractInput | Prisma.OfferLetterCreateOrConnectWithoutContractInput[];
809
+ upsert?: Prisma.OfferLetterUpsertWithWhereUniqueWithoutContractInput | Prisma.OfferLetterUpsertWithWhereUniqueWithoutContractInput[];
810
+ createMany?: Prisma.OfferLetterCreateManyContractInputEnvelope;
811
+ set?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
812
+ disconnect?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
813
+ delete?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
814
+ connect?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
815
+ update?: Prisma.OfferLetterUpdateWithWhereUniqueWithoutContractInput | Prisma.OfferLetterUpdateWithWhereUniqueWithoutContractInput[];
816
+ updateMany?: Prisma.OfferLetterUpdateManyWithWhereWithoutContractInput | Prisma.OfferLetterUpdateManyWithWhereWithoutContractInput[];
817
+ deleteMany?: Prisma.OfferLetterScalarWhereInput | Prisma.OfferLetterScalarWhereInput[];
818
+ };
819
+ export type OfferLetterUncheckedUpdateManyWithoutContractNestedInput = {
820
+ create?: Prisma.XOR<Prisma.OfferLetterCreateWithoutContractInput, Prisma.OfferLetterUncheckedCreateWithoutContractInput> | Prisma.OfferLetterCreateWithoutContractInput[] | Prisma.OfferLetterUncheckedCreateWithoutContractInput[];
821
+ connectOrCreate?: Prisma.OfferLetterCreateOrConnectWithoutContractInput | Prisma.OfferLetterCreateOrConnectWithoutContractInput[];
822
+ upsert?: Prisma.OfferLetterUpsertWithWhereUniqueWithoutContractInput | Prisma.OfferLetterUpsertWithWhereUniqueWithoutContractInput[];
823
+ createMany?: Prisma.OfferLetterCreateManyContractInputEnvelope;
824
+ set?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
825
+ disconnect?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
826
+ delete?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
827
+ connect?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
828
+ update?: Prisma.OfferLetterUpdateWithWhereUniqueWithoutContractInput | Prisma.OfferLetterUpdateWithWhereUniqueWithoutContractInput[];
829
+ updateMany?: Prisma.OfferLetterUpdateManyWithWhereWithoutContractInput | Prisma.OfferLetterUpdateManyWithWhereWithoutContractInput[];
830
+ deleteMany?: Prisma.OfferLetterScalarWhereInput | Prisma.OfferLetterScalarWhereInput[];
831
+ };
832
+ export type OfferLetterCreateNestedManyWithoutTemplateInput = {
833
+ create?: Prisma.XOR<Prisma.OfferLetterCreateWithoutTemplateInput, Prisma.OfferLetterUncheckedCreateWithoutTemplateInput> | Prisma.OfferLetterCreateWithoutTemplateInput[] | Prisma.OfferLetterUncheckedCreateWithoutTemplateInput[];
834
+ connectOrCreate?: Prisma.OfferLetterCreateOrConnectWithoutTemplateInput | Prisma.OfferLetterCreateOrConnectWithoutTemplateInput[];
835
+ createMany?: Prisma.OfferLetterCreateManyTemplateInputEnvelope;
836
+ connect?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
837
+ };
838
+ export type OfferLetterUncheckedCreateNestedManyWithoutTemplateInput = {
839
+ create?: Prisma.XOR<Prisma.OfferLetterCreateWithoutTemplateInput, Prisma.OfferLetterUncheckedCreateWithoutTemplateInput> | Prisma.OfferLetterCreateWithoutTemplateInput[] | Prisma.OfferLetterUncheckedCreateWithoutTemplateInput[];
840
+ connectOrCreate?: Prisma.OfferLetterCreateOrConnectWithoutTemplateInput | Prisma.OfferLetterCreateOrConnectWithoutTemplateInput[];
841
+ createMany?: Prisma.OfferLetterCreateManyTemplateInputEnvelope;
842
+ connect?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
843
+ };
844
+ export type OfferLetterUpdateManyWithoutTemplateNestedInput = {
845
+ create?: Prisma.XOR<Prisma.OfferLetterCreateWithoutTemplateInput, Prisma.OfferLetterUncheckedCreateWithoutTemplateInput> | Prisma.OfferLetterCreateWithoutTemplateInput[] | Prisma.OfferLetterUncheckedCreateWithoutTemplateInput[];
846
+ connectOrCreate?: Prisma.OfferLetterCreateOrConnectWithoutTemplateInput | Prisma.OfferLetterCreateOrConnectWithoutTemplateInput[];
847
+ upsert?: Prisma.OfferLetterUpsertWithWhereUniqueWithoutTemplateInput | Prisma.OfferLetterUpsertWithWhereUniqueWithoutTemplateInput[];
848
+ createMany?: Prisma.OfferLetterCreateManyTemplateInputEnvelope;
849
+ set?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
850
+ disconnect?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
851
+ delete?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
852
+ connect?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
853
+ update?: Prisma.OfferLetterUpdateWithWhereUniqueWithoutTemplateInput | Prisma.OfferLetterUpdateWithWhereUniqueWithoutTemplateInput[];
854
+ updateMany?: Prisma.OfferLetterUpdateManyWithWhereWithoutTemplateInput | Prisma.OfferLetterUpdateManyWithWhereWithoutTemplateInput[];
855
+ deleteMany?: Prisma.OfferLetterScalarWhereInput | Prisma.OfferLetterScalarWhereInput[];
856
+ };
857
+ export type OfferLetterUncheckedUpdateManyWithoutTemplateNestedInput = {
858
+ create?: Prisma.XOR<Prisma.OfferLetterCreateWithoutTemplateInput, Prisma.OfferLetterUncheckedCreateWithoutTemplateInput> | Prisma.OfferLetterCreateWithoutTemplateInput[] | Prisma.OfferLetterUncheckedCreateWithoutTemplateInput[];
859
+ connectOrCreate?: Prisma.OfferLetterCreateOrConnectWithoutTemplateInput | Prisma.OfferLetterCreateOrConnectWithoutTemplateInput[];
860
+ upsert?: Prisma.OfferLetterUpsertWithWhereUniqueWithoutTemplateInput | Prisma.OfferLetterUpsertWithWhereUniqueWithoutTemplateInput[];
861
+ createMany?: Prisma.OfferLetterCreateManyTemplateInputEnvelope;
862
+ set?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
863
+ disconnect?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
864
+ delete?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
865
+ connect?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
866
+ update?: Prisma.OfferLetterUpdateWithWhereUniqueWithoutTemplateInput | Prisma.OfferLetterUpdateWithWhereUniqueWithoutTemplateInput[];
867
+ updateMany?: Prisma.OfferLetterUpdateManyWithWhereWithoutTemplateInput | Prisma.OfferLetterUpdateManyWithWhereWithoutTemplateInput[];
868
+ deleteMany?: Prisma.OfferLetterScalarWhereInput | Prisma.OfferLetterScalarWhereInput[];
869
+ };
870
+ export type EnumOfferLetterTypeFieldUpdateOperationsInput = {
871
+ set?: $Enums.OfferLetterType;
872
+ };
873
+ export type EnumOfferLetterStatusFieldUpdateOperationsInput = {
874
+ set?: $Enums.OfferLetterStatus;
875
+ };
876
+ export type OfferLetterCreateWithoutGeneratedByInput = {
877
+ id?: string;
878
+ letterNumber: string;
879
+ type: $Enums.OfferLetterType;
880
+ status?: $Enums.OfferLetterStatus;
881
+ htmlContent?: string | null;
882
+ pdfUrl?: string | null;
883
+ pdfKey?: string | null;
884
+ mergeData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
885
+ sentAt?: Date | string | null;
886
+ viewedAt?: Date | string | null;
887
+ signedAt?: Date | string | null;
888
+ signatureIp?: string | null;
889
+ signatureData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
890
+ expiresAt?: Date | string | null;
891
+ expiredAt?: Date | string | null;
892
+ cancelledAt?: Date | string | null;
893
+ cancelReason?: string | null;
894
+ createdAt?: Date | string;
895
+ updatedAt?: Date | string;
896
+ tenant: Prisma.TenantCreateNestedOneWithoutOfferLettersInput;
897
+ contract: Prisma.ContractCreateNestedOneWithoutOfferLettersInput;
898
+ template: Prisma.DocumentTemplateCreateNestedOneWithoutOfferLettersInput;
899
+ sentBy?: Prisma.UserCreateNestedOneWithoutOfferLettersSentInput;
900
+ };
901
+ export type OfferLetterUncheckedCreateWithoutGeneratedByInput = {
902
+ id?: string;
903
+ tenantId: string;
904
+ contractId: string;
905
+ templateId: string;
906
+ letterNumber: string;
907
+ type: $Enums.OfferLetterType;
908
+ status?: $Enums.OfferLetterStatus;
909
+ htmlContent?: string | null;
910
+ pdfUrl?: string | null;
911
+ pdfKey?: string | null;
912
+ mergeData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
913
+ sentAt?: Date | string | null;
914
+ viewedAt?: Date | string | null;
915
+ signedAt?: Date | string | null;
916
+ signatureIp?: string | null;
917
+ signatureData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
918
+ expiresAt?: Date | string | null;
919
+ expiredAt?: Date | string | null;
920
+ cancelledAt?: Date | string | null;
921
+ cancelReason?: string | null;
922
+ sentById?: string | null;
923
+ createdAt?: Date | string;
924
+ updatedAt?: Date | string;
925
+ };
926
+ export type OfferLetterCreateOrConnectWithoutGeneratedByInput = {
927
+ where: Prisma.OfferLetterWhereUniqueInput;
928
+ create: Prisma.XOR<Prisma.OfferLetterCreateWithoutGeneratedByInput, Prisma.OfferLetterUncheckedCreateWithoutGeneratedByInput>;
929
+ };
930
+ export type OfferLetterCreateManyGeneratedByInputEnvelope = {
931
+ data: Prisma.OfferLetterCreateManyGeneratedByInput | Prisma.OfferLetterCreateManyGeneratedByInput[];
932
+ skipDuplicates?: boolean;
933
+ };
934
+ export type OfferLetterCreateWithoutSentByInput = {
935
+ id?: string;
936
+ letterNumber: string;
937
+ type: $Enums.OfferLetterType;
938
+ status?: $Enums.OfferLetterStatus;
939
+ htmlContent?: string | null;
940
+ pdfUrl?: string | null;
941
+ pdfKey?: string | null;
942
+ mergeData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
943
+ sentAt?: Date | string | null;
944
+ viewedAt?: Date | string | null;
945
+ signedAt?: Date | string | null;
946
+ signatureIp?: string | null;
947
+ signatureData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
948
+ expiresAt?: Date | string | null;
949
+ expiredAt?: Date | string | null;
950
+ cancelledAt?: Date | string | null;
951
+ cancelReason?: string | null;
952
+ createdAt?: Date | string;
953
+ updatedAt?: Date | string;
954
+ tenant: Prisma.TenantCreateNestedOneWithoutOfferLettersInput;
955
+ contract: Prisma.ContractCreateNestedOneWithoutOfferLettersInput;
956
+ template: Prisma.DocumentTemplateCreateNestedOneWithoutOfferLettersInput;
957
+ generatedBy?: Prisma.UserCreateNestedOneWithoutOfferLettersGeneratedInput;
958
+ };
959
+ export type OfferLetterUncheckedCreateWithoutSentByInput = {
960
+ id?: string;
961
+ tenantId: string;
962
+ contractId: string;
963
+ templateId: string;
964
+ letterNumber: string;
965
+ type: $Enums.OfferLetterType;
966
+ status?: $Enums.OfferLetterStatus;
967
+ htmlContent?: string | null;
968
+ pdfUrl?: string | null;
969
+ pdfKey?: string | null;
970
+ mergeData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
971
+ sentAt?: Date | string | null;
972
+ viewedAt?: Date | string | null;
973
+ signedAt?: Date | string | null;
974
+ signatureIp?: string | null;
975
+ signatureData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
976
+ expiresAt?: Date | string | null;
977
+ expiredAt?: Date | string | null;
978
+ cancelledAt?: Date | string | null;
979
+ cancelReason?: string | null;
980
+ generatedById?: string | null;
981
+ createdAt?: Date | string;
982
+ updatedAt?: Date | string;
983
+ };
984
+ export type OfferLetterCreateOrConnectWithoutSentByInput = {
985
+ where: Prisma.OfferLetterWhereUniqueInput;
986
+ create: Prisma.XOR<Prisma.OfferLetterCreateWithoutSentByInput, Prisma.OfferLetterUncheckedCreateWithoutSentByInput>;
987
+ };
988
+ export type OfferLetterCreateManySentByInputEnvelope = {
989
+ data: Prisma.OfferLetterCreateManySentByInput | Prisma.OfferLetterCreateManySentByInput[];
990
+ skipDuplicates?: boolean;
991
+ };
992
+ export type OfferLetterUpsertWithWhereUniqueWithoutGeneratedByInput = {
993
+ where: Prisma.OfferLetterWhereUniqueInput;
994
+ update: Prisma.XOR<Prisma.OfferLetterUpdateWithoutGeneratedByInput, Prisma.OfferLetterUncheckedUpdateWithoutGeneratedByInput>;
995
+ create: Prisma.XOR<Prisma.OfferLetterCreateWithoutGeneratedByInput, Prisma.OfferLetterUncheckedCreateWithoutGeneratedByInput>;
996
+ };
997
+ export type OfferLetterUpdateWithWhereUniqueWithoutGeneratedByInput = {
998
+ where: Prisma.OfferLetterWhereUniqueInput;
999
+ data: Prisma.XOR<Prisma.OfferLetterUpdateWithoutGeneratedByInput, Prisma.OfferLetterUncheckedUpdateWithoutGeneratedByInput>;
1000
+ };
1001
+ export type OfferLetterUpdateManyWithWhereWithoutGeneratedByInput = {
1002
+ where: Prisma.OfferLetterScalarWhereInput;
1003
+ data: Prisma.XOR<Prisma.OfferLetterUpdateManyMutationInput, Prisma.OfferLetterUncheckedUpdateManyWithoutGeneratedByInput>;
1004
+ };
1005
+ export type OfferLetterScalarWhereInput = {
1006
+ AND?: Prisma.OfferLetterScalarWhereInput | Prisma.OfferLetterScalarWhereInput[];
1007
+ OR?: Prisma.OfferLetterScalarWhereInput[];
1008
+ NOT?: Prisma.OfferLetterScalarWhereInput | Prisma.OfferLetterScalarWhereInput[];
1009
+ id?: Prisma.StringFilter<"OfferLetter"> | string;
1010
+ tenantId?: Prisma.StringFilter<"OfferLetter"> | string;
1011
+ contractId?: Prisma.StringFilter<"OfferLetter"> | string;
1012
+ templateId?: Prisma.StringFilter<"OfferLetter"> | string;
1013
+ letterNumber?: Prisma.StringFilter<"OfferLetter"> | string;
1014
+ type?: Prisma.EnumOfferLetterTypeFilter<"OfferLetter"> | $Enums.OfferLetterType;
1015
+ status?: Prisma.EnumOfferLetterStatusFilter<"OfferLetter"> | $Enums.OfferLetterStatus;
1016
+ htmlContent?: Prisma.StringNullableFilter<"OfferLetter"> | string | null;
1017
+ pdfUrl?: Prisma.StringNullableFilter<"OfferLetter"> | string | null;
1018
+ pdfKey?: Prisma.StringNullableFilter<"OfferLetter"> | string | null;
1019
+ mergeData?: Prisma.JsonNullableFilter<"OfferLetter">;
1020
+ sentAt?: Prisma.DateTimeNullableFilter<"OfferLetter"> | Date | string | null;
1021
+ viewedAt?: Prisma.DateTimeNullableFilter<"OfferLetter"> | Date | string | null;
1022
+ signedAt?: Prisma.DateTimeNullableFilter<"OfferLetter"> | Date | string | null;
1023
+ signatureIp?: Prisma.StringNullableFilter<"OfferLetter"> | string | null;
1024
+ signatureData?: Prisma.JsonNullableFilter<"OfferLetter">;
1025
+ expiresAt?: Prisma.DateTimeNullableFilter<"OfferLetter"> | Date | string | null;
1026
+ expiredAt?: Prisma.DateTimeNullableFilter<"OfferLetter"> | Date | string | null;
1027
+ cancelledAt?: Prisma.DateTimeNullableFilter<"OfferLetter"> | Date | string | null;
1028
+ cancelReason?: Prisma.StringNullableFilter<"OfferLetter"> | string | null;
1029
+ generatedById?: Prisma.StringNullableFilter<"OfferLetter"> | string | null;
1030
+ sentById?: Prisma.StringNullableFilter<"OfferLetter"> | string | null;
1031
+ createdAt?: Prisma.DateTimeFilter<"OfferLetter"> | Date | string;
1032
+ updatedAt?: Prisma.DateTimeFilter<"OfferLetter"> | Date | string;
1033
+ };
1034
+ export type OfferLetterUpsertWithWhereUniqueWithoutSentByInput = {
1035
+ where: Prisma.OfferLetterWhereUniqueInput;
1036
+ update: Prisma.XOR<Prisma.OfferLetterUpdateWithoutSentByInput, Prisma.OfferLetterUncheckedUpdateWithoutSentByInput>;
1037
+ create: Prisma.XOR<Prisma.OfferLetterCreateWithoutSentByInput, Prisma.OfferLetterUncheckedCreateWithoutSentByInput>;
1038
+ };
1039
+ export type OfferLetterUpdateWithWhereUniqueWithoutSentByInput = {
1040
+ where: Prisma.OfferLetterWhereUniqueInput;
1041
+ data: Prisma.XOR<Prisma.OfferLetterUpdateWithoutSentByInput, Prisma.OfferLetterUncheckedUpdateWithoutSentByInput>;
1042
+ };
1043
+ export type OfferLetterUpdateManyWithWhereWithoutSentByInput = {
1044
+ where: Prisma.OfferLetterScalarWhereInput;
1045
+ data: Prisma.XOR<Prisma.OfferLetterUpdateManyMutationInput, Prisma.OfferLetterUncheckedUpdateManyWithoutSentByInput>;
1046
+ };
1047
+ export type OfferLetterCreateWithoutTenantInput = {
1048
+ id?: string;
1049
+ letterNumber: string;
1050
+ type: $Enums.OfferLetterType;
1051
+ status?: $Enums.OfferLetterStatus;
1052
+ htmlContent?: string | null;
1053
+ pdfUrl?: string | null;
1054
+ pdfKey?: string | null;
1055
+ mergeData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1056
+ sentAt?: Date | string | null;
1057
+ viewedAt?: Date | string | null;
1058
+ signedAt?: Date | string | null;
1059
+ signatureIp?: string | null;
1060
+ signatureData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1061
+ expiresAt?: Date | string | null;
1062
+ expiredAt?: Date | string | null;
1063
+ cancelledAt?: Date | string | null;
1064
+ cancelReason?: string | null;
1065
+ createdAt?: Date | string;
1066
+ updatedAt?: Date | string;
1067
+ contract: Prisma.ContractCreateNestedOneWithoutOfferLettersInput;
1068
+ template: Prisma.DocumentTemplateCreateNestedOneWithoutOfferLettersInput;
1069
+ generatedBy?: Prisma.UserCreateNestedOneWithoutOfferLettersGeneratedInput;
1070
+ sentBy?: Prisma.UserCreateNestedOneWithoutOfferLettersSentInput;
1071
+ };
1072
+ export type OfferLetterUncheckedCreateWithoutTenantInput = {
1073
+ id?: string;
1074
+ contractId: string;
1075
+ templateId: string;
1076
+ letterNumber: string;
1077
+ type: $Enums.OfferLetterType;
1078
+ status?: $Enums.OfferLetterStatus;
1079
+ htmlContent?: string | null;
1080
+ pdfUrl?: string | null;
1081
+ pdfKey?: string | null;
1082
+ mergeData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1083
+ sentAt?: Date | string | null;
1084
+ viewedAt?: Date | string | null;
1085
+ signedAt?: Date | string | null;
1086
+ signatureIp?: string | null;
1087
+ signatureData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1088
+ expiresAt?: Date | string | null;
1089
+ expiredAt?: Date | string | null;
1090
+ cancelledAt?: Date | string | null;
1091
+ cancelReason?: string | null;
1092
+ generatedById?: string | null;
1093
+ sentById?: string | null;
1094
+ createdAt?: Date | string;
1095
+ updatedAt?: Date | string;
1096
+ };
1097
+ export type OfferLetterCreateOrConnectWithoutTenantInput = {
1098
+ where: Prisma.OfferLetterWhereUniqueInput;
1099
+ create: Prisma.XOR<Prisma.OfferLetterCreateWithoutTenantInput, Prisma.OfferLetterUncheckedCreateWithoutTenantInput>;
1100
+ };
1101
+ export type OfferLetterCreateManyTenantInputEnvelope = {
1102
+ data: Prisma.OfferLetterCreateManyTenantInput | Prisma.OfferLetterCreateManyTenantInput[];
1103
+ skipDuplicates?: boolean;
1104
+ };
1105
+ export type OfferLetterUpsertWithWhereUniqueWithoutTenantInput = {
1106
+ where: Prisma.OfferLetterWhereUniqueInput;
1107
+ update: Prisma.XOR<Prisma.OfferLetterUpdateWithoutTenantInput, Prisma.OfferLetterUncheckedUpdateWithoutTenantInput>;
1108
+ create: Prisma.XOR<Prisma.OfferLetterCreateWithoutTenantInput, Prisma.OfferLetterUncheckedCreateWithoutTenantInput>;
1109
+ };
1110
+ export type OfferLetterUpdateWithWhereUniqueWithoutTenantInput = {
1111
+ where: Prisma.OfferLetterWhereUniqueInput;
1112
+ data: Prisma.XOR<Prisma.OfferLetterUpdateWithoutTenantInput, Prisma.OfferLetterUncheckedUpdateWithoutTenantInput>;
1113
+ };
1114
+ export type OfferLetterUpdateManyWithWhereWithoutTenantInput = {
1115
+ where: Prisma.OfferLetterScalarWhereInput;
1116
+ data: Prisma.XOR<Prisma.OfferLetterUpdateManyMutationInput, Prisma.OfferLetterUncheckedUpdateManyWithoutTenantInput>;
1117
+ };
1118
+ export type OfferLetterCreateWithoutContractInput = {
1119
+ id?: string;
1120
+ letterNumber: string;
1121
+ type: $Enums.OfferLetterType;
1122
+ status?: $Enums.OfferLetterStatus;
1123
+ htmlContent?: string | null;
1124
+ pdfUrl?: string | null;
1125
+ pdfKey?: string | null;
1126
+ mergeData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1127
+ sentAt?: Date | string | null;
1128
+ viewedAt?: Date | string | null;
1129
+ signedAt?: Date | string | null;
1130
+ signatureIp?: string | null;
1131
+ signatureData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1132
+ expiresAt?: Date | string | null;
1133
+ expiredAt?: Date | string | null;
1134
+ cancelledAt?: Date | string | null;
1135
+ cancelReason?: string | null;
1136
+ createdAt?: Date | string;
1137
+ updatedAt?: Date | string;
1138
+ tenant: Prisma.TenantCreateNestedOneWithoutOfferLettersInput;
1139
+ template: Prisma.DocumentTemplateCreateNestedOneWithoutOfferLettersInput;
1140
+ generatedBy?: Prisma.UserCreateNestedOneWithoutOfferLettersGeneratedInput;
1141
+ sentBy?: Prisma.UserCreateNestedOneWithoutOfferLettersSentInput;
1142
+ };
1143
+ export type OfferLetterUncheckedCreateWithoutContractInput = {
1144
+ id?: string;
1145
+ tenantId: string;
1146
+ templateId: string;
1147
+ letterNumber: string;
1148
+ type: $Enums.OfferLetterType;
1149
+ status?: $Enums.OfferLetterStatus;
1150
+ htmlContent?: string | null;
1151
+ pdfUrl?: string | null;
1152
+ pdfKey?: string | null;
1153
+ mergeData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1154
+ sentAt?: Date | string | null;
1155
+ viewedAt?: Date | string | null;
1156
+ signedAt?: Date | string | null;
1157
+ signatureIp?: string | null;
1158
+ signatureData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1159
+ expiresAt?: Date | string | null;
1160
+ expiredAt?: Date | string | null;
1161
+ cancelledAt?: Date | string | null;
1162
+ cancelReason?: string | null;
1163
+ generatedById?: string | null;
1164
+ sentById?: string | null;
1165
+ createdAt?: Date | string;
1166
+ updatedAt?: Date | string;
1167
+ };
1168
+ export type OfferLetterCreateOrConnectWithoutContractInput = {
1169
+ where: Prisma.OfferLetterWhereUniqueInput;
1170
+ create: Prisma.XOR<Prisma.OfferLetterCreateWithoutContractInput, Prisma.OfferLetterUncheckedCreateWithoutContractInput>;
1171
+ };
1172
+ export type OfferLetterCreateManyContractInputEnvelope = {
1173
+ data: Prisma.OfferLetterCreateManyContractInput | Prisma.OfferLetterCreateManyContractInput[];
1174
+ skipDuplicates?: boolean;
1175
+ };
1176
+ export type OfferLetterUpsertWithWhereUniqueWithoutContractInput = {
1177
+ where: Prisma.OfferLetterWhereUniqueInput;
1178
+ update: Prisma.XOR<Prisma.OfferLetterUpdateWithoutContractInput, Prisma.OfferLetterUncheckedUpdateWithoutContractInput>;
1179
+ create: Prisma.XOR<Prisma.OfferLetterCreateWithoutContractInput, Prisma.OfferLetterUncheckedCreateWithoutContractInput>;
1180
+ };
1181
+ export type OfferLetterUpdateWithWhereUniqueWithoutContractInput = {
1182
+ where: Prisma.OfferLetterWhereUniqueInput;
1183
+ data: Prisma.XOR<Prisma.OfferLetterUpdateWithoutContractInput, Prisma.OfferLetterUncheckedUpdateWithoutContractInput>;
1184
+ };
1185
+ export type OfferLetterUpdateManyWithWhereWithoutContractInput = {
1186
+ where: Prisma.OfferLetterScalarWhereInput;
1187
+ data: Prisma.XOR<Prisma.OfferLetterUpdateManyMutationInput, Prisma.OfferLetterUncheckedUpdateManyWithoutContractInput>;
1188
+ };
1189
+ export type OfferLetterCreateWithoutTemplateInput = {
1190
+ id?: string;
1191
+ letterNumber: string;
1192
+ type: $Enums.OfferLetterType;
1193
+ status?: $Enums.OfferLetterStatus;
1194
+ htmlContent?: string | null;
1195
+ pdfUrl?: string | null;
1196
+ pdfKey?: string | null;
1197
+ mergeData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1198
+ sentAt?: Date | string | null;
1199
+ viewedAt?: Date | string | null;
1200
+ signedAt?: Date | string | null;
1201
+ signatureIp?: string | null;
1202
+ signatureData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1203
+ expiresAt?: Date | string | null;
1204
+ expiredAt?: Date | string | null;
1205
+ cancelledAt?: Date | string | null;
1206
+ cancelReason?: string | null;
1207
+ createdAt?: Date | string;
1208
+ updatedAt?: Date | string;
1209
+ tenant: Prisma.TenantCreateNestedOneWithoutOfferLettersInput;
1210
+ contract: Prisma.ContractCreateNestedOneWithoutOfferLettersInput;
1211
+ generatedBy?: Prisma.UserCreateNestedOneWithoutOfferLettersGeneratedInput;
1212
+ sentBy?: Prisma.UserCreateNestedOneWithoutOfferLettersSentInput;
1213
+ };
1214
+ export type OfferLetterUncheckedCreateWithoutTemplateInput = {
1215
+ id?: string;
1216
+ tenantId: string;
1217
+ contractId: string;
1218
+ letterNumber: string;
1219
+ type: $Enums.OfferLetterType;
1220
+ status?: $Enums.OfferLetterStatus;
1221
+ htmlContent?: string | null;
1222
+ pdfUrl?: string | null;
1223
+ pdfKey?: string | null;
1224
+ mergeData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1225
+ sentAt?: Date | string | null;
1226
+ viewedAt?: Date | string | null;
1227
+ signedAt?: Date | string | null;
1228
+ signatureIp?: string | null;
1229
+ signatureData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1230
+ expiresAt?: Date | string | null;
1231
+ expiredAt?: Date | string | null;
1232
+ cancelledAt?: Date | string | null;
1233
+ cancelReason?: string | null;
1234
+ generatedById?: string | null;
1235
+ sentById?: string | null;
1236
+ createdAt?: Date | string;
1237
+ updatedAt?: Date | string;
1238
+ };
1239
+ export type OfferLetterCreateOrConnectWithoutTemplateInput = {
1240
+ where: Prisma.OfferLetterWhereUniqueInput;
1241
+ create: Prisma.XOR<Prisma.OfferLetterCreateWithoutTemplateInput, Prisma.OfferLetterUncheckedCreateWithoutTemplateInput>;
1242
+ };
1243
+ export type OfferLetterCreateManyTemplateInputEnvelope = {
1244
+ data: Prisma.OfferLetterCreateManyTemplateInput | Prisma.OfferLetterCreateManyTemplateInput[];
1245
+ skipDuplicates?: boolean;
1246
+ };
1247
+ export type OfferLetterUpsertWithWhereUniqueWithoutTemplateInput = {
1248
+ where: Prisma.OfferLetterWhereUniqueInput;
1249
+ update: Prisma.XOR<Prisma.OfferLetterUpdateWithoutTemplateInput, Prisma.OfferLetterUncheckedUpdateWithoutTemplateInput>;
1250
+ create: Prisma.XOR<Prisma.OfferLetterCreateWithoutTemplateInput, Prisma.OfferLetterUncheckedCreateWithoutTemplateInput>;
1251
+ };
1252
+ export type OfferLetterUpdateWithWhereUniqueWithoutTemplateInput = {
1253
+ where: Prisma.OfferLetterWhereUniqueInput;
1254
+ data: Prisma.XOR<Prisma.OfferLetterUpdateWithoutTemplateInput, Prisma.OfferLetterUncheckedUpdateWithoutTemplateInput>;
1255
+ };
1256
+ export type OfferLetterUpdateManyWithWhereWithoutTemplateInput = {
1257
+ where: Prisma.OfferLetterScalarWhereInput;
1258
+ data: Prisma.XOR<Prisma.OfferLetterUpdateManyMutationInput, Prisma.OfferLetterUncheckedUpdateManyWithoutTemplateInput>;
1259
+ };
1260
+ export type OfferLetterCreateManyGeneratedByInput = {
1261
+ id?: string;
1262
+ tenantId: string;
1263
+ contractId: string;
1264
+ templateId: string;
1265
+ letterNumber: string;
1266
+ type: $Enums.OfferLetterType;
1267
+ status?: $Enums.OfferLetterStatus;
1268
+ htmlContent?: string | null;
1269
+ pdfUrl?: string | null;
1270
+ pdfKey?: string | null;
1271
+ mergeData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1272
+ sentAt?: Date | string | null;
1273
+ viewedAt?: Date | string | null;
1274
+ signedAt?: Date | string | null;
1275
+ signatureIp?: string | null;
1276
+ signatureData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1277
+ expiresAt?: Date | string | null;
1278
+ expiredAt?: Date | string | null;
1279
+ cancelledAt?: Date | string | null;
1280
+ cancelReason?: string | null;
1281
+ sentById?: string | null;
1282
+ createdAt?: Date | string;
1283
+ updatedAt?: Date | string;
1284
+ };
1285
+ export type OfferLetterCreateManySentByInput = {
1286
+ id?: string;
1287
+ tenantId: string;
1288
+ contractId: string;
1289
+ templateId: string;
1290
+ letterNumber: string;
1291
+ type: $Enums.OfferLetterType;
1292
+ status?: $Enums.OfferLetterStatus;
1293
+ htmlContent?: string | null;
1294
+ pdfUrl?: string | null;
1295
+ pdfKey?: string | null;
1296
+ mergeData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1297
+ sentAt?: Date | string | null;
1298
+ viewedAt?: Date | string | null;
1299
+ signedAt?: Date | string | null;
1300
+ signatureIp?: string | null;
1301
+ signatureData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1302
+ expiresAt?: Date | string | null;
1303
+ expiredAt?: Date | string | null;
1304
+ cancelledAt?: Date | string | null;
1305
+ cancelReason?: string | null;
1306
+ generatedById?: string | null;
1307
+ createdAt?: Date | string;
1308
+ updatedAt?: Date | string;
1309
+ };
1310
+ export type OfferLetterUpdateWithoutGeneratedByInput = {
1311
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1312
+ letterNumber?: Prisma.StringFieldUpdateOperationsInput | string;
1313
+ type?: Prisma.EnumOfferLetterTypeFieldUpdateOperationsInput | $Enums.OfferLetterType;
1314
+ status?: Prisma.EnumOfferLetterStatusFieldUpdateOperationsInput | $Enums.OfferLetterStatus;
1315
+ htmlContent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1316
+ pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1317
+ pdfKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1318
+ mergeData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1319
+ sentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1320
+ viewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1321
+ signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1322
+ signatureIp?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1323
+ signatureData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1324
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1325
+ expiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1326
+ cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1327
+ cancelReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1328
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1329
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1330
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutOfferLettersNestedInput;
1331
+ contract?: Prisma.ContractUpdateOneRequiredWithoutOfferLettersNestedInput;
1332
+ template?: Prisma.DocumentTemplateUpdateOneRequiredWithoutOfferLettersNestedInput;
1333
+ sentBy?: Prisma.UserUpdateOneWithoutOfferLettersSentNestedInput;
1334
+ };
1335
+ export type OfferLetterUncheckedUpdateWithoutGeneratedByInput = {
1336
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1337
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1338
+ contractId?: Prisma.StringFieldUpdateOperationsInput | string;
1339
+ templateId?: Prisma.StringFieldUpdateOperationsInput | string;
1340
+ letterNumber?: Prisma.StringFieldUpdateOperationsInput | string;
1341
+ type?: Prisma.EnumOfferLetterTypeFieldUpdateOperationsInput | $Enums.OfferLetterType;
1342
+ status?: Prisma.EnumOfferLetterStatusFieldUpdateOperationsInput | $Enums.OfferLetterStatus;
1343
+ htmlContent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1344
+ pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1345
+ pdfKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1346
+ mergeData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1347
+ sentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1348
+ viewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1349
+ signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1350
+ signatureIp?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1351
+ signatureData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1352
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1353
+ expiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1354
+ cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1355
+ cancelReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1356
+ sentById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1357
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1358
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1359
+ };
1360
+ export type OfferLetterUncheckedUpdateManyWithoutGeneratedByInput = {
1361
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1362
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1363
+ contractId?: Prisma.StringFieldUpdateOperationsInput | string;
1364
+ templateId?: Prisma.StringFieldUpdateOperationsInput | string;
1365
+ letterNumber?: Prisma.StringFieldUpdateOperationsInput | string;
1366
+ type?: Prisma.EnumOfferLetterTypeFieldUpdateOperationsInput | $Enums.OfferLetterType;
1367
+ status?: Prisma.EnumOfferLetterStatusFieldUpdateOperationsInput | $Enums.OfferLetterStatus;
1368
+ htmlContent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1369
+ pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1370
+ pdfKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1371
+ mergeData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1372
+ sentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1373
+ viewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1374
+ signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1375
+ signatureIp?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1376
+ signatureData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1377
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1378
+ expiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1379
+ cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1380
+ cancelReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1381
+ sentById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1382
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1383
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1384
+ };
1385
+ export type OfferLetterUpdateWithoutSentByInput = {
1386
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1387
+ letterNumber?: Prisma.StringFieldUpdateOperationsInput | string;
1388
+ type?: Prisma.EnumOfferLetterTypeFieldUpdateOperationsInput | $Enums.OfferLetterType;
1389
+ status?: Prisma.EnumOfferLetterStatusFieldUpdateOperationsInput | $Enums.OfferLetterStatus;
1390
+ htmlContent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1391
+ pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1392
+ pdfKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1393
+ mergeData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1394
+ sentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1395
+ viewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1396
+ signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1397
+ signatureIp?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1398
+ signatureData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1399
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1400
+ expiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1401
+ cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1402
+ cancelReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1403
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1404
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1405
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutOfferLettersNestedInput;
1406
+ contract?: Prisma.ContractUpdateOneRequiredWithoutOfferLettersNestedInput;
1407
+ template?: Prisma.DocumentTemplateUpdateOneRequiredWithoutOfferLettersNestedInput;
1408
+ generatedBy?: Prisma.UserUpdateOneWithoutOfferLettersGeneratedNestedInput;
1409
+ };
1410
+ export type OfferLetterUncheckedUpdateWithoutSentByInput = {
1411
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1412
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1413
+ contractId?: Prisma.StringFieldUpdateOperationsInput | string;
1414
+ templateId?: Prisma.StringFieldUpdateOperationsInput | string;
1415
+ letterNumber?: Prisma.StringFieldUpdateOperationsInput | string;
1416
+ type?: Prisma.EnumOfferLetterTypeFieldUpdateOperationsInput | $Enums.OfferLetterType;
1417
+ status?: Prisma.EnumOfferLetterStatusFieldUpdateOperationsInput | $Enums.OfferLetterStatus;
1418
+ htmlContent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1419
+ pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1420
+ pdfKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1421
+ mergeData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1422
+ sentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1423
+ viewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1424
+ signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1425
+ signatureIp?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1426
+ signatureData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1427
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1428
+ expiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1429
+ cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1430
+ cancelReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1431
+ generatedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1432
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1433
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1434
+ };
1435
+ export type OfferLetterUncheckedUpdateManyWithoutSentByInput = {
1436
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1437
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1438
+ contractId?: Prisma.StringFieldUpdateOperationsInput | string;
1439
+ templateId?: Prisma.StringFieldUpdateOperationsInput | string;
1440
+ letterNumber?: Prisma.StringFieldUpdateOperationsInput | string;
1441
+ type?: Prisma.EnumOfferLetterTypeFieldUpdateOperationsInput | $Enums.OfferLetterType;
1442
+ status?: Prisma.EnumOfferLetterStatusFieldUpdateOperationsInput | $Enums.OfferLetterStatus;
1443
+ htmlContent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1444
+ pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1445
+ pdfKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1446
+ mergeData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1447
+ sentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1448
+ viewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1449
+ signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1450
+ signatureIp?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1451
+ signatureData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1452
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1453
+ expiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1454
+ cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1455
+ cancelReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1456
+ generatedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1457
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1458
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1459
+ };
1460
+ export type OfferLetterCreateManyTenantInput = {
1461
+ id?: string;
1462
+ contractId: string;
1463
+ templateId: string;
1464
+ letterNumber: string;
1465
+ type: $Enums.OfferLetterType;
1466
+ status?: $Enums.OfferLetterStatus;
1467
+ htmlContent?: string | null;
1468
+ pdfUrl?: string | null;
1469
+ pdfKey?: string | null;
1470
+ mergeData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1471
+ sentAt?: Date | string | null;
1472
+ viewedAt?: Date | string | null;
1473
+ signedAt?: Date | string | null;
1474
+ signatureIp?: string | null;
1475
+ signatureData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1476
+ expiresAt?: Date | string | null;
1477
+ expiredAt?: Date | string | null;
1478
+ cancelledAt?: Date | string | null;
1479
+ cancelReason?: string | null;
1480
+ generatedById?: string | null;
1481
+ sentById?: string | null;
1482
+ createdAt?: Date | string;
1483
+ updatedAt?: Date | string;
1484
+ };
1485
+ export type OfferLetterUpdateWithoutTenantInput = {
1486
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1487
+ letterNumber?: Prisma.StringFieldUpdateOperationsInput | string;
1488
+ type?: Prisma.EnumOfferLetterTypeFieldUpdateOperationsInput | $Enums.OfferLetterType;
1489
+ status?: Prisma.EnumOfferLetterStatusFieldUpdateOperationsInput | $Enums.OfferLetterStatus;
1490
+ htmlContent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1491
+ pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1492
+ pdfKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1493
+ mergeData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1494
+ sentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1495
+ viewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1496
+ signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1497
+ signatureIp?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1498
+ signatureData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1499
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1500
+ expiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1501
+ cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1502
+ cancelReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1503
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1504
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1505
+ contract?: Prisma.ContractUpdateOneRequiredWithoutOfferLettersNestedInput;
1506
+ template?: Prisma.DocumentTemplateUpdateOneRequiredWithoutOfferLettersNestedInput;
1507
+ generatedBy?: Prisma.UserUpdateOneWithoutOfferLettersGeneratedNestedInput;
1508
+ sentBy?: Prisma.UserUpdateOneWithoutOfferLettersSentNestedInput;
1509
+ };
1510
+ export type OfferLetterUncheckedUpdateWithoutTenantInput = {
1511
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1512
+ contractId?: Prisma.StringFieldUpdateOperationsInput | string;
1513
+ templateId?: Prisma.StringFieldUpdateOperationsInput | string;
1514
+ letterNumber?: Prisma.StringFieldUpdateOperationsInput | string;
1515
+ type?: Prisma.EnumOfferLetterTypeFieldUpdateOperationsInput | $Enums.OfferLetterType;
1516
+ status?: Prisma.EnumOfferLetterStatusFieldUpdateOperationsInput | $Enums.OfferLetterStatus;
1517
+ htmlContent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1518
+ pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1519
+ pdfKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1520
+ mergeData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1521
+ sentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1522
+ viewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1523
+ signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1524
+ signatureIp?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1525
+ signatureData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1526
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1527
+ expiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1528
+ cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1529
+ cancelReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1530
+ generatedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1531
+ sentById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1532
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1533
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1534
+ };
1535
+ export type OfferLetterUncheckedUpdateManyWithoutTenantInput = {
1536
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1537
+ contractId?: Prisma.StringFieldUpdateOperationsInput | string;
1538
+ templateId?: Prisma.StringFieldUpdateOperationsInput | string;
1539
+ letterNumber?: Prisma.StringFieldUpdateOperationsInput | string;
1540
+ type?: Prisma.EnumOfferLetterTypeFieldUpdateOperationsInput | $Enums.OfferLetterType;
1541
+ status?: Prisma.EnumOfferLetterStatusFieldUpdateOperationsInput | $Enums.OfferLetterStatus;
1542
+ htmlContent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1543
+ pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1544
+ pdfKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1545
+ mergeData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1546
+ sentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1547
+ viewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1548
+ signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1549
+ signatureIp?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1550
+ signatureData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1551
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1552
+ expiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1553
+ cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1554
+ cancelReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1555
+ generatedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1556
+ sentById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1557
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1558
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1559
+ };
1560
+ export type OfferLetterCreateManyContractInput = {
1561
+ id?: string;
1562
+ tenantId: string;
1563
+ templateId: string;
1564
+ letterNumber: string;
1565
+ type: $Enums.OfferLetterType;
1566
+ status?: $Enums.OfferLetterStatus;
1567
+ htmlContent?: string | null;
1568
+ pdfUrl?: string | null;
1569
+ pdfKey?: string | null;
1570
+ mergeData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1571
+ sentAt?: Date | string | null;
1572
+ viewedAt?: Date | string | null;
1573
+ signedAt?: Date | string | null;
1574
+ signatureIp?: string | null;
1575
+ signatureData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1576
+ expiresAt?: Date | string | null;
1577
+ expiredAt?: Date | string | null;
1578
+ cancelledAt?: Date | string | null;
1579
+ cancelReason?: string | null;
1580
+ generatedById?: string | null;
1581
+ sentById?: string | null;
1582
+ createdAt?: Date | string;
1583
+ updatedAt?: Date | string;
1584
+ };
1585
+ export type OfferLetterUpdateWithoutContractInput = {
1586
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1587
+ letterNumber?: Prisma.StringFieldUpdateOperationsInput | string;
1588
+ type?: Prisma.EnumOfferLetterTypeFieldUpdateOperationsInput | $Enums.OfferLetterType;
1589
+ status?: Prisma.EnumOfferLetterStatusFieldUpdateOperationsInput | $Enums.OfferLetterStatus;
1590
+ htmlContent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1591
+ pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1592
+ pdfKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1593
+ mergeData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1594
+ sentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1595
+ viewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1596
+ signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1597
+ signatureIp?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1598
+ signatureData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1599
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1600
+ expiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1601
+ cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1602
+ cancelReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1603
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1604
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1605
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutOfferLettersNestedInput;
1606
+ template?: Prisma.DocumentTemplateUpdateOneRequiredWithoutOfferLettersNestedInput;
1607
+ generatedBy?: Prisma.UserUpdateOneWithoutOfferLettersGeneratedNestedInput;
1608
+ sentBy?: Prisma.UserUpdateOneWithoutOfferLettersSentNestedInput;
1609
+ };
1610
+ export type OfferLetterUncheckedUpdateWithoutContractInput = {
1611
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1612
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1613
+ templateId?: Prisma.StringFieldUpdateOperationsInput | string;
1614
+ letterNumber?: Prisma.StringFieldUpdateOperationsInput | string;
1615
+ type?: Prisma.EnumOfferLetterTypeFieldUpdateOperationsInput | $Enums.OfferLetterType;
1616
+ status?: Prisma.EnumOfferLetterStatusFieldUpdateOperationsInput | $Enums.OfferLetterStatus;
1617
+ htmlContent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1618
+ pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1619
+ pdfKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1620
+ mergeData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1621
+ sentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1622
+ viewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1623
+ signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1624
+ signatureIp?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1625
+ signatureData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1626
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1627
+ expiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1628
+ cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1629
+ cancelReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1630
+ generatedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1631
+ sentById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1632
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1633
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1634
+ };
1635
+ export type OfferLetterUncheckedUpdateManyWithoutContractInput = {
1636
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1637
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1638
+ templateId?: Prisma.StringFieldUpdateOperationsInput | string;
1639
+ letterNumber?: Prisma.StringFieldUpdateOperationsInput | string;
1640
+ type?: Prisma.EnumOfferLetterTypeFieldUpdateOperationsInput | $Enums.OfferLetterType;
1641
+ status?: Prisma.EnumOfferLetterStatusFieldUpdateOperationsInput | $Enums.OfferLetterStatus;
1642
+ htmlContent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1643
+ pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1644
+ pdfKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1645
+ mergeData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1646
+ sentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1647
+ viewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1648
+ signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1649
+ signatureIp?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1650
+ signatureData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1651
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1652
+ expiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1653
+ cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1654
+ cancelReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1655
+ generatedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1656
+ sentById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1657
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1658
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1659
+ };
1660
+ export type OfferLetterCreateManyTemplateInput = {
1661
+ id?: string;
1662
+ tenantId: string;
1663
+ contractId: string;
1664
+ letterNumber: string;
1665
+ type: $Enums.OfferLetterType;
1666
+ status?: $Enums.OfferLetterStatus;
1667
+ htmlContent?: string | null;
1668
+ pdfUrl?: string | null;
1669
+ pdfKey?: string | null;
1670
+ mergeData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1671
+ sentAt?: Date | string | null;
1672
+ viewedAt?: Date | string | null;
1673
+ signedAt?: Date | string | null;
1674
+ signatureIp?: string | null;
1675
+ signatureData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1676
+ expiresAt?: Date | string | null;
1677
+ expiredAt?: Date | string | null;
1678
+ cancelledAt?: Date | string | null;
1679
+ cancelReason?: string | null;
1680
+ generatedById?: string | null;
1681
+ sentById?: string | null;
1682
+ createdAt?: Date | string;
1683
+ updatedAt?: Date | string;
1684
+ };
1685
+ export type OfferLetterUpdateWithoutTemplateInput = {
1686
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1687
+ letterNumber?: Prisma.StringFieldUpdateOperationsInput | string;
1688
+ type?: Prisma.EnumOfferLetterTypeFieldUpdateOperationsInput | $Enums.OfferLetterType;
1689
+ status?: Prisma.EnumOfferLetterStatusFieldUpdateOperationsInput | $Enums.OfferLetterStatus;
1690
+ htmlContent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1691
+ pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1692
+ pdfKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1693
+ mergeData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1694
+ sentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1695
+ viewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1696
+ signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1697
+ signatureIp?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1698
+ signatureData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1699
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1700
+ expiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1701
+ cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1702
+ cancelReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1703
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1704
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1705
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutOfferLettersNestedInput;
1706
+ contract?: Prisma.ContractUpdateOneRequiredWithoutOfferLettersNestedInput;
1707
+ generatedBy?: Prisma.UserUpdateOneWithoutOfferLettersGeneratedNestedInput;
1708
+ sentBy?: Prisma.UserUpdateOneWithoutOfferLettersSentNestedInput;
1709
+ };
1710
+ export type OfferLetterUncheckedUpdateWithoutTemplateInput = {
1711
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1712
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1713
+ contractId?: Prisma.StringFieldUpdateOperationsInput | string;
1714
+ letterNumber?: Prisma.StringFieldUpdateOperationsInput | string;
1715
+ type?: Prisma.EnumOfferLetterTypeFieldUpdateOperationsInput | $Enums.OfferLetterType;
1716
+ status?: Prisma.EnumOfferLetterStatusFieldUpdateOperationsInput | $Enums.OfferLetterStatus;
1717
+ htmlContent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1718
+ pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1719
+ pdfKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1720
+ mergeData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1721
+ sentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1722
+ viewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1723
+ signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1724
+ signatureIp?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1725
+ signatureData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1726
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1727
+ expiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1728
+ cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1729
+ cancelReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1730
+ generatedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1731
+ sentById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1732
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1733
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1734
+ };
1735
+ export type OfferLetterUncheckedUpdateManyWithoutTemplateInput = {
1736
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1737
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1738
+ contractId?: Prisma.StringFieldUpdateOperationsInput | string;
1739
+ letterNumber?: Prisma.StringFieldUpdateOperationsInput | string;
1740
+ type?: Prisma.EnumOfferLetterTypeFieldUpdateOperationsInput | $Enums.OfferLetterType;
1741
+ status?: Prisma.EnumOfferLetterStatusFieldUpdateOperationsInput | $Enums.OfferLetterStatus;
1742
+ htmlContent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1743
+ pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1744
+ pdfKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1745
+ mergeData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1746
+ sentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1747
+ viewedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1748
+ signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1749
+ signatureIp?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1750
+ signatureData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1751
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1752
+ expiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1753
+ cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1754
+ cancelReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1755
+ generatedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1756
+ sentById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1757
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1758
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1759
+ };
1760
+ export type OfferLetterSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1761
+ id?: boolean;
1762
+ tenantId?: boolean;
1763
+ contractId?: boolean;
1764
+ templateId?: boolean;
1765
+ letterNumber?: boolean;
1766
+ type?: boolean;
1767
+ status?: boolean;
1768
+ htmlContent?: boolean;
1769
+ pdfUrl?: boolean;
1770
+ pdfKey?: boolean;
1771
+ mergeData?: boolean;
1772
+ sentAt?: boolean;
1773
+ viewedAt?: boolean;
1774
+ signedAt?: boolean;
1775
+ signatureIp?: boolean;
1776
+ signatureData?: boolean;
1777
+ expiresAt?: boolean;
1778
+ expiredAt?: boolean;
1779
+ cancelledAt?: boolean;
1780
+ cancelReason?: boolean;
1781
+ generatedById?: boolean;
1782
+ sentById?: boolean;
1783
+ createdAt?: boolean;
1784
+ updatedAt?: boolean;
1785
+ tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
1786
+ contract?: boolean | Prisma.ContractDefaultArgs<ExtArgs>;
1787
+ template?: boolean | Prisma.DocumentTemplateDefaultArgs<ExtArgs>;
1788
+ generatedBy?: boolean | Prisma.OfferLetter$generatedByArgs<ExtArgs>;
1789
+ sentBy?: boolean | Prisma.OfferLetter$sentByArgs<ExtArgs>;
1790
+ }, ExtArgs["result"]["offerLetter"]>;
1791
+ export type OfferLetterSelectScalar = {
1792
+ id?: boolean;
1793
+ tenantId?: boolean;
1794
+ contractId?: boolean;
1795
+ templateId?: boolean;
1796
+ letterNumber?: boolean;
1797
+ type?: boolean;
1798
+ status?: boolean;
1799
+ htmlContent?: boolean;
1800
+ pdfUrl?: boolean;
1801
+ pdfKey?: boolean;
1802
+ mergeData?: boolean;
1803
+ sentAt?: boolean;
1804
+ viewedAt?: boolean;
1805
+ signedAt?: boolean;
1806
+ signatureIp?: boolean;
1807
+ signatureData?: boolean;
1808
+ expiresAt?: boolean;
1809
+ expiredAt?: boolean;
1810
+ cancelledAt?: boolean;
1811
+ cancelReason?: boolean;
1812
+ generatedById?: boolean;
1813
+ sentById?: boolean;
1814
+ createdAt?: boolean;
1815
+ updatedAt?: boolean;
1816
+ };
1817
+ export type OfferLetterOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "contractId" | "templateId" | "letterNumber" | "type" | "status" | "htmlContent" | "pdfUrl" | "pdfKey" | "mergeData" | "sentAt" | "viewedAt" | "signedAt" | "signatureIp" | "signatureData" | "expiresAt" | "expiredAt" | "cancelledAt" | "cancelReason" | "generatedById" | "sentById" | "createdAt" | "updatedAt", ExtArgs["result"]["offerLetter"]>;
1818
+ export type OfferLetterInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1819
+ tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
1820
+ contract?: boolean | Prisma.ContractDefaultArgs<ExtArgs>;
1821
+ template?: boolean | Prisma.DocumentTemplateDefaultArgs<ExtArgs>;
1822
+ generatedBy?: boolean | Prisma.OfferLetter$generatedByArgs<ExtArgs>;
1823
+ sentBy?: boolean | Prisma.OfferLetter$sentByArgs<ExtArgs>;
1824
+ };
1825
+ export type $OfferLetterPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1826
+ name: "OfferLetter";
1827
+ objects: {
1828
+ tenant: Prisma.$TenantPayload<ExtArgs>;
1829
+ contract: Prisma.$ContractPayload<ExtArgs>;
1830
+ template: Prisma.$DocumentTemplatePayload<ExtArgs>;
1831
+ generatedBy: Prisma.$UserPayload<ExtArgs> | null;
1832
+ sentBy: Prisma.$UserPayload<ExtArgs> | null;
1833
+ };
1834
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
1835
+ id: string;
1836
+ tenantId: string;
1837
+ contractId: string;
1838
+ templateId: string;
1839
+ letterNumber: string;
1840
+ type: $Enums.OfferLetterType;
1841
+ status: $Enums.OfferLetterStatus;
1842
+ htmlContent: string | null;
1843
+ pdfUrl: string | null;
1844
+ pdfKey: string | null;
1845
+ mergeData: runtime.JsonValue | null;
1846
+ sentAt: Date | null;
1847
+ viewedAt: Date | null;
1848
+ signedAt: Date | null;
1849
+ signatureIp: string | null;
1850
+ signatureData: runtime.JsonValue | null;
1851
+ expiresAt: Date | null;
1852
+ expiredAt: Date | null;
1853
+ cancelledAt: Date | null;
1854
+ cancelReason: string | null;
1855
+ generatedById: string | null;
1856
+ sentById: string | null;
1857
+ createdAt: Date;
1858
+ updatedAt: Date;
1859
+ }, ExtArgs["result"]["offerLetter"]>;
1860
+ composites: {};
1861
+ };
1862
+ export type OfferLetterGetPayload<S extends boolean | null | undefined | OfferLetterDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$OfferLetterPayload, S>;
1863
+ export type OfferLetterCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<OfferLetterFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1864
+ select?: OfferLetterCountAggregateInputType | true;
1865
+ };
1866
+ export interface OfferLetterDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1867
+ [K: symbol]: {
1868
+ types: Prisma.TypeMap<ExtArgs>['model']['OfferLetter'];
1869
+ meta: {
1870
+ name: 'OfferLetter';
1871
+ };
1872
+ };
1873
+ /**
1874
+ * Find zero or one OfferLetter that matches the filter.
1875
+ * @param {OfferLetterFindUniqueArgs} args - Arguments to find a OfferLetter
1876
+ * @example
1877
+ * // Get one OfferLetter
1878
+ * const offerLetter = await prisma.offerLetter.findUnique({
1879
+ * where: {
1880
+ * // ... provide filter here
1881
+ * }
1882
+ * })
1883
+ */
1884
+ findUnique<T extends OfferLetterFindUniqueArgs>(args: Prisma.SelectSubset<T, OfferLetterFindUniqueArgs<ExtArgs>>): Prisma.Prisma__OfferLetterClient<runtime.Types.Result.GetResult<Prisma.$OfferLetterPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1885
+ /**
1886
+ * Find one OfferLetter that matches the filter or throw an error with `error.code='P2025'`
1887
+ * if no matches were found.
1888
+ * @param {OfferLetterFindUniqueOrThrowArgs} args - Arguments to find a OfferLetter
1889
+ * @example
1890
+ * // Get one OfferLetter
1891
+ * const offerLetter = await prisma.offerLetter.findUniqueOrThrow({
1892
+ * where: {
1893
+ * // ... provide filter here
1894
+ * }
1895
+ * })
1896
+ */
1897
+ findUniqueOrThrow<T extends OfferLetterFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, OfferLetterFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__OfferLetterClient<runtime.Types.Result.GetResult<Prisma.$OfferLetterPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1898
+ /**
1899
+ * Find the first OfferLetter that matches the filter.
1900
+ * Note, that providing `undefined` is treated as the value not being there.
1901
+ * Read more here: https://pris.ly/d/null-undefined
1902
+ * @param {OfferLetterFindFirstArgs} args - Arguments to find a OfferLetter
1903
+ * @example
1904
+ * // Get one OfferLetter
1905
+ * const offerLetter = await prisma.offerLetter.findFirst({
1906
+ * where: {
1907
+ * // ... provide filter here
1908
+ * }
1909
+ * })
1910
+ */
1911
+ findFirst<T extends OfferLetterFindFirstArgs>(args?: Prisma.SelectSubset<T, OfferLetterFindFirstArgs<ExtArgs>>): Prisma.Prisma__OfferLetterClient<runtime.Types.Result.GetResult<Prisma.$OfferLetterPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1912
+ /**
1913
+ * Find the first OfferLetter that matches the filter or
1914
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1915
+ * Note, that providing `undefined` is treated as the value not being there.
1916
+ * Read more here: https://pris.ly/d/null-undefined
1917
+ * @param {OfferLetterFindFirstOrThrowArgs} args - Arguments to find a OfferLetter
1918
+ * @example
1919
+ * // Get one OfferLetter
1920
+ * const offerLetter = await prisma.offerLetter.findFirstOrThrow({
1921
+ * where: {
1922
+ * // ... provide filter here
1923
+ * }
1924
+ * })
1925
+ */
1926
+ findFirstOrThrow<T extends OfferLetterFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, OfferLetterFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__OfferLetterClient<runtime.Types.Result.GetResult<Prisma.$OfferLetterPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1927
+ /**
1928
+ * Find zero or more OfferLetters that matches the filter.
1929
+ * Note, that providing `undefined` is treated as the value not being there.
1930
+ * Read more here: https://pris.ly/d/null-undefined
1931
+ * @param {OfferLetterFindManyArgs} args - Arguments to filter and select certain fields only.
1932
+ * @example
1933
+ * // Get all OfferLetters
1934
+ * const offerLetters = await prisma.offerLetter.findMany()
1935
+ *
1936
+ * // Get first 10 OfferLetters
1937
+ * const offerLetters = await prisma.offerLetter.findMany({ take: 10 })
1938
+ *
1939
+ * // Only select the `id`
1940
+ * const offerLetterWithIdOnly = await prisma.offerLetter.findMany({ select: { id: true } })
1941
+ *
1942
+ */
1943
+ findMany<T extends OfferLetterFindManyArgs>(args?: Prisma.SelectSubset<T, OfferLetterFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OfferLetterPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
1944
+ /**
1945
+ * Create a OfferLetter.
1946
+ * @param {OfferLetterCreateArgs} args - Arguments to create a OfferLetter.
1947
+ * @example
1948
+ * // Create one OfferLetter
1949
+ * const OfferLetter = await prisma.offerLetter.create({
1950
+ * data: {
1951
+ * // ... data to create a OfferLetter
1952
+ * }
1953
+ * })
1954
+ *
1955
+ */
1956
+ create<T extends OfferLetterCreateArgs>(args: Prisma.SelectSubset<T, OfferLetterCreateArgs<ExtArgs>>): Prisma.Prisma__OfferLetterClient<runtime.Types.Result.GetResult<Prisma.$OfferLetterPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1957
+ /**
1958
+ * Create many OfferLetters.
1959
+ * @param {OfferLetterCreateManyArgs} args - Arguments to create many OfferLetters.
1960
+ * @example
1961
+ * // Create many OfferLetters
1962
+ * const offerLetter = await prisma.offerLetter.createMany({
1963
+ * data: [
1964
+ * // ... provide data here
1965
+ * ]
1966
+ * })
1967
+ *
1968
+ */
1969
+ createMany<T extends OfferLetterCreateManyArgs>(args?: Prisma.SelectSubset<T, OfferLetterCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1970
+ /**
1971
+ * Delete a OfferLetter.
1972
+ * @param {OfferLetterDeleteArgs} args - Arguments to delete one OfferLetter.
1973
+ * @example
1974
+ * // Delete one OfferLetter
1975
+ * const OfferLetter = await prisma.offerLetter.delete({
1976
+ * where: {
1977
+ * // ... filter to delete one OfferLetter
1978
+ * }
1979
+ * })
1980
+ *
1981
+ */
1982
+ delete<T extends OfferLetterDeleteArgs>(args: Prisma.SelectSubset<T, OfferLetterDeleteArgs<ExtArgs>>): Prisma.Prisma__OfferLetterClient<runtime.Types.Result.GetResult<Prisma.$OfferLetterPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1983
+ /**
1984
+ * Update one OfferLetter.
1985
+ * @param {OfferLetterUpdateArgs} args - Arguments to update one OfferLetter.
1986
+ * @example
1987
+ * // Update one OfferLetter
1988
+ * const offerLetter = await prisma.offerLetter.update({
1989
+ * where: {
1990
+ * // ... provide filter here
1991
+ * },
1992
+ * data: {
1993
+ * // ... provide data here
1994
+ * }
1995
+ * })
1996
+ *
1997
+ */
1998
+ update<T extends OfferLetterUpdateArgs>(args: Prisma.SelectSubset<T, OfferLetterUpdateArgs<ExtArgs>>): Prisma.Prisma__OfferLetterClient<runtime.Types.Result.GetResult<Prisma.$OfferLetterPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1999
+ /**
2000
+ * Delete zero or more OfferLetters.
2001
+ * @param {OfferLetterDeleteManyArgs} args - Arguments to filter OfferLetters to delete.
2002
+ * @example
2003
+ * // Delete a few OfferLetters
2004
+ * const { count } = await prisma.offerLetter.deleteMany({
2005
+ * where: {
2006
+ * // ... provide filter here
2007
+ * }
2008
+ * })
2009
+ *
2010
+ */
2011
+ deleteMany<T extends OfferLetterDeleteManyArgs>(args?: Prisma.SelectSubset<T, OfferLetterDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
2012
+ /**
2013
+ * Update zero or more OfferLetters.
2014
+ * Note, that providing `undefined` is treated as the value not being there.
2015
+ * Read more here: https://pris.ly/d/null-undefined
2016
+ * @param {OfferLetterUpdateManyArgs} args - Arguments to update one or more rows.
2017
+ * @example
2018
+ * // Update many OfferLetters
2019
+ * const offerLetter = await prisma.offerLetter.updateMany({
2020
+ * where: {
2021
+ * // ... provide filter here
2022
+ * },
2023
+ * data: {
2024
+ * // ... provide data here
2025
+ * }
2026
+ * })
2027
+ *
2028
+ */
2029
+ updateMany<T extends OfferLetterUpdateManyArgs>(args: Prisma.SelectSubset<T, OfferLetterUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
2030
+ /**
2031
+ * Create or update one OfferLetter.
2032
+ * @param {OfferLetterUpsertArgs} args - Arguments to update or create a OfferLetter.
2033
+ * @example
2034
+ * // Update or create a OfferLetter
2035
+ * const offerLetter = await prisma.offerLetter.upsert({
2036
+ * create: {
2037
+ * // ... data to create a OfferLetter
2038
+ * },
2039
+ * update: {
2040
+ * // ... in case it already exists, update
2041
+ * },
2042
+ * where: {
2043
+ * // ... the filter for the OfferLetter we want to update
2044
+ * }
2045
+ * })
2046
+ */
2047
+ upsert<T extends OfferLetterUpsertArgs>(args: Prisma.SelectSubset<T, OfferLetterUpsertArgs<ExtArgs>>): Prisma.Prisma__OfferLetterClient<runtime.Types.Result.GetResult<Prisma.$OfferLetterPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
2048
+ /**
2049
+ * Count the number of OfferLetters.
2050
+ * Note, that providing `undefined` is treated as the value not being there.
2051
+ * Read more here: https://pris.ly/d/null-undefined
2052
+ * @param {OfferLetterCountArgs} args - Arguments to filter OfferLetters to count.
2053
+ * @example
2054
+ * // Count the number of OfferLetters
2055
+ * const count = await prisma.offerLetter.count({
2056
+ * where: {
2057
+ * // ... the filter for the OfferLetters we want to count
2058
+ * }
2059
+ * })
2060
+ **/
2061
+ count<T extends OfferLetterCountArgs>(args?: Prisma.Subset<T, OfferLetterCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], OfferLetterCountAggregateOutputType> : number>;
2062
+ /**
2063
+ * Allows you to perform aggregations operations on a OfferLetter.
2064
+ * Note, that providing `undefined` is treated as the value not being there.
2065
+ * Read more here: https://pris.ly/d/null-undefined
2066
+ * @param {OfferLetterAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
2067
+ * @example
2068
+ * // Ordered by age ascending
2069
+ * // Where email contains prisma.io
2070
+ * // Limited to the 10 users
2071
+ * const aggregations = await prisma.user.aggregate({
2072
+ * _avg: {
2073
+ * age: true,
2074
+ * },
2075
+ * where: {
2076
+ * email: {
2077
+ * contains: "prisma.io",
2078
+ * },
2079
+ * },
2080
+ * orderBy: {
2081
+ * age: "asc",
2082
+ * },
2083
+ * take: 10,
2084
+ * })
2085
+ **/
2086
+ aggregate<T extends OfferLetterAggregateArgs>(args: Prisma.Subset<T, OfferLetterAggregateArgs>): Prisma.PrismaPromise<GetOfferLetterAggregateType<T>>;
2087
+ /**
2088
+ * Group by OfferLetter.
2089
+ * Note, that providing `undefined` is treated as the value not being there.
2090
+ * Read more here: https://pris.ly/d/null-undefined
2091
+ * @param {OfferLetterGroupByArgs} args - Group by arguments.
2092
+ * @example
2093
+ * // Group by city, order by createdAt, get count
2094
+ * const result = await prisma.user.groupBy({
2095
+ * by: ['city', 'createdAt'],
2096
+ * orderBy: {
2097
+ * createdAt: true
2098
+ * },
2099
+ * _count: {
2100
+ * _all: true
2101
+ * },
2102
+ * })
2103
+ *
2104
+ **/
2105
+ groupBy<T extends OfferLetterGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
2106
+ orderBy: OfferLetterGroupByArgs['orderBy'];
2107
+ } : {
2108
+ orderBy?: OfferLetterGroupByArgs['orderBy'];
2109
+ }, 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 ? {
2110
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
2111
+ Error,
2112
+ 'Field ',
2113
+ P,
2114
+ ` in "having" needs to be provided in "by"`
2115
+ ];
2116
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
2117
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
2118
+ }[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 ? {} : {
2119
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
2120
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
2121
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
2122
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, OfferLetterGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetOfferLetterGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
2123
+ /**
2124
+ * Fields of the OfferLetter model
2125
+ */
2126
+ readonly fields: OfferLetterFieldRefs;
2127
+ }
2128
+ /**
2129
+ * The delegate class that acts as a "Promise-like" for OfferLetter.
2130
+ * Why is this prefixed with `Prisma__`?
2131
+ * Because we want to prevent naming conflicts as mentioned in
2132
+ * https://github.com/prisma/prisma-client-js/issues/707
2133
+ */
2134
+ export interface Prisma__OfferLetterClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
2135
+ readonly [Symbol.toStringTag]: "PrismaPromise";
2136
+ 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>;
2137
+ contract<T extends Prisma.ContractDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ContractDefaultArgs<ExtArgs>>): Prisma.Prisma__ContractClient<runtime.Types.Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
2138
+ template<T extends Prisma.DocumentTemplateDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DocumentTemplateDefaultArgs<ExtArgs>>): Prisma.Prisma__DocumentTemplateClient<runtime.Types.Result.GetResult<Prisma.$DocumentTemplatePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
2139
+ generatedBy<T extends Prisma.OfferLetter$generatedByArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.OfferLetter$generatedByArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2140
+ sentBy<T extends Prisma.OfferLetter$sentByArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.OfferLetter$sentByArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2141
+ /**
2142
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
2143
+ * @param onfulfilled The callback to execute when the Promise is resolved.
2144
+ * @param onrejected The callback to execute when the Promise is rejected.
2145
+ * @returns A Promise for the completion of which ever callback is executed.
2146
+ */
2147
+ 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>;
2148
+ /**
2149
+ * Attaches a callback for only the rejection of the Promise.
2150
+ * @param onrejected The callback to execute when the Promise is rejected.
2151
+ * @returns A Promise for the completion of the callback.
2152
+ */
2153
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
2154
+ /**
2155
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
2156
+ * resolved value cannot be modified from the callback.
2157
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
2158
+ * @returns A Promise for the completion of the callback.
2159
+ */
2160
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
2161
+ }
2162
+ /**
2163
+ * Fields of the OfferLetter model
2164
+ */
2165
+ export interface OfferLetterFieldRefs {
2166
+ readonly id: Prisma.FieldRef<"OfferLetter", 'String'>;
2167
+ readonly tenantId: Prisma.FieldRef<"OfferLetter", 'String'>;
2168
+ readonly contractId: Prisma.FieldRef<"OfferLetter", 'String'>;
2169
+ readonly templateId: Prisma.FieldRef<"OfferLetter", 'String'>;
2170
+ readonly letterNumber: Prisma.FieldRef<"OfferLetter", 'String'>;
2171
+ readonly type: Prisma.FieldRef<"OfferLetter", 'OfferLetterType'>;
2172
+ readonly status: Prisma.FieldRef<"OfferLetter", 'OfferLetterStatus'>;
2173
+ readonly htmlContent: Prisma.FieldRef<"OfferLetter", 'String'>;
2174
+ readonly pdfUrl: Prisma.FieldRef<"OfferLetter", 'String'>;
2175
+ readonly pdfKey: Prisma.FieldRef<"OfferLetter", 'String'>;
2176
+ readonly mergeData: Prisma.FieldRef<"OfferLetter", 'Json'>;
2177
+ readonly sentAt: Prisma.FieldRef<"OfferLetter", 'DateTime'>;
2178
+ readonly viewedAt: Prisma.FieldRef<"OfferLetter", 'DateTime'>;
2179
+ readonly signedAt: Prisma.FieldRef<"OfferLetter", 'DateTime'>;
2180
+ readonly signatureIp: Prisma.FieldRef<"OfferLetter", 'String'>;
2181
+ readonly signatureData: Prisma.FieldRef<"OfferLetter", 'Json'>;
2182
+ readonly expiresAt: Prisma.FieldRef<"OfferLetter", 'DateTime'>;
2183
+ readonly expiredAt: Prisma.FieldRef<"OfferLetter", 'DateTime'>;
2184
+ readonly cancelledAt: Prisma.FieldRef<"OfferLetter", 'DateTime'>;
2185
+ readonly cancelReason: Prisma.FieldRef<"OfferLetter", 'String'>;
2186
+ readonly generatedById: Prisma.FieldRef<"OfferLetter", 'String'>;
2187
+ readonly sentById: Prisma.FieldRef<"OfferLetter", 'String'>;
2188
+ readonly createdAt: Prisma.FieldRef<"OfferLetter", 'DateTime'>;
2189
+ readonly updatedAt: Prisma.FieldRef<"OfferLetter", 'DateTime'>;
2190
+ }
2191
+ /**
2192
+ * OfferLetter findUnique
2193
+ */
2194
+ export type OfferLetterFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2195
+ /**
2196
+ * Select specific fields to fetch from the OfferLetter
2197
+ */
2198
+ select?: Prisma.OfferLetterSelect<ExtArgs> | null;
2199
+ /**
2200
+ * Omit specific fields from the OfferLetter
2201
+ */
2202
+ omit?: Prisma.OfferLetterOmit<ExtArgs> | null;
2203
+ /**
2204
+ * Choose, which related nodes to fetch as well
2205
+ */
2206
+ include?: Prisma.OfferLetterInclude<ExtArgs> | null;
2207
+ /**
2208
+ * Filter, which OfferLetter to fetch.
2209
+ */
2210
+ where: Prisma.OfferLetterWhereUniqueInput;
2211
+ };
2212
+ /**
2213
+ * OfferLetter findUniqueOrThrow
2214
+ */
2215
+ export type OfferLetterFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2216
+ /**
2217
+ * Select specific fields to fetch from the OfferLetter
2218
+ */
2219
+ select?: Prisma.OfferLetterSelect<ExtArgs> | null;
2220
+ /**
2221
+ * Omit specific fields from the OfferLetter
2222
+ */
2223
+ omit?: Prisma.OfferLetterOmit<ExtArgs> | null;
2224
+ /**
2225
+ * Choose, which related nodes to fetch as well
2226
+ */
2227
+ include?: Prisma.OfferLetterInclude<ExtArgs> | null;
2228
+ /**
2229
+ * Filter, which OfferLetter to fetch.
2230
+ */
2231
+ where: Prisma.OfferLetterWhereUniqueInput;
2232
+ };
2233
+ /**
2234
+ * OfferLetter findFirst
2235
+ */
2236
+ export type OfferLetterFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2237
+ /**
2238
+ * Select specific fields to fetch from the OfferLetter
2239
+ */
2240
+ select?: Prisma.OfferLetterSelect<ExtArgs> | null;
2241
+ /**
2242
+ * Omit specific fields from the OfferLetter
2243
+ */
2244
+ omit?: Prisma.OfferLetterOmit<ExtArgs> | null;
2245
+ /**
2246
+ * Choose, which related nodes to fetch as well
2247
+ */
2248
+ include?: Prisma.OfferLetterInclude<ExtArgs> | null;
2249
+ /**
2250
+ * Filter, which OfferLetter to fetch.
2251
+ */
2252
+ where?: Prisma.OfferLetterWhereInput;
2253
+ /**
2254
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2255
+ *
2256
+ * Determine the order of OfferLetters to fetch.
2257
+ */
2258
+ orderBy?: Prisma.OfferLetterOrderByWithRelationInput | Prisma.OfferLetterOrderByWithRelationInput[];
2259
+ /**
2260
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2261
+ *
2262
+ * Sets the position for searching for OfferLetters.
2263
+ */
2264
+ cursor?: Prisma.OfferLetterWhereUniqueInput;
2265
+ /**
2266
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2267
+ *
2268
+ * Take `±n` OfferLetters from the position of the cursor.
2269
+ */
2270
+ take?: number;
2271
+ /**
2272
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2273
+ *
2274
+ * Skip the first `n` OfferLetters.
2275
+ */
2276
+ skip?: number;
2277
+ /**
2278
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2279
+ *
2280
+ * Filter by unique combinations of OfferLetters.
2281
+ */
2282
+ distinct?: Prisma.OfferLetterScalarFieldEnum | Prisma.OfferLetterScalarFieldEnum[];
2283
+ };
2284
+ /**
2285
+ * OfferLetter findFirstOrThrow
2286
+ */
2287
+ export type OfferLetterFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2288
+ /**
2289
+ * Select specific fields to fetch from the OfferLetter
2290
+ */
2291
+ select?: Prisma.OfferLetterSelect<ExtArgs> | null;
2292
+ /**
2293
+ * Omit specific fields from the OfferLetter
2294
+ */
2295
+ omit?: Prisma.OfferLetterOmit<ExtArgs> | null;
2296
+ /**
2297
+ * Choose, which related nodes to fetch as well
2298
+ */
2299
+ include?: Prisma.OfferLetterInclude<ExtArgs> | null;
2300
+ /**
2301
+ * Filter, which OfferLetter to fetch.
2302
+ */
2303
+ where?: Prisma.OfferLetterWhereInput;
2304
+ /**
2305
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2306
+ *
2307
+ * Determine the order of OfferLetters to fetch.
2308
+ */
2309
+ orderBy?: Prisma.OfferLetterOrderByWithRelationInput | Prisma.OfferLetterOrderByWithRelationInput[];
2310
+ /**
2311
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2312
+ *
2313
+ * Sets the position for searching for OfferLetters.
2314
+ */
2315
+ cursor?: Prisma.OfferLetterWhereUniqueInput;
2316
+ /**
2317
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2318
+ *
2319
+ * Take `±n` OfferLetters from the position of the cursor.
2320
+ */
2321
+ take?: number;
2322
+ /**
2323
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2324
+ *
2325
+ * Skip the first `n` OfferLetters.
2326
+ */
2327
+ skip?: number;
2328
+ /**
2329
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2330
+ *
2331
+ * Filter by unique combinations of OfferLetters.
2332
+ */
2333
+ distinct?: Prisma.OfferLetterScalarFieldEnum | Prisma.OfferLetterScalarFieldEnum[];
2334
+ };
2335
+ /**
2336
+ * OfferLetter findMany
2337
+ */
2338
+ export type OfferLetterFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2339
+ /**
2340
+ * Select specific fields to fetch from the OfferLetter
2341
+ */
2342
+ select?: Prisma.OfferLetterSelect<ExtArgs> | null;
2343
+ /**
2344
+ * Omit specific fields from the OfferLetter
2345
+ */
2346
+ omit?: Prisma.OfferLetterOmit<ExtArgs> | null;
2347
+ /**
2348
+ * Choose, which related nodes to fetch as well
2349
+ */
2350
+ include?: Prisma.OfferLetterInclude<ExtArgs> | null;
2351
+ /**
2352
+ * Filter, which OfferLetters to fetch.
2353
+ */
2354
+ where?: Prisma.OfferLetterWhereInput;
2355
+ /**
2356
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2357
+ *
2358
+ * Determine the order of OfferLetters to fetch.
2359
+ */
2360
+ orderBy?: Prisma.OfferLetterOrderByWithRelationInput | Prisma.OfferLetterOrderByWithRelationInput[];
2361
+ /**
2362
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2363
+ *
2364
+ * Sets the position for listing OfferLetters.
2365
+ */
2366
+ cursor?: Prisma.OfferLetterWhereUniqueInput;
2367
+ /**
2368
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2369
+ *
2370
+ * Take `±n` OfferLetters from the position of the cursor.
2371
+ */
2372
+ take?: number;
2373
+ /**
2374
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2375
+ *
2376
+ * Skip the first `n` OfferLetters.
2377
+ */
2378
+ skip?: number;
2379
+ distinct?: Prisma.OfferLetterScalarFieldEnum | Prisma.OfferLetterScalarFieldEnum[];
2380
+ };
2381
+ /**
2382
+ * OfferLetter create
2383
+ */
2384
+ export type OfferLetterCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2385
+ /**
2386
+ * Select specific fields to fetch from the OfferLetter
2387
+ */
2388
+ select?: Prisma.OfferLetterSelect<ExtArgs> | null;
2389
+ /**
2390
+ * Omit specific fields from the OfferLetter
2391
+ */
2392
+ omit?: Prisma.OfferLetterOmit<ExtArgs> | null;
2393
+ /**
2394
+ * Choose, which related nodes to fetch as well
2395
+ */
2396
+ include?: Prisma.OfferLetterInclude<ExtArgs> | null;
2397
+ /**
2398
+ * The data needed to create a OfferLetter.
2399
+ */
2400
+ data: Prisma.XOR<Prisma.OfferLetterCreateInput, Prisma.OfferLetterUncheckedCreateInput>;
2401
+ };
2402
+ /**
2403
+ * OfferLetter createMany
2404
+ */
2405
+ export type OfferLetterCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2406
+ /**
2407
+ * The data used to create many OfferLetters.
2408
+ */
2409
+ data: Prisma.OfferLetterCreateManyInput | Prisma.OfferLetterCreateManyInput[];
2410
+ skipDuplicates?: boolean;
2411
+ };
2412
+ /**
2413
+ * OfferLetter update
2414
+ */
2415
+ export type OfferLetterUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2416
+ /**
2417
+ * Select specific fields to fetch from the OfferLetter
2418
+ */
2419
+ select?: Prisma.OfferLetterSelect<ExtArgs> | null;
2420
+ /**
2421
+ * Omit specific fields from the OfferLetter
2422
+ */
2423
+ omit?: Prisma.OfferLetterOmit<ExtArgs> | null;
2424
+ /**
2425
+ * Choose, which related nodes to fetch as well
2426
+ */
2427
+ include?: Prisma.OfferLetterInclude<ExtArgs> | null;
2428
+ /**
2429
+ * The data needed to update a OfferLetter.
2430
+ */
2431
+ data: Prisma.XOR<Prisma.OfferLetterUpdateInput, Prisma.OfferLetterUncheckedUpdateInput>;
2432
+ /**
2433
+ * Choose, which OfferLetter to update.
2434
+ */
2435
+ where: Prisma.OfferLetterWhereUniqueInput;
2436
+ };
2437
+ /**
2438
+ * OfferLetter updateMany
2439
+ */
2440
+ export type OfferLetterUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2441
+ /**
2442
+ * The data used to update OfferLetters.
2443
+ */
2444
+ data: Prisma.XOR<Prisma.OfferLetterUpdateManyMutationInput, Prisma.OfferLetterUncheckedUpdateManyInput>;
2445
+ /**
2446
+ * Filter which OfferLetters to update
2447
+ */
2448
+ where?: Prisma.OfferLetterWhereInput;
2449
+ /**
2450
+ * Limit how many OfferLetters to update.
2451
+ */
2452
+ limit?: number;
2453
+ };
2454
+ /**
2455
+ * OfferLetter upsert
2456
+ */
2457
+ export type OfferLetterUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2458
+ /**
2459
+ * Select specific fields to fetch from the OfferLetter
2460
+ */
2461
+ select?: Prisma.OfferLetterSelect<ExtArgs> | null;
2462
+ /**
2463
+ * Omit specific fields from the OfferLetter
2464
+ */
2465
+ omit?: Prisma.OfferLetterOmit<ExtArgs> | null;
2466
+ /**
2467
+ * Choose, which related nodes to fetch as well
2468
+ */
2469
+ include?: Prisma.OfferLetterInclude<ExtArgs> | null;
2470
+ /**
2471
+ * The filter to search for the OfferLetter to update in case it exists.
2472
+ */
2473
+ where: Prisma.OfferLetterWhereUniqueInput;
2474
+ /**
2475
+ * In case the OfferLetter found by the `where` argument doesn't exist, create a new OfferLetter with this data.
2476
+ */
2477
+ create: Prisma.XOR<Prisma.OfferLetterCreateInput, Prisma.OfferLetterUncheckedCreateInput>;
2478
+ /**
2479
+ * In case the OfferLetter was found with the provided `where` argument, update it with this data.
2480
+ */
2481
+ update: Prisma.XOR<Prisma.OfferLetterUpdateInput, Prisma.OfferLetterUncheckedUpdateInput>;
2482
+ };
2483
+ /**
2484
+ * OfferLetter delete
2485
+ */
2486
+ export type OfferLetterDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2487
+ /**
2488
+ * Select specific fields to fetch from the OfferLetter
2489
+ */
2490
+ select?: Prisma.OfferLetterSelect<ExtArgs> | null;
2491
+ /**
2492
+ * Omit specific fields from the OfferLetter
2493
+ */
2494
+ omit?: Prisma.OfferLetterOmit<ExtArgs> | null;
2495
+ /**
2496
+ * Choose, which related nodes to fetch as well
2497
+ */
2498
+ include?: Prisma.OfferLetterInclude<ExtArgs> | null;
2499
+ /**
2500
+ * Filter which OfferLetter to delete.
2501
+ */
2502
+ where: Prisma.OfferLetterWhereUniqueInput;
2503
+ };
2504
+ /**
2505
+ * OfferLetter deleteMany
2506
+ */
2507
+ export type OfferLetterDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2508
+ /**
2509
+ * Filter which OfferLetters to delete
2510
+ */
2511
+ where?: Prisma.OfferLetterWhereInput;
2512
+ /**
2513
+ * Limit how many OfferLetters to delete.
2514
+ */
2515
+ limit?: number;
2516
+ };
2517
+ /**
2518
+ * OfferLetter.generatedBy
2519
+ */
2520
+ export type OfferLetter$generatedByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2521
+ /**
2522
+ * Select specific fields to fetch from the User
2523
+ */
2524
+ select?: Prisma.UserSelect<ExtArgs> | null;
2525
+ /**
2526
+ * Omit specific fields from the User
2527
+ */
2528
+ omit?: Prisma.UserOmit<ExtArgs> | null;
2529
+ /**
2530
+ * Choose, which related nodes to fetch as well
2531
+ */
2532
+ include?: Prisma.UserInclude<ExtArgs> | null;
2533
+ where?: Prisma.UserWhereInput;
2534
+ };
2535
+ /**
2536
+ * OfferLetter.sentBy
2537
+ */
2538
+ export type OfferLetter$sentByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2539
+ /**
2540
+ * Select specific fields to fetch from the User
2541
+ */
2542
+ select?: Prisma.UserSelect<ExtArgs> | null;
2543
+ /**
2544
+ * Omit specific fields from the User
2545
+ */
2546
+ omit?: Prisma.UserOmit<ExtArgs> | null;
2547
+ /**
2548
+ * Choose, which related nodes to fetch as well
2549
+ */
2550
+ include?: Prisma.UserInclude<ExtArgs> | null;
2551
+ where?: Prisma.UserWhereInput;
2552
+ };
2553
+ /**
2554
+ * OfferLetter without action
2555
+ */
2556
+ export type OfferLetterDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2557
+ /**
2558
+ * Select specific fields to fetch from the OfferLetter
2559
+ */
2560
+ select?: Prisma.OfferLetterSelect<ExtArgs> | null;
2561
+ /**
2562
+ * Omit specific fields from the OfferLetter
2563
+ */
2564
+ omit?: Prisma.OfferLetterOmit<ExtArgs> | null;
2565
+ /**
2566
+ * Choose, which related nodes to fetch as well
2567
+ */
2568
+ include?: Prisma.OfferLetterInclude<ExtArgs> | null;
2569
+ };
2570
+ export {};