@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,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* v2 app/element authoring — `
|
|
2
|
+
* v2 app/element authoring — `app`. Parallel to v1 `src/aspects`,
|
|
3
3
|
* standalone from it.
|
|
4
4
|
*
|
|
5
5
|
* Produces a `DeployableEntity` of kind `app`/`element` with `parent: "org"` (apps are
|
|
@@ -12,14 +12,36 @@
|
|
|
12
12
|
* dependent picklists, display blocks, and field-id reconciliation for updates
|
|
13
13
|
* follow the same pattern and land as expansion.
|
|
14
14
|
*/
|
|
15
|
-
import { type
|
|
15
|
+
import { type AgentRef, type AppOrElementRef, type AutomationCatalogRef, type CatalogRef, type ChartRef, type CloudLinkRef, type DashboardRef, type FieldRef } from "../../catalog/index.js";
|
|
16
16
|
import type { WorkflowFieldType } from "../shared/types/field-types.js";
|
|
17
17
|
import { type SystemFieldKey } from "../../core/system-fields.js";
|
|
18
18
|
import type { DeployableEntity, EntityDeployOptions } from "../../engine/entity.js";
|
|
19
19
|
import type { AspectFieldInput } from "../../../elementum-entity-client/clients/aspects/models/field-types.js";
|
|
20
|
+
import type { AspectFieldQrFormat, AspectNumericFieldFormat } from "../../../elementum-entity-client/clients/aspects/models/format.js";
|
|
20
21
|
import type { AccessPolicyOptions } from "../access-policy/build.js";
|
|
22
|
+
import type { ManagedViewSharing } from "../view/sharing.js";
|
|
23
|
+
import type { ListViewDensity, ManagedViewSort } from "../view/build.js";
|
|
24
|
+
import type { AppDynamicLayout } from "../dynamic-layout/build.js";
|
|
25
|
+
import type { AppRelationship } from "../relationship/build.js";
|
|
26
|
+
import type { AppWidget } from "../widget/build.js";
|
|
27
|
+
import type { DashboardWidget } from "../dashboard/build.js";
|
|
28
|
+
import type { AppRole } from "../role/build.js";
|
|
29
|
+
import type { AppServiceAccount } from "../service-account/build.js";
|
|
30
|
+
import type { Filter } from "../shared/filters/types.js";
|
|
21
31
|
import { type DisplayBlock } from "./display-blocks.js";
|
|
22
|
-
import type { Expr, ExprType } from "../field/calc.js";
|
|
32
|
+
import type { CalculationInclude, Expr, ExprContext, ExprType } from "../field/calc.js";
|
|
33
|
+
import type { UnsafePlatformId } from "../../core/platform-id.js";
|
|
34
|
+
/**
|
|
35
|
+
* One entry of a dynamic picklist's `sort.orders` — `field` is a token on
|
|
36
|
+
* the related aspect (same convention as `relatedLabelFieldId`), resolved
|
|
37
|
+
* at plan/apply the same way filter fields are. Everything else is the
|
|
38
|
+
* platform's own opaque sort payload.
|
|
39
|
+
*/
|
|
40
|
+
export interface AppPicklistDynamicSortOrder {
|
|
41
|
+
readonly field: FieldRef | UnsafePlatformId;
|
|
42
|
+
readonly direction?: "ASC" | "DESC";
|
|
43
|
+
readonly aggregation?: unknown;
|
|
44
|
+
}
|
|
23
45
|
/**
|
|
24
46
|
* Authoring-time picklist config. Wire `PicklistConfigInput` uses bare id
|
|
25
47
|
* strings; here `relatedAspectId` / `relatedLabelFieldId` / `parentFieldId`
|
|
@@ -29,26 +51,36 @@ import type { Expr, ExprType } from "../field/calc.js";
|
|
|
29
51
|
* `relatedAspectId`. `relatedLabelFieldId` may still need a raw field id
|
|
30
52
|
* when the related aspect isn't the entity being deployed (field tokens
|
|
31
53
|
* resolve against the current app's state only).
|
|
54
|
+
*
|
|
55
|
+
* `sort` is the platform's own JSON sort payload — opaque EXCEPT for the
|
|
56
|
+
* one known `{ orders: [...] }` shape, whose `field` is a typed ref
|
|
57
|
+
* resolved like any other field token (issue #484: a bare field name/id
|
|
58
|
+
* there can't survive a fresh deploy, and any other JSON shape the platform
|
|
59
|
+
* doesn't recognize trips its post-apply consistency check).
|
|
32
60
|
*/
|
|
33
61
|
export interface AppPicklistDynamicConfig {
|
|
34
|
-
readonly relatedAspectId:
|
|
35
|
-
readonly relatedLabelFieldId: FieldRef |
|
|
36
|
-
readonly parentFieldId?: FieldRef |
|
|
62
|
+
readonly relatedAspectId: AppOrElementRef | UnsafePlatformId;
|
|
63
|
+
readonly relatedLabelFieldId: FieldRef | UnsafePlatformId;
|
|
64
|
+
readonly parentFieldId?: FieldRef | UnsafePlatformId;
|
|
37
65
|
readonly autoRelate?: boolean;
|
|
38
66
|
readonly valuesRenderType?: string;
|
|
39
|
-
readonly filter?:
|
|
40
|
-
readonly sort?:
|
|
67
|
+
readonly filter?: Filter;
|
|
68
|
+
readonly sort?: {
|
|
69
|
+
readonly orders: readonly AppPicklistDynamicSortOrder[];
|
|
70
|
+
} | (Readonly<Record<string, unknown>> & {
|
|
71
|
+
readonly orders?: never;
|
|
72
|
+
});
|
|
41
73
|
}
|
|
42
74
|
export interface AppPicklistConfig {
|
|
43
75
|
readonly static?: {
|
|
44
|
-
readonly parentFieldId?: FieldRef |
|
|
45
|
-
readonly filter?:
|
|
76
|
+
readonly parentFieldId?: FieldRef | UnsafePlatformId;
|
|
77
|
+
readonly filter?: Filter;
|
|
46
78
|
readonly sort?: Readonly<Record<string, unknown>>;
|
|
47
79
|
};
|
|
48
80
|
readonly dynamic?: AppPicklistDynamicConfig;
|
|
49
81
|
}
|
|
50
82
|
/**
|
|
51
|
-
* A field authored on a v2 app or element — shared with `
|
|
83
|
+
* A field authored on a v2 app or element — shared with `element`
|
|
52
84
|
* (`src/elements/build.ts`), which imports this type and {@link serializeField}
|
|
53
85
|
* directly from here rather than duplicating them: fields are the one
|
|
54
86
|
* authoring concept genuinely identical between an app and an element (both
|
|
@@ -87,20 +119,21 @@ export interface AppField {
|
|
|
87
119
|
*/
|
|
88
120
|
readonly config?: AppPicklistConfig;
|
|
89
121
|
/** Numeric format (`NUMBER` / `DECIMAL`) — pure config, no refs. */
|
|
90
|
-
readonly numericFormat?:
|
|
122
|
+
readonly numericFormat?: AspectNumericFieldFormat;
|
|
91
123
|
/** `DECIMAL` only — display/storage precision (`elementum_decimal_field.decimal_places`). */
|
|
92
124
|
readonly decimalPlaces?: number;
|
|
93
125
|
/** QR format (`TEXT` / `HANDLE`) — pure config, no refs. */
|
|
94
|
-
readonly qrFormat?:
|
|
126
|
+
readonly qrFormat?: AspectFieldQrFormat;
|
|
95
127
|
/**
|
|
96
128
|
* A calculated-field expression (from the `calc.*` builder). When set, the
|
|
97
129
|
* field serializes as a calculated field; `type` is the declared output type.
|
|
98
130
|
*/
|
|
99
|
-
readonly expression?: Expr<ExprType>;
|
|
131
|
+
readonly expression?: Expr<ExprType, "single", ExprContext>;
|
|
132
|
+
readonly include?: CalculationInclude;
|
|
100
133
|
/**
|
|
101
134
|
* `RELATION` only — the related object/field
|
|
102
135
|
* (`elementum_relation_field.related_object_id`/`related_label_field_id`).
|
|
103
|
-
* Accepts a catalog token (`
|
|
136
|
+
* Accepts a catalog token (`AppOrElementRef`/`FieldRef`) or a raw platform id. A
|
|
104
137
|
* token naming a SIBLING app/element authored in the same build resolves
|
|
105
138
|
* to a direct resource reference and does NOT need to already exist on
|
|
106
139
|
* the platform; only a token naming something genuinely outside this
|
|
@@ -109,8 +142,8 @@ export interface AppField {
|
|
|
109
142
|
* identity, so there's nothing to resolve a token against on the extract
|
|
110
143
|
* side.
|
|
111
144
|
*/
|
|
112
|
-
readonly relatedObject?:
|
|
113
|
-
readonly relatedLabelField?: FieldRef |
|
|
145
|
+
readonly relatedObject?: AppOrElementRef | UnsafePlatformId;
|
|
146
|
+
readonly relatedLabelField?: FieldRef | UnsafePlatformId;
|
|
114
147
|
/** `RELATION` only. Defaults to `true` on the platform. */
|
|
115
148
|
readonly autoRelate?: boolean;
|
|
116
149
|
}
|
|
@@ -126,7 +159,7 @@ export interface PicklistOption {
|
|
|
126
159
|
}
|
|
127
160
|
/** The platform's option-tag vocabulary (drives status semantics/urgency). */
|
|
128
161
|
export type PicklistOptionTag = "CLOSED" | "CRITICAL" | "HIGH" | "MEDIUM" | "LOW";
|
|
129
|
-
/** The aspect category (created upsert-by-name if missing) — shared with `
|
|
162
|
+
/** The aspect category (created upsert-by-name if missing) — shared with `element`. */
|
|
130
163
|
export interface AppCategory {
|
|
131
164
|
readonly name: string;
|
|
132
165
|
readonly icon?: string;
|
|
@@ -186,7 +219,7 @@ export interface AppSystemFields {
|
|
|
186
219
|
* A field reference inside a layout section or list view: either a custom
|
|
187
220
|
* field's typed token (`catalog.<app>.fields.<key>`) or a bare system-field
|
|
188
221
|
* key (`"title"`, `"status"`, …) — system fields have no catalog token on a
|
|
189
|
-
* pulled app (`readonlyFields` is an explicit author opt-in `
|
|
222
|
+
* pulled app (`readonlyFields` is an explicit author opt-in `app`
|
|
190
223
|
* doesn't emit), so the canonical key string is the only stable way to name
|
|
191
224
|
* one here, same as `systemFields: {}` is already keyed.
|
|
192
225
|
*/
|
|
@@ -210,6 +243,8 @@ export interface AppLayoutSection {
|
|
|
210
243
|
readonly icon?: string;
|
|
211
244
|
/** `"group"` only. */
|
|
212
245
|
readonly color?: string;
|
|
246
|
+
/** `"group"` only — maximum columns used to arrange the group's fields. */
|
|
247
|
+
readonly maxColumns?: number;
|
|
213
248
|
/** `"group"` only — the fields shown in this group, in order. */
|
|
214
249
|
readonly fields?: readonly AppViewFieldRef[];
|
|
215
250
|
}
|
|
@@ -218,22 +253,84 @@ export interface AppLayout {
|
|
|
218
253
|
readonly sections: readonly AppLayoutSection[];
|
|
219
254
|
}
|
|
220
255
|
/** A saved list view (`elementum_list_view`). */
|
|
221
|
-
export interface AppListView {
|
|
256
|
+
export interface AppListView extends ManagedViewSharing {
|
|
222
257
|
readonly name: string;
|
|
223
258
|
readonly columns: readonly AppViewFieldRef[];
|
|
224
259
|
readonly allowRecordCreation?: boolean;
|
|
225
|
-
readonly density?:
|
|
260
|
+
readonly density?: ListViewDensity;
|
|
226
261
|
readonly rows?: number;
|
|
227
262
|
/**
|
|
228
|
-
*
|
|
229
|
-
*
|
|
230
|
-
*
|
|
231
|
-
* provider bug ("inconsistent result after apply"). Round-trip only;
|
|
232
|
-
* hand-author at your own risk (the shape isn't validated).
|
|
263
|
+
* Provider filter tree. The shared `filter` helpers produce compatible
|
|
264
|
+
* row filters, and field tokens are resolved to deployed field IDs during
|
|
265
|
+
* Terraform generation. Pulled provider-native filters also round-trip.
|
|
233
266
|
*/
|
|
234
|
-
readonly filter?:
|
|
235
|
-
/**
|
|
236
|
-
readonly sort?:
|
|
267
|
+
readonly filter?: Filter;
|
|
268
|
+
/** Ordered, typed field sorts using the platform's managed-view Sort contract. */
|
|
269
|
+
readonly sort?: ManagedViewSort;
|
|
270
|
+
}
|
|
271
|
+
/** An agent-powered record view (`elementum_agent_view`). */
|
|
272
|
+
export interface AppAgentView extends ManagedViewSharing {
|
|
273
|
+
readonly name: string;
|
|
274
|
+
readonly agent: AgentRef;
|
|
275
|
+
readonly allowRecordCreation?: boolean;
|
|
276
|
+
/** Provider-native filter object; pulled values round-trip verbatim. */
|
|
277
|
+
readonly filter?: Filter;
|
|
278
|
+
/** Ordered, typed field sorts using the platform's managed-view Sort contract. */
|
|
279
|
+
readonly sort?: ManagedViewSort;
|
|
280
|
+
readonly displayOrder?: number;
|
|
281
|
+
}
|
|
282
|
+
/** A calendar view positioned by a date/datetime field (`elementum_calendar_view`). */
|
|
283
|
+
export interface AppCalendarView extends ManagedViewSharing {
|
|
284
|
+
readonly name: string;
|
|
285
|
+
readonly columns?: readonly AppViewFieldRef[];
|
|
286
|
+
readonly displayByField?: AppViewFieldRef;
|
|
287
|
+
readonly allowRecordCreation?: boolean;
|
|
288
|
+
/** Provider-native filter object; pulled values round-trip verbatim. */
|
|
289
|
+
readonly filter?: Filter;
|
|
290
|
+
/** Ordered, typed field sorts using the platform's managed-view Sort contract. */
|
|
291
|
+
readonly sort?: ManagedViewSort;
|
|
292
|
+
}
|
|
293
|
+
/** A kanban view grouped by a field (`elementum_kanban_view`). */
|
|
294
|
+
export interface AppKanbanView extends AppCalendarView {
|
|
295
|
+
/** Fields users may select in the view's interactive filter UI. */
|
|
296
|
+
readonly allowedFilterFields?: readonly AppViewFieldRef[];
|
|
297
|
+
}
|
|
298
|
+
/** A dashboard owned by this app or element (`elementum_dashboard`). */
|
|
299
|
+
export interface AppDashboard {
|
|
300
|
+
readonly name: string;
|
|
301
|
+
readonly favorite?: boolean;
|
|
302
|
+
readonly tags?: readonly string[];
|
|
303
|
+
readonly widgets?: Readonly<Record<string, DashboardWidget>>;
|
|
304
|
+
}
|
|
305
|
+
export { dashboardChartWidget, dashboardRecordsWidget, dashboardWidgetSize, type DashboardChartWidget, type DashboardRecordsWidget, type DashboardWidget, type DashboardWidgetSize, } from "../dashboard/build.js";
|
|
306
|
+
/** A managed view that embeds a dashboard from this definition's `dashboards` bag. */
|
|
307
|
+
export interface AppDashboardView extends ManagedViewSharing {
|
|
308
|
+
readonly name: string;
|
|
309
|
+
/** Stable key from the sibling `dashboards` bag. */
|
|
310
|
+
readonly dashboard: DashboardRef;
|
|
311
|
+
readonly allowRecordCreation?: boolean;
|
|
312
|
+
readonly filter?: Filter;
|
|
313
|
+
readonly sort?: ManagedViewSort;
|
|
314
|
+
}
|
|
315
|
+
/** One group in the immutable new-record form (`elementum_record_create_form`). */
|
|
316
|
+
export interface AppRecordCreateFormSection {
|
|
317
|
+
readonly name: string;
|
|
318
|
+
/** Typed custom-field tokens or canonical system-field keys. */
|
|
319
|
+
readonly fields: readonly AppViewFieldRef[];
|
|
320
|
+
/** Optional app-owned agent that assists this section. */
|
|
321
|
+
readonly agent?: AgentRef;
|
|
322
|
+
readonly icon?: string;
|
|
323
|
+
readonly color?: string;
|
|
324
|
+
/** Defaults to this section's array index. */
|
|
325
|
+
readonly displayOrder?: number;
|
|
326
|
+
readonly displayLocation?: "CENTER";
|
|
327
|
+
readonly sideNavItem?: boolean;
|
|
328
|
+
readonly hidden?: boolean;
|
|
329
|
+
readonly maxColumns?: number;
|
|
330
|
+
}
|
|
331
|
+
/** The owning aspect's new-record form. Any edit replaces the provider resource. */
|
|
332
|
+
export interface AppRecordCreateForm {
|
|
333
|
+
readonly sections: readonly AppRecordCreateFormSection[];
|
|
237
334
|
}
|
|
238
335
|
export interface AppV2Options<F extends Record<string, AppField> = Record<string, AppField>, R extends Record<string, FieldRef> = Record<never, never>> extends EntityDeployOptions {
|
|
239
336
|
readonly name: string;
|
|
@@ -290,7 +387,25 @@ export interface AppV2Options<F extends Record<string, AppField> = Record<string
|
|
|
290
387
|
readonly layouts?: Readonly<Record<string, AppLayout>>;
|
|
291
388
|
/** Saved list views, keyed by view ref name. */
|
|
292
389
|
readonly listViews?: Readonly<Record<string, AppListView>>;
|
|
293
|
-
/**
|
|
390
|
+
/** Calendar views, keyed by stable view ref name. */
|
|
391
|
+
readonly calendarViews?: Readonly<Record<string, AppCalendarView>>;
|
|
392
|
+
/** Kanban views, keyed by stable view ref name. */
|
|
393
|
+
readonly kanbanViews?: Readonly<Record<string, AppKanbanView>>;
|
|
394
|
+
/** Dashboards owned by this app. */
|
|
395
|
+
readonly dashboards?: Readonly<Record<string, AppDashboard>>;
|
|
396
|
+
/** Record-layout widgets keyed by a stable authoring name. */
|
|
397
|
+
readonly widgets?: Readonly<Record<string, AppWidget>>;
|
|
398
|
+
/** Dashboard-backed views, keyed by stable view ref name. */
|
|
399
|
+
readonly dashboardViews?: Readonly<Record<string, AppDashboardView>>;
|
|
400
|
+
/** Agent-powered views, keyed by view ref name. */
|
|
401
|
+
readonly agentViews?: Readonly<Record<string, AppAgentView>>;
|
|
402
|
+
/** Typed new-record form, distinct from legacy compose-only `recordCreateDisplayBlocks`. */
|
|
403
|
+
readonly recordCreateForm?: AppRecordCreateForm;
|
|
404
|
+
/** Typed V2 DASHBOARD layouts, keyed by stable EDK ref name. */
|
|
405
|
+
readonly dynamicLayouts?: Readonly<Record<string, AppDynamicLayout>>;
|
|
406
|
+
/** AutoRelations keyed by stable ref name. */
|
|
407
|
+
readonly relationships?: Readonly<Record<string, AppRelationship>>;
|
|
408
|
+
/** Display order of all authored views (by key). Defaults to declaration order by view bag. */
|
|
294
409
|
readonly viewOrder?: readonly string[];
|
|
295
410
|
/**
|
|
296
411
|
* App-level sharing & row-level-security policies (`elementum_access_policy`), in declaration order.
|
|
@@ -298,10 +413,14 @@ export interface AppV2Options<F extends Record<string, AppField> = Record<string
|
|
|
298
413
|
* (the creating user, typically `whereTrue`) that is not authored here.
|
|
299
414
|
*/
|
|
300
415
|
readonly accessPolicies?: readonly AccessPolicyOptions[];
|
|
416
|
+
/** Custom roles keyed by stable authoring name. Managed roles remain platform-owned lookups. */
|
|
417
|
+
readonly roles?: Readonly<Record<string, AppRole>>;
|
|
418
|
+
/** Dedicated non-human identities, including who may run as each account. */
|
|
419
|
+
readonly serviceAccounts?: Readonly<Record<string, AppServiceAccount>>;
|
|
301
420
|
}
|
|
302
421
|
/**
|
|
303
422
|
* Serialize an authored field to its `AspectFieldInput` wire shape — shared
|
|
304
|
-
* with `
|
|
423
|
+
* with `element`. `refName` is the field's bag key in `app`'s
|
|
305
424
|
* `fields: {}` (e.g. `severity`) — carried as the internal `__refName` marker,
|
|
306
425
|
* a client-side-only bookkeeping value `applyV2`'s field reconciliation
|
|
307
426
|
* (`src/deploy/apply/apply.ts`, `reconcileFields`) reads to match this field
|
|
@@ -331,61 +450,108 @@ export declare function serializeSystemFields(overrides: AppSystemFields | undef
|
|
|
331
450
|
/**
|
|
332
451
|
* Per-field `FieldRef`s for an authored `fields:` bag, keyed exactly like it,
|
|
333
452
|
* each carrying its own literal `fieldType` (not the widened
|
|
334
|
-
* `WorkflowFieldType` union) — this is what lets `
|
|
453
|
+
* `WorkflowFieldType` union) — this is what lets `app(...).ref()` serve
|
|
335
454
|
* as the catalog's live source for fields (`src/catalog/render.ts`'s
|
|
336
455
|
* `ownFile`) without losing the per-field type precision `RecordShape`
|
|
337
456
|
* (`entities/field/record-shape.ts`) needs to discriminate value types.
|
|
338
457
|
*/
|
|
339
|
-
export type AppFieldRefs<F extends Record<string, AppField
|
|
340
|
-
readonly [K in keyof F]: FieldRef
|
|
341
|
-
|
|
342
|
-
|
|
458
|
+
export type AppFieldRefs<F extends Record<string, AppField>, Parent extends string = string> = {
|
|
459
|
+
readonly [K in keyof F]: FieldRef<Parent, Extract<K, string>, F[K]["type"]>;
|
|
460
|
+
};
|
|
461
|
+
/**
|
|
462
|
+
* The platform field type each auto-provisioned system field carries —
|
|
463
|
+
* mirrors {@link SYSTEM_FIELD_TAG_TO_TYPE}'s values but keyed by
|
|
464
|
+
* {@link SystemFieldKey} instead of tag, since that's what {@link
|
|
465
|
+
* SystemFieldRefs} needs to stamp per-key. Fixed by the platform's per-tag
|
|
466
|
+
* config (`AppSystemFieldOverride` has no authoring slot for `type`), so a
|
|
467
|
+
* literal map here can't drift from a real override the way a computed type
|
|
468
|
+
* could.
|
|
469
|
+
*/
|
|
470
|
+
type SystemFieldTypeByKey = {
|
|
471
|
+
readonly id: "HANDLE";
|
|
472
|
+
readonly title: "TEXT";
|
|
473
|
+
readonly status: "PICKLIST";
|
|
474
|
+
readonly stage: "PICKLIST";
|
|
475
|
+
readonly createdAt: "DATETIME";
|
|
476
|
+
readonly createdBy: "USER";
|
|
477
|
+
readonly updatedAt: "DATETIME";
|
|
478
|
+
readonly updatedBy: "USER";
|
|
479
|
+
readonly closedAt: "DATETIME";
|
|
480
|
+
readonly closedBy: "USER";
|
|
481
|
+
};
|
|
482
|
+
/**
|
|
483
|
+
* Per-system-field `FieldRef`s, each carrying its own literal `fieldType` —
|
|
484
|
+
* the system-field counterpart of {@link AppFieldRefs}. A plain `Record<
|
|
485
|
+
* SystemFieldKey, FieldRef<RefName>>` would leave `FieldType` on its `string`
|
|
486
|
+
* default (only `Parent` gets filled positionally), collapsing every system
|
|
487
|
+
* field's `RecordShape` value to the generic `"text"` case and losing e.g.
|
|
488
|
+
* `ctx.trigger.record.status.label` or `.createdBy.email`.
|
|
489
|
+
*/
|
|
490
|
+
export type SystemFieldRefs<Parent extends string = string> = {
|
|
491
|
+
readonly [K in SystemFieldKey]: FieldRef<Parent, K, SystemFieldTypeByKey[K]>;
|
|
343
492
|
};
|
|
344
493
|
/**
|
|
345
494
|
* An app's reference surface: identity plus its fields (the only bag other
|
|
346
495
|
* entities may point at). Generic over the authored `fields:` bag (`F`) and
|
|
347
496
|
* `readonlyFields:` bag (`R`) so `app.ref(name).fields.priority.fieldType`
|
|
348
497
|
* narrows to its literal (e.g. `"PICKLIST"`); the platform-owned system
|
|
349
|
-
* fields round out the bag via
|
|
350
|
-
*
|
|
498
|
+
* fields round out the bag via {@link SystemFieldRefs} — a finite union of
|
|
499
|
+
* literal keys, deliberately NOT a wide `Record<string, FieldRef>`.
|
|
351
500
|
*
|
|
352
501
|
* That distinction is load-bearing, not style: a wide `string`-keyed index
|
|
353
502
|
* signature anywhere in this intersection poisons `RecordShape`
|
|
354
503
|
* (`entities/field/record-shape.ts`) when `DeepRef`
|
|
355
504
|
* (`entities/shared/context.ts`) re-maps its keys a second time for
|
|
356
|
-
* `ctx.trigger.record`/`ctx.
|
|
505
|
+
* `ctx.trigger.record`/`ctx.actions.<t>.record` drilling — every field
|
|
357
506
|
* collapses to `Ref<string>`, losing e.g. a picklist's `.id`/`.label`. Found
|
|
358
507
|
* and verified via isolated repro before this fix landed; `R`'s default is
|
|
359
508
|
* `Record<never, never>` (a literal empty object, no index signature) for
|
|
360
509
|
* the same reason — `Record<string, never>` would reintroduce it even when
|
|
361
510
|
* no `readonlyFields` are declared.
|
|
362
511
|
*/
|
|
363
|
-
export type AppRef<F extends Record<string, AppField> = Record<string, AppField>, R extends Record<string, FieldRef> = Record<never, never
|
|
364
|
-
readonly
|
|
512
|
+
export type AppRef<F extends Record<string, AppField> = Record<string, AppField>, R extends Record<string, FieldRef> = Record<never, never>, RefName extends string = string> = Extract<AppOrElementRef<RefName>, {
|
|
513
|
+
readonly __kind: "app";
|
|
514
|
+
}> & {
|
|
515
|
+
readonly fields: AppFieldRefs<F, RefName> & SystemFieldRefs<RefName> & R;
|
|
516
|
+
};
|
|
517
|
+
/**
|
|
518
|
+
* The app reference available while configuring options that point back into
|
|
519
|
+
* the app itself. Child helpers preserve both the literal child key and owner,
|
|
520
|
+
* without forcing the app file to import its generated catalog (a cycle).
|
|
521
|
+
*/
|
|
522
|
+
export type AppSelfRef<F extends Record<string, AppField> = Record<string, AppField>, R extends Record<string, FieldRef> = Record<never, never>, RefName extends string = string> = AppRef<F, R, RefName> & {
|
|
523
|
+
agent<const Name extends string>(refName: Name, name?: string): CatalogRef<"agent", Name, RefName>;
|
|
524
|
+
automation<const Name extends string>(refName: Name, name?: string): AutomationCatalogRef & CatalogRef<"automation", Name, RefName>;
|
|
525
|
+
chart<const Name extends string>(refName: Name, name?: string): ChartRef<RefName, Name>;
|
|
526
|
+
dashboard<const Name extends string>(refName: Name, name?: string): DashboardRef<RefName, Name>;
|
|
365
527
|
};
|
|
528
|
+
/** Reference-bearing app options that can safely be authored from `withRefs`. */
|
|
529
|
+
export type AppReferenceConfiguration = Pick<AppV2Options, "layouts" | "listViews" | "calendarViews" | "kanbanViews" | "dashboards" | "widgets" | "dashboardViews" | "agentViews" | "recordCreateForm" | "dynamicLayouts" | "relationships" | "viewOrder" | "accessPolicies">;
|
|
366
530
|
/**
|
|
367
|
-
* The configured result of `
|
|
531
|
+
* The configured result of `app` — its reference surface (`ref()`) and
|
|
368
532
|
* its deployable entity (`def()`). Both take `refName` as a **call-time
|
|
369
533
|
* argument**, not a constructor option: the ref name is never stored data
|
|
370
534
|
* (see `src/catalog/from-authoring.ts`) — it's recoverable from the file's
|
|
371
535
|
* name alone, which is exactly what every caller (catalog generation,
|
|
372
536
|
* plan/apply discovery) already knows when it calls these. Stating it again
|
|
373
|
-
* inside `
|
|
537
|
+
* inside `app({...})` would be the same redundant property the rest of
|
|
374
538
|
* the system avoids, just one level up.
|
|
375
539
|
*/
|
|
376
540
|
export interface AppConfigured<F extends Record<string, AppField> = Record<string, AppField>, R extends Record<string, FieldRef> = Record<never, never>> {
|
|
377
|
-
ref(refName:
|
|
541
|
+
ref<const RefName extends string>(refName: RefName): AppRef<F, R, RefName>;
|
|
378
542
|
def(refName: string): DeployableEntity;
|
|
543
|
+
/** Configure self-referential record experiences without hand-building ref tokens. */
|
|
544
|
+
withRefs(configure: (app: AppSelfRef<F, R>) => AppReferenceConfiguration): AppConfigured<F, R>;
|
|
379
545
|
}
|
|
380
546
|
/**
|
|
381
547
|
* Build a v2 app entity: org-owned, compose-body payload. Exposes
|
|
382
548
|
* `.ref(refName)` and `.def(refName)`.
|
|
383
549
|
*
|
|
384
|
-
* Elements author through `
|
|
550
|
+
* Elements author through `element` (`@elementumai/edk/elements`,
|
|
385
551
|
* `src/elements/build.ts`) instead — a dedicated builder/printer, since a
|
|
386
552
|
* *linked* element's cloud mapping (Cloud Link + Database + Schema + Table,
|
|
387
553
|
* vs. a *standard* element's Elementum-managed table) has no equivalent on an
|
|
388
|
-
* app. `
|
|
554
|
+
* app. `app`'s `type` no longer accepts `"ELEMENT"`.
|
|
389
555
|
*/
|
|
390
556
|
/**
|
|
391
557
|
* The GraphQL API constrains an aspect handle to letters only, either case, no
|
|
@@ -393,4 +559,5 @@ export interface AppConfigured<F extends Record<string, AppField> = Record<strin
|
|
|
393
559
|
* "[a-zA-Z]*")`). Mirror that rule here rather than inventing a stricter one.
|
|
394
560
|
*/
|
|
395
561
|
export declare const APP_HANDLE_RE: RegExp;
|
|
396
|
-
export declare function
|
|
562
|
+
export declare function picklistOptionLabels(options: readonly (string | PicklistOption)[]): readonly string[];
|
|
563
|
+
export declare function app<F extends Record<string, AppField>, R extends Record<string, FieldRef> = Record<never, never>>(opts: AppV2Options<F, R>): AppConfigured<F, R>;
|