@elementumai/edk 0.8.2-alpha.6 → 0.9.2
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 +18 -14
- 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 +2 -10
- package/dist-sdk/elementum-entity-client/clients/skills/models/skill-tool.d.ts +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/src/catalog/factories.d.ts +53 -19
- package/dist-sdk/src/catalog/factories.js +51 -12
- package/dist-sdk/src/catalog/from-authoring.js +13 -3
- 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 +1 -0
- package/dist-sdk/src/catalog/render.js +6 -0
- package/dist-sdk/src/catalog/token.js +7 -0
- package/dist-sdk/src/catalog/types.d.ts +34 -23
- package/dist-sdk/src/catalog/types.js +7 -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 +1 -0
- package/dist-sdk/src/core/index.js +1 -0
- 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} +2 -2
- package/dist-sdk/src/{entities/flow/activities/render-catalog.js → core/render-tree.js} +6 -8
- package/dist-sdk/src/core/types/app.d.ts +13 -23
- package/dist-sdk/src/core/types/app.js +0 -1
- package/dist-sdk/src/engine/build/context.d.ts +3 -3
- 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 +39 -0
- package/dist-sdk/src/engine/pull/org.d.ts +1 -0
- package/dist-sdk/src/engine/pull/org.js +2 -0
- package/dist-sdk/src/engine/tf/expr.d.ts +1 -1
- package/dist-sdk/src/engine/tf/expr.js +10 -3
- package/dist-sdk/src/engine/workspace/authoring-layout.js +4 -2
- package/dist-sdk/src/entities/access-policy/build.d.ts +4 -13
- package/dist-sdk/src/entities/access-policy/build.js +1 -1
- package/dist-sdk/src/entities/access-policy/from-tf.d.ts +12 -38
- package/dist-sdk/src/entities/access-policy/from-tf.js +16 -74
- package/dist-sdk/src/entities/access-policy/principal.d.ts +29 -0
- package/dist-sdk/src/entities/access-policy/principal.js +13 -0
- package/dist-sdk/src/entities/access-policy/to-tf.d.ts +20 -5
- package/dist-sdk/src/entities/access-policy/to-tf.js +26 -54
- package/dist-sdk/src/entities/agent/build.d.ts +39 -8
- package/dist-sdk/src/entities/agent/build.js +36 -15
- package/dist-sdk/src/entities/agent/deserializer/print-agent-v2.d.ts +5 -0
- package/dist-sdk/src/entities/agent/deserializer/print-agent-v2.js +121 -36
- package/dist-sdk/src/entities/agent/from-tf.js +5 -8
- 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 +5 -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 +2 -1
- package/dist-sdk/src/entities/agent/to-tf.js +2 -1
- package/dist-sdk/src/entities/agent/tools.d.ts +60 -48
- package/dist-sdk/src/entities/agent/tools.js +44 -38
- 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-tool/from-tf.d.ts +17 -8
- package/dist-sdk/src/entities/agent-tool/from-tf.js +127 -37
- package/dist-sdk/src/entities/agent-tool/module.js +6 -0
- package/dist-sdk/src/entities/agent-tool/to-tf.d.ts +5 -5
- package/dist-sdk/src/entities/agent-tool/to-tf.js +93 -20
- package/dist-sdk/src/entities/agent-tool/types.d.ts +4 -5
- package/dist-sdk/src/entities/agent-tool/types.js +36 -8
- package/dist-sdk/src/entities/app/build.d.ts +137 -25
- package/dist-sdk/src/entities/app/build.js +104 -53
- package/dist-sdk/src/entities/app/deserializer/normalize.d.ts +173 -1
- package/dist-sdk/src/entities/app/deserializer/pulled-expression.d.ts +59 -0
- package/dist-sdk/src/entities/app/deserializer/pulled-expression.js +68 -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 +13 -4
- package/dist-sdk/src/entities/app/index.js +8 -1
- package/dist-sdk/src/entities/app/module.js +27 -2
- package/dist-sdk/src/entities/app/to-tf.js +75 -1
- 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 +10 -6
- package/dist-sdk/src/entities/automation/build.js +5 -4
- package/dist-sdk/src/entities/automation/deserializer/ast.d.ts +10 -8
- package/dist-sdk/src/entities/automation/deserializer/print-automation.js +51 -114
- 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 +4 -0
- package/dist-sdk/src/entities/automation/from-tf.js +202 -119
- package/dist-sdk/src/entities/automation/index.d.ts +4 -2
- package/dist-sdk/src/entities/automation/index.js +3 -1
- package/dist-sdk/src/entities/automation/module.js +10 -4
- package/dist-sdk/src/entities/automation/script-code.js +94 -6
- package/dist-sdk/src/entities/automation/tasks.d.ts +20 -19
- package/dist-sdk/src/entities/automation/tasks.js +2 -2
- package/dist-sdk/src/entities/automation/to-tf.d.ts +34 -2
- package/dist-sdk/src/entities/automation/to-tf.js +273 -98
- package/dist-sdk/src/entities/automation/triggers.d.ts +18 -17
- package/dist-sdk/src/entities/automation/triggers.js +1 -1
- package/dist-sdk/src/entities/dashboard/build.d.ts +17 -0
- package/dist-sdk/src/entities/dashboard/from-tf.d.ts +12 -0
- package/dist-sdk/src/entities/dashboard/from-tf.js +95 -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 +30 -0
- package/dist-sdk/src/entities/dashboard/to-tf.js +94 -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/build.js +1 -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 +303 -0
- package/dist-sdk/src/entities/dynamic-layout/build.js +4 -0
- package/dist-sdk/src/entities/dynamic-layout/dialect.d.ts +2 -0
- package/dist-sdk/src/entities/dynamic-layout/dialect.js +9 -0
- package/dist-sdk/src/entities/dynamic-layout/from-tf.d.ts +10 -0
- package/dist-sdk/src/entities/dynamic-layout/from-tf.js +233 -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 +31 -14
- package/dist-sdk/src/entities/element/build.js +12 -4
- 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 +8 -3
- package/dist-sdk/src/entities/element/index.js +4 -1
- package/dist-sdk/src/entities/element/module.js +19 -2
- package/dist-sdk/src/entities/element/to-tf.js +57 -1
- package/dist-sdk/src/entities/field/build.d.ts +4 -3
- package/dist-sdk/src/entities/field/calculation-types.d.ts +6 -0
- package/dist-sdk/src/entities/field/calculation-types.js +42 -0
- package/dist-sdk/src/entities/field/from-tf.js +90 -11
- package/dist-sdk/src/entities/field/module.d.ts +1 -0
- package/dist-sdk/src/entities/field/module.js +5 -2
- package/dist-sdk/src/entities/field/record-shape.d.ts +1 -1
- package/dist-sdk/src/entities/field/to-tf.d.ts +1 -1
- package/dist-sdk/src/entities/field/to-tf.js +22 -6
- package/dist-sdk/src/entities/field/types.js +3 -0
- package/dist-sdk/src/entities/file-reader/build.d.ts +66 -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 +11 -9
- 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/group.js +4 -5
- package/dist-sdk/src/entities/org/index.d.ts +1 -0
- package/dist-sdk/src/entities/org/index.js +1 -0
- package/dist-sdk/src/entities/org/phone-provider.d.ts +4 -0
- package/dist-sdk/src/entities/org/phone-provider.js +33 -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 +29 -0
- package/dist-sdk/src/entities/organization/build.js +24 -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 +18 -0
- package/dist-sdk/src/entities/organization/to-tf.d.ts +6 -0
- package/dist-sdk/src/entities/organization/to-tf.js +37 -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 +54 -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 +80 -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 +31 -0
- package/dist-sdk/src/entities/relationship/to-tf.js +153 -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 +11 -0
- package/dist-sdk/src/entities/service-account/to-tf.js +72 -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/filters/ast.d.ts +21 -79
- package/dist-sdk/src/entities/shared/filters/ast.js +5 -2
- package/dist-sdk/src/entities/shared/filters/index.d.ts +94 -206
- package/dist-sdk/src/entities/shared/filters/index.js +189 -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/skill/build.d.ts +2 -2
- package/dist-sdk/src/entities/skill/build.js +4 -3
- package/dist-sdk/src/entities/skill/deserializer/print-skill-v2.d.ts +10 -0
- package/dist-sdk/src/entities/skill/deserializer/print-skill-v2.js +74 -32
- package/dist-sdk/src/entities/skill/index.d.ts +2 -1
- package/dist-sdk/src/entities/skill/index.js +2 -1
- package/dist-sdk/src/entities/skill/module.js +6 -0
- package/dist-sdk/src/entities/skill/to-tf.d.ts +5 -1
- package/dist-sdk/src/entities/skill/to-tf.js +18 -0
- package/dist-sdk/src/entities/skill/tools.d.ts +46 -31
- package/dist-sdk/src/entities/skill/tools.js +33 -20
- package/dist-sdk/src/entities/skill-tool/from-tf.d.ts +4 -1
- package/dist-sdk/src/entities/skill-tool/from-tf.js +76 -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 +94 -42
- 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 +33 -18
- package/dist-sdk/src/entities/table/catalog-render.js +6 -0
- 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 +230 -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/from-tf.d.ts +7 -2
- package/dist-sdk/src/entities/view/from-tf.js +209 -25
- package/dist-sdk/src/entities/view/module.js +5 -1
- package/dist-sdk/src/entities/view/to-tf.d.ts +49 -7
- package/dist-sdk/src/entities/view/to-tf.js +155 -18
- package/dist-sdk/src/entities/view/types.d.ts +8 -0
- package/dist-sdk/src/entities/view/types.js +43 -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 +14 -0
- package/dist-sdk/src/entities/visual-flow/to-tf.js +101 -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 +44 -0
- package/dist-sdk/src/entities/widget/to-tf.js +204 -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 +7 -0
- package/dist-sdk/src/graph/index.js +4 -18
- package/dist-sdk/src/graph/modules.js +30 -1
- package/dist-sdk/src/graph/types.d.ts +55 -7
- package/dist-sdk/src/internal/sdk-package.d.ts +1 -1
- package/dist-sdk/src/internal/sdk-package.js +4 -2
- package/package.json +30 -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 → dashboard/build.js} +0 -0
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* v2 flow serialization — flatten the builder's activity tree into the flat
|
|
3
|
-
* `activities[]` wire shape, with each activity's `referenceId` holding a
|
|
4
|
-
* **CatalogRef token** (resolved to an id at deploy by `resolvePayload`) rather
|
|
5
|
-
* than a baked id. Mirrors v1 `src/flows/serializer/index.ts` (same
|
|
6
|
-
* `key`/`branchParentKey`/`branchCondition` shape, same key generation), minus
|
|
7
|
-
* `appId` — that's injected at the wire boundary from the resolved owner app id.
|
|
8
|
-
*
|
|
9
|
-
* Wire-shape note (carried from v1): this `SerializedFlow` shape targets the
|
|
10
|
-
* REST `POST /v1/flows/create` (`FullStateFlowInput`) path, not wolverine's
|
|
11
|
-
* GraphQL `AppFlowCreateInput`. Confirm the endpoint before re-targeting.
|
|
12
|
-
*
|
|
13
|
-
* The whole structure is run through {@link serializeNode}, which slims catalog
|
|
14
|
-
* tokens (left in place for deploy-time resolution) and converts any internal
|
|
15
|
-
* `core/ref` Refs — matching how automations-v2 serializes its payload.
|
|
16
|
-
*/
|
|
17
|
-
import { isCatalogToken, slimToken } from "../../catalog/index.js";
|
|
18
|
-
import { isRef } from "../shared/ref.js";
|
|
19
|
-
import { serializeRefData } from "../../core/wire/ref-serializer.js";
|
|
20
|
-
import { slugifyActivityName } from "./util.js";
|
|
21
|
-
/**
|
|
22
|
-
* Deep-walk a config node: internal `Ref`s → wire ref JSON; `CatalogRef` tokens
|
|
23
|
-
* slimmed + left in place (resolved at deploy); arrays/objects recursed.
|
|
24
|
-
* (Same body as automations-v2's `serializeNode`; consolidates to `core` at the
|
|
25
|
-
* cutover.)
|
|
26
|
-
*/
|
|
27
|
-
export function serializeNode(node) {
|
|
28
|
-
if (isRef(node))
|
|
29
|
-
return serializeRefData(node.__data);
|
|
30
|
-
if (isCatalogToken(node))
|
|
31
|
-
return slimToken(node);
|
|
32
|
-
if (Array.isArray(node))
|
|
33
|
-
return node.map(serializeNode);
|
|
34
|
-
if (node !== null && typeof node === "object") {
|
|
35
|
-
const out = {};
|
|
36
|
-
for (const [k, v] of Object.entries(node))
|
|
37
|
-
out[k] = serializeNode(v);
|
|
38
|
-
return out;
|
|
39
|
-
}
|
|
40
|
-
return node;
|
|
41
|
-
}
|
|
42
|
-
function uniqueKey(base, usedKeys) {
|
|
43
|
-
if (!usedKeys.has(base)) {
|
|
44
|
-
usedKeys.add(base);
|
|
45
|
-
return base;
|
|
46
|
-
}
|
|
47
|
-
let counter = 2;
|
|
48
|
-
while (usedKeys.has(`${base}_${counter}`))
|
|
49
|
-
counter++;
|
|
50
|
-
const key = `${base}_${counter}`;
|
|
51
|
-
usedKeys.add(key);
|
|
52
|
-
return key;
|
|
53
|
-
}
|
|
54
|
-
function buildActivity(def, key, branchParentKey, branchCondition) {
|
|
55
|
-
return {
|
|
56
|
-
key,
|
|
57
|
-
type: def.activityType,
|
|
58
|
-
...(def.activitySubType != null ? { subType: def.activitySubType } : {}),
|
|
59
|
-
name: def.name,
|
|
60
|
-
...(def.reference != null ? { referenceId: def.reference } : {}), // token → id at deploy
|
|
61
|
-
...(def.configuration != null ? { configuration: def.configuration } : {}),
|
|
62
|
-
...(branchParentKey != null ? { branchParentKey } : {}),
|
|
63
|
-
...(branchCondition != null ? { branchCondition } : {}),
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
function flattenNodes(nodes, usedKeys) {
|
|
67
|
-
const result = [];
|
|
68
|
-
for (const node of nodes) {
|
|
69
|
-
// Use the node's resolved key (explicit or name-slug) so `ctx.activities.<key>`
|
|
70
|
-
// refs line up with the wire `key`. Branch activities have no explicit key.
|
|
71
|
-
const parentKey = uniqueKey(node.key, usedKeys);
|
|
72
|
-
result.push(buildActivity(node.def, parentKey));
|
|
73
|
-
for (const branch of node.branches) {
|
|
74
|
-
for (const def of branch.activities) {
|
|
75
|
-
const key = uniqueKey(slugifyActivityName(def.name), usedKeys);
|
|
76
|
-
result.push(buildActivity(def, key, parentKey, branch.condition));
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
return result;
|
|
81
|
-
}
|
|
82
|
-
/** Serialize the flow to its handle-form payload (tokens intact, no `appId`). */
|
|
83
|
-
export function serializeFlowV2(input) {
|
|
84
|
-
const usedKeys = new Set();
|
|
85
|
-
const payload = {
|
|
86
|
-
name: input.name,
|
|
87
|
-
...(input.description != null ? { description: input.description } : {}),
|
|
88
|
-
...(input.starts != null && input.starts.length > 0 ? { starts: input.starts } : {}),
|
|
89
|
-
...(input.startWhen != null ? { startWhen: input.startWhen } : {}),
|
|
90
|
-
...(input.status != null ? { status: input.status } : {}),
|
|
91
|
-
activities: flattenNodes(input.nodes, usedKeys),
|
|
92
|
-
};
|
|
93
|
-
return serializeNode(payload);
|
|
94
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared helpers for the flow builder + serializer. Lives here so both
|
|
3
|
-
* sides use a single implementation of conventions like slug derivation
|
|
4
|
-
* — the activity-key the user passes to `.activity(<key>, ...)` must
|
|
5
|
-
* line up with the wire-format slug the serializer emits and the
|
|
6
|
-
* runtime resolver matches against, so a single source of truth
|
|
7
|
-
* eliminates the silent-drift class of bugs.
|
|
8
|
-
*
|
|
9
|
-
* Modeled after `pull/util.ts` (the established repo pattern for
|
|
10
|
-
* standardized util methods).
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* Convert a flow activity's display name to its wire-format slug
|
|
14
|
-
* (lowercased, non-alphanumerics collapsed to single underscores,
|
|
15
|
-
* trimmed). The slug is what:
|
|
16
|
-
*
|
|
17
|
-
* - the serializer emits as `SerializedFlowActivity.key`,
|
|
18
|
-
* - Wolverine's `FlowActivityInputResolver` matches against when
|
|
19
|
-
* resolving `ActivityOutputRef.activityKey`, and
|
|
20
|
-
* - the flow builder uses as the type-key for unkeyed
|
|
21
|
-
* `.activity(def)` registrations so `ctx.activities.<slug>` lines up.
|
|
22
|
-
*
|
|
23
|
-
* Throws when the input contains no alphanumerics — without an
|
|
24
|
-
* alphanumeric character the slug would be empty, leaving downstream
|
|
25
|
-
* activities unable to reference this one.
|
|
26
|
-
*/
|
|
27
|
-
export declare function slugifyActivityName(name: string): string;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared helpers for the flow builder + serializer. Lives here so both
|
|
3
|
-
* sides use a single implementation of conventions like slug derivation
|
|
4
|
-
* — the activity-key the user passes to `.activity(<key>, ...)` must
|
|
5
|
-
* line up with the wire-format slug the serializer emits and the
|
|
6
|
-
* runtime resolver matches against, so a single source of truth
|
|
7
|
-
* eliminates the silent-drift class of bugs.
|
|
8
|
-
*
|
|
9
|
-
* Modeled after `pull/util.ts` (the established repo pattern for
|
|
10
|
-
* standardized util methods).
|
|
11
|
-
*/
|
|
12
|
-
import { EdkValidationError } from "../../../elementum-entity-client/errors.js";
|
|
13
|
-
/**
|
|
14
|
-
* Convert a flow activity's display name to its wire-format slug
|
|
15
|
-
* (lowercased, non-alphanumerics collapsed to single underscores,
|
|
16
|
-
* trimmed). The slug is what:
|
|
17
|
-
*
|
|
18
|
-
* - the serializer emits as `SerializedFlowActivity.key`,
|
|
19
|
-
* - Wolverine's `FlowActivityInputResolver` matches against when
|
|
20
|
-
* resolving `ActivityOutputRef.activityKey`, and
|
|
21
|
-
* - the flow builder uses as the type-key for unkeyed
|
|
22
|
-
* `.activity(def)` registrations so `ctx.activities.<slug>` lines up.
|
|
23
|
-
*
|
|
24
|
-
* Throws when the input contains no alphanumerics — without an
|
|
25
|
-
* alphanumeric character the slug would be empty, leaving downstream
|
|
26
|
-
* activities unable to reference this one.
|
|
27
|
-
*/
|
|
28
|
-
export function slugifyActivityName(name) {
|
|
29
|
-
const slug = name
|
|
30
|
-
.toLowerCase()
|
|
31
|
-
.replaceAll(/[^a-z0-9]+/g, "_")
|
|
32
|
-
.replaceAll(/^_|_$/g, "");
|
|
33
|
-
if (slug === "") {
|
|
34
|
-
throw new EdkValidationError(`Flow activity name "${name}" slugifies to an empty key. ` +
|
|
35
|
-
`Use a name that contains at least one alphanumeric character.`);
|
|
36
|
-
}
|
|
37
|
-
return slug;
|
|
38
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import type { FieldRef, TableColumnRef } from "../../catalog/index.js";
|
|
2
|
-
export type TableFilterField = FieldRef | TableColumnRef | string | {
|
|
3
|
-
readonly id: string;
|
|
4
|
-
};
|
|
5
|
-
export type TableFilterInput = string | boolean | null;
|
|
6
|
-
export type TableFilterType = "AND" | "API_REQUEST" | "BETWEEN" | "CALCULATION" | "CONSECUTIVE_RANGE" | "CONTAINS" | "CURRENT_RANGE" | "EQUALS" | "FALSE" | "GREATER_THAN" | "GREATER_THAN_EQUALS" | "IN" | "IS_NULL" | "LESS_THAN" | "LESS_THAN_EQUALS" | "LIKE" | "OR" | "OVERLAPS" | "SEARCH" | "TRUE";
|
|
7
|
-
export type TableFilter = {
|
|
8
|
-
readonly type: TableFilterType | (string & {});
|
|
9
|
-
} & Record<string, unknown>;
|
|
10
|
-
export declare function raw<T extends TableFilter>(input: T): T;
|
|
11
|
-
export declare function eq(field: TableFilterField, value: TableFilterInput): TableFilter;
|
|
12
|
-
export declare function neq(field: TableFilterField, value: TableFilterInput): TableFilter;
|
|
13
|
-
export declare function contains(field: TableFilterField, value: string, caseInsensitive?: boolean): TableFilter;
|
|
14
|
-
export declare function doesNotContain(field: TableFilterField, value: string, caseInsensitive?: boolean): TableFilter;
|
|
15
|
-
export declare function startsWith(field: TableFilterField, value: string, caseInsensitive?: boolean): TableFilter;
|
|
16
|
-
export declare function doesNotStartWith(field: TableFilterField, value: string, caseInsensitive?: boolean): TableFilter;
|
|
17
|
-
export declare function endsWith(field: TableFilterField, value: string, caseInsensitive?: boolean): TableFilter;
|
|
18
|
-
export declare function doesNotEndWith(field: TableFilterField, value: string, caseInsensitive?: boolean): TableFilter;
|
|
19
|
-
export declare function isNull(field: TableFilterField): TableFilter;
|
|
20
|
-
export declare function isNotNull(field: TableFilterField): TableFilter;
|
|
21
|
-
export declare function and(...children: readonly TableFilter[]): TableFilter;
|
|
22
|
-
export declare function or(...children: readonly TableFilter[]): TableFilter;
|
|
23
|
-
export declare function whereTrue(): TableFilter;
|
|
24
|
-
export declare function whereFalse(): TableFilter;
|
|
25
|
-
export declare const filter: {
|
|
26
|
-
readonly eq: typeof eq;
|
|
27
|
-
readonly neq: typeof neq;
|
|
28
|
-
readonly startsWith: typeof startsWith;
|
|
29
|
-
readonly doesNotStartWith: typeof doesNotStartWith;
|
|
30
|
-
readonly endsWith: typeof endsWith;
|
|
31
|
-
readonly doesNotEndWith: typeof doesNotEndWith;
|
|
32
|
-
readonly isNull: typeof isNull;
|
|
33
|
-
readonly isNotNull: typeof isNotNull;
|
|
34
|
-
readonly contains: typeof contains;
|
|
35
|
-
readonly doesNotContain: typeof doesNotContain;
|
|
36
|
-
readonly and: typeof and;
|
|
37
|
-
readonly or: typeof or;
|
|
38
|
-
readonly whereTrue: typeof whereTrue;
|
|
39
|
-
readonly whereFalse: typeof whereFalse;
|
|
40
|
-
readonly raw: typeof raw;
|
|
41
|
-
};
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
function fieldOf(field) {
|
|
2
|
-
if (typeof field === "string")
|
|
3
|
-
return field;
|
|
4
|
-
if ("__kind" in field)
|
|
5
|
-
return field;
|
|
6
|
-
return field.id;
|
|
7
|
-
}
|
|
8
|
-
function valueOf(input) {
|
|
9
|
-
if (input === null)
|
|
10
|
-
return { type: "NULL" };
|
|
11
|
-
switch (typeof input) {
|
|
12
|
-
case "string":
|
|
13
|
-
return { type: "TEXT", value: input };
|
|
14
|
-
case "boolean":
|
|
15
|
-
return { type: "BOOLEAN", value: input };
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
export function raw(input) {
|
|
19
|
-
return input;
|
|
20
|
-
}
|
|
21
|
-
export function eq(field, value) {
|
|
22
|
-
return { type: "EQUALS", field: fieldOf(field), value: valueOf(value) };
|
|
23
|
-
}
|
|
24
|
-
export function neq(field, value) {
|
|
25
|
-
return { ...eq(field, value), not: true };
|
|
26
|
-
}
|
|
27
|
-
function like(field, value, caseInsensitive, options) {
|
|
28
|
-
return {
|
|
29
|
-
type: "LIKE",
|
|
30
|
-
field: fieldOf(field),
|
|
31
|
-
value: valueOf(value),
|
|
32
|
-
...(options?.not === true ? { not: true } : {}),
|
|
33
|
-
caseInsensitive,
|
|
34
|
-
...(options?.mode !== undefined ? { mode: options.mode } : {}),
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
export function contains(field, value, caseInsensitive = true) {
|
|
38
|
-
return like(field, value, caseInsensitive, { mode: "CONTAINS" });
|
|
39
|
-
}
|
|
40
|
-
export function doesNotContain(field, value, caseInsensitive = true) {
|
|
41
|
-
return like(field, value, caseInsensitive, { mode: "CONTAINS", not: true });
|
|
42
|
-
}
|
|
43
|
-
export function startsWith(field, value, caseInsensitive = true) {
|
|
44
|
-
return like(field, value, caseInsensitive, { mode: "STARTS_WITH" });
|
|
45
|
-
}
|
|
46
|
-
export function doesNotStartWith(field, value, caseInsensitive = true) {
|
|
47
|
-
return like(field, value, caseInsensitive, { mode: "STARTS_WITH", not: true });
|
|
48
|
-
}
|
|
49
|
-
export function endsWith(field, value, caseInsensitive = true) {
|
|
50
|
-
return like(field, value, caseInsensitive, { mode: "ENDS_WITH" });
|
|
51
|
-
}
|
|
52
|
-
export function doesNotEndWith(field, value, caseInsensitive = true) {
|
|
53
|
-
return like(field, value, caseInsensitive, { mode: "ENDS_WITH", not: true });
|
|
54
|
-
}
|
|
55
|
-
export function isNull(field) {
|
|
56
|
-
return { type: "IS_NULL", field: fieldOf(field) };
|
|
57
|
-
}
|
|
58
|
-
export function isNotNull(field) {
|
|
59
|
-
return { ...isNull(field), not: true };
|
|
60
|
-
}
|
|
61
|
-
export function and(...children) {
|
|
62
|
-
return { type: "AND", children };
|
|
63
|
-
}
|
|
64
|
-
export function or(...children) {
|
|
65
|
-
return { type: "OR", children };
|
|
66
|
-
}
|
|
67
|
-
export function whereTrue() {
|
|
68
|
-
return { type: "TRUE" };
|
|
69
|
-
}
|
|
70
|
-
export function whereFalse() {
|
|
71
|
-
return { type: "FALSE" };
|
|
72
|
-
}
|
|
73
|
-
export const filter = {
|
|
74
|
-
eq,
|
|
75
|
-
neq,
|
|
76
|
-
startsWith,
|
|
77
|
-
doesNotStartWith,
|
|
78
|
-
endsWith,
|
|
79
|
-
doesNotEndWith,
|
|
80
|
-
isNull,
|
|
81
|
-
isNotNull,
|
|
82
|
-
contains,
|
|
83
|
-
doesNotContain,
|
|
84
|
-
and,
|
|
85
|
-
or,
|
|
86
|
-
whereTrue,
|
|
87
|
-
whereFalse,
|
|
88
|
-
raw,
|
|
89
|
-
};
|
|
File without changes
|