@nivaro/react 0.3.141 → 0.3.143

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.
@@ -10,7 +10,7 @@ import { noteReplayIdle as Me, createReplayIdleState as Ne, REPLAY_IDLE_RESTART_
10
10
  import { noteReplayEvent as Ue, createReplayCheckoutState as We } from "../shared/lib/replay-checkout.js";
11
11
  import { instrumentConsole as He, instrumentRequests as Ke, redactSecrets as $e } from "../shared/lib/replay-context.js";
12
12
  import { instrumentSocket as Be } from "../shared/lib/replay-socket.js";
13
- const ze = "nivaro-react@0.3.141", V = 1e4, Ye = 150, xe = 3e3, je = 600, Ge = (o) => `nvr_replay_resume${o ? `:${o}` : ""}`, X = () => typeof navigator > "u" || navigator.onLine !== !1;
13
+ const ze = "nivaro-react@0.3.143", V = 1e4, Ye = 150, xe = 3e3, je = 600, Ge = (o) => `nvr_replay_resume${o ? `:${o}` : ""}`, X = () => typeof navigator > "u" || navigator.onLine !== !1;
14
14
  function Je(o) {
15
15
  return typeof o.url != "string" || typeof fetch != "function" ? null : (f, u) => {
16
16
  const l = typeof o.getToken == "function" ? o.getToken() : void 0, d = { "Content-Type": "application/json" };
package/dist/index.d.ts CHANGED
@@ -5777,7 +5777,10 @@ export declare interface ImportJob {
5777
5777
  file_name: string;
5778
5778
  column_map: Record<string, string> | null;
5779
5779
  duplicate_strategy: string;
5780
+ /** The match fields as stored: one name or a comma list (see match_fields). */
5780
5781
  id_field: string | null;
5782
+ /** Fields a row is matched to an existing record on — all must agree. Empty = always create. */
5783
+ match_fields?: string[];
5781
5784
  status: ImportJobStatus;
5782
5785
  total_rows: number | null;
5783
5786
  processed_rows: number | null;
@@ -5798,7 +5801,8 @@ export declare interface ImportJob {
5798
5801
  through_items?: boolean;
5799
5802
  }
5800
5803
 
5801
- export declare type ImportJobStatus = 'pending' | 'processing' | 'complete' | 'failed';
5804
+ /** `cancelled` — stopped from the console (POST /imports/:id/cancel) before it finished. */
5805
+ export declare type ImportJobStatus = 'pending' | 'processing' | 'complete' | 'failed' | 'cancelled';
5802
5806
 
5803
5807
  /** Result of `POST /staged-imports/preview` — the worker's own parse, run
5804
5808
  * against the file before anything is queued. */