@valentine-efagene/qshelter-common 2.0.28 → 2.0.30

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 (32) hide show
  1. package/dist/generated/client/browser.d.ts +15 -0
  2. package/dist/generated/client/client.d.ts +15 -0
  3. package/dist/generated/client/commonInputTypes.d.ts +408 -48
  4. package/dist/generated/client/enums.d.ts +92 -0
  5. package/dist/generated/client/enums.js +80 -0
  6. package/dist/generated/client/internal/class.d.ts +33 -0
  7. package/dist/generated/client/internal/class.js +2 -2
  8. package/dist/generated/client/internal/prismaNamespace.d.ts +330 -36
  9. package/dist/generated/client/internal/prismaNamespace.js +76 -37
  10. package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +80 -35
  11. package/dist/generated/client/internal/prismaNamespaceBrowser.js +76 -37
  12. package/dist/generated/client/models/Contract.d.ts +152 -148
  13. package/dist/generated/client/models/ContractDocument.d.ts +32 -28
  14. package/dist/generated/client/models/ContractInstallment.d.ts +30 -26
  15. package/dist/generated/client/models/ContractPayment.d.ts +44 -40
  16. package/dist/generated/client/models/ContractPhase.d.ts +539 -121
  17. package/dist/generated/client/models/ContractPhaseStep.d.ts +208 -108
  18. package/dist/generated/client/models/ContractPhaseStepApproval.d.ts +32 -28
  19. package/dist/generated/client/models/ContractPhaseStepDocument.d.ts +1052 -0
  20. package/dist/generated/client/models/ContractPhaseStepDocument.js +1 -0
  21. package/dist/generated/client/models/PaymentMethodPhaseDocument.d.ts +1216 -0
  22. package/dist/generated/client/models/PaymentMethodPhaseDocument.js +1 -0
  23. package/dist/generated/client/models/PaymentMethodPhaseStep.d.ts +1187 -0
  24. package/dist/generated/client/models/PaymentMethodPhaseStep.js +1 -0
  25. package/dist/generated/client/models/PaymentPlan.d.ts +34 -30
  26. package/dist/generated/client/models/PropertyPaymentMethodPhase.d.ts +504 -135
  27. package/dist/generated/client/models/index.d.ts +3 -0
  28. package/dist/generated/client/models/index.js +3 -0
  29. package/dist/generated/client/models.d.ts +3 -0
  30. package/dist/src/middleware/error-handler.js +3 -0
  31. package/package.json +1 -1
  32. package/prisma/schema.prisma +195 -30
@@ -1,3 +1,95 @@
1
+ export declare const PhaseCategory: {
2
+ readonly DOCUMENTATION: "DOCUMENTATION";
3
+ readonly PAYMENT: "PAYMENT";
4
+ };
5
+ export type PhaseCategory = (typeof PhaseCategory)[keyof typeof PhaseCategory];
6
+ export declare const PhaseType: {
7
+ readonly KYC: "KYC";
8
+ readonly VERIFICATION: "VERIFICATION";
9
+ readonly DOWNPAYMENT: "DOWNPAYMENT";
10
+ readonly MORTGAGE: "MORTGAGE";
11
+ readonly BALLOON: "BALLOON";
12
+ readonly CUSTOM: "CUSTOM";
13
+ };
14
+ export type PhaseType = (typeof PhaseType)[keyof typeof PhaseType];
15
+ export declare const PaymentFrequency: {
16
+ readonly MONTHLY: "MONTHLY";
17
+ readonly BIWEEKLY: "BIWEEKLY";
18
+ readonly WEEKLY: "WEEKLY";
19
+ readonly ONE_TIME: "ONE_TIME";
20
+ readonly CUSTOM: "CUSTOM";
21
+ };
22
+ export type PaymentFrequency = (typeof PaymentFrequency)[keyof typeof PaymentFrequency];
23
+ export declare const ContractStatus: {
24
+ readonly DRAFT: "DRAFT";
25
+ readonly PENDING: "PENDING";
26
+ readonly ACTIVE: "ACTIVE";
27
+ readonly COMPLETED: "COMPLETED";
28
+ readonly CANCELLED: "CANCELLED";
29
+ readonly TERMINATED: "TERMINATED";
30
+ };
31
+ export type ContractStatus = (typeof ContractStatus)[keyof typeof ContractStatus];
32
+ export declare const PhaseStatus: {
33
+ readonly PENDING: "PENDING";
34
+ readonly IN_PROGRESS: "IN_PROGRESS";
35
+ readonly AWAITING_APPROVAL: "AWAITING_APPROVAL";
36
+ readonly ACTIVE: "ACTIVE";
37
+ readonly COMPLETED: "COMPLETED";
38
+ readonly SKIPPED: "SKIPPED";
39
+ readonly FAILED: "FAILED";
40
+ };
41
+ export type PhaseStatus = (typeof PhaseStatus)[keyof typeof PhaseStatus];
42
+ export declare const StepType: {
43
+ readonly UPLOAD: "UPLOAD";
44
+ readonly REVIEW: "REVIEW";
45
+ readonly SIGNATURE: "SIGNATURE";
46
+ readonly APPROVAL: "APPROVAL";
47
+ readonly EXTERNAL_CHECK: "EXTERNAL_CHECK";
48
+ readonly WAIT: "WAIT";
49
+ };
50
+ export type StepType = (typeof StepType)[keyof typeof StepType];
51
+ export declare const StepStatus: {
52
+ readonly PENDING: "PENDING";
53
+ readonly IN_PROGRESS: "IN_PROGRESS";
54
+ readonly COMPLETED: "COMPLETED";
55
+ readonly FAILED: "FAILED";
56
+ readonly SKIPPED: "SKIPPED";
57
+ };
58
+ export type StepStatus = (typeof StepStatus)[keyof typeof StepStatus];
59
+ export declare const InstallmentStatus: {
60
+ readonly PENDING: "PENDING";
61
+ readonly PAID: "PAID";
62
+ readonly OVERDUE: "OVERDUE";
63
+ readonly PARTIALLY_PAID: "PARTIALLY_PAID";
64
+ readonly WAIVED: "WAIVED";
65
+ };
66
+ export type InstallmentStatus = (typeof InstallmentStatus)[keyof typeof InstallmentStatus];
67
+ export declare const PaymentStatus: {
68
+ readonly INITIATED: "INITIATED";
69
+ readonly PENDING: "PENDING";
70
+ readonly COMPLETED: "COMPLETED";
71
+ readonly FAILED: "FAILED";
72
+ readonly REFUNDED: "REFUNDED";
73
+ };
74
+ export type PaymentStatus = (typeof PaymentStatus)[keyof typeof PaymentStatus];
75
+ export declare const ApprovalDecision: {
76
+ readonly APPROVED: "APPROVED";
77
+ readonly REJECTED: "REJECTED";
78
+ readonly REQUEST_CHANGES: "REQUEST_CHANGES";
79
+ };
80
+ export type ApprovalDecision = (typeof ApprovalDecision)[keyof typeof ApprovalDecision];
81
+ export declare const CompletionCriterion: {
82
+ readonly DOCUMENT_APPROVALS: "DOCUMENT_APPROVALS";
83
+ readonly PAYMENT_AMOUNT: "PAYMENT_AMOUNT";
84
+ readonly STEPS_COMPLETED: "STEPS_COMPLETED";
85
+ };
86
+ export type CompletionCriterion = (typeof CompletionCriterion)[keyof typeof CompletionCriterion];
87
+ export declare const DocumentStatus: {
88
+ readonly PENDING: "PENDING";
89
+ readonly APPROVED: "APPROVED";
90
+ readonly REJECTED: "REJECTED";
91
+ };
92
+ export type DocumentStatus = (typeof DocumentStatus)[keyof typeof DocumentStatus];
1
93
  export declare const PrequalificationStatus: {
2
94
  readonly DRAFT: "DRAFT";
3
95
  readonly SUBMITTED: "SUBMITTED";
@@ -7,6 +7,86 @@
7
7
  *
8
8
  * 🟢 You can import this file directly.
9
9
  */
10
+ export const PhaseCategory = {
11
+ DOCUMENTATION: 'DOCUMENTATION',
12
+ PAYMENT: 'PAYMENT'
13
+ };
14
+ export const PhaseType = {
15
+ KYC: 'KYC',
16
+ VERIFICATION: 'VERIFICATION',
17
+ DOWNPAYMENT: 'DOWNPAYMENT',
18
+ MORTGAGE: 'MORTGAGE',
19
+ BALLOON: 'BALLOON',
20
+ CUSTOM: 'CUSTOM'
21
+ };
22
+ export const PaymentFrequency = {
23
+ MONTHLY: 'MONTHLY',
24
+ BIWEEKLY: 'BIWEEKLY',
25
+ WEEKLY: 'WEEKLY',
26
+ ONE_TIME: 'ONE_TIME',
27
+ CUSTOM: 'CUSTOM'
28
+ };
29
+ export const ContractStatus = {
30
+ DRAFT: 'DRAFT',
31
+ PENDING: 'PENDING',
32
+ ACTIVE: 'ACTIVE',
33
+ COMPLETED: 'COMPLETED',
34
+ CANCELLED: 'CANCELLED',
35
+ TERMINATED: 'TERMINATED'
36
+ };
37
+ export const PhaseStatus = {
38
+ PENDING: 'PENDING',
39
+ IN_PROGRESS: 'IN_PROGRESS',
40
+ AWAITING_APPROVAL: 'AWAITING_APPROVAL',
41
+ ACTIVE: 'ACTIVE',
42
+ COMPLETED: 'COMPLETED',
43
+ SKIPPED: 'SKIPPED',
44
+ FAILED: 'FAILED'
45
+ };
46
+ export const StepType = {
47
+ UPLOAD: 'UPLOAD',
48
+ REVIEW: 'REVIEW',
49
+ SIGNATURE: 'SIGNATURE',
50
+ APPROVAL: 'APPROVAL',
51
+ EXTERNAL_CHECK: 'EXTERNAL_CHECK',
52
+ WAIT: 'WAIT'
53
+ };
54
+ export const StepStatus = {
55
+ PENDING: 'PENDING',
56
+ IN_PROGRESS: 'IN_PROGRESS',
57
+ COMPLETED: 'COMPLETED',
58
+ FAILED: 'FAILED',
59
+ SKIPPED: 'SKIPPED'
60
+ };
61
+ export const InstallmentStatus = {
62
+ PENDING: 'PENDING',
63
+ PAID: 'PAID',
64
+ OVERDUE: 'OVERDUE',
65
+ PARTIALLY_PAID: 'PARTIALLY_PAID',
66
+ WAIVED: 'WAIVED'
67
+ };
68
+ export const PaymentStatus = {
69
+ INITIATED: 'INITIATED',
70
+ PENDING: 'PENDING',
71
+ COMPLETED: 'COMPLETED',
72
+ FAILED: 'FAILED',
73
+ REFUNDED: 'REFUNDED'
74
+ };
75
+ export const ApprovalDecision = {
76
+ APPROVED: 'APPROVED',
77
+ REJECTED: 'REJECTED',
78
+ REQUEST_CHANGES: 'REQUEST_CHANGES'
79
+ };
80
+ export const CompletionCriterion = {
81
+ DOCUMENT_APPROVALS: 'DOCUMENT_APPROVALS',
82
+ PAYMENT_AMOUNT: 'PAYMENT_AMOUNT',
83
+ STEPS_COMPLETED: 'STEPS_COMPLETED'
84
+ };
85
+ export const DocumentStatus = {
86
+ PENDING: 'PENDING',
87
+ APPROVED: 'APPROVED',
88
+ REJECTED: 'REJECTED'
89
+ };
10
90
  export const PrequalificationStatus = {
11
91
  DRAFT: 'DRAFT',
12
92
  SUBMITTED: 'SUBMITTED',
@@ -430,6 +430,28 @@ export interface PrismaClient<in LogOpts extends Prisma.LogLevel = never, in out
430
430
  get propertyPaymentMethodPhase(): Prisma.PropertyPaymentMethodPhaseDelegate<ExtArgs, {
431
431
  omit: OmitOpts;
432
432
  }>;
433
+ /**
434
+ * `prisma.paymentMethodPhaseStep`: Exposes CRUD operations for the **PaymentMethodPhaseStep** model.
435
+ * Example usage:
436
+ * ```ts
437
+ * // Fetch zero or more PaymentMethodPhaseSteps
438
+ * const paymentMethodPhaseSteps = await prisma.paymentMethodPhaseStep.findMany()
439
+ * ```
440
+ */
441
+ get paymentMethodPhaseStep(): Prisma.PaymentMethodPhaseStepDelegate<ExtArgs, {
442
+ omit: OmitOpts;
443
+ }>;
444
+ /**
445
+ * `prisma.paymentMethodPhaseDocument`: Exposes CRUD operations for the **PaymentMethodPhaseDocument** model.
446
+ * Example usage:
447
+ * ```ts
448
+ * // Fetch zero or more PaymentMethodPhaseDocuments
449
+ * const paymentMethodPhaseDocuments = await prisma.paymentMethodPhaseDocument.findMany()
450
+ * ```
451
+ */
452
+ get paymentMethodPhaseDocument(): Prisma.PaymentMethodPhaseDocumentDelegate<ExtArgs, {
453
+ omit: OmitOpts;
454
+ }>;
433
455
  /**
434
456
  * `prisma.contract`: Exposes CRUD operations for the **Contract** model.
435
457
  * Example usage:
@@ -463,6 +485,17 @@ export interface PrismaClient<in LogOpts extends Prisma.LogLevel = never, in out
463
485
  get contractPhaseStep(): Prisma.ContractPhaseStepDelegate<ExtArgs, {
464
486
  omit: OmitOpts;
465
487
  }>;
488
+ /**
489
+ * `prisma.contractPhaseStepDocument`: Exposes CRUD operations for the **ContractPhaseStepDocument** model.
490
+ * Example usage:
491
+ * ```ts
492
+ * // Fetch zero or more ContractPhaseStepDocuments
493
+ * const contractPhaseStepDocuments = await prisma.contractPhaseStepDocument.findMany()
494
+ * ```
495
+ */
496
+ get contractPhaseStepDocument(): Prisma.ContractPhaseStepDocumentDelegate<ExtArgs, {
497
+ omit: OmitOpts;
498
+ }>;
466
499
  /**
467
500
  * `prisma.contractPhaseStepApproval`: Exposes CRUD operations for the **ContractPhaseStepApproval** model.
468
501
  * Example usage: