@openbkn/workshop 0.2.2-rc.5 → 0.2.2
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/README.md +83 -13
- package/component.d.ts +10 -0
- package/dist/ActionConfirm-DJ91X3ml.js +236 -0
- package/dist/ActionFailure-ZgPt_3B-.js +37 -0
- package/dist/AgentChat-CRYai8ge.js +1062 -0
- package/dist/AppFormModal-D73ucaHK.js +4282 -0
- package/dist/AppListPage-D87piiOw.js +1364 -0
- package/dist/AskDrawer-BUMYsRnt.js +38 -0
- package/dist/ComputedView-CgYrDbx1.js +3221 -0
- package/dist/ConclusionApply-sjGfoEBY.js +153 -0
- package/dist/CypherEditor-lus6FA5L.js +485 -0
- package/dist/LandingList-6JI6864C.js +230 -0
- package/dist/MenuUnfoldOutlined-Cdg24l2h.js +27 -0
- package/dist/ModelTrial-ClHFGTpQ.js +359 -0
- package/dist/PageRenderer-DBd_g6mN.js +85480 -0
- package/dist/README-DjRyTQSR.js +76 -0
- package/dist/ScenarioApply-DtW_hh47.js +590 -0
- package/dist/SimulateForm-C-i08Jjd.js +153 -0
- package/dist/Subgraph-CnrkH9AN.js +32586 -0
- package/dist/WorkshopLabPage-DiVXQL9e.js +11364 -0
- package/dist/WorkshopRunPage-6hjRUf64.js +253 -0
- package/dist/abnfDiagram-WEYOIA3C-beRNhN3c.js +87 -0
- package/dist/action-type-tool.service-B2B74fKC.js +1060 -0
- package/dist/actionButton-DA5CNEzx.js +94 -0
- package/dist/actionButton.en-US-qjeqA7hs.js +94 -0
- package/dist/agentChat-EoDznd58.js +116 -0
- package/dist/agentChat.en-US-B6-pFd9Y.js +116 -0
- package/dist/alertList-DqditwM8.js +84 -0
- package/dist/alertList.en-US-BAXAgltP.js +84 -0
- package/dist/architectureDiagram-ZHVYKT53-DY2l1qxx.js +4779 -0
- package/dist/asOfSlider-QPvHWUMV.js +83 -0
- package/dist/asOfSlider.en-US-BI4jVfSn.js +83 -0
- package/dist/bkn-agent-execution.service-DVh-SHyl.js +205 -0
- package/dist/blockDiagram-RJAE7QA3-DR0mjN2h.js +1435 -0
- package/dist/c4Diagram-XDPPPE54-DH5zsGug.js +1518 -0
- package/dist/channel-B034hcOF.js +5 -0
- package/dist/china-C6m7zXIv.js +9 -0
- package/dist/chunk-2E7WHVMD-Ba3svxgx.js +664 -0
- package/dist/chunk-2Q5K7J3B-rT4eU6_y.js +15 -0
- package/dist/chunk-4EMNKR2T-C1kQZYHK.js +262 -0
- package/dist/chunk-55XCU76K-dcpLOktb.js +68 -0
- package/dist/chunk-5VM5RSS4-BdpQuzmO.js +19 -0
- package/dist/chunk-JWPE2WC7-CDBrSjU7.js +8 -0
- package/dist/chunk-VQ5W62QI-BiVKc40w.js +19 -0
- package/dist/chunk-XXDRQBXY-CPYrcdVW.js +8 -0
- package/dist/chunk-ZCHMQSOR-BG8OLpvb.js +451 -0
- package/dist/classDiagram-v2-4MYWR3UA-DqbpQpwI.js +1564 -0
- package/dist/component.d-DFoMKuUv.js +179 -0
- package/dist/cose-bilkent-JH36ORCC-CdXk4sPf.js +2609 -0
- package/dist/customComponents-DasaZ6pq.js +4 -0
- package/dist/customComponents.en-US-CkabuCXg.js +79 -0
- package/dist/customParseFormat-C0uLEpdq.js +182 -0
- package/dist/cynefin-EF2NZ3EQ-D7MVnMHu.js +21746 -0
- package/dist/cynefinDiagram-WF24UDRP-BYT_KpDL.js +299 -0
- package/dist/cytoscape.esm-BCV9V6aO.js +18760 -0
- package/dist/d3-scale-DA8IHmf0.js +1841 -0
- package/dist/dagre-NK4GIZVX-l-ghPdM8.js +2154 -0
- package/dist/dateRange-BbkLMg8L.js +79 -0
- package/dist/dateRange.en-US-CV12Q02G.js +79 -0
- package/dist/dayjs.min-DZ-YV8Mv.js +284 -0
- package/dist/diagram-CBK3MWTC-Bt3HiwvA.js +542 -0
- package/dist/diagram-I5XIIV2D-DcbqfBjx.js +150 -0
- package/dist/diagram-ODIL2UCW-9PC1n3n5.js +346 -0
- package/dist/diagram-PFBEJUXE-DGhr2kc7.js +478 -0
- package/dist/diagram-RJA3I4VV-DwzpOjZ_.js +219 -0
- package/dist/diagram-TYUNFSNR-B3Bd3TDU.js +2583 -0
- package/dist/dropdownFilter-DOi_8-ZT.js +76 -0
- package/dist/dropdownFilter.en-US-BiXpvXtF.js +76 -0
- package/dist/ebnfDiagram-V4P3TTPT-E5NN2oKc.js +109 -0
- package/dist/elk-QONTBCTQ-dFjcujl_.js +49170 -0
- package/dist/erDiagram-KYQIGQAA-BMrasBzB.js +1061 -0
- package/dist/eventList-CnsAwfDS.js +115 -0
- package/dist/eventList.en-US-Cof3rCLq.js +115 -0
- package/dist/eventReport-XS-HegnH.js +76 -0
- package/dist/eventReport.en-US-DTx4vzWT.js +76 -0
- package/dist/flowDiagram-IUGLLWBU-BGIBH0q0.js +1769 -0
- package/dist/ganttChart-DEeSvTJA.js +77 -0
- package/dist/ganttChart.en-US-SwRKrnoD.js +77 -0
- package/dist/ganttDiagram-R7GPNTJY-C0tb1Lpp.js +1741 -0
- package/dist/generateCypher-Ch9_lQa6.js +399 -0
- package/dist/gitGraphDiagram-PDYL7XHY-DBqcOa-c.js +815 -0
- package/dist/graph-CKJmgLki.js +1541 -0
- package/dist/index-BA-GzCXt.js +441 -0
- package/dist/infoDiagram-MVDRKAX5-Bwuki4JA.js +24 -0
- package/dist/ishikawaDiagram-HPEHV2GE-Dz4d6ygx.js +622 -0
- package/dist/journeyDiagram-BOSHW7O7-C99m34Bb.js +834 -0
- package/dist/kanban-definition-FNSA4HC5-mdqjODsT.js +724 -0
- package/dist/katex-BsrBVQKd.js +11314 -0
- package/dist/manifest-BjV1PJ6u.js +41 -0
- package/dist/mermaid.core-yQghUlIz.js +17642 -0
- package/dist/metricCards-CSb-_cT2.js +104 -0
- package/dist/metricCards.en-US-BLLhRsQU.js +104 -0
- package/dist/mindmap-definition-6OY57UG3-BZhO2wX4.js +834 -0
- package/dist/modelTrial-Bvb-RhGt.js +137 -0
- package/dist/modelTrial.en-US-DYcuor-G.js +137 -0
- package/dist/models-DekiCOuZ.js +6 -0
- package/dist/object-metric-numeric-vs3BeDkH.js +42 -0
- package/dist/object-metric.service-flZgBMRX.js +233 -0
- package/dist/objectDetail-SQUbp4Py.js +117 -0
- package/dist/objectDetail.en-US-DW3mlONM.js +117 -0
- package/dist/objectList-D99wPtJH.js +97 -0
- package/dist/objectList.en-US-PBBNyVLW.js +97 -0
- package/dist/objectTable-0jsFFMN3.js +127 -0
- package/dist/objectTable.en-US-yWEs8qc_.js +127 -0
- package/dist/pegDiagram-ECIUJNBX-BDa5RfZt.js +95 -0
- package/dist/pieDiagram-GNMPY74T-DNVtzXPv.js +165 -0
- package/dist/pivotTable-CHmQw18-.js +102 -0
- package/dist/pivotTable.en-US-B4uv4P08.js +102 -0
- package/dist/prompt-DYrjlEFr.js +373 -0
- package/dist/quadrantDiagram-D57K4MC3-vK0f2OvQ.js +1023 -0
- package/dist/railroadDiagram-Y72NRBL7-j6ZrTmRp.js +77 -0
- package/dist/regionMap-Cme-JyV_.js +128 -0
- package/dist/regionMap.en-US-Bwr2_p32.js +128 -0
- package/dist/requirementDiagram-EQYSW5RA-DgfEyljA.js +886 -0
- package/dist/sankeyDiagram-SY24JHO5-CImx-IX0.js +1160 -0
- package/dist/scenarioBar-BV43p7n-.js +122 -0
- package/dist/scenarioBar.en-US-5KqMQ2Bg.js +122 -0
- package/dist/scheduleGantt-CTYO-zYP.js +180 -0
- package/dist/scheduleGantt.en-US-hE7mvVUW.js +180 -0
- package/dist/searchBox-Ca7w0f_6.js +67 -0
- package/dist/searchBox.en-US-ArS_XBvB.js +67 -0
- package/dist/segmentedFilter-MhjVcWo0.js +80 -0
- package/dist/segmentedFilter.en-US-BxNrQO5T.js +80 -0
- package/dist/sequenceDiagram-BLEHNHQU-nWmjd1ci.js +2969 -0
- package/dist/sizeCapture-INFHLROL-D3jlbt7h.js +46 -0
- package/dist/stageChain-BxBafwjD.js +74 -0
- package/dist/stageChain.en-US-CP0G27n8.js +74 -0
- package/dist/stateDiagram-v2-A6IESKWZ-DG1ZetEu.js +1514 -0
- package/dist/subgraph-7n4SwliR.js +71 -0
- package/dist/subgraph.en-US-BNvY18IW.js +71 -0
- package/dist/swimlanes-B3ENRKFQ-cCmJE8AU.js +4991 -0
- package/dist/swimlanesDiagram-AYQRV4AK-CtuhyguU.js +14 -0
- package/dist/taskInbox-DGWYeI2b.js +118 -0
- package/dist/taskInbox.en-US-B-OzDmVl.js +118 -0
- package/dist/text-BqSVQKS6.js +78 -0
- package/dist/text.en-US-BhAxy_LE.js +78 -0
- package/dist/timeline-definition-JXYKGLGB-Cc-INsOv.js +1057 -0
- package/dist/trendChart-BjEeRS5_.js +135 -0
- package/dist/trendChart.en-US-BBGqWUKM.js +135 -0
- package/dist/useLabData-Df-jEHKs.js +20470 -0
- package/dist/usecaseDiagram-WPOLBNNX-r8wVjopm.js +7920 -0
- package/dist/vennDiagram-Q3Y3IDCW-BZiOcgrj.js +1579 -0
- package/dist/wardleyDiagram-IVAIDKWA-16jd07C_.js +675 -0
- package/dist/workshop-app-DnHNjBqy.js +86038 -0
- package/dist/workshop-app.css +1 -0
- package/dist/workshop-app.js +4 -0
- package/dist/world-Djau1JyJ.js +9 -0
- package/dist/xychartDiagram-4URNHDU4-C8DwWQNh.js +1460 -0
- package/dist-cli/workshop.js +341 -218
- package/example/host.js +109 -0
- package/example/index.html +93 -0
- package/example/server.mjs +237 -0
- package/index.d.ts +48 -0
- package/lib/validate.js +47 -1
- package/package.json +17 -5
- package/runtime/frame-runtime.js +13 -1
- package/workshop-component.js +32 -12
- package/workshop.js +2 -0
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
const n = `# 模型试算(modelTrial)
|
|
2
|
+
|
|
3
|
+
对一批对象,按 2 到 4 组参数各调用一次模型,并排比较各组的汇总与明细;结果只显示在页面上,不改对象。用来做“参数这样调、结果会怎样”的决策。
|
|
4
|
+
|
|
5
|
+
**只在提供方案能力(企业版)的版本里出现。** 其他版本里这个组件不在组件库中,已放进页面的会显示“方案推演需要企业版”。
|
|
6
|
+
|
|
7
|
+
## 适用与不适用
|
|
8
|
+
|
|
9
|
+
- 适用:有一个行业模型(成本、产能、风险评分),要对选出的一批对象,试几组参数,比较结果后再决定是否落地。例如对一批订单试三种加价比例,对一批工单试不同的产线速度。
|
|
10
|
+
- 不适用:
|
|
11
|
+
- 要保存假设、多人对比、再采用执行:用方案(\`scenarioBar\`);模型试算的某一组可以“存为方案”,但本身不保存方案。
|
|
12
|
+
- 对象的值要按固定规则逐行计算:在数据源上加计算列,不用模型。
|
|
13
|
+
- 对一批对象直接执行行动:用按钮(\`actionButton\`)。
|
|
14
|
+
- 只看一个指标的数量与趋势:用指标卡组(\`metricCards\`)。
|
|
15
|
+
|
|
16
|
+
## 本体契约
|
|
17
|
+
|
|
18
|
+
| 角色 | 对象类要求 | 必要的属性 | 关系 | 必填 |
|
|
19
|
+
| --- | --- | --- | --- | --- |
|
|
20
|
+
| 被试算的对象 | 要算的那类对象:订单、工单、产品 | 模型要读的属性(每个模型最多 20 个);名称 | — | 是:数据源,且该数据源已登记模型 |
|
|
21
|
+
| 模型 | 数据源上登记的模型,每个数据源最多 5 个 | 工具(执行工厂)、读取的属性、可调参数(1 到 5 个,类型为数字、日期、文本)、返回的结果字段(1 到 8 个)、汇总度量(1 到 8 个) | — | 是 |
|
|
22
|
+
| 落地行动 | 按某组结果对对象执行的知识网络行动,作用于被试算的对象类 | 行动的输入,取自参数、结果字段、对象属性或固定值 | 行动 → 对象类 | 否:没有时只能看,不能执行 |
|
|
23
|
+
| 方案参数 | 模型参数可以关联一个方案参数,使第一组默认取当前方案里的值 | 名称、默认值 | — | 否 |
|
|
24
|
+
|
|
25
|
+
模型登记在构建器的“列与进度”里数据源的模型中,不在本组件上。本组件只选数据源和筛选。
|
|
26
|
+
|
|
27
|
+
## 组件内置的判断
|
|
28
|
+
|
|
29
|
+
与行业无关,组件自己做:
|
|
30
|
+
|
|
31
|
+
| 判断 | 规则 |
|
|
32
|
+
| --- | --- |
|
|
33
|
+
| 试算对象 | 组件跟随的筛选留下的对象;点指标卡、告警或在表格勾选,都会缩小范围 |
|
|
34
|
+
| 对象上限 | 一次最多 200 个对象,超过时“试算”不可用,提示缩小范围 |
|
|
35
|
+
| 参数齐全 | 每一组的每个参数都要填,否则“试算”不可用 |
|
|
36
|
+
| 基准 | 第 1 组是基准;其他组的汇总附与基准的差值,差为 0 时不显示 |
|
|
37
|
+
| 数据已变化 | 试算之后对象的值、基准日期或参数变了,提示“数据已变化,请重新试算”,并且不可再按结果执行 |
|
|
38
|
+
| 明细差异 | 其他组与基准结果不同的值高亮;可只看各组结果不同的对象 |
|
|
39
|
+
| 失败 | 某一组调用失败,该组显示“调用失败”及原因,其他组照常显示 |
|
|
40
|
+
|
|
41
|
+
## 扩展点
|
|
42
|
+
|
|
43
|
+
### 模型
|
|
44
|
+
|
|
45
|
+
- **用途**:行业计算:成本、产能、风险、价格。场景判断全在模型里,组件不重算。
|
|
46
|
+
- **在哪里配**:“列与进度”里数据源的模型:名称、说明、工具、读取的属性、参数、结果字段、汇总度量、落地行动。
|
|
47
|
+
- **接什么**:执行工厂里的函数工具,或登记为 OpenAPI 工具的服务;在函数里读知识网络。只能读页面发给它的值和知识网络,不要有副作用。
|
|
48
|
+
- **输入**:
|
|
49
|
+
|
|
50
|
+
\`\`\`json
|
|
51
|
+
{
|
|
52
|
+
"asOf": "2026-11-20",
|
|
53
|
+
"params": { "markup": 5, "ship_date": "2026-12-01" },
|
|
54
|
+
"objects": [
|
|
55
|
+
{ "key": "SO-1001", "amount": 12000, "customer": "C-07" }
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
\`\`\`
|
|
59
|
+
|
|
60
|
+
\`asOf\` 是页面的基准日期;\`params\` 是这一组的参数;\`objects\` 是被试算的对象,\`key\` 之外是模型登记要读的属性,取值是页面上的当前值,选中方案时是方案里的值。
|
|
61
|
+
|
|
62
|
+
- **输出**:
|
|
63
|
+
|
|
64
|
+
\`\`\`json
|
|
65
|
+
{ "results": [ { "key": "SO-1001", "margin": 0.18, "risk": "高" } ] }
|
|
66
|
+
\`\`\`
|
|
67
|
+
|
|
68
|
+
也可以包在 \`result\` 里(函数工具的返回形态)。每个对象一项,\`key\` 对应输入;字段名是登记的结果字段,缺少的字段显示为空;没有返回的对象显示“无结果”;不是被试算对象的 \`key\` 忽略。
|
|
69
|
+
- **失败与超时**:每组一次调用,多组并行;一次调用最长约 30 秒。没有返回 \`results\` 列表(包括超时)、工具报错、找不到工具时,该组显示“调用失败”及原因。
|
|
70
|
+
- **结果怎样显示**:汇总度量按各组有结果的对象计算(计数、求和、平均、最小、最大、占比),明细按结果字段分列、每组一列,每页 10 行。结果只在页面上,不写回知识网络。
|
|
71
|
+
|
|
72
|
+
### 落地行动
|
|
73
|
+
|
|
74
|
+
- **用途**:按选定一组的结果,对对象真正执行行动。
|
|
75
|
+
- **在哪里配**:模型的“落地行动”。
|
|
76
|
+
- **接什么**:知识网络里作用于被试算对象类的行动类型。
|
|
77
|
+
- **输入**:选定那一组有结果的对象;行动的每个输入,按模型登记的来源(参数、结果字段、对象属性、固定值)取值,没有登记的按同名依次找参数、结果字段、属性,都没有的在确认时填写。
|
|
78
|
+
- **输出**:平台的执行确认:对象数、该组参数、各对象的值;确认后逐个对象执行,每个对象一次。
|
|
79
|
+
- **失败与超时**:缺少行动所需值的对象不执行,确认里说明几个对象因缺什么而跳过。模型没有登记行动、行动不存在、没有执行权限、结果已过期、没有可执行的结果时,按钮不可点并说明原因。
|
|
80
|
+
- **结果怎样显示**:沿用页面统一的行动执行确认与结果显示。
|
|
81
|
+
|
|
82
|
+
## 交互与联动
|
|
83
|
+
|
|
84
|
+
- **写入**:不写页面筛选。“存为方案”调用方案的新建:把这一组的参数写成方案参数的取值,建一个新方案(只有模型参数关联了方案参数、且结果是最新时才有这个按钮)。
|
|
85
|
+
- **读取**:跟随页面的共享筛选,决定试算哪些对象;显示的对象数与来源(例如“来自「重点客户」”)写在组件顶部。跟随页面当前的方案:选中方案时,对象的值是方案里的值,第一组中关联了方案参数的参数取方案里的值;结果上注明“基于方案「X」”或“基于现状”。
|
|
86
|
+
- **操作**:选模型(有多个时)、改参数、“加一组”(复制最后一组的参数,最多 4 组)、删除组(至少保留 2 组,基准组不能删)、“试算”、选一组“按此结果执行…”、勾选“只看各组结果不同的对象”。
|
|
87
|
+
- **记忆**:试算的参数与结果保存在本浏览器里,每个页面的每个组件一份;换浏览器不带过去。
|
|
88
|
+
|
|
89
|
+
## 场景配方
|
|
90
|
+
|
|
91
|
+
### 订单价格试算
|
|
92
|
+
|
|
93
|
+
| 角色 | 对应 |
|
|
94
|
+
| --- | --- |
|
|
95
|
+
| 被试算的对象 | 销售订单(金额、客户、产品) |
|
|
96
|
+
| 模型 | “价格试算”,读金额、客户、产品;参数:加价比例(数字);结果字段:毛利率、风险等级 |
|
|
97
|
+
| 汇总度量 | 平均毛利率;高风险订单数(条件:风险等级为高) |
|
|
98
|
+
| 落地行动 | “调整订单价格”,输入取自加价比例 |
|
|
99
|
+
|
|
100
|
+
**知识网络中要有:** 订单、客户、产品对象类;函数工具“价格试算”按客户与产品读成本与历史价格;行动类型“调整订单价格”。
|
|
101
|
+
|
|
102
|
+
**检查项:** 在订单表勾选几张订单,组件显示“本次 n 个对象”;设三组加价比例,点“试算”,汇总里各组与基准有差值;改订单数据后提示“数据已变化,请重新试算”;选一组“按此结果执行…”会打开执行确认。
|
|
103
|
+
|
|
104
|
+
### 产线速度对产能的影响
|
|
105
|
+
|
|
106
|
+
| 角色 | 对应 |
|
|
107
|
+
| --- | --- |
|
|
108
|
+
| 被试算的对象 | 生产工单(数量、产线、计划完成日) |
|
|
109
|
+
| 模型 | “产能试算”,读数量、产线;参数:产线速度提升比例;结果字段:预计完成日、是否超期 |
|
|
110
|
+
| 汇总度量 | 超期工单数 |
|
|
111
|
+
|
|
112
|
+
**知识网络中要有:** 工单与产线对象类;函数工具“产能试算”读产线日产能。
|
|
113
|
+
|
|
114
|
+
**检查项:** 点指标卡里的“已超期”选出一批工单后试算,各组超期数不同;一次超过 200 个对象时按钮不可点。
|
|
115
|
+
|
|
116
|
+
## 给 AI 的指引
|
|
117
|
+
|
|
118
|
+
1. 确认环境提供方案能力。先问用户:试算哪类对象,模型是什么(已有的工具,还是要新建),哪些参数可调、范围多大,结果看哪几个字段,要不要按结果执行行动。
|
|
119
|
+
2. 模型必须先在数据源上登记,组件才有东西可选;没有时提示去“列与进度”登记。
|
|
120
|
+
3. 模型要新建时,按上面的输入输出列出函数工具要做的事:读哪些属性、返回哪些字段;不要把计算写进配置里的条件。
|
|
121
|
+
4. 要让用户方便地选对象,同页放对象表(可勾选)或指标卡,并让本组件跟随它们的筛选。
|
|
122
|
+
5. 常见错误:
|
|
123
|
+
- 一次试算的对象超过 200 个。要用筛选缩小范围,或分批。
|
|
124
|
+
- 结果字段与数据源的属性同名。登记时不允许,换名字。
|
|
125
|
+
- 以为试算会改对象。结果只在页面上;要落地必须登记行动并通过确认执行。
|
|
126
|
+
- 汇总度量的“求和、平均、最小、最大”选了非数字字段。
|
|
127
|
+
|
|
128
|
+
## 限制
|
|
129
|
+
|
|
130
|
+
- 一次最多试算 200 个对象;每个数据源最多 5 个模型,每个模型最多 20 个输入属性、5 个参数、8 个结果字段、8 个汇总度量。
|
|
131
|
+
- 参数组 2 到 4 个;第一组是基准。
|
|
132
|
+
- 一次调用最长约 30 秒;超时的组显示失败。
|
|
133
|
+
- 试算结果不保存到服务,只保存在当前浏览器。
|
|
134
|
+
`;
|
|
135
|
+
export {
|
|
136
|
+
n as default
|
|
137
|
+
};
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
const e = `# Model trial (modelTrial)
|
|
2
|
+
|
|
3
|
+
Runs a model on a batch of objects once for each of 2 to 4 parameter sets, and compares the totals and details of the sets side by side. Results show only on the page and do not change the objects. Use it to decide what happens if the parameters are set this way.
|
|
4
|
+
|
|
5
|
+
**It appears only in editions that offer scenarios (Enterprise).** In other editions it is not in the component library, and one already placed on a page shows "Scenarios need the Enterprise edition".
|
|
6
|
+
|
|
7
|
+
## When to use it and when not
|
|
8
|
+
|
|
9
|
+
- Use it when there is a business model (cost, capacity, risk score) and you want to try several parameter sets on a selected batch of objects and compare before deciding to act. For example: three price markups on a batch of orders, different line speeds on a batch of work orders.
|
|
10
|
+
- Do not use it:
|
|
11
|
+
- To keep assumptions, compare them with others, and apply them later: use the scenario (\`scenarioBar\`). A set of a trial can be saved as a scenario, but the trial itself keeps none.
|
|
12
|
+
- When the value follows a fixed rule row by row: add a computed column to the source instead of a model.
|
|
13
|
+
- To run an action on a batch of objects directly: use the button (\`actionButton\`).
|
|
14
|
+
- To see counts and trends of one indicator: use metric cards (\`metricCards\`).
|
|
15
|
+
|
|
16
|
+
## Ontology contract
|
|
17
|
+
|
|
18
|
+
| Role | Object type | Required properties | Relations | Required |
|
|
19
|
+
| --- | --- | --- | --- | --- |
|
|
20
|
+
| Object to try | The kind of object to compute: orders, work orders, products | The properties the model reads (up to 20 per model); a name | None | Yes: a source that has models registered |
|
|
21
|
+
| Model | A model registered on the source, at most 5 per source | The tool (execution factory), the properties it reads, tunable parameters (1 to 5, of type number, date or text), result fields (1 to 8), summary measures (1 to 8) | None | Yes |
|
|
22
|
+
| Landing action | A knowledge network action run on objects from one set's results, acting on the object type tried | The action's inputs, taken from parameters, result fields, object properties or fixed values | Action to object type | No: without it results can only be looked at, not acted on |
|
|
23
|
+
| Scenario parameter | A model parameter may be tied to a scenario parameter so the first set starts from the value in the current scenario | Name, default | None | No |
|
|
24
|
+
|
|
25
|
+
Models are registered in the builder under "Columns and progress", on the source, not on this component. The component only picks the source and the filters.
|
|
26
|
+
|
|
27
|
+
## Built-in checks
|
|
28
|
+
|
|
29
|
+
Independent of industry, the component does these itself:
|
|
30
|
+
|
|
31
|
+
| Check | Rule |
|
|
32
|
+
| --- | --- |
|
|
33
|
+
| Objects tried | The objects left by the filters the component follows. Clicking a metric card or an alert, or ticking rows in a table, narrows them |
|
|
34
|
+
| Object limit | At most 200 objects per run. Above that "Run" is unavailable and the component asks to narrow the range |
|
|
35
|
+
| Parameters filled | Every parameter of every set must be filled, otherwise "Run" is unavailable |
|
|
36
|
+
| Baseline | Set 1 is the baseline. The totals of the other sets show their difference from it, hidden when 0 |
|
|
37
|
+
| Data has changed | When object values, the base date or parameters change after a run, the component says the data changed and asks to run again, and results cannot be acted on |
|
|
38
|
+
| Detail differences | Values that differ from the baseline set are highlighted, and you can show only objects whose results differ between sets |
|
|
39
|
+
| Failure | When the call for one set fails, that set shows "Call failed" with the reason and the others show as usual |
|
|
40
|
+
|
|
41
|
+
## Extension points
|
|
42
|
+
|
|
43
|
+
### Model
|
|
44
|
+
|
|
45
|
+
- **Purpose**: business computation such as cost, capacity, risk or price. All business judgment is in the model. The component recomputes nothing.
|
|
46
|
+
- **Where to set it**: under "Columns and progress", on the source's models: name, description, tool, the properties it reads, parameters, result fields, summary measures, landing action.
|
|
47
|
+
- **What to connect**: a function tool in the execution factory, or a service registered as an OpenAPI tool, which reads the knowledge network inside the function. It may read only the values the page sends and the knowledge network, and must have no side effects.
|
|
48
|
+
- **Input**:
|
|
49
|
+
|
|
50
|
+
\`\`\`json
|
|
51
|
+
{
|
|
52
|
+
"asOf": "2026-11-20",
|
|
53
|
+
"params": { "markup": 5, "ship_date": "2026-12-01" },
|
|
54
|
+
"objects": [
|
|
55
|
+
{ "key": "SO-1001", "amount": 12000, "customer": "C-07" }
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
\`\`\`
|
|
59
|
+
|
|
60
|
+
\`asOf\` is the page's base date. \`params\` are the values of this set. \`objects\` are the objects being tried: besides \`key\`, the properties the model is registered to read, as the page holds them now, or as the scenario holds them when one is shown.
|
|
61
|
+
|
|
62
|
+
- **Output**:
|
|
63
|
+
|
|
64
|
+
\`\`\`json
|
|
65
|
+
{ "results": [ { "key": "SO-1001", "margin": 0.18, "risk": "high" } ] }
|
|
66
|
+
\`\`\`
|
|
67
|
+
|
|
68
|
+
It may also be wrapped in \`result\` (the shape a function tool returns). One entry per object, \`key\` matching the input. Field names are the registered result fields, and a missing field shows empty. An object with no entry shows "No result". A \`key\` that was not asked for is ignored.
|
|
69
|
+
- **Failure and timeout**: one call per set, run in parallel, each cut after about 30 seconds. When no \`results\` list comes back (a timeout included), the tool reports an error, or the tool is not found, that set shows "Call failed" with the reason.
|
|
70
|
+
- **How results show**: summary measures are computed over the objects that have results in each set (count, sum, average, minimum, maximum, ratio). The detail has one column per set under each result field, 10 rows per page. Results stay on the page and are not written back to the knowledge network.
|
|
71
|
+
|
|
72
|
+
### Landing action
|
|
73
|
+
|
|
74
|
+
- **Purpose**: really run an action on objects, from the results of one chosen set.
|
|
75
|
+
- **Where to set it**: the model's "Landing action".
|
|
76
|
+
- **What to connect**: an action type of the knowledge network acting on the object type tried.
|
|
77
|
+
- **Input**: the objects that have results in the chosen set. Each input of the action is taken from the source the model registers for it (parameter, result field, object property, fixed value). An input with none registered is matched by the same name among parameters, result fields and properties in that order, and otherwise filled in when confirming.
|
|
78
|
+
- **Output**: the platform's execution confirmation with the number of objects, the set's parameters and each object's values. After confirming it runs once per object.
|
|
79
|
+
- **Failure and timeout**: objects lacking a value the action needs are not run, and the confirmation says how many were skipped and for lack of what. When the model has no action registered, the action does not exist, the user may not execute it, the results are out of date, or there is nothing to run, the button is disabled and says why.
|
|
80
|
+
- **How results show**: through the page's shared execution confirmation and result display.
|
|
81
|
+
|
|
82
|
+
## Interaction and links
|
|
83
|
+
|
|
84
|
+
- **Writes**: no page filter. "Save as scenario" creates a scenario: the set's parameters become scenario parameter values in a new scenario. The button shows only when a model parameter is tied to a scenario parameter and the results are current.
|
|
85
|
+
- **Reads**: it follows the page's shared filters, which decide the objects tried. The number of objects and where they come from (for example from "Key customers") are written at the top. It follows the page's current scenario: with a scenario shown, object values are the scenario's, and parameters tied to a scenario parameter in the first set take the scenario's value. The results say "on scenario X" or "on the data as it is".
|
|
86
|
+
- **Actions**: pick a model (when there are several), change parameters, "Add set" (copies the last set's parameters, up to 4 sets), delete a set (at least 2 stay and the baseline cannot be deleted), "Run", pick a set and "Act on these results", and tick "only objects whose results differ".
|
|
87
|
+
- **Memory**: the parameters and results of a trial are kept in this browser, one per component on each page. They do not move to another browser.
|
|
88
|
+
|
|
89
|
+
## Recipes
|
|
90
|
+
|
|
91
|
+
### Trying order prices
|
|
92
|
+
|
|
93
|
+
| Role | Maps to |
|
|
94
|
+
| --- | --- |
|
|
95
|
+
| Object to try | Sales order (amount, customer, product) |
|
|
96
|
+
| Model | "Price trial", reads amount, customer, product. Parameter: markup (number). Result fields: margin rate, risk level |
|
|
97
|
+
| Summary measures | Average margin rate; number of high-risk orders (condition: risk level is high) |
|
|
98
|
+
| Landing action | "Adjust order price", with its input taken from the markup |
|
|
99
|
+
|
|
100
|
+
**The knowledge network needs:** order, customer and product object types. A function tool "price trial" that reads cost and price history by customer and product, and an action type "adjust order price".
|
|
101
|
+
|
|
102
|
+
**Checks:** tick a few orders in the order table and the component says how many objects this run covers. Set three markups and press "Run": the totals show differences from the baseline. Change an order and the component says the data changed and asks to run again. Choosing a set and "Act on these results" opens the execution confirmation.
|
|
103
|
+
|
|
104
|
+
### Line speed and capacity
|
|
105
|
+
|
|
106
|
+
| Role | Maps to |
|
|
107
|
+
| --- | --- |
|
|
108
|
+
| Object to try | Work order (quantity, line, planned finish date) |
|
|
109
|
+
| Model | "Capacity trial", reads quantity and line. Parameter: line speed increase. Result fields: expected finish date, whether late |
|
|
110
|
+
| Summary measures | Number of late work orders |
|
|
111
|
+
|
|
112
|
+
**The knowledge network needs:** work order and line object types. A function tool "capacity trial" that reads each line's daily capacity.
|
|
113
|
+
|
|
114
|
+
**Checks:** click "Overdue" on a metric card to pick a batch of work orders and run. The sets show different counts of late orders. With more than 200 objects the button is disabled.
|
|
115
|
+
|
|
116
|
+
## Guidance for AI
|
|
117
|
+
|
|
118
|
+
1. Confirm the environment offers scenarios. Then ask the user: which objects are tried, what the model is (an existing tool, or one to build), which parameters can be tuned and in what range, which result fields to look at, and whether to act on results.
|
|
119
|
+
2. A model must be registered on the source first, or the component has nothing to offer. When there is none, tell the user to register one under "Columns and progress".
|
|
120
|
+
3. When a model must be built, list what the function tool must do from the input and output above: which properties it reads and which fields it returns. Do not put the computation in configuration conditions.
|
|
121
|
+
4. To let users pick objects easily, put an object table (with ticking) or metric cards on the same page and make this component follow their filters.
|
|
122
|
+
5. Common mistakes:
|
|
123
|
+
- Trying more than 200 objects in one run. Narrow the range with filters, or run in batches.
|
|
124
|
+
- Giving a result field the same name as a property of the source. It is not allowed, so use another name.
|
|
125
|
+
- Assuming a trial changes the objects. Results stay on the page. To land them, register an action and run it through the confirmation.
|
|
126
|
+
- Choosing a non-numeric field for the sum, average, minimum or maximum of a summary measure.
|
|
127
|
+
|
|
128
|
+
## Limits
|
|
129
|
+
|
|
130
|
+
- At most 200 objects per run. Each source has at most 5 models, each with at most 20 input properties, 5 parameters, 8 result fields and 8 summary measures.
|
|
131
|
+
- 2 to 4 parameter sets, and the first is the baseline.
|
|
132
|
+
- A call is cut after about 30 seconds, and the set that timed out shows as failed.
|
|
133
|
+
- Trial results are not saved to the service, only in the current browser.
|
|
134
|
+
`;
|
|
135
|
+
export {
|
|
136
|
+
e as default
|
|
137
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { B as n, t as p, J as a } from "./workshop-app-DnHNjBqy.js";
|
|
2
|
+
const s = a(), m = /^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?$/, y = new n("-9223372036854775808"), d = new n("9223372036854775807"), g = /* @__PURE__ */ new Set(["int64", "decimal", "duration"]);
|
|
3
|
+
function c(t) {
|
|
4
|
+
const e = t.trim();
|
|
5
|
+
if (!m.test(e)) return;
|
|
6
|
+
const i = new n(e);
|
|
7
|
+
if (!i.isFinite()) return;
|
|
8
|
+
const r = Number(e);
|
|
9
|
+
return Number.isFinite(r) && new n(String(r)).isEqualTo(i) ? r : i;
|
|
10
|
+
}
|
|
11
|
+
function l(t) {
|
|
12
|
+
const e = new n(t.trim());
|
|
13
|
+
if (!e.isInteger()) return "not_integer";
|
|
14
|
+
if (e.isLessThan(y) || e.isGreaterThan(d)) return "out_of_range";
|
|
15
|
+
}
|
|
16
|
+
function j(t) {
|
|
17
|
+
const e = c(t);
|
|
18
|
+
return typeof e == "number" ? e : e === void 0 ? void 0 : s.stringify(e);
|
|
19
|
+
}
|
|
20
|
+
function O(t) {
|
|
21
|
+
return typeof t == "number" || typeof t == "string" ? String(t) : t == null ? "" : s.stringify(t);
|
|
22
|
+
}
|
|
23
|
+
function o(t) {
|
|
24
|
+
if (Array.isArray(t)) return t.map(o);
|
|
25
|
+
if (t === null || typeof t != "object") return t;
|
|
26
|
+
const e = Object.getPrototypeOf(t);
|
|
27
|
+
if (e !== Object.prototype && e !== null) return t;
|
|
28
|
+
const r = Object.fromEntries(
|
|
29
|
+
Object.entries(t).map(([u, f]) => [u, o(f)])
|
|
30
|
+
);
|
|
31
|
+
return (r.node_type === "literal" || r.source === "literal") && typeof r.value_type == "string" && g.has(r.value_type) && typeof r.value == "string" && (r.value = c(r.value) ?? r.value), r;
|
|
32
|
+
}
|
|
33
|
+
function N(t, e) {
|
|
34
|
+
return e?.set("Content-Type", "application/json"), p(o(t));
|
|
35
|
+
}
|
|
36
|
+
export {
|
|
37
|
+
O as formatObjectMetricNumericInput,
|
|
38
|
+
j as objectMetricAuthoringNumericValue,
|
|
39
|
+
l as objectMetricInt64InputError,
|
|
40
|
+
c as parseObjectMetricNumericInput,
|
|
41
|
+
N as serializeObjectMetricBody
|
|
42
|
+
};
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import { n as s, q as a, v as b } from "./workshop-app-DnHNjBqy.js";
|
|
2
|
+
import { serializeObjectMetricBody as c } from "./object-metric-numeric-vs3BeDkH.js";
|
|
3
|
+
function d(e) {
|
|
4
|
+
if (e === "forward" || e === "outgoing") return "forward";
|
|
5
|
+
if (e === "backward" || e === "incoming") return "backward";
|
|
6
|
+
throw new Error(`Unsupported object metric relation direction: ${String(e)}`);
|
|
7
|
+
}
|
|
8
|
+
function l(e) {
|
|
9
|
+
return e.map((t) => ({
|
|
10
|
+
...t,
|
|
11
|
+
direction: d(t.direction)
|
|
12
|
+
}));
|
|
13
|
+
}
|
|
14
|
+
function p(e) {
|
|
15
|
+
if (e.specification.kind !== "derived") return e;
|
|
16
|
+
const t = e.specification.business_qualifiers.relation_path;
|
|
17
|
+
if (!t) return e;
|
|
18
|
+
const n = l(t.steps);
|
|
19
|
+
return {
|
|
20
|
+
...e,
|
|
21
|
+
specification: {
|
|
22
|
+
...e.specification,
|
|
23
|
+
business_qualifiers: {
|
|
24
|
+
...e.specification.business_qualifiers,
|
|
25
|
+
relation_path: { ...t, steps: n }
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function i(e) {
|
|
31
|
+
return e && {
|
|
32
|
+
...e,
|
|
33
|
+
definition: p(e.definition)
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
async function w(e, t = {}, n = {}) {
|
|
37
|
+
const r = await s.get(
|
|
38
|
+
`/bkn-backend/v1/knowledge-networks/${e}/object-metrics`,
|
|
39
|
+
{
|
|
40
|
+
params: {
|
|
41
|
+
keyword: t.keyword || void 0,
|
|
42
|
+
limit: t.limit ?? 20,
|
|
43
|
+
metric_type: t.metricType,
|
|
44
|
+
offset: t.offset ?? 0,
|
|
45
|
+
owner_object_type_id: t.ownerObjectTypeId,
|
|
46
|
+
status: t.status
|
|
47
|
+
},
|
|
48
|
+
skipErrorToast: n.skipErrorToast,
|
|
49
|
+
transformResponse: a
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
return {
|
|
53
|
+
...r.data,
|
|
54
|
+
entries: r.data.entries.map((o) => i(o))
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
async function j(e, t, n, r = {}) {
|
|
58
|
+
const o = await s.get(
|
|
59
|
+
`/bkn-backend/v1/knowledge-networks/${e}/object-metrics/${t}`,
|
|
60
|
+
{
|
|
61
|
+
params: { version: n },
|
|
62
|
+
skipErrorToast: r.skipErrorToast,
|
|
63
|
+
transformResponse: a
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
return i(o.data);
|
|
67
|
+
}
|
|
68
|
+
async function g(e, t) {
|
|
69
|
+
const n = p(t), r = await s.post(
|
|
70
|
+
`/bkn-backend/v1/knowledge-networks/${e}/object-metrics`,
|
|
71
|
+
n,
|
|
72
|
+
{
|
|
73
|
+
transformRequest: c,
|
|
74
|
+
transformResponse: a
|
|
75
|
+
}
|
|
76
|
+
);
|
|
77
|
+
return i(r.data);
|
|
78
|
+
}
|
|
79
|
+
async function v(e, t, n) {
|
|
80
|
+
const r = p(n), o = await s.put(
|
|
81
|
+
`/bkn-backend/v1/knowledge-networks/${e}/object-metrics/${t}`,
|
|
82
|
+
r,
|
|
83
|
+
{
|
|
84
|
+
transformRequest: c,
|
|
85
|
+
transformResponse: a
|
|
86
|
+
}
|
|
87
|
+
);
|
|
88
|
+
return i(o.data);
|
|
89
|
+
}
|
|
90
|
+
async function y(e, t, n, r = {}) {
|
|
91
|
+
return (await s.get(
|
|
92
|
+
`/bkn-backend/v1/knowledge-networks/${e}/object-metrics/${t}/deletion-check`,
|
|
93
|
+
{ params: { version: n }, skipErrorToast: r.skipErrorToast }
|
|
94
|
+
)).data;
|
|
95
|
+
}
|
|
96
|
+
async function $(e, t, n, r = {}) {
|
|
97
|
+
await s.delete(`/bkn-backend/v1/knowledge-networks/${e}/object-metrics/${t}`, {
|
|
98
|
+
params: { version: n },
|
|
99
|
+
skipErrorToast: r.skipErrorToast
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
async function V(e, t) {
|
|
103
|
+
const n = await s.post(
|
|
104
|
+
`/bkn-backend/v1/knowledge-networks/${e}/object-metrics/${t}/versions`
|
|
105
|
+
);
|
|
106
|
+
return i(n.data);
|
|
107
|
+
}
|
|
108
|
+
async function O(e, t, n = {}) {
|
|
109
|
+
return (await s.get(
|
|
110
|
+
`/bkn-backend/v1/knowledge-networks/${e}/object-metrics/${t}/versions`,
|
|
111
|
+
{
|
|
112
|
+
skipErrorToast: n.skipErrorToast,
|
|
113
|
+
transformResponse: a
|
|
114
|
+
}
|
|
115
|
+
)).data.map((o) => i(o));
|
|
116
|
+
}
|
|
117
|
+
async function M(e, t) {
|
|
118
|
+
const n = p(t);
|
|
119
|
+
return (await s.post(
|
|
120
|
+
`/bkn-backend/v1/knowledge-networks/${e}/object-metrics/validate`,
|
|
121
|
+
n,
|
|
122
|
+
{ transformRequest: c }
|
|
123
|
+
)).data;
|
|
124
|
+
}
|
|
125
|
+
async function R(e, t, n) {
|
|
126
|
+
const r = await s.post(
|
|
127
|
+
`/bkn-backend/v1/knowledge-networks/${e}/object-metrics/${t}/validate`,
|
|
128
|
+
void 0,
|
|
129
|
+
{ params: { version: n } }
|
|
130
|
+
);
|
|
131
|
+
return i(r.data);
|
|
132
|
+
}
|
|
133
|
+
async function h(e, t) {
|
|
134
|
+
const n = p(t);
|
|
135
|
+
return (await s.post(
|
|
136
|
+
`/bkn-backend/v1/knowledge-networks/${e}/object-metrics/preview`,
|
|
137
|
+
n,
|
|
138
|
+
{ transformRequest: c }
|
|
139
|
+
)).data;
|
|
140
|
+
}
|
|
141
|
+
async function D(e, t, n, r = {}) {
|
|
142
|
+
return (await s.post(
|
|
143
|
+
`/ontology-query/v1/knowledge-networks/${e}/object-metrics/${t}/data`,
|
|
144
|
+
r,
|
|
145
|
+
{
|
|
146
|
+
params: { ...await b(e), version: n },
|
|
147
|
+
transformRequest: c,
|
|
148
|
+
transformResponse: a
|
|
149
|
+
}
|
|
150
|
+
)).data;
|
|
151
|
+
}
|
|
152
|
+
async function T(e, t, n = {}) {
|
|
153
|
+
const r = p(t);
|
|
154
|
+
return (await s.post(
|
|
155
|
+
`/ontology-query/v1/knowledge-networks/${e}/object-metrics/trial`,
|
|
156
|
+
{ definition: r, query: n },
|
|
157
|
+
{
|
|
158
|
+
params: await b(e),
|
|
159
|
+
skipErrorToast: !0,
|
|
160
|
+
transformRequest: c,
|
|
161
|
+
transformResponse: a
|
|
162
|
+
}
|
|
163
|
+
)).data;
|
|
164
|
+
}
|
|
165
|
+
async function E(e, t, n, r, o, k) {
|
|
166
|
+
return (await s.post(
|
|
167
|
+
`/ontology-query/v1/knowledge-networks/${e}/object-metrics/${t}/data/drill-through`,
|
|
168
|
+
{ query: r, bucket_key: o, page_size: 100, cursor: k },
|
|
169
|
+
{
|
|
170
|
+
params: { ...await b(e), version: n },
|
|
171
|
+
skipErrorToast: !0,
|
|
172
|
+
// The server may finish metric evaluation before its 30-second participant scan begins.
|
|
173
|
+
timeout: 9e4,
|
|
174
|
+
transformRequest: c,
|
|
175
|
+
transformResponse: a
|
|
176
|
+
}
|
|
177
|
+
)).data;
|
|
178
|
+
}
|
|
179
|
+
async function q(e, t, n, r, o) {
|
|
180
|
+
const k = p(t);
|
|
181
|
+
return (await s.post(
|
|
182
|
+
`/ontology-query/v1/knowledge-networks/${e}/object-metrics/trial/drill-through`,
|
|
183
|
+
{ definition: k, query: n, bucket_key: r, page_size: 100, cursor: o },
|
|
184
|
+
{
|
|
185
|
+
params: await b(e),
|
|
186
|
+
skipErrorToast: !0,
|
|
187
|
+
timeout: 9e4,
|
|
188
|
+
transformRequest: c,
|
|
189
|
+
transformResponse: a
|
|
190
|
+
}
|
|
191
|
+
)).data;
|
|
192
|
+
}
|
|
193
|
+
async function _(e, t, n) {
|
|
194
|
+
const r = await s.post(
|
|
195
|
+
`/bkn-backend/v1/knowledge-networks/${e}/object-metrics/${t}/publish`,
|
|
196
|
+
void 0,
|
|
197
|
+
{ params: { version: n } }
|
|
198
|
+
);
|
|
199
|
+
return i(r.data);
|
|
200
|
+
}
|
|
201
|
+
async function z(e, t, n) {
|
|
202
|
+
const r = await s.post(
|
|
203
|
+
`/bkn-backend/v1/knowledge-networks/${e}/object-metrics/${t}/deprecate`,
|
|
204
|
+
void 0,
|
|
205
|
+
{ params: { version: n } }
|
|
206
|
+
);
|
|
207
|
+
return i(r.data);
|
|
208
|
+
}
|
|
209
|
+
async function S() {
|
|
210
|
+
return (await s.get(
|
|
211
|
+
"/bkn-backend/v1/object-metrics/capabilities"
|
|
212
|
+
)).data;
|
|
213
|
+
}
|
|
214
|
+
export {
|
|
215
|
+
y as checkObjectMetricVersionDeletionV1,
|
|
216
|
+
V as createNextObjectMetricDraftV1,
|
|
217
|
+
g as createObjectMetricDraftV1,
|
|
218
|
+
$ as deleteObjectMetricVersionV1,
|
|
219
|
+
z as deprecateObjectMetricV1,
|
|
220
|
+
S as getObjectMetricCapabilitiesV1,
|
|
221
|
+
j as getObjectMetricV1,
|
|
222
|
+
O as listObjectMetricVersionsV1,
|
|
223
|
+
w as listObjectMetricsV1,
|
|
224
|
+
h as previewObjectMetricV1,
|
|
225
|
+
_ as publishObjectMetricV1,
|
|
226
|
+
D as queryObjectMetricDataV1,
|
|
227
|
+
E as queryObjectMetricDrillThroughV1,
|
|
228
|
+
T as trialObjectMetricDataV1,
|
|
229
|
+
q as trialObjectMetricDrillThroughV1,
|
|
230
|
+
v as updateObjectMetricDraftV1,
|
|
231
|
+
M as validateObjectMetricV1,
|
|
232
|
+
R as validateObjectMetricVersionV1
|
|
233
|
+
};
|