@ethisyscore/plugin-ui 1.133.1 → 1.134.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 +20 -8
- 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 +20 -8
- 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-_hEc0heh.d.cts → mappingQueryKeys-DWvjXQq9.d.cts} +11 -0
- package/dist/{mappingQueryKeys-_hEc0heh.d.ts → mappingQueryKeys-DWvjXQq9.d.ts} +11 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ConnectorCanonicalField } from '../../mappingQueryKeys-
|
|
2
|
-
export { a as CONNECTOR_CONTROL_LABEL, b as ConnectorCanonicalFieldKind, c as ConnectorMappingSuggestionResult, d as ConnectorMappingTranslationEditorProps, e as ConnectorMappingTranslationEditorView, f as ConnectorMappingTranslationExtras, M as MappingCompletenessBanner, g as MappingCompletenessBannerProps, h as MappingCompletenessItem, i as MappingCompletenessResult, j as MappingReadiness, P as PLUGIN_PROVIDER_CONTROL_LABEL, k as PROVIDER_CONTROL_LABEL, l as PROVIDER_OPTION_LABEL, S as SUPPRESS_REQUEST_FIELD_VALUE, T as TestToolMappingExtractedField, m as TestToolMappingRequest, n as TestToolMappingResult, o as connectorMappingCompletenessQueryKey, p as connectorMappingsQueryKey, q as connectorMappingsRootQueryKey, r as pluginTargetMappingsQueryKey, s as selectIncompleteOperations, t as selectMappingReadiness, u as selectOptionalIncompleteOperations, v as selectRequiredIncompleteOperations, w as selectRequiredUnmappedOperations } from '../../mappingQueryKeys-
|
|
1
|
+
import { C as ConnectorCanonicalField } from '../../mappingQueryKeys-DWvjXQq9.cjs';
|
|
2
|
+
export { a as CONNECTOR_CONTROL_LABEL, b as ConnectorCanonicalFieldKind, c as ConnectorMappingSuggestionResult, d as ConnectorMappingTranslationEditorProps, e as ConnectorMappingTranslationEditorView, f as ConnectorMappingTranslationExtras, M as MappingCompletenessBanner, g as MappingCompletenessBannerProps, h as MappingCompletenessItem, i as MappingCompletenessResult, j as MappingReadiness, P as PLUGIN_PROVIDER_CONTROL_LABEL, k as PROVIDER_CONTROL_LABEL, l as PROVIDER_OPTION_LABEL, S as SUPPRESS_REQUEST_FIELD_VALUE, T as TestToolMappingExtractedField, m as TestToolMappingRequest, n as TestToolMappingResult, o as connectorMappingCompletenessQueryKey, p as connectorMappingsQueryKey, q as connectorMappingsRootQueryKey, r as pluginTargetMappingsQueryKey, s as selectIncompleteOperations, t as selectMappingReadiness, u as selectOptionalIncompleteOperations, v as selectRequiredIncompleteOperations, w as selectRequiredUnmappedOperations } from '../../mappingQueryKeys-DWvjXQq9.cjs';
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ConnectorCanonicalField } from '../../mappingQueryKeys-
|
|
2
|
-
export { a as CONNECTOR_CONTROL_LABEL, b as ConnectorCanonicalFieldKind, c as ConnectorMappingSuggestionResult, d as ConnectorMappingTranslationEditorProps, e as ConnectorMappingTranslationEditorView, f as ConnectorMappingTranslationExtras, M as MappingCompletenessBanner, g as MappingCompletenessBannerProps, h as MappingCompletenessItem, i as MappingCompletenessResult, j as MappingReadiness, P as PLUGIN_PROVIDER_CONTROL_LABEL, k as PROVIDER_CONTROL_LABEL, l as PROVIDER_OPTION_LABEL, S as SUPPRESS_REQUEST_FIELD_VALUE, T as TestToolMappingExtractedField, m as TestToolMappingRequest, n as TestToolMappingResult, o as connectorMappingCompletenessQueryKey, p as connectorMappingsQueryKey, q as connectorMappingsRootQueryKey, r as pluginTargetMappingsQueryKey, s as selectIncompleteOperations, t as selectMappingReadiness, u as selectOptionalIncompleteOperations, v as selectRequiredIncompleteOperations, w as selectRequiredUnmappedOperations } from '../../mappingQueryKeys-
|
|
1
|
+
import { C as ConnectorCanonicalField } from '../../mappingQueryKeys-DWvjXQq9.js';
|
|
2
|
+
export { a as CONNECTOR_CONTROL_LABEL, b as ConnectorCanonicalFieldKind, c as ConnectorMappingSuggestionResult, d as ConnectorMappingTranslationEditorProps, e as ConnectorMappingTranslationEditorView, f as ConnectorMappingTranslationExtras, M as MappingCompletenessBanner, g as MappingCompletenessBannerProps, h as MappingCompletenessItem, i as MappingCompletenessResult, j as MappingReadiness, P as PLUGIN_PROVIDER_CONTROL_LABEL, k as PROVIDER_CONTROL_LABEL, l as PROVIDER_OPTION_LABEL, S as SUPPRESS_REQUEST_FIELD_VALUE, T as TestToolMappingExtractedField, m as TestToolMappingRequest, n as TestToolMappingResult, o as connectorMappingCompletenessQueryKey, p as connectorMappingsQueryKey, q as connectorMappingsRootQueryKey, r as pluginTargetMappingsQueryKey, s as selectIncompleteOperations, t as selectMappingReadiness, u as selectOptionalIncompleteOperations, v as selectRequiredIncompleteOperations, w as selectRequiredUnmappedOperations } from '../../mappingQueryKeys-DWvjXQq9.js';
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
|
|
@@ -1866,6 +1866,11 @@ function ConnectorMappingTranslationEditorView({
|
|
|
1866
1866
|
const [rawJsonExpanded, setRawJsonExpanded] = useState(false);
|
|
1867
1867
|
const [suggestionError, setSuggestionError] = useState(null);
|
|
1868
1868
|
const [isSuggesting, setIsSuggesting] = useState(false);
|
|
1869
|
+
const isUnmappedOptional = (ef) => {
|
|
1870
|
+
if (ef.pathSource !== null) return false;
|
|
1871
|
+
const declared = canonicalResponseFields.find((field) => field.name === ef.canonicalField);
|
|
1872
|
+
return declared !== void 0 && !declared.isRequired;
|
|
1873
|
+
};
|
|
1869
1874
|
const showTemplates = requestTemplates !== void 0;
|
|
1870
1875
|
const objectResponseFields = canonicalResponseFields.filter((field) => field.kind === "Object");
|
|
1871
1876
|
const showRowFields = responseItemFieldPaths !== void 0 && objectResponseFields.length > 0;
|
|
@@ -2261,16 +2266,23 @@ function ConnectorMappingTranslationEditorView({
|
|
|
2261
2266
|
variant: "outlined"
|
|
2262
2267
|
}
|
|
2263
2268
|
),
|
|
2264
|
-
!ef.present && /* @__PURE__ */ jsx(
|
|
2265
|
-
|
|
2269
|
+
!ef.present && !isUnmappedOptional(ef) && /* @__PURE__ */ jsx(
|
|
2270
|
+
Tooltip,
|
|
2266
2271
|
{
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
+
title: ef.pathSource === "default" && ef.path ? `Default path ${ef.path} found no value` : "",
|
|
2273
|
+
children: /* @__PURE__ */ jsx(
|
|
2274
|
+
Chip,
|
|
2275
|
+
{
|
|
2276
|
+
icon: /* @__PURE__ */ jsx(NiExclamationHexagon, { size: "small" }),
|
|
2277
|
+
label: "no value \u2014 adjust the JSON path",
|
|
2278
|
+
size: "small",
|
|
2279
|
+
color: "warning",
|
|
2280
|
+
variant: "outlined"
|
|
2281
|
+
}
|
|
2282
|
+
)
|
|
2272
2283
|
}
|
|
2273
|
-
)
|
|
2284
|
+
),
|
|
2285
|
+
!ef.present && isUnmappedOptional(ef) && /* @__PURE__ */ jsx(Tooltip, { title: "This optional field has no JSON path in this mapping, so nothing is read for it.", children: /* @__PURE__ */ jsx(Chip, { label: "not mapped", size: "small", variant: "outlined" }) })
|
|
2274
2286
|
]
|
|
2275
2287
|
},
|
|
2276
2288
|
ef.canonicalField
|