@madewithremy/admin 0.1.17 → 0.1.19

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/index.d.ts CHANGED
@@ -2591,6 +2591,20 @@ interface MoveParams {
2591
2591
  placement: {
2592
2592
  resourceId: string;
2593
2593
  } | 'shared';
2594
+ /**
2595
+ * Start the copy over instead of resuming a move already under way to the
2596
+ * same target: fresh chains cut at the target's current count, progress so
2597
+ * far discarded (points already copied are written again, harmlessly).
2598
+ */
2599
+ restart?: boolean;
2600
+ /**
2601
+ * Parallel chains to copy with, instead of the target size's default (XL 32,
2602
+ * Large 16, Medium 8, Small 4; max 128). The platform runs eight chains per
2603
+ * worker, so this is the worker count times eight. Takes effect when the
2604
+ * copy's windows are cut: with a move already under way, pair it with
2605
+ * `restart`.
2606
+ */
2607
+ chains?: number;
2594
2608
  }
2595
2609
  /**
2596
2610
  * Move a data source between placements: shared → dedicated, dedicated →
package/dist/index.js CHANGED
@@ -743,7 +743,9 @@ function create(ctx, params) {
743
743
  function move(ctx, params) {
744
744
  return call(ctx, "POST", `${base(ctx.appId)}/move`, {
745
745
  slug: params.slug,
746
- placement: params.placement
746
+ placement: params.placement,
747
+ ...params.restart ? { restart: true } : {},
748
+ ...params.chains !== void 0 ? { chains: params.chains } : {}
747
749
  });
748
750
  }
749
751
  async function waitForMove(ctx, params) {