@elementumai/edk 0.13.4 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-sdk/src/catalog/factories.d.ts +4 -2
- package/dist-sdk/src/catalog/factories.js +3 -1
- package/dist-sdk/src/catalog/from-authoring.d.ts +8 -3
- package/dist-sdk/src/catalog/from-authoring.js +21 -8
- package/dist-sdk/src/engine/build/context.d.ts +17 -0
- package/dist-sdk/src/engine/coverage-gaps.d.ts +10 -0
- package/dist-sdk/src/engine/coverage-gaps.js +16 -0
- package/dist-sdk/src/engine/pull/context.d.ts +56 -0
- package/dist-sdk/src/engine/pull/context.js +8 -0
- package/dist-sdk/src/engine/pull/pulled-roots.d.ts +14 -1
- package/dist-sdk/src/engine/pull/pulled-roots.js +23 -3
- package/dist-sdk/src/engine/pull/ref-only.d.ts +6 -1
- package/dist-sdk/src/engine/pull/ref-only.js +4 -1
- package/dist-sdk/src/engine/pull/stream-root.d.ts +13 -1
- package/dist-sdk/src/engine/pull/stream-root.js +54 -4
- package/dist-sdk/src/engine/validation.d.ts +36 -1
- package/dist-sdk/src/engine/validation.js +56 -2
- package/dist-sdk/src/engine/workspace/loader.d.ts +6 -0
- package/dist-sdk/src/engine/workspace/loader.js +87 -2
- package/dist-sdk/src/entities/access-policy/from-tf.d.ts +7 -0
- package/dist-sdk/src/entities/access-policy/from-tf.js +58 -17
- package/dist-sdk/src/entities/access-policy/to-tf.d.ts +3 -1
- package/dist-sdk/src/entities/access-policy/to-tf.js +1 -1
- package/dist-sdk/src/entities/agent/build.d.ts +15 -0
- package/dist-sdk/src/entities/agent/build.js +139 -16
- package/dist-sdk/src/entities/agent/deserializer/print-agent-v2.d.ts +3 -3
- package/dist-sdk/src/entities/agent/deserializer/print-agent-v2.js +39 -25
- package/dist-sdk/src/entities/agent/module.js +95 -3
- package/dist-sdk/src/entities/agent/to-tf.js +6 -4
- package/dist-sdk/src/entities/agent-evaluation/from-tf.d.ts +7 -0
- package/dist-sdk/src/entities/agent-evaluation/from-tf.js +14 -5
- package/dist-sdk/src/entities/agent-evaluation/module.js +4 -2
- package/dist-sdk/src/entities/agent-tool/from-tf.d.ts +11 -2
- package/dist-sdk/src/entities/agent-tool/from-tf.js +38 -40
- package/dist-sdk/src/entities/agent-tool/to-tf.js +12 -5
- package/dist-sdk/src/entities/app/build.d.ts +1 -1
- package/dist-sdk/src/entities/automation/build.d.ts +75 -42
- package/dist-sdk/src/entities/automation/build.js +17 -7
- package/dist-sdk/src/entities/automation/deserializer/ast.d.ts +14 -2
- package/dist-sdk/src/entities/automation/deserializer/print-automation.d.ts +9 -0
- package/dist-sdk/src/entities/automation/deserializer/print-automation.js +57 -12
- package/dist-sdk/src/entities/automation/from-tf.d.ts +51 -0
- package/dist-sdk/src/entities/automation/from-tf.js +476 -93
- package/dist-sdk/src/entities/automation/index.d.ts +1 -1
- package/dist-sdk/src/entities/automation/index.js +1 -1
- package/dist-sdk/src/entities/automation/module.js +90 -9
- package/dist-sdk/src/entities/automation/operators.d.ts +6 -2
- package/dist-sdk/src/entities/automation/operators.js +0 -2
- package/dist-sdk/src/entities/automation/task-output-labels.d.ts +8 -0
- package/dist-sdk/src/entities/automation/task-output-labels.js +11 -0
- package/dist-sdk/src/entities/automation/tasks.d.ts +37 -2
- package/dist-sdk/src/entities/automation/tasks.js +38 -1
- package/dist-sdk/src/entities/automation/to-tf.d.ts +8 -0
- package/dist-sdk/src/entities/automation/to-tf.js +413 -47
- package/dist-sdk/src/entities/chart/to-tf.js +18 -5
- package/dist-sdk/src/entities/dashboard/from-tf.js +45 -11
- package/dist-sdk/src/entities/dashboard-widget-order/order.d.ts +5 -3
- package/dist-sdk/src/entities/dashboard-widget-order/order.js +6 -4
- package/dist-sdk/src/entities/datamine/from-tf.js +10 -3
- package/dist-sdk/src/entities/dynamic-layout/build.d.ts +9 -2
- package/dist-sdk/src/entities/dynamic-layout/from-tf.js +35 -7
- package/dist-sdk/src/entities/dynamic-layout/to-tf.js +63 -7
- package/dist-sdk/src/entities/element/build.d.ts +4 -1
- package/dist-sdk/src/entities/element/build.js +3 -4
- package/dist-sdk/src/entities/field/from-tf.js +8 -1
- package/dist-sdk/src/entities/field/to-tf.d.ts +29 -2
- package/dist-sdk/src/entities/field/to-tf.js +106 -7
- package/dist-sdk/src/entities/phone-service/from-tf.d.ts +7 -0
- package/dist-sdk/src/entities/phone-service/from-tf.js +15 -7
- package/dist-sdk/src/entities/phone-service/module.js +4 -2
- package/dist-sdk/src/entities/portal/to-tf.d.ts +1 -1
- package/dist-sdk/src/entities/portal/to-tf.js +61 -2
- package/dist-sdk/src/entities/record-create-form/from-tf.js +3 -1
- package/dist-sdk/src/entities/relationship/from-tf.js +34 -4
- package/dist-sdk/src/entities/relationship/to-tf.js +24 -6
- package/dist-sdk/src/entities/role/from-tf.js +3 -1
- package/dist-sdk/src/entities/search-table/from-tf.d.ts +3 -1
- package/dist-sdk/src/entities/search-table/from-tf.js +6 -3
- package/dist-sdk/src/entities/search-table/module.js +18 -2
- package/dist-sdk/src/entities/search-table/to-tf.js +10 -16
- package/dist-sdk/src/entities/shared/aspect-target-from-tf.js +6 -1
- package/dist-sdk/src/entities/shared/filters/index.d.ts +6 -1
- package/dist-sdk/src/entities/shared/filters/index.js +8 -2
- package/dist-sdk/src/entities/shared/filters/print.js +18 -7
- package/dist-sdk/src/entities/shared/filters/tf-codec.d.ts +11 -0
- package/dist-sdk/src/entities/shared/filters/tf-codec.js +24 -2
- package/dist-sdk/src/entities/shared/run-automation-requirement.d.ts +15 -0
- package/dist-sdk/src/entities/shared/run-automation-requirement.js +28 -0
- package/dist-sdk/src/entities/shared/search-table-address.d.ts +17 -0
- package/dist-sdk/src/entities/shared/search-table-address.js +24 -0
- package/dist-sdk/src/entities/shared/skip-release.d.ts +49 -0
- package/dist-sdk/src/entities/shared/skip-release.js +74 -0
- package/dist-sdk/src/entities/skill/deserializer/print-skill-v2.d.ts +3 -3
- package/dist-sdk/src/entities/skill/deserializer/print-skill-v2.js +11 -5
- package/dist-sdk/src/entities/skill/module.js +3 -25
- package/dist-sdk/src/entities/skill-tool/from-tf.d.ts +4 -2
- package/dist-sdk/src/entities/skill-tool/from-tf.js +28 -27
- package/dist-sdk/src/entities/skill-tool/to-tf.js +12 -5
- package/dist-sdk/src/entities/skill-tool/types.d.ts +1 -0
- package/dist-sdk/src/entities/skill-tool/types.js +2 -1
- package/dist-sdk/src/entities/table/catalog.d.ts +16 -0
- package/dist-sdk/src/entities/table/catalog.js +44 -2
- package/dist-sdk/src/entities/table/from-tf.js +30 -4
- package/dist-sdk/src/entities/table/keys.d.ts +27 -0
- package/dist-sdk/src/entities/table/keys.js +46 -0
- package/dist-sdk/src/entities/table/to-tf.js +2 -2
- package/dist-sdk/src/entities/view/agent-view-layout-from-tf.d.ts +12 -1
- package/dist-sdk/src/entities/view/agent-view-layout-from-tf.js +9 -4
- package/dist-sdk/src/entities/view/agent-view-layout-to-tf.js +215 -10
- package/dist-sdk/src/entities/view/agent-view-layout.d.ts +10 -4
- package/dist-sdk/src/entities/view/custom-view-runtime-rules.d.ts +43 -0
- package/dist-sdk/src/entities/view/custom-view-runtime-rules.js +285 -0
- package/dist-sdk/src/entities/view/custom-view-validate.d.ts +3 -1
- package/dist-sdk/src/entities/view/custom-view-validate.js +24 -5
- package/dist-sdk/src/entities/view/from-tf.js +14 -1
- package/dist-sdk/src/entities/widget/from-tf.js +14 -7
- package/dist-sdk/src/entities/widget/to-tf.js +7 -5
- package/dist-sdk/src/graph/index.d.ts +14 -1
- package/dist-sdk/src/graph/index.js +2 -0
- package/dist-sdk/src/graph/resource-types.d.ts +2 -0
- package/dist-sdk/src/graph/resource-types.js +3 -0
- package/dist-sdk/src/graph/types.d.ts +82 -0
- package/package.json +1 -1
|
@@ -42,6 +42,7 @@ import { UNRESOLVED_REFERENCE_MARKER } from "../filter.js";
|
|
|
42
42
|
import { INJECTED_TS_IGNORE, scriptFileText } from "../script-code.js";
|
|
43
43
|
import { isRequiredSecret } from "../tasks.js";
|
|
44
44
|
import { canonicalImportId } from "../../../engine/pull/authored-address.js";
|
|
45
|
+
import { catalogRefForFieldOwner } from "../../../engine/pull/catalog-ref.js";
|
|
45
46
|
import { unresolvedReferenceComment } from "../../../engine/pull/ref-only.js";
|
|
46
47
|
// ---------------------------------------------------------------------------
|
|
47
48
|
// Factory name mapping — decoded task `factory` → v2 factory function name.
|
|
@@ -650,6 +651,7 @@ function printAutomation(ast, opts, externalScripts) {
|
|
|
650
651
|
...(opts.foreignAppRefNamespaces !== undefined && { foreignAppRefNamespaces: opts.foreignAppRefNamespaces }),
|
|
651
652
|
...(opts.foreignElementRefNamespaces !== undefined && { foreignElementRefNamespaces: opts.foreignElementRefNamespaces }),
|
|
652
653
|
...(opts.foreignTaskRefNames !== undefined && { foreignTaskRefNames: opts.foreignTaskRefNames }),
|
|
654
|
+
...(opts.foreignSearchTableRefsByName !== undefined && { foreignSearchTableRefsByName: opts.foreignSearchTableRefsByName }),
|
|
653
655
|
};
|
|
654
656
|
const triggerCode = printTrigger(ast.trigger, state);
|
|
655
657
|
// The trigger/action/output chain lives on the `actions` field, nested one
|
|
@@ -993,15 +995,19 @@ function recordTriggerBody(trigger, state) {
|
|
|
993
995
|
* Trailing `, "Display Name"` arg for direct action calls — only
|
|
994
996
|
* emitted when the task's real wire name differs from its `refKey` (adopting
|
|
995
997
|
* a platform-authored task, e.g. "For Each" vs. the slugged refKey
|
|
996
|
-
* "For_Each")
|
|
998
|
+
* "For_Each"), or as `null` for a step that has no name on the platform
|
|
999
|
+
* (edk#3191). Omitted otherwise so the common case stays two-arg.
|
|
997
1000
|
*/
|
|
998
1001
|
function displayNameArg(task) {
|
|
1002
|
+
if (task.displayName === null)
|
|
1003
|
+
return ", null";
|
|
999
1004
|
return task.displayName ? `, ${quote(task.displayName)}` : "";
|
|
1000
1005
|
}
|
|
1001
1006
|
function topLevelTaskTrailingArgs(task) {
|
|
1002
1007
|
if (task.hclParent === undefined)
|
|
1003
1008
|
return displayNameArg(task);
|
|
1004
|
-
|
|
1009
|
+
const displayName = task.displayName === null ? "null" : task.displayName ? quote(task.displayName) : "undefined";
|
|
1010
|
+
return `, ${displayName}, ${quote(task.hclParent)}`;
|
|
1005
1011
|
}
|
|
1006
1012
|
function printTask(task, state, indent, refCtx = DEFAULT_CTX) {
|
|
1007
1013
|
const pad = " ".repeat(indent);
|
|
@@ -1263,7 +1269,10 @@ function formatSwitch(task, state, indent, refCtx) {
|
|
|
1263
1269
|
const branchCtx = { ...refCtx, ctxName: "ctx" };
|
|
1264
1270
|
const caseLines = cases.map((ch) => formatSwitchCase(ch, state, indent + 2, branchCtx));
|
|
1265
1271
|
const configParts = [];
|
|
1266
|
-
|
|
1272
|
+
// An If task with no cases prints `cases: []` (#3105).
|
|
1273
|
+
configParts.push(caseLines.length === 0
|
|
1274
|
+
? `${configIndent}cases: []`
|
|
1275
|
+
: `${configIndent}cases: [\n${caseLines.join(",\n")}\n${configIndent}]`);
|
|
1267
1276
|
if (defaults.length > 0) {
|
|
1268
1277
|
const defaultBlock = formatDefaultActionsBlock(defaults, state, indent, configIndent, branchCtx);
|
|
1269
1278
|
configParts.push(`${configIndent}defaultActions: ${defaultBlock}`);
|
|
@@ -1493,9 +1502,11 @@ function taskPrimaryTarget(args, state) {
|
|
|
1493
1502
|
const v = args[k];
|
|
1494
1503
|
if (isRefExpr(v) && v.kind === "app") {
|
|
1495
1504
|
if (v.entityType === "task") {
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1505
|
+
// A task-type app has no catalog entry, pulled or not (#3148): its
|
|
1506
|
+
// fields always print as inline stubs, named by the pulled task's
|
|
1507
|
+
// refName when it is in the workspace.
|
|
1508
|
+
const refName = taskStubRefName(state, v.name, v.appHandle);
|
|
1509
|
+
return { kind: "task", refName, name: v.name ?? refName, inCatalog: false };
|
|
1499
1510
|
}
|
|
1500
1511
|
if (v.entityType === "element") {
|
|
1501
1512
|
const foreignRefName = workspaceAspectRefName(state, "element", v.name, v.namespace);
|
|
@@ -1529,6 +1540,14 @@ function taskPrimaryTarget(args, state) {
|
|
|
1529
1540
|
}
|
|
1530
1541
|
return undefined;
|
|
1531
1542
|
}
|
|
1543
|
+
/**
|
|
1544
|
+
* The refName a task-type app's inline stub carries: the pulled task's own
|
|
1545
|
+
* refName when it is in this workspace, so build binds the target to that
|
|
1546
|
+
* task, else the key the export gave it.
|
|
1547
|
+
*/
|
|
1548
|
+
function taskStubRefName(state, name, fallback) {
|
|
1549
|
+
return (name !== undefined ? state.foreignTaskRefNames?.get(name) : undefined) ?? fallback;
|
|
1550
|
+
}
|
|
1532
1551
|
/**
|
|
1533
1552
|
* The workspace catalog key for a foreign app/element ref: by namespace, then
|
|
1534
1553
|
* display name. A namespace-only data block's ref carries the namespace as
|
|
@@ -1596,6 +1615,11 @@ function printArgValue(name, value, state, indent, refCtx) {
|
|
|
1596
1615
|
const calc = trackFactory("calc", state);
|
|
1597
1616
|
return `${calc}.raw(${quote(value.text)}, ${quote(value.resultType)})`;
|
|
1598
1617
|
}
|
|
1618
|
+
if (isPulledGroupApprover(value)) {
|
|
1619
|
+
const fn = trackFactory("groupApprover", state);
|
|
1620
|
+
const group = printArgValue("group", value.group, state, indent, refCtx);
|
|
1621
|
+
return `${fn}(${group}, { approvalsRequired: ${value.approvalsRequired}, denialsRequired: ${value.denialsRequired} })`;
|
|
1622
|
+
}
|
|
1599
1623
|
if (isRequiredSecret(value)) {
|
|
1600
1624
|
const fn = trackFactory("requiredSecret", state);
|
|
1601
1625
|
return `${fn}(${quote(value.variable)})`;
|
|
@@ -1642,6 +1666,9 @@ function printArgValue(name, value, state, indent, refCtx) {
|
|
|
1642
1666
|
}
|
|
1643
1667
|
return literalJson(value);
|
|
1644
1668
|
}
|
|
1669
|
+
function isPulledGroupApprover(value) {
|
|
1670
|
+
return !!value && typeof value === "object" && value.kind === "groupApprover";
|
|
1671
|
+
}
|
|
1645
1672
|
function isPulledRawCalculation(value) {
|
|
1646
1673
|
return !!value && typeof value === "object" && value.kind === "calculationRaw";
|
|
1647
1674
|
}
|
|
@@ -1840,14 +1867,17 @@ function printRef(ref, state, refCtx) {
|
|
|
1840
1867
|
if (ref.entityType === undefined || ref.name === undefined) {
|
|
1841
1868
|
return `catalog.${catalogOwnerHandle(state, ref.appHandle)}`;
|
|
1842
1869
|
}
|
|
1843
|
-
const
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1870
|
+
const namespace = ref.namespace !== undefined ? `, namespace: ${quote(ref.namespace)}` : "";
|
|
1871
|
+
if (ref.entityType === "task") {
|
|
1872
|
+
// `generated/catalog.ts` has no entry for a task-type app, even after
|
|
1873
|
+
// `elementum pull task`, so `catalog.<task>` is undefined at load
|
|
1874
|
+
// (#3148). The stub names the pulled task's refName, which build
|
|
1875
|
+
// resolves to the task in this workspace, or the export's key.
|
|
1876
|
+
return `{ __kind: "task", refName: ${quote(taskStubRefName(state, ref.name, ref.appHandle))}, name: ${quote(ref.name)}${namespace} }`;
|
|
1877
|
+
}
|
|
1878
|
+
const foreignRefName = workspaceAspectRefName(state, ref.entityType, ref.name, ref.namespace);
|
|
1848
1879
|
if (foreignRefName !== undefined)
|
|
1849
1880
|
return `catalog.${foreignRefName}`;
|
|
1850
|
-
const namespace = ref.namespace !== undefined ? `, namespace: ${quote(ref.namespace)}` : "";
|
|
1851
1881
|
return `{ __kind: ${quote(ref.entityType)}, refName: ${quote(ref.appHandle)}, name: ${quote(ref.name)}${namespace} }`;
|
|
1852
1882
|
}
|
|
1853
1883
|
case "agent":
|
|
@@ -1882,6 +1912,21 @@ function printRef(ref, state, refCtx) {
|
|
|
1882
1912
|
parts.push(`id: ${quote(ref.id)}`);
|
|
1883
1913
|
return `tableSearchTableRef({ ${parts.join(", ")} })`;
|
|
1884
1914
|
}
|
|
1915
|
+
if (ref.ownerKind === "element" && ref.name !== undefined) {
|
|
1916
|
+
// A data lookup on an element's table prints what an agent or skill
|
|
1917
|
+
// tool on that table prints (edk#3228): the catalog key the
|
|
1918
|
+
// element's catalog declares for it, else the table literal, which
|
|
1919
|
+
// keeps a pinned id (a name the element's tables share).
|
|
1920
|
+
const typed = ref.parentName === undefined
|
|
1921
|
+
? undefined
|
|
1922
|
+
: state.foreignSearchTableRefsByName?.get(JSON.stringify([ref.parentName, ref.name]));
|
|
1923
|
+
if (typed !== undefined) {
|
|
1924
|
+
const owner = catalogRefForFieldOwner(typed.ownerRefName, state.foreignAppRefNamespaces, state.foreignElementRefNamespaces);
|
|
1925
|
+
return `catalog.${owner}.searchTables${safeMember(typed.tableKey)}`;
|
|
1926
|
+
}
|
|
1927
|
+
const pinnedId = ref.id !== undefined ? `, id: ${quote(ref.id)}` : "";
|
|
1928
|
+
return `{ __kind: "searchTable", refName: ${quote(ref.name)}, name: ${quote(ref.name)}, parent: ${quote(ref.appHandle)}${pinnedId} }`;
|
|
1929
|
+
}
|
|
1885
1930
|
// Search tables are element- or table-owned, never app-owned. Remapping
|
|
1886
1931
|
// the automation owner's export handle to its authored app refName
|
|
1887
1932
|
// would bind an unpulled same-handle foreign element's table onto the
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EntityTfError } from "../../engine/entity.js";
|
|
2
2
|
import { type FromTfContext } from "../../engine/pull/context.js";
|
|
3
3
|
import { type ChildResourceScope, type TfBlock, type TfDocument, type TfValue } from "../../engine/tf/index.js";
|
|
4
|
+
import type { TriggerReferenceRepair } from "../../graph/types.js";
|
|
4
5
|
import type { AutomationAst } from "./deserializer/ast.js";
|
|
5
6
|
export interface AutomationFromTfResult {
|
|
6
7
|
readonly refName: string;
|
|
@@ -22,6 +23,8 @@ export interface AutomationFromTfResult {
|
|
|
22
23
|
* other value.
|
|
23
24
|
*/
|
|
24
25
|
readonly stringifiedValueReferences?: boolean;
|
|
26
|
+
/** Live references to on-demand inputs spelled as declared, which the first plan rewrites (#3109). */
|
|
27
|
+
readonly triggerReferenceRepairs?: readonly TriggerReferenceRepair[];
|
|
25
28
|
}
|
|
26
29
|
interface DecodeContext {
|
|
27
30
|
readonly appRefName: string;
|
|
@@ -74,6 +77,8 @@ interface DecodeContext {
|
|
|
74
77
|
readonly tableRefName: string;
|
|
75
78
|
readonly name: string;
|
|
76
79
|
}>;
|
|
80
|
+
/** See `tableColumnKeysInDocument` (#3167). */
|
|
81
|
+
readonly tableColumnKeys?: ReadonlyMap<string, ReadonlyMap<string, string>>;
|
|
77
82
|
readonly foreignFileReaderRefsById?: FromTfContext["foreignFileReaderRefsById"];
|
|
78
83
|
readonly picklistOptionsByField?: ReadonlyMap<string, ReadonlyMap<string, string>>;
|
|
79
84
|
readonly fieldNamesByOwnerRefName?: ReadonlyMap<string, ReadonlyMap<string, string>>;
|
|
@@ -102,6 +107,28 @@ interface DecodeContext {
|
|
|
102
107
|
readonly describeUnresolvedTask?: (taskId: string) => string;
|
|
103
108
|
/** This automation's platform id, from its import block. */
|
|
104
109
|
readonly automationId?: string;
|
|
110
|
+
/** On-demand input references live spells as declared, which build rewrites (#3109). */
|
|
111
|
+
readonly triggerReferenceRepairs?: TriggerReferenceRepairCollector;
|
|
112
|
+
}
|
|
113
|
+
/** Where a decoded value sits, for {@link TriggerReferenceRepairCollector}. */
|
|
114
|
+
interface RepairSite {
|
|
115
|
+
readonly task?: string;
|
|
116
|
+
readonly address: string;
|
|
117
|
+
readonly input: string;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Collects each reference to an on-demand input whose live name is the
|
|
121
|
+
* input's declared spelling ("ticket_number") where that differs from the
|
|
122
|
+
* normalized name ("ticketNumber"). Pulled source reads it as
|
|
123
|
+
* `ctx.trigger.ticket_number`, which build writes as the normalized name, so
|
|
124
|
+
* the first plan rewrites it (#3109). `site` is set only while decoding a
|
|
125
|
+
* position build writes that way, so nothing is collected elsewhere.
|
|
126
|
+
*/
|
|
127
|
+
interface TriggerReferenceRepairCollector {
|
|
128
|
+
site: RepairSite | undefined;
|
|
129
|
+
readonly found: (RepairSite & {
|
|
130
|
+
readonly declared: string;
|
|
131
|
+
})[];
|
|
105
132
|
}
|
|
106
133
|
/**
|
|
107
134
|
* The same outputs as seen from a CALCULATION formula, which addresses a
|
|
@@ -113,6 +140,30 @@ interface DecodeContext {
|
|
|
113
140
|
export declare const RECORD_SEARCH_CALCULATION_REF_NAME_TO_TS: Readonly<Record<string, readonly string[]>>;
|
|
114
141
|
export declare const AI_SEARCH_TABLE_TASK_REF_SEGMENT_TO_TS: Readonly<Record<string, string>>;
|
|
115
142
|
export declare const TABLE_RECORDS_SEARCH_TASK_REF_SEGMENT_TO_TS: Readonly<Record<string, string>>;
|
|
143
|
+
/**
|
|
144
|
+
* A Calculation task's output reference names a calculation the task doesn't have (deleted after the reference
|
|
145
|
+
* was made). Build would index `refs` by a key the provider doesn't publish, so plan fails with "Invalid index";
|
|
146
|
+
* the automation is left out instead (#3085).
|
|
147
|
+
*/
|
|
148
|
+
export declare class UnresolvedCalculationOutputError extends EntityTfError {
|
|
149
|
+
constructor(taskName: string, reference: string);
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Another app's or element's automation that an export names through
|
|
153
|
+
* `data.elementum_automation.<label>` (`app_id` = the owner's data lookup,
|
|
154
|
+
* `name` = the automation's display name): its owner's catalog handle, its
|
|
155
|
+
* catalog key, its display name, and whether the owner is an app or element
|
|
156
|
+
* in this workspace (`mapped`; otherwise the handle comes from the owner
|
|
157
|
+
* lookup's label). Shared by the decoder and by extraction's check for a
|
|
158
|
+
* target the owner's source leaves out (#3064).
|
|
159
|
+
*/
|
|
160
|
+
export declare function foreignAutomationTarget(label: string, dataBlocks: ReadonlyMap<string, TfBlock>, foreignAppRefNames: ReadonlyMap<string, string> | undefined, foreignElementRefNames: ReadonlyMap<string, string> | undefined): {
|
|
161
|
+
readonly appHandle: string;
|
|
162
|
+
readonly automationKey: string;
|
|
163
|
+
readonly name?: string;
|
|
164
|
+
readonly ownerKind: "app" | "element";
|
|
165
|
+
readonly mapped: boolean;
|
|
166
|
+
};
|
|
116
167
|
/**
|
|
117
168
|
* Option ids `filterOptionLabel` prints as labels at every filter comparison
|
|
118
169
|
* that holds them. The export still holds the id. An id that any comparison
|