@burdenoff/microfe-housingvista 2026.626.2 → 2026.703.2

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 (74) hide show
  1. package/dist/housingvista/HousingVistaRoot.js +60 -59
  2. package/dist/housingvista/HousingVistaRoot.js.map +1 -1
  3. package/dist/housingvista/HousingVistaRoutes.js +25 -21
  4. package/dist/housingvista/HousingVistaRoutes.js.map +1 -1
  5. package/dist/housingvista/components/DataTable.js +1 -1
  6. package/dist/housingvista/components/DataTable.js.map +1 -1
  7. package/dist/housingvista/components/EmptyState.js.map +1 -1
  8. package/dist/housingvista/components/ErrorBoundary.js +3 -3
  9. package/dist/housingvista/components/ErrorBoundary.js.map +1 -1
  10. package/dist/housingvista/components/LoadingSkeleton.js +76 -1
  11. package/dist/housingvista/components/LoadingSkeleton.js.map +1 -0
  12. package/dist/housingvista/components/PageLayout.js.map +1 -1
  13. package/dist/housingvista/components/PropertyCard.js +49 -50
  14. package/dist/housingvista/components/PropertyCard.js.map +1 -1
  15. package/dist/housingvista/components/StatCard.js +3 -3
  16. package/dist/housingvista/components/StatCard.js.map +1 -1
  17. package/dist/housingvista/components/StatusBadge.js +8 -8
  18. package/dist/housingvista/components/StatusBadge.js.map +1 -1
  19. package/dist/housingvista/components/index.js +0 -2
  20. package/dist/housingvista/hooks/index.js +670 -198
  21. package/dist/housingvista/hooks/index.js.map +1 -1
  22. package/dist/housingvista/lib/toast.js +36 -0
  23. package/dist/housingvista/lib/toast.js.map +1 -0
  24. package/dist/housingvista/pages/HomePage.js +8 -8
  25. package/dist/housingvista/pages/HomePage.js.map +1 -1
  26. package/dist/housingvista/pages/amc/AMCManagementPage.js +254 -78
  27. package/dist/housingvista/pages/amc/AMCManagementPage.js.map +1 -1
  28. package/dist/housingvista/pages/analytics/AnalyticsPage.js +192 -161
  29. package/dist/housingvista/pages/analytics/AnalyticsPage.js.map +1 -1
  30. package/dist/housingvista/pages/assets/AssetManagementPage.js +4 -4
  31. package/dist/housingvista/pages/assets/AssetManagementPage.js.map +1 -1
  32. package/dist/housingvista/pages/chat/ChatPage.js +17 -209
  33. package/dist/housingvista/pages/chat/ChatPage.js.map +1 -1
  34. package/dist/housingvista/pages/finance/HomeLoansPage.js +11 -11
  35. package/dist/housingvista/pages/finance/HomeLoansPage.js.map +1 -1
  36. package/dist/housingvista/pages/investments/InvestmentDetailPage.js +243 -205
  37. package/dist/housingvista/pages/investments/InvestmentDetailPage.js.map +1 -1
  38. package/dist/housingvista/pages/investments/InvestmentsPage.js +348 -114
  39. package/dist/housingvista/pages/investments/InvestmentsPage.js.map +1 -1
  40. package/dist/housingvista/pages/legal/LegalPage.js +8 -8
  41. package/dist/housingvista/pages/legal/LegalPage.js.map +1 -1
  42. package/dist/housingvista/pages/market/AreaInsightsPage.js +81 -84
  43. package/dist/housingvista/pages/market/AreaInsightsPage.js.map +1 -1
  44. package/dist/housingvista/pages/market/MarketAnalyticsPage.js +83 -85
  45. package/dist/housingvista/pages/market/MarketAnalyticsPage.js.map +1 -1
  46. package/dist/housingvista/pages/marketplace/MarketplacePage.js +6 -6
  47. package/dist/housingvista/pages/marketplace/MarketplacePage.js.map +1 -1
  48. package/dist/housingvista/pages/notifications/NotificationsPage.js +19 -133
  49. package/dist/housingvista/pages/notifications/NotificationsPage.js.map +1 -1
  50. package/dist/housingvista/pages/properties/AddPropertyPage.js +279 -243
  51. package/dist/housingvista/pages/properties/AddPropertyPage.js.map +1 -1
  52. package/dist/housingvista/pages/properties/PropertiesPage.js +216 -165
  53. package/dist/housingvista/pages/properties/PropertiesPage.js.map +1 -1
  54. package/dist/housingvista/pages/properties/PropertyDetailPage.js +619 -424
  55. package/dist/housingvista/pages/properties/PropertyDetailPage.js.map +1 -1
  56. package/dist/housingvista/pages/rental/RentalManagementPage.js +493 -130
  57. package/dist/housingvista/pages/rental/RentalManagementPage.js.map +1 -1
  58. package/dist/housingvista/pages/settings/ProfilePage.js +102 -102
  59. package/dist/housingvista/pages/settings/ProfilePage.js.map +1 -1
  60. package/dist/housingvista/pages/settings/SettingsPage.js +99 -139
  61. package/dist/housingvista/pages/settings/SettingsPage.js.map +1 -1
  62. package/dist/housingvista/pages/shortlist/ShortlistPage.js +63 -0
  63. package/dist/housingvista/pages/shortlist/ShortlistPage.js.map +1 -0
  64. package/dist/housingvista/pages/transactions/TransactionDetailPage.js +140 -185
  65. package/dist/housingvista/pages/transactions/TransactionDetailPage.js.map +1 -1
  66. package/dist/housingvista/pages/transactions/TransactionsPage.js +269 -110
  67. package/dist/housingvista/pages/transactions/TransactionsPage.js.map +1 -1
  68. package/dist/housingvista/pages/verification/VerificationPage.js +195 -116
  69. package/dist/housingvista/pages/verification/VerificationPage.js.map +1 -1
  70. package/dist/node_modules/sonner/dist/index.js +163 -0
  71. package/dist/node_modules/sonner/dist/index.js.map +1 -0
  72. package/package.json +3 -3
  73. package/dist/housingvista/components/Modal.js +0 -3
  74. package/dist/housingvista/components/Toast.js +0 -3
@@ -1,13 +1,13 @@
1
1
  import { gql as e } from "@apollo/client";
2
- import { useQuery as t } from "@apollo/client/react";
2
+ import { useMutation as t, useQuery as n } from "@apollo/client/react";
3
3
  //#region src/housingvista/hooks/index.ts
4
- var n = {
4
+ var r = {
5
5
  limit: 50,
6
6
  offset: 0
7
- }, r = (e = n) => ({ pagination: {
8
- limit: e.limit ?? n.limit,
9
- offset: e.offset ?? n.offset
10
- } }), i = e`
7
+ }, i = (e = r) => ({ pagination: {
8
+ limit: e.limit ?? r.limit,
9
+ offset: e.offset ?? r.offset
10
+ } }), a = e`
11
11
  query GetDashboardStats {
12
12
  housingvistaDashboardStats {
13
13
  totalProperties
@@ -17,6 +17,7 @@ var n = {
17
17
  activeTransactions
18
18
  pendingVerifications
19
19
  totalInvestments
20
+ totalPortfolioValue
20
21
  investmentReturns
21
22
  totalTenants
22
23
  maintenanceRequests
@@ -24,139 +25,184 @@ var n = {
24
25
  upcomingViewings
25
26
  }
26
27
  }
27
- `, a = e`
28
- query GetProperties($pagination: HousingVistaPaginationInput) {
29
- housingvistaProperties(pagination: $pagination) {
28
+ `, o = e`
29
+ fragment PropertyFields on HousingVistaProperty {
30
+ id
31
+ title
32
+ description
33
+ type
34
+ status
35
+ category
36
+ verificationStatus
37
+ imageUrl
38
+ createdAt
39
+ updatedAt
40
+ price {
41
+ amount
42
+ currency
43
+ type
44
+ period
45
+ negotiable
46
+ pricePerSqft
47
+ }
48
+ location {
49
+ address
50
+ city
51
+ state
52
+ country
53
+ pincode
54
+ coordinates {
55
+ latitude
56
+ longitude
57
+ }
58
+ neighborhood
59
+ landmarks
60
+ }
61
+ specifications {
62
+ totalArea
63
+ carpetArea
64
+ builtUpArea
65
+ bedrooms
66
+ bathrooms
67
+ floors
68
+ totalFloors
69
+ parking
70
+ balconies
71
+ furnishingStatus
72
+ ageOfProperty
73
+ facing
74
+ }
75
+ amenities {
30
76
  id
77
+ name
78
+ category
79
+ available
80
+ }
81
+ images {
82
+ id
83
+ url
31
84
  title
32
- description
33
85
  type
34
- status
35
- category
36
- price {
37
- amount
38
- currency
39
- type
40
- period
41
- negotiable
42
- pricePerSqft
43
- }
86
+ order
87
+ isPrimary
88
+ }
89
+ }
90
+ `, s = e`
91
+ ${o}
92
+ query GetProperties($filter: HousingVistaPropertyFilterInput, $pagination: HousingVistaPaginationInput) {
93
+ housingvistaProperties(filter: $filter, pagination: $pagination) {
94
+ ...PropertyFields
95
+ }
96
+ }
97
+ `, c = e`
98
+ ${o}
99
+ query GetProperty($id: ID!) {
100
+ housingvistaProperty(id: $id) {
101
+ ...PropertyFields
102
+ }
103
+ }
104
+ `, l = e`
105
+ fragment TransactionFields on HousingVistaTransaction {
106
+ id
107
+ title
108
+ type
109
+ status
110
+ amount
111
+ currency
112
+ documents
113
+ milestones
114
+ parties
115
+ escrow
116
+ createdAt
117
+ updatedAt
118
+ property {
119
+ id
120
+ title
44
121
  location {
45
- address
46
122
  city
47
123
  state
48
- country
49
- pincode
50
- coordinates {
51
- latitude
52
- longitude
53
- }
54
- neighborhood
55
- landmarks
56
- }
57
- specifications {
58
- totalArea
59
- carpetArea
60
- builtUpArea
61
- bedrooms
62
- bathrooms
63
- floors
64
- totalFloors
65
- parking
66
- balconies
67
- furnishingStatus
68
- ageOfProperty
69
- facing
70
- }
71
- amenities {
72
- id
73
- name
74
- category
75
- available
76
124
  }
77
125
  images {
78
126
  id
79
127
  url
80
- title
81
- type
82
- order
83
128
  isPrimary
84
129
  }
85
- verificationStatus
86
- createdAt
87
- updatedAt
130
+ }
131
+ buyer {
132
+ id
133
+ firstName
134
+ lastName
135
+ avatar
136
+ }
137
+ seller {
138
+ id
139
+ firstName
140
+ lastName
141
+ avatar
142
+ }
143
+ tenant {
144
+ id
145
+ firstName
146
+ lastName
147
+ avatar
148
+ }
149
+ landlord {
150
+ id
151
+ firstName
152
+ lastName
153
+ avatar
88
154
  }
89
155
  }
90
- `, o = e`
156
+ `, u = e`
157
+ ${l}
91
158
  query GetTransactions($pagination: HousingVistaPaginationInput) {
92
159
  housingvistaTransactions(pagination: $pagination) {
160
+ ...TransactionFields
161
+ }
162
+ }
163
+ `, d = e`
164
+ ${l}
165
+ query GetTransaction($id: ID!) {
166
+ housingvistaTransaction(id: $id) {
167
+ ...TransactionFields
168
+ }
169
+ }
170
+ `, f = e`
171
+ fragment InvestmentFields on HousingVistaInvestment {
172
+ id
173
+ title
174
+ investmentType
175
+ totalValue
176
+ status
177
+ startDate
178
+ maturityDate
179
+ riskLevel
180
+ investors
181
+ returns
182
+ property {
93
183
  id
94
- type
95
- status
96
- amount
97
- currency
98
- createdAt
99
- updatedAt
100
- property {
101
- id
102
- title
103
- location {
104
- city
105
- state
106
- }
107
- images {
108
- id
109
- url
110
- isPrimary
111
- }
112
- }
113
- buyer {
114
- id
115
- firstName
116
- lastName
117
- avatar
118
- }
119
- seller {
120
- id
121
- firstName
122
- lastName
123
- avatar
124
- }
125
- tenant {
126
- id
127
- firstName
128
- lastName
129
- avatar
130
- }
131
- landlord {
132
- id
133
- firstName
134
- lastName
135
- avatar
184
+ title
185
+ location {
186
+ city
187
+ state
136
188
  }
137
189
  }
138
190
  }
139
- `, s = e`
191
+ `, p = e`
192
+ ${f}
140
193
  query GetInvestments($pagination: HousingVistaPaginationInput) {
141
194
  housingvistaInvestments(pagination: $pagination) {
142
- id
143
- investmentType
144
- totalValue
145
- status
146
- startDate
147
- maturityDate
148
- riskLevel
149
- property {
150
- id
151
- title
152
- location {
153
- city
154
- state
155
- }
156
- }
195
+ ...InvestmentFields
157
196
  }
158
197
  }
159
- `, c = e`
198
+ `, m = e`
199
+ ${f}
200
+ query GetInvestment($id: ID!) {
201
+ housingvistaInvestment(id: $id) {
202
+ ...InvestmentFields
203
+ }
204
+ }
205
+ `, h = e`
160
206
  query GetRentalUnits($pagination: HousingVistaPaginationInput) {
161
207
  housingvistaRentalUnits(pagination: $pagination) {
162
208
  id
@@ -175,7 +221,7 @@ var n = {
175
221
  securityDeposit
176
222
  }
177
223
  }
178
- `, l = e`
224
+ `, g = e`
179
225
  query GetAssets($pagination: HousingVistaPaginationInput) {
180
226
  housingvistaAssets(pagination: $pagination) {
181
227
  id
@@ -193,7 +239,7 @@ var n = {
193
239
  lastValuationDate
194
240
  }
195
241
  }
196
- `, u = e`
242
+ `, _ = e`
197
243
  query GetAmcContracts($pagination: HousingVistaPaginationInput) {
198
244
  housingvistaAmcContracts(pagination: $pagination) {
199
245
  id
@@ -209,7 +255,7 @@ var n = {
209
255
  servicesIncluded
210
256
  }
211
257
  }
212
- `, d = e`
258
+ `, ee = e`
213
259
  query GetMarketplaceServices($pagination: HousingVistaPaginationInput) {
214
260
  housingvistaMarketplaceServices(pagination: $pagination) {
215
261
  id
@@ -227,7 +273,7 @@ var n = {
227
273
  featured
228
274
  }
229
275
  }
230
- `, f = e`
276
+ `, v = e`
231
277
  query GetVerifications($pagination: HousingVistaPaginationInput) {
232
278
  housingvistaVerificationItems(pagination: $pagination) {
233
279
  id
@@ -241,7 +287,7 @@ var n = {
241
287
  notes
242
288
  }
243
289
  }
244
- `, p = e`
290
+ `, y = e`
245
291
  query GetLegalServices($pagination: HousingVistaPaginationInput) {
246
292
  housingvistaLegalServices(pagination: $pagination) {
247
293
  id
@@ -257,7 +303,7 @@ var n = {
257
303
  documentsRequired
258
304
  }
259
305
  }
260
- `, m = e`
306
+ `, b = e`
261
307
  query GetHomeLoans($pagination: HousingVistaPaginationInput) {
262
308
  housingvistaHomeLoanOffers(pagination: $pagination) {
263
309
  id
@@ -274,7 +320,7 @@ var n = {
274
320
  prepaymentCharges
275
321
  }
276
322
  }
277
- `, h = e`
323
+ `, x = e`
278
324
  query GetMarketTrends($pagination: HousingVistaPaginationInput) {
279
325
  housingvistaMarketTrends(pagination: $pagination) {
280
326
  month
@@ -285,7 +331,7 @@ var n = {
285
331
  priceChangePercent
286
332
  }
287
333
  }
288
- `, g = e`
334
+ `, S = e`
289
335
  query GetAreaInsights($pagination: HousingVistaPaginationInput) {
290
336
  housingvistaAreaInsights(pagination: $pagination) {
291
337
  id
@@ -304,10 +350,237 @@ var n = {
304
350
  upcomingProjects
305
351
  }
306
352
  }
307
- `, _ = () => {
308
- let { data: e, loading: n, error: r } = t(i);
353
+ `, C = e`
354
+ query GetHousingvistaAnalytics {
355
+ housingvistaAnalytics {
356
+ kpis {
357
+ id
358
+ label
359
+ value
360
+ previousValue
361
+ unit
362
+ trend
363
+ changePercent
364
+ }
365
+ revenueByMonth {
366
+ month
367
+ revenue
368
+ expenses
369
+ }
370
+ propertyTypeDistribution {
371
+ type
372
+ count
373
+ value
374
+ }
375
+ occupancyRate {
376
+ month
377
+ rate
378
+ }
379
+ }
380
+ }
381
+ `, w = e`
382
+ ${o}
383
+ fragment ShortlistFields on HousingVistaShortlist {
384
+ id
385
+ propertyId
386
+ notes
387
+ createdAt
388
+ property {
389
+ ...PropertyFields
390
+ }
391
+ }
392
+ `, T = e`
393
+ ${w}
394
+ query GetShortlists($pagination: HousingVistaPaginationInput) {
395
+ housingvistaShortlists(pagination: $pagination) {
396
+ ...ShortlistFields
397
+ }
398
+ }
399
+ `, E = e`
400
+ ${o}
401
+ mutation CreateHousingvistaProperty($input: HousingVistaCreatePropertyInput!) {
402
+ createHousingvistaProperty(input: $input) {
403
+ ...PropertyFields
404
+ }
405
+ }
406
+ `, D = e`
407
+ ${o}
408
+ mutation UpdateHousingvistaProperty($id: ID!, $input: HousingVistaUpdatePropertyInput!) {
409
+ updateHousingvistaProperty(id: $id, input: $input) {
410
+ ...PropertyFields
411
+ }
412
+ }
413
+ `, O = e`
414
+ mutation DeleteHousingvistaProperty($id: ID!) {
415
+ deleteHousingvistaProperty(id: $id)
416
+ }
417
+ `, k = e`
418
+ ${w}
419
+ mutation SaveHousingvistaShortlist($input: HousingVistaSaveShortlistInput!) {
420
+ saveHousingvistaShortlist(input: $input) {
421
+ ...ShortlistFields
422
+ }
423
+ }
424
+ `, A = e`
425
+ mutation RemoveHousingvistaShortlist($propertyId: ID!) {
426
+ removeHousingvistaShortlist(propertyId: $propertyId)
427
+ }
428
+ `, j = e`
429
+ mutation BookHousingvistaViewing($input: HousingVistaBookViewingInput!) {
430
+ bookHousingvistaViewing(input: $input) {
431
+ id
432
+ propertyId
433
+ scheduledAt
434
+ type
435
+ status
436
+ attendeeName
437
+ attendeeEmail
438
+ notes
439
+ }
440
+ }
441
+ `;
442
+ e`
443
+ mutation CancelHousingvistaViewing($id: ID!) {
444
+ cancelHousingvistaViewing(id: $id) {
445
+ id
446
+ status
447
+ }
448
+ }
449
+ `;
450
+ var M = e`
451
+ mutation SubmitHousingvistaOffer($input: HousingVistaSubmitOfferInput!) {
452
+ submitHousingvistaOffer(input: $input) {
453
+ id
454
+ propertyId
455
+ amount
456
+ currency
457
+ status
458
+ notes
459
+ createdAt
460
+ }
461
+ }
462
+ `;
463
+ e`
464
+ mutation RespondHousingvistaOffer($id: ID!, $input: HousingVistaRespondOfferInput!) {
465
+ respondHousingvistaOffer(id: $id, input: $input) {
466
+ id
467
+ status
468
+ counterAmount
469
+ respondedAt
470
+ }
471
+ }
472
+ `;
473
+ var N = e`
474
+ ${l}
475
+ mutation CreateHousingvistaTransaction($input: HousingVistaCreateTransactionInput!) {
476
+ createHousingvistaTransaction(input: $input) {
477
+ ...TransactionFields
478
+ }
479
+ }
480
+ `, P = e`
481
+ ${f}
482
+ mutation CreateHousingvistaInvestment($input: HousingVistaCreateInvestmentInput!) {
483
+ createHousingvistaInvestment(input: $input) {
484
+ ...InvestmentFields
485
+ }
486
+ }
487
+ `, F = e`
488
+ mutation CreateHousingvistaRentalUnit($input: HousingVistaCreateRentalUnitInput!) {
489
+ createHousingvistaRentalUnit(input: $input) {
490
+ id
491
+ propertyTitle
492
+ unitNumber
493
+ tenantName
494
+ monthlyRent
495
+ status
496
+ }
497
+ }
498
+ `;
499
+ e`
500
+ mutation SubmitHousingvistaRentalApplication($input: HousingVistaSubmitRentalApplicationInput!) {
501
+ submitHousingvistaRentalApplication(input: $input) {
502
+ id
503
+ rentalUnitId
504
+ applicantName
505
+ status
506
+ }
507
+ }
508
+ `;
509
+ var I = e`
510
+ mutation CreateHousingvistaAmcContract($input: HousingVistaCreateAmcContractInput!) {
511
+ createHousingvistaAmcContract(input: $input) {
512
+ id
513
+ propertyTitle
514
+ packageName
515
+ providerName
516
+ monthlyCost
517
+ status
518
+ }
519
+ }
520
+ `, L = e`
521
+ mutation CreateHousingvistaMaintenanceRequest($input: HousingVistaCreateMaintenanceRequestInput!) {
522
+ createHousingvistaMaintenanceRequest(input: $input) {
523
+ id
524
+ title
525
+ category
526
+ priority
527
+ status
528
+ }
529
+ }
530
+ `, R = e`
531
+ mutation ApproveHousingvistaVerificationItem($id: ID!, $notes: String) {
532
+ approveHousingvistaVerificationItem(id: $id, notes: $notes) {
533
+ id
534
+ status
535
+ reviewerName
536
+ notes
537
+ }
538
+ }
539
+ `, z = e`
540
+ mutation RejectHousingvistaVerificationItem($id: ID!, $notes: String) {
541
+ rejectHousingvistaVerificationItem(id: $id, notes: $notes) {
542
+ id
543
+ status
544
+ reviewerName
545
+ notes
546
+ }
547
+ }
548
+ `, B = (e) => ({
549
+ id: e.id,
550
+ title: e.title,
551
+ description: e.description ?? "",
552
+ type: e.type,
553
+ status: e.status,
554
+ category: e.category,
555
+ price: e.price,
556
+ location: {
557
+ ...e.location,
558
+ coordinates: e.location.coordinates ?? {
559
+ latitude: 0,
560
+ longitude: 0
561
+ }
562
+ },
563
+ specifications: e.specifications,
564
+ amenities: e.amenities ?? [],
565
+ images: e.images ?? [],
566
+ documents: [],
567
+ virtualTours: [],
568
+ owner: {
569
+ id: "",
570
+ name: "",
571
+ email: "",
572
+ phone: "",
573
+ verified: !1
574
+ },
575
+ features: [],
576
+ verificationStatus: e.verificationStatus ?? "pending",
577
+ availability: { available: !0 },
578
+ createdAt: new Date(e.createdAt),
579
+ updatedAt: new Date(e.updatedAt)
580
+ }), V = () => {
581
+ let { data: e, loading: t, error: r } = n(a);
309
582
  return {
310
- data: e?.housingvistaDashboardStats || {
583
+ data: e?.housingvistaDashboardStats ?? {
311
584
  totalProperties: 0,
312
585
  totalValue: 0,
313
586
  occupancyRate: 0,
@@ -321,124 +594,323 @@ var n = {
321
594
  unreadMessages: 0,
322
595
  upcomingViewings: 0
323
596
  },
324
- loading: n,
597
+ loading: t,
325
598
  error: r
326
599
  };
327
- }, v = (e) => {
328
- let { data: n, loading: i, error: a } = t(o, { variables: r(e) });
600
+ }, H = (e) => {
601
+ let { data: t, loading: r, error: a } = n(u, { variables: i(e) });
329
602
  return {
330
- data: (n?.housingvistaTransactions || []).map((e) => ({
603
+ data: (t?.housingvistaTransactions ?? []).map((e) => ({
331
604
  id: `act-${e.id}`,
332
605
  type: "transaction_update",
333
606
  title: `Transaction: ${e.type}`,
334
- description: `${e.property?.title || "Property"} - ${e.status}`,
607
+ description: `${e.property?.title ?? "Property"} - ${e.status}`,
335
608
  timestamp: e.updatedAt || e.createdAt,
336
609
  entityId: e.id,
337
610
  entityType: "transaction",
338
- actorName: e.buyer ? `${e.buyer.firstName} ${e.buyer.lastName}` : e.tenant ? `${e.tenant.firstName} ${e.tenant.lastName}` : "System",
339
- actorAvatar: e.buyer?.avatar || e.tenant?.avatar
611
+ actorName: e.buyer ? `${e.buyer.firstName ?? ""} ${e.buyer.lastName ?? ""}`.trim() : e.tenant ? `${e.tenant.firstName ?? ""} ${e.tenant.lastName ?? ""}`.trim() : "System",
612
+ actorAvatar: e.buyer?.avatar ?? e.tenant?.avatar ?? void 0
340
613
  })),
341
- loading: i,
614
+ loading: r,
342
615
  error: a
343
616
  };
344
- }, y = (e) => {
345
- let { data: n, loading: i, error: o } = t(a, { variables: r(e) });
617
+ }, U = (e) => {
618
+ let { data: t, loading: r, error: a, refetch: o } = n(s, { variables: {
619
+ filter: e?.filter,
620
+ ...i(e?.pagination)
621
+ } });
622
+ return {
623
+ data: (t?.housingvistaProperties ?? []).map(B),
624
+ loading: r,
625
+ error: a,
626
+ refetch: o
627
+ };
628
+ }, W = (e) => {
629
+ let { data: t, loading: r, error: i } = n(c, {
630
+ variables: { id: e ?? "" },
631
+ skip: !e
632
+ });
346
633
  return {
347
- data: n?.housingvistaProperties || [],
348
- loading: i,
349
- error: o
634
+ data: t?.housingvistaProperty ? B(t.housingvistaProperty) : null,
635
+ loading: r,
636
+ error: i
350
637
  };
351
- }, b = (e) => {
352
- let { data: n, loading: i, error: a } = t(o, { variables: r(e) });
638
+ }, G = (e) => {
639
+ let { data: t, loading: r, error: a } = n(u, { variables: i(e) });
353
640
  return {
354
- data: n?.housingvistaTransactions || [],
355
- loading: i,
641
+ data: t?.housingvistaTransactions ?? [],
642
+ loading: r,
356
643
  error: a
357
644
  };
358
- }, x = (e) => {
359
- let { data: n, loading: i, error: a } = t(s, { variables: r(e) });
645
+ }, te = (e) => {
646
+ let { data: t, loading: r, error: i } = n(d, {
647
+ variables: { id: e ?? "" },
648
+ skip: !e
649
+ });
650
+ return {
651
+ data: t?.housingvistaTransaction ?? null,
652
+ loading: r,
653
+ error: i
654
+ };
655
+ }, K = (e) => {
656
+ let { data: t, loading: r, error: a } = n(p, { variables: i(e) });
360
657
  return {
361
- data: n?.housingvistaInvestments || [],
362
- loading: i,
658
+ data: t?.housingvistaInvestments ?? [],
659
+ loading: r,
363
660
  error: a
364
661
  };
365
- }, S = (e) => {
366
- let { data: n, loading: i, error: a } = t(c, { variables: r(e) });
662
+ }, q = (e) => {
663
+ let { data: t, loading: r, error: i } = n(m, {
664
+ variables: { id: e ?? "" },
665
+ skip: !e
666
+ });
367
667
  return {
368
- data: n?.housingvistaRentalUnits || [],
369
- loading: i,
668
+ data: t?.housingvistaInvestment ?? null,
669
+ loading: r,
670
+ error: i
671
+ };
672
+ }, J = (e) => {
673
+ let { data: t, loading: r, error: a } = n(h, { variables: i(e) });
674
+ return {
675
+ data: t?.housingvistaRentalUnits ?? [],
676
+ loading: r,
370
677
  error: a
371
678
  };
372
- }, C = (e) => {
373
- let { data: n, loading: i, error: a } = t(l, { variables: r(e) });
679
+ }, Y = (e) => {
680
+ let { data: t, loading: r, error: a } = n(g, { variables: i(e) });
374
681
  return {
375
- data: n?.housingvistaAssets || [],
376
- loading: i,
682
+ data: t?.housingvistaAssets ?? [],
683
+ loading: r,
377
684
  error: a
378
685
  };
379
- }, w = (e) => {
380
- let { data: n, loading: i, error: a } = t(u, { variables: r(e) });
686
+ }, X = (e) => {
687
+ let { data: t, loading: r, error: a } = n(_, { variables: i(e) });
381
688
  return {
382
- data: n?.housingvistaAmcContracts || [],
383
- loading: i,
689
+ data: t?.housingvistaAmcContracts ?? [],
690
+ loading: r,
384
691
  error: a
385
692
  };
386
- }, T = (e) => {
387
- let { data: n, loading: i, error: a } = t(d, { variables: r(e) });
693
+ }, Z = (e) => {
694
+ let { data: t, loading: r, error: a } = n(ee, { variables: i(e) });
388
695
  return {
389
- data: n?.housingvistaMarketplaceServices || [],
390
- loading: i,
696
+ data: t?.housingvistaMarketplaceServices ?? [],
697
+ loading: r,
391
698
  error: a
392
699
  };
393
- }, E = () => ({
394
- data: [],
395
- loading: !1,
396
- error: null
397
- }), D = () => ({
398
- data: [],
399
- loading: !1,
400
- error: null
401
- }), O = (e) => {
402
- let { data: n, loading: i, error: a } = t(f, { variables: r(e) });
403
- return {
404
- data: n?.housingvistaVerificationItems || [],
405
- loading: i,
700
+ }, Q = (e) => {
701
+ let { data: t, loading: r, error: a } = n(v, { variables: i(e) });
702
+ return {
703
+ data: t?.housingvistaVerificationItems ?? [],
704
+ loading: r,
406
705
  error: a
407
706
  };
408
- }, k = (e) => {
409
- let { data: n, loading: i, error: a } = t(p, { variables: r(e) });
707
+ }, ne = (e) => {
708
+ let { data: t, loading: r, error: a } = n(y, { variables: i(e) });
410
709
  return {
411
- data: n?.housingvistaLegalServices || [],
412
- loading: i,
710
+ data: t?.housingvistaLegalServices ?? [],
711
+ loading: r,
413
712
  error: a
414
713
  };
415
- }, A = (e) => {
416
- let { data: n, loading: i, error: a } = t(m, { variables: r(e) });
714
+ }, re = (e) => {
715
+ let { data: t, loading: r, error: a } = n(b, { variables: i(e) });
417
716
  return {
418
- data: n?.housingvistaHomeLoanOffers || [],
419
- loading: i,
717
+ data: t?.housingvistaHomeLoanOffers ?? [],
718
+ loading: r,
420
719
  error: a
421
720
  };
422
- }, j = (e) => {
423
- let { data: n, loading: i, error: a } = t(h, { variables: r(e) });
721
+ }, ie = (e) => {
722
+ let { data: t, loading: r, error: a } = n(x, { variables: i(e) });
424
723
  return {
425
- data: n?.housingvistaMarketTrends || [],
426
- loading: i,
724
+ data: t?.housingvistaMarketTrends ?? [],
725
+ loading: r,
427
726
  error: a
428
727
  };
429
- }, M = (e) => {
430
- let { data: n, loading: i, error: a } = t(g, { variables: r(e) });
728
+ }, ae = (e) => {
729
+ let { data: t, loading: r, error: a } = n(S, { variables: i(e) });
431
730
  return {
432
- data: n?.housingvistaAreaInsights || [],
433
- loading: i,
731
+ data: t?.housingvistaAreaInsights ?? [],
732
+ loading: r,
434
733
  error: a
435
734
  };
436
- }, N = () => ({
437
- data: null,
438
- loading: !1,
439
- error: null
440
- });
735
+ }, oe = (e) => {
736
+ let { data: t, loading: r, error: a, refetch: o } = n(T, { variables: i(e) });
737
+ return {
738
+ data: (t?.housingvistaShortlists ?? []).map((e) => ({
739
+ id: e.id,
740
+ propertyId: e.propertyId,
741
+ notes: e.notes ?? void 0,
742
+ createdAt: e.createdAt,
743
+ property: B(e.property)
744
+ })),
745
+ loading: r,
746
+ error: a,
747
+ refetch: o
748
+ };
749
+ }, se = () => {
750
+ let { data: e, loading: t, error: r } = n(C);
751
+ return {
752
+ data: e?.housingvistaAnalytics ?? null,
753
+ loading: t,
754
+ error: r
755
+ };
756
+ }, ce = () => {
757
+ let [e, { loading: n }] = t(E, { refetchQueries: [{
758
+ query: s,
759
+ variables: i()
760
+ }] });
761
+ return {
762
+ createProperty: async (t) => {
763
+ let n = await e({ variables: { input: t } });
764
+ if (!n.data) throw Error("Property was not created");
765
+ return B(n.data.createHousingvistaProperty);
766
+ },
767
+ loading: n
768
+ };
769
+ }, le = () => {
770
+ let [e, { loading: n }] = t(D);
771
+ return {
772
+ updateProperty: async (t, n) => {
773
+ let r = await e({ variables: {
774
+ id: t,
775
+ input: n
776
+ } });
777
+ if (!r.data) throw Error("Property was not updated");
778
+ return B(r.data.updateHousingvistaProperty);
779
+ },
780
+ loading: n
781
+ };
782
+ }, ue = () => {
783
+ let [e, { loading: n }] = t(O, { refetchQueries: [{
784
+ query: s,
785
+ variables: i()
786
+ }] });
787
+ return {
788
+ deleteProperty: async (t) => (await e({ variables: { id: t } })).data?.deleteHousingvistaProperty ?? !1,
789
+ loading: n
790
+ };
791
+ }, de = () => {
792
+ let [e, { loading: n }] = t(k, { refetchQueries: [{
793
+ query: T,
794
+ variables: i()
795
+ }] });
796
+ return {
797
+ saveShortlist: async (t, n) => {
798
+ await e({ variables: { input: {
799
+ propertyId: t,
800
+ notes: n
801
+ } } });
802
+ },
803
+ loading: n
804
+ };
805
+ }, fe = () => {
806
+ let [e, { loading: n }] = t(A, { refetchQueries: [{
807
+ query: T,
808
+ variables: i()
809
+ }] });
810
+ return {
811
+ removeShortlist: async (t) => {
812
+ await e({ variables: { propertyId: t } });
813
+ },
814
+ loading: n
815
+ };
816
+ }, pe = () => {
817
+ let [e, { loading: n }] = t(j);
818
+ return {
819
+ bookViewing: async (t) => {
820
+ await e({ variables: { input: t } });
821
+ },
822
+ loading: n
823
+ };
824
+ }, $ = () => {
825
+ let [e, { loading: n }] = t(M);
826
+ return {
827
+ submitOffer: async (t) => {
828
+ await e({ variables: { input: t } });
829
+ },
830
+ loading: n
831
+ };
832
+ }, me = () => {
833
+ let [e, { loading: n }] = t(N, { refetchQueries: [{
834
+ query: u,
835
+ variables: i()
836
+ }] });
837
+ return {
838
+ createTransaction: async (t) => {
839
+ await e({ variables: { input: t } });
840
+ },
841
+ loading: n
842
+ };
843
+ }, he = () => {
844
+ let [e, { loading: n }] = t(P, { refetchQueries: [{
845
+ query: p,
846
+ variables: i()
847
+ }] });
848
+ return {
849
+ createInvestment: async (t) => {
850
+ await e({ variables: { input: t } });
851
+ },
852
+ loading: n
853
+ };
854
+ }, ge = () => {
855
+ let [e, { loading: n }] = t(F, { refetchQueries: [{
856
+ query: h,
857
+ variables: i()
858
+ }] });
859
+ return {
860
+ createRentalUnit: async (t) => {
861
+ await e({ variables: { input: t } });
862
+ },
863
+ loading: n
864
+ };
865
+ }, _e = () => {
866
+ let [e, { loading: n }] = t(I, { refetchQueries: [{
867
+ query: _,
868
+ variables: i()
869
+ }] });
870
+ return {
871
+ createAmcContract: async (t) => {
872
+ await e({ variables: { input: t } });
873
+ },
874
+ loading: n
875
+ };
876
+ }, ve = () => {
877
+ let [e, { loading: n }] = t(L);
878
+ return {
879
+ createMaintenanceRequest: async (t) => {
880
+ await e({ variables: { input: t } });
881
+ },
882
+ loading: n
883
+ };
884
+ }, ye = () => {
885
+ let [e, { loading: n }] = t(R, { refetchQueries: [{
886
+ query: v,
887
+ variables: i()
888
+ }] });
889
+ return {
890
+ approveVerification: async (t, n) => {
891
+ await e({ variables: {
892
+ id: t,
893
+ notes: n
894
+ } });
895
+ },
896
+ loading: n
897
+ };
898
+ }, be = () => {
899
+ let [e, { loading: n }] = t(z, { refetchQueries: [{
900
+ query: v,
901
+ variables: i()
902
+ }] });
903
+ return {
904
+ rejectVerification: async (t, n) => {
905
+ await e({ variables: {
906
+ id: t,
907
+ notes: n
908
+ } });
909
+ },
910
+ loading: n
911
+ };
912
+ };
441
913
  //#endregion
442
- export { w as useAMCContracts, N as useAnalyticsData, M as useAreaInsights, C as useAssets, E as useConversations, _ as useDashboardStats, A as useHomeLoans, x as useInvestments, k as useLegalServices, j as useMarketTrends, T as useMarketplaceServices, D as useNotifications, y as useProperties, v as useRecentActivities, S as useRentalUnits, b as useTransactions, O as useVerifications };
914
+ export { X as useAMCContracts, se as useAnalyticsData, ye as useApproveVerification, ae as useAreaInsights, Y as useAssets, pe as useBookViewing, _e as useCreateAmcContract, he as useCreateInvestment, ve as useCreateMaintenanceRequest, ce as useCreateProperty, ge as useCreateRentalUnit, me as useCreateTransaction, V as useDashboardStats, ue as useDeleteProperty, re as useHomeLoans, q as useInvestment, K as useInvestments, ne as useLegalServices, ie as useMarketTrends, Z as useMarketplaceServices, U as useProperties, W as useProperty, H as useRecentActivities, be as useRejectVerification, fe as useRemoveShortlist, J as useRentalUnits, de as useSaveShortlist, oe as useShortlists, $ as useSubmitOffer, te as useTransaction, G as useTransactions, le as useUpdateProperty, Q as useVerifications };
443
915
 
444
916
  //# sourceMappingURL=index.js.map