@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
|
@@ -65,11 +65,22 @@ function renderOrgTs(extract) {
|
|
|
65
65
|
// they never appear in `bags` above. Models nest on their provider instead
|
|
66
66
|
// (`aiProviders.<provider>.models.<model>`), rendered specially here.
|
|
67
67
|
const aiProvidersLines = renderAiProvidersBag(extract);
|
|
68
|
+
const supportedFunctionsByCloudLink = new Map();
|
|
69
|
+
for (const fn of extract.storedFunctions ?? []) {
|
|
70
|
+
const mapped = supportedStoredFunction(fn);
|
|
71
|
+
if (mapped === undefined)
|
|
72
|
+
continue;
|
|
73
|
+
const functions = supportedFunctionsByCloudLink.get(fn.cloudLinkName) ?? [];
|
|
74
|
+
functions.push({ fn, mapped });
|
|
75
|
+
supportedFunctionsByCloudLink.set(fn.cloudLinkName, functions);
|
|
76
|
+
}
|
|
68
77
|
const factories = new Set(["orgCatalog", ...bags.map((b) => b.factory)]);
|
|
69
78
|
if (aiProvidersLines.length > 0) {
|
|
70
|
-
factories.add("
|
|
79
|
+
factories.add("aiProvider");
|
|
71
80
|
factories.add("connectorRef");
|
|
72
81
|
}
|
|
82
|
+
if (supportedFunctionsByCloudLink.size > 0)
|
|
83
|
+
factories.add("storedFunctionRef");
|
|
73
84
|
const lines = [
|
|
74
85
|
"// Org reference identities from `elementum pull org --data-only` — refresh by re-running it.",
|
|
75
86
|
"// Each key IS the identity's terraform label in camelCase: tfLabel = tsLabelToTfLabel(key)",
|
|
@@ -82,13 +93,60 @@ function renderOrgTs(extract) {
|
|
|
82
93
|
for (const { bag, factory, entries } of bags) {
|
|
83
94
|
lines.push(` ${bag}: {`);
|
|
84
95
|
for (const e of entries) {
|
|
85
|
-
|
|
96
|
+
if (bag !== "cloudLinks") {
|
|
97
|
+
lines.push(` ${e.tsLabel}: ${factory}({ name: ${q(e.name)} }),`);
|
|
98
|
+
continue;
|
|
99
|
+
}
|
|
100
|
+
const functions = supportedFunctionsByCloudLink.get(e.name) ?? [];
|
|
101
|
+
if (functions.length === 0) {
|
|
102
|
+
lines.push(` ${e.tsLabel}: ${factory}({ name: ${q(e.name)} }),`);
|
|
103
|
+
continue;
|
|
104
|
+
}
|
|
105
|
+
lines.push(` ${e.tsLabel}: ${factory}({ name: ${q(e.name)}, storedFunctions: {`);
|
|
106
|
+
const used = new Set();
|
|
107
|
+
for (const { fn, mapped } of functions) {
|
|
108
|
+
const key = tfLabelToTsLabel(sanitizeName(fn.name));
|
|
109
|
+
if (used.has(key))
|
|
110
|
+
throw new OrgExtractError(`cloud link ${q(e.name)} has duplicate stored-function key ${q(key)}`);
|
|
111
|
+
used.add(key);
|
|
112
|
+
lines.push(` ${key}: storedFunctionRef({ name: ${q(fn.name)}, parameters: ${JSON.stringify(mapped.parameters)}, result: ${q(mapped.result)} }),`);
|
|
113
|
+
}
|
|
114
|
+
lines.push(" } }),");
|
|
86
115
|
}
|
|
87
116
|
lines.push(" },");
|
|
88
117
|
}
|
|
89
118
|
lines.push("});", "");
|
|
90
119
|
return lines.join("\n");
|
|
91
120
|
}
|
|
121
|
+
const STORED_FUNCTION_TYPE = {
|
|
122
|
+
AUTO_INCREMENT: "number",
|
|
123
|
+
LONG: "number",
|
|
124
|
+
BOOLEAN: "bool",
|
|
125
|
+
DATE: "date",
|
|
126
|
+
DATETIME: "datetime",
|
|
127
|
+
DECIMAL: "decimal",
|
|
128
|
+
HANDLE: "handle",
|
|
129
|
+
JSON: "json",
|
|
130
|
+
TEXT: "text",
|
|
131
|
+
UUID: "text",
|
|
132
|
+
BINARY: undefined,
|
|
133
|
+
};
|
|
134
|
+
function supportedStoredFunction(fn) {
|
|
135
|
+
const problem = fn.functionType !== "USER_DEFINED_FUNCTION" ? `type ${fn.functionType}`
|
|
136
|
+
: !fn.configured ? "not configured"
|
|
137
|
+
: fn.returnType === "TABLE" ? "table result"
|
|
138
|
+
: STORED_FUNCTION_TYPE[fn.returnType] === undefined ? `unsupported result ${fn.returnType}`
|
|
139
|
+
: fn.parameterTypes.some((type) => STORED_FUNCTION_TYPE[type] === undefined) ? `unsupported argument in ${fn.parameterTypes.join(", ")}`
|
|
140
|
+
: undefined;
|
|
141
|
+
if (problem !== undefined) {
|
|
142
|
+
console.error(`[elementum] skipping stored function ${fn.name}: ${problem}`);
|
|
143
|
+
return undefined;
|
|
144
|
+
}
|
|
145
|
+
return {
|
|
146
|
+
parameters: fn.parameterTypes.map((type) => STORED_FUNCTION_TYPE[type]),
|
|
147
|
+
result: STORED_FUNCTION_TYPE[fn.returnType],
|
|
148
|
+
};
|
|
149
|
+
}
|
|
92
150
|
/**
|
|
93
151
|
* Connectors nest one level under their provider — model names alone collide
|
|
94
152
|
* across providers, so `aiProviders.<provider>.models.<model>` disambiguates
|
|
@@ -141,10 +199,10 @@ function renderAiProvidersBag(extract) {
|
|
|
141
199
|
}
|
|
142
200
|
const models = (modelsByProviderKey.get(providerKey) ?? []).sort((a, b) => a.modelKey.localeCompare(b.modelKey));
|
|
143
201
|
if (models.length === 0) {
|
|
144
|
-
lines.push(` ${providerKey}:
|
|
202
|
+
lines.push(` ${providerKey}: aiProvider({ name: ${q(provider.name)}, type: ${q(type)} }),`);
|
|
145
203
|
continue;
|
|
146
204
|
}
|
|
147
|
-
lines.push(` ${providerKey}:
|
|
205
|
+
lines.push(` ${providerKey}: aiProvider({ name: ${q(provider.name)}, type: ${q(type)}, models: {`);
|
|
148
206
|
for (const { modelKey, connector } of models) {
|
|
149
207
|
lines.push(` ${modelKey}: connectorRef({ name: ${q(connector.name)} }),`);
|
|
150
208
|
}
|
|
@@ -203,6 +261,7 @@ function renderBarrel(appHandles, elementHandles, tableHandles) {
|
|
|
203
261
|
lines.push(" cloudLinks: org.cloudLinks,");
|
|
204
262
|
lines.push(" categories: org.categories,");
|
|
205
263
|
lines.push(" groups: org.groups,");
|
|
264
|
+
lines.push(" phoneProviders: org.phoneProviders,");
|
|
206
265
|
if (tableHandles.length > 0) {
|
|
207
266
|
lines.push(" tables: {");
|
|
208
267
|
for (const h of tableHandles)
|
|
@@ -30,6 +30,6 @@ export declare function asNamedRef(ref: unknown): {
|
|
|
30
30
|
export declare function namedOnlyFactoryEntry(factoryName: string): (args: import("../graph/types.js").CatalogRenderArgs) => CatalogRenderResult;
|
|
31
31
|
/**
|
|
32
32
|
* `{ name }` with parent omitted — appCatalog injects parent from the root
|
|
33
|
-
* (
|
|
33
|
+
* (search tables).
|
|
34
34
|
*/
|
|
35
35
|
export declare function rootParentFactoryEntry(factoryName: string, extraParts?: (ref: unknown) => readonly string[]): (args: import("../graph/types.js").CatalogRenderArgs) => CatalogRenderResult;
|
|
@@ -66,7 +66,7 @@ export function namedOnlyFactoryEntry(factoryName) {
|
|
|
66
66
|
}
|
|
67
67
|
/**
|
|
68
68
|
* `{ name }` with parent omitted — appCatalog injects parent from the root
|
|
69
|
-
* (
|
|
69
|
+
* (search tables).
|
|
70
70
|
*/
|
|
71
71
|
export function rootParentFactoryEntry(factoryName, extraParts) {
|
|
72
72
|
return (args) => {
|
|
@@ -47,15 +47,21 @@ export function renderCatalog(root, refs, _automationTriggerKinds, ownFile) {
|
|
|
47
47
|
const entryIndent = isApp ? " " : " ";
|
|
48
48
|
for (const m of liveMeta) {
|
|
49
49
|
const kindRefs = refs.filter((r) => r.__kind === m.refKind);
|
|
50
|
+
let everyEntryUsesVariantFactory = kindRefs.length > 0;
|
|
50
51
|
for (const ref of kindRefs) {
|
|
51
52
|
const rendered = m.renderEntry({
|
|
52
53
|
ref,
|
|
53
54
|
keyName: ref.refName,
|
|
54
55
|
baseIndent: entryIndent,
|
|
55
56
|
});
|
|
57
|
+
if (rendered.omitsDefaultFactory !== true) {
|
|
58
|
+
everyEntryUsesVariantFactory = false;
|
|
59
|
+
}
|
|
56
60
|
for (const f of rendered.extraFactories ?? [])
|
|
57
61
|
factoryNames.add(f);
|
|
58
62
|
}
|
|
63
|
+
if (everyEntryUsesVariantFactory)
|
|
64
|
+
factoryNames.delete(m.factoryName);
|
|
59
65
|
}
|
|
60
66
|
const lines = [];
|
|
61
67
|
if (ownFile !== undefined) {
|
|
@@ -71,8 +77,8 @@ export function renderCatalog(root, refs, _automationTriggerKinds, ownFile) {
|
|
|
71
77
|
}
|
|
72
78
|
lines.push(`export const ${root.refName} = ${catalogFn}(`);
|
|
73
79
|
lines.push(ownFile !== undefined
|
|
74
|
-
? ` { refName: __own.refName, name: __own.name },`
|
|
75
|
-
: ` { refName: ${JSON.stringify(root.refName)}, name: ${JSON.stringify(root.name)} },`);
|
|
80
|
+
? ` { refName: __own.refName, name: __own.name, ...(__own.namespace !== undefined ? { namespace: __own.namespace } : {}) },`
|
|
81
|
+
: ` { refName: ${JSON.stringify(root.refName)}, name: ${JSON.stringify(root.name)}${root.namespace !== undefined ? `, namespace: ${JSON.stringify(root.namespace)}` : ""} },`);
|
|
76
82
|
lines.push(` {`);
|
|
77
83
|
for (const m of usedMeta) {
|
|
78
84
|
const bag = bagName(m.refKind);
|
|
@@ -30,17 +30,24 @@ export function slimToken(token) {
|
|
|
30
30
|
out.name = token.name;
|
|
31
31
|
if (token.parent !== undefined)
|
|
32
32
|
out.parent = token.parent;
|
|
33
|
+
if ((token.__kind === "app" || token.__kind === "element") && typeof token.namespace === "string") {
|
|
34
|
+
out.namespace = token.namespace;
|
|
35
|
+
}
|
|
36
|
+
if ((token.parentKind === "app" || token.parentKind === "element"))
|
|
37
|
+
out.parentKind = token.parentKind;
|
|
38
|
+
if (typeof token.parentName === "string")
|
|
39
|
+
out.parentName = token.parentName;
|
|
40
|
+
if (typeof token.parentNamespace === "string")
|
|
41
|
+
out.parentNamespace = token.parentNamespace;
|
|
33
42
|
if ((token.__kind === "approvalChain" || token.__kind === "skill") && typeof token.unresolvedId === "string") {
|
|
34
43
|
out.unresolvedId = token.unresolvedId;
|
|
35
44
|
}
|
|
45
|
+
if (token.__kind === "skill" && typeof token.parentName === "string")
|
|
46
|
+
out.parentName = token.parentName;
|
|
36
47
|
// The terraform path derives a field's resource type from its authoring
|
|
37
48
|
// type — canonical field metadata, not a barrel bag.
|
|
38
49
|
if (token.__kind === "field" && typeof token.fieldType === "string")
|
|
39
50
|
out.fieldType = token.fieldType;
|
|
40
|
-
if (token.__kind === "field" && (token.parentKind === "app" || token.parentKind === "element"))
|
|
41
|
-
out.parentKind = token.parentKind;
|
|
42
|
-
if (token.__kind === "field" && typeof token.parentName === "string")
|
|
43
|
-
out.parentName = token.parentName;
|
|
44
51
|
// Same reasoning for a file reader: build needs to know which of the
|
|
45
52
|
// excel/json/text/xml/ai resource types backs it to emit the right
|
|
46
53
|
// `elementum_<type>_file_reader.<label>.id` reference - without this,
|
|
@@ -49,6 +56,13 @@ export function slimToken(token) {
|
|
|
49
56
|
// task build.
|
|
50
57
|
if (token.__kind === "documentModel" && typeof token.readerType === "string")
|
|
51
58
|
out.readerType = token.readerType;
|
|
59
|
+
// Search-table resource selection is generated by catalog factories, not
|
|
60
|
+
// authored as public API. Preserve the private discriminator so tool HCL
|
|
61
|
+
// can reference the correct resource family.
|
|
62
|
+
if (token.__kind === "searchTable" &&
|
|
63
|
+
(token.__variant === "snowflake" || token.__variant === "linked" || token.__variant === "table")) {
|
|
64
|
+
out.__variant = token.__variant;
|
|
65
|
+
}
|
|
52
66
|
if (token.__kind === "field" && Array.isArray(token.options)) {
|
|
53
67
|
out.options = token.options.filter((option) => typeof option === "string");
|
|
54
68
|
}
|
|
@@ -27,31 +27,32 @@ import type { AiProviderLlmModel, AiProviderType } from "./ai-provider-models.js
|
|
|
27
27
|
/**
|
|
28
28
|
* Kinds a catalog fragment can describe:
|
|
29
29
|
* - behavioral, app-owned, deployable — `automation` / `agent` / `skill`;
|
|
30
|
-
* - reference-only, app-owned
|
|
30
|
+
* - reference-only, app- or element-owned — `field`;
|
|
31
|
+
* - reference-only, element- or table-owned — `searchTable`;
|
|
31
32
|
* - reference-only, org-owned — `cloudLink` / `connector`;
|
|
32
|
-
* - the
|
|
33
|
+
* - the app or element itself, resolved by
|
|
33
34
|
* handle against the app registry rather than a state scope;
|
|
34
35
|
* - nested under an automation — `triggerParameter` / `outputProperty`,
|
|
35
36
|
* resolved to the current-version param/output id via the parent
|
|
36
37
|
* automation's state binding.
|
|
37
38
|
*/
|
|
38
|
-
export type CatalogRefKind = "automation" | "agent" | "skill" | "flow" | "approvalChain" | "table" | "tableColumn" | "cloudLink" | "field" | "searchTable" | "documentModel" | "documentModelField" | "connector" | "aiProvider" | "category" | "group" | "app" | "element" | "triggerParameter" | "outputProperty";
|
|
39
|
+
export type CatalogRefKind = "automation" | "agent" | "agent-evaluation" | "chart" | "dashboard" | "skill" | "visual-flow" | "approvalChain" | "table" | "tableColumn" | "cloudLink" | "storedFunction" | "field" | "searchTable" | "documentModel" | "documentModelField" | "connector" | "aiProvider" | "category" | "group" | "phoneProvider" | "phone-service" | "datamine" | "app" | "element" | "task" | "triggerParameter" | "outputProperty";
|
|
39
40
|
/**
|
|
40
41
|
* The reference surface for a catalog entity. `handle` is the stable join key
|
|
41
42
|
* (no id); `name` is for readability/diagnostics, never a match key.
|
|
42
43
|
*/
|
|
43
|
-
export interface CatalogRef<K extends CatalogRefKind = CatalogRefKind> {
|
|
44
|
+
export interface CatalogRef<K extends CatalogRefKind = CatalogRefKind, RefName extends string = string, Parent extends string | undefined = string | undefined> {
|
|
44
45
|
readonly __kind: K;
|
|
45
|
-
readonly refName:
|
|
46
|
+
readonly refName: RefName;
|
|
46
47
|
readonly name: string;
|
|
47
48
|
/**
|
|
48
|
-
* The owning **parent**'s handle — the
|
|
49
|
+
* The owning **parent**'s handle — the app, element, or table that
|
|
49
50
|
* owns this entity — so a reference is self-describing ("app X's automation
|
|
50
51
|
* foo") and an entity can derive its parent from its own ref. Absent for
|
|
51
52
|
* org-owned kinds (cloud links, connectors), which resolve against the single
|
|
52
53
|
* org scope by kind.
|
|
53
54
|
*/
|
|
54
|
-
readonly parent?:
|
|
55
|
+
readonly parent?: Parent;
|
|
55
56
|
}
|
|
56
57
|
export interface AutomationRef<TTrigger = unknown, TOutput = unknown> extends CatalogRef<"automation"> {
|
|
57
58
|
/**
|
|
@@ -65,8 +66,17 @@ export interface AutomationRef<TTrigger = unknown, TOutput = unknown> extends Ca
|
|
|
65
66
|
*/
|
|
66
67
|
readonly output?: TOutput;
|
|
67
68
|
}
|
|
68
|
-
export type AgentRef = CatalogRef<"agent">;
|
|
69
|
+
export type AgentRef<Parent extends string = string, RefName extends string = string> = CatalogRef<"agent", RefName, Parent>;
|
|
70
|
+
export type AgentEvaluationRef<Parent extends string = string, RefName extends string = string> = CatalogRef<"agent-evaluation", RefName, Parent>;
|
|
71
|
+
export type ChartRef<Parent extends string = string, RefName extends string = string> = CatalogRef<"chart", RefName, Parent>;
|
|
72
|
+
export type DashboardRef<Parent extends string = string, RefName extends string = string> = CatalogRef<"dashboard", RefName, Parent>;
|
|
69
73
|
export interface SkillRef extends CatalogRef<"skill"> {
|
|
74
|
+
/**
|
|
75
|
+
* Display name of the app that owns this skill. Generated app catalogs
|
|
76
|
+
* stamp it alongside `parent`, giving cross-app skill lookups the stable
|
|
77
|
+
* owner identity needed to resolve `app_id` without exposing a platform id.
|
|
78
|
+
*/
|
|
79
|
+
readonly parentName?: string;
|
|
70
80
|
/**
|
|
71
81
|
* A raw platform id, when the export carries a `skill_ids`/
|
|
72
82
|
* `preloaded_skill_ids` entry that resolves to neither a self-app resource
|
|
@@ -77,24 +87,30 @@ export interface SkillRef extends CatalogRef<"skill"> {
|
|
|
77
87
|
*/
|
|
78
88
|
readonly unresolvedId?: string;
|
|
79
89
|
}
|
|
80
|
-
export
|
|
81
|
-
export interface ApprovalChainRef extends CatalogRef<"approvalChain"> {
|
|
90
|
+
export interface ApprovalChainRef<Parent extends string = string, RefName extends string = string> extends CatalogRef<"approvalChain", RefName, Parent> {
|
|
82
91
|
/** Provider id retained only when no managed/data HCL reference exists. */
|
|
83
92
|
readonly unresolvedId?: string;
|
|
84
93
|
}
|
|
85
|
-
|
|
94
|
+
/** Public name for the provider's `elementum_approval_process` reference. */
|
|
95
|
+
export type ApprovalProcessRef<Parent extends string = string, RefName extends string = string> = ApprovalChainRef<Parent, RefName>;
|
|
96
|
+
export interface TableColumnRef<Parent extends string = string, RefName extends string = string> extends CatalogRef<"tableColumn", RefName, Parent> {
|
|
86
97
|
/** Owning table handle. */
|
|
87
|
-
readonly parent:
|
|
98
|
+
readonly parent: Parent;
|
|
88
99
|
readonly fieldType?: string;
|
|
89
100
|
readonly tags?: readonly string[];
|
|
90
101
|
}
|
|
91
|
-
export interface TableRef extends CatalogRef<"table"> {
|
|
92
|
-
readonly columns?:
|
|
102
|
+
export interface TableRef<RefName extends string = string, Columns extends Readonly<Record<string, TableColumnRef<RefName>>> = Readonly<Record<string, TableColumnRef<RefName>>>, Datamines extends Readonly<Record<string, DatamineRef<RefName>>> = Readonly<Record<string, DatamineRef<RefName>>>> extends CatalogRef<"table", RefName> {
|
|
103
|
+
readonly columns?: Columns;
|
|
104
|
+
readonly datamines?: Datamines;
|
|
93
105
|
/** Raw category id, when imported. Categories are not tokenized yet. */
|
|
94
106
|
readonly categoryId?: string;
|
|
95
107
|
}
|
|
96
|
-
export type SearchTableRef = CatalogRef<"searchTable">;
|
|
97
|
-
export type
|
|
108
|
+
export type SearchTableRef<Parent extends string = string, RefName extends string = string> = CatalogRef<"searchTable", RefName, Parent>;
|
|
109
|
+
export type DatamineRef<Parent extends string = string, RefName extends string = string> = CatalogRef<"datamine", RefName, Parent>;
|
|
110
|
+
/** Public reference to an AI service/model selected for runtime use. */
|
|
111
|
+
export type AiServiceRef = CatalogRef<"connector">;
|
|
112
|
+
/** @internal Backend compatibility name. Prefer {@link AiServiceRef} on authoring surfaces. */
|
|
113
|
+
export type ConnectorRef = AiServiceRef;
|
|
98
114
|
/**
|
|
99
115
|
* An AI provider reference that also exposes its enabled connectors as a
|
|
100
116
|
* nested ref bag — models are referenceable *on* the provider
|
|
@@ -116,20 +132,40 @@ export interface AiProviderRef<T extends AiProviderType = AiProviderType> extend
|
|
|
116
132
|
*/
|
|
117
133
|
readonly models?: Readonly<Record<string, ConnectorRef | AiProviderLlmModel<T>>>;
|
|
118
134
|
}
|
|
119
|
-
|
|
135
|
+
/** Scalar calculation families supported by configured stored functions. */
|
|
136
|
+
export type StoredFunctionScalarType = "number" | "decimal" | "bool" | "date" | "datetime" | "handle" | "json" | "text";
|
|
137
|
+
export interface StoredFunctionRef<Parameters extends readonly StoredFunctionScalarType[] = readonly StoredFunctionScalarType[], Result extends StoredFunctionScalarType = StoredFunctionScalarType> extends CatalogRef<"storedFunction"> {
|
|
138
|
+
readonly parent: string;
|
|
139
|
+
readonly parameterTypes: Parameters;
|
|
140
|
+
readonly resultType: Result;
|
|
141
|
+
}
|
|
142
|
+
export interface CloudLinkRef<Functions extends Readonly<Record<string, StoredFunctionRef>> = Readonly<Record<string, StoredFunctionRef>>> extends CatalogRef<"cloudLink"> {
|
|
143
|
+
readonly storedFunctions?: Functions;
|
|
144
|
+
}
|
|
120
145
|
/** Org-owned reference identities from `elementum pull org --data-only` (pristine-refactor). */
|
|
121
146
|
export type CategoryRef = CatalogRef<"category">;
|
|
122
147
|
export type GroupRef = CatalogRef<"group">;
|
|
123
|
-
|
|
124
|
-
export type
|
|
148
|
+
export type PhoneProviderRef = CatalogRef<"phoneProvider">;
|
|
149
|
+
export type PhoneServiceRef<Parent extends string = string, RefName extends string = string> = CatalogRef<"phone-service", RefName, Parent>;
|
|
150
|
+
/** Typed references to app and element catalog roots. */
|
|
151
|
+
export type AppCatalogRef<RefName extends string = string> = CatalogRef<"app", RefName> & {
|
|
152
|
+
/** Stable cross-organization lookup identity. Pulled/generated refs always carry it. */
|
|
153
|
+
readonly namespace?: string;
|
|
154
|
+
};
|
|
155
|
+
export type ElementCatalogRef<RefName extends string = string> = CatalogRef<"element", RefName> & {
|
|
156
|
+
/** Stable cross-organization lookup identity. Pulled/generated refs always carry it. */
|
|
157
|
+
readonly namespace?: string;
|
|
158
|
+
};
|
|
159
|
+
export type AppOrElementRef<RefName extends string = string> = AppCatalogRef<RefName> | ElementCatalogRef<RefName>;
|
|
125
160
|
/**
|
|
126
161
|
* A field reference. Beyond the shared surface it carries `fieldType` (the
|
|
127
162
|
* platform field type — `"TEXT"`, `"PICKLIST"`, …) so builders can constrain
|
|
128
163
|
* filters/mappings at compile time. Authoring-only: the wire boundary resolves
|
|
129
164
|
* the token to the field id and drops the rest.
|
|
130
165
|
*/
|
|
131
|
-
export interface FieldRef extends CatalogRef<"field"> {
|
|
132
|
-
readonly
|
|
166
|
+
export interface FieldRef<Parent extends string = string, RefName extends string = string, FieldType extends string = string> extends CatalogRef<"field", RefName, Parent> {
|
|
167
|
+
readonly parent: Parent;
|
|
168
|
+
readonly fieldType: FieldType;
|
|
133
169
|
readonly tags?: readonly string[];
|
|
134
170
|
readonly options?: readonly string[];
|
|
135
171
|
/**
|
|
@@ -147,6 +183,8 @@ export interface FieldRef extends CatalogRef<"field"> {
|
|
|
147
183
|
* refName) doesn't carry.
|
|
148
184
|
*/
|
|
149
185
|
readonly parentName?: string;
|
|
186
|
+
/** Namespace of the owning app/element, used for portable foreign-owner lookup. */
|
|
187
|
+
readonly parentNamespace?: string;
|
|
150
188
|
}
|
|
151
189
|
/** Platform-owned user attributes accepted by user-search task filters. */
|
|
152
190
|
export declare const USER_FIELD_KEYS: readonly ["firstName", "email", "jobTitle", "lastName"];
|
|
@@ -197,6 +235,9 @@ export interface FileReaderCatalogRef extends CatalogRef<"documentModel"> {
|
|
|
197
235
|
* in the barrel. `parent` on each nested ref is this automation's handle.
|
|
198
236
|
*/
|
|
199
237
|
export interface AutomationCatalogRef extends CatalogRef<"automation"> {
|
|
238
|
+
readonly parentKind?: "app" | "element";
|
|
239
|
+
readonly parentName?: string;
|
|
240
|
+
readonly parentNamespace?: string;
|
|
200
241
|
readonly trigger?: Readonly<Record<string, TriggerParameterRef>>;
|
|
201
242
|
readonly outputs?: Readonly<Record<string, OutputPropertyRef>>;
|
|
202
243
|
}
|
|
@@ -204,15 +245,14 @@ export interface AutomationCatalogRef extends CatalogRef<"automation"> {
|
|
|
204
245
|
* Which scope resolves a kind's id at deploy:
|
|
205
246
|
* - `"app"` — the app's v2 state (app-owned entities + fields/tables);
|
|
206
247
|
* - `"org"` — the org's v2 state (cloud links, connectors);
|
|
207
|
-
* - `"registry"` — the app registry (`apps.v2.json`), for
|
|
248
|
+
* - `"registry"` — the app registry (`apps.v2.json`), for app/element self-refs
|
|
208
249
|
* (`app` / `element`), keyed by handle → id rather than a state binding.
|
|
209
250
|
*/
|
|
210
251
|
export declare const REF_SCOPE: Readonly<Record<CatalogRefKind, "app" | "org" | "registry">>;
|
|
211
252
|
/**
|
|
212
253
|
* Kinds the platform can update in place (PUT). A bound entity of any other
|
|
213
254
|
* kind that has changed can't be updated — the deploy must surface that and
|
|
214
|
-
* the user re-creates it.
|
|
215
|
-
* PUT); the reference-only kinds (field/cloudLink/connector) and aspect
|
|
255
|
+
* the user re-creates it. The reference-only kinds (field/cloudLink/connector) and app/element
|
|
216
256
|
* self-refs never deploy through v2, so they're simply absent.
|
|
217
257
|
*
|
|
218
258
|
* `searchTable` is here but only *partially* updatable — the platform's PUT
|
|
@@ -29,36 +29,43 @@ export const USER_FIELD_KEYS = ["firstName", "email", "jobTitle", "lastName"];
|
|
|
29
29
|
* Which scope resolves a kind's id at deploy:
|
|
30
30
|
* - `"app"` — the app's v2 state (app-owned entities + fields/tables);
|
|
31
31
|
* - `"org"` — the org's v2 state (cloud links, connectors);
|
|
32
|
-
* - `"registry"` — the app registry (`apps.v2.json`), for
|
|
32
|
+
* - `"registry"` — the app registry (`apps.v2.json`), for app/element self-refs
|
|
33
33
|
* (`app` / `element`), keyed by handle → id rather than a state binding.
|
|
34
34
|
*/
|
|
35
35
|
export const REF_SCOPE = {
|
|
36
36
|
automation: "app",
|
|
37
37
|
agent: "app",
|
|
38
|
+
"agent-evaluation": "app",
|
|
39
|
+
chart: "app",
|
|
40
|
+
dashboard: "app",
|
|
38
41
|
skill: "app",
|
|
39
|
-
flow: "app",
|
|
42
|
+
"visual-flow": "app",
|
|
40
43
|
approvalChain: "app",
|
|
41
44
|
table: "org",
|
|
42
45
|
tableColumn: "org",
|
|
43
46
|
cloudLink: "org",
|
|
47
|
+
storedFunction: "org",
|
|
44
48
|
field: "app",
|
|
45
49
|
searchTable: "app",
|
|
50
|
+
datamine: "app",
|
|
46
51
|
documentModel: "app",
|
|
47
52
|
documentModelField: "app",
|
|
48
53
|
connector: "org",
|
|
49
54
|
aiProvider: "org",
|
|
50
55
|
category: "org",
|
|
51
56
|
group: "org",
|
|
57
|
+
phoneProvider: "org",
|
|
58
|
+
"phone-service": "app",
|
|
52
59
|
app: "registry",
|
|
53
60
|
element: "registry",
|
|
61
|
+
task: "registry",
|
|
54
62
|
triggerParameter: "app",
|
|
55
63
|
outputProperty: "app",
|
|
56
64
|
};
|
|
57
65
|
/**
|
|
58
66
|
* Kinds the platform can update in place (PUT). A bound entity of any other
|
|
59
67
|
* kind that has changed can't be updated — the deploy must surface that and
|
|
60
|
-
* the user re-creates it.
|
|
61
|
-
* PUT); the reference-only kinds (field/cloudLink/connector) and aspect
|
|
68
|
+
* the user re-creates it. The reference-only kinds (field/cloudLink/connector) and app/element
|
|
62
69
|
* self-refs never deploy through v2, so they're simply absent.
|
|
63
70
|
*
|
|
64
71
|
* `searchTable` is here but only *partially* updatable — the platform's PUT
|
|
@@ -76,6 +83,7 @@ export const REF_SCOPE = {
|
|
|
76
83
|
export const REF_UPDATABLE = new Set([
|
|
77
84
|
"automation",
|
|
78
85
|
"agent",
|
|
86
|
+
"agent-evaluation",
|
|
79
87
|
"skill",
|
|
80
88
|
"approvalChain",
|
|
81
89
|
"table",
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* App composer for `App.toUI()`.
|
|
3
3
|
*
|
|
4
|
-
* Walks an `App`'s
|
|
4
|
+
* Walks an `App`'s automations / agents bags and emits a single
|
|
5
5
|
* json-render `SerializedRenderTree` containing a top-level `Card` with
|
|
6
6
|
* a vertical `Stack` of sections — one section per entity kind, each
|
|
7
|
-
* with a heading and either a nested `FlowGraph` (for
|
|
8
|
-
*
|
|
7
|
+
* with a heading and either a nested `FlowGraph` (for automations) or a
|
|
8
|
+
* `Grid` of `ActivityNode`s (for agents).
|
|
9
9
|
*
|
|
10
10
|
* Both built deployables (with a `toRenderNode()` method) and pre-loaded
|
|
11
11
|
* `App*` reference shapes are accepted. References render as a single
|
|
12
12
|
* neutral activity node since their internal structure isn't available
|
|
13
13
|
* client-side.
|
|
14
14
|
*/
|
|
15
|
-
import { type SerializedRenderTree } from "
|
|
15
|
+
import { type SerializedRenderTree } from "./render-tree.js";
|
|
16
16
|
import type { App } from "./types/app.js";
|
|
17
17
|
/**
|
|
18
18
|
* Compose an `App` into a single json-render document. The top-level
|
|
19
|
-
* `Card` carries the app name; nested sections render
|
|
20
|
-
*
|
|
19
|
+
* `Card` carries the app name; nested sections render automations as graphs
|
|
20
|
+
* and agents as a 3-column card grid.
|
|
21
21
|
*/
|
|
22
22
|
export declare function appToUi(app: App): SerializedRenderTree;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* App composer for `App.toUI()`.
|
|
3
3
|
*
|
|
4
|
-
* Walks an `App`'s
|
|
4
|
+
* Walks an `App`'s automations / agents bags and emits a single
|
|
5
5
|
* json-render `SerializedRenderTree` containing a top-level `Card` with
|
|
6
6
|
* a vertical `Stack` of sections — one section per entity kind, each
|
|
7
|
-
* with a heading and either a nested `FlowGraph` (for
|
|
8
|
-
*
|
|
7
|
+
* with a heading and either a nested `FlowGraph` (for automations) or a
|
|
8
|
+
* `Grid` of `ActivityNode`s (for agents).
|
|
9
9
|
*
|
|
10
10
|
* Both built deployables (with a `toRenderNode()` method) and pre-loaded
|
|
11
11
|
* `App*` reference shapes are accepted. References render as a single
|
|
12
12
|
* neutral activity node since their internal structure isn't available
|
|
13
13
|
* client-side.
|
|
14
14
|
*/
|
|
15
|
-
import { activityNode, card, grid, heading, serializeRenderTree, stack, } from "
|
|
15
|
+
import { activityNode, card, grid, heading, serializeRenderTree, stack, } from "./render-tree.js";
|
|
16
16
|
function hasToRenderNode(value) {
|
|
17
17
|
return (typeof value === "object" &&
|
|
18
18
|
value !== null &&
|
|
@@ -51,24 +51,22 @@ function bagSection(title, entries, refKind, refTypeLabel, layout) {
|
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
53
|
* Compose an `App` into a single json-render document. The top-level
|
|
54
|
-
* `Card` carries the app name; nested sections render
|
|
55
|
-
*
|
|
54
|
+
* `Card` carries the app name; nested sections render automations as graphs
|
|
55
|
+
* and agents as a 3-column card grid.
|
|
56
56
|
*/
|
|
57
57
|
export function appToUi(app) {
|
|
58
|
-
const flowEntries = Object.entries(app.flows ?? {});
|
|
59
58
|
const approvalChainEntries = Object.entries(app.approvalChains ?? {});
|
|
60
59
|
const automationEntries = Object.entries(app.automations ?? {});
|
|
61
60
|
const agentEntries = Object.entries(app.agents ?? {});
|
|
62
61
|
const skillEntries = Object.entries(app.agenticSkills ?? {});
|
|
63
62
|
const sections = [
|
|
64
|
-
...bagSection("Flows", flowEntries, "DEFAULT", "Flow ref", "graph-stack"),
|
|
65
63
|
...bagSection("Approval Chains", approvalChainEntries, "DEFAULT", "Approval chain ref", "graph-stack"),
|
|
66
64
|
...bagSection("Automations", automationEntries, "AUTOMATION", "Automation ref", "graph-stack"),
|
|
67
65
|
...bagSection("Agents", agentEntries, "AGENT", "Agent ref", "grid"),
|
|
68
66
|
...bagSection("Skills", skillEntries, "DEFAULT", "Skill ref", "grid"),
|
|
69
67
|
];
|
|
70
68
|
if (sections.length === 0) {
|
|
71
|
-
sections.push(heading("No
|
|
69
|
+
sections.push(heading("No approval chains, automations, agents, or skills defined.", { level: 4 }));
|
|
72
70
|
}
|
|
73
71
|
const root = card({ title: app.name, ...(app.description != null && { description: app.description }) }, [stack(sections, { direction: "vertical", gap: "lg" })]);
|
|
74
72
|
return serializeRenderTree(root);
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export { type SortDirection, type SortOrder
|
|
5
|
-
export { type
|
|
6
|
-
export { type AiProviderConnector
|
|
7
|
-
export { type UserRef
|
|
8
|
-
export { type GroupRef
|
|
9
|
-
export { type CloudLink
|
|
10
|
-
export { type AspectCategoryRef
|
|
1
|
+
export { UNRESOLVED_FIELD_MARKER, createRef, isRef, secret, template, toRefData, unresolvedField, val, type ActionRefData, type ForEachRefData, type Ref, type RefData, type SecretRefData, type Simplify, type StaticRefData, type TemplateRefData, type ToRefs, type TriggerRefData, type ValueOrRef } from "../entities/shared/ref.js";
|
|
2
|
+
export { buildContext, createActionOutputProxy, createActionsProxy, createForEachItemProxy, createTriggerProxy, type Context, type ForEachItem } from "../entities/shared/context.js";
|
|
3
|
+
export { asRowProxy, app, picklistOption, picklistStaticValueToApiId, resolveFieldValues, type App, type AppAgent, type AppAutomation, type AppCategory, type AppField, type AppFieldInputForAction, type AppFieldOf, type AppFieldValues, type AppPhoneService, type AppSearchTable, type AspectRecord, type AspectType, type FieldScope, type FieldValueForAppField, type FieldValueType, type PicklistOption, type PicklistOptionsResolver, type RowProxy, type RowScopedFields, type SearchTableRecord } from "./types/app.js";
|
|
4
|
+
export { asc, desc, sortBy, type SortDirection, type SortOrder } from "../entities/shared/types/common.js";
|
|
5
|
+
export { type Attachment, type Employee, type Group, type Manager, type PicklistValue, type RichText, type User } from "../entities/shared/types/platform.js";
|
|
6
|
+
export { aiProviderConnector, type AiProviderConnector } from "./types/ai-provider.js";
|
|
7
|
+
export { user, type UserRef } from "./types/user.js";
|
|
8
|
+
export { group, type GroupRef } from "./types/group.js";
|
|
9
|
+
export { cloudLink, type CloudLink } from "./types/cloud-link.js";
|
|
10
|
+
export { category, type AspectCategoryRef } from "./types/aspect-category.js";
|
|
11
|
+
export { unsafePlatformId, type UnsafePlatformId } from "./platform-id.js";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export { createRef, isRef,
|
|
2
|
-
export { buildContext,
|
|
3
|
-
export {
|
|
4
|
-
export { asc, desc, sortBy
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
1
|
+
export { UNRESOLVED_FIELD_MARKER, createRef, isRef, secret, template, toRefData, unresolvedField, val } from "../entities/shared/ref.js";
|
|
2
|
+
export { buildContext, createActionOutputProxy, createActionsProxy, createForEachItemProxy, createTriggerProxy } from "../entities/shared/context.js";
|
|
3
|
+
export { asRowProxy, app, picklistOption, picklistStaticValueToApiId, resolveFieldValues } from "./types/app.js";
|
|
4
|
+
export { asc, desc, sortBy } from "../entities/shared/types/common.js";
|
|
5
|
+
export { aiProviderConnector } from "./types/ai-provider.js";
|
|
6
|
+
export { user } from "./types/user.js";
|
|
7
|
+
export { group } from "./types/group.js";
|
|
8
|
+
export { cloudLink } from "./types/cloud-link.js";
|
|
9
|
+
export { category } from "./types/aspect-category.js";
|
|
10
|
+
export { unsafePlatformId } from "./platform-id.js";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An explicit escape hatch for a platform id that could not be represented by
|
|
3
|
+
* a portable catalog reference. The object wrapper makes raw ids impossible to
|
|
4
|
+
* pass accidentally where the public API normally expects a typed ref.
|
|
5
|
+
*/
|
|
6
|
+
export interface UnsafePlatformId {
|
|
7
|
+
readonly __unsafe: "platformId";
|
|
8
|
+
readonly value: string;
|
|
9
|
+
}
|
|
10
|
+
/** Mark a non-portable platform id intentionally. Prefer catalog refs whenever possible. */
|
|
11
|
+
export declare function unsafePlatformId(value: string): UnsafePlatformId;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { EdkValidationError } from "../../elementum-entity-client/errors.js";
|
|
2
|
+
/** Mark a non-portable platform id intentionally. Prefer catalog refs whenever possible. */
|
|
3
|
+
export function unsafePlatformId(value) {
|
|
4
|
+
if (value.trim() === "") {
|
|
5
|
+
throw new EdkValidationError("unsafePlatformId requires a non-empty platform id.");
|
|
6
|
+
}
|
|
7
|
+
return { __unsafe: "platformId", value };
|
|
8
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { FieldRef } from "
|
|
2
|
-
/** Marker key the
|
|
1
|
+
import type { FieldRef } from "../catalog/index.js";
|
|
2
|
+
/** Marker key the Terraform emitter flattens to a `record/<id>` statePath string. */
|
|
3
3
|
export declare const RECORD_PATH_MARKER = "__recordPath";
|
|
4
4
|
/** A node in the v2 render-tree AST. `aspectFieldId`/statePath hold tokens/markers. */
|
|
5
5
|
export interface RenderNode<T extends string = string> {
|
|
@@ -112,7 +112,7 @@ export interface SelectFieldOptions extends FieldBindingOptions {
|
|
|
112
112
|
}
|
|
113
113
|
/** Bind a scalar field (TEXT/NUMBER/DECIMAL/DATE/DATETIME/USER_ID/GROUP_ID) to an `Input`. */
|
|
114
114
|
export declare function inputFor(field: FieldRef, opts?: InputFieldOptions): RenderNode<"Input">;
|
|
115
|
-
/** Bind a TEXT/
|
|
115
|
+
/** Bind a TEXT/RICH_TEXT field to a `Textarea`. */
|
|
116
116
|
export declare function textareaFor(field: FieldRef, opts?: TextareaFieldOptions): RenderNode<"Textarea">;
|
|
117
117
|
/** Bind a PICKLIST/MULTI_PICKLIST field to a `Select` (options fetched at render time unless given). */
|
|
118
118
|
export declare function selectFor(field: FieldRef, opts?: SelectFieldOptions): RenderNode<"Select">;
|