@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
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
function defaultQuote(value) { return JSON.stringify(value); }
|
|
2
|
+
/** Print every canonical filter through the same public `filter.*` authoring surface. */
|
|
3
|
+
export function printFilter(filter, codec) {
|
|
4
|
+
const namespace = codec.namespace ?? "filter";
|
|
5
|
+
const quote = codec.quote ?? defaultQuote;
|
|
6
|
+
const call = (helper, args) => {
|
|
7
|
+
codec.used?.(helper);
|
|
8
|
+
return `${namespace}.${helper}(${args})`;
|
|
9
|
+
};
|
|
10
|
+
const value = (input) => printFilterValue(input, codec, call, quote);
|
|
11
|
+
const left = "field" in filter && filter.field !== undefined
|
|
12
|
+
? codec.field(filter.field)
|
|
13
|
+
: "leftValue" in filter && filter.leftValue !== undefined
|
|
14
|
+
? filter.leftValue.type === "FIELD" ? codec.field(filter.leftValue.value) : value(filter.leftValue)
|
|
15
|
+
: "undefined /* TODO: filter has no left side */";
|
|
16
|
+
const core = () => {
|
|
17
|
+
switch (filter.type) {
|
|
18
|
+
case "TRUE": return call("whereTrue", "");
|
|
19
|
+
case "FALSE": return call("whereFalse", "");
|
|
20
|
+
case "AND": return call("and", filter.children.map((child) => printFilter(child, codec)).join(", "));
|
|
21
|
+
case "OR": return call("or", filter.children.map((child) => printFilter(child, codec)).join(", "));
|
|
22
|
+
case "EQUALS": return call(filter.not === true ? "neq" : "eq", `${left}, ${value(filter.value)}`);
|
|
23
|
+
case "GREATER_THAN": return call("gt", `${left}, ${value(filter.value)}`);
|
|
24
|
+
case "GREATER_THAN_EQUALS": return call("gte", `${left}, ${value(filter.value)}`);
|
|
25
|
+
case "LESS_THAN": return call("lt", `${left}, ${value(filter.value)}`);
|
|
26
|
+
case "LESS_THAN_EQUALS": return call("lte", `${left}, ${value(filter.value)}`);
|
|
27
|
+
case "LIKE": return call("like", `${left}, ${value(filter.value)}${printLikeOptions(filter, quote)}`);
|
|
28
|
+
case "IS_NULL": return call(filter.not === true ? "isNotNull" : "isNull", left);
|
|
29
|
+
case "IN": return call(filter.not === true ? "isNotIn" : "isIn", `${left}, [${filter.values.map(value).join(", ")}]`);
|
|
30
|
+
case "BETWEEN": return call("between", `${left}, ${value(filter.min)}, ${value(filter.max)}${filter.not === true ? ", { not: true }" : ""}`);
|
|
31
|
+
case "CONTAINS":
|
|
32
|
+
case "OVERLAPS": {
|
|
33
|
+
const helper = filter.type === "CONTAINS" ? "contains" : "overlaps";
|
|
34
|
+
return call(helper, `${left}, [${filter.values.map(value).join(", ")}]${filter.not === true ? ", { not: true }" : ""}`);
|
|
35
|
+
}
|
|
36
|
+
case "CURRENT_RANGE": {
|
|
37
|
+
const options = [`unit: ${quote(filter.unit)}`];
|
|
38
|
+
if (filter.semantic !== undefined)
|
|
39
|
+
options.push(`semantic: ${filter.semantic}`);
|
|
40
|
+
if (filter.isoWeek !== undefined)
|
|
41
|
+
options.push(`isoWeek: ${filter.isoWeek}`);
|
|
42
|
+
return call("currentRange", `${left}, { ${options.join(", ")} }`);
|
|
43
|
+
}
|
|
44
|
+
case "CONSECUTIVE_RANGE": {
|
|
45
|
+
const options = [`unit: ${quote(filter.unit)}`, `count: ${filter.count}`, `offset: ${filter.offset}`];
|
|
46
|
+
if (filter.semantic !== undefined)
|
|
47
|
+
options.push(`semantic: ${filter.semantic}`);
|
|
48
|
+
if (filter.isoWeek !== undefined)
|
|
49
|
+
options.push(`isoWeek: ${filter.isoWeek}`);
|
|
50
|
+
return call("consecutiveRange", `${left}, { ${options.join(", ")} }`);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
const printed = core();
|
|
55
|
+
if (filter.type === "TRUE" || filter.type === "FALSE" || filter.type === "AND" || filter.type === "OR")
|
|
56
|
+
return printed;
|
|
57
|
+
const options = [
|
|
58
|
+
...(filter.aspect !== undefined ? [`aspect: ${(codec.aspect ?? codec.field)(filter.aspect)}`] : []),
|
|
59
|
+
...(filter.type !== "CURRENT_RANGE" && filter.type !== "CONSECUTIVE_RANGE" && filter.semantic === true
|
|
60
|
+
? ["semantic: true"]
|
|
61
|
+
: []),
|
|
62
|
+
];
|
|
63
|
+
return options.length === 0 ? printed : call("withOptions", `${printed}, { ${options.join(", ")} }`);
|
|
64
|
+
}
|
|
65
|
+
function printLikeOptions(filter, quote) {
|
|
66
|
+
const options = [];
|
|
67
|
+
if (filter.not === true)
|
|
68
|
+
options.push("not: true");
|
|
69
|
+
if (filter.caseInsensitive !== undefined)
|
|
70
|
+
options.push(`caseInsensitive: ${filter.caseInsensitive}`);
|
|
71
|
+
if (filter.mode !== undefined && filter.mode !== "LEGACY")
|
|
72
|
+
options.push(`mode: ${quote(filter.mode.toLowerCase())}`);
|
|
73
|
+
return options.length === 0 ? "" : `, { ${options.join(", ")} }`;
|
|
74
|
+
}
|
|
75
|
+
function printFilterValue(value, codec, call, quote) {
|
|
76
|
+
switch (value.type) {
|
|
77
|
+
case "TEXT":
|
|
78
|
+
case "UUID":
|
|
79
|
+
case "DATE":
|
|
80
|
+
case "DATETIME": return quote(value.value);
|
|
81
|
+
case "NUMBER":
|
|
82
|
+
case "BOOLEAN": return String(value.value);
|
|
83
|
+
case "NULL": return "null";
|
|
84
|
+
case "FIELD": {
|
|
85
|
+
if (value.aspect === undefined && value.treatNullAsEquals === undefined)
|
|
86
|
+
return codec.field(value.value);
|
|
87
|
+
const options = [
|
|
88
|
+
...(value.aspect !== undefined ? [`aspect: ${quote(value.aspect)}`] : []),
|
|
89
|
+
...(value.treatNullAsEquals !== undefined ? [`treatNullAsEquals: ${value.treatNullAsEquals}`] : []),
|
|
90
|
+
];
|
|
91
|
+
return call("fieldValue", `${codec.field(value.value)}, { ${options.join(", ")} }`);
|
|
92
|
+
}
|
|
93
|
+
case "CURRENT_USER": return call("currentUser", quote(value.valueType ?? "ID"));
|
|
94
|
+
case "REFERENCE": {
|
|
95
|
+
const options = value.multiple === true ? ", { multiple: true }" : "";
|
|
96
|
+
let helper;
|
|
97
|
+
switch (value.realType) {
|
|
98
|
+
case "BOOLEAN":
|
|
99
|
+
helper = "boolean";
|
|
100
|
+
break;
|
|
101
|
+
case "DATE":
|
|
102
|
+
helper = "date";
|
|
103
|
+
break;
|
|
104
|
+
case "DATETIME":
|
|
105
|
+
helper = "dateTime";
|
|
106
|
+
break;
|
|
107
|
+
case "NUMBER":
|
|
108
|
+
helper = "number";
|
|
109
|
+
break;
|
|
110
|
+
case "TEXT":
|
|
111
|
+
helper = "text";
|
|
112
|
+
break;
|
|
113
|
+
case "UUID":
|
|
114
|
+
helper = "uuid";
|
|
115
|
+
break;
|
|
116
|
+
default: throw new Error(`unsupported filter reference type "${value.realType}"`);
|
|
117
|
+
}
|
|
118
|
+
return call(helper, `${codec.reference(value.value)}${options}`);
|
|
119
|
+
}
|
|
120
|
+
case "RECORD_FIELD": return `${JSON.stringify(value)} as const`;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { type TfValue } from "../../../engine/tf/index.js";
|
|
2
|
+
import type { DateTimeUnit, Filter, LikeMode } from "./types.js";
|
|
3
|
+
export type TfFilterType = "and" | "or" | "equals" | "greater_than" | "greater_than_equals" | "less_than" | "less_than_equals" | "like" | "in" | "between" | "contains" | "overlaps" | "is_null" | "current_range" | "consecutive_range" | "true" | "false";
|
|
4
|
+
type TfDateTimeUnit = Lowercase<DateTimeUnit>;
|
|
5
|
+
type TfLikeMode = Lowercase<LikeMode>;
|
|
6
|
+
export type TfFilterValue = Readonly<{
|
|
7
|
+
type: string;
|
|
8
|
+
value?: TfValue;
|
|
9
|
+
value_reference?: TfValue;
|
|
10
|
+
current_user_type?: string;
|
|
11
|
+
real_type?: string;
|
|
12
|
+
multiple?: boolean;
|
|
13
|
+
field_id?: TfValue;
|
|
14
|
+
aspect_id?: TfValue;
|
|
15
|
+
treat_null_as_equals?: boolean;
|
|
16
|
+
field?: TfValue;
|
|
17
|
+
object?: TfValue;
|
|
18
|
+
dynamic_field?: TfValue;
|
|
19
|
+
dynamic_field_object?: TfValue;
|
|
20
|
+
source_field_type?: string;
|
|
21
|
+
required?: boolean;
|
|
22
|
+
}>;
|
|
23
|
+
type TfFilterLeft = Readonly<{
|
|
24
|
+
field_id?: TfValue;
|
|
25
|
+
value_reference?: TfValue;
|
|
26
|
+
real_type?: string;
|
|
27
|
+
}>;
|
|
28
|
+
type TfFilterBase = Readonly<{
|
|
29
|
+
not?: boolean;
|
|
30
|
+
aspect_id?: TfValue;
|
|
31
|
+
semantic?: boolean;
|
|
32
|
+
}>;
|
|
33
|
+
export type TfFilter = Readonly<{
|
|
34
|
+
type: "true" | "false";
|
|
35
|
+
}> | Readonly<{
|
|
36
|
+
type: "and" | "or";
|
|
37
|
+
children: readonly TfFilter[];
|
|
38
|
+
}> | (TfFilterBase & Readonly<{
|
|
39
|
+
type: "is_null";
|
|
40
|
+
field_id?: TfValue;
|
|
41
|
+
left_value?: TfFilterLeft;
|
|
42
|
+
}>) | (TfFilterBase & Readonly<{
|
|
43
|
+
type: "in";
|
|
44
|
+
field_id?: TfValue;
|
|
45
|
+
left_value?: TfFilterLeft;
|
|
46
|
+
values: readonly TfFilterValue[];
|
|
47
|
+
}>) | (TfFilterBase & Readonly<{
|
|
48
|
+
type: "contains" | "overlaps";
|
|
49
|
+
field_id?: TfValue;
|
|
50
|
+
left_value?: TfFilterLeft;
|
|
51
|
+
values: readonly TfFilterValue[];
|
|
52
|
+
}>) | (TfFilterBase & Readonly<{
|
|
53
|
+
type: "between";
|
|
54
|
+
field_id?: TfValue;
|
|
55
|
+
left_value?: TfFilterLeft;
|
|
56
|
+
min: TfFilterValue;
|
|
57
|
+
max: TfFilterValue;
|
|
58
|
+
}>) | (TfFilterBase & Readonly<{
|
|
59
|
+
type: "equals" | "greater_than" | "greater_than_equals" | "less_than" | "less_than_equals" | "like";
|
|
60
|
+
field_id?: TfValue;
|
|
61
|
+
left_value?: TfFilterLeft;
|
|
62
|
+
value: TfFilterValue;
|
|
63
|
+
case_insensitive?: boolean;
|
|
64
|
+
mode?: TfLikeMode;
|
|
65
|
+
}>) | Readonly<{
|
|
66
|
+
type: "current_range";
|
|
67
|
+
field_id?: TfValue;
|
|
68
|
+
left_value?: TfFilterLeft;
|
|
69
|
+
unit: TfDateTimeUnit;
|
|
70
|
+
aspect_id?: TfValue;
|
|
71
|
+
semantic?: boolean;
|
|
72
|
+
iso_week?: boolean;
|
|
73
|
+
}> | Readonly<{
|
|
74
|
+
type: "consecutive_range";
|
|
75
|
+
field_id?: TfValue;
|
|
76
|
+
left_value?: TfFilterLeft;
|
|
77
|
+
unit: TfDateTimeUnit;
|
|
78
|
+
count: number;
|
|
79
|
+
offset: number;
|
|
80
|
+
aspect_id?: TfValue;
|
|
81
|
+
semantic?: boolean;
|
|
82
|
+
iso_week?: boolean;
|
|
83
|
+
}>;
|
|
84
|
+
export interface FilterToTfCodec {
|
|
85
|
+
readonly field: (value: unknown) => TfValue;
|
|
86
|
+
readonly aspect?: (value: unknown) => TfValue;
|
|
87
|
+
readonly reference: (value: unknown) => TfValue;
|
|
88
|
+
readonly literal?: (value: TfValue, field: unknown | undefined, valueType: string) => TfValue;
|
|
89
|
+
readonly fieldFromLeftValue?: (value: unknown) => unknown | undefined;
|
|
90
|
+
}
|
|
91
|
+
export interface FilterFromTfCodec<Field = string, ReferenceValue = never> {
|
|
92
|
+
readonly field: (value: TfValue, fieldScope: "app" | "user") => Field;
|
|
93
|
+
readonly aspect?: (value: TfValue) => Field;
|
|
94
|
+
readonly reference: (value: TfValue) => ReferenceValue;
|
|
95
|
+
readonly literal?: (value: TfValue, valueType: string) => TfValue;
|
|
96
|
+
}
|
|
97
|
+
export type WireFilterValue = Readonly<{
|
|
98
|
+
type: string;
|
|
99
|
+
value?: TfValue;
|
|
100
|
+
valueType?: string;
|
|
101
|
+
realType?: string;
|
|
102
|
+
multiple?: boolean;
|
|
103
|
+
field?: TfValue;
|
|
104
|
+
aspect?: TfValue;
|
|
105
|
+
treatNullAsEquals?: boolean;
|
|
106
|
+
dynamicField?: TfValue;
|
|
107
|
+
dynamicFieldAspect?: TfValue;
|
|
108
|
+
sourceFieldType?: string;
|
|
109
|
+
required?: boolean;
|
|
110
|
+
}>;
|
|
111
|
+
type WireFilterBase = Readonly<{
|
|
112
|
+
field?: TfValue;
|
|
113
|
+
leftValue?: unknown;
|
|
114
|
+
aspect?: TfValue;
|
|
115
|
+
semantic?: boolean;
|
|
116
|
+
}>;
|
|
117
|
+
/** Canonical platform wire-filter union produced by the HCL codec. */
|
|
118
|
+
export type WireFilter = Readonly<{
|
|
119
|
+
type: "TRUE" | "FALSE";
|
|
120
|
+
}> | Readonly<{
|
|
121
|
+
type: "AND" | "OR";
|
|
122
|
+
children: readonly WireFilter[];
|
|
123
|
+
}> | (WireFilterBase & Readonly<{
|
|
124
|
+
type: "IS_NULL";
|
|
125
|
+
not?: boolean;
|
|
126
|
+
}>) | (WireFilterBase & Readonly<{
|
|
127
|
+
type: "EQUALS";
|
|
128
|
+
value: WireFilterValue;
|
|
129
|
+
not?: boolean;
|
|
130
|
+
}>) | (WireFilterBase & Readonly<{
|
|
131
|
+
type: "GREATER_THAN" | "GREATER_THAN_EQUALS" | "LESS_THAN" | "LESS_THAN_EQUALS";
|
|
132
|
+
value: WireFilterValue;
|
|
133
|
+
}>) | (WireFilterBase & Readonly<{
|
|
134
|
+
type: "LIKE";
|
|
135
|
+
value: WireFilterValue;
|
|
136
|
+
not?: boolean;
|
|
137
|
+
caseInsensitive?: boolean;
|
|
138
|
+
mode?: LikeMode;
|
|
139
|
+
}>) | (WireFilterBase & Readonly<{
|
|
140
|
+
type: "IN";
|
|
141
|
+
values: readonly WireFilterValue[];
|
|
142
|
+
not?: boolean;
|
|
143
|
+
}>) | (WireFilterBase & Readonly<{
|
|
144
|
+
type: "BETWEEN";
|
|
145
|
+
values: readonly [WireFilterValue, WireFilterValue];
|
|
146
|
+
not?: boolean;
|
|
147
|
+
}>) | (WireFilterBase & Readonly<{
|
|
148
|
+
type: "CONTAINS" | "OVERLAPS";
|
|
149
|
+
values: readonly WireFilterValue[];
|
|
150
|
+
not?: boolean;
|
|
151
|
+
}>) | (WireFilterBase & Readonly<{
|
|
152
|
+
type: "CURRENT_RANGE";
|
|
153
|
+
unit: DateTimeUnit;
|
|
154
|
+
isoWeek?: boolean;
|
|
155
|
+
}>) | (WireFilterBase & Readonly<{
|
|
156
|
+
type: "CONSECUTIVE_RANGE";
|
|
157
|
+
unit: DateTimeUnit;
|
|
158
|
+
count: number;
|
|
159
|
+
offset: number;
|
|
160
|
+
isoWeek?: boolean;
|
|
161
|
+
}>);
|
|
162
|
+
/** The only authored/wire-filter -> Terraform-HCL filter serializer. */
|
|
163
|
+
export declare function filterToTf(value: unknown, codec: FilterToTfCodec): TfFilter;
|
|
164
|
+
/** Canonical platform wire-filter -> Terraform-HCL shape. */
|
|
165
|
+
export declare function filterWireToTf(value: unknown): TfFilter;
|
|
166
|
+
/** Canonical Terraform-HCL filter -> platform wire shape for tables/datamines. */
|
|
167
|
+
export declare function filterTfToWire(value: TfValue): WireFilter;
|
|
168
|
+
/** The only Terraform-HCL filter -> strongly typed deserializer AST. */
|
|
169
|
+
export declare function filterFromTf<Field, ReferenceValue>(value: TfValue, codec: FilterFromTfCodec<Field, ReferenceValue>, fieldScope?: "app" | "user"): Filter<Field, ReferenceValue>;
|
|
170
|
+
export {};
|