@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.
- package/dist/generated/client/browser.d.ts +45 -30
- package/dist/generated/client/client.d.ts +45 -30
- package/dist/generated/client/commonInputTypes.d.ts +40 -0
- package/dist/generated/client/internal/class.d.ts +93 -60
- package/dist/generated/client/internal/class.js +2 -2
- package/dist/generated/client/internal/prismaNamespace.d.ts +1058 -720
- package/dist/generated/client/internal/prismaNamespace.js +321 -190
- package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +352 -215
- package/dist/generated/client/internal/prismaNamespaceBrowser.js +321 -190
- package/dist/generated/client/models/Amenity.d.ts +168 -1
- package/dist/generated/client/models/Contract.d.ts +2390 -309
- package/dist/generated/client/models/ContractDocument.d.ts +299 -12
- package/dist/generated/client/models/ContractEvent.d.ts +1052 -0
- package/dist/generated/client/models/ContractEvent.js +1 -0
- package/dist/generated/client/models/ContractInstallment.d.ts +1656 -0
- package/dist/generated/client/models/ContractInstallment.js +1 -0
- package/dist/generated/client/models/ContractPayment.d.ts +2026 -0
- package/dist/generated/client/models/ContractPayment.js +1 -0
- package/dist/generated/client/models/ContractPhase.d.ts +2467 -0
- package/dist/generated/client/models/ContractPhase.js +1 -0
- package/dist/generated/client/models/ContractPhaseStep.d.ts +1678 -0
- package/dist/generated/client/models/ContractPhaseStep.js +1 -0
- package/dist/generated/client/models/ContractPhaseStepApproval.d.ts +1249 -0
- package/dist/generated/client/models/ContractPhaseStepApproval.js +1 -0
- package/dist/generated/client/models/ContractTransition.d.ts +1118 -0
- package/dist/generated/client/models/ContractTransition.js +1 -0
- package/dist/generated/client/models/DomainEvent.d.ts +1240 -0
- package/dist/generated/client/models/DomainEvent.js +1 -0
- package/dist/generated/client/models/PaymentPlan.d.ts +467 -971
- package/dist/generated/client/models/Property.d.ts +372 -626
- package/dist/generated/client/models/PropertyPaymentMethod.d.ts +1714 -0
- package/dist/generated/client/models/PropertyPaymentMethod.js +1 -0
- package/dist/generated/client/models/PropertyPaymentMethodLink.d.ts +1158 -0
- package/dist/generated/client/models/PropertyPaymentMethodLink.js +1 -0
- package/dist/generated/client/models/PropertyPaymentMethodPhase.d.ts +1656 -0
- package/dist/generated/client/models/PropertyPaymentMethodPhase.js +1 -0
- package/dist/generated/client/models/PropertyUnit.d.ts +1598 -0
- package/dist/generated/client/models/PropertyUnit.js +1 -0
- package/dist/generated/client/models/PropertyVariant.d.ts +2079 -0
- package/dist/generated/client/models/PropertyVariant.js +1 -0
- package/dist/generated/client/models/PropertyVariantAmenity.d.ts +1080 -0
- package/dist/generated/client/models/PropertyVariantAmenity.js +1 -0
- package/dist/generated/client/models/PropertyVariantMedia.d.ts +1189 -0
- package/dist/generated/client/models/PropertyVariantMedia.js +1 -0
- package/dist/generated/client/models/Tenant.d.ts +482 -0
- package/dist/generated/client/models/User.d.ts +684 -427
- package/dist/generated/client/models/index.d.ts +15 -12
- package/dist/generated/client/models/index.js +15 -12
- package/dist/generated/client/models.d.ts +15 -12
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.js +2 -0
- package/dist/src/middleware/error-handler.d.ts +6 -0
- package/dist/src/middleware/error-handler.js +26 -0
- package/dist/src/middleware/index.d.ts +3 -0
- package/dist/src/middleware/index.js +3 -0
- package/dist/src/middleware/request-logger.d.ts +6 -0
- package/dist/src/middleware/request-logger.js +17 -0
- package/dist/src/middleware/tenant.d.ts +61 -0
- package/dist/src/middleware/tenant.js +85 -0
- package/dist/src/prisma/tenant.d.ts +51 -0
- package/dist/src/prisma/tenant.js +211 -0
- package/package.json +16 -2
- package/prisma/migrations/20251230104059_add_property_variants/migration.sql +622 -0
- package/prisma/migrations/20251230113413_add_multitenancy/migration.sql +54 -0
- 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
|
-
|
|
102
|
-
|
|
103
|
-
|
|
96
|
+
PropertyPaymentMethod: 'PropertyPaymentMethod',
|
|
97
|
+
PropertyPaymentMethodLink: 'PropertyPaymentMethodLink',
|
|
98
|
+
PropertyPaymentMethodPhase: 'PropertyPaymentMethodPhase',
|
|
104
99
|
Contract: 'Contract',
|
|
105
|
-
|
|
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
|
|
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
|
|
330
|
+
export const PropertyVariantMediaScalarFieldEnum = {
|
|
310
331
|
id: 'id',
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
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
|
-
|
|
323
|
-
|
|
324
|
-
|
|
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
|
|
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
|
|
376
|
+
export const PropertyPaymentMethodScalarFieldEnum = {
|
|
336
377
|
id: 'id',
|
|
337
|
-
|
|
378
|
+
tenantId: 'tenantId',
|
|
338
379
|
name: 'name',
|
|
339
|
-
|
|
340
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
351
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
404
|
-
|
|
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
|
-
|
|
410
|
-
|
|
411
|
-
principalAmount: 'principalAmount',
|
|
457
|
+
paidAmount: 'paidAmount',
|
|
458
|
+
remainingAmount: 'remainingAmount',
|
|
412
459
|
interestRate: 'interestRate',
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
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
|
|
470
|
+
export const ContractPhaseStepScalarFieldEnum = {
|
|
420
471
|
id: 'id',
|
|
421
|
-
|
|
472
|
+
phaseId: 'phaseId',
|
|
422
473
|
name: 'name',
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
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
|
|
485
|
+
export const ContractPhaseStepApprovalScalarFieldEnum = {
|
|
431
486
|
id: 'id',
|
|
432
|
-
|
|
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
|
|
512
|
+
export const ContractPaymentScalarFieldEnum = {
|
|
446
513
|
id: 'id',
|
|
447
|
-
|
|
448
|
-
|
|
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
|
|
530
|
+
export const ContractDocumentScalarFieldEnum = {
|
|
464
531
|
id: 'id',
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
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
|
|
543
|
+
export const ContractTransitionScalarFieldEnum = {
|
|
482
544
|
id: 'id',
|
|
483
545
|
contractId: 'contractId',
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
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
|
|
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
|
|
726
|
+
export const PropertyVariantMediaOrderByRelevanceFieldEnum = {
|
|
632
727
|
id: 'id',
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
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
|
|
733
|
+
export const PropertyUnitOrderByRelevanceFieldEnum = {
|
|
642
734
|
id: 'id',
|
|
643
|
-
|
|
644
|
-
|
|
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
|
|
747
|
+
export const PaymentPlanOrderByRelevanceFieldEnum = {
|
|
647
748
|
id: 'id',
|
|
648
|
-
|
|
749
|
+
tenantId: 'tenantId',
|
|
649
750
|
name: 'name',
|
|
650
|
-
|
|
651
|
-
|
|
751
|
+
description: 'description',
|
|
752
|
+
paymentFrequency: 'paymentFrequency'
|
|
652
753
|
};
|
|
653
|
-
export const
|
|
754
|
+
export const PropertyPaymentMethodOrderByRelevanceFieldEnum = {
|
|
654
755
|
id: 'id',
|
|
655
|
-
|
|
756
|
+
tenantId: 'tenantId',
|
|
656
757
|
name: 'name',
|
|
657
758
|
description: 'description'
|
|
658
759
|
};
|
|
659
|
-
export const
|
|
660
|
-
|
|
661
|
-
|
|
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
|
|
764
|
+
export const PropertyPaymentMethodPhaseOrderByRelevanceFieldEnum = {
|
|
668
765
|
id: 'id',
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
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
|
|
775
|
+
export const ContractOrderByRelevanceFieldEnum = {
|
|
675
776
|
id: 'id',
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
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
|
|
790
|
+
export const ContractPhaseOrderByRelevanceFieldEnum = {
|
|
683
791
|
id: 'id',
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
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
|
|
800
|
+
export const ContractPhaseStepOrderByRelevanceFieldEnum = {
|
|
689
801
|
id: 'id',
|
|
690
|
-
|
|
691
|
-
buyerId: 'buyerId',
|
|
692
|
-
planType: 'planType',
|
|
802
|
+
phaseId: 'phaseId',
|
|
693
803
|
name: 'name',
|
|
694
804
|
description: 'description',
|
|
695
|
-
|
|
696
|
-
|
|
805
|
+
stepType: 'stepType',
|
|
806
|
+
status: 'status',
|
|
807
|
+
assigneeId: 'assigneeId',
|
|
808
|
+
requiredDocumentTypes: 'requiredDocumentTypes'
|
|
697
809
|
};
|
|
698
|
-
export const
|
|
810
|
+
export const ContractPhaseStepApprovalOrderByRelevanceFieldEnum = {
|
|
699
811
|
id: 'id',
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
812
|
+
stepId: 'stepId',
|
|
813
|
+
approverId: 'approverId',
|
|
814
|
+
decision: 'decision',
|
|
815
|
+
comment: 'comment'
|
|
703
816
|
};
|
|
704
|
-
export const
|
|
817
|
+
export const ContractInstallmentOrderByRelevanceFieldEnum = {
|
|
705
818
|
id: 'id',
|
|
706
|
-
|
|
819
|
+
phaseId: 'phaseId',
|
|
707
820
|
status: 'status'
|
|
708
821
|
};
|
|
709
|
-
export const
|
|
822
|
+
export const ContractPaymentOrderByRelevanceFieldEnum = {
|
|
710
823
|
id: 'id',
|
|
711
|
-
|
|
712
|
-
|
|
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;
|