@ethisyscore/plugin-ui 1.131.1 → 1.133.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/connectors/index.cjs +46 -7
- 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 +46 -7
- package/dist/components/connectors/index.js.map +1 -1
- package/dist/connector-mappings/index.cjs +12 -3
- package/dist/connector-mappings/index.cjs.map +1 -1
- package/dist/connector-mappings/index.d.cts +8 -2
- package/dist/connector-mappings/index.d.ts +8 -2
- package/dist/connector-mappings/index.js +12 -3
- package/dist/connector-mappings/index.js.map +1 -1
- package/dist/{mappingQueryKeys-DsZJn1sk.d.cts → mappingQueryKeys-_hEc0heh.d.cts} +12 -1
- package/dist/{mappingQueryKeys-DsZJn1sk.d.ts → mappingQueryKeys-_hEc0heh.d.ts} +12 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { T as ToolInvoker } from '../mcpService-4h3sKDpW.cjs';
|
|
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-
|
|
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-
|
|
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-_hEc0heh.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-_hEc0heh.cjs';
|
|
4
4
|
import { UseMutationResult } from '@tanstack/react-query';
|
|
5
5
|
import 'react';
|
|
6
6
|
|
|
@@ -206,6 +206,12 @@ interface TestMappingBody {
|
|
|
206
206
|
/** The DRAFT static params, so the dry-run exercises the discriminator the operator is testing. */
|
|
207
207
|
staticRequestFields: Record<string, string> | null;
|
|
208
208
|
sampleArgs: Record<string, unknown>;
|
|
209
|
+
/**
|
|
210
|
+
* The DRAFT request templates and row fields, same names and shapes as the mapping PUT. Optional:
|
|
211
|
+
* absent means not sent, so the dry-run uses the stored ones.
|
|
212
|
+
*/
|
|
213
|
+
requestTemplates?: Record<string, unknown>[] | null;
|
|
214
|
+
responseItemFieldPaths?: Record<string, Record<string, string>> | null;
|
|
209
215
|
}
|
|
210
216
|
/** A connector as `settings:list-connectors` projects it. */
|
|
211
217
|
interface ConnectorSummary {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { T as ToolInvoker } from '../mcpService-4h3sKDpW.js';
|
|
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-
|
|
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-
|
|
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-_hEc0heh.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-_hEc0heh.js';
|
|
4
4
|
import { UseMutationResult } from '@tanstack/react-query';
|
|
5
5
|
import 'react';
|
|
6
6
|
|
|
@@ -206,6 +206,12 @@ interface TestMappingBody {
|
|
|
206
206
|
/** The DRAFT static params, so the dry-run exercises the discriminator the operator is testing. */
|
|
207
207
|
staticRequestFields: Record<string, string> | null;
|
|
208
208
|
sampleArgs: Record<string, unknown>;
|
|
209
|
+
/**
|
|
210
|
+
* The DRAFT request templates and row fields, same names and shapes as the mapping PUT. Optional:
|
|
211
|
+
* absent means not sent, so the dry-run uses the stored ones.
|
|
212
|
+
*/
|
|
213
|
+
requestTemplates?: Record<string, unknown>[] | null;
|
|
214
|
+
responseItemFieldPaths?: Record<string, Record<string, string>> | null;
|
|
209
215
|
}
|
|
210
216
|
/** A connector as `settings:list-connectors` projects it. */
|
|
211
217
|
interface ConnectorSummary {
|
|
@@ -100,7 +100,11 @@ var ConnectorMappingService = class {
|
|
|
100
100
|
requestFieldMap: body.requestFieldMap,
|
|
101
101
|
responseFieldPaths: body.responseFieldPaths,
|
|
102
102
|
staticRequestFields: body.staticRequestFields,
|
|
103
|
-
sampleArgs: body.sampleArgs
|
|
103
|
+
sampleArgs: body.sampleArgs,
|
|
104
|
+
// Omitted, not null, when absent: null would mean "clear the column" on the mapping PUT, and the
|
|
105
|
+
// test endpoint reads absence as "not sent".
|
|
106
|
+
...body.requestTemplates !== void 0 && { requestTemplates: body.requestTemplates },
|
|
107
|
+
...body.responseItemFieldPaths !== void 0 && { responseItemFieldPaths: body.responseItemFieldPaths }
|
|
104
108
|
});
|
|
105
109
|
return response ?? {
|
|
106
110
|
success: false,
|
|
@@ -604,7 +608,7 @@ function useMappingTranslationEditor({
|
|
|
604
608
|
[editor, mappings, updateMapping]
|
|
605
609
|
);
|
|
606
610
|
const onTestMapping = useCallback(
|
|
607
|
-
async (request) => {
|
|
611
|
+
async (request, extras) => {
|
|
608
612
|
if (!editor || !connectorId) {
|
|
609
613
|
return testUnavailable("No connector or operation selected.");
|
|
610
614
|
}
|
|
@@ -623,7 +627,12 @@ function useMappingTranslationEditor({
|
|
|
623
627
|
// The editor's DRAFT static params, not the persisted row's, so the dry-run exercises the
|
|
624
628
|
// unsaved discriminator the operator is actually testing.
|
|
625
629
|
staticRequestFields: request.staticRequestFields ?? null,
|
|
626
|
-
sampleArgs: request.sampleArgs
|
|
630
|
+
sampleArgs: request.sampleArgs,
|
|
631
|
+
// Only the members the editor showed; absent stays absent all the way to the wire.
|
|
632
|
+
...extras?.requestTemplates !== void 0 && { requestTemplates: extras.requestTemplates },
|
|
633
|
+
...extras?.responseItemFieldPaths !== void 0 && {
|
|
634
|
+
responseItemFieldPaths: extras.responseItemFieldPaths
|
|
635
|
+
}
|
|
627
636
|
}
|
|
628
637
|
});
|
|
629
638
|
},
|