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