@valentine-efagene/qshelter-common 2.0.94 → 2.0.95

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/dist/generated/client/browser.d.ts +16 -16
  2. package/dist/generated/client/client.d.ts +16 -16
  3. package/dist/generated/client/commonInputTypes.d.ts +72 -72
  4. package/dist/generated/client/enums.d.ts +13 -13
  5. package/dist/generated/client/enums.js +10 -10
  6. package/dist/generated/client/internal/class.d.ts +32 -32
  7. package/dist/generated/client/internal/class.js +2 -2
  8. package/dist/generated/client/internal/prismaNamespace.d.ts +321 -321
  9. package/dist/generated/client/internal/prismaNamespace.js +50 -50
  10. package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +66 -66
  11. package/dist/generated/client/internal/prismaNamespaceBrowser.js +50 -50
  12. package/dist/generated/client/models/Application.d.ts +5439 -0
  13. package/dist/generated/client/models/Application.js +1 -0
  14. package/dist/generated/client/models/ApplicationDocument.d.ts +1409 -0
  15. package/dist/generated/client/models/ApplicationDocument.js +1 -0
  16. package/dist/generated/client/models/ApplicationEvent.d.ts +1254 -0
  17. package/dist/generated/client/models/ApplicationEvent.js +1 -0
  18. package/dist/generated/client/models/ApplicationPayment.d.ts +2030 -0
  19. package/dist/generated/client/models/ApplicationPayment.js +1 -0
  20. package/dist/generated/client/models/ApplicationPhase.d.ts +2243 -0
  21. package/dist/generated/client/models/ApplicationPhase.js +1 -0
  22. package/dist/generated/client/models/ApplicationRefund.d.ts +2560 -0
  23. package/dist/generated/client/models/ApplicationRefund.js +1 -0
  24. package/dist/generated/client/models/ApplicationTermination.d.ts +3446 -0
  25. package/dist/generated/client/models/ApplicationTermination.js +1 -0
  26. package/dist/generated/client/models/DocumentationPhase.d.ts +13 -13
  27. package/dist/generated/client/models/OfferLetter.d.ts +97 -97
  28. package/dist/generated/client/models/PaymentInstallment.d.ts +1660 -0
  29. package/dist/generated/client/models/PaymentInstallment.js +1 -0
  30. package/dist/generated/client/models/PaymentMethodChangeRequest.d.ts +103 -103
  31. package/dist/generated/client/models/PaymentPhase.d.ts +40 -40
  32. package/dist/generated/client/models/PropertyPaymentMethod.d.ts +77 -77
  33. package/dist/generated/client/models/PropertyTransferRequest.d.ts +213 -213
  34. package/dist/generated/client/models/PropertyUnit.d.ts +53 -53
  35. package/dist/generated/client/models/QuestionnairePhase.d.ts +11 -11
  36. package/dist/generated/client/models/Tenant.d.ts +323 -323
  37. package/dist/generated/client/models/User.d.ts +1329 -1329
  38. package/dist/generated/client/models/index.d.ts +8 -8
  39. package/dist/generated/client/models/index.js +8 -8
  40. package/dist/generated/client/models.d.ts +8 -8
  41. package/package.json +1 -1
  42. package/prisma/migrations/20260112080730_rename_contract_to_application/migration.sql +529 -0
  43. package/prisma/schema.prisma +107 -107
  44. package/prisma/schema.prisma.backup +2601 -0
@@ -14,7 +14,7 @@ export type AggregateOfferLetter = {
14
14
  export type OfferLetterMinAggregateOutputType = {
15
15
  id: string | null;
16
16
  tenantId: string | null;
17
- contractId: string | null;
17
+ applicationId: string | null;
18
18
  templateId: string | null;
19
19
  letterNumber: string | null;
20
20
  type: $Enums.OfferLetterType | null;
@@ -38,7 +38,7 @@ export type OfferLetterMinAggregateOutputType = {
38
38
  export type OfferLetterMaxAggregateOutputType = {
39
39
  id: string | null;
40
40
  tenantId: string | null;
41
- contractId: string | null;
41
+ applicationId: string | null;
42
42
  templateId: string | null;
43
43
  letterNumber: string | null;
44
44
  type: $Enums.OfferLetterType | null;
@@ -62,7 +62,7 @@ export type OfferLetterMaxAggregateOutputType = {
62
62
  export type OfferLetterCountAggregateOutputType = {
63
63
  id: number;
64
64
  tenantId: number;
65
- contractId: number;
65
+ applicationId: number;
66
66
  templateId: number;
67
67
  letterNumber: number;
68
68
  type: number;
@@ -89,7 +89,7 @@ export type OfferLetterCountAggregateOutputType = {
89
89
  export type OfferLetterMinAggregateInputType = {
90
90
  id?: true;
91
91
  tenantId?: true;
92
- contractId?: true;
92
+ applicationId?: true;
93
93
  templateId?: true;
94
94
  letterNumber?: true;
95
95
  type?: true;
@@ -113,7 +113,7 @@ export type OfferLetterMinAggregateInputType = {
113
113
  export type OfferLetterMaxAggregateInputType = {
114
114
  id?: true;
115
115
  tenantId?: true;
116
- contractId?: true;
116
+ applicationId?: true;
117
117
  templateId?: true;
118
118
  letterNumber?: true;
119
119
  type?: true;
@@ -137,7 +137,7 @@ export type OfferLetterMaxAggregateInputType = {
137
137
  export type OfferLetterCountAggregateInputType = {
138
138
  id?: true;
139
139
  tenantId?: true;
140
- contractId?: true;
140
+ applicationId?: true;
141
141
  templateId?: true;
142
142
  letterNumber?: true;
143
143
  type?: true;
@@ -226,7 +226,7 @@ export type OfferLetterGroupByArgs<ExtArgs extends runtime.Types.Extensions.Inte
226
226
  export type OfferLetterGroupByOutputType = {
227
227
  id: string;
228
228
  tenantId: string;
229
- contractId: string;
229
+ applicationId: string;
230
230
  templateId: string | null;
231
231
  letterNumber: string;
232
232
  type: $Enums.OfferLetterType;
@@ -261,7 +261,7 @@ export type OfferLetterWhereInput = {
261
261
  NOT?: Prisma.OfferLetterWhereInput | Prisma.OfferLetterWhereInput[];
262
262
  id?: Prisma.StringFilter<"OfferLetter"> | string;
263
263
  tenantId?: Prisma.StringFilter<"OfferLetter"> | string;
264
- contractId?: Prisma.StringFilter<"OfferLetter"> | string;
264
+ applicationId?: Prisma.StringFilter<"OfferLetter"> | string;
265
265
  templateId?: Prisma.StringNullableFilter<"OfferLetter"> | string | null;
266
266
  letterNumber?: Prisma.StringFilter<"OfferLetter"> | string;
267
267
  type?: Prisma.EnumOfferLetterTypeFilter<"OfferLetter"> | $Enums.OfferLetterType;
@@ -284,7 +284,7 @@ export type OfferLetterWhereInput = {
284
284
  createdAt?: Prisma.DateTimeFilter<"OfferLetter"> | Date | string;
285
285
  updatedAt?: Prisma.DateTimeFilter<"OfferLetter"> | Date | string;
286
286
  tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
287
- contract?: Prisma.XOR<Prisma.ContractScalarRelationFilter, Prisma.ContractWhereInput>;
287
+ application?: Prisma.XOR<Prisma.ApplicationScalarRelationFilter, Prisma.ApplicationWhereInput>;
288
288
  template?: Prisma.XOR<Prisma.DocumentTemplateNullableScalarRelationFilter, Prisma.DocumentTemplateWhereInput> | null;
289
289
  generatedBy?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
290
290
  sentBy?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
@@ -292,7 +292,7 @@ export type OfferLetterWhereInput = {
292
292
  export type OfferLetterOrderByWithRelationInput = {
293
293
  id?: Prisma.SortOrder;
294
294
  tenantId?: Prisma.SortOrder;
295
- contractId?: Prisma.SortOrder;
295
+ applicationId?: Prisma.SortOrder;
296
296
  templateId?: Prisma.SortOrderInput | Prisma.SortOrder;
297
297
  letterNumber?: Prisma.SortOrder;
298
298
  type?: Prisma.SortOrder;
@@ -315,7 +315,7 @@ export type OfferLetterOrderByWithRelationInput = {
315
315
  createdAt?: Prisma.SortOrder;
316
316
  updatedAt?: Prisma.SortOrder;
317
317
  tenant?: Prisma.TenantOrderByWithRelationInput;
318
- contract?: Prisma.ContractOrderByWithRelationInput;
318
+ application?: Prisma.ApplicationOrderByWithRelationInput;
319
319
  template?: Prisma.DocumentTemplateOrderByWithRelationInput;
320
320
  generatedBy?: Prisma.UserOrderByWithRelationInput;
321
321
  sentBy?: Prisma.UserOrderByWithRelationInput;
@@ -328,7 +328,7 @@ export type OfferLetterWhereUniqueInput = Prisma.AtLeast<{
328
328
  OR?: Prisma.OfferLetterWhereInput[];
329
329
  NOT?: Prisma.OfferLetterWhereInput | Prisma.OfferLetterWhereInput[];
330
330
  tenantId?: Prisma.StringFilter<"OfferLetter"> | string;
331
- contractId?: Prisma.StringFilter<"OfferLetter"> | string;
331
+ applicationId?: Prisma.StringFilter<"OfferLetter"> | string;
332
332
  templateId?: Prisma.StringNullableFilter<"OfferLetter"> | string | null;
333
333
  type?: Prisma.EnumOfferLetterTypeFilter<"OfferLetter"> | $Enums.OfferLetterType;
334
334
  status?: Prisma.EnumOfferLetterStatusFilter<"OfferLetter"> | $Enums.OfferLetterStatus;
@@ -350,7 +350,7 @@ export type OfferLetterWhereUniqueInput = Prisma.AtLeast<{
350
350
  createdAt?: Prisma.DateTimeFilter<"OfferLetter"> | Date | string;
351
351
  updatedAt?: Prisma.DateTimeFilter<"OfferLetter"> | Date | string;
352
352
  tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
353
- contract?: Prisma.XOR<Prisma.ContractScalarRelationFilter, Prisma.ContractWhereInput>;
353
+ application?: Prisma.XOR<Prisma.ApplicationScalarRelationFilter, Prisma.ApplicationWhereInput>;
354
354
  template?: Prisma.XOR<Prisma.DocumentTemplateNullableScalarRelationFilter, Prisma.DocumentTemplateWhereInput> | null;
355
355
  generatedBy?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
356
356
  sentBy?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
@@ -358,7 +358,7 @@ export type OfferLetterWhereUniqueInput = Prisma.AtLeast<{
358
358
  export type OfferLetterOrderByWithAggregationInput = {
359
359
  id?: Prisma.SortOrder;
360
360
  tenantId?: Prisma.SortOrder;
361
- contractId?: Prisma.SortOrder;
361
+ applicationId?: Prisma.SortOrder;
362
362
  templateId?: Prisma.SortOrderInput | Prisma.SortOrder;
363
363
  letterNumber?: Prisma.SortOrder;
364
364
  type?: Prisma.SortOrder;
@@ -390,7 +390,7 @@ export type OfferLetterScalarWhereWithAggregatesInput = {
390
390
  NOT?: Prisma.OfferLetterScalarWhereWithAggregatesInput | Prisma.OfferLetterScalarWhereWithAggregatesInput[];
391
391
  id?: Prisma.StringWithAggregatesFilter<"OfferLetter"> | string;
392
392
  tenantId?: Prisma.StringWithAggregatesFilter<"OfferLetter"> | string;
393
- contractId?: Prisma.StringWithAggregatesFilter<"OfferLetter"> | string;
393
+ applicationId?: Prisma.StringWithAggregatesFilter<"OfferLetter"> | string;
394
394
  templateId?: Prisma.StringNullableWithAggregatesFilter<"OfferLetter"> | string | null;
395
395
  letterNumber?: Prisma.StringWithAggregatesFilter<"OfferLetter"> | string;
396
396
  type?: Prisma.EnumOfferLetterTypeWithAggregatesFilter<"OfferLetter"> | $Enums.OfferLetterType;
@@ -434,7 +434,7 @@ export type OfferLetterCreateInput = {
434
434
  createdAt?: Date | string;
435
435
  updatedAt?: Date | string;
436
436
  tenant: Prisma.TenantCreateNestedOneWithoutOfferLettersInput;
437
- contract: Prisma.ContractCreateNestedOneWithoutOfferLettersInput;
437
+ application: Prisma.ApplicationCreateNestedOneWithoutOfferLettersInput;
438
438
  template?: Prisma.DocumentTemplateCreateNestedOneWithoutOfferLettersInput;
439
439
  generatedBy?: Prisma.UserCreateNestedOneWithoutOfferLettersGeneratedInput;
440
440
  sentBy?: Prisma.UserCreateNestedOneWithoutOfferLettersSentInput;
@@ -442,7 +442,7 @@ export type OfferLetterCreateInput = {
442
442
  export type OfferLetterUncheckedCreateInput = {
443
443
  id?: string;
444
444
  tenantId: string;
445
- contractId: string;
445
+ applicationId: string;
446
446
  templateId?: string | null;
447
447
  letterNumber: string;
448
448
  type: $Enums.OfferLetterType;
@@ -486,7 +486,7 @@ export type OfferLetterUpdateInput = {
486
486
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
487
487
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
488
488
  tenant?: Prisma.TenantUpdateOneRequiredWithoutOfferLettersNestedInput;
489
- contract?: Prisma.ContractUpdateOneRequiredWithoutOfferLettersNestedInput;
489
+ application?: Prisma.ApplicationUpdateOneRequiredWithoutOfferLettersNestedInput;
490
490
  template?: Prisma.DocumentTemplateUpdateOneWithoutOfferLettersNestedInput;
491
491
  generatedBy?: Prisma.UserUpdateOneWithoutOfferLettersGeneratedNestedInput;
492
492
  sentBy?: Prisma.UserUpdateOneWithoutOfferLettersSentNestedInput;
@@ -494,7 +494,7 @@ export type OfferLetterUpdateInput = {
494
494
  export type OfferLetterUncheckedUpdateInput = {
495
495
  id?: Prisma.StringFieldUpdateOperationsInput | string;
496
496
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
497
- contractId?: Prisma.StringFieldUpdateOperationsInput | string;
497
+ applicationId?: Prisma.StringFieldUpdateOperationsInput | string;
498
498
  templateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
499
499
  letterNumber?: Prisma.StringFieldUpdateOperationsInput | string;
500
500
  type?: Prisma.EnumOfferLetterTypeFieldUpdateOperationsInput | $Enums.OfferLetterType;
@@ -520,7 +520,7 @@ export type OfferLetterUncheckedUpdateInput = {
520
520
  export type OfferLetterCreateManyInput = {
521
521
  id?: string;
522
522
  tenantId: string;
523
- contractId: string;
523
+ applicationId: string;
524
524
  templateId?: string | null;
525
525
  letterNumber: string;
526
526
  type: $Enums.OfferLetterType;
@@ -567,7 +567,7 @@ export type OfferLetterUpdateManyMutationInput = {
567
567
  export type OfferLetterUncheckedUpdateManyInput = {
568
568
  id?: Prisma.StringFieldUpdateOperationsInput | string;
569
569
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
570
- contractId?: Prisma.StringFieldUpdateOperationsInput | string;
570
+ applicationId?: Prisma.StringFieldUpdateOperationsInput | string;
571
571
  templateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
572
572
  letterNumber?: Prisma.StringFieldUpdateOperationsInput | string;
573
573
  type?: Prisma.EnumOfferLetterTypeFieldUpdateOperationsInput | $Enums.OfferLetterType;
@@ -606,7 +606,7 @@ export type OfferLetterOrderByRelevanceInput = {
606
606
  export type OfferLetterCountOrderByAggregateInput = {
607
607
  id?: Prisma.SortOrder;
608
608
  tenantId?: Prisma.SortOrder;
609
- contractId?: Prisma.SortOrder;
609
+ applicationId?: Prisma.SortOrder;
610
610
  templateId?: Prisma.SortOrder;
611
611
  letterNumber?: Prisma.SortOrder;
612
612
  type?: Prisma.SortOrder;
@@ -632,7 +632,7 @@ export type OfferLetterCountOrderByAggregateInput = {
632
632
  export type OfferLetterMaxOrderByAggregateInput = {
633
633
  id?: Prisma.SortOrder;
634
634
  tenantId?: Prisma.SortOrder;
635
- contractId?: Prisma.SortOrder;
635
+ applicationId?: Prisma.SortOrder;
636
636
  templateId?: Prisma.SortOrder;
637
637
  letterNumber?: Prisma.SortOrder;
638
638
  type?: Prisma.SortOrder;
@@ -656,7 +656,7 @@ export type OfferLetterMaxOrderByAggregateInput = {
656
656
  export type OfferLetterMinOrderByAggregateInput = {
657
657
  id?: Prisma.SortOrder;
658
658
  tenantId?: Prisma.SortOrder;
659
- contractId?: Prisma.SortOrder;
659
+ applicationId?: Prisma.SortOrder;
660
660
  templateId?: Prisma.SortOrder;
661
661
  letterNumber?: Prisma.SortOrder;
662
662
  type?: Prisma.SortOrder;
@@ -791,42 +791,42 @@ export type OfferLetterUncheckedUpdateManyWithoutTenantNestedInput = {
791
791
  updateMany?: Prisma.OfferLetterUpdateManyWithWhereWithoutTenantInput | Prisma.OfferLetterUpdateManyWithWhereWithoutTenantInput[];
792
792
  deleteMany?: Prisma.OfferLetterScalarWhereInput | Prisma.OfferLetterScalarWhereInput[];
793
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;
794
+ export type OfferLetterCreateNestedManyWithoutApplicationInput = {
795
+ create?: Prisma.XOR<Prisma.OfferLetterCreateWithoutApplicationInput, Prisma.OfferLetterUncheckedCreateWithoutApplicationInput> | Prisma.OfferLetterCreateWithoutApplicationInput[] | Prisma.OfferLetterUncheckedCreateWithoutApplicationInput[];
796
+ connectOrCreate?: Prisma.OfferLetterCreateOrConnectWithoutApplicationInput | Prisma.OfferLetterCreateOrConnectWithoutApplicationInput[];
797
+ createMany?: Prisma.OfferLetterCreateManyApplicationInputEnvelope;
798
798
  connect?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
799
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;
800
+ export type OfferLetterUncheckedCreateNestedManyWithoutApplicationInput = {
801
+ create?: Prisma.XOR<Prisma.OfferLetterCreateWithoutApplicationInput, Prisma.OfferLetterUncheckedCreateWithoutApplicationInput> | Prisma.OfferLetterCreateWithoutApplicationInput[] | Prisma.OfferLetterUncheckedCreateWithoutApplicationInput[];
802
+ connectOrCreate?: Prisma.OfferLetterCreateOrConnectWithoutApplicationInput | Prisma.OfferLetterCreateOrConnectWithoutApplicationInput[];
803
+ createMany?: Prisma.OfferLetterCreateManyApplicationInputEnvelope;
804
804
  connect?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
805
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;
806
+ export type OfferLetterUpdateManyWithoutApplicationNestedInput = {
807
+ create?: Prisma.XOR<Prisma.OfferLetterCreateWithoutApplicationInput, Prisma.OfferLetterUncheckedCreateWithoutApplicationInput> | Prisma.OfferLetterCreateWithoutApplicationInput[] | Prisma.OfferLetterUncheckedCreateWithoutApplicationInput[];
808
+ connectOrCreate?: Prisma.OfferLetterCreateOrConnectWithoutApplicationInput | Prisma.OfferLetterCreateOrConnectWithoutApplicationInput[];
809
+ upsert?: Prisma.OfferLetterUpsertWithWhereUniqueWithoutApplicationInput | Prisma.OfferLetterUpsertWithWhereUniqueWithoutApplicationInput[];
810
+ createMany?: Prisma.OfferLetterCreateManyApplicationInputEnvelope;
811
811
  set?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
812
812
  disconnect?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
813
813
  delete?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
814
814
  connect?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
815
- update?: Prisma.OfferLetterUpdateWithWhereUniqueWithoutContractInput | Prisma.OfferLetterUpdateWithWhereUniqueWithoutContractInput[];
816
- updateMany?: Prisma.OfferLetterUpdateManyWithWhereWithoutContractInput | Prisma.OfferLetterUpdateManyWithWhereWithoutContractInput[];
815
+ update?: Prisma.OfferLetterUpdateWithWhereUniqueWithoutApplicationInput | Prisma.OfferLetterUpdateWithWhereUniqueWithoutApplicationInput[];
816
+ updateMany?: Prisma.OfferLetterUpdateManyWithWhereWithoutApplicationInput | Prisma.OfferLetterUpdateManyWithWhereWithoutApplicationInput[];
817
817
  deleteMany?: Prisma.OfferLetterScalarWhereInput | Prisma.OfferLetterScalarWhereInput[];
818
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;
819
+ export type OfferLetterUncheckedUpdateManyWithoutApplicationNestedInput = {
820
+ create?: Prisma.XOR<Prisma.OfferLetterCreateWithoutApplicationInput, Prisma.OfferLetterUncheckedCreateWithoutApplicationInput> | Prisma.OfferLetterCreateWithoutApplicationInput[] | Prisma.OfferLetterUncheckedCreateWithoutApplicationInput[];
821
+ connectOrCreate?: Prisma.OfferLetterCreateOrConnectWithoutApplicationInput | Prisma.OfferLetterCreateOrConnectWithoutApplicationInput[];
822
+ upsert?: Prisma.OfferLetterUpsertWithWhereUniqueWithoutApplicationInput | Prisma.OfferLetterUpsertWithWhereUniqueWithoutApplicationInput[];
823
+ createMany?: Prisma.OfferLetterCreateManyApplicationInputEnvelope;
824
824
  set?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
825
825
  disconnect?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
826
826
  delete?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
827
827
  connect?: Prisma.OfferLetterWhereUniqueInput | Prisma.OfferLetterWhereUniqueInput[];
828
- update?: Prisma.OfferLetterUpdateWithWhereUniqueWithoutContractInput | Prisma.OfferLetterUpdateWithWhereUniqueWithoutContractInput[];
829
- updateMany?: Prisma.OfferLetterUpdateManyWithWhereWithoutContractInput | Prisma.OfferLetterUpdateManyWithWhereWithoutContractInput[];
828
+ update?: Prisma.OfferLetterUpdateWithWhereUniqueWithoutApplicationInput | Prisma.OfferLetterUpdateWithWhereUniqueWithoutApplicationInput[];
829
+ updateMany?: Prisma.OfferLetterUpdateManyWithWhereWithoutApplicationInput | Prisma.OfferLetterUpdateManyWithWhereWithoutApplicationInput[];
830
830
  deleteMany?: Prisma.OfferLetterScalarWhereInput | Prisma.OfferLetterScalarWhereInput[];
831
831
  };
832
832
  export type OfferLetterCreateNestedManyWithoutTemplateInput = {
@@ -894,14 +894,14 @@ export type OfferLetterCreateWithoutGeneratedByInput = {
894
894
  createdAt?: Date | string;
895
895
  updatedAt?: Date | string;
896
896
  tenant: Prisma.TenantCreateNestedOneWithoutOfferLettersInput;
897
- contract: Prisma.ContractCreateNestedOneWithoutOfferLettersInput;
897
+ application: Prisma.ApplicationCreateNestedOneWithoutOfferLettersInput;
898
898
  template?: Prisma.DocumentTemplateCreateNestedOneWithoutOfferLettersInput;
899
899
  sentBy?: Prisma.UserCreateNestedOneWithoutOfferLettersSentInput;
900
900
  };
901
901
  export type OfferLetterUncheckedCreateWithoutGeneratedByInput = {
902
902
  id?: string;
903
903
  tenantId: string;
904
- contractId: string;
904
+ applicationId: string;
905
905
  templateId?: string | null;
906
906
  letterNumber: string;
907
907
  type: $Enums.OfferLetterType;
@@ -952,14 +952,14 @@ export type OfferLetterCreateWithoutSentByInput = {
952
952
  createdAt?: Date | string;
953
953
  updatedAt?: Date | string;
954
954
  tenant: Prisma.TenantCreateNestedOneWithoutOfferLettersInput;
955
- contract: Prisma.ContractCreateNestedOneWithoutOfferLettersInput;
955
+ application: Prisma.ApplicationCreateNestedOneWithoutOfferLettersInput;
956
956
  template?: Prisma.DocumentTemplateCreateNestedOneWithoutOfferLettersInput;
957
957
  generatedBy?: Prisma.UserCreateNestedOneWithoutOfferLettersGeneratedInput;
958
958
  };
959
959
  export type OfferLetterUncheckedCreateWithoutSentByInput = {
960
960
  id?: string;
961
961
  tenantId: string;
962
- contractId: string;
962
+ applicationId: string;
963
963
  templateId?: string | null;
964
964
  letterNumber: string;
965
965
  type: $Enums.OfferLetterType;
@@ -1008,7 +1008,7 @@ export type OfferLetterScalarWhereInput = {
1008
1008
  NOT?: Prisma.OfferLetterScalarWhereInput | Prisma.OfferLetterScalarWhereInput[];
1009
1009
  id?: Prisma.StringFilter<"OfferLetter"> | string;
1010
1010
  tenantId?: Prisma.StringFilter<"OfferLetter"> | string;
1011
- contractId?: Prisma.StringFilter<"OfferLetter"> | string;
1011
+ applicationId?: Prisma.StringFilter<"OfferLetter"> | string;
1012
1012
  templateId?: Prisma.StringNullableFilter<"OfferLetter"> | string | null;
1013
1013
  letterNumber?: Prisma.StringFilter<"OfferLetter"> | string;
1014
1014
  type?: Prisma.EnumOfferLetterTypeFilter<"OfferLetter"> | $Enums.OfferLetterType;
@@ -1064,14 +1064,14 @@ export type OfferLetterCreateWithoutTenantInput = {
1064
1064
  cancelReason?: string | null;
1065
1065
  createdAt?: Date | string;
1066
1066
  updatedAt?: Date | string;
1067
- contract: Prisma.ContractCreateNestedOneWithoutOfferLettersInput;
1067
+ application: Prisma.ApplicationCreateNestedOneWithoutOfferLettersInput;
1068
1068
  template?: Prisma.DocumentTemplateCreateNestedOneWithoutOfferLettersInput;
1069
1069
  generatedBy?: Prisma.UserCreateNestedOneWithoutOfferLettersGeneratedInput;
1070
1070
  sentBy?: Prisma.UserCreateNestedOneWithoutOfferLettersSentInput;
1071
1071
  };
1072
1072
  export type OfferLetterUncheckedCreateWithoutTenantInput = {
1073
1073
  id?: string;
1074
- contractId: string;
1074
+ applicationId: string;
1075
1075
  templateId?: string | null;
1076
1076
  letterNumber: string;
1077
1077
  type: $Enums.OfferLetterType;
@@ -1115,7 +1115,7 @@ export type OfferLetterUpdateManyWithWhereWithoutTenantInput = {
1115
1115
  where: Prisma.OfferLetterScalarWhereInput;
1116
1116
  data: Prisma.XOR<Prisma.OfferLetterUpdateManyMutationInput, Prisma.OfferLetterUncheckedUpdateManyWithoutTenantInput>;
1117
1117
  };
1118
- export type OfferLetterCreateWithoutContractInput = {
1118
+ export type OfferLetterCreateWithoutApplicationInput = {
1119
1119
  id?: string;
1120
1120
  letterNumber: string;
1121
1121
  type: $Enums.OfferLetterType;
@@ -1140,7 +1140,7 @@ export type OfferLetterCreateWithoutContractInput = {
1140
1140
  generatedBy?: Prisma.UserCreateNestedOneWithoutOfferLettersGeneratedInput;
1141
1141
  sentBy?: Prisma.UserCreateNestedOneWithoutOfferLettersSentInput;
1142
1142
  };
1143
- export type OfferLetterUncheckedCreateWithoutContractInput = {
1143
+ export type OfferLetterUncheckedCreateWithoutApplicationInput = {
1144
1144
  id?: string;
1145
1145
  tenantId: string;
1146
1146
  templateId?: string | null;
@@ -1165,26 +1165,26 @@ export type OfferLetterUncheckedCreateWithoutContractInput = {
1165
1165
  createdAt?: Date | string;
1166
1166
  updatedAt?: Date | string;
1167
1167
  };
1168
- export type OfferLetterCreateOrConnectWithoutContractInput = {
1168
+ export type OfferLetterCreateOrConnectWithoutApplicationInput = {
1169
1169
  where: Prisma.OfferLetterWhereUniqueInput;
1170
- create: Prisma.XOR<Prisma.OfferLetterCreateWithoutContractInput, Prisma.OfferLetterUncheckedCreateWithoutContractInput>;
1170
+ create: Prisma.XOR<Prisma.OfferLetterCreateWithoutApplicationInput, Prisma.OfferLetterUncheckedCreateWithoutApplicationInput>;
1171
1171
  };
1172
- export type OfferLetterCreateManyContractInputEnvelope = {
1173
- data: Prisma.OfferLetterCreateManyContractInput | Prisma.OfferLetterCreateManyContractInput[];
1172
+ export type OfferLetterCreateManyApplicationInputEnvelope = {
1173
+ data: Prisma.OfferLetterCreateManyApplicationInput | Prisma.OfferLetterCreateManyApplicationInput[];
1174
1174
  skipDuplicates?: boolean;
1175
1175
  };
1176
- export type OfferLetterUpsertWithWhereUniqueWithoutContractInput = {
1176
+ export type OfferLetterUpsertWithWhereUniqueWithoutApplicationInput = {
1177
1177
  where: Prisma.OfferLetterWhereUniqueInput;
1178
- update: Prisma.XOR<Prisma.OfferLetterUpdateWithoutContractInput, Prisma.OfferLetterUncheckedUpdateWithoutContractInput>;
1179
- create: Prisma.XOR<Prisma.OfferLetterCreateWithoutContractInput, Prisma.OfferLetterUncheckedCreateWithoutContractInput>;
1178
+ update: Prisma.XOR<Prisma.OfferLetterUpdateWithoutApplicationInput, Prisma.OfferLetterUncheckedUpdateWithoutApplicationInput>;
1179
+ create: Prisma.XOR<Prisma.OfferLetterCreateWithoutApplicationInput, Prisma.OfferLetterUncheckedCreateWithoutApplicationInput>;
1180
1180
  };
1181
- export type OfferLetterUpdateWithWhereUniqueWithoutContractInput = {
1181
+ export type OfferLetterUpdateWithWhereUniqueWithoutApplicationInput = {
1182
1182
  where: Prisma.OfferLetterWhereUniqueInput;
1183
- data: Prisma.XOR<Prisma.OfferLetterUpdateWithoutContractInput, Prisma.OfferLetterUncheckedUpdateWithoutContractInput>;
1183
+ data: Prisma.XOR<Prisma.OfferLetterUpdateWithoutApplicationInput, Prisma.OfferLetterUncheckedUpdateWithoutApplicationInput>;
1184
1184
  };
1185
- export type OfferLetterUpdateManyWithWhereWithoutContractInput = {
1185
+ export type OfferLetterUpdateManyWithWhereWithoutApplicationInput = {
1186
1186
  where: Prisma.OfferLetterScalarWhereInput;
1187
- data: Prisma.XOR<Prisma.OfferLetterUpdateManyMutationInput, Prisma.OfferLetterUncheckedUpdateManyWithoutContractInput>;
1187
+ data: Prisma.XOR<Prisma.OfferLetterUpdateManyMutationInput, Prisma.OfferLetterUncheckedUpdateManyWithoutApplicationInput>;
1188
1188
  };
1189
1189
  export type OfferLetterCreateWithoutTemplateInput = {
1190
1190
  id?: string;
@@ -1207,14 +1207,14 @@ export type OfferLetterCreateWithoutTemplateInput = {
1207
1207
  createdAt?: Date | string;
1208
1208
  updatedAt?: Date | string;
1209
1209
  tenant: Prisma.TenantCreateNestedOneWithoutOfferLettersInput;
1210
- contract: Prisma.ContractCreateNestedOneWithoutOfferLettersInput;
1210
+ application: Prisma.ApplicationCreateNestedOneWithoutOfferLettersInput;
1211
1211
  generatedBy?: Prisma.UserCreateNestedOneWithoutOfferLettersGeneratedInput;
1212
1212
  sentBy?: Prisma.UserCreateNestedOneWithoutOfferLettersSentInput;
1213
1213
  };
1214
1214
  export type OfferLetterUncheckedCreateWithoutTemplateInput = {
1215
1215
  id?: string;
1216
1216
  tenantId: string;
1217
- contractId: string;
1217
+ applicationId: string;
1218
1218
  letterNumber: string;
1219
1219
  type: $Enums.OfferLetterType;
1220
1220
  status?: $Enums.OfferLetterStatus;
@@ -1260,7 +1260,7 @@ export type OfferLetterUpdateManyWithWhereWithoutTemplateInput = {
1260
1260
  export type OfferLetterCreateManyGeneratedByInput = {
1261
1261
  id?: string;
1262
1262
  tenantId: string;
1263
- contractId: string;
1263
+ applicationId: string;
1264
1264
  templateId?: string | null;
1265
1265
  letterNumber: string;
1266
1266
  type: $Enums.OfferLetterType;
@@ -1285,7 +1285,7 @@ export type OfferLetterCreateManyGeneratedByInput = {
1285
1285
  export type OfferLetterCreateManySentByInput = {
1286
1286
  id?: string;
1287
1287
  tenantId: string;
1288
- contractId: string;
1288
+ applicationId: string;
1289
1289
  templateId?: string | null;
1290
1290
  letterNumber: string;
1291
1291
  type: $Enums.OfferLetterType;
@@ -1328,14 +1328,14 @@ export type OfferLetterUpdateWithoutGeneratedByInput = {
1328
1328
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1329
1329
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1330
1330
  tenant?: Prisma.TenantUpdateOneRequiredWithoutOfferLettersNestedInput;
1331
- contract?: Prisma.ContractUpdateOneRequiredWithoutOfferLettersNestedInput;
1331
+ application?: Prisma.ApplicationUpdateOneRequiredWithoutOfferLettersNestedInput;
1332
1332
  template?: Prisma.DocumentTemplateUpdateOneWithoutOfferLettersNestedInput;
1333
1333
  sentBy?: Prisma.UserUpdateOneWithoutOfferLettersSentNestedInput;
1334
1334
  };
1335
1335
  export type OfferLetterUncheckedUpdateWithoutGeneratedByInput = {
1336
1336
  id?: Prisma.StringFieldUpdateOperationsInput | string;
1337
1337
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1338
- contractId?: Prisma.StringFieldUpdateOperationsInput | string;
1338
+ applicationId?: Prisma.StringFieldUpdateOperationsInput | string;
1339
1339
  templateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1340
1340
  letterNumber?: Prisma.StringFieldUpdateOperationsInput | string;
1341
1341
  type?: Prisma.EnumOfferLetterTypeFieldUpdateOperationsInput | $Enums.OfferLetterType;
@@ -1360,7 +1360,7 @@ export type OfferLetterUncheckedUpdateWithoutGeneratedByInput = {
1360
1360
  export type OfferLetterUncheckedUpdateManyWithoutGeneratedByInput = {
1361
1361
  id?: Prisma.StringFieldUpdateOperationsInput | string;
1362
1362
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1363
- contractId?: Prisma.StringFieldUpdateOperationsInput | string;
1363
+ applicationId?: Prisma.StringFieldUpdateOperationsInput | string;
1364
1364
  templateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1365
1365
  letterNumber?: Prisma.StringFieldUpdateOperationsInput | string;
1366
1366
  type?: Prisma.EnumOfferLetterTypeFieldUpdateOperationsInput | $Enums.OfferLetterType;
@@ -1403,14 +1403,14 @@ export type OfferLetterUpdateWithoutSentByInput = {
1403
1403
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1404
1404
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1405
1405
  tenant?: Prisma.TenantUpdateOneRequiredWithoutOfferLettersNestedInput;
1406
- contract?: Prisma.ContractUpdateOneRequiredWithoutOfferLettersNestedInput;
1406
+ application?: Prisma.ApplicationUpdateOneRequiredWithoutOfferLettersNestedInput;
1407
1407
  template?: Prisma.DocumentTemplateUpdateOneWithoutOfferLettersNestedInput;
1408
1408
  generatedBy?: Prisma.UserUpdateOneWithoutOfferLettersGeneratedNestedInput;
1409
1409
  };
1410
1410
  export type OfferLetterUncheckedUpdateWithoutSentByInput = {
1411
1411
  id?: Prisma.StringFieldUpdateOperationsInput | string;
1412
1412
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1413
- contractId?: Prisma.StringFieldUpdateOperationsInput | string;
1413
+ applicationId?: Prisma.StringFieldUpdateOperationsInput | string;
1414
1414
  templateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1415
1415
  letterNumber?: Prisma.StringFieldUpdateOperationsInput | string;
1416
1416
  type?: Prisma.EnumOfferLetterTypeFieldUpdateOperationsInput | $Enums.OfferLetterType;
@@ -1435,7 +1435,7 @@ export type OfferLetterUncheckedUpdateWithoutSentByInput = {
1435
1435
  export type OfferLetterUncheckedUpdateManyWithoutSentByInput = {
1436
1436
  id?: Prisma.StringFieldUpdateOperationsInput | string;
1437
1437
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1438
- contractId?: Prisma.StringFieldUpdateOperationsInput | string;
1438
+ applicationId?: Prisma.StringFieldUpdateOperationsInput | string;
1439
1439
  templateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1440
1440
  letterNumber?: Prisma.StringFieldUpdateOperationsInput | string;
1441
1441
  type?: Prisma.EnumOfferLetterTypeFieldUpdateOperationsInput | $Enums.OfferLetterType;
@@ -1459,7 +1459,7 @@ export type OfferLetterUncheckedUpdateManyWithoutSentByInput = {
1459
1459
  };
1460
1460
  export type OfferLetterCreateManyTenantInput = {
1461
1461
  id?: string;
1462
- contractId: string;
1462
+ applicationId: string;
1463
1463
  templateId?: string | null;
1464
1464
  letterNumber: string;
1465
1465
  type: $Enums.OfferLetterType;
@@ -1502,14 +1502,14 @@ export type OfferLetterUpdateWithoutTenantInput = {
1502
1502
  cancelReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1503
1503
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1504
1504
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1505
- contract?: Prisma.ContractUpdateOneRequiredWithoutOfferLettersNestedInput;
1505
+ application?: Prisma.ApplicationUpdateOneRequiredWithoutOfferLettersNestedInput;
1506
1506
  template?: Prisma.DocumentTemplateUpdateOneWithoutOfferLettersNestedInput;
1507
1507
  generatedBy?: Prisma.UserUpdateOneWithoutOfferLettersGeneratedNestedInput;
1508
1508
  sentBy?: Prisma.UserUpdateOneWithoutOfferLettersSentNestedInput;
1509
1509
  };
1510
1510
  export type OfferLetterUncheckedUpdateWithoutTenantInput = {
1511
1511
  id?: Prisma.StringFieldUpdateOperationsInput | string;
1512
- contractId?: Prisma.StringFieldUpdateOperationsInput | string;
1512
+ applicationId?: Prisma.StringFieldUpdateOperationsInput | string;
1513
1513
  templateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1514
1514
  letterNumber?: Prisma.StringFieldUpdateOperationsInput | string;
1515
1515
  type?: Prisma.EnumOfferLetterTypeFieldUpdateOperationsInput | $Enums.OfferLetterType;
@@ -1534,7 +1534,7 @@ export type OfferLetterUncheckedUpdateWithoutTenantInput = {
1534
1534
  };
1535
1535
  export type OfferLetterUncheckedUpdateManyWithoutTenantInput = {
1536
1536
  id?: Prisma.StringFieldUpdateOperationsInput | string;
1537
- contractId?: Prisma.StringFieldUpdateOperationsInput | string;
1537
+ applicationId?: Prisma.StringFieldUpdateOperationsInput | string;
1538
1538
  templateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1539
1539
  letterNumber?: Prisma.StringFieldUpdateOperationsInput | string;
1540
1540
  type?: Prisma.EnumOfferLetterTypeFieldUpdateOperationsInput | $Enums.OfferLetterType;
@@ -1557,7 +1557,7 @@ export type OfferLetterUncheckedUpdateManyWithoutTenantInput = {
1557
1557
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1558
1558
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1559
1559
  };
1560
- export type OfferLetterCreateManyContractInput = {
1560
+ export type OfferLetterCreateManyApplicationInput = {
1561
1561
  id?: string;
1562
1562
  tenantId: string;
1563
1563
  templateId?: string | null;
@@ -1582,7 +1582,7 @@ export type OfferLetterCreateManyContractInput = {
1582
1582
  createdAt?: Date | string;
1583
1583
  updatedAt?: Date | string;
1584
1584
  };
1585
- export type OfferLetterUpdateWithoutContractInput = {
1585
+ export type OfferLetterUpdateWithoutApplicationInput = {
1586
1586
  id?: Prisma.StringFieldUpdateOperationsInput | string;
1587
1587
  letterNumber?: Prisma.StringFieldUpdateOperationsInput | string;
1588
1588
  type?: Prisma.EnumOfferLetterTypeFieldUpdateOperationsInput | $Enums.OfferLetterType;
@@ -1607,7 +1607,7 @@ export type OfferLetterUpdateWithoutContractInput = {
1607
1607
  generatedBy?: Prisma.UserUpdateOneWithoutOfferLettersGeneratedNestedInput;
1608
1608
  sentBy?: Prisma.UserUpdateOneWithoutOfferLettersSentNestedInput;
1609
1609
  };
1610
- export type OfferLetterUncheckedUpdateWithoutContractInput = {
1610
+ export type OfferLetterUncheckedUpdateWithoutApplicationInput = {
1611
1611
  id?: Prisma.StringFieldUpdateOperationsInput | string;
1612
1612
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1613
1613
  templateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -1632,7 +1632,7 @@ export type OfferLetterUncheckedUpdateWithoutContractInput = {
1632
1632
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1633
1633
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1634
1634
  };
1635
- export type OfferLetterUncheckedUpdateManyWithoutContractInput = {
1635
+ export type OfferLetterUncheckedUpdateManyWithoutApplicationInput = {
1636
1636
  id?: Prisma.StringFieldUpdateOperationsInput | string;
1637
1637
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1638
1638
  templateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -1660,7 +1660,7 @@ export type OfferLetterUncheckedUpdateManyWithoutContractInput = {
1660
1660
  export type OfferLetterCreateManyTemplateInput = {
1661
1661
  id?: string;
1662
1662
  tenantId: string;
1663
- contractId: string;
1663
+ applicationId: string;
1664
1664
  letterNumber: string;
1665
1665
  type: $Enums.OfferLetterType;
1666
1666
  status?: $Enums.OfferLetterStatus;
@@ -1703,14 +1703,14 @@ export type OfferLetterUpdateWithoutTemplateInput = {
1703
1703
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1704
1704
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1705
1705
  tenant?: Prisma.TenantUpdateOneRequiredWithoutOfferLettersNestedInput;
1706
- contract?: Prisma.ContractUpdateOneRequiredWithoutOfferLettersNestedInput;
1706
+ application?: Prisma.ApplicationUpdateOneRequiredWithoutOfferLettersNestedInput;
1707
1707
  generatedBy?: Prisma.UserUpdateOneWithoutOfferLettersGeneratedNestedInput;
1708
1708
  sentBy?: Prisma.UserUpdateOneWithoutOfferLettersSentNestedInput;
1709
1709
  };
1710
1710
  export type OfferLetterUncheckedUpdateWithoutTemplateInput = {
1711
1711
  id?: Prisma.StringFieldUpdateOperationsInput | string;
1712
1712
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1713
- contractId?: Prisma.StringFieldUpdateOperationsInput | string;
1713
+ applicationId?: Prisma.StringFieldUpdateOperationsInput | string;
1714
1714
  letterNumber?: Prisma.StringFieldUpdateOperationsInput | string;
1715
1715
  type?: Prisma.EnumOfferLetterTypeFieldUpdateOperationsInput | $Enums.OfferLetterType;
1716
1716
  status?: Prisma.EnumOfferLetterStatusFieldUpdateOperationsInput | $Enums.OfferLetterStatus;
@@ -1735,7 +1735,7 @@ export type OfferLetterUncheckedUpdateWithoutTemplateInput = {
1735
1735
  export type OfferLetterUncheckedUpdateManyWithoutTemplateInput = {
1736
1736
  id?: Prisma.StringFieldUpdateOperationsInput | string;
1737
1737
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1738
- contractId?: Prisma.StringFieldUpdateOperationsInput | string;
1738
+ applicationId?: Prisma.StringFieldUpdateOperationsInput | string;
1739
1739
  letterNumber?: Prisma.StringFieldUpdateOperationsInput | string;
1740
1740
  type?: Prisma.EnumOfferLetterTypeFieldUpdateOperationsInput | $Enums.OfferLetterType;
1741
1741
  status?: Prisma.EnumOfferLetterStatusFieldUpdateOperationsInput | $Enums.OfferLetterStatus;
@@ -1760,7 +1760,7 @@ export type OfferLetterUncheckedUpdateManyWithoutTemplateInput = {
1760
1760
  export type OfferLetterSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1761
1761
  id?: boolean;
1762
1762
  tenantId?: boolean;
1763
- contractId?: boolean;
1763
+ applicationId?: boolean;
1764
1764
  templateId?: boolean;
1765
1765
  letterNumber?: boolean;
1766
1766
  type?: boolean;
@@ -1783,7 +1783,7 @@ export type OfferLetterSelect<ExtArgs extends runtime.Types.Extensions.InternalA
1783
1783
  createdAt?: boolean;
1784
1784
  updatedAt?: boolean;
1785
1785
  tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
1786
- contract?: boolean | Prisma.ContractDefaultArgs<ExtArgs>;
1786
+ application?: boolean | Prisma.ApplicationDefaultArgs<ExtArgs>;
1787
1787
  template?: boolean | Prisma.OfferLetter$templateArgs<ExtArgs>;
1788
1788
  generatedBy?: boolean | Prisma.OfferLetter$generatedByArgs<ExtArgs>;
1789
1789
  sentBy?: boolean | Prisma.OfferLetter$sentByArgs<ExtArgs>;
@@ -1791,7 +1791,7 @@ export type OfferLetterSelect<ExtArgs extends runtime.Types.Extensions.InternalA
1791
1791
  export type OfferLetterSelectScalar = {
1792
1792
  id?: boolean;
1793
1793
  tenantId?: boolean;
1794
- contractId?: boolean;
1794
+ applicationId?: boolean;
1795
1795
  templateId?: boolean;
1796
1796
  letterNumber?: boolean;
1797
1797
  type?: boolean;
@@ -1814,10 +1814,10 @@ export type OfferLetterSelectScalar = {
1814
1814
  createdAt?: boolean;
1815
1815
  updatedAt?: boolean;
1816
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"]>;
1817
+ export type OfferLetterOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "applicationId" | "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
1818
  export type OfferLetterInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1819
1819
  tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
1820
- contract?: boolean | Prisma.ContractDefaultArgs<ExtArgs>;
1820
+ application?: boolean | Prisma.ApplicationDefaultArgs<ExtArgs>;
1821
1821
  template?: boolean | Prisma.OfferLetter$templateArgs<ExtArgs>;
1822
1822
  generatedBy?: boolean | Prisma.OfferLetter$generatedByArgs<ExtArgs>;
1823
1823
  sentBy?: boolean | Prisma.OfferLetter$sentByArgs<ExtArgs>;
@@ -1826,7 +1826,7 @@ export type $OfferLetterPayload<ExtArgs extends runtime.Types.Extensions.Interna
1826
1826
  name: "OfferLetter";
1827
1827
  objects: {
1828
1828
  tenant: Prisma.$TenantPayload<ExtArgs>;
1829
- contract: Prisma.$ContractPayload<ExtArgs>;
1829
+ application: Prisma.$ApplicationPayload<ExtArgs>;
1830
1830
  template: Prisma.$DocumentTemplatePayload<ExtArgs> | null;
1831
1831
  generatedBy: Prisma.$UserPayload<ExtArgs> | null;
1832
1832
  sentBy: Prisma.$UserPayload<ExtArgs> | null;
@@ -1834,7 +1834,7 @@ export type $OfferLetterPayload<ExtArgs extends runtime.Types.Extensions.Interna
1834
1834
  scalars: runtime.Types.Extensions.GetPayloadResult<{
1835
1835
  id: string;
1836
1836
  tenantId: string;
1837
- contractId: string;
1837
+ applicationId: string;
1838
1838
  templateId: string | null;
1839
1839
  letterNumber: string;
1840
1840
  type: $Enums.OfferLetterType;
@@ -2134,7 +2134,7 @@ export interface OfferLetterDelegate<ExtArgs extends runtime.Types.Extensions.In
2134
2134
  export interface Prisma__OfferLetterClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
2135
2135
  readonly [Symbol.toStringTag]: "PrismaPromise";
2136
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>;
2137
+ application<T extends Prisma.ApplicationDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ApplicationDefaultArgs<ExtArgs>>): Prisma.Prisma__ApplicationClient<runtime.Types.Result.GetResult<Prisma.$ApplicationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
2138
2138
  template<T extends Prisma.OfferLetter$templateArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.OfferLetter$templateArgs<ExtArgs>>): Prisma.Prisma__DocumentTemplateClient<runtime.Types.Result.GetResult<Prisma.$DocumentTemplatePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2139
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
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>;
@@ -2165,7 +2165,7 @@ export interface Prisma__OfferLetterClient<T, Null = never, ExtArgs extends runt
2165
2165
  export interface OfferLetterFieldRefs {
2166
2166
  readonly id: Prisma.FieldRef<"OfferLetter", 'String'>;
2167
2167
  readonly tenantId: Prisma.FieldRef<"OfferLetter", 'String'>;
2168
- readonly contractId: Prisma.FieldRef<"OfferLetter", 'String'>;
2168
+ readonly applicationId: Prisma.FieldRef<"OfferLetter", 'String'>;
2169
2169
  readonly templateId: Prisma.FieldRef<"OfferLetter", 'String'>;
2170
2170
  readonly letterNumber: Prisma.FieldRef<"OfferLetter", 'String'>;
2171
2171
  readonly type: Prisma.FieldRef<"OfferLetter", 'OfferLetterType'>;