@withgateway/sdk 0.2.1 → 0.2.2

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.
@@ -2635,14 +2635,19 @@ async function importLocalWorldData(dir, rows, opts, creds) {
2635
2635
  files: readWorldFiles(dir),
2636
2636
  rows,
2637
2637
  mode: opts.mode ?? "append",
2638
+ ...opts.merge && opts.merge !== "upsert" ? { merge: opts.merge } : {},
2638
2639
  ...opts.redact && opts.redact !== "off" ? { redact: opts.redact } : {}
2639
2640
  });
2640
2641
  if (res.files?.length) writeWorldFiles(dir, res.files);
2641
- if (res.changed) dropBuildOutputs(dir);
2642
+ const dropped = res.changed ? dropBuildOutputs(dir) : [];
2642
2643
  return {
2643
2644
  kind: res.kind ?? "unknown",
2644
2645
  entity_counts: res.entity_counts ?? {},
2645
- changed: Boolean(res.changed)
2646
+ changed: Boolean(res.changed),
2647
+ ...dropped.length ? {
2648
+ dropped_build_outputs: dropped,
2649
+ next: `gateway worlds schema compile ${dir} # rebuilds the snapshots from the imported data`
2650
+ } : {}
2646
2651
  };
2647
2652
  }
2648
2653
  function dropBuildOutputs(dir) {