@burdenoff/cli-sdk 2026.626.1 → 2026.627.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.
- package/dist/modules/assethandler/index.cjs +255 -0
- package/dist/modules/assethandler/index.d.cts +7 -0
- package/dist/modules/assethandler/index.d.ts +7 -0
- package/dist/modules/assethandler/index.js +255 -0
- package/dist/modules/crewfoundry/index.cjs +196 -0
- package/dist/modules/crewfoundry/index.d.cts +7 -0
- package/dist/modules/crewfoundry/index.d.ts +7 -0
- package/dist/modules/crewfoundry/index.js +196 -0
- package/dist/modules/eventfullymanaged/index.cjs +247 -0
- package/dist/modules/eventfullymanaged/index.d.cts +7 -0
- package/dist/modules/eventfullymanaged/index.d.ts +7 -0
- package/dist/modules/eventfullymanaged/index.js +247 -0
- package/dist/modules/ggnomad/index.cjs +140 -0
- package/dist/modules/ggnomad/index.d.cts +7 -0
- package/dist/modules/ggnomad/index.d.ts +7 -0
- package/dist/modules/ggnomad/index.js +140 -0
- package/dist/modules/headshotmarketing/index.cjs +1083 -0
- package/dist/modules/headshotmarketing/index.d.cts +7 -0
- package/dist/modules/headshotmarketing/index.d.ts +7 -0
- package/dist/modules/headshotmarketing/index.js +1083 -0
- package/dist/modules/housingvista/index.cjs +137 -0
- package/dist/modules/housingvista/index.d.cts +7 -0
- package/dist/modules/housingvista/index.d.ts +7 -0
- package/dist/modules/housingvista/index.js +137 -0
- package/dist/modules/movethewheels/index.cjs +565 -0
- package/dist/modules/movethewheels/index.d.cts +7 -0
- package/dist/modules/movethewheels/index.d.ts +7 -0
- package/dist/modules/movethewheels/index.js +565 -0
- package/dist/modules/planmagnet/index.cjs +795 -0
- package/dist/modules/planmagnet/index.d.cts +7 -0
- package/dist/modules/planmagnet/index.d.ts +7 -0
- package/dist/modules/planmagnet/index.js +795 -0
- package/dist/modules/proserviceworld/index.cjs +193 -0
- package/dist/modules/proserviceworld/index.d.cts +7 -0
- package/dist/modules/proserviceworld/index.d.ts +7 -0
- package/dist/modules/proserviceworld/index.js +193 -0
- package/dist/modules/timecampus/index.cjs +444 -0
- package/dist/modules/timecampus/index.d.cts +7 -0
- package/dist/modules/timecampus/index.d.ts +7 -0
- package/dist/modules/timecampus/index.js +444 -0
- package/package.json +1 -1
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
'use strict';require('graphql-request'),require('cross-fetch'),require('commander');var g=class extends Error{exitCode;hint;constructor(o,e){super(o),this.name="CliUserError",this.exitCode=e?.exitCode??1,this.hint=e?.hint;}},y=class extends g{constructor(o,e){super(o,{exitCode:2,hint:e?.hint??"Run `<product> auth login` to authenticate."}),this.name="CliAuthError";}},f=class extends Error{cause;constructor(o,e){super(o),this.name="CliInternalError",this.cause=e;}};var C=null;function b(r){C=r;}function h(){if(!C)throw new f("vibecontrols module helpers used before setHelpersContext was called");return C}function gt(){let r=h();if(!r.auth.isAuthenticated())throw new y(`Authentication required. Run \`${r.productName} auth login\`.`)}async function s(r,o){return gt(),h().gql.workspace.request(r,o)}function a(r){let o=r instanceof Error?r.message:String(r);throw new g(o)}function c(r,o,e){h().output.formatAndOutput(r,o,e);}function v(r){h().output.printSuccess(r);}function u(r,o){return h().output.truncate(r,o)}var k=`
|
|
2
|
+
id title description type category status price city state
|
|
3
|
+
bedrooms bathrooms totalArea imageUrl context createdAt updatedAt workspaceId
|
|
4
|
+
`,A=`
|
|
5
|
+
query HousingvistaProperties(
|
|
6
|
+
$filter: HousingVistaPropertyFilterInput
|
|
7
|
+
$pagination: HousingVistaPaginationInput
|
|
8
|
+
) {
|
|
9
|
+
housingvistaProperties(filter: $filter, pagination: $pagination) {
|
|
10
|
+
id title type category status price city state bedrooms bathrooms
|
|
11
|
+
totalArea imageUrl createdAt
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
`,S=`
|
|
15
|
+
query HousingvistaProperty($id: ID!) {
|
|
16
|
+
housingvistaProperty(id: $id) {
|
|
17
|
+
${k}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
`,E=`
|
|
21
|
+
mutation CreateHousingvistaProperty($input: CreatePropertyInput!) {
|
|
22
|
+
createHousingvistaProperty(input: $input) {
|
|
23
|
+
${k}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
`,P=`
|
|
27
|
+
mutation UpdateHousingvistaProperty($id: ID!, $input: UpdatePropertyInput!) {
|
|
28
|
+
updateHousingvistaProperty(id: $id, input: $input) {
|
|
29
|
+
${k}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
`,R=`
|
|
33
|
+
mutation DeleteHousingvistaProperty($id: ID!) {
|
|
34
|
+
deleteHousingvistaProperty(id: $id)
|
|
35
|
+
}
|
|
36
|
+
`,O=`
|
|
37
|
+
query HousingvistaTransactions($pagination: HousingVistaPaginationInput) {
|
|
38
|
+
housingvistaTransactions(pagination: $pagination) {
|
|
39
|
+
id title type status amount currency propertyId createdAt updatedAt
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
`,L=`
|
|
43
|
+
query HousingvistaTransaction($id: ID!) {
|
|
44
|
+
housingvistaTransaction(id: $id) {
|
|
45
|
+
id title type status amount currency propertyId
|
|
46
|
+
documents escrow milestones parties createdAt updatedAt workspaceId
|
|
47
|
+
property { id title city state status price }
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
`,D=`
|
|
51
|
+
query HousingvistaInvestments($pagination: HousingVistaPaginationInput) {
|
|
52
|
+
housingvistaInvestments(pagination: $pagination) {
|
|
53
|
+
id title investmentType riskLevel status totalValue propertyId
|
|
54
|
+
createdAt updatedAt
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
`,_=`
|
|
58
|
+
query HousingvistaInvestment($id: ID!) {
|
|
59
|
+
housingvistaInvestment(id: $id) {
|
|
60
|
+
id title investmentType riskLevel status totalValue propertyId
|
|
61
|
+
investors returns createdAt updatedAt workspaceId
|
|
62
|
+
property { id title city state status price }
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
`,$=`
|
|
66
|
+
query HousingvistaRentalUnits($pagination: HousingVistaPaginationInput) {
|
|
67
|
+
housingvistaRentalUnits(pagination: $pagination) {
|
|
68
|
+
id unitNumber propertyId propertyTitle tenantName tenantEmail tenantPhone
|
|
69
|
+
monthlyRent securityDeposit status paymentStatus leaseStart leaseEnd
|
|
70
|
+
lastPaymentAt
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
`,N=`
|
|
74
|
+
query HousingvistaAssets($pagination: HousingVistaPaginationInput) {
|
|
75
|
+
housingvistaAssets(pagination: $pagination) {
|
|
76
|
+
id title type category status location purchasePrice currentValue
|
|
77
|
+
appreciationPercent rentalYield imageUrl
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
`,q=`
|
|
81
|
+
query HousingvistaVerificationItems($pagination: HousingVistaPaginationInput) {
|
|
82
|
+
housingvistaVerificationItems(pagination: $pagination) {
|
|
83
|
+
id entityType entityLabel status priority notes submittedAt
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
`,H=`
|
|
87
|
+
query HousingvistaMarketplaceServices($pagination: HousingVistaPaginationInput) {
|
|
88
|
+
housingvistaMarketplaceServices(pagination: $pagination) {
|
|
89
|
+
id name category providerName description priceRange rating reviewCount
|
|
90
|
+
responseTime availableAreas featured verified imageUrl
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
`,V=`
|
|
94
|
+
query HousingvistaLegalServices($pagination: HousingVistaPaginationInput) {
|
|
95
|
+
housingvistaLegalServices(pagination: $pagination) {
|
|
96
|
+
id title category description providerName providerRating priceRange
|
|
97
|
+
consultationFee estimatedDuration documentsRequired features status
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
`,M=`
|
|
101
|
+
query HousingvistaAmcContracts($pagination: HousingVistaPaginationInput) {
|
|
102
|
+
housingvistaAmcContracts(pagination: $pagination) {
|
|
103
|
+
id packageName propertyTitle providerName monthlyCost status
|
|
104
|
+
servicesIncluded startDate endDate nextServiceDate
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
`,U=`
|
|
108
|
+
query HousingvistaHomeLoanOffers($pagination: HousingVistaPaginationInput) {
|
|
109
|
+
housingvistaHomeLoanOffers(pagination: $pagination) {
|
|
110
|
+
id bankName interestRate maxAmount maxTenure processingFee emiPerLakh
|
|
111
|
+
prepaymentCharges specialOffer rating features
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
`,F=`
|
|
115
|
+
query HousingvistaAreaInsights($pagination: HousingVistaPaginationInput) {
|
|
116
|
+
housingvistaAreaInsights(pagination: $pagination) {
|
|
117
|
+
id areaName city avgPropertyPrice avgRentalYield appreciationRate
|
|
118
|
+
safetyScore connectivityScore amenitiesScore greenCoverPercent
|
|
119
|
+
schoolsNearby hospitalsNearby upcomingProjects population
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
`,W=`
|
|
123
|
+
query HousingvistaMarketTrends($pagination: HousingVistaPaginationInput) {
|
|
124
|
+
housingvistaMarketTrends(pagination: $pagination) {
|
|
125
|
+
id monthLabel avgPrice avgRent priceChangePercent demandIndex supplyIndex
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
`,G=`
|
|
129
|
+
query HousingvistaDashboardStats {
|
|
130
|
+
housingvistaDashboardStats {
|
|
131
|
+
totalProperties totalValue totalPortfolioValue totalInvestments
|
|
132
|
+
investmentReturns totalTenants occupancyRate monthlyRevenue
|
|
133
|
+
activeTransactions pendingVerifications maintenanceRequests
|
|
134
|
+
upcomingViewings unreadMessages
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
`;function T(r,o){try{return JSON.parse(o)}catch{throw new g(`--${r} must be valid JSON`)}}function i(r){let o=Number.parseInt(r,10);if(Number.isNaN(o))throw new g(`Expected an integer but got "${r}"`);return o}function w(r){let o=Number.parseFloat(r);if(Number.isNaN(o))throw new g(`Expected a number but got "${r}"`);return o}function m(r,o){let e={};return r!==void 0&&(e.limit=r),o!==void 0&&(e.offset=o),Object.keys(e).length?e:void 0}function j(r){let o=r.command("properties").description("HousingVista properties");o.command("list").description("List properties").option("--type <t>","residential|commercial|industrial|agricultural|mixed_use").option("--status <s>","for_sale|for_rent|sold|rented|under_contract|off_market").option("--city <c>","Filter by city").option("--search <q>","Free-text search").option("--limit <n>","Page size",i,50).option("--offset <n>","Offset",i,0).option("-f, --format <format>","Output format").action(async e=>{try{let n={};e.type&&(n.type=e.type.toLowerCase()),e.status&&(n.status=e.status.toLowerCase()),e.city&&(n.city=e.city),e.search&&(n.search=e.search);let t=await s(A,{filter:Object.keys(n).length?n:void 0,pagination:m(e.limit,e.offset)});c(e,t.housingvistaProperties,{headers:["ID","Title","Type","Status","City","Price"],rows:t.housingvistaProperties.map(l=>[u(l.id,12),l.title,l.type,l.status,l.city,String(l.price)])});}catch(n){a(n);}}),o.command("get").description("Get a property by id").argument("<id>","Property ID").option("-f, --format <format>","Output format").action(async(e,n)=>{try{let t=await s(S,{id:e});if(!t.housingvistaProperty)throw new g(`Property ${e} not found`);c(n,t.housingvistaProperty);}catch(t){a(t);}}),o.command("create").description("Create a property").requiredOption("--title <t>","Title").requiredOption("--type <t>","residential|commercial|industrial|agricultural|mixed_use").requiredOption("--category <c>","Category").requiredOption("--status <s>","for_sale|for_rent|sold|rented|under_contract|off_market").requiredOption("--price <n>","Price",w).requiredOption("--city <c>","City").requiredOption("--state <s>","State").requiredOption("--bedrooms <n>","Bedrooms",i).requiredOption("--bathrooms <n>","Bathrooms",i).requiredOption("--total-area <n>","Total area",w).option("--description <s>","Description").option("--image-url <url>","Image URL").option("--context <json>","Context JSON").option("-f, --format <format>","Output format").action(async e=>{try{let n={title:e.title,type:e.type.toLowerCase(),category:e.category,status:e.status.toLowerCase(),price:e.price,city:e.city,state:e.state,bedrooms:e.bedrooms,bathrooms:e.bathrooms,totalArea:e.totalArea};e.description&&(n.description=e.description),e.imageUrl&&(n.imageUrl=e.imageUrl),e.context&&(n.context=T("context",e.context));let t=await s(E,{input:n});v(`Property created: ${t.createHousingvistaProperty.title}`),c(e,t.createHousingvistaProperty);}catch(n){a(n);}}),o.command("update").description("Update a property").argument("<id>","Property ID").option("--title <t>","Title").option("--type <t>","residential|commercial|industrial|agricultural|mixed_use").option("--category <c>","Category").option("--status <s>","for_sale|for_rent|sold|rented|under_contract|off_market").option("--price <n>","Price",w).option("--city <c>","City").option("--state <s>","State").option("--bedrooms <n>","Bedrooms",i).option("--bathrooms <n>","Bathrooms",i).option("--total-area <n>","Total area",w).option("--description <s>","Description").option("--image-url <url>","Image URL").option("--context <json>","Context JSON").option("-f, --format <format>","Output format").action(async(e,n)=>{try{let t={};if(n.title&&(t.title=n.title),n.type&&(t.type=n.type.toLowerCase()),n.category&&(t.category=n.category),n.status&&(t.status=n.status.toLowerCase()),n.price!==void 0&&(t.price=n.price),n.city&&(t.city=n.city),n.state&&(t.state=n.state),n.bedrooms!==void 0&&(t.bedrooms=n.bedrooms),n.bathrooms!==void 0&&(t.bathrooms=n.bathrooms),n.totalArea!==void 0&&(t.totalArea=n.totalArea),n.description!==void 0&&(t.description=n.description),n.imageUrl!==void 0&&(t.imageUrl=n.imageUrl),n.context&&(t.context=T("context",n.context)),!Object.keys(t).length)throw new g("No updates specified");let l=await s(P,{id:e,input:t});v("Property updated"),c(n,l.updateHousingvistaProperty);}catch(t){a(t);}}),o.command("delete").description("Delete a property").argument("<id>","Property ID").option("-f, --format <format>","Output format").action(async(e,n)=>{try{let t=await s(R,{id:e});if(!t.deleteHousingvistaProperty)throw new g(`Property ${e} not deleted`);v(`Property ${e} deleted`),c(n,{deleted:t.deleteHousingvistaProperty});}catch(t){a(t);}});}function z(r){let o=r.command("transactions").description("HousingVista property transactions");o.command("list").description("List transactions").option("--limit <n>","Page size",i,50).option("--offset <n>","Offset",i,0).option("-f, --format <format>","Output format").action(async e=>{try{let n=await s(O,{pagination:m(e.limit,e.offset)});c(e,n.housingvistaTransactions,{headers:["ID","Title","Type","Status","Amount","Currency"],rows:n.housingvistaTransactions.map(t=>[u(t.id,12),t.title,t.type,t.status,String(t.amount),t.currency])});}catch(n){a(n);}}),o.command("get").description("Get a transaction by id").argument("<id>","Transaction ID").option("-f, --format <format>","Output format").action(async(e,n)=>{try{let t=await s(L,{id:e});if(!t.housingvistaTransaction)throw new g(`Transaction ${e} not found`);c(n,t.housingvistaTransaction);}catch(t){a(t);}});}function Y(r){let o=r.command("investments").description("HousingVista real-estate investments");o.command("list").description("List investments").option("--limit <n>","Page size",i,50).option("--offset <n>","Offset",i,0).option("-f, --format <format>","Output format").action(async e=>{try{let n=await s(D,{pagination:m(e.limit,e.offset)});c(e,n.housingvistaInvestments,{headers:["ID","Title","Type","Risk","Status","Value"],rows:n.housingvistaInvestments.map(t=>[u(t.id,12),t.title,t.investmentType,t.riskLevel,t.status,String(t.totalValue)])});}catch(n){a(n);}}),o.command("get").description("Get an investment by id").argument("<id>","Investment ID").option("-f, --format <format>","Output format").action(async(e,n)=>{try{let t=await s(_,{id:e});if(!t.housingvistaInvestment)throw new g(`Investment ${e} not found`);c(n,t.housingvistaInvestment);}catch(t){a(t);}});}function B(r){r.command("rentals").description("HousingVista rental units").command("list").description("List rental units").option("--limit <n>","Page size",i,50).option("--offset <n>","Offset",i,0).option("-f, --format <format>","Output format").action(async e=>{try{let n=await s($,{pagination:m(e.limit,e.offset)});c(e,n.housingvistaRentalUnits,{headers:["ID","Unit","Property","Tenant","Rent","Payment"],rows:n.housingvistaRentalUnits.map(t=>[u(t.id,12),t.unitNumber,u(t.propertyTitle,24),t.tenantName,String(t.monthlyRent),t.paymentStatus])});}catch(n){a(n);}});}function J(r){r.command("assets").description("HousingVista portfolio assets").command("list").description("List assets").option("--limit <n>","Page size",i,50).option("--offset <n>","Offset",i,0).option("-f, --format <format>","Output format").action(async e=>{try{let n=await s(N,{pagination:m(e.limit,e.offset)});c(e,n.housingvistaAssets,{headers:["ID","Title","Type","Status","Location","Value"],rows:n.housingvistaAssets.map(t=>[u(t.id,12),t.title,t.type,t.status,u(t.location,20),String(t.currentValue)])});}catch(n){a(n);}});}function K(r){r.command("verifications").description("HousingVista verification queue").command("list").description("List verification items").option("--limit <n>","Page size",i,50).option("--offset <n>","Offset",i,0).option("-f, --format <format>","Output format").action(async e=>{try{let n=await s(q,{pagination:m(e.limit,e.offset)});c(e,n.housingvistaVerificationItems,{headers:["ID","Type","Label","Status","Priority"],rows:n.housingvistaVerificationItems.map(t=>[u(t.id,12),t.entityType,u(t.entityLabel,24),t.status,t.priority])});}catch(n){a(n);}});}function Q(r){let o=r.command("marketplace").description("HousingVista services marketplace (services, legal, AMC, home loans)");o.command("services").description("List marketplace services").option("--limit <n>","Page size",i,50).option("--offset <n>","Offset",i,0).option("-f, --format <format>","Output format").action(async e=>{try{let n=await s(H,{pagination:m(e.limit,e.offset)});c(e,n.housingvistaMarketplaceServices,{headers:["ID","Name","Category","Provider","Rating","Verified"],rows:n.housingvistaMarketplaceServices.map(t=>[u(t.id,12),t.name,t.category,t.providerName,String(t.rating??"-"),t.verified?"yes":"no"])});}catch(n){a(n);}}),o.command("legal").description("List legal services").option("--limit <n>","Page size",i,50).option("--offset <n>","Offset",i,0).option("-f, --format <format>","Output format").action(async e=>{try{let n=await s(V,{pagination:m(e.limit,e.offset)});c(e,n.housingvistaLegalServices,{headers:["ID","Title","Category","Provider","Price","Status"],rows:n.housingvistaLegalServices.map(t=>[u(t.id,12),t.title,t.category,t.providerName,t.priceRange??"-",t.status])});}catch(n){a(n);}}),o.command("amc").description("List AMC (annual maintenance) contracts").option("--limit <n>","Page size",i,50).option("--offset <n>","Offset",i,0).option("-f, --format <format>","Output format").action(async e=>{try{let n=await s(M,{pagination:m(e.limit,e.offset)});c(e,n.housingvistaAmcContracts,{headers:["ID","Package","Property","Provider","Monthly","Status"],rows:n.housingvistaAmcContracts.map(t=>[u(t.id,12),t.packageName,u(t.propertyTitle,20),t.providerName,String(t.monthlyCost),t.status])});}catch(n){a(n);}}),o.command("home-loans").description("List home loan offers").option("--limit <n>","Page size",i,50).option("--offset <n>","Offset",i,0).option("-f, --format <format>","Output format").action(async e=>{try{let n=await s(U,{pagination:m(e.limit,e.offset)});c(e,n.housingvistaHomeLoanOffers,{headers:["ID","Bank","Rate %","Max Amount","Max Tenure","Rating"],rows:n.housingvistaHomeLoanOffers.map(t=>[u(t.id,12),t.bankName,String(t.interestRate),String(t.maxAmount),String(t.maxTenure),String(t.rating??"-")])});}catch(n){a(n);}});}function X(r){let o=r.command("market").description("HousingVista market intelligence (area insights & trends)");o.command("area-insights").description("List area insights").option("--limit <n>","Page size",i,50).option("--offset <n>","Offset",i,0).option("-f, --format <format>","Output format").action(async e=>{try{let n=await s(F,{pagination:m(e.limit,e.offset)});c(e,n.housingvistaAreaInsights,{headers:["ID","Area","City","Avg Price","Yield %","Appreciation %"],rows:n.housingvistaAreaInsights.map(t=>[u(t.id,12),t.areaName,t.city,String(t.avgPropertyPrice),String(t.avgRentalYield),String(t.appreciationRate)])});}catch(n){a(n);}}),o.command("trends").description("List market trends").option("--limit <n>","Page size",i,50).option("--offset <n>","Offset",i,0).option("-f, --format <format>","Output format").action(async e=>{try{let n=await s(W,{pagination:m(e.limit,e.offset)});c(e,n.housingvistaMarketTrends,{headers:["ID","Month","Avg Price","Avg Rent","Change %","Demand"],rows:n.housingvistaMarketTrends.map(t=>[u(t.id,12),t.monthLabel,String(t.avgPrice),String(t.avgRent),String(t.priceChangePercent),String(t.demandIndex)])});}catch(n){a(n);}});}function Z(r){r.command("analytics").description("HousingVista analytics & dashboard").command("dashboard").description("Dashboard stats (properties, portfolio value, investments, occupancy, transactions)").option("-f, --format <format>","Output format").action(async e=>{try{let n=await s(G);c(e,n.housingvistaDashboardStats);}catch(n){a(n);}});}var mt={id:"housingvista",version:"1.0.0",displayName:"HousingVista",dependsOn:["auth","workspaces"],register(r,o){b(o);let e=r.command("housingvista").description("HousingVista real-estate & property management");j(e),z(e),Y(e),B(e),J(e),K(e),Q(e),X(e),Z(e);}},an=mt;module.exports=an;
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import {a,b as b$1,h as h$1,p,g,i}from'../../chunk-WXDQ3S5J.js';import {o}from'../../chunk-TCBALVP4.js';var h=`
|
|
2
|
+
id title description type category status price city state
|
|
3
|
+
bedrooms bathrooms totalArea imageUrl context createdAt updatedAt workspaceId
|
|
4
|
+
`,S=`
|
|
5
|
+
query HousingvistaProperties(
|
|
6
|
+
$filter: HousingVistaPropertyFilterInput
|
|
7
|
+
$pagination: HousingVistaPaginationInput
|
|
8
|
+
) {
|
|
9
|
+
housingvistaProperties(filter: $filter, pagination: $pagination) {
|
|
10
|
+
id title type category status price city state bedrooms bathrooms
|
|
11
|
+
totalArea imageUrl createdAt
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
`,b=`
|
|
15
|
+
query HousingvistaProperty($id: ID!) {
|
|
16
|
+
housingvistaProperty(id: $id) {
|
|
17
|
+
${h}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
`,P=`
|
|
21
|
+
mutation CreateHousingvistaProperty($input: CreatePropertyInput!) {
|
|
22
|
+
createHousingvistaProperty(input: $input) {
|
|
23
|
+
${h}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
`,R=`
|
|
27
|
+
mutation UpdateHousingvistaProperty($id: ID!, $input: UpdatePropertyInput!) {
|
|
28
|
+
updateHousingvistaProperty(id: $id, input: $input) {
|
|
29
|
+
${h}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
`,C=`
|
|
33
|
+
mutation DeleteHousingvistaProperty($id: ID!) {
|
|
34
|
+
deleteHousingvistaProperty(id: $id)
|
|
35
|
+
}
|
|
36
|
+
`,A=`
|
|
37
|
+
query HousingvistaTransactions($pagination: HousingVistaPaginationInput) {
|
|
38
|
+
housingvistaTransactions(pagination: $pagination) {
|
|
39
|
+
id title type status amount currency propertyId createdAt updatedAt
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
`,w=`
|
|
43
|
+
query HousingvistaTransaction($id: ID!) {
|
|
44
|
+
housingvistaTransaction(id: $id) {
|
|
45
|
+
id title type status amount currency propertyId
|
|
46
|
+
documents escrow milestones parties createdAt updatedAt workspaceId
|
|
47
|
+
property { id title city state status price }
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
`,O=`
|
|
51
|
+
query HousingvistaInvestments($pagination: HousingVistaPaginationInput) {
|
|
52
|
+
housingvistaInvestments(pagination: $pagination) {
|
|
53
|
+
id title investmentType riskLevel status totalValue propertyId
|
|
54
|
+
createdAt updatedAt
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
`,k=`
|
|
58
|
+
query HousingvistaInvestment($id: ID!) {
|
|
59
|
+
housingvistaInvestment(id: $id) {
|
|
60
|
+
id title investmentType riskLevel status totalValue propertyId
|
|
61
|
+
investors returns createdAt updatedAt workspaceId
|
|
62
|
+
property { id title city state status price }
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
`,E=`
|
|
66
|
+
query HousingvistaRentalUnits($pagination: HousingVistaPaginationInput) {
|
|
67
|
+
housingvistaRentalUnits(pagination: $pagination) {
|
|
68
|
+
id unitNumber propertyId propertyTitle tenantName tenantEmail tenantPhone
|
|
69
|
+
monthlyRent securityDeposit status paymentStatus leaseStart leaseEnd
|
|
70
|
+
lastPaymentAt
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
`,L=`
|
|
74
|
+
query HousingvistaAssets($pagination: HousingVistaPaginationInput) {
|
|
75
|
+
housingvistaAssets(pagination: $pagination) {
|
|
76
|
+
id title type category status location purchasePrice currentValue
|
|
77
|
+
appreciationPercent rentalYield imageUrl
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
`,x=`
|
|
81
|
+
query HousingvistaVerificationItems($pagination: HousingVistaPaginationInput) {
|
|
82
|
+
housingvistaVerificationItems(pagination: $pagination) {
|
|
83
|
+
id entityType entityLabel status priority notes submittedAt
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
`,_=`
|
|
87
|
+
query HousingvistaMarketplaceServices($pagination: HousingVistaPaginationInput) {
|
|
88
|
+
housingvistaMarketplaceServices(pagination: $pagination) {
|
|
89
|
+
id name category providerName description priceRange rating reviewCount
|
|
90
|
+
responseTime availableAreas featured verified imageUrl
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
`,N=`
|
|
94
|
+
query HousingvistaLegalServices($pagination: HousingVistaPaginationInput) {
|
|
95
|
+
housingvistaLegalServices(pagination: $pagination) {
|
|
96
|
+
id title category description providerName providerRating priceRange
|
|
97
|
+
consultationFee estimatedDuration documentsRequired features status
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
`,H=`
|
|
101
|
+
query HousingvistaAmcContracts($pagination: HousingVistaPaginationInput) {
|
|
102
|
+
housingvistaAmcContracts(pagination: $pagination) {
|
|
103
|
+
id packageName propertyTitle providerName monthlyCost status
|
|
104
|
+
servicesIncluded startDate endDate nextServiceDate
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
`,V=`
|
|
108
|
+
query HousingvistaHomeLoanOffers($pagination: HousingVistaPaginationInput) {
|
|
109
|
+
housingvistaHomeLoanOffers(pagination: $pagination) {
|
|
110
|
+
id bankName interestRate maxAmount maxTenure processingFee emiPerLakh
|
|
111
|
+
prepaymentCharges specialOffer rating features
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
`,$=`
|
|
115
|
+
query HousingvistaAreaInsights($pagination: HousingVistaPaginationInput) {
|
|
116
|
+
housingvistaAreaInsights(pagination: $pagination) {
|
|
117
|
+
id areaName city avgPropertyPrice avgRentalYield appreciationRate
|
|
118
|
+
safetyScore connectivityScore amenitiesScore greenCoverPercent
|
|
119
|
+
schoolsNearby hospitalsNearby upcomingProjects population
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
`,D=`
|
|
123
|
+
query HousingvistaMarketTrends($pagination: HousingVistaPaginationInput) {
|
|
124
|
+
housingvistaMarketTrends(pagination: $pagination) {
|
|
125
|
+
id monthLabel avgPrice avgRent priceChangePercent demandIndex supplyIndex
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
`,M=`
|
|
129
|
+
query HousingvistaDashboardStats {
|
|
130
|
+
housingvistaDashboardStats {
|
|
131
|
+
totalProperties totalValue totalPortfolioValue totalInvestments
|
|
132
|
+
investmentReturns totalTenants occupancyRate monthlyRevenue
|
|
133
|
+
activeTransactions pendingVerifications maintenanceRequests
|
|
134
|
+
upcomingViewings unreadMessages
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
`;function I(o$1,n){try{return JSON.parse(n)}catch{throw new o(`--${o$1} must be valid JSON`)}}function r(o$1){let n=Number.parseInt(o$1,10);if(Number.isNaN(n))throw new o(`Expected an integer but got "${o$1}"`);return n}function v(o$1){let n=Number.parseFloat(o$1);if(Number.isNaN(n))throw new o(`Expected a number but got "${o$1}"`);return n}function c(o,n){let i={};return o!==void 0&&(i.limit=o),n!==void 0&&(i.offset=n),Object.keys(i).length?i:void 0}function U(o$1){let n=o$1.command("properties").description("HousingVista properties");n.command("list").description("List properties").option("--type <t>","residential|commercial|industrial|agricultural|mixed_use").option("--status <s>","for_sale|for_rent|sold|rented|under_contract|off_market").option("--city <c>","Filter by city").option("--search <q>","Free-text search").option("--limit <n>","Page size",r,50).option("--offset <n>","Offset",r,0).option("-f, --format <format>","Output format").action(async i=>{try{let e={};i.type&&(e.type=i.type.toLowerCase()),i.status&&(e.status=i.status.toLowerCase()),i.city&&(e.city=i.city),i.search&&(e.search=i.search);let t=await b$1(S,{filter:Object.keys(e).length?e:void 0,pagination:c(i.limit,i.offset)});h$1(i,t.housingvistaProperties,{headers:["ID","Title","Type","Status","City","Price"],rows:t.housingvistaProperties.map(l=>[p(l.id,12),l.title,l.type,l.status,l.city,String(l.price)])});}catch(e){g(e);}}),n.command("get").description("Get a property by id").argument("<id>","Property ID").option("-f, --format <format>","Output format").action(async(i,e)=>{try{let t=await b$1(b,{id:i});if(!t.housingvistaProperty)throw new o(`Property ${i} not found`);h$1(e,t.housingvistaProperty);}catch(t){g(t);}}),n.command("create").description("Create a property").requiredOption("--title <t>","Title").requiredOption("--type <t>","residential|commercial|industrial|agricultural|mixed_use").requiredOption("--category <c>","Category").requiredOption("--status <s>","for_sale|for_rent|sold|rented|under_contract|off_market").requiredOption("--price <n>","Price",v).requiredOption("--city <c>","City").requiredOption("--state <s>","State").requiredOption("--bedrooms <n>","Bedrooms",r).requiredOption("--bathrooms <n>","Bathrooms",r).requiredOption("--total-area <n>","Total area",v).option("--description <s>","Description").option("--image-url <url>","Image URL").option("--context <json>","Context JSON").option("-f, --format <format>","Output format").action(async i$1=>{try{let e={title:i$1.title,type:i$1.type.toLowerCase(),category:i$1.category,status:i$1.status.toLowerCase(),price:i$1.price,city:i$1.city,state:i$1.state,bedrooms:i$1.bedrooms,bathrooms:i$1.bathrooms,totalArea:i$1.totalArea};i$1.description&&(e.description=i$1.description),i$1.imageUrl&&(e.imageUrl=i$1.imageUrl),i$1.context&&(e.context=I("context",i$1.context));let t=await b$1(P,{input:e});i(`Property created: ${t.createHousingvistaProperty.title}`),h$1(i$1,t.createHousingvistaProperty);}catch(e){g(e);}}),n.command("update").description("Update a property").argument("<id>","Property ID").option("--title <t>","Title").option("--type <t>","residential|commercial|industrial|agricultural|mixed_use").option("--category <c>","Category").option("--status <s>","for_sale|for_rent|sold|rented|under_contract|off_market").option("--price <n>","Price",v).option("--city <c>","City").option("--state <s>","State").option("--bedrooms <n>","Bedrooms",r).option("--bathrooms <n>","Bathrooms",r).option("--total-area <n>","Total area",v).option("--description <s>","Description").option("--image-url <url>","Image URL").option("--context <json>","Context JSON").option("-f, --format <format>","Output format").action(async(i$1,e)=>{try{let t={};if(e.title&&(t.title=e.title),e.type&&(t.type=e.type.toLowerCase()),e.category&&(t.category=e.category),e.status&&(t.status=e.status.toLowerCase()),e.price!==void 0&&(t.price=e.price),e.city&&(t.city=e.city),e.state&&(t.state=e.state),e.bedrooms!==void 0&&(t.bedrooms=e.bedrooms),e.bathrooms!==void 0&&(t.bathrooms=e.bathrooms),e.totalArea!==void 0&&(t.totalArea=e.totalArea),e.description!==void 0&&(t.description=e.description),e.imageUrl!==void 0&&(t.imageUrl=e.imageUrl),e.context&&(t.context=I("context",e.context)),!Object.keys(t).length)throw new o("No updates specified");let l=await b$1(R,{id:i$1,input:t});i("Property updated"),h$1(e,l.updateHousingvistaProperty);}catch(t){g(t);}}),n.command("delete").description("Delete a property").argument("<id>","Property ID").option("-f, --format <format>","Output format").action(async(i$1,e)=>{try{let t=await b$1(C,{id:i$1});if(!t.deleteHousingvistaProperty)throw new o(`Property ${i$1} not deleted`);i(`Property ${i$1} deleted`),h$1(e,{deleted:t.deleteHousingvistaProperty});}catch(t){g(t);}});}function q(o$1){let n=o$1.command("transactions").description("HousingVista property transactions");n.command("list").description("List transactions").option("--limit <n>","Page size",r,50).option("--offset <n>","Offset",r,0).option("-f, --format <format>","Output format").action(async i=>{try{let e=await b$1(A,{pagination:c(i.limit,i.offset)});h$1(i,e.housingvistaTransactions,{headers:["ID","Title","Type","Status","Amount","Currency"],rows:e.housingvistaTransactions.map(t=>[p(t.id,12),t.title,t.type,t.status,String(t.amount),t.currency])});}catch(e){g(e);}}),n.command("get").description("Get a transaction by id").argument("<id>","Transaction ID").option("-f, --format <format>","Output format").action(async(i,e)=>{try{let t=await b$1(w,{id:i});if(!t.housingvistaTransaction)throw new o(`Transaction ${i} not found`);h$1(e,t.housingvistaTransaction);}catch(t){g(t);}});}function F(o$1){let n=o$1.command("investments").description("HousingVista real-estate investments");n.command("list").description("List investments").option("--limit <n>","Page size",r,50).option("--offset <n>","Offset",r,0).option("-f, --format <format>","Output format").action(async i=>{try{let e=await b$1(O,{pagination:c(i.limit,i.offset)});h$1(i,e.housingvistaInvestments,{headers:["ID","Title","Type","Risk","Status","Value"],rows:e.housingvistaInvestments.map(t=>[p(t.id,12),t.title,t.investmentType,t.riskLevel,t.status,String(t.totalValue)])});}catch(e){g(e);}}),n.command("get").description("Get an investment by id").argument("<id>","Investment ID").option("-f, --format <format>","Output format").action(async(i,e)=>{try{let t=await b$1(k,{id:i});if(!t.housingvistaInvestment)throw new o(`Investment ${i} not found`);h$1(e,t.housingvistaInvestment);}catch(t){g(t);}});}function Y(o){o.command("rentals").description("HousingVista rental units").command("list").description("List rental units").option("--limit <n>","Page size",r,50).option("--offset <n>","Offset",r,0).option("-f, --format <format>","Output format").action(async i=>{try{let e=await b$1(E,{pagination:c(i.limit,i.offset)});h$1(i,e.housingvistaRentalUnits,{headers:["ID","Unit","Property","Tenant","Rent","Payment"],rows:e.housingvistaRentalUnits.map(t=>[p(t.id,12),t.unitNumber,p(t.propertyTitle,24),t.tenantName,String(t.monthlyRent),t.paymentStatus])});}catch(e){g(e);}});}function G(o){o.command("assets").description("HousingVista portfolio assets").command("list").description("List assets").option("--limit <n>","Page size",r,50).option("--offset <n>","Offset",r,0).option("-f, --format <format>","Output format").action(async i=>{try{let e=await b$1(L,{pagination:c(i.limit,i.offset)});h$1(i,e.housingvistaAssets,{headers:["ID","Title","Type","Status","Location","Value"],rows:e.housingvistaAssets.map(t=>[p(t.id,12),t.title,t.type,t.status,p(t.location,20),String(t.currentValue)])});}catch(e){g(e);}});}function z(o){o.command("verifications").description("HousingVista verification queue").command("list").description("List verification items").option("--limit <n>","Page size",r,50).option("--offset <n>","Offset",r,0).option("-f, --format <format>","Output format").action(async i=>{try{let e=await b$1(x,{pagination:c(i.limit,i.offset)});h$1(i,e.housingvistaVerificationItems,{headers:["ID","Type","Label","Status","Priority"],rows:e.housingvistaVerificationItems.map(t=>[p(t.id,12),t.entityType,p(t.entityLabel,24),t.status,t.priority])});}catch(e){g(e);}});}function W(o){let n=o.command("marketplace").description("HousingVista services marketplace (services, legal, AMC, home loans)");n.command("services").description("List marketplace services").option("--limit <n>","Page size",r,50).option("--offset <n>","Offset",r,0).option("-f, --format <format>","Output format").action(async i=>{try{let e=await b$1(_,{pagination:c(i.limit,i.offset)});h$1(i,e.housingvistaMarketplaceServices,{headers:["ID","Name","Category","Provider","Rating","Verified"],rows:e.housingvistaMarketplaceServices.map(t=>[p(t.id,12),t.name,t.category,t.providerName,String(t.rating??"-"),t.verified?"yes":"no"])});}catch(e){g(e);}}),n.command("legal").description("List legal services").option("--limit <n>","Page size",r,50).option("--offset <n>","Offset",r,0).option("-f, --format <format>","Output format").action(async i=>{try{let e=await b$1(N,{pagination:c(i.limit,i.offset)});h$1(i,e.housingvistaLegalServices,{headers:["ID","Title","Category","Provider","Price","Status"],rows:e.housingvistaLegalServices.map(t=>[p(t.id,12),t.title,t.category,t.providerName,t.priceRange??"-",t.status])});}catch(e){g(e);}}),n.command("amc").description("List AMC (annual maintenance) contracts").option("--limit <n>","Page size",r,50).option("--offset <n>","Offset",r,0).option("-f, --format <format>","Output format").action(async i=>{try{let e=await b$1(H,{pagination:c(i.limit,i.offset)});h$1(i,e.housingvistaAmcContracts,{headers:["ID","Package","Property","Provider","Monthly","Status"],rows:e.housingvistaAmcContracts.map(t=>[p(t.id,12),t.packageName,p(t.propertyTitle,20),t.providerName,String(t.monthlyCost),t.status])});}catch(e){g(e);}}),n.command("home-loans").description("List home loan offers").option("--limit <n>","Page size",r,50).option("--offset <n>","Offset",r,0).option("-f, --format <format>","Output format").action(async i=>{try{let e=await b$1(V,{pagination:c(i.limit,i.offset)});h$1(i,e.housingvistaHomeLoanOffers,{headers:["ID","Bank","Rate %","Max Amount","Max Tenure","Rating"],rows:e.housingvistaHomeLoanOffers.map(t=>[p(t.id,12),t.bankName,String(t.interestRate),String(t.maxAmount),String(t.maxTenure),String(t.rating??"-")])});}catch(e){g(e);}});}function j(o){let n=o.command("market").description("HousingVista market intelligence (area insights & trends)");n.command("area-insights").description("List area insights").option("--limit <n>","Page size",r,50).option("--offset <n>","Offset",r,0).option("-f, --format <format>","Output format").action(async i=>{try{let e=await b$1($,{pagination:c(i.limit,i.offset)});h$1(i,e.housingvistaAreaInsights,{headers:["ID","Area","City","Avg Price","Yield %","Appreciation %"],rows:e.housingvistaAreaInsights.map(t=>[p(t.id,12),t.areaName,t.city,String(t.avgPropertyPrice),String(t.avgRentalYield),String(t.appreciationRate)])});}catch(e){g(e);}}),n.command("trends").description("List market trends").option("--limit <n>","Page size",r,50).option("--offset <n>","Offset",r,0).option("-f, --format <format>","Output format").action(async i=>{try{let e=await b$1(D,{pagination:c(i.limit,i.offset)});h$1(i,e.housingvistaMarketTrends,{headers:["ID","Month","Avg Price","Avg Rent","Change %","Demand"],rows:e.housingvistaMarketTrends.map(t=>[p(t.id,12),t.monthLabel,String(t.avgPrice),String(t.avgRent),String(t.priceChangePercent),String(t.demandIndex)])});}catch(e){g(e);}});}function B(o){o.command("analytics").description("HousingVista analytics & dashboard").command("dashboard").description("Dashboard stats (properties, portfolio value, investments, occupancy, transactions)").option("-f, --format <format>","Output format").action(async i=>{try{let e=await b$1(M);h$1(i,e.housingvistaDashboardStats);}catch(e){g(e);}});}var J={id:"housingvista",version:"1.0.0",displayName:"HousingVista",dependsOn:["auth","workspaces"],register(o,n){a(n);let i=o.command("housingvista").description("HousingVista real-estate & property management");U(i),q(i),F(i),Y(i),G(i),z(i),W(i),j(i),B(i);}},Ut=J;export{Ut as default};
|