@elementumai/edk 0.9.7 → 0.9.9
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 +3 -2
- package/dist-sdk/src/catalog/factories.d.ts +14 -3
- package/dist-sdk/src/catalog/factories.js +32 -0
- package/dist-sdk/src/catalog/from-authoring.js +27 -33
- package/dist-sdk/src/catalog/index.d.ts +2 -2
- package/dist-sdk/src/catalog/index.js +2 -2
- package/dist-sdk/src/catalog/org.js +67 -29
- package/dist-sdk/src/catalog/token.js +10 -0
- package/dist-sdk/src/catalog/types.d.ts +20 -2
- package/dist-sdk/src/catalog/types.js +5 -0
- package/dist-sdk/src/core/index.d.ts +1 -1
- package/dist-sdk/src/core/index.js +1 -1
- package/dist-sdk/src/core/platform-id.d.ts +2 -0
- package/dist-sdk/src/core/platform-id.js +4 -0
- package/dist-sdk/src/core/system-fields.d.ts +14 -0
- package/dist-sdk/src/core/system-fields.js +6 -0
- package/dist-sdk/src/core/triggers/on-demand.d.ts +27 -24
- package/dist-sdk/src/core/triggers/on-demand.js +33 -12
- package/dist-sdk/src/core/types/aspect-category.d.ts +1 -0
- package/dist-sdk/src/core/types/aspect-category.js +1 -0
- package/dist-sdk/src/engine/build/context.d.ts +20 -8
- package/dist-sdk/src/engine/build/source-context.d.ts +14 -17
- package/dist-sdk/src/engine/build/source-context.js +1 -1
- package/dist-sdk/src/engine/pull/context.d.ts +9 -0
- package/dist-sdk/src/engine/pull/org.d.ts +4 -0
- package/dist-sdk/src/engine/pull/org.js +17 -2
- package/dist-sdk/src/engine/pull/procedure-refs.d.ts +16 -0
- package/dist-sdk/src/engine/pull/procedure-refs.js +69 -0
- package/dist-sdk/src/engine/tf/expr.js +1 -1
- package/dist-sdk/src/engine/workspace/authoring-layout.d.ts +15 -0
- package/dist-sdk/src/engine/workspace/authoring-layout.js +33 -1
- package/dist-sdk/src/engine/workspace/loader.d.ts +40 -0
- package/dist-sdk/src/engine/workspace/loader.js +328 -0
- package/dist-sdk/src/entities/access-policy/from-tf.d.ts +4 -0
- package/dist-sdk/src/entities/access-policy/from-tf.js +10 -2
- package/dist-sdk/src/entities/access-policy/to-tf.d.ts +1 -0
- package/dist-sdk/src/entities/access-policy/to-tf.js +7 -2
- package/dist-sdk/src/entities/agent/build.d.ts +54 -8
- package/dist-sdk/src/entities/agent/build.js +36 -1
- package/dist-sdk/src/entities/agent/deserializer/print-agent-v2.js +126 -2
- package/dist-sdk/src/entities/agent/from-tf.d.ts +7 -6
- package/dist-sdk/src/entities/agent/from-tf.js +176 -5
- package/dist-sdk/src/entities/agent/index.d.ts +2 -2
- package/dist-sdk/src/entities/agent/index.js +1 -1
- package/dist-sdk/src/entities/agent/to-tf.d.ts +4 -4
- package/dist-sdk/src/entities/agent/to-tf.js +185 -11
- package/dist-sdk/src/entities/agent/tools.d.ts +16 -5
- package/dist-sdk/src/entities/agent/tools.js +13 -1
- package/dist-sdk/src/entities/agent-tool/from-tf.d.ts +7 -0
- package/dist-sdk/src/entities/agent-tool/from-tf.js +29 -4
- package/dist-sdk/src/entities/agent-tool/to-tf.js +10 -9
- package/dist-sdk/src/entities/agent-tool/types.js +1 -0
- package/dist-sdk/src/entities/app/build.d.ts +2 -2
- package/dist-sdk/src/entities/app/build.js +6 -3
- package/dist-sdk/src/entities/app/deserializer/normalize.d.ts +5 -0
- package/dist-sdk/src/entities/app/display-blocks-to-layout.d.ts +45 -0
- package/dist-sdk/src/entities/app/display-blocks-to-layout.js +98 -0
- package/dist-sdk/src/entities/app/display-blocks-to-record-create-form.d.ts +55 -0
- package/dist-sdk/src/entities/app/display-blocks-to-record-create-form.js +99 -0
- package/dist-sdk/src/entities/app/from-tf.js +9 -7
- package/dist-sdk/src/entities/app/to-tf.js +15 -7
- package/dist-sdk/src/entities/automation/build.d.ts +8 -1
- package/dist-sdk/src/entities/automation/build.js +36 -5
- package/dist-sdk/src/entities/automation/deserializer/ast.d.ts +3 -7
- package/dist-sdk/src/entities/automation/deserializer/print-automation.d.ts +2 -0
- package/dist-sdk/src/entities/automation/deserializer/print-automation.js +77 -8
- package/dist-sdk/src/entities/automation/from-tf.d.ts +10 -1
- package/dist-sdk/src/entities/automation/from-tf.js +803 -62
- package/dist-sdk/src/entities/automation/index.d.ts +1 -1
- package/dist-sdk/src/entities/automation/module.js +13 -3
- package/dist-sdk/src/entities/automation/output-key-wire-name.d.ts +12 -4
- package/dist-sdk/src/entities/automation/output-key-wire-name.js +17 -6
- package/dist-sdk/src/entities/automation/script-code.d.ts +1 -1
- package/dist-sdk/src/entities/automation/script-code.js +15 -11
- package/dist-sdk/src/entities/automation/task-label.d.ts +2 -0
- package/dist-sdk/src/entities/automation/task-label.js +18 -0
- package/dist-sdk/src/entities/automation/tasks.d.ts +60 -9
- package/dist-sdk/src/entities/automation/tasks.js +16 -4
- package/dist-sdk/src/entities/automation/to-tf.d.ts +4 -0
- package/dist-sdk/src/entities/automation/to-tf.js +385 -52
- package/dist-sdk/src/entities/automation/triggers.d.ts +14 -5
- package/dist-sdk/src/entities/automation/triggers.js +1 -1
- package/dist-sdk/src/entities/dashboard/from-tf.js +1 -1
- package/dist-sdk/src/entities/dynamic-layout/to-tf.d.ts +1 -0
- package/dist-sdk/src/entities/dynamic-layout/to-tf.js +1 -1
- package/dist-sdk/src/entities/element/build.d.ts +30 -7
- package/dist-sdk/src/entities/element/build.js +6 -3
- package/dist-sdk/src/entities/element/from-tf.js +7 -3
- package/dist-sdk/src/entities/element/index.d.ts +1 -1
- package/dist-sdk/src/entities/element/index.js +1 -1
- package/dist-sdk/src/entities/element/to-tf.js +49 -8
- package/dist-sdk/src/entities/field/from-tf.d.ts +6 -0
- package/dist-sdk/src/entities/field/from-tf.js +12 -0
- package/dist-sdk/src/entities/field/module.js +1 -0
- package/dist-sdk/src/entities/field/to-tf.d.ts +1 -1
- package/dist-sdk/src/entities/field/to-tf.js +19 -5
- package/dist-sdk/src/entities/org/category-ref.d.ts +5 -0
- package/dist-sdk/src/entities/org/category-ref.js +12 -0
- package/dist-sdk/src/entities/record-create-form/from-tf.js +3 -3
- package/dist-sdk/src/entities/record-create-form/to-tf.d.ts +1 -0
- package/dist-sdk/src/entities/record-create-form/to-tf.js +13 -5
- package/dist-sdk/src/entities/relationship/from-tf.js +15 -4
- package/dist-sdk/src/entities/role/from-tf.js +10 -4
- package/dist-sdk/src/entities/search-table/build.d.ts +1 -1
- package/dist-sdk/src/entities/search-table/from-tf.d.ts +1 -0
- package/dist-sdk/src/entities/search-table/from-tf.js +6 -0
- package/dist-sdk/src/entities/search-table/printer.js +3 -1
- package/dist-sdk/src/entities/search-table/to-tf.js +3 -3
- package/dist-sdk/src/entities/search-table/types.js +1 -0
- package/dist-sdk/src/entities/service-account/from-tf.js +10 -4
- package/dist-sdk/src/entities/service-account/to-tf.d.ts +2 -1
- package/dist-sdk/src/entities/service-account/to-tf.js +7 -0
- package/dist-sdk/src/entities/shared/filters/ast.d.ts +7 -1
- package/dist-sdk/src/entities/shared/filters/ast.js +3 -0
- package/dist-sdk/src/entities/shared/filters/tf-codec.d.ts +7 -1
- package/dist-sdk/src/entities/shared/filters/tf-codec.js +8 -4
- package/dist-sdk/src/entities/shared/handle-description.d.ts +12 -0
- package/dist-sdk/src/entities/shared/handle-description.js +20 -0
- package/dist-sdk/src/entities/shared/types/field-types.d.ts +6 -1
- package/dist-sdk/src/entities/shared/types/field-types.js +5 -8
- package/dist-sdk/src/entities/skill/build.d.ts +51 -2
- package/dist-sdk/src/entities/skill/build.js +65 -8
- package/dist-sdk/src/entities/skill/deserializer/print-skill-v2.js +35 -3
- package/dist-sdk/src/entities/skill/from-tf.d.ts +11 -0
- package/dist-sdk/src/entities/skill/from-tf.js +39 -7
- package/dist-sdk/src/entities/skill/index.d.ts +1 -1
- package/dist-sdk/src/entities/skill/index.js +1 -1
- package/dist-sdk/src/entities/skill/input-coverage.d.ts +21 -0
- package/dist-sdk/src/entities/skill/input-coverage.js +148 -5
- package/dist-sdk/src/entities/skill/to-tf.d.ts +6 -25
- package/dist-sdk/src/entities/skill/to-tf.js +22 -38
- package/dist-sdk/src/entities/skill/tools.d.ts +2 -1
- package/dist-sdk/src/entities/skill/tools.js +3 -1
- package/dist-sdk/src/entities/skill-tool/from-tf.js +10 -3
- package/dist-sdk/src/entities/skill-tool/to-tf.d.ts +5 -5
- package/dist-sdk/src/entities/skill-tool/to-tf.js +5 -7
- package/dist-sdk/src/entities/table/to-tf.js +3 -4
- package/dist-sdk/src/entities/task/to-tf.js +3 -2
- package/dist-sdk/src/entities/view/from-tf.js +36 -10
- package/dist-sdk/src/entities/view/to-tf.d.ts +2 -0
- package/dist-sdk/src/entities/view/to-tf.js +44 -30
- package/dist-sdk/src/entities/widget/from-tf.js +2 -2
- package/dist-sdk/src/entities/widget/to-tf.d.ts +1 -0
- package/dist-sdk/src/entities/widget/to-tf.js +52 -23
- package/dist-sdk/src/graph/index.d.ts +19 -1
- package/dist-sdk/src/graph/index.js +20 -0
- package/dist-sdk/src/graph/types.d.ts +19 -0
- package/package.json +10 -5
|
@@ -88,6 +88,7 @@ const TASK_FACTORY_V2 = {
|
|
|
88
88
|
aiClassify: "aiClassify",
|
|
89
89
|
generateReport: "generateReport",
|
|
90
90
|
unzip: "unzip",
|
|
91
|
+
unimplementedTask: "unimplementedTask",
|
|
91
92
|
};
|
|
92
93
|
/**
|
|
93
94
|
* Per-factory arg-key renames: v1 AST arg name → v2 factory option name. The
|
|
@@ -108,8 +109,17 @@ const ARG_RENAMES = {
|
|
|
108
109
|
saveAttachment: { recordRef: "record" },
|
|
109
110
|
documentModel: { recordRef: "record", documentModel: "fileReader" },
|
|
110
111
|
initiateEmailConversation: { recordRef: "record" },
|
|
112
|
+
initiateCall: { recordId: "record", defaultLanguage: "language" },
|
|
111
113
|
generateReport: { recordRef: "record" },
|
|
112
114
|
};
|
|
115
|
+
const REVISION_PROPERTY = /^([ \t]*revision[ \t]*:[ \t]*)(["'`])([^"'`\r\n]+)\2[ \t]*,?[ \t]*$/m;
|
|
116
|
+
/** Keep the authored publish token across pull; live workflow versions are not author intent. */
|
|
117
|
+
export function preserveAuthoredAutomationRevision(freshSource, existingSource) {
|
|
118
|
+
const authored = REVISION_PROPERTY.exec(existingSource)?.[3];
|
|
119
|
+
if (authored === undefined || authored === "")
|
|
120
|
+
return freshSource;
|
|
121
|
+
return freshSource.replace(REVISION_PROPERTY, (_line, prefix) => `${prefix}${JSON.stringify(authored)},`);
|
|
122
|
+
}
|
|
113
123
|
function emptyImports() {
|
|
114
124
|
return {
|
|
115
125
|
filterOps: new Set(),
|
|
@@ -238,6 +248,21 @@ export function printAutomationV2(ast, opts = {}) {
|
|
|
238
248
|
// ---------------------------------------------------------------------------
|
|
239
249
|
function renderHeader(ast, imports, _opts) {
|
|
240
250
|
const lines = [];
|
|
251
|
+
if (imports.usesScriptInput) {
|
|
252
|
+
// executeScript task bodies are printed VERBATIM from the platform's
|
|
253
|
+
// plain-JavaScript source (script-code.ts) — they carry no type
|
|
254
|
+
// annotations of their own, so under this workspace's `noImplicitAny`
|
|
255
|
+
// every untyped nested function/variable in a pulled script body fails
|
|
256
|
+
// `tsc` (#749). The script text is later re-extracted byte-exact from
|
|
257
|
+
// this file's own source (`tryExtractFromCurrentSource`) and shipped to
|
|
258
|
+
// the platform as literal JavaScript, so annotating it in place isn't
|
|
259
|
+
// safe — `: any` would be invalid JS if the file is ever hand-edited
|
|
260
|
+
// into something the extractor can't match and falls back to
|
|
261
|
+
// `Function#toString()`. `@ts-nocheck` must lead the file to take
|
|
262
|
+
// effect, so it costs this one file's typechecking (still fully
|
|
263
|
+
// buildable) rather than the workspace's.
|
|
264
|
+
lines.push(`// @ts-nocheck — executeScript task bodies below are untyped platform JavaScript (see #749)`);
|
|
265
|
+
}
|
|
241
266
|
lines.push(`/**`);
|
|
242
267
|
lines.push(` * ${ast.name}`);
|
|
243
268
|
lines.push(` *`);
|
|
@@ -291,18 +316,19 @@ function printTrigger(trigger, state) {
|
|
|
291
316
|
const optionParts = [];
|
|
292
317
|
if (trigger.showTriggeredBy === true)
|
|
293
318
|
optionParts.push("showTriggeredBy: true");
|
|
294
|
-
if (trigger.hasRecord === true)
|
|
295
|
-
optionParts.push("record: true");
|
|
296
319
|
const optionsSuffix = optionParts.length > 0 ? `, { ${optionParts.join(", ")} }` : "";
|
|
297
320
|
if (trigger.inputs.length === 0)
|
|
298
321
|
return `${onDemand}({}${optionsSuffix})`;
|
|
299
322
|
const lines = trigger.inputs.map((i) => {
|
|
300
323
|
const parts = [`type: ${quote(i.type)}`];
|
|
324
|
+
if (i.type === "record" && i.app !== undefined) {
|
|
325
|
+
parts.push(`app: ${printRef(i.app, state, DEFAULT_CTX)}`);
|
|
326
|
+
}
|
|
301
327
|
if (i.required)
|
|
302
328
|
parts.push(`required: ${i.required}`);
|
|
303
329
|
if (i.multiple)
|
|
304
330
|
parts.push(`multiple: ${i.multiple}`);
|
|
305
|
-
if (i.defaultValue !== undefined && i.defaultValue !== null) {
|
|
331
|
+
if (i.type !== "record" && i.defaultValue !== undefined && i.defaultValue !== null) {
|
|
306
332
|
parts.push(`defaultValue: ${literalJson(i.defaultValue)}`);
|
|
307
333
|
}
|
|
308
334
|
if (i.description !== undefined)
|
|
@@ -360,11 +386,21 @@ function printTrigger(trigger, state) {
|
|
|
360
386
|
}
|
|
361
387
|
case "approvalProcessStatusUpdated": {
|
|
362
388
|
const approvalProcessStatusUpdated = trackFactory("approvalProcessStatusUpdated", state);
|
|
389
|
+
let approvalChain;
|
|
390
|
+
if (typeof trigger.approvalChain === "string") {
|
|
391
|
+
// Genuinely unreconstructable (a literal id, not a managed
|
|
392
|
+
// `elementum_approval_process` reference) - same escape hatch as
|
|
393
|
+
// dataMine's raw datamine id, never a bare string on the public
|
|
394
|
+
// typed option (edk#741 review).
|
|
395
|
+
state.imports.usesUnsafePlatformId = true;
|
|
396
|
+
approvalChain = `unsafePlatformId(${quote(trigger.approvalChain)})${unresolvedReferenceComment(trigger.approvalChain, state.unresolvedReferences)}`;
|
|
397
|
+
}
|
|
398
|
+
else if (trigger.approvalChain !== undefined) {
|
|
399
|
+
approvalChain = printRef(trigger.approvalChain, state, DEFAULT_CTX);
|
|
400
|
+
}
|
|
363
401
|
const parts = [
|
|
364
402
|
`app: ${printRef(trigger.app, state, DEFAULT_CTX)}`,
|
|
365
|
-
`approvalChain: ${
|
|
366
|
-
? quote(trigger.approvalChain)
|
|
367
|
-
: printRef(trigger.approvalChain, state, DEFAULT_CTX)}`,
|
|
403
|
+
...(approvalChain !== undefined ? [`approvalChain: ${approvalChain}`] : []),
|
|
368
404
|
`status: ${quote(trigger.status)}`,
|
|
369
405
|
];
|
|
370
406
|
return `${approvalProcessStatusUpdated}({\n ${parts.join(",\n ")}\n })`;
|
|
@@ -489,7 +525,21 @@ function formatExecuteScript(task, state, indent, refCtx = DEFAULT_CTX) {
|
|
|
489
525
|
const configPad = " ".repeat(indent + 1);
|
|
490
526
|
const lines = [];
|
|
491
527
|
if (task.args.inputs !== undefined && task.args.inputs !== null && typeof task.args.inputs === "object") {
|
|
492
|
-
|
|
528
|
+
// The platform can retain an execute-script input name after its value
|
|
529
|
+
// reference has disappeared. Terraform accepts that as an omitted
|
|
530
|
+
// optional `value`, but provider read normalizes it to an empty string.
|
|
531
|
+
// Use that same current-API literal in pulled source: JavaScript
|
|
532
|
+
// `undefined` cannot build, and `null` would create adoption drift against
|
|
533
|
+
// the normalized state. Dropping the property would also drop the
|
|
534
|
+
// platform-owned input name on the next apply.
|
|
535
|
+
const inputs = Object.fromEntries(Object.entries(task.args.inputs)
|
|
536
|
+
.map(([name, value]) => [name,
|
|
537
|
+
value === undefined || (value !== null &&
|
|
538
|
+
typeof value === "object" &&
|
|
539
|
+
value.kind === "literal" &&
|
|
540
|
+
value.value === undefined) ? "" : value,
|
|
541
|
+
]));
|
|
542
|
+
const obj = printObjectLiteral(inputs, state, indent + 1, refCtx);
|
|
493
543
|
lines.push(`${configPad}inputs: (${lambdaParams(obj, "ctx")}) => (${obj}),`);
|
|
494
544
|
}
|
|
495
545
|
const code = task.args.code ?? task.args.script;
|
|
@@ -515,7 +565,7 @@ function formatExecuteScript(task, state, indent, refCtx = DEFAULT_CTX) {
|
|
|
515
565
|
* `code:` is always a real function (#125 banned a raw-string alternative).
|
|
516
566
|
* This writes the body's text into the `.ts` source verbatim; byte-fidelity
|
|
517
567
|
* through the SUBSEQUENT `elementum build` (which would otherwise reformat
|
|
518
|
-
* it via
|
|
568
|
+
* it via a `toString()` on the loaded function) is handled separately at
|
|
519
569
|
* build time by `tryExtractFromCurrentSource` (`script-code.ts`), which reads
|
|
520
570
|
* this exact source text back out directly rather than trusting the
|
|
521
571
|
* transpiled runtime function.
|
|
@@ -660,6 +710,21 @@ function printTaskArgs(task, state, indent, refCtx) {
|
|
|
660
710
|
continue;
|
|
661
711
|
}
|
|
662
712
|
const outKey = renames[k] ?? k;
|
|
713
|
+
if (task.factory === "aiSearchTable" && (k === "table" || outKey === "table")) {
|
|
714
|
+
if (typeof v === "string" || (isRefExpr(v) && v.kind === "unresolved")) {
|
|
715
|
+
const uuid = typeof v === "string" ? v : v.uuid;
|
|
716
|
+
state.imports.usesUnsafePlatformId = true;
|
|
717
|
+
lines.push(`${pad}${safeKey(outKey)}: unsafePlatformId(${quote(uuid)})${unresolvedReferenceComment(uuid, state.unresolvedReferences)},`);
|
|
718
|
+
continue;
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
// unimplementedTask's `id` is always a raw platform id — the referenced
|
|
722
|
+
// task has no CRUD, so there's never a portable typed ref to print instead.
|
|
723
|
+
if (task.factory === "unimplementedTask" && k === "id" && typeof v === "string") {
|
|
724
|
+
state.imports.usesUnsafePlatformId = true;
|
|
725
|
+
lines.push(`${pad}${safeKey(outKey)}: unsafePlatformId(${quote(v)}),`);
|
|
726
|
+
continue;
|
|
727
|
+
}
|
|
663
728
|
lines.push(`${pad}${safeKey(outKey)}: ${printArgValue(k, v, state, indent + 1, refCtx)},`);
|
|
664
729
|
}
|
|
665
730
|
if (lines.length === 0)
|
|
@@ -877,6 +942,8 @@ function printRef(ref, state, refCtx) {
|
|
|
877
942
|
return `catalog.tables${safeMember(ref.tableHandle)}`;
|
|
878
943
|
case "tableColumn":
|
|
879
944
|
return `catalog.tables${safeMember(ref.tableHandle)}.columns${safeMember(ref.columnKey)}`;
|
|
945
|
+
case "searchTable":
|
|
946
|
+
return `catalog.${ref.appHandle}.searchTables${safeMember(ref.tableKey)}`;
|
|
880
947
|
case "user":
|
|
881
948
|
return `${trackFactory("userRef", state)}(${quote(ref.email)})`;
|
|
882
949
|
case "documentModel":
|
|
@@ -911,6 +978,8 @@ function printRef(ref, state, refCtx) {
|
|
|
911
978
|
}
|
|
912
979
|
case "cloudLink":
|
|
913
980
|
return `catalog.cloudLinks${safeMember(ref.handle)}`;
|
|
981
|
+
case "procedure":
|
|
982
|
+
return `catalog.cloudLinks${safeMember(ref.cloudLinkKey)}.procedures${safeMember(ref.procedureKey)}`;
|
|
914
983
|
case "unresolved":
|
|
915
984
|
// v2 value slots accept a literal directly — no `val()` wrapper. But this
|
|
916
985
|
// RefExpr kind is also the fallback for ref-typed positions (automation,
|
|
@@ -5,6 +5,13 @@ export interface AutomationFromTfResult {
|
|
|
5
5
|
readonly tfLabel: string;
|
|
6
6
|
readonly ast: AutomationAst;
|
|
7
7
|
readonly blocks: readonly TfBlock[];
|
|
8
|
+
/** Export address → address rebuilt from the printed current API. */
|
|
9
|
+
readonly adoptionAddressAliases: readonly {
|
|
10
|
+
readonly from: string;
|
|
11
|
+
readonly to: string;
|
|
12
|
+
}[];
|
|
13
|
+
/** Non-fatal issues found while extracting (edk#785: a task anchored to the trigger because its real parent is unsupported). */
|
|
14
|
+
readonly diagnostics?: readonly string[];
|
|
8
15
|
}
|
|
9
16
|
/**
|
|
10
17
|
* Best-effort resource footprint of one automation, used ONLY when whole-
|
|
@@ -30,6 +37,7 @@ export interface AutomationFromTfContext {
|
|
|
30
37
|
readonly ownerRefName: string;
|
|
31
38
|
readonly fieldKey: string;
|
|
32
39
|
readonly fieldName?: string;
|
|
40
|
+
readonly fieldType?: string;
|
|
33
41
|
}>;
|
|
34
42
|
readonly foreignFieldRefsByDataAddress?: ReadonlyMap<string, {
|
|
35
43
|
readonly ownerRefName: string;
|
|
@@ -43,6 +51,7 @@ export interface AutomationFromTfContext {
|
|
|
43
51
|
readonly fieldNamesByOwnerRefName?: ReadonlyMap<string, ReadonlyMap<string, string>>;
|
|
44
52
|
readonly foreignAppRefNames?: ReadonlyMap<string, string>;
|
|
45
53
|
readonly foreignElementRefNames?: ReadonlyMap<string, string>;
|
|
54
|
+
readonly procedureKeysByDiscriminator?: ReadonlyMap<string, string>;
|
|
46
55
|
}
|
|
47
56
|
export interface AutomationGraphFromTfResult {
|
|
48
57
|
readonly automation?: AutomationAst;
|
|
@@ -60,4 +69,4 @@ export declare function automationFromTf(doc: TfDocument, automationLabel: strin
|
|
|
60
69
|
}>, foreignTableRefsById?: ReadonlyMap<string, {
|
|
61
70
|
readonly tableRefName: string;
|
|
62
71
|
readonly name: string;
|
|
63
|
-
}>, picklistOptionLabelById?: ReadonlyMap<string, string>, fieldNamesByOwnerRefName?: ReadonlyMap<string, ReadonlyMap<string, string>>, foreignAppRefNames?: ReadonlyMap<string, string>, foreignElementRefNames?: ReadonlyMap<string, string>): AutomationFromTfResult;
|
|
72
|
+
}>, picklistOptionLabelById?: ReadonlyMap<string, string>, fieldNamesByOwnerRefName?: ReadonlyMap<string, ReadonlyMap<string, string>>, foreignAppRefNames?: ReadonlyMap<string, string>, foreignElementRefNames?: ReadonlyMap<string, string>, procedureKeysByDiscriminator?: ReadonlyMap<string, string>): AutomationFromTfResult;
|