@vef-framework-react/integration 2.10.0 → 2.13.1

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.
Files changed (97) hide show
  1. package/dist/cjs/api/code-set-api.cjs +1 -0
  2. package/dist/cjs/api/crud-api.cjs +1 -1
  3. package/dist/cjs/api/index.cjs +1 -1
  4. package/dist/cjs/api/ops-api.cjs +1 -1
  5. package/dist/cjs/components/script-doc/completions.cjs +1 -1
  6. package/dist/cjs/index.cjs +1 -1
  7. package/dist/cjs/pages/code-map-page/columns.cjs +1 -0
  8. package/dist/cjs/pages/code-map-page/entries-editor.cjs +1 -0
  9. package/dist/cjs/pages/code-map-page/form.cjs +1 -0
  10. package/dist/cjs/pages/code-map-page/helpers.cjs +1 -0
  11. package/dist/cjs/pages/code-map-page/index.cjs +1 -0
  12. package/dist/cjs/pages/code-map-page/model.cjs +1 -0
  13. package/dist/cjs/pages/code-map-page/search.cjs +1 -0
  14. package/dist/cjs/pages/index.cjs +1 -1
  15. package/dist/cjs/permissions.cjs +1 -1
  16. package/dist/cjs/types/enums.cjs +1 -1
  17. package/dist/cjs/types/index.cjs +1 -1
  18. package/dist/es/api/code-set-api.js +14 -0
  19. package/dist/es/api/crud-api.js +17 -7
  20. package/dist/es/api/index.js +7 -6
  21. package/dist/es/api/log-api.js +1 -1
  22. package/dist/es/api/ops-api.js +9 -3
  23. package/dist/es/api/query.js +1 -1
  24. package/dist/es/api/stats-api.js +1 -1
  25. package/dist/es/components/auth-params/index.js +1 -1
  26. package/dist/es/components/directory/index.js +1 -1
  27. package/dist/es/components/form-section/index.js +1 -1
  28. package/dist/es/components/format.js +1 -1
  29. package/dist/es/components/index.js +1 -1
  30. package/dist/es/components/json-view/index.js +1 -1
  31. package/dist/es/components/params-editor/index.js +1 -1
  32. package/dist/es/components/script-doc/completions.js +57 -30
  33. package/dist/es/components/script-doc/index.js +1 -1
  34. package/dist/es/components/status/colors.js +1 -1
  35. package/dist/es/components/status/index.js +1 -1
  36. package/dist/es/components/status/labels.js +1 -1
  37. package/dist/es/components/test-connection/index.js +1 -1
  38. package/dist/es/components/wire-trace/index.js +1 -1
  39. package/dist/es/index.js +28 -26
  40. package/dist/es/pages/adapter-page/columns.js +1 -1
  41. package/dist/es/pages/adapter-page/form.js +1 -1
  42. package/dist/es/pages/adapter-page/helpers.js +1 -1
  43. package/dist/es/pages/adapter-page/index.js +1 -1
  44. package/dist/es/pages/adapter-page/search.js +1 -1
  45. package/dist/es/pages/code-map-page/columns.js +63 -0
  46. package/dist/es/pages/code-map-page/entries-editor.js +92 -0
  47. package/dist/es/pages/code-map-page/form.js +192 -0
  48. package/dist/es/pages/code-map-page/helpers.js +17 -0
  49. package/dist/es/pages/code-map-page/index.js +117 -0
  50. package/dist/es/pages/code-map-page/model.js +91 -0
  51. package/dist/es/pages/code-map-page/search.js +38 -0
  52. package/dist/es/pages/console-page/diagnostics.js +1 -1
  53. package/dist/es/pages/console-page/dry-run.js +1 -1
  54. package/dist/es/pages/console-page/index.js +1 -1
  55. package/dist/es/pages/console-page/log.js +1 -1
  56. package/dist/es/pages/console-page/stats.js +1 -1
  57. package/dist/es/pages/contract-page/columns.js +1 -1
  58. package/dist/es/pages/contract-page/form.js +1 -1
  59. package/dist/es/pages/contract-page/helpers.js +1 -1
  60. package/dist/es/pages/contract-page/index.js +1 -1
  61. package/dist/es/pages/contract-page/json-schema-completions.js +1 -1
  62. package/dist/es/pages/contract-page/model.js +1 -1
  63. package/dist/es/pages/contract-page/search.js +1 -1
  64. package/dist/es/pages/index.js +7 -6
  65. package/dist/es/pages/route-page/columns.js +1 -1
  66. package/dist/es/pages/route-page/form.js +1 -1
  67. package/dist/es/pages/route-page/helpers.js +1 -1
  68. package/dist/es/pages/route-page/index.js +1 -1
  69. package/dist/es/pages/route-page/search.js +1 -1
  70. package/dist/es/pages/system-page/columns.js +1 -1
  71. package/dist/es/pages/system-page/form.js +1 -1
  72. package/dist/es/pages/system-page/helpers.js +1 -1
  73. package/dist/es/pages/system-page/index.js +1 -1
  74. package/dist/es/pages/system-page/model.js +1 -1
  75. package/dist/es/pages/system-page/search.js +1 -1
  76. package/dist/es/permissions.js +7 -1
  77. package/dist/es/types/enums.js +7 -3
  78. package/dist/es/types/index.js +3 -3
  79. package/dist/types/api/code-set-api.d.ts +17 -0
  80. package/dist/types/api/crud-api.d.ts +9 -3
  81. package/dist/types/api/index.d.ts +2 -1
  82. package/dist/types/index.d.ts +1 -1
  83. package/dist/types/pages/code-map-page/columns.d.ts +4 -0
  84. package/dist/types/pages/code-map-page/entries-editor.d.ts +6 -0
  85. package/dist/types/pages/code-map-page/form.d.ts +8 -0
  86. package/dist/types/pages/code-map-page/index.d.ts +6 -0
  87. package/dist/types/pages/code-map-page/model.d.ts +63 -0
  88. package/dist/types/pages/code-map-page/props.d.ts +16 -0
  89. package/dist/types/pages/code-map-page/search.d.ts +4 -0
  90. package/dist/types/pages/index.d.ts +2 -0
  91. package/dist/types/pages/system-page/model.d.ts +2 -2
  92. package/dist/types/permissions.d.ts +7 -0
  93. package/dist/types/types/code-map.d.ts +57 -0
  94. package/dist/types/types/code-set.d.ts +29 -0
  95. package/dist/types/types/enums.d.ts +8 -0
  96. package/dist/types/types/index.d.ts +2 -0
  97. package/package.json +4 -4
@@ -0,0 +1,91 @@
1
+ /*! @vef-framework-react/integration v2.13.1 made by Venus | 2026-07-28T11:21:37.446Z */
2
+ //#region src/pages/code-map-page/model.ts
3
+ var e = /^[A-Z0-9](?:[\w.-]*[A-Z0-9])?$/i, t = {
4
+ reject: "未收录报错",
5
+ passthrough: "透传原值",
6
+ fallback: "返回兜底值"
7
+ }, n = /^-?\d+(?:\.\d+)?$/;
8
+ function r(e) {
9
+ let t = e.trim();
10
+ if (n.test(t)) return Number(t);
11
+ if (t === "true") return !0;
12
+ if (t === "false") return !1;
13
+ if (t.startsWith("\"") && t.endsWith("\"") && t.length >= 2) try {
14
+ let e = JSON.parse(t);
15
+ if (typeof e == "string") return e;
16
+ } catch {}
17
+ return t;
18
+ }
19
+ function i(e) {
20
+ return n.test(e) || e === "true" || e === "false" || e.startsWith("\"") || e !== e.trim();
21
+ }
22
+ function a(e) {
23
+ return e == null ? "" : typeof e == "string" ? i(e) ? JSON.stringify(e) : e : String(e);
24
+ }
25
+ function o(e) {
26
+ return typeof e == "string" ? e : String(e);
27
+ }
28
+ function s(e, t) {
29
+ return [e, ...t ?? []];
30
+ }
31
+ function c(e) {
32
+ let t = [], n = {
33
+ canonical: /* @__PURE__ */ new Map(),
34
+ external: /* @__PURE__ */ new Map()
35
+ };
36
+ for (let [r, i] of e.entries()) u("canonical", i, r, n.canonical, t), u("external", i, r, n.external, t);
37
+ return t;
38
+ }
39
+ var l = {
40
+ canonical: "标准侧",
41
+ external: "外部侧"
42
+ };
43
+ function u(e, t, n, r, i) {
44
+ let a = s(t[e], t[`${e}Aliases`]);
45
+ for (let t of a) {
46
+ if (t === "") {
47
+ i.push(`第 ${n + 1} 行${l[e]}存在空值`);
48
+ continue;
49
+ }
50
+ let a = o(t), s = r.get(a);
51
+ s === void 0 ? r.set(a, n) : s === n ? i.push(`第 ${n + 1} 行${l[e]}值「${a}」重复`) : i.push(`第 ${n + 1} 行${l[e]}值「${a}」与第 ${s + 1} 行重复`);
52
+ }
53
+ }
54
+ var d = {
55
+ codeSet: "",
56
+ name: "",
57
+ entries: [],
58
+ onUnmapped: "reject",
59
+ fallbackCanonical: "",
60
+ fallbackExternal: "",
61
+ isEnabled: !0
62
+ };
63
+ function f(e) {
64
+ return {
65
+ id: e.id,
66
+ systemId: e.systemId,
67
+ codeSet: e.codeSet,
68
+ name: e.name,
69
+ entries: e.entries ?? [],
70
+ onUnmapped: e.onUnmapped || "reject",
71
+ fallbackCanonical: a(e.fallbackCanonical),
72
+ fallbackExternal: a(e.fallbackExternal),
73
+ isEnabled: e.isEnabled
74
+ };
75
+ }
76
+ function p(e) {
77
+ let t = e.onUnmapped === "fallback";
78
+ return {
79
+ id: e.id,
80
+ systemId: e.systemId,
81
+ codeSet: e.codeSet,
82
+ name: e.name,
83
+ entries: e.entries,
84
+ onUnmapped: e.onUnmapped,
85
+ fallbackCanonical: t ? r(e.fallbackCanonical) : void 0,
86
+ fallbackExternal: t ? r(e.fallbackExternal) : void 0,
87
+ isEnabled: e.isEnabled
88
+ };
89
+ }
90
+ //#endregion
91
+ export { d as CODE_MAP_FORM_DEFAULTS, e as CODE_SET_PATTERN, t as UNMAPPED_POLICY_LABELS, p as codeMapFormToParams, f as codeMapToFormValues, a as formatCodeValue, o as normalizeCodeValue, r as parseCodeValue, c as validateCodeMapEntries };
@@ -0,0 +1,38 @@
1
+ /*! @vef-framework-react/integration v2.13.1 made by Venus | 2026-07-28T11:21:37.446Z */
2
+ import { useSystemDirectory as e } from "../../components/directory/index.js";
3
+ import { useFormContext as t } from "@vef-framework-react/components";
4
+ import { Fragment as n, jsx as r, jsxs as i } from "@emotion/react/jsx-runtime";
5
+ //#region src/pages/code-map-page/search.tsx
6
+ function a() {
7
+ let { AppField: a } = t(), o = e();
8
+ return /* @__PURE__ */ i(n, { children: [
9
+ /* @__PURE__ */ r(a, {
10
+ name: "systemId",
11
+ children: (e) => /* @__PURE__ */ r(e.Select, {
12
+ allowClear: !0,
13
+ noWrapper: !0,
14
+ options: o.options,
15
+ placeholder: "所属系统",
16
+ style: { minWidth: 180 }
17
+ })
18
+ }),
19
+ /* @__PURE__ */ r(a, {
20
+ name: "codeSet",
21
+ children: (e) => /* @__PURE__ */ r(e.Input, {
22
+ allowClear: !0,
23
+ noWrapper: !0,
24
+ placeholder: "码集"
25
+ })
26
+ }),
27
+ /* @__PURE__ */ r(a, {
28
+ name: "name",
29
+ children: (e) => /* @__PURE__ */ r(e.Input, {
30
+ allowClear: !0,
31
+ noWrapper: !0,
32
+ placeholder: "名称"
33
+ })
34
+ })
35
+ ] });
36
+ }
37
+ //#endregion
38
+ export { a as CodeMapSearchFields };
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/integration v2.10.0 made by Venus | 2026-07-17T09:23:01.481Z */
1
+ /*! @vef-framework-react/integration v2.13.1 made by Venus | 2026-07-28T11:21:37.446Z */
2
2
  import { useOpsApi as e } from "../../api/ops-api.js";
3
3
  import { FindingKindTag as t } from "../../components/status/index.js";
4
4
  import { useMutation as n } from "@vef-framework-react/core";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/integration v2.10.0 made by Venus | 2026-07-17T09:23:01.481Z */
1
+ /*! @vef-framework-react/integration v2.13.1 made by Venus | 2026-07-28T11:21:37.446Z */
2
2
  import { useOpsApi as e } from "../../api/ops-api.js";
3
3
  import { ParamsEditor as t } from "../../components/params-editor/index.js";
4
4
  import { useContractDirectory as ee, useSystemDirectory as te } from "../../components/directory/index.js";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/integration v2.10.0 made by Venus | 2026-07-17T09:23:01.481Z */
1
+ /*! @vef-framework-react/integration v2.13.1 made by Venus | 2026-07-28T11:21:37.446Z */
2
2
  import { INTEGRATION_PERMISSIONS as e } from "../../permissions.js";
3
3
  import { DiagnosticsPanel as t } from "./diagnostics.js";
4
4
  import { DryRunPanel as n } from "./dry-run.js";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/integration v2.10.0 made by Venus | 2026-07-17T09:23:01.481Z */
1
+ /*! @vef-framework-react/integration v2.13.1 made by Venus | 2026-07-28T11:21:37.446Z */
2
2
  import { useLogApi as e } from "../../api/log-api.js";
3
3
  import { useContractDirectory as t, useSystemDirectory as n } from "../../components/directory/index.js";
4
4
  import { formatTimestamp as r } from "../../components/format.js";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/integration v2.10.0 made by Venus | 2026-07-17T09:23:01.481Z */
1
+ /*! @vef-framework-react/integration v2.13.1 made by Venus | 2026-07-28T11:21:37.446Z */
2
2
  import { useStatsApi as e } from "../../api/stats-api.js";
3
3
  import { FAILURE_KIND_COLORS as t } from "../../components/status/colors.js";
4
4
  import { FAILURE_KINDS as n } from "../../types/enums.js";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/integration v2.10.0 made by Venus | 2026-07-17T09:23:01.481Z */
1
+ /*! @vef-framework-react/integration v2.13.1 made by Venus | 2026-07-28T11:21:37.446Z */
2
2
  import { formatTimestamp as e } from "../../components/format.js";
3
3
  import { EnabledTag as t } from "../../components/status/index.js";
4
4
  import { Flex as n, Stack as r, Tag as i, Text as a, globalCssVars as o } from "@vef-framework-react/components";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/integration v2.10.0 made by Venus | 2026-07-17T09:23:01.481Z */
1
+ /*! @vef-framework-react/integration v2.13.1 made by Venus | 2026-07-28T11:21:37.446Z */
2
2
  import { JSON_SCHEMA_COMPLETIONS as e } from "./json-schema-completions.js";
3
3
  import { Grid as t, Labeled as n, LabelsEditor as r, useFormContext as i } from "@vef-framework-react/components";
4
4
  import { jsx as a, jsxs as o } from "@emotion/react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/integration v2.10.0 made by Venus | 2026-07-17T09:23:01.481Z */
1
+ /*! @vef-framework-react/integration v2.13.1 made by Venus | 2026-07-28T11:21:37.446Z */
2
2
  import { API_PATH as e } from "../../api/query.js";
3
3
  import { formValuesToParams as t } from "./model.js";
4
4
  import { createApiRequest as n, useApiClient as r } from "@vef-framework-react/core";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/integration v2.10.0 made by Venus | 2026-07-17T09:23:01.481Z */
1
+ /*! @vef-framework-react/integration v2.13.1 made by Venus | 2026-07-28T11:21:37.446Z */
2
2
  import { useContractApi as e } from "../../api/crud-api.js";
3
3
  import { INTEGRATION_PERMISSIONS as t } from "../../permissions.js";
4
4
  import { contractColumns as n } from "./columns.js";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/integration v2.10.0 made by Venus | 2026-07-17T09:23:01.481Z */
1
+ /*! @vef-framework-react/integration v2.13.1 made by Venus | 2026-07-28T11:21:37.446Z */
2
2
  //#region src/pages/contract-page/json-schema-completions.ts
3
3
  function e(e, t, n, r) {
4
4
  return {
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/integration v2.10.0 made by Venus | 2026-07-17T09:23:01.481Z */
1
+ /*! @vef-framework-react/integration v2.13.1 made by Venus | 2026-07-28T11:21:37.446Z */
2
2
  //#region src/pages/contract-page/model.ts
3
3
  function e(e) {
4
4
  return e ? JSON.stringify(e, null, 2) : "";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/integration v2.10.0 made by Venus | 2026-07-17T09:23:01.481Z */
1
+ /*! @vef-framework-react/integration v2.13.1 made by Venus | 2026-07-28T11:21:37.446Z */
2
2
  import { useFormContext as e } from "@vef-framework-react/components";
3
3
  import { Fragment as t, jsx as n, jsxs as r } from "@emotion/react/jsx-runtime";
4
4
  //#region src/pages/contract-page/search.tsx
@@ -1,7 +1,8 @@
1
- /*! @vef-framework-react/integration v2.10.0 made by Venus | 2026-07-17T09:23:01.481Z */
1
+ /*! @vef-framework-react/integration v2.13.1 made by Venus | 2026-07-28T11:21:37.446Z */
2
2
  import { IntegrationAdapterPage as e } from "./adapter-page/index.js";
3
- import { IntegrationConsolePage as t } from "./console-page/index.js";
4
- import { IntegrationContractPage as n } from "./contract-page/index.js";
5
- import { IntegrationRoutePage as r } from "./route-page/index.js";
6
- import { IntegrationSystemPage as i } from "./system-page/index.js";
7
- export { e as IntegrationAdapterPage, t as IntegrationConsolePage, n as IntegrationContractPage, r as IntegrationRoutePage, i as IntegrationSystemPage };
3
+ import { IntegrationCodeMapPage as t } from "./code-map-page/index.js";
4
+ import { IntegrationConsolePage as n } from "./console-page/index.js";
5
+ import { IntegrationContractPage as r } from "./contract-page/index.js";
6
+ import { IntegrationRoutePage as i } from "./route-page/index.js";
7
+ import { IntegrationSystemPage as a } from "./system-page/index.js";
8
+ export { e as IntegrationAdapterPage, t as IntegrationCodeMapPage, n as IntegrationConsolePage, r as IntegrationContractPage, i as IntegrationRoutePage, a as IntegrationSystemPage };
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/integration v2.10.0 made by Venus | 2026-07-17T09:23:01.481Z */
1
+ /*! @vef-framework-react/integration v2.13.1 made by Venus | 2026-07-28T11:21:37.446Z */
2
2
  import { formatTimestamp as e } from "../../components/format.js";
3
3
  import { EnabledTag as t } from "../../components/status/index.js";
4
4
  import { Tag as n, Text as r } from "@vef-framework-react/components";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/integration v2.10.0 made by Venus | 2026-07-17T09:23:01.481Z */
1
+ /*! @vef-framework-react/integration v2.13.1 made by Venus | 2026-07-28T11:21:37.446Z */
2
2
  import { useContractDirectory as e, useSystemDirectory as t } from "../../components/directory/index.js";
3
3
  import { Grid as n, useFormContext as r } from "@vef-framework-react/components";
4
4
  import { jsx as i, jsxs as a } from "@emotion/react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/integration v2.10.0 made by Venus | 2026-07-17T09:23:01.481Z */
1
+ /*! @vef-framework-react/integration v2.13.1 made by Venus | 2026-07-28T11:21:37.446Z */
2
2
  import { createCrudKit as e } from "@vef-framework-react/components";
3
3
  //#region src/pages/route-page/helpers.ts
4
4
  var { OperationButtonGroup: t, ActionButtonGroup: n } = e();
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/integration v2.10.0 made by Venus | 2026-07-17T09:23:01.481Z */
1
+ /*! @vef-framework-react/integration v2.13.1 made by Venus | 2026-07-28T11:21:37.446Z */
2
2
  import { useRouteApi as e } from "../../api/crud-api.js";
3
3
  import { useContractDirectory as t, useSystemDirectory as n } from "../../components/directory/index.js";
4
4
  import { INTEGRATION_PERMISSIONS as r } from "../../permissions.js";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/integration v2.10.0 made by Venus | 2026-07-17T09:23:01.481Z */
1
+ /*! @vef-framework-react/integration v2.13.1 made by Venus | 2026-07-28T11:21:37.446Z */
2
2
  import { useSystemDirectory as e } from "../../components/directory/index.js";
3
3
  import { useFormContext as t } from "@vef-framework-react/components";
4
4
  import { Fragment as n, jsx as r, jsxs as i } from "@emotion/react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/integration v2.10.0 made by Venus | 2026-07-17T09:23:01.481Z */
1
+ /*! @vef-framework-react/integration v2.13.1 made by Venus | 2026-07-28T11:21:37.446Z */
2
2
  import { formatTimestamp as e } from "../../components/format.js";
3
3
  import { INBOUND_AUTH_SCHEME_LABELS as t, OUTBOUND_AUTH_SCHEME_LABELS as n } from "../../components/status/labels.js";
4
4
  import { EnabledTag as r } from "../../components/status/index.js";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/integration v2.10.0 made by Venus | 2026-07-17T09:23:01.481Z */
1
+ /*! @vef-framework-react/integration v2.13.1 made by Venus | 2026-07-28T11:21:37.446Z */
2
2
  import { ParamsEditor as e } from "../../components/params-editor/index.js";
3
3
  import { AuthParamsFields as t } from "../../components/auth-params/index.js";
4
4
  import { FormSection as n } from "../../components/form-section/index.js";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/integration v2.10.0 made by Venus | 2026-07-17T09:23:01.481Z */
1
+ /*! @vef-framework-react/integration v2.13.1 made by Venus | 2026-07-28T11:21:37.446Z */
2
2
  import { API_PATH as e } from "../../api/query.js";
3
3
  import { systemFormToParams as t } from "./model.js";
4
4
  import { createApiRequest as n, useApiClient as r } from "@vef-framework-react/core";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/integration v2.10.0 made by Venus | 2026-07-17T09:23:01.481Z */
1
+ /*! @vef-framework-react/integration v2.13.1 made by Venus | 2026-07-28T11:21:37.446Z */
2
2
  import { useSystemApi as e } from "../../api/crud-api.js";
3
3
  import { TestConnectionDrawer as t } from "../../components/test-connection/index.js";
4
4
  import { INTEGRATION_PERMISSIONS as n } from "../../permissions.js";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/integration v2.10.0 made by Venus | 2026-07-17T09:23:01.481Z */
1
+ /*! @vef-framework-react/integration v2.13.1 made by Venus | 2026-07-28T11:21:37.446Z */
2
2
  import { pruneAuthParams as e } from "../../components/auth-params/index.js";
3
3
  import { INBOUND_AUTH_SCHEMES as t, OUTBOUND_AUTH_SCHEMES as n } from "../../types/enums.js";
4
4
  import { INBOUND_AUTH_SCHEME_LABELS as r, OUTBOUND_AUTH_SCHEME_LABELS as i } from "../../components/status/labels.js";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/integration v2.10.0 made by Venus | 2026-07-17T09:23:01.481Z */
1
+ /*! @vef-framework-react/integration v2.13.1 made by Venus | 2026-07-28T11:21:37.446Z */
2
2
  import { useFormContext as e } from "@vef-framework-react/components";
3
3
  import { Fragment as t, jsx as n, jsxs as r } from "@emotion/react/jsx-runtime";
4
4
  //#region src/pages/system-page/search.tsx
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/integration v2.10.0 made by Venus | 2026-07-17T09:23:01.481Z */
1
+ /*! @vef-framework-react/integration v2.13.1 made by Venus | 2026-07-28T11:21:37.446Z */
2
2
  //#region src/permissions.ts
3
3
  var e = {
4
4
  contract: {
@@ -25,6 +25,12 @@ var e = {
25
25
  update: "integration.route.update",
26
26
  delete: "integration.route.delete"
27
27
  },
28
+ codeMap: {
29
+ query: "integration.code_map.query",
30
+ create: "integration.code_map.create",
31
+ update: "integration.code_map.update",
32
+ delete: "integration.code_map.delete"
33
+ },
28
34
  log: { query: "integration.log.query" },
29
35
  ops: {
30
36
  dryRun: "integration.ops.dry_run",
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/integration v2.10.0 made by Venus | 2026-07-17T09:23:01.481Z */
1
+ /*! @vef-framework-react/integration v2.13.1 made by Venus | 2026-07-28T11:21:37.446Z */
2
2
  //#region src/types/enums.ts
3
3
  var e = ["outbound", "inbound"], t = [
4
4
  "input_invalid",
@@ -34,6 +34,10 @@ var e = ["outbound", "inbound"], t = [
34
34
  "query",
35
35
  "signature",
36
36
  "script"
37
- ], a = ["read_only", "read_write"], o = "******";
37
+ ], a = ["read_only", "read_write"], o = [
38
+ "reject",
39
+ "passthrough",
40
+ "fallback"
41
+ ], s = "******";
38
42
  //#endregion
39
- export { a as DATA_SOURCE_MODES, e as DIRECTIONS, t as FAILURE_KINDS, i as INBOUND_AUTH_SCHEMES, o as MASKED_SECRET, r as OUTBOUND_AUTH_SCHEMES, n as ROUTE_FINDING_KINDS };
43
+ export { a as DATA_SOURCE_MODES, e as DIRECTIONS, t as FAILURE_KINDS, i as INBOUND_AUTH_SCHEMES, s as MASKED_SECRET, r as OUTBOUND_AUTH_SCHEMES, n as ROUTE_FINDING_KINDS, o as UNMAPPED_POLICIES };
@@ -1,3 +1,3 @@
1
- /*! @vef-framework-react/integration v2.10.0 made by Venus | 2026-07-17T09:23:01.481Z */
2
- import { DATA_SOURCE_MODES as e, DIRECTIONS as t, FAILURE_KINDS as n, INBOUND_AUTH_SCHEMES as r, MASKED_SECRET as i, OUTBOUND_AUTH_SCHEMES as a, ROUTE_FINDING_KINDS as o } from "./enums.js";
3
- export { e as DATA_SOURCE_MODES, t as DIRECTIONS, n as FAILURE_KINDS, r as INBOUND_AUTH_SCHEMES, i as MASKED_SECRET, a as OUTBOUND_AUTH_SCHEMES, o as ROUTE_FINDING_KINDS };
1
+ /*! @vef-framework-react/integration v2.13.1 made by Venus | 2026-07-28T11:21:37.446Z */
2
+ import { DATA_SOURCE_MODES as e, DIRECTIONS as t, FAILURE_KINDS as n, INBOUND_AUTH_SCHEMES as r, MASKED_SECRET as i, OUTBOUND_AUTH_SCHEMES as a, ROUTE_FINDING_KINDS as o, UNMAPPED_POLICIES as s } from "./enums.js";
3
+ export { e as DATA_SOURCE_MODES, t as DIRECTIONS, n as FAILURE_KINDS, r as INBOUND_AUTH_SCHEMES, i as MASKED_SECRET, a as OUTBOUND_AUTH_SCHEMES, o as ROUTE_FINDING_KINDS, s as UNMAPPED_POLICIES };
@@ -0,0 +1,17 @@
1
+ import { QueryFunction } from '@vef-framework-react/core';
2
+ import { CodeCatalog, CodeSetCatalog } from '../types';
3
+ /**
4
+ * The host canonical code catalog behind the mapping editor: both queries
5
+ * report `supported: false` when the host registered no enumerable catalog
6
+ * (`mold.CodeSetInspector`), and the editor degrades to free-text input.
7
+ */
8
+ export interface CodeSetApi {
9
+ listCodeSets: QueryFunction<CodeSetCatalog, object>;
10
+ listCodes: QueryFunction<CodeCatalog, {
11
+ codeSet: string;
12
+ }>;
13
+ }
14
+ /**
15
+ * Catalog API for the host's canonical code sets.
16
+ */
17
+ export declare function useCodeSetApi(): CodeSetApi;
@@ -1,7 +1,7 @@
1
1
  import { PaginatedQueryParams } from '@vef-framework-react/components';
2
- import { ApiClient, ApiResult, MutationFunction, PaginationResult, QueryFunction } from '@vef-framework-react/core';
2
+ import { ApiClient, ApiResult, BodyEncoding, MutationFunction, PaginationResult, QueryFunction } from '@vef-framework-react/core';
3
3
  import { AnyObject } from '@vef-framework-react/shared';
4
- import { Adapter, AdapterParams, AdapterSearch, Contract, ContractParams, ContractSearch, Route, RouteParams, RouteSearch, System, SystemParams, SystemSearch } from '../types';
4
+ import { Adapter, AdapterParams, AdapterSearch, CodeMap, CodeMapParams, CodeMapSearch, Contract, ContractParams, ContractSearch, Route, RouteParams, RouteSearch, System, SystemParams, SystemSearch } from '../types';
5
5
  interface Identifiable {
6
6
  id: string;
7
7
  }
@@ -21,8 +21,10 @@ export interface CrudApi<TRow extends Identifiable, TParams, TSearch extends Any
21
21
  /**
22
22
  * Build the CRUD query/mutation functions for a resource against the app's
23
23
  * API client. `keyPrefix` namespaces the TanStack Query cache keys.
24
+ * `bodyEncoding` transport-encodes the create/update bodies so a script-carrying
25
+ * resource (adapter, system) survives middleboxes that inspect request payloads.
24
26
  */
25
- export declare function createCrudApi<TRow extends Identifiable, TParams extends object, TSearch extends AnyObject>(apiClient: ApiClient, resource: string, keyPrefix: string): CrudApi<TRow, TParams, TSearch>;
27
+ export declare function createCrudApi<TRow extends Identifiable, TParams extends object, TSearch extends AnyObject>(apiClient: ApiClient, resource: string, keyPrefix: string, bodyEncoding?: BodyEncoding): CrudApi<TRow, TParams, TSearch>;
26
28
  /**
27
29
  * CRUD API for the contract resource.
28
30
  */
@@ -39,4 +41,8 @@ export declare function useAdapterApi(): CrudApi<Adapter, AdapterParams, Adapter
39
41
  * CRUD API for the route resource.
40
42
  */
41
43
  export declare function useRouteApi(): CrudApi<Route, RouteParams, RouteSearch>;
44
+ /**
45
+ * CRUD API for the code map resource.
46
+ */
47
+ export declare function useCodeMapApi(): CrudApi<CodeMap, CodeMapParams, CodeMapSearch>;
42
48
  export {};
@@ -1,4 +1,5 @@
1
- export { createCrudApi, useAdapterApi, useContractApi, useRouteApi, useSystemApi, type CrudApi } from './crud-api';
1
+ export { useCodeSetApi, type CodeSetApi } from './code-set-api';
2
+ export { createCrudApi, useAdapterApi, useCodeMapApi, useContractApi, useRouteApi, useSystemApi, type CrudApi } from './crud-api';
2
3
  export { useLogApi, type LogApi } from './log-api';
3
4
  export { useOpsApi, type OpsApi } from './ops-api';
4
5
  export { API_PATH, splitQueryParams } from './query';
@@ -2,5 +2,5 @@ export * from './api';
2
2
  export * from './components';
3
3
  export * from './pages';
4
4
  export { INTEGRATION_PERMISSIONS } from './permissions';
5
- export type { AdapterPermissionCodes, ContractPermissionCodes, IntegrationPermissions, LogPermissionCodes, OpsPermissionCodes, RoutePermissionCodes, SystemPermissionCodes } from './permissions';
5
+ export type { AdapterPermissionCodes, CodeMapPermissionCodes, ContractPermissionCodes, IntegrationPermissions, LogPermissionCodes, OpsPermissionCodes, RoutePermissionCodes, SystemPermissionCodes } from './permissions';
6
6
  export * from './types';
@@ -0,0 +1,4 @@
1
+ import { TableColumn } from '@vef-framework-react/components';
2
+ import { Directory } from '../../components';
3
+ import { CodeMap, System } from '../../types';
4
+ export declare function buildCodeMapColumns(systemDir: Directory<System>): Array<TableColumn<CodeMap>>;
@@ -0,0 +1,6 @@
1
+ import { CodeMapEntry } from '../../types';
2
+ export interface CodeMapEntriesEditorProps {
3
+ value?: CodeMapEntry[] | null;
4
+ onChange?: (value: CodeMapEntry[]) => void;
5
+ }
6
+ export declare function CodeMapEntriesEditor({ value, onChange }: CodeMapEntriesEditorProps): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { CrudBasicFormScene } from '@vef-framework-react/components';
2
+ export interface CodeMapFormProps {
3
+ scene: CrudBasicFormScene;
4
+ }
5
+ /**
6
+ * The create/update form body for a code map.
7
+ */
8
+ export declare function CodeMapForm({ scene }: CodeMapFormProps): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { IntegrationCodeMapPageProps } from './props';
2
+ /**
3
+ * Full-page code map management: per-system bidirectional value translation
4
+ * of code sets between the canonical model and the external system's coding.
5
+ */
6
+ export declare function IntegrationCodeMapPage({ permissions, columnStorageKey, title }: IntegrationCodeMapPageProps): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,63 @@
1
+ import { CodeMap, CodeMapEntry, CodeMapParams, CodeValue, UnmappedPolicy } from '../../types';
2
+ /**
3
+ * Client mirror of the Go `definition.codeSetPattern`: alphanumeric edges
4
+ * with `_ . -` in between, at most 128 characters.
5
+ */
6
+ export declare const CODE_SET_PATTERN: RegExp;
7
+ /**
8
+ * Display labels for the unmapped policies, shared by the list column and the
9
+ * form select.
10
+ */
11
+ export declare const UNMAPPED_POLICY_LABELS: Record<UnmappedPolicy, string>;
12
+ /**
13
+ * Parse one editor cell into its stored JSON value: bare numbers and
14
+ * true/false become typed literals, a double-quoted text unwraps to the
15
+ * literal string, everything else stays a string — mirroring the server's
16
+ * type-preserving storage.
17
+ */
18
+ export declare function parseCodeValue(text: string): CodeValue;
19
+ /**
20
+ * Format one stored value back into its editor cell form, the inverse of
21
+ * {@link parseCodeValue}.
22
+ */
23
+ export declare function formatCodeValue(value: CodeValue | null | undefined): string;
24
+ /**
25
+ * Fold a value into the lookup key form — the client mirror of the Go
26
+ * `definition.NormalizeCodeValue`, used by duplicate detection.
27
+ */
28
+ export declare function normalizeCodeValue(value: CodeValue): string;
29
+ /**
30
+ * Client mirror of the Go save-time entry validation: no empty values, and
31
+ * per-side uniqueness across primaries and aliases by normalized form (so
32
+ * `1` and `"1"` collide). Returns human-readable issues, empty when valid.
33
+ */
34
+ export declare function validateCodeMapEntries(entries: CodeMapEntry[]): string[];
35
+ /**
36
+ * The code map form's values: fallback values are edited in their display
37
+ * form and parsed into typed values on submit.
38
+ */
39
+ export interface CodeMapFormValues {
40
+ id?: string;
41
+ systemId: string;
42
+ codeSet: string;
43
+ name: string;
44
+ entries: CodeMapEntry[];
45
+ onUnmapped: UnmappedPolicy;
46
+ fallbackCanonical: string;
47
+ fallbackExternal: string;
48
+ isEnabled: boolean;
49
+ }
50
+ /**
51
+ * Defaults for a newly created code map: fail-closed policy, enabled.
52
+ */
53
+ export declare const CODE_MAP_FORM_DEFAULTS: Partial<CodeMapFormValues>;
54
+ /**
55
+ * Project a saved code map into editable form values.
56
+ */
57
+ export declare function codeMapToFormValues(row: CodeMap): CodeMapFormValues;
58
+ /**
59
+ * Collapse the form values into API params: fallback values are submitted
60
+ * only under the fallback policy (the server rejects them elsewhere as dead
61
+ * configuration).
62
+ */
63
+ export declare function codeMapFormToParams(values: CodeMapFormValues): CodeMapParams;
@@ -0,0 +1,16 @@
1
+ import { ReactNode } from 'react';
2
+ import { CodeMapPermissionCodes } from '../../permissions';
3
+ export interface IntegrationCodeMapPageProps {
4
+ /**
5
+ * Override the permission codes the page gates its actions on. Defaults to `INTEGRATION_PERMISSIONS.codeMap`.
6
+ */
7
+ permissions?: Partial<CodeMapPermissionCodes>;
8
+ /**
9
+ * Storage key for the column-settings panel.
10
+ */
11
+ columnStorageKey?: string;
12
+ /**
13
+ * Optional page title rendered above the table.
14
+ */
15
+ title?: ReactNode;
16
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * The inline search fields for the code map list.
3
+ */
4
+ export declare function CodeMapSearchFields(): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,5 +1,7 @@
1
1
  export { IntegrationAdapterPage } from './adapter-page';
2
2
  export type { IntegrationAdapterPageProps } from './adapter-page/props';
3
+ export { IntegrationCodeMapPage } from './code-map-page';
4
+ export type { IntegrationCodeMapPageProps } from './code-map-page/props';
3
5
  export { IntegrationConsolePage, type IntegrationConsolePageProps } from './console-page';
4
6
  export { IntegrationContractPage } from './contract-page';
5
7
  export type { IntegrationContractPageProps } from './contract-page/props';
@@ -76,11 +76,11 @@ export declare const DATA_SOURCE_MODE_OPTIONS: {
76
76
  }[];
77
77
  export declare const OUTBOUND_AUTH_SCHEME_OPTIONS: {
78
78
  label: string;
79
- value: "none" | "query" | "header" | "script" | "signature" | "http_basic" | "bearer";
79
+ value: "none" | "query" | "header" | "script" | "http_basic" | "bearer" | "signature";
80
80
  }[];
81
81
  export declare const INBOUND_AUTH_SCHEME_OPTIONS: {
82
82
  label: string;
83
- value: "none" | "query" | "header" | "script" | "signature" | "http_basic" | "bearer" | "ip";
83
+ value: "none" | "query" | "header" | "script" | "http_basic" | "bearer" | "signature" | "ip";
84
84
  }[];
85
85
  export declare const OUTBOUND_AUTH_HINTS: Record<string, string>;
86
86
  export declare const INBOUND_AUTH_HINTS: Record<string, string>;
@@ -30,6 +30,12 @@ export declare const INTEGRATION_PERMISSIONS: {
30
30
  readonly update: "integration.route.update";
31
31
  readonly delete: "integration.route.delete";
32
32
  };
33
+ readonly codeMap: {
34
+ readonly query: "integration.code_map.query";
35
+ readonly create: "integration.code_map.create";
36
+ readonly update: "integration.code_map.update";
37
+ readonly delete: "integration.code_map.delete";
38
+ };
33
39
  readonly log: {
34
40
  readonly query: "integration.log.query";
35
41
  };
@@ -44,6 +50,7 @@ export type IntegrationPermissions = typeof INTEGRATION_PERMISSIONS;
44
50
  export type ContractPermissionCodes = IntegrationPermissions["contract"];
45
51
  export type SystemPermissionCodes = IntegrationPermissions["system"];
46
52
  export type AdapterPermissionCodes = IntegrationPermissions["adapter"];
53
+ export type CodeMapPermissionCodes = IntegrationPermissions["codeMap"];
47
54
  export type RoutePermissionCodes = IntegrationPermissions["route"];
48
55
  export type LogPermissionCodes = IntegrationPermissions["log"];
49
56
  export type OpsPermissionCodes = IntegrationPermissions["ops"];