@madewithremy/admin 0.1.16 → 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 +12 -6
- 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 →
|
|
@@ -4675,16 +4681,16 @@ interface InfraResource {
|
|
|
4675
4681
|
*/
|
|
4676
4682
|
progress: OperationProgress | null;
|
|
4677
4683
|
/**
|
|
4678
|
-
* What the sources placed here take on the instance
|
|
4679
|
-
* chunk counts at their dimensions,
|
|
4680
|
-
*
|
|
4681
|
-
*
|
|
4684
|
+
* What the sources placed here take on the instance, estimated from their
|
|
4685
|
+
* chunk counts at their dimensions, against what the size can hold
|
|
4686
|
+
* (`usableDiskBytes`). `storedBytes` is the vectors and payload the instance
|
|
4687
|
+
* itself reports (null until it has); the indexes and WAL sit on top of it,
|
|
4688
|
+
* so it runs under the estimate. Null when the offering is unknown.
|
|
4682
4689
|
*/
|
|
4683
4690
|
footprint: {
|
|
4684
4691
|
chunks: number;
|
|
4685
4692
|
estimatedDiskBytes: number;
|
|
4686
|
-
|
|
4687
|
-
measuredRamBytes: number | null;
|
|
4693
|
+
storedBytes: number | null;
|
|
4688
4694
|
measuredAt: string | null;
|
|
4689
4695
|
usableDiskBytes: number;
|
|
4690
4696
|
} | null;
|
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) {
|