@burdenoff/microfe-kadaikodi 2026.719.4 → 2026.730.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/kadaikodi/KadaikodiRoutes.d.ts.map +1 -1
- package/dist/kadaikodi/KadaikodiRoutes.js +33 -29
- package/dist/kadaikodi/KadaikodiRoutes.js.map +1 -1
- package/dist/kadaikodi/components/InvestmentMarketplaceGate.d.ts +13 -0
- package/dist/kadaikodi/components/InvestmentMarketplaceGate.d.ts.map +1 -0
- package/dist/kadaikodi/components/InvestmentMarketplaceGate.js +23 -0
- package/dist/kadaikodi/components/InvestmentMarketplaceGate.js.map +1 -0
- package/dist/kadaikodi/components/index.d.ts +1 -0
- package/dist/kadaikodi/components/index.d.ts.map +1 -1
- package/dist/kadaikodi/constants/featureFlags.d.ts +23 -0
- package/dist/kadaikodi/constants/featureFlags.d.ts.map +1 -0
- package/dist/kadaikodi/constants/featureFlags.js +6 -0
- package/dist/kadaikodi/constants/featureFlags.js.map +1 -0
- package/dist/kadaikodi/hooks/useKadaikodiApi.d.ts +42 -0
- package/dist/kadaikodi/hooks/useKadaikodiApi.d.ts.map +1 -1
- package/dist/kadaikodi/hooks/useKadaikodiApi.js +133 -65
- package/dist/kadaikodi/hooks/useKadaikodiApi.js.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/BusinessSettingsPage.d.ts.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/BusinessSettingsPage.js +180 -162
- package/dist/kadaikodi/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/InvestmentListingPage.d.ts.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/InvestmentListingPage.js +135 -126
- package/dist/kadaikodi/pages/cart-owner/InvestmentListingPage.js.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/LoyaltyManagementPage.d.ts +12 -0
- package/dist/kadaikodi/pages/cart-owner/LoyaltyManagementPage.d.ts.map +1 -0
- package/dist/kadaikodi/pages/cart-owner/LoyaltyManagementPage.js +198 -0
- package/dist/kadaikodi/pages/cart-owner/LoyaltyManagementPage.js.map +1 -0
- package/dist/kadaikodi/pages/customer/CustomerProfilePage.d.ts.map +1 -1
- package/dist/kadaikodi/pages/customer/CustomerProfilePage.js +256 -97
- package/dist/kadaikodi/pages/customer/CustomerProfilePage.js.map +1 -1
- package/dist/kadaikodi/pages/investor/InvestmentDetailsPage.d.ts.map +1 -1
- package/dist/kadaikodi/pages/investor/InvestmentDetailsPage.js +171 -166
- package/dist/kadaikodi/pages/investor/InvestmentDetailsPage.js.map +1 -1
- package/dist/kadaikodi/pages/investor/InvestmentOpportunitiesPage.d.ts.map +1 -1
- package/dist/kadaikodi/pages/investor/InvestmentOpportunitiesPage.js +220 -217
- package/dist/kadaikodi/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
- package/package.json +1 -1
|
@@ -63,7 +63,7 @@ var o = async (e, t, n) => {
|
|
|
63
63
|
paymentMethod: e.paymentMethod ?? "Cash",
|
|
64
64
|
paymentStatus: e.paymentStatus.toLowerCase(),
|
|
65
65
|
timeline: e.timeline ?? []
|
|
66
|
-
}),
|
|
66
|
+
}), ee = (e) => ({
|
|
67
67
|
id: e.id,
|
|
68
68
|
cartId: e.providerId,
|
|
69
69
|
cartName: e.provider?.name ?? "Unknown Cart",
|
|
@@ -82,7 +82,7 @@ var o = async (e, t, n) => {
|
|
|
82
82
|
status: e.status.toLowerCase(),
|
|
83
83
|
createdAt: e.createdAt,
|
|
84
84
|
expiresAt: e.expiresAt ?? ""
|
|
85
|
-
}),
|
|
85
|
+
}), te = (e) => ({
|
|
86
86
|
id: e.id,
|
|
87
87
|
opportunityId: e.opportunityId,
|
|
88
88
|
cartName: e.opportunity?.provider?.name ?? "Unknown Cart",
|
|
@@ -92,7 +92,7 @@ var o = async (e, t, n) => {
|
|
|
92
92
|
returnsPercentage: e.expectedReturnsPct,
|
|
93
93
|
investmentDate: e.investedAt,
|
|
94
94
|
status: e.status.toLowerCase()
|
|
95
|
-
}),
|
|
95
|
+
}), d = (e) => ({
|
|
96
96
|
id: e.id,
|
|
97
97
|
orderId: e.orderId ?? "",
|
|
98
98
|
cartId: e.providerId ?? "",
|
|
@@ -110,7 +110,7 @@ var o = async (e, t, n) => {
|
|
|
110
110
|
earnings: e.earnings ?? 0,
|
|
111
111
|
distance: e.distance ?? void 0,
|
|
112
112
|
notes: e.notes ?? void 0
|
|
113
|
-
}),
|
|
113
|
+
}), f = (e) => ({
|
|
114
114
|
id: e.id,
|
|
115
115
|
date: e.date,
|
|
116
116
|
startTime: e.startTime,
|
|
@@ -120,7 +120,7 @@ var o = async (e, t, n) => {
|
|
|
120
120
|
status: e.status.toLowerCase(),
|
|
121
121
|
tasksCompleted: e.tasksCompleted,
|
|
122
122
|
totalEarnings: e.totalEarnings
|
|
123
|
-
}),
|
|
123
|
+
}), p = "\n id name slug category status ownerId rating totalRatings averageOrderValue serviceTypes location businessHours createdAt\n", m = "\n id orderNumber providerId customerId status paymentStatus fulfillmentType subtotal tax deliveryFee discount total notes timeline paymentMethod deliveryAddress createdAt\n provider { name }\n items { id offeringId name quantity unitPrice totalPrice customizations }\n", h = "\n id providerId kind name slug category description price originalPrice stock durationMinutes serviceType tags isAvailable metadata media\n", g = (t) => {
|
|
124
124
|
let { apiGatewayUrl: n } = e();
|
|
125
125
|
return r({
|
|
126
126
|
queryKey: [
|
|
@@ -130,14 +130,14 @@ var o = async (e, t, n) => {
|
|
|
130
130
|
],
|
|
131
131
|
queryFn: async () => (await o(`query Providers($filter: KadaikodiProviderFilterInput, $pagination: KadaikodiPaginationInput) {
|
|
132
132
|
kadaikodiListServiceProviders(filter: $filter, pagination: $pagination) {
|
|
133
|
-
${
|
|
133
|
+
${p}
|
|
134
134
|
}
|
|
135
135
|
}`, {
|
|
136
136
|
filter: t ? { query: t } : void 0,
|
|
137
137
|
pagination: { limit: 200 }
|
|
138
138
|
}, n)).kadaikodiListServiceProviders.map(l)
|
|
139
139
|
});
|
|
140
|
-
},
|
|
140
|
+
}, _ = (t) => {
|
|
141
141
|
let { apiGatewayUrl: n } = e();
|
|
142
142
|
return r({
|
|
143
143
|
queryKey: [
|
|
@@ -148,14 +148,14 @@ var o = async (e, t, n) => {
|
|
|
148
148
|
queryFn: async () => {
|
|
149
149
|
let e = await o(`query Provider($id: ID!) {
|
|
150
150
|
kadaikodiServiceProvider(id: $id) {
|
|
151
|
-
${
|
|
151
|
+
${p}
|
|
152
152
|
}
|
|
153
153
|
}`, { id: t }, n);
|
|
154
154
|
return e.kadaikodiServiceProvider ? l(e.kadaikodiServiceProvider) : null;
|
|
155
155
|
},
|
|
156
156
|
enabled: !!t
|
|
157
157
|
});
|
|
158
|
-
},
|
|
158
|
+
}, v = (t) => {
|
|
159
159
|
let { apiGatewayUrl: n } = e();
|
|
160
160
|
return r({
|
|
161
161
|
queryKey: [
|
|
@@ -165,7 +165,7 @@ var o = async (e, t, n) => {
|
|
|
165
165
|
],
|
|
166
166
|
queryFn: async () => (await o(`query Offerings($providerId: String, $pagination: KadaikodiPaginationInput) {
|
|
167
167
|
kadaikodiListOfferings(providerId: $providerId, pagination: $pagination) {
|
|
168
|
-
${
|
|
168
|
+
${h}
|
|
169
169
|
}
|
|
170
170
|
}`, {
|
|
171
171
|
providerId: t,
|
|
@@ -173,7 +173,7 @@ var o = async (e, t, n) => {
|
|
|
173
173
|
}, n)).kadaikodiListOfferings,
|
|
174
174
|
enabled: !!t
|
|
175
175
|
});
|
|
176
|
-
},
|
|
176
|
+
}, y = (t = {}) => {
|
|
177
177
|
let { apiGatewayUrl: n } = e();
|
|
178
178
|
return r({
|
|
179
179
|
queryKey: [
|
|
@@ -184,14 +184,14 @@ var o = async (e, t, n) => {
|
|
|
184
184
|
],
|
|
185
185
|
queryFn: async () => (await o(`query Orders($providerId: String, $customerId: String, $pagination: KadaikodiPaginationInput) {
|
|
186
186
|
kadaikodiListOrders(providerId: $providerId, customerId: $customerId, pagination: $pagination) {
|
|
187
|
-
${
|
|
187
|
+
${m}
|
|
188
188
|
}
|
|
189
189
|
}`, {
|
|
190
190
|
...t,
|
|
191
191
|
pagination: { limit: 200 }
|
|
192
192
|
}, n)).kadaikodiListOrders.map(u)
|
|
193
193
|
});
|
|
194
|
-
},
|
|
194
|
+
}, b = (t) => {
|
|
195
195
|
let { apiGatewayUrl: n } = e();
|
|
196
196
|
return r({
|
|
197
197
|
queryKey: [
|
|
@@ -202,32 +202,32 @@ var o = async (e, t, n) => {
|
|
|
202
202
|
queryFn: async () => {
|
|
203
203
|
let e = await o(`query Order($id: ID!) {
|
|
204
204
|
kadaikodiOrder(id: $id) {
|
|
205
|
-
${
|
|
205
|
+
${m}
|
|
206
206
|
}
|
|
207
207
|
}`, { id: t }, n);
|
|
208
208
|
return e.kadaikodiOrder ? u(e.kadaikodiOrder) : null;
|
|
209
209
|
},
|
|
210
210
|
enabled: !!t
|
|
211
211
|
});
|
|
212
|
-
},
|
|
212
|
+
}, x = () => {
|
|
213
213
|
let { apiGatewayUrl: t } = e();
|
|
214
214
|
return r({
|
|
215
215
|
queryKey: ["kadaikodi", "dashboard-stats"],
|
|
216
216
|
queryFn: async () => (await o("query DashboardStats { kadaikodiDashboardStats { totalOrders totalRevenue activeProviders activeCustomers avgRating pendingOrders } }", {}, t)).kadaikodiDashboardStats
|
|
217
217
|
});
|
|
218
|
-
},
|
|
218
|
+
}, S = () => {
|
|
219
219
|
let { apiGatewayUrl: t } = e();
|
|
220
220
|
return r({
|
|
221
221
|
queryKey: ["kadaikodi", "admin-analytics"],
|
|
222
222
|
queryFn: async () => (await o("query AdminAnalytics { kadaikodiAdminAnalytics { revenueByCategory orderTrends topProviders customerGrowth categoryDistribution } }", {}, t)).kadaikodiAdminAnalytics
|
|
223
223
|
});
|
|
224
|
-
},
|
|
224
|
+
}, C = () => {
|
|
225
225
|
let { apiGatewayUrl: t } = e();
|
|
226
226
|
return r({
|
|
227
227
|
queryKey: ["kadaikodi", "investment-opportunities"],
|
|
228
|
-
queryFn: async () => (await o("query Opportunities($pagination: KadaikodiPaginationInput) {\n kadaikodiListInvestmentOpportunities(pagination: $pagination) {\n id providerId title description targetAmount raisedAmount minimumInvestment expectedReturnsPct lockInMonths riskLevel status expiresAt terms businessMetrics createdAt\n provider { name }\n }\n }", { pagination: { limit: 200 } }, t)).kadaikodiListInvestmentOpportunities.map(
|
|
228
|
+
queryFn: async () => (await o("query Opportunities($pagination: KadaikodiPaginationInput) {\n kadaikodiListInvestmentOpportunities(pagination: $pagination) {\n id providerId title description targetAmount raisedAmount minimumInvestment expectedReturnsPct lockInMonths riskLevel status expiresAt terms businessMetrics createdAt\n provider { name }\n }\n }", { pagination: { limit: 200 } }, t)).kadaikodiListInvestmentOpportunities.map(ee)
|
|
229
229
|
});
|
|
230
|
-
},
|
|
230
|
+
}, w = (t) => {
|
|
231
231
|
let { apiGatewayUrl: n } = e();
|
|
232
232
|
return r({
|
|
233
233
|
queryKey: [
|
|
@@ -235,10 +235,10 @@ var o = async (e, t, n) => {
|
|
|
235
235
|
"investments",
|
|
236
236
|
t
|
|
237
237
|
],
|
|
238
|
-
queryFn: async () => (await o("query Investments {\n kadaikodiListInvestments {\n id opportunityId amount currentValue expectedReturnsPct status investedAt maturedAt realizedReturns\n opportunity { provider { name } }\n }\n }", {}, n)).kadaikodiListInvestments.map(
|
|
238
|
+
queryFn: async () => (await o("query Investments {\n kadaikodiListInvestments {\n id opportunityId amount currentValue expectedReturnsPct status investedAt maturedAt realizedReturns\n opportunity { provider { name } }\n }\n }", {}, n)).kadaikodiListInvestments.map(te),
|
|
239
239
|
enabled: !!t
|
|
240
240
|
});
|
|
241
|
-
},
|
|
241
|
+
}, T = (t) => {
|
|
242
242
|
let { apiGatewayUrl: n } = e();
|
|
243
243
|
return r({
|
|
244
244
|
queryKey: [
|
|
@@ -249,7 +249,7 @@ var o = async (e, t, n) => {
|
|
|
249
249
|
queryFn: async () => (await o("query ProviderWorkers($providerId: String!) {\n kadaikodiListProviderWorkers(providerId: $providerId) {\n id providerId workerId name role status metadata\n }\n }", { providerId: t }, n)).kadaikodiListProviderWorkers,
|
|
250
250
|
enabled: !!t
|
|
251
251
|
});
|
|
252
|
-
},
|
|
252
|
+
}, E = (t) => {
|
|
253
253
|
let { apiGatewayUrl: n } = e();
|
|
254
254
|
return r({
|
|
255
255
|
queryKey: [
|
|
@@ -257,10 +257,10 @@ var o = async (e, t, n) => {
|
|
|
257
257
|
"worker-tasks",
|
|
258
258
|
t
|
|
259
259
|
],
|
|
260
|
-
queryFn: async () => (await o("query WorkerTasks($pagination: KadaikodiPaginationInput) {\n kadaikodiWorkerTasks(pagination: $pagination) {\n id orderId providerId type description priority status assignedAt dueAt completedAt customerName customerPhone earnings distance notes\n provider { name }\n order { deliveryAddress }\n }\n }", { pagination: { limit: 100 } }, n)).kadaikodiWorkerTasks.map(
|
|
260
|
+
queryFn: async () => (await o("query WorkerTasks($pagination: KadaikodiPaginationInput) {\n kadaikodiWorkerTasks(pagination: $pagination) {\n id orderId providerId type description priority status assignedAt dueAt completedAt customerName customerPhone earnings distance notes\n provider { name }\n order { deliveryAddress }\n }\n }", { pagination: { limit: 100 } }, n)).kadaikodiWorkerTasks.map(d),
|
|
261
261
|
enabled: !!t
|
|
262
262
|
});
|
|
263
|
-
},
|
|
263
|
+
}, D = (t) => {
|
|
264
264
|
let { apiGatewayUrl: n } = e();
|
|
265
265
|
return r({
|
|
266
266
|
queryKey: [
|
|
@@ -271,7 +271,7 @@ var o = async (e, t, n) => {
|
|
|
271
271
|
queryFn: async () => (await o("query WorkerStats {\n kadaikodiWorkerStats {\n totalDeliveries totalEarnings averageRating completionRate todayTasks todayEarnings\n }\n }", {}, n)).kadaikodiWorkerStats,
|
|
272
272
|
enabled: !!t
|
|
273
273
|
});
|
|
274
|
-
},
|
|
274
|
+
}, O = (t) => {
|
|
275
275
|
let { apiGatewayUrl: n } = e();
|
|
276
276
|
return r({
|
|
277
277
|
queryKey: [
|
|
@@ -279,35 +279,35 @@ var o = async (e, t, n) => {
|
|
|
279
279
|
"worker-schedules",
|
|
280
280
|
t
|
|
281
281
|
],
|
|
282
|
-
queryFn: async () => (await o("query WorkerSchedules {\n kadaikodiListWorkerSchedules {\n id date startTime endTime providerId status tasksCompleted totalEarnings\n provider { name }\n }\n }", {}, n)).kadaikodiListWorkerSchedules.map(
|
|
282
|
+
queryFn: async () => (await o("query WorkerSchedules {\n kadaikodiListWorkerSchedules {\n id date startTime endTime providerId status tasksCompleted totalEarnings\n provider { name }\n }\n }", {}, n)).kadaikodiListWorkerSchedules.map(f),
|
|
283
283
|
enabled: !!t
|
|
284
284
|
});
|
|
285
|
-
},
|
|
285
|
+
}, k = "\n id type nickname addressLine1 addressLine2 city state zipCode isDefault usageCount lastUsedAt\n", A = "\n id type label detail isDefault\n", j = () => {
|
|
286
286
|
let { apiGatewayUrl: t, currentUser: n } = e();
|
|
287
287
|
return r({
|
|
288
288
|
queryKey: ["kadaikodi", "my-addresses"],
|
|
289
289
|
queryFn: async () => (await o(`query MyAddresses($pagination: KadaikodiPaginationInput) {
|
|
290
290
|
kadaikodiMyAddresses(pagination: $pagination) {
|
|
291
|
-
${
|
|
291
|
+
${k}
|
|
292
292
|
}
|
|
293
293
|
}`, { pagination: { limit: 100 } }, t)).kadaikodiMyAddresses,
|
|
294
294
|
enabled: !!n?.id
|
|
295
295
|
});
|
|
296
|
-
},
|
|
296
|
+
}, M = () => {
|
|
297
297
|
let t = i(), { apiGatewayUrl: r } = e();
|
|
298
298
|
return n({
|
|
299
299
|
mutationFn: async (e) => (await o(`mutation AddAddress($input: KadaikodiAddAddressInput!) {
|
|
300
|
-
kadaikodiAddAddress(input: $input) { ${
|
|
300
|
+
kadaikodiAddAddress(input: $input) { ${k} }
|
|
301
301
|
}`, { input: e }, r)).kadaikodiAddAddress,
|
|
302
302
|
onSuccess: () => {
|
|
303
303
|
t.invalidateQueries({ queryKey: ["kadaikodi", "my-addresses"] });
|
|
304
304
|
}
|
|
305
305
|
});
|
|
306
|
-
},
|
|
306
|
+
}, N = () => {
|
|
307
307
|
let t = i(), { apiGatewayUrl: r } = e();
|
|
308
308
|
return n({
|
|
309
309
|
mutationFn: async ({ id: e, input: t }) => (await o(`mutation UpdateAddress($id: ID!, $input: KadaikodiUpdateAddressInput!) {
|
|
310
|
-
kadaikodiUpdateAddress(id: $id, input: $input) { ${
|
|
310
|
+
kadaikodiUpdateAddress(id: $id, input: $input) { ${k} }
|
|
311
311
|
}`, {
|
|
312
312
|
id: e,
|
|
313
313
|
input: t
|
|
@@ -316,7 +316,7 @@ var o = async (e, t, n) => {
|
|
|
316
316
|
t.invalidateQueries({ queryKey: ["kadaikodi", "my-addresses"] });
|
|
317
317
|
}
|
|
318
318
|
});
|
|
319
|
-
},
|
|
319
|
+
}, P = () => {
|
|
320
320
|
let t = i(), { apiGatewayUrl: r } = e();
|
|
321
321
|
return n({
|
|
322
322
|
mutationFn: async (e) => (await o("mutation DeleteAddress($id: ID!) { kadaikodiDeleteAddress(id: $id) }", { id: e }, r)).kadaikodiDeleteAddress,
|
|
@@ -324,36 +324,36 @@ var o = async (e, t, n) => {
|
|
|
324
324
|
t.invalidateQueries({ queryKey: ["kadaikodi", "my-addresses"] });
|
|
325
325
|
}
|
|
326
326
|
});
|
|
327
|
-
},
|
|
327
|
+
}, F = () => {
|
|
328
328
|
let t = i(), { apiGatewayUrl: r } = e();
|
|
329
329
|
return n({
|
|
330
|
-
mutationFn: async (e) => (await o(`mutation SetDefaultAddress($id: ID!) { kadaikodiSetDefaultAddress(id: $id) { ${
|
|
330
|
+
mutationFn: async (e) => (await o(`mutation SetDefaultAddress($id: ID!) { kadaikodiSetDefaultAddress(id: $id) { ${k} } }`, { id: e }, r)).kadaikodiSetDefaultAddress,
|
|
331
331
|
onSuccess: () => {
|
|
332
332
|
t.invalidateQueries({ queryKey: ["kadaikodi", "my-addresses"] });
|
|
333
333
|
}
|
|
334
334
|
});
|
|
335
|
-
},
|
|
335
|
+
}, I = () => {
|
|
336
336
|
let { apiGatewayUrl: t, currentUser: n } = e();
|
|
337
337
|
return r({
|
|
338
338
|
queryKey: ["kadaikodi", "my-payment-methods"],
|
|
339
339
|
queryFn: async () => (await o(`query MyPaymentMethods($pagination: KadaikodiPaginationInput) {
|
|
340
340
|
kadaikodiMyPaymentMethods(pagination: $pagination) {
|
|
341
|
-
${
|
|
341
|
+
${A}
|
|
342
342
|
}
|
|
343
343
|
}`, { pagination: { limit: 100 } }, t)).kadaikodiMyPaymentMethods,
|
|
344
344
|
enabled: !!n?.id
|
|
345
345
|
});
|
|
346
|
-
},
|
|
346
|
+
}, L = () => {
|
|
347
347
|
let t = i(), { apiGatewayUrl: r } = e();
|
|
348
348
|
return n({
|
|
349
349
|
mutationFn: async (e) => (await o(`mutation AddPaymentMethod($input: KadaikodiAddPaymentMethodInput!) {
|
|
350
|
-
kadaikodiAddPaymentMethod(input: $input) { ${
|
|
350
|
+
kadaikodiAddPaymentMethod(input: $input) { ${A} }
|
|
351
351
|
}`, { input: e }, r)).kadaikodiAddPaymentMethod,
|
|
352
352
|
onSuccess: () => {
|
|
353
353
|
t.invalidateQueries({ queryKey: ["kadaikodi", "my-payment-methods"] });
|
|
354
354
|
}
|
|
355
355
|
});
|
|
356
|
-
},
|
|
356
|
+
}, R = () => {
|
|
357
357
|
let t = i(), { apiGatewayUrl: r } = e();
|
|
358
358
|
return n({
|
|
359
359
|
mutationFn: async (e) => (await o("mutation RemovePaymentMethod($id: ID!) { kadaikodiRemovePaymentMethod(id: $id) }", { id: e }, r)).kadaikodiRemovePaymentMethod,
|
|
@@ -361,24 +361,24 @@ var o = async (e, t, n) => {
|
|
|
361
361
|
t.invalidateQueries({ queryKey: ["kadaikodi", "my-payment-methods"] });
|
|
362
362
|
}
|
|
363
363
|
});
|
|
364
|
-
},
|
|
364
|
+
}, z = () => {
|
|
365
365
|
let t = i(), { apiGatewayUrl: r } = e();
|
|
366
366
|
return n({
|
|
367
367
|
mutationFn: async (e) => (await o(`mutation SetDefaultPaymentMethod($id: ID!) {
|
|
368
|
-
kadaikodiSetDefaultPaymentMethod(id: $id) { ${
|
|
368
|
+
kadaikodiSetDefaultPaymentMethod(id: $id) { ${A} }
|
|
369
369
|
}`, { id: e }, r)).kadaikodiSetDefaultPaymentMethod,
|
|
370
370
|
onSuccess: () => {
|
|
371
371
|
t.invalidateQueries({ queryKey: ["kadaikodi", "my-payment-methods"] });
|
|
372
372
|
}
|
|
373
373
|
});
|
|
374
|
-
},
|
|
374
|
+
}, B = () => {
|
|
375
375
|
let { apiGatewayUrl: t, currentUser: n } = e();
|
|
376
376
|
return r({
|
|
377
377
|
queryKey: ["kadaikodi", "my-favorite-provider-ids"],
|
|
378
378
|
queryFn: async () => (await o("query MyFavoriteProviderIds { kadaikodiMyFavoriteProviderIds }", {}, t)).kadaikodiMyFavoriteProviderIds,
|
|
379
379
|
enabled: !!n?.id
|
|
380
380
|
});
|
|
381
|
-
},
|
|
381
|
+
}, V = () => {
|
|
382
382
|
let t = i(), { apiGatewayUrl: r } = e();
|
|
383
383
|
return n({
|
|
384
384
|
mutationFn: async (e) => (await o("mutation ToggleFavorite($providerId: String!) { kadaikodiToggleFavorite(providerId: $providerId) }", { providerId: e }, r)).kadaikodiToggleFavorite,
|
|
@@ -394,7 +394,75 @@ var o = async (e, t, n) => {
|
|
|
394
394
|
t.invalidateQueries({ queryKey: ["kadaikodi", "my-favorite-provider-ids"] });
|
|
395
395
|
}
|
|
396
396
|
});
|
|
397
|
-
}, U = (
|
|
397
|
+
}, H = "\n id customerId pointsBalance lifetimePointsEarned lifetimePointsRedeemed createdAt updatedAt\n", U = "\n id accountId customerId orderId type points balanceAfter description createdAt\n", W = () => {
|
|
398
|
+
let { apiGatewayUrl: t, currentUser: n } = e();
|
|
399
|
+
return r({
|
|
400
|
+
queryKey: ["kadaikodi", "my-loyalty-account"],
|
|
401
|
+
queryFn: async () => (await o(`query MyLoyaltyAccount { kadaikodiMyLoyaltyAccount { ${H} } }`, {}, t)).kadaikodiMyLoyaltyAccount,
|
|
402
|
+
enabled: !!n?.id
|
|
403
|
+
});
|
|
404
|
+
}, G = () => {
|
|
405
|
+
let { apiGatewayUrl: t, currentUser: n } = e();
|
|
406
|
+
return r({
|
|
407
|
+
queryKey: ["kadaikodi", "my-loyalty-transactions"],
|
|
408
|
+
queryFn: async () => (await o(`query MyLoyaltyTransactions($pagination: KadaikodiPaginationInput) {
|
|
409
|
+
kadaikodiMyLoyaltyTransactions(pagination: $pagination) { ${U} }
|
|
410
|
+
}`, { pagination: { limit: 50 } }, t)).kadaikodiMyLoyaltyTransactions,
|
|
411
|
+
enabled: !!n?.id
|
|
412
|
+
});
|
|
413
|
+
}, K = () => {
|
|
414
|
+
let t = i(), { apiGatewayUrl: r } = e();
|
|
415
|
+
return n({
|
|
416
|
+
mutationFn: async (e) => (await o("mutation RedeemLoyaltyPoints($input: KadaikodiRedeemLoyaltyPointsInput!) {\n kadaikodiRedeemLoyaltyPoints(input: $input) {\n pointsRedeemed discountAmount newBalance transactionId\n }\n }", { input: { points: e } }, r)).kadaikodiRedeemLoyaltyPoints,
|
|
417
|
+
onSuccess: () => {
|
|
418
|
+
t.invalidateQueries({ queryKey: ["kadaikodi", "my-loyalty-account"] }), t.invalidateQueries({ queryKey: ["kadaikodi", "my-loyalty-transactions"] });
|
|
419
|
+
}
|
|
420
|
+
});
|
|
421
|
+
}, q = (t) => {
|
|
422
|
+
let { apiGatewayUrl: n } = e();
|
|
423
|
+
return r({
|
|
424
|
+
queryKey: [
|
|
425
|
+
"kadaikodi",
|
|
426
|
+
"loyalty-account",
|
|
427
|
+
t
|
|
428
|
+
],
|
|
429
|
+
queryFn: async () => (await o(`query LoyaltyAccount($customerId: String!) {
|
|
430
|
+
kadaikodiLoyaltyAccount(customerId: $customerId) { ${H} }
|
|
431
|
+
}`, { customerId: t }, n)).kadaikodiLoyaltyAccount,
|
|
432
|
+
enabled: !!t
|
|
433
|
+
});
|
|
434
|
+
}, J = (t) => {
|
|
435
|
+
let { apiGatewayUrl: n } = e();
|
|
436
|
+
return r({
|
|
437
|
+
queryKey: [
|
|
438
|
+
"kadaikodi",
|
|
439
|
+
"loyalty-transactions",
|
|
440
|
+
t ?? "all"
|
|
441
|
+
],
|
|
442
|
+
queryFn: async () => (await o(`query ListLoyaltyTransactions($customerId: String, $pagination: KadaikodiPaginationInput) {
|
|
443
|
+
kadaikodiListLoyaltyTransactions(customerId: $customerId, pagination: $pagination) {
|
|
444
|
+
${U}
|
|
445
|
+
}
|
|
446
|
+
}`, {
|
|
447
|
+
customerId: t || void 0,
|
|
448
|
+
pagination: { limit: 50 }
|
|
449
|
+
}, n)).kadaikodiListLoyaltyTransactions
|
|
450
|
+
});
|
|
451
|
+
}, Y = () => {
|
|
452
|
+
let t = i(), { apiGatewayUrl: r } = e();
|
|
453
|
+
return n({
|
|
454
|
+
mutationFn: async (e) => (await o(`mutation AwardLoyaltyPoints($input: KadaikodiAwardLoyaltyPointsInput!) {
|
|
455
|
+
kadaikodiAwardLoyaltyPoints(input: $input) { ${H} }
|
|
456
|
+
}`, { input: e }, r)).kadaikodiAwardLoyaltyPoints,
|
|
457
|
+
onSuccess: (e, n) => {
|
|
458
|
+
t.invalidateQueries({ queryKey: [
|
|
459
|
+
"kadaikodi",
|
|
460
|
+
"loyalty-account",
|
|
461
|
+
n.customerId
|
|
462
|
+
] }), t.invalidateQueries({ queryKey: ["kadaikodi", "loyalty-transactions"] });
|
|
463
|
+
}
|
|
464
|
+
});
|
|
465
|
+
}, X = (t) => {
|
|
398
466
|
let { apiGatewayUrl: n } = e();
|
|
399
467
|
return r({
|
|
400
468
|
queryKey: [
|
|
@@ -405,7 +473,7 @@ var o = async (e, t, n) => {
|
|
|
405
473
|
queryFn: async () => (await o("query Reviews($providerId: String!) {\n kadaikodiListReviews(providerId: $providerId) {\n id providerId customerId rating review response createdAt updatedAt\n }\n }", { providerId: t }, n)).kadaikodiListReviews,
|
|
406
474
|
enabled: !!t
|
|
407
475
|
});
|
|
408
|
-
},
|
|
476
|
+
}, Z = () => {
|
|
409
477
|
let t = i(), { apiGatewayUrl: r } = e();
|
|
410
478
|
return n({
|
|
411
479
|
mutationFn: async (e) => (await o("mutation PlaceOrder($input: KadaikodiPlaceOrderInput!) {\n kadaikodiPlaceOrder(input: $input) {\n id orderNumber status total createdAt\n }\n }", { input: e }, r)).kadaikodiPlaceOrder,
|
|
@@ -413,7 +481,7 @@ var o = async (e, t, n) => {
|
|
|
413
481
|
t.invalidateQueries({ queryKey: ["kadaikodi", "orders"] }), t.invalidateQueries({ queryKey: ["kadaikodi", "dashboard-stats"] });
|
|
414
482
|
}
|
|
415
483
|
});
|
|
416
|
-
},
|
|
484
|
+
}, Q = () => {
|
|
417
485
|
let t = i(), { apiGatewayUrl: r } = e();
|
|
418
486
|
return n({
|
|
419
487
|
mutationFn: async ({ id: e, status: t }) => (await o("mutation UpdateOrderStatus($id: ID!, $status: KadaikodiOrderStatus!) {\n kadaikodiUpdateOrderStatus(id: $id, status: $status) {\n id status\n }\n }", {
|
|
@@ -424,24 +492,24 @@ var o = async (e, t, n) => {
|
|
|
424
492
|
t.invalidateQueries({ queryKey: ["kadaikodi", "orders"] }), t.invalidateQueries({ queryKey: ["kadaikodi", "order"] }), t.invalidateQueries({ queryKey: ["kadaikodi", "dashboard-stats"] });
|
|
425
493
|
}
|
|
426
494
|
});
|
|
427
|
-
},
|
|
495
|
+
}, ne = () => {
|
|
428
496
|
let t = i(), { apiGatewayUrl: r } = e();
|
|
429
497
|
return n({
|
|
430
498
|
mutationFn: async (e) => (await o(`mutation CreateOffering($input: KadaikodiCreateOfferingInput!) {
|
|
431
499
|
kadaikodiCreateOffering(input: $input) {
|
|
432
|
-
${
|
|
500
|
+
${h}
|
|
433
501
|
}
|
|
434
502
|
}`, { input: e }, r)).kadaikodiCreateOffering,
|
|
435
503
|
onSuccess: () => {
|
|
436
504
|
t.invalidateQueries({ queryKey: ["kadaikodi", "offerings"] });
|
|
437
505
|
}
|
|
438
506
|
});
|
|
439
|
-
},
|
|
507
|
+
}, re = () => {
|
|
440
508
|
let t = i(), { apiGatewayUrl: r } = e();
|
|
441
509
|
return n({
|
|
442
510
|
mutationFn: async ({ id: e, input: t }) => (await o(`mutation UpdateOffering($id: ID!, $input: KadaikodiUpdateOfferingInput!) {
|
|
443
511
|
kadaikodiUpdateOffering(id: $id, input: $input) {
|
|
444
|
-
${
|
|
512
|
+
${h}
|
|
445
513
|
}
|
|
446
514
|
}`, {
|
|
447
515
|
id: e,
|
|
@@ -451,7 +519,7 @@ var o = async (e, t, n) => {
|
|
|
451
519
|
t.invalidateQueries({ queryKey: ["kadaikodi", "offerings"] }), t.invalidateQueries({ queryKey: ["kadaikodi", "offering"] });
|
|
452
520
|
}
|
|
453
521
|
});
|
|
454
|
-
},
|
|
522
|
+
}, ie = () => {
|
|
455
523
|
let t = i(), { apiGatewayUrl: r } = e();
|
|
456
524
|
return n({
|
|
457
525
|
mutationFn: async (e) => (await o("mutation Invest($input: KadaikodiInvestInput!) {\n kadaikodiInvest(input: $input) {\n id amount currentValue status investedAt\n }\n }", { input: e }, r)).kadaikodiInvest,
|
|
@@ -459,7 +527,7 @@ var o = async (e, t, n) => {
|
|
|
459
527
|
t.invalidateQueries({ queryKey: ["kadaikodi", "investments"] }), t.invalidateQueries({ queryKey: ["kadaikodi", "investment-opportunities"] });
|
|
460
528
|
}
|
|
461
529
|
});
|
|
462
|
-
},
|
|
530
|
+
}, ae = () => {
|
|
463
531
|
let t = i(), { apiGatewayUrl: r } = e();
|
|
464
532
|
return n({
|
|
465
533
|
mutationFn: async (e) => (await o("mutation CreateProvider($input: KadaikodiCreateServiceProviderInput!) {\n kadaikodiCreateServiceProvider(input: $input) {\n id name slug status category location rating\n }\n }", { input: e }, r)).kadaikodiCreateServiceProvider,
|
|
@@ -467,7 +535,7 @@ var o = async (e, t, n) => {
|
|
|
467
535
|
t.invalidateQueries({ queryKey: ["kadaikodi", "providers"] }), t.invalidateQueries({ queryKey: ["kadaikodi", "dashboard-stats"] });
|
|
468
536
|
}
|
|
469
537
|
});
|
|
470
|
-
},
|
|
538
|
+
}, oe = () => {
|
|
471
539
|
let t = i(), { apiGatewayUrl: r } = e();
|
|
472
540
|
return n({
|
|
473
541
|
mutationFn: async (e) => (await o("mutation CreateProviderWorker($input: KadaikodiCreateProviderWorkerInput!) {\n kadaikodiCreateProviderWorker(input: $input) {\n id providerId workerId name role status metadata\n }\n }", { input: e }, r)).kadaikodiCreateProviderWorker,
|
|
@@ -475,7 +543,7 @@ var o = async (e, t, n) => {
|
|
|
475
543
|
t.invalidateQueries({ queryKey: ["kadaikodi", "provider-workers"] });
|
|
476
544
|
}
|
|
477
545
|
});
|
|
478
|
-
},
|
|
546
|
+
}, $ = () => {
|
|
479
547
|
let t = i(), { apiGatewayUrl: r } = e();
|
|
480
548
|
return n({
|
|
481
549
|
mutationFn: async ({ taskId: e, status: t }) => (await o("mutation UpdateTaskStatus($taskId: String!, $status: KadaikodiWorkerTaskStatus!) {\n kadaikodiUpdateWorkerTaskStatus(taskId: $taskId, status: $status) {\n id status\n }\n }", {
|
|
@@ -486,7 +554,7 @@ var o = async (e, t, n) => {
|
|
|
486
554
|
t.invalidateQueries({ queryKey: ["kadaikodi", "worker-tasks"] }), t.invalidateQueries({ queryKey: ["kadaikodi", "worker-stats"] });
|
|
487
555
|
}
|
|
488
556
|
});
|
|
489
|
-
},
|
|
557
|
+
}, se = () => {
|
|
490
558
|
let t = i(), { apiGatewayUrl: r } = e();
|
|
491
559
|
return n({
|
|
492
560
|
mutationFn: async ({ workerId: e, action: t }) => (await o("mutation ClockInOut($workerId: String!, $action: KadaikodiClockAction!) {\n kadaikodiWorkerClockInOut(workerId: $workerId, action: $action) {\n success message\n }\n }", {
|
|
@@ -497,7 +565,7 @@ var o = async (e, t, n) => {
|
|
|
497
565
|
t.invalidateQueries({ queryKey: ["kadaikodi", "worker-schedules"] });
|
|
498
566
|
}
|
|
499
567
|
});
|
|
500
|
-
},
|
|
568
|
+
}, ce = () => {
|
|
501
569
|
let t = i(), { apiGatewayUrl: r } = e();
|
|
502
570
|
return n({
|
|
503
571
|
mutationFn: async (e) => (await o("mutation CreateOpportunity($input: KadaikodiCreateInvestmentOpportunityInput!) {\n kadaikodiCreateInvestmentOpportunity(input: $input) { id title targetAmount status }\n }", { input: e }, r)).kadaikodiCreateInvestmentOpportunity,
|
|
@@ -505,7 +573,7 @@ var o = async (e, t, n) => {
|
|
|
505
573
|
t.invalidateQueries({ queryKey: ["kadaikodi", "investment-opportunities"] });
|
|
506
574
|
}
|
|
507
575
|
});
|
|
508
|
-
},
|
|
576
|
+
}, le = () => {
|
|
509
577
|
let t = i(), { apiGatewayUrl: r } = e();
|
|
510
578
|
return n({
|
|
511
579
|
mutationFn: async (e) => (await o("mutation CreateReview($input: KadaikodiCreateReviewInput!) {\n kadaikodiCreateReview(input: $input) { id rating review createdAt }\n }", { input: e }, r)).kadaikodiCreateReview,
|
|
@@ -513,7 +581,7 @@ var o = async (e, t, n) => {
|
|
|
513
581
|
t.invalidateQueries({ queryKey: ["kadaikodi", "reviews"] }), t.invalidateQueries({ queryKey: ["kadaikodi", "providers"] });
|
|
514
582
|
}
|
|
515
583
|
});
|
|
516
|
-
},
|
|
584
|
+
}, ue = () => {
|
|
517
585
|
let t = i(), { apiGatewayUrl: r } = e();
|
|
518
586
|
return n({
|
|
519
587
|
mutationFn: async ({ id: e, input: t }) => (await o("mutation UpdateProvider($id: ID!, $input: KadaikodiUpdateServiceProviderInput!) {\n kadaikodiUpdateServiceProvider(id: $id, input: $input) {\n id name slug status category location businessHours serviceTypes rating\n }\n }", {
|
|
@@ -524,7 +592,7 @@ var o = async (e, t, n) => {
|
|
|
524
592
|
t.invalidateQueries({ queryKey: ["kadaikodi", "providers"] }), t.invalidateQueries({ queryKey: ["kadaikodi", "provider"] }), t.invalidateQueries({ queryKey: ["kadaikodi", "dashboard-stats"] });
|
|
525
593
|
}
|
|
526
594
|
});
|
|
527
|
-
},
|
|
595
|
+
}, de = () => {
|
|
528
596
|
let t = i(), { apiGatewayUrl: r } = e();
|
|
529
597
|
return n({
|
|
530
598
|
mutationFn: async (e) => (await o("mutation DeleteOffering($id: ID!) { kadaikodiDeleteOffering(id: $id) }", { id: e }, r)).kadaikodiDeleteOffering,
|
|
@@ -532,7 +600,7 @@ var o = async (e, t, n) => {
|
|
|
532
600
|
t.invalidateQueries({ queryKey: ["kadaikodi", "offerings"] });
|
|
533
601
|
}
|
|
534
602
|
});
|
|
535
|
-
},
|
|
603
|
+
}, fe = () => {
|
|
536
604
|
let t = i(), { apiGatewayUrl: r } = e();
|
|
537
605
|
return n({
|
|
538
606
|
mutationFn: async ({ taskId: e, status: t, notes: n }) => (await o("mutation UpdateWorkerTask($taskId: String!, $status: KadaikodiWorkerTaskStatus, $notes: String) {\n kadaikodiUpdateWorkerTask(taskId: $taskId, status: $status, notes: $notes) { id status }\n }", {
|
|
@@ -544,7 +612,7 @@ var o = async (e, t, n) => {
|
|
|
544
612
|
t.invalidateQueries({ queryKey: ["kadaikodi", "worker-tasks"] }), t.invalidateQueries({ queryKey: ["kadaikodi", "worker-stats"] });
|
|
545
613
|
}
|
|
546
614
|
});
|
|
547
|
-
},
|
|
615
|
+
}, pe = () => {
|
|
548
616
|
let t = i(), { apiGatewayUrl: r } = e();
|
|
549
617
|
return n({
|
|
550
618
|
mutationFn: async ({ id: e, metadata: t }) => (await o("mutation UpdateProviderWorker($id: ID!, $metadata: JSON!) {\n kadaikodiUpdateProviderWorker(id: $id, metadata: $metadata) { id name metadata }\n }", {
|
|
@@ -555,8 +623,8 @@ var o = async (e, t, n) => {
|
|
|
555
623
|
t.invalidateQueries({ queryKey: ["kadaikodi", "provider-workers"] }), t.invalidateQueries({ queryKey: ["kadaikodi", "worker-schedules"] });
|
|
556
624
|
}
|
|
557
625
|
});
|
|
558
|
-
},
|
|
559
|
-
let { currentUser: n } = e(), r =
|
|
626
|
+
}, me = () => {
|
|
627
|
+
let { currentUser: n } = e(), r = g(), i = y({ customerId: n?.id }), a = x(), o = C(), s = w(n?.id || "");
|
|
560
628
|
return t(() => ({
|
|
561
629
|
providers: r,
|
|
562
630
|
orders: i,
|
|
@@ -572,6 +640,6 @@ var o = async (e, t, n) => {
|
|
|
572
640
|
]);
|
|
573
641
|
};
|
|
574
642
|
//#endregion
|
|
575
|
-
export {
|
|
643
|
+
export { M as useAddAddress, L as useAddPaymentMethod, S as useAdminAnalytics, Y as useAwardLoyaltyPoints, ce as useCreateInvestmentOpportunity, ne as useCreateOffering, ae as useCreateProvider, oe as useCreateProviderWorker, le as useCreateReview, x as useDashboardStats, P as useDeleteAddress, de as useDeleteOffering, ie as useInvest, C as useInvestmentOpportunities, w as useInvestments, me as useKadaikodiApi, J as useListLoyaltyTransactions, q as useLoyaltyAccountByCustomerId, j as useMyAddresses, B as useMyFavoriteProviderIds, W as useMyLoyaltyAccount, G as useMyLoyaltyTransactions, I as useMyPaymentMethods, v as useOfferings, b as useOrder, y as useOrders, Z as usePlaceOrder, _ as useProvider, T as useProviderWorkers, g as useProviders, K as useRedeemLoyaltyPoints, R as useRemovePaymentMethod, X as useReviews, F as useSetDefaultAddress, z as useSetDefaultPaymentMethod, V as useToggleFavorite, N as useUpdateAddress, re as useUpdateOffering, Q as useUpdateOrderStatus, ue as useUpdateProvider, pe as useUpdateProviderWorker, fe as useUpdateWorkerTask, $ as useUpdateWorkerTaskStatus, se as useWorkerClockInOut, O as useWorkerSchedules, D as useWorkerStats, E as useWorkerTasks };
|
|
576
644
|
|
|
577
645
|
//# sourceMappingURL=useKadaikodiApi.js.map
|