udp-react-enterprise-component-library 27.0.0-next.12 → 27.0.0-next.13
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/UdpIconPicker.d.ts +4 -1
- package/dist/UI/fluent-web-components/UdpIconPicker.d.ts.map +1 -1
- package/dist/UI/fluent-web-components/UdpIconPicker.js +2 -2
- package/dist/UI/fluent-web-components/UdpIconPicker.js.map +1 -1
- package/dist/UI/fluent-web-components/UdpIconPicker.mjs +32 -28
- package/dist/UI/fluent-web-components/UdpIconPicker.mjs.map +1 -1
- package/dist/UI/fluent-web-components/UdpLink.d.ts +6 -0
- 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/types.d.ts +2 -0
- package/dist/UI/fluent-web-components/types.d.ts.map +1 -1
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.d.ts +16 -3
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.d.ts.map +1 -1
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.js +36 -13
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.js.map +1 -1
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.mjs +119 -62
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.mjs.map +1 -1
- package/dist/UI/widgets/library/InquiryFindRecordsWidget/index.mjs +3 -2
- package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.d.ts +9 -2
- package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.d.ts.map +1 -1
- package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.js +18 -18
- package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.js.map +1 -1
- package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.mjs +79 -67
- package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.mjs.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.d.ts +8 -2
- package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.d.ts.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.js +32 -16
- package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.js.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.mjs +129 -102
- package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.mjs.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.d.ts +3 -2
- package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.d.ts.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.js +11 -12
- package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.js.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.mjs +6 -4
- package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.mjs.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.d.ts +2 -19
- package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.d.ts.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.js +4 -5
- package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.js.map +1 -1
- package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.mjs +5 -4
- package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.mjs.map +1 -1
- package/dist/actionPanels/index.d.ts +0 -2
- package/dist/actionPanels/index.d.ts.map +1 -1
- package/dist/actionPanels/index.js +0 -2
- package/dist/actionPanels/index.js.map +1 -1
- package/dist/actionPanels/panelActionFields.d.ts +9 -26
- package/dist/actionPanels/panelActionFields.d.ts.map +1 -1
- package/dist/actionPanels/panelActionFields.js +32 -55
- package/dist/actionPanels/panelActionFields.js.map +1 -1
- package/dist/actionPanels/panelActionFields.mjs +159 -375
- package/dist/actionPanels/panelActionFields.mjs.map +1 -1
- package/dist/actionPanels/panelOperations.d.ts +15 -41
- package/dist/actionPanels/panelOperations.d.ts.map +1 -1
- package/dist/actionPanels/panelOperations.js +51 -89
- package/dist/actionPanels/panelOperations.js.map +1 -1
- package/dist/actionPanels/panelOperations.mjs +37 -92
- package/dist/actionPanels/panelOperations.mjs.map +1 -1
- package/dist/domain/actionPanel/actionTypeMeta.d.ts +15 -2
- package/dist/domain/actionPanel/actionTypeMeta.d.ts.map +1 -1
- package/dist/domain/actionPanel/actionTypeMeta.js +21 -2
- package/dist/domain/actionPanel/actionTypeMeta.js.map +1 -1
- package/dist/domain/actionPanel/actionTypeMeta.mjs +18 -3
- package/dist/domain/actionPanel/actionTypeMeta.mjs.map +1 -1
- package/dist/domain/actionPanel/buttonOrder.d.ts +67 -0
- package/dist/domain/actionPanel/buttonOrder.d.ts.map +1 -0
- package/dist/domain/actionPanel/buttonOrder.js +105 -0
- package/dist/domain/actionPanel/buttonOrder.js.map +1 -0
- package/dist/domain/actionPanel/buttonOrder.mjs +90 -0
- package/dist/domain/actionPanel/buttonOrder.mjs.map +1 -0
- package/dist/domain/actionPanel/index.d.ts +1 -0
- package/dist/domain/actionPanel/index.d.ts.map +1 -1
- package/dist/domain/actionPanel/index.js +1 -0
- package/dist/domain/actionPanel/index.js.map +1 -1
- package/dist/domain/actionPanel/index.mjs +4 -3
- package/dist/domain/actionPanel/serialize.d.ts +6 -2
- package/dist/domain/actionPanel/serialize.d.ts.map +1 -1
- package/dist/domain/actionPanel/serialize.js +10 -3
- package/dist/domain/actionPanel/serialize.js.map +1 -1
- package/dist/domain/actionPanel/serialize.mjs +7 -3
- package/dist/domain/actionPanel/serialize.mjs.map +1 -1
- package/dist/domain/actionPanel/types.d.ts +24 -8
- package/dist/domain/actionPanel/types.d.ts.map +1 -1
- package/dist/domain/actionPanel/types.js.map +1 -1
- package/dist/domain/actionPanel/types.mjs.map +1 -1
- package/dist/domain/inquiryTree/describe.d.ts +15 -3
- package/dist/domain/inquiryTree/describe.d.ts.map +1 -1
- package/dist/domain/inquiryTree/describe.js +32 -28
- package/dist/domain/inquiryTree/describe.js.map +1 -1
- package/dist/domain/inquiryTree/describe.mjs +34 -16
- package/dist/domain/inquiryTree/describe.mjs.map +1 -1
- package/dist/domain/inquiryTree/displayTree.d.ts +75 -97
- package/dist/domain/inquiryTree/displayTree.d.ts.map +1 -1
- package/dist/domain/inquiryTree/displayTree.js +418 -551
- package/dist/domain/inquiryTree/displayTree.js.map +1 -1
- package/dist/domain/inquiryTree/displayTree.mjs +345 -414
- package/dist/domain/inquiryTree/displayTree.mjs.map +1 -1
- package/dist/domain/inquiryTree/groups.d.ts +2 -0
- package/dist/domain/inquiryTree/groups.d.ts.map +1 -1
- package/dist/domain/inquiryTree/groups.js.map +1 -1
- package/dist/domain/inquiryTree/groups.mjs.map +1 -1
- package/dist/domain/inquiryTree/index.d.ts +1 -1
- package/dist/domain/inquiryTree/index.d.ts.map +1 -1
- package/dist/domain/inquiryTree/index.js +1 -1
- package/dist/domain/inquiryTree/index.js.map +1 -1
- package/dist/domain/inquiryTree/index.mjs +12 -12
- package/dist/domain/inquiryTree/lazyLoad.d.ts +20 -129
- package/dist/domain/inquiryTree/lazyLoad.d.ts.map +1 -1
- package/dist/domain/inquiryTree/lazyLoad.js +48 -233
- package/dist/domain/inquiryTree/lazyLoad.js.map +1 -1
- package/dist/domain/inquiryTree/lazyLoad.mjs +32 -187
- package/dist/domain/inquiryTree/lazyLoad.mjs.map +1 -1
- package/dist/domain/inquiryTree/legalChildren.d.ts +13 -14
- package/dist/domain/inquiryTree/legalChildren.d.ts.map +1 -1
- package/dist/domain/inquiryTree/legalChildren.js +21 -42
- package/dist/domain/inquiryTree/legalChildren.js.map +1 -1
- package/dist/domain/inquiryTree/legalChildren.mjs +19 -37
- package/dist/domain/inquiryTree/legalChildren.mjs.map +1 -1
- package/dist/domain/inquiryTree/names.d.ts +38 -0
- package/dist/domain/inquiryTree/names.d.ts.map +1 -0
- package/dist/domain/inquiryTree/names.js +64 -0
- package/dist/domain/inquiryTree/names.js.map +1 -0
- package/dist/domain/inquiryTree/names.mjs +56 -0
- package/dist/domain/inquiryTree/names.mjs.map +1 -0
- package/dist/domain/inquiryTree/operations.d.ts +6 -2
- package/dist/domain/inquiryTree/operations.d.ts.map +1 -1
- package/dist/domain/inquiryTree/operations.js +17 -16
- package/dist/domain/inquiryTree/operations.js.map +1 -1
- package/dist/domain/inquiryTree/operations.mjs +14 -11
- package/dist/domain/inquiryTree/operations.mjs.map +1 -1
- package/dist/domain/inquiryTree/rules.d.ts +3 -4
- package/dist/domain/inquiryTree/rules.d.ts.map +1 -1
- package/dist/domain/inquiryTree/rules.js +3 -13
- package/dist/domain/inquiryTree/rules.js.map +1 -1
- package/dist/domain/inquiryTree/rules.mjs +3 -9
- package/dist/domain/inquiryTree/rules.mjs.map +1 -1
- package/dist/domain/inquiryTree/runtime.d.ts +23 -16
- package/dist/domain/inquiryTree/runtime.d.ts.map +1 -1
- package/dist/domain/inquiryTree/runtime.js +46 -54
- package/dist/domain/inquiryTree/runtime.js.map +1 -1
- package/dist/domain/inquiryTree/runtime.mjs +31 -26
- package/dist/domain/inquiryTree/runtime.mjs.map +1 -1
- package/dist/domain/inquiryTree/serialize.d.ts +20 -29
- package/dist/domain/inquiryTree/serialize.d.ts.map +1 -1
- package/dist/domain/inquiryTree/serialize.js +93 -205
- package/dist/domain/inquiryTree/serialize.js.map +1 -1
- package/dist/domain/inquiryTree/serialize.mjs +89 -180
- package/dist/domain/inquiryTree/serialize.mjs.map +1 -1
- package/dist/domain/inquiryTree/types.d.ts +146 -65
- package/dist/domain/inquiryTree/types.d.ts.map +1 -1
- package/dist/domain/inquiryTree/types.js +5 -0
- package/dist/domain/inquiryTree/types.js.map +1 -1
- package/dist/domain/inquiryTree/types.mjs +3 -1
- package/dist/domain/inquiryTree/types.mjs.map +1 -1
- package/dist/domain/inquiryTree/validate.d.ts +9 -2
- package/dist/domain/inquiryTree/validate.d.ts.map +1 -1
- package/dist/domain/inquiryTree/validate.js +30 -58
- package/dist/domain/inquiryTree/validate.js.map +1 -1
- package/dist/domain/inquiryTree/validate.mjs +29 -44
- package/dist/domain/inquiryTree/validate.mjs.map +1 -1
- package/dist/domain/inquiryTree/view.d.ts +8 -12
- package/dist/domain/inquiryTree/view.d.ts.map +1 -1
- package/dist/domain/inquiryTree/view.js +40 -66
- package/dist/domain/inquiryTree/view.js.map +1 -1
- package/dist/domain/inquiryTree/view.mjs +30 -60
- package/dist/domain/inquiryTree/view.mjs.map +1 -1
- package/dist/domain/inquiryTree/waveLoad.d.ts +32 -48
- package/dist/domain/inquiryTree/waveLoad.d.ts.map +1 -1
- package/dist/domain/inquiryTree/waveLoad.js +75 -90
- package/dist/domain/inquiryTree/waveLoad.js.map +1 -1
- package/dist/domain/inquiryTree/waveLoad.mjs +54 -60
- package/dist/domain/inquiryTree/waveLoad.mjs.map +1 -1
- package/dist/domain/inquiryTree/wireString.d.ts +5 -0
- package/dist/domain/inquiryTree/wireString.d.ts.map +1 -1
- package/dist/domain/inquiryTree/wireString.js +11 -0
- package/dist/domain/inquiryTree/wireString.js.map +1 -1
- package/dist/domain/inquiryTree/wireString.mjs +10 -1
- package/dist/domain/inquiryTree/wireString.mjs.map +1 -1
- package/dist/domain/nodeView/index.mjs +2 -2
- package/dist/domain/nodeView/model.d.ts +35 -30
- package/dist/domain/nodeView/model.d.ts.map +1 -1
- package/dist/domain/nodeView/model.js +108 -69
- package/dist/domain/nodeView/model.js.map +1 -1
- package/dist/domain/nodeView/model.mjs +86 -36
- package/dist/domain/nodeView/model.mjs.map +1 -1
- package/dist/icons/legacyIconNames.d.ts.map +1 -1
- package/dist/icons/legacyIconNames.js +46 -1
- package/dist/icons/legacyIconNames.js.map +1 -1
- package/dist/icons/legacyIconNames.mjs +46 -1
- package/dist/icons/legacyIconNames.mjs.map +1 -1
- package/dist/index.mjs +10 -12
- package/dist/inquiry/Inquiry.d.ts +3 -0
- package/dist/inquiry/Inquiry.d.ts.map +1 -1
- package/dist/inquiry/Inquiry.js +3 -0
- package/dist/inquiry/Inquiry.js.map +1 -1
- package/dist/inquiry/Inquiry.mjs +3 -0
- package/dist/inquiry/Inquiry.mjs.map +1 -1
- package/dist/inquiry/v2/InquiryV2.d.ts +8 -6
- package/dist/inquiry/v2/InquiryV2.d.ts.map +1 -1
- package/dist/inquiry/v2/InquiryV2.js +45 -24
- package/dist/inquiry/v2/InquiryV2.js.map +1 -1
- package/dist/inquiry/v2/InquiryV2.mjs +108 -61
- package/dist/inquiry/v2/InquiryV2.mjs.map +1 -1
- package/dist/inquiry/v2/InquiryV2.module.css +60 -15
- package/dist/inquiry/v2/InquiryWorkspace.d.ts +9 -9
- package/dist/inquiry/v2/InquiryWorkspace.d.ts.map +1 -1
- package/dist/inquiry/v2/InquiryWorkspace.js +531 -408
- package/dist/inquiry/v2/InquiryWorkspace.js.map +1 -1
- package/dist/inquiry/v2/InquiryWorkspace.mjs +524 -408
- package/dist/inquiry/v2/InquiryWorkspace.mjs.map +1 -1
- package/dist/inquiry/v2/ai/InquiryV2Copilot.d.ts +3 -2
- package/dist/inquiry/v2/ai/InquiryV2Copilot.d.ts.map +1 -1
- package/dist/inquiry/v2/ai/InquiryV2Copilot.js +20 -37
- package/dist/inquiry/v2/ai/InquiryV2Copilot.js.map +1 -1
- package/dist/inquiry/v2/ai/InquiryV2Copilot.mjs +19 -31
- package/dist/inquiry/v2/ai/InquiryV2Copilot.mjs.map +1 -1
- package/dist/inquiry/v2/ai/copilotModel.d.ts +6 -14
- package/dist/inquiry/v2/ai/copilotModel.d.ts.map +1 -1
- package/dist/inquiry/v2/ai/copilotModel.js +35 -87
- package/dist/inquiry/v2/ai/copilotModel.js.map +1 -1
- package/dist/inquiry/v2/ai/copilotModel.mjs +23 -47
- package/dist/inquiry/v2/ai/copilotModel.mjs.map +1 -1
- package/dist/inquiry/v2/api/queries.d.ts +46 -73
- package/dist/inquiry/v2/api/queries.d.ts.map +1 -1
- package/dist/inquiry/v2/api/queries.js +151 -210
- package/dist/inquiry/v2/api/queries.js.map +1 -1
- package/dist/inquiry/v2/api/queries.mjs +227 -183
- package/dist/inquiry/v2/api/queries.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/ActionsCapability.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/ActionsCapability.js +103 -32
- package/dist/inquiry/v2/capabilities/actions/ActionsCapability.js.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/ActionsCapability.mjs +92 -32
- package/dist/inquiry/v2/capabilities/actions/ActionsCapability.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/ActionsCapability.module.css +8 -1
- package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.d.ts +20 -16
- package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.js +111 -68
- package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.js.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.mjs +108 -142
- package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/RetrieveSurface.mjs +1 -1
- package/dist/inquiry/v2/capabilities/actions/actionModel.d.ts +66 -50
- package/dist/inquiry/v2/capabilities/actions/actionModel.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/actionModel.js +141 -66
- package/dist/inquiry/v2/capabilities/actions/actionModel.js.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/actionModel.mjs +115 -53
- package/dist/inquiry/v2/capabilities/actions/actionModel.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.d.ts +26 -0
- package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.d.ts.map +1 -0
- package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.js +36 -0
- package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.js.map +1 -0
- package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.mjs +41 -0
- package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.mjs.map +1 -0
- package/dist/inquiry/v2/capabilities/actions/runAction.d.ts +3 -2
- package/dist/inquiry/v2/capabilities/actions/runAction.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/runAction.js +27 -23
- package/dist/inquiry/v2/capabilities/actions/runAction.js.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/runAction.mjs +26 -20
- package/dist/inquiry/v2/capabilities/actions/runAction.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/useHeaderFold.d.ts +20 -0
- package/dist/inquiry/v2/capabilities/actions/useHeaderFold.d.ts.map +1 -0
- package/dist/inquiry/v2/capabilities/actions/useHeaderFold.js +112 -0
- package/dist/inquiry/v2/capabilities/actions/useHeaderFold.js.map +1 -0
- package/dist/inquiry/v2/capabilities/actions/useHeaderFold.mjs +118 -0
- package/dist/inquiry/v2/capabilities/actions/useHeaderFold.mjs.map +1 -0
- package/dist/inquiry/v2/capabilities/actions/useSheetPanel.d.ts +25 -1
- package/dist/inquiry/v2/capabilities/actions/useSheetPanel.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/useSheetPanel.js +7 -4
- package/dist/inquiry/v2/capabilities/actions/useSheetPanel.js.map +1 -1
- package/dist/inquiry/v2/capabilities/actions/useSheetPanel.mjs +9 -4
- package/dist/inquiry/v2/capabilities/actions/useSheetPanel.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.d.ts +5 -3
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.js +11 -8
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.js.map +1 -1
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.mjs +13 -7
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.module.css +4 -4
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.d.ts +1 -1
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.js +20 -17
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.js.map +1 -1
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.mjs +101 -111
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.mjs.map +1 -1
- package/dist/inquiry/v2/capabilities/header/HeaderCapability.module.css +9 -6
- package/dist/inquiry/v2/capabilities/tabs/TabsCapability.d.ts +2 -1
- package/dist/inquiry/v2/capabilities/tabs/TabsCapability.d.ts.map +1 -1
- package/dist/inquiry/v2/capabilities/tabs/TabsCapability.js +9 -2
- package/dist/inquiry/v2/capabilities/tabs/TabsCapability.js.map +1 -1
- package/dist/inquiry/v2/capabilities/tabs/TabsCapability.mjs +18 -15
- package/dist/inquiry/v2/capabilities/tabs/TabsCapability.mjs.map +1 -1
- package/dist/inquiry/v2/index.d.ts +0 -1
- package/dist/inquiry/v2/index.d.ts.map +1 -1
- package/dist/inquiry/v2/index.js.map +1 -1
- package/dist/inquiry/v2/kernel/ActionRunnerContext.d.ts +3 -3
- package/dist/inquiry/v2/kernel/ActionRunnerContext.d.ts.map +1 -1
- package/dist/inquiry/v2/kernel/ActionRunnerContext.js +11 -5
- package/dist/inquiry/v2/kernel/ActionRunnerContext.js.map +1 -1
- package/dist/inquiry/v2/kernel/ActionRunnerContext.mjs +15 -12
- package/dist/inquiry/v2/kernel/ActionRunnerContext.mjs.map +1 -1
- package/dist/inquiry/v2/kernel/ReadOnlyContext.d.ts +3 -0
- package/dist/inquiry/v2/kernel/ReadOnlyContext.d.ts.map +1 -0
- package/dist/inquiry/v2/kernel/ReadOnlyContext.js +14 -0
- package/dist/inquiry/v2/kernel/ReadOnlyContext.js.map +1 -0
- package/dist/inquiry/v2/kernel/ReadOnlyContext.mjs +20 -0
- package/dist/inquiry/v2/kernel/ReadOnlyContext.mjs.map +1 -0
- package/dist/inquiry/v2/kernel/RecordContext.d.ts +2 -0
- package/dist/inquiry/v2/kernel/RecordContext.d.ts.map +1 -1
- package/dist/inquiry/v2/kernel/RecordContext.js.map +1 -1
- package/dist/inquiry/v2/kernel/RecordContext.mjs.map +1 -1
- package/dist/inquiry/v2/kernel/UdpNodeView.d.ts.map +1 -1
- package/dist/inquiry/v2/kernel/UdpNodeView.js +18 -13
- package/dist/inquiry/v2/kernel/UdpNodeView.js.map +1 -1
- package/dist/inquiry/v2/kernel/UdpNodeView.mjs +177 -140
- package/dist/inquiry/v2/kernel/UdpNodeView.mjs.map +1 -1
- package/dist/inquiry/v2/kernel/UdpNodeView.module.css +56 -5
- package/dist/inquiry/v2/kernel/capabilities.d.ts +0 -2
- package/dist/inquiry/v2/kernel/capabilities.d.ts.map +1 -1
- package/dist/inquiry/v2/kernel/capabilities.js.map +1 -1
- package/dist/inquiry/v2/kernel/capabilities.mjs.map +1 -1
- package/dist/inquiry/v2/landing/InquiryExplorePage.d.ts +26 -37
- package/dist/inquiry/v2/landing/InquiryExplorePage.d.ts.map +1 -1
- package/dist/inquiry/v2/landing/InquiryExplorePage.js +48 -57
- package/dist/inquiry/v2/landing/InquiryExplorePage.js.map +1 -1
- package/dist/inquiry/v2/landing/InquiryExplorePage.mjs +102 -106
- package/dist/inquiry/v2/landing/InquiryExplorePage.mjs.map +1 -1
- package/dist/inquiry/v2/landing/InquiryExplorePage.module.css +58 -6
- package/dist/inquiry/v2/landing/InquiryLanding.d.ts +3 -3
- package/dist/inquiry/v2/landing/InquiryLanding.d.ts.map +1 -1
- package/dist/inquiry/v2/landing/InquiryLanding.js +8 -3
- package/dist/inquiry/v2/landing/InquiryLanding.js.map +1 -1
- package/dist/inquiry/v2/landing/InquiryLanding.mjs +51 -35
- package/dist/inquiry/v2/landing/InquiryLanding.mjs.map +1 -1
- package/dist/inquiry/v2/landing/InquiryLanding.module.css +8 -0
- package/dist/inquiry/v2/page/UdpPageRenderer.d.ts +5 -1
- package/dist/inquiry/v2/page/UdpPageRenderer.d.ts.map +1 -1
- package/dist/inquiry/v2/page/UdpPageRenderer.js +13 -1
- package/dist/inquiry/v2/page/UdpPageRenderer.js.map +1 -1
- package/dist/inquiry/v2/page/UdpPageRenderer.mjs +36 -7
- package/dist/inquiry/v2/page/UdpPageRenderer.mjs.map +1 -1
- package/dist/inquiry/v2/search/InquirySearchPanel.d.ts +1 -7
- package/dist/inquiry/v2/search/InquirySearchPanel.d.ts.map +1 -1
- package/dist/inquiry/v2/search/InquirySearchPanel.js +6 -13
- package/dist/inquiry/v2/search/InquirySearchPanel.js.map +1 -1
- package/dist/inquiry/v2/search/InquirySearchPanel.mjs +4 -8
- package/dist/inquiry/v2/search/InquirySearchPanel.mjs.map +1 -1
- package/dist/inquiry/v2/search/RecordFinder.d.ts +30 -1
- package/dist/inquiry/v2/search/RecordFinder.d.ts.map +1 -1
- package/dist/inquiry/v2/search/RecordFinder.js +43 -20
- package/dist/inquiry/v2/search/RecordFinder.js.map +1 -1
- package/dist/inquiry/v2/search/RecordFinder.mjs +68 -42
- package/dist/inquiry/v2/search/RecordFinder.mjs.map +1 -1
- package/dist/inquiry/v2/search/index.d.ts +3 -3
- package/dist/inquiry/v2/search/index.d.ts.map +1 -1
- package/dist/inquiry/v2/search/index.js +1 -1
- package/dist/inquiry/v2/search/index.js.map +1 -1
- package/dist/inquiry/v2/search/searchModel.d.ts +130 -23
- package/dist/inquiry/v2/search/searchModel.d.ts.map +1 -1
- package/dist/inquiry/v2/search/searchModel.js +237 -36
- package/dist/inquiry/v2/search/searchModel.js.map +1 -1
- package/dist/inquiry/v2/search/searchModel.mjs +207 -34
- package/dist/inquiry/v2/search/searchModel.mjs.map +1 -1
- package/dist/inquiry/v2/search/useInquirySearch.d.ts.map +1 -1
- package/dist/inquiry/v2/search/useInquirySearch.js +46 -19
- package/dist/inquiry/v2/search/useInquirySearch.js.map +1 -1
- package/dist/inquiry/v2/search/useInquirySearch.mjs +83 -84
- package/dist/inquiry/v2/search/useInquirySearch.mjs.map +1 -1
- package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.d.ts +4 -1
- package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.js +174 -166
- package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.js.map +1 -1
- package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.mjs +343 -325
- package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.mjs.map +1 -1
- package/dist/inquiry/v2/tree/InquiryMenuToolbar.d.ts +3 -1
- package/dist/inquiry/v2/tree/InquiryMenuToolbar.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/InquiryMenuToolbar.js +8 -7
- package/dist/inquiry/v2/tree/InquiryMenuToolbar.js.map +1 -1
- package/dist/inquiry/v2/tree/InquiryMenuToolbar.mjs +68 -72
- package/dist/inquiry/v2/tree/InquiryMenuToolbar.mjs.map +1 -1
- package/dist/inquiry/v2/tree/LoadRecordDialog.d.ts +3 -3
- package/dist/inquiry/v2/tree/LoadRecordDialog.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/LoadRecordDialog.js +12 -7
- package/dist/inquiry/v2/tree/LoadRecordDialog.js.map +1 -1
- package/dist/inquiry/v2/tree/LoadRecordDialog.mjs +48 -33
- package/dist/inquiry/v2/tree/LoadRecordDialog.mjs.map +1 -1
- package/dist/inquiry/v2/tree/NodeList.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/NodeList.js +17 -6
- package/dist/inquiry/v2/tree/NodeList.js.map +1 -1
- package/dist/inquiry/v2/tree/NodeList.mjs +49 -36
- package/dist/inquiry/v2/tree/NodeList.mjs.map +1 -1
- package/dist/inquiry/v2/tree/arrivalModel.d.ts +15 -0
- package/dist/inquiry/v2/tree/arrivalModel.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/arrivalModel.js +14 -1
- package/dist/inquiry/v2/tree/arrivalModel.js.map +1 -1
- package/dist/inquiry/v2/tree/arrivalModel.mjs +12 -1
- package/dist/inquiry/v2/tree/arrivalModel.mjs.map +1 -1
- package/dist/inquiry/v2/tree/branchRefreshModel.d.ts +32 -0
- package/dist/inquiry/v2/tree/branchRefreshModel.d.ts.map +1 -0
- package/dist/inquiry/v2/tree/branchRefreshModel.js +62 -0
- package/dist/inquiry/v2/tree/branchRefreshModel.js.map +1 -0
- package/dist/inquiry/v2/tree/branchRefreshModel.mjs +60 -0
- package/dist/inquiry/v2/tree/branchRefreshModel.mjs.map +1 -0
- package/dist/inquiry/v2/tree/droppedPageModel.d.ts +23 -1
- package/dist/inquiry/v2/tree/droppedPageModel.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/droppedPageModel.js +53 -26
- package/dist/inquiry/v2/tree/droppedPageModel.js.map +1 -1
- package/dist/inquiry/v2/tree/droppedPageModel.mjs +48 -20
- package/dist/inquiry/v2/tree/droppedPageModel.mjs.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.d.ts +7 -12
- package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.js +44 -15
- package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.js.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.mjs +34 -15
- package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.mjs.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.js +7 -18
- package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.js.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.mjs +6 -14
- package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.mjs.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.d.ts +20 -16
- package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.js +77 -55
- package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.js.map +1 -1
- package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.mjs +85 -106
- package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.mjs.map +1 -1
- package/dist/inquiry/v2/tree/lineageModel.d.ts +18 -1
- package/dist/inquiry/v2/tree/lineageModel.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/lineageModel.js +71 -2
- package/dist/inquiry/v2/tree/lineageModel.js.map +1 -1
- package/dist/inquiry/v2/tree/lineageModel.mjs +53 -3
- package/dist/inquiry/v2/tree/lineageModel.mjs.map +1 -1
- package/dist/inquiry/v2/tree/menuRebuildModel.d.ts +10 -27
- package/dist/inquiry/v2/tree/menuRebuildModel.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/menuRebuildModel.js +8 -58
- package/dist/inquiry/v2/tree/menuRebuildModel.js.map +1 -1
- package/dist/inquiry/v2/tree/menuRebuildModel.mjs +8 -51
- package/dist/inquiry/v2/tree/menuRebuildModel.mjs.map +1 -1
- package/dist/inquiry/v2/tree/pagedChildrenModel.d.ts +26 -0
- package/dist/inquiry/v2/tree/pagedChildrenModel.d.ts.map +1 -0
- package/dist/inquiry/v2/tree/pagedChildrenModel.js +56 -0
- package/dist/inquiry/v2/tree/pagedChildrenModel.js.map +1 -0
- package/dist/inquiry/v2/tree/pagedChildrenModel.mjs +43 -0
- package/dist/inquiry/v2/tree/pagedChildrenModel.mjs.map +1 -0
- package/dist/inquiry/v2/tree/rootRemovalModel.d.ts +7 -0
- package/dist/inquiry/v2/tree/rootRemovalModel.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/rootRemovalModel.js +31 -5
- package/dist/inquiry/v2/tree/rootRemovalModel.js.map +1 -1
- package/dist/inquiry/v2/tree/rootRemovalModel.mjs +21 -4
- package/dist/inquiry/v2/tree/rootRemovalModel.mjs.map +1 -1
- package/dist/inquiry/v2/tree/treeFilterModel.d.ts +0 -2
- package/dist/inquiry/v2/tree/treeFilterModel.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/treeFilterModel.js +0 -7
- package/dist/inquiry/v2/tree/treeFilterModel.js.map +1 -1
- package/dist/inquiry/v2/tree/treeFilterModel.mjs.map +1 -1
- package/dist/inquiry/v2/tree/useInquiryMenu.d.ts +16 -7
- package/dist/inquiry/v2/tree/useInquiryMenu.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/useInquiryMenu.js +401 -163
- package/dist/inquiry/v2/tree/useInquiryMenu.js.map +1 -1
- package/dist/inquiry/v2/tree/useInquiryMenu.mjs +511 -310
- package/dist/inquiry/v2/tree/useInquiryMenu.mjs.map +1 -1
- package/dist/inquiry/v2/tree/waveLoader.d.ts +10 -11
- package/dist/inquiry/v2/tree/waveLoader.d.ts.map +1 -1
- package/dist/inquiry/v2/tree/waveLoader.js +78 -72
- package/dist/inquiry/v2/tree/waveLoader.js.map +1 -1
- package/dist/inquiry/v2/tree/waveLoader.mjs +79 -68
- package/dist/inquiry/v2/tree/waveLoader.mjs.map +1 -1
- package/dist/inquiry/v2/widgets/listRow.module.css +27 -0
- package/dist/inquiry/v2/widgets/widgetRowModel.d.ts +6 -2
- package/dist/inquiry/v2/widgets/widgetRowModel.d.ts.map +1 -1
- package/dist/inquiry/v2/widgets/widgetRowModel.js +49 -14
- package/dist/inquiry/v2/widgets/widgetRowModel.js.map +1 -1
- package/dist/inquiry/v2/widgets/widgetRowModel.mjs +36 -12
- package/dist/inquiry/v2/widgets/widgetRowModel.mjs.map +1 -1
- package/dist/maintenance/UdpTaggedRecordsPage.mjs +1 -1
- package/dist/maintenance/api/lookupApi.mjs +1 -1
- package/dist/maintenance/api/tagsApi.mjs +1 -1
- package/dist/maintenance/config/nodeDefaults.d.ts.map +1 -1
- package/dist/maintenance/config/nodeDefaults.js +16 -5
- package/dist/maintenance/config/nodeDefaults.js.map +1 -1
- package/dist/maintenance/config/nodeDefaults.mjs +14 -5
- package/dist/maintenance/config/nodeDefaults.mjs.map +1 -1
- package/dist/maintenance/config/useEntityConfig.mjs +1 -1
- package/dist/maintenance/config/useLinkedLabels.mjs +1 -1
- package/dist/maintenance/grid/MaintenanceGrid.mjs +1 -1
- package/dist/maintenance/metadata/useEntityMetadata.mjs +1 -1
- package/dist/maintenance/record/ChildTab.mjs +1 -1
- package/dist/maintenance/record/DeleteRecordDialog.mjs +1 -1
- package/dist/maintenance/record/LinkRecordsSheet.mjs +1 -1
- package/dist/maintenance/record/RecordFacts.mjs +1 -1
- package/dist/maintenance/record/RecordSheet.mjs +2 -2
- package/dist/maintenance/record/displayValue.mjs +1 -1
- package/dist/maintenance/record/stampDisplayText.mjs +1 -1
- package/dist/maintenance/settings/useEntityCatalog.mjs +1 -1
- package/dist/maintenanceEngine/tableBrowser/TableColumnDefs.d.ts +4 -5
- package/dist/maintenanceEngine/tableBrowser/TableColumnDefs.d.ts.map +1 -1
- package/dist/stores/inquiryStore.d.ts +2 -1
- package/dist/stores/inquiryStore.d.ts.map +1 -1
- package/dist/stores/inquiryStore.js +4 -3
- package/dist/stores/inquiryStore.js.map +1 -1
- package/dist/stores/inquiryStore.mjs +18 -11
- package/dist/stores/inquiryStore.mjs.map +1 -1
- package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.d.ts.map +1 -1
- package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.js +1 -1
- package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.js.map +1 -1
- package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.mjs +2 -1
- package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.mjs.map +1 -1
- package/dist/udp/pages/UdpMaintenanceEnginePage/components/EntitiyTimeLine.mjs +1 -1
- package/dist/udp/utilities/useDateStringColumnDef.d.ts +1 -1
- package/dist/utilities/i18n/locales/es-US.json +23 -5
- package/dist/utilities/i18n/locales/es-US.mjs +24 -4
- package/dist/utilities/i18n/locales/fr-CA.json +23 -5
- package/dist/utilities/i18n/locales/fr-CA.mjs +24 -4
- package/package.json +30 -18
- package/dist/actionPanels/PanelActionForm.d.ts +0 -56
- package/dist/actionPanels/PanelActionForm.d.ts.map +0 -1
- package/dist/actionPanels/PanelActionForm.js +0 -30
- package/dist/actionPanels/PanelActionForm.js.map +0 -1
- package/dist/actionPanels/PanelActionForm.mjs +0 -168
- package/dist/actionPanels/PanelActionForm.mjs.map +0 -1
- package/dist/actionPanels/PanelEditor.d.ts +0 -44
- package/dist/actionPanels/PanelEditor.d.ts.map +0 -1
- package/dist/actionPanels/PanelEditor.js +0 -78
- package/dist/actionPanels/PanelEditor.js.map +0 -1
- package/dist/actionPanels/PanelEditor.mjs +0 -345
- package/dist/actionPanels/PanelEditor.mjs.map +0 -1
- package/dist/actionPanels/panelActionFields.module.css +0 -18
- package/dist/domain/inquiryTree/ruleBindings.d.ts +0 -10
- package/dist/domain/inquiryTree/ruleBindings.d.ts.map +0 -1
- package/dist/domain/inquiryTree/ruleBindings.js +0 -20
- package/dist/domain/inquiryTree/ruleBindings.js.map +0 -1
- package/dist/domain/inquiryTree/ruleBindings.mjs +0 -21
- package/dist/domain/inquiryTree/ruleBindings.mjs.map +0 -1
- package/dist/inquiry/v2/kernel/readOnlyModel.d.ts +0 -17
- package/dist/inquiry/v2/kernel/readOnlyModel.d.ts.map +0 -1
- package/dist/inquiry/v2/kernel/readOnlyModel.js +0 -19
- package/dist/inquiry/v2/kernel/readOnlyModel.js.map +0 -1
- package/dist/inquiry/v2/kernel/readOnlyModel.mjs +0 -21
- package/dist/inquiry/v2/kernel/readOnlyModel.mjs.map +0 -1
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Typed domain model for Unity inquiry trees.
|
|
3
3
|
*
|
|
4
4
|
* The single source of truth for what a tree is — shared by Tree Builder v2, the
|
|
5
|
-
* Inquiry
|
|
6
|
-
* no React, no HTTP.
|
|
5
|
+
* Inquiry viewer, and the AI copilots. Pure types:
|
|
6
|
+
* no React, no HTTP. The wire is read and written ONLY in serialize.ts.
|
|
7
7
|
*
|
|
8
8
|
* Backwards-compat boundary (docs/plans/tree-builder-v2.md §2):
|
|
9
9
|
* - node array order is load-bearing (index-joined panels / drag-drop configs)
|
|
@@ -12,24 +12,24 @@
|
|
|
12
12
|
* icon rules, tabs, nodeHeaderPages, hiddenNode and groupConfiguration groups
|
|
13
13
|
* - the detailed read embeds the node's joins — panels, nodeActions (drop
|
|
14
14
|
* actions) and the associated tree — and they stay ON the node here, so the
|
|
15
|
-
* viewer, the builder and its preview hold one object; the
|
|
16
|
-
*
|
|
15
|
+
* viewer, the builder and its preview hold one object; the save
|
|
16
|
+
* (PUT inquiryTree/{id}/save) takes them back in the same shape
|
|
17
17
|
* - searchFilterElements/searchTableColumns are read-time derivations of the
|
|
18
18
|
* config and are dropped on read (v2 derives them itself)
|
|
19
19
|
*/
|
|
20
|
+
import type { NodeActionEnums, NodeActionTriggerEnums } from '../../enums/unitySystemEnums';
|
|
20
21
|
/** JsonLogic expression — opaque to the domain layer. */
|
|
21
22
|
export type JsonLogic = Record<string, unknown>;
|
|
22
23
|
/**
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* objects to this; `null` means "no color" (legacy wire: empty string).
|
|
24
|
+
* An icon colour as stored: the colour picker's object, read by its `hex` (any
|
|
25
|
+
* other keys a picker saved ride along). `''` is no colour.
|
|
26
26
|
*/
|
|
27
27
|
export interface IconColor {
|
|
28
28
|
hex: string;
|
|
29
29
|
}
|
|
30
30
|
export interface NodeIcon {
|
|
31
31
|
name: string;
|
|
32
|
-
color?: IconColor |
|
|
32
|
+
color?: IconColor | '';
|
|
33
33
|
/** Legacy discriminator carried on the wire (usually '' — occasionally null). */
|
|
34
34
|
type?: string | null;
|
|
35
35
|
/**
|
|
@@ -37,56 +37,77 @@ export interface NodeIcon {
|
|
|
37
37
|
* renders `name` and v27 renders this. Absent on icons saved before it.
|
|
38
38
|
*/
|
|
39
39
|
fluentName?: string | null;
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* The rule a condition binds that the tree's Save still has to write. `ruleId`
|
|
43
|
+
* is a client id (`new:…`) when Save creates it from `rule`; a real id with
|
|
44
|
+
* `rule` when Save updates that rule in place; a real id alone when the
|
|
45
|
+
* condition binds an existing rule as it is. Never on a tree the server read.
|
|
46
|
+
*/
|
|
47
|
+
export interface StagedRule {
|
|
48
|
+
ruleId: string;
|
|
49
|
+
rule?: Record<string, unknown>;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* A row's condition — a tab, header page, icon rule, hide rule, group or drop
|
|
53
|
+
* action: its tree-rule binding, the rule its Save still has to write, and the
|
|
54
|
+
* expression the viewer evaluates against the record.
|
|
55
|
+
*/
|
|
56
|
+
export interface TreeRuleBinding {
|
|
57
|
+
inquiryTreeRuleId?: string | null;
|
|
58
|
+
stagedRule?: StagedRule;
|
|
59
|
+
jsonLogic?: JsonLogic | null;
|
|
60
|
+
/** JsonLogic var name → record field name (or custom value). */
|
|
61
|
+
propertyMapping?: Record<string, string> | null;
|
|
62
|
+
/** JsonLogic var name → "value is custom, not a record field". */
|
|
63
|
+
propertyIsCustomMapping?: Record<string, boolean> | null;
|
|
42
64
|
}
|
|
43
65
|
/**
|
|
44
66
|
* Conditional icon / adornment rule entry.
|
|
45
67
|
* ⚠ duplicate/override-rewritten shape: `inquiryTreeRuleId` and the key names
|
|
46
68
|
* below must stay exact on the wire.
|
|
47
69
|
*/
|
|
48
|
-
export interface ConditionalIconRule {
|
|
70
|
+
export interface ConditionalIconRule extends TreeRuleBinding {
|
|
49
71
|
id?: string;
|
|
50
72
|
name: string;
|
|
51
|
-
iconColor?: IconColor |
|
|
73
|
+
iconColor?: IconColor | '';
|
|
52
74
|
type?: string;
|
|
53
75
|
/** Stencil icon-registry name beside a legacy MDL2 `name` (see NodeIcon). */
|
|
54
76
|
fluentName?: string | null;
|
|
55
|
-
inquiryTreeRuleId?: string;
|
|
56
|
-
jsonLogic?: JsonLogic | null;
|
|
57
|
-
propertyMapping?: Record<string, string> | null;
|
|
58
|
-
propertyIsCustomMapping?: Record<string, unknown>;
|
|
59
77
|
[key: string]: unknown;
|
|
60
78
|
}
|
|
61
|
-
/**
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
*/
|
|
66
|
-
export interface NodeTab {
|
|
67
|
-
id?: string;
|
|
68
|
-
page?: Record<string, unknown> | null;
|
|
69
|
-
sequenceNo?: string;
|
|
70
|
-
inquiryTreeRuleId?: string;
|
|
71
|
-
jsonLogic?: JsonLogic | null;
|
|
72
|
-
pageHeaderPages?: unknown[];
|
|
79
|
+
/** The page a tab, header page or drop action opens. */
|
|
80
|
+
export interface PageRef {
|
|
81
|
+
pageId?: string | null;
|
|
82
|
+
name?: string | null;
|
|
73
83
|
[key: string]: unknown;
|
|
74
84
|
}
|
|
75
|
-
/** ⚠ duplicate/override-rewritten shape (`page` ids).
|
|
76
|
-
export interface HeaderPageRef {
|
|
85
|
+
/** ⚠ duplicate/override-rewritten shape (`page` ids). */
|
|
86
|
+
export interface HeaderPageRef extends TreeRuleBinding {
|
|
77
87
|
id?: string;
|
|
78
|
-
page?:
|
|
88
|
+
page?: PageRef | null;
|
|
79
89
|
sequenceNo?: string;
|
|
80
|
-
|
|
81
|
-
|
|
90
|
+
/** Data Browser pages: the query the page reads, and its parameters. */
|
|
91
|
+
queryId?: string | null;
|
|
92
|
+
queryParamMapping?: Record<string, string> | null;
|
|
93
|
+
/** Page field → the record field (or custom value) it is bound to. */
|
|
94
|
+
requiredFieldMapping?: Record<string, unknown> | null;
|
|
82
95
|
[key: string]: unknown;
|
|
83
96
|
}
|
|
97
|
+
/**
|
|
98
|
+
* Node tab entry. ⚠ duplicate/override-rewritten shape:
|
|
99
|
+
* `inquiryTreeRuleId`, `pageHeaderPages[]`, `page{pageId, clusterId, name, productId}`.
|
|
100
|
+
*/
|
|
101
|
+
export interface NodeTab extends HeaderPageRef {
|
|
102
|
+
/** The tab's label; empty shows the page's name. */
|
|
103
|
+
displayName?: string | null;
|
|
104
|
+
pageHeaderPages?: HeaderPageRef[];
|
|
105
|
+
/** Trees the page offers to open. */
|
|
106
|
+
trees?: unknown[] | null;
|
|
107
|
+
}
|
|
84
108
|
/** ⚠ duplicate/override-rewritten shape (rule id). */
|
|
85
|
-
export interface HiddenNodeRule {
|
|
109
|
+
export interface HiddenNodeRule extends TreeRuleBinding {
|
|
86
110
|
enabled?: boolean;
|
|
87
|
-
inquiryTreeRuleId?: string;
|
|
88
|
-
jsonLogic?: JsonLogic | null;
|
|
89
|
-
propertyMapping?: Record<string, string> | null;
|
|
90
111
|
[key: string]: unknown;
|
|
91
112
|
}
|
|
92
113
|
/** Root-only search configuration entry — backend reads name/isPrimarySearch/searchOperator. */
|
|
@@ -179,6 +200,8 @@ export interface NodePanel {
|
|
|
179
200
|
panelId: string;
|
|
180
201
|
panelPositionId: number;
|
|
181
202
|
inquiryTreePanelId?: string | null;
|
|
203
|
+
/** The panel's entity — what its create/update/delete buttons act on. */
|
|
204
|
+
entityName?: string | null;
|
|
182
205
|
name?: string | null;
|
|
183
206
|
panelActions?: unknown[] | null;
|
|
184
207
|
isProductPanel?: boolean | null;
|
|
@@ -189,11 +212,22 @@ export interface NodePanel {
|
|
|
189
212
|
* (InquiryTreeDragAndDropConfigurationView) with the library configuration
|
|
190
213
|
* inline. No join id = attached in this session, not yet saved.
|
|
191
214
|
*/
|
|
192
|
-
export interface NodeAction {
|
|
215
|
+
export interface NodeAction extends TreeRuleBinding {
|
|
193
216
|
inquiryTreeDragAndDropConfigurationId?: string | null;
|
|
194
217
|
dragAndDropConfigurationId?: string | null;
|
|
195
|
-
inquiryTreeRuleId?: string | null;
|
|
196
218
|
name?: string | null;
|
|
219
|
+
/** When it fires, and what it does. */
|
|
220
|
+
triggerType?: NodeActionTriggerEnums | null;
|
|
221
|
+
actionTypeId?: NodeActionEnums | null;
|
|
222
|
+
/** The entity whose records may be dropped. */
|
|
223
|
+
dragEntityName?: string | null;
|
|
224
|
+
/** Load-page drops: the page to open. */
|
|
225
|
+
page?: PageRef | null;
|
|
226
|
+
sequence?: number | string | null;
|
|
227
|
+
parameters?: {
|
|
228
|
+
requiredFieldMapping?: Record<string, unknown> | null;
|
|
229
|
+
[key: string]: unknown;
|
|
230
|
+
} | null;
|
|
197
231
|
[key: string]: unknown;
|
|
198
232
|
}
|
|
199
233
|
export interface EntityNodeProperties {
|
|
@@ -212,13 +246,6 @@ export interface EntityNodeProperties {
|
|
|
212
246
|
/** ⚠ backend-read: triggers associated-tree loading. */
|
|
213
247
|
associatedTreeId?: string;
|
|
214
248
|
associatedTreePrimaryKeyMap?: Record<string, string> | null;
|
|
215
|
-
/**
|
|
216
|
-
* v2 load model: this level's rows are fetched up front, in a breadth-first
|
|
217
|
-
* wave with every other eager level at its depth, and the level renders
|
|
218
|
-
* expanded. Absent/false = lazy (collapsed, fetched on expand).
|
|
219
|
-
* Root-level only: `noOfNodesDisplayed` is that page's initial record count.
|
|
220
|
-
*/
|
|
221
|
-
eagerLoad?: boolean;
|
|
222
249
|
/**
|
|
223
250
|
* Show each record's tags as chips at the end of its tree row (after the
|
|
224
251
|
* count badge). Tags are the generic UdpTag/UdpTagAssociation attribute every
|
|
@@ -236,7 +263,11 @@ export interface EntityNodeProperties {
|
|
|
236
263
|
* See inquiry/v2/tree/arrivalModel.
|
|
237
264
|
*/
|
|
238
265
|
loadRecordsOnOpen?: boolean;
|
|
239
|
-
/**
|
|
266
|
+
/**
|
|
267
|
+
* How this level's CHILD levels load: true = lazily (collapsed, fetched on
|
|
268
|
+
* expand); absent/false = eagerly (fetched up front, rendered expanded). One
|
|
269
|
+
* setting for all of them — v1 and v2 both read it (loadsChildrenLazily).
|
|
270
|
+
*/
|
|
240
271
|
lazyLoad?: boolean;
|
|
241
272
|
isPrimarySearch?: boolean;
|
|
242
273
|
isDraggable?: boolean;
|
|
@@ -274,11 +305,12 @@ export interface EntityNodeProperties {
|
|
|
274
305
|
aggregateThresholdId?: string;
|
|
275
306
|
aggregateThresholdParamMappings?: Record<string, string>;
|
|
276
307
|
/**
|
|
277
|
-
* Query-less
|
|
278
|
-
* records under THAT row for the `childKey` binding, optionally
|
|
279
|
-
* an AND of flat conditions.
|
|
280
|
-
* (a level configures one row number, not two).
|
|
308
|
+
* Query-less counts: every row of this level shows, per entry, the number of
|
|
309
|
+
* child records under THAT row for the entry's `childKey` binding, optionally
|
|
310
|
+
* narrowed by an AND of flat conditions. Read through `countChipsOf`.
|
|
281
311
|
*/
|
|
312
|
+
countChips?: CountChipConfig[];
|
|
313
|
+
/** The single count trees saved before `countChips` — read, never written. */
|
|
282
314
|
countChip?: CountChipConfig;
|
|
283
315
|
groupConfiguration?: GroupConfiguration;
|
|
284
316
|
// legacy new-node seed fields (TreeConfiguration.jsx:122-149) — persisted by the
|
|
@@ -291,14 +323,11 @@ export interface EntityNodeProperties {
|
|
|
291
323
|
icon?: string;
|
|
292
324
|
catalogObjectProperty?: Record<string, unknown> | null;
|
|
293
325
|
/**
|
|
294
|
-
* The node's joins, exactly as the
|
|
295
|
-
* the
|
|
296
|
-
* `associatedTreeId`. Edited in place by the builder; `toPutBody` keeps them
|
|
297
|
-
* out of the tree PUT and the save writes them to their own endpoints.
|
|
326
|
+
* The node's joins, exactly as the tree read embeds them. Edited in place by
|
|
327
|
+
* the builder and saved with the tree.
|
|
298
328
|
*/
|
|
299
329
|
panels?: NodePanel[];
|
|
300
330
|
nodeActions?: NodeAction[];
|
|
301
|
-
associatedInquiryTree?: Record<string, unknown> | null;
|
|
302
331
|
/**
|
|
303
332
|
* Every wire property key this model doesn't type — preserved verbatim and
|
|
304
333
|
* re-emitted on write. Old trees must round-trip without loss.
|
|
@@ -307,8 +336,8 @@ export interface EntityNodeProperties {
|
|
|
307
336
|
}
|
|
308
337
|
export interface TreeNodeBase {
|
|
309
338
|
id: string;
|
|
310
|
-
/**
|
|
311
|
-
parentId: string
|
|
339
|
+
/** The parent level's id; '' on the root. */
|
|
340
|
+
parentId: string;
|
|
312
341
|
parentGroupId?: string | null;
|
|
313
342
|
/** Legacy soft-delete flag (mid-tree deletions persist as isDeleted + properties:{}). */
|
|
314
343
|
isDeleted?: boolean;
|
|
@@ -319,6 +348,8 @@ export interface EntityNode extends TreeNodeBase {
|
|
|
319
348
|
isGroupNode?: false;
|
|
320
349
|
properties: EntityNodeProperties;
|
|
321
350
|
}
|
|
351
|
+
/** What reading a level's config needs: its node, or a row composed from it. */
|
|
352
|
+
export type LevelConfig = Pick<EntityNode, 'properties'>;
|
|
322
353
|
/** Group nodes are synthesized at render but can persist in saved trees. */
|
|
323
354
|
export interface GroupNode extends TreeNodeBase {
|
|
324
355
|
isGroupNode: true;
|
|
@@ -328,20 +359,70 @@ export interface GroupNode extends TreeNodeBase {
|
|
|
328
359
|
export type TreeNode = EntityNode | GroupNode;
|
|
329
360
|
export declare const isGroupNode: (node: TreeNode) => node is GroupNode;
|
|
330
361
|
export declare const isEntityNode: (node: TreeNode) => node is EntityNode;
|
|
362
|
+
/** A level's counts, in row order — the single `countChip` of older trees as a list of one. */
|
|
363
|
+
export declare const countChipsOf: (properties: Pick<EntityNodeProperties, "countChip" | "countChips">) => CountChipConfig[];
|
|
331
364
|
/**
|
|
332
|
-
*
|
|
333
|
-
*
|
|
334
|
-
*
|
|
335
|
-
|
|
365
|
+
* GET inquiryTree/{id} as the server sends it — what `fromWire` reads, what
|
|
366
|
+
* `toWire` writes and what the save takes back. `treeStructure` is the node
|
|
367
|
+
* array, read only by serialize.ts.
|
|
368
|
+
*/
|
|
369
|
+
export interface InquiryTreeWire extends InquiryTreeWrapper {
|
|
370
|
+
inquiryTreeId: string;
|
|
371
|
+
name?: string;
|
|
372
|
+
treeStructure?: unknown[];
|
|
373
|
+
}
|
|
374
|
+
/** The tree's keys beside its nodes; keys nothing here reads stay unknown. */
|
|
375
|
+
export interface InquiryTreeWrapper {
|
|
376
|
+
[key: string]: unknown;
|
|
377
|
+
description?: string;
|
|
378
|
+
tenantId?: string;
|
|
379
|
+
isActive?: boolean;
|
|
380
|
+
isPreloaded?: boolean;
|
|
381
|
+
isProductInquiryTree?: boolean;
|
|
382
|
+
/** The page the viewer lands on before a record is loaded. */
|
|
383
|
+
explorePageId?: string | null;
|
|
384
|
+
productVersionId?: string | null;
|
|
385
|
+
parentInquiryTreeId?: string | null;
|
|
386
|
+
/** The version the tree was read at — the save refuses a stale one (409). */
|
|
387
|
+
updatedOn?: string;
|
|
388
|
+
updatedBy?: string;
|
|
389
|
+
/** The product the tree belongs to — its promotions are read under it. */
|
|
390
|
+
product?: {
|
|
391
|
+
[key: string]: unknown;
|
|
392
|
+
productId?: number | string;
|
|
393
|
+
name?: string;
|
|
394
|
+
} | null;
|
|
395
|
+
productVersion?: Record<string, unknown> | null;
|
|
396
|
+
/** The tree's query: the root level's method and its entities' catalog. */
|
|
397
|
+
apiMethodInstance?: {
|
|
398
|
+
[key: string]: unknown;
|
|
399
|
+
apiMethodInstanceId?: string;
|
|
400
|
+
apiMethodId?: string;
|
|
401
|
+
apiCatalogId?: string;
|
|
402
|
+
returnObject?: string;
|
|
403
|
+
name?: string;
|
|
404
|
+
} | null;
|
|
405
|
+
associatedToTrees?: unknown[];
|
|
406
|
+
associatedMenuItems?: unknown[];
|
|
407
|
+
}
|
|
408
|
+
/**
|
|
409
|
+
* The canonical tree: the wire's other keys (passed through untouched) + the
|
|
410
|
+
* typed node array. `wrapper` holds every key the GET returned except the
|
|
411
|
+
* tree's id, name and treeStructure (product, apiMethodInstance, audit
|
|
412
|
+
* fields, …), so a save spreads it back exactly as read.
|
|
336
413
|
*/
|
|
337
414
|
export interface InquiryTree {
|
|
338
415
|
inquiryTreeId: string;
|
|
339
416
|
name?: string;
|
|
340
417
|
nodes: TreeNode[];
|
|
341
|
-
|
|
342
|
-
wrapper: Record<string, unknown>;
|
|
418
|
+
wrapper: InquiryTreeWrapper;
|
|
343
419
|
}
|
|
344
|
-
|
|
420
|
+
/**
|
|
421
|
+
* `note` is a finding that may well be intentional (a hidden header with fields
|
|
422
|
+
* left behind, a root with no quick-search field). Builders keep notes out of
|
|
423
|
+
* the UI — no dot, no count — and hand them to the assistant for context only.
|
|
424
|
+
*/
|
|
425
|
+
export type ValidationSeverity = 'error' | 'warning' | 'note';
|
|
345
426
|
export interface ValidationIssue {
|
|
346
427
|
severity: ValidationSeverity;
|
|
347
428
|
/** Machine-usable code, e.g. 'multiple-roots', 'orphan-parent', 'missing-required-field'. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/domain/inquiryTree/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,2DAAyD;AACzD,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEhD
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/domain/inquiryTree/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EACV,eAAe,EACf,sBAAsB,EACvB,MAAM,8BAA8B,CAAC;AAEtC,2DAAyD;AACzD,MAAM,MAAM,SAAS,GAAG,MAAM,CA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OAAO,CAAC;QACvB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,GAAG,IAAI,CAAC;IACT,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAChD,2EAA2E;IAC3E,iBAAiB,CAAC,EAAE;QAClB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;QACvB,mBAAmB,CAAC,EAAE,MAAM,CAAC;QAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,GAAG,IAAI,CAAC;IACT,iBAAiB,CAAC,EAAE,OAAO,EAAE,CAAC;IAC9B,mBAAmB,CAAC,EAAE,OAAO,EAAE,CAAC;CACjC;AAED;;;;;GAKG;AACH,MAAM,WAAW,WAAW;IAC1B,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,OAAO,EAAE,kBAAkB,CAAC;CAC7B;AAED;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;AAE9D,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,6FAA6F;IAC7F,IAAI,EAAE,MAAM,CAAC;IACb,sDAAsD;IACtD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,wDAAwD;IACxD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
export const isGroupNode = (node) => node.isGroupNode === true;
|
|
2
2
|
export const isEntityNode = (node) => !isGroupNode(node);
|
|
3
|
+
/** A level's counts, in row order — the single `countChip` of older trees as a list of one. */
|
|
4
|
+
export const countChipsOf = (properties) => {
|
|
5
|
+
var _a;
|
|
6
|
+
return (_a = properties === null || properties === void 0 ? void 0 : properties.countChips) !== null && _a !== void 0 ? _a : ((properties === null || properties === void 0 ? void 0 : properties.countChip) ? [properties.countChip] : []);
|
|
7
|
+
};
|
|
3
8
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/domain/inquiryTree/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/domain/inquiryTree/types.ts"],"names":[],"mappings":"AAqYA,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,IAAc,EAAqB,EAAE,CAC9D,IAAkB,CAAC,WAAW,KAAK,IAAI,CAAC;AAE3C,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,IAAc,EAAsB,EAAE,CACjE,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;AAErB,iGAA+F;AAC/F,MAAM,CAAC,MAAM,YAAY,GAAG,CAC1B,UAAqF,EAClE,EAAE;;iBACrB,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,UAAU,mCAAI,CAAC,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,SAAS,EAAC,CAAC,CAAC,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;CAAA,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
//#region src/domain/inquiryTree/types.ts
|
|
2
2
|
const isGroupNode = (node) => node.isGroupNode === true;
|
|
3
3
|
const isEntityNode = (node) => !isGroupNode(node);
|
|
4
|
+
/** A level's counts, in row order — the single `countChip` of older trees as a list of one. */
|
|
5
|
+
const countChipsOf = (properties) => properties?.countChips ?? (properties?.countChip ? [properties.countChip] : []);
|
|
4
6
|
//#endregion
|
|
5
|
-
export { isEntityNode, isGroupNode };
|
|
7
|
+
export { countChipsOf, isEntityNode, isGroupNode };
|
|
6
8
|
|
|
7
9
|
//# sourceMappingURL=types.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.mjs","names":["JsonLogic","Record","IconColor","hex","NodeIcon","name","color","type","fluentName","unknownKeys","ConditionalIconRule","id","iconColor","inquiryTreeRuleId","jsonLogic","propertyMapping","propertyIsCustomMapping","key","NodeTab","page","sequenceNo","pageHeaderPages","HeaderPageRef","HiddenNodeRule","enabled","SearchConfigEntry","columnName","isPrimarySearch","advancedSearch","advancedSearchOperator","groupHeader","results","searchOperator","searchable","GroupConfiguration","groupType","outlier","outlierGroupLabel","outlierIcon","hideEmptyGroups","groupings","static","Array","dynamic","tabs","CountChipOperator","CountChipCondition","field","operator","value","CountChipThresholdBand","value1","value2","CountChipThresholds","success","error","warning","info","CountChipConfig","childKey","conditions","thresholds","NodePanel","panelId","panelPositionId","inquiryTreePanelId","panelActions","isProductPanel","NodeAction","inquiryTreeDragAndDropConfigurationId","dragAndDropConfigurationId","EntityNodeProperties","displayName","displayDetails","headerName","inquiryTitle","description","catalogReturnObject","catalogObjectKey","associatedTreeId","associatedTreePrimaryKeyMap","eagerLoad","showTags","headerShowTags","loadRecordsOnOpen","lazyLoad","isDraggable","defaultDisplay","joiningEntityName","joiningEntityCatalogObjectKey","joiningEntityCatalogObjectLeftKey","joiningEntityChildKey","joinedWithName","isUsingJointEntityAdditionalProperties","defaultIcon","conditionalNodeIcons","conditionalNodeIconExpression","conditionalNodeAdornments","conditionalNodeAdornmentExpression","conditionalIcons","conditionalIconExpression","hiddenNode","nodeHeaderPages","pageHeaderConfiguration","searchConfiguration","alerts","actions","appsConfiguration","defaultNodeHeaderExpanded","defaultPageHeaderExpanded","aggregateThresholdId","aggregateThresholdParamMappings","countChip","groupConfiguration","isActive","childNodes","keys","path","noOfNodesDisplayed","icon","catalogObjectProperty","panels","nodeActions","associatedInquiryTree","unknownProperties","TreeNodeBase","parentId","parentGroupId","isDeleted","unknownNodeKeys","EntityNode","isGroupNode","properties","GroupNode","TreeNode","node","isEntityNode","InquiryTree","inquiryTreeId","nodes","wrapper","ValidationSeverity","ValidationIssue","severity","code","nodeId","message"],"sources":["../../../src/domain/inquiryTree/types.ts"],"sourcesContent":["/**\n * Typed domain model for Unity inquiry trees.\n *\n * The single source of truth for what a tree is — shared by Tree Builder v2, the\n * Inquiry renderer (during inquiry-modernization), and the AI copilot. Pure types:\n * no React, no HTTP. Wire↔domain conversion happens ONLY in serialize.ts.\n *\n * Backwards-compat boundary (docs/plans/tree-builder-v2.md §2):\n * - node array order is load-bearing (index-joined panels / drag-drop configs)\n * - backend reads properties.catalogReturnObject, root searchConfiguration[],\n * and associatedTreeId; duplicate/override rewrites ids inside conditional\n * icon rules, tabs, nodeHeaderPages, hiddenNode and groupConfiguration groups\n * - the detailed read embeds the node's joins — panels, nodeActions (drop\n * actions) and the associated tree — and they stay ON the node here, so the\n * viewer, the builder and its preview hold one object; the tree PUT carries\n * none of them (`toPutBody`), each is written to its own endpoint\n * - searchFilterElements/searchTableColumns are read-time derivations of the\n * config and are dropped on read (v2 derives them itself)\n */\n\n/** JsonLogic expression — opaque to the domain layer. */\nexport type JsonLogic = Record<string, unknown>;\n\n/**\n * Canonical icon color (TB-0629 sign-off): `{ hex: '#rrggbb' }`.\n * The tolerant reader normalizes legacy string colors and full react-color\n * objects to this; `null` means \"no color\" (legacy wire: empty string).\n */\nexport interface IconColor {\n hex: string;\n}\n\nexport interface NodeIcon {\n name: string;\n color?: IconColor | null;\n /** Legacy discriminator carried on the wire (usually '' — occasionally null). */\n type?: string | null;\n /**\n * Stencil icon-registry name, written beside a legacy MDL2 `name` so 26.x\n * renders `name` and v27 renders this. Absent on icons saved before it.\n */\n fluentName?: string | null;\n /** Unrecognized keys preserved verbatim for write-back. */\n unknownKeys?: Record<string, unknown>;\n}\n\n/**\n * Conditional icon / adornment rule entry.\n * ⚠ duplicate/override-rewritten shape: `inquiryTreeRuleId` and the key names\n * below must stay exact on the wire.\n */\nexport interface ConditionalIconRule {\n id?: string;\n name: string;\n iconColor?: IconColor | null;\n type?: string;\n /** Stencil icon-registry name beside a legacy MDL2 `name` (see NodeIcon). */\n fluentName?: string | null;\n inquiryTreeRuleId?: string;\n jsonLogic?: JsonLogic | null;\n propertyMapping?: Record<string, string> | null;\n propertyIsCustomMapping?: Record<string, unknown>;\n [key: string]: unknown;\n}\n\n/**\n * Node tab entry. ⚠ duplicate/override-rewritten shape:\n * `inquiryTreeRuleId`, `pageHeaderPages[]`, `page{pageId, clusterId, name, productId}`.\n * Internals beyond the join keys are passed through untouched.\n */\nexport interface NodeTab {\n id?: string;\n page?: Record<string, unknown> | null;\n sequenceNo?: string;\n inquiryTreeRuleId?: string;\n jsonLogic?: JsonLogic | null;\n pageHeaderPages?: unknown[];\n [key: string]: unknown;\n}\n\n/** ⚠ duplicate/override-rewritten shape (`page` ids). Pass-through internals. */\nexport interface HeaderPageRef {\n id?: string;\n page?: Record<string, unknown> | null;\n sequenceNo?: string;\n inquiryTreeRuleId?: string;\n jsonLogic?: JsonLogic | null;\n [key: string]: unknown;\n}\n\n/** ⚠ duplicate/override-rewritten shape (rule id). */\nexport interface HiddenNodeRule {\n enabled?: boolean;\n inquiryTreeRuleId?: string;\n jsonLogic?: JsonLogic | null;\n propertyMapping?: Record<string, string> | null;\n [key: string]: unknown;\n}\n\n/** Root-only search configuration entry — backend reads name/isPrimarySearch/searchOperator. */\nexport interface SearchConfigEntry {\n id?: string;\n columnName?: string;\n name: string;\n isPrimarySearch?: boolean;\n advancedSearch?: string;\n advancedSearchOperator?: string;\n groupHeader?: string;\n results?: string;\n searchOperator?: string;\n type?: string;\n searchable?: boolean;\n [key: string]: unknown;\n}\n\n/**\n * Group configuration. ⚠ duplicate/override rewrites ids inside\n * `groupings.{static|dynamic}[].groups[]` (rule ids, `icon.iconColor`, nested `tabs`),\n * so grouping internals are typed shallowly and passed through byte-identically\n * (no color normalization inside — see decisions log #8).\n */\nexport interface GroupConfiguration {\n enabled?: boolean;\n groupType?: 'static' | 'dynamic' | (string & {});\n outlier?: string;\n outlierGroupLabel?: string;\n outlierIcon?: Record<string, unknown> | null;\n hideEmptyGroups?: boolean;\n groupings?: {\n static?: Array<Record<string, unknown>>;\n dynamic?: Array<Record<string, unknown>>;\n [key: string]: unknown;\n };\n tabs?: unknown[];\n [key: string]: unknown;\n}\n\n/** The six comparators a count-chip condition may use (wire vocabulary). */\nexport type CountChipOperator = '=' | '!=' | '>' | '<' | '>=' | '<=';\n\n/** One flat count-chip condition — ANDed with its siblings. */\nexport interface CountChipCondition {\n field: string;\n operator: CountChipOperator;\n value: string | number | boolean;\n}\n\n/**\n * One severity band — the same { operator, value1, value2 } semantics the\n * aggregate thresholds persist (models/NumberOperator operators; value2 only\n * for BETWEEN). Held as a plain object: countChip is already JSON on the node,\n * so nothing is double-stringified.\n */\nexport interface CountChipThresholdBand {\n operator: string;\n value1: string;\n value2?: string;\n}\n\n/**\n * Optional severity bands coloring the count badge, evaluated client-side\n * against the already-fetched count (getCountThresholdStatus) — no extra\n * requests. Unlike aggregate chips, a count of 0 is a real value here\n * (\"success when 0\" is the point of a zero band).\n */\nexport interface CountChipThresholds {\n success?: CountChipThresholdBand;\n error?: CountChipThresholdBand;\n warning?: CountChipThresholdBand;\n info?: CountChipThresholdBand;\n}\n\n/** Count-chip configuration held on a level's node properties. */\nexport interface CountChipConfig {\n /**\n * catalogObjectKey of the child binding whose records are counted — matches\n * a childNodes entry's properties.catalogObjectKey.\n */\n childKey: string;\n conditions?: CountChipCondition[];\n thresholds?: CountChipThresholds;\n}\n\n/**\n * Typed node properties. Everything the legacy producer writes and the backend\n * or Inquiry renderer reads. Stringly-typed fields (sequenceNo, noOfNodesDisplayed)\n * stay strings on purpose — they are persisted that way.\n */\n/**\n * A panel attached to a node — the join row (InquiryTreePanelView) with the\n * detailed panel inline: its name, its buttons (`panelActions`), its provenance.\n */\nexport interface NodePanel {\n panelId: string;\n panelPositionId: number;\n inquiryTreePanelId?: string | null;\n name?: string | null;\n panelActions?: unknown[] | null;\n isProductPanel?: boolean | null;\n [key: string]: unknown;\n}\n\n/**\n * A drop action attached to a node — the join row\n * (InquiryTreeDragAndDropConfigurationView) with the library configuration\n * inline. No join id = attached in this session, not yet saved.\n */\nexport interface NodeAction {\n inquiryTreeDragAndDropConfigurationId?: string | null;\n dragAndDropConfigurationId?: string | null;\n inquiryTreeRuleId?: string | null;\n name?: string | null;\n [key: string]: unknown;\n}\n\nexport interface EntityNodeProperties {\n // identity / display\n name?: string;\n displayName?: string;\n displayDetails?: string;\n headerName?: string;\n inquiryTitle?: string;\n description?: string;\n sequenceNo?: string;\n // entity / query linkage\n /** ⚠ backend-read on every node (panel/node-action join key with array index). */\n catalogReturnObject?: string;\n catalogObjectKey?: string;\n /** ⚠ backend-read: triggers associated-tree loading. */\n associatedTreeId?: string;\n associatedTreePrimaryKeyMap?: Record<string, string> | null;\n /**\n * v2 load model: this level's rows are fetched up front, in a breadth-first\n * wave with every other eager level at its depth, and the level renders\n * expanded. Absent/false = lazy (collapsed, fetched on expand).\n * Root-level only: `noOfNodesDisplayed` is that page's initial record count.\n */\n eagerLoad?: boolean;\n /**\n * Show each record's tags as chips at the end of its tree row (after the\n * count badge). Tags are the generic UdpTag/UdpTagAssociation attribute every\n * record type carries, keyed by business key — never a child level.\n * Absent/false = off.\n */\n showTags?: boolean;\n /** Show the selected record's tags as chips in its header band. Absent/false = off. */\n headerShowTags?: boolean;\n /**\n * ROOT level only, and only meaningful on a tree that names an\n * `explorePageId`: fetch the root-record page even though the tree opens on\n * its landing screen. Absent = the derived default (a tree with a landing page\n * starts EMPTY and fills through + Load; every other tree seeds its page).\n * See inquiry/v2/tree/arrivalModel.\n */\n loadRecordsOnOpen?: boolean;\n /** @deprecated v1 only — the v2 pipeline never reads it (see waveLoad.ts). */\n lazyLoad?: boolean;\n isPrimarySearch?: boolean;\n isDraggable?: boolean;\n defaultDisplay?: string;\n // m2m joining keys\n joiningEntityName?: string | null;\n joiningEntityCatalogObjectKey?: string | null;\n joiningEntityCatalogObjectLeftKey?: string | null;\n joiningEntityChildKey?: string;\n joinedWithName?: string | null;\n isUsingJointEntityAdditionalProperties?: boolean;\n // icons & rules\n defaultIcon?: NodeIcon | null;\n conditionalNodeIcons?: ConditionalIconRule[];\n /** Compiled twin of conditionalNodeIcons — regenerated on write by operations that edit the rules. */\n conditionalNodeIconExpression?: JsonLogic | null;\n conditionalNodeAdornments?: ConditionalIconRule[];\n conditionalNodeAdornmentExpression?: JsonLogic | null;\n /** @deprecated legacy adornment keys; carried verbatim until the node's rules are edited (decisions log #7). */\n conditionalIcons?: unknown[];\n /** @deprecated compiled twin of conditionalIcons. */\n conditionalIconExpression?: JsonLogic | null;\n hiddenNode?: HiddenNodeRule | null;\n // sub-configs\n tabs?: NodeTab[];\n nodeHeaderPages?: HeaderPageRef[];\n pageHeaderConfiguration?: unknown[] | null;\n /** ⚠ backend-read on the root node. */\n searchConfiguration?: SearchConfigEntry[] | null;\n alerts?: unknown[];\n actions?: unknown[];\n appsConfiguration?: unknown[] | null;\n defaultNodeHeaderExpanded?: string;\n defaultPageHeaderExpanded?: string;\n aggregateThresholdId?: string;\n aggregateThresholdParamMappings?: Record<string, string>;\n /**\n * Query-less count chip: every row of this level shows the number of child\n * records under THAT row for the `childKey` binding, optionally narrowed by\n * an AND of flat conditions. Mutually exclusive with aggregateThresholdId\n * (a level configures one row number, not two).\n */\n countChip?: CountChipConfig;\n groupConfiguration?: GroupConfiguration;\n // legacy new-node seed fields (TreeConfiguration.jsx:122-149) — persisted by the\n // legacy producer on every node it created; kept for byte parity\n isActive?: boolean;\n childNodes?: unknown[];\n keys?: string;\n path?: string;\n noOfNodesDisplayed?: string;\n icon?: string;\n catalogObjectProperty?: Record<string, unknown> | null;\n /**\n * The node's joins, exactly as the detailed read embeds them: the same rows\n * the panel and drag-and-drop join endpoints return, and the tree behind\n * `associatedTreeId`. Edited in place by the builder; `toPutBody` keeps them\n * out of the tree PUT and the save writes them to their own endpoints.\n */\n panels?: NodePanel[];\n nodeActions?: NodeAction[];\n associatedInquiryTree?: Record<string, unknown> | null;\n /**\n * Every wire property key this model doesn't type — preserved verbatim and\n * re-emitted on write. Old trees must round-trip without loss.\n */\n unknownProperties?: Record<string, unknown>;\n}\n\nexport interface TreeNodeBase {\n id: string;\n /** Root: null in the domain (wire uses ''/null — reader normalizes, writer re-emits ''). */\n parentId: string | null;\n parentGroupId?: string | null;\n /** Legacy soft-delete flag (mid-tree deletions persist as isDeleted + properties:{}). */\n isDeleted?: boolean;\n /** Node-level wire keys beyond the known schema, preserved for write-back. */\n unknownNodeKeys?: Record<string, unknown>;\n}\n\nexport interface EntityNode extends TreeNodeBase {\n isGroupNode?: false;\n properties: EntityNodeProperties;\n}\n\n/** Group nodes are synthesized at render but can persist in saved trees. */\nexport interface GroupNode extends TreeNodeBase {\n isGroupNode: true;\n groupType?: 'static' | 'dynamic' | (string & {});\n properties: Record<string, unknown>;\n}\n\nexport type TreeNode = EntityNode | GroupNode;\n\nexport const isGroupNode = (node: TreeNode): node is GroupNode =>\n (node as GroupNode).isGroupNode === true;\n\nexport const isEntityNode = (node: TreeNode): node is EntityNode =>\n !isGroupNode(node);\n\n/**\n * The canonical tree: wrapper metadata (passed through untouched apart from\n * treeStructure) + the typed node array. `wrapper` holds every other key the\n * GET returned (product, apiMethodInstance, audit fields, …) so a save can\n * spread it back exactly like the legacy producer did.\n */\nexport interface InquiryTree {\n inquiryTreeId: string;\n name?: string;\n nodes: TreeNode[];\n /** All wrapper keys from the wire except treeStructure, verbatim. */\n wrapper: Record<string, unknown>;\n}\n\nexport type ValidationSeverity = 'error' | 'warning';\n\nexport interface ValidationIssue {\n severity: ValidationSeverity;\n /** Machine-usable code, e.g. 'multiple-roots', 'orphan-parent', 'missing-required-field'. */\n code: string;\n /** Node id the issue anchors to, when node-scoped. */\n nodeId?: string;\n /** Property path within the node, when field-scoped. */\n path?: string;\n message: string;\n}\n"],"mappings":";AA8VA,MAAamI,eAAeI,SACzBA,KAAmBJ,gBAAgB;AAEtC,MAAaK,gBAAgBD,SAC3B,CAACJ,YAAYI,KAAK"}
|
|
1
|
+
{"version":3,"file":"types.mjs","names":["NodeActionEnums","NodeActionTriggerEnums","JsonLogic","Record","IconColor","hex","NodeIcon","name","color","type","fluentName","StagedRule","ruleId","rule","TreeRuleBinding","inquiryTreeRuleId","stagedRule","jsonLogic","propertyMapping","propertyIsCustomMapping","ConditionalIconRule","id","iconColor","key","PageRef","pageId","HeaderPageRef","page","sequenceNo","queryId","queryParamMapping","requiredFieldMapping","NodeTab","displayName","pageHeaderPages","trees","HiddenNodeRule","enabled","SearchConfigEntry","columnName","isPrimarySearch","advancedSearch","advancedSearchOperator","groupHeader","results","searchOperator","searchable","GroupConfiguration","groupType","outlier","outlierGroupLabel","outlierIcon","hideEmptyGroups","groupings","static","Array","dynamic","tabs","CountChipOperator","CountChipCondition","field","operator","value","CountChipThresholdBand","value1","value2","CountChipThresholds","success","error","warning","info","CountChipConfig","childKey","conditions","thresholds","NodePanel","panelId","panelPositionId","inquiryTreePanelId","entityName","panelActions","isProductPanel","NodeAction","inquiryTreeDragAndDropConfigurationId","dragAndDropConfigurationId","triggerType","actionTypeId","dragEntityName","sequence","parameters","EntityNodeProperties","displayDetails","headerName","inquiryTitle","description","catalogReturnObject","catalogObjectKey","associatedTreeId","associatedTreePrimaryKeyMap","showTags","headerShowTags","loadRecordsOnOpen","lazyLoad","isDraggable","defaultDisplay","joiningEntityName","joiningEntityCatalogObjectKey","joiningEntityCatalogObjectLeftKey","joiningEntityChildKey","joinedWithName","isUsingJointEntityAdditionalProperties","defaultIcon","conditionalNodeIcons","conditionalNodeIconExpression","conditionalNodeAdornments","conditionalNodeAdornmentExpression","conditionalIcons","conditionalIconExpression","hiddenNode","nodeHeaderPages","pageHeaderConfiguration","searchConfiguration","alerts","actions","appsConfiguration","defaultNodeHeaderExpanded","defaultPageHeaderExpanded","aggregateThresholdId","aggregateThresholdParamMappings","countChips","countChip","groupConfiguration","isActive","childNodes","keys","path","noOfNodesDisplayed","icon","catalogObjectProperty","panels","nodeActions","unknownProperties","TreeNodeBase","parentId","parentGroupId","isDeleted","unknownNodeKeys","EntityNode","isGroupNode","properties","LevelConfig","Pick","GroupNode","TreeNode","node","isEntityNode","countChipsOf","InquiryTreeWire","InquiryTreeWrapper","inquiryTreeId","treeStructure","tenantId","isPreloaded","isProductInquiryTree","explorePageId","productVersionId","parentInquiryTreeId","updatedOn","updatedBy","product","productId","productVersion","apiMethodInstance","apiMethodInstanceId","apiMethodId","apiCatalogId","returnObject","associatedToTrees","associatedMenuItems","InquiryTree","nodes","wrapper","ValidationSeverity","ValidationIssue","severity","code","nodeId","message"],"sources":["../../../src/domain/inquiryTree/types.ts"],"sourcesContent":["/**\n * Typed domain model for Unity inquiry trees.\n *\n * The single source of truth for what a tree is — shared by Tree Builder v2, the\n * Inquiry viewer, and the AI copilots. Pure types:\n * no React, no HTTP. The wire is read and written ONLY in serialize.ts.\n *\n * Backwards-compat boundary (docs/plans/tree-builder-v2.md §2):\n * - node array order is load-bearing (index-joined panels / drag-drop configs)\n * - backend reads properties.catalogReturnObject, root searchConfiguration[],\n * and associatedTreeId; duplicate/override rewrites ids inside conditional\n * icon rules, tabs, nodeHeaderPages, hiddenNode and groupConfiguration groups\n * - the detailed read embeds the node's joins — panels, nodeActions (drop\n * actions) and the associated tree — and they stay ON the node here, so the\n * viewer, the builder and its preview hold one object; the save\n * (PUT inquiryTree/{id}/save) takes them back in the same shape\n * - searchFilterElements/searchTableColumns are read-time derivations of the\n * config and are dropped on read (v2 derives them itself)\n */\n\nimport type {\n NodeActionEnums,\n NodeActionTriggerEnums\n} from '../../enums/unitySystemEnums';\n\n/** JsonLogic expression — opaque to the domain layer. */\nexport type JsonLogic = Record<string, unknown>;\n\n/**\n * An icon colour as stored: the colour picker's object, read by its `hex` (any\n * other keys a picker saved ride along). `''` is no colour.\n */\nexport interface IconColor {\n hex: string;\n}\n\nexport interface NodeIcon {\n name: string;\n color?: IconColor | '';\n /** Legacy discriminator carried on the wire (usually '' — occasionally null). */\n type?: string | null;\n /**\n * Stencil icon-registry name, written beside a legacy MDL2 `name` so 26.x\n * renders `name` and v27 renders this. Absent on icons saved before it.\n */\n fluentName?: string | null;\n}\n\n/**\n * The rule a condition binds that the tree's Save still has to write. `ruleId`\n * is a client id (`new:…`) when Save creates it from `rule`; a real id with\n * `rule` when Save updates that rule in place; a real id alone when the\n * condition binds an existing rule as it is. Never on a tree the server read.\n */\nexport interface StagedRule {\n ruleId: string;\n rule?: Record<string, unknown>;\n}\n\n/**\n * A row's condition — a tab, header page, icon rule, hide rule, group or drop\n * action: its tree-rule binding, the rule its Save still has to write, and the\n * expression the viewer evaluates against the record.\n */\nexport interface TreeRuleBinding {\n inquiryTreeRuleId?: string | null;\n stagedRule?: StagedRule;\n jsonLogic?: JsonLogic | null;\n /** JsonLogic var name → record field name (or custom value). */\n propertyMapping?: Record<string, string> | null;\n /** JsonLogic var name → \"value is custom, not a record field\". */\n propertyIsCustomMapping?: Record<string, boolean> | null;\n}\n\n/**\n * Conditional icon / adornment rule entry.\n * ⚠ duplicate/override-rewritten shape: `inquiryTreeRuleId` and the key names\n * below must stay exact on the wire.\n */\nexport interface ConditionalIconRule extends TreeRuleBinding {\n id?: string;\n name: string;\n iconColor?: IconColor | '';\n type?: string;\n /** Stencil icon-registry name beside a legacy MDL2 `name` (see NodeIcon). */\n fluentName?: string | null;\n [key: string]: unknown;\n}\n\n/** The page a tab, header page or drop action opens. */\nexport interface PageRef {\n pageId?: string | null;\n name?: string | null;\n [key: string]: unknown;\n}\n\n/** ⚠ duplicate/override-rewritten shape (`page` ids). */\nexport interface HeaderPageRef extends TreeRuleBinding {\n id?: string;\n page?: PageRef | null;\n sequenceNo?: string;\n /** Data Browser pages: the query the page reads, and its parameters. */\n queryId?: string | null;\n queryParamMapping?: Record<string, string> | null;\n /** Page field → the record field (or custom value) it is bound to. */\n requiredFieldMapping?: Record<string, unknown> | null;\n [key: string]: unknown;\n}\n\n/**\n * Node tab entry. ⚠ duplicate/override-rewritten shape:\n * `inquiryTreeRuleId`, `pageHeaderPages[]`, `page{pageId, clusterId, name, productId}`.\n */\nexport interface NodeTab extends HeaderPageRef {\n /** The tab's label; empty shows the page's name. */\n displayName?: string | null;\n pageHeaderPages?: HeaderPageRef[];\n /** Trees the page offers to open. */\n trees?: unknown[] | null;\n}\n\n/** ⚠ duplicate/override-rewritten shape (rule id). */\nexport interface HiddenNodeRule extends TreeRuleBinding {\n enabled?: boolean;\n [key: string]: unknown;\n}\n\n/** Root-only search configuration entry — backend reads name/isPrimarySearch/searchOperator. */\nexport interface SearchConfigEntry {\n id?: string;\n columnName?: string;\n name: string;\n isPrimarySearch?: boolean;\n advancedSearch?: string;\n advancedSearchOperator?: string;\n groupHeader?: string;\n results?: string;\n searchOperator?: string;\n type?: string;\n searchable?: boolean;\n [key: string]: unknown;\n}\n\n/**\n * Group configuration. ⚠ duplicate/override rewrites ids inside\n * `groupings.{static|dynamic}[].groups[]` (rule ids, `icon.iconColor`, nested `tabs`),\n * so grouping internals are typed shallowly and passed through byte-identically\n * (no color normalization inside — see decisions log #8).\n */\nexport interface GroupConfiguration {\n enabled?: boolean;\n groupType?: 'static' | 'dynamic' | (string & {});\n outlier?: string;\n outlierGroupLabel?: string;\n outlierIcon?: Record<string, unknown> | null;\n hideEmptyGroups?: boolean;\n groupings?: {\n static?: Array<Record<string, unknown>>;\n dynamic?: Array<Record<string, unknown>>;\n [key: string]: unknown;\n };\n tabs?: unknown[];\n [key: string]: unknown;\n}\n\n/** The six comparators a count-chip condition may use (wire vocabulary). */\nexport type CountChipOperator = '=' | '!=' | '>' | '<' | '>=' | '<=';\n\n/** One flat count-chip condition — ANDed with its siblings. */\nexport interface CountChipCondition {\n field: string;\n operator: CountChipOperator;\n value: string | number | boolean;\n}\n\n/**\n * One severity band — the same { operator, value1, value2 } semantics the\n * aggregate thresholds persist (models/NumberOperator operators; value2 only\n * for BETWEEN). Held as a plain object: countChip is already JSON on the node,\n * so nothing is double-stringified.\n */\nexport interface CountChipThresholdBand {\n operator: string;\n value1: string;\n value2?: string;\n}\n\n/**\n * Optional severity bands coloring the count badge, evaluated client-side\n * against the already-fetched count (getCountThresholdStatus) — no extra\n * requests. Unlike aggregate chips, a count of 0 is a real value here\n * (\"success when 0\" is the point of a zero band).\n */\nexport interface CountChipThresholds {\n success?: CountChipThresholdBand;\n error?: CountChipThresholdBand;\n warning?: CountChipThresholdBand;\n info?: CountChipThresholdBand;\n}\n\n/** Count-chip configuration held on a level's node properties. */\nexport interface CountChipConfig {\n /**\n * catalogObjectKey of the child binding whose records are counted — matches\n * a childNodes entry's properties.catalogObjectKey.\n */\n childKey: string;\n conditions?: CountChipCondition[];\n thresholds?: CountChipThresholds;\n}\n\n/**\n * Typed node properties. Everything the legacy producer writes and the backend\n * or Inquiry renderer reads. Stringly-typed fields (sequenceNo, noOfNodesDisplayed)\n * stay strings on purpose — they are persisted that way.\n */\n/**\n * A panel attached to a node — the join row (InquiryTreePanelView) with the\n * detailed panel inline: its name, its buttons (`panelActions`), its provenance.\n */\nexport interface NodePanel {\n panelId: string;\n panelPositionId: number;\n inquiryTreePanelId?: string | null;\n /** The panel's entity — what its create/update/delete buttons act on. */\n entityName?: string | null;\n name?: string | null;\n panelActions?: unknown[] | null;\n isProductPanel?: boolean | null;\n [key: string]: unknown;\n}\n\n/**\n * A drop action attached to a node — the join row\n * (InquiryTreeDragAndDropConfigurationView) with the library configuration\n * inline. No join id = attached in this session, not yet saved.\n */\nexport interface NodeAction extends TreeRuleBinding {\n inquiryTreeDragAndDropConfigurationId?: string | null;\n dragAndDropConfigurationId?: string | null;\n name?: string | null;\n /** When it fires, and what it does. */\n triggerType?: NodeActionTriggerEnums | null;\n actionTypeId?: NodeActionEnums | null;\n /** The entity whose records may be dropped. */\n dragEntityName?: string | null;\n /** Load-page drops: the page to open. */\n page?: PageRef | null;\n sequence?: number | string | null;\n parameters?: {\n requiredFieldMapping?: Record<string, unknown> | null;\n [key: string]: unknown;\n } | null;\n [key: string]: unknown;\n}\n\nexport interface EntityNodeProperties {\n // identity / display\n name?: string;\n displayName?: string;\n displayDetails?: string;\n headerName?: string;\n inquiryTitle?: string;\n description?: string;\n sequenceNo?: string;\n // entity / query linkage\n /** ⚠ backend-read on every node (panel/node-action join key with array index). */\n catalogReturnObject?: string;\n catalogObjectKey?: string;\n /** ⚠ backend-read: triggers associated-tree loading. */\n associatedTreeId?: string;\n associatedTreePrimaryKeyMap?: Record<string, string> | null;\n /**\n * Show each record's tags as chips at the end of its tree row (after the\n * count badge). Tags are the generic UdpTag/UdpTagAssociation attribute every\n * record type carries, keyed by business key — never a child level.\n * Absent/false = off.\n */\n showTags?: boolean;\n /** Show the selected record's tags as chips in its header band. Absent/false = off. */\n headerShowTags?: boolean;\n /**\n * ROOT level only, and only meaningful on a tree that names an\n * `explorePageId`: fetch the root-record page even though the tree opens on\n * its landing screen. Absent = the derived default (a tree with a landing page\n * starts EMPTY and fills through + Load; every other tree seeds its page).\n * See inquiry/v2/tree/arrivalModel.\n */\n loadRecordsOnOpen?: boolean;\n /**\n * How this level's CHILD levels load: true = lazily (collapsed, fetched on\n * expand); absent/false = eagerly (fetched up front, rendered expanded). One\n * setting for all of them — v1 and v2 both read it (loadsChildrenLazily).\n */\n lazyLoad?: boolean;\n isPrimarySearch?: boolean;\n isDraggable?: boolean;\n defaultDisplay?: string;\n // m2m joining keys\n joiningEntityName?: string | null;\n joiningEntityCatalogObjectKey?: string | null;\n joiningEntityCatalogObjectLeftKey?: string | null;\n joiningEntityChildKey?: string;\n joinedWithName?: string | null;\n isUsingJointEntityAdditionalProperties?: boolean;\n // icons & rules\n defaultIcon?: NodeIcon | null;\n conditionalNodeIcons?: ConditionalIconRule[];\n /** Compiled twin of conditionalNodeIcons — regenerated on write by operations that edit the rules. */\n conditionalNodeIconExpression?: JsonLogic | null;\n conditionalNodeAdornments?: ConditionalIconRule[];\n conditionalNodeAdornmentExpression?: JsonLogic | null;\n /** @deprecated legacy adornment keys; carried verbatim until the node's rules are edited (decisions log #7). */\n conditionalIcons?: unknown[];\n /** @deprecated compiled twin of conditionalIcons. */\n conditionalIconExpression?: JsonLogic | null;\n hiddenNode?: HiddenNodeRule | null;\n // sub-configs\n tabs?: NodeTab[];\n nodeHeaderPages?: HeaderPageRef[];\n pageHeaderConfiguration?: unknown[] | null;\n /** ⚠ backend-read on the root node. */\n searchConfiguration?: SearchConfigEntry[] | null;\n alerts?: unknown[];\n actions?: unknown[];\n appsConfiguration?: unknown[] | null;\n defaultNodeHeaderExpanded?: string;\n defaultPageHeaderExpanded?: string;\n aggregateThresholdId?: string;\n aggregateThresholdParamMappings?: Record<string, string>;\n /**\n * Query-less counts: every row of this level shows, per entry, the number of\n * child records under THAT row for the entry's `childKey` binding, optionally\n * narrowed by an AND of flat conditions. Read through `countChipsOf`.\n */\n countChips?: CountChipConfig[];\n /** The single count trees saved before `countChips` — read, never written. */\n countChip?: CountChipConfig;\n groupConfiguration?: GroupConfiguration;\n // legacy new-node seed fields (TreeConfiguration.jsx:122-149) — persisted by the\n // legacy producer on every node it created; kept for byte parity\n isActive?: boolean;\n childNodes?: unknown[];\n keys?: string;\n path?: string;\n noOfNodesDisplayed?: string;\n icon?: string;\n catalogObjectProperty?: Record<string, unknown> | null;\n /**\n * The node's joins, exactly as the tree read embeds them. Edited in place by\n * the builder and saved with the tree.\n */\n panels?: NodePanel[];\n nodeActions?: NodeAction[];\n /**\n * Every wire property key this model doesn't type — preserved verbatim and\n * re-emitted on write. Old trees must round-trip without loss.\n */\n unknownProperties?: Record<string, unknown>;\n}\n\nexport interface TreeNodeBase {\n id: string;\n /** The parent level's id; '' on the root. */\n parentId: string;\n parentGroupId?: string | null;\n /** Legacy soft-delete flag (mid-tree deletions persist as isDeleted + properties:{}). */\n isDeleted?: boolean;\n /** Node-level wire keys beyond the known schema, preserved for write-back. */\n unknownNodeKeys?: Record<string, unknown>;\n}\n\nexport interface EntityNode extends TreeNodeBase {\n isGroupNode?: false;\n properties: EntityNodeProperties;\n}\n\n/** What reading a level's config needs: its node, or a row composed from it. */\nexport type LevelConfig = Pick<EntityNode, 'properties'>;\n\n/** Group nodes are synthesized at render but can persist in saved trees. */\nexport interface GroupNode extends TreeNodeBase {\n isGroupNode: true;\n groupType?: 'static' | 'dynamic' | (string & {});\n properties: Record<string, unknown>;\n}\n\nexport type TreeNode = EntityNode | GroupNode;\n\nexport const isGroupNode = (node: TreeNode): node is GroupNode =>\n (node as GroupNode).isGroupNode === true;\n\nexport const isEntityNode = (node: TreeNode): node is EntityNode =>\n !isGroupNode(node);\n\n/** A level's counts, in row order — the single `countChip` of older trees as a list of one. */\nexport const countChipsOf = (\n properties: Pick<EntityNodeProperties, 'countChips' | 'countChip'> | null | undefined\n): CountChipConfig[] =>\n properties?.countChips ?? (properties?.countChip ? [properties.countChip] : []);\n\n/**\n * GET inquiryTree/{id} as the server sends it — what `fromWire` reads, what\n * `toWire` writes and what the save takes back. `treeStructure` is the node\n * array, read only by serialize.ts.\n */\nexport interface InquiryTreeWire extends InquiryTreeWrapper {\n inquiryTreeId: string;\n name?: string;\n treeStructure?: unknown[];\n}\n\n/** The tree's keys beside its nodes; keys nothing here reads stay unknown. */\nexport interface InquiryTreeWrapper {\n [key: string]: unknown;\n description?: string;\n tenantId?: string;\n isActive?: boolean;\n isPreloaded?: boolean;\n isProductInquiryTree?: boolean;\n /** The page the viewer lands on before a record is loaded. */\n explorePageId?: string | null;\n productVersionId?: string | null;\n parentInquiryTreeId?: string | null;\n /** The version the tree was read at — the save refuses a stale one (409). */\n updatedOn?: string;\n updatedBy?: string;\n /** The product the tree belongs to — its promotions are read under it. */\n product?: {\n [key: string]: unknown;\n productId?: number | string;\n name?: string;\n } | null;\n productVersion?: Record<string, unknown> | null;\n /** The tree's query: the root level's method and its entities' catalog. */\n apiMethodInstance?: {\n [key: string]: unknown;\n apiMethodInstanceId?: string;\n apiMethodId?: string;\n apiCatalogId?: string;\n returnObject?: string;\n name?: string;\n } | null;\n associatedToTrees?: unknown[];\n associatedMenuItems?: unknown[];\n}\n\n/**\n * The canonical tree: the wire's other keys (passed through untouched) + the\n * typed node array. `wrapper` holds every key the GET returned except the\n * tree's id, name and treeStructure (product, apiMethodInstance, audit\n * fields, …), so a save spreads it back exactly as read.\n */\nexport interface InquiryTree {\n inquiryTreeId: string;\n name?: string;\n nodes: TreeNode[];\n wrapper: InquiryTreeWrapper;\n}\n\n/**\n * `note` is a finding that may well be intentional (a hidden header with fields\n * left behind, a root with no quick-search field). Builders keep notes out of\n * the UI — no dot, no count — and hand them to the assistant for context only.\n */\nexport type ValidationSeverity = 'error' | 'warning' | 'note';\n\nexport interface ValidationIssue {\n severity: ValidationSeverity;\n /** Machine-usable code, e.g. 'multiple-roots', 'orphan-parent', 'missing-required-field'. */\n code: string;\n /** Node id the issue anchors to, when node-scoped. */\n nodeId?: string;\n /** Property path within the node, when field-scoped. */\n path?: string;\n message: string;\n}\n"],"mappings":";AAqYA,MAAaoJ,eAAeM,SACzBA,KAAmBN,gBAAgB;AAEtC,MAAaO,gBAAgBD,SAC3B,CAACN,YAAYM,KAAK;;AAGpB,MAAaE,gBACXP,eAEAA,YAAYpB,eAAeoB,YAAYnB,YAAY,CAACmB,WAAWnB,UAAU,GAAG,EAAE"}
|
|
@@ -2,14 +2,21 @@
|
|
|
2
2
|
* Structural + semantic tree validation — the thing the legacy app never had.
|
|
3
3
|
* Returns structured issues consumed identically by the UI (inline) and the
|
|
4
4
|
* AI copilot (repair loop). Pure: no React, no HTTP.
|
|
5
|
+
*
|
|
6
|
+
* A message never names its node: a consumer prefixes the level the issue's
|
|
7
|
+
* `nodeId` points at (TreeSerializationError names it by the node's name).
|
|
5
8
|
*/
|
|
6
9
|
import { InquiryTree, ValidationIssue } from './types';
|
|
7
10
|
import { CatalogObject } from './legalChildren';
|
|
11
|
+
// sequenceNo is deliberately NOT here: the legacy form required it, but the
|
|
12
|
+
// runtime never orders sibling levels by it (levels render in array order;
|
|
13
|
+
// only actions/tabs/header-pages sub-lists use sequenceNo) — warning about a
|
|
14
|
+
// blank one told builders to fix a field that changes nothing.
|
|
15
|
+
/** The issue path of a tab's page — what the tab's page picker shows. */
|
|
16
|
+
export declare const tabPagePath: (tabId: unknown) => string;
|
|
8
17
|
export interface ValidationContext {
|
|
9
18
|
/** Catalog objects for the tree's apiMethodInstance — enables the reachability check. */
|
|
10
19
|
catalogObjects?: CatalogObject[];
|
|
11
|
-
/** Known tree ids — enables the associatedTreeId existence check. */
|
|
12
|
-
knownTreeIds?: Set<string>;
|
|
13
20
|
}
|
|
14
21
|
export declare const validateTree: (tree: InquiryTree, context?: ValidationContext) => ValidationIssue[];
|
|
15
22
|
//# sourceMappingURL=validate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../../src/domain/inquiryTree/validate.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../../src/domain/inquiryTree/validate.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,WAAW,EAAY,eAAe,EAAgB,MAAM,SAAS,CAAC;AAC/E,OAAO,EAEL,aAAa,EAEd,MAAM,iBAAiB,CAAC;AAYzB,4EAA4E;AAC5E,2EAA2E;AAC3E,+EAA6E;AAC7E,+DAA+D;AAE/D,2EAAyE;AACzE,eAAO,MAAM,WAAW,4BAA2D,CAAC;AAEpF,MAAM,WAAW,iBAAiB;IAChC,2FAAyF;IACzF,cAAc,CAAC,EAAE,aAAa,EAAE,CAAC;CAClC;AAKD,eAAO,MAAM,YAAY,uEA4JxB,CAAC"}
|