@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 +5 -3
- package/docs/useAuth.md +1 -1
- package/package.json +1 -1
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
|
-
|
|
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
|
-
|
|
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(
|
|
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