@elementumai/edk 0.0.0-oidc-bootstrap → 0.8.1
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 +462 -3
- package/dist-sdk/elementum-entity-client/clients/agents/models/agent-tool.d.ts +188 -0
- package/dist-sdk/elementum-entity-client/clients/agents/models/agent-tool.js +20 -0
- package/dist-sdk/elementum-entity-client/clients/agents/models/agent.d.ts +245 -0
- package/dist-sdk/elementum-entity-client/clients/agents/models/agent.js +30 -0
- package/dist-sdk/elementum-entity-client/clients/ai-provider-connectors/models/ai-provider-connector.d.ts +18 -0
- package/dist-sdk/elementum-entity-client/clients/ai-provider-connectors/models/ai-provider-connector.js +8 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/aspect.d.ts +718 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/aspect.js +52 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/field-base.d.ts +23 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/field-base.js +1 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/field-types.d.ts +148 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/field-types.js +12 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/format.d.ts +63 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/format.js +17 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/index.d.ts +39 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/index.js +35 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/picklist-config.d.ts +116 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/picklist-config.js +11 -0
- package/dist-sdk/elementum-entity-client/clients/automation/models/automation.d.ts +178 -0
- package/dist-sdk/elementum-entity-client/clients/automation/models/automation.js +18 -0
- package/dist-sdk/elementum-entity-client/clients/document-models/models/document-model.d.ts +200 -0
- package/dist-sdk/elementum-entity-client/clients/document-models/models/document-model.js +1 -0
- package/dist-sdk/elementum-entity-client/clients/search-tables/models/index.d.ts +1 -0
- package/dist-sdk/elementum-entity-client/clients/search-tables/models/index.js +1 -0
- package/dist-sdk/elementum-entity-client/clients/search-tables/models/search-table-wire.d.ts +141 -0
- package/dist-sdk/elementum-entity-client/clients/search-tables/models/search-table-wire.js +22 -0
- package/dist-sdk/elementum-entity-client/clients/skills/models/skill-tool.d.ts +123 -0
- package/dist-sdk/elementum-entity-client/clients/skills/models/skill-tool.js +14 -0
- package/dist-sdk/elementum-entity-client/clients/skills/models/skill.d.ts +78 -0
- package/dist-sdk/elementum-entity-client/clients/skills/models/skill.js +23 -0
- package/dist-sdk/elementum-entity-client/clients/tables/models/index.d.ts +1 -0
- package/dist-sdk/elementum-entity-client/clients/tables/models/index.js +1 -0
- package/dist-sdk/elementum-entity-client/clients/tables/models/table-wire.d.ts +265 -0
- package/dist-sdk/elementum-entity-client/clients/tables/models/table-wire.js +15 -0
- package/dist-sdk/elementum-entity-client/errors.d.ts +90 -0
- package/dist-sdk/elementum-entity-client/errors.js +111 -0
- package/dist-sdk/elementum-entity-client/models/connection.d.ts +30 -0
- package/dist-sdk/elementum-entity-client/models/connection.js +16 -0
- package/dist-sdk/elementum-entity-client/types.d.ts +71 -0
- package/dist-sdk/elementum-entity-client/types.js +1 -0
- package/dist-sdk/fs/entity.d.ts +104 -0
- package/dist-sdk/fs/entity.js +52 -0
- package/dist-sdk/pull/util.d.ts +130 -0
- package/dist-sdk/pull/util.js +204 -0
- package/dist-sdk/src/catalog/ai-provider-models.d.ts +30 -0
- package/dist-sdk/src/catalog/ai-provider-models.js +63 -0
- package/dist-sdk/src/catalog/factories.d.ts +242 -0
- package/dist-sdk/src/catalog/factories.js +265 -0
- package/dist-sdk/src/catalog/from-authoring.d.ts +103 -0
- package/dist-sdk/src/catalog/from-authoring.js +467 -0
- package/dist-sdk/src/catalog/index.d.ts +12 -0
- package/dist-sdk/src/catalog/index.js +12 -0
- package/dist-sdk/src/catalog/org.d.ts +11 -0
- package/dist-sdk/src/catalog/org.js +288 -0
- package/dist-sdk/src/catalog/render-helpers.d.ts +35 -0
- package/dist-sdk/src/catalog/render-helpers.js +82 -0
- package/dist-sdk/src/catalog/render.d.ts +48 -0
- package/dist-sdk/src/catalog/render.js +193 -0
- package/dist-sdk/src/catalog/token.d.ts +10 -0
- package/dist-sdk/src/catalog/token.js +76 -0
- package/dist-sdk/src/catalog/types.d.ts +215 -0
- package/dist-sdk/src/catalog/types.js +86 -0
- package/dist-sdk/src/catalog/write.d.ts +43 -0
- package/dist-sdk/src/catalog/write.js +109 -0
- package/dist-sdk/src/core/app-to-ui.d.ts +22 -0
- package/dist-sdk/src/core/app-to-ui.js +75 -0
- package/dist-sdk/src/core/index.d.ts +10 -0
- package/dist-sdk/src/core/index.js +9 -0
- package/dist-sdk/src/core/system-fields.d.ts +95 -0
- package/dist-sdk/src/core/system-fields.js +153 -0
- package/dist-sdk/src/core/triggers/on-demand.d.ts +144 -0
- package/dist-sdk/src/core/triggers/on-demand.js +112 -0
- package/dist-sdk/src/core/types/ai-provider.d.ts +23 -0
- package/dist-sdk/src/core/types/ai-provider.js +8 -0
- package/dist-sdk/src/core/types/app.d.ts +857 -0
- package/dist-sdk/src/core/types/app.js +210 -0
- package/dist-sdk/src/core/types/aspect-category.d.ts +35 -0
- package/dist-sdk/src/core/types/aspect-category.js +33 -0
- package/dist-sdk/src/core/types/cloud-link.d.ts +34 -0
- package/dist-sdk/src/core/types/cloud-link.js +32 -0
- package/dist-sdk/src/core/types/display-block.d.ts +149 -0
- package/dist-sdk/src/core/types/display-block.js +61 -0
- package/dist-sdk/src/core/types/group.d.ts +13 -0
- package/dist-sdk/src/core/types/group.js +6 -0
- package/dist-sdk/src/core/types/platform.d.ts +2 -0
- package/dist-sdk/src/core/types/platform.js +1 -0
- package/dist-sdk/src/core/types/user.d.ts +20 -0
- package/dist-sdk/src/core/types/user.js +8 -0
- package/dist-sdk/src/core/wire/ref-serializer.d.ts +45 -0
- package/dist-sdk/src/core/wire/ref-serializer.js +89 -0
- package/dist-sdk/src/engine/build/context.d.ts +67 -0
- package/dist-sdk/src/engine/build/context.js +6 -0
- package/dist-sdk/src/engine/build/source-context.d.ts +45 -0
- package/dist-sdk/src/engine/build/source-context.js +23 -0
- package/dist-sdk/src/engine/entity.d.ts +44 -0
- package/dist-sdk/src/engine/entity.js +15 -0
- package/dist-sdk/src/engine/pull/context.d.ts +38 -0
- package/dist-sdk/src/engine/pull/context.js +44 -0
- package/dist-sdk/src/engine/pull/org.d.ts +54 -0
- package/dist-sdk/src/engine/pull/org.js +134 -0
- package/dist-sdk/src/engine/tf/escape.d.ts +22 -0
- package/dist-sdk/src/engine/tf/escape.js +28 -0
- package/dist-sdk/src/engine/tf/expr.d.ts +25 -0
- package/dist-sdk/src/engine/tf/expr.js +405 -0
- package/dist-sdk/src/engine/tf/index.d.ts +12 -0
- package/dist-sdk/src/engine/tf/index.js +11 -0
- package/dist-sdk/src/engine/tf/labels.d.ts +76 -0
- package/dist-sdk/src/engine/tf/labels.js +196 -0
- package/dist-sdk/src/engine/tf/model.d.ts +84 -0
- package/dist-sdk/src/engine/tf/model.js +49 -0
- package/dist-sdk/src/engine/tf/parse.d.ts +41 -0
- package/dist-sdk/src/engine/tf/parse.js +189 -0
- package/dist-sdk/src/engine/tf/render.d.ts +13 -0
- package/dist-sdk/src/engine/tf/render.js +102 -0
- package/dist-sdk/src/engine/workspace/authoring-layout.d.ts +43 -0
- package/dist-sdk/src/engine/workspace/authoring-layout.js +201 -0
- package/dist-sdk/src/entities/access-policy/build.d.ts +26 -0
- package/dist-sdk/src/entities/access-policy/build.js +7 -0
- package/dist-sdk/src/entities/access-policy/filter.d.ts +61 -0
- package/dist-sdk/src/entities/access-policy/filter.js +83 -0
- package/dist-sdk/src/entities/access-policy/from-tf.d.ts +48 -0
- package/dist-sdk/src/entities/access-policy/from-tf.js +189 -0
- package/dist-sdk/src/entities/access-policy/module.d.ts +3 -0
- package/dist-sdk/src/entities/access-policy/module.js +17 -0
- package/dist-sdk/src/entities/access-policy/to-tf.d.ts +36 -0
- package/dist-sdk/src/entities/access-policy/to-tf.js +149 -0
- package/dist-sdk/src/entities/access-policy/types.d.ts +4 -0
- package/dist-sdk/src/entities/access-policy/types.js +10 -0
- package/dist-sdk/src/entities/agent/build.d.ts +108 -0
- package/dist-sdk/src/entities/agent/build.js +148 -0
- package/dist-sdk/src/entities/agent/deserializer/print-agent-v2.d.ts +53 -0
- package/dist-sdk/src/entities/agent/deserializer/print-agent-v2.js +344 -0
- package/dist-sdk/src/entities/agent/from-tf.d.ts +65 -0
- package/dist-sdk/src/entities/agent/from-tf.js +289 -0
- package/dist-sdk/src/entities/agent/index.d.ts +7 -0
- package/dist-sdk/src/entities/agent/index.js +7 -0
- package/dist-sdk/src/entities/agent/module.d.ts +4 -0
- package/dist-sdk/src/entities/agent/module.js +122 -0
- package/dist-sdk/src/entities/agent/to-tf.d.ts +33 -0
- package/dist-sdk/src/entities/agent/to-tf.js +188 -0
- package/dist-sdk/src/entities/agent/tools.d.ts +284 -0
- package/dist-sdk/src/entities/agent/tools.js +238 -0
- package/dist-sdk/src/entities/agent-tool/from-tf.d.ts +110 -0
- package/dist-sdk/src/entities/agent-tool/from-tf.js +265 -0
- package/dist-sdk/src/entities/agent-tool/module.d.ts +3 -0
- package/dist-sdk/src/entities/agent-tool/module.js +32 -0
- package/dist-sdk/src/entities/agent-tool/to-tf.d.ts +40 -0
- package/dist-sdk/src/entities/agent-tool/to-tf.js +250 -0
- package/dist-sdk/src/entities/agent-tool/types.d.ts +43 -0
- package/dist-sdk/src/entities/agent-tool/types.js +102 -0
- package/dist-sdk/src/entities/app/build.d.ts +368 -0
- package/dist-sdk/src/entities/app/build.js +372 -0
- package/dist-sdk/src/entities/app/deserializer/normalize.d.ts +168 -0
- package/dist-sdk/src/entities/app/deserializer/normalize.js +12 -0
- package/dist-sdk/src/entities/app/display-blocks.d.ts +26 -0
- package/dist-sdk/src/entities/app/display-blocks.js +34 -0
- package/dist-sdk/src/entities/app/from-tf.d.ts +23 -0
- package/dist-sdk/src/entities/app/from-tf.js +197 -0
- package/dist-sdk/src/entities/app/index.d.ts +14 -0
- package/dist-sdk/src/entities/app/index.js +11 -0
- package/dist-sdk/src/entities/app/locals.d.ts +11 -0
- package/dist-sdk/src/entities/app/locals.js +31 -0
- package/dist-sdk/src/entities/app/module.d.ts +4 -0
- package/dist-sdk/src/entities/app/module.js +66 -0
- package/dist-sdk/src/entities/app/to-tf.d.ts +33 -0
- package/dist-sdk/src/entities/app/to-tf.js +212 -0
- package/dist-sdk/src/entities/approval-chain/build.d.ts +24 -0
- package/dist-sdk/src/entities/approval-chain/build.js +56 -0
- package/dist-sdk/src/entities/approval-chain/index.d.ts +6 -0
- package/dist-sdk/src/entities/approval-chain/index.js +6 -0
- package/dist-sdk/src/entities/approval-chain/steps.d.ts +24 -0
- package/dist-sdk/src/entities/approval-chain/steps.js +20 -0
- package/dist-sdk/src/entities/automation/build.d.ts +259 -0
- package/dist-sdk/src/entities/automation/build.js +436 -0
- package/dist-sdk/src/entities/automation/catalog-render.d.ts +5 -0
- package/dist-sdk/src/entities/automation/catalog-render.js +35 -0
- package/dist-sdk/src/entities/automation/deserializer/ast.d.ts +152 -0
- package/dist-sdk/src/entities/automation/deserializer/ast.js +13 -0
- package/dist-sdk/src/entities/automation/deserializer/print-automation.d.ts +55 -0
- package/dist-sdk/src/entities/automation/deserializer/print-automation.js +1176 -0
- package/dist-sdk/src/entities/automation/filter.d.ts +93 -0
- package/dist-sdk/src/entities/automation/filter.js +156 -0
- package/dist-sdk/src/entities/automation/from-tf.d.ts +35 -0
- package/dist-sdk/src/entities/automation/from-tf.js +1258 -0
- package/dist-sdk/src/entities/automation/index.d.ts +22 -0
- package/dist-sdk/src/entities/automation/index.js +25 -0
- package/dist-sdk/src/entities/automation/module.d.ts +3 -0
- package/dist-sdk/src/entities/automation/module.js +150 -0
- package/dist-sdk/src/entities/automation/operators.d.ts +93 -0
- package/dist-sdk/src/entities/automation/operators.js +69 -0
- package/dist-sdk/src/entities/automation/output-key-wire-name.d.ts +19 -0
- package/dist-sdk/src/entities/automation/output-key-wire-name.js +24 -0
- package/dist-sdk/src/entities/automation/script-code.d.ts +51 -0
- package/dist-sdk/src/entities/automation/script-code.js +633 -0
- package/dist-sdk/src/entities/automation/serialize.d.ts +6 -0
- package/dist-sdk/src/entities/automation/serialize.js +41 -0
- package/dist-sdk/src/entities/automation/tasks.d.ts +641 -0
- package/dist-sdk/src/entities/automation/tasks.js +765 -0
- package/dist-sdk/src/entities/automation/to-tf.d.ts +19 -0
- package/dist-sdk/src/entities/automation/to-tf.js +1169 -0
- package/dist-sdk/src/entities/automation/triggers.d.ts +205 -0
- package/dist-sdk/src/entities/automation/triggers.js +202 -0
- package/dist-sdk/src/entities/automation/types.d.ts +78 -0
- package/dist-sdk/src/entities/automation/types.js +131 -0
- package/dist-sdk/src/entities/element/build.d.ts +121 -0
- package/dist-sdk/src/entities/element/build.js +110 -0
- package/dist-sdk/src/entities/element/from-tf.d.ts +19 -0
- package/dist-sdk/src/entities/element/from-tf.js +170 -0
- package/dist-sdk/src/entities/element/index.d.ts +12 -0
- package/dist-sdk/src/entities/element/index.js +10 -0
- package/dist-sdk/src/entities/element/locals.d.ts +7 -0
- package/dist-sdk/src/entities/element/locals.js +12 -0
- package/dist-sdk/src/entities/element/module.d.ts +8 -0
- package/dist-sdk/src/entities/element/module.js +65 -0
- package/dist-sdk/src/entities/element/to-tf.d.ts +14 -0
- package/dist-sdk/src/entities/element/to-tf.js +169 -0
- package/dist-sdk/src/entities/field/build.d.ts +112 -0
- package/dist-sdk/src/entities/field/build.js +84 -0
- package/dist-sdk/src/entities/field/calc/aggregate.d.ts +60 -0
- package/dist-sdk/src/entities/field/calc/aggregate.js +71 -0
- package/dist-sdk/src/entities/field/calc/date.d.ts +73 -0
- package/dist-sdk/src/entities/field/calc/date.js +109 -0
- package/dist-sdk/src/entities/field/calc/index.d.ts +229 -0
- package/dist-sdk/src/entities/field/calc/index.js +433 -0
- package/dist-sdk/src/entities/field/calc/numeric.d.ts +22 -0
- package/dist-sdk/src/entities/field/calc/numeric.js +67 -0
- package/dist-sdk/src/entities/field/calc/runtime.d.ts +61 -0
- package/dist-sdk/src/entities/field/calc/runtime.js +174 -0
- package/dist-sdk/src/entities/field/calc/text.d.ts +100 -0
- package/dist-sdk/src/entities/field/calc/text.js +208 -0
- package/dist-sdk/src/entities/field/calc/types.d.ts +86 -0
- package/dist-sdk/src/entities/field/calc/types.js +23 -0
- package/dist-sdk/src/entities/field/calc.d.ts +108 -0
- package/dist-sdk/src/entities/field/calc.js +54 -0
- package/dist-sdk/src/entities/field/from-tf.d.ts +31 -0
- package/dist-sdk/src/entities/field/from-tf.js +184 -0
- package/dist-sdk/src/entities/field/locals.d.ts +8 -0
- package/dist-sdk/src/entities/field/locals.js +24 -0
- package/dist-sdk/src/entities/field/module.d.ts +3 -0
- package/dist-sdk/src/entities/field/module.js +50 -0
- package/dist-sdk/src/entities/field/options.d.ts +27 -0
- package/dist-sdk/src/entities/field/options.js +76 -0
- package/dist-sdk/src/entities/field/record-shape.d.ts +57 -0
- package/dist-sdk/src/entities/field/record-shape.js +1 -0
- package/dist-sdk/src/entities/field/to-tf.d.ts +73 -0
- package/dist-sdk/src/entities/field/to-tf.js +142 -0
- package/dist-sdk/src/entities/field/types.d.ts +53 -0
- package/dist-sdk/src/entities/field/types.js +68 -0
- package/dist-sdk/src/entities/file-reader/build.d.ts +182 -0
- package/dist-sdk/src/entities/file-reader/build.js +105 -0
- package/dist-sdk/src/entities/file-reader/deserializer/print-file-reader.d.ts +6 -0
- package/dist-sdk/src/entities/file-reader/deserializer/print-file-reader.js +109 -0
- package/dist-sdk/src/entities/file-reader/from-tf.d.ts +13 -0
- package/dist-sdk/src/entities/file-reader/from-tf.js +172 -0
- package/dist-sdk/src/entities/file-reader/index.d.ts +10 -0
- package/dist-sdk/src/entities/file-reader/index.js +10 -0
- package/dist-sdk/src/entities/file-reader/module.d.ts +3 -0
- package/dist-sdk/src/entities/file-reader/module.js +115 -0
- package/dist-sdk/src/entities/file-reader/to-tf.d.ts +14 -0
- package/dist-sdk/src/entities/file-reader/to-tf.js +84 -0
- package/dist-sdk/src/entities/file-reader/types.d.ts +32 -0
- package/dist-sdk/src/entities/file-reader/types.js +30 -0
- package/dist-sdk/src/entities/flow/activities/agent.d.ts +15 -0
- package/dist-sdk/src/entities/flow/activities/agent.js +29 -0
- package/dist-sdk/src/entities/flow/activities/approval.d.ts +9 -0
- package/dist-sdk/src/entities/flow/activities/approval.js +18 -0
- package/dist-sdk/src/entities/flow/activities/automation.d.ts +12 -0
- package/dist-sdk/src/entities/flow/activities/automation.js +22 -0
- package/dist-sdk/src/entities/flow/activities/ctx.d.ts +34 -0
- package/dist-sdk/src/entities/flow/activities/ctx.js +38 -0
- package/dist-sdk/src/entities/flow/activities/form.d.ts +22 -0
- package/dist-sdk/src/entities/flow/activities/form.js +36 -0
- package/dist-sdk/src/entities/flow/activities/index.d.ts +14 -0
- package/dist-sdk/src/entities/flow/activities/index.js +13 -0
- package/dist-sdk/src/entities/flow/activities/input-refs.d.ts +39 -0
- package/dist-sdk/src/entities/flow/activities/input-refs.js +19 -0
- package/dist-sdk/src/entities/flow/activities/prompt-template.d.ts +13 -0
- package/dist-sdk/src/entities/flow/activities/prompt-template.js +34 -0
- package/dist-sdk/src/entities/flow/activities/render-catalog.d.ts +140 -0
- package/dist-sdk/src/entities/flow/activities/render-catalog.js +174 -0
- package/dist-sdk/src/entities/flow/activities/types.d.ts +33 -0
- package/dist-sdk/src/entities/flow/activities/types.js +1 -0
- package/dist-sdk/src/entities/flow/build.d.ts +38 -0
- package/dist-sdk/src/entities/flow/build.js +115 -0
- package/dist-sdk/src/entities/flow/index.d.ts +8 -0
- package/dist-sdk/src/entities/flow/index.js +7 -0
- package/dist-sdk/src/entities/flow/serialize.d.ts +51 -0
- package/dist-sdk/src/entities/flow/serialize.js +94 -0
- package/dist-sdk/src/entities/flow/util.d.ts +27 -0
- package/dist-sdk/src/entities/flow/util.js +38 -0
- package/dist-sdk/src/entities/org/ai-provider.d.ts +13 -0
- package/dist-sdk/src/entities/org/ai-provider.js +46 -0
- package/dist-sdk/src/entities/org/category.d.ts +5 -0
- package/dist-sdk/src/entities/org/category.js +33 -0
- package/dist-sdk/src/entities/org/cloud-link.d.ts +5 -0
- package/dist-sdk/src/entities/org/cloud-link.js +33 -0
- package/dist-sdk/src/entities/org/connector.d.ts +12 -0
- package/dist-sdk/src/entities/org/connector.js +35 -0
- package/dist-sdk/src/entities/org/group.d.ts +5 -0
- package/dist-sdk/src/entities/org/group.js +40 -0
- package/dist-sdk/src/entities/org/index.d.ts +11 -0
- package/dist-sdk/src/entities/org/index.js +11 -0
- package/dist-sdk/src/entities/org/role.d.ts +7 -0
- package/dist-sdk/src/entities/org/role.js +21 -0
- package/dist-sdk/src/entities/org/user.d.ts +7 -0
- package/dist-sdk/src/entities/org/user.js +30 -0
- package/dist-sdk/src/entities/search-table/build.d.ts +41 -0
- package/dist-sdk/src/entities/search-table/build.js +79 -0
- package/dist-sdk/src/entities/search-table/index.d.ts +5 -0
- package/dist-sdk/src/entities/search-table/index.js +5 -0
- package/dist-sdk/src/entities/search-table/module.d.ts +6 -0
- package/dist-sdk/src/entities/search-table/module.js +64 -0
- package/dist-sdk/src/entities/shared/context.d.ts +93 -0
- package/dist-sdk/src/entities/shared/context.js +156 -0
- package/dist-sdk/src/entities/shared/filters/ast.d.ts +277 -0
- package/dist-sdk/src/entities/shared/filters/ast.js +65 -0
- package/dist-sdk/src/entities/shared/filters/index.d.ts +211 -0
- package/dist-sdk/src/entities/shared/filters/index.js +372 -0
- package/dist-sdk/src/entities/shared/filters/types.d.ts +170 -0
- package/dist-sdk/src/entities/shared/filters/types.js +7 -0
- package/dist-sdk/src/entities/shared/ref.d.ts +160 -0
- package/dist-sdk/src/entities/shared/ref.js +119 -0
- package/dist-sdk/src/entities/shared/tool-field-ref.d.ts +17 -0
- package/dist-sdk/src/entities/shared/tool-field-ref.js +31 -0
- package/dist-sdk/src/entities/shared/types/common.d.ts +106 -0
- package/dist-sdk/src/entities/shared/types/common.js +64 -0
- package/dist-sdk/src/entities/shared/types/field-types.d.ts +58 -0
- package/dist-sdk/src/entities/shared/types/field-types.js +57 -0
- package/dist-sdk/src/entities/shared/types/platform.d.ts +46 -0
- package/dist-sdk/src/entities/shared/types/platform.js +10 -0
- package/dist-sdk/src/entities/skill/build.d.ts +25 -0
- package/dist-sdk/src/entities/skill/build.js +50 -0
- package/dist-sdk/src/entities/skill/deserializer/print-skill-v2.d.ts +39 -0
- package/dist-sdk/src/entities/skill/deserializer/print-skill-v2.js +124 -0
- package/dist-sdk/src/entities/skill/from-tf.d.ts +33 -0
- package/dist-sdk/src/entities/skill/from-tf.js +96 -0
- package/dist-sdk/src/entities/skill/index.d.ts +7 -0
- package/dist-sdk/src/entities/skill/index.js +7 -0
- package/dist-sdk/src/entities/skill/module.d.ts +4 -0
- package/dist-sdk/src/entities/skill/module.js +111 -0
- package/dist-sdk/src/entities/skill/to-tf.d.ts +33 -0
- package/dist-sdk/src/entities/skill/to-tf.js +59 -0
- package/dist-sdk/src/entities/skill/tools.d.ts +93 -0
- package/dist-sdk/src/entities/skill/tools.js +105 -0
- package/dist-sdk/src/entities/skill-tool/from-tf.d.ts +60 -0
- package/dist-sdk/src/entities/skill-tool/from-tf.js +142 -0
- package/dist-sdk/src/entities/skill-tool/module.d.ts +3 -0
- package/dist-sdk/src/entities/skill-tool/module.js +21 -0
- package/dist-sdk/src/entities/skill-tool/to-tf.d.ts +34 -0
- package/dist-sdk/src/entities/skill-tool/to-tf.js +130 -0
- package/dist-sdk/src/entities/skill-tool/types.d.ts +40 -0
- package/dist-sdk/src/entities/skill-tool/types.js +67 -0
- package/dist-sdk/src/entities/table/build.d.ts +74 -0
- package/dist-sdk/src/entities/table/build.js +339 -0
- package/dist-sdk/src/entities/table/catalog-render.d.ts +5 -0
- package/dist-sdk/src/entities/table/catalog-render.js +39 -0
- package/dist-sdk/src/entities/table/fields.d.ts +81 -0
- package/dist-sdk/src/entities/table/fields.js +70 -0
- package/dist-sdk/src/entities/table/filter.d.ts +41 -0
- package/dist-sdk/src/entities/table/filter.js +89 -0
- package/dist-sdk/src/entities/table/index.d.ts +8 -0
- package/dist-sdk/src/entities/table/index.js +12 -0
- package/dist-sdk/src/entities/table/joins.d.ts +26 -0
- package/dist-sdk/src/entities/table/joins.js +31 -0
- package/dist-sdk/src/entities/table/keys.d.ts +11 -0
- package/dist-sdk/src/entities/table/keys.js +25 -0
- package/dist-sdk/src/entities/table/module.d.ts +5 -0
- package/dist-sdk/src/entities/table/module.js +25 -0
- package/dist-sdk/src/entities/table/state.d.ts +39 -0
- package/dist-sdk/src/entities/table/state.js +43 -0
- package/dist-sdk/src/entities/view/from-tf.d.ts +29 -0
- package/dist-sdk/src/entities/view/from-tf.js +235 -0
- package/dist-sdk/src/entities/view/module.d.ts +24 -0
- package/dist-sdk/src/entities/view/module.js +61 -0
- package/dist-sdk/src/entities/view/to-tf.d.ts +65 -0
- package/dist-sdk/src/entities/view/to-tf.js +171 -0
- package/dist-sdk/src/entities/view/types.d.ts +58 -0
- package/dist-sdk/src/entities/view/types.js +89 -0
- package/dist-sdk/src/graph/deferred-catalog-render.d.ts +9 -0
- package/dist-sdk/src/graph/deferred-catalog-render.js +18 -0
- package/dist-sdk/src/graph/index.d.ts +91 -0
- package/dist-sdk/src/graph/index.js +211 -0
- package/dist-sdk/src/graph/modules.d.ts +7 -0
- package/dist-sdk/src/graph/modules.js +42 -0
- package/dist-sdk/src/graph/types.d.ts +375 -0
- package/dist-sdk/src/graph/types.js +102 -0
- package/dist-sdk/src/internal/sdk-package.d.ts +7 -0
- package/dist-sdk/src/internal/sdk-package.js +23 -0
- package/package.json +201 -8
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wire-shape mirrors for every verb on antman's aspect endpoints —
|
|
3
|
+
* request bodies, read responses, pull responses, compose/update
|
|
4
|
+
* responses. One file covers the entire aspect surface so consumers
|
|
5
|
+
* can `import { ... } from "./aspect.js"` without juggling
|
|
6
|
+
* per-endpoint files.
|
|
7
|
+
*
|
|
8
|
+
* Mirrors of ultron's:
|
|
9
|
+
* - `AgentAspectInput` / `AgentAspectUpdateInput` / `AgentCategoryInput`
|
|
10
|
+
* (`ultron/.../aspect/agent/model/`)
|
|
11
|
+
* - `CloudMappingInput`, `CloudOptionsInput`, `RecordCreateTypesInput`,
|
|
12
|
+
* `ServiceConfigInput` (`ultron/.../aspect/definition/model/`)
|
|
13
|
+
* - `AgentAspectResponse` / `AgentAspectUpdateResponse` (compose +
|
|
14
|
+
* update response shapes)
|
|
15
|
+
*
|
|
16
|
+
* Antman declares the compose/update bodies as `Map<String, Object>`
|
|
17
|
+
* to stay tolerant to ultron schema drift, but the EDK side is fully
|
|
18
|
+
* typed via `AgentAspectInput` / `AgentAspectUpdateInput`. Antman
|
|
19
|
+
* forwards the body verbatim and returns ultron's response with
|
|
20
|
+
* `aspectId` + `aspectName`, which is what the late-binding registry
|
|
21
|
+
* needs; the entity-client normalizes that to `id` on the way out
|
|
22
|
+
* — see `aspects/index.ts`.
|
|
23
|
+
*
|
|
24
|
+
* Cross-entity imports are `import type` on purpose — `Aspect`
|
|
25
|
+
* references `Agent` and `Agent` references `Aspect`, which is a
|
|
26
|
+
* type-level cycle. `import type` is erased at compile time so no
|
|
27
|
+
* runtime import is emitted and the cycle never materializes in JS.
|
|
28
|
+
* Keep these imports type-only; promoting them to value imports will
|
|
29
|
+
* reintroduce the runtime cycle and can break module initialization.
|
|
30
|
+
*
|
|
31
|
+
* Picklist values are canonical on `picklistValues` across all
|
|
32
|
+
* endpoints — the entity-client normalizes antman's wire-side `values`
|
|
33
|
+
* from the read endpoints to that name. See
|
|
34
|
+
* `aspects/index.ts:normalizeFieldNames`.
|
|
35
|
+
*
|
|
36
|
+
* Symmetry note: shapes that read identically as compose-side input
|
|
37
|
+
* and as pull-side response collapse to one named type that serves
|
|
38
|
+
* both directions. {@link AspectCategory} (was `AgentCategoryInput` +
|
|
39
|
+
* `AspectCategoryRef`) carries an optional `id` — compose ignores it
|
|
40
|
+
* (server mints); pull populates it. {@link AspectNumericFieldFormat}
|
|
41
|
+
* and {@link AspectFieldQrFormat} live in `format.ts` and likewise
|
|
42
|
+
* serve both directions. {@link PicklistValue} (was
|
|
43
|
+
* `AspectPicklistValue` + `PicklistValuePull`) is the canonical
|
|
44
|
+
* picklist-value shape — read endpoints populate id+label only; pull
|
|
45
|
+
* additionally populates active/color/icon/parentPicklistValueIds.
|
|
46
|
+
* One field-result row type ({@link AspectFieldResult}) covers
|
|
47
|
+
* compose-created, update-updated, and update-created results — the
|
|
48
|
+
* shapes were structurally identical apart from the `system` flag.
|
|
49
|
+
* One {@link AspectOperationSummary} covers both compose and update
|
|
50
|
+
* summary slots with optional counters.
|
|
51
|
+
*/
|
|
52
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared base for every per-variant aspect field input. Mirrors
|
|
3
|
+
* `AbstractAspectFieldInput<T>` on ultron — every concrete variant
|
|
4
|
+
* extends it with variant-specific extras (e.g. `mediaTypes` on
|
|
5
|
+
* attachment fields, `format` on numeric fields).
|
|
6
|
+
*
|
|
7
|
+
* `defaultValue` is `unknown` because each variant constrains it
|
|
8
|
+
* differently (e.g. `boolean` vs `string` vs `string[]`); the SDK
|
|
9
|
+
* doesn't mediate the value beyond passing it to ultron.
|
|
10
|
+
*/
|
|
11
|
+
export interface AspectFieldBaseInput {
|
|
12
|
+
readonly id?: string;
|
|
13
|
+
readonly clientHandle?: string;
|
|
14
|
+
readonly name: string;
|
|
15
|
+
readonly columnName?: string;
|
|
16
|
+
readonly required?: boolean;
|
|
17
|
+
readonly requiredOnClose?: boolean;
|
|
18
|
+
readonly showOnCreate?: boolean;
|
|
19
|
+
readonly description?: string;
|
|
20
|
+
readonly tags?: readonly string[];
|
|
21
|
+
readonly lockOnCreate?: boolean;
|
|
22
|
+
readonly defaultValue?: unknown;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The 15 per-variant `AspectFieldInput` shapes plus the discriminated
|
|
3
|
+
* union and its key-literal helper.
|
|
4
|
+
*
|
|
5
|
+
* Each variant extends `AspectFieldBaseInput` with its variant-specific
|
|
6
|
+
* extras. Calculated fields are the structural odd one out — see
|
|
7
|
+
* `AspectCalculatedFieldInput` below for the shape and the
|
|
8
|
+
* `AspectFieldCalculation` types in `aspect.ts` for the read-side
|
|
9
|
+
* projection (which lives as a slot on every existing variant's
|
|
10
|
+
* typename rather than as its own typename).
|
|
11
|
+
*/
|
|
12
|
+
import type { AspectFieldBaseInput } from "./field-base.js";
|
|
13
|
+
import type { AspectFieldQrFormat, AspectNumericFieldFormat, AspectReferenceFieldFormat } from "./format.js";
|
|
14
|
+
import type { PicklistConfigInput, PicklistValueExInput } from "./picklist-config.js";
|
|
15
|
+
/** Mirror of `AspectAttachmentFieldInput`. Returns `ATTACHMENT_ID` on the wire. */
|
|
16
|
+
export interface AspectAttachmentFieldInput extends AspectFieldBaseInput {
|
|
17
|
+
readonly mediaTypes?: readonly string[];
|
|
18
|
+
}
|
|
19
|
+
/** Mirror of `AspectBooleanFieldInput`. Returns `BOOLEAN` on the wire. */
|
|
20
|
+
export type AspectBooleanFieldInput = AspectFieldBaseInput;
|
|
21
|
+
/** Mirror of `AspectDateFieldInput`. Returns `DATE` on the wire. */
|
|
22
|
+
export type AspectDateFieldInput = AspectFieldBaseInput;
|
|
23
|
+
/** Mirror of `AspectDateTimeFieldInput`. Returns `DATETIME` on the wire. */
|
|
24
|
+
export type AspectDateTimeFieldInput = AspectFieldBaseInput;
|
|
25
|
+
/** Mirror of `AspectDecimalFieldInput`. */
|
|
26
|
+
export interface AspectDecimalFieldInput extends AspectFieldBaseInput {
|
|
27
|
+
readonly format?: AspectNumericFieldFormat;
|
|
28
|
+
}
|
|
29
|
+
/** Mirror of `AspectGroupFieldInput`. Returns `GROUP_ID` on the wire. */
|
|
30
|
+
export type AspectGroupFieldInput = AspectFieldBaseInput;
|
|
31
|
+
/** Mirror of `AspectHandleFieldInput`. Returns `HANDLE` on the wire. */
|
|
32
|
+
export type AspectHandleFieldInput = AspectFieldBaseInput;
|
|
33
|
+
/** Mirror of `AspectHtmlFieldInput`. */
|
|
34
|
+
export type AspectHtmlFieldInput = AspectFieldBaseInput;
|
|
35
|
+
/** Mirror of `AspectJsonFieldInput`. */
|
|
36
|
+
export type AspectJsonFieldInput = AspectFieldBaseInput;
|
|
37
|
+
/** Mirror of `AspectNumberFieldInput` (long-typed). */
|
|
38
|
+
export interface AspectNumberFieldInput extends AspectFieldBaseInput {
|
|
39
|
+
readonly format?: AspectNumericFieldFormat;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Shared base for `AspectPicklistFieldInput` and
|
|
43
|
+
* `AspectMultiPicklistFieldInput` (mirrors `AspectPicklistBaseFieldInput`).
|
|
44
|
+
*
|
|
45
|
+
* Legacy fields on the ultron record (`dynamicPicklistConfig`,
|
|
46
|
+
* `parentFieldId`, `subFields`) are intentionally not surfaced — the
|
|
47
|
+
* EDK's authoring contract for picklists goes through the newer
|
|
48
|
+
* `config: PicklistConfigInput` and `picklistValues` / `values` slots.
|
|
49
|
+
*/
|
|
50
|
+
export interface AspectPicklistBaseFieldInput extends AspectFieldBaseInput {
|
|
51
|
+
/** Legacy id-only list (used on update to reorder/persist). */
|
|
52
|
+
readonly values?: readonly string[];
|
|
53
|
+
readonly config?: PicklistConfigInput;
|
|
54
|
+
readonly picklistValues?: readonly PicklistValueExInput[];
|
|
55
|
+
readonly format?: AspectReferenceFieldFormat;
|
|
56
|
+
}
|
|
57
|
+
/** Mirror of `AspectPicklistFieldInput`. */
|
|
58
|
+
export type AspectPicklistFieldInput = AspectPicklistBaseFieldInput;
|
|
59
|
+
/** Mirror of `AspectMultiPicklistFieldInput`. */
|
|
60
|
+
export type AspectMultiPicklistFieldInput = AspectPicklistBaseFieldInput;
|
|
61
|
+
/** Mirror of `AspectTextFieldInput`. */
|
|
62
|
+
export interface AspectTextFieldInput extends AspectFieldBaseInput {
|
|
63
|
+
readonly format?: AspectFieldQrFormat;
|
|
64
|
+
}
|
|
65
|
+
/** Mirror of `AspectUserFieldInput`. Returns `USER_ID` on the wire. */
|
|
66
|
+
export type AspectUserFieldInput = AspectFieldBaseInput;
|
|
67
|
+
/**
|
|
68
|
+
* One parameter declaration on a calculated field. Mirrors
|
|
69
|
+
* `AspectFieldCalculationParameterInput`. App-aspect calculated fields
|
|
70
|
+
* generally don't use this slot — parameters are a workflow-context
|
|
71
|
+
* feature ({{trigger}}, {{task}}, {{forEach}}) — but the input shape
|
|
72
|
+
* surfaces it because it's shared with the workflow/task calculated-
|
|
73
|
+
* column features. EDK v1 doesn't author parameters; leave unset.
|
|
74
|
+
*/
|
|
75
|
+
export interface AspectFieldCalculationParameterInput {
|
|
76
|
+
readonly type: string;
|
|
77
|
+
readonly paramValue?: unknown;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* One include-type rule for a calculated field. Mirrors
|
|
81
|
+
* `AspectFieldCalculationIncludeTypeInput` discriminated input. Exactly
|
|
82
|
+
* one of `auto` / `manual` / `picklist` should be set per entry.
|
|
83
|
+
*/
|
|
84
|
+
export interface AspectFieldCalculationIncludeTypeInput {
|
|
85
|
+
readonly auto?: {
|
|
86
|
+
readonly type?: string;
|
|
87
|
+
};
|
|
88
|
+
readonly manual?: {
|
|
89
|
+
readonly type?: string;
|
|
90
|
+
};
|
|
91
|
+
readonly picklist?: {
|
|
92
|
+
readonly picklistFieldId: string;
|
|
93
|
+
readonly type?: string;
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Inner calculation body — the raw expression text plus parameter
|
|
98
|
+
* declarations and include-type rules. Mirrors
|
|
99
|
+
* `AspectFieldCalculationInput`. `text` is the only required slot.
|
|
100
|
+
*/
|
|
101
|
+
export interface AspectFieldCalculationInput {
|
|
102
|
+
readonly text: string;
|
|
103
|
+
readonly parameters?: readonly AspectFieldCalculationParameterInput[];
|
|
104
|
+
readonly includeTypes?: readonly AspectFieldCalculationIncludeTypeInput[];
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Mirror of `AspectCalculatedFieldInput` (`AspectCalculatedFieldCreateInput`
|
|
108
|
+
* on the GraphQL graph; the update-side input relaxes `name` and
|
|
109
|
+
* `calculation` to optional). The output field type
|
|
110
|
+
* (NUMBER/DECIMAL/TEXT/...) is server-inferred from the expression
|
|
111
|
+
* `text` — there is no explicit output-type slot.
|
|
112
|
+
*/
|
|
113
|
+
export interface AspectCalculatedFieldInput {
|
|
114
|
+
readonly name: string;
|
|
115
|
+
readonly columnName?: string;
|
|
116
|
+
readonly description?: string;
|
|
117
|
+
readonly tags?: readonly string[];
|
|
118
|
+
readonly format?: AspectReferenceFieldFormat;
|
|
119
|
+
readonly calculation: AspectFieldCalculationInput;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Mirror of ultron's `AspectFieldInput` — exactly one of the 15 keys
|
|
123
|
+
* is set per row in `AgentAspectInput.fields[]`. The serializer
|
|
124
|
+
* enforces this; the type is `Partial<...>` so individual keys can be
|
|
125
|
+
* absent without forcing all 14 others into the literal.
|
|
126
|
+
*/
|
|
127
|
+
export interface AspectFieldInput {
|
|
128
|
+
readonly attachment?: AspectAttachmentFieldInput;
|
|
129
|
+
readonly bool?: AspectBooleanFieldInput;
|
|
130
|
+
readonly calculated?: AspectCalculatedFieldInput;
|
|
131
|
+
readonly date?: AspectDateFieldInput;
|
|
132
|
+
readonly dateTime?: AspectDateTimeFieldInput;
|
|
133
|
+
readonly decimal?: AspectDecimalFieldInput;
|
|
134
|
+
readonly group?: AspectGroupFieldInput;
|
|
135
|
+
readonly handle?: AspectHandleFieldInput;
|
|
136
|
+
readonly html?: AspectHtmlFieldInput;
|
|
137
|
+
readonly json?: AspectJsonFieldInput;
|
|
138
|
+
readonly number?: AspectNumberFieldInput;
|
|
139
|
+
readonly picklist?: AspectPicklistFieldInput;
|
|
140
|
+
readonly multiPicklist?: AspectMultiPicklistFieldInput;
|
|
141
|
+
readonly text?: AspectTextFieldInput;
|
|
142
|
+
readonly user?: AspectUserFieldInput;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* The 15-variant union as a literal-string union — used by the
|
|
146
|
+
* serializer's lookup tables and tests.
|
|
147
|
+
*/
|
|
148
|
+
export type AspectFieldInputKey = "attachment" | "bool" | "calculated" | "date" | "dateTime" | "decimal" | "group" | "handle" | "html" | "json" | "number" | "picklist" | "multiPicklist" | "text" | "user";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The 15 per-variant `AspectFieldInput` shapes plus the discriminated
|
|
3
|
+
* union and its key-literal helper.
|
|
4
|
+
*
|
|
5
|
+
* Each variant extends `AspectFieldBaseInput` with its variant-specific
|
|
6
|
+
* extras. Calculated fields are the structural odd one out — see
|
|
7
|
+
* `AspectCalculatedFieldInput` below for the shape and the
|
|
8
|
+
* `AspectFieldCalculation` types in `aspect.ts` for the read-side
|
|
9
|
+
* projection (which lives as a slot on every existing variant's
|
|
10
|
+
* typename rather than as its own typename).
|
|
11
|
+
*/
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wire-shape format types — control how a field's value is displayed
|
|
3
|
+
* (currency / percent / decimal places for numeric fields; QR codes
|
|
4
|
+
* for text/handle fields; reference wrappers for picklist fields).
|
|
5
|
+
*
|
|
6
|
+
* One type per format kind serves both directions on the wire:
|
|
7
|
+
* compose-side input bodies and pull-side response payloads share the
|
|
8
|
+
* same shape, so a single declaration covers both.
|
|
9
|
+
*
|
|
10
|
+
* Mirrors ultron's:
|
|
11
|
+
* - `AspectNumericFieldFormatInput` / `AspectNumericFieldFormat`
|
|
12
|
+
* (`shared/.../fieldformat/input/`)
|
|
13
|
+
* - `AspectReferenceFieldFormatInput` / `AspectReferenceFieldFormat`
|
|
14
|
+
* - `AspectFieldQrFormatInput` / `AspectFieldQrFormat`
|
|
15
|
+
* - `Currency` enum (`shared/.../fieldformat/Currency.java`)
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* ISO-4217 currency codes ultron supports for numeric formatting.
|
|
19
|
+
* Mirrors ultron's `Currency` enum.
|
|
20
|
+
*/
|
|
21
|
+
export type CurrencyCode = "USD" | "EUR" | "JPY" | "GBP" | "AUD" | "CAD" | "CHF" | "CNY" | "SEK" | "MXN" | "NZD" | "SGD" | "HKD" | "NOK" | "KRW" | "TRY" | "INR" | "RUB" | "BRL" | "ZAR" | "DKK" | "PLN" | "TWD" | "THB" | "MYR";
|
|
22
|
+
/**
|
|
23
|
+
* Numeric field format — controls how decimal / number /
|
|
24
|
+
* calculated-numeric fields render. Each option is independent (e.g.
|
|
25
|
+
* setting `currency` does not preclude `delimiter`); ultron applies
|
|
26
|
+
* the format only to fields whose type is in the "compatible types"
|
|
27
|
+
* set, otherwise the existing format is preserved.
|
|
28
|
+
*
|
|
29
|
+
* Used as both the compose-side input body slot and the pull-side
|
|
30
|
+
* response slot (`AspectFieldPullResponse.numericFormat`).
|
|
31
|
+
*/
|
|
32
|
+
export interface AspectNumericFieldFormat {
|
|
33
|
+
/** When true, render negative values in red. */
|
|
34
|
+
readonly negativeColor?: boolean;
|
|
35
|
+
/** Render with a currency prefix (e.g. "$1,000"). */
|
|
36
|
+
readonly currency?: CurrencyCode;
|
|
37
|
+
/** When true, group thousands with the locale delimiter. */
|
|
38
|
+
readonly delimiter?: boolean;
|
|
39
|
+
readonly decimalPlaces?: number;
|
|
40
|
+
readonly scientificNotation?: boolean;
|
|
41
|
+
/** Render negatives in parentheses (accounting style). */
|
|
42
|
+
readonly accountingNotation?: boolean;
|
|
43
|
+
/** Multiplier applied before formatting (e.g. 100 for percent). */
|
|
44
|
+
readonly multiplyBy?: number;
|
|
45
|
+
/** Render as a percentage (appends "%"; pairs with `multiplyBy: 100`). */
|
|
46
|
+
readonly percentage?: boolean;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Reference field format — wraps a sub-format for fields whose value
|
|
50
|
+
* is a reference (picklist fields). The wrapper exists so future
|
|
51
|
+
* sub-formats can be added without touching every call site.
|
|
52
|
+
*/
|
|
53
|
+
export interface AspectReferenceFieldFormat {
|
|
54
|
+
readonly numeric?: AspectNumericFieldFormat;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* QR field format — opt-in QR rendering for fields whose value is
|
|
58
|
+
* encodable as a QR code (e.g. handle, text).
|
|
59
|
+
*/
|
|
60
|
+
export interface AspectFieldQrFormat {
|
|
61
|
+
/** When true, ultron renders the field's value as a QR code. */
|
|
62
|
+
readonly qr?: boolean;
|
|
63
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wire-shape format types — control how a field's value is displayed
|
|
3
|
+
* (currency / percent / decimal places for numeric fields; QR codes
|
|
4
|
+
* for text/handle fields; reference wrappers for picklist fields).
|
|
5
|
+
*
|
|
6
|
+
* One type per format kind serves both directions on the wire:
|
|
7
|
+
* compose-side input bodies and pull-side response payloads share the
|
|
8
|
+
* same shape, so a single declaration covers both.
|
|
9
|
+
*
|
|
10
|
+
* Mirrors ultron's:
|
|
11
|
+
* - `AspectNumericFieldFormatInput` / `AspectNumericFieldFormat`
|
|
12
|
+
* (`shared/.../fieldformat/input/`)
|
|
13
|
+
* - `AspectReferenceFieldFormatInput` / `AspectReferenceFieldFormat`
|
|
14
|
+
* - `AspectFieldQrFormatInput` / `AspectFieldQrFormat`
|
|
15
|
+
* - `Currency` enum (`shared/.../fieldformat/Currency.java`)
|
|
16
|
+
*/
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Barrel for the aspect wire-shape mirrors. Top-level aspect shapes
|
|
3
|
+
* (inputs, read responses, pull responses, write responses) live in
|
|
4
|
+
* `aspect.ts`. Per-variant field shapes and format/picklist sub-shapes
|
|
5
|
+
* stay split out:
|
|
6
|
+
* - `aspect.ts` — every top-level aspect wire shape:
|
|
7
|
+
* `AspectDefinitionInput`, `AspectPullInput`,
|
|
8
|
+
* `AgentAspectInput`, `AgentAspectUpdateInput`,
|
|
9
|
+
* `AgentFieldUpdateInput`, supporting input
|
|
10
|
+
* sub-shapes (category, cloud, service,
|
|
11
|
+
* record-create), read shapes (`Aspect`,
|
|
12
|
+
* `AspectField`, `PicklistValue`,
|
|
13
|
+
* search tables), pull-side extensions
|
|
14
|
+
* (`AspectPullResponse`,
|
|
15
|
+
* `AspectFieldPullResponse`,
|
|
16
|
+
* `AspectPicklistDynamicConfigRef`), and
|
|
17
|
+
* compose/update response shapes
|
|
18
|
+
* (`AspectFieldResult`,
|
|
19
|
+
* `AspectOperationSummary`,
|
|
20
|
+
* `ComposeAspectWireResponse`,
|
|
21
|
+
* `UpdateAspectWireResponse`,
|
|
22
|
+
* `DeployedAspect`).
|
|
23
|
+
* - `field-base.ts` — `AspectFieldBaseInput` (shared base for
|
|
24
|
+
* compose-side field inputs).
|
|
25
|
+
* - `field-types.ts` — 14 per-variant compose-side field inputs
|
|
26
|
+
* + `AspectFieldInput` discriminated union.
|
|
27
|
+
* - `format.ts` — bidirectional format shapes (numeric /
|
|
28
|
+
* qr / reference) — one type per kind
|
|
29
|
+
* serves both compose inputs and pull
|
|
30
|
+
* responses; plus currency code.
|
|
31
|
+
* - `picklist-config.ts` — input-side picklist config (`PicklistConfigInput`
|
|
32
|
+
* + static/dynamic sub-shapes,
|
|
33
|
+
* `PicklistValueExInput`).
|
|
34
|
+
*/
|
|
35
|
+
export type { AgentAspectInput, AgentAspectUpdateInput, AgentFieldUpdateInput, ApprovalChainTemplate, Aspect, AspectCategory, AspectCloudConnection, AspectDefinitionInput, AspectDisplayBlockInput, AspectDisplayBlockPullResponse, AspectDocumentModel, AspectDocumentModelField, AspectField, AspectFieldCalculation, AspectFieldCalculationIncludeType, AspectFieldCalculationReferencedField, AspectFieldPullResponse, AspectFieldResult, AspectFlow, AspectOperationSummary, AspectPicklistDynamicConfigRef, AspectPullInput, AspectPullResponse, AspectSearchTable, AspectSearchTableField, AspectStage, AspectTypeWire, CloudMappingInput, CloudOptionsInput, ComposeAspectWireResponse, DeployedAspect, DisplayBlockPropertiesInput, PicklistValue, RecordCreateTypesInput, ServiceConfigInput, SnowflakeMappingInput, SnowflakeOptionsInput, UpdateAspectWireResponse, } from "./aspect.js";
|
|
36
|
+
export type { AspectFieldBaseInput } from "./field-base.js";
|
|
37
|
+
export type { AspectFieldQrFormat, AspectNumericFieldFormat, AspectReferenceFieldFormat, CurrencyCode, } from "./format.js";
|
|
38
|
+
export type { AspectDynamicPicklistValuesRenderType, PicklistConfigInput, PicklistDynamicConfigInput, PicklistDynamicParentMapping, PicklistFilterInput, PicklistSortInput, PicklistStaticConfigInput, PicklistValueExInput, } from "./picklist-config.js";
|
|
39
|
+
export type { AspectAttachmentFieldInput, AspectBooleanFieldInput, AspectCalculatedFieldInput, AspectDateFieldInput, AspectDateTimeFieldInput, AspectDecimalFieldInput, AspectFieldCalculationIncludeTypeInput, AspectFieldCalculationInput, AspectFieldCalculationParameterInput, AspectFieldInput, AspectFieldInputKey, AspectGroupFieldInput, AspectHandleFieldInput, AspectHtmlFieldInput, AspectJsonFieldInput, AspectMultiPicklistFieldInput, AspectNumberFieldInput, AspectPicklistBaseFieldInput, AspectPicklistFieldInput, AspectTextFieldInput, AspectUserFieldInput, } from "./field-types.js";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Barrel for the aspect wire-shape mirrors. Top-level aspect shapes
|
|
3
|
+
* (inputs, read responses, pull responses, write responses) live in
|
|
4
|
+
* `aspect.ts`. Per-variant field shapes and format/picklist sub-shapes
|
|
5
|
+
* stay split out:
|
|
6
|
+
* - `aspect.ts` — every top-level aspect wire shape:
|
|
7
|
+
* `AspectDefinitionInput`, `AspectPullInput`,
|
|
8
|
+
* `AgentAspectInput`, `AgentAspectUpdateInput`,
|
|
9
|
+
* `AgentFieldUpdateInput`, supporting input
|
|
10
|
+
* sub-shapes (category, cloud, service,
|
|
11
|
+
* record-create), read shapes (`Aspect`,
|
|
12
|
+
* `AspectField`, `PicklistValue`,
|
|
13
|
+
* search tables), pull-side extensions
|
|
14
|
+
* (`AspectPullResponse`,
|
|
15
|
+
* `AspectFieldPullResponse`,
|
|
16
|
+
* `AspectPicklistDynamicConfigRef`), and
|
|
17
|
+
* compose/update response shapes
|
|
18
|
+
* (`AspectFieldResult`,
|
|
19
|
+
* `AspectOperationSummary`,
|
|
20
|
+
* `ComposeAspectWireResponse`,
|
|
21
|
+
* `UpdateAspectWireResponse`,
|
|
22
|
+
* `DeployedAspect`).
|
|
23
|
+
* - `field-base.ts` — `AspectFieldBaseInput` (shared base for
|
|
24
|
+
* compose-side field inputs).
|
|
25
|
+
* - `field-types.ts` — 14 per-variant compose-side field inputs
|
|
26
|
+
* + `AspectFieldInput` discriminated union.
|
|
27
|
+
* - `format.ts` — bidirectional format shapes (numeric /
|
|
28
|
+
* qr / reference) — one type per kind
|
|
29
|
+
* serves both compose inputs and pull
|
|
30
|
+
* responses; plus currency code.
|
|
31
|
+
* - `picklist-config.ts` — input-side picklist config (`PicklistConfigInput`
|
|
32
|
+
* + static/dynamic sub-shapes,
|
|
33
|
+
* `PicklistValueExInput`).
|
|
34
|
+
*/
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Picklist authoring shapes — `PicklistConfigInput` (the polymorphic
|
|
3
|
+
* static/dynamic config wrapper), its sub-shapes, and the
|
|
4
|
+
* `PicklistValueExInput` value declaration record.
|
|
5
|
+
*
|
|
6
|
+
* Mirrors ultron's `PicklistConfigInput` (`shared/.../picklist/model/`)
|
|
7
|
+
* with the deprecated `dynamicPicklistConfig` and internal `stage`
|
|
8
|
+
* paths intentionally not surfaced — see comments on
|
|
9
|
+
* `PicklistConfigInput`.
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Free-form filter shape forwarded verbatim to ultron's `Filter` wire
|
|
13
|
+
* type. The EDK has its own filter authoring system under
|
|
14
|
+
* `src/core/filters/` that emits this shape; tightening this slot to
|
|
15
|
+
* the EDK's `FilterExpr` would couple the entity-client to the core
|
|
16
|
+
* filter module, so we leave it loose here and let the serializer-side
|
|
17
|
+
* helpers project on this slot when needed.
|
|
18
|
+
*/
|
|
19
|
+
export type PicklistFilterInput = Readonly<Record<string, unknown>>;
|
|
20
|
+
/** Free-form sort spec forwarded verbatim to ultron's `Sort` type. */
|
|
21
|
+
export type PicklistSortInput = Readonly<Record<string, unknown>>;
|
|
22
|
+
/**
|
|
23
|
+
* How a dynamic picklist renders its values. Mirrors
|
|
24
|
+
* `AspectDynamicPicklistValuesRenderType` on ultron — used to switch
|
|
25
|
+
* between rendering the related record's display value vs. an icon
|
|
26
|
+
* etc. depending on UI affordance.
|
|
27
|
+
*/
|
|
28
|
+
export type AspectDynamicPicklistValuesRenderType = string;
|
|
29
|
+
/**
|
|
30
|
+
* Mirror of `PicklistDynamicParentMapping`
|
|
31
|
+
* (`ultron/.../picklist/model/PicklistDynamicParentMapping.java`) —
|
|
32
|
+
* pairs a parent-aspect field with a related-aspect field for cascading
|
|
33
|
+
* picklists.
|
|
34
|
+
*/
|
|
35
|
+
export interface PicklistDynamicParentMapping {
|
|
36
|
+
readonly parentAspectFieldId: string;
|
|
37
|
+
readonly relatedAspectFieldId: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Mirror of `PicklistStaticConfigInput`
|
|
41
|
+
* (`ultron/.../picklist/model/PicklistStaticConfigInput.java`).
|
|
42
|
+
* The values themselves come via `picklistValues` on the field — this
|
|
43
|
+
* config carries optional filter/sort and parent linkage.
|
|
44
|
+
*/
|
|
45
|
+
export interface PicklistStaticConfigInput {
|
|
46
|
+
readonly parentFieldId?: string;
|
|
47
|
+
readonly filter?: PicklistFilterInput;
|
|
48
|
+
readonly sort?: PicklistSortInput;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Mirror of `PicklistDynamicConfigInput`
|
|
52
|
+
* (`ultron/.../picklist/model/PicklistDynamicConfigInput.java`).
|
|
53
|
+
* Configures a picklist whose values come from records of another
|
|
54
|
+
* aspect — `relatedAspectId` is the source aspect, `relatedLabelFieldId`
|
|
55
|
+
* is the field on that aspect whose value is shown for each option.
|
|
56
|
+
*/
|
|
57
|
+
export interface PicklistDynamicConfigInput {
|
|
58
|
+
readonly relatedAspectId: string;
|
|
59
|
+
readonly relatedLabelFieldId: string;
|
|
60
|
+
readonly parentFieldId?: string;
|
|
61
|
+
readonly parentMappings?: readonly PicklistDynamicParentMapping[];
|
|
62
|
+
readonly autoRelate?: boolean;
|
|
63
|
+
readonly valuesRenderType?: AspectDynamicPicklistValuesRenderType;
|
|
64
|
+
readonly filter?: PicklistFilterInput;
|
|
65
|
+
readonly sort?: PicklistSortInput;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Mirror of `PicklistConfigInput`. Polymorphic — exactly one of
|
|
69
|
+
* `static` or `dynamic` is populated; the platform dispatches on
|
|
70
|
+
* the populated branch.
|
|
71
|
+
*
|
|
72
|
+
* `stage` and `api` are intentionally not exposed for authoring:
|
|
73
|
+
* - `stage` is internal-only (process-state picklists are
|
|
74
|
+
* auto-managed by the platform).
|
|
75
|
+
* - `api` (HTTP-sourced picklists) carries a sprawling shape
|
|
76
|
+
* (URL/body templates, auth, JSON Schema response, etc.) that
|
|
77
|
+
* deserves its own typed authoring contract — deferred to a
|
|
78
|
+
* follow-on piece. Authors needing API picklists today should
|
|
79
|
+
* wait for that work or open a feature request.
|
|
80
|
+
*/
|
|
81
|
+
export interface PicklistConfigInput {
|
|
82
|
+
/** Static picklist — values are listed in `picklistValues`. */
|
|
83
|
+
readonly static?: PicklistStaticConfigInput;
|
|
84
|
+
/** Values come from records of another aspect. */
|
|
85
|
+
readonly dynamic?: PicklistDynamicConfigInput;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Mirror of `PicklistValueExInput` — the "new way" of declaring picklist
|
|
89
|
+
* values. The EDK exposes only the canonical-id + label pair (the rest
|
|
90
|
+
* of the wire shape is largely defaults the agent never sets).
|
|
91
|
+
*
|
|
92
|
+
* `relatedParentValues` carries the per-option dependent-picklist
|
|
93
|
+
* mapping: each entry is an id of an option on this field's
|
|
94
|
+
* `parentField`. Server-side validation rejects a record save whose
|
|
95
|
+
* child selection's `relatedParentValues` doesn't contain the current
|
|
96
|
+
* parent option's id. Names mirror the platform input (`relatedParentValues`
|
|
97
|
+
* on write, returned as `parentPicklistValueIds` on read — the read
|
|
98
|
+
* shape lives on {@link PicklistValue}).
|
|
99
|
+
*/
|
|
100
|
+
export interface PicklistValueExInput {
|
|
101
|
+
readonly id?: string;
|
|
102
|
+
readonly value: string;
|
|
103
|
+
readonly label?: string;
|
|
104
|
+
readonly color?: string;
|
|
105
|
+
readonly icon?: string;
|
|
106
|
+
readonly relatedParentValues?: readonly string[];
|
|
107
|
+
/**
|
|
108
|
+
* Per-value semantic tags — `CLOSED`, `CRITICAL`, `HIGH`, `MEDIUM`,
|
|
109
|
+
* `LOW`. The platform reads these to drive behaviour on the STATUS
|
|
110
|
+
* field (CLOSED-tagged values auto-stamp close timestamps) and to
|
|
111
|
+
* surface priority hints in the UI. Round-trips through the pull
|
|
112
|
+
* → re-deploy path; agents writing fresh status fields can set
|
|
113
|
+
* `CLOSED` to mark which value represents a closed record.
|
|
114
|
+
*/
|
|
115
|
+
readonly tags?: readonly string[];
|
|
116
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Picklist authoring shapes — `PicklistConfigInput` (the polymorphic
|
|
3
|
+
* static/dynamic config wrapper), its sub-shapes, and the
|
|
4
|
+
* `PicklistValueExInput` value declaration record.
|
|
5
|
+
*
|
|
6
|
+
* Mirrors ultron's `PicklistConfigInput` (`shared/.../picklist/model/`)
|
|
7
|
+
* with the deprecated `dynamicPicklistConfig` and internal `stage`
|
|
8
|
+
* paths intentionally not surfaced — see comments on
|
|
9
|
+
* `PicklistConfigInput`.
|
|
10
|
+
*/
|
|
11
|
+
export {};
|