@madewithremy/admin 0.1.17 → 0.1.18
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 +6 -0
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/prod.js +12 -6
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2591,6 +2591,12 @@ 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;
|
|
2594
2600
|
}
|
|
2595
2601
|
/**
|
|
2596
2602
|
* Move a data source between placements: shared → dedicated, dedicated →
|
package/dist/index.js
CHANGED
|
@@ -743,7 +743,8 @@ 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 } : {}
|
|
747
748
|
});
|
|
748
749
|
}
|
|
749
750
|
async function waitForMove(ctx, params) {
|