@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
|
@@ -59,22 +59,25 @@ export const ModelName = {
|
|
|
59
59
|
PropertyMedia: 'PropertyMedia',
|
|
60
60
|
PropertyDocument: 'PropertyDocument',
|
|
61
61
|
Amenity: 'Amenity',
|
|
62
|
+
PropertyVariant: 'PropertyVariant',
|
|
63
|
+
PropertyVariantAmenity: 'PropertyVariantAmenity',
|
|
64
|
+
PropertyVariantMedia: 'PropertyVariantMedia',
|
|
65
|
+
PropertyUnit: 'PropertyUnit',
|
|
62
66
|
PropertyAmenity: 'PropertyAmenity',
|
|
63
|
-
Mortgage: 'Mortgage',
|
|
64
|
-
MortgageType: 'MortgageType',
|
|
65
|
-
MortgageDocument: 'MortgageDocument',
|
|
66
|
-
MortgageStep: 'MortgageStep',
|
|
67
|
-
MortgageDownpaymentPlan: 'MortgageDownpaymentPlan',
|
|
68
|
-
MortgageDownpaymentInstallment: 'MortgageDownpaymentInstallment',
|
|
69
|
-
MortgageDownpaymentPayment: 'MortgageDownpaymentPayment',
|
|
70
|
-
MortgageTransition: 'MortgageTransition',
|
|
71
|
-
MortgageTransitionEvent: 'MortgageTransitionEvent',
|
|
72
67
|
PaymentPlan: 'PaymentPlan',
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
68
|
+
PropertyPaymentMethod: 'PropertyPaymentMethod',
|
|
69
|
+
PropertyPaymentMethodLink: 'PropertyPaymentMethodLink',
|
|
70
|
+
PropertyPaymentMethodPhase: 'PropertyPaymentMethodPhase',
|
|
76
71
|
Contract: 'Contract',
|
|
77
|
-
|
|
72
|
+
ContractPhase: 'ContractPhase',
|
|
73
|
+
ContractPhaseStep: 'ContractPhaseStep',
|
|
74
|
+
ContractPhaseStepApproval: 'ContractPhaseStepApproval',
|
|
75
|
+
ContractInstallment: 'ContractInstallment',
|
|
76
|
+
ContractPayment: 'ContractPayment',
|
|
77
|
+
ContractDocument: 'ContractDocument',
|
|
78
|
+
ContractTransition: 'ContractTransition',
|
|
79
|
+
ContractEvent: 'ContractEvent',
|
|
80
|
+
DomainEvent: 'DomainEvent'
|
|
78
81
|
};
|
|
79
82
|
/*
|
|
80
83
|
* Enums
|
|
@@ -223,6 +226,7 @@ export const SettingsScalarFieldEnum = {
|
|
|
223
226
|
};
|
|
224
227
|
export const PropertyScalarFieldEnum = {
|
|
225
228
|
id: 'id',
|
|
229
|
+
tenantId: 'tenantId',
|
|
226
230
|
userId: 'userId',
|
|
227
231
|
title: 'title',
|
|
228
232
|
category: 'category',
|
|
@@ -233,13 +237,8 @@ export const PropertyScalarFieldEnum = {
|
|
|
233
237
|
district: 'district',
|
|
234
238
|
zipCode: 'zipCode',
|
|
235
239
|
streetAddress: 'streetAddress',
|
|
236
|
-
nBedrooms: 'nBedrooms',
|
|
237
|
-
nBathrooms: 'nBathrooms',
|
|
238
|
-
nParkingSpots: 'nParkingSpots',
|
|
239
|
-
price: 'price',
|
|
240
240
|
longitude: 'longitude',
|
|
241
241
|
latitude: 'latitude',
|
|
242
|
-
area: 'area',
|
|
243
242
|
status: 'status',
|
|
244
243
|
description: 'description',
|
|
245
244
|
displayImageId: 'displayImageId',
|
|
@@ -270,138 +269,203 @@ export const PropertyDocumentScalarFieldEnum = {
|
|
|
270
269
|
export const AmenityScalarFieldEnum = {
|
|
271
270
|
id: 'id',
|
|
272
271
|
name: 'name',
|
|
272
|
+
category: 'category',
|
|
273
|
+
icon: 'icon',
|
|
273
274
|
createdAt: 'createdAt',
|
|
274
275
|
updatedAt: 'updatedAt'
|
|
275
276
|
};
|
|
276
|
-
export const
|
|
277
|
+
export const PropertyVariantScalarFieldEnum = {
|
|
278
|
+
id: 'id',
|
|
277
279
|
propertyId: 'propertyId',
|
|
280
|
+
name: 'name',
|
|
281
|
+
description: 'description',
|
|
282
|
+
nBedrooms: 'nBedrooms',
|
|
283
|
+
nBathrooms: 'nBathrooms',
|
|
284
|
+
nParkingSpots: 'nParkingSpots',
|
|
285
|
+
area: 'area',
|
|
286
|
+
price: 'price',
|
|
287
|
+
pricePerSqm: 'pricePerSqm',
|
|
288
|
+
totalUnits: 'totalUnits',
|
|
289
|
+
availableUnits: 'availableUnits',
|
|
290
|
+
reservedUnits: 'reservedUnits',
|
|
291
|
+
soldUnits: 'soldUnits',
|
|
292
|
+
status: 'status',
|
|
293
|
+
isActive: 'isActive',
|
|
294
|
+
createdAt: 'createdAt',
|
|
295
|
+
updatedAt: 'updatedAt'
|
|
296
|
+
};
|
|
297
|
+
export const PropertyVariantAmenityScalarFieldEnum = {
|
|
298
|
+
variantId: 'variantId',
|
|
278
299
|
amenityId: 'amenityId',
|
|
279
300
|
createdAt: 'createdAt'
|
|
280
301
|
};
|
|
281
|
-
export const
|
|
302
|
+
export const PropertyVariantMediaScalarFieldEnum = {
|
|
282
303
|
id: 'id',
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
304
|
+
variantId: 'variantId',
|
|
305
|
+
url: 'url',
|
|
306
|
+
type: 'type',
|
|
307
|
+
caption: 'caption',
|
|
308
|
+
order: 'order',
|
|
309
|
+
createdAt: 'createdAt',
|
|
310
|
+
updatedAt: 'updatedAt'
|
|
311
|
+
};
|
|
312
|
+
export const PropertyUnitScalarFieldEnum = {
|
|
313
|
+
id: 'id',
|
|
314
|
+
variantId: 'variantId',
|
|
315
|
+
unitNumber: 'unitNumber',
|
|
316
|
+
floorNumber: 'floorNumber',
|
|
317
|
+
blockName: 'blockName',
|
|
318
|
+
priceOverride: 'priceOverride',
|
|
319
|
+
areaOverride: 'areaOverride',
|
|
320
|
+
notes: 'notes',
|
|
293
321
|
status: 'status',
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
322
|
+
reservedAt: 'reservedAt',
|
|
323
|
+
reservedUntil: 'reservedUntil',
|
|
324
|
+
reservedById: 'reservedById',
|
|
325
|
+
ownerId: 'ownerId',
|
|
297
326
|
createdAt: 'createdAt',
|
|
298
327
|
updatedAt: 'updatedAt'
|
|
299
328
|
};
|
|
300
|
-
export const
|
|
329
|
+
export const PropertyAmenityScalarFieldEnum = {
|
|
330
|
+
propertyId: 'propertyId',
|
|
331
|
+
amenityId: 'amenityId',
|
|
332
|
+
createdAt: 'createdAt'
|
|
333
|
+
};
|
|
334
|
+
export const PaymentPlanScalarFieldEnum = {
|
|
301
335
|
id: 'id',
|
|
336
|
+
tenantId: 'tenantId',
|
|
302
337
|
name: 'name',
|
|
303
338
|
description: 'description',
|
|
339
|
+
isActive: 'isActive',
|
|
340
|
+
paymentFrequency: 'paymentFrequency',
|
|
341
|
+
customFrequencyDays: 'customFrequencyDays',
|
|
342
|
+
numberOfInstallments: 'numberOfInstallments',
|
|
343
|
+
calculateInterestDaily: 'calculateInterestDaily',
|
|
344
|
+
gracePeriodDays: 'gracePeriodDays',
|
|
304
345
|
createdAt: 'createdAt',
|
|
305
346
|
updatedAt: 'updatedAt'
|
|
306
347
|
};
|
|
307
|
-
export const
|
|
348
|
+
export const PropertyPaymentMethodScalarFieldEnum = {
|
|
308
349
|
id: 'id',
|
|
309
|
-
|
|
350
|
+
tenantId: 'tenantId',
|
|
310
351
|
name: 'name',
|
|
311
|
-
|
|
312
|
-
|
|
352
|
+
description: 'description',
|
|
353
|
+
isActive: 'isActive',
|
|
354
|
+
allowEarlyPayoff: 'allowEarlyPayoff',
|
|
355
|
+
earlyPayoffPenaltyRate: 'earlyPayoffPenaltyRate',
|
|
356
|
+
autoActivatePhases: 'autoActivatePhases',
|
|
357
|
+
requiresManualApproval: 'requiresManualApproval',
|
|
313
358
|
createdAt: 'createdAt',
|
|
314
359
|
updatedAt: 'updatedAt'
|
|
315
360
|
};
|
|
316
|
-
export const
|
|
361
|
+
export const PropertyPaymentMethodLinkScalarFieldEnum = {
|
|
362
|
+
propertyId: 'propertyId',
|
|
363
|
+
paymentMethodId: 'paymentMethodId',
|
|
364
|
+
isDefault: 'isDefault',
|
|
365
|
+
isActive: 'isActive',
|
|
366
|
+
createdAt: 'createdAt'
|
|
367
|
+
};
|
|
368
|
+
export const PropertyPaymentMethodPhaseScalarFieldEnum = {
|
|
317
369
|
id: 'id',
|
|
318
|
-
|
|
370
|
+
paymentMethodId: 'paymentMethodId',
|
|
371
|
+
paymentPlanId: 'paymentPlanId',
|
|
319
372
|
name: 'name',
|
|
320
373
|
description: 'description',
|
|
374
|
+
phaseCategory: 'phaseCategory',
|
|
375
|
+
phaseType: 'phaseType',
|
|
321
376
|
order: 'order',
|
|
322
|
-
|
|
323
|
-
|
|
377
|
+
interestRate: 'interestRate',
|
|
378
|
+
percentOfPrice: 'percentOfPrice',
|
|
379
|
+
requiresPreviousPhaseCompletion: 'requiresPreviousPhaseCompletion',
|
|
380
|
+
minimumCompletionPercentage: 'minimumCompletionPercentage',
|
|
381
|
+
requiredDocumentTypes: 'requiredDocumentTypes',
|
|
382
|
+
stepDefinitions: 'stepDefinitions',
|
|
324
383
|
createdAt: 'createdAt',
|
|
325
384
|
updatedAt: 'updatedAt'
|
|
326
385
|
};
|
|
327
|
-
export const
|
|
386
|
+
export const ContractScalarFieldEnum = {
|
|
328
387
|
id: 'id',
|
|
388
|
+
tenantId: 'tenantId',
|
|
389
|
+
propertyUnitId: 'propertyUnitId',
|
|
390
|
+
buyerId: 'buyerId',
|
|
391
|
+
sellerId: 'sellerId',
|
|
392
|
+
paymentMethodId: 'paymentMethodId',
|
|
393
|
+
contractNumber: 'contractNumber',
|
|
394
|
+
title: 'title',
|
|
395
|
+
description: 'description',
|
|
396
|
+
contractType: 'contractType',
|
|
329
397
|
totalAmount: 'totalAmount',
|
|
330
|
-
|
|
398
|
+
downPayment: 'downPayment',
|
|
399
|
+
downPaymentPaid: 'downPaymentPaid',
|
|
400
|
+
principal: 'principal',
|
|
401
|
+
interestRate: 'interestRate',
|
|
402
|
+
termMonths: 'termMonths',
|
|
403
|
+
periodicPayment: 'periodicPayment',
|
|
404
|
+
totalPaidToDate: 'totalPaidToDate',
|
|
405
|
+
totalInterestPaid: 'totalInterestPaid',
|
|
331
406
|
status: 'status',
|
|
407
|
+
state: 'state',
|
|
408
|
+
currentPhaseId: 'currentPhaseId',
|
|
409
|
+
nextPaymentDueDate: 'nextPaymentDueDate',
|
|
410
|
+
lastReminderSentAt: 'lastReminderSentAt',
|
|
332
411
|
startDate: 'startDate',
|
|
333
412
|
endDate: 'endDate',
|
|
413
|
+
signedAt: 'signedAt',
|
|
414
|
+
terminatedAt: 'terminatedAt',
|
|
334
415
|
createdAt: 'createdAt',
|
|
335
416
|
updatedAt: 'updatedAt'
|
|
336
417
|
};
|
|
337
|
-
export const
|
|
338
|
-
id: 'id',
|
|
339
|
-
planId: 'planId',
|
|
340
|
-
amount: 'amount',
|
|
341
|
-
dueDate: 'dueDate',
|
|
342
|
-
isPaid: 'isPaid',
|
|
343
|
-
paidDate: 'paidDate',
|
|
344
|
-
createdAt: 'createdAt',
|
|
345
|
-
updatedAt: 'updatedAt'
|
|
346
|
-
};
|
|
347
|
-
export const MortgageDownpaymentPaymentScalarFieldEnum = {
|
|
348
|
-
id: 'id',
|
|
349
|
-
planId: 'planId',
|
|
350
|
-
amount: 'amount',
|
|
351
|
-
paymentMethod: 'paymentMethod',
|
|
352
|
-
reference: 'reference',
|
|
353
|
-
status: 'status',
|
|
354
|
-
createdAt: 'createdAt',
|
|
355
|
-
updatedAt: 'updatedAt'
|
|
356
|
-
};
|
|
357
|
-
export const MortgageTransitionScalarFieldEnum = {
|
|
358
|
-
id: 'id',
|
|
359
|
-
mortgageId: 'mortgageId',
|
|
360
|
-
fromState: 'fromState',
|
|
361
|
-
toState: 'toState',
|
|
362
|
-
trigger: 'trigger',
|
|
363
|
-
metadata: 'metadata',
|
|
364
|
-
transitionedAt: 'transitionedAt'
|
|
365
|
-
};
|
|
366
|
-
export const MortgageTransitionEventScalarFieldEnum = {
|
|
367
|
-
id: 'id',
|
|
368
|
-
mortgageId: 'mortgageId',
|
|
369
|
-
event: 'event',
|
|
370
|
-
data: 'data',
|
|
371
|
-
createdAt: 'createdAt'
|
|
372
|
-
};
|
|
373
|
-
export const PaymentPlanScalarFieldEnum = {
|
|
418
|
+
export const ContractPhaseScalarFieldEnum = {
|
|
374
419
|
id: 'id',
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
planType: 'planType',
|
|
420
|
+
contractId: 'contractId',
|
|
421
|
+
paymentPlanId: 'paymentPlanId',
|
|
378
422
|
name: 'name',
|
|
379
423
|
description: 'description',
|
|
424
|
+
phaseCategory: 'phaseCategory',
|
|
425
|
+
phaseType: 'phaseType',
|
|
426
|
+
order: 'order',
|
|
427
|
+
status: 'status',
|
|
380
428
|
totalAmount: 'totalAmount',
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
principalAmount: 'principalAmount',
|
|
429
|
+
paidAmount: 'paidAmount',
|
|
430
|
+
remainingAmount: 'remainingAmount',
|
|
384
431
|
interestRate: 'interestRate',
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
432
|
+
dueDate: 'dueDate',
|
|
433
|
+
startDate: 'startDate',
|
|
434
|
+
endDate: 'endDate',
|
|
435
|
+
activatedAt: 'activatedAt',
|
|
436
|
+
completedAt: 'completedAt',
|
|
437
|
+
requiresPreviousPhaseCompletion: 'requiresPreviousPhaseCompletion',
|
|
438
|
+
minimumCompletionPercentage: 'minimumCompletionPercentage',
|
|
388
439
|
createdAt: 'createdAt',
|
|
389
440
|
updatedAt: 'updatedAt'
|
|
390
441
|
};
|
|
391
|
-
export const
|
|
442
|
+
export const ContractPhaseStepScalarFieldEnum = {
|
|
392
443
|
id: 'id',
|
|
393
|
-
|
|
444
|
+
phaseId: 'phaseId',
|
|
394
445
|
name: 'name',
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
446
|
+
description: 'description',
|
|
447
|
+
stepType: 'stepType',
|
|
448
|
+
order: 'order',
|
|
449
|
+
status: 'status',
|
|
450
|
+
assigneeId: 'assigneeId',
|
|
451
|
+
requiredDocumentTypes: 'requiredDocumentTypes',
|
|
452
|
+
dueDate: 'dueDate',
|
|
453
|
+
completedAt: 'completedAt',
|
|
399
454
|
createdAt: 'createdAt',
|
|
400
455
|
updatedAt: 'updatedAt'
|
|
401
456
|
};
|
|
402
|
-
export const
|
|
457
|
+
export const ContractPhaseStepApprovalScalarFieldEnum = {
|
|
403
458
|
id: 'id',
|
|
404
|
-
|
|
459
|
+
stepId: 'stepId',
|
|
460
|
+
approverId: 'approverId',
|
|
461
|
+
decision: 'decision',
|
|
462
|
+
comment: 'comment',
|
|
463
|
+
decidedAt: 'decidedAt',
|
|
464
|
+
createdAt: 'createdAt'
|
|
465
|
+
};
|
|
466
|
+
export const ContractInstallmentScalarFieldEnum = {
|
|
467
|
+
id: 'id',
|
|
468
|
+
phaseId: 'phaseId',
|
|
405
469
|
installmentNumber: 'installmentNumber',
|
|
406
470
|
amount: 'amount',
|
|
407
471
|
principalAmount: 'principalAmount',
|
|
@@ -411,13 +475,16 @@ export const PaymentInstallmentScalarFieldEnum = {
|
|
|
411
475
|
paidAmount: 'paidAmount',
|
|
412
476
|
paidDate: 'paidDate',
|
|
413
477
|
lateFee: 'lateFee',
|
|
478
|
+
lateFeeWaived: 'lateFeeWaived',
|
|
479
|
+
gracePeriodDays: 'gracePeriodDays',
|
|
480
|
+
gracePeriodEndDate: 'gracePeriodEndDate',
|
|
414
481
|
createdAt: 'createdAt',
|
|
415
482
|
updatedAt: 'updatedAt'
|
|
416
483
|
};
|
|
417
|
-
export const
|
|
484
|
+
export const ContractPaymentScalarFieldEnum = {
|
|
418
485
|
id: 'id',
|
|
419
|
-
|
|
420
|
-
|
|
486
|
+
contractId: 'contractId',
|
|
487
|
+
phaseId: 'phaseId',
|
|
421
488
|
installmentId: 'installmentId',
|
|
422
489
|
payerId: 'payerId',
|
|
423
490
|
amount: 'amount',
|
|
@@ -432,30 +499,51 @@ export const PaymentScalarFieldEnum = {
|
|
|
432
499
|
createdAt: 'createdAt',
|
|
433
500
|
updatedAt: 'updatedAt'
|
|
434
501
|
};
|
|
435
|
-
export const
|
|
502
|
+
export const ContractDocumentScalarFieldEnum = {
|
|
436
503
|
id: 'id',
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
description: 'description',
|
|
504
|
+
contractId: 'contractId',
|
|
505
|
+
phaseId: 'phaseId',
|
|
506
|
+
stepId: 'stepId',
|
|
507
|
+
name: 'name',
|
|
508
|
+
url: 'url',
|
|
509
|
+
type: 'type',
|
|
510
|
+
uploadedById: 'uploadedById',
|
|
445
511
|
status: 'status',
|
|
446
|
-
startDate: 'startDate',
|
|
447
|
-
endDate: 'endDate',
|
|
448
|
-
signedAt: 'signedAt',
|
|
449
|
-
terminatedAt: 'terminatedAt',
|
|
450
512
|
createdAt: 'createdAt',
|
|
451
513
|
updatedAt: 'updatedAt'
|
|
452
514
|
};
|
|
453
|
-
export const
|
|
515
|
+
export const ContractTransitionScalarFieldEnum = {
|
|
454
516
|
id: 'id',
|
|
455
517
|
contractId: 'contractId',
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
518
|
+
fromState: 'fromState',
|
|
519
|
+
toState: 'toState',
|
|
520
|
+
trigger: 'trigger',
|
|
521
|
+
metadata: 'metadata',
|
|
522
|
+
transitionedAt: 'transitionedAt'
|
|
523
|
+
};
|
|
524
|
+
export const ContractEventScalarFieldEnum = {
|
|
525
|
+
id: 'id',
|
|
526
|
+
contractId: 'contractId',
|
|
527
|
+
event: 'event',
|
|
528
|
+
data: 'data',
|
|
529
|
+
createdAt: 'createdAt'
|
|
530
|
+
};
|
|
531
|
+
export const DomainEventScalarFieldEnum = {
|
|
532
|
+
id: 'id',
|
|
533
|
+
eventType: 'eventType',
|
|
534
|
+
aggregateType: 'aggregateType',
|
|
535
|
+
aggregateId: 'aggregateId',
|
|
536
|
+
queueName: 'queueName',
|
|
537
|
+
payload: 'payload',
|
|
538
|
+
occurredAt: 'occurredAt',
|
|
539
|
+
actorId: 'actorId',
|
|
540
|
+
actorRole: 'actorRole',
|
|
541
|
+
status: 'status',
|
|
542
|
+
processedAt: 'processedAt',
|
|
543
|
+
sentAt: 'sentAt',
|
|
544
|
+
failureCount: 'failureCount',
|
|
545
|
+
lastError: 'lastError',
|
|
546
|
+
nextRetryAt: 'nextRetryAt',
|
|
459
547
|
createdAt: 'createdAt',
|
|
460
548
|
updatedAt: 'updatedAt'
|
|
461
549
|
};
|
|
@@ -561,6 +649,7 @@ export const SettingsOrderByRelevanceFieldEnum = {
|
|
|
561
649
|
};
|
|
562
650
|
export const PropertyOrderByRelevanceFieldEnum = {
|
|
563
651
|
id: 'id',
|
|
652
|
+
tenantId: 'tenantId',
|
|
564
653
|
userId: 'userId',
|
|
565
654
|
title: 'title',
|
|
566
655
|
category: 'category',
|
|
@@ -571,9 +660,6 @@ export const PropertyOrderByRelevanceFieldEnum = {
|
|
|
571
660
|
district: 'district',
|
|
572
661
|
zipCode: 'zipCode',
|
|
573
662
|
streetAddress: 'streetAddress',
|
|
574
|
-
nBedrooms: 'nBedrooms',
|
|
575
|
-
nBathrooms: 'nBathrooms',
|
|
576
|
-
nParkingSpots: 'nParkingSpots',
|
|
577
663
|
status: 'status',
|
|
578
664
|
description: 'description',
|
|
579
665
|
displayImageId: 'displayImageId'
|
|
@@ -594,94 +680,121 @@ export const PropertyDocumentOrderByRelevanceFieldEnum = {
|
|
|
594
680
|
};
|
|
595
681
|
export const AmenityOrderByRelevanceFieldEnum = {
|
|
596
682
|
id: 'id',
|
|
597
|
-
name: 'name'
|
|
683
|
+
name: 'name',
|
|
684
|
+
category: 'category',
|
|
685
|
+
icon: 'icon'
|
|
598
686
|
};
|
|
599
|
-
export const
|
|
687
|
+
export const PropertyVariantOrderByRelevanceFieldEnum = {
|
|
688
|
+
id: 'id',
|
|
600
689
|
propertyId: 'propertyId',
|
|
690
|
+
name: 'name',
|
|
691
|
+
description: 'description',
|
|
692
|
+
status: 'status'
|
|
693
|
+
};
|
|
694
|
+
export const PropertyVariantAmenityOrderByRelevanceFieldEnum = {
|
|
695
|
+
variantId: 'variantId',
|
|
601
696
|
amenityId: 'amenityId'
|
|
602
697
|
};
|
|
603
|
-
export const
|
|
698
|
+
export const PropertyVariantMediaOrderByRelevanceFieldEnum = {
|
|
604
699
|
id: 'id',
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
status: 'status',
|
|
610
|
-
state: 'state',
|
|
611
|
-
stateMetadata: 'stateMetadata'
|
|
700
|
+
variantId: 'variantId',
|
|
701
|
+
url: 'url',
|
|
702
|
+
type: 'type',
|
|
703
|
+
caption: 'caption'
|
|
612
704
|
};
|
|
613
|
-
export const
|
|
705
|
+
export const PropertyUnitOrderByRelevanceFieldEnum = {
|
|
614
706
|
id: 'id',
|
|
615
|
-
|
|
616
|
-
|
|
707
|
+
variantId: 'variantId',
|
|
708
|
+
unitNumber: 'unitNumber',
|
|
709
|
+
blockName: 'blockName',
|
|
710
|
+
notes: 'notes',
|
|
711
|
+
status: 'status',
|
|
712
|
+
reservedById: 'reservedById',
|
|
713
|
+
ownerId: 'ownerId'
|
|
714
|
+
};
|
|
715
|
+
export const PropertyAmenityOrderByRelevanceFieldEnum = {
|
|
716
|
+
propertyId: 'propertyId',
|
|
717
|
+
amenityId: 'amenityId'
|
|
617
718
|
};
|
|
618
|
-
export const
|
|
719
|
+
export const PaymentPlanOrderByRelevanceFieldEnum = {
|
|
619
720
|
id: 'id',
|
|
620
|
-
|
|
721
|
+
tenantId: 'tenantId',
|
|
621
722
|
name: 'name',
|
|
622
|
-
|
|
623
|
-
|
|
723
|
+
description: 'description',
|
|
724
|
+
paymentFrequency: 'paymentFrequency'
|
|
624
725
|
};
|
|
625
|
-
export const
|
|
726
|
+
export const PropertyPaymentMethodOrderByRelevanceFieldEnum = {
|
|
626
727
|
id: 'id',
|
|
627
|
-
|
|
728
|
+
tenantId: 'tenantId',
|
|
628
729
|
name: 'name',
|
|
629
730
|
description: 'description'
|
|
630
731
|
};
|
|
631
|
-
export const
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
};
|
|
635
|
-
export const MortgageDownpaymentInstallmentOrderByRelevanceFieldEnum = {
|
|
636
|
-
id: 'id',
|
|
637
|
-
planId: 'planId'
|
|
732
|
+
export const PropertyPaymentMethodLinkOrderByRelevanceFieldEnum = {
|
|
733
|
+
propertyId: 'propertyId',
|
|
734
|
+
paymentMethodId: 'paymentMethodId'
|
|
638
735
|
};
|
|
639
|
-
export const
|
|
736
|
+
export const PropertyPaymentMethodPhaseOrderByRelevanceFieldEnum = {
|
|
640
737
|
id: 'id',
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
738
|
+
paymentMethodId: 'paymentMethodId',
|
|
739
|
+
paymentPlanId: 'paymentPlanId',
|
|
740
|
+
name: 'name',
|
|
741
|
+
description: 'description',
|
|
742
|
+
phaseCategory: 'phaseCategory',
|
|
743
|
+
phaseType: 'phaseType',
|
|
744
|
+
requiredDocumentTypes: 'requiredDocumentTypes',
|
|
745
|
+
stepDefinitions: 'stepDefinitions'
|
|
645
746
|
};
|
|
646
|
-
export const
|
|
747
|
+
export const ContractOrderByRelevanceFieldEnum = {
|
|
647
748
|
id: 'id',
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
749
|
+
tenantId: 'tenantId',
|
|
750
|
+
propertyUnitId: 'propertyUnitId',
|
|
751
|
+
buyerId: 'buyerId',
|
|
752
|
+
sellerId: 'sellerId',
|
|
753
|
+
paymentMethodId: 'paymentMethodId',
|
|
754
|
+
contractNumber: 'contractNumber',
|
|
755
|
+
title: 'title',
|
|
756
|
+
description: 'description',
|
|
757
|
+
contractType: 'contractType',
|
|
758
|
+
status: 'status',
|
|
759
|
+
state: 'state',
|
|
760
|
+
currentPhaseId: 'currentPhaseId'
|
|
653
761
|
};
|
|
654
|
-
export const
|
|
762
|
+
export const ContractPhaseOrderByRelevanceFieldEnum = {
|
|
655
763
|
id: 'id',
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
764
|
+
contractId: 'contractId',
|
|
765
|
+
paymentPlanId: 'paymentPlanId',
|
|
766
|
+
name: 'name',
|
|
767
|
+
description: 'description',
|
|
768
|
+
phaseCategory: 'phaseCategory',
|
|
769
|
+
phaseType: 'phaseType',
|
|
770
|
+
status: 'status'
|
|
659
771
|
};
|
|
660
|
-
export const
|
|
772
|
+
export const ContractPhaseStepOrderByRelevanceFieldEnum = {
|
|
661
773
|
id: 'id',
|
|
662
|
-
|
|
663
|
-
buyerId: 'buyerId',
|
|
664
|
-
planType: 'planType',
|
|
774
|
+
phaseId: 'phaseId',
|
|
665
775
|
name: 'name',
|
|
666
776
|
description: 'description',
|
|
667
|
-
|
|
668
|
-
|
|
777
|
+
stepType: 'stepType',
|
|
778
|
+
status: 'status',
|
|
779
|
+
assigneeId: 'assigneeId',
|
|
780
|
+
requiredDocumentTypes: 'requiredDocumentTypes'
|
|
669
781
|
};
|
|
670
|
-
export const
|
|
782
|
+
export const ContractPhaseStepApprovalOrderByRelevanceFieldEnum = {
|
|
671
783
|
id: 'id',
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
784
|
+
stepId: 'stepId',
|
|
785
|
+
approverId: 'approverId',
|
|
786
|
+
decision: 'decision',
|
|
787
|
+
comment: 'comment'
|
|
675
788
|
};
|
|
676
|
-
export const
|
|
789
|
+
export const ContractInstallmentOrderByRelevanceFieldEnum = {
|
|
677
790
|
id: 'id',
|
|
678
|
-
|
|
791
|
+
phaseId: 'phaseId',
|
|
679
792
|
status: 'status'
|
|
680
793
|
};
|
|
681
|
-
export const
|
|
794
|
+
export const ContractPaymentOrderByRelevanceFieldEnum = {
|
|
682
795
|
id: 'id',
|
|
683
|
-
|
|
684
|
-
|
|
796
|
+
contractId: 'contractId',
|
|
797
|
+
phaseId: 'phaseId',
|
|
685
798
|
installmentId: 'installmentId',
|
|
686
799
|
payerId: 'payerId',
|
|
687
800
|
paymentMethod: 'paymentMethod',
|
|
@@ -689,22 +802,40 @@ export const PaymentOrderByRelevanceFieldEnum = {
|
|
|
689
802
|
reference: 'reference',
|
|
690
803
|
gatewayResponse: 'gatewayResponse'
|
|
691
804
|
};
|
|
692
|
-
export const ContractOrderByRelevanceFieldEnum = {
|
|
693
|
-
id: 'id',
|
|
694
|
-
propertyId: 'propertyId',
|
|
695
|
-
paymentPlanId: 'paymentPlanId',
|
|
696
|
-
buyerId: 'buyerId',
|
|
697
|
-
sellerId: 'sellerId',
|
|
698
|
-
contractType: 'contractType',
|
|
699
|
-
contractNumber: 'contractNumber',
|
|
700
|
-
title: 'title',
|
|
701
|
-
description: 'description',
|
|
702
|
-
status: 'status'
|
|
703
|
-
};
|
|
704
805
|
export const ContractDocumentOrderByRelevanceFieldEnum = {
|
|
705
806
|
id: 'id',
|
|
706
807
|
contractId: 'contractId',
|
|
808
|
+
phaseId: 'phaseId',
|
|
809
|
+
stepId: 'stepId',
|
|
707
810
|
name: 'name',
|
|
708
811
|
url: 'url',
|
|
709
|
-
type: 'type'
|
|
812
|
+
type: 'type',
|
|
813
|
+
uploadedById: 'uploadedById',
|
|
814
|
+
status: 'status'
|
|
815
|
+
};
|
|
816
|
+
export const ContractTransitionOrderByRelevanceFieldEnum = {
|
|
817
|
+
id: 'id',
|
|
818
|
+
contractId: 'contractId',
|
|
819
|
+
fromState: 'fromState',
|
|
820
|
+
toState: 'toState',
|
|
821
|
+
trigger: 'trigger',
|
|
822
|
+
metadata: 'metadata'
|
|
823
|
+
};
|
|
824
|
+
export const ContractEventOrderByRelevanceFieldEnum = {
|
|
825
|
+
id: 'id',
|
|
826
|
+
contractId: 'contractId',
|
|
827
|
+
event: 'event',
|
|
828
|
+
data: 'data'
|
|
829
|
+
};
|
|
830
|
+
export const DomainEventOrderByRelevanceFieldEnum = {
|
|
831
|
+
id: 'id',
|
|
832
|
+
eventType: 'eventType',
|
|
833
|
+
aggregateType: 'aggregateType',
|
|
834
|
+
aggregateId: 'aggregateId',
|
|
835
|
+
queueName: 'queueName',
|
|
836
|
+
payload: 'payload',
|
|
837
|
+
actorId: 'actorId',
|
|
838
|
+
actorRole: 'actorRole',
|
|
839
|
+
status: 'status',
|
|
840
|
+
lastError: 'lastError'
|
|
710
841
|
};
|