@rodrigocoliveira/agno-client 1.1.0 → 1.1.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/index.js +6 -3
- package/dist/index.js.map +4 -4
- package/dist/index.mjs +6 -3
- package/dist/index.mjs.map +4 -4
- package/dist/managers/approval-manager.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1471,7 +1471,10 @@ class ApprovalManager {
|
|
|
1471
1471
|
const response = await fetch(url.toString(), { headers });
|
|
1472
1472
|
if (!response.ok) {
|
|
1473
1473
|
if (response.status === 404) {
|
|
1474
|
-
return {
|
|
1474
|
+
return {
|
|
1475
|
+
data: [],
|
|
1476
|
+
meta: { page: 1, limit: 100, total_pages: 0, total_count: 0, search_time_ms: 0 }
|
|
1477
|
+
};
|
|
1475
1478
|
}
|
|
1476
1479
|
throw new Error(`Failed to fetch approvals: ${response.statusText}`);
|
|
1477
1480
|
}
|
|
@@ -3540,7 +3543,7 @@ class AgnoClient extends import_eventemitter3.default {
|
|
|
3540
3543
|
const headers = this.configManager.buildRequestHeaders();
|
|
3541
3544
|
return this.approvalManager.fetchApprovals(config.endpoint, headers, queryParams, params);
|
|
3542
3545
|
});
|
|
3543
|
-
this.state.approvals = response.
|
|
3546
|
+
this.state.approvals = response.data;
|
|
3544
3547
|
this.emit("state:change", this.getState());
|
|
3545
3548
|
return response;
|
|
3546
3549
|
}
|
|
@@ -3714,4 +3717,4 @@ class AgnoClient extends import_eventemitter3.default {
|
|
|
3714
3717
|
// src/index.ts
|
|
3715
3718
|
var import_agno_types3 = require("@rodrigocoliveira/agno-types");
|
|
3716
3719
|
|
|
3717
|
-
//# debugId=
|
|
3720
|
+
//# debugId=10610E82A13C608464756E2164756E21
|