@valentine-efagene/qshelter-common 2.0.21 → 2.0.24

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 (65) hide show
  1. package/dist/generated/client/browser.d.ts +45 -30
  2. package/dist/generated/client/client.d.ts +45 -30
  3. package/dist/generated/client/commonInputTypes.d.ts +40 -0
  4. package/dist/generated/client/internal/class.d.ts +93 -60
  5. package/dist/generated/client/internal/class.js +2 -2
  6. package/dist/generated/client/internal/prismaNamespace.d.ts +1058 -720
  7. package/dist/generated/client/internal/prismaNamespace.js +321 -190
  8. package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +352 -215
  9. package/dist/generated/client/internal/prismaNamespaceBrowser.js +321 -190
  10. package/dist/generated/client/models/Amenity.d.ts +168 -1
  11. package/dist/generated/client/models/Contract.d.ts +2390 -309
  12. package/dist/generated/client/models/ContractDocument.d.ts +299 -12
  13. package/dist/generated/client/models/ContractEvent.d.ts +1052 -0
  14. package/dist/generated/client/models/ContractEvent.js +1 -0
  15. package/dist/generated/client/models/ContractInstallment.d.ts +1656 -0
  16. package/dist/generated/client/models/ContractInstallment.js +1 -0
  17. package/dist/generated/client/models/ContractPayment.d.ts +2026 -0
  18. package/dist/generated/client/models/ContractPayment.js +1 -0
  19. package/dist/generated/client/models/ContractPhase.d.ts +2467 -0
  20. package/dist/generated/client/models/ContractPhase.js +1 -0
  21. package/dist/generated/client/models/ContractPhaseStep.d.ts +1678 -0
  22. package/dist/generated/client/models/ContractPhaseStep.js +1 -0
  23. package/dist/generated/client/models/ContractPhaseStepApproval.d.ts +1249 -0
  24. package/dist/generated/client/models/ContractPhaseStepApproval.js +1 -0
  25. package/dist/generated/client/models/ContractTransition.d.ts +1118 -0
  26. package/dist/generated/client/models/ContractTransition.js +1 -0
  27. package/dist/generated/client/models/DomainEvent.d.ts +1240 -0
  28. package/dist/generated/client/models/DomainEvent.js +1 -0
  29. package/dist/generated/client/models/PaymentPlan.d.ts +467 -971
  30. package/dist/generated/client/models/Property.d.ts +372 -626
  31. package/dist/generated/client/models/PropertyPaymentMethod.d.ts +1714 -0
  32. package/dist/generated/client/models/PropertyPaymentMethod.js +1 -0
  33. package/dist/generated/client/models/PropertyPaymentMethodLink.d.ts +1158 -0
  34. package/dist/generated/client/models/PropertyPaymentMethodLink.js +1 -0
  35. package/dist/generated/client/models/PropertyPaymentMethodPhase.d.ts +1656 -0
  36. package/dist/generated/client/models/PropertyPaymentMethodPhase.js +1 -0
  37. package/dist/generated/client/models/PropertyUnit.d.ts +1598 -0
  38. package/dist/generated/client/models/PropertyUnit.js +1 -0
  39. package/dist/generated/client/models/PropertyVariant.d.ts +2079 -0
  40. package/dist/generated/client/models/PropertyVariant.js +1 -0
  41. package/dist/generated/client/models/PropertyVariantAmenity.d.ts +1080 -0
  42. package/dist/generated/client/models/PropertyVariantAmenity.js +1 -0
  43. package/dist/generated/client/models/PropertyVariantMedia.d.ts +1189 -0
  44. package/dist/generated/client/models/PropertyVariantMedia.js +1 -0
  45. package/dist/generated/client/models/Tenant.d.ts +482 -0
  46. package/dist/generated/client/models/User.d.ts +684 -427
  47. package/dist/generated/client/models/index.d.ts +15 -12
  48. package/dist/generated/client/models/index.js +15 -12
  49. package/dist/generated/client/models.d.ts +15 -12
  50. package/dist/src/index.d.ts +2 -0
  51. package/dist/src/index.js +2 -0
  52. package/dist/src/middleware/error-handler.d.ts +6 -0
  53. package/dist/src/middleware/error-handler.js +26 -0
  54. package/dist/src/middleware/index.d.ts +3 -0
  55. package/dist/src/middleware/index.js +3 -0
  56. package/dist/src/middleware/request-logger.d.ts +6 -0
  57. package/dist/src/middleware/request-logger.js +17 -0
  58. package/dist/src/middleware/tenant.d.ts +61 -0
  59. package/dist/src/middleware/tenant.js +85 -0
  60. package/dist/src/prisma/tenant.d.ts +51 -0
  61. package/dist/src/prisma/tenant.js +211 -0
  62. package/package.json +16 -2
  63. package/prisma/migrations/20251230104059_add_property_variants/migration.sql +622 -0
  64. package/prisma/migrations/20251230113413_add_multitenancy/migration.sql +54 -0
  65. package/prisma/schema.prisma +561 -267
@@ -87,22 +87,25 @@ export const ModelName = {
87
87
  PropertyMedia: 'PropertyMedia',
88
88
  PropertyDocument: 'PropertyDocument',
89
89
  Amenity: 'Amenity',
90
+ PropertyVariant: 'PropertyVariant',
91
+ PropertyVariantAmenity: 'PropertyVariantAmenity',
92
+ PropertyVariantMedia: 'PropertyVariantMedia',
93
+ PropertyUnit: 'PropertyUnit',
90
94
  PropertyAmenity: 'PropertyAmenity',
91
- Mortgage: 'Mortgage',
92
- MortgageType: 'MortgageType',
93
- MortgageDocument: 'MortgageDocument',
94
- MortgageStep: 'MortgageStep',
95
- MortgageDownpaymentPlan: 'MortgageDownpaymentPlan',
96
- MortgageDownpaymentInstallment: 'MortgageDownpaymentInstallment',
97
- MortgageDownpaymentPayment: 'MortgageDownpaymentPayment',
98
- MortgageTransition: 'MortgageTransition',
99
- MortgageTransitionEvent: 'MortgageTransitionEvent',
100
95
  PaymentPlan: 'PaymentPlan',
101
- PaymentSchedule: 'PaymentSchedule',
102
- PaymentInstallment: 'PaymentInstallment',
103
- Payment: 'Payment',
96
+ PropertyPaymentMethod: 'PropertyPaymentMethod',
97
+ PropertyPaymentMethodLink: 'PropertyPaymentMethodLink',
98
+ PropertyPaymentMethodPhase: 'PropertyPaymentMethodPhase',
104
99
  Contract: 'Contract',
105
- ContractDocument: 'ContractDocument'
100
+ ContractPhase: 'ContractPhase',
101
+ ContractPhaseStep: 'ContractPhaseStep',
102
+ ContractPhaseStepApproval: 'ContractPhaseStepApproval',
103
+ ContractInstallment: 'ContractInstallment',
104
+ ContractPayment: 'ContractPayment',
105
+ ContractDocument: 'ContractDocument',
106
+ ContractTransition: 'ContractTransition',
107
+ ContractEvent: 'ContractEvent',
108
+ DomainEvent: 'DomainEvent'
106
109
  };
107
110
  /**
108
111
  * Enums
@@ -251,6 +254,7 @@ export const SettingsScalarFieldEnum = {
251
254
  };
252
255
  export const PropertyScalarFieldEnum = {
253
256
  id: 'id',
257
+ tenantId: 'tenantId',
254
258
  userId: 'userId',
255
259
  title: 'title',
256
260
  category: 'category',
@@ -261,13 +265,8 @@ export const PropertyScalarFieldEnum = {
261
265
  district: 'district',
262
266
  zipCode: 'zipCode',
263
267
  streetAddress: 'streetAddress',
264
- nBedrooms: 'nBedrooms',
265
- nBathrooms: 'nBathrooms',
266
- nParkingSpots: 'nParkingSpots',
267
- price: 'price',
268
268
  longitude: 'longitude',
269
269
  latitude: 'latitude',
270
- area: 'area',
271
270
  status: 'status',
272
271
  description: 'description',
273
272
  displayImageId: 'displayImageId',
@@ -298,138 +297,203 @@ export const PropertyDocumentScalarFieldEnum = {
298
297
  export const AmenityScalarFieldEnum = {
299
298
  id: 'id',
300
299
  name: 'name',
300
+ category: 'category',
301
+ icon: 'icon',
301
302
  createdAt: 'createdAt',
302
303
  updatedAt: 'updatedAt'
303
304
  };
304
- export const PropertyAmenityScalarFieldEnum = {
305
+ export const PropertyVariantScalarFieldEnum = {
306
+ id: 'id',
305
307
  propertyId: 'propertyId',
308
+ name: 'name',
309
+ description: 'description',
310
+ nBedrooms: 'nBedrooms',
311
+ nBathrooms: 'nBathrooms',
312
+ nParkingSpots: 'nParkingSpots',
313
+ area: 'area',
314
+ price: 'price',
315
+ pricePerSqm: 'pricePerSqm',
316
+ totalUnits: 'totalUnits',
317
+ availableUnits: 'availableUnits',
318
+ reservedUnits: 'reservedUnits',
319
+ soldUnits: 'soldUnits',
320
+ status: 'status',
321
+ isActive: 'isActive',
322
+ createdAt: 'createdAt',
323
+ updatedAt: 'updatedAt'
324
+ };
325
+ export const PropertyVariantAmenityScalarFieldEnum = {
326
+ variantId: 'variantId',
306
327
  amenityId: 'amenityId',
307
328
  createdAt: 'createdAt'
308
329
  };
309
- export const MortgageScalarFieldEnum = {
330
+ export const PropertyVariantMediaScalarFieldEnum = {
310
331
  id: 'id',
311
- propertyId: 'propertyId',
312
- borrowerId: 'borrowerId',
313
- mortgageTypeId: 'mortgageTypeId',
314
- downpaymentPlanId: 'downpaymentPlanId',
315
- principal: 'principal',
316
- downPayment: 'downPayment',
317
- downPaymentPaid: 'downPaymentPaid',
318
- termMonths: 'termMonths',
319
- interestRate: 'interestRate',
320
- monthlyPayment: 'monthlyPayment',
332
+ variantId: 'variantId',
333
+ url: 'url',
334
+ type: 'type',
335
+ caption: 'caption',
336
+ order: 'order',
337
+ createdAt: 'createdAt',
338
+ updatedAt: 'updatedAt'
339
+ };
340
+ export const PropertyUnitScalarFieldEnum = {
341
+ id: 'id',
342
+ variantId: 'variantId',
343
+ unitNumber: 'unitNumber',
344
+ floorNumber: 'floorNumber',
345
+ blockName: 'blockName',
346
+ priceOverride: 'priceOverride',
347
+ areaOverride: 'areaOverride',
348
+ notes: 'notes',
321
349
  status: 'status',
322
- state: 'state',
323
- stateMetadata: 'stateMetadata',
324
- lastReminderSentAt: 'lastReminderSentAt',
350
+ reservedAt: 'reservedAt',
351
+ reservedUntil: 'reservedUntil',
352
+ reservedById: 'reservedById',
353
+ ownerId: 'ownerId',
325
354
  createdAt: 'createdAt',
326
355
  updatedAt: 'updatedAt'
327
356
  };
328
- export const MortgageTypeScalarFieldEnum = {
357
+ export const PropertyAmenityScalarFieldEnum = {
358
+ propertyId: 'propertyId',
359
+ amenityId: 'amenityId',
360
+ createdAt: 'createdAt'
361
+ };
362
+ export const PaymentPlanScalarFieldEnum = {
329
363
  id: 'id',
364
+ tenantId: 'tenantId',
330
365
  name: 'name',
331
366
  description: 'description',
367
+ isActive: 'isActive',
368
+ paymentFrequency: 'paymentFrequency',
369
+ customFrequencyDays: 'customFrequencyDays',
370
+ numberOfInstallments: 'numberOfInstallments',
371
+ calculateInterestDaily: 'calculateInterestDaily',
372
+ gracePeriodDays: 'gracePeriodDays',
332
373
  createdAt: 'createdAt',
333
374
  updatedAt: 'updatedAt'
334
375
  };
335
- export const MortgageDocumentScalarFieldEnum = {
376
+ export const PropertyPaymentMethodScalarFieldEnum = {
336
377
  id: 'id',
337
- mortgageId: 'mortgageId',
378
+ tenantId: 'tenantId',
338
379
  name: 'name',
339
- url: 'url',
340
- type: 'type',
380
+ description: 'description',
381
+ isActive: 'isActive',
382
+ allowEarlyPayoff: 'allowEarlyPayoff',
383
+ earlyPayoffPenaltyRate: 'earlyPayoffPenaltyRate',
384
+ autoActivatePhases: 'autoActivatePhases',
385
+ requiresManualApproval: 'requiresManualApproval',
341
386
  createdAt: 'createdAt',
342
387
  updatedAt: 'updatedAt'
343
388
  };
344
- export const MortgageStepScalarFieldEnum = {
389
+ export const PropertyPaymentMethodLinkScalarFieldEnum = {
390
+ propertyId: 'propertyId',
391
+ paymentMethodId: 'paymentMethodId',
392
+ isDefault: 'isDefault',
393
+ isActive: 'isActive',
394
+ createdAt: 'createdAt'
395
+ };
396
+ export const PropertyPaymentMethodPhaseScalarFieldEnum = {
345
397
  id: 'id',
346
- mortgageId: 'mortgageId',
398
+ paymentMethodId: 'paymentMethodId',
399
+ paymentPlanId: 'paymentPlanId',
347
400
  name: 'name',
348
401
  description: 'description',
402
+ phaseCategory: 'phaseCategory',
403
+ phaseType: 'phaseType',
349
404
  order: 'order',
350
- isCompleted: 'isCompleted',
351
- completedAt: 'completedAt',
405
+ interestRate: 'interestRate',
406
+ percentOfPrice: 'percentOfPrice',
407
+ requiresPreviousPhaseCompletion: 'requiresPreviousPhaseCompletion',
408
+ minimumCompletionPercentage: 'minimumCompletionPercentage',
409
+ requiredDocumentTypes: 'requiredDocumentTypes',
410
+ stepDefinitions: 'stepDefinitions',
352
411
  createdAt: 'createdAt',
353
412
  updatedAt: 'updatedAt'
354
413
  };
355
- export const MortgageDownpaymentPlanScalarFieldEnum = {
414
+ export const ContractScalarFieldEnum = {
356
415
  id: 'id',
416
+ tenantId: 'tenantId',
417
+ propertyUnitId: 'propertyUnitId',
418
+ buyerId: 'buyerId',
419
+ sellerId: 'sellerId',
420
+ paymentMethodId: 'paymentMethodId',
421
+ contractNumber: 'contractNumber',
422
+ title: 'title',
423
+ description: 'description',
424
+ contractType: 'contractType',
357
425
  totalAmount: 'totalAmount',
358
- paidAmount: 'paidAmount',
426
+ downPayment: 'downPayment',
427
+ downPaymentPaid: 'downPaymentPaid',
428
+ principal: 'principal',
429
+ interestRate: 'interestRate',
430
+ termMonths: 'termMonths',
431
+ periodicPayment: 'periodicPayment',
432
+ totalPaidToDate: 'totalPaidToDate',
433
+ totalInterestPaid: 'totalInterestPaid',
359
434
  status: 'status',
435
+ state: 'state',
436
+ currentPhaseId: 'currentPhaseId',
437
+ nextPaymentDueDate: 'nextPaymentDueDate',
438
+ lastReminderSentAt: 'lastReminderSentAt',
360
439
  startDate: 'startDate',
361
440
  endDate: 'endDate',
441
+ signedAt: 'signedAt',
442
+ terminatedAt: 'terminatedAt',
362
443
  createdAt: 'createdAt',
363
444
  updatedAt: 'updatedAt'
364
445
  };
365
- export const MortgageDownpaymentInstallmentScalarFieldEnum = {
366
- id: 'id',
367
- planId: 'planId',
368
- amount: 'amount',
369
- dueDate: 'dueDate',
370
- isPaid: 'isPaid',
371
- paidDate: 'paidDate',
372
- createdAt: 'createdAt',
373
- updatedAt: 'updatedAt'
374
- };
375
- export const MortgageDownpaymentPaymentScalarFieldEnum = {
376
- id: 'id',
377
- planId: 'planId',
378
- amount: 'amount',
379
- paymentMethod: 'paymentMethod',
380
- reference: 'reference',
381
- status: 'status',
382
- createdAt: 'createdAt',
383
- updatedAt: 'updatedAt'
384
- };
385
- export const MortgageTransitionScalarFieldEnum = {
386
- id: 'id',
387
- mortgageId: 'mortgageId',
388
- fromState: 'fromState',
389
- toState: 'toState',
390
- trigger: 'trigger',
391
- metadata: 'metadata',
392
- transitionedAt: 'transitionedAt'
393
- };
394
- export const MortgageTransitionEventScalarFieldEnum = {
395
- id: 'id',
396
- mortgageId: 'mortgageId',
397
- event: 'event',
398
- data: 'data',
399
- createdAt: 'createdAt'
400
- };
401
- export const PaymentPlanScalarFieldEnum = {
446
+ export const ContractPhaseScalarFieldEnum = {
402
447
  id: 'id',
403
- propertyId: 'propertyId',
404
- buyerId: 'buyerId',
405
- planType: 'planType',
448
+ contractId: 'contractId',
449
+ paymentPlanId: 'paymentPlanId',
406
450
  name: 'name',
407
451
  description: 'description',
452
+ phaseCategory: 'phaseCategory',
453
+ phaseType: 'phaseType',
454
+ order: 'order',
455
+ status: 'status',
408
456
  totalAmount: 'totalAmount',
409
- downPaymentAmount: 'downPaymentAmount',
410
- downPaymentPaid: 'downPaymentPaid',
411
- principalAmount: 'principalAmount',
457
+ paidAmount: 'paidAmount',
458
+ remainingAmount: 'remainingAmount',
412
459
  interestRate: 'interestRate',
413
- totalInterest: 'totalInterest',
414
- state: 'state',
415
- stateMetadata: 'stateMetadata',
460
+ dueDate: 'dueDate',
461
+ startDate: 'startDate',
462
+ endDate: 'endDate',
463
+ activatedAt: 'activatedAt',
464
+ completedAt: 'completedAt',
465
+ requiresPreviousPhaseCompletion: 'requiresPreviousPhaseCompletion',
466
+ minimumCompletionPercentage: 'minimumCompletionPercentage',
416
467
  createdAt: 'createdAt',
417
468
  updatedAt: 'updatedAt'
418
469
  };
419
- export const PaymentScheduleScalarFieldEnum = {
470
+ export const ContractPhaseStepScalarFieldEnum = {
420
471
  id: 'id',
421
- planId: 'planId',
472
+ phaseId: 'phaseId',
422
473
  name: 'name',
423
- frequency: 'frequency',
424
- startDate: 'startDate',
425
- endDate: 'endDate',
426
- isActive: 'isActive',
474
+ description: 'description',
475
+ stepType: 'stepType',
476
+ order: 'order',
477
+ status: 'status',
478
+ assigneeId: 'assigneeId',
479
+ requiredDocumentTypes: 'requiredDocumentTypes',
480
+ dueDate: 'dueDate',
481
+ completedAt: 'completedAt',
427
482
  createdAt: 'createdAt',
428
483
  updatedAt: 'updatedAt'
429
484
  };
430
- export const PaymentInstallmentScalarFieldEnum = {
485
+ export const ContractPhaseStepApprovalScalarFieldEnum = {
431
486
  id: 'id',
432
- scheduleId: 'scheduleId',
487
+ stepId: 'stepId',
488
+ approverId: 'approverId',
489
+ decision: 'decision',
490
+ comment: 'comment',
491
+ decidedAt: 'decidedAt',
492
+ createdAt: 'createdAt'
493
+ };
494
+ export const ContractInstallmentScalarFieldEnum = {
495
+ id: 'id',
496
+ phaseId: 'phaseId',
433
497
  installmentNumber: 'installmentNumber',
434
498
  amount: 'amount',
435
499
  principalAmount: 'principalAmount',
@@ -439,13 +503,16 @@ export const PaymentInstallmentScalarFieldEnum = {
439
503
  paidAmount: 'paidAmount',
440
504
  paidDate: 'paidDate',
441
505
  lateFee: 'lateFee',
506
+ lateFeeWaived: 'lateFeeWaived',
507
+ gracePeriodDays: 'gracePeriodDays',
508
+ gracePeriodEndDate: 'gracePeriodEndDate',
442
509
  createdAt: 'createdAt',
443
510
  updatedAt: 'updatedAt'
444
511
  };
445
- export const PaymentScalarFieldEnum = {
512
+ export const ContractPaymentScalarFieldEnum = {
446
513
  id: 'id',
447
- planId: 'planId',
448
- scheduleId: 'scheduleId',
514
+ contractId: 'contractId',
515
+ phaseId: 'phaseId',
449
516
  installmentId: 'installmentId',
450
517
  payerId: 'payerId',
451
518
  amount: 'amount',
@@ -460,30 +527,51 @@ export const PaymentScalarFieldEnum = {
460
527
  createdAt: 'createdAt',
461
528
  updatedAt: 'updatedAt'
462
529
  };
463
- export const ContractScalarFieldEnum = {
530
+ export const ContractDocumentScalarFieldEnum = {
464
531
  id: 'id',
465
- propertyId: 'propertyId',
466
- paymentPlanId: 'paymentPlanId',
467
- buyerId: 'buyerId',
468
- sellerId: 'sellerId',
469
- contractType: 'contractType',
470
- contractNumber: 'contractNumber',
471
- title: 'title',
472
- description: 'description',
532
+ contractId: 'contractId',
533
+ phaseId: 'phaseId',
534
+ stepId: 'stepId',
535
+ name: 'name',
536
+ url: 'url',
537
+ type: 'type',
538
+ uploadedById: 'uploadedById',
473
539
  status: 'status',
474
- startDate: 'startDate',
475
- endDate: 'endDate',
476
- signedAt: 'signedAt',
477
- terminatedAt: 'terminatedAt',
478
540
  createdAt: 'createdAt',
479
541
  updatedAt: 'updatedAt'
480
542
  };
481
- export const ContractDocumentScalarFieldEnum = {
543
+ export const ContractTransitionScalarFieldEnum = {
482
544
  id: 'id',
483
545
  contractId: 'contractId',
484
- name: 'name',
485
- url: 'url',
486
- type: 'type',
546
+ fromState: 'fromState',
547
+ toState: 'toState',
548
+ trigger: 'trigger',
549
+ metadata: 'metadata',
550
+ transitionedAt: 'transitionedAt'
551
+ };
552
+ export const ContractEventScalarFieldEnum = {
553
+ id: 'id',
554
+ contractId: 'contractId',
555
+ event: 'event',
556
+ data: 'data',
557
+ createdAt: 'createdAt'
558
+ };
559
+ export const DomainEventScalarFieldEnum = {
560
+ id: 'id',
561
+ eventType: 'eventType',
562
+ aggregateType: 'aggregateType',
563
+ aggregateId: 'aggregateId',
564
+ queueName: 'queueName',
565
+ payload: 'payload',
566
+ occurredAt: 'occurredAt',
567
+ actorId: 'actorId',
568
+ actorRole: 'actorRole',
569
+ status: 'status',
570
+ processedAt: 'processedAt',
571
+ sentAt: 'sentAt',
572
+ failureCount: 'failureCount',
573
+ lastError: 'lastError',
574
+ nextRetryAt: 'nextRetryAt',
487
575
  createdAt: 'createdAt',
488
576
  updatedAt: 'updatedAt'
489
577
  };
@@ -589,6 +677,7 @@ export const SettingsOrderByRelevanceFieldEnum = {
589
677
  };
590
678
  export const PropertyOrderByRelevanceFieldEnum = {
591
679
  id: 'id',
680
+ tenantId: 'tenantId',
592
681
  userId: 'userId',
593
682
  title: 'title',
594
683
  category: 'category',
@@ -599,9 +688,6 @@ export const PropertyOrderByRelevanceFieldEnum = {
599
688
  district: 'district',
600
689
  zipCode: 'zipCode',
601
690
  streetAddress: 'streetAddress',
602
- nBedrooms: 'nBedrooms',
603
- nBathrooms: 'nBathrooms',
604
- nParkingSpots: 'nParkingSpots',
605
691
  status: 'status',
606
692
  description: 'description',
607
693
  displayImageId: 'displayImageId'
@@ -622,94 +708,121 @@ export const PropertyDocumentOrderByRelevanceFieldEnum = {
622
708
  };
623
709
  export const AmenityOrderByRelevanceFieldEnum = {
624
710
  id: 'id',
625
- name: 'name'
711
+ name: 'name',
712
+ category: 'category',
713
+ icon: 'icon'
626
714
  };
627
- export const PropertyAmenityOrderByRelevanceFieldEnum = {
715
+ export const PropertyVariantOrderByRelevanceFieldEnum = {
716
+ id: 'id',
628
717
  propertyId: 'propertyId',
718
+ name: 'name',
719
+ description: 'description',
720
+ status: 'status'
721
+ };
722
+ export const PropertyVariantAmenityOrderByRelevanceFieldEnum = {
723
+ variantId: 'variantId',
629
724
  amenityId: 'amenityId'
630
725
  };
631
- export const MortgageOrderByRelevanceFieldEnum = {
726
+ export const PropertyVariantMediaOrderByRelevanceFieldEnum = {
632
727
  id: 'id',
633
- propertyId: 'propertyId',
634
- borrowerId: 'borrowerId',
635
- mortgageTypeId: 'mortgageTypeId',
636
- downpaymentPlanId: 'downpaymentPlanId',
637
- status: 'status',
638
- state: 'state',
639
- stateMetadata: 'stateMetadata'
728
+ variantId: 'variantId',
729
+ url: 'url',
730
+ type: 'type',
731
+ caption: 'caption'
640
732
  };
641
- export const MortgageTypeOrderByRelevanceFieldEnum = {
733
+ export const PropertyUnitOrderByRelevanceFieldEnum = {
642
734
  id: 'id',
643
- name: 'name',
644
- description: 'description'
735
+ variantId: 'variantId',
736
+ unitNumber: 'unitNumber',
737
+ blockName: 'blockName',
738
+ notes: 'notes',
739
+ status: 'status',
740
+ reservedById: 'reservedById',
741
+ ownerId: 'ownerId'
742
+ };
743
+ export const PropertyAmenityOrderByRelevanceFieldEnum = {
744
+ propertyId: 'propertyId',
745
+ amenityId: 'amenityId'
645
746
  };
646
- export const MortgageDocumentOrderByRelevanceFieldEnum = {
747
+ export const PaymentPlanOrderByRelevanceFieldEnum = {
647
748
  id: 'id',
648
- mortgageId: 'mortgageId',
749
+ tenantId: 'tenantId',
649
750
  name: 'name',
650
- url: 'url',
651
- type: 'type'
751
+ description: 'description',
752
+ paymentFrequency: 'paymentFrequency'
652
753
  };
653
- export const MortgageStepOrderByRelevanceFieldEnum = {
754
+ export const PropertyPaymentMethodOrderByRelevanceFieldEnum = {
654
755
  id: 'id',
655
- mortgageId: 'mortgageId',
756
+ tenantId: 'tenantId',
656
757
  name: 'name',
657
758
  description: 'description'
658
759
  };
659
- export const MortgageDownpaymentPlanOrderByRelevanceFieldEnum = {
660
- id: 'id',
661
- status: 'status'
662
- };
663
- export const MortgageDownpaymentInstallmentOrderByRelevanceFieldEnum = {
664
- id: 'id',
665
- planId: 'planId'
760
+ export const PropertyPaymentMethodLinkOrderByRelevanceFieldEnum = {
761
+ propertyId: 'propertyId',
762
+ paymentMethodId: 'paymentMethodId'
666
763
  };
667
- export const MortgageDownpaymentPaymentOrderByRelevanceFieldEnum = {
764
+ export const PropertyPaymentMethodPhaseOrderByRelevanceFieldEnum = {
668
765
  id: 'id',
669
- planId: 'planId',
670
- paymentMethod: 'paymentMethod',
671
- reference: 'reference',
672
- status: 'status'
766
+ paymentMethodId: 'paymentMethodId',
767
+ paymentPlanId: 'paymentPlanId',
768
+ name: 'name',
769
+ description: 'description',
770
+ phaseCategory: 'phaseCategory',
771
+ phaseType: 'phaseType',
772
+ requiredDocumentTypes: 'requiredDocumentTypes',
773
+ stepDefinitions: 'stepDefinitions'
673
774
  };
674
- export const MortgageTransitionOrderByRelevanceFieldEnum = {
775
+ export const ContractOrderByRelevanceFieldEnum = {
675
776
  id: 'id',
676
- mortgageId: 'mortgageId',
677
- fromState: 'fromState',
678
- toState: 'toState',
679
- trigger: 'trigger',
680
- metadata: 'metadata'
777
+ tenantId: 'tenantId',
778
+ propertyUnitId: 'propertyUnitId',
779
+ buyerId: 'buyerId',
780
+ sellerId: 'sellerId',
781
+ paymentMethodId: 'paymentMethodId',
782
+ contractNumber: 'contractNumber',
783
+ title: 'title',
784
+ description: 'description',
785
+ contractType: 'contractType',
786
+ status: 'status',
787
+ state: 'state',
788
+ currentPhaseId: 'currentPhaseId'
681
789
  };
682
- export const MortgageTransitionEventOrderByRelevanceFieldEnum = {
790
+ export const ContractPhaseOrderByRelevanceFieldEnum = {
683
791
  id: 'id',
684
- mortgageId: 'mortgageId',
685
- event: 'event',
686
- data: 'data'
792
+ contractId: 'contractId',
793
+ paymentPlanId: 'paymentPlanId',
794
+ name: 'name',
795
+ description: 'description',
796
+ phaseCategory: 'phaseCategory',
797
+ phaseType: 'phaseType',
798
+ status: 'status'
687
799
  };
688
- export const PaymentPlanOrderByRelevanceFieldEnum = {
800
+ export const ContractPhaseStepOrderByRelevanceFieldEnum = {
689
801
  id: 'id',
690
- propertyId: 'propertyId',
691
- buyerId: 'buyerId',
692
- planType: 'planType',
802
+ phaseId: 'phaseId',
693
803
  name: 'name',
694
804
  description: 'description',
695
- state: 'state',
696
- stateMetadata: 'stateMetadata'
805
+ stepType: 'stepType',
806
+ status: 'status',
807
+ assigneeId: 'assigneeId',
808
+ requiredDocumentTypes: 'requiredDocumentTypes'
697
809
  };
698
- export const PaymentScheduleOrderByRelevanceFieldEnum = {
810
+ export const ContractPhaseStepApprovalOrderByRelevanceFieldEnum = {
699
811
  id: 'id',
700
- planId: 'planId',
701
- name: 'name',
702
- frequency: 'frequency'
812
+ stepId: 'stepId',
813
+ approverId: 'approverId',
814
+ decision: 'decision',
815
+ comment: 'comment'
703
816
  };
704
- export const PaymentInstallmentOrderByRelevanceFieldEnum = {
817
+ export const ContractInstallmentOrderByRelevanceFieldEnum = {
705
818
  id: 'id',
706
- scheduleId: 'scheduleId',
819
+ phaseId: 'phaseId',
707
820
  status: 'status'
708
821
  };
709
- export const PaymentOrderByRelevanceFieldEnum = {
822
+ export const ContractPaymentOrderByRelevanceFieldEnum = {
710
823
  id: 'id',
711
- planId: 'planId',
712
- scheduleId: 'scheduleId',
824
+ contractId: 'contractId',
825
+ phaseId: 'phaseId',
713
826
  installmentId: 'installmentId',
714
827
  payerId: 'payerId',
715
828
  paymentMethod: 'paymentMethod',
@@ -717,23 +830,41 @@ export const PaymentOrderByRelevanceFieldEnum = {
717
830
  reference: 'reference',
718
831
  gatewayResponse: 'gatewayResponse'
719
832
  };
720
- export const ContractOrderByRelevanceFieldEnum = {
721
- id: 'id',
722
- propertyId: 'propertyId',
723
- paymentPlanId: 'paymentPlanId',
724
- buyerId: 'buyerId',
725
- sellerId: 'sellerId',
726
- contractType: 'contractType',
727
- contractNumber: 'contractNumber',
728
- title: 'title',
729
- description: 'description',
730
- status: 'status'
731
- };
732
833
  export const ContractDocumentOrderByRelevanceFieldEnum = {
733
834
  id: 'id',
734
835
  contractId: 'contractId',
836
+ phaseId: 'phaseId',
837
+ stepId: 'stepId',
735
838
  name: 'name',
736
839
  url: 'url',
737
- type: 'type'
840
+ type: 'type',
841
+ uploadedById: 'uploadedById',
842
+ status: 'status'
843
+ };
844
+ export const ContractTransitionOrderByRelevanceFieldEnum = {
845
+ id: 'id',
846
+ contractId: 'contractId',
847
+ fromState: 'fromState',
848
+ toState: 'toState',
849
+ trigger: 'trigger',
850
+ metadata: 'metadata'
851
+ };
852
+ export const ContractEventOrderByRelevanceFieldEnum = {
853
+ id: 'id',
854
+ contractId: 'contractId',
855
+ event: 'event',
856
+ data: 'data'
857
+ };
858
+ export const DomainEventOrderByRelevanceFieldEnum = {
859
+ id: 'id',
860
+ eventType: 'eventType',
861
+ aggregateType: 'aggregateType',
862
+ aggregateId: 'aggregateId',
863
+ queueName: 'queueName',
864
+ payload: 'payload',
865
+ actorId: 'actorId',
866
+ actorRole: 'actorRole',
867
+ status: 'status',
868
+ lastError: 'lastError'
738
869
  };
739
870
  export const defineExtension = runtime.Extensions.defineExtension;