@ethisyscore/plugin-ui 1.127.2 → 1.128.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.
- package/dist/components/connectors/index.cjs +305 -19
- package/dist/components/connectors/index.cjs.map +1 -1
- package/dist/components/connectors/index.d.cts +2 -2
- package/dist/components/connectors/index.d.ts +2 -2
- package/dist/components/connectors/index.js +305 -19
- package/dist/components/connectors/index.js.map +1 -1
- package/dist/connector-mappings/index.d.cts +2 -2
- package/dist/connector-mappings/index.d.ts +2 -2
- package/dist/{mappingQueryKeys-T-gPzJk1.d.cts → mappingQueryKeys-DsZJn1sk.d.cts} +22 -3
- package/dist/{mappingQueryKeys-T-gPzJk1.d.ts → mappingQueryKeys-DsZJn1sk.d.ts} +22 -3
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { T as ToolInvoker } from '../mcpService-4h3sKDpW.cjs';
|
|
2
|
-
import { C as ConnectorCanonicalField,
|
|
3
|
-
export { a as CONNECTOR_CONTROL_LABEL, b as ConnectorCanonicalFieldKind, P as PLUGIN_PROVIDER_CONTROL_LABEL,
|
|
2
|
+
import { C as ConnectorCanonicalField, i as MappingCompletenessResult, c as ConnectorMappingSuggestionResult, n as TestToolMappingResult, j as MappingReadiness, h as MappingCompletenessItem, d as ConnectorMappingTranslationEditorProps, g as MappingCompletenessBannerProps } from '../mappingQueryKeys-DsZJn1sk.cjs';
|
|
3
|
+
export { a as CONNECTOR_CONTROL_LABEL, b as ConnectorCanonicalFieldKind, P as PLUGIN_PROVIDER_CONTROL_LABEL, k as PROVIDER_CONTROL_LABEL, l as PROVIDER_OPTION_LABEL, T as TestToolMappingExtractedField, m as TestToolMappingRequest, o as connectorMappingCompletenessQueryKey, p as connectorMappingsQueryKey, q as connectorMappingsRootQueryKey, r as pluginTargetMappingsQueryKey, s as selectIncompleteOperations, t as selectMappingReadiness, u as selectOptionalIncompleteOperations, v as selectRequiredIncompleteOperations } from '../mappingQueryKeys-DsZJn1sk.cjs';
|
|
4
4
|
import { UseMutationResult } from '@tanstack/react-query';
|
|
5
5
|
import 'react';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { T as ToolInvoker } from '../mcpService-4h3sKDpW.js';
|
|
2
|
-
import { C as ConnectorCanonicalField,
|
|
3
|
-
export { a as CONNECTOR_CONTROL_LABEL, b as ConnectorCanonicalFieldKind, P as PLUGIN_PROVIDER_CONTROL_LABEL,
|
|
2
|
+
import { C as ConnectorCanonicalField, i as MappingCompletenessResult, c as ConnectorMappingSuggestionResult, n as TestToolMappingResult, j as MappingReadiness, h as MappingCompletenessItem, d as ConnectorMappingTranslationEditorProps, g as MappingCompletenessBannerProps } from '../mappingQueryKeys-DsZJn1sk.js';
|
|
3
|
+
export { a as CONNECTOR_CONTROL_LABEL, b as ConnectorCanonicalFieldKind, P as PLUGIN_PROVIDER_CONTROL_LABEL, k as PROVIDER_CONTROL_LABEL, l as PROVIDER_OPTION_LABEL, T as TestToolMappingExtractedField, m as TestToolMappingRequest, o as connectorMappingCompletenessQueryKey, p as connectorMappingsQueryKey, q as connectorMappingsRootQueryKey, r as pluginTargetMappingsQueryKey, s as selectIncompleteOperations, t as selectMappingReadiness, u as selectOptionalIncompleteOperations, v as selectRequiredIncompleteOperations } from '../mappingQueryKeys-DsZJn1sk.js';
|
|
4
4
|
import { UseMutationResult } from '@tanstack/react-query';
|
|
5
5
|
import 'react';
|
|
6
6
|
|
|
@@ -287,6 +287,15 @@ declare const CONNECTOR_CONTROL_LABEL = "Connector";
|
|
|
287
287
|
* instruction rather than a name.</p>
|
|
288
288
|
*/
|
|
289
289
|
declare const SUPPRESS_REQUEST_FIELD_VALUE = "(suppress)";
|
|
290
|
+
/**
|
|
291
|
+
* The template half of a save (spec 2026-09-28 sections 1-3), delivered as `onSave`'s optional fourth
|
|
292
|
+
* argument. A member is PRESENT only when its section was shown; `null` means the operator left it
|
|
293
|
+
* empty (the host clears the column).
|
|
294
|
+
*/
|
|
295
|
+
interface ConnectorMappingTranslationExtras {
|
|
296
|
+
requestTemplates?: Record<string, unknown>[] | null;
|
|
297
|
+
responseItemFieldPaths?: Record<string, Record<string, string>> | null;
|
|
298
|
+
}
|
|
290
299
|
interface ConnectorMappingTranslationEditorProps {
|
|
291
300
|
open: boolean;
|
|
292
301
|
/**
|
|
@@ -322,6 +331,14 @@ interface ConnectorMappingTranslationEditorProps {
|
|
|
322
331
|
* `null` if the operator hasn't supplied any. Seeds the "Static request parameters" rows.
|
|
323
332
|
*/
|
|
324
333
|
staticRequestFields: Record<string, string> | null;
|
|
334
|
+
/**
|
|
335
|
+
* Stored request templates, or `null` for none. **Leave `undefined` to hide the "Request templates"
|
|
336
|
+
* section**: a host whose save path does not forward templates must not show an editor whose edits
|
|
337
|
+
* would silently vanish.
|
|
338
|
+
*/
|
|
339
|
+
requestTemplates?: unknown[] | null;
|
|
340
|
+
/** Stored row fields, or `null`. Leave `undefined` to hide the "Row fields" section. Same rule. */
|
|
341
|
+
responseItemFieldPaths?: Record<string, Record<string, string>> | null;
|
|
325
342
|
/**
|
|
326
343
|
* Called with the operator's translation dictionaries when they click Save. Empty inputs are
|
|
327
344
|
* stripped before this fires; if every input on a side was blank, that side is delivered as `null`
|
|
@@ -332,8 +349,10 @@ interface ConnectorMappingTranslationEditorProps {
|
|
|
332
349
|
*
|
|
333
350
|
* `staticRequestFields` carries the constant tool-request parameters (e.g. `{ method: "get" }`);
|
|
334
351
|
* same null-vs-populated semantics — `null` when every static row was left blank.
|
|
352
|
+
*
|
|
353
|
+
* `extras` is passed only when the host showed at least one of the template sections.
|
|
335
354
|
*/
|
|
336
|
-
onSave: (requestFieldMap: Record<string, string> | null, responseFieldPaths: Record<string, string> | null, staticRequestFields: Record<string, string> | null) => void;
|
|
355
|
+
onSave: (requestFieldMap: Record<string, string> | null, responseFieldPaths: Record<string, string> | null, staticRequestFields: Record<string, string> | null, extras?: ConnectorMappingTranslationExtras) => void;
|
|
337
356
|
onCancel: () => void;
|
|
338
357
|
/**
|
|
339
358
|
* Optional. When provided, the editor renders a Test section below the field tables and a "Test
|
|
@@ -395,7 +414,7 @@ interface ConnectorMappingTranslationEditorProps {
|
|
|
395
414
|
* <p>The null tolerance below came from the HOST copy, which was the most hardened of the four.
|
|
396
415
|
* `coreconnect/no-local-mapping-editor` stops a fifth being written.</p>
|
|
397
416
|
*/
|
|
398
|
-
declare function ConnectorMappingTranslationEditorView({ open, operationLabel, toolName, canonicalRequestFields: canonicalRequestFieldsProp, canonicalResponseFields: canonicalResponseFieldsProp, requestFieldMap, responseFieldPaths, staticRequestFields, onSave, onCancel, onTestMapping, onSuggestTranslation, }: ConnectorMappingTranslationEditorProps): react.JSX.Element;
|
|
417
|
+
declare function ConnectorMappingTranslationEditorView({ open, operationLabel, toolName, canonicalRequestFields: canonicalRequestFieldsProp, canonicalResponseFields: canonicalResponseFieldsProp, requestFieldMap, responseFieldPaths, staticRequestFields, requestTemplates, responseItemFieldPaths, onSave, onCancel, onTestMapping, onSuggestTranslation, }: ConnectorMappingTranslationEditorProps): react.JSX.Element;
|
|
399
418
|
|
|
400
419
|
/**
|
|
401
420
|
* Every operation with a gap, required or optional. Use it to decide whether to mount a banner at
|
|
@@ -511,4 +530,4 @@ declare function pluginTargetMappingsQueryKey(moduleKey: string): readonly ["con
|
|
|
511
530
|
*/
|
|
512
531
|
declare function connectorMappingCompletenessQueryKey(connectorId: string | undefined, moduleKey: string): readonly ["connector-mappings", string | undefined, string, "completeness"];
|
|
513
532
|
|
|
514
|
-
export { type ConnectorCanonicalField as C, MappingCompletenessBanner as M, PLUGIN_PROVIDER_CONTROL_LABEL as P, SUPPRESS_REQUEST_FIELD_VALUE as S, type TestToolMappingExtractedField as T, CONNECTOR_CONTROL_LABEL as a, type ConnectorCanonicalFieldKind as b, type ConnectorMappingSuggestionResult as c, type ConnectorMappingTranslationEditorProps as d, ConnectorMappingTranslationEditorView as e, type
|
|
533
|
+
export { type ConnectorCanonicalField as C, MappingCompletenessBanner as M, PLUGIN_PROVIDER_CONTROL_LABEL as P, SUPPRESS_REQUEST_FIELD_VALUE as S, type TestToolMappingExtractedField as T, CONNECTOR_CONTROL_LABEL as a, type ConnectorCanonicalFieldKind as b, type ConnectorMappingSuggestionResult as c, type ConnectorMappingTranslationEditorProps as d, ConnectorMappingTranslationEditorView as e, type ConnectorMappingTranslationExtras as f, type MappingCompletenessBannerProps as g, type MappingCompletenessItem as h, type MappingCompletenessResult as i, type MappingReadiness as j, PROVIDER_CONTROL_LABEL as k, PROVIDER_OPTION_LABEL as l, type TestToolMappingRequest as m, type TestToolMappingResult as n, connectorMappingCompletenessQueryKey as o, connectorMappingsQueryKey as p, connectorMappingsRootQueryKey as q, pluginTargetMappingsQueryKey as r, selectIncompleteOperations as s, selectMappingReadiness as t, selectOptionalIncompleteOperations as u, selectRequiredIncompleteOperations as v, selectRequiredUnmappedOperations as w };
|
|
@@ -287,6 +287,15 @@ declare const CONNECTOR_CONTROL_LABEL = "Connector";
|
|
|
287
287
|
* instruction rather than a name.</p>
|
|
288
288
|
*/
|
|
289
289
|
declare const SUPPRESS_REQUEST_FIELD_VALUE = "(suppress)";
|
|
290
|
+
/**
|
|
291
|
+
* The template half of a save (spec 2026-09-28 sections 1-3), delivered as `onSave`'s optional fourth
|
|
292
|
+
* argument. A member is PRESENT only when its section was shown; `null` means the operator left it
|
|
293
|
+
* empty (the host clears the column).
|
|
294
|
+
*/
|
|
295
|
+
interface ConnectorMappingTranslationExtras {
|
|
296
|
+
requestTemplates?: Record<string, unknown>[] | null;
|
|
297
|
+
responseItemFieldPaths?: Record<string, Record<string, string>> | null;
|
|
298
|
+
}
|
|
290
299
|
interface ConnectorMappingTranslationEditorProps {
|
|
291
300
|
open: boolean;
|
|
292
301
|
/**
|
|
@@ -322,6 +331,14 @@ interface ConnectorMappingTranslationEditorProps {
|
|
|
322
331
|
* `null` if the operator hasn't supplied any. Seeds the "Static request parameters" rows.
|
|
323
332
|
*/
|
|
324
333
|
staticRequestFields: Record<string, string> | null;
|
|
334
|
+
/**
|
|
335
|
+
* Stored request templates, or `null` for none. **Leave `undefined` to hide the "Request templates"
|
|
336
|
+
* section**: a host whose save path does not forward templates must not show an editor whose edits
|
|
337
|
+
* would silently vanish.
|
|
338
|
+
*/
|
|
339
|
+
requestTemplates?: unknown[] | null;
|
|
340
|
+
/** Stored row fields, or `null`. Leave `undefined` to hide the "Row fields" section. Same rule. */
|
|
341
|
+
responseItemFieldPaths?: Record<string, Record<string, string>> | null;
|
|
325
342
|
/**
|
|
326
343
|
* Called with the operator's translation dictionaries when they click Save. Empty inputs are
|
|
327
344
|
* stripped before this fires; if every input on a side was blank, that side is delivered as `null`
|
|
@@ -332,8 +349,10 @@ interface ConnectorMappingTranslationEditorProps {
|
|
|
332
349
|
*
|
|
333
350
|
* `staticRequestFields` carries the constant tool-request parameters (e.g. `{ method: "get" }`);
|
|
334
351
|
* same null-vs-populated semantics — `null` when every static row was left blank.
|
|
352
|
+
*
|
|
353
|
+
* `extras` is passed only when the host showed at least one of the template sections.
|
|
335
354
|
*/
|
|
336
|
-
onSave: (requestFieldMap: Record<string, string> | null, responseFieldPaths: Record<string, string> | null, staticRequestFields: Record<string, string> | null) => void;
|
|
355
|
+
onSave: (requestFieldMap: Record<string, string> | null, responseFieldPaths: Record<string, string> | null, staticRequestFields: Record<string, string> | null, extras?: ConnectorMappingTranslationExtras) => void;
|
|
337
356
|
onCancel: () => void;
|
|
338
357
|
/**
|
|
339
358
|
* Optional. When provided, the editor renders a Test section below the field tables and a "Test
|
|
@@ -395,7 +414,7 @@ interface ConnectorMappingTranslationEditorProps {
|
|
|
395
414
|
* <p>The null tolerance below came from the HOST copy, which was the most hardened of the four.
|
|
396
415
|
* `coreconnect/no-local-mapping-editor` stops a fifth being written.</p>
|
|
397
416
|
*/
|
|
398
|
-
declare function ConnectorMappingTranslationEditorView({ open, operationLabel, toolName, canonicalRequestFields: canonicalRequestFieldsProp, canonicalResponseFields: canonicalResponseFieldsProp, requestFieldMap, responseFieldPaths, staticRequestFields, onSave, onCancel, onTestMapping, onSuggestTranslation, }: ConnectorMappingTranslationEditorProps): react.JSX.Element;
|
|
417
|
+
declare function ConnectorMappingTranslationEditorView({ open, operationLabel, toolName, canonicalRequestFields: canonicalRequestFieldsProp, canonicalResponseFields: canonicalResponseFieldsProp, requestFieldMap, responseFieldPaths, staticRequestFields, requestTemplates, responseItemFieldPaths, onSave, onCancel, onTestMapping, onSuggestTranslation, }: ConnectorMappingTranslationEditorProps): react.JSX.Element;
|
|
399
418
|
|
|
400
419
|
/**
|
|
401
420
|
* Every operation with a gap, required or optional. Use it to decide whether to mount a banner at
|
|
@@ -511,4 +530,4 @@ declare function pluginTargetMappingsQueryKey(moduleKey: string): readonly ["con
|
|
|
511
530
|
*/
|
|
512
531
|
declare function connectorMappingCompletenessQueryKey(connectorId: string | undefined, moduleKey: string): readonly ["connector-mappings", string | undefined, string, "completeness"];
|
|
513
532
|
|
|
514
|
-
export { type ConnectorCanonicalField as C, MappingCompletenessBanner as M, PLUGIN_PROVIDER_CONTROL_LABEL as P, SUPPRESS_REQUEST_FIELD_VALUE as S, type TestToolMappingExtractedField as T, CONNECTOR_CONTROL_LABEL as a, type ConnectorCanonicalFieldKind as b, type ConnectorMappingSuggestionResult as c, type ConnectorMappingTranslationEditorProps as d, ConnectorMappingTranslationEditorView as e, type
|
|
533
|
+
export { type ConnectorCanonicalField as C, MappingCompletenessBanner as M, PLUGIN_PROVIDER_CONTROL_LABEL as P, SUPPRESS_REQUEST_FIELD_VALUE as S, type TestToolMappingExtractedField as T, CONNECTOR_CONTROL_LABEL as a, type ConnectorCanonicalFieldKind as b, type ConnectorMappingSuggestionResult as c, type ConnectorMappingTranslationEditorProps as d, ConnectorMappingTranslationEditorView as e, type ConnectorMappingTranslationExtras as f, type MappingCompletenessBannerProps as g, type MappingCompletenessItem as h, type MappingCompletenessResult as i, type MappingReadiness as j, PROVIDER_CONTROL_LABEL as k, PROVIDER_OPTION_LABEL as l, type TestToolMappingRequest as m, type TestToolMappingResult as n, connectorMappingCompletenessQueryKey as o, connectorMappingsQueryKey as p, connectorMappingsRootQueryKey as q, pluginTargetMappingsQueryKey as r, selectIncompleteOperations as s, selectMappingReadiness as t, selectOptionalIncompleteOperations as u, selectRequiredIncompleteOperations as v, selectRequiredUnmappedOperations as w };
|
package/package.json
CHANGED