@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/index.mjs
CHANGED
|
@@ -14431,6 +14431,7 @@ var Environment = class _Environment {
|
|
|
14431
14431
|
import: async (records, options) => this.enqueueRecordImport(records, options),
|
|
14432
14432
|
listImports: async (status) => this.listRecordImports(status),
|
|
14433
14433
|
getImport: async (importId) => this.getRecordImport(importId),
|
|
14434
|
+
listImportItems: async (importId, status) => this.listRecordImportItems(importId, status),
|
|
14434
14435
|
getImportSummary: async () => this.getRecordImportSummary(),
|
|
14435
14436
|
cancelImport: async (importId) => this.cancelRecordImport(importId),
|
|
14436
14437
|
getAwaitingCount: async () => this.getAwaitingRecordCount()
|
|
@@ -15609,6 +15610,15 @@ var Environment = class _Environment {
|
|
|
15609
15610
|
`/control/record-imports/${importId}`
|
|
15610
15611
|
);
|
|
15611
15612
|
}
|
|
15613
|
+
/**
|
|
15614
|
+
* List the individual records persisted for one asynchronous import. This
|
|
15615
|
+
* makes terminal import failures diagnosable without database access.
|
|
15616
|
+
*/
|
|
15617
|
+
async listRecordImportItems(importId, status) {
|
|
15618
|
+
const suffix = status ? `?status=${encodeURIComponent(status)}` : "";
|
|
15619
|
+
const response = await this.controlPlaneRequest(`/control/record-imports/${importId}/items${suffix}`);
|
|
15620
|
+
return Array.isArray(response.items) ? response.items : [];
|
|
15621
|
+
}
|
|
15612
15622
|
/**
|
|
15613
15623
|
* Cancel a queued/background record import.
|
|
15614
15624
|
*/
|