@elementumai/edk 0.12.0 → 0.13.1
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 +8 -2
- package/dist-sdk/src/catalog/factories.d.ts +7 -1
- package/dist-sdk/src/catalog/factories.js +10 -2
- package/dist-sdk/src/catalog/index.d.ts +2 -2
- package/dist-sdk/src/catalog/index.js +1 -1
- package/dist-sdk/src/catalog/org.js +79 -34
- package/dist-sdk/src/catalog/token.js +5 -0
- package/dist-sdk/src/catalog/types.d.ts +12 -1
- package/dist-sdk/src/catalog/types.js +3 -0
- package/dist-sdk/src/core/system-fields.d.ts +1 -1
- package/dist-sdk/src/core/system-fields.js +1 -1
- package/dist-sdk/src/core/types/app.d.ts +6 -0
- package/dist-sdk/src/engine/build/context.d.ts +3 -0
- package/dist-sdk/src/engine/coverage-gaps.d.ts +2 -0
- package/dist-sdk/src/engine/coverage-gaps.js +4 -0
- package/dist-sdk/src/engine/ei/run.d.ts +8 -0
- package/dist-sdk/src/engine/ei/run.js +46 -7
- package/dist-sdk/src/engine/pull/authored-address.js +42 -6
- package/dist-sdk/src/engine/pull/authored-root.d.ts +88 -0
- package/dist-sdk/src/engine/pull/authored-root.js +306 -0
- package/dist-sdk/src/engine/pull/context.d.ts +34 -0
- package/dist-sdk/src/engine/pull/field-refs-registry.d.ts +114 -0
- package/dist-sdk/src/engine/pull/field-refs-registry.js +501 -0
- package/dist-sdk/src/engine/pull/org.d.ts +1 -0
- package/dist-sdk/src/engine/pull/org.js +2 -0
- package/dist-sdk/src/engine/pull/partition.d.ts +8 -0
- package/dist-sdk/src/engine/pull/partition.js +43 -0
- package/dist-sdk/src/engine/pull/pulled-roots.d.ts +89 -0
- package/dist-sdk/src/engine/pull/pulled-roots.js +203 -0
- package/dist-sdk/src/engine/pull/ref-only.d.ts +4 -0
- package/dist-sdk/src/engine/pull/ref-only.js +7 -1
- package/dist-sdk/src/engine/pull/source-resources.d.ts +39 -0
- package/dist-sdk/src/engine/pull/source-resources.js +110 -0
- package/dist-sdk/src/engine/pull/stream-root.d.ts +159 -0
- package/dist-sdk/src/engine/pull/stream-root.js +579 -0
- package/dist-sdk/src/engine/workspace/authoring-layout.js +16 -2
- package/dist-sdk/src/engine/workspace/reserved-catalog-keys.d.ts +47 -0
- package/dist-sdk/src/engine/workspace/reserved-catalog-keys.js +115 -0
- package/dist-sdk/src/entities/access-policy/build.d.ts +2 -1
- package/dist-sdk/src/entities/access-policy/from-tf.d.ts +7 -0
- package/dist-sdk/src/entities/access-policy/from-tf.js +17 -5
- package/dist-sdk/src/entities/access-policy/to-tf.d.ts +19 -0
- package/dist-sdk/src/entities/access-policy/to-tf.js +65 -8
- package/dist-sdk/src/entities/agent/build.d.ts +52 -1
- package/dist-sdk/src/entities/agent/build.js +34 -0
- package/dist-sdk/src/entities/agent/deserializer/print-agent-v2.js +70 -1
- package/dist-sdk/src/entities/agent/from-tf.d.ts +36 -1
- package/dist-sdk/src/entities/agent/from-tf.js +289 -2
- package/dist-sdk/src/entities/agent/index.d.ts +1 -1
- package/dist-sdk/src/entities/agent/module.js +1 -0
- package/dist-sdk/src/entities/agent/to-tf.d.ts +11 -11
- package/dist-sdk/src/entities/agent/to-tf.js +179 -17
- package/dist-sdk/src/entities/agent-tool/from-tf.js +6 -0
- package/dist-sdk/src/entities/agent-tool/to-tf.d.ts +2 -2
- package/dist-sdk/src/entities/agent-tool/to-tf.js +2 -2
- package/dist-sdk/src/entities/app/build.d.ts +33 -13
- package/dist-sdk/src/entities/app/build.js +14 -12
- package/dist-sdk/src/entities/app/from-tf.d.ts +1 -0
- package/dist-sdk/src/entities/app/from-tf.js +7 -9
- package/dist-sdk/src/entities/app/index.d.ts +1 -0
- package/dist-sdk/src/entities/app/index.js +1 -0
- package/dist-sdk/src/entities/app/module.js +3 -0
- package/dist-sdk/src/entities/app/stage-keys.d.ts +2 -2
- package/dist-sdk/src/entities/app/stage-keys.js +3 -3
- package/dist-sdk/src/entities/app/to-tf.js +1 -0
- package/dist-sdk/src/entities/approval-chain/build.d.ts +46 -11
- package/dist-sdk/src/entities/approval-chain/build.js +120 -8
- package/dist-sdk/src/entities/approval-chain/from-tf.d.ts +24 -2
- package/dist-sdk/src/entities/approval-chain/from-tf.js +148 -6
- package/dist-sdk/src/entities/approval-chain/index.d.ts +4 -1
- package/dist-sdk/src/entities/approval-chain/index.js +4 -1
- package/dist-sdk/src/entities/approval-chain/module.js +23 -5
- package/dist-sdk/src/entities/approval-chain/printer.d.ts +1 -1
- package/dist-sdk/src/entities/approval-chain/printer.js +91 -5
- package/dist-sdk/src/entities/approval-chain/steps-tf.d.ts +77 -0
- package/dist-sdk/src/entities/approval-chain/steps-tf.js +255 -0
- package/dist-sdk/src/entities/approval-chain/steps.d.ts +71 -0
- package/dist-sdk/src/entities/approval-chain/steps.js +83 -0
- package/dist-sdk/src/entities/approval-chain/to-tf.d.ts +16 -6
- package/dist-sdk/src/entities/approval-chain/to-tf.js +37 -4
- package/dist-sdk/src/entities/automation/build.d.ts +10 -1
- package/dist-sdk/src/entities/automation/build.js +70 -27
- package/dist-sdk/src/entities/automation/deserializer/print-automation.js +21 -5
- package/dist-sdk/src/entities/automation/from-tf.d.ts +26 -5
- package/dist-sdk/src/entities/automation/from-tf.js +665 -112
- package/dist-sdk/src/entities/automation/index.d.ts +2 -1
- package/dist-sdk/src/entities/automation/index.js +1 -0
- package/dist-sdk/src/entities/automation/module.d.ts +4 -3
- package/dist-sdk/src/entities/automation/module.js +45 -12
- package/dist-sdk/src/entities/automation/refs-read.d.ts +19 -0
- package/dist-sdk/src/entities/automation/refs-read.js +48 -0
- package/dist-sdk/src/entities/automation/slack-message-refs.d.ts +9 -0
- package/dist-sdk/src/entities/automation/slack-message-refs.js +75 -0
- package/dist-sdk/src/entities/automation/system-ref-name.d.ts +23 -3
- package/dist-sdk/src/entities/automation/system-ref-name.js +86 -4
- package/dist-sdk/src/entities/automation/task-output-labels.d.ts +11 -0
- package/dist-sdk/src/entities/automation/task-output-labels.js +23 -0
- package/dist-sdk/src/entities/automation/tasks.d.ts +29 -4
- package/dist-sdk/src/entities/automation/tasks.js +34 -11
- package/dist-sdk/src/entities/automation/to-tf.d.ts +8 -1
- package/dist-sdk/src/entities/automation/to-tf.js +563 -103
- package/dist-sdk/src/entities/automation/triggers.d.ts +0 -8
- package/dist-sdk/src/entities/automation/triggers.js +26 -11
- package/dist-sdk/src/entities/automation/unsafe-script-output.d.ts +50 -0
- package/dist-sdk/src/entities/automation/unsafe-script-output.js +92 -0
- package/dist-sdk/src/entities/chart/build.d.ts +9 -1
- package/dist-sdk/src/entities/chart/from-tf.js +3 -0
- package/dist-sdk/src/entities/chart/to-tf.js +19 -2
- package/dist-sdk/src/entities/dashboard/from-tf.d.ts +3 -1
- package/dist-sdk/src/entities/dashboard/from-tf.js +42 -2
- package/dist-sdk/src/entities/dashboard/to-tf.js +9 -1
- package/dist-sdk/src/entities/dashboard-widget-order/module.d.ts +10 -0
- package/dist-sdk/src/entities/dashboard-widget-order/module.js +25 -0
- package/dist-sdk/src/entities/dashboard-widget-order/order.d.ts +31 -0
- package/dist-sdk/src/entities/dashboard-widget-order/order.js +102 -0
- package/dist-sdk/src/entities/dynamic-layout/build.d.ts +2 -0
- package/dist-sdk/src/entities/dynamic-layout/from-tf.js +44 -5
- package/dist-sdk/src/entities/dynamic-layout/to-tf.js +46 -12
- package/dist-sdk/src/entities/element/audit-field-guard.d.ts +9 -0
- package/dist-sdk/src/entities/element/audit-field-guard.js +88 -0
- package/dist-sdk/src/entities/element/build.js +2 -1
- package/dist-sdk/src/entities/element/from-tf.d.ts +1 -0
- package/dist-sdk/src/entities/element/from-tf.js +4 -7
- package/dist-sdk/src/entities/element/module.js +5 -0
- package/dist-sdk/src/entities/element/system-fields.d.ts +13 -0
- package/dist-sdk/src/entities/element/system-fields.js +23 -0
- package/dist-sdk/src/entities/element/to-tf.js +1 -0
- package/dist-sdk/src/entities/field/build.d.ts +9 -0
- package/dist-sdk/src/entities/field/from-tf.d.ts +52 -1
- package/dist-sdk/src/entities/field/from-tf.js +212 -14
- package/dist-sdk/src/entities/field/module.js +4 -0
- package/dist-sdk/src/entities/field/to-tf.d.ts +5 -1
- package/dist-sdk/src/entities/field/to-tf.js +33 -12
- package/dist-sdk/src/entities/org/category.js +1 -0
- package/dist-sdk/src/entities/org/index.d.ts +1 -0
- package/dist-sdk/src/entities/org/index.js +1 -0
- package/dist-sdk/src/entities/org/voice-auth.d.ts +5 -0
- package/dist-sdk/src/entities/org/voice-auth.js +33 -0
- package/dist-sdk/src/entities/organization/build.d.ts +3 -0
- package/dist-sdk/src/entities/organization/build.js +2 -0
- package/dist-sdk/src/entities/organization/index.d.ts +1 -0
- package/dist-sdk/src/entities/organization/index.js +1 -0
- package/dist-sdk/src/entities/organization/to-tf.d.ts +2 -0
- package/dist-sdk/src/entities/organization/to-tf.js +59 -1
- package/dist-sdk/src/entities/organization/voice-auth.d.ts +60 -0
- package/dist-sdk/src/entities/organization/voice-auth.js +60 -0
- package/dist-sdk/src/entities/phone-service/build.d.ts +9 -1
- package/dist-sdk/src/entities/phone-service/build.js +1 -0
- package/dist-sdk/src/entities/phone-service/deserializer/print-phone-service.js +3 -0
- package/dist-sdk/src/entities/phone-service/from-tf.d.ts +1 -0
- package/dist-sdk/src/entities/phone-service/from-tf.js +8 -1
- package/dist-sdk/src/entities/phone-service/to-tf.js +16 -0
- package/dist-sdk/src/entities/record-create-form/from-tf.js +2 -2
- package/dist-sdk/src/entities/relationship/from-tf.js +9 -4
- package/dist-sdk/src/entities/relationship/module.js +2 -2
- package/dist-sdk/src/entities/relationship/pair-check.d.ts +6 -2
- package/dist-sdk/src/entities/relationship/pair-check.js +105 -18
- package/dist-sdk/src/entities/relationship/to-tf.js +5 -2
- package/dist-sdk/src/entities/role/build.d.ts +3 -4
- package/dist-sdk/src/entities/role/permission-levels.d.ts +7 -0
- package/dist-sdk/src/entities/role/permission-levels.js +78 -0
- package/dist-sdk/src/entities/role/to-tf.js +32 -2
- package/dist-sdk/src/entities/search-table/build.d.ts +9 -3
- package/dist-sdk/src/entities/search-table/build.js +4 -4
- package/dist-sdk/src/entities/search-table/printer.js +3 -1
- package/dist-sdk/src/entities/search-table/to-tf.js +20 -2
- package/dist-sdk/src/entities/service-account/module.d.ts +2 -1
- package/dist-sdk/src/entities/service-account/module.js +4 -1
- package/dist-sdk/src/entities/service-account/resource-type.d.ts +2 -0
- package/dist-sdk/src/entities/service-account/resource-type.js +2 -0
- package/dist-sdk/src/entities/service-account/role-membership-check.d.ts +20 -0
- package/dist-sdk/src/entities/service-account/role-membership-check.js +80 -0
- package/dist-sdk/src/entities/shared/aspect-target-from-tf.d.ts +15 -0
- package/dist-sdk/src/entities/shared/aspect-target-from-tf.js +36 -0
- package/dist-sdk/src/entities/shared/context.d.ts +14 -1
- package/dist-sdk/src/entities/shared/filters/ast.d.ts +2 -0
- package/dist-sdk/src/entities/shared/filters/index.d.ts +97 -15
- package/dist-sdk/src/entities/shared/filters/index.js +30 -7
- package/dist-sdk/src/entities/shared/filters/option-lookups.d.ts +57 -0
- package/dist-sdk/src/entities/shared/filters/option-lookups.js +108 -0
- package/dist-sdk/src/entities/shared/filters/print.d.ts +2 -0
- package/dist-sdk/src/entities/shared/filters/print.js +19 -6
- package/dist-sdk/src/entities/shared/filters/tf-codec.d.ts +16 -7
- package/dist-sdk/src/entities/shared/filters/tf-codec.js +25 -5
- package/dist-sdk/src/entities/shared/filters/types.d.ts +4 -0
- package/dist-sdk/src/entities/shared/raw-option-id.d.ts +30 -0
- package/dist-sdk/src/entities/shared/raw-option-id.js +41 -0
- package/dist-sdk/src/entities/shared/tool-field-ref.d.ts +1 -1
- package/dist-sdk/src/entities/shared/tool-field-ref.js +3 -2
- package/dist-sdk/src/entities/skill/input-coverage.js +5 -2
- package/dist-sdk/src/entities/sla/build.d.ts +96 -0
- package/dist-sdk/src/entities/sla/build.js +124 -0
- package/dist-sdk/src/entities/sla/from-tf.d.ts +40 -0
- package/dist-sdk/src/entities/sla/from-tf.js +164 -0
- package/dist-sdk/src/entities/sla/index.d.ts +1 -0
- package/dist-sdk/src/entities/sla/index.js +1 -0
- package/dist-sdk/src/entities/sla/module.d.ts +4 -0
- package/dist-sdk/src/entities/sla/module.js +73 -0
- package/dist-sdk/src/entities/sla/printer.d.ts +2 -0
- package/dist-sdk/src/entities/sla/printer.js +84 -0
- package/dist-sdk/src/entities/sla/to-tf.d.ts +12 -0
- package/dist-sdk/src/entities/sla/to-tf.js +81 -0
- package/dist-sdk/src/entities/table/build.d.ts +7 -2
- package/dist-sdk/src/entities/table/build.js +22 -1
- package/dist-sdk/src/entities/table/deserializer/normalize.d.ts +4 -1
- package/dist-sdk/src/entities/table/from-tf.js +89 -14
- package/dist-sdk/src/entities/table/index.d.ts +1 -1
- package/dist-sdk/src/entities/table/to-tf.js +41 -2
- package/dist-sdk/src/entities/task/from-tf.js +3 -2
- package/dist-sdk/src/entities/view/custom-view-validate.d.ts +6 -4
- package/dist-sdk/src/entities/view/custom-view-validate.js +36 -18
- package/dist-sdk/src/entities/view/from-tf.js +16 -4
- package/dist-sdk/src/entities/view/to-tf.js +66 -47
- package/dist-sdk/src/entities/visual-flow/module.js +52 -1
- package/dist-sdk/src/entities/widget/from-tf.js +19 -8
- package/dist-sdk/src/generated/ragnarok/ragnarok-spec.d.ts +49 -4
- package/dist-sdk/src/generated/ragnarok/ragnarok-spec.js +2 -2
- package/dist-sdk/src/graph/index.d.ts +9 -0
- package/dist-sdk/src/graph/index.js +8 -0
- package/dist-sdk/src/graph/modules.js +13 -1
- package/dist-sdk/src/graph/resource-types.d.ts +47 -0
- package/dist-sdk/src/graph/resource-types.js +62 -0
- package/dist-sdk/src/graph/types.d.ts +113 -6
- package/package.json +7 -4
|
@@ -13,7 +13,7 @@ import { SYSTEM_FIELD_KEY_SET } from "../../core/system-fields.js";
|
|
|
13
13
|
import { ELEMENT_SYSTEM_FIELD_KEYS } from "../element/system-fields.js";
|
|
14
14
|
import { expr, isTfExpr, scopedLabelToBagKey, tfLabelToTsLabel, tsLabelToTfLabel } from "../../engine/tf/index.js";
|
|
15
15
|
import { lostStageMessage, pulledStageHandle } from "../app/stage-keys.js";
|
|
16
|
-
import { decodeForeignDataField, fieldBlockOwner, fieldKeyFromForeignDataLabel, fieldKeyFromTfValue, ownerMayHaveCustomField } from "../field/from-tf.js";
|
|
16
|
+
import { decodeForeignDataField, elementAuditFieldReference, fieldBlockOwner, fieldKeyFromForeignDataLabel, fieldKeyFromTfValue, ownerMayHaveCustomField } from "../field/from-tf.js";
|
|
17
17
|
import { resolveDataAspectTarget } from "../shared/aspect-target-from-tf.js";
|
|
18
18
|
import { DASHBOARD_RESOURCE_TYPE } from "../dashboard/module.js";
|
|
19
19
|
import { DASHBOARD_WIDGET_RESOURCE_TYPE } from "../dashboard-widget/module.js";
|
|
@@ -327,7 +327,10 @@ function agentViewFromTf(block, owner, ctx) {
|
|
|
327
327
|
}
|
|
328
328
|
const agentLabel = resourceRefLabel(attrs["agent_id"], "elementum_agent");
|
|
329
329
|
if (agentLabel === undefined) {
|
|
330
|
-
|
|
330
|
+
// An agent_id that isn't a resource reference can't be built; leave the
|
|
331
|
+
// view unmanaged so adoption does not import it.
|
|
332
|
+
ctx.diagnostics.push(`${where}: agent_id is not an elementum_agent resource reference; the view is left unmanaged so it is not destroyed`);
|
|
333
|
+
ctx.skipped.push(`${AGENT_VIEW_RESOURCE_TYPE}.${label}`);
|
|
331
334
|
return undefined;
|
|
332
335
|
}
|
|
333
336
|
const scope = owner.scope ?? "app";
|
|
@@ -543,7 +546,7 @@ function fieldRefFromTf(v, owner, ctx, site) {
|
|
|
543
546
|
const ownerLabel = owner.label;
|
|
544
547
|
const fieldKey = fieldKeyFromTfValue(v, tfLabelToTsLabel(ownerLabel), owner.ownerTfLabel, owner.scope ?? "app", ctx);
|
|
545
548
|
if (fieldKey !== undefined)
|
|
546
|
-
return keptIdOrKey(unextractedFieldId(v, fieldKey, owner, ctx, site), fieldKey);
|
|
549
|
+
return keptIdOrKey(unextractedFieldId(v, fieldKey, owner, ctx, site), elementAuditFieldReference(v, fieldKey, owner, ctx));
|
|
547
550
|
const ownData = ownDataFieldRef(v, owner, ctx, site, false);
|
|
548
551
|
if (ownData !== undefined)
|
|
549
552
|
return authoredRef(ownData);
|
|
@@ -573,7 +576,7 @@ function fieldRefFromTf(v, owner, ctx, site) {
|
|
|
573
576
|
const attr = v.name.startsWith(`${ownerLabel}_`) ? v.name.slice(ownerLabel.length + 1) : undefined;
|
|
574
577
|
const systemKey = attr !== undefined ? SYSTEM_FIELD_KEY_BY_ID_ATTR.get(attr) : undefined;
|
|
575
578
|
if (systemKey !== undefined)
|
|
576
|
-
return systemKey;
|
|
579
|
+
return elementAuditFieldReference(v, systemKey, owner, ctx);
|
|
577
580
|
}
|
|
578
581
|
// Custom field ref resolution is shared with agent-tool's field refs
|
|
579
582
|
// (src/entities/agent-tool/from-tf.ts) via entities/field/from-tf.ts.
|
|
@@ -698,6 +701,15 @@ function ownDataFieldRef(v, owner, ctx, site, failClosed) {
|
|
|
698
701
|
const field = ownDataFieldKey(v.label, owner, ctx);
|
|
699
702
|
if (field.extracted)
|
|
700
703
|
return field.key;
|
|
704
|
+
// The live id of the field the lookup finds, when pull knows it (#2815: an
|
|
705
|
+
// element's Closed at / Closed by): keep the reference by it, as for any
|
|
706
|
+
// other field pull did not extract (#1978). A clone never copies the field.
|
|
707
|
+
const liveId = ctx.cloning === undefined ? ctx.ownFieldIdsByDataAddress?.get(`${v.type}.${v.label}`) : undefined;
|
|
708
|
+
if (liveId !== undefined) {
|
|
709
|
+
reportUnextractedField(ctx, unkeptFieldAddress(v), liveId, site, failClosed);
|
|
710
|
+
owner.unextractedFieldIds?.add(liveId);
|
|
711
|
+
return liveId;
|
|
712
|
+
}
|
|
701
713
|
if (!failClosed && ctx.cloning === undefined)
|
|
702
714
|
return undefined;
|
|
703
715
|
// Not `unextractedFieldId`: with an unmatched name, the label's key may be
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* with the same `EntityTfError` path used by access-policy row filters.
|
|
11
11
|
*/
|
|
12
12
|
import { agentViewLayoutToTf, viewBlocksToTf } from "./agent-view-layout-to-tf.js";
|
|
13
|
-
import { expr, isCanonicalTsLabel, scopedResourceLabel, tsLabelToTfLabel, } from "../../engine/tf/index.js";
|
|
13
|
+
import { expr, isCanonicalTsLabel, isTfLabel, scopedResourceLabel, tfLabelToTsLabel, tsLabelToTfLabel, } from "../../engine/tf/index.js";
|
|
14
14
|
import { fieldRefToTfValue as customFieldRefToTfValue } from "../field/to-tf.js";
|
|
15
15
|
import { ELEMENT_SYSTEM_FIELD_KEYS } from "../element/system-fields.js";
|
|
16
16
|
import { filterToTf, principalListToTf } from "../access-policy/to-tf.js";
|
|
@@ -41,15 +41,20 @@ export function viewToTf(layouts, listViews, calendarViews, kanbanViews, dashboa
|
|
|
41
41
|
const { ownerRefName, ownerTfLabel, scope = "app", objectId, diagnostics, fieldAddresses } = opts;
|
|
42
42
|
const principalCtx = { ...opts, scope, objectId };
|
|
43
43
|
const blocks = [];
|
|
44
|
+
// A layout key that names no stage fails the build: dropping the layout
|
|
45
|
+
// would plan the deletion of a live one (#2894).
|
|
46
|
+
const validLayoutKeys = () => opts.stageTfLabels === undefined
|
|
47
|
+
? ""
|
|
48
|
+
: ` Use one of: ${[...new Set([...opts.stageTfLabels].filter(isTfLabel).map(tfLabelToTsLabel))].sort().join(", ")}.`;
|
|
44
49
|
for (const [stageKey, layout] of Object.entries(layouts ?? {})) {
|
|
45
50
|
if (!isCanonicalTsLabel(stageKey)) {
|
|
46
|
-
|
|
47
|
-
|
|
51
|
+
throw new EntityTfError(opts.stageTfLabels === undefined
|
|
52
|
+
? `${ownerRefName}: layouts key "${stageKey}" is not a valid key (keys are camelCase, with "_" before a digit; see src/engine/tf/labels.ts)`
|
|
53
|
+
: `${ownerRefName}: layouts key "${stageKey}" is not a stage key: a stage key is the stage's name in camelCase, with "_" before a digit (see src/engine/tf/labels.ts).${validLayoutKeys()}`);
|
|
48
54
|
}
|
|
49
55
|
const stageTfLabel = tsLabelToTfLabel(stageKey);
|
|
50
56
|
if (opts.stageTfLabels !== undefined && !opts.stageTfLabels.has(stageTfLabel)) {
|
|
51
|
-
|
|
52
|
-
continue;
|
|
57
|
+
throw new EntityTfError(`${ownerRefName}: layouts.${stageKey} matches none of its stages.${validLayoutKeys()}`);
|
|
53
58
|
}
|
|
54
59
|
blocks.push(layoutToTf(stageKey, layout, ownerRefName, ownerTfLabel, scope, objectId, diagnostics, fieldAddresses, opts.widgets, opts.stageKeyByTfLabel?.get(stageTfLabel)));
|
|
55
60
|
}
|
|
@@ -236,6 +241,9 @@ export function viewToTf(layouts, listViews, calendarViews, kanbanViews, dashboa
|
|
|
236
241
|
blocks.push({ kind: "resource", type: AGENT_VIEW_RESOURCE_TYPE, label: tfLabel, attrs });
|
|
237
242
|
viewAddressByKey.set(viewKey, { type: AGENT_VIEW_RESOURCE_TYPE, label: tfLabel });
|
|
238
243
|
}
|
|
244
|
+
// Every custom view's problems (layout, filter, sort, sharing) are reported
|
|
245
|
+
// together, not only the first failing view's (edk#2923).
|
|
246
|
+
const customViewProblems = [];
|
|
239
247
|
for (const [viewKey, view] of Object.entries(customViews ?? {})) {
|
|
240
248
|
const where = `customViews.${viewKey}`;
|
|
241
249
|
if (!isCanonicalTsLabel(viewKey)) {
|
|
@@ -246,52 +254,63 @@ export function viewToTf(layouts, listViews, calendarViews, kanbanViews, dashboa
|
|
|
246
254
|
diagnostics.push(`${where} collides with another view key; dropped`);
|
|
247
255
|
continue;
|
|
248
256
|
}
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
257
|
+
try {
|
|
258
|
+
const tfLabel = scopedResourceLabel(ownerTfLabel, tsLabelToTfLabel(viewKey), scope);
|
|
259
|
+
const attrs = {
|
|
260
|
+
aspect_id: objectId,
|
|
261
|
+
name: view.name ?? "",
|
|
262
|
+
allow_record_creation: view.allowRecordCreation ?? true,
|
|
263
|
+
};
|
|
264
|
+
if (view.agent !== undefined) {
|
|
265
|
+
const agentRefName = view.agent.refName ?? "";
|
|
266
|
+
if (agentRefName === "" || view.agent.parent !== ownerRefName) {
|
|
267
|
+
// Dropping only the agent would detach it on apply; keep the whole view out instead.
|
|
268
|
+
diagnostics.push(`${where}.agent must be an agent of this ${scope === "element" ? "element" : "app"}; dropped`);
|
|
269
|
+
continue;
|
|
270
|
+
}
|
|
271
|
+
attrs["agent_id"] = expr.resourceAttr("elementum_agent", scopedResourceLabel(ownerTfLabel, tsLabelToTfLabel(agentRefName), scope), ["id"]);
|
|
261
272
|
}
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
273
|
+
if (view.filter !== undefined)
|
|
274
|
+
attrs["filter"] = filterToTf(view.filter, `${where}.filter`, { ownerTfLabel, appRefName: ownerRefName, scope, objectId, diagnostics, resolvePicklistLiterals: false, fieldAddresses });
|
|
275
|
+
if (view.sort !== undefined)
|
|
276
|
+
attrs["sort"] = managedViewSortToTf(view.sort, ownerTfLabel, scope, `${where}.sort`, diagnostics, fieldAddresses);
|
|
277
|
+
appendViewSharingAttrs(attrs, view, where, principalCtx);
|
|
278
|
+
if (view.displayOrder !== undefined)
|
|
279
|
+
attrs["display_order"] = view.displayOrder;
|
|
280
|
+
if (view.layout !== undefined) {
|
|
281
|
+
attrs["layout"] = expr.jsonencode(viewBlocksToTf(view.layout, `${where}.layout`, {
|
|
282
|
+
ownerRefName,
|
|
283
|
+
ownerKind: scope === "element" ? "element" : "app",
|
|
284
|
+
ownerTfLabel,
|
|
285
|
+
scope,
|
|
286
|
+
objectId,
|
|
287
|
+
diagnostics,
|
|
288
|
+
fieldAddresses,
|
|
289
|
+
fieldNames: opts.fieldNames,
|
|
290
|
+
fieldMetadata: opts.fieldMetadata,
|
|
291
|
+
orgRefs: opts.orgRefs,
|
|
292
|
+
workspaceAspects: opts.workspaceAspects,
|
|
293
|
+
resolveField: (ref, fieldWhere) => fieldRefToTfValue(ref, ownerTfLabel, scope, fieldWhere, diagnostics, fieldAddresses),
|
|
294
|
+
}, { editorPolicy: false, strictStructure: true }));
|
|
295
|
+
}
|
|
296
|
+
else {
|
|
297
|
+
// The page needs a layout document, and the platform rejects a blank
|
|
298
|
+
// one, so a view without a layout cannot be opened in the admin UI.
|
|
299
|
+
diagnostics.push(`${where} has no layout, so the admin UI cannot open this view ("This custom view could not be loaded"); add a layout`);
|
|
300
|
+
}
|
|
301
|
+
blocks.push({ kind: "resource", type: CUSTOM_VIEW_RESOURCE_TYPE, label: tfLabel, attrs });
|
|
302
|
+
viewAddressByKey.set(viewKey, { type: CUSTOM_VIEW_RESOURCE_TYPE, label: tfLabel });
|
|
286
303
|
}
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
304
|
+
catch (err) {
|
|
305
|
+
if (!(err instanceof EntityTfError))
|
|
306
|
+
throw err;
|
|
307
|
+
// Codec errors (e.g. `unsupported filter type "X"`) carry no location; name the view.
|
|
308
|
+
const located = err.message.startsWith(`${where}.`) || err.message.startsWith(`${where}:`) || err.message.startsWith(`${where} `);
|
|
309
|
+
customViewProblems.push(located ? err.message : `${where}: ${err.message}`);
|
|
291
310
|
}
|
|
292
|
-
blocks.push({ kind: "resource", type: CUSTOM_VIEW_RESOURCE_TYPE, label: tfLabel, attrs });
|
|
293
|
-
viewAddressByKey.set(viewKey, { type: CUSTOM_VIEW_RESOURCE_TYPE, label: tfLabel });
|
|
294
311
|
}
|
|
312
|
+
if (customViewProblems.length > 0)
|
|
313
|
+
throw new EntityTfError(customViewProblems.join("\n"));
|
|
295
314
|
if (opts.deleteDefaultListView === true && viewAddressByKey.size === 0) {
|
|
296
315
|
throw new EntityTfError(`${ownerRefName}: deleteDefaultListView needs at least one declared view; without one there is no view order to apply and the "${PLATFORM_DEFAULT_LIST_VIEW_NAME}" view would stay.`);
|
|
297
316
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { isTfExpr, scopedLabelToBagKey } from "../../engine/tf/index.js";
|
|
1
2
|
import { NO_CATALOG, NO_DATA } from "../../graph/types.js";
|
|
2
3
|
import { APP_RESOURCE_TYPE } from "../app/module.js";
|
|
3
4
|
import { ELEMENT_RESOURCE_TYPE } from "../element/module.js";
|
|
@@ -6,6 +7,54 @@ import { printVisualFlow } from "./printer.js";
|
|
|
6
7
|
import { appStageKeyByHandle, LostStageHandleError, stageHandleIndexFromTfStages } from "../app/stage-keys.js";
|
|
7
8
|
import { visualFlowToTf } from "./to-tf.js";
|
|
8
9
|
export const VISUAL_FLOW_RESOURCE_TYPE = "elementum_flow";
|
|
10
|
+
/**
|
|
11
|
+
* Every automation or agent a flow's blocks run is a requirement of the flow:
|
|
12
|
+
* when pull leaves it out, the printed flow would point at something that
|
|
13
|
+
* isn't in source and fail to load. The flow is then left out and released
|
|
14
|
+
* from state like it, rather than destroyed (#2892).
|
|
15
|
+
*/
|
|
16
|
+
function requireFlowAutomations(block, refName, ctx) {
|
|
17
|
+
if (block.type === undefined || block.label === undefined)
|
|
18
|
+
return;
|
|
19
|
+
const address = `${block.type}.${block.label}`;
|
|
20
|
+
const seen = new Set();
|
|
21
|
+
for (const stage of listOf(block.attrs["stages"])) {
|
|
22
|
+
for (const node of listOf(objectOf(stage)?.["nodes"])) {
|
|
23
|
+
const action = objectOf(objectOf(node)?.["action"]);
|
|
24
|
+
for (const [kind, attr, type] of RUN_ACTIONS) {
|
|
25
|
+
const target = objectOf(action?.[kind])?.[attr];
|
|
26
|
+
if (target === undefined || !isTfExpr(target) || target.$expr !== "resource-attr" || target.type !== type)
|
|
27
|
+
continue;
|
|
28
|
+
const requires = `${target.type}.${target.label}`;
|
|
29
|
+
if (seen.has(requires))
|
|
30
|
+
continue;
|
|
31
|
+
seen.add(requires);
|
|
32
|
+
ctx.requiresExtracted?.push({
|
|
33
|
+
address,
|
|
34
|
+
requires,
|
|
35
|
+
requiresOwnFile: { kind, refName: scopedLabelToBagKey(ctx.appTfLabel, target.label) },
|
|
36
|
+
prune: (root) => root,
|
|
37
|
+
pruneOwnFile: {
|
|
38
|
+
kind: "visual-flow",
|
|
39
|
+
prune: (items) => items.filter((item) => item.refName !== refName),
|
|
40
|
+
archiveRefName: refName,
|
|
41
|
+
},
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
/** Block actions that run an own-file resource of the app: the action variant, its id attribute, and the resource type. */
|
|
48
|
+
const RUN_ACTIONS = [
|
|
49
|
+
["automation", "automation_id", "elementum_automation"],
|
|
50
|
+
["agent", "agent_id", "elementum_agent"],
|
|
51
|
+
];
|
|
52
|
+
function listOf(value) {
|
|
53
|
+
return Array.isArray(value) ? value : [];
|
|
54
|
+
}
|
|
55
|
+
function objectOf(value) {
|
|
56
|
+
return typeof value === "object" && value !== null && !Array.isArray(value) && !isTfExpr(value) ? value : undefined;
|
|
57
|
+
}
|
|
9
58
|
function extract(blocks, _stream, ctx) {
|
|
10
59
|
const items = [];
|
|
11
60
|
const skipped = [];
|
|
@@ -18,7 +67,9 @@ function extract(blocks, _stream, ctx) {
|
|
|
18
67
|
const releaseIfManaged = [];
|
|
19
68
|
for (const block of blocks) {
|
|
20
69
|
try {
|
|
21
|
-
|
|
70
|
+
const flow = visualFlowFromTf(block, ownerType, ctx.appTfLabel, ctx.parentScope, ctx, stageHandles);
|
|
71
|
+
items.push(flow);
|
|
72
|
+
requireFlowAutomations(block, flow.refName, ctx);
|
|
22
73
|
}
|
|
23
74
|
catch (error) {
|
|
24
75
|
const address = `${block.type}.${block.label ?? "?"}`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { typedCoverageGap } from "../../engine/coverage-gaps.js";
|
|
2
|
-
import { dataRefLabel, optionalBoolean, optionalString, plainObject, resourceRefLabel } from "../../engine/pull/context.js";
|
|
2
|
+
import { dataRefLabel, optionalBoolean, optionalString, plainObject, reportAuthoringBlocker, resourceRefLabel } from "../../engine/pull/context.js";
|
|
3
3
|
import { bareChildResourceLabel, isTfExpr, scopedLabelToBagKey, tfLabelToTsLabel, tsLabelToTfLabel } from "../../engine/tf/index.js";
|
|
4
4
|
import { AUTOMATION_RESOURCE_TYPE } from "../automation/types.js";
|
|
5
5
|
import { decodeForeignDataField, fieldKeyFromTfRef } from "../field/from-tf.js";
|
|
@@ -42,7 +42,18 @@ function widgetFromTf(block, owner, ctx, dynamicLayoutCompanionLabels) {
|
|
|
42
42
|
ctx.diagnostics.push(`${where}.${variant}: expected an object; skipped`);
|
|
43
43
|
return undefined;
|
|
44
44
|
}
|
|
45
|
-
|
|
45
|
+
// name is required and build always sends it, so a value pull cannot read
|
|
46
|
+
// must not become "" (that would blank the live button on the next apply,
|
|
47
|
+
// edk#2509). Refuse to author it instead.
|
|
48
|
+
const nameRaw = body["name"];
|
|
49
|
+
if (typeof nameRaw !== "string") {
|
|
50
|
+
reportAuthoringBlocker(ctx, {
|
|
51
|
+
address: where,
|
|
52
|
+
description: `${where}.${variant}.name is ${nameRaw === undefined ? "missing" : `not a string (${JSON.stringify(nameRaw)})`}, so pull cannot write the widget's name and build would send "".`,
|
|
53
|
+
remedy: "Export did not write the widget's name as text. Pull again with the current EDK; if it persists, report it to the EDK maintainers.",
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
const name = typeof nameRaw === "string" ? nameRaw : "";
|
|
46
57
|
if (variant === "related_object") {
|
|
47
58
|
const target = aspectRef(body["object_id"], owner, ctx);
|
|
48
59
|
if (target === undefined)
|
|
@@ -220,7 +231,7 @@ function widgetFieldRef(value, target, owner, ctx) {
|
|
|
220
231
|
: target.namespace ?? tsLabelToTfLabel(target.key);
|
|
221
232
|
const targetScope = typeof target === "string" || target.kind === "automation" || target.kind === "field" || target.kind === "recordIdentity" || target.kind === "task" ? owner.scope : target.kind;
|
|
222
233
|
if (targetLabel !== undefined) {
|
|
223
|
-
const key = fieldKeyFromTfRef(value, targetLabel, targetScope);
|
|
234
|
+
const key = fieldKeyFromTfRef(value, targetLabel, targetScope, ctx);
|
|
224
235
|
if (key !== undefined) {
|
|
225
236
|
// HANDLE system field (`local.<target>_id_field_id`) round-trips as
|
|
226
237
|
// recordIdentity(target) — same catalog token widgets author with.
|
|
@@ -327,7 +338,7 @@ function ownerFieldRef(value, owner, ctx) {
|
|
|
327
338
|
return undefined;
|
|
328
339
|
if (typeof value === "string")
|
|
329
340
|
return fieldRefFromRawId(value, owner.ownerRefName, owner, ctx) ?? value;
|
|
330
|
-
const key = fieldKeyFromTfRef(value, owner.ownerTfLabel, owner.scope);
|
|
341
|
+
const key = fieldKeyFromTfRef(value, owner.ownerTfLabel, owner.scope, ctx);
|
|
331
342
|
return key === undefined ? undefined : { kind: "field", key, name: key, parent: owner.ownerRefName, fieldType: "TEXT" };
|
|
332
343
|
}
|
|
333
344
|
/**
|
|
@@ -416,7 +427,7 @@ function fieldRefFromRawId(id, target, owner, ctx) {
|
|
|
416
427
|
const subType = SUB_TYPE_BY_RESOURCE.get(imported.type);
|
|
417
428
|
if (subType === undefined)
|
|
418
429
|
return undefined;
|
|
419
|
-
const ownerKey = fieldKeyIfScopedTo(imported.type, imported.label, owner.ownerTfLabel, owner.scope);
|
|
430
|
+
const ownerKey = fieldKeyIfScopedTo(imported.type, imported.label, owner.ownerTfLabel, owner.scope, ctx);
|
|
420
431
|
if (ownerKey !== undefined) {
|
|
421
432
|
return {
|
|
422
433
|
kind: "field",
|
|
@@ -430,7 +441,7 @@ function fieldRefFromRawId(id, target, owner, ctx) {
|
|
|
430
441
|
const targetTfLabel = target.key === owner.ownerRefName
|
|
431
442
|
? owner.ownerTfLabel
|
|
432
443
|
: target.namespace ?? tsLabelToTfLabel(target.key);
|
|
433
|
-
const targetKey = fieldKeyIfScopedTo(imported.type, imported.label, targetTfLabel, target.kind);
|
|
444
|
+
const targetKey = fieldKeyIfScopedTo(imported.type, imported.label, targetTfLabel, target.kind, ctx);
|
|
434
445
|
if (targetKey !== undefined) {
|
|
435
446
|
return {
|
|
436
447
|
kind: "field",
|
|
@@ -444,8 +455,8 @@ function fieldRefFromRawId(id, target, owner, ctx) {
|
|
|
444
455
|
return undefined;
|
|
445
456
|
}
|
|
446
457
|
/** `fieldKeyFromTfRef` camelCases any label; only treat it as owned when the scoped prefix was actually stripped. */
|
|
447
|
-
function fieldKeyIfScopedTo(type, label, ownerTfLabel, scope) {
|
|
458
|
+
function fieldKeyIfScopedTo(type, label, ownerTfLabel, scope, ctx) {
|
|
448
459
|
if (bareChildResourceLabel(ownerTfLabel, label, scope) === label)
|
|
449
460
|
return undefined;
|
|
450
|
-
return fieldKeyFromTfRef({ $expr: "resource-attr", type, label, path: ["id"] }, ownerTfLabel, scope);
|
|
461
|
+
return fieldKeyFromTfRef({ $expr: "resource-attr", type, label, path: ["id"] }, ownerTfLabel, scope, ctx);
|
|
451
462
|
}
|
|
@@ -6,7 +6,7 @@ export type ElementumBlocksSpec = {
|
|
|
6
6
|
export type ElementumBlocks = {
|
|
7
7
|
readonly [key: string]: ElementumBlocksElement;
|
|
8
8
|
};
|
|
9
|
-
export type ElementumBlocksElement = (StackBlockElement) | (RowBlockElement) | (PanesBlockElement) | (ListControlsBlockElement) | (ListCollectionBlockElement) | (HeaderBlockElement) | (BodyBlockElement) | (BulletsBlockElement) | (DetailsListBlockElement) | (DetailsFieldsBlockElement) | (DividerBlockElement) | (SpacerBlockElement) | (CardBlockElement) | (DataTableBlockElement) | (ActionCardBlockElement) | (ChartBlockElement) | (MetricsRowBlockElement) | (PageHeaderBlockElement) | (ButtonBlockElement);
|
|
9
|
+
export type ElementumBlocksElement = (StackBlockElement) | (RowBlockElement) | (PanesBlockElement) | (ListControlsBlockElement) | (ListCollectionBlockElement) | (HeaderBlockElement) | (BodyBlockElement) | (BulletsBlockElement) | (DetailsListBlockElement) | (DetailsFieldsBlockElement) | (DividerBlockElement) | (SpacerBlockElement) | (CardBlockElement) | (DataTableBlockElement) | (ActionCardBlockElement) | (ChartBlockElement) | (MetricsRowBlockElement) | (PageHeaderBlockElement) | (ButtonBlockElement) | (ImageBlockElement) | (TabsBlockElement);
|
|
10
10
|
/**
|
|
11
11
|
* Customer-facing name: Stack
|
|
12
12
|
* Customer-facing description: Stacks blocks from top to bottom with even spacing. Valid as the page root for simple portal or report layouts, and as a vertical section under Panes for process and list-to-record views.
|
|
@@ -102,7 +102,7 @@ export type PanesBlockProps = {
|
|
|
102
102
|
/**
|
|
103
103
|
* Customer-facing name: List controls
|
|
104
104
|
* Customer-facing description: Search, filters, grouping, and sort controls that sit above a list.
|
|
105
|
-
* Internal authoring guidance: Toolbar of search, quick filters, filter popover, group-by, and sort. Prefer a `kind: "filters"` list. `kind: "statusGroups"` is legacyStatusGroups: Open/Closed only, with no All chip. If a spec already has legacyStatusGroups or filterPreset and the user is changing filters, rewrite them into one `kind: "filters"` list. Put a preset filter on the chips that should include it. Do not leave filterPreset beside that list. Bind quickFilterValue to $bindState: "/query/statusGroup". Bind filterJson to $bindState: "/query/filter". When a view has more than one App, bind every App to /query/filter/<aspectId> and /query/statusGroup/<aspectId>. A view with one App keeps the shared paths. filterJson is the menu filter the list uses, besides the managed filter. A kind: "filters" chip writes its filter there. legacyStatusGroups writes the preset and Open/Closed there together. A preset alone fills the menu when there is no chip list. The All chip and a cleared filter menu do not return to this preset. The block applies the managed filter at query time and does not store it in filterJson. This block writes that JSON; self-fetching siblings on the same App bound to the same path refetch from it. Looks like list chrome above a collection, not the results themselves. `field` is the aspect field id, not the display name. A picklist value is { "type": "TEXT", "value": "<id>" }. Do not use `UUID` for that id. A dynamic id is the related record id `aspectId:handle`, still `TEXT`. `AspectPicklistField` uses `EQUALS`. `AspectMultiPicklistField` uses `CONTAINS` with one `TEXT` value. Open/Closed chips are statusGroup with filter omitted: { id, label, statusGroup: "open" | "closed" }. The toolbar builds that clause from the STATUS field and every CLOSED picklist tag and writes it into filterJson. Open is status not in those values. Closed is status in those values. Do not author that tree, do not use the STAGE field, and do not use the words "open" or "closed" as values. A specific status such as Pending is a normal chip filter: STATUS field id, value id from findPicklistValue, EQUALS, TEXT value. All is filter null and no statusGroup, only when the admin asks. Mix All, statusGroup chips, and named chips in one `kind: "filters"` list. A chip that already has `filter` uses that tree. Put the admin default on sortPreset as a Sort document with aspect field ids in orders[].field. orders may contain more than one key: the first key orders records, each later key orders ties, and direction is set per key. Put the same sortPreset on ListControlsBlock and on the ListCollectionBlock or DataTableBlock that owns the default. Bind sortJson to $bindState: "/query/sort" on both. When a view has more than one App, bind each App’s ListControlsBlock and ListCollectionBlock or DataTableBlock to /query/sort/<aspectId>, matching the filter and quick-filter paths. ListControls writes the live sort and /query/sortAspectId from filterAspectId. Keep sort out of filterJson. The menu offers system fields by semantic tag, then custom text, number, decimal, date, datetime, checkbox, single picklist, user, and group fields; it omits multi-picklist, attachment, and JSON fields. Restore copies sortPreset back into sortJson during the visit.
|
|
105
|
+
* Internal authoring guidance: Toolbar of search, quick filters, filter popover, group-by, and sort. Prefer a `kind: "filters"` list. `kind: "statusGroups"` is legacyStatusGroups: Open/Closed only, with no All chip. If a spec already has legacyStatusGroups or filterPreset and the user is changing filters, rewrite them into one `kind: "filters"` list. Put a preset filter on the chips that should include it. Do not leave filterPreset beside that list. Bind quickFilterValue to $bindState: "/query/statusGroup". Bind filterJson to $bindState: "/query/filter". When a view has more than one App, bind every App to /query/filter/<aspectId> and /query/statusGroup/<aspectId>. A view with one App keeps the shared paths. Exception: independent ListControls/list pairs on the same App, including in a multi-App view, use /query/filter/{blockKey} and /query/statusGroup/{blockKey}. For independent same-aspect ListControls/list pairs, give each control a stable element key and bind the control and its paired list to /query/filter/{blockKey} and /query/statusGroup/{blockKey}; each pair may define different quickFilters chips. Shared and aspect-scoped paths remain first-class for one shared pair or different Apps. filterJson is the menu filter the list uses, besides the managed filter. A kind: "filters" chip writes its filter there. legacyStatusGroups writes the preset and Open/Closed there together. A preset alone fills the menu when there is no chip list. The All chip and a cleared filter menu do not return to this preset. The block applies the managed filter at query time and does not store it in filterJson. This block writes that JSON; self-fetching siblings on the same App bound to the same path refetch from it. Looks like list chrome above a collection, not the results themselves. `field` is the aspect field id, not the display name. A picklist value is { "type": "TEXT", "value": "<id>" }. Do not use `UUID` for that id. A dynamic id is the related record id `aspectId:handle`, still `TEXT`. `AspectPicklistField` uses `EQUALS`. `AspectMultiPicklistField` uses `CONTAINS` with one `TEXT` value. Open/Closed chips are statusGroup with filter omitted: { id, label, statusGroup: "open" | "closed" }. The toolbar builds that clause from the STATUS field and every CLOSED picklist tag and writes it into filterJson. Open is status not in those values. Closed is status in those values. Do not author that tree, do not use the STAGE field, and do not use the words "open" or "closed" as values. A specific status such as Pending is a normal chip filter: STATUS field id, value id from findPicklistValue, EQUALS, TEXT value. All is filter null and no statusGroup, only when the admin asks. Mix All, statusGroup chips, and named chips in one `kind: "filters"` list. A chip that already has `filter` uses that tree. Put the admin default on sortPreset as a Sort document with aspect field ids in orders[].field. orders may contain more than one key: the first key orders records, each later key orders ties, and direction is set per key. Put the same sortPreset on ListControlsBlock and on the ListCollectionBlock or DataTableBlock that owns the default. Bind sortJson to $bindState: "/query/sort" on both. When a view has more than one App, bind each App’s ListControlsBlock and ListCollectionBlock or DataTableBlock to /query/sort/<aspectId>, matching the filter and quick-filter paths. ListControls writes the live sort and /query/sortAspectId from filterAspectId. Keep sort out of filterJson. The menu offers system fields by semantic tag, then custom text, number, decimal, date, datetime, checkbox, single picklist, user, and group fields; it omits multi-picklist, attachment, and JSON fields. Restore copies sortPreset back into sortJson during the visit.
|
|
106
106
|
*/
|
|
107
107
|
export type ListControlsBlockElement = {
|
|
108
108
|
readonly type: "ListControlsBlock";
|
|
@@ -167,7 +167,7 @@ export type ListControlsOption = {
|
|
|
167
167
|
/**
|
|
168
168
|
* Customer-facing name: Record list
|
|
169
169
|
* Customer-facing description: A compact stacked list of records with titles and status pills. Use it for queues and pickers.
|
|
170
|
-
* Internal authoring guidance: Dual presentational/self-fetching selectable stacked list with title, identifier, pills, and optional collapsible groups. Place every ListCollectionBlock under a root PanesBlock so clicks can support secondary/detail panes. Use items for authored content, or aspectId/search/filter props for live records; self-fetching falls back to the runtime default aspect. Optional density: "compact" | "standard" | "comfortable" (List View names); omit to keep today’s spacing. Live lists show a matching record count in the collection footer. Set showExport: true to show Export in the top-right of the collection; omit or false keeps Export hidden. Optional fields is an ordered string[] of real aspect field ids shown as labeled attribute chips beside each title (user/group avatars, picklist color, locale dates, number/currency). Omit fields to keep today’s fixed system pills; when fields is set, do not also expect those pills. Never invent field UUIDs; resolve ids from Owning App fields when the admin asks in plain language (for example "show Team and Priority on each row"). To share a ListControls filter, bind filterJson and
|
|
170
|
+
* Internal authoring guidance: Dual presentational/self-fetching selectable stacked list with title, identifier, pills, and optional collapsible groups. Place every ListCollectionBlock under a root PanesBlock so clicks can support secondary/detail panes. Use items for authored content, or aspectId/search/filter props for live records; self-fetching falls back to the runtime default aspect. Optional density: "compact" | "standard" | "comfortable" (List View names); omit to keep today’s spacing. Live lists show a matching record count in the collection footer. Set showExport: true to show Export in the top-right of the collection; omit or false keeps Export hidden. Optional fields is an ordered string[] of real aspect field ids shown as labeled attribute chips beside each title (user/group avatars, picklist color, locale dates, number/currency). Omit fields to keep today’s fixed system pills; when fields is set, do not also expect those pills. Never invent field UUIDs; resolve ids from Owning App fields when the admin asks in plain language (for example "show Team and Priority on each row"). To share a ListControls filter, bind this list’s filterJson and quickFilterValue to the exact same paths as the control: use /query/filter and /query/statusGroup for one shared pair, or /query/filter/{blockKey} and /query/statusGroup/{blockKey} for an independent same-aspect pair. Each block-keyed pair can define its own quickFilters chips. For a view with more than one App, use /query/filter/<aspectId> and /query/statusGroup/<aspectId> for every block serving that App. Exception: independent ListControls/list pairs on the same App, including in a multi-App view, use /query/filter/{blockKey} and /query/statusGroup/{blockKey}. Shared and aspect-scoped paths remain first-class. Use filterPreset only for a no-chip seed or an independent list filter. Looks like a ticket queue, not a spreadsheet. Prefer DataTableBlock for dense columns.
|
|
171
171
|
*/
|
|
172
172
|
export type ListCollectionBlockElement = {
|
|
173
173
|
readonly type: "ListCollectionBlock";
|
|
@@ -420,7 +420,7 @@ export type CardBlockProps = {
|
|
|
420
420
|
/**
|
|
421
421
|
* Customer-facing name: Data table
|
|
422
422
|
* Customer-facing description: A spreadsheet-style table with typed columns for structured rows.
|
|
423
|
-
* Internal authoring guidance: Dual presentational/self-fetching data table with typed columns, row selection, optional nested children, and loading/empty/error states. Use rows or object columns for authored data, or aspectId with record columns for live records; self-fetching falls back to the runtime default aspect. Optional density: "compact" | "standard" | "comfortable" (List View names); omit to keep today’s spacing. Self-fetching columns are registered system keys (handle, title, status, priority, assignee, assignmentGroup, createdBy, createdTime, updatedAt, stage) and/or real aspect field ids - never invent field UUIDs - as strings, or { key, width?, minWidth?, maxWidth? } for admin default widths (key is the same system key or field id). Prefer semantic system keys when they exist. Optional columnHeaders maps the same column string to a display label; omit to use i18n/system headers or the field name from aspect metadata. Object columns with header/type/align select the presentational branch. Live tables show a matching record count in the collection footer; CMV users may resize columns (browser-local, not written back to Spec). Set showExport: true to show Export in the top-right of the collection; omit or false keeps Export hidden. Presentational rows may set href (absolute https:// opens a new tab, "/path" navigates inside Elementum) so the primary title cell renders as a link; same rules as ActionCardBlock. Per-cell links use a cell-hint object with href. To share a ListControls filter, bind filterJson and
|
|
423
|
+
* Internal authoring guidance: Dual presentational/self-fetching data table with typed columns, row selection, optional nested children, and loading/empty/error states. Use rows or object columns for authored data, or aspectId with record columns for live records; self-fetching falls back to the runtime default aspect. Optional density: "compact" | "standard" | "comfortable" (List View names); omit to keep today’s spacing. Self-fetching columns are registered system keys (handle, title, status, priority, assignee, assignmentGroup, createdBy, createdTime, updatedAt, stage) and/or real aspect field ids - never invent field UUIDs - as strings, or { key, width?, minWidth?, maxWidth? } for admin default widths (key is the same system key or field id). Prefer semantic system keys when they exist. Optional columnHeaders maps the same column string to a display label; omit to use i18n/system headers or the field name from aspect metadata. Object columns with header/type/align select the presentational branch. Live tables show a matching record count in the collection footer; CMV users may resize columns (browser-local, not written back to Spec). Set showExport: true to show Export in the top-right of the collection; omit or false keeps Export hidden. Presentational rows may set href (absolute https:// opens a new tab, "/path" navigates inside Elementum) so the primary title cell renders as a link; same rules as ActionCardBlock. Per-cell links use a cell-hint object with href. To share a ListControls filter, bind this table’s filterJson and quickFilterValue to the exact same paths as the control: use /query/filter and /query/statusGroup for one shared pair, or /query/filter/{blockKey} and /query/statusGroup/{blockKey} for an independent same-aspect pair. Each block-keyed pair can define its own quickFilters chips. For a view with more than one App, use /query/filter/<aspectId> and /query/statusGroup/<aspectId> for every block serving that App. Shared and aspect-scoped paths remain first-class. Use filterPreset only for a no-chip seed or an independent table filter. Looks like a spreadsheet-style grid; wrap in CardBlock with padding "none". Prefer ListCollectionBlock for compact record queues.
|
|
424
424
|
*/
|
|
425
425
|
export type DataTableBlockElement = {
|
|
426
426
|
readonly type: "DataTableBlock";
|
|
@@ -975,3 +975,48 @@ export type ButtonBlockStaticItem = {
|
|
|
975
975
|
*/
|
|
976
976
|
readonly viewId?: string;
|
|
977
977
|
};
|
|
978
|
+
/**
|
|
979
|
+
* Customer-facing name: Image
|
|
980
|
+
* Customer-facing description: Displays an image from a URL.
|
|
981
|
+
* Internal authoring guidance: Use ImageBlock for a static image URL. Provide alt for meaningful images; omit alt for decorative images. Named organization asset keys such as organizationBanner are not resolved yet.
|
|
982
|
+
*/
|
|
983
|
+
export type ImageBlockElement = {
|
|
984
|
+
readonly type: "ImageBlock";
|
|
985
|
+
readonly props: ImageBlockProps;
|
|
986
|
+
readonly children?: ReadonlyArray<string>;
|
|
987
|
+
readonly visible?: VisibilityCondition;
|
|
988
|
+
readonly repeat?: RepeatConfig;
|
|
989
|
+
readonly on?: ElementOn;
|
|
990
|
+
readonly watch?: ElementWatch;
|
|
991
|
+
readonly validation?: ElementValidation;
|
|
992
|
+
};
|
|
993
|
+
export type ImageBlockProps = {
|
|
994
|
+
readonly image: (string) | (PropExpression);
|
|
995
|
+
readonly alt?: (string) | (PropExpression);
|
|
996
|
+
};
|
|
997
|
+
/**
|
|
998
|
+
* Customer-facing name: Tabs
|
|
999
|
+
* Customer-facing description: Switches between sections, showing one at a time.
|
|
1000
|
+
* Internal authoring guidance: Use TabsBlock when the admin asks to split the view into tabs or sections. Use one child per tab, in the same order as tabs. Use a StackBlock child when a tab holds more than one block. Omit defaultIndex to open on the first tab. Do not nest TabsBlock.
|
|
1001
|
+
*/
|
|
1002
|
+
export type TabsBlockElement = {
|
|
1003
|
+
readonly type: "TabsBlock";
|
|
1004
|
+
readonly props: TabsBlockProps;
|
|
1005
|
+
readonly children?: ReadonlyArray<string>;
|
|
1006
|
+
readonly visible?: VisibilityCondition;
|
|
1007
|
+
readonly repeat?: RepeatConfig;
|
|
1008
|
+
readonly on?: ElementOn;
|
|
1009
|
+
readonly watch?: ElementWatch;
|
|
1010
|
+
readonly validation?: ElementValidation;
|
|
1011
|
+
};
|
|
1012
|
+
export type TabsBlockProps = {
|
|
1013
|
+
readonly tabs: (ReadonlyArray<TabsBlockTab>) | (PropExpression);
|
|
1014
|
+
readonly defaultIndex?: (number) | (PropExpression);
|
|
1015
|
+
};
|
|
1016
|
+
export type TabsBlockTab = {
|
|
1017
|
+
readonly label: string;
|
|
1018
|
+
/**
|
|
1019
|
+
* Lucide icon name, e.g. inbox.
|
|
1020
|
+
*/
|
|
1021
|
+
readonly icon?: string;
|
|
1022
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Generated by `npm run generate:ragnarok` — do not edit. Refresh with `npm run refresh:ragnarok`.
|
|
2
|
-
// Source: urn:elementum:elementum-blocks:spec:v1 version 1.
|
|
3
|
-
// Schema sha256:
|
|
2
|
+
// Source: urn:elementum:elementum-blocks:spec:v1 version 1.45.0
|
|
3
|
+
// Schema sha256: 91b420eaae8a05c4f85c273d2651067786d3e3de650b71cc1520b3ca1a1818e0
|
|
4
4
|
// Generator revision: 2
|
|
5
5
|
export {};
|
|
@@ -88,6 +88,10 @@ export declare const BUILD_VS_EXPORT_RECORD_FIELD_OUTPUT_KEYS: {
|
|
|
88
88
|
readonly nameAttribute: string;
|
|
89
89
|
readonly ownerAttribute: string;
|
|
90
90
|
}[];
|
|
91
|
+
export declare const BUILD_VS_EXPORT_MAP_KEY_ALIASES: {
|
|
92
|
+
readonly attribute: string;
|
|
93
|
+
readonly canonicalKey: (key: string) => string | undefined;
|
|
94
|
+
}[];
|
|
91
95
|
export declare const BUILD_VS_EXPORT_ATTRIBUTE_LOCALS: {
|
|
92
96
|
readonly resourceType: string;
|
|
93
97
|
readonly attribute: string;
|
|
@@ -167,6 +171,11 @@ export declare const UNREADABLE_ATTRIBUTES_BY_RESOURCE_TYPE: ReadonlyMap<string,
|
|
|
167
171
|
*/
|
|
168
172
|
export declare const STATE_SCOPED_MAP_ATTRIBUTES_BY_RESOURCE_TYPE: ReadonlyMap<string, readonly string[]>;
|
|
169
173
|
export declare const STATE_SCOPED_PLATFORM_ENTRIES_BY_RESOURCE_TYPE: ReadonlyMap<string, readonly StateScopedPlatformEntry[]>;
|
|
174
|
+
/**
|
|
175
|
+
* Resource type → option-list attributes where the provider keeps an inactive
|
|
176
|
+
* option only when state holds it, as each sub-type row declares them.
|
|
177
|
+
*/
|
|
178
|
+
export declare const STATE_SCOPED_INACTIVE_OPTIONS_BY_RESOURCE_TYPE: ReadonlyMap<string, readonly string[]>;
|
|
170
179
|
/** Resource type → the kind's own re-pull alignment, as each single-resource kind declares it. */
|
|
171
180
|
export declare const STATE_ALIGNMENTS_BY_RESOURCE_TYPE: ReadonlyMap<string, StateAlignment>;
|
|
172
181
|
/** Every kind's `--portable` leave-out rules (edk#1894). */
|
|
@@ -63,6 +63,7 @@ export const BUILD_VS_EXPORT_COMPUTED_MAP_ATTRIBUTES = KIND_MODULES.flatMap((mod
|
|
|
63
63
|
export const BUILD_VS_EXPORT_NESTED_OMITTED_DEFAULTS = KIND_MODULES.flatMap((module) => (module.roundtrip?.nestedOmittedDefaults ?? []).flatMap((declared) => implementedResourceTypes(module.resource).map((blockType) => ({ blockType, ...declared }))));
|
|
64
64
|
export const BUILD_VS_EXPORT_COMPUTED_REFERENCE_MAPS = KIND_MODULES.flatMap((module) => module.roundtrip?.computedReferenceMaps ?? []);
|
|
65
65
|
export const BUILD_VS_EXPORT_RECORD_FIELD_OUTPUT_KEYS = KIND_MODULES.flatMap((module) => module.roundtrip?.recordFieldOutputKeys ?? []);
|
|
66
|
+
export const BUILD_VS_EXPORT_MAP_KEY_ALIASES = KIND_MODULES.flatMap((module) => module.roundtrip?.mapKeyAliases ?? []);
|
|
66
67
|
export const BUILD_VS_EXPORT_ATTRIBUTE_LOCALS = KIND_MODULES.flatMap((module) => module.roundtrip?.exportedAttributeLocals ?? []);
|
|
67
68
|
export const BUILD_VS_EXPORT_PICKLIST_LABEL_ASSIGNMENTS = KIND_MODULES.flatMap((module) => module.roundtrip?.picklistLabelAssignments ?? []);
|
|
68
69
|
export const BUILD_VS_EXPORT_STATE_EVALUATED_MAPS = KIND_MODULES.flatMap((module) => module.roundtrip?.stateEvaluatedMaps ?? []);
|
|
@@ -142,6 +143,13 @@ export const STATE_SCOPED_MAP_ATTRIBUTES_BY_RESOURCE_TYPE = new Map(KIND_MODULES
|
|
|
142
143
|
export const STATE_SCOPED_PLATFORM_ENTRIES_BY_RESOURCE_TYPE = new Map(KIND_MODULES.flatMap((m) => m.resource.shape === "single" && m.resource.stateScopedPlatformEntries !== undefined
|
|
143
144
|
? [[m.resource.resourceType, m.resource.stateScopedPlatformEntries]]
|
|
144
145
|
: []));
|
|
146
|
+
/**
|
|
147
|
+
* Resource type → option-list attributes where the provider keeps an inactive
|
|
148
|
+
* option only when state holds it, as each sub-type row declares them.
|
|
149
|
+
*/
|
|
150
|
+
export const STATE_SCOPED_INACTIVE_OPTIONS_BY_RESOURCE_TYPE = new Map(KIND_MODULES.flatMap((m) => m.resource.shape === "subTypes"
|
|
151
|
+
? m.resource.rows.flatMap((row) => (row.stateScopedInactiveOptions === undefined ? [] : [[row.resourceType, row.stateScopedInactiveOptions]]))
|
|
152
|
+
: []));
|
|
145
153
|
/** Resource type → the kind's own re-pull alignment, as each single-resource kind declares it. */
|
|
146
154
|
export const STATE_ALIGNMENTS_BY_RESOURCE_TYPE = new Map(KIND_MODULES.flatMap((m) => m.resource.shape === "single" && m.resource.alignWithState !== undefined
|
|
147
155
|
? [[m.resource.resourceType, m.resource.alignWithState]]
|
|
@@ -2,9 +2,11 @@
|
|
|
2
2
|
* KIND_MODULES assembly — the only place that imports concrete entity
|
|
3
3
|
* modules. Engine code imports derived views from {@link ./index.js}.
|
|
4
4
|
*/
|
|
5
|
+
import { renderVoiceAuthAdoptionResource } from "../entities/organization/to-tf.js";
|
|
5
6
|
import { accessPolicyModule } from "../entities/access-policy/module.js";
|
|
6
7
|
import { agentModule } from "../entities/agent/module.js";
|
|
7
8
|
import { agentEvaluationModule } from "../entities/agent-evaluation/module.js";
|
|
9
|
+
import { slaModule } from "../entities/sla/module.js";
|
|
8
10
|
import { agentA2ASkillModule } from "../entities/agent-a2a-skill/module.js";
|
|
9
11
|
import { agentToolModule } from "../entities/agent-tool/module.js";
|
|
10
12
|
import { appModule } from "../entities/app/module.js";
|
|
@@ -15,12 +17,13 @@ import { elementModule } from "../entities/element/module.js";
|
|
|
15
17
|
import { dynamicLayoutModule } from "../entities/dynamic-layout/module.js";
|
|
16
18
|
import { dashboardModule } from "../entities/dashboard/module.js";
|
|
17
19
|
import { dashboardWidgetModule } from "../entities/dashboard-widget/module.js";
|
|
20
|
+
import { dashboardWidgetOrderModule } from "../entities/dashboard-widget-order/module.js";
|
|
18
21
|
import { datamineModule } from "../entities/datamine/module.js";
|
|
19
22
|
import { dataLookupModules } from "../entities/data-lookup/module.js";
|
|
20
23
|
import { fieldModule, managedFieldOrderModule } from "../entities/field/module.js";
|
|
21
24
|
import { fileReaderModule } from "../entities/file-reader/module.js";
|
|
22
25
|
import { visualFlowModule } from "../entities/visual-flow/module.js";
|
|
23
|
-
import { aiProviderModules, categoryModule, cloudLinkModule, connectorModule, emailAliasModule, groupModule, phoneProviderModule, roleModule, userModule, } from "../entities/org/index.js";
|
|
26
|
+
import { aiProviderModules, categoryModule, cloudLinkModule, connectorModule, emailAliasModule, groupModule, phoneProviderModule, voiceAuthModule, roleModule, userModule, } from "../entities/org/index.js";
|
|
24
27
|
import { searchTableModule } from "../entities/search-table/module.js";
|
|
25
28
|
import { recordCreateFormModule } from "../entities/record-create-form/module.js";
|
|
26
29
|
import { relationshipModule } from "../entities/relationship/module.js";
|
|
@@ -43,6 +46,7 @@ export const KIND_MODULES = [
|
|
|
43
46
|
accessPolicyModule,
|
|
44
47
|
agentModule,
|
|
45
48
|
agentEvaluationModule,
|
|
49
|
+
slaModule,
|
|
46
50
|
agentToolModule,
|
|
47
51
|
agentA2ASkillModule,
|
|
48
52
|
automationModule,
|
|
@@ -57,6 +61,7 @@ export const KIND_MODULES = [
|
|
|
57
61
|
dynamicLayoutModule,
|
|
58
62
|
dashboardModule,
|
|
59
63
|
dashboardWidgetModule,
|
|
64
|
+
dashboardWidgetOrderModule,
|
|
60
65
|
datamineModule,
|
|
61
66
|
...dataLookupModules,
|
|
62
67
|
widgetModule,
|
|
@@ -75,6 +80,13 @@ export const KIND_MODULES = [
|
|
|
75
80
|
...aiProviderModules,
|
|
76
81
|
groupModule,
|
|
77
82
|
phoneProviderModule,
|
|
83
|
+
{
|
|
84
|
+
...voiceAuthModule,
|
|
85
|
+
managedOrganization: {
|
|
86
|
+
listArgs: ["voice-auth", "list", "--all"],
|
|
87
|
+
renderResource: renderVoiceAuthAdoptionResource,
|
|
88
|
+
},
|
|
89
|
+
},
|
|
78
90
|
phoneServiceModule,
|
|
79
91
|
roleModule,
|
|
80
92
|
userModule,
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Concrete resource types the engine's entity-agnostic passes need by name
|
|
3
|
+
* (scoped plans, the automation revision guard). Engine must not import
|
|
4
|
+
* entities/ or spell `elementum_*` itself, so they are wired here.
|
|
5
|
+
*/
|
|
6
|
+
/** Definition resource of each scope-owner kind. */
|
|
7
|
+
export declare const SCOPE_OWNER_RESOURCE_TYPES: {
|
|
8
|
+
readonly app: "elementum_app";
|
|
9
|
+
readonly element: "elementum_element";
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* App, element and field resources: a scoped plan reads other owners'
|
|
13
|
+
* definitions through these, so they are not reported as dependencies
|
|
14
|
+
* outside the scope.
|
|
15
|
+
*/
|
|
16
|
+
export declare const SCOPE_DEFINITION_RESOURCE_TYPES: ReadonlySet<string>;
|
|
17
|
+
/** Resource types an element labels `<ns>_<name>` instead of its doubled child prefix. */
|
|
18
|
+
export declare const SCOPE_ELEMENT_SHORT_LABEL_TYPES: ReadonlySet<string>;
|
|
19
|
+
/**
|
|
20
|
+
* Canonical suffixes for short element labels whose child name is fixed by
|
|
21
|
+
* the resource type. Matching the suffix keeps an owner's namespace from
|
|
22
|
+
* being mistaken for a longer element namespace.
|
|
23
|
+
*/
|
|
24
|
+
export declare const SCOPE_ELEMENT_CANONICAL_CHILD_SUFFIXES: ReadonlyMap<string, RegExp>;
|
|
25
|
+
/** State addresses of element owners never targeted as removed-from-source orphans. */
|
|
26
|
+
export declare const SCOPE_ORPHANS_LEFT_IN_PLACE: ReadonlySet<string>;
|
|
27
|
+
/** Resource types whose existing state is never reconciled by a scoped plan. */
|
|
28
|
+
export declare const SCOPE_NOT_RECONCILED: ReadonlySet<string>;
|
|
29
|
+
/**
|
|
30
|
+
* Resource types whose destroy deletes the platform object by id (the
|
|
31
|
+
* provider's `deleteManagedField`), so two state addresses must never share
|
|
32
|
+
* one of their ids (#1851).
|
|
33
|
+
*/
|
|
34
|
+
export declare const EXCLUSIVE_PLATFORM_ID_RESOURCE_TYPES: ReadonlySet<string>;
|
|
35
|
+
/** Data source an automation file uses to look up a sibling automation. */
|
|
36
|
+
export declare const AUTOMATION_LOOKUP_DATA_TYPE = "elementum_automation";
|
|
37
|
+
/**
|
|
38
|
+
* Trigger types whose `refs` are null by design, not by the platform's
|
|
39
|
+
* eventual-consistency gap: the schedule row of `TRIGGER_SUB_TYPES`. A
|
|
40
|
+
* schedule trigger publishes no trigger references (`ScheduleTriggerOutput`
|
|
41
|
+
* is `Record<string, never>` in `entities/automation/triggers.ts`), so the
|
|
42
|
+
* provider's `populateTriggerRefs` gets an empty list back and stores
|
|
43
|
+
* `refs = null` (`trigger_common.go`). Nothing in generated HCL can index
|
|
44
|
+
* those refs, so the null-refs trigger check skips them (edk#1864). Every other
|
|
45
|
+
* trigger kind has outputs that tasks index, so its null refs are still reported.
|
|
46
|
+
*/
|
|
47
|
+
export declare const TRIGGER_TYPES_WITHOUT_REFS: ReadonlySet<string>;
|