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