@vef-framework-react/integration 2.10.0 → 2.13.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.
Files changed (96) 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/components/script-doc/completions.cjs +1 -1
  5. package/dist/cjs/index.cjs +1 -1
  6. package/dist/cjs/pages/code-map-page/columns.cjs +1 -0
  7. package/dist/cjs/pages/code-map-page/entries-editor.cjs +1 -0
  8. package/dist/cjs/pages/code-map-page/form.cjs +1 -0
  9. package/dist/cjs/pages/code-map-page/helpers.cjs +1 -0
  10. package/dist/cjs/pages/code-map-page/index.cjs +1 -0
  11. package/dist/cjs/pages/code-map-page/model.cjs +1 -0
  12. package/dist/cjs/pages/code-map-page/search.cjs +1 -0
  13. package/dist/cjs/pages/index.cjs +1 -1
  14. package/dist/cjs/permissions.cjs +1 -1
  15. package/dist/cjs/types/enums.cjs +1 -1
  16. package/dist/cjs/types/index.cjs +1 -1
  17. package/dist/es/api/code-set-api.js +14 -0
  18. package/dist/es/api/crud-api.js +6 -2
  19. package/dist/es/api/index.js +7 -6
  20. package/dist/es/api/log-api.js +1 -1
  21. package/dist/es/api/ops-api.js +1 -1
  22. package/dist/es/api/query.js +1 -1
  23. package/dist/es/api/stats-api.js +1 -1
  24. package/dist/es/components/auth-params/index.js +1 -1
  25. package/dist/es/components/directory/index.js +1 -1
  26. package/dist/es/components/form-section/index.js +1 -1
  27. package/dist/es/components/format.js +1 -1
  28. package/dist/es/components/index.js +1 -1
  29. package/dist/es/components/json-view/index.js +1 -1
  30. package/dist/es/components/params-editor/index.js +1 -1
  31. package/dist/es/components/script-doc/completions.js +57 -30
  32. package/dist/es/components/script-doc/index.js +1 -1
  33. package/dist/es/components/status/colors.js +1 -1
  34. package/dist/es/components/status/index.js +1 -1
  35. package/dist/es/components/status/labels.js +1 -1
  36. package/dist/es/components/test-connection/index.js +1 -1
  37. package/dist/es/components/wire-trace/index.js +1 -1
  38. package/dist/es/index.js +28 -26
  39. package/dist/es/pages/adapter-page/columns.js +1 -1
  40. package/dist/es/pages/adapter-page/form.js +1 -1
  41. package/dist/es/pages/adapter-page/helpers.js +1 -1
  42. package/dist/es/pages/adapter-page/index.js +1 -1
  43. package/dist/es/pages/adapter-page/search.js +1 -1
  44. package/dist/es/pages/code-map-page/columns.js +63 -0
  45. package/dist/es/pages/code-map-page/entries-editor.js +92 -0
  46. package/dist/es/pages/code-map-page/form.js +192 -0
  47. package/dist/es/pages/code-map-page/helpers.js +17 -0
  48. package/dist/es/pages/code-map-page/index.js +117 -0
  49. package/dist/es/pages/code-map-page/model.js +91 -0
  50. package/dist/es/pages/code-map-page/search.js +38 -0
  51. package/dist/es/pages/console-page/diagnostics.js +1 -1
  52. package/dist/es/pages/console-page/dry-run.js +1 -1
  53. package/dist/es/pages/console-page/index.js +1 -1
  54. package/dist/es/pages/console-page/log.js +1 -1
  55. package/dist/es/pages/console-page/stats.js +1 -1
  56. package/dist/es/pages/contract-page/columns.js +1 -1
  57. package/dist/es/pages/contract-page/form.js +1 -1
  58. package/dist/es/pages/contract-page/helpers.js +1 -1
  59. package/dist/es/pages/contract-page/index.js +1 -1
  60. package/dist/es/pages/contract-page/json-schema-completions.js +1 -1
  61. package/dist/es/pages/contract-page/model.js +1 -1
  62. package/dist/es/pages/contract-page/search.js +1 -1
  63. package/dist/es/pages/index.js +7 -6
  64. package/dist/es/pages/route-page/columns.js +1 -1
  65. package/dist/es/pages/route-page/form.js +1 -1
  66. package/dist/es/pages/route-page/helpers.js +1 -1
  67. package/dist/es/pages/route-page/index.js +1 -1
  68. package/dist/es/pages/route-page/search.js +1 -1
  69. package/dist/es/pages/system-page/columns.js +1 -1
  70. package/dist/es/pages/system-page/form.js +1 -1
  71. package/dist/es/pages/system-page/helpers.js +1 -1
  72. package/dist/es/pages/system-page/index.js +1 -1
  73. package/dist/es/pages/system-page/model.js +1 -1
  74. package/dist/es/pages/system-page/search.js +1 -1
  75. package/dist/es/permissions.js +7 -1
  76. package/dist/es/types/enums.js +7 -3
  77. package/dist/es/types/index.js +3 -3
  78. package/dist/types/api/code-set-api.d.ts +17 -0
  79. package/dist/types/api/crud-api.d.ts +5 -1
  80. package/dist/types/api/index.d.ts +2 -1
  81. package/dist/types/index.d.ts +1 -1
  82. package/dist/types/pages/code-map-page/columns.d.ts +4 -0
  83. package/dist/types/pages/code-map-page/entries-editor.d.ts +6 -0
  84. package/dist/types/pages/code-map-page/form.d.ts +8 -0
  85. package/dist/types/pages/code-map-page/index.d.ts +6 -0
  86. package/dist/types/pages/code-map-page/model.d.ts +63 -0
  87. package/dist/types/pages/code-map-page/props.d.ts +16 -0
  88. package/dist/types/pages/code-map-page/search.d.ts +4 -0
  89. package/dist/types/pages/index.d.ts +2 -0
  90. package/dist/types/pages/system-page/model.d.ts +2 -2
  91. package/dist/types/permissions.d.ts +7 -0
  92. package/dist/types/types/code-map.d.ts +57 -0
  93. package/dist/types/types/code-set.d.ts +29 -0
  94. package/dist/types/types/enums.d.ts +8 -0
  95. package/dist/types/types/index.d.ts +2 -0
  96. package/package.json +4 -4
@@ -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.0 made by Venus | 2026-07-21T07:15:48.580Z */
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.0 made by Venus | 2026-07-21T07:15:48.580Z */
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.0 made by Venus | 2026-07-21T07:15:48.580Z */
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.0 made by Venus | 2026-07-21T07:15:48.580Z */
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.0 made by Venus | 2026-07-21T07:15:48.580Z */
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.0 made by Venus | 2026-07-21T07:15:48.580Z */
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.0 made by Venus | 2026-07-21T07:15:48.580Z */
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.0 made by Venus | 2026-07-21T07:15:48.580Z */
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.0 made by Venus | 2026-07-21T07:15:48.580Z */
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.0 made by Venus | 2026-07-21T07:15:48.580Z */
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.0 made by Venus | 2026-07-21T07:15:48.580Z */
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.0 made by Venus | 2026-07-21T07:15:48.580Z */
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.0 made by Venus | 2026-07-21T07:15:48.580Z */
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.0 made by Venus | 2026-07-21T07:15:48.580Z */
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.0 made by Venus | 2026-07-21T07:15:48.580Z */
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.0 made by Venus | 2026-07-21T07:15:48.580Z */
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.0 made by Venus | 2026-07-21T07:15:48.580Z */
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.0 made by Venus | 2026-07-21T07:15:48.580Z */
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.0 made by Venus | 2026-07-21T07:15:48.580Z */
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.0 made by Venus | 2026-07-21T07:15:48.580Z */
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.0 made by Venus | 2026-07-21T07:15:48.580Z */
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.0 made by Venus | 2026-07-21T07:15:48.580Z */
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
2
  import { ApiClient, ApiResult, 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
  }
@@ -39,4 +39,8 @@ export declare function useAdapterApi(): CrudApi<Adapter, AdapterParams, Adapter
39
39
  * CRUD API for the route resource.
40
40
  */
41
41
  export declare function useRouteApi(): CrudApi<Route, RouteParams, RouteSearch>;
42
+ /**
43
+ * CRUD API for the code map resource.
44
+ */
45
+ export declare function useCodeMapApi(): CrudApi<CodeMap, CodeMapParams, CodeMapSearch>;
42
46
  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"];
@@ -0,0 +1,57 @@
1
+ import { FullAudited } from './base';
2
+ import { UnmappedPolicy } from './enums';
3
+ /**
4
+ * The JSON scalar a code map value may hold. Values keep their JSON type end
5
+ * to end (the server stores and emits them verbatim); lookups compare by
6
+ * normalized string form, so 1 and "1" address the same entry.
7
+ */
8
+ export type CodeValue = string | number | boolean;
9
+ /**
10
+ * One bidirectional mapping pair between the canonical model and one external
11
+ * system's coding. Each side carries one primary value and any number of
12
+ * aliases: lookups match the primary or any alias, translations always emit
13
+ * the opposite side's primary. Mirrors the Go `integration.CodeMapEntry`.
14
+ */
15
+ export interface CodeMapEntry {
16
+ canonical: CodeValue;
17
+ external: CodeValue;
18
+ canonicalAliases?: CodeValue[];
19
+ externalAliases?: CodeValue[];
20
+ }
21
+ /**
22
+ * The value translation of one code set between the host's canonical codes
23
+ * and one external system's codes. Mirrors the Go `integration.CodeMap`.
24
+ */
25
+ export interface CodeMap extends FullAudited {
26
+ systemId: string;
27
+ codeSet: string;
28
+ name: string;
29
+ entries?: CodeMapEntry[];
30
+ onUnmapped: UnmappedPolicy;
31
+ fallbackCanonical?: CodeValue;
32
+ fallbackExternal?: CodeValue;
33
+ isEnabled: boolean;
34
+ }
35
+ /**
36
+ * Create/update parameters for a code map; an omitted policy is reject.
37
+ */
38
+ export interface CodeMapParams {
39
+ id?: string;
40
+ systemId: string;
41
+ codeSet: string;
42
+ name: string;
43
+ entries?: CodeMapEntry[];
44
+ onUnmapped?: UnmappedPolicy;
45
+ fallbackCanonical?: CodeValue;
46
+ fallbackExternal?: CodeValue;
47
+ isEnabled: boolean;
48
+ }
49
+ /**
50
+ * Search parameters for code maps.
51
+ */
52
+ export interface CodeMapSearch {
53
+ systemId?: string;
54
+ codeSet?: string;
55
+ name?: string;
56
+ isEnabled?: boolean;
57
+ }
@@ -0,0 +1,29 @@
1
+ /**
2
+ * One code set the host catalog exposes. Mirrors the Go `mold.CodeSetInfo`.
3
+ */
4
+ export interface CodeSetInfo {
5
+ codeSet: string;
6
+ name: string;
7
+ }
8
+ /**
9
+ * One code within a host code set. Mirrors the Go `mold.CodeInfo`.
10
+ */
11
+ export interface CodeInfo {
12
+ code: string;
13
+ label: string;
14
+ }
15
+ /**
16
+ * The list_code_sets reply. `supported` is false when the host registered no
17
+ * enumerable catalog — the mapping editor then falls back to free-text input.
18
+ */
19
+ export interface CodeSetCatalog {
20
+ supported: boolean;
21
+ codeSets?: CodeSetInfo[];
22
+ }
23
+ /**
24
+ * The list_codes reply for one code set.
25
+ */
26
+ export interface CodeCatalog {
27
+ supported: boolean;
28
+ codes?: CodeInfo[];
29
+ }
@@ -36,6 +36,14 @@ export type InboundAuthScheme = (typeof INBOUND_AUTH_SCHEMES)[number];
36
36
  */
37
37
  export declare const DATA_SOURCE_MODES: readonly ["read_only", "read_write"];
38
38
  export type DataSourceMode = (typeof DATA_SOURCE_MODES)[number];
39
+ /**
40
+ * How a code map answers a lookup no entry matches: reject fails the
41
+ * translation (fail closed, the default), passthrough returns the input
42
+ * unchanged, fallback returns the configured fallback value of the target
43
+ * side.
44
+ */
45
+ export declare const UNMAPPED_POLICIES: readonly ["reject", "passthrough", "fallback"];
46
+ export type UnmappedPolicy = (typeof UNMAPPED_POLICIES)[number];
39
47
  /**
40
48
  * The placeholder the management API returns in place of a stored secret.
41
49
  * Submitting it back on update keeps the existing value unchanged.
@@ -1,5 +1,7 @@
1
1
  export type { Adapter, AdapterParams, AdapterSearch } from './adapter';
2
2
  export type { CreationAudited, FullAudited } from './base';
3
+ export type { CodeMap, CodeMapEntry, CodeMapParams, CodeMapSearch, CodeValue } from './code-map';
4
+ export type { CodeCatalog, CodeInfo, CodeSetCatalog, CodeSetInfo } from './code-set';
3
5
  export type { Contract, ContractParams, ContractSearch, JsonSchema } from './contract';
4
6
  export type { RouteDiagnostics, RouteFinding } from './diagnostics';
5
7
  export * from './enums';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vef-framework-react/integration",
3
- "version": "2.10.0",
3
+ "version": "2.13.0",
4
4
  "private": false,
5
5
  "description": "Integration engine management pages for VEF framework",
6
6
  "keywords": [
@@ -42,9 +42,9 @@
42
42
  "@emotion/react": "^11.14.0",
43
43
  "dayjs": "^1.11.0",
44
44
  "lucide-react": "^1.23.0",
45
- "@vef-framework-react/components": "2.12.0",
46
- "@vef-framework-react/core": "2.12.0",
47
- "@vef-framework-react/shared": "2.12.0"
45
+ "@vef-framework-react/shared": "2.13.0",
46
+ "@vef-framework-react/components": "2.13.0",
47
+ "@vef-framework-react/core": "2.13.0"
48
48
  },
49
49
  "devDependencies": {
50
50
  "react": "^19.2.7"