@knkcs/importhub-ui 0.10.0 → 0.11.0

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.
@@ -21,6 +21,19 @@ declare interface ApiKey {
21
21
  createTime: string;
22
22
  }
23
23
 
24
+ /** One mediahub asset an Import moved into the folder mirroring its path. */
25
+ declare interface AssetMove {
26
+ /** The asset's key in mediahub, as the source spells it. */
27
+ key: string;
28
+ /**
29
+ * The folder paths it was moved from and to, from the workspace's root,
30
+ * joined by " / "; `from` is importhub's "(no folder)" for an asset filed
31
+ * nowhere.
32
+ */
33
+ from: string;
34
+ to: string;
35
+ }
36
+
24
37
  /** What moving a Mapping's draft to another Blueprint Release would lose. */
25
38
  declare interface BlueprintReleaseCheck {
26
39
  blueprintId: string;
@@ -246,6 +259,20 @@ declare interface Import {
246
259
  dryRun: boolean;
247
260
  /** Whether it runs drafts: a Dry Run started on them. Never for a real Import. */
248
261
  draft: boolean;
262
+ /**
263
+ * The Placeholder Assets it found in mediahub outside the folder mirroring
264
+ * their path and moved there, in the order moved
265
+ * (link-placeholder-assets-in-mediahub:AC7). `getImport` reads them;
266
+ * `listImports` leaves them empty, as they grow with the Source File.
267
+ */
268
+ assetMoves: AssetMove[];
269
+ /**
270
+ * When its Source File was deleted, as an ISO 8601 timestamp, and why, as
271
+ * importhub words it; both "" while it is kept. Re-run is offered only
272
+ * while it is kept (re-run-a-source-file).
273
+ */
274
+ sourceFileDeleteTime: string;
275
+ sourceFileDeletionReason: string;
249
276
  }
250
277
 
251
278
  /** What an Import has done (importhub.v1.ImportCounts). */
@@ -336,6 +363,13 @@ declare interface ImporthubClient {
336
363
  /** Asks a queued or running Import to stop; returns it as it is now. */
337
364
  cancelImport(id: string): Promise<Import>;
338
365
  listItemProblems(importId: string, filter: ItemProblemsFilter): Promise<ItemProblemsPage>;
366
+ /**
367
+ * Starts a new Import of the same Source File on the latest Releases, its
368
+ * other inputs copied (re-run-a-source-file:AC1); a re-run of a Dry Run is
369
+ * a Dry Run. Throws StartRefusedError, with importhub's reason, as
370
+ * `startImport` does, and once the Source File is deleted.
371
+ */
372
+ rerunImport(id: string): Promise<Import>;
339
373
  /**
340
374
  * Queues a Dry Run: an Import with the same inputs that writes nothing
341
375
  * and opens no Change Set (dry-run-an-import:AC1, AC2). Throws
@@ -435,6 +469,11 @@ declare interface ItemProblem {
435
469
  field: string;
436
470
  /** Why, as importhub words it. */
437
471
  reason: string;
472
+ /**
473
+ * The Content's display name, as its Mapping's display-name template makes
474
+ * it; "" without one, or when the problem is about no one Content.
475
+ */
476
+ displayName: string;
438
477
  /**
439
478
  * Set when it is a reference the Import could not resolve (CONTEXT.md
440
479
  * "Pending Reference"): what it names. Its holder is the Content its
@@ -1,7 +1,7 @@
1
1
  import { jsx as e, jsxs as a, Fragment as z } from "react/jsx-runtime";
2
2
  import { useState as N, useEffect as ye, useId as He, useMemo as U } from "react";
3
3
  import { useTranslation as E } from "react-i18next";
4
- import { I, l as O, m as te, u as $e, i as Te, n as we, F as W, M as ze } from "./mapping-page-Bl2rA1SR.js";
4
+ import { I, m as O, n as te, u as $e, i as Te, o as we, F as W, M as ze } from "./mapping-page-CABgzLlj.js";
5
5
  import { Button as w, StatusBadge as Se, BaseSelect as ke, IconButton as X } from "@knkcs/anker/atoms";
6
6
  import { Card as v, NavList as Q, UploadDropZone as Ae, CodeCell as Me, TruncatedTextCell as se, DataTable as Re } from "@knkcs/anker/components";
7
7
  import { Stack as b, Text as h, Textarea as ve, Alert as $, Box as x, List as de, HStack as R, Heading as Oe, Code as Le, Checkbox as De, Center as _e, Grid as le, Separator as ce, RadioGroup as Ve, Radio as je } from "@knkcs/anker/primitives";