@pdpp/cli 0.5.0 → 0.6.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdpp/cli",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Command-line tools for PDPP providers.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -174,6 +174,7 @@ const NEXT_STEP_DETAIL_KEYS = [
174
174
  ['enrollment_code', 'enrollment code'],
175
175
  ['local_binding_name', 'local binding name'],
176
176
  ['capture_endpoint', 'capture endpoint'],
177
+ ['upload_endpoint', 'upload endpoint'],
177
178
  ['authorization_url', 'authorization url'],
178
179
  ['runbook_path', 'runbook'],
179
180
  ['expires_at', 'expires'],
@@ -17,6 +17,7 @@ function projectSummaryRow(summary) {
17
17
  const schedule = summary?.schedule || null;
18
18
  const lastRun = summary?.last_run || null;
19
19
  const lastSuccess = summary?.last_successful_run || null;
20
+ const latestBatch = summary?.acquisition_coverage?.latest_batch || null;
20
21
  const dominantCondition = findConditionById(health.conditions, health.dominant_condition_id);
21
22
  return {
22
23
  connection_id: summary?.connection_id ?? null,
@@ -47,6 +48,19 @@ function projectSummaryRow(summary) {
47
48
  last_run_status: lastRun?.status ?? null,
48
49
  last_success_at: health.last_success_at ?? lastSuccess?.last_at ?? null,
49
50
  next_attempt_at: health.next_attempt_at ?? schedule?.next_due_at ?? null,
51
+ latest_acquisition_batch_id: latestBatch?.batch_id ?? null,
52
+ latest_acquisition_status: latestBatch?.status ?? null,
53
+ latest_acquisition_method: latestBatch?.acquisition_method ?? null,
54
+ latest_acquisition_format: latestBatch?.detected_format ?? null,
55
+ latest_acquisition_file: latestBatch?.uploaded_file_name ?? null,
56
+ latest_acquisition_start: latestBatch?.date_range?.start ?? null,
57
+ latest_acquisition_end: latestBatch?.date_range?.end ?? null,
58
+ latest_acquisition_parsed: latestBatch?.parsed_count ?? null,
59
+ latest_acquisition_accepted: latestBatch?.accepted_count ?? null,
60
+ latest_acquisition_duplicates: latestBatch?.duplicate_count ?? null,
61
+ latest_acquisition_skipped: latestBatch?.skipped_count ?? null,
62
+ latest_acquisition_failed: latestBatch?.failed_count ?? null,
63
+ latest_acquisition_warnings: Array.isArray(latestBatch?.warnings) ? latestBatch.warnings.length : 0,
50
64
  };
51
65
  }
52
66
 
@@ -128,6 +142,10 @@ function projectSummaryTableRow(row) {
128
142
  reason_code: row.reason_code,
129
143
  dominant_condition_reason: row.dominant_condition_reason,
130
144
  next_action_reason: row.next_action_reason,
145
+ latest_acquisition_status: row.latest_acquisition_status,
146
+ latest_acquisition_method: row.latest_acquisition_method,
147
+ latest_acquisition_accepted: row.latest_acquisition_accepted,
148
+ latest_acquisition_end: row.latest_acquisition_end,
131
149
  last_success_at: row.last_success_at,
132
150
  next_attempt_at: row.next_attempt_at,
133
151
  };