@knkcs/importhub-ui 0.8.0 → 0.10.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.
- package/CHANGELOG.md +14 -0
- package/README.md +7 -6
- package/dist/importhub-client-BzOVIXA4.js +46 -0
- package/dist/importhub-client-BzOVIXA4.js.map +1 -0
- package/dist/index.d.ts +446 -5
- package/dist/index.js +1638 -1240
- package/dist/index.js.map +1 -1
- package/dist/mapping-editor.d.ts +157 -1
- package/dist/mapping-editor.js +613 -397
- package/dist/mapping-editor.js.map +1 -1
- package/dist/mapping-page-Bl2rA1SR.js +1090 -0
- package/dist/mapping-page-Bl2rA1SR.js.map +1 -0
- package/dist/testing.d.ts +167 -2
- package/dist/testing.js +695 -477
- package/dist/testing.js.map +1 -1
- package/package.json +1 -1
- package/dist/importhub-client-BS6F4DW2.js +0 -31
- package/dist/importhub-client-BS6F4DW2.js.map +0 -1
- package/dist/mapping-page-tIHPNu7C.js +0 -1078
- package/dist/mapping-page-tIHPNu7C.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
import { toJson as
|
|
2
|
-
import { file_google_protobuf_timestamp as
|
|
3
|
-
import { createClient as
|
|
4
|
-
import { createConnectTransport as
|
|
5
|
-
import { serviceDesc as
|
|
6
|
-
import { S as
|
|
7
|
-
import { jsxs as b, jsx as t, Fragment as
|
|
8
|
-
import { Link as
|
|
9
|
-
import { ExternalLink as
|
|
10
|
-
import { useTranslation as
|
|
11
|
-
import { I as
|
|
12
|
-
import { h as
|
|
13
|
-
import { EmptyState as
|
|
14
|
-
import { useHostIdentity as
|
|
15
|
-
import { IndexPageTemplate as
|
|
16
|
-
import { useQuery as
|
|
17
|
-
import { StatusBadgeCell as
|
|
18
|
-
import { useCallback as
|
|
19
|
-
import { InputField as
|
|
20
|
-
import { useForm as
|
|
21
|
-
import { Link as
|
|
22
|
-
import { zodResolver as
|
|
23
|
-
import { FieldKitProvider as
|
|
24
|
-
import { specToZodSchema as
|
|
25
|
-
const
|
|
26
|
-
var
|
|
27
|
-
const Lt = /* @__PURE__ */ $("Ch1pbXBvcnRodWIvdjEvZW50aXR5X3NldC5wcm90bxIMaW1wb3J0aHViLnYxIugBCglFbnRpdHlTZXQSCgoCaWQYASABKAkSEwoLcmV2aXNpb25faWQYAiABKAkSLwoHY29udGVudBgDIAEoCzIeLmltcG9ydGh1Yi52MS5FbnRpdHlTZXRDb250ZW50EigKCHZhbGlkaXR5GAQgASgLMhYuaW1wb3J0aHViLnYxLlZhbGlkaXR5Ei8KBXN0YXRlGAUgASgLMiAuaW1wb3J0aHViLnYxLkNvbmZpZ3VyYXRpb25TdGF0ZRIuCgpjcmVhdGVkX2F0GAYgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCKmAQoQRW50aXR5U2V0Q29udGVudBIMCgRuYW1lGAEgASgJEhMKC2Rlc2NyaXB0aW9uGAIgASgJEj4KCGVudGl0aWVzGAMgAygLMiwuaW1wb3J0aHViLnYxLkVudGl0eVNldENvbnRlbnQuRW50aXRpZXNFbnRyeRovCg1FbnRpdGllc0VudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEiFwoVTGlzdEVudGl0eVNldHNSZXF1ZXN0IkYKFkxpc3RFbnRpdHlTZXRzUmVzcG9uc2USLAoLZW50aXR5X3NldHMYASADKAsyFy5pbXBvcnRodWIudjEuRW50aXR5U2V0IjYKE0dldEVudGl0eVNldFJlcXVlc3QSCgoCaWQYASABKAkSEwoLcmV2aXNpb25faWQYAiABKAkiQwoUR2V0RW50aXR5U2V0UmVzcG9uc2USKwoKZW50aXR5X3NldBgBIAEoCzIXLmltcG9ydGh1Yi52MS5FbnRpdHlTZXQiSQoWQ3JlYXRlRW50aXR5U2V0UmVxdWVzdBIvCgdjb250ZW50GAEgASgLMh4uaW1wb3J0aHViLnYxLkVudGl0eVNldENvbnRlbnQiRgoXQ3JlYXRlRW50aXR5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WjdnaXRodWIuY29tL2tua2NzL2ltcG9ydGh1Yi9nZW4vaW1wb3J0aHViL3YxO2ltcG9ydGh1YnYxYgZwcm90bzM", [_e, oe, Re]), kt = /* @__PURE__ */ ce(it, 1), ut = /* @__PURE__ */ ce(it, 2), Mn = /* @__PURE__ */ re(it, 0), Qt = /* @__PURE__ */ $("ChppbXBvcnRodWIvdjEvbWFwcGluZy5wcm90bxIMaW1wb3J0aHViLnYxIpYCCgdNYXBwaW5nEgoKAmlkGAEgASgJEhMKC3JldmlzaW9uX2lkGAIgASgJEi0KB2NvbnRlbnQYAyABKAsyHC5pbXBvcnRodWIudjEuTWFwcGluZ0NvbnRlbnQSKAoIdmFsaWRpdHkYBCABKAsyFi5pbXBvcnRodWIudjEuVmFsaWRpdHkSLwoFc3RhdGUYBSABKAsyIC5pbXBvcnRodWIudjEuQ29uZmlndXJhdGlvblN0YXRlEi4KCmNyZWF0ZWRfYXQYBiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEjAKEGN1cnJlbnRfdmFsaWRpdHkYByABKAsyFi5pbXBvcnRodWIudjEuVmFsaWRpdHki0wUKDk1hcHBpbmdDb250ZW50EgwKBG5hbWUYASABKAkSEwoLZGVzY3JpcHRpb24YAiABKAkSFAoMYmx1ZXByaW50X2lkGAMgASgJEhwKFGJsdWVwcmludF9yZWxlYXNlX2lkGAQgASgJEhgKEGVsZW1lbnRfc2VsZWN0b3IYBSABKAkSKwoKc291cmNlX2tleRgGIAEoCzIXLmltcG9ydGh1Yi52MS5Tb3VyY2VLZXkSJwoGZmllbGRzGAcgAygLMhcuZ29vZ2xlLnByb3RvYnVmLlN0cnVjdBIxCg12ZXJzaW9uX21hdGNoGAggASgLMhouaW1wb3J0aHViLnYxLlZlcnNpb25NYXRjaBI7Cg92YWxpZGl0eV9wZXJpb2QYCSABKAsyIi5pbXBvcnRodWIudjEuVmFsaWRpdHlQZXJpb2RTb3VyY2USNQoMcmVsZWFzZV9zcGVjGAogAygLMh8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0ZJRUxEEAIybwoQUHJvY2Vzc29yU2VydmljZRJbCg5MaXN0UHJvY2Vzc29ycxIjLmltcG9ydGh1Yi52MS5MaXN0UHJvY2Vzc29yc1JlcXVlc3QaJC5pbXBvcnRodWIudjEuTGlzdFByb2Nlc3NvcnNSZXNwb25zZUI5WjdnaXRodWIuY29tL2tua2NzL2ltcG9ydGh1Yi9nZW4vaW1wb3J0aHViL3YxO2ltcG9ydGh1YnYxYgZwcm90bzM", [_e]);
|
|
30
|
-
var
|
|
31
|
-
const
|
|
32
|
-
function
|
|
33
|
-
return new Promise((
|
|
1
|
+
import { toJson as Ue, fromJson as In, create as Te } from "@bufbuild/protobuf";
|
|
2
|
+
import { file_google_protobuf_timestamp as ue, file_google_protobuf_struct as rt, timestampFromDate as An, timestampDate as En } from "@bufbuild/protobuf/wkt";
|
|
3
|
+
import { createClient as ce, ConnectError as Ge, Code as q } from "@connectrpc/connect";
|
|
4
|
+
import { createConnectTransport as Zn } from "@connectrpc/connect-web";
|
|
5
|
+
import { serviceDesc as me, fileDesc as ie, messageDesc as ge } from "@bufbuild/protobuf/codegenv2";
|
|
6
|
+
import { S as Gn, R as Xn, M as Bn, C as Wn, N as nt, A as Et, D as fn } from "./importhub-client-BzOVIXA4.js";
|
|
7
|
+
import { jsxs as b, jsx as t, Fragment as ae } from "react/jsx-runtime";
|
|
8
|
+
import { Link as ct, Box as T, Spinner as Cn, Stack as X, Alert as C, HStack as O, Text as H, Progress as Lt, List as Zt, NativeSelect as lt, Center as st, Grid as Qt, MenuRoot as vn, MenuTrigger as Jn, MenuContent as wn, MenuItem as Nn } from "@knkcs/anker/primitives";
|
|
9
|
+
import { ExternalLink as Yn, Blocks as Un, Ampersand as Fn, Waypoints as Kn, FileCog as kn, FileUp as xn, Trash2 as Ze, KeyRound as Ln, Plus as be, CircleStop as Qn, Play as zt, ArrowUp as zn, ArrowDown as Mn, Settings2 as Dn, Lock as Hn, FlaskConical as Tn } from "lucide-react";
|
|
10
|
+
import { useTranslation as V } from "react-i18next";
|
|
11
|
+
import { I as h, u as x, i as I, L as M, a as Re, b as ye, c as Ve, d as Mt, e as Dt, C as Ht, V as Tt, D as Pt, R as jt, f as dt, r as Ot, M as Pn, g as jn } from "./mapping-page-Bl2rA1SR.js";
|
|
12
|
+
import { h as ka, j as xa, S as La, k as Qa } from "./mapping-page-Bl2rA1SR.js";
|
|
13
|
+
import { EmptyState as pt, StatusBadge as Xe, ClipboardInput as On, Button as W, SearchInput as qt, IconButton as Fe } from "@knkcs/anker/atoms";
|
|
14
|
+
import { useHostIdentity as v } from "@knkcs/anker/host";
|
|
15
|
+
import { IndexPageTemplate as oe, usePageRail as ut, DetailPageTemplate as Q } from "@knkcs/anker/templates";
|
|
16
|
+
import { useQuery as k, useQueryClient as $, useMutation as re, useInfiniteQuery as mt } from "@tanstack/react-query";
|
|
17
|
+
import { StatusBadgeCell as Qe, Modal as Be, TruncatedTextCell as w, CodeCell as ke, IdentityCell as qn, DateCell as at, ActionCell as _n, DataTable as te, ContextRail as D, Card as N, DescriptionList as Y, SlugCell as gt, Toolbar as pe, LinkCell as ze, CountCell as $n, NumberCell as Pe, UploadDropZone as el } from "@knkcs/anker/components";
|
|
18
|
+
import { useCallback as tl, useEffect as P, useState as U, useMemo as z, useRef as bt } from "react";
|
|
19
|
+
import { InputField as _, DatePickerField as it, TextareaField as Rt, BaseSelectField as xe, SwitchField as Gt, RadioGroupField as Xt } from "@knkcs/anker/forms";
|
|
20
|
+
import { useForm as he, FormProvider as Se, useFieldArray as nl, useFormContext as _t, useWatch as ne } from "react-hook-form";
|
|
21
|
+
import { Link as $t } from "react-router";
|
|
22
|
+
import { zodResolver as ll } from "@hookform/resolvers/zod";
|
|
23
|
+
import { FieldKitProvider as al, SpecForm as Bt } from "@knkcs/fieldkit/renderer";
|
|
24
|
+
import { specToZodSchema as il, builtInFieldTypes as Wt } from "@knkcs/fieldkit/schema";
|
|
25
|
+
const ol = /* @__PURE__ */ ie("ChppbXBvcnRodWIvdjEv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FyaXNvbhINCgVmaWVsZBgBIAEoCRIzCgZzdGF0dXMYAiABKA4yIy5pbXBvcnRodWIudjEuRmllbGRDb21wYXJpc29uU3RhdHVzIiwKEEltcG9ydFByb2ZpbGVSZWYSCgoCaWQYASABKAkSDAoEbmFtZRgCIAEoCSJNChJDb25maWd1cmF0aW9uSW5Vc2USNwoPaW1wb3J0X3Byb2ZpbGVzGAEgAygLMh4uaW1wb3J0aHViLnYxLkltcG9ydFByb2ZpbGVSZWYq1AEKFUZpZWxkQ29tcGFyaXNvblN0YXR1cxInCiNGSUVMRF9DT01QQVJJU09OX1NUQVRVU19VTlNQRUNJRklFRBAAEiUKIUZJRUxEX0NPTVBBUklTT05fU1RBVFVTX1VOQ0hBTkdFRBABEiEKHUZJRUxEX0NPTVBBUklTT05fU1RBVFVTX0FEREVEEAISIwofRklFTERfQ09NUEFSSVNPTl9TVEFUVVNfUkVNT1ZFRBADEiMKH0ZJRUxEX0NPTVBBUklTT05fU1RBVFVTX0NIQU5HRUQQBEI5WjdnaXRodWIuY29tL2tua2NzL2ltcG9ydGh1Yi9nZW4vaW1wb3J0aHViL3YxO2ltcG9ydGh1YnYxYgZwcm90bzM", [ue]), cl = /* @__PURE__ */ ge(We, 0), sl = /* @__PURE__ */ ge(We, 7);
|
|
26
|
+
var se = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.UNCHANGED = 1] = "UNCHANGED", e[e.ADDED = 2] = "ADDED", e[e.REMOVED = 3] = "REMOVED", e[e.CHANGED = 4] = "CHANGED", e))(se || {});
|
|
27
|
+
const en = /* @__PURE__ */ ie("Ch1pbXBvcnRodWIvdjEvZW50aXR5X3NldC5wcm90bxIMaW1wb3J0aHViLnYxIugBCglFbnRpdHlTZXQSCgoCaWQYASABKAkSEwoLcmV2aXNpb25faWQYAiABKAkSLwoHY29udGVudBgDIAEoCzIeLmltcG9ydGh1Yi52MS5FbnRpdHlTZXRDb250ZW50EigKCHZhbGlkaXR5G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UNCHANGED = 6] = "UNCHANGED", e))(ee || {}), de = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.QUEUED = 1] = "QUEUED", e[e.READING = 2] = "READING", e[e.WRITING = 3] = "WRITING", e[e.ENDED = 4] = "ENDED", e))(de || {}), Ee = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.SUCCEEDED = 1] = "SUCCEEDED", e[e.SUCCEEDED_WITH_PROBLEMS = 2] = "SUCCEEDED_WITH_PROBLEMS", e[e.FAILED = 3] = "FAILED", e[e.CANCELLED = 4] = "CANCELLED", e))(Ee || {});
|
|
29
|
+
const ml = /* @__PURE__ */ me(ul, 0), yt = /* @__PURE__ */ ie("CiFpbXBvcnRodWIvdjEvaW1wb3J0X3Byb2ZpbGUucHJvdG8SDGltcG9ydGh1Yi52MSKiAgoNSW1wb3J0UHJvZmlsZRIKCgJpZBgBIAEoCRITCgtyZXZpc2lvbl9pZBgCIAEoCRIzCgdjb250ZW50GAMgASgLMiIuaW1wb3J0aHViLnYxLkltcG9ydFByb2ZpbGVDb250ZW50EigKCHZhbGlkaXR5GAQgASgLMhYuaW1wb3J0aHViLnYxLlZhbGlkaXR5Ei8KBXN0YXRlGAUgASgLMiAuaW1wb3J0aHViLnYxLkNvbmZpZ3VyYXRpb25TdGF0ZRIuCgpjcmVhdGVkX2F0GAYgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIwChBjdXJyZW50X3ZhbGlkaXR5GAcgASgLMhYuaW1wb3J0aHViLnYxLlZhbGlkaXR5IowCChRJbXBvcnRQcm9maWxlQ29udGVudBIMCgRuYW1lGAEgASgJEhMKC2Rlc2NyaXB0aW9uGAIgASgJEhUKDWVudGl0eV9zZXRfaWQYAyABKAkSMgoNcHJlcHJvY2Vzc29ycxgEIAMoCzIbLmltcG9ydGh1Yi52MS5Qcm9jZXNzb3JTdGVwEhMKC21hcHBpbmdfaWRzGAUgA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YAyABKA4yHS5pbXBvcnRodWIudjEuUHJvY2Vzc29yVGFyZ2V0EhMKC2Rlc2NyaXB0aW9uGAQgASgJEi4KDXNldHRpbmdzX3NwZWMYBSADKAsyFy5nb29nbGUucHJvdG9idWYuU3RydWN0KnMKDVByb2Nlc3NvcktpbmQSHgoaUFJPQ0VTU09SX0tJTkRfVU5TUEVDSUZJRUQQABIfChtQUk9DRVNTT1JfS0lORF9QUkVQUk9DRVNTT1IQARIhCh1QUk9DRVNTT1JfS0lORF9QT1NUX1BST0NFU1NPUhACKnsKD1Byb2Nlc3NvclRhcmdldBIgChxQUk9DRVNTT1JfVEFSR0VUX1VOU1BFQ0lGSUVEEAASIAocUFJPQ0VTU09SX1RBUkdFVF9TT1VSQ0VfRklMRRABEiQKIFBST0NFU1NPUl9UQVJHRVRfUklDSF9URVhUX0ZJRUxEEAIybwoQUHJvY2Vzc29yU2VydmljZRJbCg5MaXN0UHJvY2Vzc29ycxIjLmltcG9ydGh1Yi52MS5MaXN0UHJvY2Vzc29yc1JlcXVlc3QaJC5pbXBvcnRodWIudjEuTGlzdFByb2Nlc3NvcnNSZXNwb25zZUI5WjdnaXRodWIuY29tL2tua2NzL2ltcG9ydGh1Yi9nZW4vaW1wb3J0aHViL3YxO2ltcG9ydGh1YnYxYgZwcm90bzM", [rt]);
|
|
30
|
+
var ln = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.PREPROCESSOR = 1] = "PREPROCESSOR", e[e.POST_PROCESSOR = 2] = "POST_PROCESSOR", e))(ln || {}), an = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.SOURCE_FILE = 1] = "SOURCE_FILE", e[e.RICH_TEXT_FIELD = 2] = "RICH_TEXT_FIELD", e))(an || {});
|
|
31
|
+
const yl = /* @__PURE__ */ me(Rl, 0);
|
|
32
|
+
function Vl(e, n, l) {
|
|
33
|
+
return new Promise((a, r) => {
|
|
34
34
|
const s = new XMLHttpRequest();
|
|
35
|
-
s.open("PUT", e), s.setRequestHeader("x-ms-blob-type", "BlockBlob"), s.setRequestHeader("Content-Type", n.type || "application/xml"), s.upload.onprogress = (
|
|
36
|
-
|
|
35
|
+
s.open("PUT", e), s.setRequestHeader("x-ms-blob-type", "BlockBlob"), s.setRequestHeader("Content-Type", n.type || "application/xml"), s.upload.onprogress = (p) => {
|
|
36
|
+
p.lengthComputable && p.total > 0 && l(p.loaded / p.total);
|
|
37
37
|
}, s.onload = () => {
|
|
38
|
-
s.status >= 200 && s.status < 300 ? (l(1),
|
|
39
|
-
}, s.onerror = () =>
|
|
38
|
+
s.status >= 200 && s.status < 300 ? (l(1), a()) : r(new Error(`the upload failed: ${s.status} ${s.statusText}`));
|
|
39
|
+
}, s.onerror = () => r(new Error("the upload failed: the network is away")), s.send(n);
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
|
-
const
|
|
42
|
+
const fe = (e) => ({
|
|
43
43
|
valid: e?.valid ?? !1,
|
|
44
44
|
reasons: (e?.reasons ?? []).map((n) => ({ path: n.path, code: n.code, message: n.message }))
|
|
45
|
-
}),
|
|
45
|
+
}), ht = (e) => ({
|
|
46
46
|
draftRevisionId: e?.draftRevisionId ?? "",
|
|
47
47
|
draftDiffersFromRelease: e?.draftDiffersFromRelease ?? !0,
|
|
48
48
|
...e?.latestRelease ? { latestRelease: { id: e.latestRelease.id, number: e.latestRelease.number } } : {}
|
|
49
|
-
}),
|
|
49
|
+
}), Ct = (e) => ({
|
|
50
50
|
processor: e.processor,
|
|
51
51
|
settings: { ...e.settings ?? {} }
|
|
52
|
-
}),
|
|
52
|
+
}), vt = (e) => ({
|
|
53
53
|
processor: e.processor,
|
|
54
54
|
settings: e.settings
|
|
55
55
|
});
|
|
56
|
-
function
|
|
56
|
+
function ve(e) {
|
|
57
57
|
const n = e.content;
|
|
58
58
|
return {
|
|
59
59
|
id: e.id,
|
|
@@ -61,25 +61,25 @@ function he(e) {
|
|
|
61
61
|
name: n?.name ?? "",
|
|
62
62
|
description: n?.description ?? "",
|
|
63
63
|
entitySetId: n?.entitySetId ?? "",
|
|
64
|
-
preprocessors: (n?.preprocessors ?? []).map(
|
|
64
|
+
preprocessors: (n?.preprocessors ?? []).map(Ct),
|
|
65
65
|
mappingIds: [...n?.mappingIds ?? []],
|
|
66
|
-
postProcessors: (n?.postProcessors ?? []).map(
|
|
66
|
+
postProcessors: (n?.postProcessors ?? []).map(Ct),
|
|
67
67
|
autoPublish: n?.autoPublish ?? !1,
|
|
68
68
|
deleteSourceFileOnSuccess: n?.deleteSourceFileOnSuccess ?? !1
|
|
69
69
|
},
|
|
70
70
|
// What an Import would meet now, not only what was decided at the save
|
|
71
71
|
// (manage-import-profiles:AC6).
|
|
72
|
-
validity:
|
|
73
|
-
state:
|
|
72
|
+
validity: fe(e.currentValidity ?? e.validity),
|
|
73
|
+
state: ht(e.state)
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
|
-
const
|
|
76
|
+
const Jt = (e) => Te(tn, {
|
|
77
77
|
...e,
|
|
78
|
-
preprocessors: e.preprocessors.map((n) =>
|
|
79
|
-
postProcessors: e.postProcessors.map((n) =>
|
|
78
|
+
preprocessors: e.preprocessors.map((n) => Te(ft, vt(n))),
|
|
79
|
+
postProcessors: e.postProcessors.map((n) => Te(ft, vt(n)))
|
|
80
80
|
});
|
|
81
|
-
function
|
|
82
|
-
const n = e.content ?
|
|
81
|
+
function Je(e) {
|
|
82
|
+
const n = e.content ? Ue(Vt, e.content) : { name: "", blueprintId: "", blueprintReleaseId: "" };
|
|
83
83
|
return {
|
|
84
84
|
id: e.id,
|
|
85
85
|
content: {
|
|
@@ -88,12 +88,12 @@ function Ie(e) {
|
|
|
88
88
|
blueprintId: n.blueprintId ?? "",
|
|
89
89
|
blueprintReleaseId: n.blueprintReleaseId ?? ""
|
|
90
90
|
},
|
|
91
|
-
validity:
|
|
92
|
-
state:
|
|
91
|
+
validity: fe(e.currentValidity ?? e.validity),
|
|
92
|
+
state: ht(e.state)
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
|
-
const
|
|
96
|
-
function
|
|
95
|
+
const je = (e) => In(Vt, e, { ignoreUnknownFields: !1 });
|
|
96
|
+
function we(e) {
|
|
97
97
|
return {
|
|
98
98
|
id: e.id,
|
|
99
99
|
content: {
|
|
@@ -101,65 +101,95 @@ function Ae(e) {
|
|
|
101
101
|
description: e.content?.description ?? "",
|
|
102
102
|
entities: { ...e.content?.entities ?? {} }
|
|
103
103
|
},
|
|
104
|
-
validity:
|
|
105
|
-
state:
|
|
104
|
+
validity: fe(e.validity),
|
|
105
|
+
state: ht(e.state)
|
|
106
106
|
};
|
|
107
107
|
}
|
|
108
|
-
const
|
|
108
|
+
const le = (e) => e ? En(e).toISOString() : "", Ke = (e) => ({
|
|
109
109
|
id: e?.id ?? "",
|
|
110
110
|
number: e?.number ?? 0,
|
|
111
111
|
revisionId: e?.revisionId ?? "",
|
|
112
112
|
releasedBy: e?.releasedBy ?? "",
|
|
113
|
-
releasedAt:
|
|
114
|
-
}),
|
|
113
|
+
releasedAt: le(e?.releasedAt)
|
|
114
|
+
}), hl = (e) => ({
|
|
115
115
|
id: e.id,
|
|
116
116
|
savedBy: e.savedBy,
|
|
117
|
-
savedAt:
|
|
118
|
-
validity:
|
|
117
|
+
savedAt: le(e.savedAt),
|
|
118
|
+
validity: fe(e.validity),
|
|
119
119
|
restoredFromRevisionId: e.restoredFromRevisionId
|
|
120
|
-
}),
|
|
121
|
-
revisions: e.revisions.map(
|
|
122
|
-
releases: e.releases.map(
|
|
120
|
+
}), Oe = (e) => ({
|
|
121
|
+
revisions: e.revisions.map(hl),
|
|
122
|
+
releases: e.releases.map(Ke),
|
|
123
123
|
nextPageToken: e.nextPageToken
|
|
124
|
-
}),
|
|
125
|
-
[
|
|
126
|
-
[
|
|
127
|
-
[
|
|
128
|
-
[
|
|
129
|
-
[
|
|
130
|
-
},
|
|
124
|
+
}), Sl = {
|
|
125
|
+
[se.UNSPECIFIED]: "changed",
|
|
126
|
+
[se.UNCHANGED]: "unchanged",
|
|
127
|
+
[se.ADDED]: "added",
|
|
128
|
+
[se.REMOVED]: "removed",
|
|
129
|
+
[se.CHANGED]: "changed"
|
|
130
|
+
}, wt = (e, n) => ({
|
|
131
131
|
revisionId: e?.revisionId ?? "",
|
|
132
132
|
content: e?.content ? n(e.content) : {}
|
|
133
|
-
}),
|
|
134
|
-
from:
|
|
135
|
-
to:
|
|
136
|
-
fields: e.fields.map((l) => ({ field: l.field, status:
|
|
137
|
-
}),
|
|
138
|
-
[
|
|
139
|
-
[
|
|
140
|
-
[
|
|
141
|
-
[
|
|
142
|
-
[
|
|
143
|
-
},
|
|
144
|
-
[
|
|
145
|
-
[
|
|
146
|
-
[
|
|
147
|
-
[
|
|
148
|
-
},
|
|
133
|
+
}), qe = { useProtoFieldName: !0, alwaysEmitImplicit: !0 }, _e = (e, n) => ({
|
|
134
|
+
from: wt(e.from, n),
|
|
135
|
+
to: wt(e.to, n),
|
|
136
|
+
fields: e.fields.map((l) => ({ field: l.field, status: Sl[l.status] ?? "changed" }))
|
|
137
|
+
}), Il = {
|
|
138
|
+
[de.UNSPECIFIED]: "queued",
|
|
139
|
+
[de.QUEUED]: "queued",
|
|
140
|
+
[de.READING]: "reading",
|
|
141
|
+
[de.WRITING]: "writing",
|
|
142
|
+
[de.ENDED]: "ended"
|
|
143
|
+
}, Al = {
|
|
144
|
+
[Ee.SUCCEEDED]: "succeeded",
|
|
145
|
+
[Ee.SUCCEEDED_WITH_PROBLEMS]: "succeeded_with_problems",
|
|
146
|
+
[Ee.FAILED]: "failed",
|
|
147
|
+
[Ee.CANCELLED]: "cancelled"
|
|
148
|
+
}, $e = (e) => ({
|
|
149
149
|
configurationId: e.configurationId,
|
|
150
150
|
name: e.name,
|
|
151
151
|
releaseId: e.releaseId,
|
|
152
|
-
number: e.number
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
152
|
+
number: e.number,
|
|
153
|
+
// Only a Dry Run on drafts names a Revision rather than a Release.
|
|
154
|
+
...e.revisionId ? { revisionId: e.revisionId } : {}
|
|
155
|
+
}), on = {
|
|
156
|
+
"": ee.UNSPECIFIED,
|
|
157
|
+
created: ee.CREATED,
|
|
158
|
+
planned: ee.PLANNED,
|
|
159
|
+
corrected: ee.CORRECTED,
|
|
160
|
+
kept: ee.KEPT,
|
|
161
|
+
stubbed: ee.STUBBED,
|
|
162
|
+
unchanged: ee.UNCHANGED
|
|
163
|
+
}, El = new Map(
|
|
164
|
+
Object.entries(on).filter(([e]) => e !== "").map(([e, n]) => [n, e])
|
|
165
|
+
);
|
|
166
|
+
function Zl(e) {
|
|
167
|
+
const n = e.pendingReference;
|
|
168
|
+
return {
|
|
169
|
+
id: e.id,
|
|
170
|
+
mappingId: e.mappingId,
|
|
171
|
+
mappingName: e.mappingName,
|
|
172
|
+
sourceKey: e.sourceKey,
|
|
173
|
+
field: e.field,
|
|
174
|
+
reason: e.reason,
|
|
175
|
+
...n ? {
|
|
176
|
+
pendingReference: {
|
|
177
|
+
targetMappingId: n.targetMappingId,
|
|
178
|
+
targetBlueprintId: n.targetBlueprintId,
|
|
179
|
+
targetSourceKey: n.targetSourceKey
|
|
180
|
+
}
|
|
181
|
+
} : {}
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
function Ae(e) {
|
|
185
|
+
const n = e.counts, l = Al[e.outcome];
|
|
156
186
|
return {
|
|
157
187
|
id: e.id,
|
|
158
188
|
importProfileId: e.importProfileId,
|
|
159
189
|
importProfileName: e.importProfileName,
|
|
160
190
|
sourceFileId: e.sourceFileId,
|
|
161
191
|
startedBy: e.startedBy,
|
|
162
|
-
phase:
|
|
192
|
+
phase: Il[e.phase] ?? "queued",
|
|
163
193
|
...l ? { outcome: l } : {},
|
|
164
194
|
failureReason: e.failureReason,
|
|
165
195
|
progress: { done: e.progress?.done ?? 0, total: e.progress?.total ?? 0 },
|
|
@@ -170,371 +200,444 @@ function Ge(e) {
|
|
|
170
200
|
planned: n?.planned ?? 0,
|
|
171
201
|
corrected: n?.corrected ?? 0,
|
|
172
202
|
kept: n?.kept ?? 0,
|
|
173
|
-
unchanged: n?.unchanged ?? 0
|
|
203
|
+
unchanged: n?.unchanged ?? 0,
|
|
204
|
+
stubbed: n?.stubbed ?? 0,
|
|
205
|
+
pendingReferences: n?.pendingReferences ?? 0
|
|
174
206
|
},
|
|
175
207
|
changeSetId: e.changeSetId,
|
|
176
208
|
releases: {
|
|
177
|
-
...e.releases?.importProfile ? { importProfile:
|
|
178
|
-
mappings: (e.releases?.mappings ?? []).map(
|
|
179
|
-
...e.releases?.entitySet ? { entitySet:
|
|
209
|
+
...e.releases?.importProfile ? { importProfile: $e(e.releases.importProfile) } : {},
|
|
210
|
+
mappings: (e.releases?.mappings ?? []).map($e),
|
|
211
|
+
...e.releases?.entitySet ? { entitySet: $e(e.releases.entitySet) } : {}
|
|
180
212
|
},
|
|
181
|
-
createTime:
|
|
182
|
-
startTime:
|
|
183
|
-
endTime:
|
|
213
|
+
createTime: le(e.createTime),
|
|
214
|
+
startTime: le(e.startTime),
|
|
215
|
+
endTime: le(e.endTime),
|
|
184
216
|
cancelledBy: e.cancelledBy,
|
|
185
217
|
effectiveDate: e.effectiveDate,
|
|
186
|
-
...e.source ? { source: { date: e.source.date, reference: e.source.reference } } : {}
|
|
218
|
+
...e.source ? { source: { date: e.source.date, reference: e.source.reference } } : {},
|
|
219
|
+
dryRun: e.dryRun,
|
|
220
|
+
draft: e.draft
|
|
187
221
|
};
|
|
188
222
|
}
|
|
189
|
-
const
|
|
223
|
+
const Nt = (e) => ({
|
|
190
224
|
id: e.id,
|
|
191
225
|
name: e.name,
|
|
192
226
|
keyPrefix: e.keyPrefix,
|
|
193
227
|
owner: e.owner,
|
|
194
|
-
expireTime:
|
|
195
|
-
createTime:
|
|
228
|
+
expireTime: le(e.expireTime),
|
|
229
|
+
createTime: le(e.createTime)
|
|
196
230
|
});
|
|
197
|
-
async function
|
|
231
|
+
async function Yt(e) {
|
|
198
232
|
try {
|
|
199
233
|
return await e();
|
|
200
234
|
} catch (n) {
|
|
201
|
-
const l =
|
|
202
|
-
throw l.code ===
|
|
235
|
+
const l = Ge.from(n);
|
|
236
|
+
throw l.code === q.PermissionDenied || l.code === q.FailedPrecondition || l.code === q.NotFound ? new Gn(l.rawMessage) : l;
|
|
203
237
|
}
|
|
204
238
|
}
|
|
205
|
-
function
|
|
206
|
-
const n =
|
|
207
|
-
if (n.code ===
|
|
208
|
-
const [l] = n.findDetails(
|
|
239
|
+
function St(e) {
|
|
240
|
+
const n = Ge.from(e);
|
|
241
|
+
if (n.code === q.FailedPrecondition) {
|
|
242
|
+
const [l] = n.findDetails(sl);
|
|
209
243
|
if (l)
|
|
210
|
-
throw new
|
|
211
|
-
l.importProfiles.map((
|
|
244
|
+
throw new Wn(
|
|
245
|
+
l.importProfiles.map((a) => ({ id: a.id, name: a.name })),
|
|
212
246
|
n.rawMessage
|
|
213
247
|
);
|
|
214
248
|
}
|
|
215
|
-
throw n.code ===
|
|
249
|
+
throw n.code === q.AlreadyExists ? new nt(n.rawMessage) : n;
|
|
216
250
|
}
|
|
217
|
-
async function
|
|
251
|
+
async function Gl(e) {
|
|
218
252
|
try {
|
|
219
253
|
return await e();
|
|
220
254
|
} catch (n) {
|
|
221
|
-
const l =
|
|
222
|
-
if (l.code ===
|
|
223
|
-
const [
|
|
224
|
-
throw new
|
|
255
|
+
const l = Ge.from(n);
|
|
256
|
+
if (l.code === q.FailedPrecondition) {
|
|
257
|
+
const [a] = l.findDetails(cl);
|
|
258
|
+
throw new Xn(l.rawMessage, a ? fe(a) : void 0);
|
|
225
259
|
}
|
|
226
|
-
|
|
260
|
+
St(n);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
async function Xl(e) {
|
|
264
|
+
try {
|
|
265
|
+
return await e();
|
|
266
|
+
} catch (n) {
|
|
267
|
+
const l = Ge.from(n);
|
|
268
|
+
if (l.code === q.InvalidArgument || l.code === q.NotFound)
|
|
269
|
+
throw new Bn(l.rawMessage);
|
|
270
|
+
St(n);
|
|
227
271
|
}
|
|
228
272
|
}
|
|
229
|
-
async function
|
|
273
|
+
async function E(e) {
|
|
230
274
|
try {
|
|
231
275
|
return await e();
|
|
232
276
|
} catch (n) {
|
|
233
|
-
|
|
277
|
+
St(n);
|
|
234
278
|
}
|
|
235
279
|
}
|
|
236
|
-
function
|
|
237
|
-
const n = e.transport ??
|
|
280
|
+
function Ea(e) {
|
|
281
|
+
const n = e.transport ?? Zn({ baseUrl: e.baseUrl, fetch: e.fetch }), l = ce(gl, n), a = ce(yl, n), r = ce(bl, n), s = ce(pl, n), p = ce(ml, n), m = ce(rl, n), g = e.putFile ?? Vl;
|
|
238
282
|
return {
|
|
239
|
-
listImportProfiles: () =>
|
|
240
|
-
getImportProfile: (
|
|
241
|
-
async () =>
|
|
283
|
+
listImportProfiles: () => E(async () => (await l.listImportProfiles({})).importProfiles.map(ve)),
|
|
284
|
+
getImportProfile: (i) => E(
|
|
285
|
+
async () => ve(K((await l.getImportProfile({ id: i })).importProfile))
|
|
242
286
|
),
|
|
243
|
-
createImportProfile: (
|
|
244
|
-
async () =>
|
|
245
|
-
|
|
246
|
-
(await l.createImportProfile({ content:
|
|
287
|
+
createImportProfile: (i) => E(
|
|
288
|
+
async () => ve(
|
|
289
|
+
K(
|
|
290
|
+
(await l.createImportProfile({ content: Jt(i) })).importProfile
|
|
247
291
|
)
|
|
248
292
|
)
|
|
249
293
|
),
|
|
250
|
-
updateImportProfile: (
|
|
251
|
-
async () =>
|
|
252
|
-
|
|
294
|
+
updateImportProfile: (i, c, o) => E(
|
|
295
|
+
async () => ve(
|
|
296
|
+
K(
|
|
253
297
|
(await l.updateImportProfile({
|
|
254
|
-
id:
|
|
255
|
-
content:
|
|
256
|
-
draftRevisionId:
|
|
298
|
+
id: i,
|
|
299
|
+
content: Jt(c),
|
|
300
|
+
draftRevisionId: o
|
|
257
301
|
})).importProfile
|
|
258
302
|
)
|
|
259
303
|
)
|
|
260
304
|
),
|
|
261
|
-
deleteImportProfile: (
|
|
262
|
-
await l.deleteImportProfile({ id:
|
|
305
|
+
deleteImportProfile: (i) => E(async () => {
|
|
306
|
+
await l.deleteImportProfile({ id: i });
|
|
263
307
|
}),
|
|
264
|
-
listProcessors: () =>
|
|
265
|
-
async () => (await
|
|
266
|
-
name:
|
|
267
|
-
kind:
|
|
268
|
-
target:
|
|
269
|
-
description:
|
|
270
|
-
settingsSpec:
|
|
308
|
+
listProcessors: () => E(
|
|
309
|
+
async () => (await a.listProcessors({})).processors.map((i) => ({
|
|
310
|
+
name: i.name,
|
|
311
|
+
kind: i.kind === ln.POST_PROCESSOR ? "post_processor" : "preprocessor",
|
|
312
|
+
target: i.target === an.RICH_TEXT_FIELD ? "rich_text_field" : "source_file",
|
|
313
|
+
description: i.description,
|
|
314
|
+
settingsSpec: i.settingsSpec
|
|
271
315
|
}))
|
|
272
316
|
),
|
|
273
|
-
listMappings: () =>
|
|
274
|
-
getMapping: (
|
|
275
|
-
createMapping: (
|
|
276
|
-
async () =>
|
|
277
|
-
|
|
278
|
-
(await
|
|
317
|
+
listMappings: () => E(async () => (await r.listMappings({})).mappings.map(Je)),
|
|
318
|
+
getMapping: (i) => E(async () => Je(K((await r.getMapping({ id: i })).mapping))),
|
|
319
|
+
createMapping: (i) => E(
|
|
320
|
+
async () => Je(
|
|
321
|
+
K(
|
|
322
|
+
(await r.createMapping({ content: je(i) })).mapping
|
|
279
323
|
)
|
|
280
324
|
)
|
|
281
325
|
),
|
|
282
|
-
updateMapping: (
|
|
283
|
-
async () =>
|
|
284
|
-
|
|
285
|
-
(await
|
|
286
|
-
id:
|
|
287
|
-
content:
|
|
288
|
-
draftRevisionId:
|
|
326
|
+
updateMapping: (i, c, o) => E(
|
|
327
|
+
async () => Je(
|
|
328
|
+
K(
|
|
329
|
+
(await r.updateMapping({
|
|
330
|
+
id: i,
|
|
331
|
+
content: je(c),
|
|
332
|
+
draftRevisionId: o
|
|
289
333
|
})).mapping
|
|
290
334
|
)
|
|
291
335
|
)
|
|
292
336
|
),
|
|
293
|
-
deleteMapping: (
|
|
294
|
-
await
|
|
337
|
+
deleteMapping: (i) => E(async () => {
|
|
338
|
+
await r.deleteMapping({ id: i });
|
|
295
339
|
}),
|
|
296
|
-
listMappingImportProfiles: (
|
|
297
|
-
async () => (await
|
|
298
|
-
id:
|
|
299
|
-
name:
|
|
340
|
+
listMappingImportProfiles: (i) => E(
|
|
341
|
+
async () => (await r.listMappingImportProfiles({ id: i })).importProfiles.map((c) => ({
|
|
342
|
+
id: c.id,
|
|
343
|
+
name: c.name
|
|
300
344
|
}))
|
|
301
345
|
),
|
|
302
|
-
checkMappingBlueprintRelease: (
|
|
303
|
-
const
|
|
346
|
+
checkMappingBlueprintRelease: (i, c) => E(async () => {
|
|
347
|
+
const o = await r.checkMappingBlueprintRelease({ id: i, blueprintReleaseId: c });
|
|
304
348
|
return {
|
|
305
|
-
blueprintId:
|
|
306
|
-
missingFieldPaths: [...
|
|
307
|
-
missingReleaseSpecFields: [...
|
|
349
|
+
blueprintId: o.blueprintId,
|
|
350
|
+
missingFieldPaths: [...o.missingFieldPaths],
|
|
351
|
+
missingReleaseSpecFields: [...o.missingReleaseSpecFields]
|
|
308
352
|
};
|
|
309
353
|
}),
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
354
|
+
runMappingTest: ({ content: i, sample: c, entitySetId: o }) => Xl(async () => ({
|
|
355
|
+
elements: (await r.runMappingTest({
|
|
356
|
+
mapping: { case: "content", value: je(i) },
|
|
357
|
+
sample: c,
|
|
358
|
+
entitySetId: o ?? ""
|
|
359
|
+
})).elements.map((u) => ({
|
|
360
|
+
position: u.position,
|
|
361
|
+
sourceKey: u.sourceKey,
|
|
362
|
+
values: u.values ?? {},
|
|
363
|
+
firstDay: u.firstDay,
|
|
364
|
+
lastDay: u.lastDay,
|
|
365
|
+
releaseSpec: u.releaseSpec ?? {},
|
|
366
|
+
displayName: u.displayName,
|
|
367
|
+
collections: [...u.collections],
|
|
368
|
+
problems: u.problems.map((R) => ({ field: R.field, reason: R.reason }))
|
|
369
|
+
}))
|
|
370
|
+
})),
|
|
371
|
+
listEntitySets: () => E(async () => (await s.listEntitySets({})).entitySets.map(we)),
|
|
372
|
+
getEntitySet: (i) => E(
|
|
373
|
+
async () => we(K((await s.getEntitySet({ id: i })).entitySet))
|
|
313
374
|
),
|
|
314
|
-
createEntitySet: (
|
|
315
|
-
async () =>
|
|
375
|
+
createEntitySet: (i) => E(
|
|
376
|
+
async () => we(K((await s.createEntitySet({ content: i })).entitySet))
|
|
316
377
|
),
|
|
317
|
-
updateEntitySet: (
|
|
318
|
-
async () =>
|
|
319
|
-
|
|
320
|
-
(await s.updateEntitySet({ id:
|
|
378
|
+
updateEntitySet: (i, c, o) => E(
|
|
379
|
+
async () => we(
|
|
380
|
+
K(
|
|
381
|
+
(await s.updateEntitySet({ id: i, content: c, draftRevisionId: o })).entitySet
|
|
321
382
|
)
|
|
322
383
|
)
|
|
323
384
|
),
|
|
324
|
-
deleteEntitySet: (
|
|
325
|
-
await s.deleteEntitySet({ id:
|
|
385
|
+
deleteEntitySet: (i) => E(async () => {
|
|
386
|
+
await s.deleteEntitySet({ id: i });
|
|
326
387
|
}),
|
|
327
388
|
// One RPC per kind of configuration, each on its own service (the
|
|
328
389
|
// protos have no configuration service: a client always knows which
|
|
329
390
|
// kind it looks at); the screens ask by kind.
|
|
330
|
-
cutRelease: (
|
|
331
|
-
const d = { id:
|
|
332
|
-
switch (
|
|
391
|
+
cutRelease: (i, c, o) => Gl(async () => {
|
|
392
|
+
const d = { id: c, draftRevisionId: o };
|
|
393
|
+
switch (i) {
|
|
333
394
|
case "importProfile":
|
|
334
395
|
return {
|
|
335
|
-
release:
|
|
396
|
+
release: Ke((await l.cutImportProfileRelease(d)).release),
|
|
336
397
|
importProfiles: []
|
|
337
398
|
};
|
|
338
399
|
case "mapping": {
|
|
339
|
-
const
|
|
400
|
+
const u = await r.cutMappingRelease(d);
|
|
340
401
|
return {
|
|
341
|
-
release:
|
|
342
|
-
importProfiles:
|
|
402
|
+
release: Ke(u.release),
|
|
403
|
+
importProfiles: u.importProfiles.map((R) => ({ id: R.id, name: R.name }))
|
|
343
404
|
};
|
|
344
405
|
}
|
|
345
406
|
case "entitySet":
|
|
346
407
|
return {
|
|
347
|
-
release:
|
|
408
|
+
release: Ke((await s.cutEntitySetRelease(d)).release),
|
|
348
409
|
importProfiles: []
|
|
349
410
|
};
|
|
350
411
|
}
|
|
351
412
|
}),
|
|
352
|
-
listHistory: (
|
|
353
|
-
const d = { id:
|
|
354
|
-
switch (
|
|
413
|
+
listHistory: (i, c, o) => E(async () => {
|
|
414
|
+
const d = { id: c, pageToken: o };
|
|
415
|
+
switch (i) {
|
|
355
416
|
case "importProfile":
|
|
356
|
-
return
|
|
417
|
+
return Oe(await l.listImportProfileHistory(d));
|
|
357
418
|
case "mapping":
|
|
358
|
-
return
|
|
419
|
+
return Oe(await r.listMappingHistory(d));
|
|
359
420
|
case "entitySet":
|
|
360
|
-
return
|
|
421
|
+
return Oe(await s.listEntitySetHistory(d));
|
|
361
422
|
}
|
|
362
423
|
}),
|
|
363
|
-
compareRevisions: (
|
|
364
|
-
const
|
|
365
|
-
switch (
|
|
424
|
+
compareRevisions: (i, c, o, d) => E(async () => {
|
|
425
|
+
const u = { id: c, fromRevisionId: o, toRevisionId: d };
|
|
426
|
+
switch (i) {
|
|
366
427
|
case "importProfile":
|
|
367
|
-
return
|
|
368
|
-
await l.compareImportProfileRevisions(
|
|
369
|
-
(
|
|
428
|
+
return _e(
|
|
429
|
+
await l.compareImportProfileRevisions(u),
|
|
430
|
+
(R) => Ue(tn, R, qe)
|
|
370
431
|
);
|
|
371
432
|
case "mapping":
|
|
372
|
-
return
|
|
373
|
-
await
|
|
374
|
-
(
|
|
433
|
+
return _e(
|
|
434
|
+
await r.compareMappingRevisions(u),
|
|
435
|
+
(R) => Ue(Vt, R, qe)
|
|
375
436
|
);
|
|
376
437
|
case "entitySet":
|
|
377
|
-
return
|
|
378
|
-
await s.compareEntitySetRevisions(
|
|
379
|
-
(
|
|
438
|
+
return _e(
|
|
439
|
+
await s.compareEntitySetRevisions(u),
|
|
440
|
+
(R) => Ue(dl, R, qe)
|
|
380
441
|
);
|
|
381
442
|
}
|
|
382
443
|
}),
|
|
383
|
-
restoreRevision: (
|
|
384
|
-
const
|
|
385
|
-
switch (
|
|
444
|
+
restoreRevision: (i, c, o, d) => E(async () => {
|
|
445
|
+
const u = { id: c, revisionId: o, draftRevisionId: d };
|
|
446
|
+
switch (i) {
|
|
386
447
|
case "importProfile":
|
|
387
|
-
await l.restoreImportProfileRevision(
|
|
448
|
+
await l.restoreImportProfileRevision(u);
|
|
388
449
|
return;
|
|
389
450
|
case "mapping":
|
|
390
|
-
await
|
|
451
|
+
await r.restoreMappingRevision(u);
|
|
391
452
|
return;
|
|
392
453
|
case "entitySet":
|
|
393
|
-
await s.restoreEntitySetRevision(
|
|
454
|
+
await s.restoreEntitySetRevision(u);
|
|
394
455
|
return;
|
|
395
456
|
}
|
|
396
457
|
}),
|
|
397
|
-
uploadSourceFile: (
|
|
398
|
-
const
|
|
399
|
-
return await
|
|
458
|
+
uploadSourceFile: (i, c) => E(async () => {
|
|
459
|
+
const o = await p.createSourceFileUpload({ fileName: i.name }), d = K(o.sourceFile);
|
|
460
|
+
return await g(o.uploadUrl, i, c), { id: d.id, fileName: d.fileName };
|
|
400
461
|
}),
|
|
401
|
-
startImport: (
|
|
402
|
-
async () =>
|
|
403
|
-
|
|
404
|
-
(await
|
|
405
|
-
importProfileId:
|
|
406
|
-
sourceFileId:
|
|
407
|
-
effectiveDate:
|
|
408
|
-
source:
|
|
462
|
+
startImport: (i) => Yt(
|
|
463
|
+
async () => Ae(
|
|
464
|
+
K(
|
|
465
|
+
(await p.startImport({
|
|
466
|
+
importProfileId: i.importProfileId,
|
|
467
|
+
sourceFileId: i.sourceFileId,
|
|
468
|
+
effectiveDate: i.effectiveDate ?? "",
|
|
469
|
+
source: i.source
|
|
409
470
|
})).import
|
|
410
471
|
)
|
|
411
472
|
)
|
|
412
473
|
),
|
|
413
|
-
listImports: (
|
|
414
|
-
const
|
|
415
|
-
return { imports:
|
|
474
|
+
listImports: (i) => E(async () => {
|
|
475
|
+
const c = await p.listImports({ pageToken: i });
|
|
476
|
+
return { imports: c.imports.map(Ae), nextPageToken: c.nextPageToken };
|
|
416
477
|
}),
|
|
417
|
-
getImport: (
|
|
418
|
-
cancelImport: (
|
|
419
|
-
listItemProblems: (
|
|
420
|
-
const
|
|
421
|
-
importId:
|
|
422
|
-
mappingId:
|
|
423
|
-
sourceKeyQuery:
|
|
424
|
-
pageToken:
|
|
478
|
+
getImport: (i) => E(async () => Ae(K((await p.getImport({ id: i })).import))),
|
|
479
|
+
cancelImport: (i) => E(async () => Ae(K((await p.cancelImport({ id: i })).import))),
|
|
480
|
+
listItemProblems: (i, c) => E(async () => {
|
|
481
|
+
const o = await p.listItemProblems({
|
|
482
|
+
importId: i,
|
|
483
|
+
mappingId: c.mappingId,
|
|
484
|
+
sourceKeyQuery: c.sourceKeyQuery,
|
|
485
|
+
pageToken: c.pageToken
|
|
425
486
|
});
|
|
426
487
|
return {
|
|
427
|
-
itemProblems:
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
sourceKey: d.sourceKey,
|
|
432
|
-
field: d.field,
|
|
433
|
-
reason: d.reason
|
|
434
|
-
})),
|
|
435
|
-
totalCount: a.totalCount,
|
|
436
|
-
matchingCount: a.matchingCount,
|
|
437
|
-
mappings: a.mappings.map((d) => ({
|
|
488
|
+
itemProblems: o.itemProblems.map(Zl),
|
|
489
|
+
totalCount: o.totalCount,
|
|
490
|
+
matchingCount: o.matchingCount,
|
|
491
|
+
mappings: o.mappings.map((d) => ({
|
|
438
492
|
mappingId: d.mappingId,
|
|
439
493
|
mappingName: d.mappingName,
|
|
440
494
|
count: d.count
|
|
441
495
|
})),
|
|
442
|
-
nextPageToken:
|
|
496
|
+
nextPageToken: o.nextPageToken,
|
|
497
|
+
pendingReferenceCount: o.pendingReferenceCount
|
|
443
498
|
};
|
|
444
499
|
}),
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
500
|
+
startDryRun: (i) => (
|
|
501
|
+
// Refused as StartImport is, and for an invalid draft with
|
|
502
|
+
// FailedPrecondition too (StartDryRun's contract).
|
|
503
|
+
Yt(
|
|
504
|
+
async () => Ae(
|
|
505
|
+
K(
|
|
506
|
+
(await p.startDryRun({
|
|
507
|
+
importProfileId: i.importProfileId,
|
|
508
|
+
sourceFileId: i.sourceFileId,
|
|
509
|
+
effectiveDate: i.effectiveDate ?? "",
|
|
510
|
+
source: i.source,
|
|
511
|
+
draft: i.draft ?? !1
|
|
512
|
+
})).import
|
|
513
|
+
)
|
|
514
|
+
)
|
|
515
|
+
)
|
|
516
|
+
),
|
|
517
|
+
listDryRunContents: (i, c) => E(async () => {
|
|
518
|
+
const o = await p.listDryRunContents({
|
|
519
|
+
importId: i,
|
|
520
|
+
mappingId: c.mappingId,
|
|
521
|
+
sourceKeyQuery: c.sourceKeyQuery,
|
|
522
|
+
action: on[c.action],
|
|
523
|
+
pageToken: c.pageToken
|
|
524
|
+
});
|
|
525
|
+
return {
|
|
526
|
+
// An action this client does not know yet is left out
|
|
527
|
+
// rather than shown as another.
|
|
528
|
+
contents: o.contents.flatMap((d) => {
|
|
529
|
+
const u = El.get(d.action);
|
|
530
|
+
return u ? [
|
|
531
|
+
{
|
|
532
|
+
mappingId: d.mappingId,
|
|
533
|
+
mappingName: d.mappingName,
|
|
534
|
+
sourceKey: d.sourceKey,
|
|
535
|
+
displayName: d.displayName,
|
|
536
|
+
action: u,
|
|
537
|
+
contentId: d.contentId,
|
|
538
|
+
firstDay: d.firstDay,
|
|
539
|
+
lastDay: d.lastDay
|
|
540
|
+
}
|
|
541
|
+
] : [];
|
|
542
|
+
}),
|
|
543
|
+
totalCount: o.totalCount,
|
|
544
|
+
matchingCount: o.matchingCount,
|
|
545
|
+
nextPageToken: o.nextPageToken
|
|
546
|
+
};
|
|
547
|
+
}),
|
|
548
|
+
listApiKeys: () => E(async () => (await m.listAPIKeys({})).apiKeys.map(Nt)),
|
|
549
|
+
createApiKey: (i) => E(async () => {
|
|
550
|
+
const c = await m.createAPIKey({
|
|
551
|
+
name: i.name,
|
|
449
552
|
// Unset for never, as CreateAPIKey reads it.
|
|
450
|
-
expireTime:
|
|
553
|
+
expireTime: i.expireTime ? An(new Date(i.expireTime)) : void 0
|
|
451
554
|
});
|
|
452
|
-
return { apiKey:
|
|
555
|
+
return { apiKey: Nt(K(c.apiKey)), secret: c.secret };
|
|
453
556
|
}),
|
|
454
|
-
revokeApiKey: (
|
|
455
|
-
await
|
|
557
|
+
revokeApiKey: (i) => E(async () => {
|
|
558
|
+
await m.revokeAPIKey({ id: i });
|
|
456
559
|
})
|
|
457
560
|
};
|
|
458
561
|
}
|
|
459
|
-
function
|
|
562
|
+
function K(e) {
|
|
460
563
|
if (e === void 0)
|
|
461
|
-
throw new
|
|
564
|
+
throw new Ge("importhub answered without a message", q.Internal);
|
|
462
565
|
return e;
|
|
463
566
|
}
|
|
464
|
-
function
|
|
465
|
-
const { t: n } =
|
|
466
|
-
return l ? /* @__PURE__ */ b(
|
|
567
|
+
function Bl({ changeSetId: e }) {
|
|
568
|
+
const { t: n } = V(h), l = x().changeSetHref(e);
|
|
569
|
+
return l ? /* @__PURE__ */ b(ct, { href: l, target: "_blank", rel: "noopener noreferrer", children: [
|
|
467
570
|
n("changeSet.open"),
|
|
468
|
-
/* @__PURE__ */ t(
|
|
571
|
+
/* @__PURE__ */ t(Yn, { size: 14, "aria-hidden": !0 })
|
|
469
572
|
] }) : null;
|
|
470
573
|
}
|
|
471
|
-
const
|
|
472
|
-
imports:
|
|
473
|
-
profiles:
|
|
474
|
-
mappings:
|
|
475
|
-
entitySets:
|
|
476
|
-
processors:
|
|
574
|
+
const Wl = {
|
|
575
|
+
imports: xn,
|
|
576
|
+
profiles: kn,
|
|
577
|
+
mappings: Kn,
|
|
578
|
+
entitySets: Fn,
|
|
579
|
+
processors: Un
|
|
477
580
|
};
|
|
478
|
-
function
|
|
479
|
-
const { t: l } =
|
|
480
|
-
return /* @__PURE__ */ t(
|
|
481
|
-
|
|
581
|
+
function Za({ client: e, section: n }) {
|
|
582
|
+
const { t: l } = V(h), a = Wl[n];
|
|
583
|
+
return /* @__PURE__ */ t(oe, { title: l(`section.${n}.title`), children: /* @__PURE__ */ t(T, { px: "8", py: "6", children: /* @__PURE__ */ t(
|
|
584
|
+
pt,
|
|
482
585
|
{
|
|
483
|
-
icon: /* @__PURE__ */ t(
|
|
586
|
+
icon: /* @__PURE__ */ t(a, { size: 32, "aria-hidden": !0 }),
|
|
484
587
|
header: l(`section.${n}.title`),
|
|
485
|
-
description: /* @__PURE__ */ t(
|
|
588
|
+
description: /* @__PURE__ */ t(fl, { client: e, section: n })
|
|
486
589
|
}
|
|
487
590
|
) }) });
|
|
488
591
|
}
|
|
489
|
-
function
|
|
592
|
+
function fl({ client: e, section: n }) {
|
|
490
593
|
switch (n) {
|
|
491
594
|
case "profiles":
|
|
492
595
|
return /* @__PURE__ */ t(
|
|
493
|
-
|
|
596
|
+
et,
|
|
494
597
|
{
|
|
495
598
|
section: n,
|
|
496
|
-
queryKey:
|
|
599
|
+
queryKey: I.importProfiles,
|
|
497
600
|
read: () => e.listImportProfiles()
|
|
498
601
|
}
|
|
499
602
|
);
|
|
500
603
|
case "entitySets":
|
|
501
604
|
return /* @__PURE__ */ t(
|
|
502
|
-
|
|
605
|
+
et,
|
|
503
606
|
{
|
|
504
607
|
section: n,
|
|
505
|
-
queryKey:
|
|
608
|
+
queryKey: I.entitySets,
|
|
506
609
|
read: () => e.listEntitySets()
|
|
507
610
|
}
|
|
508
611
|
);
|
|
509
612
|
case "processors":
|
|
510
613
|
return /* @__PURE__ */ t(
|
|
511
|
-
|
|
614
|
+
et,
|
|
512
615
|
{
|
|
513
616
|
section: n,
|
|
514
|
-
queryKey:
|
|
617
|
+
queryKey: I.processors,
|
|
515
618
|
read: () => e.listProcessors()
|
|
516
619
|
}
|
|
517
620
|
);
|
|
518
621
|
default:
|
|
519
|
-
return /* @__PURE__ */ t(
|
|
622
|
+
return /* @__PURE__ */ t(Cl, { section: n });
|
|
520
623
|
}
|
|
521
624
|
}
|
|
522
|
-
function
|
|
523
|
-
const { t: n } =
|
|
524
|
-
return /* @__PURE__ */ t(
|
|
625
|
+
function Cl({ section: e }) {
|
|
626
|
+
const { t: n } = V(h);
|
|
627
|
+
return /* @__PURE__ */ t(ae, { children: n(`section.${e}.empty`) });
|
|
525
628
|
}
|
|
526
|
-
function
|
|
629
|
+
function et({
|
|
527
630
|
section: e,
|
|
528
631
|
queryKey: n,
|
|
529
632
|
read: l
|
|
530
633
|
}) {
|
|
531
|
-
const { t:
|
|
532
|
-
return s.isPending ? /* @__PURE__ */ t(
|
|
634
|
+
const { t: a } = V(h), { workspaceId: r } = v(), s = k({ queryKey: n(r), queryFn: l });
|
|
635
|
+
return s.isPending ? /* @__PURE__ */ t(Cn, { size: "sm", "aria-label": a("startPage.loading") }) : s.isError ? /* @__PURE__ */ t(ae, { children: a("startPage.error") }) : /* @__PURE__ */ t(ae, { children: a(`section.${e}.summary`, { count: s.data.length }) });
|
|
533
636
|
}
|
|
534
|
-
function
|
|
637
|
+
function rn(e) {
|
|
535
638
|
return e.outcome ? e.outcome : e.cancelledBy ? "cancelling" : e.phase === "ended" ? "succeeded" : e.phase;
|
|
536
639
|
}
|
|
537
|
-
const
|
|
640
|
+
const cn = {
|
|
538
641
|
queued: "neutral",
|
|
539
642
|
reading: "info",
|
|
540
643
|
writing: "info",
|
|
@@ -544,7 +647,7 @@ const Dt = {
|
|
|
544
647
|
failed: "danger",
|
|
545
648
|
cancelled: "neutral"
|
|
546
649
|
};
|
|
547
|
-
function
|
|
650
|
+
function ot(e, n) {
|
|
548
651
|
switch (e) {
|
|
549
652
|
case "queued":
|
|
550
653
|
case "reading":
|
|
@@ -555,169 +658,169 @@ function qe(e, n) {
|
|
|
555
658
|
return n(`imports.outcome.${e}`);
|
|
556
659
|
}
|
|
557
660
|
}
|
|
558
|
-
const
|
|
559
|
-
function
|
|
560
|
-
const { t: n } =
|
|
561
|
-
return /* @__PURE__ */ t(
|
|
661
|
+
const It = 2e3, Me = (e) => e.phase !== "ended";
|
|
662
|
+
function vl({ im: e }) {
|
|
663
|
+
const { t: n } = V(h), l = rn(e);
|
|
664
|
+
return /* @__PURE__ */ t(Xe, { tone: cn[l], label: ot(l, n) });
|
|
562
665
|
}
|
|
563
|
-
function
|
|
564
|
-
const { t: n } =
|
|
565
|
-
return /* @__PURE__ */ t(
|
|
666
|
+
function Jl({ im: e }) {
|
|
667
|
+
const { t: n } = V(h), l = rn(e);
|
|
668
|
+
return /* @__PURE__ */ t(Qe, { value: ot(l, n), toneMap: { [ot(l, n)]: cn[l] } });
|
|
566
669
|
}
|
|
567
|
-
function
|
|
568
|
-
const { t: e } =
|
|
569
|
-
return
|
|
670
|
+
function Ie() {
|
|
671
|
+
const { t: e } = V(h), { members: n } = v();
|
|
672
|
+
return tl(
|
|
570
673
|
(l) => n.byId(l)?.displayName ?? e("imports.someone"),
|
|
571
674
|
[n, e]
|
|
572
675
|
);
|
|
573
676
|
}
|
|
574
|
-
function
|
|
575
|
-
return
|
|
677
|
+
function De() {
|
|
678
|
+
return x().canImport ?? !1;
|
|
576
679
|
}
|
|
577
|
-
const
|
|
578
|
-
function
|
|
680
|
+
const Ut = { name: "", expiresOn: "" };
|
|
681
|
+
function Ft() {
|
|
579
682
|
const e = /* @__PURE__ */ new Date(), n = (l) => String(l).padStart(2, "0");
|
|
580
683
|
return `${e.getFullYear()}-${n(e.getMonth() + 1)}-${n(e.getDate())}`;
|
|
581
684
|
}
|
|
582
|
-
function
|
|
685
|
+
function wl(e) {
|
|
583
686
|
return e ? (/* @__PURE__ */ new Date(`${e}T23:59:59`)).toISOString() : "";
|
|
584
687
|
}
|
|
585
|
-
function
|
|
586
|
-
const { t:
|
|
587
|
-
mutationFn: (
|
|
588
|
-
onSuccess: () => s.invalidateQueries({ queryKey:
|
|
589
|
-
}), { reset:
|
|
590
|
-
|
|
591
|
-
n && (
|
|
592
|
-
}, [n,
|
|
593
|
-
const
|
|
594
|
-
|
|
595
|
-
},
|
|
596
|
-
const
|
|
597
|
-
if (!
|
|
598
|
-
|
|
688
|
+
function Nl({ client: e, open: n, onClose: l }) {
|
|
689
|
+
const { t: a } = V(h), { workspaceId: r } = v(), s = $(), p = he({ defaultValues: Ut }), m = re({
|
|
690
|
+
mutationFn: (u) => e.createApiKey({ name: u.name.trim(), expireTime: wl(u.expiresOn) }),
|
|
691
|
+
onSuccess: () => s.invalidateQueries({ queryKey: I.apiKeys(r) })
|
|
692
|
+
}), { reset: g } = p, { reset: i } = m;
|
|
693
|
+
P(() => {
|
|
694
|
+
n && (g(Ut), i());
|
|
695
|
+
}, [n, g, i]);
|
|
696
|
+
const c = () => {
|
|
697
|
+
i(), l();
|
|
698
|
+
}, o = p.handleSubmit((u) => {
|
|
699
|
+
const R = u.name.trim();
|
|
700
|
+
if (!R) {
|
|
701
|
+
p.setError("name", { message: a("apiKeys.nameRequired") });
|
|
599
702
|
return;
|
|
600
703
|
}
|
|
601
|
-
if (
|
|
602
|
-
|
|
704
|
+
if (R.length > Et) {
|
|
705
|
+
p.setError("name", { message: a("apiKeys.nameTooLong", { max: Et }) });
|
|
603
706
|
return;
|
|
604
707
|
}
|
|
605
|
-
if (
|
|
606
|
-
|
|
708
|
+
if (u.expiresOn && u.expiresOn < Ft()) {
|
|
709
|
+
p.setError("expiresOn", { message: a("apiKeys.expiryPast") });
|
|
607
710
|
return;
|
|
608
711
|
}
|
|
609
|
-
|
|
610
|
-
}), d =
|
|
712
|
+
m.mutate(u);
|
|
713
|
+
}), d = m.data?.secret;
|
|
611
714
|
return /* @__PURE__ */ t(
|
|
612
|
-
|
|
715
|
+
Be,
|
|
613
716
|
{
|
|
614
717
|
open: n,
|
|
615
|
-
onClose:
|
|
616
|
-
header:
|
|
718
|
+
onClose: c,
|
|
719
|
+
header: a("apiKeys.new"),
|
|
617
720
|
lazyMount: !0,
|
|
618
721
|
unmountOnExit: !0,
|
|
619
722
|
closeOnEscape: !d,
|
|
620
723
|
closeOnInteractOutside: !d,
|
|
621
|
-
footer: d ? /* @__PURE__ */ t(W, { variant: "solid", onClick:
|
|
622
|
-
/* @__PURE__ */ t(W, { variant: "outline", onClick:
|
|
623
|
-
/* @__PURE__ */ t(W, { variant: "solid", loading:
|
|
624
|
-
|
|
625
|
-
}, children:
|
|
724
|
+
footer: d ? /* @__PURE__ */ t(W, { variant: "solid", onClick: c, children: a("apiKeys.done") }) : /* @__PURE__ */ b(O, { gap: "2", children: [
|
|
725
|
+
/* @__PURE__ */ t(W, { variant: "outline", onClick: c, children: a("common.cancel") }),
|
|
726
|
+
/* @__PURE__ */ t(W, { variant: "solid", loading: m.isPending, onClick: () => {
|
|
727
|
+
o();
|
|
728
|
+
}, children: a("common.create") })
|
|
626
729
|
] }),
|
|
627
|
-
children: d ? /* @__PURE__ */ b(
|
|
628
|
-
/* @__PURE__ */ t(
|
|
730
|
+
children: d ? /* @__PURE__ */ b(X, { gap: "4", children: [
|
|
731
|
+
/* @__PURE__ */ t(C, { status: "warning", colorPalette: "warning", title: a("apiKeys.secretTitle"), children: a("apiKeys.secretOnce") }),
|
|
629
732
|
/* @__PURE__ */ t(
|
|
630
|
-
|
|
733
|
+
On,
|
|
631
734
|
{
|
|
632
735
|
value: d,
|
|
633
|
-
label:
|
|
634
|
-
inputProps: { "aria-label":
|
|
736
|
+
label: a("apiKeys.copySecret"),
|
|
737
|
+
inputProps: { "aria-label": a("apiKeys.secret"), fontFamily: "mono" }
|
|
635
738
|
}
|
|
636
739
|
)
|
|
637
|
-
] }) : /* @__PURE__ */ t(
|
|
740
|
+
] }) : /* @__PURE__ */ t(Se, { ...p, children: /* @__PURE__ */ t(
|
|
638
741
|
"form",
|
|
639
742
|
{
|
|
640
|
-
onSubmit: (
|
|
641
|
-
|
|
743
|
+
onSubmit: (u) => {
|
|
744
|
+
u.preventDefault(), o();
|
|
642
745
|
},
|
|
643
|
-
children: /* @__PURE__ */ b(
|
|
746
|
+
children: /* @__PURE__ */ b(X, { gap: "4", children: [
|
|
644
747
|
/* @__PURE__ */ t(
|
|
645
|
-
|
|
748
|
+
_,
|
|
646
749
|
{
|
|
647
750
|
name: "name",
|
|
648
|
-
label:
|
|
649
|
-
helperText:
|
|
751
|
+
label: a("fields.name"),
|
|
752
|
+
helperText: a("apiKeys.nameHelp"),
|
|
650
753
|
required: !0
|
|
651
754
|
}
|
|
652
755
|
),
|
|
653
756
|
/* @__PURE__ */ t(
|
|
654
|
-
|
|
757
|
+
it,
|
|
655
758
|
{
|
|
656
759
|
name: "expiresOn",
|
|
657
|
-
label:
|
|
658
|
-
helperText:
|
|
659
|
-
min:
|
|
760
|
+
label: a("apiKeys.expiresOn"),
|
|
761
|
+
helperText: a("apiKeys.expiresOnHelp"),
|
|
762
|
+
min: Ft()
|
|
660
763
|
}
|
|
661
764
|
),
|
|
662
|
-
/* @__PURE__ */ t(
|
|
663
|
-
|
|
765
|
+
/* @__PURE__ */ t(C, { status: "info", colorPalette: "info", title: a("apiKeys.consentTitle"), children: a("apiKeys.consent") }),
|
|
766
|
+
m.isError ? /* @__PURE__ */ t(C, { status: "error", colorPalette: "danger", title: a("apiKeys.createFailed") }) : null
|
|
664
767
|
] })
|
|
665
768
|
}
|
|
666
769
|
) })
|
|
667
770
|
}
|
|
668
771
|
);
|
|
669
772
|
}
|
|
670
|
-
function
|
|
671
|
-
const { t:
|
|
672
|
-
mutationFn: (
|
|
773
|
+
function Yl({ client: e, apiKey: n, open: l, onClose: a }) {
|
|
774
|
+
const { t: r } = V(h), { workspaceId: s } = v(), p = $(), m = re({
|
|
775
|
+
mutationFn: (c) => e.revokeApiKey(c),
|
|
673
776
|
onSuccess: async () => {
|
|
674
|
-
await
|
|
777
|
+
await p.invalidateQueries({ queryKey: I.apiKeys(s) }), a();
|
|
675
778
|
}
|
|
676
|
-
}), { reset:
|
|
677
|
-
|
|
678
|
-
l &&
|
|
679
|
-
}, [l,
|
|
680
|
-
const
|
|
779
|
+
}), { reset: g } = m;
|
|
780
|
+
P(() => {
|
|
781
|
+
l && g();
|
|
782
|
+
}, [l, g]);
|
|
783
|
+
const i = n?.name ?? "";
|
|
681
784
|
return /* @__PURE__ */ t(
|
|
682
|
-
|
|
785
|
+
Be,
|
|
683
786
|
{
|
|
684
787
|
open: l,
|
|
685
|
-
onClose:
|
|
686
|
-
header:
|
|
788
|
+
onClose: a,
|
|
789
|
+
header: r("apiKeys.revokeTitle", { name: i }),
|
|
687
790
|
lazyMount: !0,
|
|
688
791
|
unmountOnExit: !0,
|
|
689
|
-
footer: /* @__PURE__ */ b(
|
|
690
|
-
/* @__PURE__ */ t(W, { variant: "outline", onClick:
|
|
792
|
+
footer: /* @__PURE__ */ b(O, { gap: "2", children: [
|
|
793
|
+
/* @__PURE__ */ t(W, { variant: "outline", onClick: a, children: r("common.cancel") }),
|
|
691
794
|
/* @__PURE__ */ t(
|
|
692
795
|
W,
|
|
693
796
|
{
|
|
694
797
|
variant: "solid",
|
|
695
798
|
colorPalette: "red",
|
|
696
|
-
loading:
|
|
799
|
+
loading: m.isPending,
|
|
697
800
|
disabled: !n,
|
|
698
|
-
onClick: () => n &&
|
|
699
|
-
children:
|
|
801
|
+
onClick: () => n && m.mutate(n.id),
|
|
802
|
+
children: r("apiKeys.revoke")
|
|
700
803
|
}
|
|
701
804
|
)
|
|
702
805
|
] }),
|
|
703
|
-
children: /* @__PURE__ */ b(
|
|
704
|
-
/* @__PURE__ */ t(
|
|
705
|
-
|
|
806
|
+
children: /* @__PURE__ */ b(X, { gap: "4", children: [
|
|
807
|
+
/* @__PURE__ */ t(H, { children: r("apiKeys.revokeMessage", { name: i }) }),
|
|
808
|
+
m.isError ? /* @__PURE__ */ t(C, { status: "error", colorPalette: "danger", title: r("apiKeys.revokeFailed") }) : null
|
|
706
809
|
] })
|
|
707
810
|
}
|
|
708
811
|
);
|
|
709
812
|
}
|
|
710
|
-
function
|
|
711
|
-
const { t: n } =
|
|
712
|
-
queryKey:
|
|
813
|
+
function Ga({ client: e }) {
|
|
814
|
+
const { t: n } = V(h), { workspaceId: l } = v(), a = De(), r = Ie(), [s, p] = U(!1), [m, g] = U(null), [i, c] = U(!1), o = k({
|
|
815
|
+
queryKey: I.apiKeys(l),
|
|
713
816
|
queryFn: () => e.listApiKeys(),
|
|
714
|
-
enabled:
|
|
715
|
-
}), d =
|
|
817
|
+
enabled: a
|
|
818
|
+
}), d = z(
|
|
716
819
|
() => [
|
|
717
820
|
{
|
|
718
821
|
id: "name",
|
|
719
822
|
header: n("fields.name"),
|
|
720
|
-
cell: (
|
|
823
|
+
cell: (u) => /* @__PURE__ */ t(w, { value: u.row.original.name })
|
|
721
824
|
},
|
|
722
825
|
{
|
|
723
826
|
// The secret's first characters, which tell keys apart where a
|
|
@@ -725,40 +828,40 @@ function ti({ client: e }) {
|
|
|
725
828
|
id: "prefix",
|
|
726
829
|
header: n("apiKeys.prefix"),
|
|
727
830
|
size: 120,
|
|
728
|
-
cell: (
|
|
831
|
+
cell: (u) => /* @__PURE__ */ t(ke, { value: u.row.original.keyPrefix })
|
|
729
832
|
},
|
|
730
833
|
{
|
|
731
834
|
id: "owner",
|
|
732
835
|
header: n("apiKeys.owner"),
|
|
733
836
|
size: 160,
|
|
734
|
-
cell: (
|
|
837
|
+
cell: (u) => /* @__PURE__ */ t(qn, { name: r(u.row.original.owner) })
|
|
735
838
|
},
|
|
736
839
|
{
|
|
737
840
|
id: "created",
|
|
738
841
|
header: n("apiKeys.created"),
|
|
739
842
|
size: 130,
|
|
740
|
-
cell: (
|
|
843
|
+
cell: (u) => /* @__PURE__ */ t(at, { value: u.row.original.createTime })
|
|
741
844
|
},
|
|
742
845
|
{
|
|
743
846
|
id: "expires",
|
|
744
847
|
header: n("apiKeys.expires"),
|
|
745
848
|
size: 130,
|
|
746
|
-
cell: (
|
|
849
|
+
cell: (u) => u.row.original.expireTime ? /* @__PURE__ */ t(at, { value: u.row.original.expireTime }) : /* @__PURE__ */ t(w, { value: n("apiKeys.never") })
|
|
747
850
|
},
|
|
748
851
|
{
|
|
749
852
|
id: "actions",
|
|
750
853
|
header: "",
|
|
751
854
|
minSize: 60,
|
|
752
|
-
cell: (
|
|
753
|
-
|
|
855
|
+
cell: (u) => /* @__PURE__ */ t(
|
|
856
|
+
_n,
|
|
754
857
|
{
|
|
755
858
|
actions: [
|
|
756
859
|
{
|
|
757
|
-
icon:
|
|
758
|
-
label: n("apiKeys.revokeKey", { name:
|
|
860
|
+
icon: Ze,
|
|
861
|
+
label: n("apiKeys.revokeKey", { name: u.row.original.name }),
|
|
759
862
|
colorPalette: "red",
|
|
760
863
|
onClick: () => {
|
|
761
|
-
u
|
|
864
|
+
g(u.row.original), c(!0);
|
|
762
865
|
}
|
|
763
866
|
}
|
|
764
867
|
]
|
|
@@ -766,82 +869,525 @@ function ti({ client: e }) {
|
|
|
766
869
|
)
|
|
767
870
|
}
|
|
768
871
|
],
|
|
769
|
-
[n,
|
|
872
|
+
[n, r]
|
|
770
873
|
);
|
|
771
874
|
return /* @__PURE__ */ b(
|
|
772
|
-
|
|
875
|
+
oe,
|
|
773
876
|
{
|
|
774
877
|
title: n("apiKeys.title"),
|
|
775
878
|
subtitle: n("apiKeys.subtitle"),
|
|
776
|
-
actions:
|
|
777
|
-
/* @__PURE__ */ t(
|
|
879
|
+
actions: a ? /* @__PURE__ */ b(W, { variant: "solid", onClick: () => p(!0), children: [
|
|
880
|
+
/* @__PURE__ */ t(be, { size: 16, "aria-hidden": !0 }),
|
|
778
881
|
n("apiKeys.new")
|
|
779
882
|
] }) : void 0,
|
|
780
883
|
children: [
|
|
781
|
-
|
|
782
|
-
|
|
884
|
+
a ? o.isError ? /* @__PURE__ */ t(M, {}) : /* @__PURE__ */ t(
|
|
885
|
+
te,
|
|
783
886
|
{
|
|
784
887
|
columns: d,
|
|
785
|
-
data:
|
|
786
|
-
loading:
|
|
787
|
-
getRowId: (
|
|
888
|
+
data: o.data ?? [],
|
|
889
|
+
loading: o.isPending,
|
|
890
|
+
getRowId: (u) => u.id,
|
|
788
891
|
emptyState: n("apiKeys.empty")
|
|
789
892
|
}
|
|
790
|
-
) : /* @__PURE__ */ t(
|
|
791
|
-
|
|
893
|
+
) : /* @__PURE__ */ t(T, { px: "8", py: "6", children: /* @__PURE__ */ t(
|
|
894
|
+
pt,
|
|
792
895
|
{
|
|
793
|
-
icon: /* @__PURE__ */ t(
|
|
896
|
+
icon: /* @__PURE__ */ t(Ln, { size: 32, "aria-hidden": !0 }),
|
|
794
897
|
header: n("apiKeys.title"),
|
|
795
898
|
description: n("apiKeys.importersOnly")
|
|
796
899
|
}
|
|
797
900
|
) }),
|
|
798
|
-
/* @__PURE__ */ t(
|
|
901
|
+
/* @__PURE__ */ t(Nl, { client: e, open: s, onClose: () => p(!1) }),
|
|
799
902
|
/* @__PURE__ */ t(
|
|
800
|
-
|
|
903
|
+
Yl,
|
|
801
904
|
{
|
|
802
905
|
client: e,
|
|
803
|
-
apiKey:
|
|
804
|
-
open:
|
|
805
|
-
onClose: () =>
|
|
906
|
+
apiKey: m,
|
|
907
|
+
open: i,
|
|
908
|
+
onClose: () => c(!1)
|
|
806
909
|
}
|
|
807
910
|
)
|
|
808
911
|
]
|
|
809
912
|
}
|
|
810
913
|
);
|
|
811
914
|
}
|
|
812
|
-
|
|
915
|
+
function sn(e, n, l) {
|
|
916
|
+
const { workspaceId: a } = v();
|
|
917
|
+
return k({
|
|
918
|
+
queryKey: I.import(a, n),
|
|
919
|
+
queryFn: () => e.getImport(n),
|
|
920
|
+
refetchInterval: (r) => r.state.data && Me(r.state.data) ? l : !1
|
|
921
|
+
});
|
|
922
|
+
}
|
|
923
|
+
const Le = (e, n) => new Date(n).toLocaleString(e);
|
|
924
|
+
function dn({ im: e }) {
|
|
925
|
+
const { t: n } = V(h);
|
|
926
|
+
return /* @__PURE__ */ b(O, { gap: "2", children: [
|
|
927
|
+
e.dryRun ? /* @__PURE__ */ t(Xe, { tone: "accent", label: n("dryRun.badge") }) : null,
|
|
928
|
+
/* @__PURE__ */ t(vl, { im: e })
|
|
929
|
+
] });
|
|
930
|
+
}
|
|
931
|
+
function pn({ im: e }) {
|
|
932
|
+
const { t: n } = V(h), l = Ie(), a = e.dryRun ? "dryRun" : "imports";
|
|
933
|
+
return e.outcome === "failed" ? /* @__PURE__ */ t(C, { status: "error", colorPalette: "danger", title: n(`${a}.failedTitle`), children: e.failureReason }) : e.outcome === "cancelled" ? /* @__PURE__ */ t(C, { status: "info", colorPalette: "gray", children: n(`${a}.cancelledBody`, { person: l(e.cancelledBy) }) }) : e.outcome === "succeeded_with_problems" ? /* @__PURE__ */ t(C, { status: "warning", colorPalette: "warning", children: n(`${a}.problemsBody`, { count: e.counts.problems }) }) : Me(e) && e.cancelledBy ? /* @__PURE__ */ t(C, { status: "warning", colorPalette: "warning", children: n("imports.cancellingBody", { person: l(e.cancelledBy) }) }) : e.phase === "queued" ? /* @__PURE__ */ t(C, { status: "info", colorPalette: "info", children: n("imports.queuedBody") }) : null;
|
|
934
|
+
}
|
|
935
|
+
function un({ im: e }) {
|
|
936
|
+
const { t: n } = V(h), { done: l, total: a } = e.progress, r = a > 0, s = e.phase;
|
|
937
|
+
return /* @__PURE__ */ t(N, { title: n("imports.progressTitle"), children: /* @__PURE__ */ b(X, { gap: "2", children: [
|
|
938
|
+
/* @__PURE__ */ t(
|
|
939
|
+
Lt,
|
|
940
|
+
{
|
|
941
|
+
label: e.dryRun ? n(`dryRun.phaseLong.${s}`) : n(`imports.phaseLong.${s}`),
|
|
942
|
+
value: r ? Math.round(l / a * 100) : null,
|
|
943
|
+
colorPalette: "info"
|
|
944
|
+
}
|
|
945
|
+
),
|
|
946
|
+
/* @__PURE__ */ t(H, { color: "muted", fontSize: "sm", children: r ? n("imports.progressOf", { done: l, total: a }) : n("imports.progressUnknown") })
|
|
947
|
+
] }) });
|
|
948
|
+
}
|
|
949
|
+
function mn({ im: e }) {
|
|
950
|
+
const { t: n, i18n: l } = V(h), a = l.language, r = Ie();
|
|
951
|
+
return /* @__PURE__ */ t(N, { title: n("imports.details"), children: /* @__PURE__ */ b(Y, { children: [
|
|
952
|
+
/* @__PURE__ */ t(Y.Row, { label: n("imports.startedBy"), children: r(e.startedBy) }),
|
|
953
|
+
/* @__PURE__ */ t(Y.Row, { label: n("imports.started"), children: Le(a, e.startTime || e.createTime) }),
|
|
954
|
+
e.endTime ? /* @__PURE__ */ t(Y.Row, { label: n("imports.ended"), children: Le(a, e.endTime) }) : null,
|
|
955
|
+
e.dryRun ? /* @__PURE__ */ t(Y.Row, { label: n("dryRun.ranOn"), children: e.draft ? n("dryRun.onDrafts") : n("dryRun.onReleases") }) : null,
|
|
956
|
+
/* @__PURE__ */ t(Y.Row, { label: n("imports.effectiveDate"), children: e.effectiveDate || n("imports.none") }),
|
|
957
|
+
/* @__PURE__ */ t(Y.Row, { label: n("imports.source"), children: e.source ? n("imports.sourceValue", { reference: e.source.reference, date: e.source.date }) : n("imports.none") }),
|
|
958
|
+
e.changeSetId ? /* @__PURE__ */ t(Y.Row, { label: n("imports.changeSet"), children: /* @__PURE__ */ t(Bl, { changeSetId: e.changeSetId }) }) : null
|
|
959
|
+
] }) });
|
|
960
|
+
}
|
|
961
|
+
function gn({ im: e }) {
|
|
962
|
+
const { t: n } = V(h), { importProfile: l, mappings: a, entitySet: r } = e.releases;
|
|
963
|
+
return /* @__PURE__ */ t(N, { title: e.draft ? n("dryRun.configuration") : n("imports.releases"), children: /* @__PURE__ */ b(Y, { children: [
|
|
964
|
+
l ? /* @__PURE__ */ t(Y.Row, { label: n("imports.profile"), children: /* @__PURE__ */ t(tt, { section: "profiles", release: l }) }) : null,
|
|
965
|
+
/* @__PURE__ */ t(Y.Row, { label: n("imports.mappings"), children: /* @__PURE__ */ t(Zt.Root, { ps: "0", listStyleType: "none", children: a.map((s) => /* @__PURE__ */ t(Zt.Item, { children: /* @__PURE__ */ t(tt, { section: "mappings", release: s }) }, s.revisionId || s.releaseId)) }) }),
|
|
966
|
+
/* @__PURE__ */ t(Y.Row, { label: n("imports.entitySet"), children: r ? /* @__PURE__ */ t(tt, { section: "entitySets", release: r }) : n("imports.none") })
|
|
967
|
+
] }) });
|
|
968
|
+
}
|
|
969
|
+
function tt({
|
|
970
|
+
section: e,
|
|
971
|
+
release: n
|
|
972
|
+
}) {
|
|
973
|
+
const { t: l } = V(h), { paths: a } = x();
|
|
974
|
+
return /* @__PURE__ */ t(ct, { asChild: !0, children: /* @__PURE__ */ t($t, { to: Re(a, e, n.configurationId), children: n.revisionId ? l("dryRun.draftOf", { name: n.name }) : l("imports.releaseOf", { name: n.name, number: n.number }) }) });
|
|
975
|
+
}
|
|
976
|
+
function bn(e, n) {
|
|
977
|
+
const { t: l } = V(h), { workspaceId: a } = v(), r = De(), s = $(), [p, m] = U(!1), g = n.dryRun ? "dryRun" : "imports", i = r && Me(n) && !n.cancelledBy;
|
|
978
|
+
ut(
|
|
979
|
+
i ? /* @__PURE__ */ b(D, { storageKey: "importhub.import.rail", children: [
|
|
980
|
+
/* @__PURE__ */ t(D.Header, { title: l("rail.title") }),
|
|
981
|
+
/* @__PURE__ */ t(D.Section, { id: "actions", label: l("rail.actions"), children: /* @__PURE__ */ t(
|
|
982
|
+
D.IconButton,
|
|
983
|
+
{
|
|
984
|
+
label: l(`${g}.cancel`),
|
|
985
|
+
icon: /* @__PURE__ */ t(Qn, { size: 16 }),
|
|
986
|
+
tone: "outline-red",
|
|
987
|
+
onClick: () => m(!0)
|
|
988
|
+
}
|
|
989
|
+
) })
|
|
990
|
+
] }) : null
|
|
991
|
+
);
|
|
992
|
+
const c = re({
|
|
993
|
+
mutationFn: () => e.cancelImport(n.id),
|
|
994
|
+
onSuccess: (d) => {
|
|
995
|
+
s.setQueryData(I.import(a, d.id), d), s.invalidateQueries({ queryKey: I.imports(a) }), m(!1);
|
|
996
|
+
}
|
|
997
|
+
}), { reset: o } = c;
|
|
998
|
+
return P(() => {
|
|
999
|
+
p && o();
|
|
1000
|
+
}, [p, o]), /* @__PURE__ */ t(
|
|
1001
|
+
Be,
|
|
1002
|
+
{
|
|
1003
|
+
open: p,
|
|
1004
|
+
onClose: () => m(!1),
|
|
1005
|
+
header: l(`${g}.cancelTitle`),
|
|
1006
|
+
lazyMount: !0,
|
|
1007
|
+
unmountOnExit: !0,
|
|
1008
|
+
footer: /* @__PURE__ */ b(O, { gap: "2", children: [
|
|
1009
|
+
/* @__PURE__ */ t(W, { variant: "outline", onClick: () => m(!1), children: l("imports.keepRunning") }),
|
|
1010
|
+
/* @__PURE__ */ t(
|
|
1011
|
+
W,
|
|
1012
|
+
{
|
|
1013
|
+
variant: "solid",
|
|
1014
|
+
colorPalette: "red",
|
|
1015
|
+
loading: c.isPending,
|
|
1016
|
+
onClick: () => c.mutate(),
|
|
1017
|
+
children: l(n.dryRun ? "dryRun.cancel" : "imports.cancelConfirm")
|
|
1018
|
+
}
|
|
1019
|
+
)
|
|
1020
|
+
] }),
|
|
1021
|
+
children: /* @__PURE__ */ b(X, { gap: "4", children: [
|
|
1022
|
+
/* @__PURE__ */ t(H, { children: l(`${g}.cancelMessage`) }),
|
|
1023
|
+
c.isError ? /* @__PURE__ */ t(
|
|
1024
|
+
C,
|
|
1025
|
+
{
|
|
1026
|
+
status: "error",
|
|
1027
|
+
colorPalette: "danger",
|
|
1028
|
+
title: l("imports.cancelFailed", { message: c.error.message })
|
|
1029
|
+
}
|
|
1030
|
+
) : null
|
|
1031
|
+
] })
|
|
1032
|
+
}
|
|
1033
|
+
);
|
|
1034
|
+
}
|
|
1035
|
+
function Rn({ client: e, im: n }) {
|
|
1036
|
+
const { t: l } = V(h), { workspaceId: a } = v(), [r, s] = U(""), [p, m] = U(""), g = mt({
|
|
1037
|
+
queryKey: I.itemProblems(a, n.id, r, p),
|
|
1038
|
+
queryFn: ({ pageParam: S }) => e.listItemProblems(n.id, { mappingId: r, sourceKeyQuery: p, pageToken: S }),
|
|
1039
|
+
initialPageParam: "",
|
|
1040
|
+
getNextPageParam: (S) => S.nextPageToken || void 0,
|
|
1041
|
+
// Keeps the rows while a new filter's answer loads, rather than
|
|
1042
|
+
// flashing an empty table at every keystroke.
|
|
1043
|
+
placeholderData: (S) => S
|
|
1044
|
+
}), i = n.counts.problems, c = bt(i), { refetch: o } = g;
|
|
1045
|
+
P(() => {
|
|
1046
|
+
i !== c.current && (c.current = i, o());
|
|
1047
|
+
}, [i, o]);
|
|
1048
|
+
const d = g.data?.pages[0], u = z(
|
|
1049
|
+
() => g.data?.pages.flatMap((S) => S.itemProblems) ?? [],
|
|
1050
|
+
[g.data]
|
|
1051
|
+
), R = z(
|
|
1052
|
+
() => [
|
|
1053
|
+
{
|
|
1054
|
+
id: "kind",
|
|
1055
|
+
header: l("imports.kind"),
|
|
1056
|
+
size: 150,
|
|
1057
|
+
cell: (S) => {
|
|
1058
|
+
const y = !!S.row.original.pendingReference, F = l(y ? "imports.pendingReference" : "imports.itemProblem");
|
|
1059
|
+
return /* @__PURE__ */ t(Qe, { value: F, toneMap: { [F]: y ? "warning" : "danger" } });
|
|
1060
|
+
}
|
|
1061
|
+
},
|
|
1062
|
+
{
|
|
1063
|
+
id: "sourceKey",
|
|
1064
|
+
header: l("imports.sourceKey"),
|
|
1065
|
+
size: 180,
|
|
1066
|
+
cell: (S) => /* @__PURE__ */ t(gt, { value: S.row.original.sourceKey || l("imports.noSourceKey") })
|
|
1067
|
+
},
|
|
1068
|
+
{
|
|
1069
|
+
id: "mapping",
|
|
1070
|
+
header: l("imports.mapping"),
|
|
1071
|
+
size: 160,
|
|
1072
|
+
cell: (S) => /* @__PURE__ */ t(w, { value: S.row.original.mappingName })
|
|
1073
|
+
},
|
|
1074
|
+
{
|
|
1075
|
+
id: "field",
|
|
1076
|
+
header: l("imports.field"),
|
|
1077
|
+
size: 160,
|
|
1078
|
+
cell: (S) => S.row.original.field ? /* @__PURE__ */ t(ke, { value: S.row.original.field }) : /* @__PURE__ */ t(w, { value: l("imports.wholeVersion") })
|
|
1079
|
+
},
|
|
1080
|
+
{
|
|
1081
|
+
id: "reason",
|
|
1082
|
+
header: l("imports.reason"),
|
|
1083
|
+
minSize: 240,
|
|
1084
|
+
cell: (S) => /* @__PURE__ */ t(w, { value: S.row.original.reason })
|
|
1085
|
+
}
|
|
1086
|
+
],
|
|
1087
|
+
[l]
|
|
1088
|
+
);
|
|
1089
|
+
if (g.isError) return /* @__PURE__ */ t(M, {});
|
|
1090
|
+
const A = d?.totalCount ?? 0, Z = d?.pendingReferenceCount ?? 0;
|
|
1091
|
+
return /* @__PURE__ */ b(X, { gap: "3", children: [
|
|
1092
|
+
/* @__PURE__ */ b(pe, { children: [
|
|
1093
|
+
/* @__PURE__ */ t(
|
|
1094
|
+
qt,
|
|
1095
|
+
{
|
|
1096
|
+
"aria-label": l("imports.searchSourceKey"),
|
|
1097
|
+
placeholder: l("imports.searchSourceKey"),
|
|
1098
|
+
onSearch: m,
|
|
1099
|
+
debounceMs: 200,
|
|
1100
|
+
maxWidth: "260px"
|
|
1101
|
+
}
|
|
1102
|
+
),
|
|
1103
|
+
/* @__PURE__ */ b(
|
|
1104
|
+
lt,
|
|
1105
|
+
{
|
|
1106
|
+
"aria-label": l("imports.filterMapping"),
|
|
1107
|
+
size: "sm",
|
|
1108
|
+
width: "auto",
|
|
1109
|
+
value: r,
|
|
1110
|
+
onChange: (S) => s(S.currentTarget.value),
|
|
1111
|
+
children: [
|
|
1112
|
+
/* @__PURE__ */ t("option", { value: "", children: l("imports.allMappings", { count: A }) }),
|
|
1113
|
+
(d?.mappings ?? []).map((S) => /* @__PURE__ */ t("option", { value: S.mappingId, children: l("imports.mappingCount", { name: S.mappingName, count: S.count }) }, S.mappingId))
|
|
1114
|
+
]
|
|
1115
|
+
}
|
|
1116
|
+
),
|
|
1117
|
+
/* @__PURE__ */ t(pe.Right, { children: /* @__PURE__ */ t(pe.Count, { children: Z > 0 ? l("imports.problemCountWithPending", {
|
|
1118
|
+
matching: d?.matchingCount ?? 0,
|
|
1119
|
+
total: A,
|
|
1120
|
+
count: Z
|
|
1121
|
+
}) : l("imports.problemCount", { matching: d?.matchingCount ?? 0, total: A }) }) })
|
|
1122
|
+
] }),
|
|
1123
|
+
/* @__PURE__ */ t(
|
|
1124
|
+
te,
|
|
1125
|
+
{
|
|
1126
|
+
columns: R,
|
|
1127
|
+
data: u,
|
|
1128
|
+
loading: g.isPending,
|
|
1129
|
+
getRowId: (S) => S.id,
|
|
1130
|
+
emptyState: l(A === 0 ? "imports.noItemProblems" : "imports.noMatchingProblems")
|
|
1131
|
+
}
|
|
1132
|
+
),
|
|
1133
|
+
g.hasNextPage ? /* @__PURE__ */ t(st, { children: /* @__PURE__ */ t(
|
|
1134
|
+
W,
|
|
1135
|
+
{
|
|
1136
|
+
variant: "outline",
|
|
1137
|
+
loading: g.isFetchingNextPage,
|
|
1138
|
+
onClick: () => {
|
|
1139
|
+
g.fetchNextPage();
|
|
1140
|
+
},
|
|
1141
|
+
children: l("imports.loadMore")
|
|
1142
|
+
}
|
|
1143
|
+
) }) : null
|
|
1144
|
+
] });
|
|
1145
|
+
}
|
|
1146
|
+
const Ul = {
|
|
1147
|
+
created: "success",
|
|
1148
|
+
planned: "info",
|
|
1149
|
+
corrected: "warning",
|
|
1150
|
+
kept: "neutral",
|
|
1151
|
+
stubbed: "accent",
|
|
1152
|
+
unchanged: "neutral"
|
|
1153
|
+
}, Kt = (e, n) => e(`dryRun.action.${n}`);
|
|
1154
|
+
function Fl({
|
|
1155
|
+
client: e,
|
|
1156
|
+
im: n,
|
|
1157
|
+
action: l,
|
|
1158
|
+
onActionChange: a
|
|
1159
|
+
}) {
|
|
1160
|
+
const { t: r } = V(h), { workspaceId: s } = v(), [p, m] = U(""), [g, i] = U(""), c = mt({
|
|
1161
|
+
queryKey: I.dryRunContents(s, n.id, l, p, g),
|
|
1162
|
+
queryFn: ({ pageParam: y }) => e.listDryRunContents(n.id, { action: l, mappingId: p, sourceKeyQuery: g, pageToken: y }),
|
|
1163
|
+
initialPageParam: "",
|
|
1164
|
+
getNextPageParam: (y) => y.nextPageToken || void 0,
|
|
1165
|
+
// Keeps the rows while a new filter's answer loads.
|
|
1166
|
+
placeholderData: (y) => y
|
|
1167
|
+
}), o = `${n.phase}/${n.counts.matched}/${n.progress.done}`, d = bt(o), { refetch: u } = c;
|
|
1168
|
+
P(() => {
|
|
1169
|
+
o !== d.current && (d.current = o, u());
|
|
1170
|
+
}, [o, u]);
|
|
1171
|
+
const R = c.data?.pages[0], A = z(
|
|
1172
|
+
() => c.data?.pages.flatMap((y) => y.contents) ?? [],
|
|
1173
|
+
[c.data]
|
|
1174
|
+
), Z = z(
|
|
1175
|
+
() => [
|
|
1176
|
+
{
|
|
1177
|
+
id: "action",
|
|
1178
|
+
header: r("dryRun.actionColumn"),
|
|
1179
|
+
size: 170,
|
|
1180
|
+
cell: (y) => {
|
|
1181
|
+
const F = Kt(r, y.row.original.action);
|
|
1182
|
+
return /* @__PURE__ */ t(Qe, { value: F, toneMap: { [F]: Ul[y.row.original.action] } });
|
|
1183
|
+
}
|
|
1184
|
+
},
|
|
1185
|
+
{
|
|
1186
|
+
id: "sourceKey",
|
|
1187
|
+
header: r("imports.sourceKey"),
|
|
1188
|
+
size: 180,
|
|
1189
|
+
cell: (y) => /* @__PURE__ */ t(gt, { value: y.row.original.sourceKey })
|
|
1190
|
+
},
|
|
1191
|
+
{
|
|
1192
|
+
id: "displayName",
|
|
1193
|
+
header: r("dryRun.displayName"),
|
|
1194
|
+
minSize: 200,
|
|
1195
|
+
cell: (y) => /* @__PURE__ */ t(w, { value: y.row.original.displayName || null })
|
|
1196
|
+
},
|
|
1197
|
+
{
|
|
1198
|
+
id: "mapping",
|
|
1199
|
+
header: r("imports.mapping"),
|
|
1200
|
+
size: 160,
|
|
1201
|
+
cell: (y) => /* @__PURE__ */ t(w, { value: y.row.original.mappingName })
|
|
1202
|
+
},
|
|
1203
|
+
{
|
|
1204
|
+
id: "validity",
|
|
1205
|
+
header: r("dryRun.validity"),
|
|
1206
|
+
size: 200,
|
|
1207
|
+
cell: (y) => /* @__PURE__ */ t(w, { value: Kl(r, y.row.original) })
|
|
1208
|
+
}
|
|
1209
|
+
],
|
|
1210
|
+
[r]
|
|
1211
|
+
);
|
|
1212
|
+
if (c.isError) return /* @__PURE__ */ t(M, {});
|
|
1213
|
+
const S = R?.totalCount ?? 0;
|
|
1214
|
+
return /* @__PURE__ */ b(X, { gap: "3", children: [
|
|
1215
|
+
/* @__PURE__ */ b(pe, { children: [
|
|
1216
|
+
/* @__PURE__ */ t(
|
|
1217
|
+
qt,
|
|
1218
|
+
{
|
|
1219
|
+
"aria-label": r("imports.searchSourceKey"),
|
|
1220
|
+
placeholder: r("imports.searchSourceKey"),
|
|
1221
|
+
onSearch: i,
|
|
1222
|
+
debounceMs: 200,
|
|
1223
|
+
maxWidth: "260px"
|
|
1224
|
+
}
|
|
1225
|
+
),
|
|
1226
|
+
/* @__PURE__ */ b(
|
|
1227
|
+
lt,
|
|
1228
|
+
{
|
|
1229
|
+
"aria-label": r("dryRun.filterAction"),
|
|
1230
|
+
size: "sm",
|
|
1231
|
+
width: "auto",
|
|
1232
|
+
value: l,
|
|
1233
|
+
onChange: (y) => a(y.currentTarget.value),
|
|
1234
|
+
children: [
|
|
1235
|
+
/* @__PURE__ */ t("option", { value: "", children: r("dryRun.allActions") }),
|
|
1236
|
+
fn.map((y) => /* @__PURE__ */ t("option", { value: y, children: Kt(r, y) }, y))
|
|
1237
|
+
]
|
|
1238
|
+
}
|
|
1239
|
+
),
|
|
1240
|
+
/* @__PURE__ */ b(
|
|
1241
|
+
lt,
|
|
1242
|
+
{
|
|
1243
|
+
"aria-label": r("imports.filterMapping"),
|
|
1244
|
+
size: "sm",
|
|
1245
|
+
width: "auto",
|
|
1246
|
+
value: p,
|
|
1247
|
+
onChange: (y) => m(y.currentTarget.value),
|
|
1248
|
+
children: [
|
|
1249
|
+
/* @__PURE__ */ t("option", { value: "", children: r("dryRun.allMappings") }),
|
|
1250
|
+
n.releases.mappings.map((y) => /* @__PURE__ */ t("option", { value: y.configurationId, children: y.name }, y.configurationId))
|
|
1251
|
+
]
|
|
1252
|
+
}
|
|
1253
|
+
),
|
|
1254
|
+
/* @__PURE__ */ t(pe.Right, { children: /* @__PURE__ */ t(pe.Count, { children: r("dryRun.contentCount", { matching: R?.matchingCount ?? 0, total: S }) }) })
|
|
1255
|
+
] }),
|
|
1256
|
+
/* @__PURE__ */ t(
|
|
1257
|
+
te,
|
|
1258
|
+
{
|
|
1259
|
+
columns: Z,
|
|
1260
|
+
data: A,
|
|
1261
|
+
loading: c.isPending,
|
|
1262
|
+
getRowId: (y, F) => `${y.mappingId}/${y.sourceKey}/${y.firstDay}/${F}`,
|
|
1263
|
+
emptyState: r(S === 0 ? "dryRun.emptyReport" : "dryRun.noMatchingContent")
|
|
1264
|
+
}
|
|
1265
|
+
),
|
|
1266
|
+
c.hasNextPage ? /* @__PURE__ */ t(st, { children: /* @__PURE__ */ t(
|
|
1267
|
+
W,
|
|
1268
|
+
{
|
|
1269
|
+
variant: "outline",
|
|
1270
|
+
loading: c.isFetchingNextPage,
|
|
1271
|
+
onClick: () => {
|
|
1272
|
+
c.fetchNextPage();
|
|
1273
|
+
},
|
|
1274
|
+
children: r("imports.loadMore")
|
|
1275
|
+
}
|
|
1276
|
+
) }) : null
|
|
1277
|
+
] });
|
|
1278
|
+
}
|
|
1279
|
+
function Kl(e, n) {
|
|
1280
|
+
return !n.firstDay && !n.lastDay ? null : n.lastDay ? e("dryRun.validityRange", { from: n.firstDay, to: n.lastDay }) : e("dryRun.validityOpen", { from: n.firstDay });
|
|
1281
|
+
}
|
|
1282
|
+
function Xa({
|
|
1283
|
+
client: e,
|
|
1284
|
+
id: n,
|
|
1285
|
+
pollIntervalMs: l = It
|
|
1286
|
+
}) {
|
|
1287
|
+
const { t: a } = V(h), { paths: r } = x(), s = sn(e, n, l);
|
|
1288
|
+
return s.isError || !s.data ? /* @__PURE__ */ t(Q, { title: a("section.imports.title"), children: s.isError ? /* @__PURE__ */ t(M, {}) : /* @__PURE__ */ t(ye, {}) }) : s.data.dryRun ? /* @__PURE__ */ t(yn, { client: e, im: s.data }) : /* @__PURE__ */ t(
|
|
1289
|
+
Q,
|
|
1290
|
+
{
|
|
1291
|
+
title: s.data.importProfileName,
|
|
1292
|
+
breadcrumbs: [{ label: a("section.imports.title"), to: r.imports }],
|
|
1293
|
+
children: /* @__PURE__ */ t(T, { px: "8", py: "6", children: /* @__PURE__ */ t(C, { status: "info", colorPalette: "info", title: a("dryRun.notDryRun") }) })
|
|
1294
|
+
}
|
|
1295
|
+
);
|
|
1296
|
+
}
|
|
1297
|
+
function yn({ client: e, im: n }) {
|
|
1298
|
+
const { t: l, i18n: a } = V(h), { paths: r } = x(), s = Ie(), p = bn(e, n), [m, g] = U("");
|
|
1299
|
+
return /* @__PURE__ */ b(
|
|
1300
|
+
Q,
|
|
1301
|
+
{
|
|
1302
|
+
title: n.importProfileName,
|
|
1303
|
+
subtitle: l("dryRun.subtitle", {
|
|
1304
|
+
person: s(n.startedBy),
|
|
1305
|
+
time: Le(a.language, n.createTime)
|
|
1306
|
+
}),
|
|
1307
|
+
breadcrumbs: [{ label: l("section.imports.title"), to: r.imports }],
|
|
1308
|
+
badges: /* @__PURE__ */ t(dn, { im: n }),
|
|
1309
|
+
children: [
|
|
1310
|
+
/* @__PURE__ */ t(T, { px: "8", py: "6", children: /* @__PURE__ */ b(X, { gap: "6", children: [
|
|
1311
|
+
/* @__PURE__ */ t(pn, { im: n }),
|
|
1312
|
+
n.phase === "reading" || n.phase === "writing" ? /* @__PURE__ */ t(un, { im: n }) : null,
|
|
1313
|
+
n.counts.corrected > 0 ? (
|
|
1314
|
+
// A correction Supersedes a published Release: the one thing in
|
|
1315
|
+
// the report a person must not miss before running it for real.
|
|
1316
|
+
/* @__PURE__ */ t(
|
|
1317
|
+
C,
|
|
1318
|
+
{
|
|
1319
|
+
status: "warning",
|
|
1320
|
+
colorPalette: "warning",
|
|
1321
|
+
title: l("dryRun.correctionsTitle", { count: n.counts.corrected }),
|
|
1322
|
+
children: /* @__PURE__ */ b(X, { gap: "2", align: "flex-start", children: [
|
|
1323
|
+
l("dryRun.correctionsBody"),
|
|
1324
|
+
/* @__PURE__ */ t(W, { size: "sm", variant: "outline", onClick: () => g("corrected"), children: l("dryRun.showCorrections") })
|
|
1325
|
+
] })
|
|
1326
|
+
}
|
|
1327
|
+
)
|
|
1328
|
+
) : null,
|
|
1329
|
+
/* @__PURE__ */ t(N, { title: l("dryRun.summary"), children: /* @__PURE__ */ t(Y, { children: [
|
|
1330
|
+
"matched",
|
|
1331
|
+
"created",
|
|
1332
|
+
"planned",
|
|
1333
|
+
"corrected",
|
|
1334
|
+
"kept",
|
|
1335
|
+
"stubbed",
|
|
1336
|
+
"unchanged",
|
|
1337
|
+
"problems",
|
|
1338
|
+
"pendingReferences"
|
|
1339
|
+
].map((i) => /* @__PURE__ */ t(Y.Row, { label: l(`dryRun.counts.${i}`), children: n.counts[i].toLocaleString() }, i)) }) }),
|
|
1340
|
+
/* @__PURE__ */ t(N, { title: l("dryRun.report"), children: /* @__PURE__ */ t(
|
|
1341
|
+
Fl,
|
|
1342
|
+
{
|
|
1343
|
+
client: e,
|
|
1344
|
+
im: n,
|
|
1345
|
+
action: m,
|
|
1346
|
+
onActionChange: g
|
|
1347
|
+
}
|
|
1348
|
+
) }),
|
|
1349
|
+
/* @__PURE__ */ t(N, { title: l("imports.itemProblems"), children: /* @__PURE__ */ t(Rn, { client: e, im: n }) }),
|
|
1350
|
+
/* @__PURE__ */ t(mn, { im: n }),
|
|
1351
|
+
/* @__PURE__ */ t(gn, { im: n })
|
|
1352
|
+
] }) }),
|
|
1353
|
+
p
|
|
1354
|
+
]
|
|
1355
|
+
}
|
|
1356
|
+
);
|
|
1357
|
+
}
|
|
1358
|
+
const Ne = (e) => ({
|
|
813
1359
|
name: e.name,
|
|
814
1360
|
description: e.description,
|
|
815
1361
|
entities: Object.entries(e.entities).sort(([n], [l]) => n.localeCompare(l)).map(([n, l]) => ({ name: n, text: l }))
|
|
816
|
-
}),
|
|
1362
|
+
}), kl = (e) => ({
|
|
817
1363
|
name: e.name,
|
|
818
1364
|
description: e.description,
|
|
819
1365
|
entities: Object.fromEntries(
|
|
820
1366
|
e.entities.filter((n) => n.name.trim() !== "").map((n) => [n.name.trim(), n.text])
|
|
821
1367
|
)
|
|
822
1368
|
});
|
|
823
|
-
function
|
|
824
|
-
const { t:
|
|
825
|
-
queryKey:
|
|
1369
|
+
function Ba({ client: e, id: n, onDeleted: l }) {
|
|
1370
|
+
const { t: a } = V(h), { workspaceId: r } = v(), s = k({
|
|
1371
|
+
queryKey: I.entitySet(r, n),
|
|
826
1372
|
queryFn: () => e.getEntitySet(n)
|
|
827
1373
|
});
|
|
828
|
-
return s.isError || !s.data ? /* @__PURE__ */ t(
|
|
1374
|
+
return s.isError || !s.data ? /* @__PURE__ */ t(Q, { title: a("section.entitySets.title"), children: s.isError ? /* @__PURE__ */ t(M, {}) : /* @__PURE__ */ t(ye, {}) }) : /* @__PURE__ */ t(xl, { client: e, entitySet: s.data, onDeleted: l });
|
|
829
1375
|
}
|
|
830
|
-
function
|
|
1376
|
+
function xl({
|
|
831
1377
|
client: e,
|
|
832
1378
|
entitySet: n,
|
|
833
1379
|
onDeleted: l
|
|
834
1380
|
}) {
|
|
835
|
-
const { t:
|
|
836
|
-
|
|
837
|
-
d.isDirty ||
|
|
838
|
-
}, [n,
|
|
839
|
-
const
|
|
840
|
-
mutationFn: (
|
|
841
|
-
onSuccess: (
|
|
842
|
-
|
|
1381
|
+
const { t: a } = V(h), { workspaceId: r } = v(), { paths: s } = x(), p = Ve(), m = $(), [g, i] = U(!1), c = he({ defaultValues: Ne(n.content) }), { reset: o, formState: d, control: u } = c, R = nl({ control: u, name: "entities" });
|
|
1382
|
+
P(() => {
|
|
1383
|
+
d.isDirty || o(Ne(n.content));
|
|
1384
|
+
}, [n, o, d.isDirty]);
|
|
1385
|
+
const A = re({
|
|
1386
|
+
mutationFn: (f) => e.updateEntitySet(n.id, kl(f), n.state.draftRevisionId),
|
|
1387
|
+
onSuccess: (f) => {
|
|
1388
|
+
m.setQueryData(I.entitySet(r, f.id), f), o(Ne(f.content)), m.invalidateQueries({ queryKey: I.entitySets(r) });
|
|
843
1389
|
}
|
|
844
|
-
}),
|
|
1390
|
+
}), Z = c.handleSubmit((f) => A.mutate(f)), [S, y] = Mt(), F = Dt({
|
|
845
1391
|
client: e,
|
|
846
1392
|
kind: "entitySet",
|
|
847
1393
|
id: n.id,
|
|
@@ -849,133 +1395,133 @@ function pl({
|
|
|
849
1395
|
state: n.state,
|
|
850
1396
|
unsaved: d.isDirty
|
|
851
1397
|
});
|
|
852
|
-
return
|
|
853
|
-
|
|
854
|
-
/* @__PURE__ */ t(
|
|
855
|
-
/* @__PURE__ */ b(
|
|
856
|
-
|
|
1398
|
+
return ut(
|
|
1399
|
+
p ? /* @__PURE__ */ b(D, { storageKey: "importhub.entitySet.rail", children: [
|
|
1400
|
+
/* @__PURE__ */ t(D.Header, { title: a("rail.title") }),
|
|
1401
|
+
/* @__PURE__ */ b(D.Section, { id: "actions", label: a("rail.actions"), children: [
|
|
1402
|
+
F.railAction,
|
|
857
1403
|
/* @__PURE__ */ t(
|
|
858
|
-
|
|
1404
|
+
D.IconButton,
|
|
859
1405
|
{
|
|
860
|
-
label:
|
|
861
|
-
icon: /* @__PURE__ */ t(
|
|
1406
|
+
label: a("entitySets.delete"),
|
|
1407
|
+
icon: /* @__PURE__ */ t(Ze, { size: 16 }),
|
|
862
1408
|
tone: "outline-red",
|
|
863
|
-
onClick: () =>
|
|
1409
|
+
onClick: () => i(!0)
|
|
864
1410
|
}
|
|
865
1411
|
)
|
|
866
1412
|
] })
|
|
867
1413
|
] }) : null
|
|
868
1414
|
), /* @__PURE__ */ b(
|
|
869
|
-
|
|
1415
|
+
Q,
|
|
870
1416
|
{
|
|
871
1417
|
title: n.content.name,
|
|
872
|
-
breadcrumbs: [{ label:
|
|
873
|
-
badges: /* @__PURE__ */ b(
|
|
1418
|
+
breadcrumbs: [{ label: a("section.entitySets.title"), to: s.entitySets }],
|
|
1419
|
+
badges: /* @__PURE__ */ b(O, { gap: "2", children: [
|
|
874
1420
|
/* @__PURE__ */ t(
|
|
875
|
-
|
|
1421
|
+
Xe,
|
|
876
1422
|
{
|
|
877
1423
|
tone: n.validity.valid ? "success" : "danger",
|
|
878
|
-
label: n.validity.valid ?
|
|
1424
|
+
label: n.validity.valid ? a("validity.valid") : a("validity.invalid")
|
|
879
1425
|
}
|
|
880
1426
|
),
|
|
881
|
-
/* @__PURE__ */ t(
|
|
1427
|
+
/* @__PURE__ */ t(jt, { state: n.state })
|
|
882
1428
|
] }),
|
|
883
|
-
tabs:
|
|
884
|
-
actions:
|
|
1429
|
+
tabs: y,
|
|
1430
|
+
actions: p ? /* @__PURE__ */ t(
|
|
885
1431
|
W,
|
|
886
1432
|
{
|
|
887
1433
|
variant: "solid",
|
|
888
1434
|
disabled: !d.isDirty,
|
|
889
|
-
loading:
|
|
1435
|
+
loading: A.isPending,
|
|
890
1436
|
onClick: () => {
|
|
891
|
-
|
|
1437
|
+
Z();
|
|
892
1438
|
},
|
|
893
|
-
children:
|
|
1439
|
+
children: a("common.save")
|
|
894
1440
|
}
|
|
895
1441
|
) : void 0,
|
|
896
1442
|
children: [
|
|
897
|
-
|
|
898
|
-
|
|
1443
|
+
S === "history" ? /* @__PURE__ */ t(
|
|
1444
|
+
Ht,
|
|
899
1445
|
{
|
|
900
1446
|
client: e,
|
|
901
1447
|
kind: "entitySet",
|
|
902
1448
|
id: n.id,
|
|
903
1449
|
draftRevisionId: n.state.draftRevisionId,
|
|
904
1450
|
onRestored: async () => {
|
|
905
|
-
const
|
|
906
|
-
|
|
1451
|
+
const f = await e.getEntitySet(n.id);
|
|
1452
|
+
m.setQueryData(I.entitySet(r, f.id), f), o(Ne(f.content));
|
|
907
1453
|
}
|
|
908
1454
|
}
|
|
909
|
-
) : /* @__PURE__ */ t(
|
|
1455
|
+
) : /* @__PURE__ */ t(T, { px: "8", py: "6", children: /* @__PURE__ */ t(Se, { ...c, children: /* @__PURE__ */ t(
|
|
910
1456
|
"form",
|
|
911
1457
|
{
|
|
912
|
-
onSubmit: (
|
|
913
|
-
|
|
1458
|
+
onSubmit: (f) => {
|
|
1459
|
+
f.preventDefault(), p && Z();
|
|
914
1460
|
},
|
|
915
|
-
children: /* @__PURE__ */ b(
|
|
916
|
-
|
|
917
|
-
/* @__PURE__ */ t(
|
|
918
|
-
|
|
919
|
-
/* @__PURE__ */ t(
|
|
1461
|
+
children: /* @__PURE__ */ b(X, { gap: "4", children: [
|
|
1462
|
+
F.notice,
|
|
1463
|
+
/* @__PURE__ */ t(Tt, { validity: n.validity }),
|
|
1464
|
+
A.isError ? /* @__PURE__ */ t(C, { status: "error", colorPalette: "danger", title: a("save.failed"), children: A.error.message }) : null,
|
|
1465
|
+
/* @__PURE__ */ t(N, { title: a("entitySets.general"), children: /* @__PURE__ */ b(X, { gap: "4", children: [
|
|
920
1466
|
/* @__PURE__ */ t(
|
|
921
|
-
|
|
1467
|
+
_,
|
|
922
1468
|
{
|
|
923
1469
|
name: "name",
|
|
924
|
-
label:
|
|
1470
|
+
label: a("fields.name"),
|
|
925
1471
|
required: !0,
|
|
926
|
-
disabled: !
|
|
1472
|
+
disabled: !p
|
|
927
1473
|
}
|
|
928
1474
|
),
|
|
929
1475
|
/* @__PURE__ */ t(
|
|
930
|
-
|
|
1476
|
+
Rt,
|
|
931
1477
|
{
|
|
932
1478
|
name: "description",
|
|
933
|
-
label:
|
|
934
|
-
disabled: !
|
|
1479
|
+
label: a("fields.description"),
|
|
1480
|
+
disabled: !p
|
|
935
1481
|
}
|
|
936
1482
|
)
|
|
937
1483
|
] }) }),
|
|
938
|
-
/* @__PURE__ */ t(
|
|
939
|
-
|
|
940
|
-
|
|
1484
|
+
/* @__PURE__ */ t(N, { title: a("entitySets.entities"), children: /* @__PURE__ */ b(X, { gap: "3", children: [
|
|
1485
|
+
R.fields.length === 0 ? /* @__PURE__ */ t(H, { color: "fg.muted", children: a("entitySets.noEntities") }) : null,
|
|
1486
|
+
R.fields.map((f, L) => /* @__PURE__ */ b(Qt, { templateColumns: "1fr 1fr auto", gap: "3", alignItems: "end", children: [
|
|
941
1487
|
/* @__PURE__ */ t(
|
|
942
|
-
|
|
1488
|
+
_,
|
|
943
1489
|
{
|
|
944
|
-
name: `entities.${
|
|
945
|
-
label:
|
|
1490
|
+
name: `entities.${L}.name`,
|
|
1491
|
+
label: a("entitySets.entityName", { index: L + 1 }),
|
|
946
1492
|
prepend: "&",
|
|
947
1493
|
append: ";",
|
|
948
|
-
disabled: !
|
|
1494
|
+
disabled: !p
|
|
949
1495
|
}
|
|
950
1496
|
),
|
|
951
1497
|
/* @__PURE__ */ t(
|
|
952
|
-
|
|
1498
|
+
_,
|
|
953
1499
|
{
|
|
954
|
-
name: `entities.${
|
|
955
|
-
label:
|
|
956
|
-
disabled: !
|
|
1500
|
+
name: `entities.${L}.text`,
|
|
1501
|
+
label: a("entitySets.entityText", { index: L + 1 }),
|
|
1502
|
+
disabled: !p
|
|
957
1503
|
}
|
|
958
1504
|
),
|
|
959
|
-
|
|
960
|
-
|
|
1505
|
+
p ? /* @__PURE__ */ t(
|
|
1506
|
+
Fe,
|
|
961
1507
|
{
|
|
962
|
-
"aria-label":
|
|
1508
|
+
"aria-label": a("entitySets.removeEntity", { index: L + 1 }),
|
|
963
1509
|
variant: "ghost",
|
|
964
1510
|
colorPalette: "red",
|
|
965
|
-
onClick: () =>
|
|
966
|
-
children: /* @__PURE__ */ t(
|
|
1511
|
+
onClick: () => R.remove(L),
|
|
1512
|
+
children: /* @__PURE__ */ t(Ze, { size: 16 })
|
|
967
1513
|
}
|
|
968
1514
|
) : /* @__PURE__ */ t("span", {})
|
|
969
|
-
] },
|
|
970
|
-
|
|
1515
|
+
] }, f.id)),
|
|
1516
|
+
p ? /* @__PURE__ */ t(T, { children: /* @__PURE__ */ b(
|
|
971
1517
|
W,
|
|
972
1518
|
{
|
|
973
1519
|
variant: "outline",
|
|
974
1520
|
size: "sm",
|
|
975
|
-
onClick: () =>
|
|
1521
|
+
onClick: () => R.append({ name: "", text: "" }),
|
|
976
1522
|
children: [
|
|
977
|
-
/* @__PURE__ */ t(
|
|
978
|
-
|
|
1523
|
+
/* @__PURE__ */ t(be, { size: 14, "aria-hidden": !0 }),
|
|
1524
|
+
a("entitySets.addEntity")
|
|
979
1525
|
]
|
|
980
1526
|
}
|
|
981
1527
|
) }) : null
|
|
@@ -983,19 +1529,19 @@ function pl({
|
|
|
983
1529
|
] })
|
|
984
1530
|
}
|
|
985
1531
|
) }) }),
|
|
986
|
-
|
|
1532
|
+
F.dialog,
|
|
987
1533
|
/* @__PURE__ */ t(
|
|
988
|
-
|
|
1534
|
+
Pt,
|
|
989
1535
|
{
|
|
990
|
-
open:
|
|
991
|
-
onClose: () =>
|
|
992
|
-
title:
|
|
993
|
-
message:
|
|
1536
|
+
open: g,
|
|
1537
|
+
onClose: () => i(!1),
|
|
1538
|
+
title: a("entitySets.deleteTitle", { name: n.content.name }),
|
|
1539
|
+
message: a("entitySets.deleteMessage"),
|
|
994
1540
|
onDelete: () => e.deleteEntitySet(n.id),
|
|
995
1541
|
onDeleted: () => {
|
|
996
|
-
|
|
997
|
-
queryKey:
|
|
998
|
-
}),
|
|
1542
|
+
i(!1), m.removeQueries({
|
|
1543
|
+
queryKey: I.entitySet(r, n.id)
|
|
1544
|
+
}), m.invalidateQueries({ queryKey: I.entitySets(r) }), l();
|
|
999
1545
|
}
|
|
1000
1546
|
}
|
|
1001
1547
|
)
|
|
@@ -1003,77 +1549,77 @@ function pl({
|
|
|
1003
1549
|
}
|
|
1004
1550
|
);
|
|
1005
1551
|
}
|
|
1006
|
-
function
|
|
1552
|
+
function At({
|
|
1007
1553
|
open: e,
|
|
1008
1554
|
onClose: n,
|
|
1009
1555
|
title: l,
|
|
1010
|
-
children:
|
|
1011
|
-
defaultValues:
|
|
1556
|
+
children: a,
|
|
1557
|
+
defaultValues: r,
|
|
1012
1558
|
onCreate: s,
|
|
1013
|
-
onCreated:
|
|
1559
|
+
onCreated: p
|
|
1014
1560
|
}) {
|
|
1015
|
-
const { t:
|
|
1016
|
-
defaultValues: { name: "", description: "", ...
|
|
1017
|
-
}),
|
|
1018
|
-
|
|
1019
|
-
e && (
|
|
1020
|
-
}, [e,
|
|
1021
|
-
const d =
|
|
1022
|
-
if (!
|
|
1023
|
-
|
|
1561
|
+
const { t: m } = V(h), g = he({
|
|
1562
|
+
defaultValues: { name: "", description: "", ...r }
|
|
1563
|
+
}), i = re({ mutationFn: s, onSuccess: p }), { reset: c } = g, { reset: o } = i;
|
|
1564
|
+
P(() => {
|
|
1565
|
+
e && (c({ name: "", description: "", ...r }), o());
|
|
1566
|
+
}, [e, c, o, r]);
|
|
1567
|
+
const d = g.handleSubmit((u) => {
|
|
1568
|
+
if (!u.name.trim()) {
|
|
1569
|
+
g.setError("name", { message: m("create.nameRequired") });
|
|
1024
1570
|
return;
|
|
1025
1571
|
}
|
|
1026
|
-
|
|
1027
|
-
onError: (
|
|
1028
|
-
|
|
1572
|
+
i.mutate(u, {
|
|
1573
|
+
onError: (R) => {
|
|
1574
|
+
R instanceof nt && g.setError("name", { message: m("create.nameTaken") });
|
|
1029
1575
|
}
|
|
1030
1576
|
});
|
|
1031
1577
|
});
|
|
1032
1578
|
return /* @__PURE__ */ t(
|
|
1033
|
-
|
|
1579
|
+
Be,
|
|
1034
1580
|
{
|
|
1035
1581
|
open: e,
|
|
1036
1582
|
onClose: n,
|
|
1037
1583
|
header: l,
|
|
1038
1584
|
lazyMount: !0,
|
|
1039
1585
|
unmountOnExit: !0,
|
|
1040
|
-
saveLabel:
|
|
1041
|
-
cancelLabel:
|
|
1586
|
+
saveLabel: m("common.create"),
|
|
1587
|
+
cancelLabel: m("common.cancel"),
|
|
1042
1588
|
onSave: () => {
|
|
1043
1589
|
d();
|
|
1044
1590
|
},
|
|
1045
|
-
loading:
|
|
1046
|
-
children: /* @__PURE__ */ t(
|
|
1591
|
+
loading: i.isPending,
|
|
1592
|
+
children: /* @__PURE__ */ t(Se, { ...g, children: /* @__PURE__ */ t(
|
|
1047
1593
|
"form",
|
|
1048
1594
|
{
|
|
1049
|
-
onSubmit: (
|
|
1050
|
-
|
|
1595
|
+
onSubmit: (u) => {
|
|
1596
|
+
u.preventDefault(), d();
|
|
1051
1597
|
},
|
|
1052
|
-
children: /* @__PURE__ */ b(
|
|
1053
|
-
/* @__PURE__ */ t(
|
|
1054
|
-
/* @__PURE__ */ t(
|
|
1055
|
-
|
|
1056
|
-
|
|
1598
|
+
children: /* @__PURE__ */ b(X, { gap: "4", children: [
|
|
1599
|
+
/* @__PURE__ */ t(_, { name: "name", label: m("fields.name"), required: !0 }),
|
|
1600
|
+
/* @__PURE__ */ t(Rt, { name: "description", label: m("fields.description") }),
|
|
1601
|
+
a,
|
|
1602
|
+
i.isError && !(i.error instanceof nt) ? /* @__PURE__ */ t(C, { status: "error", colorPalette: "danger", title: m("create.failed") }) : null
|
|
1057
1603
|
] })
|
|
1058
1604
|
}
|
|
1059
1605
|
) })
|
|
1060
1606
|
}
|
|
1061
1607
|
);
|
|
1062
1608
|
}
|
|
1063
|
-
function
|
|
1064
|
-
const { t: l } =
|
|
1065
|
-
queryKey:
|
|
1609
|
+
function Wa({ client: e, onOpen: n }) {
|
|
1610
|
+
const { t: l } = V(h), { workspaceId: a } = v(), { paths: r } = x(), s = Ve(), p = $(), [m, g] = U(!1), i = k({
|
|
1611
|
+
queryKey: I.entitySets(a),
|
|
1066
1612
|
queryFn: () => e.listEntitySets()
|
|
1067
|
-
}),
|
|
1613
|
+
}), c = z(
|
|
1068
1614
|
() => [
|
|
1069
1615
|
{
|
|
1070
1616
|
id: "name",
|
|
1071
1617
|
header: l("fields.name"),
|
|
1072
|
-
cell: (
|
|
1073
|
-
|
|
1618
|
+
cell: (o) => /* @__PURE__ */ t(
|
|
1619
|
+
ze,
|
|
1074
1620
|
{
|
|
1075
|
-
to:
|
|
1076
|
-
label:
|
|
1621
|
+
to: Re(r, "entitySets", o.row.original.id),
|
|
1622
|
+
label: o.row.original.content.name
|
|
1077
1623
|
}
|
|
1078
1624
|
)
|
|
1079
1625
|
},
|
|
@@ -1081,10 +1627,10 @@ function li({ client: e, onOpen: n }) {
|
|
|
1081
1627
|
id: "entities",
|
|
1082
1628
|
header: l("entitySets.entities"),
|
|
1083
1629
|
size: 120,
|
|
1084
|
-
cell: (
|
|
1085
|
-
|
|
1630
|
+
cell: (o) => /* @__PURE__ */ t(
|
|
1631
|
+
$n,
|
|
1086
1632
|
{
|
|
1087
|
-
value:
|
|
1633
|
+
value: o.row.original.content.entities,
|
|
1088
1634
|
singular: l("entitySets.entity"),
|
|
1089
1635
|
plural: l("entitySets.entities")
|
|
1090
1636
|
}
|
|
@@ -1093,48 +1639,48 @@ function li({ client: e, onOpen: n }) {
|
|
|
1093
1639
|
{
|
|
1094
1640
|
id: "validity",
|
|
1095
1641
|
header: l("validity.column"),
|
|
1096
|
-
cell: (
|
|
1642
|
+
cell: (o) => /* @__PURE__ */ t(dt, { validity: o.row.original.validity })
|
|
1097
1643
|
},
|
|
1098
1644
|
{
|
|
1099
1645
|
id: "release",
|
|
1100
1646
|
header: l("release.column"),
|
|
1101
1647
|
size: 140,
|
|
1102
|
-
cell: (
|
|
1648
|
+
cell: (o) => /* @__PURE__ */ t(w, { value: Ot(o.row.original.state, l) })
|
|
1103
1649
|
}
|
|
1104
1650
|
],
|
|
1105
|
-
[l,
|
|
1651
|
+
[l, r]
|
|
1106
1652
|
);
|
|
1107
1653
|
return /* @__PURE__ */ b(
|
|
1108
|
-
|
|
1654
|
+
oe,
|
|
1109
1655
|
{
|
|
1110
1656
|
title: l("section.entitySets.title"),
|
|
1111
|
-
actions: s ? /* @__PURE__ */ b(W, { variant: "solid", onClick: () =>
|
|
1112
|
-
/* @__PURE__ */ t(
|
|
1657
|
+
actions: s ? /* @__PURE__ */ b(W, { variant: "solid", onClick: () => g(!0), children: [
|
|
1658
|
+
/* @__PURE__ */ t(be, { size: 16, "aria-hidden": !0 }),
|
|
1113
1659
|
l("entitySets.new")
|
|
1114
1660
|
] }) : void 0,
|
|
1115
1661
|
children: [
|
|
1116
|
-
|
|
1117
|
-
|
|
1662
|
+
i.isError ? /* @__PURE__ */ t(M, {}) : /* @__PURE__ */ t(
|
|
1663
|
+
te,
|
|
1118
1664
|
{
|
|
1119
|
-
columns:
|
|
1120
|
-
data:
|
|
1121
|
-
loading:
|
|
1122
|
-
getRowId: (
|
|
1665
|
+
columns: c,
|
|
1666
|
+
data: i.data ?? [],
|
|
1667
|
+
loading: i.isPending,
|
|
1668
|
+
getRowId: (o) => o.id,
|
|
1123
1669
|
emptyState: l("entitySets.empty")
|
|
1124
1670
|
}
|
|
1125
1671
|
),
|
|
1126
1672
|
/* @__PURE__ */ t(
|
|
1127
|
-
|
|
1673
|
+
At,
|
|
1128
1674
|
{
|
|
1129
|
-
open:
|
|
1130
|
-
onClose: () =>
|
|
1675
|
+
open: m,
|
|
1676
|
+
onClose: () => g(!1),
|
|
1131
1677
|
title: l("entitySets.new"),
|
|
1132
|
-
onCreate: async ({ name:
|
|
1133
|
-
const
|
|
1134
|
-
return await
|
|
1678
|
+
onCreate: async ({ name: o, description: d }) => {
|
|
1679
|
+
const u = await e.createEntitySet({ name: o, description: d, entities: {} });
|
|
1680
|
+
return await p.invalidateQueries({ queryKey: I.entitySets(a) }), u.id;
|
|
1135
1681
|
},
|
|
1136
|
-
onCreated: (
|
|
1137
|
-
|
|
1682
|
+
onCreated: (o) => {
|
|
1683
|
+
g(!1), n(o);
|
|
1138
1684
|
}
|
|
1139
1685
|
}
|
|
1140
1686
|
)
|
|
@@ -1142,166 +1688,32 @@ function li({ client: e, onOpen: n }) {
|
|
|
1142
1688
|
}
|
|
1143
1689
|
);
|
|
1144
1690
|
}
|
|
1145
|
-
function
|
|
1146
|
-
const { t: l } = R(Z), { workspaceId: i } = B(), [c, s] = N(""), [m, p] = N(""), u = Ut({
|
|
1147
|
-
queryKey: y.itemProblems(i, n.id, c, m),
|
|
1148
|
-
queryFn: ({ pageParam: S }) => e.listItemProblems(n.id, { mappingId: c, sourceKeyQuery: m, pageToken: S }),
|
|
1149
|
-
initialPageParam: "",
|
|
1150
|
-
getNextPageParam: (S) => S.nextPageToken || void 0,
|
|
1151
|
-
// Keeps the rows while a new filter's answer loads, rather than
|
|
1152
|
-
// flashing an empty table at every keystroke.
|
|
1153
|
-
placeholderData: (S) => S
|
|
1154
|
-
}), o = n.counts.problems, r = Nt(o), { refetch: a } = u;
|
|
1155
|
-
j(() => {
|
|
1156
|
-
o !== r.current && (r.current = o, a());
|
|
1157
|
-
}, [o, a]);
|
|
1158
|
-
const d = u.data?.pages[0], g = k(
|
|
1159
|
-
() => u.data?.pages.flatMap((S) => S.itemProblems) ?? [],
|
|
1160
|
-
[u.data]
|
|
1161
|
-
), V = k(
|
|
1162
|
-
() => [
|
|
1163
|
-
{
|
|
1164
|
-
id: "sourceKey",
|
|
1165
|
-
header: l("imports.sourceKey"),
|
|
1166
|
-
size: 180,
|
|
1167
|
-
cell: (S) => /* @__PURE__ */ t(Ft, { value: S.row.original.sourceKey || l("imports.noSourceKey") })
|
|
1168
|
-
},
|
|
1169
|
-
{
|
|
1170
|
-
id: "mapping",
|
|
1171
|
-
header: l("imports.mapping"),
|
|
1172
|
-
size: 160,
|
|
1173
|
-
cell: (S) => /* @__PURE__ */ t(Y, { value: S.row.original.mappingName })
|
|
1174
|
-
},
|
|
1175
|
-
{
|
|
1176
|
-
id: "field",
|
|
1177
|
-
header: l("imports.field"),
|
|
1178
|
-
size: 160,
|
|
1179
|
-
cell: (S) => S.row.original.field ? /* @__PURE__ */ t(ve, { value: S.row.original.field }) : /* @__PURE__ */ t(Y, { value: l("imports.wholeVersion") })
|
|
1180
|
-
},
|
|
1181
|
-
{
|
|
1182
|
-
id: "reason",
|
|
1183
|
-
header: l("imports.reason"),
|
|
1184
|
-
minSize: 240,
|
|
1185
|
-
cell: (S) => /* @__PURE__ */ t(Y, { value: S.row.original.reason })
|
|
1186
|
-
}
|
|
1187
|
-
],
|
|
1188
|
-
[l]
|
|
1189
|
-
);
|
|
1190
|
-
if (u.isError) return /* @__PURE__ */ t(Q, {});
|
|
1191
|
-
const h = d?.totalCount ?? 0;
|
|
1192
|
-
return /* @__PURE__ */ b(E, { gap: "3", children: [
|
|
1193
|
-
/* @__PURE__ */ b(xe, { children: [
|
|
1194
|
-
/* @__PURE__ */ t(
|
|
1195
|
-
En,
|
|
1196
|
-
{
|
|
1197
|
-
"aria-label": l("imports.searchSourceKey"),
|
|
1198
|
-
placeholder: l("imports.searchSourceKey"),
|
|
1199
|
-
onSearch: p,
|
|
1200
|
-
debounceMs: 200,
|
|
1201
|
-
maxWidth: "260px"
|
|
1202
|
-
}
|
|
1203
|
-
),
|
|
1204
|
-
/* @__PURE__ */ b(
|
|
1205
|
-
on,
|
|
1206
|
-
{
|
|
1207
|
-
"aria-label": l("imports.filterMapping"),
|
|
1208
|
-
size: "sm",
|
|
1209
|
-
width: "auto",
|
|
1210
|
-
value: c,
|
|
1211
|
-
onChange: (S) => s(S.currentTarget.value),
|
|
1212
|
-
children: [
|
|
1213
|
-
/* @__PURE__ */ t("option", { value: "", children: l("imports.allMappings", { count: h }) }),
|
|
1214
|
-
(d?.mappings ?? []).map((S) => /* @__PURE__ */ t("option", { value: S.mappingId, children: l("imports.mappingCount", { name: S.mappingName, count: S.count }) }, S.mappingId))
|
|
1215
|
-
]
|
|
1216
|
-
}
|
|
1217
|
-
),
|
|
1218
|
-
/* @__PURE__ */ t(xe.Right, { children: /* @__PURE__ */ t(xe.Count, { children: l("imports.problemCount", { matching: d?.matchingCount ?? 0, total: h }) }) })
|
|
1219
|
-
] }),
|
|
1220
|
-
/* @__PURE__ */ t(
|
|
1221
|
-
ne,
|
|
1222
|
-
{
|
|
1223
|
-
columns: V,
|
|
1224
|
-
data: g,
|
|
1225
|
-
loading: u.isPending,
|
|
1226
|
-
getRowId: (S) => S.id,
|
|
1227
|
-
emptyState: l(h === 0 ? "imports.noItemProblems" : "imports.noMatchingProblems")
|
|
1228
|
-
}
|
|
1229
|
-
),
|
|
1230
|
-
u.hasNextPage ? /* @__PURE__ */ t(Xt, { children: /* @__PURE__ */ t(
|
|
1231
|
-
W,
|
|
1232
|
-
{
|
|
1233
|
-
variant: "outline",
|
|
1234
|
-
loading: u.isFetchingNextPage,
|
|
1235
|
-
onClick: () => {
|
|
1236
|
-
u.fetchNextPage();
|
|
1237
|
-
},
|
|
1238
|
-
children: l("imports.loadMore")
|
|
1239
|
-
}
|
|
1240
|
-
) }) : null
|
|
1241
|
-
] });
|
|
1242
|
-
}
|
|
1243
|
-
function ii({
|
|
1691
|
+
function fa({
|
|
1244
1692
|
client: e,
|
|
1245
1693
|
id: n,
|
|
1246
|
-
pollIntervalMs: l =
|
|
1694
|
+
pollIntervalMs: l = It
|
|
1247
1695
|
}) {
|
|
1248
|
-
const { t:
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
});
|
|
1253
|
-
return
|
|
1254
|
-
|
|
1255
|
-
function gl({ client: e, im: n }) {
|
|
1256
|
-
const { t: l, i18n: i } = R(Z), c = i.language, { workspaceId: s } = B(), { paths: m } = K(), p = Ne(), u = Fe(), o = P(), [r, a] = N(!1), d = p && Ue(n) && !n.cancelledBy;
|
|
1257
|
-
nt(
|
|
1258
|
-
d ? /* @__PURE__ */ b(x, { storageKey: "importhub.import.rail", children: [
|
|
1259
|
-
/* @__PURE__ */ t(x.Header, { title: l("rail.title") }),
|
|
1260
|
-
/* @__PURE__ */ t(x.Section, { id: "actions", label: l("rail.actions"), children: /* @__PURE__ */ t(
|
|
1261
|
-
x.IconButton,
|
|
1262
|
-
{
|
|
1263
|
-
label: l("imports.cancel"),
|
|
1264
|
-
icon: /* @__PURE__ */ t(yn, { size: 16 }),
|
|
1265
|
-
tone: "outline-red",
|
|
1266
|
-
onClick: () => a(!0)
|
|
1267
|
-
}
|
|
1268
|
-
) })
|
|
1269
|
-
] }) : null
|
|
1270
|
-
);
|
|
1271
|
-
const g = te({
|
|
1272
|
-
mutationFn: () => e.cancelImport(n.id),
|
|
1273
|
-
onSuccess: (h) => {
|
|
1274
|
-
o.setQueryData(y.import(s, h.id), h), o.invalidateQueries({ queryKey: y.imports(s) }), a(!1);
|
|
1275
|
-
}
|
|
1276
|
-
}), { reset: V } = g;
|
|
1277
|
-
return j(() => {
|
|
1278
|
-
r && V();
|
|
1279
|
-
}, [r, V]), /* @__PURE__ */ b(
|
|
1280
|
-
z,
|
|
1696
|
+
const { t: a } = V(h), r = sn(e, n, l);
|
|
1697
|
+
return r.isError || !r.data ? /* @__PURE__ */ t(Q, { title: a("section.imports.title"), children: r.isError ? /* @__PURE__ */ t(M, {}) : /* @__PURE__ */ t(ye, {}) }) : r.data.dryRun ? /* @__PURE__ */ t(yn, { client: e, im: r.data }) : /* @__PURE__ */ t(Ll, { client: e, im: r.data });
|
|
1698
|
+
}
|
|
1699
|
+
function Ll({ client: e, im: n }) {
|
|
1700
|
+
const { t: l, i18n: a } = V(h), { paths: r } = x(), s = Ie(), p = bn(e, n);
|
|
1701
|
+
return /* @__PURE__ */ b(
|
|
1702
|
+
Q,
|
|
1281
1703
|
{
|
|
1282
1704
|
title: n.importProfileName,
|
|
1283
1705
|
subtitle: l("imports.subtitle", {
|
|
1284
|
-
person:
|
|
1285
|
-
time:
|
|
1706
|
+
person: s(n.startedBy),
|
|
1707
|
+
time: Le(a.language, n.createTime)
|
|
1286
1708
|
}),
|
|
1287
|
-
breadcrumbs: [{ label: l("section.imports.title"), to:
|
|
1288
|
-
badges: /* @__PURE__ */ t(
|
|
1709
|
+
breadcrumbs: [{ label: l("section.imports.title"), to: r.imports }],
|
|
1710
|
+
badges: /* @__PURE__ */ t(dn, { im: n }),
|
|
1289
1711
|
children: [
|
|
1290
|
-
/* @__PURE__ */ t(
|
|
1291
|
-
/* @__PURE__ */ t(
|
|
1292
|
-
n.phase === "reading" || n.phase === "writing" ? /* @__PURE__ */ t(
|
|
1293
|
-
/* @__PURE__ */ t(
|
|
1294
|
-
|
|
1295
|
-
/* @__PURE__ */ t(U.Row, { label: l("imports.started"), children: Te(c, n.startTime || n.createTime) }),
|
|
1296
|
-
n.endTime ? /* @__PURE__ */ t(U.Row, { label: l("imports.ended"), children: Te(c, n.endTime) }) : null,
|
|
1297
|
-
/* @__PURE__ */ t(U.Row, { label: l("imports.effectiveDate"), children: n.effectiveDate || l("imports.none") }),
|
|
1298
|
-
/* @__PURE__ */ t(U.Row, { label: l("imports.source"), children: n.source ? l("imports.sourceValue", {
|
|
1299
|
-
reference: n.source.reference,
|
|
1300
|
-
date: n.source.date
|
|
1301
|
-
}) : l("imports.none") }),
|
|
1302
|
-
n.changeSetId ? /* @__PURE__ */ t(U.Row, { label: l("imports.changeSet"), children: /* @__PURE__ */ t(nl, { changeSetId: n.changeSetId }) }) : null
|
|
1303
|
-
] }) }),
|
|
1304
|
-
/* @__PURE__ */ t(F, { title: l("imports.counts"), children: /* @__PURE__ */ t(U, { children: [
|
|
1712
|
+
/* @__PURE__ */ t(T, { px: "8", py: "6", children: /* @__PURE__ */ b(X, { gap: "6", children: [
|
|
1713
|
+
/* @__PURE__ */ t(pn, { im: n }),
|
|
1714
|
+
n.phase === "reading" || n.phase === "writing" ? /* @__PURE__ */ t(un, { im: n }) : null,
|
|
1715
|
+
/* @__PURE__ */ t(mn, { im: n }),
|
|
1716
|
+
/* @__PURE__ */ t(N, { title: l("imports.counts"), children: /* @__PURE__ */ t(Y, { children: [
|
|
1305
1717
|
"matched",
|
|
1306
1718
|
"created",
|
|
1307
1719
|
"planned",
|
|
@@ -1309,192 +1721,136 @@ function gl({ client: e, im: n }) {
|
|
|
1309
1721
|
"kept",
|
|
1310
1722
|
"unchanged",
|
|
1311
1723
|
"problems"
|
|
1312
|
-
].map((
|
|
1313
|
-
/* @__PURE__ */ t(
|
|
1314
|
-
/* @__PURE__ */ t(
|
|
1724
|
+
].map((m) => /* @__PURE__ */ t(Y.Row, { label: l(`imports.${m}`), children: n.counts[m].toLocaleString() }, m)) }) }),
|
|
1725
|
+
/* @__PURE__ */ t(gn, { im: n }),
|
|
1726
|
+
/* @__PURE__ */ t(N, { title: l("imports.itemProblems"), children: /* @__PURE__ */ t(Rn, { client: e, im: n }) })
|
|
1315
1727
|
] }) }),
|
|
1316
|
-
|
|
1317
|
-
Se,
|
|
1318
|
-
{
|
|
1319
|
-
open: r,
|
|
1320
|
-
onClose: () => a(!1),
|
|
1321
|
-
header: l("imports.cancelTitle"),
|
|
1322
|
-
lazyMount: !0,
|
|
1323
|
-
unmountOnExit: !0,
|
|
1324
|
-
footer: /* @__PURE__ */ b(D, { gap: "2", children: [
|
|
1325
|
-
/* @__PURE__ */ t(W, { variant: "outline", onClick: () => a(!1), children: l("imports.keepRunning") }),
|
|
1326
|
-
/* @__PURE__ */ t(
|
|
1327
|
-
W,
|
|
1328
|
-
{
|
|
1329
|
-
variant: "solid",
|
|
1330
|
-
colorPalette: "red",
|
|
1331
|
-
loading: g.isPending,
|
|
1332
|
-
onClick: () => g.mutate(),
|
|
1333
|
-
children: l("imports.cancelConfirm")
|
|
1334
|
-
}
|
|
1335
|
-
)
|
|
1336
|
-
] }),
|
|
1337
|
-
children: /* @__PURE__ */ b(E, { gap: "4", children: [
|
|
1338
|
-
/* @__PURE__ */ t(L, { children: l("imports.cancelMessage") }),
|
|
1339
|
-
g.isError ? /* @__PURE__ */ t(
|
|
1340
|
-
f,
|
|
1341
|
-
{
|
|
1342
|
-
status: "error",
|
|
1343
|
-
colorPalette: "danger",
|
|
1344
|
-
title: l("imports.cancelFailed", { message: g.error.message })
|
|
1345
|
-
}
|
|
1346
|
-
) : null
|
|
1347
|
-
] })
|
|
1348
|
-
}
|
|
1349
|
-
)
|
|
1728
|
+
p
|
|
1350
1729
|
]
|
|
1351
1730
|
}
|
|
1352
1731
|
);
|
|
1353
1732
|
}
|
|
1354
|
-
|
|
1355
|
-
function bl({ im: e }) {
|
|
1356
|
-
const { t: n } = R(Z), l = Fe();
|
|
1357
|
-
return e.outcome === "failed" ? /* @__PURE__ */ t(f, { status: "error", colorPalette: "danger", title: n("imports.failedTitle"), children: e.failureReason }) : e.outcome === "cancelled" ? /* @__PURE__ */ t(f, { status: "info", colorPalette: "gray", children: n("imports.cancelledBody", { person: l(e.cancelledBy) }) }) : e.outcome === "succeeded_with_problems" ? /* @__PURE__ */ t(f, { status: "warning", colorPalette: "warning", children: n("imports.problemsBody", { count: e.counts.problems }) }) : Ue(e) && e.cancelledBy ? /* @__PURE__ */ t(f, { status: "warning", colorPalette: "warning", children: n("imports.cancellingBody", { person: l(e.cancelledBy) }) }) : e.phase === "queued" ? /* @__PURE__ */ t(f, { status: "info", colorPalette: "info", children: n("imports.queuedBody") }) : null;
|
|
1358
|
-
}
|
|
1359
|
-
function Vl({ im: e }) {
|
|
1360
|
-
const { t: n } = R(Z), { done: l, total: i } = e.progress, c = i > 0;
|
|
1361
|
-
return /* @__PURE__ */ t(F, { title: n("imports.progressTitle"), children: /* @__PURE__ */ b(E, { gap: "2", children: [
|
|
1362
|
-
/* @__PURE__ */ t(
|
|
1363
|
-
Et,
|
|
1364
|
-
{
|
|
1365
|
-
label: n(`imports.phaseLong.${e.phase}`),
|
|
1366
|
-
value: c ? Math.round(l / i * 100) : null,
|
|
1367
|
-
colorPalette: "info"
|
|
1368
|
-
}
|
|
1369
|
-
),
|
|
1370
|
-
/* @__PURE__ */ t(L, { color: "muted", fontSize: "sm", children: c ? n("imports.progressOf", { done: l, total: i }) : n("imports.progressUnknown") })
|
|
1371
|
-
] }) });
|
|
1372
|
-
}
|
|
1373
|
-
function Sl({ im: e }) {
|
|
1374
|
-
const { t: n } = R(Z), { importProfile: l, mappings: i, entitySet: c } = e.releases;
|
|
1375
|
-
return /* @__PURE__ */ t(F, { title: n("imports.releases"), children: /* @__PURE__ */ b(U, { children: [
|
|
1376
|
-
l ? /* @__PURE__ */ t(U.Row, { label: n("imports.profile"), children: /* @__PURE__ */ t(De, { section: "profiles", release: l }) }) : null,
|
|
1377
|
-
/* @__PURE__ */ t(U.Row, { label: n("imports.mappings"), children: /* @__PURE__ */ t(st.Root, { ps: "0", listStyleType: "none", children: i.map((s) => /* @__PURE__ */ t(st.Item, { children: /* @__PURE__ */ t(De, { section: "mappings", release: s }) }, s.releaseId)) }) }),
|
|
1378
|
-
/* @__PURE__ */ t(U.Row, { label: n("imports.entitySet"), children: c ? /* @__PURE__ */ t(De, { section: "entitySets", release: c }) : n("imports.none") })
|
|
1379
|
-
] }) });
|
|
1380
|
-
}
|
|
1381
|
-
function De({
|
|
1382
|
-
section: e,
|
|
1383
|
-
release: n
|
|
1384
|
-
}) {
|
|
1385
|
-
const { t: l } = R(Z), { paths: i } = K();
|
|
1386
|
-
return /* @__PURE__ */ t($e, { asChild: !0, children: /* @__PURE__ */ t(xt, { to: de(i, e, n.configurationId), children: l("imports.releaseOf", { name: n.name, number: n.number }) }) });
|
|
1387
|
-
}
|
|
1388
|
-
function ai({
|
|
1733
|
+
function Ca({
|
|
1389
1734
|
client: e,
|
|
1390
1735
|
onStart: n,
|
|
1391
|
-
pollIntervalMs: l =
|
|
1736
|
+
pollIntervalMs: l = It
|
|
1392
1737
|
}) {
|
|
1393
|
-
const { t:
|
|
1394
|
-
queryKey:
|
|
1395
|
-
queryFn: ({ pageParam:
|
|
1738
|
+
const { t: a } = V(h), { workspaceId: r } = v(), { paths: s } = x(), p = De(), m = Ie(), g = mt({
|
|
1739
|
+
queryKey: I.imports(r),
|
|
1740
|
+
queryFn: ({ pageParam: o }) => e.listImports(o),
|
|
1396
1741
|
initialPageParam: "",
|
|
1397
|
-
getNextPageParam: (
|
|
1398
|
-
refetchInterval: (
|
|
1399
|
-
}),
|
|
1400
|
-
() =>
|
|
1401
|
-
[
|
|
1402
|
-
),
|
|
1742
|
+
getNextPageParam: (o) => o.nextPageToken || void 0,
|
|
1743
|
+
refetchInterval: (o) => o.state.data?.pages.some((d) => d.imports.some(Me)) ? l : !1
|
|
1744
|
+
}), i = z(
|
|
1745
|
+
() => g.data?.pages.flatMap((o) => o.imports) ?? [],
|
|
1746
|
+
[g.data]
|
|
1747
|
+
), c = z(
|
|
1403
1748
|
() => [
|
|
1404
1749
|
{
|
|
1405
1750
|
id: "profile",
|
|
1406
|
-
header:
|
|
1407
|
-
cell: (
|
|
1408
|
-
|
|
1751
|
+
header: a("imports.profile"),
|
|
1752
|
+
cell: (o) => /* @__PURE__ */ t(
|
|
1753
|
+
ze,
|
|
1409
1754
|
{
|
|
1410
|
-
to:
|
|
1411
|
-
label:
|
|
1755
|
+
to: Re(s, "imports", o.row.original.id),
|
|
1756
|
+
label: o.row.original.importProfileName
|
|
1412
1757
|
}
|
|
1413
1758
|
)
|
|
1414
1759
|
},
|
|
1760
|
+
{
|
|
1761
|
+
// Every row names its kind, so a Dry Run's counts are never read
|
|
1762
|
+
// as an Import's writes.
|
|
1763
|
+
id: "kind",
|
|
1764
|
+
header: a("imports.kindColumn"),
|
|
1765
|
+
size: 110,
|
|
1766
|
+
cell: (o) => {
|
|
1767
|
+
const d = o.row.original.dryRun, u = a(d ? "imports.kindDryRun" : "imports.kindImport");
|
|
1768
|
+
return /* @__PURE__ */ t(Qe, { value: u, toneMap: { [u]: d ? "accent" : "neutral" } });
|
|
1769
|
+
}
|
|
1770
|
+
},
|
|
1415
1771
|
{
|
|
1416
1772
|
id: "startedBy",
|
|
1417
|
-
header:
|
|
1773
|
+
header: a("imports.startedBy"),
|
|
1418
1774
|
size: 160,
|
|
1419
|
-
cell: (
|
|
1775
|
+
cell: (o) => /* @__PURE__ */ t(w, { value: m(o.row.original.startedBy) })
|
|
1420
1776
|
},
|
|
1421
1777
|
{
|
|
1422
1778
|
id: "started",
|
|
1423
|
-
header:
|
|
1779
|
+
header: a("imports.started"),
|
|
1424
1780
|
size: 150,
|
|
1425
|
-
cell: (
|
|
1781
|
+
cell: (o) => /* @__PURE__ */ t(at, { value: o.row.original.createTime })
|
|
1426
1782
|
},
|
|
1427
1783
|
{
|
|
1428
1784
|
// Its Outcome once it has one, its phase until then.
|
|
1429
1785
|
id: "outcome",
|
|
1430
|
-
header:
|
|
1786
|
+
header: a("imports.outcomeColumn"),
|
|
1431
1787
|
size: 190,
|
|
1432
|
-
cell: (
|
|
1788
|
+
cell: (o) => /* @__PURE__ */ t(Jl, { im: o.row.original })
|
|
1433
1789
|
},
|
|
1434
1790
|
{
|
|
1435
1791
|
id: "matched",
|
|
1436
|
-
header:
|
|
1792
|
+
header: a("imports.matched"),
|
|
1437
1793
|
size: 90,
|
|
1438
|
-
cell: (
|
|
1794
|
+
cell: (o) => /* @__PURE__ */ t(Pe, { value: o.row.original.counts.matched })
|
|
1439
1795
|
},
|
|
1440
1796
|
{
|
|
1441
1797
|
id: "created",
|
|
1442
|
-
header:
|
|
1798
|
+
header: a("imports.created"),
|
|
1443
1799
|
size: 90,
|
|
1444
|
-
cell: (
|
|
1800
|
+
cell: (o) => /* @__PURE__ */ t(Pe, { value: o.row.original.counts.created })
|
|
1445
1801
|
},
|
|
1446
1802
|
{
|
|
1447
1803
|
id: "problems",
|
|
1448
|
-
header:
|
|
1804
|
+
header: a("imports.problems"),
|
|
1449
1805
|
size: 90,
|
|
1450
|
-
cell: (
|
|
1806
|
+
cell: (o) => /* @__PURE__ */ t(Pe, { value: o.row.original.counts.problems })
|
|
1451
1807
|
}
|
|
1452
1808
|
],
|
|
1453
|
-
[
|
|
1809
|
+
[a, s, m]
|
|
1454
1810
|
);
|
|
1455
1811
|
return /* @__PURE__ */ t(
|
|
1456
|
-
|
|
1812
|
+
oe,
|
|
1457
1813
|
{
|
|
1458
|
-
title:
|
|
1459
|
-
actions:
|
|
1460
|
-
/* @__PURE__ */ t(
|
|
1461
|
-
|
|
1814
|
+
title: a("section.imports.title"),
|
|
1815
|
+
actions: p ? /* @__PURE__ */ b(W, { variant: "solid", onClick: n, children: [
|
|
1816
|
+
/* @__PURE__ */ t(zt, { size: 16, "aria-hidden": !0 }),
|
|
1817
|
+
a("imports.start")
|
|
1462
1818
|
] }) : void 0,
|
|
1463
|
-
children:
|
|
1819
|
+
children: g.isError ? /* @__PURE__ */ t(M, {}) : /* @__PURE__ */ b(ae, { children: [
|
|
1464
1820
|
/* @__PURE__ */ t(
|
|
1465
|
-
|
|
1821
|
+
te,
|
|
1466
1822
|
{
|
|
1467
|
-
columns:
|
|
1468
|
-
data:
|
|
1469
|
-
loading:
|
|
1470
|
-
getRowId: (
|
|
1471
|
-
emptyState:
|
|
1823
|
+
columns: c,
|
|
1824
|
+
data: i,
|
|
1825
|
+
loading: g.isPending,
|
|
1826
|
+
getRowId: (o) => o.id,
|
|
1827
|
+
emptyState: a("imports.empty")
|
|
1472
1828
|
}
|
|
1473
1829
|
),
|
|
1474
|
-
|
|
1830
|
+
g.hasNextPage ? /* @__PURE__ */ t(st, { py: "4", children: /* @__PURE__ */ t(
|
|
1475
1831
|
W,
|
|
1476
1832
|
{
|
|
1477
1833
|
variant: "outline",
|
|
1478
|
-
loading:
|
|
1834
|
+
loading: g.isFetchingNextPage,
|
|
1479
1835
|
onClick: () => {
|
|
1480
|
-
|
|
1836
|
+
g.fetchNextPage();
|
|
1481
1837
|
},
|
|
1482
|
-
children:
|
|
1838
|
+
children: a("imports.loadMore")
|
|
1483
1839
|
}
|
|
1484
1840
|
) }) : null
|
|
1485
1841
|
] })
|
|
1486
1842
|
}
|
|
1487
1843
|
);
|
|
1488
1844
|
}
|
|
1489
|
-
function
|
|
1490
|
-
return /* @__PURE__ */ t(
|
|
1845
|
+
function va({ client: e, id: n, onDeleted: l }) {
|
|
1846
|
+
return /* @__PURE__ */ t(Pn, { client: e, id: n, onDeleted: l });
|
|
1491
1847
|
}
|
|
1492
|
-
function
|
|
1493
|
-
const { t: e } =
|
|
1494
|
-
return n ? /* @__PURE__ */ t(
|
|
1495
|
-
/* @__PURE__ */ t(
|
|
1848
|
+
function Ql() {
|
|
1849
|
+
const { t: e } = V(h), { blueprints: n } = x();
|
|
1850
|
+
return n ? /* @__PURE__ */ t(zl, {}) : /* @__PURE__ */ b(ae, { children: [
|
|
1851
|
+
/* @__PURE__ */ t(_, { name: "blueprintId", label: e("mappings.blueprintId"), required: !0 }),
|
|
1496
1852
|
/* @__PURE__ */ t(
|
|
1497
|
-
|
|
1853
|
+
_,
|
|
1498
1854
|
{
|
|
1499
1855
|
name: "blueprintReleaseId",
|
|
1500
1856
|
label: e("mappings.releaseId"),
|
|
@@ -1504,80 +1860,80 @@ function yl() {
|
|
|
1504
1860
|
)
|
|
1505
1861
|
] });
|
|
1506
1862
|
}
|
|
1507
|
-
function
|
|
1508
|
-
const { t: e } =
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
}, [s,
|
|
1512
|
-
const
|
|
1513
|
-
queryKey:
|
|
1863
|
+
function zl() {
|
|
1864
|
+
const { t: e } = V(h), { blueprints: n } = x(), { workspaceId: l } = v(), { control: a, setValue: r } = _t(), s = ne({ control: a, name: "blueprintId" }), p = bt(s);
|
|
1865
|
+
P(() => {
|
|
1866
|
+
p.current !== s && r("blueprintReleaseId", ""), p.current = s;
|
|
1867
|
+
}, [s, r]);
|
|
1868
|
+
const m = k({
|
|
1869
|
+
queryKey: I.blueprints(l),
|
|
1514
1870
|
queryFn: () => n?.listBlueprints() ?? Promise.resolve([])
|
|
1515
|
-
}),
|
|
1516
|
-
queryKey:
|
|
1871
|
+
}), g = k({
|
|
1872
|
+
queryKey: I.blueprintReleases(l, s ?? ""),
|
|
1517
1873
|
queryFn: () => n?.listReleases(s) ?? Promise.resolve([]),
|
|
1518
1874
|
enabled: !!s
|
|
1519
1875
|
});
|
|
1520
|
-
return /* @__PURE__ */ b(
|
|
1876
|
+
return /* @__PURE__ */ b(ae, { children: [
|
|
1521
1877
|
/* @__PURE__ */ t(
|
|
1522
|
-
|
|
1878
|
+
xe,
|
|
1523
1879
|
{
|
|
1524
1880
|
name: "blueprintId",
|
|
1525
1881
|
label: e("mappings.blueprint"),
|
|
1526
1882
|
required: !0,
|
|
1527
|
-
options: (
|
|
1883
|
+
options: (m.data ?? []).map((i) => ({ id: i.id, label: i.name }))
|
|
1528
1884
|
}
|
|
1529
1885
|
),
|
|
1530
1886
|
/* @__PURE__ */ t(
|
|
1531
|
-
|
|
1887
|
+
xe,
|
|
1532
1888
|
{
|
|
1533
1889
|
name: "blueprintReleaseId",
|
|
1534
1890
|
label: e("mappings.release"),
|
|
1535
1891
|
required: !0,
|
|
1536
1892
|
disabled: !s,
|
|
1537
|
-
options: (
|
|
1893
|
+
options: (g.data ?? []).map((i) => ({ id: i.id, label: i.label }))
|
|
1538
1894
|
}
|
|
1539
1895
|
)
|
|
1540
1896
|
] });
|
|
1541
1897
|
}
|
|
1542
|
-
const
|
|
1543
|
-
function
|
|
1544
|
-
const { t: l } =
|
|
1545
|
-
queryKey:
|
|
1898
|
+
const Ml = { blueprintId: "", blueprintReleaseId: "" };
|
|
1899
|
+
function Ja({ client: e, onOpen: n }) {
|
|
1900
|
+
const { t: l } = V(h), { workspaceId: a } = v(), { paths: r } = x(), s = Ve(), p = $(), [m, g] = U(!1), i = k({
|
|
1901
|
+
queryKey: I.mappings(a),
|
|
1546
1902
|
queryFn: () => e.listMappings()
|
|
1547
|
-
}),
|
|
1903
|
+
}), c = jn((i.data ?? []).map((d) => d.content.blueprintId)), o = z(
|
|
1548
1904
|
() => [
|
|
1549
1905
|
{
|
|
1550
1906
|
id: "name",
|
|
1551
1907
|
header: l("fields.name"),
|
|
1552
1908
|
cell: (d) => /* @__PURE__ */ t(
|
|
1553
|
-
|
|
1909
|
+
ze,
|
|
1554
1910
|
{
|
|
1555
|
-
to:
|
|
1911
|
+
to: Re(r, "mappings", d.row.original.id),
|
|
1556
1912
|
label: d.row.original.content.name
|
|
1557
1913
|
}
|
|
1558
1914
|
)
|
|
1559
1915
|
},
|
|
1560
|
-
|
|
1916
|
+
c.available ? {
|
|
1561
1917
|
id: "blueprint",
|
|
1562
1918
|
header: l("mappings.blueprint"),
|
|
1563
1919
|
cell: (d) => /* @__PURE__ */ t(
|
|
1564
|
-
|
|
1920
|
+
w,
|
|
1565
1921
|
{
|
|
1566
|
-
value:
|
|
1922
|
+
value: c.blueprintName(d.row.original.content.blueprintId) ?? ""
|
|
1567
1923
|
}
|
|
1568
1924
|
)
|
|
1569
1925
|
} : {
|
|
1570
1926
|
id: "blueprint",
|
|
1571
1927
|
header: l("mappings.blueprintId"),
|
|
1572
|
-
cell: (d) => /* @__PURE__ */ t(
|
|
1928
|
+
cell: (d) => /* @__PURE__ */ t(ke, { value: d.row.original.content.blueprintId })
|
|
1573
1929
|
},
|
|
1574
|
-
|
|
1930
|
+
c.available ? {
|
|
1575
1931
|
id: "release",
|
|
1576
1932
|
header: l("mappings.release"),
|
|
1577
1933
|
cell: (d) => /* @__PURE__ */ t(
|
|
1578
|
-
|
|
1934
|
+
w,
|
|
1579
1935
|
{
|
|
1580
|
-
value:
|
|
1936
|
+
value: c.releaseLabel(
|
|
1581
1937
|
d.row.original.content.blueprintId,
|
|
1582
1938
|
d.row.original.content.blueprintReleaseId
|
|
1583
1939
|
) ?? ""
|
|
@@ -1586,135 +1942,135 @@ function ri({ client: e, onOpen: n }) {
|
|
|
1586
1942
|
} : {
|
|
1587
1943
|
id: "release",
|
|
1588
1944
|
header: l("mappings.releaseId"),
|
|
1589
|
-
cell: (d) => /* @__PURE__ */ t(
|
|
1945
|
+
cell: (d) => /* @__PURE__ */ t(ke, { value: d.row.original.content.blueprintReleaseId })
|
|
1590
1946
|
},
|
|
1591
1947
|
{
|
|
1592
1948
|
id: "validity",
|
|
1593
1949
|
header: l("validity.column"),
|
|
1594
|
-
cell: (d) => /* @__PURE__ */ t(
|
|
1950
|
+
cell: (d) => /* @__PURE__ */ t(dt, { validity: d.row.original.validity })
|
|
1595
1951
|
}
|
|
1596
1952
|
],
|
|
1597
|
-
[l,
|
|
1953
|
+
[l, r, c]
|
|
1598
1954
|
);
|
|
1599
1955
|
return /* @__PURE__ */ b(
|
|
1600
|
-
|
|
1956
|
+
oe,
|
|
1601
1957
|
{
|
|
1602
1958
|
title: l("section.mappings.title"),
|
|
1603
|
-
actions: s ? /* @__PURE__ */ b(W, { variant: "solid", onClick: () =>
|
|
1604
|
-
/* @__PURE__ */ t(
|
|
1959
|
+
actions: s ? /* @__PURE__ */ b(W, { variant: "solid", onClick: () => g(!0), children: [
|
|
1960
|
+
/* @__PURE__ */ t(be, { size: 16, "aria-hidden": !0 }),
|
|
1605
1961
|
l("mappings.new")
|
|
1606
1962
|
] }) : void 0,
|
|
1607
1963
|
children: [
|
|
1608
|
-
|
|
1609
|
-
|
|
1964
|
+
i.isError ? /* @__PURE__ */ t(M, {}) : /* @__PURE__ */ t(
|
|
1965
|
+
te,
|
|
1610
1966
|
{
|
|
1611
|
-
columns:
|
|
1612
|
-
data:
|
|
1613
|
-
loading:
|
|
1967
|
+
columns: o,
|
|
1968
|
+
data: i.data ?? [],
|
|
1969
|
+
loading: i.isPending,
|
|
1614
1970
|
getRowId: (d) => d.id,
|
|
1615
1971
|
emptyState: l("mappings.empty")
|
|
1616
1972
|
}
|
|
1617
1973
|
),
|
|
1618
1974
|
/* @__PURE__ */ t(
|
|
1619
|
-
|
|
1975
|
+
At,
|
|
1620
1976
|
{
|
|
1621
|
-
open:
|
|
1622
|
-
onClose: () =>
|
|
1977
|
+
open: m,
|
|
1978
|
+
onClose: () => g(!1),
|
|
1623
1979
|
title: l("mappings.new"),
|
|
1624
|
-
defaultValues:
|
|
1625
|
-
onCreate: async ({ name: d, description:
|
|
1626
|
-
const
|
|
1980
|
+
defaultValues: Ml,
|
|
1981
|
+
onCreate: async ({ name: d, description: u, blueprintId: R, blueprintReleaseId: A }) => {
|
|
1982
|
+
const Z = await e.createMapping({
|
|
1627
1983
|
name: d,
|
|
1628
|
-
description:
|
|
1629
|
-
blueprintId:
|
|
1630
|
-
blueprintReleaseId:
|
|
1984
|
+
description: u,
|
|
1985
|
+
blueprintId: R ?? "",
|
|
1986
|
+
blueprintReleaseId: A ?? ""
|
|
1631
1987
|
});
|
|
1632
|
-
return await
|
|
1988
|
+
return await p.invalidateQueries({ queryKey: I.mappings(a) }), Z.id;
|
|
1633
1989
|
},
|
|
1634
1990
|
onCreated: (d) => {
|
|
1635
|
-
|
|
1991
|
+
g(!1), n(d);
|
|
1636
1992
|
},
|
|
1637
|
-
children: /* @__PURE__ */ t(
|
|
1993
|
+
children: /* @__PURE__ */ t(Ql, {})
|
|
1638
1994
|
}
|
|
1639
1995
|
)
|
|
1640
1996
|
]
|
|
1641
1997
|
}
|
|
1642
1998
|
);
|
|
1643
1999
|
}
|
|
1644
|
-
function
|
|
1645
|
-
const { t: n } =
|
|
1646
|
-
queryKey:
|
|
2000
|
+
function wa({ client: e }) {
|
|
2001
|
+
const { t: n } = V(h), { workspaceId: l } = v(), a = k({
|
|
2002
|
+
queryKey: I.processors(l),
|
|
1647
2003
|
queryFn: () => e.listProcessors()
|
|
1648
|
-
}),
|
|
2004
|
+
}), r = z(
|
|
1649
2005
|
() => [
|
|
1650
2006
|
{
|
|
1651
2007
|
id: "name",
|
|
1652
2008
|
header: n("fields.name"),
|
|
1653
2009
|
size: 180,
|
|
1654
|
-
cell: (s) => /* @__PURE__ */ t(
|
|
2010
|
+
cell: (s) => /* @__PURE__ */ t(gt, { value: s.row.original.name })
|
|
1655
2011
|
},
|
|
1656
2012
|
{
|
|
1657
2013
|
id: "kind",
|
|
1658
2014
|
header: n("processors.kindColumn"),
|
|
1659
2015
|
size: 140,
|
|
1660
|
-
cell: (s) => /* @__PURE__ */ t(
|
|
2016
|
+
cell: (s) => /* @__PURE__ */ t(w, { value: n(`processors.kind.${s.row.original.kind}`) })
|
|
1661
2017
|
},
|
|
1662
2018
|
{
|
|
1663
2019
|
id: "target",
|
|
1664
2020
|
header: n("processors.targetColumn"),
|
|
1665
2021
|
size: 160,
|
|
1666
|
-
cell: (s) => /* @__PURE__ */ t(
|
|
2022
|
+
cell: (s) => /* @__PURE__ */ t(w, { value: n(`processors.target.${s.row.original.target}`) })
|
|
1667
2023
|
},
|
|
1668
2024
|
{
|
|
1669
2025
|
id: "description",
|
|
1670
2026
|
header: n("fields.description"),
|
|
1671
|
-
cell: (s) => /* @__PURE__ */ t(
|
|
2027
|
+
cell: (s) => /* @__PURE__ */ t(w, { value: s.row.original.description })
|
|
1672
2028
|
},
|
|
1673
2029
|
{
|
|
1674
2030
|
id: "settings",
|
|
1675
2031
|
header: n("processors.settingsColumn"),
|
|
1676
2032
|
cell: (s) => /* @__PURE__ */ t(
|
|
1677
|
-
|
|
2033
|
+
w,
|
|
1678
2034
|
{
|
|
1679
|
-
value: s.row.original.settingsSpec.length === 0 ? n("processors.noSettings") : s.row.original.settingsSpec.map((
|
|
2035
|
+
value: s.row.original.settingsSpec.length === 0 ? n("processors.noSettings") : s.row.original.settingsSpec.map((p) => p.config.name || p.config.api_accessor).join(", ")
|
|
1680
2036
|
}
|
|
1681
2037
|
)
|
|
1682
2038
|
}
|
|
1683
2039
|
],
|
|
1684
2040
|
[n]
|
|
1685
2041
|
);
|
|
1686
|
-
return /* @__PURE__ */ t(
|
|
1687
|
-
|
|
2042
|
+
return /* @__PURE__ */ t(oe, { title: n("section.processors.title"), children: a.isError ? /* @__PURE__ */ t(M, {}) : /* @__PURE__ */ t(
|
|
2043
|
+
te,
|
|
1688
2044
|
{
|
|
1689
|
-
columns:
|
|
1690
|
-
data:
|
|
1691
|
-
loading:
|
|
2045
|
+
columns: r,
|
|
2046
|
+
data: a.data ?? [],
|
|
2047
|
+
loading: a.isPending,
|
|
1692
2048
|
getRowId: (s) => s.name,
|
|
1693
2049
|
emptyState: n("processors.empty")
|
|
1694
2050
|
}
|
|
1695
2051
|
) });
|
|
1696
2052
|
}
|
|
1697
|
-
function
|
|
1698
|
-
const
|
|
1699
|
-
return
|
|
2053
|
+
function kt(e, n, l) {
|
|
2054
|
+
const a = [...e], [r] = a.splice(n, 1);
|
|
2055
|
+
return a.splice(l, 0, r), a;
|
|
1700
2056
|
}
|
|
1701
|
-
function
|
|
2057
|
+
function Vn({
|
|
1702
2058
|
items: e,
|
|
1703
2059
|
renderItem: n,
|
|
1704
2060
|
nameOf: l,
|
|
1705
|
-
editable:
|
|
1706
|
-
onChange:
|
|
2061
|
+
editable: a,
|
|
2062
|
+
onChange: r,
|
|
1707
2063
|
emptyLabel: s,
|
|
1708
|
-
addLabel:
|
|
1709
|
-
addOptions:
|
|
1710
|
-
onAdd:
|
|
2064
|
+
addLabel: p,
|
|
2065
|
+
addOptions: m,
|
|
2066
|
+
onAdd: g
|
|
1711
2067
|
}) {
|
|
1712
|
-
const { t:
|
|
1713
|
-
return /* @__PURE__ */ b(
|
|
1714
|
-
e.length === 0 ? /* @__PURE__ */ t(
|
|
1715
|
-
const d = l(
|
|
2068
|
+
const { t: i } = V(h);
|
|
2069
|
+
return /* @__PURE__ */ b(X, { gap: "2", children: [
|
|
2070
|
+
e.length === 0 ? /* @__PURE__ */ t(H, { color: "fg.muted", children: s }) : /* @__PURE__ */ t(X, { as: "ol", gap: "0", listStyleType: "none", ms: "0", children: e.map((c, o) => {
|
|
2071
|
+
const d = l(c);
|
|
1716
2072
|
return /* @__PURE__ */ b(
|
|
1717
|
-
|
|
2073
|
+
O,
|
|
1718
2074
|
{
|
|
1719
2075
|
as: "li",
|
|
1720
2076
|
gap: "3",
|
|
@@ -1723,309 +2079,309 @@ function jt({
|
|
|
1723
2079
|
borderColor: "border",
|
|
1724
2080
|
align: "start",
|
|
1725
2081
|
children: [
|
|
1726
|
-
/* @__PURE__ */ b(
|
|
1727
|
-
|
|
2082
|
+
/* @__PURE__ */ b(H, { color: "fg.muted", minW: "6", textAlign: "end", children: [
|
|
2083
|
+
o + 1,
|
|
1728
2084
|
"."
|
|
1729
2085
|
] }),
|
|
1730
|
-
/* @__PURE__ */ t(
|
|
1731
|
-
|
|
2086
|
+
/* @__PURE__ */ t(T, { flex: "1", minW: "0", children: n(c, o) }),
|
|
2087
|
+
a ? /* @__PURE__ */ b(O, { gap: "1", children: [
|
|
1732
2088
|
/* @__PURE__ */ t(
|
|
1733
|
-
|
|
2089
|
+
Fe,
|
|
1734
2090
|
{
|
|
1735
|
-
"aria-label":
|
|
2091
|
+
"aria-label": i("order.moveUp", { name: d }),
|
|
1736
2092
|
size: "xs",
|
|
1737
2093
|
variant: "ghost",
|
|
1738
|
-
disabled:
|
|
1739
|
-
onClick: () =>
|
|
1740
|
-
children: /* @__PURE__ */ t(
|
|
2094
|
+
disabled: o === 0,
|
|
2095
|
+
onClick: () => r(kt(e, o, o - 1)),
|
|
2096
|
+
children: /* @__PURE__ */ t(zn, { size: 14 })
|
|
1741
2097
|
}
|
|
1742
2098
|
),
|
|
1743
2099
|
/* @__PURE__ */ t(
|
|
1744
|
-
|
|
2100
|
+
Fe,
|
|
1745
2101
|
{
|
|
1746
|
-
"aria-label":
|
|
2102
|
+
"aria-label": i("order.moveDown", { name: d }),
|
|
1747
2103
|
size: "xs",
|
|
1748
2104
|
variant: "ghost",
|
|
1749
|
-
disabled:
|
|
1750
|
-
onClick: () =>
|
|
1751
|
-
children: /* @__PURE__ */ t(
|
|
2105
|
+
disabled: o === e.length - 1,
|
|
2106
|
+
onClick: () => r(kt(e, o, o + 1)),
|
|
2107
|
+
children: /* @__PURE__ */ t(Mn, { size: 14 })
|
|
1752
2108
|
}
|
|
1753
2109
|
),
|
|
1754
2110
|
/* @__PURE__ */ t(
|
|
1755
|
-
|
|
2111
|
+
Fe,
|
|
1756
2112
|
{
|
|
1757
|
-
"aria-label":
|
|
2113
|
+
"aria-label": i("order.remove", { name: d }),
|
|
1758
2114
|
size: "xs",
|
|
1759
2115
|
variant: "ghost",
|
|
1760
2116
|
colorPalette: "red",
|
|
1761
|
-
onClick: () =>
|
|
1762
|
-
children: /* @__PURE__ */ t(
|
|
2117
|
+
onClick: () => r(e.filter((u, R) => R !== o)),
|
|
2118
|
+
children: /* @__PURE__ */ t(Ze, { size: 14 })
|
|
1763
2119
|
}
|
|
1764
2120
|
)
|
|
1765
2121
|
] }) : null
|
|
1766
2122
|
]
|
|
1767
2123
|
},
|
|
1768
|
-
|
|
2124
|
+
o
|
|
1769
2125
|
);
|
|
1770
2126
|
}) }),
|
|
1771
|
-
|
|
1772
|
-
/* @__PURE__ */ t(
|
|
1773
|
-
/* @__PURE__ */ t(
|
|
1774
|
-
|
|
2127
|
+
a ? /* @__PURE__ */ t(T, { children: /* @__PURE__ */ b(vn, { onSelect: (c) => g(c.value), children: [
|
|
2128
|
+
/* @__PURE__ */ t(Jn, { asChild: !0, children: /* @__PURE__ */ b(W, { variant: "outline", size: "sm", disabled: m.length === 0, children: [
|
|
2129
|
+
/* @__PURE__ */ t(be, { size: 14, "aria-hidden": !0 }),
|
|
2130
|
+
p
|
|
1775
2131
|
] }) }),
|
|
1776
|
-
/* @__PURE__ */ t(
|
|
2132
|
+
/* @__PURE__ */ t(wn, { children: m.map((c) => /* @__PURE__ */ t(Nn, { value: c.value, children: c.label }, c.value)) })
|
|
1777
2133
|
] }) }) : null
|
|
1778
2134
|
] });
|
|
1779
2135
|
}
|
|
1780
|
-
const
|
|
1781
|
-
function
|
|
2136
|
+
const Dl = {};
|
|
2137
|
+
function Hl({
|
|
1782
2138
|
open: e,
|
|
1783
2139
|
onClose: n,
|
|
1784
2140
|
processor: l,
|
|
1785
|
-
settings:
|
|
1786
|
-
readOnly:
|
|
2141
|
+
settings: a,
|
|
2142
|
+
readOnly: r,
|
|
1787
2143
|
onApply: s
|
|
1788
2144
|
}) {
|
|
1789
|
-
const { t:
|
|
1790
|
-
|
|
1791
|
-
e &&
|
|
1792
|
-
}, [e,
|
|
1793
|
-
const
|
|
2145
|
+
const { t: p } = V(h), m = l?.settingsSpec ?? [], g = z(() => ll(il(m, Wt)), [m]), i = he({ defaultValues: a, resolver: g }), { reset: c } = i;
|
|
2146
|
+
P(() => {
|
|
2147
|
+
e && c(a ?? Dl);
|
|
2148
|
+
}, [e, a, c]);
|
|
2149
|
+
const o = i.handleSubmit((d) => s(d));
|
|
1794
2150
|
return /* @__PURE__ */ t(
|
|
1795
|
-
|
|
2151
|
+
Be,
|
|
1796
2152
|
{
|
|
1797
2153
|
open: e,
|
|
1798
2154
|
onClose: n,
|
|
1799
|
-
header:
|
|
2155
|
+
header: p("processors.settingsOf", { name: l?.name ?? "" }),
|
|
1800
2156
|
lazyMount: !0,
|
|
1801
2157
|
unmountOnExit: !0,
|
|
1802
|
-
cancelLabel:
|
|
1803
|
-
saveLabel:
|
|
1804
|
-
onSave:
|
|
1805
|
-
|
|
2158
|
+
cancelLabel: p(r ? "common.close" : "common.cancel"),
|
|
2159
|
+
saveLabel: p("common.apply"),
|
|
2160
|
+
onSave: r ? void 0 : () => {
|
|
2161
|
+
o();
|
|
1806
2162
|
},
|
|
1807
|
-
children: /* @__PURE__ */ t(
|
|
2163
|
+
children: /* @__PURE__ */ t(Se, { ...i, children: /* @__PURE__ */ t(
|
|
1808
2164
|
"form",
|
|
1809
2165
|
{
|
|
1810
2166
|
onSubmit: (d) => {
|
|
1811
|
-
d.preventDefault(),
|
|
2167
|
+
d.preventDefault(), o();
|
|
1812
2168
|
},
|
|
1813
|
-
children: /* @__PURE__ */ t(
|
|
2169
|
+
children: /* @__PURE__ */ t(al, { plugins: Wt, children: r ? /* @__PURE__ */ t(Bt, { schema: m, mode: "read", values: a }) : /* @__PURE__ */ t(Bt, { schema: m }) })
|
|
1814
2170
|
}
|
|
1815
2171
|
) })
|
|
1816
2172
|
}
|
|
1817
2173
|
);
|
|
1818
2174
|
}
|
|
1819
|
-
const
|
|
2175
|
+
const Ye = (e) => ({
|
|
1820
2176
|
...e,
|
|
1821
2177
|
entitySetId: e.entitySetId || null
|
|
1822
|
-
}),
|
|
2178
|
+
}), Tl = (e) => ({
|
|
1823
2179
|
...e,
|
|
1824
2180
|
entitySetId: e.entitySetId ?? ""
|
|
1825
2181
|
});
|
|
1826
|
-
function
|
|
1827
|
-
const { t:
|
|
1828
|
-
queryKey:
|
|
2182
|
+
function Na({ client: e, id: n, onDeleted: l }) {
|
|
2183
|
+
const { t: a } = V(h), { workspaceId: r } = v(), s = k({
|
|
2184
|
+
queryKey: I.importProfile(r, n),
|
|
1829
2185
|
queryFn: () => e.getImportProfile(n)
|
|
1830
2186
|
});
|
|
1831
|
-
return s.isError ? /* @__PURE__ */ t(
|
|
2187
|
+
return s.isError ? /* @__PURE__ */ t(Q, { title: a("section.profiles.title"), children: /* @__PURE__ */ t(M, {}) }) : s.data ? /* @__PURE__ */ t(Pl, { client: e, profile: s.data, onDeleted: l }) : /* @__PURE__ */ t(Q, { title: a("section.profiles.title"), children: /* @__PURE__ */ t(ye, {}) });
|
|
1832
2188
|
}
|
|
1833
|
-
function
|
|
2189
|
+
function Pl({
|
|
1834
2190
|
client: e,
|
|
1835
2191
|
profile: n,
|
|
1836
2192
|
onDeleted: l
|
|
1837
2193
|
}) {
|
|
1838
|
-
const { t:
|
|
1839
|
-
queryKey:
|
|
2194
|
+
const { t: a } = V(h), { workspaceId: r } = v(), { paths: s } = x(), p = Ve(), m = $(), [g, i] = U(!1), c = k({
|
|
2195
|
+
queryKey: I.processors(r),
|
|
1840
2196
|
queryFn: () => e.listProcessors()
|
|
1841
|
-
}),
|
|
1842
|
-
queryKey:
|
|
2197
|
+
}), o = k({
|
|
2198
|
+
queryKey: I.mappings(r),
|
|
1843
2199
|
queryFn: () => e.listMappings()
|
|
1844
|
-
}), d =
|
|
1845
|
-
queryKey:
|
|
2200
|
+
}), d = k({
|
|
2201
|
+
queryKey: I.entitySets(r),
|
|
1846
2202
|
queryFn: () => e.listEntitySets()
|
|
1847
|
-
}),
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
}, [n,
|
|
1851
|
-
const
|
|
1852
|
-
mutationFn: (
|
|
1853
|
-
onSuccess: (
|
|
1854
|
-
|
|
2203
|
+
}), u = he({ defaultValues: Ye(n.content) }), { reset: R, formState: A } = u;
|
|
2204
|
+
P(() => {
|
|
2205
|
+
A.isDirty || R(Ye(n.content));
|
|
2206
|
+
}, [n, R, A.isDirty]);
|
|
2207
|
+
const Z = re({
|
|
2208
|
+
mutationFn: (G) => e.updateImportProfile(n.id, Tl(G), n.state.draftRevisionId),
|
|
2209
|
+
onSuccess: (G) => {
|
|
2210
|
+
m.setQueryData(I.importProfile(r, G.id), G), R(Ye(G.content)), m.invalidateQueries({ queryKey: I.importProfiles(r) });
|
|
1855
2211
|
}
|
|
1856
|
-
}),
|
|
2212
|
+
}), S = u.handleSubmit((G) => Z.mutate(G)), y = ne({ control: u.control, name: "name" }), [F, f] = Mt(), L = Dt({
|
|
1857
2213
|
client: e,
|
|
1858
2214
|
kind: "importProfile",
|
|
1859
2215
|
id: n.id,
|
|
1860
2216
|
validity: n.validity,
|
|
1861
2217
|
state: n.state,
|
|
1862
|
-
unsaved:
|
|
2218
|
+
unsaved: A.isDirty
|
|
1863
2219
|
});
|
|
1864
|
-
return
|
|
1865
|
-
|
|
1866
|
-
/* @__PURE__ */ t(
|
|
1867
|
-
/* @__PURE__ */ b(
|
|
1868
|
-
|
|
2220
|
+
return ut(
|
|
2221
|
+
p ? /* @__PURE__ */ b(D, { storageKey: "importhub.profile.rail", children: [
|
|
2222
|
+
/* @__PURE__ */ t(D.Header, { title: a("rail.title") }),
|
|
2223
|
+
/* @__PURE__ */ b(D.Section, { id: "actions", label: a("rail.actions"), children: [
|
|
2224
|
+
L.railAction,
|
|
1869
2225
|
/* @__PURE__ */ t(
|
|
1870
|
-
|
|
2226
|
+
D.IconButton,
|
|
1871
2227
|
{
|
|
1872
|
-
label:
|
|
1873
|
-
icon: /* @__PURE__ */ t(
|
|
2228
|
+
label: a("profiles.delete"),
|
|
2229
|
+
icon: /* @__PURE__ */ t(Ze, { size: 16 }),
|
|
1874
2230
|
tone: "outline-red",
|
|
1875
|
-
onClick: () =>
|
|
2231
|
+
onClick: () => i(!0)
|
|
1876
2232
|
}
|
|
1877
2233
|
)
|
|
1878
2234
|
] })
|
|
1879
2235
|
] }) : null
|
|
1880
2236
|
), /* @__PURE__ */ b(
|
|
1881
|
-
|
|
2237
|
+
Q,
|
|
1882
2238
|
{
|
|
1883
2239
|
title: n.content.name,
|
|
1884
|
-
breadcrumbs: [{ label:
|
|
1885
|
-
badges: /* @__PURE__ */ b(
|
|
2240
|
+
breadcrumbs: [{ label: a("section.profiles.title"), to: s.profiles }],
|
|
2241
|
+
badges: /* @__PURE__ */ b(O, { gap: "2", children: [
|
|
1886
2242
|
/* @__PURE__ */ t(
|
|
1887
|
-
|
|
2243
|
+
Xe,
|
|
1888
2244
|
{
|
|
1889
2245
|
tone: n.validity.valid ? "success" : "danger",
|
|
1890
|
-
label: n.validity.valid ?
|
|
2246
|
+
label: n.validity.valid ? a("validity.valid") : a("validity.invalid")
|
|
1891
2247
|
}
|
|
1892
2248
|
),
|
|
1893
|
-
/* @__PURE__ */ t(
|
|
2249
|
+
/* @__PURE__ */ t(jt, { state: n.state })
|
|
1894
2250
|
] }),
|
|
1895
|
-
tabs:
|
|
1896
|
-
actions:
|
|
2251
|
+
tabs: f,
|
|
2252
|
+
actions: p ? /* @__PURE__ */ t(
|
|
1897
2253
|
W,
|
|
1898
2254
|
{
|
|
1899
2255
|
variant: "solid",
|
|
1900
|
-
disabled: !
|
|
1901
|
-
loading:
|
|
2256
|
+
disabled: !A.isDirty,
|
|
2257
|
+
loading: Z.isPending,
|
|
1902
2258
|
onClick: () => {
|
|
1903
|
-
|
|
2259
|
+
S();
|
|
1904
2260
|
},
|
|
1905
|
-
children:
|
|
2261
|
+
children: a("common.save")
|
|
1906
2262
|
}
|
|
1907
2263
|
) : void 0,
|
|
1908
2264
|
children: [
|
|
1909
|
-
|
|
1910
|
-
|
|
2265
|
+
F === "history" ? /* @__PURE__ */ t(
|
|
2266
|
+
Ht,
|
|
1911
2267
|
{
|
|
1912
2268
|
client: e,
|
|
1913
2269
|
kind: "importProfile",
|
|
1914
2270
|
id: n.id,
|
|
1915
2271
|
draftRevisionId: n.state.draftRevisionId,
|
|
1916
2272
|
onRestored: async () => {
|
|
1917
|
-
const
|
|
1918
|
-
|
|
2273
|
+
const G = await e.getImportProfile(n.id);
|
|
2274
|
+
m.setQueryData(I.importProfile(r, G.id), G), R(Ye(G.content));
|
|
1919
2275
|
}
|
|
1920
2276
|
}
|
|
1921
|
-
) : /* @__PURE__ */ t(
|
|
2277
|
+
) : /* @__PURE__ */ t(T, { px: "8", py: "6", children: c.isPending || o.isPending || d.isPending ? /* @__PURE__ */ t(ye, {}) : /* @__PURE__ */ t(Se, { ...u, children: /* @__PURE__ */ t(
|
|
1922
2278
|
"form",
|
|
1923
2279
|
{
|
|
1924
|
-
onSubmit: (
|
|
1925
|
-
|
|
2280
|
+
onSubmit: (G) => {
|
|
2281
|
+
G.preventDefault(), p && S();
|
|
1926
2282
|
},
|
|
1927
|
-
children: /* @__PURE__ */ b(
|
|
1928
|
-
|
|
1929
|
-
/* @__PURE__ */ t(
|
|
1930
|
-
|
|
1931
|
-
/* @__PURE__ */ t(
|
|
2283
|
+
children: /* @__PURE__ */ b(X, { gap: "4", children: [
|
|
2284
|
+
L.notice,
|
|
2285
|
+
/* @__PURE__ */ t(Tt, { validity: n.validity }),
|
|
2286
|
+
Z.isError ? /* @__PURE__ */ t(C, { status: "error", colorPalette: "danger", title: a("save.failed"), children: Z.error.message }) : null,
|
|
2287
|
+
/* @__PURE__ */ t(N, { title: a("profiles.general"), children: /* @__PURE__ */ b(X, { gap: "4", children: [
|
|
1932
2288
|
/* @__PURE__ */ t(
|
|
1933
|
-
|
|
2289
|
+
_,
|
|
1934
2290
|
{
|
|
1935
2291
|
name: "name",
|
|
1936
|
-
label:
|
|
2292
|
+
label: a("fields.name"),
|
|
1937
2293
|
required: !0,
|
|
1938
|
-
disabled: !
|
|
2294
|
+
disabled: !p
|
|
1939
2295
|
}
|
|
1940
2296
|
),
|
|
1941
2297
|
/* @__PURE__ */ t(
|
|
1942
|
-
|
|
2298
|
+
Rt,
|
|
1943
2299
|
{
|
|
1944
2300
|
name: "description",
|
|
1945
|
-
label:
|
|
1946
|
-
disabled: !
|
|
2301
|
+
label: a("fields.description"),
|
|
2302
|
+
disabled: !p
|
|
1947
2303
|
}
|
|
1948
2304
|
),
|
|
1949
2305
|
/* @__PURE__ */ t(
|
|
1950
|
-
|
|
2306
|
+
xe,
|
|
1951
2307
|
{
|
|
1952
2308
|
name: "entitySetId",
|
|
1953
|
-
label:
|
|
1954
|
-
helperText:
|
|
1955
|
-
placeholder:
|
|
1956
|
-
options: (d.data ?? []).map((
|
|
1957
|
-
id:
|
|
1958
|
-
label:
|
|
2309
|
+
label: a("profiles.entitySet"),
|
|
2310
|
+
helperText: a("profiles.entitySetHelp"),
|
|
2311
|
+
placeholder: a("profiles.noEntitySet"),
|
|
2312
|
+
options: (d.data ?? []).map((G) => ({
|
|
2313
|
+
id: G.id,
|
|
2314
|
+
label: G.content.name
|
|
1959
2315
|
})),
|
|
1960
|
-
disabled: !
|
|
2316
|
+
disabled: !p
|
|
1961
2317
|
}
|
|
1962
2318
|
),
|
|
1963
2319
|
/* @__PURE__ */ t(
|
|
1964
|
-
|
|
2320
|
+
Gt,
|
|
1965
2321
|
{
|
|
1966
2322
|
name: "autoPublish",
|
|
1967
|
-
label:
|
|
1968
|
-
helperText:
|
|
1969
|
-
disabled: !
|
|
2323
|
+
label: a("profiles.autoPublish"),
|
|
2324
|
+
helperText: a("profiles.autoPublishHelp"),
|
|
2325
|
+
disabled: !p
|
|
1970
2326
|
}
|
|
1971
2327
|
),
|
|
1972
2328
|
/* @__PURE__ */ t(
|
|
1973
|
-
|
|
2329
|
+
Gt,
|
|
1974
2330
|
{
|
|
1975
2331
|
name: "deleteSourceFileOnSuccess",
|
|
1976
|
-
label:
|
|
1977
|
-
helperText:
|
|
1978
|
-
disabled: !
|
|
2332
|
+
label: a("profiles.deleteOnSuccess"),
|
|
2333
|
+
helperText: a("profiles.deleteOnSuccessHelp"),
|
|
2334
|
+
disabled: !p
|
|
1979
2335
|
}
|
|
1980
2336
|
)
|
|
1981
2337
|
] }) }),
|
|
1982
|
-
/* @__PURE__ */ t(
|
|
1983
|
-
|
|
2338
|
+
/* @__PURE__ */ t(N, { title: a("profiles.preprocessors"), children: /* @__PURE__ */ t(
|
|
2339
|
+
xt,
|
|
1984
2340
|
{
|
|
1985
2341
|
name: "preprocessors",
|
|
1986
2342
|
kind: "preprocessor",
|
|
1987
|
-
catalogue:
|
|
1988
|
-
editable:
|
|
2343
|
+
catalogue: c.data ?? [],
|
|
2344
|
+
editable: p
|
|
1989
2345
|
}
|
|
1990
2346
|
) }),
|
|
1991
|
-
/* @__PURE__ */ t(
|
|
1992
|
-
|
|
2347
|
+
/* @__PURE__ */ t(N, { title: a("profiles.mappings"), children: /* @__PURE__ */ t(
|
|
2348
|
+
Ol,
|
|
1993
2349
|
{
|
|
1994
|
-
mappings: (
|
|
1995
|
-
id:
|
|
1996
|
-
name:
|
|
1997
|
-
valid:
|
|
2350
|
+
mappings: (o.data ?? []).map((G) => ({
|
|
2351
|
+
id: G.id,
|
|
2352
|
+
name: G.content.name,
|
|
2353
|
+
valid: G.validity.valid
|
|
1998
2354
|
})),
|
|
1999
|
-
editable:
|
|
2000
|
-
hrefOf: (
|
|
2355
|
+
editable: p,
|
|
2356
|
+
hrefOf: (G) => Re(s, "mappings", G)
|
|
2001
2357
|
}
|
|
2002
2358
|
) }),
|
|
2003
|
-
/* @__PURE__ */ t(
|
|
2004
|
-
|
|
2359
|
+
/* @__PURE__ */ t(N, { title: a("profiles.postProcessors"), children: /* @__PURE__ */ t(
|
|
2360
|
+
xt,
|
|
2005
2361
|
{
|
|
2006
2362
|
name: "postProcessors",
|
|
2007
2363
|
kind: "post_processor",
|
|
2008
|
-
catalogue:
|
|
2009
|
-
editable:
|
|
2364
|
+
catalogue: c.data ?? [],
|
|
2365
|
+
editable: p
|
|
2010
2366
|
}
|
|
2011
2367
|
) })
|
|
2012
2368
|
] })
|
|
2013
2369
|
}
|
|
2014
2370
|
) }) }),
|
|
2015
|
-
|
|
2371
|
+
L.dialog,
|
|
2016
2372
|
/* @__PURE__ */ t(
|
|
2017
|
-
|
|
2373
|
+
Pt,
|
|
2018
2374
|
{
|
|
2019
|
-
open:
|
|
2020
|
-
onClose: () =>
|
|
2021
|
-
title:
|
|
2022
|
-
message:
|
|
2375
|
+
open: g,
|
|
2376
|
+
onClose: () => i(!1),
|
|
2377
|
+
title: a("profiles.deleteTitle", { name: y || n.content.name }),
|
|
2378
|
+
message: a("profiles.deleteMessage"),
|
|
2023
2379
|
onDelete: () => e.deleteImportProfile(n.id),
|
|
2024
2380
|
onDeleted: () => {
|
|
2025
|
-
|
|
2026
|
-
queryKey:
|
|
2027
|
-
}),
|
|
2028
|
-
queryKey:
|
|
2381
|
+
i(!1), m.removeQueries({
|
|
2382
|
+
queryKey: I.importProfile(r, n.id)
|
|
2383
|
+
}), m.invalidateQueries({
|
|
2384
|
+
queryKey: I.importProfiles(r)
|
|
2029
2385
|
}), l();
|
|
2030
2386
|
}
|
|
2031
2387
|
}
|
|
@@ -2034,50 +2390,50 @@ function Gl({
|
|
|
2034
2390
|
}
|
|
2035
2391
|
);
|
|
2036
2392
|
}
|
|
2037
|
-
function
|
|
2393
|
+
function xt({
|
|
2038
2394
|
name: e,
|
|
2039
2395
|
kind: n,
|
|
2040
2396
|
catalogue: l,
|
|
2041
|
-
editable:
|
|
2397
|
+
editable: a
|
|
2042
2398
|
}) {
|
|
2043
|
-
const { t:
|
|
2044
|
-
return /* @__PURE__ */ b(
|
|
2399
|
+
const { t: r } = V(h), { control: s, setValue: p } = hn(), m = ne({ control: s, name: e }) ?? [], [g, i] = U(null), c = (R) => p(e, R, { shouldDirty: !0 }), o = (R) => l.find((A) => A.name === R.processor), d = g === null ? void 0 : m[g], u = l.filter((R) => R.kind === n && R.target === "source_file");
|
|
2400
|
+
return /* @__PURE__ */ b(ae, { children: [
|
|
2045
2401
|
/* @__PURE__ */ t(
|
|
2046
|
-
|
|
2402
|
+
Vn,
|
|
2047
2403
|
{
|
|
2048
|
-
items:
|
|
2049
|
-
nameOf: (
|
|
2050
|
-
editable:
|
|
2051
|
-
onChange:
|
|
2052
|
-
emptyLabel:
|
|
2404
|
+
items: m,
|
|
2405
|
+
nameOf: (R) => R.processor,
|
|
2406
|
+
editable: a,
|
|
2407
|
+
onChange: c,
|
|
2408
|
+
emptyLabel: r(
|
|
2053
2409
|
n === "preprocessor" ? "profiles.noPreprocessors" : "profiles.noPostProcessors"
|
|
2054
2410
|
),
|
|
2055
|
-
addLabel:
|
|
2411
|
+
addLabel: r(
|
|
2056
2412
|
n === "preprocessor" ? "profiles.addPreprocessor" : "profiles.addPostProcessor"
|
|
2057
2413
|
),
|
|
2058
|
-
addOptions:
|
|
2059
|
-
onAdd: (
|
|
2060
|
-
|
|
2414
|
+
addOptions: u.map((R) => ({ value: R.name, label: R.name })),
|
|
2415
|
+
onAdd: (R) => {
|
|
2416
|
+
c([...m, { processor: R, settings: {} }]), (u.find((A) => A.name === R)?.settingsSpec.length ?? 0) > 0 && i(m.length);
|
|
2061
2417
|
},
|
|
2062
|
-
renderItem: (
|
|
2063
|
-
const
|
|
2064
|
-
return /* @__PURE__ */ b(
|
|
2065
|
-
/* @__PURE__ */ b(
|
|
2066
|
-
/* @__PURE__ */ t(
|
|
2067
|
-
/* @__PURE__ */ t(
|
|
2418
|
+
renderItem: (R, A) => {
|
|
2419
|
+
const Z = o(R), S = Object.keys(R.settings).length;
|
|
2420
|
+
return /* @__PURE__ */ b(O, { justify: "space-between", gap: "3", children: [
|
|
2421
|
+
/* @__PURE__ */ b(X, { gap: "0", minW: "0", children: [
|
|
2422
|
+
/* @__PURE__ */ t(H, { fontFamily: "mono", fontSize: "sm", children: R.processor }),
|
|
2423
|
+
/* @__PURE__ */ t(H, { color: "fg.muted", fontSize: "sm", children: Z ? Z.description : r("processors.unknown") })
|
|
2068
2424
|
] }),
|
|
2069
|
-
|
|
2425
|
+
Z && Z.settingsSpec.length > 0 ? /* @__PURE__ */ b(
|
|
2070
2426
|
W,
|
|
2071
2427
|
{
|
|
2072
2428
|
size: "xs",
|
|
2073
2429
|
variant: "outline",
|
|
2074
|
-
onClick: () =>
|
|
2075
|
-
"aria-label":
|
|
2076
|
-
name:
|
|
2430
|
+
onClick: () => i(A),
|
|
2431
|
+
"aria-label": r(a ? "processors.configure" : "processors.viewSettings", {
|
|
2432
|
+
name: R.processor
|
|
2077
2433
|
}),
|
|
2078
2434
|
children: [
|
|
2079
|
-
/* @__PURE__ */ t(
|
|
2080
|
-
|
|
2435
|
+
/* @__PURE__ */ t(Dn, { size: 14, "aria-hidden": !0 }),
|
|
2436
|
+
r("processors.settingsCount", { count: S })
|
|
2081
2437
|
]
|
|
2082
2438
|
}
|
|
2083
2439
|
) : null
|
|
@@ -2086,108 +2442,108 @@ function At({
|
|
|
2086
2442
|
}
|
|
2087
2443
|
),
|
|
2088
2444
|
/* @__PURE__ */ t(
|
|
2089
|
-
|
|
2445
|
+
Hl,
|
|
2090
2446
|
{
|
|
2091
2447
|
open: d !== void 0,
|
|
2092
|
-
onClose: () =>
|
|
2093
|
-
processor: d ?
|
|
2094
|
-
settings: d?.settings ??
|
|
2095
|
-
readOnly: !
|
|
2096
|
-
onApply: (
|
|
2097
|
-
|
|
2448
|
+
onClose: () => i(null),
|
|
2449
|
+
processor: d ? o(d) ?? null : null,
|
|
2450
|
+
settings: d?.settings ?? jl,
|
|
2451
|
+
readOnly: !a,
|
|
2452
|
+
onApply: (R) => {
|
|
2453
|
+
g !== null && (c(m.map((A, Z) => Z === g ? { ...A, settings: R } : A)), i(null));
|
|
2098
2454
|
}
|
|
2099
2455
|
}
|
|
2100
2456
|
)
|
|
2101
2457
|
] });
|
|
2102
2458
|
}
|
|
2103
|
-
const
|
|
2104
|
-
function
|
|
2459
|
+
const jl = {};
|
|
2460
|
+
function Ol({
|
|
2105
2461
|
mappings: e,
|
|
2106
2462
|
editable: n,
|
|
2107
2463
|
hrefOf: l
|
|
2108
2464
|
}) {
|
|
2109
|
-
const { t:
|
|
2465
|
+
const { t: a } = V(h), { control: r, setValue: s } = hn(), p = ne({ control: r, name: "mappingIds" }) ?? [], m = z(() => new Map(e.map((c) => [c.id, c])), [e]), g = (c) => s("mappingIds", c, { shouldDirty: !0 });
|
|
2110
2466
|
return /* @__PURE__ */ t(
|
|
2111
|
-
|
|
2467
|
+
Vn,
|
|
2112
2468
|
{
|
|
2113
|
-
items:
|
|
2114
|
-
nameOf: (
|
|
2469
|
+
items: p,
|
|
2470
|
+
nameOf: (c) => m.get(c)?.name ?? a("profiles.missingMapping"),
|
|
2115
2471
|
editable: n,
|
|
2116
|
-
onChange:
|
|
2117
|
-
emptyLabel:
|
|
2118
|
-
addLabel:
|
|
2119
|
-
addOptions: e.filter((
|
|
2120
|
-
onAdd: (
|
|
2121
|
-
renderItem: (
|
|
2122
|
-
const
|
|
2123
|
-
return
|
|
2124
|
-
/* @__PURE__ */ t(
|
|
2125
|
-
|
|
2126
|
-
] }) : /* @__PURE__ */ t(
|
|
2472
|
+
onChange: g,
|
|
2473
|
+
emptyLabel: a("profiles.noMappings"),
|
|
2474
|
+
addLabel: a("profiles.addMapping"),
|
|
2475
|
+
addOptions: e.filter((c) => !p.includes(c.id)).map((c) => ({ value: c.id, label: c.name })),
|
|
2476
|
+
onAdd: (c) => g([...p, c]),
|
|
2477
|
+
renderItem: (c) => {
|
|
2478
|
+
const o = m.get(c);
|
|
2479
|
+
return o ? /* @__PURE__ */ b(O, { gap: "2", children: [
|
|
2480
|
+
/* @__PURE__ */ t(ct, { asChild: !0, children: /* @__PURE__ */ t($t, { to: l(o.id), children: o.name }) }),
|
|
2481
|
+
o.valid ? null : /* @__PURE__ */ t(Xe, { tone: "danger", label: a("validity.invalid") })
|
|
2482
|
+
] }) : /* @__PURE__ */ t(H, { color: "fg.muted", children: a("profiles.missingMapping") });
|
|
2127
2483
|
}
|
|
2128
2484
|
}
|
|
2129
2485
|
);
|
|
2130
2486
|
}
|
|
2131
|
-
const
|
|
2132
|
-
function
|
|
2133
|
-
const { t: l } =
|
|
2134
|
-
queryKey:
|
|
2487
|
+
const hn = () => _t();
|
|
2488
|
+
function Ya({ client: e, onOpen: n }) {
|
|
2489
|
+
const { t: l } = V(h), { workspaceId: a } = v(), { paths: r } = x(), s = Ve(), p = $(), [m, g] = U(!1), i = k({
|
|
2490
|
+
queryKey: I.importProfiles(a),
|
|
2135
2491
|
queryFn: () => e.listImportProfiles()
|
|
2136
|
-
}),
|
|
2492
|
+
}), c = z(
|
|
2137
2493
|
() => [
|
|
2138
2494
|
{
|
|
2139
2495
|
id: "name",
|
|
2140
2496
|
header: l("fields.name"),
|
|
2141
|
-
cell: (
|
|
2142
|
-
|
|
2497
|
+
cell: (o) => /* @__PURE__ */ t(
|
|
2498
|
+
ze,
|
|
2143
2499
|
{
|
|
2144
|
-
to:
|
|
2145
|
-
label:
|
|
2500
|
+
to: Re(r, "profiles", o.row.original.id),
|
|
2501
|
+
label: o.row.original.content.name
|
|
2146
2502
|
}
|
|
2147
2503
|
)
|
|
2148
2504
|
},
|
|
2149
2505
|
{
|
|
2150
2506
|
id: "validity",
|
|
2151
2507
|
header: l("validity.column"),
|
|
2152
|
-
cell: (
|
|
2508
|
+
cell: (o) => /* @__PURE__ */ t(dt, { validity: o.row.original.validity })
|
|
2153
2509
|
},
|
|
2154
2510
|
{
|
|
2155
2511
|
id: "release",
|
|
2156
2512
|
header: l("release.column"),
|
|
2157
2513
|
size: 140,
|
|
2158
|
-
cell: (
|
|
2514
|
+
cell: (o) => /* @__PURE__ */ t(w, { value: Ot(o.row.original.state, l) })
|
|
2159
2515
|
}
|
|
2160
2516
|
],
|
|
2161
|
-
[l,
|
|
2517
|
+
[l, r]
|
|
2162
2518
|
);
|
|
2163
2519
|
return /* @__PURE__ */ b(
|
|
2164
|
-
|
|
2520
|
+
oe,
|
|
2165
2521
|
{
|
|
2166
2522
|
title: l("section.profiles.title"),
|
|
2167
|
-
actions: s ? /* @__PURE__ */ b(W, { variant: "solid", onClick: () =>
|
|
2168
|
-
/* @__PURE__ */ t(
|
|
2523
|
+
actions: s ? /* @__PURE__ */ b(W, { variant: "solid", onClick: () => g(!0), children: [
|
|
2524
|
+
/* @__PURE__ */ t(be, { size: 16, "aria-hidden": !0 }),
|
|
2169
2525
|
l("profiles.new")
|
|
2170
2526
|
] }) : void 0,
|
|
2171
2527
|
children: [
|
|
2172
|
-
|
|
2173
|
-
|
|
2528
|
+
i.isError ? /* @__PURE__ */ t(M, {}) : /* @__PURE__ */ t(
|
|
2529
|
+
te,
|
|
2174
2530
|
{
|
|
2175
|
-
columns:
|
|
2176
|
-
data:
|
|
2177
|
-
loading:
|
|
2178
|
-
getRowId: (
|
|
2531
|
+
columns: c,
|
|
2532
|
+
data: i.data ?? [],
|
|
2533
|
+
loading: i.isPending,
|
|
2534
|
+
getRowId: (o) => o.id,
|
|
2179
2535
|
emptyState: l("profiles.empty")
|
|
2180
2536
|
}
|
|
2181
2537
|
),
|
|
2182
2538
|
/* @__PURE__ */ t(
|
|
2183
|
-
|
|
2539
|
+
At,
|
|
2184
2540
|
{
|
|
2185
|
-
open:
|
|
2186
|
-
onClose: () =>
|
|
2541
|
+
open: m,
|
|
2542
|
+
onClose: () => g(!1),
|
|
2187
2543
|
title: l("profiles.new"),
|
|
2188
|
-
onCreate: async ({ name:
|
|
2189
|
-
const
|
|
2190
|
-
name:
|
|
2544
|
+
onCreate: async ({ name: o, description: d }) => {
|
|
2545
|
+
const u = await e.createImportProfile({
|
|
2546
|
+
name: o,
|
|
2191
2547
|
description: d,
|
|
2192
2548
|
entitySetId: "",
|
|
2193
2549
|
preprocessors: [],
|
|
@@ -2196,12 +2552,12 @@ function di({ client: e, onOpen: n }) {
|
|
|
2196
2552
|
autoPublish: !1,
|
|
2197
2553
|
deleteSourceFileOnSuccess: !1
|
|
2198
2554
|
});
|
|
2199
|
-
return await
|
|
2200
|
-
queryKey:
|
|
2201
|
-
}),
|
|
2555
|
+
return await p.invalidateQueries({
|
|
2556
|
+
queryKey: I.importProfiles(a)
|
|
2557
|
+
}), u.id;
|
|
2202
2558
|
},
|
|
2203
|
-
onCreated: (
|
|
2204
|
-
|
|
2559
|
+
onCreated: (o) => {
|
|
2560
|
+
g(!1), n(o);
|
|
2205
2561
|
}
|
|
2206
2562
|
}
|
|
2207
2563
|
)
|
|
@@ -2209,154 +2565,193 @@ function di({ client: e, onOpen: n }) {
|
|
|
2209
2565
|
}
|
|
2210
2566
|
);
|
|
2211
2567
|
}
|
|
2212
|
-
const
|
|
2568
|
+
const ql = {
|
|
2569
|
+
kind: "import",
|
|
2570
|
+
on: "release",
|
|
2213
2571
|
importProfileId: "",
|
|
2214
2572
|
effectiveDate: "",
|
|
2215
2573
|
sourceDate: "",
|
|
2216
2574
|
sourceReference: ""
|
|
2217
|
-
},
|
|
2218
|
-
function
|
|
2219
|
-
const { t: l } =
|
|
2220
|
-
queryKey:
|
|
2575
|
+
}, _l = (e) => /\.xml$/i.test(e.name) || e.type === "text/xml" || e.type === "application/xml";
|
|
2576
|
+
function Ua({ client: e, onStarted: n }) {
|
|
2577
|
+
const { t: l } = V(h), { workspaceId: a } = v(), { paths: r } = x(), s = De(), p = Ve(), m = $(), g = k({
|
|
2578
|
+
queryKey: I.importProfiles(a),
|
|
2221
2579
|
queryFn: () => e.listImportProfiles(),
|
|
2222
2580
|
enabled: s
|
|
2223
|
-
}),
|
|
2224
|
-
const [
|
|
2225
|
-
if (
|
|
2226
|
-
if (!
|
|
2227
|
-
|
|
2581
|
+
}), i = he({ defaultValues: ql }), c = ne({ control: i.control, name: "importProfileId" }), o = ne({ control: i.control, name: "kind" }), d = ne({ control: i.control, name: "on" }), u = o === "dryRun", R = u && p && d === "draft", [A, Z] = U(null), S = (B) => {
|
|
2582
|
+
const [J] = B;
|
|
2583
|
+
if (J) {
|
|
2584
|
+
if (!_l(J)) {
|
|
2585
|
+
Z({
|
|
2228
2586
|
state: "failed",
|
|
2229
|
-
name:
|
|
2230
|
-
message: l("startImport.notXml", { name:
|
|
2587
|
+
name: J.name,
|
|
2588
|
+
message: l("startImport.notXml", { name: J.name })
|
|
2231
2589
|
});
|
|
2232
2590
|
return;
|
|
2233
2591
|
}
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
(
|
|
2237
|
-
(
|
|
2592
|
+
Z({ state: "uploading", name: J.name, fraction: 0 }), e.uploadSourceFile(
|
|
2593
|
+
J,
|
|
2594
|
+
(j) => Z(
|
|
2595
|
+
(Ce) => Ce?.state === "uploading" && Ce.name === J.name ? { ...Ce, fraction: j } : Ce
|
|
2238
2596
|
)
|
|
2239
2597
|
).then(
|
|
2240
|
-
(
|
|
2241
|
-
(
|
|
2598
|
+
(j) => Z({ state: "uploaded", name: J.name, sourceFile: j }),
|
|
2599
|
+
(j) => Z({
|
|
2242
2600
|
state: "failed",
|
|
2243
|
-
name:
|
|
2601
|
+
name: J.name,
|
|
2244
2602
|
message: l("startImport.uploadFailed", {
|
|
2245
|
-
name:
|
|
2246
|
-
message:
|
|
2603
|
+
name: J.name,
|
|
2604
|
+
message: j instanceof Error ? j.message : String(j)
|
|
2247
2605
|
})
|
|
2248
2606
|
})
|
|
2249
2607
|
);
|
|
2250
2608
|
}
|
|
2251
|
-
},
|
|
2252
|
-
mutationFn: (
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2609
|
+
}, y = re({
|
|
2610
|
+
mutationFn: ({ sourceFileId: B, ...J }) => {
|
|
2611
|
+
const j = {
|
|
2612
|
+
importProfileId: J.importProfileId,
|
|
2613
|
+
sourceFileId: B,
|
|
2614
|
+
effectiveDate: J.effectiveDate,
|
|
2615
|
+
...J.sourceDate ? { source: { date: J.sourceDate, reference: J.sourceReference.trim() } } : {}
|
|
2616
|
+
};
|
|
2617
|
+
return J.kind === "dryRun" ? e.startDryRun({ ...j, draft: p && J.on === "draft" }) : e.startImport(j);
|
|
2618
|
+
},
|
|
2619
|
+
onSuccess: (B) => {
|
|
2620
|
+
m.invalidateQueries({ queryKey: I.imports(a) }), n(B.id);
|
|
2260
2621
|
}
|
|
2261
|
-
}),
|
|
2262
|
-
if (
|
|
2263
|
-
if (!
|
|
2264
|
-
|
|
2622
|
+
}), F = i.handleSubmit((B) => {
|
|
2623
|
+
if (A?.state === "uploaded") {
|
|
2624
|
+
if (!B.importProfileId) {
|
|
2625
|
+
i.setError("importProfileId", { message: l("startImport.profileRequired") });
|
|
2265
2626
|
return;
|
|
2266
2627
|
}
|
|
2267
|
-
if (!!
|
|
2268
|
-
|
|
2628
|
+
if (!!B.sourceDate != !!B.sourceReference.trim()) {
|
|
2629
|
+
i.setError(B.sourceDate ? "sourceReference" : "sourceDate", {
|
|
2269
2630
|
message: l("startImport.sourceIncomplete")
|
|
2270
2631
|
});
|
|
2271
2632
|
return;
|
|
2272
2633
|
}
|
|
2273
|
-
|
|
2634
|
+
y.mutate({ ...B, sourceFileId: A.sourceFile.id });
|
|
2274
2635
|
}
|
|
2275
|
-
}),
|
|
2636
|
+
}), f = (g.data ?? []).filter((B) => R || B.state.latestRelease), L = f.map((B) => B.id).join(" ");
|
|
2637
|
+
P(() => {
|
|
2638
|
+
const B = i.getValues("importProfileId");
|
|
2639
|
+
B && !L.split(" ").includes(B) && i.setValue("importProfileId", "");
|
|
2640
|
+
}, [L, i]);
|
|
2641
|
+
const { reset: G } = y;
|
|
2642
|
+
P(() => G(), [o, d, G]);
|
|
2643
|
+
const Sn = c !== "" && A?.state === "uploaded", He = {
|
|
2276
2644
|
title: l("startImport.title"),
|
|
2277
|
-
breadcrumbs: [{ label: l("section.imports.title"), to:
|
|
2645
|
+
breadcrumbs: [{ label: l("section.imports.title"), to: r.imports }]
|
|
2278
2646
|
};
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
if (p.isError || !p.data)
|
|
2282
|
-
return /* @__PURE__ */ t(z, { ...S, children: p.isError ? /* @__PURE__ */ t(Q, {}) : /* @__PURE__ */ t(be, {}) });
|
|
2283
|
-
const M = p.data.filter((A) => A.state.latestRelease);
|
|
2284
|
-
return /* @__PURE__ */ t(
|
|
2285
|
-
z,
|
|
2647
|
+
return s ? g.isError || !g.data ? /* @__PURE__ */ t(Q, { ...He, children: g.isError ? /* @__PURE__ */ t(M, {}) : /* @__PURE__ */ t(ye, {}) }) : /* @__PURE__ */ t(
|
|
2648
|
+
Q,
|
|
2286
2649
|
{
|
|
2287
|
-
...
|
|
2650
|
+
...He,
|
|
2288
2651
|
actions: /* @__PURE__ */ b(
|
|
2289
2652
|
W,
|
|
2290
2653
|
{
|
|
2291
2654
|
variant: "solid",
|
|
2292
|
-
disabled: !
|
|
2293
|
-
loading:
|
|
2655
|
+
disabled: !Sn,
|
|
2656
|
+
loading: y.isPending,
|
|
2294
2657
|
onClick: () => {
|
|
2295
|
-
|
|
2658
|
+
F();
|
|
2296
2659
|
},
|
|
2297
2660
|
children: [
|
|
2298
|
-
/* @__PURE__ */ t(
|
|
2299
|
-
l("imports.start")
|
|
2661
|
+
u ? /* @__PURE__ */ t(Tn, { size: 16, "aria-hidden": !0 }) : /* @__PURE__ */ t(zt, { size: 16, "aria-hidden": !0 }),
|
|
2662
|
+
l(u ? "startImport.startDryRun" : "imports.start")
|
|
2300
2663
|
]
|
|
2301
2664
|
}
|
|
2302
2665
|
),
|
|
2303
|
-
children: /* @__PURE__ */ t(
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2666
|
+
children: /* @__PURE__ */ t(T, { px: "8", py: "6", children: /* @__PURE__ */ t(Se, { ...i, children: /* @__PURE__ */ b(X, { gap: "6", children: [
|
|
2667
|
+
y.isError ? /* @__PURE__ */ t(
|
|
2668
|
+
C,
|
|
2669
|
+
{
|
|
2670
|
+
status: "error",
|
|
2671
|
+
colorPalette: "danger",
|
|
2672
|
+
title: l(u ? "startImport.dryRunRefused" : "startImport.refused"),
|
|
2673
|
+
children: y.error.message
|
|
2674
|
+
}
|
|
2675
|
+
) : null,
|
|
2676
|
+
/* @__PURE__ */ t(N, { title: l("startImport.kindCard"), children: /* @__PURE__ */ b(X, { gap: "4", children: [
|
|
2307
2677
|
/* @__PURE__ */ t(
|
|
2308
|
-
|
|
2678
|
+
Xt,
|
|
2679
|
+
{
|
|
2680
|
+
name: "kind",
|
|
2681
|
+
label: l("startImport.kind"),
|
|
2682
|
+
options: [
|
|
2683
|
+
{ value: "import", label: l("startImport.kindImport") },
|
|
2684
|
+
{ value: "dryRun", label: l("startImport.kindDryRun") }
|
|
2685
|
+
]
|
|
2686
|
+
}
|
|
2687
|
+
),
|
|
2688
|
+
u && p ? /* @__PURE__ */ t(
|
|
2689
|
+
Xt,
|
|
2690
|
+
{
|
|
2691
|
+
name: "on",
|
|
2692
|
+
label: l("startImport.on"),
|
|
2693
|
+
options: [
|
|
2694
|
+
{ value: "release", label: l("startImport.onRelease") },
|
|
2695
|
+
{ value: "draft", label: l("startImport.onDraft") }
|
|
2696
|
+
]
|
|
2697
|
+
}
|
|
2698
|
+
) : null
|
|
2699
|
+
] }) }),
|
|
2700
|
+
/* @__PURE__ */ t(N, { title: l("startImport.fileCard"), children: /* @__PURE__ */ b(X, { gap: "4", children: [
|
|
2701
|
+
f.length === 0 ? /* @__PURE__ */ t(C, { status: "info", colorPalette: "info", title: l("startImport.noProfiles") }) : null,
|
|
2702
|
+
/* @__PURE__ */ t(
|
|
2703
|
+
xe,
|
|
2309
2704
|
{
|
|
2310
2705
|
name: "importProfileId",
|
|
2311
2706
|
label: l("startImport.profile"),
|
|
2312
|
-
helperText: l("startImport.profileHelp"),
|
|
2707
|
+
helperText: l(R ? "startImport.profileDraftHelp" : "startImport.profileHelp"),
|
|
2313
2708
|
required: !0,
|
|
2314
|
-
options:
|
|
2315
|
-
id:
|
|
2316
|
-
label: l("startImport.profileOption", {
|
|
2317
|
-
name:
|
|
2318
|
-
number:
|
|
2709
|
+
options: f.map((B) => ({
|
|
2710
|
+
id: B.id,
|
|
2711
|
+
label: R ? l("startImport.profileDraftOption", { name: B.content.name }) : l("startImport.profileOption", {
|
|
2712
|
+
name: B.content.name,
|
|
2713
|
+
number: B.state.latestRelease?.number
|
|
2319
2714
|
})
|
|
2320
2715
|
}))
|
|
2321
2716
|
}
|
|
2322
2717
|
),
|
|
2323
|
-
/* @__PURE__ */ b(
|
|
2324
|
-
/* @__PURE__ */ t(
|
|
2325
|
-
/* @__PURE__ */ t(
|
|
2718
|
+
/* @__PURE__ */ b(X, { gap: "2", children: [
|
|
2719
|
+
/* @__PURE__ */ t(H, { fontWeight: "medium", children: l("startImport.file") }),
|
|
2720
|
+
/* @__PURE__ */ t(H, { color: "muted", fontSize: "sm", children: l("startImport.fileHelp") }),
|
|
2326
2721
|
/* @__PURE__ */ t(
|
|
2327
|
-
|
|
2722
|
+
el,
|
|
2328
2723
|
{
|
|
2329
|
-
onFiles:
|
|
2724
|
+
onFiles: S,
|
|
2330
2725
|
accept: ".xml,text/xml,application/xml",
|
|
2331
|
-
disabled:
|
|
2726
|
+
disabled: A?.state === "uploading" || y.isPending,
|
|
2332
2727
|
dropHintText: l("startImport.dropHint"),
|
|
2333
2728
|
dragActiveText: l("startImport.dragActive"),
|
|
2334
2729
|
buttonLabel: l("startImport.chooseFile")
|
|
2335
2730
|
}
|
|
2336
2731
|
),
|
|
2337
|
-
/* @__PURE__ */ t(
|
|
2732
|
+
/* @__PURE__ */ t($l, { upload: A })
|
|
2338
2733
|
] })
|
|
2339
2734
|
] }) }),
|
|
2340
|
-
/* @__PURE__ */ t(
|
|
2341
|
-
/* @__PURE__ */ t(
|
|
2735
|
+
/* @__PURE__ */ t(N, { title: l("startImport.datesCard"), children: /* @__PURE__ */ b(X, { gap: "4", children: [
|
|
2736
|
+
/* @__PURE__ */ t(H, { color: "muted", fontSize: "sm", children: l("startImport.datesHelp") }),
|
|
2342
2737
|
/* @__PURE__ */ t(
|
|
2343
|
-
|
|
2738
|
+
it,
|
|
2344
2739
|
{
|
|
2345
2740
|
name: "effectiveDate",
|
|
2346
2741
|
label: l("startImport.effectiveDate"),
|
|
2347
2742
|
helperText: l("startImport.effectiveDateHelp")
|
|
2348
2743
|
}
|
|
2349
2744
|
),
|
|
2350
|
-
/* @__PURE__ */ b(
|
|
2745
|
+
/* @__PURE__ */ b(Qt, { templateColumns: { base: "1fr", md: "1fr 2fr" }, gap: "4", children: [
|
|
2351
2746
|
/* @__PURE__ */ t(
|
|
2352
|
-
|
|
2747
|
+
it,
|
|
2353
2748
|
{
|
|
2354
2749
|
name: "sourceDate",
|
|
2355
2750
|
label: l("startImport.sourceDate")
|
|
2356
2751
|
}
|
|
2357
2752
|
),
|
|
2358
2753
|
/* @__PURE__ */ t(
|
|
2359
|
-
|
|
2754
|
+
_,
|
|
2360
2755
|
{
|
|
2361
2756
|
name: "sourceReference",
|
|
2362
2757
|
label: l("startImport.sourceReference"),
|
|
@@ -2365,18 +2760,18 @@ function mi({ client: e, onStarted: n }) {
|
|
|
2365
2760
|
)
|
|
2366
2761
|
] })
|
|
2367
2762
|
] }) }),
|
|
2368
|
-
/* @__PURE__ */ t(
|
|
2763
|
+
/* @__PURE__ */ t(C, { status: "info", colorPalette: "info", title: l("startImport.consentTitle"), children: l(u ? "startImport.dryRunConsent" : "startImport.consent") })
|
|
2369
2764
|
] }) }) })
|
|
2370
2765
|
}
|
|
2371
|
-
);
|
|
2766
|
+
) : /* @__PURE__ */ t(Q, { ...He, children: /* @__PURE__ */ t(T, { px: "8", py: "6", children: /* @__PURE__ */ t(pt, { icon: /* @__PURE__ */ t(Hn, { size: 32, "aria-hidden": !0 }), header: l("startImport.notAllowed") }) }) });
|
|
2372
2767
|
}
|
|
2373
|
-
function
|
|
2374
|
-
const { t: n } =
|
|
2768
|
+
function $l({ upload: e }) {
|
|
2769
|
+
const { t: n } = V(h);
|
|
2375
2770
|
if (!e) return null;
|
|
2376
2771
|
switch (e.state) {
|
|
2377
2772
|
case "uploading":
|
|
2378
2773
|
return /* @__PURE__ */ t(
|
|
2379
|
-
|
|
2774
|
+
Lt,
|
|
2380
2775
|
{
|
|
2381
2776
|
label: n("startImport.uploading", { name: e.name }),
|
|
2382
2777
|
value: Math.round(e.fraction * 100),
|
|
@@ -2385,7 +2780,7 @@ function fl({ upload: e }) {
|
|
|
2385
2780
|
);
|
|
2386
2781
|
case "uploaded":
|
|
2387
2782
|
return /* @__PURE__ */ t(
|
|
2388
|
-
|
|
2783
|
+
C,
|
|
2389
2784
|
{
|
|
2390
2785
|
status: "success",
|
|
2391
2786
|
colorPalette: "success",
|
|
@@ -2393,37 +2788,40 @@ function fl({ upload: e }) {
|
|
|
2393
2788
|
}
|
|
2394
2789
|
);
|
|
2395
2790
|
case "failed":
|
|
2396
|
-
return /* @__PURE__ */ t(
|
|
2791
|
+
return /* @__PURE__ */ t(C, { status: "error", colorPalette: "danger", title: e.message });
|
|
2397
2792
|
}
|
|
2398
2793
|
}
|
|
2399
2794
|
export {
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2795
|
+
Ga as ApiKeysIndex,
|
|
2796
|
+
Bl as ChangeSetLink,
|
|
2797
|
+
Ht as ConfigurationHistory,
|
|
2798
|
+
Wn as ConfigurationInUseError,
|
|
2799
|
+
fn as DRY_RUN_ACTIONS,
|
|
2800
|
+
Xa as DryRunReport,
|
|
2801
|
+
Ba as EntitySetDetail,
|
|
2802
|
+
Wa as EntitySetsIndex,
|
|
2803
|
+
ka as IMPORTHUB_SECTIONS,
|
|
2804
|
+
Wl as IMPORTHUB_SECTION_ICONS,
|
|
2805
|
+
h as IMPORTHUB_UI_NS,
|
|
2806
|
+
fa as ImportDetail,
|
|
2807
|
+
Na as ImportProfileDetail,
|
|
2808
|
+
Ya as ImportProfilesIndex,
|
|
2809
|
+
xa as ImporthubHostProvider,
|
|
2810
|
+
Za as ImporthubStartPage,
|
|
2811
|
+
Ca as ImportsIndex,
|
|
2812
|
+
va as MappingDetail,
|
|
2813
|
+
Bn as MappingTestRefusedError,
|
|
2814
|
+
Ja as MappingsIndex,
|
|
2815
|
+
nt as NameTakenError,
|
|
2816
|
+
wa as ProcessorCatalogue,
|
|
2817
|
+
Xn as ReleaseRefusedError,
|
|
2818
|
+
La as STANDALONE_IMPORTHUB_PATHS,
|
|
2819
|
+
Ua as StartImport,
|
|
2820
|
+
Gn as StartRefusedError,
|
|
2821
|
+
Ea as createConnectImporthubClient,
|
|
2822
|
+
Qa as i18nResources,
|
|
2823
|
+
I as importhubKeys,
|
|
2824
|
+
Re as itemPath,
|
|
2825
|
+
x as useImporthubHost
|
|
2428
2826
|
};
|
|
2429
2827
|
//# sourceMappingURL=index.js.map
|