@valentine-efagene/qshelter-common 2.0.93 → 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.
- package/dist/generated/client/browser.d.ts +16 -16
- package/dist/generated/client/client.d.ts +16 -16
- package/dist/generated/client/commonInputTypes.d.ts +72 -72
- package/dist/generated/client/enums.d.ts +13 -13
- package/dist/generated/client/enums.js +10 -10
- package/dist/generated/client/internal/class.d.ts +32 -32
- package/dist/generated/client/internal/class.js +2 -2
- package/dist/generated/client/internal/prismaNamespace.d.ts +328 -321
- package/dist/generated/client/internal/prismaNamespace.js +57 -50
- package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +73 -66
- package/dist/generated/client/internal/prismaNamespaceBrowser.js +57 -50
- package/dist/generated/client/models/Application.d.ts +5439 -0
- package/dist/generated/client/models/Application.js +1 -0
- package/dist/generated/client/models/ApplicationDocument.d.ts +1409 -0
- package/dist/generated/client/models/ApplicationDocument.js +1 -0
- package/dist/generated/client/models/ApplicationEvent.d.ts +1254 -0
- package/dist/generated/client/models/ApplicationEvent.js +1 -0
- package/dist/generated/client/models/ApplicationPayment.d.ts +2030 -0
- package/dist/generated/client/models/ApplicationPayment.js +1 -0
- package/dist/generated/client/models/ApplicationPhase.d.ts +2243 -0
- package/dist/generated/client/models/ApplicationPhase.js +1 -0
- package/dist/generated/client/models/ApplicationRefund.d.ts +2560 -0
- package/dist/generated/client/models/ApplicationRefund.js +1 -0
- package/dist/generated/client/models/ApplicationTermination.d.ts +3446 -0
- package/dist/generated/client/models/ApplicationTermination.js +1 -0
- package/dist/generated/client/models/DocumentationPhase.d.ts +13 -13
- package/dist/generated/client/models/OfferLetter.d.ts +97 -97
- package/dist/generated/client/models/PaymentInstallment.d.ts +1660 -0
- package/dist/generated/client/models/PaymentInstallment.js +1 -0
- package/dist/generated/client/models/PaymentMethodChangeRequest.d.ts +103 -103
- package/dist/generated/client/models/PaymentPhase.d.ts +135 -41
- package/dist/generated/client/models/PaymentPlan.d.ts +259 -30
- package/dist/generated/client/models/PropertyPaymentMethod.d.ts +77 -77
- package/dist/generated/client/models/PropertyTransferRequest.d.ts +213 -213
- package/dist/generated/client/models/PropertyUnit.d.ts +53 -53
- package/dist/generated/client/models/QuestionnairePhase.d.ts +11 -11
- package/dist/generated/client/models/Tenant.d.ts +323 -323
- package/dist/generated/client/models/User.d.ts +1329 -1329
- package/dist/generated/client/models/index.d.ts +8 -8
- package/dist/generated/client/models/index.js +8 -8
- package/dist/generated/client/models.d.ts +8 -8
- package/package.json +1 -1
- package/prisma/migrations/20260112041159_add_flexible_term_configuration/migration.sql +11 -0
- package/prisma/migrations/20260112080730_rename_contract_to_application/migration.sql +529 -0
- package/prisma/schema.prisma +123 -108
- package/prisma/schema.prisma.backup +2601 -0
|
@@ -75,23 +75,23 @@ export const ModelName = {
|
|
|
75
75
|
StepEventAttachment: 'StepEventAttachment',
|
|
76
76
|
PaymentMethodPhaseDocument: 'PaymentMethodPhaseDocument',
|
|
77
77
|
PaymentMethodPhaseField: 'PaymentMethodPhaseField',
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
Application: 'Application',
|
|
79
|
+
ApplicationRefund: 'ApplicationRefund',
|
|
80
|
+
ApplicationPhase: 'ApplicationPhase',
|
|
81
81
|
QuestionnairePhase: 'QuestionnairePhase',
|
|
82
82
|
DocumentationPhase: 'DocumentationPhase',
|
|
83
83
|
PaymentPhase: 'PaymentPhase',
|
|
84
84
|
QuestionnaireField: 'QuestionnaireField',
|
|
85
|
-
|
|
85
|
+
ApplicationEvent: 'ApplicationEvent',
|
|
86
86
|
DocumentationStep: 'DocumentationStep',
|
|
87
87
|
DocumentationStepDocument: 'DocumentationStepDocument',
|
|
88
88
|
DocumentationStepApproval: 'DocumentationStepApproval',
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
89
|
+
PaymentInstallment: 'PaymentInstallment',
|
|
90
|
+
ApplicationPayment: 'ApplicationPayment',
|
|
91
|
+
ApplicationDocument: 'ApplicationDocument',
|
|
92
92
|
DocumentTemplate: 'DocumentTemplate',
|
|
93
93
|
OfferLetter: 'OfferLetter',
|
|
94
|
-
|
|
94
|
+
ApplicationTermination: 'ApplicationTermination',
|
|
95
95
|
PaymentMethodChangeRequest: 'PaymentMethodChangeRequest',
|
|
96
96
|
DocumentRequirementRule: 'DocumentRequirementRule',
|
|
97
97
|
EventChannel: 'EventChannel',
|
|
@@ -399,6 +399,11 @@ export const PaymentPlanScalarFieldEnum = {
|
|
|
399
399
|
numberOfInstallments: 'numberOfInstallments',
|
|
400
400
|
calculateInterestDaily: 'calculateInterestDaily',
|
|
401
401
|
gracePeriodDays: 'gracePeriodDays',
|
|
402
|
+
allowFlexibleTerm: 'allowFlexibleTerm',
|
|
403
|
+
minTermMonths: 'minTermMonths',
|
|
404
|
+
maxTermMonths: 'maxTermMonths',
|
|
405
|
+
termStepMonths: 'termStepMonths',
|
|
406
|
+
maxAgeAtMaturity: 'maxAgeAtMaturity',
|
|
402
407
|
collectFunds: 'collectFunds',
|
|
403
408
|
createdAt: 'createdAt',
|
|
404
409
|
updatedAt: 'updatedAt'
|
|
@@ -500,17 +505,17 @@ export const PaymentMethodPhaseFieldScalarFieldEnum = {
|
|
|
500
505
|
createdAt: 'createdAt',
|
|
501
506
|
updatedAt: 'updatedAt'
|
|
502
507
|
};
|
|
503
|
-
export const
|
|
508
|
+
export const ApplicationScalarFieldEnum = {
|
|
504
509
|
id: 'id',
|
|
505
510
|
tenantId: 'tenantId',
|
|
506
511
|
propertyUnitId: 'propertyUnitId',
|
|
507
512
|
buyerId: 'buyerId',
|
|
508
513
|
sellerId: 'sellerId',
|
|
509
514
|
paymentMethodId: 'paymentMethodId',
|
|
510
|
-
|
|
515
|
+
applicationNumber: 'applicationNumber',
|
|
511
516
|
title: 'title',
|
|
512
517
|
description: 'description',
|
|
513
|
-
|
|
518
|
+
applicationType: 'applicationType',
|
|
514
519
|
totalAmount: 'totalAmount',
|
|
515
520
|
status: 'status',
|
|
516
521
|
currentPhaseId: 'currentPhaseId',
|
|
@@ -524,10 +529,10 @@ export const ContractScalarFieldEnum = {
|
|
|
524
529
|
updatedAt: 'updatedAt',
|
|
525
530
|
transferredFromId: 'transferredFromId'
|
|
526
531
|
};
|
|
527
|
-
export const
|
|
532
|
+
export const ApplicationRefundScalarFieldEnum = {
|
|
528
533
|
id: 'id',
|
|
529
534
|
tenantId: 'tenantId',
|
|
530
|
-
|
|
535
|
+
applicationId: 'applicationId',
|
|
531
536
|
amount: 'amount',
|
|
532
537
|
reason: 'reason',
|
|
533
538
|
status: 'status',
|
|
@@ -549,9 +554,9 @@ export const ContractRefundScalarFieldEnum = {
|
|
|
549
554
|
createdAt: 'createdAt',
|
|
550
555
|
updatedAt: 'updatedAt'
|
|
551
556
|
};
|
|
552
|
-
export const
|
|
557
|
+
export const ApplicationPhaseScalarFieldEnum = {
|
|
553
558
|
id: 'id',
|
|
554
|
-
|
|
559
|
+
applicationId: 'applicationId',
|
|
555
560
|
name: 'name',
|
|
556
561
|
description: 'description',
|
|
557
562
|
phaseCategory: 'phaseCategory',
|
|
@@ -602,6 +607,8 @@ export const PaymentPhaseScalarFieldEnum = {
|
|
|
602
607
|
totalAmount: 'totalAmount',
|
|
603
608
|
paidAmount: 'paidAmount',
|
|
604
609
|
interestRate: 'interestRate',
|
|
610
|
+
selectedTermMonths: 'selectedTermMonths',
|
|
611
|
+
numberOfInstallments: 'numberOfInstallments',
|
|
605
612
|
collectFunds: 'collectFunds',
|
|
606
613
|
minimumCompletionPercentage: 'minimumCompletionPercentage',
|
|
607
614
|
paymentPlanSnapshot: 'paymentPlanSnapshot',
|
|
@@ -628,9 +635,9 @@ export const QuestionnaireFieldScalarFieldEnum = {
|
|
|
628
635
|
createdAt: 'createdAt',
|
|
629
636
|
updatedAt: 'updatedAt'
|
|
630
637
|
};
|
|
631
|
-
export const
|
|
638
|
+
export const ApplicationEventScalarFieldEnum = {
|
|
632
639
|
id: 'id',
|
|
633
|
-
|
|
640
|
+
applicationId: 'applicationId',
|
|
634
641
|
eventType: 'eventType',
|
|
635
642
|
eventGroup: 'eventGroup',
|
|
636
643
|
fromState: 'fromState',
|
|
@@ -675,7 +682,7 @@ export const DocumentationStepApprovalScalarFieldEnum = {
|
|
|
675
682
|
decidedAt: 'decidedAt',
|
|
676
683
|
createdAt: 'createdAt'
|
|
677
684
|
};
|
|
678
|
-
export const
|
|
685
|
+
export const PaymentInstallmentScalarFieldEnum = {
|
|
679
686
|
id: 'id',
|
|
680
687
|
paymentPhaseId: 'paymentPhaseId',
|
|
681
688
|
installmentNumber: 'installmentNumber',
|
|
@@ -693,9 +700,9 @@ export const ContractInstallmentScalarFieldEnum = {
|
|
|
693
700
|
createdAt: 'createdAt',
|
|
694
701
|
updatedAt: 'updatedAt'
|
|
695
702
|
};
|
|
696
|
-
export const
|
|
703
|
+
export const ApplicationPaymentScalarFieldEnum = {
|
|
697
704
|
id: 'id',
|
|
698
|
-
|
|
705
|
+
applicationId: 'applicationId',
|
|
699
706
|
phaseId: 'phaseId',
|
|
700
707
|
installmentId: 'installmentId',
|
|
701
708
|
payerId: 'payerId',
|
|
@@ -711,9 +718,9 @@ export const ContractPaymentScalarFieldEnum = {
|
|
|
711
718
|
createdAt: 'createdAt',
|
|
712
719
|
updatedAt: 'updatedAt'
|
|
713
720
|
};
|
|
714
|
-
export const
|
|
721
|
+
export const ApplicationDocumentScalarFieldEnum = {
|
|
715
722
|
id: 'id',
|
|
716
|
-
|
|
723
|
+
applicationId: 'applicationId',
|
|
717
724
|
phaseId: 'phaseId',
|
|
718
725
|
stepId: 'stepId',
|
|
719
726
|
name: 'name',
|
|
@@ -742,7 +749,7 @@ export const DocumentTemplateScalarFieldEnum = {
|
|
|
742
749
|
export const OfferLetterScalarFieldEnum = {
|
|
743
750
|
id: 'id',
|
|
744
751
|
tenantId: 'tenantId',
|
|
745
|
-
|
|
752
|
+
applicationId: 'applicationId',
|
|
746
753
|
templateId: 'templateId',
|
|
747
754
|
letterNumber: 'letterNumber',
|
|
748
755
|
type: 'type',
|
|
@@ -765,9 +772,9 @@ export const OfferLetterScalarFieldEnum = {
|
|
|
765
772
|
createdAt: 'createdAt',
|
|
766
773
|
updatedAt: 'updatedAt'
|
|
767
774
|
};
|
|
768
|
-
export const
|
|
775
|
+
export const ApplicationTerminationScalarFieldEnum = {
|
|
769
776
|
id: 'id',
|
|
770
|
-
|
|
777
|
+
applicationId: 'applicationId',
|
|
771
778
|
tenantId: 'tenantId',
|
|
772
779
|
requestNumber: 'requestNumber',
|
|
773
780
|
initiatedBy: 'initiatedBy',
|
|
@@ -782,8 +789,8 @@ export const ContractTerminationScalarFieldEnum = {
|
|
|
782
789
|
reviewedAt: 'reviewedAt',
|
|
783
790
|
reviewNotes: 'reviewNotes',
|
|
784
791
|
rejectionReason: 'rejectionReason',
|
|
785
|
-
|
|
786
|
-
|
|
792
|
+
applicationSnapshot: 'applicationSnapshot',
|
|
793
|
+
totalApplicationAmount: 'totalApplicationAmount',
|
|
787
794
|
totalPaidToDate: 'totalPaidToDate',
|
|
788
795
|
outstandingBalance: 'outstandingBalance',
|
|
789
796
|
refundableAmount: 'refundableAmount',
|
|
@@ -814,7 +821,7 @@ export const ContractTerminationScalarFieldEnum = {
|
|
|
814
821
|
export const PaymentMethodChangeRequestScalarFieldEnum = {
|
|
815
822
|
id: 'id',
|
|
816
823
|
tenantId: 'tenantId',
|
|
817
|
-
|
|
824
|
+
applicationId: 'applicationId',
|
|
818
825
|
fromPaymentMethodId: 'fromPaymentMethodId',
|
|
819
826
|
toPaymentMethodId: 'toPaymentMethodId',
|
|
820
827
|
requestorId: 'requestorId',
|
|
@@ -946,7 +953,7 @@ export const DomainEventScalarFieldEnum = {
|
|
|
946
953
|
export const PropertyTransferRequestScalarFieldEnum = {
|
|
947
954
|
id: 'id',
|
|
948
955
|
tenantId: 'tenantId',
|
|
949
|
-
|
|
956
|
+
sourceApplicationId: 'sourceApplicationId',
|
|
950
957
|
targetPropertyUnitId: 'targetPropertyUnitId',
|
|
951
958
|
requestedById: 'requestedById',
|
|
952
959
|
reviewedById: 'reviewedById',
|
|
@@ -960,7 +967,7 @@ export const PropertyTransferRequestScalarFieldEnum = {
|
|
|
960
967
|
refundedAmount: 'refundedAmount',
|
|
961
968
|
refundTransactionId: 'refundTransactionId',
|
|
962
969
|
refundedAt: 'refundedAt',
|
|
963
|
-
|
|
970
|
+
targetApplicationId: 'targetApplicationId',
|
|
964
971
|
createdAt: 'createdAt',
|
|
965
972
|
reviewedAt: 'reviewedAt',
|
|
966
973
|
completedAt: 'completedAt',
|
|
@@ -1244,24 +1251,24 @@ export const PaymentMethodPhaseFieldOrderByRelevanceFieldEnum = {
|
|
|
1244
1251
|
description: 'description',
|
|
1245
1252
|
placeholder: 'placeholder'
|
|
1246
1253
|
};
|
|
1247
|
-
export const
|
|
1254
|
+
export const ApplicationOrderByRelevanceFieldEnum = {
|
|
1248
1255
|
id: 'id',
|
|
1249
1256
|
tenantId: 'tenantId',
|
|
1250
1257
|
propertyUnitId: 'propertyUnitId',
|
|
1251
1258
|
buyerId: 'buyerId',
|
|
1252
1259
|
sellerId: 'sellerId',
|
|
1253
1260
|
paymentMethodId: 'paymentMethodId',
|
|
1254
|
-
|
|
1261
|
+
applicationNumber: 'applicationNumber',
|
|
1255
1262
|
title: 'title',
|
|
1256
1263
|
description: 'description',
|
|
1257
|
-
|
|
1264
|
+
applicationType: 'applicationType',
|
|
1258
1265
|
currentPhaseId: 'currentPhaseId',
|
|
1259
1266
|
transferredFromId: 'transferredFromId'
|
|
1260
1267
|
};
|
|
1261
|
-
export const
|
|
1268
|
+
export const ApplicationRefundOrderByRelevanceFieldEnum = {
|
|
1262
1269
|
id: 'id',
|
|
1263
1270
|
tenantId: 'tenantId',
|
|
1264
|
-
|
|
1271
|
+
applicationId: 'applicationId',
|
|
1265
1272
|
reason: 'reason',
|
|
1266
1273
|
requestedById: 'requestedById',
|
|
1267
1274
|
approvedById: 'approvedById',
|
|
@@ -1275,9 +1282,9 @@ export const ContractRefundOrderByRelevanceFieldEnum = {
|
|
|
1275
1282
|
rejectionNotes: 'rejectionNotes',
|
|
1276
1283
|
processingNotes: 'processingNotes'
|
|
1277
1284
|
};
|
|
1278
|
-
export const
|
|
1285
|
+
export const ApplicationPhaseOrderByRelevanceFieldEnum = {
|
|
1279
1286
|
id: 'id',
|
|
1280
|
-
|
|
1287
|
+
applicationId: 'applicationId',
|
|
1281
1288
|
name: 'name',
|
|
1282
1289
|
description: 'description'
|
|
1283
1290
|
};
|
|
@@ -1305,9 +1312,9 @@ export const QuestionnaireFieldOrderByRelevanceFieldEnum = {
|
|
|
1305
1312
|
description: 'description',
|
|
1306
1313
|
placeholder: 'placeholder'
|
|
1307
1314
|
};
|
|
1308
|
-
export const
|
|
1315
|
+
export const ApplicationEventOrderByRelevanceFieldEnum = {
|
|
1309
1316
|
id: 'id',
|
|
1310
|
-
|
|
1317
|
+
applicationId: 'applicationId',
|
|
1311
1318
|
fromState: 'fromState',
|
|
1312
1319
|
toState: 'toState',
|
|
1313
1320
|
trigger: 'trigger',
|
|
@@ -1332,13 +1339,13 @@ export const DocumentationStepApprovalOrderByRelevanceFieldEnum = {
|
|
|
1332
1339
|
approverId: 'approverId',
|
|
1333
1340
|
comment: 'comment'
|
|
1334
1341
|
};
|
|
1335
|
-
export const
|
|
1342
|
+
export const PaymentInstallmentOrderByRelevanceFieldEnum = {
|
|
1336
1343
|
id: 'id',
|
|
1337
1344
|
paymentPhaseId: 'paymentPhaseId'
|
|
1338
1345
|
};
|
|
1339
|
-
export const
|
|
1346
|
+
export const ApplicationPaymentOrderByRelevanceFieldEnum = {
|
|
1340
1347
|
id: 'id',
|
|
1341
|
-
|
|
1348
|
+
applicationId: 'applicationId',
|
|
1342
1349
|
phaseId: 'phaseId',
|
|
1343
1350
|
installmentId: 'installmentId',
|
|
1344
1351
|
payerId: 'payerId',
|
|
@@ -1346,9 +1353,9 @@ export const ContractPaymentOrderByRelevanceFieldEnum = {
|
|
|
1346
1353
|
reference: 'reference',
|
|
1347
1354
|
gatewayResponse: 'gatewayResponse'
|
|
1348
1355
|
};
|
|
1349
|
-
export const
|
|
1356
|
+
export const ApplicationDocumentOrderByRelevanceFieldEnum = {
|
|
1350
1357
|
id: 'id',
|
|
1351
|
-
|
|
1358
|
+
applicationId: 'applicationId',
|
|
1352
1359
|
phaseId: 'phaseId',
|
|
1353
1360
|
stepId: 'stepId',
|
|
1354
1361
|
name: 'name',
|
|
@@ -1368,7 +1375,7 @@ export const DocumentTemplateOrderByRelevanceFieldEnum = {
|
|
|
1368
1375
|
export const OfferLetterOrderByRelevanceFieldEnum = {
|
|
1369
1376
|
id: 'id',
|
|
1370
1377
|
tenantId: 'tenantId',
|
|
1371
|
-
|
|
1378
|
+
applicationId: 'applicationId',
|
|
1372
1379
|
templateId: 'templateId',
|
|
1373
1380
|
letterNumber: 'letterNumber',
|
|
1374
1381
|
htmlContent: 'htmlContent',
|
|
@@ -1379,9 +1386,9 @@ export const OfferLetterOrderByRelevanceFieldEnum = {
|
|
|
1379
1386
|
generatedById: 'generatedById',
|
|
1380
1387
|
sentById: 'sentById'
|
|
1381
1388
|
};
|
|
1382
|
-
export const
|
|
1389
|
+
export const ApplicationTerminationOrderByRelevanceFieldEnum = {
|
|
1383
1390
|
id: 'id',
|
|
1384
|
-
|
|
1391
|
+
applicationId: 'applicationId',
|
|
1385
1392
|
tenantId: 'tenantId',
|
|
1386
1393
|
requestNumber: 'requestNumber',
|
|
1387
1394
|
initiatorId: 'initiatorId',
|
|
@@ -1399,7 +1406,7 @@ export const ContractTerminationOrderByRelevanceFieldEnum = {
|
|
|
1399
1406
|
export const PaymentMethodChangeRequestOrderByRelevanceFieldEnum = {
|
|
1400
1407
|
id: 'id',
|
|
1401
1408
|
tenantId: 'tenantId',
|
|
1402
|
-
|
|
1409
|
+
applicationId: 'applicationId',
|
|
1403
1410
|
fromPaymentMethodId: 'fromPaymentMethodId',
|
|
1404
1411
|
toPaymentMethodId: 'toPaymentMethodId',
|
|
1405
1412
|
requestorId: 'requestorId',
|
|
@@ -1475,7 +1482,7 @@ export const DomainEventOrderByRelevanceFieldEnum = {
|
|
|
1475
1482
|
export const PropertyTransferRequestOrderByRelevanceFieldEnum = {
|
|
1476
1483
|
id: 'id',
|
|
1477
1484
|
tenantId: 'tenantId',
|
|
1478
|
-
|
|
1485
|
+
sourceApplicationId: 'sourceApplicationId',
|
|
1479
1486
|
targetPropertyUnitId: 'targetPropertyUnitId',
|
|
1480
1487
|
requestedById: 'requestedById',
|
|
1481
1488
|
reviewedById: 'reviewedById',
|
|
@@ -1483,7 +1490,7 @@ export const PropertyTransferRequestOrderByRelevanceFieldEnum = {
|
|
|
1483
1490
|
reviewNotes: 'reviewNotes',
|
|
1484
1491
|
priceAdjustmentHandling: 'priceAdjustmentHandling',
|
|
1485
1492
|
refundTransactionId: 'refundTransactionId',
|
|
1486
|
-
|
|
1493
|
+
targetApplicationId: 'targetApplicationId'
|
|
1487
1494
|
};
|
|
1488
1495
|
export const ApprovalRequestOrderByRelevanceFieldEnum = {
|
|
1489
1496
|
id: 'id',
|