@granular-software/sdk 0.4.53 → 0.4.54
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/agent-evals.d.mts +1 -1
- package/dist/agent-evals.d.ts +1 -1
- package/dist/agent-evals.js +10 -0
- package/dist/agent-evals.js.map +1 -1
- package/dist/agent-evals.mjs +10 -0
- package/dist/agent-evals.mjs.map +1 -1
- package/dist/cli/index.js +13 -2
- package/dist/{client-CfTDojJF.d.mts → client-BKde5VzV.d.ts} +8 -1
- package/dist/{client-DcRzwuGp.d.ts → client-DL4S9uRc.d.mts} +8 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/agent-evals.mjs
CHANGED
|
@@ -14336,6 +14336,7 @@ var Environment = class _Environment {
|
|
|
14336
14336
|
import: async (records, options) => this.enqueueRecordImport(records, options),
|
|
14337
14337
|
listImports: async (status) => this.listRecordImports(status),
|
|
14338
14338
|
getImport: async (importId) => this.getRecordImport(importId),
|
|
14339
|
+
listImportItems: async (importId, status) => this.listRecordImportItems(importId, status),
|
|
14339
14340
|
getImportSummary: async () => this.getRecordImportSummary(),
|
|
14340
14341
|
cancelImport: async (importId) => this.cancelRecordImport(importId),
|
|
14341
14342
|
getAwaitingCount: async () => this.getAwaitingRecordCount()
|
|
@@ -15514,6 +15515,15 @@ var Environment = class _Environment {
|
|
|
15514
15515
|
`/control/record-imports/${importId}`
|
|
15515
15516
|
);
|
|
15516
15517
|
}
|
|
15518
|
+
/**
|
|
15519
|
+
* List the individual records persisted for one asynchronous import. This
|
|
15520
|
+
* makes terminal import failures diagnosable without database access.
|
|
15521
|
+
*/
|
|
15522
|
+
async listRecordImportItems(importId, status) {
|
|
15523
|
+
const suffix = status ? `?status=${encodeURIComponent(status)}` : "";
|
|
15524
|
+
const response = await this.controlPlaneRequest(`/control/record-imports/${importId}/items${suffix}`);
|
|
15525
|
+
return Array.isArray(response.items) ? response.items : [];
|
|
15526
|
+
}
|
|
15517
15527
|
/**
|
|
15518
15528
|
* Cancel a queued/background record import.
|
|
15519
15529
|
*/
|