@madewithremy/admin 0.1.15 → 0.1.16

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
@@ -2888,6 +2888,11 @@ declare function resume$1(ctx: AdminContext, params: JobIdParams & {
2888
2888
  /** Embed at the provider's priority tier from here on (1.5x the embedding price). */
2889
2889
  priority?: boolean;
2890
2890
  }): Promise<DataSourceJobResult>;
2891
+ /**
2892
+ * Run a finished job's failed batches again, after fixing what failed them.
2893
+ * The job goes back to `running`; `nothing_to_retry` when none failed.
2894
+ */
2895
+ declare function retry(ctx: AdminContext, params: JobIdParams): Promise<DataSourceJobResult>;
2891
2896
  /** End the job. Documents already indexed stay. */
2892
2897
  declare function cancel(ctx: AdminContext, params: JobIdParams): Promise<DataSourceJobResult>;
2893
2898
  interface WaitParams$1 {
@@ -2943,12 +2948,13 @@ declare const dataSourceJobs_approve: typeof approve;
2943
2948
  declare const dataSourceJobs_cancel: typeof cancel;
2944
2949
  declare const dataSourceJobs_describeProgress: typeof describeProgress;
2945
2950
  declare const dataSourceJobs_pause: typeof pause;
2951
+ declare const dataSourceJobs_retry: typeof retry;
2946
2952
  declare const dataSourceJobs_start: typeof start;
2947
2953
  declare const dataSourceJobs_uploadManifest: typeof uploadManifest;
2948
2954
  declare const dataSourceJobs_waitForJob: typeof waitForJob;
2949
2955
  declare const dataSourceJobs_waitForPlan: typeof waitForPlan;
2950
2956
  declare namespace dataSourceJobs {
2951
- export { DEFAULT_WAIT_TIMEOUT_MS$2 as DEFAULT_WAIT_TIMEOUT_MS, type dataSourceJobs_JobIdParams as JobIdParams, type ListParams$1 as ListParams, type dataSourceJobs_StartParams as StartParams, type dataSourceJobs_UploadManifestParams as UploadManifestParams, type WaitParams$1 as WaitParams, type dataSourceJobs_WaitResult as WaitResult, dataSourceJobs_approve as approve, dataSourceJobs_cancel as cancel, dataSourceJobs_describeProgress as describeProgress, get$7 as get, list$7 as list, dataSourceJobs_pause as pause, resume$1 as resume, dataSourceJobs_start as start, dataSourceJobs_uploadManifest as uploadManifest, dataSourceJobs_waitForJob as waitForJob, dataSourceJobs_waitForPlan as waitForPlan };
2957
+ export { DEFAULT_WAIT_TIMEOUT_MS$2 as DEFAULT_WAIT_TIMEOUT_MS, type dataSourceJobs_JobIdParams as JobIdParams, type ListParams$1 as ListParams, type dataSourceJobs_StartParams as StartParams, type dataSourceJobs_UploadManifestParams as UploadManifestParams, type WaitParams$1 as WaitParams, type dataSourceJobs_WaitResult as WaitResult, dataSourceJobs_approve as approve, dataSourceJobs_cancel as cancel, dataSourceJobs_describeProgress as describeProgress, get$7 as get, list$7 as list, dataSourceJobs_pause as pause, resume$1 as resume, dataSourceJobs_retry as retry, dataSourceJobs_start as start, dataSourceJobs_uploadManifest as uploadManifest, dataSourceJobs_waitForJob as waitForJob, dataSourceJobs_waitForPlan as waitForPlan };
2952
2958
  }
2953
2959
 
2954
2960
  /**
package/dist/index.js CHANGED
@@ -871,6 +871,7 @@ __export(dataSourceJobs_exports, {
871
871
  list: () => list4,
872
872
  pause: () => pause,
873
873
  resume: () => resume,
874
+ retry: () => retry,
874
875
  start: () => start,
875
876
  uploadManifest: () => uploadManifest,
876
877
  waitForJob: () => waitForJob,
@@ -947,6 +948,13 @@ function resume(ctx, params) {
947
948
  controlBody(params)
948
949
  );
949
950
  }
951
+ function retry(ctx, params) {
952
+ return call(
953
+ ctx,
954
+ "POST",
955
+ `${base2(ctx.appId)}/${encodeURIComponent(params.id)}/retry`
956
+ );
957
+ }
950
958
  function cancel(ctx, params) {
951
959
  return call(
952
960
  ctx,