udp-react-enterprise-component-library 26.7.0 → 26.8.0-beta.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/.tsbuildinfo +1 -1
- package/dist/UI/fluent-web-components/UdpAccordion.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpAccordion.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpAccordion.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpAccordion.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpAutocomplete.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpAutocomplete.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpAutocomplete.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpAutocomplete.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpAvatar.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpAvatar.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpAvatar.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpAvatar.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpBadge.d.ts +4 -1
- package/dist/UI/fluent-web-components/UdpBadge.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpBadge.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpBadge.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpButton.d.ts +4 -1
- package/dist/UI/fluent-web-components/UdpButton.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpButton.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpButton.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpCard.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpCard.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpCard.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpCard.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpCheckbox.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpCheckbox.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpCheckbox.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpCheckbox.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpChip.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpChip.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpChip.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpChip.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpCompoundButton.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpCompoundButton.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpCompoundButton.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpCompoundButton.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpContainerQuery.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpContainerQuery.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpContainerQuery.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpContainerQuery.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpContainerQueryGrid.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpContainerQueryGrid.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpContainerQueryGrid.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpContainerQueryGrid.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpCounterBadge.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpCounterBadge.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpCounterBadge.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpCounterBadge.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpDateInput.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpDateInput.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpDateInput.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpDateInput.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpDatePicker.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpDatePicker.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpDatePicker.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpDatePicker.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpDateTimeInput.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpDateTimeInput.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpDateTimeInput.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpDateTimeInput.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpDialog.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpDialog.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpDialog.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpDialog.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpDivider.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpDivider.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpDivider.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpDivider.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpDrawer.d.ts +9 -1
- package/dist/UI/fluent-web-components/UdpDrawer.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpDrawer.js +14 -2
- package/dist/UI/fluent-web-components/UdpDrawer.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpDrawer.mjs +33 -22
- package/dist/UI/fluent-web-components/UdpDrawer.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpDropdown.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpDropdown.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpDropdown.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpDropdown.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpDurationInput.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpDurationInput.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpDurationInput.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpDurationInput.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpEmptyState.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpEmptyState.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpEmptyState.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpEmptyState.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpFileInput.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpFileInput.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpFileInput.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpFileInput.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpFlexbox.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpFlexbox.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpFlexbox.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpFlexbox.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpIcon.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpIcon.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpIcon.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpIcon.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpIconButton.d.ts +4 -1
- package/dist/UI/fluent-web-components/UdpIconButton.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpIconButton.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpIconButton.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpIconGrid.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpIconGrid.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpIconGrid.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpIconGrid.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpImage.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpImage.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpImage.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpImage.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpInlineEdit.d.ts +17 -0
- package/dist/UI/fluent-web-components/UdpInlineEdit.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpInlineEdit.js +17 -0
- package/dist/UI/fluent-web-components/UdpInlineEdit.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpInlineEdit.mjs +30 -0
- package/dist/UI/fluent-web-components/UdpInlineEdit.mjs.map +1 -0
- package/dist/UI/fluent-web-components/UdpLink.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpLink.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpLink.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpLink.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpList.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpList.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpList.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpList.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpListItem.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpListItem.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpListItem.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpListItem.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpLocationInput.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpLocationInput.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpLocationInput.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpLocationInput.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpMenu.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpMenu.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpMenu.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpMenu.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpMessageBar.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpMessageBar.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpMessageBar.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpMessageBar.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpNumberInput.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpNumberInput.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpNumberInput.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpNumberInput.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpPopover.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpPopover.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpPopover.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpPopover.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpPrimaryActionHeader.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpPrimaryActionHeader.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpPrimaryActionHeader.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpPrimaryActionHeader.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpProgressBar.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpProgressBar.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpProgressBar.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpProgressBar.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpRadioGroup.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpRadioGroup.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpRadioGroup.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpRadioGroup.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpSearchInput.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpSearchInput.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpSearchInput.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpSearchInput.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpSidebarLayout.d.ts +9 -0
- package/dist/UI/fluent-web-components/UdpSidebarLayout.d.ts.map +1 -0
- package/dist/UI/fluent-web-components/UdpSidebarLayout.js +6 -0
- package/dist/UI/fluent-web-components/UdpSidebarLayout.js.map +1 -0
- package/dist/UI/fluent-web-components/UdpSidebarLayout.mjs +18 -0
- package/dist/UI/fluent-web-components/UdpSidebarLayout.mjs.map +1 -0
- package/dist/UI/fluent-web-components/UdpSignatureInput.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpSignatureInput.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpSignatureInput.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpSignatureInput.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpSkeletonLoading.d.ts +8 -0
- package/dist/UI/fluent-web-components/UdpSkeletonLoading.d.ts.map +1 -0
- package/dist/UI/fluent-web-components/UdpSkeletonLoading.js +6 -0
- package/dist/UI/fluent-web-components/UdpSkeletonLoading.js.map +1 -0
- package/dist/UI/fluent-web-components/UdpSkeletonLoading.mjs +18 -0
- package/dist/UI/fluent-web-components/UdpSkeletonLoading.mjs.map +1 -0
- package/dist/UI/fluent-web-components/UdpSlider.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpSlider.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpSlider.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpSlider.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpSpinner.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpSpinner.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpSpinner.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpSpinner.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpSwatchPicker.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpSwatchPicker.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpSwatchPicker.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpSwatchPicker.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpSwitch.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpSwitch.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpSwitch.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpSwitch.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpTablist.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpTablist.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpTablist.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpTablist.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpText.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpText.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpText.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpText.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpTextInput.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpTextInput.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpTextInput.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpTextInput.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpTextarea.d.ts +4 -1
- package/dist/UI/fluent-web-components/UdpTextarea.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpTextarea.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpTextarea.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpTimeInput.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpTimeInput.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpTimeInput.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpTimeInput.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpToggleButton.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpToggleButton.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpToggleButton.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpToggleButton.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpTooltip.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpTooltip.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpTooltip.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpTooltip.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpVerticalSpacer.d.ts +2 -1
- package/dist/UI/fluent-web-components/UdpVerticalSpacer.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpVerticalSpacer.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpVerticalSpacer.mjs.map +1 -1
- package/dist/UI/fluent-web-components/index.d.ts +4 -0
- package/dist/UI/fluent-web-components/index.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/index.js +4 -0
- package/dist/UI/fluent-web-components/index.js.map +1 -1
- package/dist/UI/fluent-web-components/types.d.ts +26 -0
- package/dist/UI/fluent-web-components/types.d.ts.map +1 -0
- package/dist/UI/fluent-web-components/types.js +2 -0
- package/dist/UI/fluent-web-components/types.js.map +1 -0
- package/dist/UI/utilityDisplay/utilities/aggregateUtils.d.ts +8 -0
- package/dist/UI/utilityDisplay/utilities/aggregateUtils.d.ts.map +1 -1
- package/dist/UI/utilityDisplay/utilities/aggregateUtils.js +22 -0
- package/dist/UI/utilityDisplay/utilities/aggregateUtils.js.map +1 -1
- package/dist/UI/utilityDisplay/utilities/aggregateUtils.mjs.map +1 -1
- package/dist/actions/ActionSplitScreen.d.ts.map +1 -1
- package/dist/actions/ActionSplitScreen.js +2 -2
- package/dist/actions/ActionSplitScreen.js.map +1 -1
- package/dist/actions/ActionSplitScreen.mjs +155 -149
- package/dist/actions/ActionSplitScreen.mjs.map +1 -1
- package/dist/aiAssistant/AiMessageText.d.ts +5 -0
- package/dist/aiAssistant/AiMessageText.d.ts.map +1 -0
- package/dist/aiAssistant/AiMessageText.js +33 -0
- package/dist/aiAssistant/AiMessageText.js.map +1 -0
- package/dist/aiAssistant/AiMessageText.mjs +59 -0
- package/dist/aiAssistant/AiMessageText.mjs.map +1 -0
- package/dist/aiAssistant/AiMessageText.module.css +35 -0
- package/dist/aiAssistant/AiProposalCard.d.ts +18 -0
- package/dist/aiAssistant/AiProposalCard.d.ts.map +1 -0
- package/dist/aiAssistant/AiProposalCard.js +14 -0
- package/dist/aiAssistant/AiProposalCard.js.map +1 -0
- package/dist/aiAssistant/AiProposalCard.mjs +116 -0
- package/dist/aiAssistant/AiProposalCard.mjs.map +1 -0
- package/dist/aiAssistant/AiProposalCard.module.css +49 -0
- package/dist/aiAssistant/AssistantChat.d.ts +72 -0
- package/dist/aiAssistant/AssistantChat.d.ts.map +1 -0
- package/dist/aiAssistant/AssistantChat.js +195 -0
- package/dist/aiAssistant/AssistantChat.js.map +1 -0
- package/dist/aiAssistant/AssistantChat.mjs +514 -0
- package/dist/aiAssistant/AssistantChat.mjs.map +1 -0
- package/dist/aiAssistant/AssistantChat.module.css +120 -0
- package/dist/aiAssistant/UdpAiAssistant.d.ts +21 -0
- package/dist/aiAssistant/UdpAiAssistant.d.ts.map +1 -0
- package/dist/aiAssistant/UdpAiAssistant.js +49 -0
- package/dist/aiAssistant/UdpAiAssistant.js.map +1 -0
- package/dist/aiAssistant/UdpAiAssistant.mjs +108 -0
- package/dist/aiAssistant/UdpAiAssistant.mjs.map +1 -0
- package/dist/aiAssistant/UdpAiAssistant.module.css +8 -0
- package/dist/aiAssistant/askClarification.d.ts +5 -0
- package/dist/aiAssistant/askClarification.d.ts.map +1 -0
- package/dist/aiAssistant/askClarification.js +21 -0
- package/dist/aiAssistant/askClarification.js.map +1 -0
- package/dist/aiAssistant/askClarification.mjs +23 -0
- package/dist/aiAssistant/askClarification.mjs.map +1 -0
- package/dist/aiAssistant/conversation.d.ts +74 -0
- package/dist/aiAssistant/conversation.d.ts.map +1 -0
- package/dist/aiAssistant/conversation.js +75 -0
- package/dist/aiAssistant/conversation.js.map +1 -0
- package/dist/aiAssistant/conversation.mjs +72 -0
- package/dist/aiAssistant/conversation.mjs.map +1 -0
- package/dist/aiAssistant/conversationState.d.ts +74 -0
- package/dist/aiAssistant/conversationState.d.ts.map +1 -0
- package/dist/aiAssistant/conversationState.js +136 -0
- package/dist/aiAssistant/conversationState.js.map +1 -0
- package/dist/aiAssistant/conversationState.mjs +147 -0
- package/dist/aiAssistant/conversationState.mjs.map +1 -0
- package/dist/aiAssistant/engine.d.ts +62 -0
- package/dist/aiAssistant/engine.d.ts.map +1 -0
- package/dist/aiAssistant/engine.js +269 -0
- package/dist/aiAssistant/engine.js.map +1 -0
- package/dist/aiAssistant/engine.mjs +290 -0
- package/dist/aiAssistant/engine.mjs.map +1 -0
- package/dist/aiAssistant/index.d.ts +13 -0
- package/dist/aiAssistant/index.d.ts.map +1 -0
- package/dist/aiAssistant/index.js +13 -0
- package/dist/aiAssistant/index.js.map +1 -0
- package/dist/aiAssistant/openai.d.ts +90 -0
- package/dist/aiAssistant/openai.d.ts.map +1 -0
- package/dist/aiAssistant/openai.js +181 -0
- package/dist/aiAssistant/openai.js.map +1 -0
- package/dist/aiAssistant/openai.mjs +167 -0
- package/dist/aiAssistant/openai.mjs.map +1 -0
- package/dist/aiAssistant/provider/UdpAiProvider.d.ts +43 -0
- package/dist/aiAssistant/provider/UdpAiProvider.d.ts.map +1 -0
- package/dist/aiAssistant/provider/UdpAiProvider.js +65 -0
- package/dist/aiAssistant/provider/UdpAiProvider.js.map +1 -0
- package/dist/aiAssistant/provider/UdpAiProvider.mjs +66 -0
- package/dist/aiAssistant/provider/UdpAiProvider.mjs.map +1 -0
- package/dist/aiAssistant/provider/index.d.ts +3 -0
- package/dist/aiAssistant/provider/index.d.ts.map +1 -0
- package/dist/aiAssistant/provider/index.js +3 -0
- package/dist/aiAssistant/provider/index.js.map +1 -0
- package/dist/aiAssistant/types.d.ts +157 -0
- package/dist/aiAssistant/types.d.ts.map +1 -0
- package/dist/aiAssistant/types.js +2 -0
- package/dist/aiAssistant/types.js.map +1 -0
- package/dist/aiAssistant/useAiAssistant.d.ts +20 -0
- package/dist/aiAssistant/useAiAssistant.d.ts.map +1 -0
- package/dist/aiAssistant/useAiAssistant.js +26 -0
- package/dist/aiAssistant/useAiAssistant.js.map +1 -0
- package/dist/aiAssistant/useAiAssistant.mjs +98 -0
- package/dist/aiAssistant/useAiAssistant.mjs.map +1 -0
- package/dist/aiAssistant/useConversation.d.ts +17 -0
- package/dist/aiAssistant/useConversation.d.ts.map +1 -0
- package/dist/aiAssistant/useConversation.js +29 -0
- package/dist/aiAssistant/useConversation.js.map +1 -0
- package/dist/aiAssistant/useConversation.mjs +52 -0
- package/dist/aiAssistant/useConversation.mjs.map +1 -0
- package/dist/chatBot/ChatContainer.d.ts +4 -0
- package/dist/chatBot/ChatContainer.d.ts.map +1 -1
- package/dist/chatBot/ChatContainer.js +8 -0
- package/dist/chatBot/ChatContainer.js.map +1 -1
- package/dist/chatBot/ChatContainer.mjs +7 -0
- package/dist/chatBot/ChatContainer.mjs.map +1 -1
- package/dist/chatBot/ChatMessage.d.ts +4 -0
- package/dist/chatBot/ChatMessage.d.ts.map +1 -1
- package/dist/chatBot/ChatMessage.js +8 -0
- package/dist/chatBot/ChatMessage.js.map +1 -1
- package/dist/chatBot/ChatMessage.mjs +60 -47
- package/dist/chatBot/ChatMessage.mjs.map +1 -1
- package/dist/componentSystems/pageRenderer/hooks/useReadMetaData.d.ts +1 -1
- package/dist/domain/entityForm/entityFormModel.d.ts +41 -0
- package/dist/domain/entityForm/entityFormModel.d.ts.map +1 -0
- package/dist/domain/entityForm/entityFormModel.js +31 -0
- package/dist/domain/entityForm/entityFormModel.js.map +1 -0
- package/dist/domain/entityForm/entityFormModel.mjs +34 -0
- package/dist/domain/entityForm/entityFormModel.mjs.map +1 -0
- package/dist/hooks/crudActions.d.ts.map +1 -1
- package/dist/hooks/crudActions.js +2 -6
- package/dist/hooks/crudActions.js.map +1 -1
- package/dist/hooks/crudActions.mjs +2 -8
- package/dist/hooks/crudActions.mjs.map +1 -1
- package/dist/hooks/crudForeignKeyData.d.ts.map +1 -1
- package/dist/hooks/crudForeignKeyData.js +2 -7
- package/dist/hooks/crudForeignKeyData.js.map +1 -1
- package/dist/hooks/crudForeignKeyData.mjs +4 -9
- package/dist/hooks/crudForeignKeyData.mjs.map +1 -1
- package/dist/hooks/usePromotedLookupMethods.d.ts.map +1 -1
- package/dist/hooks/usePromotedLookupMethods.js +4 -1
- package/dist/hooks/usePromotedLookupMethods.js.map +1 -1
- package/dist/hooks/usePromotedLookupMethods.mjs +3 -1
- package/dist/hooks/usePromotedLookupMethods.mjs.map +1 -1
- package/dist/hooks/usePromotedMethodEntities.d.ts.map +1 -1
- package/dist/hooks/usePromotedMethodEntities.js +5 -1
- package/dist/hooks/usePromotedMethodEntities.js.map +1 -1
- package/dist/hooks/usePromotedMethodEntities.mjs +3 -1
- package/dist/hooks/usePromotedMethodEntities.mjs.map +1 -1
- package/dist/hooks/usePromotedMethodEntity.js +1 -1
- package/dist/hooks/usePromotedMethodEntity.js.map +1 -1
- package/dist/hooks/usePromotedMethodEntity.mjs +1 -1
- package/dist/hooks/usePromotedMethodEntity.mjs.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +23 -3
- package/dist/maintenanceEngine/crudBrowser/CrudTableSidePanel.d.ts.map +1 -1
- package/dist/maintenanceEngine/crudBrowser/CrudTableSidePanel.js +2 -9
- package/dist/maintenanceEngine/crudBrowser/CrudTableSidePanel.js.map +1 -1
- package/dist/maintenanceEngine/crudBrowser/CrudTableSidePanel.mjs +69 -90
- package/dist/maintenanceEngine/crudBrowser/CrudTableSidePanel.mjs.map +1 -1
- package/dist/maintenanceEngine/entityFormInputs.d.ts +39 -0
- package/dist/maintenanceEngine/entityFormInputs.d.ts.map +1 -0
- package/dist/maintenanceEngine/entityFormInputs.js +174 -0
- package/dist/maintenanceEngine/entityFormInputs.js.map +1 -0
- package/dist/maintenanceEngine/entityFormInputs.mjs +133 -0
- package/dist/maintenanceEngine/entityFormInputs.mjs.map +1 -0
- package/dist/maintenanceEngine/tableBrowser/TableColumnDefs.d.ts +1 -1
- package/dist/maintenanceEngine/tableBrowser/TableColumnDefs.d.ts.map +1 -1
- package/dist/maintenanceEngine/virtualBrowser/VirtualBrowser.js +2 -2
- package/dist/maintenanceEngine/virtualBrowser/VirtualBrowser.js.map +1 -1
- package/dist/maintenanceEngine/virtualBrowser/VirtualBrowser.mjs +2 -2
- package/dist/maintenanceEngine/virtualBrowser/VirtualBrowser.mjs.map +1 -1
- package/dist/notes/NotesScreen.d.ts.map +1 -1
- package/dist/notes/NotesScreen.js +8 -2
- package/dist/notes/NotesScreen.js.map +1 -1
- package/dist/notes/NotesScreen.mjs +5 -1
- package/dist/notes/NotesScreen.mjs.map +1 -1
- package/dist/providers/UdpAiAppSurface.d.ts +19 -0
- package/dist/providers/UdpAiAppSurface.d.ts.map +1 -0
- package/dist/providers/UdpAiAppSurface.js +39 -0
- package/dist/providers/UdpAiAppSurface.js.map +1 -0
- package/dist/providers/UdpAiAppSurface.mjs +56 -0
- package/dist/providers/UdpAiAppSurface.mjs.map +1 -0
- package/dist/providers/UdpAppProvider.d.ts +20 -0
- package/dist/providers/UdpAppProvider.d.ts.map +1 -1
- package/dist/providers/UdpAppProvider.js +6 -2
- package/dist/providers/UdpAppProvider.js.map +1 -1
- package/dist/providers/UdpAppProvider.mjs +30 -21
- package/dist/providers/UdpAppProvider.mjs.map +1 -1
- package/dist/reminders/RemindersScreen.d.ts.map +1 -1
- package/dist/reminders/RemindersScreen.js +8 -2
- package/dist/reminders/RemindersScreen.js.map +1 -1
- package/dist/reminders/RemindersScreen.mjs +5 -1
- package/dist/reminders/RemindersScreen.mjs.map +1 -1
- package/dist/routes/UdpRoutes.d.ts.map +1 -1
- package/dist/routes/UdpRoutes.js.map +1 -1
- package/dist/routes/UdpRoutes.mjs.map +1 -1
- package/dist/searchIntent/compile.d.ts +9 -0
- package/dist/searchIntent/compile.d.ts.map +1 -0
- package/dist/searchIntent/compile.js +127 -0
- package/dist/searchIntent/compile.js.map +1 -0
- package/dist/searchIntent/compile.mjs +120 -0
- package/dist/searchIntent/compile.mjs.map +1 -0
- package/dist/searchIntent/diff.d.ts +10 -0
- package/dist/searchIntent/diff.d.ts.map +1 -0
- package/dist/searchIntent/diff.js +90 -0
- package/dist/searchIntent/diff.js.map +1 -0
- package/dist/searchIntent/diff.mjs +88 -0
- package/dist/searchIntent/diff.mjs.map +1 -0
- package/dist/searchIntent/index.d.ts +13 -0
- package/dist/searchIntent/index.d.ts.map +1 -0
- package/dist/searchIntent/index.js +13 -0
- package/dist/searchIntent/index.js.map +1 -0
- package/dist/searchIntent/operators.d.ts +28 -0
- package/dist/searchIntent/operators.d.ts.map +1 -0
- package/dist/searchIntent/operators.js +184 -0
- package/dist/searchIntent/operators.js.map +1 -0
- package/dist/searchIntent/operators.mjs +164 -0
- package/dist/searchIntent/operators.mjs.map +1 -0
- package/dist/searchIntent/prompt.d.ts +36 -0
- package/dist/searchIntent/prompt.d.ts.map +1 -0
- package/dist/searchIntent/prompt.js +152 -0
- package/dist/searchIntent/prompt.js.map +1 -0
- package/dist/searchIntent/prompt.mjs +116 -0
- package/dist/searchIntent/prompt.mjs.map +1 -0
- package/dist/searchIntent/tools.d.ts +19 -0
- package/dist/searchIntent/tools.d.ts.map +1 -0
- package/dist/searchIntent/tools.js +189 -0
- package/dist/searchIntent/tools.js.map +1 -0
- package/dist/searchIntent/tools.mjs +209 -0
- package/dist/searchIntent/tools.mjs.map +1 -0
- package/dist/searchIntent/types.d.ts +95 -0
- package/dist/searchIntent/types.d.ts.map +1 -0
- package/dist/searchIntent/types.js +2 -0
- package/dist/searchIntent/types.js.map +1 -0
- package/dist/searchIntent/validate.d.ts +19 -0
- package/dist/searchIntent/validate.d.ts.map +1 -0
- package/dist/searchIntent/validate.js +136 -0
- package/dist/searchIntent/validate.js.map +1 -0
- package/dist/searchIntent/validate.mjs +103 -0
- package/dist/searchIntent/validate.mjs.map +1 -0
- package/dist/stores/inquiryStore.d.ts +2 -2
- package/dist/stores/inquiryStore.d.ts.map +1 -1
- package/dist/stores/inquiryStore.mjs.map +1 -1
- package/dist/udp/export/MyExportsPage.js +1 -1
- package/dist/udp/export/MyExportsPage.js.map +1 -1
- package/dist/udp/export/MyExportsPage.mjs +1 -1
- package/dist/udp/export/MyExportsPage.mjs.map +1 -1
- package/dist/udp/pages/UdpDataBrowserPage/UdpDataBrowserPage.js +4 -4
- package/dist/udp/pages/UdpDataBrowserPage/UdpDataBrowserPage.js.map +1 -1
- package/dist/udp/pages/UdpDataBrowserPage/UdpDataBrowserPage.mjs +4 -4
- package/dist/udp/pages/UdpDataBrowserPage/UdpDataBrowserPage.mjs.map +1 -1
- package/dist/udp/pages/UdpMaintenanceConfigPage/UdpMaintenanceConfigPage.js +1 -1
- package/dist/udp/pages/UdpMaintenanceConfigPage/UdpMaintenanceConfigPage.js.map +1 -1
- package/dist/udp/pages/UdpMaintenanceConfigPage/UdpMaintenanceConfigPage.mjs +1 -1
- package/dist/udp/pages/UdpMaintenanceConfigPage/UdpMaintenanceConfigPage.mjs.map +1 -1
- package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.d.ts.map +1 -1
- package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.js +38 -206
- package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.js.map +1 -1
- package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.mjs +63 -172
- package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.mjs.map +1 -1
- package/dist/udp/tags/useTags.d.ts +13 -1
- package/dist/udp/tags/useTags.d.ts.map +1 -1
- package/dist/udp/tags/useTags.js +16 -6
- package/dist/udp/tags/useTags.js.map +1 -1
- package/dist/udp/tags/useTags.mjs +41 -35
- package/dist/udp/tags/useTags.mjs.map +1 -1
- package/dist/udp/utilities/useDateStringColumnDef.d.ts +1 -1
- package/dist/utilities/configRequestDedupe.d.ts +31 -0
- package/dist/utilities/configRequestDedupe.d.ts.map +1 -0
- package/dist/utilities/configRequestDedupe.js +106 -0
- package/dist/utilities/configRequestDedupe.js.map +1 -0
- package/dist/utilities/configRequestDedupe.mjs +90 -0
- package/dist/utilities/configRequestDedupe.mjs.map +1 -0
- package/dist/utilities/crud/useDefaultFormValues.d.ts.map +1 -1
- package/dist/utilities/crud/useDefaultFormValues.js +14 -9
- package/dist/utilities/crud/useDefaultFormValues.js.map +1 -1
- package/dist/utilities/crud/useDefaultFormValues.mjs +23 -5
- package/dist/utilities/crud/useDefaultFormValues.mjs.map +1 -1
- package/dist/utilities/entities/entityUtilities.d.ts +9 -0
- package/dist/utilities/entities/entityUtilities.d.ts.map +1 -1
- package/dist/utilities/entities/entityUtilities.js +12 -1
- package/dist/utilities/entities/entityUtilities.js.map +1 -1
- package/dist/utilities/entities/entityUtilities.mjs +15 -2
- package/dist/utilities/entities/entityUtilities.mjs.map +1 -1
- package/dist/utilities/i18n/locales/es-US.json +104 -1
- package/dist/utilities/i18n/locales/es-US.mjs +98 -1
- package/dist/utilities/i18n/locales/fr-CA.json +104 -1
- package/dist/utilities/i18n/locales/fr-CA.mjs +98 -1
- package/dist/utilities/iconLibrary/SelectedLibraryItem.d.ts.map +1 -1
- package/dist/utilities/iconLibrary/SelectedLibraryItem.js +0 -1
- package/dist/utilities/iconLibrary/SelectedLibraryItem.js.map +1 -1
- package/dist/utilities/iconLibrary/SelectedLibraryItem.mjs.map +1 -1
- package/dist/utilities/provider/ActionProvider.d.ts.map +1 -1
- package/dist/utilities/provider/ActionProvider.js +23 -9
- package/dist/utilities/provider/ActionProvider.js.map +1 -1
- package/dist/utilities/provider/ActionProvider.mjs +382 -201
- package/dist/utilities/provider/ActionProvider.mjs.map +1 -1
- package/dist/utilities/useAxiosGet.d.ts.map +1 -1
- package/dist/utilities/useAxiosGet.js +3 -1
- package/dist/utilities/useAxiosGet.js.map +1 -1
- package/dist/utilities/useAxiosGet.mjs +4 -1
- package/dist/utilities/useAxiosGet.mjs.map +1 -1
- package/package.json +105 -4
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import type { CatalogProperty, Search } from 'udp-stencil-component-library';
|
|
2
|
+
// ── Intent (what the model emits via the propose tool) ──
|
|
3
|
+
//
|
|
4
|
+
// The model never produces a raw Search object. It produces this declarative
|
|
5
|
+
// intermediate representation; compile.ts turns it into Search/columns state
|
|
6
|
+
// deterministically (group ids, operator strings, value joining all happen
|
|
7
|
+
// in code, not in the model).
|
|
8
|
+
export type AiOperator = 'equals' | 'not_equals' | 'contains' | 'starts_with' | 'greater_than' | 'greater_than_or_equal' | 'less_than' | 'less_than_or_equal' | 'between' | 'in' | 'not_in' | 'is_empty' | 'is_not_empty';
|
|
9
|
+
export interface AiCondition {
|
|
10
|
+
field: string;
|
|
11
|
+
operator: AiOperator;
|
|
12
|
+
/** Single-value operators (equals, contains, greater_than, ...) */
|
|
13
|
+
value?: string;
|
|
14
|
+
/** Multi-value operators: between (exactly 2), in / not_in (1..500) */
|
|
15
|
+
values?: string[];
|
|
16
|
+
}
|
|
17
|
+
export interface AiConditionGroup {
|
|
18
|
+
op: 'and' | 'or';
|
|
19
|
+
conditions: AiCondition[];
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Full replacement of the filter state: direct root conditions plus at most
|
|
23
|
+
* one level of subgroups — mirroring the advanced search builder's max depth.
|
|
24
|
+
*/
|
|
25
|
+
export interface AiFilterSpec {
|
|
26
|
+
op: 'and' | 'or';
|
|
27
|
+
conditions: AiCondition[];
|
|
28
|
+
groups?: AiConditionGroup[];
|
|
29
|
+
}
|
|
30
|
+
export interface AiSortSpec {
|
|
31
|
+
field: string;
|
|
32
|
+
direction: 'ASC' | 'DESC';
|
|
33
|
+
}
|
|
34
|
+
export type AiAggregateOperation = 'COUNT' | 'SUM' | 'MIN' | 'MAX' | 'AVG';
|
|
35
|
+
export interface AiGroupingSpec {
|
|
36
|
+
groupBy: string[];
|
|
37
|
+
aggregates: {
|
|
38
|
+
field: string;
|
|
39
|
+
operation: AiAggregateOperation;
|
|
40
|
+
}[];
|
|
41
|
+
}
|
|
42
|
+
/** Column visibility changes. showOnly wins over show/hide when present. */
|
|
43
|
+
export interface AiColumnSpec {
|
|
44
|
+
showOnly?: string[];
|
|
45
|
+
show?: string[];
|
|
46
|
+
hide?: string[];
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Sections set to null (or omitted) are left unchanged; a present-but-empty
|
|
50
|
+
* section clears that part of the query. Declarative full-state per section.
|
|
51
|
+
*/
|
|
52
|
+
export interface QueryIntent {
|
|
53
|
+
explanation: string;
|
|
54
|
+
filters?: AiFilterSpec | null;
|
|
55
|
+
sorts?: AiSortSpec[] | null;
|
|
56
|
+
grouping?: AiGroupingSpec | null;
|
|
57
|
+
columns?: AiColumnSpec | null;
|
|
58
|
+
pageSize?: number | null;
|
|
59
|
+
}
|
|
60
|
+
// ── Schema context (what the model is told about the queryable surface) ──
|
|
61
|
+
//
|
|
62
|
+
// This is the normalized contract every host adapts its own schema source to:
|
|
63
|
+
// Data Builder derives it from the product catalog, a grid host from its
|
|
64
|
+
// column definitions or catalogModification. Hosts with richer context
|
|
65
|
+
// (relationships, entity lists) extend this shape with their own fields.
|
|
66
|
+
export interface AiFilterField {
|
|
67
|
+
/** Dot path as the search API expects it, e.g. "startDate" or "AssignmentPosition.positionName" */
|
|
68
|
+
path: string;
|
|
69
|
+
/** Normalized type: guid | string | number | boolean | date | datetime | time */
|
|
70
|
+
type: string;
|
|
71
|
+
}
|
|
72
|
+
export interface AiColumnInfo {
|
|
73
|
+
name: string;
|
|
74
|
+
type: string;
|
|
75
|
+
orderable: boolean;
|
|
76
|
+
aggregatable: boolean;
|
|
77
|
+
visible: boolean;
|
|
78
|
+
}
|
|
79
|
+
export interface AiSearchSchemaContext {
|
|
80
|
+
/** Capitalized simple entity name, e.g. "Assignment" */
|
|
81
|
+
entityName: string;
|
|
82
|
+
filterFields: AiFilterField[];
|
|
83
|
+
columns: AiColumnInfo[];
|
|
84
|
+
}
|
|
85
|
+
// ── Compiled output ──
|
|
86
|
+
export interface CompiledSearchChanges {
|
|
87
|
+
searchBody: Search;
|
|
88
|
+
columns: CatalogProperty[];
|
|
89
|
+
}
|
|
90
|
+
// ── Proposal diff presented to the user ──
|
|
91
|
+
export interface AiDiffLine {
|
|
92
|
+
kind: 'filters' | 'sorts' | 'grouping' | 'columns' | 'pageSize';
|
|
93
|
+
text: string;
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/searchIntent/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,MAAM,EACP,MAAM,yCAAyC,CAAC;AAEjD,mEAA2D;AAC3D,EAAE;AACF,6EAA6E;AAC7E,6EAA6E;AAC7E,2EAA2E;AAC3E,8BAA8B;AAE9B,MAAM,MAAM,UAAU,GAClB,QAAQ,GACR,YAAY,GACZ,UAAU,GACV,aAAa,GACb,cAAc,GACd,uBAAuB,GACvB,WAAW,GACX,oBAAoB,GACpB,SAAS,GACT,IAAI,GACJ,QAAQ,GACR,UAAU,GACV,cAAc,CAAC;AAEnB,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,UAAU,CAAC;IACrB,mEAAmE;IACnE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uEAAuE;IACvE,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,KAAK,GAAG,IAAI,CAAC;IACjB,UAAU,EAAE,WAAW,EAAE,CAAC;CAC3B;AAED;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,KAAK,GAAG,IAAI,CAAC;IACjB,UAAU,EAAE,WAAW,EAAE,CAAC;IAC1B,MAAM,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,KAAK,GAAG,MAAM,CAAC;CAC3B;AAED,MAAM,MAAM,oBAAoB,GAA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AAE,YAAY,EAAE,CAAC;CACzB;AAED,gCAAwB;AAExB,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,eAAe,EAAE,CAAC;CAC5B;AAED,oDAA4C;AAE5C,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,SAAS,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,CAAC;IAChE,IAAI,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/searchIntent/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { AiSearchSchemaContext, QueryIntent } from './types';
|
|
2
|
+
export interface ValidateIntentOptions {
|
|
3
|
+
/**
|
|
4
|
+
* Host hook to explain an unknown filter field path more precisely than the
|
|
5
|
+
* generic message — e.g. Data Builder resolves navigation chains to tell the
|
|
6
|
+
* model the valid leaf fields on the target entity so a repair round can
|
|
7
|
+
* succeed in one shot. Return undefined to fall back to the generic message.
|
|
8
|
+
*/
|
|
9
|
+
explainUnknownField?: (fieldPath: string) => string | undefined;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Validates an intent against the schema context, enforcing the same gates
|
|
13
|
+
* the manual UIs apply (searchable / orderable / aggregatable / groupBy
|
|
14
|
+
* required for aggregates). Returns [] when the intent is safe to compile.
|
|
15
|
+
* Error strings are written for the model — precise enough that a single
|
|
16
|
+
* repair round can fix the intent.
|
|
17
|
+
*/
|
|
18
|
+
export declare const validateIntent: (intent: QueryIntent, ctx: AiSearchSchemaContext, options?: ValidateIntentOptions) => string[];
|
|
19
|
+
//# sourceMappingURL=validate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../src/searchIntent/validate.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAe,qBAAqB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE/E,MAAM,WAAW,qBAAqB;IACpC;;;;;OAKG;IACH,mBAAmB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;CACjE;AAiFD;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,gGAqG1B,CAAC"}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { SearchConstants } from 'udp-stencil-component-library';
|
|
2
|
+
import { MULTI_VALUE_OPERATORS, NO_VALUE_OPERATORS, OPERATORS_BY_TYPE, SINGLE_VALUE_OPERATORS, checkValueFormat } from './operators';
|
|
3
|
+
const isLogicalOp = (op) => op === 'and' || op === 'or';
|
|
4
|
+
const validateCondition = (cond, ctx, options, errors, where) => {
|
|
5
|
+
var _a;
|
|
6
|
+
var _b, _c;
|
|
7
|
+
// The tool schema requires `field`, but tool arguments are model output:
|
|
8
|
+
// handle a missing one here rather than handing undefined to the host's
|
|
9
|
+
// explainUnknownField hook, which reasonably assumes a path string.
|
|
10
|
+
if (typeof (cond === null || cond === void 0 ? void 0 : cond.field) !== 'string' || cond.field.trim() === '') {
|
|
11
|
+
errors.push(`${where}: "field" is required — name the field with a path from the filterable fields list exactly as written.`);
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
const field = ctx.filterFields.find((f) => f.path === cond.field);
|
|
15
|
+
if (!field) {
|
|
16
|
+
const explained = (_a = options === null || options === void 0 ? void 0 : options.explainUnknownField) === null || _a === void 0 ? void 0 : _a.call(options, cond.field);
|
|
17
|
+
errors.push(`${where}: ${explained !== null && explained !== void 0 ? explained : `"${cond.field}" is not a filterable field. Use a path from the filterable fields list exactly as written.`}`);
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
const allowed = (_b = OPERATORS_BY_TYPE[field.type]) !== null && _b !== void 0 ? _b : OPERATORS_BY_TYPE.default;
|
|
21
|
+
if (!allowed.includes(cond.operator)) {
|
|
22
|
+
errors.push(`${where}: operator "${cond.operator}" is not allowed for ${field.type} field "${cond.field}". Allowed: ${allowed.join(', ')}.`);
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
if (NO_VALUE_OPERATORS.has(cond.operator))
|
|
26
|
+
return;
|
|
27
|
+
if (SINGLE_VALUE_OPERATORS.has(cond.operator)) {
|
|
28
|
+
if (cond.value === undefined || cond.value === null || cond.value === '') {
|
|
29
|
+
errors.push(`${where}: operator "${cond.operator}" on "${cond.field}" requires a value.`);
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
// contains/starts_with do substring matching — format checks would reject partial values
|
|
33
|
+
if (cond.operator !== 'contains' && cond.operator !== 'starts_with') {
|
|
34
|
+
const formatError = checkValueFormat(field.type, cond.value);
|
|
35
|
+
if (formatError)
|
|
36
|
+
errors.push(`${where}: "${cond.field}" ${formatError}.`);
|
|
37
|
+
}
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
if (MULTI_VALUE_OPERATORS.has(cond.operator)) {
|
|
41
|
+
const values = (_c = cond.values) !== null && _c !== void 0 ? _c : [];
|
|
42
|
+
if (cond.operator === 'between' && values.length !== 2) {
|
|
43
|
+
errors.push(`${where}: "between" on "${cond.field}" requires exactly 2 values (low, high), got ${values.length}.`);
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
if (cond.operator !== 'between' &&
|
|
47
|
+
(values.length < 1 ||
|
|
48
|
+
values.length > SearchConstants.IN_CLAUSE_MAX_ELEMENTS)) {
|
|
49
|
+
errors.push(`${where}: "${cond.operator}" on "${cond.field}" requires 1-${SearchConstants.IN_CLAUSE_MAX_ELEMENTS} values, got ${values.length}.`);
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
for (const v of values) {
|
|
53
|
+
const formatError = checkValueFormat(field.type, v);
|
|
54
|
+
if (formatError)
|
|
55
|
+
errors.push(`${where}: "${cond.field}" ${formatError}.`);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Validates an intent against the schema context, enforcing the same gates
|
|
61
|
+
* the manual UIs apply (searchable / orderable / aggregatable / groupBy
|
|
62
|
+
* required for aggregates). Returns [] when the intent is safe to compile.
|
|
63
|
+
* Error strings are written for the model — precise enough that a single
|
|
64
|
+
* repair round can fix the intent.
|
|
65
|
+
*/
|
|
66
|
+
export const validateIntent = (intent, ctx, options) => {
|
|
67
|
+
var _a, _b, _c;
|
|
68
|
+
const errors = [];
|
|
69
|
+
const columnNames = new Set(ctx.columns.map((c) => c.name));
|
|
70
|
+
if (intent.filters) {
|
|
71
|
+
// `op` decides how the whole filter state joins; downstream (compile, diff)
|
|
72
|
+
// it is read as given, so a missing one is an error, not a silent "and".
|
|
73
|
+
if (!isLogicalOp(intent.filters.op)) {
|
|
74
|
+
errors.push('filters.op is required and must be "and" or "or".');
|
|
75
|
+
}
|
|
76
|
+
(_a = intent.filters.conditions) === null || _a === void 0 ? void 0 : _a.forEach((cond, i) => validateCondition(cond, ctx, options, errors, `filters.conditions[${i}]`));
|
|
77
|
+
(_b = intent.filters.groups) === null || _b === void 0 ? void 0 : _b.forEach((group, gi) => {
|
|
78
|
+
var _a;
|
|
79
|
+
if (!isLogicalOp(group === null || group === void 0 ? void 0 : group.op)) {
|
|
80
|
+
errors.push(`filters.groups[${gi}].op must be "and" or "or".`);
|
|
81
|
+
}
|
|
82
|
+
if (!((_a = group.conditions) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
83
|
+
errors.push(`filters.groups[${gi}]: a group must contain at least one condition.`);
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
group.conditions.forEach((cond, i) => validateCondition(cond, ctx, options, errors, `filters.groups[${gi}].conditions[${i}]`));
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
if (intent.sorts) {
|
|
90
|
+
intent.sorts.forEach((sort, i) => {
|
|
91
|
+
const col = ctx.columns.find((c) => c.name === sort.field);
|
|
92
|
+
if (!col) {
|
|
93
|
+
errors.push(`sorts[${i}]: "${sort.field}" is not a column on ${ctx.entityName}.`);
|
|
94
|
+
}
|
|
95
|
+
else if (!col.orderable) {
|
|
96
|
+
errors.push(`sorts[${i}]: column "${sort.field}" is not sortable.`);
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
if (intent.grouping) {
|
|
101
|
+
const { groupBy = [], aggregates = [] } = intent.grouping;
|
|
102
|
+
groupBy.forEach((name, i) => {
|
|
103
|
+
if (!columnNames.has(name))
|
|
104
|
+
errors.push(`grouping.groupBy[${i}]: "${name}" is not a column on ${ctx.entityName}.`);
|
|
105
|
+
});
|
|
106
|
+
aggregates.forEach((agg, i) => {
|
|
107
|
+
const col = ctx.columns.find((c) => c.name === agg.field);
|
|
108
|
+
if (!col) {
|
|
109
|
+
errors.push(`grouping.aggregates[${i}]: "${agg.field}" is not a column on ${ctx.entityName}.`);
|
|
110
|
+
}
|
|
111
|
+
else if (!col.aggregatable) {
|
|
112
|
+
errors.push(`grouping.aggregates[${i}]: column "${agg.field}" does not support aggregation.`);
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
if (aggregates.length > 0 && groupBy.length === 0) {
|
|
116
|
+
errors.push('grouping: aggregates require at least one groupBy column.');
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
if (intent.columns) {
|
|
120
|
+
for (const key of ['showOnly', 'show', 'hide']) {
|
|
121
|
+
(_c = intent.columns[key]) === null || _c === void 0 ? void 0 : _c.forEach((name, i) => {
|
|
122
|
+
if (!columnNames.has(name))
|
|
123
|
+
errors.push(`columns.${key}[${i}]: "${name}" is not a column on ${ctx.entityName}.`);
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
if (intent.pageSize !== undefined && intent.pageSize !== null) {
|
|
128
|
+
if (!Number.isInteger(intent.pageSize) ||
|
|
129
|
+
intent.pageSize < 1 ||
|
|
130
|
+
intent.pageSize > SearchConstants.MAX_PAGE_SIZE) {
|
|
131
|
+
errors.push(`pageSize must be an integer between 1 and ${SearchConstants.MAX_PAGE_SIZE}.`);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
return errors;
|
|
135
|
+
};
|
|
136
|
+
//# sourceMappingURL=validate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate.js","sourceRoot":"","sources":["../../src/searchIntent/validate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAC1E,OAAO,EACL,qBAAqB,EACrB,kBAAkB,EAClB,iBAAiB,EACjB,sBAAsB,EACtB,gBAAgB,EACjB,MAAM,aAAa,CAAC;AAarB,MAAM,WAAW,GAAG,CAAC,EAAW,EAAsB,EAAE,CACtD,EAAE,KAAK,KAAK,IAAI,EAAE,KAAK,IAAI,CAAC;AAE9B,MAAM,iBAAiB,GAAG,CACxB,IAAiB,EACjB,GAA0B,EAC1B,OAA0C,EAC1C,MAAgB,EAChB,KAAa,EACP,EAAE,CAAC;;;IACT,yEAAyE;IACzE,wEAAwE;IACxE,oEAAoE;IACpE,IAAI,QAAO,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,CAAA,KAAK,QAAQ,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;QAChE,MAAM,CAAC,IAAI,CACT,GAAG,KAAK,0GAAwG,CACjH,CAAC;QACF,OAAO;IACT,CAAC;IAED,MAAM,KAAK,GAAG,GAAG,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,KAAK,CAAC,CAAC;IAClE,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,MAAM,SAAS,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,mBAAmB,+CAA5B,OAAO,EAAwB,IAAI,CAAC,KAAK,CAAC,CAAC;QAC7D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IACH,CAAC;IAED,OAAO,MAAM,CAAC;AAAA,CACf,CAAC"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { MULTI_VALUE_OPERATORS, NO_VALUE_OPERATORS, OPERATORS_BY_TYPE, SINGLE_VALUE_OPERATORS, checkValueFormat } from "./operators.mjs";
|
|
2
|
+
import { SearchConstants } from "udp-stencil-component-library";
|
|
3
|
+
//#region src/searchIntent/validate.ts
|
|
4
|
+
const isLogicalOp = (op) => op === "and" || op === "or";
|
|
5
|
+
const validateCondition = (cond, ctx, options, errors, where) => {
|
|
6
|
+
if (typeof cond?.field !== "string" || cond.field.trim() === "") {
|
|
7
|
+
errors.push(`${where}: "field" is required — name the field with a path from the filterable fields list exactly as written.`);
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
const field = ctx.filterFields.find((f) => f.path === cond.field);
|
|
11
|
+
if (!field) {
|
|
12
|
+
const explained = options?.explainUnknownField?.(cond.field);
|
|
13
|
+
errors.push(`${where}: ${explained ?? `"${cond.field}" is not a filterable field. Use a path from the filterable fields list exactly as written.`}`);
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
const allowed = OPERATORS_BY_TYPE[field.type] ?? OPERATORS_BY_TYPE.default;
|
|
17
|
+
if (!allowed.includes(cond.operator)) {
|
|
18
|
+
errors.push(`${where}: operator "${cond.operator}" is not allowed for ${field.type} field "${cond.field}". Allowed: ${allowed.join(", ")}.`);
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
if (NO_VALUE_OPERATORS.has(cond.operator)) return;
|
|
22
|
+
if (SINGLE_VALUE_OPERATORS.has(cond.operator)) {
|
|
23
|
+
if (cond.value === void 0 || cond.value === null || cond.value === "") {
|
|
24
|
+
errors.push(`${where}: operator "${cond.operator}" on "${cond.field}" requires a value.`);
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
if (cond.operator !== "contains" && cond.operator !== "starts_with") {
|
|
28
|
+
const formatError = checkValueFormat(field.type, cond.value);
|
|
29
|
+
if (formatError) errors.push(`${where}: "${cond.field}" ${formatError}.`);
|
|
30
|
+
}
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
if (MULTI_VALUE_OPERATORS.has(cond.operator)) {
|
|
34
|
+
const values = cond.values ?? [];
|
|
35
|
+
if (cond.operator === "between" && values.length !== 2) {
|
|
36
|
+
errors.push(`${where}: "between" on "${cond.field}" requires exactly 2 values (low, high), got ${values.length}.`);
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
if (cond.operator !== "between" && (values.length < 1 || values.length > SearchConstants.IN_CLAUSE_MAX_ELEMENTS)) {
|
|
40
|
+
errors.push(`${where}: "${cond.operator}" on "${cond.field}" requires 1-${SearchConstants.IN_CLAUSE_MAX_ELEMENTS} values, got ${values.length}.`);
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
for (const v of values) {
|
|
44
|
+
const formatError = checkValueFormat(field.type, v);
|
|
45
|
+
if (formatError) errors.push(`${where}: "${cond.field}" ${formatError}.`);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Validates an intent against the schema context, enforcing the same gates
|
|
51
|
+
* the manual UIs apply (searchable / orderable / aggregatable / groupBy
|
|
52
|
+
* required for aggregates). Returns [] when the intent is safe to compile.
|
|
53
|
+
* Error strings are written for the model — precise enough that a single
|
|
54
|
+
* repair round can fix the intent.
|
|
55
|
+
*/
|
|
56
|
+
const validateIntent = (intent, ctx, options) => {
|
|
57
|
+
const errors = [];
|
|
58
|
+
const columnNames = new Set(ctx.columns.map((c) => c.name));
|
|
59
|
+
if (intent.filters) {
|
|
60
|
+
if (!isLogicalOp(intent.filters.op)) errors.push("filters.op is required and must be \"and\" or \"or\".");
|
|
61
|
+
intent.filters.conditions?.forEach((cond, i) => validateCondition(cond, ctx, options, errors, `filters.conditions[${i}]`));
|
|
62
|
+
intent.filters.groups?.forEach((group, gi) => {
|
|
63
|
+
if (!isLogicalOp(group?.op)) errors.push(`filters.groups[${gi}].op must be "and" or "or".`);
|
|
64
|
+
if (!group.conditions?.length) {
|
|
65
|
+
errors.push(`filters.groups[${gi}]: a group must contain at least one condition.`);
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
group.conditions.forEach((cond, i) => validateCondition(cond, ctx, options, errors, `filters.groups[${gi}].conditions[${i}]`));
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
if (intent.sorts) intent.sorts.forEach((sort, i) => {
|
|
72
|
+
const col = ctx.columns.find((c) => c.name === sort.field);
|
|
73
|
+
if (!col) errors.push(`sorts[${i}]: "${sort.field}" is not a column on ${ctx.entityName}.`);
|
|
74
|
+
else if (!col.orderable) errors.push(`sorts[${i}]: column "${sort.field}" is not sortable.`);
|
|
75
|
+
});
|
|
76
|
+
if (intent.grouping) {
|
|
77
|
+
const { groupBy = [], aggregates = [] } = intent.grouping;
|
|
78
|
+
groupBy.forEach((name, i) => {
|
|
79
|
+
if (!columnNames.has(name)) errors.push(`grouping.groupBy[${i}]: "${name}" is not a column on ${ctx.entityName}.`);
|
|
80
|
+
});
|
|
81
|
+
aggregates.forEach((agg, i) => {
|
|
82
|
+
const col = ctx.columns.find((c) => c.name === agg.field);
|
|
83
|
+
if (!col) errors.push(`grouping.aggregates[${i}]: "${agg.field}" is not a column on ${ctx.entityName}.`);
|
|
84
|
+
else if (!col.aggregatable) errors.push(`grouping.aggregates[${i}]: column "${agg.field}" does not support aggregation.`);
|
|
85
|
+
});
|
|
86
|
+
if (aggregates.length > 0 && groupBy.length === 0) errors.push("grouping: aggregates require at least one groupBy column.");
|
|
87
|
+
}
|
|
88
|
+
if (intent.columns) for (const key of [
|
|
89
|
+
"showOnly",
|
|
90
|
+
"show",
|
|
91
|
+
"hide"
|
|
92
|
+
]) intent.columns[key]?.forEach((name, i) => {
|
|
93
|
+
if (!columnNames.has(name)) errors.push(`columns.${key}[${i}]: "${name}" is not a column on ${ctx.entityName}.`);
|
|
94
|
+
});
|
|
95
|
+
if (intent.pageSize !== void 0 && intent.pageSize !== null) {
|
|
96
|
+
if (!Number.isInteger(intent.pageSize) || intent.pageSize < 1 || intent.pageSize > SearchConstants.MAX_PAGE_SIZE) errors.push(`pageSize must be an integer between 1 and ${SearchConstants.MAX_PAGE_SIZE}.`);
|
|
97
|
+
}
|
|
98
|
+
return errors;
|
|
99
|
+
};
|
|
100
|
+
//#endregion
|
|
101
|
+
export { validateIntent };
|
|
102
|
+
|
|
103
|
+
//# sourceMappingURL=validate.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate.mjs","names":["SearchConstants","MULTI_VALUE_OPERATORS","NO_VALUE_OPERATORS","OPERATORS_BY_TYPE","SINGLE_VALUE_OPERATORS","checkValueFormat","AiCondition","AiSearchSchemaContext","QueryIntent","ValidateIntentOptions","explainUnknownField","fieldPath","isLogicalOp","op","validateCondition","cond","ctx","options","errors","where","field","trim","push","filterFields","find","f","path","explained","allowed","type","default","includes","operator","join","has","value","undefined","formatError","values","length","IN_CLAUSE_MAX_ELEMENTS","v","validateIntent","intent","columnNames","Set","columns","map","c","name","filters","conditions","forEach","i","groups","group","gi","sorts","sort","col","entityName","orderable","grouping","groupBy","aggregates","agg","aggregatable","key","const","pageSize","Number","isInteger","MAX_PAGE_SIZE"],"sources":["../../src/searchIntent/validate.ts"],"sourcesContent":["import { SearchConstants } from '@univerus/udp-stencil-component-library';\nimport {\n MULTI_VALUE_OPERATORS,\n NO_VALUE_OPERATORS,\n OPERATORS_BY_TYPE,\n SINGLE_VALUE_OPERATORS,\n checkValueFormat\n} from './operators';\nimport type { AiCondition, AiSearchSchemaContext, QueryIntent } from './types';\n\nexport interface ValidateIntentOptions {\n /**\n * Host hook to explain an unknown filter field path more precisely than the\n * generic message — e.g. Data Builder resolves navigation chains to tell the\n * model the valid leaf fields on the target entity so a repair round can\n * succeed in one shot. Return undefined to fall back to the generic message.\n */\n explainUnknownField?: (fieldPath: string) => string | undefined;\n}\n\nconst isLogicalOp = (op: unknown): op is 'and' | 'or' =>\n op === 'and' || op === 'or';\n\nconst validateCondition = (\n cond: AiCondition,\n ctx: AiSearchSchemaContext,\n options: ValidateIntentOptions | undefined,\n errors: string[],\n where: string\n): void => {\n // The tool schema requires `field`, but tool arguments are model output:\n // handle a missing one here rather than handing undefined to the host's\n // explainUnknownField hook, which reasonably assumes a path string.\n if (typeof cond?.field !== 'string' || cond.field.trim() === '') {\n errors.push(\n `${where}: \"field\" is required — name the field with a path from the filterable fields list exactly as written.`\n );\n return;\n }\n\n const field = ctx.filterFields.find((f) => f.path === cond.field);\n if (!field) {\n const explained = options?.explainUnknownField?.(cond.field);\n errors.push(\n `${where}: ${explained ?? `\"${cond.field}\" is not a filterable field. Use a path from the filterable fields list exactly as written.`}`\n );\n return;\n }\n\n const allowed = OPERATORS_BY_TYPE[field.type] ?? OPERATORS_BY_TYPE.default;\n if (!allowed.includes(cond.operator)) {\n errors.push(\n `${where}: operator \"${cond.operator}\" is not allowed for ${field.type} field \"${cond.field}\". Allowed: ${allowed.join(', ')}.`\n );\n return;\n }\n\n if (NO_VALUE_OPERATORS.has(cond.operator)) return;\n\n if (SINGLE_VALUE_OPERATORS.has(cond.operator)) {\n if (cond.value === undefined || cond.value === null || cond.value === '') {\n errors.push(\n `${where}: operator \"${cond.operator}\" on \"${cond.field}\" requires a value.`\n );\n return;\n }\n // contains/starts_with do substring matching — format checks would reject partial values\n if (cond.operator !== 'contains' && cond.operator !== 'starts_with') {\n const formatError = checkValueFormat(field.type, cond.value);\n if (formatError) errors.push(`${where}: \"${cond.field}\" ${formatError}.`);\n }\n return;\n }\n\n if (MULTI_VALUE_OPERATORS.has(cond.operator)) {\n const values = cond.values ?? [];\n if (cond.operator === 'between' && values.length !== 2) {\n errors.push(\n `${where}: \"between\" on \"${cond.field}\" requires exactly 2 values (low, high), got ${values.length}.`\n );\n return;\n }\n if (\n cond.operator !== 'between' &&\n (values.length < 1 ||\n values.length > SearchConstants.IN_CLAUSE_MAX_ELEMENTS)\n ) {\n errors.push(\n `${where}: \"${cond.operator}\" on \"${cond.field}\" requires 1-${SearchConstants.IN_CLAUSE_MAX_ELEMENTS} values, got ${values.length}.`\n );\n return;\n }\n for (const v of values) {\n const formatError = checkValueFormat(field.type, v);\n if (formatError) errors.push(`${where}: \"${cond.field}\" ${formatError}.`);\n }\n }\n};\n\n/**\n * Validates an intent against the schema context, enforcing the same gates\n * the manual UIs apply (searchable / orderable / aggregatable / groupBy\n * required for aggregates). Returns [] when the intent is safe to compile.\n * Error strings are written for the model — precise enough that a single\n * repair round can fix the intent.\n */\nexport const validateIntent = (\n intent: QueryIntent,\n ctx: AiSearchSchemaContext,\n options?: ValidateIntentOptions\n): string[] => {\n const errors: string[] = [];\n const columnNames = new Set(ctx.columns.map((c) => c.name));\n\n if (intent.filters) {\n // `op` decides how the whole filter state joins; downstream (compile, diff)\n // it is read as given, so a missing one is an error, not a silent \"and\".\n if (!isLogicalOp(intent.filters.op)) {\n errors.push('filters.op is required and must be \"and\" or \"or\".');\n }\n intent.filters.conditions?.forEach((cond, i) =>\n validateCondition(cond, ctx, options, errors, `filters.conditions[${i}]`)\n );\n intent.filters.groups?.forEach((group, gi) => {\n if (!isLogicalOp(group?.op)) {\n errors.push(`filters.groups[${gi}].op must be \"and\" or \"or\".`);\n }\n if (!group.conditions?.length) {\n errors.push(\n `filters.groups[${gi}]: a group must contain at least one condition.`\n );\n return;\n }\n group.conditions.forEach((cond, i) =>\n validateCondition(\n cond,\n ctx,\n options,\n errors,\n `filters.groups[${gi}].conditions[${i}]`\n )\n );\n });\n }\n\n if (intent.sorts) {\n intent.sorts.forEach((sort, i) => {\n const col = ctx.columns.find((c) => c.name === sort.field);\n if (!col) {\n errors.push(\n `sorts[${i}]: \"${sort.field}\" is not a column on ${ctx.entityName}.`\n );\n } else if (!col.orderable) {\n errors.push(`sorts[${i}]: column \"${sort.field}\" is not sortable.`);\n }\n });\n }\n\n if (intent.grouping) {\n const { groupBy = [], aggregates = [] } = intent.grouping;\n groupBy.forEach((name, i) => {\n if (!columnNames.has(name))\n errors.push(\n `grouping.groupBy[${i}]: \"${name}\" is not a column on ${ctx.entityName}.`\n );\n });\n aggregates.forEach((agg, i) => {\n const col = ctx.columns.find((c) => c.name === agg.field);\n if (!col) {\n errors.push(\n `grouping.aggregates[${i}]: \"${agg.field}\" is not a column on ${ctx.entityName}.`\n );\n } else if (!col.aggregatable) {\n errors.push(\n `grouping.aggregates[${i}]: column \"${agg.field}\" does not support aggregation.`\n );\n }\n });\n if (aggregates.length > 0 && groupBy.length === 0) {\n errors.push('grouping: aggregates require at least one groupBy column.');\n }\n }\n\n if (intent.columns) {\n for (const key of ['showOnly', 'show', 'hide'] as const) {\n intent.columns[key]?.forEach((name, i) => {\n if (!columnNames.has(name))\n errors.push(\n `columns.${key}[${i}]: \"${name}\" is not a column on ${ctx.entityName}.`\n );\n });\n }\n }\n\n if (intent.pageSize !== undefined && intent.pageSize !== null) {\n if (\n !Number.isInteger(intent.pageSize) ||\n intent.pageSize < 1 ||\n intent.pageSize > SearchConstants.MAX_PAGE_SIZE\n ) {\n errors.push(\n `pageSize must be an integer between 1 and ${SearchConstants.MAX_PAGE_SIZE}.`\n );\n }\n }\n\n return errors;\n};\n"],"mappings":";;;AAoBA,MAAMY,eAAeC,OACnBA,OAAO,SAASA,OAAO;AAEzB,MAAMC,qBACJC,MACAC,KACAC,SACAC,QACAC,UACS;AAIT,KAAI,OAAOJ,MAAMK,UAAU,YAAYL,KAAKK,MAAMC,MAAM,KAAK,IAAI;AAC/DH,SAAOI,KACL,GAAGH,MAAK,wGACT;AACD;;CAGF,MAAMC,QAAQJ,IAAIO,aAAaC,MAAMC,MAAMA,EAAEC,SAASX,KAAKK,MAAM;AACjE,KAAI,CAACA,OAAO;EACV,MAAMO,YAAYV,SAASP,sBAAsBK,KAAKK,MAAM;AAC5DF,SAAOI,KACL,GAAGH,MAAK,IAAKQ,aAAa,IAAIZ,KAAKK,MAAK,+F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{"version":3,"file":"inquiryStore.d.ts","sourceRoot":"","sources":["../../src/stores/inquiryStore.ts"],"names":[],"mappings":"AAIA,
|
|
1
|
+
{"version":3,"file":"inquiryStore.d.ts","sourceRoot":"","sources":["../../src/stores/inquiryStore.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,QAAQ;IACvB,cAAc,EAAE,OAAO,CAAC;IACxB,qBAAqB,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAClD;AACD,MAAM,WAAW,WAAW;IAC1B,CAAC,WAAW,EAAE,MAAM,GAAG,QAAQ,CAAC;CACjC;AAED,UAAU,YAAY;IACpB,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC,sBAAsB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,WAAW,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,CAAC;IAC5C,cAAc,EAAE,CAAC,WAAW,EAAE,WAAW,KAAK,IAAI,CAAC;IACnD,gBAAgB,EAAE,OAAO,CAAC;IAC1B,mBAAmB,EAAE,CAAC,gBAAgB,EAAE,OAAO,KAAK,IAAI,CAAC;IACzD,iBAAiB,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;IAC9C,oBAAoB,EAAE,CAAC,iBAAiB,EAAE,OAAO,KAAK,IAAI,CAAC;CAC5D;AAED,eAAO,MAAM,eAAe;;;;EAkB3B,CAAC;AAEF,eAAO,MAAM,kCAAkC,YAkB9C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inquiryStore.mjs","names":["useEffect","create","devtools","Workflow","inWorkflowMode","currentWorkflowPlayId","WorkflowMap","containerId","InquiryState","title","setInquiryToolbarTitle","workflowMap","setWorkflowMap","workflowStarting","setWorkflowStarting","inquiryMenuHidden","setInquiryMenuHidden","useInquiryStore","set","state","useSetInitialInquiryMenuVisibility","$","_c","searchParams","URLSearchParams","window","location","search","has","get","_temp","t0","t1"],"sources":["../../src/stores/inquiryStore.ts"],"sourcesContent":["import { useEffect } from 'react';\nimport { create } from 'zustand';\nimport { devtools } from 'zustand/middleware';\n\
|
|
1
|
+
{"version":3,"file":"inquiryStore.mjs","names":["useEffect","create","devtools","Workflow","inWorkflowMode","currentWorkflowPlayId","WorkflowMap","containerId","InquiryState","title","setInquiryToolbarTitle","workflowMap","setWorkflowMap","workflowStarting","setWorkflowStarting","inquiryMenuHidden","setInquiryMenuHidden","useInquiryStore","set","state","useSetInitialInquiryMenuVisibility","$","_c","searchParams","URLSearchParams","window","location","search","has","get","_temp","t0","t1"],"sources":["../../src/stores/inquiryStore.ts"],"sourcesContent":["import { useEffect } from 'react';\nimport { create } from 'zustand';\nimport { devtools } from 'zustand/middleware';\n\nexport interface Workflow {\n inWorkflowMode: boolean;\n currentWorkflowPlayId: string | null | undefined;\n}\nexport interface WorkflowMap {\n [containerId: string]: Workflow;\n}\n\ninterface InquiryState {\n title: string | null | undefined;\n setInquiryToolbarTitle: (title: string) => void;\n workflowMap: WorkflowMap | null | undefined;\n setWorkflowMap: (workflowMap: WorkflowMap) => void;\n workflowStarting: boolean;\n setWorkflowStarting: (workflowStarting: boolean) => void;\n inquiryMenuHidden: boolean | null | undefined;\n setInquiryMenuHidden: (inquiryMenuHidden: boolean) => void;\n}\n\nexport const useInquiryStore = create<InquiryState>()(\n devtools((set) => ({\n title: '',\n setInquiryToolbarTitle: (title) => set((state) => ({ title: title })),\n workflowMap: {},\n setWorkflowMap: (workflowMap) =>\n set((state) => ({\n workflowMap: { ...state.workflowMap, ...workflowMap }\n })),\n workflowStarting: false,\n setWorkflowStarting: (workflowStarting) =>\n set((state) => ({ workflowStarting })),\n inquiryMenuHidden: false,\n setInquiryMenuHidden: (inquiryMenuHidden) =>\n set((state) => ({\n inquiryMenuHidden: inquiryMenuHidden\n }))\n }))\n);\n\nexport const useSetInitialInquiryMenuVisibility = () => {\n const searchParams = new URLSearchParams(window.location.search);\n const inquiryMenuHidden =\n searchParams.has('inquiryMenuHidden') === true\n ? searchParams.get('inquiryMenuHidden') === 'true'\n ? true\n : false\n : false;\n\n const setInquiryMenuHidden = useInquiryStore(\n (state) => state.setInquiryMenuHidden\n );\n\n useEffect(() => {\n if (inquiryMenuHidden) {\n setInquiryMenuHidden(true);\n }\n }, [setInquiryMenuHidden, inquiryMenuHidden]);\n};\n"],"mappings":";;;;;AAuBA,MAAaiB,kBAAkBhB,QAAsB,CACnDC,UAAUgB,SAAS;CACjBT,OAAO;CACPC,yBAAyBD,UAAUS,KAAKC,WAAW,EAASV,OAAO,EAAE;CACrEE,aAAa,EAAE;CACfC,iBAAiBD,gBACfO,KAAKC,WAAW,EACdR,aAAa;EAAE,GAAGQ,MAAMR;EAAa,GAAGA;EAAY,EACrD,EAAE;CACLE,kBAAkB;CAClBC,sBAAsBD,qBACpBK,KAAKC,WAAW,EAAEN,kBAAkB,EAAE;CACxCE,mBAAmB;CACnBC,uBAAuBD,sBACrBG,KAAKC,WAAW,EACKJ,mBACpB,EAAC;CACL,EACH,CAAC;AAED,MAAaK,2CAAqC;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAChD,MAAAC,eAAqB,IAAIC,gBAAgBC,OAAMC,SAASC,OAAQ;CAChE,MAAAZ,oBACEQ,aAAYK,IAAK,oBAAoB,KAAK,OACtCL,aAAYM,IAAK,oBAAoB,KAAK,SAA1C,OAAA,QADJ;CAMF,MAAAb,uBAA6BC,gBAC3Ba,MACD;CAAC,IAAAC;CAAA,IAAAC;AAAA,KAAAX,EAAA,OAAAL,sBAAA;AAEQe,aAAA;AACR,OAAIhB,kBACFC,sBAAqB,KAAK;;AAE3BgB,OAAA,CAAChB,sBAAsBD,kBAAkB;AAAAM,IAAA,KAAAL;AAAAK,IAAA,KAAAU;AAAAV,IAAA,KAAAW;QAAA;AAAAD,OAAAV,EAAA;AAAAW,OAAAX,EAAA;;AAJ5CrB,WAAU+B,IAIPC,GAA0C;;AAjBG,SAAAF,MAAAX,OAAA;AAAA,QAUnCA,MAAKH"}
|
|
@@ -26,7 +26,7 @@ export const MyExportsPage = (props) => {
|
|
|
26
26
|
const [noDownloadMethod, setNoDownloadMethod] = useState(false);
|
|
27
27
|
const { handleErrorSnackbar, handleSuccessSnackbar } = useHandleAxiosSnackbar();
|
|
28
28
|
const [{ data: products, loading: productsLoading }] = useAxiosGet(ConfigService.tenantV2ApiUrl, `tenant/products?tenantId=${user === null || user === void 0 ? void 0 : user.currentTenantId}&isSubscribable=${!((_a = user === null || user === void 0 ? void 0 : user.can) === null || _a === void 0 ? void 0 : _a.CAN_MANAGE_CATALOGS_FOR_UNSUBSCRIBABLE_PRODUCTS)}`, {}, !user);
|
|
29
|
-
const [{ data: apiCatalog, loading: catalogLoading, error: catalogError }] = useAxiosGet(ConfigService.integrationV1ApiUrl, `tenantProductApiCatalogBase/tenant/${user === null || user === void 0 ? void 0 : user.currentTenantId}/product/${productId ? productId : product === null || product === void 0 ? void 0 : product.productId}`, {}, !(product || productId),
|
|
29
|
+
const [{ data: apiCatalog, loading: catalogLoading, error: catalogError }] = useAxiosGet(ConfigService.integrationV1ApiUrl, `tenantProductApiCatalogBase/tenant/${user === null || user === void 0 ? void 0 : user.currentTenantId}/product/${productId ? productId : product === null || product === void 0 ? void 0 : product.productId}`, {}, !(product || productId), true);
|
|
30
30
|
const [{ data: udpJobEntity, loading: jobEntityLoading }] = useAxiosGet(ConfigService.integrationV1ApiUrl, `apicatalog/${apiCatalog === null || apiCatalog === void 0 ? void 0 : apiCatalog.apiCatalogId}/promotedMethodEntities/udpJob/product/${apiCatalog === null || apiCatalog === void 0 ? void 0 : apiCatalog.productId}?compareSanitizedName=true`, {}, !(apiCatalog === null || apiCatalog === void 0 ? void 0 : apiCatalog.productId) || !(apiCatalog === null || apiCatalog === void 0 ? void 0 : apiCatalog.apiCatalogId), false);
|
|
31
31
|
const refetchfileResultData = useCallback(async (selectedRecord) => {
|
|
32
32
|
var _a, _b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":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AC,eAAe,CAAC,KAAK,CAAC,EACzC,UAAU,EAAE,gBAAgB,IAAI,mBAAmB,EACnD,QAAQ,EAAE,mBAAmB,EAC7B,SAAS,UAER,gBAAgB,CAAC,CAAC,CAAC,CAClB,oBAAC,YAAY,IACX,YAAY,EAAE,CAAC,CAAC,4CAA4C,EAAE;YAC5D,YAAY,EAAE,kDAAkD;SACjE,CAAC,EACF,SAAS,EAAE,IAAI,EACf,aAAa,EAAE,OAAO,GACtB,CACH,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,CACxB,oBAAC,iBAAiB,IAChB,WAAW,EAAE,CAAC,CAAC,6BAA6B,EAAE,EAAE,YAAY,EAAE,2BAA2B,EAAE,CAAC,GAC5F,CACH,CAAC,CAAC,CAAC,CACF,oBAAC,iBAAiB,IAChB,IAAI,EAAE,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,yBAAyB,EAC9D,WAAW,EACT,CAAC,gBAAgB;YACjB,CAAC,CAAC,oCAAoC,EAAE,EAAE,YAAY,EAAE,4BAA4B,EAAE,CAAC,GAEzF,CACH,CACY,CACX,CACP,CAAC;AAAA,CACH,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -39,7 +39,7 @@ const MyExportsPage = (props) => {
|
|
|
39
39
|
t2 = {};
|
|
40
40
|
$[1] = t2;
|
|
41
41
|
} else t2 = $[1];
|
|
42
|
-
const [t3] = useAxiosGet(ConfigService.integrationV1ApiUrl, `tenantProductApiCatalogBase/tenant/${user?.currentTenantId}/product/${productId ? productId : product?.productId}`, t2, !(product || productId),
|
|
42
|
+
const [t3] = useAxiosGet(ConfigService.integrationV1ApiUrl, `tenantProductApiCatalogBase/tenant/${user?.currentTenantId}/product/${productId ? productId : product?.productId}`, t2, !(product || productId), true);
|
|
43
43
|
const { data: apiCatalog, loading: catalogLoading, error: catalogError } = t3;
|
|
44
44
|
let t4;
|
|
45
45
|
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|