@burdenoff/sdk-libs 2026.529.1 → 2026.627.1
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/crewfoundry/index.cjs +183 -0
- package/dist/modules/crewfoundry/index.d.cts +453 -0
- package/dist/modules/crewfoundry/index.d.ts +453 -0
- package/dist/modules/crewfoundry/index.js +183 -0
- package/dist/modules/ggnomad/index.cjs +164 -0
- package/dist/modules/ggnomad/index.d.cts +282 -0
- package/dist/modules/ggnomad/index.d.ts +282 -0
- package/dist/modules/ggnomad/index.js +164 -0
- package/dist/modules/housingvista/index.cjs +174 -0
- package/dist/modules/housingvista/index.d.cts +287 -0
- package/dist/modules/housingvista/index.d.ts +287 -0
- package/dist/modules/housingvista/index.js +174 -0
- package/dist/modules/kadaikodi/index.cjs +241 -0
- package/dist/modules/kadaikodi/index.d.cts +346 -0
- package/dist/modules/kadaikodi/index.d.ts +346 -0
- package/dist/modules/kadaikodi/index.js +241 -0
- package/dist/modules/sandbox/index.cjs +242 -0
- package/dist/modules/sandbox/index.d.cts +403 -0
- package/dist/modules/sandbox/index.d.ts +403 -0
- package/dist/modules/sandbox/index.js +242 -0
- package/package.json +1 -1
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
var a=`
|
|
2
|
+
fragment PropertyFields on Property {
|
|
3
|
+
id title description category type status
|
|
4
|
+
bedrooms bathrooms totalArea price
|
|
5
|
+
city state imageUrl context
|
|
6
|
+
workspaceId createdAt updatedAt
|
|
7
|
+
}
|
|
8
|
+
`,r=`
|
|
9
|
+
${a}
|
|
10
|
+
fragment TransactionFields on HousingVistaTransaction {
|
|
11
|
+
id title type status amount currency
|
|
12
|
+
propertyId parties escrow milestones documents
|
|
13
|
+
property { ...PropertyFields }
|
|
14
|
+
workspaceId createdAt updatedAt
|
|
15
|
+
}
|
|
16
|
+
`,u=`
|
|
17
|
+
${a}
|
|
18
|
+
fragment InvestmentFields on Investment {
|
|
19
|
+
id title investmentType status riskLevel totalValue
|
|
20
|
+
propertyId investors returns
|
|
21
|
+
property { ...PropertyFields }
|
|
22
|
+
workspaceId createdAt updatedAt
|
|
23
|
+
}
|
|
24
|
+
`,F=`
|
|
25
|
+
fragment AssetFields on HousingVistaAsset {
|
|
26
|
+
id title type category status
|
|
27
|
+
location currentValue purchasePrice
|
|
28
|
+
appreciationPercent rentalYield imageUrl
|
|
29
|
+
}
|
|
30
|
+
`,M=`
|
|
31
|
+
fragment RentalUnitFields on RentalUnit {
|
|
32
|
+
id unitNumber propertyId propertyTitle status
|
|
33
|
+
tenantName tenantEmail tenantPhone
|
|
34
|
+
monthlyRent securityDeposit leaseStart leaseEnd
|
|
35
|
+
paymentStatus lastPaymentAt
|
|
36
|
+
}
|
|
37
|
+
`,N=`
|
|
38
|
+
fragment AmcContractFields on AmcContract {
|
|
39
|
+
id packageName propertyTitle providerName status
|
|
40
|
+
monthlyCost startDate endDate nextServiceDate servicesIncluded
|
|
41
|
+
}
|
|
42
|
+
`,V=`
|
|
43
|
+
fragment AreaInsightFields on AreaInsight {
|
|
44
|
+
id areaName city population avgPropertyPrice avgRentalYield
|
|
45
|
+
appreciationRate safetyScore connectivityScore amenitiesScore
|
|
46
|
+
greenCoverPercent schoolsNearby hospitalsNearby upcomingProjects
|
|
47
|
+
}
|
|
48
|
+
`,C=`
|
|
49
|
+
fragment MarketTrendFields on MarketTrend {
|
|
50
|
+
id monthLabel avgPrice avgRent demandIndex supplyIndex priceChangePercent
|
|
51
|
+
}
|
|
52
|
+
`,k=`
|
|
53
|
+
fragment HomeLoanOfferFields on HomeLoanOffer {
|
|
54
|
+
id bankName interestRate maxAmount maxTenure
|
|
55
|
+
processingFee prepaymentCharges emiPerLakh rating
|
|
56
|
+
features specialOffer
|
|
57
|
+
}
|
|
58
|
+
`,O=`
|
|
59
|
+
fragment LegalServiceFields on LegalService {
|
|
60
|
+
id title category status description
|
|
61
|
+
providerName providerRating consultationFee priceRange
|
|
62
|
+
estimatedDuration documentsRequired features
|
|
63
|
+
}
|
|
64
|
+
`,x=`
|
|
65
|
+
fragment MarketplaceServiceFields on MarketplaceService {
|
|
66
|
+
id name category description providerName
|
|
67
|
+
rating reviewCount verified featured
|
|
68
|
+
priceRange responseTime availableAreas imageUrl
|
|
69
|
+
}
|
|
70
|
+
`,D=`
|
|
71
|
+
fragment VerificationItemFields on VerificationItem {
|
|
72
|
+
id entityType entityLabel status priority notes submittedAt
|
|
73
|
+
}
|
|
74
|
+
`,g=`
|
|
75
|
+
${a}
|
|
76
|
+
query HousingvistaProperty($id: ID!) {
|
|
77
|
+
housingvistaProperty(id: $id) { ...PropertyFields }
|
|
78
|
+
}
|
|
79
|
+
`,p=`
|
|
80
|
+
${a}
|
|
81
|
+
query HousingvistaProperties(
|
|
82
|
+
$filter: HousingVistaPropertyFilterInput
|
|
83
|
+
$pagination: HousingVistaPaginationInput
|
|
84
|
+
) {
|
|
85
|
+
housingvistaProperties(filter: $filter, pagination: $pagination) { ...PropertyFields }
|
|
86
|
+
}
|
|
87
|
+
`,v=`
|
|
88
|
+
${a}
|
|
89
|
+
mutation CreateHousingvistaProperty($input: CreatePropertyInput!) {
|
|
90
|
+
createHousingvistaProperty(input: $input) { ...PropertyFields }
|
|
91
|
+
}
|
|
92
|
+
`,c=`
|
|
93
|
+
${a}
|
|
94
|
+
mutation UpdateHousingvistaProperty($id: ID!, $input: UpdatePropertyInput!) {
|
|
95
|
+
updateHousingvistaProperty(id: $id, input: $input) { ...PropertyFields }
|
|
96
|
+
}
|
|
97
|
+
`,H=`
|
|
98
|
+
mutation DeleteHousingvistaProperty($id: ID!) {
|
|
99
|
+
deleteHousingvistaProperty(id: $id)
|
|
100
|
+
}
|
|
101
|
+
`,d=`
|
|
102
|
+
${r}
|
|
103
|
+
query HousingvistaTransaction($id: ID!) {
|
|
104
|
+
housingvistaTransaction(id: $id) { ...TransactionFields }
|
|
105
|
+
}
|
|
106
|
+
`,l=`
|
|
107
|
+
${r}
|
|
108
|
+
query HousingvistaTransactions($pagination: HousingVistaPaginationInput) {
|
|
109
|
+
housingvistaTransactions(pagination: $pagination) { ...TransactionFields }
|
|
110
|
+
}
|
|
111
|
+
`,A=`
|
|
112
|
+
${u}
|
|
113
|
+
query HousingvistaInvestment($id: ID!) {
|
|
114
|
+
housingvistaInvestment(id: $id) { ...InvestmentFields }
|
|
115
|
+
}
|
|
116
|
+
`,I=`
|
|
117
|
+
${u}
|
|
118
|
+
query HousingvistaInvestments($pagination: HousingVistaPaginationInput) {
|
|
119
|
+
housingvistaInvestments(pagination: $pagination) { ...InvestmentFields }
|
|
120
|
+
}
|
|
121
|
+
`,m=`
|
|
122
|
+
${F}
|
|
123
|
+
query HousingvistaAssets($pagination: HousingVistaPaginationInput) {
|
|
124
|
+
housingvistaAssets(pagination: $pagination) { ...AssetFields }
|
|
125
|
+
}
|
|
126
|
+
`,T=`
|
|
127
|
+
${M}
|
|
128
|
+
query HousingvistaRentalUnits($pagination: HousingVistaPaginationInput) {
|
|
129
|
+
housingvistaRentalUnits(pagination: $pagination) { ...RentalUnitFields }
|
|
130
|
+
}
|
|
131
|
+
`,y=`
|
|
132
|
+
${N}
|
|
133
|
+
query HousingvistaAmcContracts($pagination: HousingVistaPaginationInput) {
|
|
134
|
+
housingvistaAmcContracts(pagination: $pagination) { ...AmcContractFields }
|
|
135
|
+
}
|
|
136
|
+
`,P=`
|
|
137
|
+
${V}
|
|
138
|
+
query HousingvistaAreaInsights($pagination: HousingVistaPaginationInput) {
|
|
139
|
+
housingvistaAreaInsights(pagination: $pagination) { ...AreaInsightFields }
|
|
140
|
+
}
|
|
141
|
+
`,S=`
|
|
142
|
+
${C}
|
|
143
|
+
query HousingvistaMarketTrends($pagination: HousingVistaPaginationInput) {
|
|
144
|
+
housingvistaMarketTrends(pagination: $pagination) { ...MarketTrendFields }
|
|
145
|
+
}
|
|
146
|
+
`,E=`
|
|
147
|
+
${k}
|
|
148
|
+
query HousingvistaHomeLoanOffers($pagination: HousingVistaPaginationInput) {
|
|
149
|
+
housingvistaHomeLoanOffers(pagination: $pagination) { ...HomeLoanOfferFields }
|
|
150
|
+
}
|
|
151
|
+
`,h=`
|
|
152
|
+
${x}
|
|
153
|
+
query HousingvistaMarketplaceServices($pagination: HousingVistaPaginationInput) {
|
|
154
|
+
housingvistaMarketplaceServices(pagination: $pagination) { ...MarketplaceServiceFields }
|
|
155
|
+
}
|
|
156
|
+
`,R=`
|
|
157
|
+
${O}
|
|
158
|
+
query HousingvistaLegalServices($pagination: HousingVistaPaginationInput) {
|
|
159
|
+
housingvistaLegalServices(pagination: $pagination) { ...LegalServiceFields }
|
|
160
|
+
}
|
|
161
|
+
`,L=`
|
|
162
|
+
${D}
|
|
163
|
+
query HousingvistaVerificationItems($pagination: HousingVistaPaginationInput) {
|
|
164
|
+
housingvistaVerificationItems(pagination: $pagination) { ...VerificationItemFields }
|
|
165
|
+
}
|
|
166
|
+
`,f=`
|
|
167
|
+
query HousingvistaDashboardStats {
|
|
168
|
+
housingvistaDashboardStats {
|
|
169
|
+
totalProperties totalValue totalPortfolioValue totalInvestments investmentReturns
|
|
170
|
+
totalTenants occupancyRate monthlyRevenue activeTransactions
|
|
171
|
+
pendingVerifications maintenanceRequests unreadMessages upcomingViewings
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
`;function _(n){let{workspace:i}=n.gql;return {properties:{async get(t){return (await i.request(g,{id:t})).housingvistaProperty},async list(t,s){return (await i.request(p,{filter:t,pagination:s})).housingvistaProperties},async create(t){return (await i.request(v,{input:t})).createHousingvistaProperty},async update(t,s){return (await i.request(c,{id:t,input:s})).updateHousingvistaProperty},async delete(t){return (await i.request(H,{id:t})).deleteHousingvistaProperty}},transactions:{async get(t){return (await i.request(d,{id:t})).housingvistaTransaction},async list(t){return (await i.request(l,{pagination:t})).housingvistaTransactions}},investments:{async get(t){return (await i.request(A,{id:t})).housingvistaInvestment},async list(t){return (await i.request(I,{pagination:t})).housingvistaInvestments}},assets:{async list(t){return (await i.request(m,{pagination:t})).housingvistaAssets}},rentals:{async list(t){return (await i.request(T,{pagination:t})).housingvistaRentalUnits}},amc:{async list(t){return (await i.request(y,{pagination:t})).housingvistaAmcContracts}},market:{async areaInsights(t){return (await i.request(P,{pagination:t})).housingvistaAreaInsights},async trends(t){return (await i.request(S,{pagination:t})).housingvistaMarketTrends}},homeLoans:{async list(t){return (await i.request(E,{pagination:t})).housingvistaHomeLoanOffers}},marketplace:{async services(t){return (await i.request(h,{pagination:t})).housingvistaMarketplaceServices},async legalServices(t){return (await i.request(R,{pagination:t})).housingvistaLegalServices}},verifications:{async list(t){return (await i.request(L,{pagination:t})).housingvistaVerificationItems}},analytics:{async dashboardStats(){return (await i.request(f)).housingvistaDashboardStats}}}}var q={id:"housingvista",version:"1.0.0",displayName:"HousingVista",dependsOn:["auth"],attach(n){return _(n)}},at=q;export{at as default};
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
'use strict';var u=`
|
|
2
|
+
fragment ProviderScalars on KadaikodiServiceProvider {
|
|
3
|
+
id name slug description category status
|
|
4
|
+
ownerId offeringType serviceTypes location businessHours analyticsSnapshot
|
|
5
|
+
rating totalRatings averageOrderValue
|
|
6
|
+
workspaceId createdAt updatedAt
|
|
7
|
+
}
|
|
8
|
+
`,d=`
|
|
9
|
+
fragment OfferingFields on KadaikodiOffering {
|
|
10
|
+
id name slug description category kind
|
|
11
|
+
price originalPrice durationMinutes stock serviceType isAvailable
|
|
12
|
+
media metadata tags providerId workspaceId createdAt updatedAt
|
|
13
|
+
}
|
|
14
|
+
`,l=`
|
|
15
|
+
fragment TaskFields on KadaikodiWorkerTask {
|
|
16
|
+
id title description type status priority
|
|
17
|
+
orderId workerRefId location dueAt completedAt workspaceId
|
|
18
|
+
}
|
|
19
|
+
`,m=`
|
|
20
|
+
${l}
|
|
21
|
+
fragment WorkerFields on KadaikodiProviderWorker {
|
|
22
|
+
id name role status workerId providerId metadata workspaceId
|
|
23
|
+
tasks { ...TaskFields }
|
|
24
|
+
}
|
|
25
|
+
`,H=`
|
|
26
|
+
fragment OrderItemFields on KadaikodiOrderItem {
|
|
27
|
+
id orderId offeringId name quantity unitPrice totalPrice customizations workspaceId
|
|
28
|
+
}
|
|
29
|
+
`,k=`
|
|
30
|
+
fragment ReviewFields on KadaikodiReview {
|
|
31
|
+
id providerId customerId orderId rating review response
|
|
32
|
+
workspaceId createdAt updatedAt
|
|
33
|
+
}
|
|
34
|
+
`,I=`
|
|
35
|
+
fragment OpportunityScalars on KadaikodiInvestmentOpportunity {
|
|
36
|
+
id providerId title description riskLevel status
|
|
37
|
+
targetAmount raisedAmount minimumInvestment expectedReturnsPct lockInMonths
|
|
38
|
+
businessMetrics terms expiresAt workspaceId createdAt updatedAt
|
|
39
|
+
}
|
|
40
|
+
`,Y=`
|
|
41
|
+
fragment InvestmentTxnFields on KadaikodiInvestmentTransaction {
|
|
42
|
+
id investmentId amount type notes workspaceId createdAt
|
|
43
|
+
}
|
|
44
|
+
`,K=`
|
|
45
|
+
${Y}
|
|
46
|
+
fragment InvestmentScalars on KadaikodiInvestment {
|
|
47
|
+
id investorId opportunityId amount currentValue realizedReturns
|
|
48
|
+
expectedReturnsPct status investedAt maturedAt workspaceId
|
|
49
|
+
transactions { ...InvestmentTxnFields }
|
|
50
|
+
}
|
|
51
|
+
`,s=`
|
|
52
|
+
${u}
|
|
53
|
+
${d}
|
|
54
|
+
${m}
|
|
55
|
+
${I}
|
|
56
|
+
fragment ProviderFull on KadaikodiServiceProvider {
|
|
57
|
+
...ProviderScalars
|
|
58
|
+
offerings { ...OfferingFields }
|
|
59
|
+
workers { ...WorkerFields }
|
|
60
|
+
investmentOpportunities { ...OpportunityScalars }
|
|
61
|
+
}
|
|
62
|
+
`,n=`
|
|
63
|
+
${H}
|
|
64
|
+
${u}
|
|
65
|
+
fragment OrderFull on KadaikodiOrder {
|
|
66
|
+
id orderNumber customerId providerId assignedWorkerId
|
|
67
|
+
status paymentStatus paymentMethod fulfillmentType
|
|
68
|
+
subtotal tax discount deliveryFee total
|
|
69
|
+
deliveryAddress notes timeline
|
|
70
|
+
items { ...OrderItemFields }
|
|
71
|
+
provider { ...ProviderScalars }
|
|
72
|
+
workspaceId createdAt updatedAt
|
|
73
|
+
}
|
|
74
|
+
`,v=`
|
|
75
|
+
${I}
|
|
76
|
+
${u}
|
|
77
|
+
${K}
|
|
78
|
+
fragment OpportunityFull on KadaikodiInvestmentOpportunity {
|
|
79
|
+
...OpportunityScalars
|
|
80
|
+
provider { ...ProviderScalars }
|
|
81
|
+
investments { ...InvestmentScalars }
|
|
82
|
+
}
|
|
83
|
+
`,f=`
|
|
84
|
+
${K}
|
|
85
|
+
${I}
|
|
86
|
+
fragment InvestmentFull on KadaikodiInvestment {
|
|
87
|
+
...InvestmentScalars
|
|
88
|
+
opportunity { ...OpportunityScalars }
|
|
89
|
+
}
|
|
90
|
+
`,O=`
|
|
91
|
+
${s}
|
|
92
|
+
query GetServiceProvider($id: ID!) {
|
|
93
|
+
getServiceProvider(id: $id) { ...ProviderFull }
|
|
94
|
+
}
|
|
95
|
+
`,S=`
|
|
96
|
+
${s}
|
|
97
|
+
query ListServiceProviders($filter: KadaikodiProviderFilterInput, $limit: Int, $offset: Int) {
|
|
98
|
+
listServiceProviders(filter: $filter, limit: $limit, offset: $offset) { ...ProviderFull }
|
|
99
|
+
}
|
|
100
|
+
`,R=`
|
|
101
|
+
${s}
|
|
102
|
+
mutation KadaikodiCreateServiceProvider($input: KadaikodiCreateServiceProviderInput!) {
|
|
103
|
+
kadaikodiCreateServiceProvider(input: $input) { ...ProviderFull }
|
|
104
|
+
}
|
|
105
|
+
`,A=`
|
|
106
|
+
${s}
|
|
107
|
+
mutation KadaikodiUpdateServiceProvider($id: ID!, $input: KadaikodiUpdateServiceProviderInput!) {
|
|
108
|
+
kadaikodiUpdateServiceProvider(id: $id, input: $input) { ...ProviderFull }
|
|
109
|
+
}
|
|
110
|
+
`,P=`
|
|
111
|
+
${m}
|
|
112
|
+
query ListProviderWorkers($providerId: String!, $limit: Int, $offset: Int) {
|
|
113
|
+
listProviderWorkers(providerId: $providerId, limit: $limit, offset: $offset) {
|
|
114
|
+
...WorkerFields
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
`,g=`
|
|
118
|
+
${l}
|
|
119
|
+
query ListWorkerTasks($workerRefId: String!, $status: String, $limit: Int, $offset: Int) {
|
|
120
|
+
listWorkerTasks(workerRefId: $workerRefId, status: $status, limit: $limit, offset: $offset) {
|
|
121
|
+
...TaskFields
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
`,E=`
|
|
125
|
+
${d}
|
|
126
|
+
query GetOffering($id: ID!) { getOffering(id: $id) { ...OfferingFields } }
|
|
127
|
+
`,y=`
|
|
128
|
+
${d}
|
|
129
|
+
query ListOfferings(
|
|
130
|
+
$kind: KadaikodiOfferingKind
|
|
131
|
+
$providerId: String
|
|
132
|
+
$limit: Int
|
|
133
|
+
$offset: Int
|
|
134
|
+
) {
|
|
135
|
+
listOfferings(kind: $kind, providerId: $providerId, limit: $limit, offset: $offset) {
|
|
136
|
+
...OfferingFields
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
`,$=`
|
|
140
|
+
${d}
|
|
141
|
+
mutation CreateOffering($input: KadaikodiCreateOfferingInput!) {
|
|
142
|
+
createOffering(input: $input) { ...OfferingFields }
|
|
143
|
+
}
|
|
144
|
+
`,T=`
|
|
145
|
+
${d}
|
|
146
|
+
mutation UpdateOffering($id: ID!, $input: KadaikodiUpdateOfferingInput!) {
|
|
147
|
+
updateOffering(id: $id, input: $input) { ...OfferingFields }
|
|
148
|
+
}
|
|
149
|
+
`,_=`
|
|
150
|
+
${n}
|
|
151
|
+
query GetOrder($id: ID!) { getOrder(id: $id) { ...OrderFull } }
|
|
152
|
+
`,w=`
|
|
153
|
+
${n}
|
|
154
|
+
query ListOrders(
|
|
155
|
+
$customerId: String
|
|
156
|
+
$providerId: String
|
|
157
|
+
$status: KadaikodiOrderStatus
|
|
158
|
+
$limit: Int
|
|
159
|
+
$offset: Int
|
|
160
|
+
) {
|
|
161
|
+
listOrders(
|
|
162
|
+
customerId: $customerId
|
|
163
|
+
providerId: $providerId
|
|
164
|
+
status: $status
|
|
165
|
+
limit: $limit
|
|
166
|
+
offset: $offset
|
|
167
|
+
) { ...OrderFull }
|
|
168
|
+
}
|
|
169
|
+
`,D=`
|
|
170
|
+
${n}
|
|
171
|
+
mutation PlaceOrder($input: KadaikodiPlaceOrderInput!) {
|
|
172
|
+
placeOrder(input: $input) { ...OrderFull }
|
|
173
|
+
}
|
|
174
|
+
`,F=`
|
|
175
|
+
${n}
|
|
176
|
+
mutation UpdateOrderStatus($id: ID!, $status: KadaikodiOrderStatus!) {
|
|
177
|
+
updateOrderStatus(id: $id, status: $status) { ...OrderFull }
|
|
178
|
+
}
|
|
179
|
+
`,L=`
|
|
180
|
+
${k}
|
|
181
|
+
query ListReviews($providerId: String!, $limit: Int, $offset: Int) {
|
|
182
|
+
listReviews(providerId: $providerId, limit: $limit, offset: $offset) { ...ReviewFields }
|
|
183
|
+
}
|
|
184
|
+
`,C=`
|
|
185
|
+
${k}
|
|
186
|
+
mutation CreateReview($input: KadaikodiCreateReviewInput!) {
|
|
187
|
+
createReview(input: $input) { ...ReviewFields }
|
|
188
|
+
}
|
|
189
|
+
`,N=`
|
|
190
|
+
${k}
|
|
191
|
+
mutation RespondToReview($id: ID!, $response: String!) {
|
|
192
|
+
respondToReview(id: $id, response: $response) { ...ReviewFields }
|
|
193
|
+
}
|
|
194
|
+
`,x=`
|
|
195
|
+
${v}
|
|
196
|
+
query GetInvestmentOpportunity($id: ID!) {
|
|
197
|
+
getInvestmentOpportunity(id: $id) { ...OpportunityFull }
|
|
198
|
+
}
|
|
199
|
+
`,q=`
|
|
200
|
+
${v}
|
|
201
|
+
query ListInvestmentOpportunities(
|
|
202
|
+
$riskLevel: KadaikodiRiskLevel
|
|
203
|
+
$status: KadaikodiInvestmentStatus
|
|
204
|
+
$limit: Int
|
|
205
|
+
$offset: Int
|
|
206
|
+
) {
|
|
207
|
+
listInvestmentOpportunities(
|
|
208
|
+
riskLevel: $riskLevel
|
|
209
|
+
status: $status
|
|
210
|
+
limit: $limit
|
|
211
|
+
offset: $offset
|
|
212
|
+
) { ...OpportunityFull }
|
|
213
|
+
}
|
|
214
|
+
`,V=`
|
|
215
|
+
${f}
|
|
216
|
+
query ListInvestments($investorId: String!, $limit: Int, $offset: Int) {
|
|
217
|
+
listInvestments(investorId: $investorId, limit: $limit, offset: $offset) { ...InvestmentFull }
|
|
218
|
+
}
|
|
219
|
+
`,W=`
|
|
220
|
+
${v}
|
|
221
|
+
mutation CreateInvestmentOpportunity($input: KadaikodiCreateInvestmentOpportunityInput!) {
|
|
222
|
+
createInvestmentOpportunity(input: $input) { ...OpportunityFull }
|
|
223
|
+
}
|
|
224
|
+
`,U=`
|
|
225
|
+
${f}
|
|
226
|
+
mutation Invest($input: KadaikodiInvestInput!) {
|
|
227
|
+
invest(input: $input) { ...InvestmentFull }
|
|
228
|
+
}
|
|
229
|
+
`,b=`
|
|
230
|
+
query KadaikodiAdminAnalytics {
|
|
231
|
+
kadaikodiAdminAnalytics {
|
|
232
|
+
categoryDistribution customerGrowth orderTrends revenueByCategory topProviders
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
`,h=`
|
|
236
|
+
query KadaikodiDashboardStats {
|
|
237
|
+
kadaikodiDashboardStats {
|
|
238
|
+
activeCustomers activeProviders avgRating pendingOrders totalOrders totalRevenue
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
`,G="query KadaikodiHealth { kadaikodiHealth }";function M(p){let{workspace:t}=p.gql;return {providers:{async get(i){return (await t.request(O,{id:i})).getServiceProvider},async list(i,e,a){return (await t.request(S,{filter:i,limit:e,offset:a})).listServiceProviders},async create(i){return (await t.request(R,{input:i})).kadaikodiCreateServiceProvider},async update(i,e){return (await t.request(A,{id:i,input:e})).kadaikodiUpdateServiceProvider}},workers:{async list(i,e,a){return (await t.request(P,{providerId:i,limit:e,offset:a})).listProviderWorkers}},tasks:{async list(i,e,a,r){return (await t.request(g,{workerRefId:i,status:e,limit:a,offset:r})).listWorkerTasks}},offerings:{async get(i){return (await t.request(E,{id:i})).getOffering},async list(i,e,a,r){return (await t.request(y,{kind:i,providerId:e,limit:a,offset:r})).listOfferings},async create(i){return (await t.request($,{input:i})).createOffering},async update(i,e){return (await t.request(T,{id:i,input:e})).updateOffering}},orders:{async get(i){return (await t.request(_,{id:i})).getOrder},async list(i,e,a,r,o){return (await t.request(w,{customerId:i,providerId:e,status:a,limit:r,offset:o})).listOrders},async place(i){return (await t.request(D,{input:i})).placeOrder},async updateStatus(i,e){return (await t.request(F,{id:i,status:e})).updateOrderStatus}},reviews:{async list(i,e,a){return (await t.request(L,{providerId:i,limit:e,offset:a})).listReviews},async create(i){return (await t.request(C,{input:i})).createReview},async respond(i,e){return (await t.request(N,{id:i,response:e})).respondToReview}},investments:{async getOpportunity(i){return (await t.request(x,{id:i})).getInvestmentOpportunity},async listOpportunities(i,e,a,r){return (await t.request(q,{riskLevel:i,status:e,limit:a,offset:r})).listInvestmentOpportunities},async listInvestments(i,e,a){return (await t.request(V,{investorId:i,limit:e,offset:a})).listInvestments},async createOpportunity(i){return (await t.request(W,{input:i})).createInvestmentOpportunity},async invest(i){return (await t.request(U,{input:i})).invest}},analytics:{async adminAnalytics(){return (await t.request(b)).kadaikodiAdminAnalytics},async dashboardStats(){return (await t.request(h)).kadaikodiDashboardStats},async health(){return (await t.request(G)).kadaikodiHealth}}}}var j={id:"kadaikodi",version:"1.0.0",displayName:"Kadaikodi",dependsOn:["auth"],attach(p){return M(p)}},pi=j;module.exports=pi;
|