Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion workspaces/ballerina/ballerina-core/src/interfaces/bi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { NodePosition } from "@wso2/syntax-tree";
import { LinePosition } from "./common";
import { Diagnostic as VSCodeDiagnostic } from "vscode-languageserver-types";
import { ValueTypeConstraint } from "../rpc-types/ai-agent/interfaces";
import { Type } from "./extended-lang-client";

export type { NodePosition };

Expand Down Expand Up @@ -153,6 +154,7 @@ export type FormFieldInputType = "TEXT" |
"RECORD_MAP_EXPRESSION" |
"REPEATABLE_MAP" |
"PROMPT" |
"RECORD_FIELD_SELECTOR" |
"SQL_QUERY" |
"CLAUSE_EXPRESSION" |
"SLIDER" |
Expand Down Expand Up @@ -200,11 +202,23 @@ export interface IdentifierType extends BaseType {
scope: FieldScope;
}

export interface RecordFieldSelectorType extends BaseType {
fieldType: "RECORD_FIELD_SELECTOR";
recordSelectorType: RecordSelectorType;
}

export interface RecordSelectorType {
rootType: Type;
referencedTypes: Type[];
}


export type InputType =
| BaseType
| DropdownType
| TemplateType
| IdentifierType;
| IdentifierType
| RecordFieldSelectorType;

export type Property = {
metadata: Metadata;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1498,6 +1498,8 @@ export interface Member {
optional?: boolean;
imports?: Imports;
readonly?: boolean;
selected?: boolean;
typeName?: string;
isGraphqlId?: boolean;
}

Expand Down
Loading
Loading