@elementumai/edk 0.8.2-alpha.6 → 0.9.5
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 +49 -37
- package/dist-sdk/elementum-entity-client/clients/agents/models/agent-tool.d.ts +3 -3
- package/dist-sdk/elementum-entity-client/clients/aspects/models/index.d.ts +1 -1
- package/dist-sdk/elementum-entity-client/clients/aspects/models/picklist-config.d.ts +3 -11
- package/dist-sdk/elementum-entity-client/clients/automation/models/automation.d.ts +3 -11
- package/dist-sdk/elementum-entity-client/clients/skills/models/skill-tool.d.ts +1 -1
- package/dist-sdk/elementum-entity-client/clients/skills/models/skill.d.ts +1 -1
- package/dist-sdk/elementum-entity-client/clients/skills/models/skill.js +1 -1
- package/dist-sdk/fs/entity.d.ts +2 -2
- package/dist-sdk/fs/entity.js +1 -1
- package/dist-sdk/pull/missing-report.d.ts +81 -0
- package/dist-sdk/pull/missing-report.js +52 -0
- package/dist-sdk/pull/util.d.ts +1 -1
- package/dist-sdk/pull/util.js +3 -3
- package/dist-sdk/src/catalog/factories.d.ts +96 -23
- package/dist-sdk/src/catalog/factories.js +141 -21
- package/dist-sdk/src/catalog/from-authoring.d.ts +5 -5
- package/dist-sdk/src/catalog/from-authoring.js +20 -10
- 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 +63 -4
- package/dist-sdk/src/catalog/render-helpers.d.ts +1 -1
- package/dist-sdk/src/catalog/render-helpers.js +1 -1
- package/dist-sdk/src/catalog/render.d.ts +1 -0
- package/dist-sdk/src/catalog/render.js +8 -2
- package/dist-sdk/src/catalog/token.js +18 -4
- package/dist-sdk/src/catalog/types.d.ts +64 -24
- package/dist-sdk/src/catalog/types.js +12 -4
- package/dist-sdk/src/core/app-to-ui.d.ts +6 -6
- package/dist-sdk/src/core/app-to-ui.js +7 -9
- package/dist-sdk/src/core/index.d.ts +11 -10
- package/dist-sdk/src/core/index.js +10 -9
- package/dist-sdk/src/core/platform-id.d.ts +11 -0
- package/dist-sdk/src/core/platform-id.js +8 -0
- package/dist-sdk/src/{entities/flow/activities/render-catalog.d.ts → core/render-tree.d.ts} +3 -3
- package/dist-sdk/src/{entities/flow/activities/render-catalog.js → core/render-tree.js} +7 -10
- package/dist-sdk/src/core/types/ai-provider.d.ts +1 -1
- package/dist-sdk/src/core/types/ai-provider.js +1 -1
- package/dist-sdk/src/core/types/app.d.ts +78 -52
- package/dist-sdk/src/core/types/app.js +2 -3
- package/dist-sdk/src/core/types/aspect-category.d.ts +4 -4
- package/dist-sdk/src/core/types/aspect-category.js +4 -4
- package/dist-sdk/src/core/types/cloud-link.d.ts +3 -3
- package/dist-sdk/src/core/types/cloud-link.js +3 -3
- package/dist-sdk/src/core/types/display-block.d.ts +2 -2
- package/dist-sdk/src/core/types/display-block.js +2 -2
- package/dist-sdk/src/core/types/group.d.ts +1 -1
- package/dist-sdk/src/core/types/group.js +1 -1
- package/dist-sdk/src/core/types/user.d.ts +1 -1
- package/dist-sdk/src/core/types/user.js +1 -1
- package/dist-sdk/src/core/wire/ref-serializer.js +3 -3
- package/dist-sdk/src/engine/build/context.d.ts +23 -16
- package/dist-sdk/src/engine/entity.d.ts +1 -1
- package/dist-sdk/src/engine/pull/attrs.d.ts +4 -0
- package/dist-sdk/src/engine/pull/attrs.js +17 -0
- package/dist-sdk/src/engine/pull/context.d.ts +73 -0
- package/dist-sdk/src/engine/pull/context.js +14 -0
- package/dist-sdk/src/engine/pull/org.d.ts +10 -0
- package/dist-sdk/src/engine/pull/org.js +35 -0
- package/dist-sdk/src/engine/pull/ref-only.d.ts +37 -0
- package/dist-sdk/src/engine/pull/ref-only.js +204 -0
- package/dist-sdk/src/engine/tf/expr.d.ts +7 -3
- package/dist-sdk/src/engine/tf/expr.js +27 -15
- package/dist-sdk/src/engine/tf/index.d.ts +1 -1
- package/dist-sdk/src/engine/tf/index.js +1 -1
- package/dist-sdk/src/engine/tf/model.d.ts +8 -1
- package/dist-sdk/src/engine/tf/model.js +4 -0
- package/dist-sdk/src/engine/tf/parse.js +13 -2
- package/dist-sdk/src/engine/tf/render.js +4 -0
- package/dist-sdk/src/engine/workspace/authoring-layout.js +4 -2
- package/dist-sdk/src/entities/access-policy/build.d.ts +6 -16
- package/dist-sdk/src/entities/access-policy/build.js +2 -2
- package/dist-sdk/src/entities/access-policy/from-tf.d.ts +14 -40
- package/dist-sdk/src/entities/access-policy/from-tf.js +26 -85
- package/dist-sdk/src/entities/access-policy/principal.d.ts +39 -0
- package/dist-sdk/src/entities/access-policy/principal.js +13 -0
- package/dist-sdk/src/entities/access-policy/to-tf.d.ts +33 -6
- package/dist-sdk/src/entities/access-policy/to-tf.js +62 -60
- package/dist-sdk/src/entities/agent/build.d.ts +42 -11
- package/dist-sdk/src/entities/agent/build.js +40 -19
- package/dist-sdk/src/entities/agent/deserializer/print-agent-v2.d.ts +11 -1
- package/dist-sdk/src/entities/agent/deserializer/print-agent-v2.js +180 -45
- package/dist-sdk/src/entities/agent/from-tf.d.ts +3 -1
- package/dist-sdk/src/entities/agent/from-tf.js +17 -12
- package/dist-sdk/src/entities/agent/index.d.ts +5 -2
- package/dist-sdk/src/entities/agent/index.js +4 -2
- package/dist-sdk/src/entities/agent/module.js +7 -2
- package/dist-sdk/src/entities/agent/run-as.d.ts +16 -0
- package/dist-sdk/src/entities/agent/run-as.js +1 -0
- package/dist-sdk/src/entities/agent/to-tf.d.ts +6 -2
- package/dist-sdk/src/entities/agent/to-tf.js +58 -9
- package/dist-sdk/src/entities/agent/tools.d.ts +97 -70
- package/dist-sdk/src/entities/agent/tools.js +63 -43
- package/dist-sdk/src/entities/agent-a2a-skill/from-tf.js +1 -1
- package/dist-sdk/src/entities/agent-a2a-skill/to-tf.js +4 -4
- package/dist-sdk/src/entities/agent-evaluation/build.d.ts +19 -0
- package/dist-sdk/src/entities/agent-evaluation/build.js +41 -0
- package/dist-sdk/src/entities/agent-evaluation/deserializer/print-agent-evaluation.d.ts +4 -0
- package/dist-sdk/src/entities/agent-evaluation/deserializer/print-agent-evaluation.js +30 -0
- package/dist-sdk/src/entities/agent-evaluation/from-tf.d.ts +12 -0
- package/dist-sdk/src/entities/agent-evaluation/from-tf.js +46 -0
- package/dist-sdk/src/entities/agent-evaluation/index.d.ts +1 -0
- package/dist-sdk/src/entities/agent-evaluation/index.js +1 -0
- package/dist-sdk/src/entities/agent-evaluation/module.d.ts +3 -0
- package/dist-sdk/src/entities/agent-evaluation/module.js +58 -0
- package/dist-sdk/src/entities/agent-evaluation/to-tf.d.ts +12 -0
- package/dist-sdk/src/entities/agent-evaluation/to-tf.js +35 -0
- package/dist-sdk/src/entities/agent-tool/from-tf.d.ts +25 -15
- package/dist-sdk/src/entities/agent-tool/from-tf.js +175 -43
- package/dist-sdk/src/entities/agent-tool/module.js +6 -0
- package/dist-sdk/src/entities/agent-tool/to-tf.d.ts +15 -7
- package/dist-sdk/src/entities/agent-tool/to-tf.js +169 -48
- package/dist-sdk/src/entities/agent-tool/types.d.ts +4 -6
- package/dist-sdk/src/entities/agent-tool/types.js +30 -29
- package/dist-sdk/src/entities/app/build.d.ts +214 -47
- package/dist-sdk/src/entities/app/build.js +128 -66
- package/dist-sdk/src/entities/app/deserializer/normalize.d.ts +188 -8
- package/dist-sdk/src/entities/app/deserializer/pulled-expression.d.ts +59 -0
- package/dist-sdk/src/entities/app/deserializer/pulled-expression.js +70 -0
- package/dist-sdk/src/entities/app/display-blocks.d.ts +2 -1
- package/dist-sdk/src/entities/app/display-blocks.js +1 -1
- package/dist-sdk/src/entities/app/from-tf.d.ts +11 -1
- package/dist-sdk/src/entities/app/from-tf.js +30 -2
- package/dist-sdk/src/entities/app/index.d.ts +20 -8
- package/dist-sdk/src/entities/app/index.js +16 -6
- package/dist-sdk/src/entities/app/module.js +29 -4
- package/dist-sdk/src/entities/app/to-tf.d.ts +1 -1
- package/dist-sdk/src/entities/app/to-tf.js +97 -7
- package/dist-sdk/src/entities/approval-chain/build.d.ts +31 -16
- package/dist-sdk/src/entities/approval-chain/build.js +49 -49
- package/dist-sdk/src/entities/approval-chain/from-tf.d.ts +17 -0
- package/dist-sdk/src/entities/approval-chain/from-tf.js +57 -0
- package/dist-sdk/src/entities/approval-chain/index.d.ts +2 -3
- package/dist-sdk/src/entities/approval-chain/index.js +2 -3
- package/dist-sdk/src/entities/approval-chain/module.d.ts +3 -0
- package/dist-sdk/src/entities/approval-chain/module.js +51 -0
- package/dist-sdk/src/entities/approval-chain/printer.d.ts +2 -0
- package/dist-sdk/src/entities/approval-chain/printer.js +21 -0
- package/dist-sdk/src/entities/approval-chain/to-tf.d.ts +9 -0
- package/dist-sdk/src/entities/approval-chain/to-tf.js +43 -0
- package/dist-sdk/src/entities/automation/build.d.ts +177 -95
- package/dist-sdk/src/entities/automation/build.js +164 -72
- package/dist-sdk/src/entities/automation/calculation-expression.d.ts +191 -0
- package/dist-sdk/src/entities/automation/calculation-expression.js +57 -0
- package/dist-sdk/src/entities/automation/deserializer/ast.d.ts +18 -9
- package/dist-sdk/src/entities/automation/deserializer/print-automation.d.ts +18 -14
- package/dist-sdk/src/entities/automation/deserializer/print-automation.js +214 -311
- package/dist-sdk/src/entities/automation/filter.d.ts +1 -115
- package/dist-sdk/src/entities/automation/filter.js +1 -197
- package/dist-sdk/src/entities/automation/from-tf.d.ts +28 -0
- package/dist-sdk/src/entities/automation/from-tf.js +695 -182
- package/dist-sdk/src/entities/automation/index.d.ts +9 -10
- package/dist-sdk/src/entities/automation/index.js +11 -11
- package/dist-sdk/src/entities/automation/module.js +82 -8
- package/dist-sdk/src/entities/automation/operators.d.ts +32 -48
- package/dist-sdk/src/entities/automation/operators.js +10 -37
- package/dist-sdk/src/entities/automation/output-key-wire-name.d.ts +1 -1
- package/dist-sdk/src/entities/automation/output-key-wire-name.js +1 -1
- package/dist-sdk/src/entities/automation/script-code.js +107 -28
- package/dist-sdk/src/entities/automation/serialize.js +1 -1
- package/dist-sdk/src/entities/automation/tasks.d.ts +167 -102
- package/dist-sdk/src/entities/automation/tasks.js +66 -13
- package/dist-sdk/src/entities/automation/to-tf.d.ts +44 -3
- package/dist-sdk/src/entities/automation/to-tf.js +607 -161
- package/dist-sdk/src/entities/automation/triggers.d.ts +33 -25
- package/dist-sdk/src/entities/automation/triggers.js +8 -2
- package/dist-sdk/src/entities/automation/types.d.ts +3 -2
- package/dist-sdk/src/entities/automation/types.js +3 -2
- package/dist-sdk/src/entities/chart/build.d.ts +95 -0
- package/dist-sdk/src/entities/chart/build.js +42 -0
- package/dist-sdk/src/entities/chart/from-tf.d.ts +55 -0
- package/dist-sdk/src/entities/chart/from-tf.js +269 -0
- package/dist-sdk/src/entities/chart/index.d.ts +4 -0
- package/dist-sdk/src/entities/chart/index.js +3 -0
- package/dist-sdk/src/entities/chart/module.d.ts +3 -0
- package/dist-sdk/src/entities/chart/module.js +61 -0
- package/dist-sdk/src/entities/chart/printer.d.ts +5 -0
- package/dist-sdk/src/entities/chart/printer.js +104 -0
- package/dist-sdk/src/entities/chart/to-tf.d.ts +15 -0
- package/dist-sdk/src/entities/chart/to-tf.js +150 -0
- package/dist-sdk/src/entities/chart/types.d.ts +53 -0
- package/dist-sdk/src/entities/chart/types.js +22 -0
- package/dist-sdk/src/entities/dashboard/build.d.ts +44 -0
- package/dist-sdk/src/entities/dashboard/build.js +16 -0
- package/dist-sdk/src/entities/dashboard/from-tf.d.ts +12 -0
- package/dist-sdk/src/entities/dashboard/from-tf.js +113 -0
- package/dist-sdk/src/entities/dashboard/module.d.ts +3 -0
- package/dist-sdk/src/entities/dashboard/module.js +16 -0
- package/dist-sdk/src/entities/dashboard/to-tf.d.ts +43 -0
- package/dist-sdk/src/entities/dashboard/to-tf.js +121 -0
- package/dist-sdk/src/entities/dashboard-widget/module.d.ts +3 -0
- package/dist-sdk/src/entities/dashboard-widget/module.js +10 -0
- package/dist-sdk/src/entities/data-lookup/module.d.ts +3 -0
- package/dist-sdk/src/entities/data-lookup/module.js +22 -0
- package/dist-sdk/src/entities/datamine/build.d.ts +22 -0
- package/dist-sdk/src/entities/datamine/from-tf.d.ts +17 -0
- package/dist-sdk/src/entities/datamine/from-tf.js +98 -0
- package/dist-sdk/src/entities/datamine/module.d.ts +3 -0
- package/dist-sdk/src/entities/datamine/module.js +23 -0
- package/dist-sdk/src/entities/datamine/to-tf.d.ts +11 -0
- package/dist-sdk/src/entities/datamine/to-tf.js +53 -0
- package/dist-sdk/src/entities/dynamic-layout/build.d.ts +304 -0
- package/dist-sdk/src/entities/dynamic-layout/build.js +4 -0
- package/dist-sdk/src/entities/dynamic-layout/dialect.d.ts +4 -0
- package/dist-sdk/src/entities/dynamic-layout/dialect.js +47 -0
- package/dist-sdk/src/entities/dynamic-layout/from-tf.d.ts +10 -0
- package/dist-sdk/src/entities/dynamic-layout/from-tf.js +239 -0
- package/dist-sdk/src/entities/dynamic-layout/module.d.ts +3 -0
- package/dist-sdk/src/entities/dynamic-layout/module.js +13 -0
- package/dist-sdk/src/entities/dynamic-layout/to-tf.d.ts +26 -0
- package/dist-sdk/src/entities/dynamic-layout/to-tf.js +267 -0
- package/dist-sdk/src/entities/element/build.d.ts +48 -38
- package/dist-sdk/src/entities/element/build.js +24 -33
- package/dist-sdk/src/entities/element/from-tf.d.ts +9 -1
- package/dist-sdk/src/entities/element/from-tf.js +31 -2
- package/dist-sdk/src/entities/element/index.d.ts +14 -7
- package/dist-sdk/src/entities/element/index.js +11 -5
- package/dist-sdk/src/entities/element/module.js +26 -5
- package/dist-sdk/src/entities/element/to-tf.d.ts +2 -1
- package/dist-sdk/src/entities/element/to-tf.js +64 -4
- package/dist-sdk/src/entities/field/build.d.ts +55 -27
- package/dist-sdk/src/entities/field/build.js +31 -6
- package/dist-sdk/src/entities/field/calc/aggregate.d.ts +52 -21
- package/dist-sdk/src/entities/field/calc/aggregate.js +59 -29
- package/dist-sdk/src/entities/field/calc/date.d.ts +78 -29
- package/dist-sdk/src/entities/field/calc/date.js +120 -29
- package/dist-sdk/src/entities/field/calc/index.d.ts +80 -85
- package/dist-sdk/src/entities/field/calc/index.js +82 -139
- package/dist-sdk/src/entities/field/calc/numeric.d.ts +8 -12
- package/dist-sdk/src/entities/field/calc/numeric.js +10 -27
- package/dist-sdk/src/entities/field/calc/runtime.d.ts +19 -2
- package/dist-sdk/src/entities/field/calc/runtime.js +79 -8
- package/dist-sdk/src/entities/field/calc/text.d.ts +32 -23
- package/dist-sdk/src/entities/field/calc/text.js +43 -31
- package/dist-sdk/src/entities/field/calc/types.d.ts +36 -81
- package/dist-sdk/src/entities/field/calc/types.js +1 -22
- package/dist-sdk/src/entities/field/calc.d.ts +71 -48
- package/dist-sdk/src/entities/field/calc.js +5 -15
- package/dist-sdk/src/entities/field/calculation-types.d.ts +6 -0
- package/dist-sdk/src/entities/field/calculation-types.js +49 -0
- package/dist-sdk/src/entities/field/from-tf.js +238 -13
- package/dist-sdk/src/entities/field/locals.d.ts +11 -3
- package/dist-sdk/src/entities/field/locals.js +15 -2
- package/dist-sdk/src/entities/field/module.d.ts +1 -0
- package/dist-sdk/src/entities/field/module.js +27 -7
- package/dist-sdk/src/entities/field/record-shape.d.ts +25 -11
- package/dist-sdk/src/entities/field/to-tf.d.ts +41 -2
- package/dist-sdk/src/entities/field/to-tf.js +314 -40
- package/dist-sdk/src/entities/field/types.d.ts +1 -1
- package/dist-sdk/src/entities/field/types.js +10 -1
- package/dist-sdk/src/entities/file-reader/build.d.ts +71 -19
- package/dist-sdk/src/entities/file-reader/build.js +49 -4
- package/dist-sdk/src/entities/file-reader/deserializer/print-file-reader.d.ts +1 -0
- package/dist-sdk/src/entities/file-reader/deserializer/print-file-reader.js +12 -10
- package/dist-sdk/src/entities/file-reader/from-tf.d.ts +1 -1
- package/dist-sdk/src/entities/file-reader/from-tf.js +31 -2
- package/dist-sdk/src/entities/file-reader/index.d.ts +3 -3
- package/dist-sdk/src/entities/file-reader/index.js +3 -3
- package/dist-sdk/src/entities/file-reader/module.js +6 -5
- package/dist-sdk/src/entities/file-reader/to-tf.d.ts +1 -1
- package/dist-sdk/src/entities/file-reader/to-tf.js +5 -2
- package/dist-sdk/src/entities/file-reader/types.d.ts +3 -4
- package/dist-sdk/src/entities/file-reader/types.js +4 -5
- package/dist-sdk/src/entities/org/category.js +4 -5
- package/dist-sdk/src/entities/org/cloud-link.js +4 -5
- package/dist-sdk/src/entities/org/email-alias.d.ts +2 -0
- package/dist-sdk/src/entities/org/email-alias.js +12 -0
- package/dist-sdk/src/entities/org/group.js +4 -5
- package/dist-sdk/src/entities/org/index.d.ts +2 -0
- package/dist-sdk/src/entities/org/index.js +2 -0
- package/dist-sdk/src/entities/org/phone-provider.d.ts +4 -0
- package/dist-sdk/src/entities/org/phone-provider.js +30 -0
- package/dist-sdk/src/entities/org/role.d.ts +3 -3
- package/dist-sdk/src/entities/org/role.js +9 -6
- package/dist-sdk/src/entities/organization/build.d.ts +241 -0
- package/dist-sdk/src/entities/organization/build.js +165 -0
- package/dist-sdk/src/entities/organization/index.d.ts +2 -0
- package/dist-sdk/src/entities/organization/index.js +2 -0
- package/dist-sdk/src/entities/organization/module.d.ts +2 -0
- package/dist-sdk/src/entities/organization/module.js +21 -0
- package/dist-sdk/src/entities/organization/to-tf.d.ts +7 -0
- package/dist-sdk/src/entities/organization/to-tf.js +154 -0
- package/dist-sdk/src/entities/phone-service/build.d.ts +17 -0
- package/dist-sdk/src/entities/phone-service/build.js +31 -0
- package/dist-sdk/src/entities/phone-service/deserializer/print-phone-service.d.ts +4 -0
- package/dist-sdk/src/entities/phone-service/deserializer/print-phone-service.js +56 -0
- package/dist-sdk/src/entities/phone-service/from-tf.d.ts +25 -0
- package/dist-sdk/src/entities/phone-service/from-tf.js +75 -0
- package/dist-sdk/src/entities/phone-service/index.d.ts +2 -0
- package/dist-sdk/src/entities/phone-service/index.js +2 -0
- package/dist-sdk/src/entities/phone-service/module.d.ts +3 -0
- package/dist-sdk/src/entities/phone-service/module.js +55 -0
- package/dist-sdk/src/entities/phone-service/to-tf.d.ts +12 -0
- package/dist-sdk/src/entities/phone-service/to-tf.js +54 -0
- package/dist-sdk/src/entities/phone-service/types.d.ts +35 -0
- package/dist-sdk/src/entities/phone-service/types.js +22 -0
- package/dist-sdk/src/entities/record-create-form/from-tf.d.ts +11 -0
- package/dist-sdk/src/entities/record-create-form/from-tf.js +74 -0
- package/dist-sdk/src/entities/record-create-form/module.d.ts +11 -0
- package/dist-sdk/src/entities/record-create-form/module.js +24 -0
- package/dist-sdk/src/entities/record-create-form/to-tf.d.ts +33 -0
- package/dist-sdk/src/entities/record-create-form/to-tf.js +88 -0
- package/dist-sdk/src/entities/relationship/build.d.ts +16 -0
- package/dist-sdk/src/entities/relationship/build.js +1 -0
- package/dist-sdk/src/entities/relationship/from-tf.d.ts +12 -0
- package/dist-sdk/src/entities/relationship/from-tf.js +109 -0
- package/dist-sdk/src/entities/relationship/module.d.ts +3 -0
- package/dist-sdk/src/entities/relationship/module.js +16 -0
- package/dist-sdk/src/entities/relationship/to-tf.d.ts +32 -0
- package/dist-sdk/src/entities/relationship/to-tf.js +145 -0
- package/dist-sdk/src/entities/role/build.d.ts +65 -0
- package/dist-sdk/src/entities/role/build.js +33 -0
- package/dist-sdk/src/entities/role/from-tf.d.ts +13 -0
- package/dist-sdk/src/entities/role/from-tf.js +138 -0
- package/dist-sdk/src/entities/role/to-tf.d.ts +13 -0
- package/dist-sdk/src/entities/role/to-tf.js +69 -0
- package/dist-sdk/src/entities/search-table/build.d.ts +67 -28
- package/dist-sdk/src/entities/search-table/build.js +110 -56
- package/dist-sdk/src/entities/search-table/from-tf.d.ts +37 -0
- package/dist-sdk/src/entities/search-table/from-tf.js +113 -0
- package/dist-sdk/src/entities/search-table/index.d.ts +2 -2
- package/dist-sdk/src/entities/search-table/index.js +2 -2
- package/dist-sdk/src/entities/search-table/module.js +88 -10
- package/dist-sdk/src/entities/search-table/printer.d.ts +2 -0
- package/dist-sdk/src/entities/search-table/printer.js +52 -0
- package/dist-sdk/src/entities/search-table/to-tf.d.ts +14 -0
- package/dist-sdk/src/entities/search-table/to-tf.js +104 -0
- package/dist-sdk/src/entities/search-table/types.d.ts +8 -0
- package/dist-sdk/src/entities/search-table/types.js +21 -0
- package/dist-sdk/src/entities/service-account/build.d.ts +32 -0
- package/dist-sdk/src/entities/service-account/build.js +9 -0
- package/dist-sdk/src/entities/service-account/from-tf.d.ts +10 -0
- package/dist-sdk/src/entities/service-account/from-tf.js +109 -0
- package/dist-sdk/src/entities/service-account/module.d.ts +4 -0
- package/dist-sdk/src/entities/service-account/module.js +21 -0
- package/dist-sdk/src/entities/service-account/ref.d.ts +11 -0
- package/dist-sdk/src/entities/service-account/ref.js +5 -0
- package/dist-sdk/src/entities/service-account/to-tf.d.ts +32 -0
- package/dist-sdk/src/entities/service-account/to-tf.js +103 -0
- package/dist-sdk/src/entities/shared/connector-from-tf.d.ts +14 -0
- package/dist-sdk/src/entities/shared/connector-from-tf.js +14 -0
- package/dist-sdk/src/entities/shared/context.d.ts +25 -24
- package/dist-sdk/src/entities/shared/context.js +36 -35
- package/dist-sdk/src/entities/shared/filters/ast.d.ts +30 -81
- package/dist-sdk/src/entities/shared/filters/ast.js +6 -2
- package/dist-sdk/src/entities/shared/filters/index.d.ts +95 -206
- package/dist-sdk/src/entities/shared/filters/index.js +196 -341
- package/dist-sdk/src/entities/shared/filters/print.d.ts +11 -0
- package/dist-sdk/src/entities/shared/filters/print.js +122 -0
- package/dist-sdk/src/entities/shared/filters/tf-codec.d.ts +170 -0
- package/dist-sdk/src/entities/shared/filters/tf-codec.js +527 -0
- package/dist-sdk/src/entities/shared/filters/types.d.ts +66 -69
- package/dist-sdk/src/entities/shared/filters/types.js +2 -3
- package/dist-sdk/src/entities/shared/foreign-ref.d.ts +14 -0
- package/dist-sdk/src/entities/shared/foreign-ref.js +12 -0
- package/dist-sdk/src/entities/shared/ref.d.ts +26 -11
- package/dist-sdk/src/entities/shared/ref.js +8 -3
- package/dist-sdk/src/entities/shared/types/common.d.ts +2 -2
- package/dist-sdk/src/entities/shared/types/field-types.d.ts +1 -1
- package/dist-sdk/src/entities/shared/types/field-types.js +1 -1
- package/dist-sdk/src/entities/skill/build.d.ts +4 -4
- package/dist-sdk/src/entities/skill/build.js +6 -5
- package/dist-sdk/src/entities/skill/deserializer/print-skill-v2.d.ts +11 -1
- package/dist-sdk/src/entities/skill/deserializer/print-skill-v2.js +100 -39
- package/dist-sdk/src/entities/skill/index.d.ts +3 -2
- package/dist-sdk/src/entities/skill/index.js +3 -2
- package/dist-sdk/src/entities/skill/module.js +8 -2
- package/dist-sdk/src/entities/skill/to-tf.d.ts +6 -2
- package/dist-sdk/src/entities/skill/to-tf.js +20 -2
- package/dist-sdk/src/entities/skill/tools.d.ts +47 -31
- package/dist-sdk/src/entities/skill/tools.js +37 -23
- package/dist-sdk/src/entities/skill-tool/from-tf.d.ts +17 -1
- package/dist-sdk/src/entities/skill-tool/from-tf.js +118 -8
- package/dist-sdk/src/entities/skill-tool/module.js +9 -0
- package/dist-sdk/src/entities/skill-tool/to-tf.d.ts +6 -1
- package/dist-sdk/src/entities/skill-tool/to-tf.js +100 -48
- package/dist-sdk/src/entities/skill-tool/types.js +18 -1
- package/dist-sdk/src/entities/table/build.d.ts +64 -23
- package/dist-sdk/src/entities/table/build.js +41 -26
- package/dist-sdk/src/entities/table/catalog-render.js +15 -1
- package/dist-sdk/src/entities/table/deserializer/normalize.d.ts +99 -0
- package/dist-sdk/src/entities/table/deserializer/normalize.js +192 -0
- package/dist-sdk/src/entities/table/fields/types.d.ts +86 -0
- package/dist-sdk/src/entities/table/fields/types.js +12 -0
- package/dist-sdk/src/entities/table/fields.d.ts +107 -47
- package/dist-sdk/src/entities/table/fields.js +76 -55
- package/dist-sdk/src/entities/table/from-tf.d.ts +4 -0
- package/dist-sdk/src/entities/table/from-tf.js +261 -0
- package/dist-sdk/src/entities/table/index.d.ts +7 -5
- package/dist-sdk/src/entities/table/index.js +7 -7
- package/dist-sdk/src/entities/table/joins.d.ts +22 -9
- package/dist-sdk/src/entities/table/joins.js +8 -16
- package/dist-sdk/src/entities/table/module.d.ts +2 -1
- package/dist-sdk/src/entities/table/module.js +13 -6
- package/dist-sdk/src/entities/table/to-tf.d.ts +10 -0
- package/dist-sdk/src/entities/table/to-tf.js +222 -0
- package/dist-sdk/src/entities/task/build.d.ts +43 -0
- package/dist-sdk/src/entities/task/build.js +17 -0
- package/dist-sdk/src/entities/task/from-tf.d.ts +28 -0
- package/dist-sdk/src/entities/task/from-tf.js +38 -0
- package/dist-sdk/src/entities/task/index.d.ts +1 -0
- package/dist-sdk/src/entities/task/index.js +1 -0
- package/dist-sdk/src/entities/task/module.d.ts +3 -0
- package/dist-sdk/src/entities/task/module.js +12 -0
- package/dist-sdk/src/entities/task/to-tf.d.ts +9 -0
- package/dist-sdk/src/entities/task/to-tf.js +49 -0
- package/dist-sdk/src/entities/view/build.d.ts +46 -0
- package/dist-sdk/src/entities/view/build.js +19 -0
- package/dist-sdk/src/entities/view/from-tf.d.ts +7 -2
- package/dist-sdk/src/entities/view/from-tf.js +264 -30
- package/dist-sdk/src/entities/view/module.d.ts +6 -13
- package/dist-sdk/src/entities/view/module.js +12 -15
- package/dist-sdk/src/entities/view/sharing.d.ts +10 -0
- package/dist-sdk/src/entities/view/sharing.js +6 -0
- package/dist-sdk/src/entities/view/to-tf.d.ts +56 -12
- package/dist-sdk/src/entities/view/to-tf.js +192 -20
- package/dist-sdk/src/entities/view/types.d.ts +8 -0
- package/dist-sdk/src/entities/view/types.js +46 -0
- package/dist-sdk/src/entities/visual-flow/build.d.ts +87 -0
- package/dist-sdk/src/entities/visual-flow/build.js +72 -0
- package/dist-sdk/src/entities/visual-flow/from-tf.d.ts +49 -0
- package/dist-sdk/src/entities/visual-flow/from-tf.js +124 -0
- package/dist-sdk/src/entities/visual-flow/index.d.ts +1 -0
- package/dist-sdk/src/entities/visual-flow/index.js +1 -0
- package/dist-sdk/src/entities/visual-flow/module.d.ts +3 -0
- package/dist-sdk/src/entities/visual-flow/module.js +41 -0
- package/dist-sdk/src/entities/visual-flow/printer.d.ts +8 -0
- package/dist-sdk/src/entities/visual-flow/printer.js +92 -0
- package/dist-sdk/src/entities/visual-flow/to-tf.d.ts +15 -0
- package/dist-sdk/src/entities/visual-flow/to-tf.js +97 -0
- package/dist-sdk/src/entities/widget/build.d.ts +55 -0
- package/dist-sdk/src/entities/widget/build.js +1 -0
- package/dist-sdk/src/entities/widget/from-tf.d.ts +11 -0
- package/dist-sdk/src/entities/widget/from-tf.js +209 -0
- package/dist-sdk/src/entities/widget/module.d.ts +3 -0
- package/dist-sdk/src/entities/widget/module.js +16 -0
- package/dist-sdk/src/entities/widget/to-tf.d.ts +45 -0
- package/dist-sdk/src/entities/widget/to-tf.js +206 -0
- package/dist-sdk/src/graph/deferred-catalog-render.d.ts +1 -1
- package/dist-sdk/src/graph/deferred-catalog-render.js +1 -1
- package/dist-sdk/src/graph/index.d.ts +12 -1
- package/dist-sdk/src/graph/index.js +8 -19
- package/dist-sdk/src/graph/modules.js +35 -1
- package/dist-sdk/src/graph/types.d.ts +106 -7
- package/dist-sdk/src/internal/safe-identifier.d.ts +4 -0
- package/dist-sdk/src/internal/safe-identifier.js +13 -0
- package/dist-sdk/src/internal/sdk-package.d.ts +1 -1
- package/dist-sdk/src/internal/sdk-package.js +5 -2
- package/package.json +39 -15
- package/dist-sdk/src/entities/access-policy/filter.d.ts +0 -61
- package/dist-sdk/src/entities/access-policy/filter.js +0 -83
- package/dist-sdk/src/entities/approval-chain/steps.d.ts +0 -24
- package/dist-sdk/src/entities/approval-chain/steps.js +0 -20
- package/dist-sdk/src/entities/flow/activities/agent.d.ts +0 -15
- package/dist-sdk/src/entities/flow/activities/agent.js +0 -29
- package/dist-sdk/src/entities/flow/activities/approval.d.ts +0 -9
- package/dist-sdk/src/entities/flow/activities/approval.js +0 -18
- package/dist-sdk/src/entities/flow/activities/automation.d.ts +0 -12
- package/dist-sdk/src/entities/flow/activities/automation.js +0 -22
- package/dist-sdk/src/entities/flow/activities/ctx.d.ts +0 -34
- package/dist-sdk/src/entities/flow/activities/ctx.js +0 -38
- package/dist-sdk/src/entities/flow/activities/form.d.ts +0 -22
- package/dist-sdk/src/entities/flow/activities/form.js +0 -36
- package/dist-sdk/src/entities/flow/activities/index.d.ts +0 -14
- package/dist-sdk/src/entities/flow/activities/index.js +0 -13
- package/dist-sdk/src/entities/flow/activities/input-refs.d.ts +0 -39
- package/dist-sdk/src/entities/flow/activities/input-refs.js +0 -19
- package/dist-sdk/src/entities/flow/activities/prompt-template.d.ts +0 -13
- package/dist-sdk/src/entities/flow/activities/prompt-template.js +0 -34
- package/dist-sdk/src/entities/flow/activities/types.d.ts +0 -33
- package/dist-sdk/src/entities/flow/build.d.ts +0 -38
- package/dist-sdk/src/entities/flow/build.js +0 -115
- package/dist-sdk/src/entities/flow/index.d.ts +0 -8
- package/dist-sdk/src/entities/flow/index.js +0 -7
- package/dist-sdk/src/entities/flow/serialize.d.ts +0 -51
- package/dist-sdk/src/entities/flow/serialize.js +0 -94
- package/dist-sdk/src/entities/flow/util.d.ts +0 -27
- package/dist-sdk/src/entities/flow/util.js +0 -38
- package/dist-sdk/src/entities/table/filter.d.ts +0 -41
- package/dist-sdk/src/entities/table/filter.js +0 -89
- /package/dist-sdk/src/entities/{flow/activities/types.js → datamine/build.js} +0 -0
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* are identical, but the **field-binding leaves take a `FieldRef` token** (not a
|
|
2
|
+
* Typed json-render AST helpers shared by Canvas and app UI composition.
|
|
3
|
+
* Field-binding leaves take a `FieldRef` token (not a
|
|
5
4
|
* live `AppField`) and emit the field id position as a token resolved at deploy.
|
|
6
5
|
*
|
|
7
6
|
* A binding leaf needs the field id in two places — `__binding.aspectFieldId`
|
|
8
7
|
* (resolved straight to the id) and the `record/<id>` **statePath string**. v2
|
|
9
8
|
* has no id at author time, so the statePath is emitted as a structured marker
|
|
10
|
-
* `{ __recordPath: <FieldRef token> }`;
|
|
11
|
-
*
|
|
12
|
-
* `flattenRecordPaths` in the apply wire client).
|
|
9
|
+
* `{ __recordPath: <FieldRef token> }`; the Terraform emitter resolves it to a
|
|
10
|
+
* `"record/${field-resource.id}"` template inside the JSON configuration.
|
|
13
11
|
*/
|
|
14
|
-
import { EdkValidationError } from "
|
|
15
|
-
/** Marker key the
|
|
12
|
+
import { EdkValidationError } from "../../elementum-entity-client/errors.js";
|
|
13
|
+
/** Marker key the Terraform emitter flattens to a `record/<id>` statePath string. */
|
|
16
14
|
export const RECORD_PATH_MARKER = "__recordPath";
|
|
17
15
|
const NODE_KIND = "render-node";
|
|
18
16
|
/** Build the structured statePath marker for a field (flattened to a string at deploy). */
|
|
@@ -88,7 +86,7 @@ export function inputFor(field, opts = {}) {
|
|
|
88
86
|
props.placeholder = opts.placeholder;
|
|
89
87
|
return buildBindingNode("Input", field, props);
|
|
90
88
|
}
|
|
91
|
-
/** Bind a TEXT/
|
|
89
|
+
/** Bind a TEXT/RICH_TEXT field to a `Textarea`. */
|
|
92
90
|
export function textareaFor(field, opts = {}) {
|
|
93
91
|
const props = commonProps(field, opts);
|
|
94
92
|
if (opts.placeholder != null)
|
|
@@ -120,7 +118,6 @@ export function fieldFor(field, opts = {}) {
|
|
|
120
118
|
case "PICKLIST":
|
|
121
119
|
case "MULTI_PICKLIST":
|
|
122
120
|
return selectFor(field, opts);
|
|
123
|
-
case "HTML":
|
|
124
121
|
case "RICH_TEXT":
|
|
125
122
|
return textareaFor(field, opts);
|
|
126
123
|
case "BOOLEAN":
|
|
@@ -16,7 +16,7 @@ export interface AiProviderConnector {
|
|
|
16
16
|
readonly model?: string;
|
|
17
17
|
}
|
|
18
18
|
/** @deprecated Use the pulled `catalog.aiProviders.<provider>.models.<model>` token instead — see {@link AiProviderConnector}. */
|
|
19
|
-
export declare function
|
|
19
|
+
export declare function aiProviderConnector(opts: {
|
|
20
20
|
id: string;
|
|
21
21
|
name?: string;
|
|
22
22
|
model?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @deprecated Use the pulled `catalog.aiProviders.<provider>.models.<model>` token instead — see {@link AiProviderConnector}. */
|
|
2
|
-
export function
|
|
2
|
+
export function aiProviderConnector(opts) {
|
|
3
3
|
return {
|
|
4
4
|
id: opts.id,
|
|
5
5
|
...(opts.name != null && { name: opts.name }),
|
|
@@ -9,11 +9,13 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import { type Ref, type ValueOrRef } from "../../entities/shared/ref.js";
|
|
11
11
|
import type { WorkflowFieldType } from "../../entities/shared/types/field-types.js";
|
|
12
|
-
import type {
|
|
12
|
+
import type { AppOrElementRef, FieldRef } from "../../catalog/types.js";
|
|
13
|
+
import type { RefExpr } from "../../entities/shared/filters/ast.js";
|
|
14
|
+
import type { Filter } from "../../entities/shared/filters/types.js";
|
|
13
15
|
import type { CloudLink } from "./cloud-link.js";
|
|
14
16
|
import type { DisplayBlockBag } from "./display-block.js";
|
|
15
|
-
import type { SerializedRenderTree } from "
|
|
16
|
-
import type { AspectFieldQrFormat, AspectNumericFieldFormat, AspectReferenceFieldFormat,
|
|
17
|
+
import type { SerializedRenderTree } from "../render-tree.js";
|
|
18
|
+
import type { AspectFieldQrFormat, AspectNumericFieldFormat, AspectReferenceFieldFormat, PicklistValueExInput } from "../../../elementum-entity-client/clients/aspects/models/index.js";
|
|
17
19
|
/**
|
|
18
20
|
* One static picklist value; in `createRecord` / `updateField` pick via
|
|
19
21
|
* `(options) => options.Name` — only `id` is sent to the API.
|
|
@@ -76,7 +78,7 @@ export type FieldScope = "row" | "unscoped";
|
|
|
76
78
|
* Names that Ultron auto-provisions on every `APP` aspect. A user field
|
|
77
79
|
* whose `name` collides with one of these causes compose to fail with a
|
|
78
80
|
* raw Postgres unique-constraint 500 instead of a typed validation error,
|
|
79
|
-
* so we reject the collision at `
|
|
81
|
+
* so we reject the collision at `app()` time.
|
|
80
82
|
*
|
|
81
83
|
* This list is hand-maintained — if Ultron adds a new system field, add
|
|
82
84
|
* the literal here and regenerate. A long-term improvement is to source
|
|
@@ -113,7 +115,7 @@ type TagsOf<F> = F extends {
|
|
|
113
115
|
type HasLiteralTags<F> = string extends TagsOf<F> ? false : true;
|
|
114
116
|
type HasKnownSystemSemanticTag<F> = HasLiteralTags<F> extends true ? [Extract<TagsOf<F>, SystemFieldSemanticTag>] extends [never] ? false : true : false;
|
|
115
117
|
type WritableFieldValues<TFields extends Record<string, AppField>> = {
|
|
116
|
-
[K in keyof TFields]?:
|
|
118
|
+
[K in keyof TFields]?: AppFieldInputForAction<TFields[K] & AppField>;
|
|
117
119
|
};
|
|
118
120
|
/**
|
|
119
121
|
* Shared base for every per-variant `AppField`. Carries identity
|
|
@@ -195,6 +197,43 @@ export interface HtmlAppField<Scope extends FieldScope = "unscoped"> extends Asp
|
|
|
195
197
|
export interface JsonAppField<Scope extends FieldScope = "unscoped"> extends AspectFieldBase<Scope> {
|
|
196
198
|
readonly type: "JSON";
|
|
197
199
|
}
|
|
200
|
+
/**
|
|
201
|
+
* Normalized (pulled) dynamic-picklist config — a picklist whose values
|
|
202
|
+
* come from records of another aspect (`elementum_dropdown_field`/
|
|
203
|
+
* `elementum_multiselect_field`'s `dynamic_config`), rather than a fixed
|
|
204
|
+
* `options` list. `relatedAspectId`/`relatedLabelFieldId`/`parentFieldId`
|
|
205
|
+
* mirror `RelationAppField`'s duality: a raw platform id (the common case —
|
|
206
|
+
* `field/from-tf.ts` prints it via `unsafePlatformId(...)`), or a resolved
|
|
207
|
+
* catalog ref when the related aspect/field is already pulled into this
|
|
208
|
+
* workspace. `filter`/`sort` round-trip through the same `Filter<RefExpr,
|
|
209
|
+
* RefExpr>` shape `NormalizedAccessPolicy` already uses.
|
|
210
|
+
*/
|
|
211
|
+
export interface NormalizedPicklistDynamicConfig {
|
|
212
|
+
readonly relatedAspectId: AppOrElementRef | string;
|
|
213
|
+
readonly relatedLabelFieldId: string | {
|
|
214
|
+
readonly ownerRefName: string;
|
|
215
|
+
readonly fieldKey: string;
|
|
216
|
+
};
|
|
217
|
+
/**
|
|
218
|
+
* A field on the SAME owning aspect (not `relatedAspectId`'s target) — the
|
|
219
|
+
* cascading-parent trigger. Carried as that field's own bag key, printed
|
|
220
|
+
* as a hoisted `FieldRef` const (`field/from-tf.ts` resolves it via
|
|
221
|
+
* `fieldKeyFromTfRef`, same as `AppField.parentField`'s sibling mechanism).
|
|
222
|
+
*/
|
|
223
|
+
readonly parentFieldId?: string;
|
|
224
|
+
readonly autoRelate?: boolean;
|
|
225
|
+
readonly valuesRenderType?: string;
|
|
226
|
+
readonly filter?: Filter<RefExpr, RefExpr>;
|
|
227
|
+
readonly sort?: Readonly<Record<string, unknown>>;
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Only `dynamic` round-trips through the terraform path today — a `static`
|
|
231
|
+
* variant exists on the platform (filter/sort/parentFieldId over a fixed
|
|
232
|
+
* option list) but has no terraform attribute yet (see `field/to-tf.ts`).
|
|
233
|
+
*/
|
|
234
|
+
export interface NormalizedPicklistConfig {
|
|
235
|
+
readonly dynamic?: NormalizedPicklistDynamicConfig;
|
|
236
|
+
}
|
|
198
237
|
/**
|
|
199
238
|
* Shared base for `PicklistAppField` / `MultiPicklistAppField`. The
|
|
200
239
|
* three value-source mechanisms are mutually exclusive at the wire
|
|
@@ -204,8 +243,8 @@ export interface JsonAppField<Scope extends FieldScope = "unscoped"> extends Asp
|
|
|
204
243
|
* translation (the agent-friendly authoring shape)
|
|
205
244
|
* - `picklistValues` — explicit `PicklistValueExInput[]` for richer
|
|
206
245
|
* authoring (color, icon)
|
|
207
|
-
* - `config:
|
|
208
|
-
*
|
|
246
|
+
* - `config: NormalizedPicklistConfig` — dynamic picklist config
|
|
247
|
+
* (related-aspect refs, filter, sort)
|
|
209
248
|
*
|
|
210
249
|
* The legacy `values: string[]` slot is preserved for update flows
|
|
211
250
|
* that re-send id-only ordering data.
|
|
@@ -227,18 +266,15 @@ export interface JsonAppField<Scope extends FieldScope = "unscoped"> extends Asp
|
|
|
227
266
|
* } satisfies PicklistAppField;
|
|
228
267
|
* ```
|
|
229
268
|
*
|
|
230
|
-
*
|
|
231
|
-
*
|
|
232
|
-
*
|
|
233
|
-
*
|
|
234
|
-
* (dynamic) case, the cross-aspect field mappings live on
|
|
235
|
-
* `config.dynamic.parentMappings` and are still authored through the
|
|
236
|
-
* `config` slot directly.
|
|
269
|
+
* This dependent-option-link mechanism (`parentField`/`parentValues`) is a
|
|
270
|
+
* DIFFERENT, still-unimplemented feature from `config.dynamic`'s own
|
|
271
|
+
* `parentFieldId` (a dynamic picklist's cascading-parent trigger) — see
|
|
272
|
+
* `field/to-tf.ts`'s handling of `relatedParentValues`.
|
|
237
273
|
*/
|
|
238
274
|
export interface PicklistAppFieldBase<Scope extends FieldScope = "unscoped"> extends AspectFieldBase<Scope> {
|
|
239
275
|
readonly options?: Readonly<Record<string, PicklistOption>>;
|
|
240
276
|
readonly picklistValues?: readonly PicklistValueExInput[];
|
|
241
|
-
readonly config?:
|
|
277
|
+
readonly config?: NormalizedPicklistConfig;
|
|
242
278
|
readonly values?: readonly string[];
|
|
243
279
|
readonly referenceFormat?: AspectReferenceFieldFormat;
|
|
244
280
|
readonly parentField?: PicklistAppField<Scope> | MultiPicklistAppField<Scope>;
|
|
@@ -249,7 +285,7 @@ export interface PicklistAppFieldBase<Scope extends FieldScope = "unscoped"> ext
|
|
|
249
285
|
* set is still present in the current `picklistValues`; missing
|
|
250
286
|
* ids → throw, since the EDK doesn't support deleting picklist
|
|
251
287
|
* values (matching the create/update-only pattern across
|
|
252
|
-
* `
|
|
288
|
+
* `automation`, `agent`, etc.).
|
|
253
289
|
*
|
|
254
290
|
* Hand-authored fields don't set this; the guard is a no-op.
|
|
255
291
|
* Never serialized to ultron — `resolvePicklistValues` projects
|
|
@@ -282,7 +318,7 @@ export interface AttachmentAppField<Scope extends FieldScope = "unscoped"> exten
|
|
|
282
318
|
* RELATION fields (`elementum_relation_field`) - a dynamic dropdown whose
|
|
283
319
|
* options are records from another App/Element/Task, distinct from a
|
|
284
320
|
* static PICKLIST (no fixed `options` list at all). `relatedObject`/
|
|
285
|
-
* `relatedLabelField` accept a catalog token (`
|
|
321
|
+
* `relatedLabelField` accept a catalog token (`AppOrElementRef`/`FieldRef`) or a
|
|
286
322
|
* raw platform id. A token naming a SIBLING app/element authored in the
|
|
287
323
|
* same build resolves to a direct resource reference - Terraform sequences
|
|
288
324
|
* its creation automatically, so it does NOT need to already exist on the
|
|
@@ -295,7 +331,7 @@ export interface AttachmentAppField<Scope extends FieldScope = "unscoped"> exten
|
|
|
295
331
|
*/
|
|
296
332
|
export interface RelationAppField<Scope extends FieldScope = "unscoped"> extends AspectFieldBase<Scope> {
|
|
297
333
|
readonly type: "RELATION";
|
|
298
|
-
readonly relatedObject:
|
|
334
|
+
readonly relatedObject: AppOrElementRef | string;
|
|
299
335
|
readonly relatedLabelField: FieldRef | string;
|
|
300
336
|
/** Defaults to `true` on the platform. */
|
|
301
337
|
readonly autoRelate?: boolean;
|
|
@@ -349,9 +385,9 @@ export interface AppAgent {
|
|
|
349
385
|
/**
|
|
350
386
|
* A reusable agentic skill owned by the app — an AI capability bundle
|
|
351
387
|
* (prompt + tools) that one of the app's agents can be granted via
|
|
352
|
-
* `
|
|
388
|
+
* `agent({ skills: [...] })`. The agent doesn't author the skill
|
|
353
389
|
* here; it only references it by id/name. Authoring lives on the
|
|
354
|
-
* separate `
|
|
390
|
+
* separate `skill` factory and lands in this bag once deployed.
|
|
355
391
|
*/
|
|
356
392
|
export interface AppAgenticSkill {
|
|
357
393
|
readonly id: string;
|
|
@@ -370,7 +406,7 @@ export interface AppSearchTable<TFields extends Record<string, AppField> = {}> {
|
|
|
370
406
|
*
|
|
371
407
|
* `type` is required — the renderer reads it from antman's wire
|
|
372
408
|
* (`TriggerParameter.fieldType`, surfaced from mobius's
|
|
373
|
-
* `ServiceTaskParam.fieldType`). Hand-authored `
|
|
409
|
+
* `ServiceTaskParam.fieldType`). Hand-authored `app({ ... })`
|
|
374
410
|
* entries must set it explicitly so `runAutomation`'s input typing can
|
|
375
411
|
* derive value types.
|
|
376
412
|
*/
|
|
@@ -384,12 +420,12 @@ export interface AppAutomationParam {
|
|
|
384
420
|
/**
|
|
385
421
|
* Workflow metadata attached to an automation in an AppAutomation
|
|
386
422
|
* entry — the part the agent needs to pull the automation back as
|
|
387
|
-
* editable source via `
|
|
423
|
+
* editable source via `automation.fromJSON`.
|
|
388
424
|
*
|
|
389
425
|
* Substantive type, not a wrapper over the entity-client's `Workflow`:
|
|
390
426
|
* - `id` is required, so the agent can't author an entry with
|
|
391
427
|
* workflow metadata but no actual id (typecheck catches it at
|
|
392
|
-
* `
|
|
428
|
+
* `app({...})` construction time).
|
|
393
429
|
* - Surface is narrow to authoring concerns. Heavier wire fields
|
|
394
430
|
* (triggers, tasks, outputs, owner, etc.) live on the
|
|
395
431
|
* entity-client's `Workflow` and are read at pull time, not
|
|
@@ -401,7 +437,7 @@ export interface AppAutomationParam {
|
|
|
401
437
|
* which to pull at the call site:
|
|
402
438
|
*
|
|
403
439
|
* ```ts
|
|
404
|
-
*
|
|
440
|
+
* automation.fromJSON(myApp.automations.foo.workflowDraft!)
|
|
405
441
|
* ```
|
|
406
442
|
*
|
|
407
443
|
* (The ref is passed directly, not its `.id` — `fromJSON` takes the
|
|
@@ -409,7 +445,7 @@ export interface AppAutomationParam {
|
|
|
409
445
|
*/
|
|
410
446
|
export interface AppAutomationWorkflow<TParams extends Record<string, AppAutomationParam> = {}> {
|
|
411
447
|
/**
|
|
412
|
-
* Runtime-injected discriminator stamped by `
|
|
448
|
+
* Runtime-injected discriminator stamped by `app` so the SDK
|
|
413
449
|
* can distinguish a workflow ref from its parent automation ref at
|
|
414
450
|
* tool-config time. Both shapes have the same required surface
|
|
415
451
|
* (`id: string`), so structural typing alone can't tell them apart
|
|
@@ -437,7 +473,7 @@ export interface AppAutomationWorkflow<TParams extends Record<string, AppAutomat
|
|
|
437
473
|
}
|
|
438
474
|
export interface AppAutomation<TParams extends Record<string, AppAutomationParam> = {}, TStatus extends "DRAFT" | "ACTIVE" = "ACTIVE"> {
|
|
439
475
|
/**
|
|
440
|
-
* Runtime-injected discriminator stamped by `
|
|
476
|
+
* Runtime-injected discriminator stamped by `app`. Pairs with
|
|
441
477
|
* `AppAutomationWorkflow.kind` to let the SDK reject a workflow ref
|
|
442
478
|
* passed where an automation ref was expected (e.g.
|
|
443
479
|
* `agentExecuteWorkflowTool({ automation: ... })`). See the comment
|
|
@@ -456,8 +492,8 @@ export interface AppAutomation<TParams extends Record<string, AppAutomationParam
|
|
|
456
492
|
/**
|
|
457
493
|
* Live published version of this automation. Populated by the agent
|
|
458
494
|
* from the `workflowCurrent` field of the antman app definition
|
|
459
|
-
* response when authoring `
|
|
460
|
-
* via `
|
|
495
|
+
* response when authoring `app({...})`. Read at pull time
|
|
496
|
+
* via `automation.fromJSON(myApp.automations.foo.workflowCurrent!)`.
|
|
461
497
|
* Carries the active version's parameters for `runAutomation`
|
|
462
498
|
* static-mode resolution.
|
|
463
499
|
*/
|
|
@@ -533,14 +569,13 @@ interface Deployable {
|
|
|
533
569
|
}
|
|
534
570
|
/**
|
|
535
571
|
* Narrow `Deployable` shapes, discriminated on the `kind` literal every
|
|
536
|
-
* builder output sets (`
|
|
537
|
-
* `"automation"
|
|
538
|
-
*
|
|
539
|
-
* errors instead of runtime surprises at deploy time.
|
|
572
|
+
* builder output sets (`agent` → `"agent"`, `automation` →
|
|
573
|
+
* `"automation"`). Used to constrain each App bag so a deployable of the
|
|
574
|
+
* wrong kind is a compile error instead of a runtime surprise at deploy time.
|
|
540
575
|
*
|
|
541
576
|
* These are structural (not imported from the builder modules) to avoid
|
|
542
577
|
* a circular import between `core/types/app.ts` and `agents/builder.ts`
|
|
543
|
-
* / `automations/builder.ts
|
|
578
|
+
* / `automations/builder.ts`. Every builder output
|
|
544
579
|
* satisfies the corresponding shape because its own `kind` field is a
|
|
545
580
|
* literal, not the wider `DeployableKind` union.
|
|
546
581
|
*/
|
|
@@ -550,13 +585,6 @@ export interface DeployableAgent extends Deployable {
|
|
|
550
585
|
export interface DeployableAutomation extends Deployable {
|
|
551
586
|
readonly kind: "automation";
|
|
552
587
|
}
|
|
553
|
-
export interface DeployableFlow extends Deployable {
|
|
554
|
-
readonly kind: "flow";
|
|
555
|
-
}
|
|
556
|
-
export interface AppFlow {
|
|
557
|
-
readonly id: string;
|
|
558
|
-
readonly name?: string;
|
|
559
|
-
}
|
|
560
588
|
export interface DeployableApprovalChain extends Deployable {
|
|
561
589
|
readonly kind: "approvalChain";
|
|
562
590
|
}
|
|
@@ -576,7 +604,7 @@ export interface AppApprovalChain {
|
|
|
576
604
|
* `Deployable` of the matching kind. A `Deployable`'s id is assigned at
|
|
577
605
|
* deploy time via the late-binding registry.
|
|
578
606
|
*/
|
|
579
|
-
export interface App<TFields extends Record<string, AppField> = {}, TAgents extends Record<string, AppAgent | DeployableAgent> = {}, TSearchTables extends Record<string, AppSearchTable | DeployableSearchTable> = {}, TAutomations extends Record<string, AppAutomation | DeployableAutomation> = {}, TPhoneServices extends Record<string, AppPhoneService> = {},
|
|
607
|
+
export interface App<TFields extends Record<string, AppField> = {}, TAgents extends Record<string, AppAgent | DeployableAgent> = {}, TSearchTables extends Record<string, AppSearchTable | DeployableSearchTable> = {}, TAutomations extends Record<string, AppAutomation | DeployableAutomation> = {}, TPhoneServices extends Record<string, AppPhoneService> = {}, TApprovalChains extends Record<string, AppApprovalChain | DeployableApprovalChain> = {}, TAgenticSkills extends Record<string, AppAgenticSkill | DeployableSkill> = {}, TStages extends Record<string, AppStage> = {}, TSystemFields extends Record<string, AppField> = {}> {
|
|
580
608
|
readonly id: string;
|
|
581
609
|
readonly name: string;
|
|
582
610
|
readonly fields: TFields;
|
|
@@ -604,7 +632,6 @@ export interface App<TFields extends Record<string, AppField> = {}, TAgents exte
|
|
|
604
632
|
readonly searchTables: TSearchTables;
|
|
605
633
|
readonly automations: TAutomations;
|
|
606
634
|
readonly phoneServices: TPhoneServices;
|
|
607
|
-
readonly flows: TFlows;
|
|
608
635
|
readonly approvalChains: TApprovalChains;
|
|
609
636
|
readonly agenticSkills: TAgenticSkills;
|
|
610
637
|
readonly stages: TStages;
|
|
@@ -631,8 +658,8 @@ export interface App<TFields extends Record<string, AppField> = {}, TAgents exte
|
|
|
631
658
|
readonly recordCreateDisplayBlocks?: DisplayBlockBag;
|
|
632
659
|
/**
|
|
633
660
|
* Produce a json-render `SerializedRenderTree` describing the app
|
|
634
|
-
* as a card with sections for
|
|
635
|
-
* children embed their own `FlowGraph` / `ActivityNode`; pre-loaded
|
|
661
|
+
* as a card with sections for automations, agents, and related entities.
|
|
662
|
+
* Built children embed their own `FlowGraph` / `ActivityNode`; pre-loaded
|
|
636
663
|
* `App*` refs render as single neutral leaf nodes (since their
|
|
637
664
|
* internal structure isn't available without a deploy round-trip).
|
|
638
665
|
*/
|
|
@@ -650,7 +677,7 @@ export type ValidateAppFields<TFields extends Record<string, AppField>> = {
|
|
|
650
677
|
[K in keyof TFields]: TFields[K]["name"] extends ReservedSystemFieldName ? HasKnownSystemSemanticTag<TFields[K]> extends true ? TFields[K] : _ReservedSystemFieldName<TFields[K]["name"] & string> : TFields[K];
|
|
651
678
|
};
|
|
652
679
|
/**
|
|
653
|
-
* Shared options shape consumed by both the data-only `
|
|
680
|
+
* Shared options shape consumed by both the data-only `app`
|
|
654
681
|
* (this file) and the deploy-attached wrapper in
|
|
655
682
|
* `src/aspects/index.ts`. Hoisting the options type to one
|
|
656
683
|
* declaration site means a future addition (e.g. a new optional
|
|
@@ -669,7 +696,7 @@ export type ValidateAppFields<TFields extends Record<string, AppField>> = {
|
|
|
669
696
|
* not legitimate fetched state). The agent should only see this
|
|
670
697
|
* flag in `generated/apps/*.ts` files; never write it by hand.
|
|
671
698
|
*/
|
|
672
|
-
export interface DefineAppOpts<TFields extends Record<string, AppField> = {}, TAgents extends Record<string, AppAgent | DeployableAgent> = {}, TSearchTables extends Record<string, AppSearchTable | DeployableSearchTable> = {}, TAutomations extends Record<string, AppAutomation | DeployableAutomation> = {}, TPhoneServices extends Record<string, AppPhoneService> = {},
|
|
699
|
+
export interface DefineAppOpts<TFields extends Record<string, AppField> = {}, TAgents extends Record<string, AppAgent | DeployableAgent> = {}, TSearchTables extends Record<string, AppSearchTable | DeployableSearchTable> = {}, TAutomations extends Record<string, AppAutomation | DeployableAutomation> = {}, TPhoneServices extends Record<string, AppPhoneService> = {}, TApprovalChains extends Record<string, AppApprovalChain | DeployableApprovalChain> = {}, TAgenticSkills extends Record<string, AppAgenticSkill | DeployableSkill> = {}, TStages extends Record<string, AppStage> = {}, TSnapshot extends boolean = false, TSystemFields extends Record<string, AppField> = {}> {
|
|
673
700
|
readonly id: string;
|
|
674
701
|
readonly name: string;
|
|
675
702
|
readonly snapshot?: TSnapshot;
|
|
@@ -686,7 +713,6 @@ export interface DefineAppOpts<TFields extends Record<string, AppField> = {}, TA
|
|
|
686
713
|
readonly searchTables?: TSearchTables;
|
|
687
714
|
readonly automations?: TAutomations;
|
|
688
715
|
readonly phoneServices?: TPhoneServices;
|
|
689
|
-
readonly flows?: TFlows;
|
|
690
716
|
readonly approvalChains?: TApprovalChains;
|
|
691
717
|
readonly agenticSkills?: TAgenticSkills;
|
|
692
718
|
readonly stages?: TStages;
|
|
@@ -703,7 +729,7 @@ export interface DefineAppOpts<TFields extends Record<string, AppField> = {}, TA
|
|
|
703
729
|
readonly cloudConnection?: AppCloudConnection;
|
|
704
730
|
/**
|
|
705
731
|
* Toggle the comments display block. Only available on snapshot
|
|
706
|
-
* sources (pulled via `
|
|
732
|
+
* sources (pulled via `app.fromJSON(...)`) because the EDK
|
|
707
733
|
* needs the full `displayBlocks` list to reconcile the comments
|
|
708
734
|
* block on update — a fresh create has no list and the platform
|
|
709
735
|
* auto-provisions display blocks without a comments block. To
|
|
@@ -716,7 +742,7 @@ export interface DefineAppOpts<TFields extends Record<string, AppField> = {}, TA
|
|
|
716
742
|
/** New-record-form layout blocks, keyed by author handle. */
|
|
717
743
|
readonly recordCreateDisplayBlocks?: DisplayBlockBag;
|
|
718
744
|
}
|
|
719
|
-
export declare function
|
|
745
|
+
export declare function app<const TFields extends Record<string, AppField> = {}, const TAgents extends Record<string, AppAgent | DeployableAgent> = {}, const TSearchTables extends Record<string, AppSearchTable | DeployableSearchTable> = {}, const TAutomations extends Record<string, AppAutomation | DeployableAutomation> = {}, const TPhoneServices extends Record<string, AppPhoneService> = {}, const TApprovalChains extends Record<string, AppApprovalChain | DeployableApprovalChain> = {}, const TAgenticSkills extends Record<string, AppAgenticSkill | DeployableSkill> = {}, const TStages extends Record<string, AppStage> = {}, const TSnapshot extends boolean = false, const TSystemFields extends Record<string, AppField> = {}>(opts: DefineAppOpts<TFields, TAgents, TSearchTables, TAutomations, TPhoneServices, TApprovalChains, TAgenticSkills, TStages, TSnapshot, TSystemFields>): App<TFields, TAgents, TSearchTables, TAutomations, TPhoneServices, TApprovalChains, TAgenticSkills, TStages, TSystemFields>;
|
|
720
746
|
export type FieldValueType<T extends string> = T extends "TEXT" | "HANDLE" | "HTML" | "RICH_TEXT" | "PICKLIST" ? string : T extends "NUMBER" | "DECIMAL" ? number : T extends "BOOLEAN" ? boolean : T extends "DATE" | "DATETIME" ? string : T extends "USER" | "USER_ID" | "GROUP" | "GROUP_ID" ? string : T extends "UUID" | "ASPECT_ID" | "ASPECT_RECORD_ID" | "ASPECT_FIELD_ID" ? string : T extends "JSON" | "OBJECT" ? unknown : string;
|
|
721
747
|
/**
|
|
722
748
|
* Value type for a single app field: static picklists use `PicklistOption` (one of `options` values);
|
|
@@ -746,7 +772,7 @@ export type FieldValueForAppField<F extends AppField<FieldScope>> = F extends {
|
|
|
746
772
|
* conditional mapped types, so `ctx.trigger.record.id` would fail to type-check
|
|
747
773
|
* with the intersection form.
|
|
748
774
|
*/
|
|
749
|
-
export type AspectRecord<A extends App> = A extends App<infer TFields, any, any, any, any, any, any, any,
|
|
775
|
+
export type AspectRecord<A extends App> = A extends App<infer TFields, any, any, any, any, any, any, any, infer TSystemFields> ? {
|
|
750
776
|
[K in keyof TFields | keyof TSystemFields | "id"]: K extends "id" ? string : K extends keyof TFields ? FieldValueForAppField<TFields[K]> : K extends keyof TSystemFields ? FieldValueForAppField<TSystemFields[K] & AppField> : never;
|
|
751
777
|
} : unknown;
|
|
752
778
|
/**
|
|
@@ -807,7 +833,7 @@ export declare function asRowProxy<T extends {
|
|
|
807
833
|
fields: Record<string, AppField>;
|
|
808
834
|
}>(source: T): RowProxy<T>;
|
|
809
835
|
/**
|
|
810
|
-
* Static picklist value in
|
|
836
|
+
* Static picklist value in actions: `values: { stage: (options) => options.Assigned }`.
|
|
811
837
|
* `options` is that field's `options` map (same object as `app.fields.<field>.options`).
|
|
812
838
|
*/
|
|
813
839
|
export type PicklistOptionsResolver<F extends AppField> = F extends {
|
|
@@ -821,7 +847,7 @@ export type PicklistOptionsResolver<F extends AppField> = F extends {
|
|
|
821
847
|
* Allowed `values` entry per field. Static picklists: **only** `(options) => options.X` or `Ref` (e.g. dynamic UUID).
|
|
822
848
|
* Other fields: `ValueOrRef` as usual.
|
|
823
849
|
*/
|
|
824
|
-
export type
|
|
850
|
+
export type AppFieldInputForAction<F extends AppField> = F extends {
|
|
825
851
|
type: "PICKLIST";
|
|
826
852
|
readonly options: Readonly<Record<string, PicklistOption>>;
|
|
827
853
|
} ? PicklistOptionsResolver<F> | Ref<FieldValueForAppField<F>> : F extends {
|
|
@@ -76,7 +76,7 @@ export function buildFieldTypeByIdMap(app) {
|
|
|
76
76
|
}
|
|
77
77
|
return m;
|
|
78
78
|
}
|
|
79
|
-
export function
|
|
79
|
+
export function app(opts) {
|
|
80
80
|
const built = {
|
|
81
81
|
id: opts.id,
|
|
82
82
|
name: opts.name,
|
|
@@ -86,7 +86,6 @@ export function defineApp(opts) {
|
|
|
86
86
|
searchTables: (opts.searchTables ?? {}),
|
|
87
87
|
automations: brandAutomations(opts.automations),
|
|
88
88
|
phoneServices: (opts.phoneServices ?? {}),
|
|
89
|
-
flows: (opts.flows ?? {}),
|
|
90
89
|
approvalChains: (opts.approvalChains ?? {}),
|
|
91
90
|
agenticSkills: (opts.agenticSkills ?? {}),
|
|
92
91
|
stages: (opts.stages ?? {}),
|
|
@@ -118,7 +117,7 @@ export function defineApp(opts) {
|
|
|
118
117
|
*
|
|
119
118
|
* Pure function — returns a new object graph rather than mutating
|
|
120
119
|
* the input. Non-`AppAutomation` entries (`DeployableAutomation`
|
|
121
|
-
* objects produced by `
|
|
120
|
+
* objects produced by `automation(...).build()`) pass through
|
|
122
121
|
* unchanged; the brand is only relevant for `AppAutomation` data
|
|
123
122
|
* refs.
|
|
124
123
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* AspectCategoryRef — a typed handle to an existing aspect category on
|
|
3
3
|
* the Elementum platform. Distinct from {@link AppCategory} (in
|
|
4
|
-
* `app.ts`), which is the by-name shape that `
|
|
4
|
+
* `app.ts`), which is the by-name shape that `app({ category })`
|
|
5
5
|
* accepts because the compose endpoint upserts categories by name.
|
|
6
6
|
*
|
|
7
7
|
* Some antman endpoints (notably `POST /v1/elements`) accept a
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*
|
|
12
12
|
* ```ts
|
|
13
13
|
* // connectors/categories.ts
|
|
14
|
-
* export const importedData =
|
|
14
|
+
* export const importedData = category({
|
|
15
15
|
* id: "3b7a6ef4-...",
|
|
16
16
|
* name: "Imported Data",
|
|
17
17
|
* });
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* // elements/tickets.ts
|
|
20
20
|
* import { importedData } from "../connectors/categories.js";
|
|
21
21
|
*
|
|
22
|
-
*
|
|
22
|
+
* element({
|
|
23
23
|
* category: importedData,
|
|
24
24
|
* // ...
|
|
25
25
|
* });
|
|
@@ -29,7 +29,7 @@ export interface AspectCategoryRef {
|
|
|
29
29
|
readonly id: string;
|
|
30
30
|
readonly name?: string;
|
|
31
31
|
}
|
|
32
|
-
export declare function
|
|
32
|
+
export declare function category(opts: {
|
|
33
33
|
id: string;
|
|
34
34
|
name?: string;
|
|
35
35
|
}): AspectCategoryRef;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* AspectCategoryRef — a typed handle to an existing aspect category on
|
|
3
3
|
* the Elementum platform. Distinct from {@link AppCategory} (in
|
|
4
|
-
* `app.ts`), which is the by-name shape that `
|
|
4
|
+
* `app.ts`), which is the by-name shape that `app({ category })`
|
|
5
5
|
* accepts because the compose endpoint upserts categories by name.
|
|
6
6
|
*
|
|
7
7
|
* Some antman endpoints (notably `POST /v1/elements`) accept a
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*
|
|
12
12
|
* ```ts
|
|
13
13
|
* // connectors/categories.ts
|
|
14
|
-
* export const importedData =
|
|
14
|
+
* export const importedData = category({
|
|
15
15
|
* id: "3b7a6ef4-...",
|
|
16
16
|
* name: "Imported Data",
|
|
17
17
|
* });
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
* // elements/tickets.ts
|
|
20
20
|
* import { importedData } from "../connectors/categories.js";
|
|
21
21
|
*
|
|
22
|
-
*
|
|
22
|
+
* element({
|
|
23
23
|
* category: importedData,
|
|
24
24
|
* // ...
|
|
25
25
|
* });
|
|
26
26
|
* ```
|
|
27
27
|
*/
|
|
28
|
-
export function
|
|
28
|
+
export function category(opts) {
|
|
29
29
|
return {
|
|
30
30
|
id: opts.id,
|
|
31
31
|
...(opts.name != null && { name: opts.name }),
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*
|
|
10
10
|
* ```ts
|
|
11
11
|
* // connectors/cloud-links.ts
|
|
12
|
-
* export const prodSnowflake =
|
|
12
|
+
* export const prodSnowflake = cloudLink({
|
|
13
13
|
* id: "ab100edd-b301-4a16-b269-e5347449ad9b",
|
|
14
14
|
* name: "Prod Snowflake",
|
|
15
15
|
* });
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* // search-tables/linked-tickets.ts
|
|
18
18
|
* import { prodSnowflake } from "../connectors/cloud-links.js";
|
|
19
19
|
*
|
|
20
|
-
*
|
|
20
|
+
* searchTable({
|
|
21
21
|
* kind: "linked",
|
|
22
22
|
* cloudLink: prodSnowflake,
|
|
23
23
|
* // ...
|
|
@@ -28,7 +28,7 @@ export interface CloudLink {
|
|
|
28
28
|
readonly id: string;
|
|
29
29
|
readonly name?: string;
|
|
30
30
|
}
|
|
31
|
-
export declare function
|
|
31
|
+
export declare function cloudLink(opts: {
|
|
32
32
|
id: string;
|
|
33
33
|
name?: string;
|
|
34
34
|
}): CloudLink;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*
|
|
10
10
|
* ```ts
|
|
11
11
|
* // connectors/cloud-links.ts
|
|
12
|
-
* export const prodSnowflake =
|
|
12
|
+
* export const prodSnowflake = cloudLink({
|
|
13
13
|
* id: "ab100edd-b301-4a16-b269-e5347449ad9b",
|
|
14
14
|
* name: "Prod Snowflake",
|
|
15
15
|
* });
|
|
@@ -17,14 +17,14 @@
|
|
|
17
17
|
* // search-tables/linked-tickets.ts
|
|
18
18
|
* import { prodSnowflake } from "../connectors/cloud-links.js";
|
|
19
19
|
*
|
|
20
|
-
*
|
|
20
|
+
* searchTable({
|
|
21
21
|
* kind: "linked",
|
|
22
22
|
* cloudLink: prodSnowflake,
|
|
23
23
|
* // ...
|
|
24
24
|
* });
|
|
25
25
|
* ```
|
|
26
26
|
*/
|
|
27
|
-
export function
|
|
27
|
+
export function cloudLink(opts) {
|
|
28
28
|
return {
|
|
29
29
|
id: opts.id,
|
|
30
30
|
...(opts.name != null && { name: opts.name }),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Display-block authoring types — the typed shapes an author places in
|
|
3
|
-
* `
|
|
4
|
-
* `
|
|
3
|
+
* `app({ displayBlocks: {...} })` (record-view layout) and
|
|
4
|
+
* `app({ recordCreateDisplayBlocks: {...} })` (new-record form).
|
|
5
5
|
*
|
|
6
6
|
* A display block controls how a record's fields and components are
|
|
7
7
|
* laid out in the UI. Each bag is keyed by an author-chosen handle;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Display-block authoring types — the typed shapes an author places in
|
|
3
|
-
* `
|
|
4
|
-
* `
|
|
3
|
+
* `app({ displayBlocks: {...} })` (record-view layout) and
|
|
4
|
+
* `app({ recordCreateDisplayBlocks: {...} })` (new-record form).
|
|
5
5
|
*
|
|
6
6
|
* A display block controls how a record's fields and components are
|
|
7
7
|
* laid out in the UI. Each bag is keyed by an author-chosen handle;
|
|
@@ -21,11 +21,11 @@ export function serializeRefData(data) {
|
|
|
21
21
|
// lowercases the root segment of any trigger ref in the result tree.
|
|
22
22
|
return { triggerReference: { name: data.name } };
|
|
23
23
|
case "task":
|
|
24
|
-
return { taskReference: { taskRefKey: data.
|
|
24
|
+
return { taskReference: { taskRefKey: data.actionRefKey, name: data.name } };
|
|
25
25
|
case "forEach":
|
|
26
26
|
return {
|
|
27
27
|
forEachReference: {
|
|
28
|
-
forEachTaskRefKey: data.
|
|
28
|
+
forEachTaskRefKey: data.forEachActionName,
|
|
29
29
|
name: data.name,
|
|
30
30
|
},
|
|
31
31
|
};
|
|
@@ -78,7 +78,7 @@ function serializeTemplate(data) {
|
|
|
78
78
|
* `resolveVariableParamMarkers` after all tasks are serialized.
|
|
79
79
|
*/
|
|
80
80
|
function serializeVariableParamMarker(data) {
|
|
81
|
-
return { __variableParamRef: { variableTaskRefKey: data.
|
|
81
|
+
return { __variableParamRef: { variableTaskRefKey: data.variableActionRefKey, name: data.name } };
|
|
82
82
|
}
|
|
83
83
|
/**
|
|
84
84
|
* Serialize a ValueOrRef to a ValueReferenceInput JSON.
|