@valentine-efagene/qshelter-common 2.0.37 → 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,1507 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model DocumentTemplate
5
+ *
6
+ */
7
+ export type DocumentTemplateModel = runtime.Types.Result.DefaultSelection<Prisma.$DocumentTemplatePayload>;
8
+ export type AggregateDocumentTemplate = {
9
+ _count: DocumentTemplateCountAggregateOutputType | null;
10
+ _avg: DocumentTemplateAvgAggregateOutputType | null;
11
+ _sum: DocumentTemplateSumAggregateOutputType | null;
12
+ _min: DocumentTemplateMinAggregateOutputType | null;
13
+ _max: DocumentTemplateMaxAggregateOutputType | null;
14
+ };
15
+ export type DocumentTemplateAvgAggregateOutputType = {
16
+ version: number | null;
17
+ };
18
+ export type DocumentTemplateSumAggregateOutputType = {
19
+ version: number | null;
20
+ };
21
+ export type DocumentTemplateMinAggregateOutputType = {
22
+ id: string | null;
23
+ tenantId: string | null;
24
+ name: string | null;
25
+ code: string | null;
26
+ description: string | null;
27
+ version: number | null;
28
+ htmlTemplate: string | null;
29
+ cssStyles: string | null;
30
+ isActive: boolean | null;
31
+ isDefault: boolean | null;
32
+ createdAt: Date | null;
33
+ updatedAt: Date | null;
34
+ };
35
+ export type DocumentTemplateMaxAggregateOutputType = {
36
+ id: string | null;
37
+ tenantId: string | null;
38
+ name: string | null;
39
+ code: string | null;
40
+ description: string | null;
41
+ version: number | null;
42
+ htmlTemplate: string | null;
43
+ cssStyles: string | null;
44
+ isActive: boolean | null;
45
+ isDefault: boolean | null;
46
+ createdAt: Date | null;
47
+ updatedAt: Date | null;
48
+ };
49
+ export type DocumentTemplateCountAggregateOutputType = {
50
+ id: number;
51
+ tenantId: number;
52
+ name: number;
53
+ code: number;
54
+ description: number;
55
+ version: number;
56
+ htmlTemplate: number;
57
+ cssStyles: number;
58
+ mergeFields: number;
59
+ isActive: number;
60
+ isDefault: number;
61
+ createdAt: number;
62
+ updatedAt: number;
63
+ _all: number;
64
+ };
65
+ export type DocumentTemplateAvgAggregateInputType = {
66
+ version?: true;
67
+ };
68
+ export type DocumentTemplateSumAggregateInputType = {
69
+ version?: true;
70
+ };
71
+ export type DocumentTemplateMinAggregateInputType = {
72
+ id?: true;
73
+ tenantId?: true;
74
+ name?: true;
75
+ code?: true;
76
+ description?: true;
77
+ version?: true;
78
+ htmlTemplate?: true;
79
+ cssStyles?: true;
80
+ isActive?: true;
81
+ isDefault?: true;
82
+ createdAt?: true;
83
+ updatedAt?: true;
84
+ };
85
+ export type DocumentTemplateMaxAggregateInputType = {
86
+ id?: true;
87
+ tenantId?: true;
88
+ name?: true;
89
+ code?: true;
90
+ description?: true;
91
+ version?: true;
92
+ htmlTemplate?: true;
93
+ cssStyles?: true;
94
+ isActive?: true;
95
+ isDefault?: true;
96
+ createdAt?: true;
97
+ updatedAt?: true;
98
+ };
99
+ export type DocumentTemplateCountAggregateInputType = {
100
+ id?: true;
101
+ tenantId?: true;
102
+ name?: true;
103
+ code?: true;
104
+ description?: true;
105
+ version?: true;
106
+ htmlTemplate?: true;
107
+ cssStyles?: true;
108
+ mergeFields?: true;
109
+ isActive?: true;
110
+ isDefault?: true;
111
+ createdAt?: true;
112
+ updatedAt?: true;
113
+ _all?: true;
114
+ };
115
+ export type DocumentTemplateAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
116
+ /**
117
+ * Filter which DocumentTemplate to aggregate.
118
+ */
119
+ where?: Prisma.DocumentTemplateWhereInput;
120
+ /**
121
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
122
+ *
123
+ * Determine the order of DocumentTemplates to fetch.
124
+ */
125
+ orderBy?: Prisma.DocumentTemplateOrderByWithRelationInput | Prisma.DocumentTemplateOrderByWithRelationInput[];
126
+ /**
127
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
128
+ *
129
+ * Sets the start position
130
+ */
131
+ cursor?: Prisma.DocumentTemplateWhereUniqueInput;
132
+ /**
133
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
134
+ *
135
+ * Take `±n` DocumentTemplates from the position of the cursor.
136
+ */
137
+ take?: number;
138
+ /**
139
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
140
+ *
141
+ * Skip the first `n` DocumentTemplates.
142
+ */
143
+ skip?: number;
144
+ /**
145
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
146
+ *
147
+ * Count returned DocumentTemplates
148
+ **/
149
+ _count?: true | DocumentTemplateCountAggregateInputType;
150
+ /**
151
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
152
+ *
153
+ * Select which fields to average
154
+ **/
155
+ _avg?: DocumentTemplateAvgAggregateInputType;
156
+ /**
157
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
158
+ *
159
+ * Select which fields to sum
160
+ **/
161
+ _sum?: DocumentTemplateSumAggregateInputType;
162
+ /**
163
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
164
+ *
165
+ * Select which fields to find the minimum value
166
+ **/
167
+ _min?: DocumentTemplateMinAggregateInputType;
168
+ /**
169
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
170
+ *
171
+ * Select which fields to find the maximum value
172
+ **/
173
+ _max?: DocumentTemplateMaxAggregateInputType;
174
+ };
175
+ export type GetDocumentTemplateAggregateType<T extends DocumentTemplateAggregateArgs> = {
176
+ [P in keyof T & keyof AggregateDocumentTemplate]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateDocumentTemplate[P]> : Prisma.GetScalarType<T[P], AggregateDocumentTemplate[P]>;
177
+ };
178
+ export type DocumentTemplateGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
179
+ where?: Prisma.DocumentTemplateWhereInput;
180
+ orderBy?: Prisma.DocumentTemplateOrderByWithAggregationInput | Prisma.DocumentTemplateOrderByWithAggregationInput[];
181
+ by: Prisma.DocumentTemplateScalarFieldEnum[] | Prisma.DocumentTemplateScalarFieldEnum;
182
+ having?: Prisma.DocumentTemplateScalarWhereWithAggregatesInput;
183
+ take?: number;
184
+ skip?: number;
185
+ _count?: DocumentTemplateCountAggregateInputType | true;
186
+ _avg?: DocumentTemplateAvgAggregateInputType;
187
+ _sum?: DocumentTemplateSumAggregateInputType;
188
+ _min?: DocumentTemplateMinAggregateInputType;
189
+ _max?: DocumentTemplateMaxAggregateInputType;
190
+ };
191
+ export type DocumentTemplateGroupByOutputType = {
192
+ id: string;
193
+ tenantId: string;
194
+ name: string;
195
+ code: string;
196
+ description: string | null;
197
+ version: number;
198
+ htmlTemplate: string;
199
+ cssStyles: string | null;
200
+ mergeFields: runtime.JsonValue | null;
201
+ isActive: boolean;
202
+ isDefault: boolean;
203
+ createdAt: Date;
204
+ updatedAt: Date;
205
+ _count: DocumentTemplateCountAggregateOutputType | null;
206
+ _avg: DocumentTemplateAvgAggregateOutputType | null;
207
+ _sum: DocumentTemplateSumAggregateOutputType | null;
208
+ _min: DocumentTemplateMinAggregateOutputType | null;
209
+ _max: DocumentTemplateMaxAggregateOutputType | null;
210
+ };
211
+ type GetDocumentTemplateGroupByPayload<T extends DocumentTemplateGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<DocumentTemplateGroupByOutputType, T['by']> & {
212
+ [P in ((keyof T) & (keyof DocumentTemplateGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], DocumentTemplateGroupByOutputType[P]> : Prisma.GetScalarType<T[P], DocumentTemplateGroupByOutputType[P]>;
213
+ }>>;
214
+ export type DocumentTemplateWhereInput = {
215
+ AND?: Prisma.DocumentTemplateWhereInput | Prisma.DocumentTemplateWhereInput[];
216
+ OR?: Prisma.DocumentTemplateWhereInput[];
217
+ NOT?: Prisma.DocumentTemplateWhereInput | Prisma.DocumentTemplateWhereInput[];
218
+ id?: Prisma.StringFilter<"DocumentTemplate"> | string;
219
+ tenantId?: Prisma.StringFilter<"DocumentTemplate"> | string;
220
+ name?: Prisma.StringFilter<"DocumentTemplate"> | string;
221
+ code?: Prisma.StringFilter<"DocumentTemplate"> | string;
222
+ description?: Prisma.StringNullableFilter<"DocumentTemplate"> | string | null;
223
+ version?: Prisma.IntFilter<"DocumentTemplate"> | number;
224
+ htmlTemplate?: Prisma.StringFilter<"DocumentTemplate"> | string;
225
+ cssStyles?: Prisma.StringNullableFilter<"DocumentTemplate"> | string | null;
226
+ mergeFields?: Prisma.JsonNullableFilter<"DocumentTemplate">;
227
+ isActive?: Prisma.BoolFilter<"DocumentTemplate"> | boolean;
228
+ isDefault?: Prisma.BoolFilter<"DocumentTemplate"> | boolean;
229
+ createdAt?: Prisma.DateTimeFilter<"DocumentTemplate"> | Date | string;
230
+ updatedAt?: Prisma.DateTimeFilter<"DocumentTemplate"> | Date | string;
231
+ tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
232
+ offerLetters?: Prisma.OfferLetterListRelationFilter;
233
+ };
234
+ export type DocumentTemplateOrderByWithRelationInput = {
235
+ id?: Prisma.SortOrder;
236
+ tenantId?: Prisma.SortOrder;
237
+ name?: Prisma.SortOrder;
238
+ code?: Prisma.SortOrder;
239
+ description?: Prisma.SortOrderInput | Prisma.SortOrder;
240
+ version?: Prisma.SortOrder;
241
+ htmlTemplate?: Prisma.SortOrder;
242
+ cssStyles?: Prisma.SortOrderInput | Prisma.SortOrder;
243
+ mergeFields?: Prisma.SortOrderInput | Prisma.SortOrder;
244
+ isActive?: Prisma.SortOrder;
245
+ isDefault?: Prisma.SortOrder;
246
+ createdAt?: Prisma.SortOrder;
247
+ updatedAt?: Prisma.SortOrder;
248
+ tenant?: Prisma.TenantOrderByWithRelationInput;
249
+ offerLetters?: Prisma.OfferLetterOrderByRelationAggregateInput;
250
+ _relevance?: Prisma.DocumentTemplateOrderByRelevanceInput;
251
+ };
252
+ export type DocumentTemplateWhereUniqueInput = Prisma.AtLeast<{
253
+ id?: string;
254
+ tenantId_code_version?: Prisma.DocumentTemplateTenantIdCodeVersionCompoundUniqueInput;
255
+ AND?: Prisma.DocumentTemplateWhereInput | Prisma.DocumentTemplateWhereInput[];
256
+ OR?: Prisma.DocumentTemplateWhereInput[];
257
+ NOT?: Prisma.DocumentTemplateWhereInput | Prisma.DocumentTemplateWhereInput[];
258
+ tenantId?: Prisma.StringFilter<"DocumentTemplate"> | string;
259
+ name?: Prisma.StringFilter<"DocumentTemplate"> | string;
260
+ code?: Prisma.StringFilter<"DocumentTemplate"> | string;
261
+ description?: Prisma.StringNullableFilter<"DocumentTemplate"> | string | null;
262
+ version?: Prisma.IntFilter<"DocumentTemplate"> | number;
263
+ htmlTemplate?: Prisma.StringFilter<"DocumentTemplate"> | string;
264
+ cssStyles?: Prisma.StringNullableFilter<"DocumentTemplate"> | string | null;
265
+ mergeFields?: Prisma.JsonNullableFilter<"DocumentTemplate">;
266
+ isActive?: Prisma.BoolFilter<"DocumentTemplate"> | boolean;
267
+ isDefault?: Prisma.BoolFilter<"DocumentTemplate"> | boolean;
268
+ createdAt?: Prisma.DateTimeFilter<"DocumentTemplate"> | Date | string;
269
+ updatedAt?: Prisma.DateTimeFilter<"DocumentTemplate"> | Date | string;
270
+ tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
271
+ offerLetters?: Prisma.OfferLetterListRelationFilter;
272
+ }, "id" | "tenantId_code_version">;
273
+ export type DocumentTemplateOrderByWithAggregationInput = {
274
+ id?: Prisma.SortOrder;
275
+ tenantId?: Prisma.SortOrder;
276
+ name?: Prisma.SortOrder;
277
+ code?: Prisma.SortOrder;
278
+ description?: Prisma.SortOrderInput | Prisma.SortOrder;
279
+ version?: Prisma.SortOrder;
280
+ htmlTemplate?: Prisma.SortOrder;
281
+ cssStyles?: Prisma.SortOrderInput | Prisma.SortOrder;
282
+ mergeFields?: Prisma.SortOrderInput | Prisma.SortOrder;
283
+ isActive?: Prisma.SortOrder;
284
+ isDefault?: Prisma.SortOrder;
285
+ createdAt?: Prisma.SortOrder;
286
+ updatedAt?: Prisma.SortOrder;
287
+ _count?: Prisma.DocumentTemplateCountOrderByAggregateInput;
288
+ _avg?: Prisma.DocumentTemplateAvgOrderByAggregateInput;
289
+ _max?: Prisma.DocumentTemplateMaxOrderByAggregateInput;
290
+ _min?: Prisma.DocumentTemplateMinOrderByAggregateInput;
291
+ _sum?: Prisma.DocumentTemplateSumOrderByAggregateInput;
292
+ };
293
+ export type DocumentTemplateScalarWhereWithAggregatesInput = {
294
+ AND?: Prisma.DocumentTemplateScalarWhereWithAggregatesInput | Prisma.DocumentTemplateScalarWhereWithAggregatesInput[];
295
+ OR?: Prisma.DocumentTemplateScalarWhereWithAggregatesInput[];
296
+ NOT?: Prisma.DocumentTemplateScalarWhereWithAggregatesInput | Prisma.DocumentTemplateScalarWhereWithAggregatesInput[];
297
+ id?: Prisma.StringWithAggregatesFilter<"DocumentTemplate"> | string;
298
+ tenantId?: Prisma.StringWithAggregatesFilter<"DocumentTemplate"> | string;
299
+ name?: Prisma.StringWithAggregatesFilter<"DocumentTemplate"> | string;
300
+ code?: Prisma.StringWithAggregatesFilter<"DocumentTemplate"> | string;
301
+ description?: Prisma.StringNullableWithAggregatesFilter<"DocumentTemplate"> | string | null;
302
+ version?: Prisma.IntWithAggregatesFilter<"DocumentTemplate"> | number;
303
+ htmlTemplate?: Prisma.StringWithAggregatesFilter<"DocumentTemplate"> | string;
304
+ cssStyles?: Prisma.StringNullableWithAggregatesFilter<"DocumentTemplate"> | string | null;
305
+ mergeFields?: Prisma.JsonNullableWithAggregatesFilter<"DocumentTemplate">;
306
+ isActive?: Prisma.BoolWithAggregatesFilter<"DocumentTemplate"> | boolean;
307
+ isDefault?: Prisma.BoolWithAggregatesFilter<"DocumentTemplate"> | boolean;
308
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"DocumentTemplate"> | Date | string;
309
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"DocumentTemplate"> | Date | string;
310
+ };
311
+ export type DocumentTemplateCreateInput = {
312
+ id?: string;
313
+ name: string;
314
+ code: string;
315
+ description?: string | null;
316
+ version?: number;
317
+ htmlTemplate: string;
318
+ cssStyles?: string | null;
319
+ mergeFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
320
+ isActive?: boolean;
321
+ isDefault?: boolean;
322
+ createdAt?: Date | string;
323
+ updatedAt?: Date | string;
324
+ tenant: Prisma.TenantCreateNestedOneWithoutDocumentTemplatesInput;
325
+ offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutTemplateInput;
326
+ };
327
+ export type DocumentTemplateUncheckedCreateInput = {
328
+ id?: string;
329
+ tenantId: string;
330
+ name: string;
331
+ code: string;
332
+ description?: string | null;
333
+ version?: number;
334
+ htmlTemplate: string;
335
+ cssStyles?: string | null;
336
+ mergeFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
337
+ isActive?: boolean;
338
+ isDefault?: boolean;
339
+ createdAt?: Date | string;
340
+ updatedAt?: Date | string;
341
+ offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutTemplateInput;
342
+ };
343
+ export type DocumentTemplateUpdateInput = {
344
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
345
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
346
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
347
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
348
+ version?: Prisma.IntFieldUpdateOperationsInput | number;
349
+ htmlTemplate?: Prisma.StringFieldUpdateOperationsInput | string;
350
+ cssStyles?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
351
+ mergeFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
352
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
353
+ isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean;
354
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
355
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
356
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutDocumentTemplatesNestedInput;
357
+ offerLetters?: Prisma.OfferLetterUpdateManyWithoutTemplateNestedInput;
358
+ };
359
+ export type DocumentTemplateUncheckedUpdateInput = {
360
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
361
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
362
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
363
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
364
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
365
+ version?: Prisma.IntFieldUpdateOperationsInput | number;
366
+ htmlTemplate?: Prisma.StringFieldUpdateOperationsInput | string;
367
+ cssStyles?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
368
+ mergeFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
369
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
370
+ isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean;
371
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
372
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
373
+ offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutTemplateNestedInput;
374
+ };
375
+ export type DocumentTemplateCreateManyInput = {
376
+ id?: string;
377
+ tenantId: string;
378
+ name: string;
379
+ code: string;
380
+ description?: string | null;
381
+ version?: number;
382
+ htmlTemplate: string;
383
+ cssStyles?: string | null;
384
+ mergeFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
385
+ isActive?: boolean;
386
+ isDefault?: boolean;
387
+ createdAt?: Date | string;
388
+ updatedAt?: Date | string;
389
+ };
390
+ export type DocumentTemplateUpdateManyMutationInput = {
391
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
392
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
393
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
394
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
395
+ version?: Prisma.IntFieldUpdateOperationsInput | number;
396
+ htmlTemplate?: Prisma.StringFieldUpdateOperationsInput | string;
397
+ cssStyles?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
398
+ mergeFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
399
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
400
+ isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean;
401
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
402
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
403
+ };
404
+ export type DocumentTemplateUncheckedUpdateManyInput = {
405
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
406
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
407
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
408
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
409
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
410
+ version?: Prisma.IntFieldUpdateOperationsInput | number;
411
+ htmlTemplate?: Prisma.StringFieldUpdateOperationsInput | string;
412
+ cssStyles?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
413
+ mergeFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
414
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
415
+ isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean;
416
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
417
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
418
+ };
419
+ export type DocumentTemplateListRelationFilter = {
420
+ every?: Prisma.DocumentTemplateWhereInput;
421
+ some?: Prisma.DocumentTemplateWhereInput;
422
+ none?: Prisma.DocumentTemplateWhereInput;
423
+ };
424
+ export type DocumentTemplateOrderByRelationAggregateInput = {
425
+ _count?: Prisma.SortOrder;
426
+ };
427
+ export type DocumentTemplateOrderByRelevanceInput = {
428
+ fields: Prisma.DocumentTemplateOrderByRelevanceFieldEnum | Prisma.DocumentTemplateOrderByRelevanceFieldEnum[];
429
+ sort: Prisma.SortOrder;
430
+ search: string;
431
+ };
432
+ export type DocumentTemplateTenantIdCodeVersionCompoundUniqueInput = {
433
+ tenantId: string;
434
+ code: string;
435
+ version: number;
436
+ };
437
+ export type DocumentTemplateCountOrderByAggregateInput = {
438
+ id?: Prisma.SortOrder;
439
+ tenantId?: Prisma.SortOrder;
440
+ name?: Prisma.SortOrder;
441
+ code?: Prisma.SortOrder;
442
+ description?: Prisma.SortOrder;
443
+ version?: Prisma.SortOrder;
444
+ htmlTemplate?: Prisma.SortOrder;
445
+ cssStyles?: Prisma.SortOrder;
446
+ mergeFields?: Prisma.SortOrder;
447
+ isActive?: Prisma.SortOrder;
448
+ isDefault?: Prisma.SortOrder;
449
+ createdAt?: Prisma.SortOrder;
450
+ updatedAt?: Prisma.SortOrder;
451
+ };
452
+ export type DocumentTemplateAvgOrderByAggregateInput = {
453
+ version?: Prisma.SortOrder;
454
+ };
455
+ export type DocumentTemplateMaxOrderByAggregateInput = {
456
+ id?: Prisma.SortOrder;
457
+ tenantId?: Prisma.SortOrder;
458
+ name?: Prisma.SortOrder;
459
+ code?: Prisma.SortOrder;
460
+ description?: Prisma.SortOrder;
461
+ version?: Prisma.SortOrder;
462
+ htmlTemplate?: Prisma.SortOrder;
463
+ cssStyles?: Prisma.SortOrder;
464
+ isActive?: Prisma.SortOrder;
465
+ isDefault?: Prisma.SortOrder;
466
+ createdAt?: Prisma.SortOrder;
467
+ updatedAt?: Prisma.SortOrder;
468
+ };
469
+ export type DocumentTemplateMinOrderByAggregateInput = {
470
+ id?: Prisma.SortOrder;
471
+ tenantId?: Prisma.SortOrder;
472
+ name?: Prisma.SortOrder;
473
+ code?: Prisma.SortOrder;
474
+ description?: Prisma.SortOrder;
475
+ version?: Prisma.SortOrder;
476
+ htmlTemplate?: Prisma.SortOrder;
477
+ cssStyles?: Prisma.SortOrder;
478
+ isActive?: Prisma.SortOrder;
479
+ isDefault?: Prisma.SortOrder;
480
+ createdAt?: Prisma.SortOrder;
481
+ updatedAt?: Prisma.SortOrder;
482
+ };
483
+ export type DocumentTemplateSumOrderByAggregateInput = {
484
+ version?: Prisma.SortOrder;
485
+ };
486
+ export type DocumentTemplateScalarRelationFilter = {
487
+ is?: Prisma.DocumentTemplateWhereInput;
488
+ isNot?: Prisma.DocumentTemplateWhereInput;
489
+ };
490
+ export type DocumentTemplateCreateNestedManyWithoutTenantInput = {
491
+ create?: Prisma.XOR<Prisma.DocumentTemplateCreateWithoutTenantInput, Prisma.DocumentTemplateUncheckedCreateWithoutTenantInput> | Prisma.DocumentTemplateCreateWithoutTenantInput[] | Prisma.DocumentTemplateUncheckedCreateWithoutTenantInput[];
492
+ connectOrCreate?: Prisma.DocumentTemplateCreateOrConnectWithoutTenantInput | Prisma.DocumentTemplateCreateOrConnectWithoutTenantInput[];
493
+ createMany?: Prisma.DocumentTemplateCreateManyTenantInputEnvelope;
494
+ connect?: Prisma.DocumentTemplateWhereUniqueInput | Prisma.DocumentTemplateWhereUniqueInput[];
495
+ };
496
+ export type DocumentTemplateUncheckedCreateNestedManyWithoutTenantInput = {
497
+ create?: Prisma.XOR<Prisma.DocumentTemplateCreateWithoutTenantInput, Prisma.DocumentTemplateUncheckedCreateWithoutTenantInput> | Prisma.DocumentTemplateCreateWithoutTenantInput[] | Prisma.DocumentTemplateUncheckedCreateWithoutTenantInput[];
498
+ connectOrCreate?: Prisma.DocumentTemplateCreateOrConnectWithoutTenantInput | Prisma.DocumentTemplateCreateOrConnectWithoutTenantInput[];
499
+ createMany?: Prisma.DocumentTemplateCreateManyTenantInputEnvelope;
500
+ connect?: Prisma.DocumentTemplateWhereUniqueInput | Prisma.DocumentTemplateWhereUniqueInput[];
501
+ };
502
+ export type DocumentTemplateUpdateManyWithoutTenantNestedInput = {
503
+ create?: Prisma.XOR<Prisma.DocumentTemplateCreateWithoutTenantInput, Prisma.DocumentTemplateUncheckedCreateWithoutTenantInput> | Prisma.DocumentTemplateCreateWithoutTenantInput[] | Prisma.DocumentTemplateUncheckedCreateWithoutTenantInput[];
504
+ connectOrCreate?: Prisma.DocumentTemplateCreateOrConnectWithoutTenantInput | Prisma.DocumentTemplateCreateOrConnectWithoutTenantInput[];
505
+ upsert?: Prisma.DocumentTemplateUpsertWithWhereUniqueWithoutTenantInput | Prisma.DocumentTemplateUpsertWithWhereUniqueWithoutTenantInput[];
506
+ createMany?: Prisma.DocumentTemplateCreateManyTenantInputEnvelope;
507
+ set?: Prisma.DocumentTemplateWhereUniqueInput | Prisma.DocumentTemplateWhereUniqueInput[];
508
+ disconnect?: Prisma.DocumentTemplateWhereUniqueInput | Prisma.DocumentTemplateWhereUniqueInput[];
509
+ delete?: Prisma.DocumentTemplateWhereUniqueInput | Prisma.DocumentTemplateWhereUniqueInput[];
510
+ connect?: Prisma.DocumentTemplateWhereUniqueInput | Prisma.DocumentTemplateWhereUniqueInput[];
511
+ update?: Prisma.DocumentTemplateUpdateWithWhereUniqueWithoutTenantInput | Prisma.DocumentTemplateUpdateWithWhereUniqueWithoutTenantInput[];
512
+ updateMany?: Prisma.DocumentTemplateUpdateManyWithWhereWithoutTenantInput | Prisma.DocumentTemplateUpdateManyWithWhereWithoutTenantInput[];
513
+ deleteMany?: Prisma.DocumentTemplateScalarWhereInput | Prisma.DocumentTemplateScalarWhereInput[];
514
+ };
515
+ export type DocumentTemplateUncheckedUpdateManyWithoutTenantNestedInput = {
516
+ create?: Prisma.XOR<Prisma.DocumentTemplateCreateWithoutTenantInput, Prisma.DocumentTemplateUncheckedCreateWithoutTenantInput> | Prisma.DocumentTemplateCreateWithoutTenantInput[] | Prisma.DocumentTemplateUncheckedCreateWithoutTenantInput[];
517
+ connectOrCreate?: Prisma.DocumentTemplateCreateOrConnectWithoutTenantInput | Prisma.DocumentTemplateCreateOrConnectWithoutTenantInput[];
518
+ upsert?: Prisma.DocumentTemplateUpsertWithWhereUniqueWithoutTenantInput | Prisma.DocumentTemplateUpsertWithWhereUniqueWithoutTenantInput[];
519
+ createMany?: Prisma.DocumentTemplateCreateManyTenantInputEnvelope;
520
+ set?: Prisma.DocumentTemplateWhereUniqueInput | Prisma.DocumentTemplateWhereUniqueInput[];
521
+ disconnect?: Prisma.DocumentTemplateWhereUniqueInput | Prisma.DocumentTemplateWhereUniqueInput[];
522
+ delete?: Prisma.DocumentTemplateWhereUniqueInput | Prisma.DocumentTemplateWhereUniqueInput[];
523
+ connect?: Prisma.DocumentTemplateWhereUniqueInput | Prisma.DocumentTemplateWhereUniqueInput[];
524
+ update?: Prisma.DocumentTemplateUpdateWithWhereUniqueWithoutTenantInput | Prisma.DocumentTemplateUpdateWithWhereUniqueWithoutTenantInput[];
525
+ updateMany?: Prisma.DocumentTemplateUpdateManyWithWhereWithoutTenantInput | Prisma.DocumentTemplateUpdateManyWithWhereWithoutTenantInput[];
526
+ deleteMany?: Prisma.DocumentTemplateScalarWhereInput | Prisma.DocumentTemplateScalarWhereInput[];
527
+ };
528
+ export type DocumentTemplateCreateNestedOneWithoutOfferLettersInput = {
529
+ create?: Prisma.XOR<Prisma.DocumentTemplateCreateWithoutOfferLettersInput, Prisma.DocumentTemplateUncheckedCreateWithoutOfferLettersInput>;
530
+ connectOrCreate?: Prisma.DocumentTemplateCreateOrConnectWithoutOfferLettersInput;
531
+ connect?: Prisma.DocumentTemplateWhereUniqueInput;
532
+ };
533
+ export type DocumentTemplateUpdateOneRequiredWithoutOfferLettersNestedInput = {
534
+ create?: Prisma.XOR<Prisma.DocumentTemplateCreateWithoutOfferLettersInput, Prisma.DocumentTemplateUncheckedCreateWithoutOfferLettersInput>;
535
+ connectOrCreate?: Prisma.DocumentTemplateCreateOrConnectWithoutOfferLettersInput;
536
+ upsert?: Prisma.DocumentTemplateUpsertWithoutOfferLettersInput;
537
+ connect?: Prisma.DocumentTemplateWhereUniqueInput;
538
+ update?: Prisma.XOR<Prisma.XOR<Prisma.DocumentTemplateUpdateToOneWithWhereWithoutOfferLettersInput, Prisma.DocumentTemplateUpdateWithoutOfferLettersInput>, Prisma.DocumentTemplateUncheckedUpdateWithoutOfferLettersInput>;
539
+ };
540
+ export type DocumentTemplateCreateWithoutTenantInput = {
541
+ id?: string;
542
+ name: string;
543
+ code: string;
544
+ description?: string | null;
545
+ version?: number;
546
+ htmlTemplate: string;
547
+ cssStyles?: string | null;
548
+ mergeFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
549
+ isActive?: boolean;
550
+ isDefault?: boolean;
551
+ createdAt?: Date | string;
552
+ updatedAt?: Date | string;
553
+ offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutTemplateInput;
554
+ };
555
+ export type DocumentTemplateUncheckedCreateWithoutTenantInput = {
556
+ id?: string;
557
+ name: string;
558
+ code: string;
559
+ description?: string | null;
560
+ version?: number;
561
+ htmlTemplate: string;
562
+ cssStyles?: string | null;
563
+ mergeFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
564
+ isActive?: boolean;
565
+ isDefault?: boolean;
566
+ createdAt?: Date | string;
567
+ updatedAt?: Date | string;
568
+ offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutTemplateInput;
569
+ };
570
+ export type DocumentTemplateCreateOrConnectWithoutTenantInput = {
571
+ where: Prisma.DocumentTemplateWhereUniqueInput;
572
+ create: Prisma.XOR<Prisma.DocumentTemplateCreateWithoutTenantInput, Prisma.DocumentTemplateUncheckedCreateWithoutTenantInput>;
573
+ };
574
+ export type DocumentTemplateCreateManyTenantInputEnvelope = {
575
+ data: Prisma.DocumentTemplateCreateManyTenantInput | Prisma.DocumentTemplateCreateManyTenantInput[];
576
+ skipDuplicates?: boolean;
577
+ };
578
+ export type DocumentTemplateUpsertWithWhereUniqueWithoutTenantInput = {
579
+ where: Prisma.DocumentTemplateWhereUniqueInput;
580
+ update: Prisma.XOR<Prisma.DocumentTemplateUpdateWithoutTenantInput, Prisma.DocumentTemplateUncheckedUpdateWithoutTenantInput>;
581
+ create: Prisma.XOR<Prisma.DocumentTemplateCreateWithoutTenantInput, Prisma.DocumentTemplateUncheckedCreateWithoutTenantInput>;
582
+ };
583
+ export type DocumentTemplateUpdateWithWhereUniqueWithoutTenantInput = {
584
+ where: Prisma.DocumentTemplateWhereUniqueInput;
585
+ data: Prisma.XOR<Prisma.DocumentTemplateUpdateWithoutTenantInput, Prisma.DocumentTemplateUncheckedUpdateWithoutTenantInput>;
586
+ };
587
+ export type DocumentTemplateUpdateManyWithWhereWithoutTenantInput = {
588
+ where: Prisma.DocumentTemplateScalarWhereInput;
589
+ data: Prisma.XOR<Prisma.DocumentTemplateUpdateManyMutationInput, Prisma.DocumentTemplateUncheckedUpdateManyWithoutTenantInput>;
590
+ };
591
+ export type DocumentTemplateScalarWhereInput = {
592
+ AND?: Prisma.DocumentTemplateScalarWhereInput | Prisma.DocumentTemplateScalarWhereInput[];
593
+ OR?: Prisma.DocumentTemplateScalarWhereInput[];
594
+ NOT?: Prisma.DocumentTemplateScalarWhereInput | Prisma.DocumentTemplateScalarWhereInput[];
595
+ id?: Prisma.StringFilter<"DocumentTemplate"> | string;
596
+ tenantId?: Prisma.StringFilter<"DocumentTemplate"> | string;
597
+ name?: Prisma.StringFilter<"DocumentTemplate"> | string;
598
+ code?: Prisma.StringFilter<"DocumentTemplate"> | string;
599
+ description?: Prisma.StringNullableFilter<"DocumentTemplate"> | string | null;
600
+ version?: Prisma.IntFilter<"DocumentTemplate"> | number;
601
+ htmlTemplate?: Prisma.StringFilter<"DocumentTemplate"> | string;
602
+ cssStyles?: Prisma.StringNullableFilter<"DocumentTemplate"> | string | null;
603
+ mergeFields?: Prisma.JsonNullableFilter<"DocumentTemplate">;
604
+ isActive?: Prisma.BoolFilter<"DocumentTemplate"> | boolean;
605
+ isDefault?: Prisma.BoolFilter<"DocumentTemplate"> | boolean;
606
+ createdAt?: Prisma.DateTimeFilter<"DocumentTemplate"> | Date | string;
607
+ updatedAt?: Prisma.DateTimeFilter<"DocumentTemplate"> | Date | string;
608
+ };
609
+ export type DocumentTemplateCreateWithoutOfferLettersInput = {
610
+ id?: string;
611
+ name: string;
612
+ code: string;
613
+ description?: string | null;
614
+ version?: number;
615
+ htmlTemplate: string;
616
+ cssStyles?: string | null;
617
+ mergeFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
618
+ isActive?: boolean;
619
+ isDefault?: boolean;
620
+ createdAt?: Date | string;
621
+ updatedAt?: Date | string;
622
+ tenant: Prisma.TenantCreateNestedOneWithoutDocumentTemplatesInput;
623
+ };
624
+ export type DocumentTemplateUncheckedCreateWithoutOfferLettersInput = {
625
+ id?: string;
626
+ tenantId: string;
627
+ name: string;
628
+ code: string;
629
+ description?: string | null;
630
+ version?: number;
631
+ htmlTemplate: string;
632
+ cssStyles?: string | null;
633
+ mergeFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
634
+ isActive?: boolean;
635
+ isDefault?: boolean;
636
+ createdAt?: Date | string;
637
+ updatedAt?: Date | string;
638
+ };
639
+ export type DocumentTemplateCreateOrConnectWithoutOfferLettersInput = {
640
+ where: Prisma.DocumentTemplateWhereUniqueInput;
641
+ create: Prisma.XOR<Prisma.DocumentTemplateCreateWithoutOfferLettersInput, Prisma.DocumentTemplateUncheckedCreateWithoutOfferLettersInput>;
642
+ };
643
+ export type DocumentTemplateUpsertWithoutOfferLettersInput = {
644
+ update: Prisma.XOR<Prisma.DocumentTemplateUpdateWithoutOfferLettersInput, Prisma.DocumentTemplateUncheckedUpdateWithoutOfferLettersInput>;
645
+ create: Prisma.XOR<Prisma.DocumentTemplateCreateWithoutOfferLettersInput, Prisma.DocumentTemplateUncheckedCreateWithoutOfferLettersInput>;
646
+ where?: Prisma.DocumentTemplateWhereInput;
647
+ };
648
+ export type DocumentTemplateUpdateToOneWithWhereWithoutOfferLettersInput = {
649
+ where?: Prisma.DocumentTemplateWhereInput;
650
+ data: Prisma.XOR<Prisma.DocumentTemplateUpdateWithoutOfferLettersInput, Prisma.DocumentTemplateUncheckedUpdateWithoutOfferLettersInput>;
651
+ };
652
+ export type DocumentTemplateUpdateWithoutOfferLettersInput = {
653
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
654
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
655
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
656
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
657
+ version?: Prisma.IntFieldUpdateOperationsInput | number;
658
+ htmlTemplate?: Prisma.StringFieldUpdateOperationsInput | string;
659
+ cssStyles?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
660
+ mergeFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
661
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
662
+ isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean;
663
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
664
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
665
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutDocumentTemplatesNestedInput;
666
+ };
667
+ export type DocumentTemplateUncheckedUpdateWithoutOfferLettersInput = {
668
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
669
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
670
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
671
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
672
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
673
+ version?: Prisma.IntFieldUpdateOperationsInput | number;
674
+ htmlTemplate?: Prisma.StringFieldUpdateOperationsInput | string;
675
+ cssStyles?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
676
+ mergeFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
677
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
678
+ isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean;
679
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
680
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
681
+ };
682
+ export type DocumentTemplateCreateManyTenantInput = {
683
+ id?: string;
684
+ name: string;
685
+ code: string;
686
+ description?: string | null;
687
+ version?: number;
688
+ htmlTemplate: string;
689
+ cssStyles?: string | null;
690
+ mergeFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
691
+ isActive?: boolean;
692
+ isDefault?: boolean;
693
+ createdAt?: Date | string;
694
+ updatedAt?: Date | string;
695
+ };
696
+ export type DocumentTemplateUpdateWithoutTenantInput = {
697
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
698
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
699
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
700
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
701
+ version?: Prisma.IntFieldUpdateOperationsInput | number;
702
+ htmlTemplate?: Prisma.StringFieldUpdateOperationsInput | string;
703
+ cssStyles?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
704
+ mergeFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
705
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
706
+ isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean;
707
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
708
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
709
+ offerLetters?: Prisma.OfferLetterUpdateManyWithoutTemplateNestedInput;
710
+ };
711
+ export type DocumentTemplateUncheckedUpdateWithoutTenantInput = {
712
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
713
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
714
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
715
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
716
+ version?: Prisma.IntFieldUpdateOperationsInput | number;
717
+ htmlTemplate?: Prisma.StringFieldUpdateOperationsInput | string;
718
+ cssStyles?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
719
+ mergeFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
720
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
721
+ isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean;
722
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
723
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
724
+ offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutTemplateNestedInput;
725
+ };
726
+ export type DocumentTemplateUncheckedUpdateManyWithoutTenantInput = {
727
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
728
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
729
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
730
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
731
+ version?: Prisma.IntFieldUpdateOperationsInput | number;
732
+ htmlTemplate?: Prisma.StringFieldUpdateOperationsInput | string;
733
+ cssStyles?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
734
+ mergeFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
735
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
736
+ isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean;
737
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
738
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
739
+ };
740
+ /**
741
+ * Count Type DocumentTemplateCountOutputType
742
+ */
743
+ export type DocumentTemplateCountOutputType = {
744
+ offerLetters: number;
745
+ };
746
+ export type DocumentTemplateCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
747
+ offerLetters?: boolean | DocumentTemplateCountOutputTypeCountOfferLettersArgs;
748
+ };
749
+ /**
750
+ * DocumentTemplateCountOutputType without action
751
+ */
752
+ export type DocumentTemplateCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
753
+ /**
754
+ * Select specific fields to fetch from the DocumentTemplateCountOutputType
755
+ */
756
+ select?: Prisma.DocumentTemplateCountOutputTypeSelect<ExtArgs> | null;
757
+ };
758
+ /**
759
+ * DocumentTemplateCountOutputType without action
760
+ */
761
+ export type DocumentTemplateCountOutputTypeCountOfferLettersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
762
+ where?: Prisma.OfferLetterWhereInput;
763
+ };
764
+ export type DocumentTemplateSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
765
+ id?: boolean;
766
+ tenantId?: boolean;
767
+ name?: boolean;
768
+ code?: boolean;
769
+ description?: boolean;
770
+ version?: boolean;
771
+ htmlTemplate?: boolean;
772
+ cssStyles?: boolean;
773
+ mergeFields?: boolean;
774
+ isActive?: boolean;
775
+ isDefault?: boolean;
776
+ createdAt?: boolean;
777
+ updatedAt?: boolean;
778
+ tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
779
+ offerLetters?: boolean | Prisma.DocumentTemplate$offerLettersArgs<ExtArgs>;
780
+ _count?: boolean | Prisma.DocumentTemplateCountOutputTypeDefaultArgs<ExtArgs>;
781
+ }, ExtArgs["result"]["documentTemplate"]>;
782
+ export type DocumentTemplateSelectScalar = {
783
+ id?: boolean;
784
+ tenantId?: boolean;
785
+ name?: boolean;
786
+ code?: boolean;
787
+ description?: boolean;
788
+ version?: boolean;
789
+ htmlTemplate?: boolean;
790
+ cssStyles?: boolean;
791
+ mergeFields?: boolean;
792
+ isActive?: boolean;
793
+ isDefault?: boolean;
794
+ createdAt?: boolean;
795
+ updatedAt?: boolean;
796
+ };
797
+ export type DocumentTemplateOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "name" | "code" | "description" | "version" | "htmlTemplate" | "cssStyles" | "mergeFields" | "isActive" | "isDefault" | "createdAt" | "updatedAt", ExtArgs["result"]["documentTemplate"]>;
798
+ export type DocumentTemplateInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
799
+ tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
800
+ offerLetters?: boolean | Prisma.DocumentTemplate$offerLettersArgs<ExtArgs>;
801
+ _count?: boolean | Prisma.DocumentTemplateCountOutputTypeDefaultArgs<ExtArgs>;
802
+ };
803
+ export type $DocumentTemplatePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
804
+ name: "DocumentTemplate";
805
+ objects: {
806
+ tenant: Prisma.$TenantPayload<ExtArgs>;
807
+ offerLetters: Prisma.$OfferLetterPayload<ExtArgs>[];
808
+ };
809
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
810
+ id: string;
811
+ tenantId: string;
812
+ name: string;
813
+ code: string;
814
+ description: string | null;
815
+ version: number;
816
+ htmlTemplate: string;
817
+ cssStyles: string | null;
818
+ mergeFields: runtime.JsonValue | null;
819
+ isActive: boolean;
820
+ isDefault: boolean;
821
+ createdAt: Date;
822
+ updatedAt: Date;
823
+ }, ExtArgs["result"]["documentTemplate"]>;
824
+ composites: {};
825
+ };
826
+ export type DocumentTemplateGetPayload<S extends boolean | null | undefined | DocumentTemplateDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$DocumentTemplatePayload, S>;
827
+ export type DocumentTemplateCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<DocumentTemplateFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
828
+ select?: DocumentTemplateCountAggregateInputType | true;
829
+ };
830
+ export interface DocumentTemplateDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
831
+ [K: symbol]: {
832
+ types: Prisma.TypeMap<ExtArgs>['model']['DocumentTemplate'];
833
+ meta: {
834
+ name: 'DocumentTemplate';
835
+ };
836
+ };
837
+ /**
838
+ * Find zero or one DocumentTemplate that matches the filter.
839
+ * @param {DocumentTemplateFindUniqueArgs} args - Arguments to find a DocumentTemplate
840
+ * @example
841
+ * // Get one DocumentTemplate
842
+ * const documentTemplate = await prisma.documentTemplate.findUnique({
843
+ * where: {
844
+ * // ... provide filter here
845
+ * }
846
+ * })
847
+ */
848
+ findUnique<T extends DocumentTemplateFindUniqueArgs>(args: Prisma.SelectSubset<T, DocumentTemplateFindUniqueArgs<ExtArgs>>): Prisma.Prisma__DocumentTemplateClient<runtime.Types.Result.GetResult<Prisma.$DocumentTemplatePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
849
+ /**
850
+ * Find one DocumentTemplate that matches the filter or throw an error with `error.code='P2025'`
851
+ * if no matches were found.
852
+ * @param {DocumentTemplateFindUniqueOrThrowArgs} args - Arguments to find a DocumentTemplate
853
+ * @example
854
+ * // Get one DocumentTemplate
855
+ * const documentTemplate = await prisma.documentTemplate.findUniqueOrThrow({
856
+ * where: {
857
+ * // ... provide filter here
858
+ * }
859
+ * })
860
+ */
861
+ findUniqueOrThrow<T extends DocumentTemplateFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, DocumentTemplateFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__DocumentTemplateClient<runtime.Types.Result.GetResult<Prisma.$DocumentTemplatePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
862
+ /**
863
+ * Find the first DocumentTemplate that matches the filter.
864
+ * Note, that providing `undefined` is treated as the value not being there.
865
+ * Read more here: https://pris.ly/d/null-undefined
866
+ * @param {DocumentTemplateFindFirstArgs} args - Arguments to find a DocumentTemplate
867
+ * @example
868
+ * // Get one DocumentTemplate
869
+ * const documentTemplate = await prisma.documentTemplate.findFirst({
870
+ * where: {
871
+ * // ... provide filter here
872
+ * }
873
+ * })
874
+ */
875
+ findFirst<T extends DocumentTemplateFindFirstArgs>(args?: Prisma.SelectSubset<T, DocumentTemplateFindFirstArgs<ExtArgs>>): Prisma.Prisma__DocumentTemplateClient<runtime.Types.Result.GetResult<Prisma.$DocumentTemplatePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
876
+ /**
877
+ * Find the first DocumentTemplate that matches the filter or
878
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
879
+ * Note, that providing `undefined` is treated as the value not being there.
880
+ * Read more here: https://pris.ly/d/null-undefined
881
+ * @param {DocumentTemplateFindFirstOrThrowArgs} args - Arguments to find a DocumentTemplate
882
+ * @example
883
+ * // Get one DocumentTemplate
884
+ * const documentTemplate = await prisma.documentTemplate.findFirstOrThrow({
885
+ * where: {
886
+ * // ... provide filter here
887
+ * }
888
+ * })
889
+ */
890
+ findFirstOrThrow<T extends DocumentTemplateFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, DocumentTemplateFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__DocumentTemplateClient<runtime.Types.Result.GetResult<Prisma.$DocumentTemplatePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
891
+ /**
892
+ * Find zero or more DocumentTemplates that matches the filter.
893
+ * Note, that providing `undefined` is treated as the value not being there.
894
+ * Read more here: https://pris.ly/d/null-undefined
895
+ * @param {DocumentTemplateFindManyArgs} args - Arguments to filter and select certain fields only.
896
+ * @example
897
+ * // Get all DocumentTemplates
898
+ * const documentTemplates = await prisma.documentTemplate.findMany()
899
+ *
900
+ * // Get first 10 DocumentTemplates
901
+ * const documentTemplates = await prisma.documentTemplate.findMany({ take: 10 })
902
+ *
903
+ * // Only select the `id`
904
+ * const documentTemplateWithIdOnly = await prisma.documentTemplate.findMany({ select: { id: true } })
905
+ *
906
+ */
907
+ findMany<T extends DocumentTemplateFindManyArgs>(args?: Prisma.SelectSubset<T, DocumentTemplateFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DocumentTemplatePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
908
+ /**
909
+ * Create a DocumentTemplate.
910
+ * @param {DocumentTemplateCreateArgs} args - Arguments to create a DocumentTemplate.
911
+ * @example
912
+ * // Create one DocumentTemplate
913
+ * const DocumentTemplate = await prisma.documentTemplate.create({
914
+ * data: {
915
+ * // ... data to create a DocumentTemplate
916
+ * }
917
+ * })
918
+ *
919
+ */
920
+ create<T extends DocumentTemplateCreateArgs>(args: Prisma.SelectSubset<T, DocumentTemplateCreateArgs<ExtArgs>>): Prisma.Prisma__DocumentTemplateClient<runtime.Types.Result.GetResult<Prisma.$DocumentTemplatePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
921
+ /**
922
+ * Create many DocumentTemplates.
923
+ * @param {DocumentTemplateCreateManyArgs} args - Arguments to create many DocumentTemplates.
924
+ * @example
925
+ * // Create many DocumentTemplates
926
+ * const documentTemplate = await prisma.documentTemplate.createMany({
927
+ * data: [
928
+ * // ... provide data here
929
+ * ]
930
+ * })
931
+ *
932
+ */
933
+ createMany<T extends DocumentTemplateCreateManyArgs>(args?: Prisma.SelectSubset<T, DocumentTemplateCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
934
+ /**
935
+ * Delete a DocumentTemplate.
936
+ * @param {DocumentTemplateDeleteArgs} args - Arguments to delete one DocumentTemplate.
937
+ * @example
938
+ * // Delete one DocumentTemplate
939
+ * const DocumentTemplate = await prisma.documentTemplate.delete({
940
+ * where: {
941
+ * // ... filter to delete one DocumentTemplate
942
+ * }
943
+ * })
944
+ *
945
+ */
946
+ delete<T extends DocumentTemplateDeleteArgs>(args: Prisma.SelectSubset<T, DocumentTemplateDeleteArgs<ExtArgs>>): Prisma.Prisma__DocumentTemplateClient<runtime.Types.Result.GetResult<Prisma.$DocumentTemplatePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
947
+ /**
948
+ * Update one DocumentTemplate.
949
+ * @param {DocumentTemplateUpdateArgs} args - Arguments to update one DocumentTemplate.
950
+ * @example
951
+ * // Update one DocumentTemplate
952
+ * const documentTemplate = await prisma.documentTemplate.update({
953
+ * where: {
954
+ * // ... provide filter here
955
+ * },
956
+ * data: {
957
+ * // ... provide data here
958
+ * }
959
+ * })
960
+ *
961
+ */
962
+ update<T extends DocumentTemplateUpdateArgs>(args: Prisma.SelectSubset<T, DocumentTemplateUpdateArgs<ExtArgs>>): Prisma.Prisma__DocumentTemplateClient<runtime.Types.Result.GetResult<Prisma.$DocumentTemplatePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
963
+ /**
964
+ * Delete zero or more DocumentTemplates.
965
+ * @param {DocumentTemplateDeleteManyArgs} args - Arguments to filter DocumentTemplates to delete.
966
+ * @example
967
+ * // Delete a few DocumentTemplates
968
+ * const { count } = await prisma.documentTemplate.deleteMany({
969
+ * where: {
970
+ * // ... provide filter here
971
+ * }
972
+ * })
973
+ *
974
+ */
975
+ deleteMany<T extends DocumentTemplateDeleteManyArgs>(args?: Prisma.SelectSubset<T, DocumentTemplateDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
976
+ /**
977
+ * Update zero or more DocumentTemplates.
978
+ * Note, that providing `undefined` is treated as the value not being there.
979
+ * Read more here: https://pris.ly/d/null-undefined
980
+ * @param {DocumentTemplateUpdateManyArgs} args - Arguments to update one or more rows.
981
+ * @example
982
+ * // Update many DocumentTemplates
983
+ * const documentTemplate = await prisma.documentTemplate.updateMany({
984
+ * where: {
985
+ * // ... provide filter here
986
+ * },
987
+ * data: {
988
+ * // ... provide data here
989
+ * }
990
+ * })
991
+ *
992
+ */
993
+ updateMany<T extends DocumentTemplateUpdateManyArgs>(args: Prisma.SelectSubset<T, DocumentTemplateUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
994
+ /**
995
+ * Create or update one DocumentTemplate.
996
+ * @param {DocumentTemplateUpsertArgs} args - Arguments to update or create a DocumentTemplate.
997
+ * @example
998
+ * // Update or create a DocumentTemplate
999
+ * const documentTemplate = await prisma.documentTemplate.upsert({
1000
+ * create: {
1001
+ * // ... data to create a DocumentTemplate
1002
+ * },
1003
+ * update: {
1004
+ * // ... in case it already exists, update
1005
+ * },
1006
+ * where: {
1007
+ * // ... the filter for the DocumentTemplate we want to update
1008
+ * }
1009
+ * })
1010
+ */
1011
+ upsert<T extends DocumentTemplateUpsertArgs>(args: Prisma.SelectSubset<T, DocumentTemplateUpsertArgs<ExtArgs>>): Prisma.Prisma__DocumentTemplateClient<runtime.Types.Result.GetResult<Prisma.$DocumentTemplatePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1012
+ /**
1013
+ * Count the number of DocumentTemplates.
1014
+ * Note, that providing `undefined` is treated as the value not being there.
1015
+ * Read more here: https://pris.ly/d/null-undefined
1016
+ * @param {DocumentTemplateCountArgs} args - Arguments to filter DocumentTemplates to count.
1017
+ * @example
1018
+ * // Count the number of DocumentTemplates
1019
+ * const count = await prisma.documentTemplate.count({
1020
+ * where: {
1021
+ * // ... the filter for the DocumentTemplates we want to count
1022
+ * }
1023
+ * })
1024
+ **/
1025
+ count<T extends DocumentTemplateCountArgs>(args?: Prisma.Subset<T, DocumentTemplateCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], DocumentTemplateCountAggregateOutputType> : number>;
1026
+ /**
1027
+ * Allows you to perform aggregations operations on a DocumentTemplate.
1028
+ * Note, that providing `undefined` is treated as the value not being there.
1029
+ * Read more here: https://pris.ly/d/null-undefined
1030
+ * @param {DocumentTemplateAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1031
+ * @example
1032
+ * // Ordered by age ascending
1033
+ * // Where email contains prisma.io
1034
+ * // Limited to the 10 users
1035
+ * const aggregations = await prisma.user.aggregate({
1036
+ * _avg: {
1037
+ * age: true,
1038
+ * },
1039
+ * where: {
1040
+ * email: {
1041
+ * contains: "prisma.io",
1042
+ * },
1043
+ * },
1044
+ * orderBy: {
1045
+ * age: "asc",
1046
+ * },
1047
+ * take: 10,
1048
+ * })
1049
+ **/
1050
+ aggregate<T extends DocumentTemplateAggregateArgs>(args: Prisma.Subset<T, DocumentTemplateAggregateArgs>): Prisma.PrismaPromise<GetDocumentTemplateAggregateType<T>>;
1051
+ /**
1052
+ * Group by DocumentTemplate.
1053
+ * Note, that providing `undefined` is treated as the value not being there.
1054
+ * Read more here: https://pris.ly/d/null-undefined
1055
+ * @param {DocumentTemplateGroupByArgs} args - Group by arguments.
1056
+ * @example
1057
+ * // Group by city, order by createdAt, get count
1058
+ * const result = await prisma.user.groupBy({
1059
+ * by: ['city', 'createdAt'],
1060
+ * orderBy: {
1061
+ * createdAt: true
1062
+ * },
1063
+ * _count: {
1064
+ * _all: true
1065
+ * },
1066
+ * })
1067
+ *
1068
+ **/
1069
+ groupBy<T extends DocumentTemplateGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1070
+ orderBy: DocumentTemplateGroupByArgs['orderBy'];
1071
+ } : {
1072
+ orderBy?: DocumentTemplateGroupByArgs['orderBy'];
1073
+ }, 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 ? {
1074
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1075
+ Error,
1076
+ 'Field ',
1077
+ P,
1078
+ ` in "having" needs to be provided in "by"`
1079
+ ];
1080
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1081
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1082
+ }[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 ? {} : {
1083
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1084
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1085
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1086
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, DocumentTemplateGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetDocumentTemplateGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1087
+ /**
1088
+ * Fields of the DocumentTemplate model
1089
+ */
1090
+ readonly fields: DocumentTemplateFieldRefs;
1091
+ }
1092
+ /**
1093
+ * The delegate class that acts as a "Promise-like" for DocumentTemplate.
1094
+ * Why is this prefixed with `Prisma__`?
1095
+ * Because we want to prevent naming conflicts as mentioned in
1096
+ * https://github.com/prisma/prisma-client-js/issues/707
1097
+ */
1098
+ export interface Prisma__DocumentTemplateClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1099
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1100
+ 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>;
1101
+ offerLetters<T extends Prisma.DocumentTemplate$offerLettersArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DocumentTemplate$offerLettersArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OfferLetterPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1102
+ /**
1103
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1104
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1105
+ * @param onrejected The callback to execute when the Promise is rejected.
1106
+ * @returns A Promise for the completion of which ever callback is executed.
1107
+ */
1108
+ 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>;
1109
+ /**
1110
+ * Attaches a callback for only the rejection of the Promise.
1111
+ * @param onrejected The callback to execute when the Promise is rejected.
1112
+ * @returns A Promise for the completion of the callback.
1113
+ */
1114
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1115
+ /**
1116
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1117
+ * resolved value cannot be modified from the callback.
1118
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1119
+ * @returns A Promise for the completion of the callback.
1120
+ */
1121
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1122
+ }
1123
+ /**
1124
+ * Fields of the DocumentTemplate model
1125
+ */
1126
+ export interface DocumentTemplateFieldRefs {
1127
+ readonly id: Prisma.FieldRef<"DocumentTemplate", 'String'>;
1128
+ readonly tenantId: Prisma.FieldRef<"DocumentTemplate", 'String'>;
1129
+ readonly name: Prisma.FieldRef<"DocumentTemplate", 'String'>;
1130
+ readonly code: Prisma.FieldRef<"DocumentTemplate", 'String'>;
1131
+ readonly description: Prisma.FieldRef<"DocumentTemplate", 'String'>;
1132
+ readonly version: Prisma.FieldRef<"DocumentTemplate", 'Int'>;
1133
+ readonly htmlTemplate: Prisma.FieldRef<"DocumentTemplate", 'String'>;
1134
+ readonly cssStyles: Prisma.FieldRef<"DocumentTemplate", 'String'>;
1135
+ readonly mergeFields: Prisma.FieldRef<"DocumentTemplate", 'Json'>;
1136
+ readonly isActive: Prisma.FieldRef<"DocumentTemplate", 'Boolean'>;
1137
+ readonly isDefault: Prisma.FieldRef<"DocumentTemplate", 'Boolean'>;
1138
+ readonly createdAt: Prisma.FieldRef<"DocumentTemplate", 'DateTime'>;
1139
+ readonly updatedAt: Prisma.FieldRef<"DocumentTemplate", 'DateTime'>;
1140
+ }
1141
+ /**
1142
+ * DocumentTemplate findUnique
1143
+ */
1144
+ export type DocumentTemplateFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1145
+ /**
1146
+ * Select specific fields to fetch from the DocumentTemplate
1147
+ */
1148
+ select?: Prisma.DocumentTemplateSelect<ExtArgs> | null;
1149
+ /**
1150
+ * Omit specific fields from the DocumentTemplate
1151
+ */
1152
+ omit?: Prisma.DocumentTemplateOmit<ExtArgs> | null;
1153
+ /**
1154
+ * Choose, which related nodes to fetch as well
1155
+ */
1156
+ include?: Prisma.DocumentTemplateInclude<ExtArgs> | null;
1157
+ /**
1158
+ * Filter, which DocumentTemplate to fetch.
1159
+ */
1160
+ where: Prisma.DocumentTemplateWhereUniqueInput;
1161
+ };
1162
+ /**
1163
+ * DocumentTemplate findUniqueOrThrow
1164
+ */
1165
+ export type DocumentTemplateFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1166
+ /**
1167
+ * Select specific fields to fetch from the DocumentTemplate
1168
+ */
1169
+ select?: Prisma.DocumentTemplateSelect<ExtArgs> | null;
1170
+ /**
1171
+ * Omit specific fields from the DocumentTemplate
1172
+ */
1173
+ omit?: Prisma.DocumentTemplateOmit<ExtArgs> | null;
1174
+ /**
1175
+ * Choose, which related nodes to fetch as well
1176
+ */
1177
+ include?: Prisma.DocumentTemplateInclude<ExtArgs> | null;
1178
+ /**
1179
+ * Filter, which DocumentTemplate to fetch.
1180
+ */
1181
+ where: Prisma.DocumentTemplateWhereUniqueInput;
1182
+ };
1183
+ /**
1184
+ * DocumentTemplate findFirst
1185
+ */
1186
+ export type DocumentTemplateFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1187
+ /**
1188
+ * Select specific fields to fetch from the DocumentTemplate
1189
+ */
1190
+ select?: Prisma.DocumentTemplateSelect<ExtArgs> | null;
1191
+ /**
1192
+ * Omit specific fields from the DocumentTemplate
1193
+ */
1194
+ omit?: Prisma.DocumentTemplateOmit<ExtArgs> | null;
1195
+ /**
1196
+ * Choose, which related nodes to fetch as well
1197
+ */
1198
+ include?: Prisma.DocumentTemplateInclude<ExtArgs> | null;
1199
+ /**
1200
+ * Filter, which DocumentTemplate to fetch.
1201
+ */
1202
+ where?: Prisma.DocumentTemplateWhereInput;
1203
+ /**
1204
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1205
+ *
1206
+ * Determine the order of DocumentTemplates to fetch.
1207
+ */
1208
+ orderBy?: Prisma.DocumentTemplateOrderByWithRelationInput | Prisma.DocumentTemplateOrderByWithRelationInput[];
1209
+ /**
1210
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1211
+ *
1212
+ * Sets the position for searching for DocumentTemplates.
1213
+ */
1214
+ cursor?: Prisma.DocumentTemplateWhereUniqueInput;
1215
+ /**
1216
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1217
+ *
1218
+ * Take `±n` DocumentTemplates from the position of the cursor.
1219
+ */
1220
+ take?: number;
1221
+ /**
1222
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1223
+ *
1224
+ * Skip the first `n` DocumentTemplates.
1225
+ */
1226
+ skip?: number;
1227
+ /**
1228
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1229
+ *
1230
+ * Filter by unique combinations of DocumentTemplates.
1231
+ */
1232
+ distinct?: Prisma.DocumentTemplateScalarFieldEnum | Prisma.DocumentTemplateScalarFieldEnum[];
1233
+ };
1234
+ /**
1235
+ * DocumentTemplate findFirstOrThrow
1236
+ */
1237
+ export type DocumentTemplateFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1238
+ /**
1239
+ * Select specific fields to fetch from the DocumentTemplate
1240
+ */
1241
+ select?: Prisma.DocumentTemplateSelect<ExtArgs> | null;
1242
+ /**
1243
+ * Omit specific fields from the DocumentTemplate
1244
+ */
1245
+ omit?: Prisma.DocumentTemplateOmit<ExtArgs> | null;
1246
+ /**
1247
+ * Choose, which related nodes to fetch as well
1248
+ */
1249
+ include?: Prisma.DocumentTemplateInclude<ExtArgs> | null;
1250
+ /**
1251
+ * Filter, which DocumentTemplate to fetch.
1252
+ */
1253
+ where?: Prisma.DocumentTemplateWhereInput;
1254
+ /**
1255
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1256
+ *
1257
+ * Determine the order of DocumentTemplates to fetch.
1258
+ */
1259
+ orderBy?: Prisma.DocumentTemplateOrderByWithRelationInput | Prisma.DocumentTemplateOrderByWithRelationInput[];
1260
+ /**
1261
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1262
+ *
1263
+ * Sets the position for searching for DocumentTemplates.
1264
+ */
1265
+ cursor?: Prisma.DocumentTemplateWhereUniqueInput;
1266
+ /**
1267
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1268
+ *
1269
+ * Take `±n` DocumentTemplates from the position of the cursor.
1270
+ */
1271
+ take?: number;
1272
+ /**
1273
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1274
+ *
1275
+ * Skip the first `n` DocumentTemplates.
1276
+ */
1277
+ skip?: number;
1278
+ /**
1279
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1280
+ *
1281
+ * Filter by unique combinations of DocumentTemplates.
1282
+ */
1283
+ distinct?: Prisma.DocumentTemplateScalarFieldEnum | Prisma.DocumentTemplateScalarFieldEnum[];
1284
+ };
1285
+ /**
1286
+ * DocumentTemplate findMany
1287
+ */
1288
+ export type DocumentTemplateFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1289
+ /**
1290
+ * Select specific fields to fetch from the DocumentTemplate
1291
+ */
1292
+ select?: Prisma.DocumentTemplateSelect<ExtArgs> | null;
1293
+ /**
1294
+ * Omit specific fields from the DocumentTemplate
1295
+ */
1296
+ omit?: Prisma.DocumentTemplateOmit<ExtArgs> | null;
1297
+ /**
1298
+ * Choose, which related nodes to fetch as well
1299
+ */
1300
+ include?: Prisma.DocumentTemplateInclude<ExtArgs> | null;
1301
+ /**
1302
+ * Filter, which DocumentTemplates to fetch.
1303
+ */
1304
+ where?: Prisma.DocumentTemplateWhereInput;
1305
+ /**
1306
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1307
+ *
1308
+ * Determine the order of DocumentTemplates to fetch.
1309
+ */
1310
+ orderBy?: Prisma.DocumentTemplateOrderByWithRelationInput | Prisma.DocumentTemplateOrderByWithRelationInput[];
1311
+ /**
1312
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1313
+ *
1314
+ * Sets the position for listing DocumentTemplates.
1315
+ */
1316
+ cursor?: Prisma.DocumentTemplateWhereUniqueInput;
1317
+ /**
1318
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1319
+ *
1320
+ * Take `±n` DocumentTemplates from the position of the cursor.
1321
+ */
1322
+ take?: number;
1323
+ /**
1324
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1325
+ *
1326
+ * Skip the first `n` DocumentTemplates.
1327
+ */
1328
+ skip?: number;
1329
+ distinct?: Prisma.DocumentTemplateScalarFieldEnum | Prisma.DocumentTemplateScalarFieldEnum[];
1330
+ };
1331
+ /**
1332
+ * DocumentTemplate create
1333
+ */
1334
+ export type DocumentTemplateCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1335
+ /**
1336
+ * Select specific fields to fetch from the DocumentTemplate
1337
+ */
1338
+ select?: Prisma.DocumentTemplateSelect<ExtArgs> | null;
1339
+ /**
1340
+ * Omit specific fields from the DocumentTemplate
1341
+ */
1342
+ omit?: Prisma.DocumentTemplateOmit<ExtArgs> | null;
1343
+ /**
1344
+ * Choose, which related nodes to fetch as well
1345
+ */
1346
+ include?: Prisma.DocumentTemplateInclude<ExtArgs> | null;
1347
+ /**
1348
+ * The data needed to create a DocumentTemplate.
1349
+ */
1350
+ data: Prisma.XOR<Prisma.DocumentTemplateCreateInput, Prisma.DocumentTemplateUncheckedCreateInput>;
1351
+ };
1352
+ /**
1353
+ * DocumentTemplate createMany
1354
+ */
1355
+ export type DocumentTemplateCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1356
+ /**
1357
+ * The data used to create many DocumentTemplates.
1358
+ */
1359
+ data: Prisma.DocumentTemplateCreateManyInput | Prisma.DocumentTemplateCreateManyInput[];
1360
+ skipDuplicates?: boolean;
1361
+ };
1362
+ /**
1363
+ * DocumentTemplate update
1364
+ */
1365
+ export type DocumentTemplateUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1366
+ /**
1367
+ * Select specific fields to fetch from the DocumentTemplate
1368
+ */
1369
+ select?: Prisma.DocumentTemplateSelect<ExtArgs> | null;
1370
+ /**
1371
+ * Omit specific fields from the DocumentTemplate
1372
+ */
1373
+ omit?: Prisma.DocumentTemplateOmit<ExtArgs> | null;
1374
+ /**
1375
+ * Choose, which related nodes to fetch as well
1376
+ */
1377
+ include?: Prisma.DocumentTemplateInclude<ExtArgs> | null;
1378
+ /**
1379
+ * The data needed to update a DocumentTemplate.
1380
+ */
1381
+ data: Prisma.XOR<Prisma.DocumentTemplateUpdateInput, Prisma.DocumentTemplateUncheckedUpdateInput>;
1382
+ /**
1383
+ * Choose, which DocumentTemplate to update.
1384
+ */
1385
+ where: Prisma.DocumentTemplateWhereUniqueInput;
1386
+ };
1387
+ /**
1388
+ * DocumentTemplate updateMany
1389
+ */
1390
+ export type DocumentTemplateUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1391
+ /**
1392
+ * The data used to update DocumentTemplates.
1393
+ */
1394
+ data: Prisma.XOR<Prisma.DocumentTemplateUpdateManyMutationInput, Prisma.DocumentTemplateUncheckedUpdateManyInput>;
1395
+ /**
1396
+ * Filter which DocumentTemplates to update
1397
+ */
1398
+ where?: Prisma.DocumentTemplateWhereInput;
1399
+ /**
1400
+ * Limit how many DocumentTemplates to update.
1401
+ */
1402
+ limit?: number;
1403
+ };
1404
+ /**
1405
+ * DocumentTemplate upsert
1406
+ */
1407
+ export type DocumentTemplateUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1408
+ /**
1409
+ * Select specific fields to fetch from the DocumentTemplate
1410
+ */
1411
+ select?: Prisma.DocumentTemplateSelect<ExtArgs> | null;
1412
+ /**
1413
+ * Omit specific fields from the DocumentTemplate
1414
+ */
1415
+ omit?: Prisma.DocumentTemplateOmit<ExtArgs> | null;
1416
+ /**
1417
+ * Choose, which related nodes to fetch as well
1418
+ */
1419
+ include?: Prisma.DocumentTemplateInclude<ExtArgs> | null;
1420
+ /**
1421
+ * The filter to search for the DocumentTemplate to update in case it exists.
1422
+ */
1423
+ where: Prisma.DocumentTemplateWhereUniqueInput;
1424
+ /**
1425
+ * In case the DocumentTemplate found by the `where` argument doesn't exist, create a new DocumentTemplate with this data.
1426
+ */
1427
+ create: Prisma.XOR<Prisma.DocumentTemplateCreateInput, Prisma.DocumentTemplateUncheckedCreateInput>;
1428
+ /**
1429
+ * In case the DocumentTemplate was found with the provided `where` argument, update it with this data.
1430
+ */
1431
+ update: Prisma.XOR<Prisma.DocumentTemplateUpdateInput, Prisma.DocumentTemplateUncheckedUpdateInput>;
1432
+ };
1433
+ /**
1434
+ * DocumentTemplate delete
1435
+ */
1436
+ export type DocumentTemplateDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1437
+ /**
1438
+ * Select specific fields to fetch from the DocumentTemplate
1439
+ */
1440
+ select?: Prisma.DocumentTemplateSelect<ExtArgs> | null;
1441
+ /**
1442
+ * Omit specific fields from the DocumentTemplate
1443
+ */
1444
+ omit?: Prisma.DocumentTemplateOmit<ExtArgs> | null;
1445
+ /**
1446
+ * Choose, which related nodes to fetch as well
1447
+ */
1448
+ include?: Prisma.DocumentTemplateInclude<ExtArgs> | null;
1449
+ /**
1450
+ * Filter which DocumentTemplate to delete.
1451
+ */
1452
+ where: Prisma.DocumentTemplateWhereUniqueInput;
1453
+ };
1454
+ /**
1455
+ * DocumentTemplate deleteMany
1456
+ */
1457
+ export type DocumentTemplateDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1458
+ /**
1459
+ * Filter which DocumentTemplates to delete
1460
+ */
1461
+ where?: Prisma.DocumentTemplateWhereInput;
1462
+ /**
1463
+ * Limit how many DocumentTemplates to delete.
1464
+ */
1465
+ limit?: number;
1466
+ };
1467
+ /**
1468
+ * DocumentTemplate.offerLetters
1469
+ */
1470
+ export type DocumentTemplate$offerLettersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1471
+ /**
1472
+ * Select specific fields to fetch from the OfferLetter
1473
+ */
1474
+ select?: Prisma.OfferLetterSelect<ExtArgs> | null;
1475
+ /**
1476
+ * Omit specific fields from the OfferLetter
1477
+ */
1478
+ omit?: Prisma.OfferLetterOmit<ExtArgs> | null;
1479
+ /**
1480
+ * Choose, which related nodes to fetch as well
1481
+ */
1482
+ include?: Prisma.OfferLetterInclude<ExtArgs> | null;
1483
+ where?: Prisma.OfferLetterWhereInput;
1484
+ orderBy?: Prisma.OfferLetterOrderByWithRelationInput | Prisma.OfferLetterOrderByWithRelationInput[];
1485
+ cursor?: Prisma.OfferLetterWhereUniqueInput;
1486
+ take?: number;
1487
+ skip?: number;
1488
+ distinct?: Prisma.OfferLetterScalarFieldEnum | Prisma.OfferLetterScalarFieldEnum[];
1489
+ };
1490
+ /**
1491
+ * DocumentTemplate without action
1492
+ */
1493
+ export type DocumentTemplateDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1494
+ /**
1495
+ * Select specific fields to fetch from the DocumentTemplate
1496
+ */
1497
+ select?: Prisma.DocumentTemplateSelect<ExtArgs> | null;
1498
+ /**
1499
+ * Omit specific fields from the DocumentTemplate
1500
+ */
1501
+ omit?: Prisma.DocumentTemplateOmit<ExtArgs> | null;
1502
+ /**
1503
+ * Choose, which related nodes to fetch as well
1504
+ */
1505
+ include?: Prisma.DocumentTemplateInclude<ExtArgs> | null;
1506
+ };
1507
+ export {};