@madewithremy/admin 0.1.10 → 0.1.11
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 +8 -2
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/prod.js +28 -8
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2743,11 +2743,17 @@ declare function get$7(ctx: AdminContext, params: JobIdParams): Promise<DataSour
|
|
|
2743
2743
|
* `plan_requires_dedicated` (422), `plan_exceeds_capacity` (422),
|
|
2744
2744
|
* `insufficient_credits` (402).
|
|
2745
2745
|
*/
|
|
2746
|
-
declare function approve(ctx: AdminContext, params: JobIdParams
|
|
2746
|
+
declare function approve(ctx: AdminContext, params: JobIdParams & {
|
|
2747
|
+
/** Batches in flight from here on (max 128); the plan was made at the job's current value. */
|
|
2748
|
+
concurrency?: number;
|
|
2749
|
+
}): Promise<DataSourceJobResult>;
|
|
2747
2750
|
/** Stop dispatching batches; the ones in flight finish. */
|
|
2748
2751
|
declare function pause(ctx: AdminContext, params: JobIdParams): Promise<DataSourceJobResult>;
|
|
2749
2752
|
/** Continue from the checkpoint; failed batches with attempts left are retried. */
|
|
2750
|
-
declare function resume$1(ctx: AdminContext, params: JobIdParams
|
|
2753
|
+
declare function resume$1(ctx: AdminContext, params: JobIdParams & {
|
|
2754
|
+
/** Batches in flight from here on (max 128). */
|
|
2755
|
+
concurrency?: number;
|
|
2756
|
+
}): Promise<DataSourceJobResult>;
|
|
2751
2757
|
/** End the job. Documents already indexed stay. */
|
|
2752
2758
|
declare function cancel(ctx: AdminContext, params: JobIdParams): Promise<DataSourceJobResult>;
|
|
2753
2759
|
interface WaitParams$1 {
|
package/dist/index.js
CHANGED
|
@@ -856,7 +856,8 @@ function approve(ctx, params) {
|
|
|
856
856
|
return call(
|
|
857
857
|
ctx,
|
|
858
858
|
"POST",
|
|
859
|
-
`${base2(ctx.appId)}/${encodeURIComponent(params.id)}/approve
|
|
859
|
+
`${base2(ctx.appId)}/${encodeURIComponent(params.id)}/approve`,
|
|
860
|
+
params.concurrency !== void 0 ? { concurrency: params.concurrency } : void 0
|
|
860
861
|
);
|
|
861
862
|
}
|
|
862
863
|
function pause(ctx, params) {
|
|
@@ -870,7 +871,8 @@ function resume(ctx, params) {
|
|
|
870
871
|
return call(
|
|
871
872
|
ctx,
|
|
872
873
|
"POST",
|
|
873
|
-
`${base2(ctx.appId)}/${encodeURIComponent(params.id)}/resume
|
|
874
|
+
`${base2(ctx.appId)}/${encodeURIComponent(params.id)}/resume`,
|
|
875
|
+
params.concurrency !== void 0 ? { concurrency: params.concurrency } : void 0
|
|
874
876
|
);
|
|
875
877
|
}
|
|
876
878
|
function cancel(ctx, params) {
|