@vef-framework-react/integration 2.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (172) hide show
  1. package/LICENSE +201 -0
  2. package/dist/cjs/_internal/_rolldown/runtime.cjs +1 -0
  3. package/dist/cjs/api/crud-api.cjs +1 -0
  4. package/dist/cjs/api/index.cjs +1 -0
  5. package/dist/cjs/api/log-api.cjs +1 -0
  6. package/dist/cjs/api/ops-api.cjs +1 -0
  7. package/dist/cjs/api/query.cjs +1 -0
  8. package/dist/cjs/api/stats-api.cjs +1 -0
  9. package/dist/cjs/components/auth-params/index.cjs +1 -0
  10. package/dist/cjs/components/directory/index.cjs +1 -0
  11. package/dist/cjs/components/form-section/index.cjs +1 -0
  12. package/dist/cjs/components/format.cjs +1 -0
  13. package/dist/cjs/components/index.cjs +1 -0
  14. package/dist/cjs/components/json-view/index.cjs +1 -0
  15. package/dist/cjs/components/params-editor/index.cjs +1 -0
  16. package/dist/cjs/components/script-doc/completions.cjs +1 -0
  17. package/dist/cjs/components/script-doc/index.cjs +1 -0
  18. package/dist/cjs/components/status/colors.cjs +1 -0
  19. package/dist/cjs/components/status/index.cjs +1 -0
  20. package/dist/cjs/components/status/labels.cjs +1 -0
  21. package/dist/cjs/components/test-connection/index.cjs +1 -0
  22. package/dist/cjs/components/wire-trace/index.cjs +1 -0
  23. package/dist/cjs/index.cjs +1 -0
  24. package/dist/cjs/pages/adapter-page/columns.cjs +2 -0
  25. package/dist/cjs/pages/adapter-page/form.cjs +1 -0
  26. package/dist/cjs/pages/adapter-page/helpers.cjs +4 -0
  27. package/dist/cjs/pages/adapter-page/index.cjs +1 -0
  28. package/dist/cjs/pages/adapter-page/search.cjs +1 -0
  29. package/dist/cjs/pages/console-page/diagnostics.cjs +1 -0
  30. package/dist/cjs/pages/console-page/dry-run.cjs +1 -0
  31. package/dist/cjs/pages/console-page/index.cjs +1 -0
  32. package/dist/cjs/pages/console-page/log.cjs +1 -0
  33. package/dist/cjs/pages/console-page/stats.cjs +1 -0
  34. package/dist/cjs/pages/contract-page/columns.cjs +1 -0
  35. package/dist/cjs/pages/contract-page/form.cjs +1 -0
  36. package/dist/cjs/pages/contract-page/helpers.cjs +1 -0
  37. package/dist/cjs/pages/contract-page/index.cjs +1 -0
  38. package/dist/cjs/pages/contract-page/json-schema-completions.cjs +1 -0
  39. package/dist/cjs/pages/contract-page/model.cjs +1 -0
  40. package/dist/cjs/pages/contract-page/search.cjs +1 -0
  41. package/dist/cjs/pages/index.cjs +1 -0
  42. package/dist/cjs/pages/route-page/columns.cjs +1 -0
  43. package/dist/cjs/pages/route-page/form.cjs +1 -0
  44. package/dist/cjs/pages/route-page/helpers.cjs +1 -0
  45. package/dist/cjs/pages/route-page/index.cjs +1 -0
  46. package/dist/cjs/pages/route-page/search.cjs +1 -0
  47. package/dist/cjs/pages/system-page/columns.cjs +1 -0
  48. package/dist/cjs/pages/system-page/form.cjs +1 -0
  49. package/dist/cjs/pages/system-page/helpers.cjs +1 -0
  50. package/dist/cjs/pages/system-page/index.cjs +1 -0
  51. package/dist/cjs/pages/system-page/model.cjs +1 -0
  52. package/dist/cjs/pages/system-page/search.cjs +1 -0
  53. package/dist/cjs/permissions.cjs +1 -0
  54. package/dist/cjs/types/enums.cjs +1 -0
  55. package/dist/cjs/types/index.cjs +1 -0
  56. package/dist/es/api/crud-api.js +35 -0
  57. package/dist/es/api/index.js +7 -0
  58. package/dist/es/api/log-api.js +14 -0
  59. package/dist/es/api/ops-api.js +16 -0
  60. package/dist/es/api/query.js +13 -0
  61. package/dist/es/api/stats-api.js +11 -0
  62. package/dist/es/components/auth-params/index.js +198 -0
  63. package/dist/es/components/directory/index.js +35 -0
  64. package/dist/es/components/form-section/index.js +44 -0
  65. package/dist/es/components/format.js +8 -0
  66. package/dist/es/components/index.js +15 -0
  67. package/dist/es/components/json-view/index.js +15 -0
  68. package/dist/es/components/params-editor/index.js +61 -0
  69. package/dist/es/components/script-doc/completions.js +507 -0
  70. package/dist/es/components/script-doc/index.js +108 -0
  71. package/dist/es/components/status/colors.js +25 -0
  72. package/dist/es/components/status/index.js +35 -0
  73. package/dist/es/components/status/labels.js +46 -0
  74. package/dist/es/components/test-connection/index.js +156 -0
  75. package/dist/es/components/wire-trace/index.js +119 -0
  76. package/dist/es/index.js +27 -0
  77. package/dist/es/pages/adapter-page/columns.js +61 -0
  78. package/dist/es/pages/adapter-page/form.js +110 -0
  79. package/dist/es/pages/adapter-page/helpers.js +23 -0
  80. package/dist/es/pages/adapter-page/index.js +120 -0
  81. package/dist/es/pages/adapter-page/search.js +43 -0
  82. package/dist/es/pages/console-page/diagnostics.js +122 -0
  83. package/dist/es/pages/console-page/dry-run.js +327 -0
  84. package/dist/es/pages/console-page/index.js +64 -0
  85. package/dist/es/pages/console-page/log.js +219 -0
  86. package/dist/es/pages/console-page/stats.js +157 -0
  87. package/dist/es/pages/contract-page/columns.js +100 -0
  88. package/dist/es/pages/contract-page/form.js +123 -0
  89. package/dist/es/pages/contract-page/helpers.js +17 -0
  90. package/dist/es/pages/contract-page/index.js +116 -0
  91. package/dist/es/pages/contract-page/json-schema-completions.js +70 -0
  92. package/dist/es/pages/contract-page/model.js +47 -0
  93. package/dist/es/pages/contract-page/search.js +24 -0
  94. package/dist/es/pages/index.js +7 -0
  95. package/dist/es/pages/route-page/columns.js +47 -0
  96. package/dist/es/pages/route-page/form.js +68 -0
  97. package/dist/es/pages/route-page/helpers.js +20 -0
  98. package/dist/es/pages/route-page/index.js +119 -0
  99. package/dist/es/pages/route-page/search.js +27 -0
  100. package/dist/es/pages/system-page/columns.js +101 -0
  101. package/dist/es/pages/system-page/form.js +471 -0
  102. package/dist/es/pages/system-page/helpers.js +17 -0
  103. package/dist/es/pages/system-page/index.js +132 -0
  104. package/dist/es/pages/system-page/model.js +217 -0
  105. package/dist/es/pages/system-page/search.js +24 -0
  106. package/dist/es/permissions.js +37 -0
  107. package/dist/es/types/enums.js +39 -0
  108. package/dist/es/types/index.js +3 -0
  109. package/dist/types/api/crud-api.d.ts +42 -0
  110. package/dist/types/api/index.d.ts +5 -0
  111. package/dist/types/api/log-api.d.ts +10 -0
  112. package/dist/types/api/ops-api.d.ts +17 -0
  113. package/dist/types/api/query.d.ts +16 -0
  114. package/dist/types/api/stats-api.d.ts +12 -0
  115. package/dist/types/components/auth-params/index.d.ts +87 -0
  116. package/dist/types/components/directory/index.d.ts +30 -0
  117. package/dist/types/components/form-section/index.d.ts +22 -0
  118. package/dist/types/components/format.d.ts +4 -0
  119. package/dist/types/components/index.d.ts +13 -0
  120. package/dist/types/components/json-view/index.d.ts +9 -0
  121. package/dist/types/components/params-editor/index.d.ts +21 -0
  122. package/dist/types/components/script-doc/completions.d.ts +45 -0
  123. package/dist/types/components/script-doc/index.d.ts +19 -0
  124. package/dist/types/components/status/colors.d.ts +13 -0
  125. package/dist/types/components/status/index.d.ts +25 -0
  126. package/dist/types/components/status/labels.d.ts +17 -0
  127. package/dist/types/components/test-connection/index.d.ts +12 -0
  128. package/dist/types/components/wire-trace/index.d.ts +9 -0
  129. package/dist/types/index.d.ts +6 -0
  130. package/dist/types/pages/adapter-page/columns.d.ts +7 -0
  131. package/dist/types/pages/adapter-page/form.d.ts +8 -0
  132. package/dist/types/pages/adapter-page/index.d.ts +5 -0
  133. package/dist/types/pages/adapter-page/props.d.ts +16 -0
  134. package/dist/types/pages/adapter-page/search.d.ts +4 -0
  135. package/dist/types/pages/console-page/diagnostics.d.ts +7 -0
  136. package/dist/types/pages/console-page/dry-run.d.ts +10 -0
  137. package/dist/types/pages/console-page/index.d.ts +21 -0
  138. package/dist/types/pages/console-page/log.d.ts +4 -0
  139. package/dist/types/pages/console-page/stats.d.ts +4 -0
  140. package/dist/types/pages/contract-page/columns.d.ts +3 -0
  141. package/dist/types/pages/contract-page/form.d.ts +8 -0
  142. package/dist/types/pages/contract-page/index.d.ts +5 -0
  143. package/dist/types/pages/contract-page/json-schema-completions.d.ts +6 -0
  144. package/dist/types/pages/contract-page/model.d.ts +28 -0
  145. package/dist/types/pages/contract-page/props.d.ts +16 -0
  146. package/dist/types/pages/contract-page/search.d.ts +4 -0
  147. package/dist/types/pages/index.d.ts +9 -0
  148. package/dist/types/pages/route-page/columns.d.ts +4 -0
  149. package/dist/types/pages/route-page/form.d.ts +4 -0
  150. package/dist/types/pages/route-page/index.d.ts +5 -0
  151. package/dist/types/pages/route-page/props.d.ts +16 -0
  152. package/dist/types/pages/route-page/search.d.ts +4 -0
  153. package/dist/types/pages/system-page/columns.d.ts +3 -0
  154. package/dist/types/pages/system-page/form.d.ts +9 -0
  155. package/dist/types/pages/system-page/index.d.ts +2 -0
  156. package/dist/types/pages/system-page/model.d.ts +87 -0
  157. package/dist/types/pages/system-page/props.d.ts +20 -0
  158. package/dist/types/pages/system-page/search.d.ts +4 -0
  159. package/dist/types/permissions.d.ts +49 -0
  160. package/dist/types/types/adapter.d.ts +36 -0
  161. package/dist/types/types/base.d.ts +14 -0
  162. package/dist/types/types/contract.d.ts +47 -0
  163. package/dist/types/types/diagnostics.d.ts +22 -0
  164. package/dist/types/types/enums.d.ts +43 -0
  165. package/dist/types/types/index.d.ts +11 -0
  166. package/dist/types/types/json.d.ts +10 -0
  167. package/dist/types/types/log.d.ts +46 -0
  168. package/dist/types/types/ops.d.ts +90 -0
  169. package/dist/types/types/route.d.ts +32 -0
  170. package/dist/types/types/stats.d.ts +23 -0
  171. package/dist/types/types/system.d.ts +117 -0
  172. package/package.json +66 -0
@@ -0,0 +1,217 @@
1
+ /*! @vef-framework-react/integration v2.10.0 made by Venus | 2026-07-17T09:23:01.481Z */
2
+ import { pruneAuthParams as e } from "../../components/auth-params/index.js";
3
+ import { INBOUND_AUTH_SCHEMES as t, OUTBOUND_AUTH_SCHEMES as n } from "../../types/enums.js";
4
+ import { INBOUND_AUTH_SCHEME_LABELS as r, OUTBOUND_AUTH_SCHEME_LABELS as i } from "../../components/status/labels.js";
5
+ //#region src/pages/system-page/model.ts
6
+ var a = {
7
+ kind: "postgres",
8
+ mode: "read_only",
9
+ host: "",
10
+ port: 0,
11
+ user: "",
12
+ password: "",
13
+ database: "",
14
+ schema: "",
15
+ path: "",
16
+ sslMode: "disable",
17
+ sslRootCert: ""
18
+ };
19
+ function o(e) {
20
+ return e || void 0;
21
+ }
22
+ function s(e) {
23
+ return e || void 0;
24
+ }
25
+ function c(e) {
26
+ let t = e.dataSource, n = e.outboundEnvelope;
27
+ return {
28
+ id: e.id,
29
+ code: e.code,
30
+ name: e.name,
31
+ baseUrl: e.baseUrl ?? "",
32
+ params: e.params ?? {},
33
+ timeoutMs: e.timeoutMs ?? 0,
34
+ isEnabled: e.isEnabled,
35
+ outboundAuth: {
36
+ scheme: e.outboundAuth?.scheme ?? "none",
37
+ params: e.outboundAuth?.params ?? {},
38
+ script: e.outboundAuth?.script ?? ""
39
+ },
40
+ envelopeEnabled: !!n,
41
+ envelope: {
42
+ request: n?.request ?? "",
43
+ response: n?.response ?? ""
44
+ },
45
+ inboundEnabled: !!e.inboundAuth,
46
+ inboundAuth: {
47
+ scheme: e.inboundAuth?.scheme ?? "none",
48
+ params: e.inboundAuth?.params ?? {},
49
+ script: e.inboundAuth?.script ?? ""
50
+ },
51
+ dataSourceEnabled: !!t,
52
+ dataSource: t ? {
53
+ kind: t.kind,
54
+ mode: t.mode ?? "read_only",
55
+ host: t.host ?? "",
56
+ port: t.port ?? 0,
57
+ user: t.user ?? "",
58
+ password: t.password ?? "",
59
+ database: t.database ?? "",
60
+ schema: t.schema ?? "",
61
+ path: t.path ?? "",
62
+ sslMode: t.sslMode ?? "disable",
63
+ sslRootCert: t.sslRootCert ?? ""
64
+ } : { ...a },
65
+ retryEnabled: !!e.retry,
66
+ retry: {
67
+ maxAttempts: e.retry?.maxAttempts ?? 3,
68
+ initialBackoffMs: e.retry?.initialBackoffMs ?? 0,
69
+ maxBackoffMs: e.retry?.maxBackoffMs ?? 0
70
+ }
71
+ };
72
+ }
73
+ function l(t) {
74
+ let n = o(t.envelope.request), r = o(t.envelope.response), i = t.envelopeEnabled && !!(n ?? r);
75
+ return {
76
+ id: t.id,
77
+ code: t.code,
78
+ name: t.name,
79
+ baseUrl: t.baseUrl,
80
+ params: t.params,
81
+ timeoutMs: t.timeoutMs,
82
+ isEnabled: t.isEnabled,
83
+ outboundAuth: {
84
+ scheme: t.outboundAuth.scheme,
85
+ params: e("outbound", t.outboundAuth.scheme, t.outboundAuth.params),
86
+ script: t.outboundAuth.scheme === "script" ? t.outboundAuth.script : void 0
87
+ },
88
+ outboundEnvelope: i ? {
89
+ request: n,
90
+ response: r
91
+ } : null,
92
+ inboundAuth: t.inboundEnabled ? {
93
+ scheme: t.inboundAuth.scheme,
94
+ params: e("inbound", t.inboundAuth.scheme, t.inboundAuth.params),
95
+ script: t.inboundAuth.scheme === "script" ? t.inboundAuth.script : void 0
96
+ } : null,
97
+ dataSource: t.dataSourceEnabled ? {
98
+ kind: t.dataSource.kind,
99
+ mode: t.dataSource.mode === "read_only" ? void 0 : "read_write",
100
+ host: o(t.dataSource.host),
101
+ port: s(t.dataSource.port),
102
+ user: o(t.dataSource.user),
103
+ password: o(t.dataSource.password),
104
+ database: o(t.dataSource.database),
105
+ schema: o(t.dataSource.schema),
106
+ path: o(t.dataSource.path),
107
+ sslMode: o(t.dataSource.sslMode),
108
+ sslRootCert: o(t.dataSource.sslRootCert)
109
+ } : null,
110
+ retry: t.retryEnabled ? {
111
+ maxAttempts: t.retry.maxAttempts,
112
+ initialBackoffMs: s(t.retry.initialBackoffMs),
113
+ maxBackoffMs: s(t.retry.maxBackoffMs)
114
+ } : null
115
+ };
116
+ }
117
+ var u = {
118
+ code: "",
119
+ name: "",
120
+ baseUrl: "",
121
+ params: {},
122
+ timeoutMs: 0,
123
+ isEnabled: !0,
124
+ outboundAuth: {
125
+ scheme: "none",
126
+ params: {},
127
+ script: ""
128
+ },
129
+ envelopeEnabled: !1,
130
+ envelope: {
131
+ request: "",
132
+ response: ""
133
+ },
134
+ inboundEnabled: !1,
135
+ inboundAuth: {
136
+ scheme: "none",
137
+ params: {},
138
+ script: ""
139
+ },
140
+ dataSourceEnabled: !1,
141
+ dataSource: { ...a },
142
+ retryEnabled: !1,
143
+ retry: {
144
+ maxAttempts: 3,
145
+ initialBackoffMs: 0,
146
+ maxBackoffMs: 0
147
+ }
148
+ }, d = [
149
+ {
150
+ label: "PostgreSQL",
151
+ value: "postgres"
152
+ },
153
+ {
154
+ label: "MySQL",
155
+ value: "mysql"
156
+ },
157
+ {
158
+ label: "Oracle",
159
+ value: "oracle"
160
+ },
161
+ {
162
+ label: "SQL Server",
163
+ value: "sqlserver"
164
+ },
165
+ {
166
+ label: "SQLite",
167
+ value: "sqlite"
168
+ }
169
+ ], f = [
170
+ {
171
+ label: "禁用(disable)",
172
+ value: "disable"
173
+ },
174
+ {
175
+ label: "仅加密(require)",
176
+ value: "require"
177
+ },
178
+ {
179
+ label: "验证 CA(verify-ca)",
180
+ value: "verify-ca"
181
+ },
182
+ {
183
+ label: "完整验证(verify-full)",
184
+ value: "verify-full"
185
+ }
186
+ ], p = [{
187
+ label: "只读(sql.queryList)",
188
+ value: "read_only"
189
+ }, {
190
+ label: "读写(sql.execute)",
191
+ value: "read_write"
192
+ }], m = n.map((e) => ({
193
+ label: i[e] ?? e,
194
+ value: e
195
+ })), h = t.map((e) => ({
196
+ label: r[e] ?? e,
197
+ value: e
198
+ })), g = {
199
+ none: "不附加任何凭证",
200
+ http_basic: "以 Authorization: Basic 随请求发送",
201
+ bearer: "以 Authorization: Bearer 随请求发送",
202
+ header: "把配置的每一组名值对作为请求头附加",
203
+ query: "把配置的每一组名值对作为查询参数附加",
204
+ signature: "按框架 HMAC 约定签名(x-timestamp / x-nonce / x-signature)",
205
+ script: "在下方脚本中自定义凭据逻辑(签名、动态令牌等),返回需追加的凭据请求头"
206
+ }, _ = {
207
+ none: "公开:任何来源都可投递,请谨慎使用",
208
+ ip: "仅放行白名单中的来源地址",
209
+ http_basic: "校验 Authorization: Basic 凭证",
210
+ bearer: "校验 Authorization: Bearer 令牌",
211
+ header: "请求头须携带全部配置项且逐一匹配",
212
+ query: "查询参数须携带全部配置项且逐一匹配",
213
+ signature: "按框架 HMAC 约定验签,带时间戳与随机数防重放",
214
+ script: "在下方脚本中编写验证逻辑,返回真值即放行"
215
+ };
216
+ //#endregion
217
+ export { p as DATA_SOURCE_MODE_OPTIONS, d as DB_KIND_OPTIONS, _ as INBOUND_AUTH_HINTS, h as INBOUND_AUTH_SCHEME_OPTIONS, g as OUTBOUND_AUTH_HINTS, m as OUTBOUND_AUTH_SCHEME_OPTIONS, f as SSL_MODE_OPTIONS, u as SYSTEM_FORM_DEFAULTS, l as systemFormToParams, c as systemToFormValues };
@@ -0,0 +1,24 @@
1
+ /*! @vef-framework-react/integration v2.10.0 made by Venus | 2026-07-17T09:23:01.481Z */
2
+ import { useFormContext as e } from "@vef-framework-react/components";
3
+ import { Fragment as t, jsx as n, jsxs as r } from "@emotion/react/jsx-runtime";
4
+ //#region src/pages/system-page/search.tsx
5
+ function i() {
6
+ let { AppField: i } = e();
7
+ return /* @__PURE__ */ r(t, { children: [/* @__PURE__ */ n(i, {
8
+ name: "code",
9
+ children: (e) => /* @__PURE__ */ n(e.Input, {
10
+ allowClear: !0,
11
+ noWrapper: !0,
12
+ placeholder: "系统编码"
13
+ })
14
+ }), /* @__PURE__ */ n(i, {
15
+ name: "name",
16
+ children: (e) => /* @__PURE__ */ n(e.Input, {
17
+ allowClear: !0,
18
+ noWrapper: !0,
19
+ placeholder: "系统名称"
20
+ })
21
+ })] });
22
+ }
23
+ //#endregion
24
+ export { i as SystemSearchFields };
@@ -0,0 +1,37 @@
1
+ /*! @vef-framework-react/integration v2.10.0 made by Venus | 2026-07-17T09:23:01.481Z */
2
+ //#region src/permissions.ts
3
+ var e = {
4
+ contract: {
5
+ query: "integration.contract.query",
6
+ create: "integration.contract.create",
7
+ update: "integration.contract.update",
8
+ delete: "integration.contract.delete"
9
+ },
10
+ system: {
11
+ query: "integration.system.query",
12
+ create: "integration.system.create",
13
+ update: "integration.system.update",
14
+ delete: "integration.system.delete"
15
+ },
16
+ adapter: {
17
+ query: "integration.adapter.query",
18
+ create: "integration.adapter.create",
19
+ update: "integration.adapter.update",
20
+ delete: "integration.adapter.delete"
21
+ },
22
+ route: {
23
+ query: "integration.route.query",
24
+ create: "integration.route.create",
25
+ update: "integration.route.update",
26
+ delete: "integration.route.delete"
27
+ },
28
+ log: { query: "integration.log.query" },
29
+ ops: {
30
+ dryRun: "integration.ops.dry_run",
31
+ dryRunInbound: "integration.ops.dry_run_inbound",
32
+ testConnection: "integration.ops.test_connection",
33
+ diagnoseRoutes: "integration.ops.diagnose_routes"
34
+ }
35
+ };
36
+ //#endregion
37
+ export { e as INTEGRATION_PERMISSIONS };
@@ -0,0 +1,39 @@
1
+ /*! @vef-framework-react/integration v2.10.0 made by Venus | 2026-07-17T09:23:01.481Z */
2
+ //#region src/types/enums.ts
3
+ var e = ["outbound", "inbound"], t = [
4
+ "input_invalid",
5
+ "output_invalid",
6
+ "upstream",
7
+ "transport",
8
+ "timeout",
9
+ "canceled",
10
+ "script",
11
+ "config",
12
+ "auth",
13
+ "handler"
14
+ ], n = [
15
+ "dangling_adapter",
16
+ "wildcard_gap",
17
+ "disabled_system",
18
+ "disabled_contract",
19
+ "uncovered_contract"
20
+ ], r = [
21
+ "none",
22
+ "http_basic",
23
+ "bearer",
24
+ "header",
25
+ "query",
26
+ "signature",
27
+ "script"
28
+ ], i = [
29
+ "none",
30
+ "ip",
31
+ "http_basic",
32
+ "bearer",
33
+ "header",
34
+ "query",
35
+ "signature",
36
+ "script"
37
+ ], a = ["read_only", "read_write"], o = "******";
38
+ //#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 };
@@ -0,0 +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 };
@@ -0,0 +1,42 @@
1
+ import { PaginatedQueryParams } from '@vef-framework-react/components';
2
+ import { ApiClient, ApiResult, MutationFunction, PaginationResult, QueryFunction } from '@vef-framework-react/core';
3
+ import { AnyObject } from '@vef-framework-react/shared';
4
+ import { Adapter, AdapterParams, AdapterSearch, Contract, ContractParams, ContractSearch, Route, RouteParams, RouteSearch, System, SystemParams, SystemSearch } from '../types';
5
+ interface Identifiable {
6
+ id: string;
7
+ }
8
+ /**
9
+ * The query and mutation functions for one CRUD resource, shaped to plug
10
+ * straight into `CrudPage`: `findPage` is its `queryFn`, `create`/`update`
11
+ * its `formMutationFns`, and `remove`/`removeMany` its delete mutation fns
12
+ * (both receive the row objects, mirroring the framework's CRUD contract).
13
+ */
14
+ export interface CrudApi<TRow extends Identifiable, TParams, TSearch extends AnyObject> {
15
+ findPage: QueryFunction<PaginationResult<TRow>, PaginatedQueryParams<TSearch>>;
16
+ create: MutationFunction<ApiResult<unknown>, TParams>;
17
+ update: MutationFunction<ApiResult<unknown>, TParams>;
18
+ remove: MutationFunction<ApiResult<unknown>, TRow>;
19
+ removeMany: MutationFunction<ApiResult<unknown>, TRow[]>;
20
+ }
21
+ /**
22
+ * Build the CRUD query/mutation functions for a resource against the app's
23
+ * API client. `keyPrefix` namespaces the TanStack Query cache keys.
24
+ */
25
+ export declare function createCrudApi<TRow extends Identifiable, TParams extends object, TSearch extends AnyObject>(apiClient: ApiClient, resource: string, keyPrefix: string): CrudApi<TRow, TParams, TSearch>;
26
+ /**
27
+ * CRUD API for the contract resource.
28
+ */
29
+ export declare function useContractApi(): CrudApi<Contract, ContractParams, ContractSearch>;
30
+ /**
31
+ * CRUD API for the system resource.
32
+ */
33
+ export declare function useSystemApi(): CrudApi<System, SystemParams, SystemSearch>;
34
+ /**
35
+ * CRUD API for the adapter resource.
36
+ */
37
+ export declare function useAdapterApi(): CrudApi<Adapter, AdapterParams, AdapterSearch>;
38
+ /**
39
+ * CRUD API for the route resource.
40
+ */
41
+ export declare function useRouteApi(): CrudApi<Route, RouteParams, RouteSearch>;
42
+ export {};
@@ -0,0 +1,5 @@
1
+ export { createCrudApi, useAdapterApi, useContractApi, useRouteApi, useSystemApi, type CrudApi } from './crud-api';
2
+ export { useLogApi, type LogApi } from './log-api';
3
+ export { useOpsApi, type OpsApi } from './ops-api';
4
+ export { API_PATH, splitQueryParams } from './query';
5
+ export { useStatsApi, type StatsApi } from './stats-api';
@@ -0,0 +1,10 @@
1
+ import { PaginatedQueryParams } from '@vef-framework-react/components';
2
+ import { PaginationResult, QueryFunction } from '@vef-framework-react/core';
3
+ import { InvocationLog, LogSearch } from '../types';
4
+ /**
5
+ * The read-only query functions for the invocation log resource.
6
+ */
7
+ export interface LogApi {
8
+ findPage: QueryFunction<PaginationResult<InvocationLog>, PaginatedQueryParams<LogSearch>>;
9
+ }
10
+ export declare function useLogApi(): LogApi;
@@ -0,0 +1,17 @@
1
+ import { MutationFunction } from '@vef-framework-react/core';
2
+ import { ConnectionCheck, DryRunInboundParams, DryRunParams, DryRunResult, InboundDryRunResult, RouteDiagnostics, TestConnectionParams } from '../types';
3
+ /**
4
+ * The operational actions of the integration engine: the dry-run consoles,
5
+ * the connection probe, and the routing diagnosis. Each is a mutation because
6
+ * it is triggered imperatively and its calls have real effects.
7
+ */
8
+ export interface OpsApi {
9
+ dryRun: MutationFunction<DryRunResult, DryRunParams>;
10
+ dryRunInbound: MutationFunction<InboundDryRunResult, DryRunInboundParams>;
11
+ testConnection: MutationFunction<ConnectionCheck, TestConnectionParams>;
12
+ diagnoseRoutes: MutationFunction<RouteDiagnostics, void>;
13
+ }
14
+ /**
15
+ * Operational API for the integration engine.
16
+ */
17
+ export declare function useOpsApi(): OpsApi;
@@ -0,0 +1,16 @@
1
+ import { PaginatedQueryParams, SYMBOL_PAGINATION } from '@vef-framework-react/components';
2
+ import { PaginationParams } from '@vef-framework-react/core';
3
+ import { AnyObject } from '@vef-framework-react/shared';
4
+ /**
5
+ * The framework RPC endpoint every management call posts to.
6
+ */
7
+ export declare const API_PATH = "/api";
8
+ /**
9
+ * Split ProTable's symbol-keyed query params into the plain search params and
10
+ * the pagination metadata. The sort symbol is left on `params`; JSON
11
+ * serialization drops it, so it never reaches the wire.
12
+ */
13
+ export declare function splitQueryParams<TSearch extends AnyObject>(queryParams: PaginatedQueryParams<TSearch>): {
14
+ params: Omit<PaginatedQueryParams<TSearch>, typeof SYMBOL_PAGINATION>;
15
+ pagination: PaginationParams | undefined;
16
+ };
@@ -0,0 +1,12 @@
1
+ import { QueryFunction } from '@vef-framework-react/core';
2
+ import { IntegrationStatsResult } from '../types';
3
+ /**
4
+ * The query function for per-node integration invocation statistics.
5
+ */
6
+ export interface StatsApi {
7
+ getStats: QueryFunction<IntegrationStatsResult>;
8
+ }
9
+ /**
10
+ * Statistics API, served by the monitor resource.
11
+ */
12
+ export declare function useStatsApi(): StatsApi;
@@ -0,0 +1,87 @@
1
+ import { Direction } from '../../types';
2
+ /**
3
+ * One dedicated input of a fixed-parameter auth scheme.
4
+ */
5
+ export interface AuthParamFieldSpec {
6
+ /**
7
+ * The key written into the auth config's params record.
8
+ */
9
+ name: string;
10
+ /**
11
+ * The input label.
12
+ */
13
+ label: string;
14
+ /**
15
+ * Concise format hint shown while the input is empty.
16
+ */
17
+ placeholder?: string;
18
+ /**
19
+ * Secondary line rendered under the input.
20
+ */
21
+ hint?: string;
22
+ /**
23
+ * Encrypted at rest; the management API masks it back as `******`.
24
+ */
25
+ sensitive?: boolean;
26
+ /**
27
+ * Render a textarea with this many rows instead of a single-line input.
28
+ */
29
+ rows?: number;
30
+ /**
31
+ * Grid span out of 24, defaults to 12.
32
+ */
33
+ span?: number;
34
+ }
35
+ /**
36
+ * How a scheme's parameters are edited: no parameters at all, a dedicated
37
+ * input per declared parameter, or a free name → value pair list for schemes
38
+ * whose parameter names are user-defined.
39
+ */
40
+ export type AuthParamsSpec = {
41
+ kind: "none";
42
+ } | {
43
+ kind: "fixed";
44
+ fields: AuthParamFieldSpec[];
45
+ } | {
46
+ kind: "pairs";
47
+ label: string;
48
+ hint?: string;
49
+ namePlaceholder?: string;
50
+ valuePlaceholder?: string;
51
+ };
52
+ /**
53
+ * Resolve the parameter shape of a scheme. Custom schemes registered on the
54
+ * backend are unknown here, so they keep the free pair list.
55
+ */
56
+ export declare function resolveAuthParamsSpec(direction: Direction, scheme: string): AuthParamsSpec;
57
+ /**
58
+ * Collapse a params record to what the selected scheme actually declares:
59
+ * fixed schemes keep only their declared, non-blank fields (dropping keys left
60
+ * over from a previously selected scheme), `none` submits nothing, and pair
61
+ * schemes pass through untouched.
62
+ */
63
+ export declare function pruneAuthParams(direction: Direction, scheme: string, params: Record<string, string>): Record<string, string>;
64
+ export interface AuthParamsFieldsProps {
65
+ /**
66
+ * Which flow the scheme belongs to; decides the spec vocabulary.
67
+ */
68
+ direction: Direction;
69
+ /**
70
+ * The selected scheme name.
71
+ */
72
+ scheme: string;
73
+ /**
74
+ * The auth config's params record.
75
+ */
76
+ value: Record<string, string> | undefined;
77
+ /**
78
+ * Emitted with the next record on every edit.
79
+ */
80
+ onChange: (value: Record<string, string>) => void;
81
+ }
82
+ /**
83
+ * The scheme-aware auth parameter editor: dedicated inputs for schemes with a
84
+ * fixed parameter set, the free pair list only where parameter names are
85
+ * user-defined, and nothing at all for `none`.
86
+ */
87
+ export declare function AuthParamsFields({ direction, scheme, value, onChange }: AuthParamsFieldsProps): import("@emotion/react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,30 @@
1
+ import { Contract, ContractSearch, System } from '../../types';
2
+ interface DirectoryEntry {
3
+ id: string;
4
+ code: string;
5
+ name: string;
6
+ }
7
+ /**
8
+ * A loaded set of definitions, ready for select options and id→entry lookups.
9
+ */
10
+ export interface Directory<T extends DirectoryEntry> {
11
+ items: T[];
12
+ byId: Map<string, T>;
13
+ options: Array<{
14
+ label: string;
15
+ value: string;
16
+ }>;
17
+ loading: boolean;
18
+ }
19
+ /**
20
+ * All systems, for select options and id→system lookups.
21
+ */
22
+ export declare function useSystemDirectory(): Directory<System>;
23
+ /**
24
+ * Contracts for select options and id→contract lookups, optionally narrowed
25
+ * by search filters — a business-side picker passes `{ labels: {...} }` to
26
+ * offer only the contracts tagged for its scene. Pass a stable reference
27
+ * (module constant or memoized), not a fresh object literal each render.
28
+ */
29
+ export declare function useContractDirectory(search?: ContractSearch): Directory<Contract>;
30
+ export {};
@@ -0,0 +1,22 @@
1
+ import { ReactNode } from 'react';
2
+ export interface FormSectionProps {
3
+ /**
4
+ * Section name shown in the header.
5
+ */
6
+ title: ReactNode;
7
+ /**
8
+ * One-line explanation of what the section configures, under the title.
9
+ */
10
+ description?: ReactNode;
11
+ /**
12
+ * Right slot of the header — typically the switch enabling the section.
13
+ */
14
+ extra?: ReactNode;
15
+ children?: ReactNode;
16
+ }
17
+ /**
18
+ * A titled group of form fields. Optional capabilities put their enable switch
19
+ * in `extra` and render children only while enabled, so the header row alone
20
+ * tells which capabilities a record has.
21
+ */
22
+ export declare function FormSection({ title, description, extra, children }: FormSectionProps): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Format an ISO timestamp for a table cell, or a dash when empty.
3
+ */
4
+ export declare function formatTimestamp(value?: string | null): string;
@@ -0,0 +1,13 @@
1
+ export { AuthParamsFields, pruneAuthParams, resolveAuthParamsSpec, type AuthParamFieldSpec, type AuthParamsFieldsProps, type AuthParamsSpec } from './auth-params';
2
+ export { useContractDirectory, useSystemDirectory, type Directory } from './directory';
3
+ export { FormSection, type FormSectionProps } from './form-section';
4
+ export { formatTimestamp } from './format';
5
+ export { JsonView, type JsonViewProps } from './json-view';
6
+ export { ParamsEditor, type ParamsEditorProps } from './params-editor';
7
+ export { ScriptDocLabel, type ScriptDocLabelProps } from './script-doc';
8
+ export { adapterScriptDoc, ENVELOPE_REQUEST_SCRIPT_DOC, ENVELOPE_RESPONSE_SCRIPT_DOC, INBOUND_AUTH_SCRIPT_DOC, OUTBOUND_AUTH_SCRIPT_DOC, type ScriptDoc } from './script-doc/completions';
9
+ export { DirectionTag, EnabledTag, FailureKindTag, FindingKindTag } from './status';
10
+ export { DIRECTION_COLORS, FAILURE_KIND_COLORS, ROUTE_FINDING_SEVERITY } from './status/colors';
11
+ export { DIRECTION_LABELS, DIRECTION_OPTIONS, FAILURE_KIND_LABELS, INBOUND_AUTH_SCHEME_LABELS, OUTBOUND_AUTH_SCHEME_LABELS, ROUTE_FINDING_KIND_LABELS } from './status/labels';
12
+ export { TestConnectionDrawer, type TestConnectionDrawerProps } from './test-connection';
13
+ export { WireTraceTimeline } from './wire-trace';
@@ -0,0 +1,9 @@
1
+ import { JsonValue } from '../../types';
2
+ export interface JsonViewProps {
3
+ value: JsonValue;
4
+ height?: number;
5
+ }
6
+ /**
7
+ * A read-only, pretty-printed JSON view built on the code editor.
8
+ */
9
+ export declare function JsonView({ value, height }: JsonViewProps): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,21 @@
1
+ export interface ParamsEditorProps {
2
+ value?: Record<string, string> | null;
3
+ onChange?: (value: Record<string, string>) => void;
4
+ /**
5
+ * Column header for the key column, defaults to 参数名.
6
+ */
7
+ nameTitle?: string;
8
+ /**
9
+ * Column header for the value column, defaults to 参数值.
10
+ */
11
+ valueTitle?: string;
12
+ /**
13
+ * Placeholder of the key editor, defaults to the key column header.
14
+ */
15
+ namePlaceholder?: string;
16
+ /**
17
+ * Placeholder of the value editor, defaults to the value column header.
18
+ */
19
+ valuePlaceholder?: string;
20
+ }
21
+ export declare function ParamsEditor({ value, onChange, nameTitle, valueTitle, namePlaceholder, valuePlaceholder }: ParamsEditorProps): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,45 @@
1
+ import { CompletionEntry } from '@vef-framework-react/components';
2
+ import { Direction } from '../../types';
3
+ /**
4
+ * One script surface's documentation: the contract in one line plus the
5
+ * bindings and libraries available to it. `entries` doubles as the editor's
6
+ * completion catalog, so the doc popover and the autocomplete never drift.
7
+ */
8
+ export interface ScriptDoc {
9
+ /**
10
+ * What the script receives and what its return value means.
11
+ */
12
+ summary: string;
13
+ /**
14
+ * The surface's bindings and libraries.
15
+ */
16
+ entries: CompletionEntry[];
17
+ }
18
+ /**
19
+ * Outbound adapter scripts.
20
+ */
21
+ export declare const OUTBOUND_ADAPTER_SCRIPT_DOC: ScriptDoc;
22
+ /**
23
+ * Inbound adapter scripts.
24
+ */
25
+ export declare const INBOUND_ADAPTER_SCRIPT_DOC: ScriptDoc;
26
+ /**
27
+ * System-level envelope request scripts.
28
+ */
29
+ export declare const ENVELOPE_REQUEST_SCRIPT_DOC: ScriptDoc;
30
+ /**
31
+ * System-level envelope response scripts.
32
+ */
33
+ export declare const ENVELOPE_RESPONSE_SCRIPT_DOC: ScriptDoc;
34
+ /**
35
+ * Outbound auth scripts.
36
+ */
37
+ export declare const OUTBOUND_AUTH_SCRIPT_DOC: ScriptDoc;
38
+ /**
39
+ * Inbound auth verification scripts.
40
+ */
41
+ export declare const INBOUND_AUTH_SCRIPT_DOC: ScriptDoc;
42
+ /**
43
+ * The adapter-script documentation for a flow direction.
44
+ */
45
+ export declare function adapterScriptDoc(direction: Direction): ScriptDoc;