@ram_28/kf-ai-sdk 1.0.26 → 1.0.28

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/docs/api.md CHANGED
@@ -213,7 +213,7 @@ const response = await product.list({
213
213
  Field: ["Title", "Price", "Category"],
214
214
  Filter: {
215
215
  Operator: "And",
216
- Conditions: [
216
+ Condition: [
217
217
  {
218
218
  LHSField: "Category",
219
219
  Operator: "EQ",
@@ -458,7 +458,7 @@ const response = await product.metric({
458
458
  Metric: [{ Field: "_id", Type: "Count" }],
459
459
  Filter: {
460
460
  Operator: "And",
461
- Conditions: [
461
+ Condition: [
462
462
  {
463
463
  LHSField: "Stock",
464
464
  Operator: "LT",
@@ -523,7 +523,9 @@ const response = await product.metric({
523
523
  // { "Category": "Books", "sum_Stock": 1200, "avg_Price": 24.99 }
524
524
  // ] }
525
525
  response.Data.forEach((row) => {
526
- console.log(`${row.Category}: ${row["sum_Stock"]} total stock, $${row["avg_Price"]} avg price`);
526
+ console.log(
527
+ `${row.Category}: ${row["sum_Stock"]} total stock, $${row["avg_Price"]} avg price`,
528
+ );
527
529
  });
528
530
  ```
529
531
 
package/docs/useAuth.md CHANGED
@@ -72,7 +72,7 @@ function App() {
72
72
 
73
73
  // 2. Use useAuth in components
74
74
  function AppContent() {
75
- const auth = useAuth();
75
+ const auth: UseAuthReturnType = useAuth();
76
76
 
77
77
  if (auth.isLoading) return <div>Loading...</div>;
78
78
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ram_28/kf-ai-sdk",
3
- "version": "1.0.26",
3
+ "version": "1.0.28",
4
4
  "description": "Type-safe, AI-driven SDK for building modern web applications with role-based access control",
5
5
  "author": "Ramprasad",
6
6
  "license": "MIT",