@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.
@@ -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
  */