From e6d516b39c0aa47d8253e98961c15a77a36a994a Mon Sep 17 00:00:00 2001 From: Nipuna Fernando Date: Sat, 9 Nov 2024 13:47:11 +0530 Subject: [PATCH] Only show functions in get functions --- .../core/FunctionGenerator.java | 2 +- .../core/db/DatabaseManager.java | 9 +- .../get_functions/config/custom_default.json | 2192 ++++------------- .../get_functions/config/default.json | 2192 ++++------------- 4 files changed, 968 insertions(+), 3427 deletions(-) diff --git a/flow-model-generator/modules/flow-model-generator-core/src/main/java/io/ballerina/flowmodelgenerator/core/FunctionGenerator.java b/flow-model-generator/modules/flow-model-generator-core/src/main/java/io/ballerina/flowmodelgenerator/core/FunctionGenerator.java index 679a5229d..a3663347b 100644 --- a/flow-model-generator/modules/flow-model-generator-core/src/main/java/io/ballerina/flowmodelgenerator/core/FunctionGenerator.java +++ b/flow-model-generator/modules/flow-model-generator-core/src/main/java/io/ballerina/flowmodelgenerator/core/FunctionGenerator.java @@ -129,7 +129,7 @@ private void buildUtilityNodes(Map queryMap) { DatabaseManager dbManager = DatabaseManager.getInstance(); List functionResults = CommonUtils.hasNoKeyword(queryMap, "q") ? - dbManager.getFunctionsByOrg("ballerina") : + dbManager.getFunctionsByOrg("ballerina", DatabaseManager.FunctionKind.FUNCTION) : dbManager.searchFunctions(queryMap, DatabaseManager.FunctionKind.FUNCTION); for (FunctionResult functionResult : functionResults) { diff --git a/flow-model-generator/modules/flow-model-generator-core/src/main/java/io/ballerina/flowmodelgenerator/core/db/DatabaseManager.java b/flow-model-generator/modules/flow-model-generator-core/src/main/java/io/ballerina/flowmodelgenerator/core/db/DatabaseManager.java index 5d3f53ce6..5ff860074 100644 --- a/flow-model-generator/modules/flow-model-generator-core/src/main/java/io/ballerina/flowmodelgenerator/core/db/DatabaseManager.java +++ b/flow-model-generator/modules/flow-model-generator-core/src/main/java/io/ballerina/flowmodelgenerator/core/db/DatabaseManager.java @@ -138,7 +138,7 @@ public List getAllFunctions(FunctionKind kind) { } } - public List getFunctionsByOrg(String orgName) { + public List getFunctionsByOrg(String orgName, FunctionKind functionKind) { String sql = "SELECT " + "f.function_id, " + "f.name AS function_name, " + @@ -152,11 +152,12 @@ public List getFunctionsByOrg(String orgName) { "p.version " + "FROM Function f " + "JOIN Package p ON f.package_id = p.package_id " + - "WHERE p.org = ?;"; + "WHERE f.kind = ? AND p.org = ?;"; try (Connection conn = DriverManager.getConnection(dbPath); PreparedStatement stmt = conn.prepareStatement(sql)) { - stmt.setString(1, orgName); + stmt.setString(1, functionKind.name()); + stmt.setString(2, orgName); ResultSet rs = stmt.executeQuery(); List functionResults = new ArrayList<>(); while (rs.next()) { @@ -306,7 +307,7 @@ public Optional getAction(String org, String module, String symb } else { sql.append("AND f.name = ?;"); } - + try (Connection conn = DriverManager.getConnection(dbPath); PreparedStatement stmt = conn.prepareStatement(sql.toString())) { stmt.setString(1, org); diff --git a/flow-model-generator/modules/flow-model-generator-ls-extension/src/test/resources/get_functions/config/custom_default.json b/flow-model-generator/modules/flow-model-generator-ls-extension/src/test/resources/get_functions/config/custom_default.json index bdee8a2f9..59f79b751 100644 --- a/flow-model-generator/modules/flow-model-generator-ls-extension/src/test/resources/get_functions/config/custom_default.json +++ b/flow-model-generator/modules/flow-model-generator-ls-extension/src/test/resources/get_functions/config/custom_default.json @@ -1092,97 +1092,145 @@ }, { "metadata": { - "label": "grpc", + "label": "lang.error", "description": "", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_grpc_1.12.1.png" + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.error_0.0.0.png" }, "items": [ { "metadata": { - "label": "init", - "description": "The base client used in the generated client code to provide the capability for initiating the contact and executing remote calls with a remote gRPC service.", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_grpc_1.12.1.png" + "label": "message", + "description": "Returns the error's message.\n\n```ballerina\nerror(\"IO error\").message() ⇒ IO error\n```\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.error_0.0.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "grpc", - "symbol": "init", - "version": "1.12.1" + "module": "lang.error", + "symbol": "message", + "version": "0.0.0" }, "enabled": true }, { "metadata": { - "label": "initStub", - "description": "Calls when initializing the client endpoint with the service descriptor data extracted from the proto file.\n```ballerina\ngrpc:Error? result = grpcClient.initStub(self, ROOT_DESCRIPTOR, getDescriptorMap());\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_grpc_1.12.1.png" + "label": "cause", + "description": "Returns the error's cause.\n\n```ballerina\nerror fileNotFoundError = error(\"file not found\", file = \"test.bal\");\nfileNotFoundError.cause() is () ⇒ true\nerror ioError = error(\"IO error\", fileNotFoundError);\nioError.cause() ⇒ error(\"file not found\",file=\"test.bal\")\n```\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.error_0.0.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "grpc", - "symbol": "initStub", - "version": "1.12.1" + "module": "lang.error", + "symbol": "cause", + "version": "0.0.0" }, "enabled": true }, { "metadata": { - "label": "executeSimpleRPC", - "description": "Calls when executing a unary gRPC service.\n```ballerina\n[anydata, map]|grpc:Error result = grpcClient->executeSimpleRPC(\"HelloWorld/hello\", req, headers);\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_grpc_1.12.1.png" + "label": "detail", + "description": "Returns the error's detail record.\n\n```ballerina\nerror(\"file not found\", file = \"test.bal\").detail() ⇒ {\"file\":\"test.bal\"}\n```\n\nThe returned value will be immutable.", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.error_0.0.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "grpc", - "symbol": "executeSimpleRPC", - "version": "1.12.1" + "module": "lang.error", + "symbol": "detail", + "version": "0.0.0" }, "enabled": true }, { "metadata": { - "label": "executeServerStreaming", - "description": "Calls when executing a server streaming call with a gRPC service.\n```ballerina\n[stream, map]|grpc:Error result = grpcClient->executeServerStreaming(\"HelloWorld/hello\", req, headers);\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_grpc_1.12.1.png" + "label": "stackTrace", + "description": "Returns an object representing the stack trace of the error.\n\n```ballerina\nerror(\"IO error\").stackTrace() ⇒ [callableName: main fileName: test.bal lineNumber: 5]\n```\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.error_0.0.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "grpc", - "symbol": "executeServerStreaming", - "version": "1.12.1" + "module": "lang.error", + "symbol": "stackTrace", + "version": "0.0.0" }, "enabled": true }, { "metadata": { - "label": "executeClientStreaming", - "description": "Calls when executing a client streaming call with a gRPC service.\n```ballerina\ngrpc:StreamingClient|grpc:Error result = grpcClient->executeClientStreaming(\"HelloWorld/hello\", headers);\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_grpc_1.12.1.png" + "label": "toString", + "description": "Converts an error to a string.\n\nThe details of the conversion are specified by the ToString abstract operation\ndefined in the Ballerina Language Specification, using the direct style.\n\n```ballerina\nerror(\"invalid salary\", value = 0d).toString() ⇒ error(\"invalid salary\",value=0)\n```\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.error_0.0.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "grpc", - "symbol": "executeClientStreaming", - "version": "1.12.1" + "module": "lang.error", + "symbol": "toString", + "version": "0.0.0" }, "enabled": true }, { "metadata": { - "label": "executeBidirectionalStreaming", - "description": "Calls when executing a bi-directional streaming call with a gRPC service.\n```ballerina\ngrpc:StreamingClient|grpc:Error result = grpcClient->executeBidirectionalStreaming(\"HelloWorld/hello\", headers);\n```\n", + "label": "toBalString", + "description": "Converts an error to a string that describes the value in Ballerina syntax.\n\nThe details of the conversion are specified by the ToString abstract operation\ndefined in the Ballerina Language Specification, using the expression style.\n\n```ballerina\nerror(\"invalid salary\", value = 0d).toBalString() ⇒ error(\"invalid salary\",value=0d)\n```\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.error_0.0.0.png" + }, + "codedata": { + "node": "FUNCTION_CALL", + "org": "ballerina", + "module": "lang.error", + "symbol": "toBalString", + "version": "0.0.0" + }, + "enabled": true + } + ] + }, + { + "metadata": { + "label": "wsdltool", + "description": "", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_wsdltool_0.1.0.png" + }, + "items": [ + { + "metadata": { + "label": "main", + "description": "", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_wsdltool_0.1.0.png" + }, + "codedata": { + "node": "FUNCTION_CALL", + "org": "ballerina", + "module": "wsdltool", + "symbol": "main", + "version": "0.1.0" + }, + "enabled": true + } + ] + }, + { + "metadata": { + "label": "grpc", + "description": "", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_grpc_1.12.1.png" + }, + "items": [ + { + "metadata": { + "label": "initStub", + "description": "Calls when initializing the client endpoint with the service descriptor data extracted from the proto file.\n```ballerina\ngrpc:Error? result = grpcClient.initStub(self, ROOT_DESCRIPTOR, getDescriptorMap());\n```\n", "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_grpc_1.12.1.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", "module": "grpc", - "symbol": "executeBidirectionalStreaming", + "symbol": "initStub", "version": "1.12.1" }, "enabled": true @@ -1294,129 +1342,6 @@ } ] }, - { - "metadata": { - "label": "lang.error", - "description": "", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.error_0.0.0.png" - }, - "items": [ - { - "metadata": { - "label": "message", - "description": "Returns the error's message.\n\n```ballerina\nerror(\"IO error\").message() ⇒ IO error\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.error_0.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "lang.error", - "symbol": "message", - "version": "0.0.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "cause", - "description": "Returns the error's cause.\n\n```ballerina\nerror fileNotFoundError = error(\"file not found\", file = \"test.bal\");\nfileNotFoundError.cause() is () ⇒ true\nerror ioError = error(\"IO error\", fileNotFoundError);\nioError.cause() ⇒ error(\"file not found\",file=\"test.bal\")\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.error_0.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "lang.error", - "symbol": "cause", - "version": "0.0.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "detail", - "description": "Returns the error's detail record.\n\n```ballerina\nerror(\"file not found\", file = \"test.bal\").detail() ⇒ {\"file\":\"test.bal\"}\n```\n\nThe returned value will be immutable.", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.error_0.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "lang.error", - "symbol": "detail", - "version": "0.0.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "stackTrace", - "description": "Returns an object representing the stack trace of the error.\n\n```ballerina\nerror(\"IO error\").stackTrace() ⇒ [callableName: main fileName: test.bal lineNumber: 5]\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.error_0.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "lang.error", - "symbol": "stackTrace", - "version": "0.0.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "toString", - "description": "Converts an error to a string.\n\nThe details of the conversion are specified by the ToString abstract operation\ndefined in the Ballerina Language Specification, using the direct style.\n\n```ballerina\nerror(\"invalid salary\", value = 0d).toString() ⇒ error(\"invalid salary\",value=0)\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.error_0.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "lang.error", - "symbol": "toString", - "version": "0.0.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "toBalString", - "description": "Converts an error to a string that describes the value in Ballerina syntax.\n\nThe details of the conversion are specified by the ToString abstract operation\ndefined in the Ballerina Language Specification, using the expression style.\n\n```ballerina\nerror(\"invalid salary\", value = 0d).toBalString() ⇒ error(\"invalid salary\",value=0d)\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.error_0.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "lang.error", - "symbol": "toBalString", - "version": "0.0.0" - }, - "enabled": true - } - ] - }, - { - "metadata": { - "label": "wsdltool", - "description": "", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_wsdltool_0.1.0.png" - }, - "items": [ - { - "metadata": { - "label": "main", - "description": "", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_wsdltool_0.1.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "wsdltool", - "symbol": "main", - "version": "0.1.0" - }, - "enabled": true - } - ] - }, { "metadata": { "label": "lang.transaction", @@ -2496,416 +2421,68 @@ }, { "metadata": { - "label": "ftp", + "label": "lang.string", "description": "", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ftp_2.11.0.png" + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.string_0.0.0.png" }, "items": [ { "metadata": { - "label": "init", - "description": "Represents an FTP client that intracts with an FTP server", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ftp_2.11.0.png" + "label": "length", + "description": "Returns the length of the string.\n\n```ballerina\n\"Hello, World!\".length() ⇒ 13;\n```\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.string_0.0.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "ftp", - "symbol": "init", - "version": "2.11.0" + "module": "lang.string", + "symbol": "length", + "version": "0.0.0" }, "enabled": true }, { "metadata": { - "label": "get", - "description": "Retrieves the file content from a remote resource.\n```ballerina\nstream|ftp:Error channel = client->get(path);\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ftp_2.11.0.png" + "label": "iterator", + "description": "Returns an iterator over the string.\n\nThe iterator will yield the substrings of length 1 in order.\n\n```ballerina\nobject {\n public isolated function next() returns record {|string:Char value;|}?;\n} iterator = \"Hello, World!\".iterator();\niterator.next() ⇒ {\"value\":\"H\"}\n```\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.string_0.0.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "ftp", - "symbol": "get", - "version": "2.11.0" + "module": "lang.string", + "symbol": "iterator", + "version": "0.0.0" }, "enabled": true }, { "metadata": { - "label": "append", - "description": "Appends the content to an existing file in an FTP server.\n```ballerina\nftp:Error? response = client->append(path, channel);\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ftp_2.11.0.png" + "label": "concat", + "description": "Concatenates zero or more strings.\n\n```ballerina\n\"http://worldtimeapi.org\".concat(\"/api/timezone/\", \"Asia\", \"/\", \"Colombo\") ⇒ http://worldtimeapi.org/api/timezone/Asia/Colombo\n// Alternative approach to achieve the same.\nstring:concat(\"http://worldtimeapi.org\", \"/api/timezone/\", \"Asia\", \"/\", \"Colombo\") ⇒ http://worldtimeapi.org/api/timezone/Asia/Colombo\n```\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.string_0.0.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "ftp", - "symbol": "append", - "version": "2.11.0" + "module": "lang.string", + "symbol": "concat", + "version": "0.0.0" }, "enabled": true }, { "metadata": { - "label": "put", - "description": "Adds a file to an FTP server.\n```ballerina\nftp:Error? response = client->put(path, channel);\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ftp_2.11.0.png" + "label": "getCodePoint", + "description": "Returns the code point of a character in a string.\n\n```ballerina\n\"Hello, World!\".getCodePoint(3) ⇒ 108\n```\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.string_0.0.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "ftp", - "symbol": "put", - "version": "2.11.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "mkdir", - "description": "Creates a new directory in an FTP server.\n```ballerina\nftp:Error? response = client->mkdir(path);\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ftp_2.11.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "ftp", - "symbol": "mkdir", - "version": "2.11.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "rmdir", - "description": "Deletes an empty directory in an FTP server.\n```ballerina\nftp:Error? response = client->rmdir(path);\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ftp_2.11.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "ftp", - "symbol": "rmdir", - "version": "2.11.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "rename", - "description": "Renames a file or moves it to a new location within\nthe same FTP server.\n```ballerina\nftp:Error? response = client->rename(origin, destination);\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ftp_2.11.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "ftp", - "symbol": "rename", - "version": "2.11.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "size", - "description": "Gets the size of a file resource.\n```ballerina\nint|ftp:Error response = client->size(path);\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ftp_2.11.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "ftp", - "symbol": "size", - "version": "2.11.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "list", - "description": "Gets the file name list in a given folder.\n```ballerina\nftp:FileInfo[]|ftp:Error response = client->list(path);\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ftp_2.11.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "ftp", - "symbol": "list", - "version": "2.11.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "isDirectory", - "description": "Checks if a given resource is a directory.\n```ballerina\nboolean|ftp:Error response = client->isDirectory(path);\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ftp_2.11.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "ftp", - "symbol": "isDirectory", - "version": "2.11.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "delete", - "description": "Deletes a file from an FTP server.\n```ballerina\nftp:Error? response = client->delete(path);\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ftp_2.11.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "ftp", - "symbol": "delete", - "version": "2.11.0" - }, - "enabled": true - } - ] - }, - { - "metadata": { - "label": "ldap", - "description": "", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ldap_1.1.0.png" - }, - "items": [ - { - "metadata": { - "label": "init", - "description": "Consists of APIs to integrate with LDAP.", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ldap_1.1.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "ldap", - "symbol": "init", - "version": "1.1.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "add", - "description": "Creates an entry in a directory server.\n\n```ballerina\nanydata user = {\n \"objectClass\": \"user\",\n \"sn\": \"New User\",\n \"cn\": \"New User\"\n};\nldap:LdapResponse result = check ldapClient->add(userDN, user);\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ldap_1.1.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "ldap", - "symbol": "add", - "version": "1.1.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "delete", - "description": "Removes an entry in a directory server.\n\n```ballerina\nldap:LdapResponse result = check ldapClient->delete(userDN);\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ldap_1.1.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "ldap", - "symbol": "delete", - "version": "1.1.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "modify", - "description": "Updates information of an entry.\n\n```ballerina\nanydata user = {\n \"sn\": \"User\",\n \"givenName\": \"Updated User\",\n \"displayName\": \"Updated User\"\n};\nldap:LdapResponse result = check ldapClient->modify(userDN, user);\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ldap_1.1.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "ldap", - "symbol": "modify", - "version": "1.1.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "modifyDn", - "description": "Renames an entry in a directory server.\n\n```ballerina\nldap:LdapResponse modifyDN = check ldapClient->modifyDn(userDN, \"CN=Test User2\", true);\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ldap_1.1.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "ldap", - "symbol": "modifyDn", - "version": "1.1.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "compare", - "description": "Determines whether a given entry has a specified attribute value.\n\n```ballerina\nboolean compare = check ldapClient->compare(userDN, \"givenName\", \"New User\");\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ldap_1.1.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "ldap", - "symbol": "compare", - "version": "1.1.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "getEntry", - "description": "Gets information of an entry.\n\n```ballerina\nanydata value = check ldapClient->getEntry(userDN);\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ldap_1.1.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "ldap", - "symbol": "getEntry", - "version": "1.1.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "searchWithType", - "description": "Returns a list of entries that match the given search parameters.\n\n```ballerina\nanydata[] value = check ldapClient->searchWithType(\"DC=ldap,DC=com\", \"(givenName=New User)\", ldap:SUB);\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ldap_1.1.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "ldap", - "symbol": "searchWithType", - "version": "1.1.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "search", - "description": "Returns a record containing search result entries and references that match the given search parameters.\n\n```ballerina\nldap:SearchResult value = check ldapClient->search(\"DC=ldap,DC=windows\", \"(givenName=New User)\", ldap:SUB);\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ldap_1.1.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "ldap", - "symbol": "search", - "version": "1.1.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "close", - "description": "Unbinds from the server and closes the LDAP connection. \n\n```ballerina\nldapClient->close();\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ldap_1.1.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "ldap", - "symbol": "close", - "version": "1.1.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "isConnected", - "description": "Determines whether the client is connected to the server.\n\n```ballerina\nboolean isConnected = ldapClient->isConnected();\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ldap_1.1.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "ldap", - "symbol": "isConnected", - "version": "1.1.0" - }, - "enabled": true - } - ] - }, - { - "metadata": { - "label": "lang.string", - "description": "", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.string_0.0.0.png" - }, - "items": [ - { - "metadata": { - "label": "length", - "description": "Returns the length of the string.\n\n```ballerina\n\"Hello, World!\".length() ⇒ 13;\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.string_0.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "lang.string", - "symbol": "length", - "version": "0.0.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "iterator", - "description": "Returns an iterator over the string.\n\nThe iterator will yield the substrings of length 1 in order.\n\n```ballerina\nobject {\n public isolated function next() returns record {|string:Char value;|}?;\n} iterator = \"Hello, World!\".iterator();\niterator.next() ⇒ {\"value\":\"H\"}\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.string_0.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "lang.string", - "symbol": "iterator", - "version": "0.0.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "concat", - "description": "Concatenates zero or more strings.\n\n```ballerina\n\"http://worldtimeapi.org\".concat(\"/api/timezone/\", \"Asia\", \"/\", \"Colombo\") ⇒ http://worldtimeapi.org/api/timezone/Asia/Colombo\n// Alternative approach to achieve the same.\nstring:concat(\"http://worldtimeapi.org\", \"/api/timezone/\", \"Asia\", \"/\", \"Colombo\") ⇒ http://worldtimeapi.org/api/timezone/Asia/Colombo\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.string_0.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "lang.string", - "symbol": "concat", - "version": "0.0.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "getCodePoint", - "description": "Returns the code point of a character in a string.\n\n```ballerina\n\"Hello, World!\".getCodePoint(3) ⇒ 108\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.string_0.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "lang.string", - "symbol": "getCodePoint", - "version": "0.0.0" + "module": "lang.string", + "symbol": "getCodePoint", + "version": "0.0.0" }, "enabled": true }, @@ -4539,92 +4116,23 @@ }, { "metadata": { - "label": "tcp", + "label": "auth", "description": "", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_tcp_1.11.1.png" + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_auth_2.12.0.png" }, "items": [ { "metadata": { - "label": "init", - "description": "Initializes the TCP connection client based on the provided configurations.", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_tcp_1.11.1.png" + "label": "extractUsernameAndPassword", + "description": "Extracts the username and the password from the Base64-encoded `username:password` value.\n```ballerina\n[string, string] [username, password] = check auth:extractUsernameAndPassword(\"\");\n```\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_auth_2.12.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "tcp", - "symbol": "init", - "version": "1.11.1" - }, - "enabled": true - }, - { - "metadata": { - "label": "writeBytes", - "description": "Sends the given data to the connected remote host.\n```ballerina\ntcp:Error? result = socketClient->writeBytes(\"msg\".toBytes());\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_tcp_1.11.1.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "tcp", - "symbol": "writeBytes", - "version": "1.11.1" - }, - "enabled": true - }, - { - "metadata": { - "label": "readBytes", - "description": "Reads data only from the connected remote host. \n```ballerina\n(readonly & byte[])|tcp:Error result = socketClient->readBytes();\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_tcp_1.11.1.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "tcp", - "symbol": "readBytes", - "version": "1.11.1" - }, - "enabled": true - }, - { - "metadata": { - "label": "close", - "description": "Frees up the occupied socket.\n```ballerina\ntcp:Error? closeResult = socketClient->close();\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_tcp_1.11.1.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "tcp", - "symbol": "close", - "version": "1.11.1" - }, - "enabled": true - } - ] - }, - { - "metadata": { - "label": "auth", - "description": "", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_auth_2.12.0.png" - }, - "items": [ - { - "metadata": { - "label": "extractUsernameAndPassword", - "description": "Extracts the username and the password from the Base64-encoded `username:password` value.\n```ballerina\n[string, string] [username, password] = check auth:extractUsernameAndPassword(\"\");\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_auth_2.12.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "auth", - "symbol": "extractUsernameAndPassword", - "version": "2.12.0" + "module": "auth", + "symbol": "extractUsernameAndPassword", + "version": "2.12.0" }, "enabled": true } @@ -4723,135 +4231,6 @@ } ] }, - { - "metadata": { - "label": "mqtt", - "description": "", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_mqtt_1.2.0.png" - }, - "items": [ - { - "metadata": { - "label": "init", - "description": "Represents the client that is used to publish messages to the server.", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_mqtt_1.2.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "mqtt", - "symbol": "init", - "version": "1.2.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "publish", - "description": "Publishes a message to a topic.\n```ballerina\nmqtt:DeliveryToken token = check 'client->publish(\"mqtt/topic\", message);\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_mqtt_1.2.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "mqtt", - "symbol": "publish", - "version": "1.2.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "subscribe", - "description": "Subscribes to a given topic in the request response scenario.\n```ballerina\ncheck 'client->subscribe([{topic: \"mqtt/topic1\", qos: 0}, {topic: \"mqtt/topic2\", qos: 1}]);\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_mqtt_1.2.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "mqtt", - "symbol": "subscribe", - "version": "1.2.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "receive", - "description": "Receives messages from the server.\n```ballerina\nstream responseStream = check 'client->receive();\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_mqtt_1.2.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "mqtt", - "symbol": "receive", - "version": "1.2.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "close", - "description": "Closes the connection to the server.\n```ballerina\ncheck 'client->close();\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_mqtt_1.2.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "mqtt", - "symbol": "close", - "version": "1.2.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "isConnected", - "description": "Checks if the client is connected to the server.\n```ballerina\nboolean isConnected = check 'client->isConnected;\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_mqtt_1.2.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "mqtt", - "symbol": "isConnected", - "version": "1.2.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "disconnect", - "description": "Disconnects the client from the server.\n```ballerina\ncheck 'client->disconnect();\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_mqtt_1.2.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "mqtt", - "symbol": "disconnect", - "version": "1.2.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "reconnect", - "description": "Reconnects the client to the server.\n```ballerina\ncheck 'client->reconnect();\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_mqtt_1.2.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "mqtt", - "symbol": "reconnect", - "version": "1.2.0" - }, - "enabled": true - } - ] - }, { "metadata": { "label": "file", @@ -5290,75 +4669,6 @@ } ] }, - { - "metadata": { - "label": "udp", - "description": "", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_udp_1.11.0.png" - }, - "items": [ - { - "metadata": { - "label": "init", - "description": "Initializes the UDP connectionless client based on the provided configurations.", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_udp_1.11.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "udp", - "symbol": "init", - "version": "1.11.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "sendDatagram", - "description": "Sends the given data to the specified remote host.\n```ballerina\nudp:Error? result = socketClient->sendDatagram({remoteHost: \"localhost\",\n remotePort: 48826, data:\"msg\".toBytes()});\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_udp_1.11.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "udp", - "symbol": "sendDatagram", - "version": "1.11.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "receiveDatagram", - "description": "Reads data from the remote host. \n```ballerina\nudp:Datagram|udp:Error result = socketClient->receiveDatagram();\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_udp_1.11.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "udp", - "symbol": "receiveDatagram", - "version": "1.11.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "close", - "description": "Free up the occupied socket.\n```ballerina\nudp:Error? closeResult = socketClient->close();\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_udp_1.11.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "udp", - "symbol": "close", - "version": "1.11.0" - }, - "enabled": true - } - ] - }, { "metadata": { "label": "jballerina.java", @@ -6229,90 +5539,6 @@ } ] }, - { - "metadata": { - "label": "graphql", - "description": "", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_graphql_1.14.0.png" - }, - "items": [ - { - "metadata": { - "label": "init", - "description": "The Ballerina GraphQL client that can be used to communicate with GraphQL APIs.", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_graphql_1.14.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "graphql", - "symbol": "init", - "version": "1.14.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "executeWithType", - "description": "Executes a GraphQL document and data binds the GraphQL response to a record with data and extensions\nwhich is a subtype of GenericResponse.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_graphql_1.14.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "graphql", - "symbol": "executeWithType", - "version": "1.14.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "execute", - "description": "Executes a GraphQL document and data binds the GraphQL response to a record with data, extensions and errors\nwhich is a subtype of GenericResponseWithErrors.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_graphql_1.14.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "graphql", - "symbol": "execute", - "version": "1.14.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "__addError", - "description": "Adds an error to the GraphQL response. Using this to add an error is not recommended.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_graphql_1.14.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "graphql", - "symbol": "__addError", - "version": "1.14.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "getSdlString", - "description": "Obtains the schema representation of a federated subgraph, expressed in the SDL format.", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_graphql_1.14.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "graphql", - "symbol": "getSdlString", - "version": "1.14.0" - }, - "enabled": true - } - ] - }, { "metadata": { "label": "xmldata", @@ -6399,9 +5625,48 @@ }, { "metadata": { - "label": "lang.function", + "label": "graphql", "description": "", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.function_0.0.0.png" + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_graphql_1.14.0.png" + }, + "items": [ + { + "metadata": { + "label": "__addError", + "description": "Adds an error to the GraphQL response. Using this to add an error is not recommended.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_graphql_1.14.0.png" + }, + "codedata": { + "node": "FUNCTION_CALL", + "org": "ballerina", + "module": "graphql", + "symbol": "__addError", + "version": "1.14.0" + }, + "enabled": true + }, + { + "metadata": { + "label": "getSdlString", + "description": "Obtains the schema representation of a federated subgraph, expressed in the SDL format.", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_graphql_1.14.0.png" + }, + "codedata": { + "node": "FUNCTION_CALL", + "org": "ballerina", + "module": "graphql", + "symbol": "getSdlString", + "version": "1.14.0" + }, + "enabled": true + } + ] + }, + { + "metadata": { + "label": "lang.function", + "description": "", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.function_0.0.0.png" }, "items": [ { @@ -8166,620 +7431,296 @@ }, { "metadata": { - "label": "websocket", + "label": "data.xmldata", "description": "", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_data.xmldata_1.0.0.png" }, "items": [ { "metadata": { - "label": "init", - "description": "Represents a WebSocket synchronous client endpoint.", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" + "label": "parseAsType", + "description": "Converts XML to record type with projection.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_data.xmldata_1.0.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "websocket", - "symbol": "init", - "version": "2.12.0" + "module": "data.xmldata", + "symbol": "parseAsType", + "version": "1.0.0" }, "enabled": true }, { "metadata": { - "label": "initEndpoint", - "description": "", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" + "label": "parseString", + "description": "Converts XML string to record type with projection.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_data.xmldata_1.0.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "websocket", - "symbol": "initEndpoint", - "version": "2.12.0" + "module": "data.xmldata", + "symbol": "parseString", + "version": "1.0.0" }, "enabled": true }, { "metadata": { - "label": "writeTextMessage", - "description": "Writes text messages to the connection. If an error occurs while sending the text message to the connection, that message\nwill be lost.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" + "label": "parseBytes", + "description": "Converts XML byte[] to record type with projection.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_data.xmldata_1.0.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "websocket", - "symbol": "writeTextMessage", - "version": "2.12.0" + "module": "data.xmldata", + "symbol": "parseBytes", + "version": "1.0.0" }, "enabled": true }, { "metadata": { - "label": "writeBinaryMessage", - "description": "Writes binary data to the connection. If an error occurs while sending the binary message to the connection,\nthat message will be lost.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" + "label": "parseStream", + "description": "Converts XML byte-block-stream to record type with projection.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_data.xmldata_1.0.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "websocket", - "symbol": "writeBinaryMessage", - "version": "2.12.0" + "module": "data.xmldata", + "symbol": "parseStream", + "version": "1.0.0" }, "enabled": true }, { "metadata": { - "label": "ping", - "description": "Pings the connection. If an error occurs while sending the ping frame to the server, that frame will be lost.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" + "label": "toXml", + "description": "Converts a `Map` or `Record` representation to its XML representation.\nAdditionally, when converting from a record, the `xmldata:Namespace`, `xmldata:Name`, and `xmldata:Attribute`\nannotations can be used to add `namespaces`, `name of elements`, and `attributes` to XML representation.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_data.xmldata_1.0.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "websocket", - "symbol": "ping", - "version": "2.12.0" + "module": "data.xmldata", + "symbol": "toXml", + "version": "1.0.0" }, "enabled": true }, { "metadata": { - "label": "pong", - "description": "Sends a pong message to the connection. If an error occurs while sending the pong frame to the connection, that\nthe frame will be lost.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" + "label": "fromJson", + "description": "Converts a JSON object to an XML representation.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_data.xmldata_1.0.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "websocket", - "symbol": "pong", - "version": "2.12.0" + "module": "data.xmldata", + "symbol": "fromJson", + "version": "1.0.0" }, "enabled": true - }, + } + ] + }, + { + "metadata": { + "label": "sql", + "description": "", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_sql_1.14.1.png" + }, + "items": [ { "metadata": { - "label": "close", - "description": "Closes the connection.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" + "label": "getGlobalConnectionPool", + "description": "Returns the global connection pool.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_sql_1.14.1.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "websocket", - "symbol": "close", - "version": "2.12.0" + "module": "sql", + "symbol": "getGlobalConnectionPool", + "version": "1.14.1" }, "enabled": true }, { "metadata": { - "label": "setAttribute", - "description": "Sets a connection-related attribute.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" + "label": "queryConcat", + "description": "Concatenates all provided `sql:ParameterizedQuery`s into a single `sql:ParameterizedQuery`.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_sql_1.14.1.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "websocket", - "symbol": "setAttribute", - "version": "2.12.0" + "module": "sql", + "symbol": "queryConcat", + "version": "1.14.1" }, "enabled": true }, { "metadata": { - "label": "getAttribute", - "description": "Gets connection-related attributes if any.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" + "label": "arrayFlattenQuery", + "description": "Joins the parameters in the array with the `,` delimiter into an `sql:ParameterizedQuery`.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_sql_1.14.1.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "websocket", - "symbol": "getAttribute", - "version": "2.12.0" + "module": "sql", + "symbol": "arrayFlattenQuery", + "version": "1.14.1" }, "enabled": true }, { "metadata": { - "label": "removeAttribute", - "description": "Removes connection related attribute if any.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" + "label": "generateApplicationErrorStream", + "description": "Generates a stream consisting of `sql:Error` elements.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_sql_1.14.1.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "websocket", - "symbol": "removeAttribute", - "version": "2.12.0" + "module": "sql", + "symbol": "generateApplicationErrorStream", + "version": "1.14.1" }, "enabled": true - }, + } + ] + }, + { + "metadata": { + "label": "lang.xml", + "description": "", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.xml_0.0.0.png" + }, + "items": [ { "metadata": { - "label": "getConnectionId", - "description": "Gives the connection id associated with this connection.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" + "label": "'map", + "description": "Applies a function to each item in an xml sequence, and returns an xml sequence of the results.\n\nEach item is represented as a singleton value.\n\n```ballerina\nxml x = xml `HamletMacbeth`;\nx.map(function (xml xmlContent) returns xml => \n xml `${xmlContent.children()}`\n) ⇒ HamletMacbeth\n```\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.xml_0.0.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "websocket", - "symbol": "getConnectionId", - "version": "2.12.0" + "module": "lang.xml", + "symbol": "'map", + "version": "0.0.0" }, "enabled": true }, { "metadata": { - "label": "getNegotiatedSubProtocol", - "description": "Gives the subprotocol if any that is negotiated with the client.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" + "label": "length", + "description": "Returns number of xml items in an xml value.\n\n```ballerina\nxml `Sherlock Holmes`.length() ⇒ 2\n```\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.xml_0.0.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "websocket", - "symbol": "getNegotiatedSubProtocol", - "version": "2.12.0" + "module": "lang.xml", + "symbol": "length", + "version": "0.0.0" }, "enabled": true }, { "metadata": { - "label": "isSecure", - "description": "Gives the secured status of the connection.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" + "label": "iterator", + "description": "Returns an iterator over the xml items of an xml sequence.\n\n# Each item is represented by an xml singleton.\n\n```ballerina\nobject {\n public isolated function next() returns record {|xml value;|}?;\n} iterator = xml `JohnPeter`.iterator();\niterator.next() ⇒ {\"value\":`John`}\n```\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.xml_0.0.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "websocket", - "symbol": "isSecure", - "version": "2.12.0" + "module": "lang.xml", + "symbol": "iterator", + "version": "0.0.0" }, "enabled": true }, { "metadata": { - "label": "isOpen", - "description": "Gives the open or closed status of the connection.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" + "label": "get", + "description": "Returns the item of an xml sequence with given index.\n\nThis differs from `x[i]` in that it panics if\nparameter `x` does not have an item with index parameter `i`.\n\n```ballerina\nxml x = xml `MacbethHamlet`;\nx.get(1) ⇒ Hamlet\nx.get(15) ⇒ panic\n```\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.xml_0.0.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "websocket", - "symbol": "isOpen", - "version": "2.12.0" + "module": "lang.xml", + "symbol": "get", + "version": "0.0.0" }, "enabled": true }, { "metadata": { - "label": "getHttpResponse", - "description": "Gives the HTTP response if any received for the client handshake request.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" + "label": "concat", + "description": "Concatenates xml and string values.\n\n```ballerina\nxml bookA = xml `Sherlock Holmes`;\nxml bookB = xml `Hamlet`;\nxml:concat(bookA, bookB, xml `Macbeth`) ⇒ Sherlock HolmesHamletMacbeth\nbookA.concat(bookB) ⇒ Sherlock HolmesHamlet\nbookB.concat(\"Novel\") ⇒ HamletNovel\nxml:concat(\"Hello\", \"World\") ⇒ HelloWorld\nxml[] subjects = [xml `English`, xml `Math`, xml `ICT`];\nxml:concat(...subjects) ⇒ EnglishMathICT\n```\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.xml_0.0.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "websocket", - "symbol": "getHttpResponse", - "version": "2.12.0" + "module": "lang.xml", + "symbol": "concat", + "version": "0.0.0" }, "enabled": true }, { "metadata": { - "label": "readTextMessage", - "description": "Reads text messages in a synchronous manner.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" + "label": "getName", + "description": "Returns a string giving the expanded name of an xml element.\n\n```ballerina\nxml:Element e = xml `John`;\ne.getName() ⇒ person\n```\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.xml_0.0.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "websocket", - "symbol": "readTextMessage", - "version": "2.12.0" + "module": "lang.xml", + "symbol": "getName", + "version": "0.0.0" }, "enabled": true }, { "metadata": { - "label": "readBinaryMessage", - "description": "Reads binary data in a synchronous manner.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" + "label": "setName", + "description": "Changes the name of an XML element.\n\n```ballerina\nxml:Element e = xml `John`;\ne.setName(\"student\");\ne ⇒ John\n```\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.xml_0.0.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "websocket", - "symbol": "readBinaryMessage", - "version": "2.12.0" + "module": "lang.xml", + "symbol": "setName", + "version": "0.0.0" }, "enabled": true }, { "metadata": { - "label": "readMessage", - "description": "Reads data from the WebSocket connection.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" + "label": "getAttributes", + "description": "Returns the map representing the attributes of an xml element.\n\nThis includes namespace attributes.\nThe keys in the map are the expanded names of the attributes.\n\n```ballerina\nxml:Element e = xml `John`;\ne.getAttributes() ⇒ {\"id\":\"1012\",\"employed\":\"yes\"}\n```\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.xml_0.0.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "websocket", - "symbol": "readMessage", - "version": "2.12.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "writeMessage", - "description": "Writes messages to the connection. If an error occurs while sending the message to the connection, that message\nwill be lost.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "websocket", - "symbol": "writeMessage", - "version": "2.12.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "authenticateResource", - "description": "Uses for declarative auth design, where the authentication/authorization decision is taken\nby reading the auth annotations provided in service/resource and the `Authorization` header of request.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "websocket", - "symbol": "authenticateResource", - "version": "2.12.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "addCookies", - "description": "Adds cookies to the custom header.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "websocket", - "symbol": "addCookies", - "version": "2.12.0" - }, - "enabled": true - } - ] - }, - { - "metadata": { - "label": "data.xmldata", - "description": "", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_data.xmldata_1.0.0.png" - }, - "items": [ - { - "metadata": { - "label": "parseAsType", - "description": "Converts XML to record type with projection.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_data.xmldata_1.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "data.xmldata", - "symbol": "parseAsType", - "version": "1.0.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "parseString", - "description": "Converts XML string to record type with projection.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_data.xmldata_1.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "data.xmldata", - "symbol": "parseString", - "version": "1.0.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "parseBytes", - "description": "Converts XML byte[] to record type with projection.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_data.xmldata_1.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "data.xmldata", - "symbol": "parseBytes", - "version": "1.0.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "parseStream", - "description": "Converts XML byte-block-stream to record type with projection.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_data.xmldata_1.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "data.xmldata", - "symbol": "parseStream", - "version": "1.0.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "toXml", - "description": "Converts a `Map` or `Record` representation to its XML representation.\nAdditionally, when converting from a record, the `xmldata:Namespace`, `xmldata:Name`, and `xmldata:Attribute`\nannotations can be used to add `namespaces`, `name of elements`, and `attributes` to XML representation.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_data.xmldata_1.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "data.xmldata", - "symbol": "toXml", - "version": "1.0.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "fromJson", - "description": "Converts a JSON object to an XML representation.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_data.xmldata_1.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "data.xmldata", - "symbol": "fromJson", - "version": "1.0.0" - }, - "enabled": true - } - ] - }, - { - "metadata": { - "label": "sql", - "description": "", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_sql_1.14.1.png" - }, - "items": [ - { - "metadata": { - "label": "getGlobalConnectionPool", - "description": "Returns the global connection pool.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_sql_1.14.1.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "sql", - "symbol": "getGlobalConnectionPool", - "version": "1.14.1" - }, - "enabled": true - }, - { - "metadata": { - "label": "queryConcat", - "description": "Concatenates all provided `sql:ParameterizedQuery`s into a single `sql:ParameterizedQuery`.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_sql_1.14.1.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "sql", - "symbol": "queryConcat", - "version": "1.14.1" - }, - "enabled": true - }, - { - "metadata": { - "label": "arrayFlattenQuery", - "description": "Joins the parameters in the array with the `,` delimiter into an `sql:ParameterizedQuery`.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_sql_1.14.1.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "sql", - "symbol": "arrayFlattenQuery", - "version": "1.14.1" - }, - "enabled": true - }, - { - "metadata": { - "label": "generateApplicationErrorStream", - "description": "Generates a stream consisting of `sql:Error` elements.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_sql_1.14.1.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "sql", - "symbol": "generateApplicationErrorStream", - "version": "1.14.1" - }, - "enabled": true - } - ] - }, - { - "metadata": { - "label": "lang.xml", - "description": "", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.xml_0.0.0.png" - }, - "items": [ - { - "metadata": { - "label": "'map", - "description": "Applies a function to each item in an xml sequence, and returns an xml sequence of the results.\n\nEach item is represented as a singleton value.\n\n```ballerina\nxml x = xml `HamletMacbeth`;\nx.map(function (xml xmlContent) returns xml => \n xml `${xmlContent.children()}`\n) ⇒ HamletMacbeth\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.xml_0.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "lang.xml", - "symbol": "'map", - "version": "0.0.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "length", - "description": "Returns number of xml items in an xml value.\n\n```ballerina\nxml `Sherlock Holmes`.length() ⇒ 2\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.xml_0.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "lang.xml", - "symbol": "length", - "version": "0.0.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "iterator", - "description": "Returns an iterator over the xml items of an xml sequence.\n\n# Each item is represented by an xml singleton.\n\n```ballerina\nobject {\n public isolated function next() returns record {|xml value;|}?;\n} iterator = xml `JohnPeter`.iterator();\niterator.next() ⇒ {\"value\":`John`}\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.xml_0.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "lang.xml", - "symbol": "iterator", - "version": "0.0.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "get", - "description": "Returns the item of an xml sequence with given index.\n\nThis differs from `x[i]` in that it panics if\nparameter `x` does not have an item with index parameter `i`.\n\n```ballerina\nxml x = xml `MacbethHamlet`;\nx.get(1) ⇒ Hamlet\nx.get(15) ⇒ panic\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.xml_0.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "lang.xml", - "symbol": "get", - "version": "0.0.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "concat", - "description": "Concatenates xml and string values.\n\n```ballerina\nxml bookA = xml `Sherlock Holmes`;\nxml bookB = xml `Hamlet`;\nxml:concat(bookA, bookB, xml `Macbeth`) ⇒ Sherlock HolmesHamletMacbeth\nbookA.concat(bookB) ⇒ Sherlock HolmesHamlet\nbookB.concat(\"Novel\") ⇒ HamletNovel\nxml:concat(\"Hello\", \"World\") ⇒ HelloWorld\nxml[] subjects = [xml `English`, xml `Math`, xml `ICT`];\nxml:concat(...subjects) ⇒ EnglishMathICT\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.xml_0.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "lang.xml", - "symbol": "concat", - "version": "0.0.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "getName", - "description": "Returns a string giving the expanded name of an xml element.\n\n```ballerina\nxml:Element e = xml `John`;\ne.getName() ⇒ person\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.xml_0.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "lang.xml", - "symbol": "getName", - "version": "0.0.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "setName", - "description": "Changes the name of an XML element.\n\n```ballerina\nxml:Element e = xml `John`;\ne.setName(\"student\");\ne ⇒ John\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.xml_0.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "lang.xml", - "symbol": "setName", - "version": "0.0.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "getAttributes", - "description": "Returns the map representing the attributes of an xml element.\n\nThis includes namespace attributes.\nThe keys in the map are the expanded names of the attributes.\n\n```ballerina\nxml:Element e = xml `John`;\ne.getAttributes() ⇒ {\"id\":\"1012\",\"employed\":\"yes\"}\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.xml_0.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "lang.xml", - "symbol": "getAttributes", - "version": "0.0.0" + "module": "lang.xml", + "symbol": "getAttributes", + "version": "0.0.0" }, "enabled": true }, @@ -9231,599 +8172,428 @@ }, { "metadata": { - "label": "xslt", - "description": "", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_xslt_2.7.0.png" - }, - "items": [ - { - "metadata": { - "label": "transform", - "description": "Transforms the single-rooted XML content to another XML/HTML/plain text using XSL transformations.\n```ballerina\nxml|error target = xslt:transform(sourceXml, xsl);\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_xslt_2.7.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "xslt", - "symbol": "transform", - "version": "2.7.0" - }, - "enabled": true - } - ] - }, - { - "metadata": { - "label": "observe", + "label": "websocket", "description": "", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" }, "items": [ { "metadata": { - "label": "isObservabilityEnabled", - "description": "Check whether observability is enabled.", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "observe", - "symbol": "isObservabilityEnabled", - "version": "1.3.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "isMetricsEnabled", - "description": "Check whether metrics is enabled.", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "observe", - "symbol": "isMetricsEnabled", - "version": "1.3.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "getMetricsProvider", - "description": "Retrieve metrics provider.", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "observe", - "symbol": "getMetricsProvider", - "version": "1.3.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "getMetricsReporter", - "description": "Retrieve metrics reporter.", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "observe", - "symbol": "getMetricsReporter", - "version": "1.3.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "isTracingEnabled", - "description": "Check whether tracing is enabled.", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "observe", - "symbol": "isTracingEnabled", - "version": "1.3.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "getTracingProvider", - "description": "Retrieve tracer provider.", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "observe", - "symbol": "getTracingProvider", - "version": "1.3.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "startRootSpan", - "description": "Start a span with no parent span.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "observe", - "symbol": "startRootSpan", - "version": "1.3.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "startSpan", - "description": "Start a span and create child relationship to current active span or user specified span.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "observe", - "symbol": "startSpan", - "version": "1.3.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "addTagToSpan", - "description": "Add a key value pair as a tag to the span.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "observe", - "symbol": "addTagToSpan", - "version": "1.3.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "addTagToMetrics", - "description": "Add a key value pair as a tag to system metrics.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "observe", - "symbol": "addTagToMetrics", - "version": "1.3.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "finishSpan", - "description": "Finish the current span.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "observe", - "symbol": "finishSpan", - "version": "1.3.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "getSpanContext", - "description": "Retrieve a map of span context data.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" + "label": "initEndpoint", + "description": "", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "observe", - "symbol": "getSpanContext", - "version": "1.3.0" + "module": "websocket", + "symbol": "initEndpoint", + "version": "2.12.0" }, "enabled": true }, { "metadata": { - "label": "getAllMetrics", - "description": "Retrieve all registered metrics including default metrics from the ballerina runtime, and user defined metrics.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" + "label": "setAttribute", + "description": "Sets a connection-related attribute.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "observe", - "symbol": "getAllMetrics", - "version": "1.3.0" + "module": "websocket", + "symbol": "setAttribute", + "version": "2.12.0" }, "enabled": true }, { "metadata": { - "label": "lookupMetric", - "description": "Retrieve the specific metric that is described by the given name and tags.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" + "label": "getAttribute", + "description": "Gets connection-related attributes if any.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" }, "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "observe", - "symbol": "lookupMetric", - "version": "1.3.0" - }, - "enabled": true - } - ] - }, - { - "metadata": { - "label": "http", - "description": "", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" - }, - "items": [ + "node": "FUNCTION_CALL", + "org": "ballerina", + "module": "websocket", + "symbol": "getAttribute", + "version": "2.12.0" + }, + "enabled": true + }, { "metadata": { - "label": "init", - "description": "The HTTP client provides the capability for initiating contact with a remote HTTP service. The API it\nprovides includes the functions for the standard HTTP methods forwarding a received request and sending requests\nusing custom HTTP verbs.", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + "label": "removeAttribute", + "description": "Removes connection related attribute if any.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "http", - "symbol": "init", - "version": "2.12.2" + "module": "websocket", + "symbol": "removeAttribute", + "version": "2.12.0" }, "enabled": true }, { "metadata": { - "label": "post", - "description": "The client resource function to send HTTP POST requests to HTTP endpoints.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + "label": "getConnectionId", + "description": "Gives the connection id associated with this connection.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "http", - "symbol": "post", - "version": "2.12.2" + "module": "websocket", + "symbol": "getConnectionId", + "version": "2.12.0" }, "enabled": true }, { "metadata": { - "label": "post", - "description": "The `Client.post()` function can be used to send HTTP POST requests to HTTP endpoints.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + "label": "getNegotiatedSubProtocol", + "description": "Gives the subprotocol if any that is negotiated with the client.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "http", - "symbol": "post", - "version": "2.12.2" + "module": "websocket", + "symbol": "getNegotiatedSubProtocol", + "version": "2.12.0" }, "enabled": true }, { "metadata": { - "label": "put", - "description": "The client resource function to send HTTP PUT requests to HTTP endpoints.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + "label": "isSecure", + "description": "Gives the secured status of the connection.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "http", - "symbol": "put", - "version": "2.12.2" + "module": "websocket", + "symbol": "isSecure", + "version": "2.12.0" }, "enabled": true }, { "metadata": { - "label": "put", - "description": "The `Client.put()` function can be used to send HTTP PUT requests to HTTP endpoints.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + "label": "isOpen", + "description": "Gives the open or closed status of the connection.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "http", - "symbol": "put", - "version": "2.12.2" + "module": "websocket", + "symbol": "isOpen", + "version": "2.12.0" }, "enabled": true }, { "metadata": { - "label": "patch", - "description": "The client resource function to send HTTP PATCH requests to HTTP endpoints.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + "label": "getHttpResponse", + "description": "Gives the HTTP response if any received for the client handshake request.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "http", - "symbol": "patch", - "version": "2.12.2" + "module": "websocket", + "symbol": "getHttpResponse", + "version": "2.12.0" }, "enabled": true }, { "metadata": { - "label": "patch", - "description": "The `Client.patch()` function can be used to send HTTP PATCH requests to HTTP endpoints.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + "label": "authenticateResource", + "description": "Uses for declarative auth design, where the authentication/authorization decision is taken\nby reading the auth annotations provided in service/resource and the `Authorization` header of request.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "http", - "symbol": "patch", - "version": "2.12.2" + "module": "websocket", + "symbol": "authenticateResource", + "version": "2.12.0" }, "enabled": true }, { "metadata": { - "label": "delete", - "description": "The client resource function to send HTTP DELETE requests to HTTP endpoints.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + "label": "addCookies", + "description": "Adds cookies to the custom header.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "http", - "symbol": "delete", - "version": "2.12.2" + "module": "websocket", + "symbol": "addCookies", + "version": "2.12.0" }, "enabled": true - }, + } + ] + }, + { + "metadata": { + "label": "xslt", + "description": "", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_xslt_2.7.0.png" + }, + "items": [ { "metadata": { - "label": "delete", - "description": "The `Client.delete()` function can be used to send HTTP DELETE requests to HTTP endpoints.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + "label": "transform", + "description": "Transforms the single-rooted XML content to another XML/HTML/plain text using XSL transformations.\n```ballerina\nxml|error target = xslt:transform(sourceXml, xsl);\n```\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_xslt_2.7.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "http", - "symbol": "delete", - "version": "2.12.2" + "module": "xslt", + "symbol": "transform", + "version": "2.7.0" }, "enabled": true - }, + } + ] + }, + { + "metadata": { + "label": "observe", + "description": "", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" + }, + "items": [ { "metadata": { - "label": "head", - "description": "The client resource function to send HTTP HEAD requests to HTTP endpoints.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + "label": "isObservabilityEnabled", + "description": "Check whether observability is enabled.", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "http", - "symbol": "head", - "version": "2.12.2" + "module": "observe", + "symbol": "isObservabilityEnabled", + "version": "1.3.0" }, "enabled": true }, { "metadata": { - "label": "head", - "description": "The `Client.head()` function can be used to send HTTP HEAD requests to HTTP endpoints.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + "label": "isMetricsEnabled", + "description": "Check whether metrics is enabled.", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "http", - "symbol": "head", - "version": "2.12.2" + "module": "observe", + "symbol": "isMetricsEnabled", + "version": "1.3.0" }, "enabled": true }, { "metadata": { - "label": "get", - "description": "The client resource function to send HTTP GET requests to HTTP endpoints.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + "label": "getMetricsProvider", + "description": "Retrieve metrics provider.", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "http", - "symbol": "get", - "version": "2.12.2" + "module": "observe", + "symbol": "getMetricsProvider", + "version": "1.3.0" }, "enabled": true }, { "metadata": { - "label": "get", - "description": "The `Client.get()` function can be used to send HTTP GET requests to HTTP endpoints.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + "label": "getMetricsReporter", + "description": "Retrieve metrics reporter.", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "http", - "symbol": "get", - "version": "2.12.2" + "module": "observe", + "symbol": "getMetricsReporter", + "version": "1.3.0" }, "enabled": true }, { "metadata": { - "label": "options", - "description": "The client resource function to send HTTP OPTIONS requests to HTTP endpoints.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + "label": "isTracingEnabled", + "description": "Check whether tracing is enabled.", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "http", - "symbol": "options", - "version": "2.12.2" + "module": "observe", + "symbol": "isTracingEnabled", + "version": "1.3.0" }, "enabled": true }, { "metadata": { - "label": "options", - "description": "The `Client.options()` function can be used to send HTTP OPTIONS requests to HTTP endpoints.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + "label": "getTracingProvider", + "description": "Retrieve tracer provider.", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "http", - "symbol": "options", - "version": "2.12.2" + "module": "observe", + "symbol": "getTracingProvider", + "version": "1.3.0" }, "enabled": true }, { "metadata": { - "label": "execute", - "description": "Invokes an HTTP call with the specified HTTP verb.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + "label": "startRootSpan", + "description": "Start a span with no parent span.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "http", - "symbol": "execute", - "version": "2.12.2" + "module": "observe", + "symbol": "startRootSpan", + "version": "1.3.0" }, "enabled": true }, { "metadata": { - "label": "forward", - "description": "The `Client.forward()` function can be used to invoke an HTTP call with inbound request's HTTP verb\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + "label": "startSpan", + "description": "Start a span and create child relationship to current active span or user specified span.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "http", - "symbol": "forward", - "version": "2.12.2" + "module": "observe", + "symbol": "startSpan", + "version": "1.3.0" }, "enabled": true }, { "metadata": { - "label": "submit", - "description": "Submits an HTTP request to a service with the specified HTTP verb.\nThe `Client->submit()` function does not give out a `http:Response` as the result.\nRather it returns an `http:HttpFuture` which can be used to do further interactions with the endpoint.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + "label": "addTagToSpan", + "description": "Add a key value pair as a tag to the span.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "http", - "symbol": "submit", - "version": "2.12.2" + "module": "observe", + "symbol": "addTagToSpan", + "version": "1.3.0" }, "enabled": true }, { "metadata": { - "label": "getResponse", - "description": "This just pass the request to actual network call.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + "label": "addTagToMetrics", + "description": "Add a key value pair as a tag to system metrics.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "http", - "symbol": "getResponse", - "version": "2.12.2" + "module": "observe", + "symbol": "addTagToMetrics", + "version": "1.3.0" }, "enabled": true }, { "metadata": { - "label": "hasPromise", - "description": "This just pass the request to actual network call.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + "label": "finishSpan", + "description": "Finish the current span.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "http", - "symbol": "hasPromise", - "version": "2.12.2" + "module": "observe", + "symbol": "finishSpan", + "version": "1.3.0" }, "enabled": true }, { "metadata": { - "label": "getNextPromise", - "description": "This just pass the request to actual network call.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + "label": "getSpanContext", + "description": "Retrieve a map of span context data.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "http", - "symbol": "getNextPromise", - "version": "2.12.2" + "module": "observe", + "symbol": "getSpanContext", + "version": "1.3.0" }, "enabled": true }, { "metadata": { - "label": "getPromisedResponse", - "description": "Passes the request to an actual network call.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + "label": "getAllMetrics", + "description": "Retrieve all registered metrics including default metrics from the ballerina runtime, and user defined metrics.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "http", - "symbol": "getPromisedResponse", - "version": "2.12.2" + "module": "observe", + "symbol": "getAllMetrics", + "version": "1.3.0" }, "enabled": true }, { "metadata": { - "label": "rejectPromise", - "description": "This just pass the request to actual network call.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + "label": "lookupMetric", + "description": "Retrieve the specific metric that is described by the given name and tags.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "http", - "symbol": "rejectPromise", - "version": "2.12.2" + "module": "observe", + "symbol": "lookupMetric", + "version": "1.3.0" }, "enabled": true - }, + } + ] + }, + { + "metadata": { + "label": "http", + "description": "", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + }, + "items": [ { "metadata": { "label": "getCookieStore", diff --git a/flow-model-generator/modules/flow-model-generator-ls-extension/src/test/resources/get_functions/config/default.json b/flow-model-generator/modules/flow-model-generator-ls-extension/src/test/resources/get_functions/config/default.json index 53852abbb..305a24768 100644 --- a/flow-model-generator/modules/flow-model-generator-ls-extension/src/test/resources/get_functions/config/default.json +++ b/flow-model-generator/modules/flow-model-generator-ls-extension/src/test/resources/get_functions/config/default.json @@ -1028,97 +1028,145 @@ }, { "metadata": { - "label": "grpc", + "label": "lang.error", "description": "", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_grpc_1.12.1.png" + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.error_0.0.0.png" }, "items": [ { "metadata": { - "label": "init", - "description": "The base client used in the generated client code to provide the capability for initiating the contact and executing remote calls with a remote gRPC service.", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_grpc_1.12.1.png" + "label": "message", + "description": "Returns the error's message.\n\n```ballerina\nerror(\"IO error\").message() ⇒ IO error\n```\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.error_0.0.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "grpc", - "symbol": "init", - "version": "1.12.1" + "module": "lang.error", + "symbol": "message", + "version": "0.0.0" }, "enabled": true }, { "metadata": { - "label": "initStub", - "description": "Calls when initializing the client endpoint with the service descriptor data extracted from the proto file.\n```ballerina\ngrpc:Error? result = grpcClient.initStub(self, ROOT_DESCRIPTOR, getDescriptorMap());\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_grpc_1.12.1.png" + "label": "cause", + "description": "Returns the error's cause.\n\n```ballerina\nerror fileNotFoundError = error(\"file not found\", file = \"test.bal\");\nfileNotFoundError.cause() is () ⇒ true\nerror ioError = error(\"IO error\", fileNotFoundError);\nioError.cause() ⇒ error(\"file not found\",file=\"test.bal\")\n```\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.error_0.0.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "grpc", - "symbol": "initStub", - "version": "1.12.1" + "module": "lang.error", + "symbol": "cause", + "version": "0.0.0" }, "enabled": true }, { "metadata": { - "label": "executeSimpleRPC", - "description": "Calls when executing a unary gRPC service.\n```ballerina\n[anydata, map]|grpc:Error result = grpcClient->executeSimpleRPC(\"HelloWorld/hello\", req, headers);\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_grpc_1.12.1.png" + "label": "detail", + "description": "Returns the error's detail record.\n\n```ballerina\nerror(\"file not found\", file = \"test.bal\").detail() ⇒ {\"file\":\"test.bal\"}\n```\n\nThe returned value will be immutable.", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.error_0.0.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "grpc", - "symbol": "executeSimpleRPC", - "version": "1.12.1" + "module": "lang.error", + "symbol": "detail", + "version": "0.0.0" }, "enabled": true }, { "metadata": { - "label": "executeServerStreaming", - "description": "Calls when executing a server streaming call with a gRPC service.\n```ballerina\n[stream, map]|grpc:Error result = grpcClient->executeServerStreaming(\"HelloWorld/hello\", req, headers);\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_grpc_1.12.1.png" + "label": "stackTrace", + "description": "Returns an object representing the stack trace of the error.\n\n```ballerina\nerror(\"IO error\").stackTrace() ⇒ [callableName: main fileName: test.bal lineNumber: 5]\n```\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.error_0.0.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "grpc", - "symbol": "executeServerStreaming", - "version": "1.12.1" + "module": "lang.error", + "symbol": "stackTrace", + "version": "0.0.0" }, "enabled": true }, { "metadata": { - "label": "executeClientStreaming", - "description": "Calls when executing a client streaming call with a gRPC service.\n```ballerina\ngrpc:StreamingClient|grpc:Error result = grpcClient->executeClientStreaming(\"HelloWorld/hello\", headers);\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_grpc_1.12.1.png" + "label": "toString", + "description": "Converts an error to a string.\n\nThe details of the conversion are specified by the ToString abstract operation\ndefined in the Ballerina Language Specification, using the direct style.\n\n```ballerina\nerror(\"invalid salary\", value = 0d).toString() ⇒ error(\"invalid salary\",value=0)\n```\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.error_0.0.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "grpc", - "symbol": "executeClientStreaming", - "version": "1.12.1" + "module": "lang.error", + "symbol": "toString", + "version": "0.0.0" }, "enabled": true }, { "metadata": { - "label": "executeBidirectionalStreaming", - "description": "Calls when executing a bi-directional streaming call with a gRPC service.\n```ballerina\ngrpc:StreamingClient|grpc:Error result = grpcClient->executeBidirectionalStreaming(\"HelloWorld/hello\", headers);\n```\n", + "label": "toBalString", + "description": "Converts an error to a string that describes the value in Ballerina syntax.\n\nThe details of the conversion are specified by the ToString abstract operation\ndefined in the Ballerina Language Specification, using the expression style.\n\n```ballerina\nerror(\"invalid salary\", value = 0d).toBalString() ⇒ error(\"invalid salary\",value=0d)\n```\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.error_0.0.0.png" + }, + "codedata": { + "node": "FUNCTION_CALL", + "org": "ballerina", + "module": "lang.error", + "symbol": "toBalString", + "version": "0.0.0" + }, + "enabled": true + } + ] + }, + { + "metadata": { + "label": "wsdltool", + "description": "", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_wsdltool_0.1.0.png" + }, + "items": [ + { + "metadata": { + "label": "main", + "description": "", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_wsdltool_0.1.0.png" + }, + "codedata": { + "node": "FUNCTION_CALL", + "org": "ballerina", + "module": "wsdltool", + "symbol": "main", + "version": "0.1.0" + }, + "enabled": true + } + ] + }, + { + "metadata": { + "label": "grpc", + "description": "", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_grpc_1.12.1.png" + }, + "items": [ + { + "metadata": { + "label": "initStub", + "description": "Calls when initializing the client endpoint with the service descriptor data extracted from the proto file.\n```ballerina\ngrpc:Error? result = grpcClient.initStub(self, ROOT_DESCRIPTOR, getDescriptorMap());\n```\n", "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_grpc_1.12.1.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", "module": "grpc", - "symbol": "executeBidirectionalStreaming", + "symbol": "initStub", "version": "1.12.1" }, "enabled": true @@ -1230,129 +1278,6 @@ } ] }, - { - "metadata": { - "label": "lang.error", - "description": "", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.error_0.0.0.png" - }, - "items": [ - { - "metadata": { - "label": "message", - "description": "Returns the error's message.\n\n```ballerina\nerror(\"IO error\").message() ⇒ IO error\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.error_0.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "lang.error", - "symbol": "message", - "version": "0.0.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "cause", - "description": "Returns the error's cause.\n\n```ballerina\nerror fileNotFoundError = error(\"file not found\", file = \"test.bal\");\nfileNotFoundError.cause() is () ⇒ true\nerror ioError = error(\"IO error\", fileNotFoundError);\nioError.cause() ⇒ error(\"file not found\",file=\"test.bal\")\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.error_0.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "lang.error", - "symbol": "cause", - "version": "0.0.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "detail", - "description": "Returns the error's detail record.\n\n```ballerina\nerror(\"file not found\", file = \"test.bal\").detail() ⇒ {\"file\":\"test.bal\"}\n```\n\nThe returned value will be immutable.", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.error_0.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "lang.error", - "symbol": "detail", - "version": "0.0.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "stackTrace", - "description": "Returns an object representing the stack trace of the error.\n\n```ballerina\nerror(\"IO error\").stackTrace() ⇒ [callableName: main fileName: test.bal lineNumber: 5]\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.error_0.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "lang.error", - "symbol": "stackTrace", - "version": "0.0.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "toString", - "description": "Converts an error to a string.\n\nThe details of the conversion are specified by the ToString abstract operation\ndefined in the Ballerina Language Specification, using the direct style.\n\n```ballerina\nerror(\"invalid salary\", value = 0d).toString() ⇒ error(\"invalid salary\",value=0)\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.error_0.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "lang.error", - "symbol": "toString", - "version": "0.0.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "toBalString", - "description": "Converts an error to a string that describes the value in Ballerina syntax.\n\nThe details of the conversion are specified by the ToString abstract operation\ndefined in the Ballerina Language Specification, using the expression style.\n\n```ballerina\nerror(\"invalid salary\", value = 0d).toBalString() ⇒ error(\"invalid salary\",value=0d)\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.error_0.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "lang.error", - "symbol": "toBalString", - "version": "0.0.0" - }, - "enabled": true - } - ] - }, - { - "metadata": { - "label": "wsdltool", - "description": "", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_wsdltool_0.1.0.png" - }, - "items": [ - { - "metadata": { - "label": "main", - "description": "", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_wsdltool_0.1.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "wsdltool", - "symbol": "main", - "version": "0.1.0" - }, - "enabled": true - } - ] - }, { "metadata": { "label": "lang.transaction", @@ -2432,416 +2357,68 @@ }, { "metadata": { - "label": "ftp", + "label": "lang.string", "description": "", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ftp_2.11.0.png" + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.string_0.0.0.png" }, "items": [ { "metadata": { - "label": "init", - "description": "Represents an FTP client that intracts with an FTP server", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ftp_2.11.0.png" + "label": "length", + "description": "Returns the length of the string.\n\n```ballerina\n\"Hello, World!\".length() ⇒ 13;\n```\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.string_0.0.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "ftp", - "symbol": "init", - "version": "2.11.0" + "module": "lang.string", + "symbol": "length", + "version": "0.0.0" }, "enabled": true }, { "metadata": { - "label": "get", - "description": "Retrieves the file content from a remote resource.\n```ballerina\nstream|ftp:Error channel = client->get(path);\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ftp_2.11.0.png" + "label": "iterator", + "description": "Returns an iterator over the string.\n\nThe iterator will yield the substrings of length 1 in order.\n\n```ballerina\nobject {\n public isolated function next() returns record {|string:Char value;|}?;\n} iterator = \"Hello, World!\".iterator();\niterator.next() ⇒ {\"value\":\"H\"}\n```\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.string_0.0.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "ftp", - "symbol": "get", - "version": "2.11.0" + "module": "lang.string", + "symbol": "iterator", + "version": "0.0.0" }, "enabled": true }, { "metadata": { - "label": "append", - "description": "Appends the content to an existing file in an FTP server.\n```ballerina\nftp:Error? response = client->append(path, channel);\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ftp_2.11.0.png" + "label": "concat", + "description": "Concatenates zero or more strings.\n\n```ballerina\n\"http://worldtimeapi.org\".concat(\"/api/timezone/\", \"Asia\", \"/\", \"Colombo\") ⇒ http://worldtimeapi.org/api/timezone/Asia/Colombo\n// Alternative approach to achieve the same.\nstring:concat(\"http://worldtimeapi.org\", \"/api/timezone/\", \"Asia\", \"/\", \"Colombo\") ⇒ http://worldtimeapi.org/api/timezone/Asia/Colombo\n```\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.string_0.0.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "ftp", - "symbol": "append", - "version": "2.11.0" + "module": "lang.string", + "symbol": "concat", + "version": "0.0.0" }, "enabled": true }, { "metadata": { - "label": "put", - "description": "Adds a file to an FTP server.\n```ballerina\nftp:Error? response = client->put(path, channel);\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ftp_2.11.0.png" + "label": "getCodePoint", + "description": "Returns the code point of a character in a string.\n\n```ballerina\n\"Hello, World!\".getCodePoint(3) ⇒ 108\n```\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.string_0.0.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "ftp", - "symbol": "put", - "version": "2.11.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "mkdir", - "description": "Creates a new directory in an FTP server.\n```ballerina\nftp:Error? response = client->mkdir(path);\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ftp_2.11.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "ftp", - "symbol": "mkdir", - "version": "2.11.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "rmdir", - "description": "Deletes an empty directory in an FTP server.\n```ballerina\nftp:Error? response = client->rmdir(path);\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ftp_2.11.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "ftp", - "symbol": "rmdir", - "version": "2.11.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "rename", - "description": "Renames a file or moves it to a new location within\nthe same FTP server.\n```ballerina\nftp:Error? response = client->rename(origin, destination);\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ftp_2.11.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "ftp", - "symbol": "rename", - "version": "2.11.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "size", - "description": "Gets the size of a file resource.\n```ballerina\nint|ftp:Error response = client->size(path);\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ftp_2.11.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "ftp", - "symbol": "size", - "version": "2.11.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "list", - "description": "Gets the file name list in a given folder.\n```ballerina\nftp:FileInfo[]|ftp:Error response = client->list(path);\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ftp_2.11.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "ftp", - "symbol": "list", - "version": "2.11.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "isDirectory", - "description": "Checks if a given resource is a directory.\n```ballerina\nboolean|ftp:Error response = client->isDirectory(path);\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ftp_2.11.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "ftp", - "symbol": "isDirectory", - "version": "2.11.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "delete", - "description": "Deletes a file from an FTP server.\n```ballerina\nftp:Error? response = client->delete(path);\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ftp_2.11.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "ftp", - "symbol": "delete", - "version": "2.11.0" - }, - "enabled": true - } - ] - }, - { - "metadata": { - "label": "ldap", - "description": "", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ldap_1.1.0.png" - }, - "items": [ - { - "metadata": { - "label": "init", - "description": "Consists of APIs to integrate with LDAP.", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ldap_1.1.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "ldap", - "symbol": "init", - "version": "1.1.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "add", - "description": "Creates an entry in a directory server.\n\n```ballerina\nanydata user = {\n \"objectClass\": \"user\",\n \"sn\": \"New User\",\n \"cn\": \"New User\"\n};\nldap:LdapResponse result = check ldapClient->add(userDN, user);\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ldap_1.1.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "ldap", - "symbol": "add", - "version": "1.1.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "delete", - "description": "Removes an entry in a directory server.\n\n```ballerina\nldap:LdapResponse result = check ldapClient->delete(userDN);\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ldap_1.1.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "ldap", - "symbol": "delete", - "version": "1.1.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "modify", - "description": "Updates information of an entry.\n\n```ballerina\nanydata user = {\n \"sn\": \"User\",\n \"givenName\": \"Updated User\",\n \"displayName\": \"Updated User\"\n};\nldap:LdapResponse result = check ldapClient->modify(userDN, user);\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ldap_1.1.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "ldap", - "symbol": "modify", - "version": "1.1.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "modifyDn", - "description": "Renames an entry in a directory server.\n\n```ballerina\nldap:LdapResponse modifyDN = check ldapClient->modifyDn(userDN, \"CN=Test User2\", true);\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ldap_1.1.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "ldap", - "symbol": "modifyDn", - "version": "1.1.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "compare", - "description": "Determines whether a given entry has a specified attribute value.\n\n```ballerina\nboolean compare = check ldapClient->compare(userDN, \"givenName\", \"New User\");\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ldap_1.1.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "ldap", - "symbol": "compare", - "version": "1.1.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "getEntry", - "description": "Gets information of an entry.\n\n```ballerina\nanydata value = check ldapClient->getEntry(userDN);\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ldap_1.1.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "ldap", - "symbol": "getEntry", - "version": "1.1.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "searchWithType", - "description": "Returns a list of entries that match the given search parameters.\n\n```ballerina\nanydata[] value = check ldapClient->searchWithType(\"DC=ldap,DC=com\", \"(givenName=New User)\", ldap:SUB);\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ldap_1.1.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "ldap", - "symbol": "searchWithType", - "version": "1.1.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "search", - "description": "Returns a record containing search result entries and references that match the given search parameters.\n\n```ballerina\nldap:SearchResult value = check ldapClient->search(\"DC=ldap,DC=windows\", \"(givenName=New User)\", ldap:SUB);\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ldap_1.1.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "ldap", - "symbol": "search", - "version": "1.1.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "close", - "description": "Unbinds from the server and closes the LDAP connection. \n\n```ballerina\nldapClient->close();\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ldap_1.1.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "ldap", - "symbol": "close", - "version": "1.1.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "isConnected", - "description": "Determines whether the client is connected to the server.\n\n```ballerina\nboolean isConnected = ldapClient->isConnected();\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_ldap_1.1.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "ldap", - "symbol": "isConnected", - "version": "1.1.0" - }, - "enabled": true - } - ] - }, - { - "metadata": { - "label": "lang.string", - "description": "", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.string_0.0.0.png" - }, - "items": [ - { - "metadata": { - "label": "length", - "description": "Returns the length of the string.\n\n```ballerina\n\"Hello, World!\".length() ⇒ 13;\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.string_0.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "lang.string", - "symbol": "length", - "version": "0.0.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "iterator", - "description": "Returns an iterator over the string.\n\nThe iterator will yield the substrings of length 1 in order.\n\n```ballerina\nobject {\n public isolated function next() returns record {|string:Char value;|}?;\n} iterator = \"Hello, World!\".iterator();\niterator.next() ⇒ {\"value\":\"H\"}\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.string_0.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "lang.string", - "symbol": "iterator", - "version": "0.0.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "concat", - "description": "Concatenates zero or more strings.\n\n```ballerina\n\"http://worldtimeapi.org\".concat(\"/api/timezone/\", \"Asia\", \"/\", \"Colombo\") ⇒ http://worldtimeapi.org/api/timezone/Asia/Colombo\n// Alternative approach to achieve the same.\nstring:concat(\"http://worldtimeapi.org\", \"/api/timezone/\", \"Asia\", \"/\", \"Colombo\") ⇒ http://worldtimeapi.org/api/timezone/Asia/Colombo\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.string_0.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "lang.string", - "symbol": "concat", - "version": "0.0.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "getCodePoint", - "description": "Returns the code point of a character in a string.\n\n```ballerina\n\"Hello, World!\".getCodePoint(3) ⇒ 108\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.string_0.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "lang.string", - "symbol": "getCodePoint", - "version": "0.0.0" + "module": "lang.string", + "symbol": "getCodePoint", + "version": "0.0.0" }, "enabled": true }, @@ -4475,92 +4052,23 @@ }, { "metadata": { - "label": "tcp", + "label": "auth", "description": "", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_tcp_1.11.1.png" + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_auth_2.12.0.png" }, "items": [ { "metadata": { - "label": "init", - "description": "Initializes the TCP connection client based on the provided configurations.", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_tcp_1.11.1.png" + "label": "extractUsernameAndPassword", + "description": "Extracts the username and the password from the Base64-encoded `username:password` value.\n```ballerina\n[string, string] [username, password] = check auth:extractUsernameAndPassword(\"\");\n```\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_auth_2.12.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "tcp", - "symbol": "init", - "version": "1.11.1" - }, - "enabled": true - }, - { - "metadata": { - "label": "writeBytes", - "description": "Sends the given data to the connected remote host.\n```ballerina\ntcp:Error? result = socketClient->writeBytes(\"msg\".toBytes());\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_tcp_1.11.1.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "tcp", - "symbol": "writeBytes", - "version": "1.11.1" - }, - "enabled": true - }, - { - "metadata": { - "label": "readBytes", - "description": "Reads data only from the connected remote host. \n```ballerina\n(readonly & byte[])|tcp:Error result = socketClient->readBytes();\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_tcp_1.11.1.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "tcp", - "symbol": "readBytes", - "version": "1.11.1" - }, - "enabled": true - }, - { - "metadata": { - "label": "close", - "description": "Frees up the occupied socket.\n```ballerina\ntcp:Error? closeResult = socketClient->close();\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_tcp_1.11.1.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "tcp", - "symbol": "close", - "version": "1.11.1" - }, - "enabled": true - } - ] - }, - { - "metadata": { - "label": "auth", - "description": "", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_auth_2.12.0.png" - }, - "items": [ - { - "metadata": { - "label": "extractUsernameAndPassword", - "description": "Extracts the username and the password from the Base64-encoded `username:password` value.\n```ballerina\n[string, string] [username, password] = check auth:extractUsernameAndPassword(\"\");\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_auth_2.12.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "auth", - "symbol": "extractUsernameAndPassword", - "version": "2.12.0" + "module": "auth", + "symbol": "extractUsernameAndPassword", + "version": "2.12.0" }, "enabled": true } @@ -4659,135 +4167,6 @@ } ] }, - { - "metadata": { - "label": "mqtt", - "description": "", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_mqtt_1.2.0.png" - }, - "items": [ - { - "metadata": { - "label": "init", - "description": "Represents the client that is used to publish messages to the server.", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_mqtt_1.2.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "mqtt", - "symbol": "init", - "version": "1.2.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "publish", - "description": "Publishes a message to a topic.\n```ballerina\nmqtt:DeliveryToken token = check 'client->publish(\"mqtt/topic\", message);\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_mqtt_1.2.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "mqtt", - "symbol": "publish", - "version": "1.2.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "subscribe", - "description": "Subscribes to a given topic in the request response scenario.\n```ballerina\ncheck 'client->subscribe([{topic: \"mqtt/topic1\", qos: 0}, {topic: \"mqtt/topic2\", qos: 1}]);\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_mqtt_1.2.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "mqtt", - "symbol": "subscribe", - "version": "1.2.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "receive", - "description": "Receives messages from the server.\n```ballerina\nstream responseStream = check 'client->receive();\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_mqtt_1.2.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "mqtt", - "symbol": "receive", - "version": "1.2.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "close", - "description": "Closes the connection to the server.\n```ballerina\ncheck 'client->close();\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_mqtt_1.2.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "mqtt", - "symbol": "close", - "version": "1.2.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "isConnected", - "description": "Checks if the client is connected to the server.\n```ballerina\nboolean isConnected = check 'client->isConnected;\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_mqtt_1.2.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "mqtt", - "symbol": "isConnected", - "version": "1.2.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "disconnect", - "description": "Disconnects the client from the server.\n```ballerina\ncheck 'client->disconnect();\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_mqtt_1.2.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "mqtt", - "symbol": "disconnect", - "version": "1.2.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "reconnect", - "description": "Reconnects the client to the server.\n```ballerina\ncheck 'client->reconnect();\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_mqtt_1.2.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "mqtt", - "symbol": "reconnect", - "version": "1.2.0" - }, - "enabled": true - } - ] - }, { "metadata": { "label": "file", @@ -5226,75 +4605,6 @@ } ] }, - { - "metadata": { - "label": "udp", - "description": "", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_udp_1.11.0.png" - }, - "items": [ - { - "metadata": { - "label": "init", - "description": "Initializes the UDP connectionless client based on the provided configurations.", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_udp_1.11.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "udp", - "symbol": "init", - "version": "1.11.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "sendDatagram", - "description": "Sends the given data to the specified remote host.\n```ballerina\nudp:Error? result = socketClient->sendDatagram({remoteHost: \"localhost\",\n remotePort: 48826, data:\"msg\".toBytes()});\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_udp_1.11.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "udp", - "symbol": "sendDatagram", - "version": "1.11.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "receiveDatagram", - "description": "Reads data from the remote host. \n```ballerina\nudp:Datagram|udp:Error result = socketClient->receiveDatagram();\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_udp_1.11.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "udp", - "symbol": "receiveDatagram", - "version": "1.11.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "close", - "description": "Free up the occupied socket.\n```ballerina\nudp:Error? closeResult = socketClient->close();\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_udp_1.11.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "udp", - "symbol": "close", - "version": "1.11.0" - }, - "enabled": true - } - ] - }, { "metadata": { "label": "jballerina.java", @@ -6165,90 +5475,6 @@ } ] }, - { - "metadata": { - "label": "graphql", - "description": "", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_graphql_1.14.0.png" - }, - "items": [ - { - "metadata": { - "label": "init", - "description": "The Ballerina GraphQL client that can be used to communicate with GraphQL APIs.", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_graphql_1.14.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "graphql", - "symbol": "init", - "version": "1.14.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "executeWithType", - "description": "Executes a GraphQL document and data binds the GraphQL response to a record with data and extensions\nwhich is a subtype of GenericResponse.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_graphql_1.14.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "graphql", - "symbol": "executeWithType", - "version": "1.14.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "execute", - "description": "Executes a GraphQL document and data binds the GraphQL response to a record with data, extensions and errors\nwhich is a subtype of GenericResponseWithErrors.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_graphql_1.14.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "graphql", - "symbol": "execute", - "version": "1.14.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "__addError", - "description": "Adds an error to the GraphQL response. Using this to add an error is not recommended.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_graphql_1.14.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "graphql", - "symbol": "__addError", - "version": "1.14.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "getSdlString", - "description": "Obtains the schema representation of a federated subgraph, expressed in the SDL format.", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_graphql_1.14.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "graphql", - "symbol": "getSdlString", - "version": "1.14.0" - }, - "enabled": true - } - ] - }, { "metadata": { "label": "xmldata", @@ -6335,9 +5561,48 @@ }, { "metadata": { - "label": "lang.function", + "label": "graphql", "description": "", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.function_0.0.0.png" + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_graphql_1.14.0.png" + }, + "items": [ + { + "metadata": { + "label": "__addError", + "description": "Adds an error to the GraphQL response. Using this to add an error is not recommended.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_graphql_1.14.0.png" + }, + "codedata": { + "node": "FUNCTION_CALL", + "org": "ballerina", + "module": "graphql", + "symbol": "__addError", + "version": "1.14.0" + }, + "enabled": true + }, + { + "metadata": { + "label": "getSdlString", + "description": "Obtains the schema representation of a federated subgraph, expressed in the SDL format.", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_graphql_1.14.0.png" + }, + "codedata": { + "node": "FUNCTION_CALL", + "org": "ballerina", + "module": "graphql", + "symbol": "getSdlString", + "version": "1.14.0" + }, + "enabled": true + } + ] + }, + { + "metadata": { + "label": "lang.function", + "description": "", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.function_0.0.0.png" }, "items": [ { @@ -8102,620 +7367,296 @@ }, { "metadata": { - "label": "websocket", + "label": "data.xmldata", "description": "", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_data.xmldata_1.0.0.png" }, "items": [ { "metadata": { - "label": "init", - "description": "Represents a WebSocket synchronous client endpoint.", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" + "label": "parseAsType", + "description": "Converts XML to record type with projection.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_data.xmldata_1.0.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "websocket", - "symbol": "init", - "version": "2.12.0" + "module": "data.xmldata", + "symbol": "parseAsType", + "version": "1.0.0" }, "enabled": true }, { "metadata": { - "label": "initEndpoint", - "description": "", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" + "label": "parseString", + "description": "Converts XML string to record type with projection.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_data.xmldata_1.0.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "websocket", - "symbol": "initEndpoint", - "version": "2.12.0" + "module": "data.xmldata", + "symbol": "parseString", + "version": "1.0.0" }, "enabled": true }, { "metadata": { - "label": "writeTextMessage", - "description": "Writes text messages to the connection. If an error occurs while sending the text message to the connection, that message\nwill be lost.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" + "label": "parseBytes", + "description": "Converts XML byte[] to record type with projection.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_data.xmldata_1.0.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "websocket", - "symbol": "writeTextMessage", - "version": "2.12.0" + "module": "data.xmldata", + "symbol": "parseBytes", + "version": "1.0.0" }, "enabled": true }, { "metadata": { - "label": "writeBinaryMessage", - "description": "Writes binary data to the connection. If an error occurs while sending the binary message to the connection,\nthat message will be lost.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" + "label": "parseStream", + "description": "Converts XML byte-block-stream to record type with projection.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_data.xmldata_1.0.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "websocket", - "symbol": "writeBinaryMessage", - "version": "2.12.0" + "module": "data.xmldata", + "symbol": "parseStream", + "version": "1.0.0" }, "enabled": true }, { "metadata": { - "label": "ping", - "description": "Pings the connection. If an error occurs while sending the ping frame to the server, that frame will be lost.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" + "label": "toXml", + "description": "Converts a `Map` or `Record` representation to its XML representation.\nAdditionally, when converting from a record, the `xmldata:Namespace`, `xmldata:Name`, and `xmldata:Attribute`\nannotations can be used to add `namespaces`, `name of elements`, and `attributes` to XML representation.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_data.xmldata_1.0.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "websocket", - "symbol": "ping", - "version": "2.12.0" + "module": "data.xmldata", + "symbol": "toXml", + "version": "1.0.0" }, "enabled": true }, { "metadata": { - "label": "pong", - "description": "Sends a pong message to the connection. If an error occurs while sending the pong frame to the connection, that\nthe frame will be lost.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" + "label": "fromJson", + "description": "Converts a JSON object to an XML representation.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_data.xmldata_1.0.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "websocket", - "symbol": "pong", - "version": "2.12.0" + "module": "data.xmldata", + "symbol": "fromJson", + "version": "1.0.0" }, "enabled": true - }, + } + ] + }, + { + "metadata": { + "label": "sql", + "description": "", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_sql_1.14.1.png" + }, + "items": [ { "metadata": { - "label": "close", - "description": "Closes the connection.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" + "label": "getGlobalConnectionPool", + "description": "Returns the global connection pool.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_sql_1.14.1.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "websocket", - "symbol": "close", - "version": "2.12.0" + "module": "sql", + "symbol": "getGlobalConnectionPool", + "version": "1.14.1" }, "enabled": true }, { "metadata": { - "label": "setAttribute", - "description": "Sets a connection-related attribute.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" + "label": "queryConcat", + "description": "Concatenates all provided `sql:ParameterizedQuery`s into a single `sql:ParameterizedQuery`.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_sql_1.14.1.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "websocket", - "symbol": "setAttribute", - "version": "2.12.0" + "module": "sql", + "symbol": "queryConcat", + "version": "1.14.1" }, "enabled": true }, { "metadata": { - "label": "getAttribute", - "description": "Gets connection-related attributes if any.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" + "label": "arrayFlattenQuery", + "description": "Joins the parameters in the array with the `,` delimiter into an `sql:ParameterizedQuery`.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_sql_1.14.1.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "websocket", - "symbol": "getAttribute", - "version": "2.12.0" + "module": "sql", + "symbol": "arrayFlattenQuery", + "version": "1.14.1" }, "enabled": true }, { "metadata": { - "label": "removeAttribute", - "description": "Removes connection related attribute if any.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" + "label": "generateApplicationErrorStream", + "description": "Generates a stream consisting of `sql:Error` elements.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_sql_1.14.1.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "websocket", - "symbol": "removeAttribute", - "version": "2.12.0" + "module": "sql", + "symbol": "generateApplicationErrorStream", + "version": "1.14.1" }, "enabled": true - }, + } + ] + }, + { + "metadata": { + "label": "lang.xml", + "description": "", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.xml_0.0.0.png" + }, + "items": [ { "metadata": { - "label": "getConnectionId", - "description": "Gives the connection id associated with this connection.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" + "label": "'map", + "description": "Applies a function to each item in an xml sequence, and returns an xml sequence of the results.\n\nEach item is represented as a singleton value.\n\n```ballerina\nxml x = xml `HamletMacbeth`;\nx.map(function (xml xmlContent) returns xml => \n xml `${xmlContent.children()}`\n) ⇒ HamletMacbeth\n```\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.xml_0.0.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "websocket", - "symbol": "getConnectionId", - "version": "2.12.0" + "module": "lang.xml", + "symbol": "'map", + "version": "0.0.0" }, "enabled": true }, { "metadata": { - "label": "getNegotiatedSubProtocol", - "description": "Gives the subprotocol if any that is negotiated with the client.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" + "label": "length", + "description": "Returns number of xml items in an xml value.\n\n```ballerina\nxml `Sherlock Holmes`.length() ⇒ 2\n```\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.xml_0.0.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "websocket", - "symbol": "getNegotiatedSubProtocol", - "version": "2.12.0" + "module": "lang.xml", + "symbol": "length", + "version": "0.0.0" }, "enabled": true }, { "metadata": { - "label": "isSecure", - "description": "Gives the secured status of the connection.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" + "label": "iterator", + "description": "Returns an iterator over the xml items of an xml sequence.\n\n# Each item is represented by an xml singleton.\n\n```ballerina\nobject {\n public isolated function next() returns record {|xml value;|}?;\n} iterator = xml `JohnPeter`.iterator();\niterator.next() ⇒ {\"value\":`John`}\n```\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.xml_0.0.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "websocket", - "symbol": "isSecure", - "version": "2.12.0" + "module": "lang.xml", + "symbol": "iterator", + "version": "0.0.0" }, "enabled": true }, { "metadata": { - "label": "isOpen", - "description": "Gives the open or closed status of the connection.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" + "label": "get", + "description": "Returns the item of an xml sequence with given index.\n\nThis differs from `x[i]` in that it panics if\nparameter `x` does not have an item with index parameter `i`.\n\n```ballerina\nxml x = xml `MacbethHamlet`;\nx.get(1) ⇒ Hamlet\nx.get(15) ⇒ panic\n```\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.xml_0.0.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "websocket", - "symbol": "isOpen", - "version": "2.12.0" + "module": "lang.xml", + "symbol": "get", + "version": "0.0.0" }, "enabled": true }, { "metadata": { - "label": "getHttpResponse", - "description": "Gives the HTTP response if any received for the client handshake request.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" + "label": "concat", + "description": "Concatenates xml and string values.\n\n```ballerina\nxml bookA = xml `Sherlock Holmes`;\nxml bookB = xml `Hamlet`;\nxml:concat(bookA, bookB, xml `Macbeth`) ⇒ Sherlock HolmesHamletMacbeth\nbookA.concat(bookB) ⇒ Sherlock HolmesHamlet\nbookB.concat(\"Novel\") ⇒ HamletNovel\nxml:concat(\"Hello\", \"World\") ⇒ HelloWorld\nxml[] subjects = [xml `English`, xml `Math`, xml `ICT`];\nxml:concat(...subjects) ⇒ EnglishMathICT\n```\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.xml_0.0.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "websocket", - "symbol": "getHttpResponse", - "version": "2.12.0" + "module": "lang.xml", + "symbol": "concat", + "version": "0.0.0" }, "enabled": true }, { "metadata": { - "label": "readTextMessage", - "description": "Reads text messages in a synchronous manner.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" + "label": "getName", + "description": "Returns a string giving the expanded name of an xml element.\n\n```ballerina\nxml:Element e = xml `John`;\ne.getName() ⇒ person\n```\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.xml_0.0.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "websocket", - "symbol": "readTextMessage", - "version": "2.12.0" + "module": "lang.xml", + "symbol": "getName", + "version": "0.0.0" }, "enabled": true }, { "metadata": { - "label": "readBinaryMessage", - "description": "Reads binary data in a synchronous manner.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" + "label": "setName", + "description": "Changes the name of an XML element.\n\n```ballerina\nxml:Element e = xml `John`;\ne.setName(\"student\");\ne ⇒ John\n```\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.xml_0.0.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "websocket", - "symbol": "readBinaryMessage", - "version": "2.12.0" + "module": "lang.xml", + "symbol": "setName", + "version": "0.0.0" }, "enabled": true }, { "metadata": { - "label": "readMessage", - "description": "Reads data from the WebSocket connection.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" + "label": "getAttributes", + "description": "Returns the map representing the attributes of an xml element.\n\nThis includes namespace attributes.\nThe keys in the map are the expanded names of the attributes.\n\n```ballerina\nxml:Element e = xml `John`;\ne.getAttributes() ⇒ {\"id\":\"1012\",\"employed\":\"yes\"}\n```\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.xml_0.0.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "websocket", - "symbol": "readMessage", - "version": "2.12.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "writeMessage", - "description": "Writes messages to the connection. If an error occurs while sending the message to the connection, that message\nwill be lost.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "websocket", - "symbol": "writeMessage", - "version": "2.12.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "authenticateResource", - "description": "Uses for declarative auth design, where the authentication/authorization decision is taken\nby reading the auth annotations provided in service/resource and the `Authorization` header of request.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "websocket", - "symbol": "authenticateResource", - "version": "2.12.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "addCookies", - "description": "Adds cookies to the custom header.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "websocket", - "symbol": "addCookies", - "version": "2.12.0" - }, - "enabled": true - } - ] - }, - { - "metadata": { - "label": "data.xmldata", - "description": "", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_data.xmldata_1.0.0.png" - }, - "items": [ - { - "metadata": { - "label": "parseAsType", - "description": "Converts XML to record type with projection.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_data.xmldata_1.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "data.xmldata", - "symbol": "parseAsType", - "version": "1.0.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "parseString", - "description": "Converts XML string to record type with projection.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_data.xmldata_1.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "data.xmldata", - "symbol": "parseString", - "version": "1.0.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "parseBytes", - "description": "Converts XML byte[] to record type with projection.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_data.xmldata_1.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "data.xmldata", - "symbol": "parseBytes", - "version": "1.0.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "parseStream", - "description": "Converts XML byte-block-stream to record type with projection.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_data.xmldata_1.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "data.xmldata", - "symbol": "parseStream", - "version": "1.0.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "toXml", - "description": "Converts a `Map` or `Record` representation to its XML representation.\nAdditionally, when converting from a record, the `xmldata:Namespace`, `xmldata:Name`, and `xmldata:Attribute`\nannotations can be used to add `namespaces`, `name of elements`, and `attributes` to XML representation.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_data.xmldata_1.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "data.xmldata", - "symbol": "toXml", - "version": "1.0.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "fromJson", - "description": "Converts a JSON object to an XML representation.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_data.xmldata_1.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "data.xmldata", - "symbol": "fromJson", - "version": "1.0.0" - }, - "enabled": true - } - ] - }, - { - "metadata": { - "label": "sql", - "description": "", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_sql_1.14.1.png" - }, - "items": [ - { - "metadata": { - "label": "getGlobalConnectionPool", - "description": "Returns the global connection pool.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_sql_1.14.1.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "sql", - "symbol": "getGlobalConnectionPool", - "version": "1.14.1" - }, - "enabled": true - }, - { - "metadata": { - "label": "queryConcat", - "description": "Concatenates all provided `sql:ParameterizedQuery`s into a single `sql:ParameterizedQuery`.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_sql_1.14.1.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "sql", - "symbol": "queryConcat", - "version": "1.14.1" - }, - "enabled": true - }, - { - "metadata": { - "label": "arrayFlattenQuery", - "description": "Joins the parameters in the array with the `,` delimiter into an `sql:ParameterizedQuery`.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_sql_1.14.1.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "sql", - "symbol": "arrayFlattenQuery", - "version": "1.14.1" - }, - "enabled": true - }, - { - "metadata": { - "label": "generateApplicationErrorStream", - "description": "Generates a stream consisting of `sql:Error` elements.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_sql_1.14.1.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "sql", - "symbol": "generateApplicationErrorStream", - "version": "1.14.1" - }, - "enabled": true - } - ] - }, - { - "metadata": { - "label": "lang.xml", - "description": "", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.xml_0.0.0.png" - }, - "items": [ - { - "metadata": { - "label": "'map", - "description": "Applies a function to each item in an xml sequence, and returns an xml sequence of the results.\n\nEach item is represented as a singleton value.\n\n```ballerina\nxml x = xml `HamletMacbeth`;\nx.map(function (xml xmlContent) returns xml => \n xml `${xmlContent.children()}`\n) ⇒ HamletMacbeth\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.xml_0.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "lang.xml", - "symbol": "'map", - "version": "0.0.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "length", - "description": "Returns number of xml items in an xml value.\n\n```ballerina\nxml `Sherlock Holmes`.length() ⇒ 2\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.xml_0.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "lang.xml", - "symbol": "length", - "version": "0.0.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "iterator", - "description": "Returns an iterator over the xml items of an xml sequence.\n\n# Each item is represented by an xml singleton.\n\n```ballerina\nobject {\n public isolated function next() returns record {|xml value;|}?;\n} iterator = xml `JohnPeter`.iterator();\niterator.next() ⇒ {\"value\":`John`}\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.xml_0.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "lang.xml", - "symbol": "iterator", - "version": "0.0.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "get", - "description": "Returns the item of an xml sequence with given index.\n\nThis differs from `x[i]` in that it panics if\nparameter `x` does not have an item with index parameter `i`.\n\n```ballerina\nxml x = xml `MacbethHamlet`;\nx.get(1) ⇒ Hamlet\nx.get(15) ⇒ panic\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.xml_0.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "lang.xml", - "symbol": "get", - "version": "0.0.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "concat", - "description": "Concatenates xml and string values.\n\n```ballerina\nxml bookA = xml `Sherlock Holmes`;\nxml bookB = xml `Hamlet`;\nxml:concat(bookA, bookB, xml `Macbeth`) ⇒ Sherlock HolmesHamletMacbeth\nbookA.concat(bookB) ⇒ Sherlock HolmesHamlet\nbookB.concat(\"Novel\") ⇒ HamletNovel\nxml:concat(\"Hello\", \"World\") ⇒ HelloWorld\nxml[] subjects = [xml `English`, xml `Math`, xml `ICT`];\nxml:concat(...subjects) ⇒ EnglishMathICT\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.xml_0.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "lang.xml", - "symbol": "concat", - "version": "0.0.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "getName", - "description": "Returns a string giving the expanded name of an xml element.\n\n```ballerina\nxml:Element e = xml `John`;\ne.getName() ⇒ person\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.xml_0.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "lang.xml", - "symbol": "getName", - "version": "0.0.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "setName", - "description": "Changes the name of an XML element.\n\n```ballerina\nxml:Element e = xml `John`;\ne.setName(\"student\");\ne ⇒ John\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.xml_0.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "lang.xml", - "symbol": "setName", - "version": "0.0.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "getAttributes", - "description": "Returns the map representing the attributes of an xml element.\n\nThis includes namespace attributes.\nThe keys in the map are the expanded names of the attributes.\n\n```ballerina\nxml:Element e = xml `John`;\ne.getAttributes() ⇒ {\"id\":\"1012\",\"employed\":\"yes\"}\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_lang.xml_0.0.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "lang.xml", - "symbol": "getAttributes", - "version": "0.0.0" + "module": "lang.xml", + "symbol": "getAttributes", + "version": "0.0.0" }, "enabled": true }, @@ -9167,599 +8108,428 @@ }, { "metadata": { - "label": "xslt", - "description": "", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_xslt_2.7.0.png" - }, - "items": [ - { - "metadata": { - "label": "transform", - "description": "Transforms the single-rooted XML content to another XML/HTML/plain text using XSL transformations.\n```ballerina\nxml|error target = xslt:transform(sourceXml, xsl);\n```\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_xslt_2.7.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "xslt", - "symbol": "transform", - "version": "2.7.0" - }, - "enabled": true - } - ] - }, - { - "metadata": { - "label": "observe", + "label": "websocket", "description": "", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" }, "items": [ { "metadata": { - "label": "isObservabilityEnabled", - "description": "Check whether observability is enabled.", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "observe", - "symbol": "isObservabilityEnabled", - "version": "1.3.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "isMetricsEnabled", - "description": "Check whether metrics is enabled.", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "observe", - "symbol": "isMetricsEnabled", - "version": "1.3.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "getMetricsProvider", - "description": "Retrieve metrics provider.", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "observe", - "symbol": "getMetricsProvider", - "version": "1.3.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "getMetricsReporter", - "description": "Retrieve metrics reporter.", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "observe", - "symbol": "getMetricsReporter", - "version": "1.3.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "isTracingEnabled", - "description": "Check whether tracing is enabled.", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "observe", - "symbol": "isTracingEnabled", - "version": "1.3.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "getTracingProvider", - "description": "Retrieve tracer provider.", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "observe", - "symbol": "getTracingProvider", - "version": "1.3.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "startRootSpan", - "description": "Start a span with no parent span.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "observe", - "symbol": "startRootSpan", - "version": "1.3.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "startSpan", - "description": "Start a span and create child relationship to current active span or user specified span.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "observe", - "symbol": "startSpan", - "version": "1.3.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "addTagToSpan", - "description": "Add a key value pair as a tag to the span.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "observe", - "symbol": "addTagToSpan", - "version": "1.3.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "addTagToMetrics", - "description": "Add a key value pair as a tag to system metrics.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "observe", - "symbol": "addTagToMetrics", - "version": "1.3.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "finishSpan", - "description": "Finish the current span.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" - }, - "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "observe", - "symbol": "finishSpan", - "version": "1.3.0" - }, - "enabled": true - }, - { - "metadata": { - "label": "getSpanContext", - "description": "Retrieve a map of span context data.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" + "label": "initEndpoint", + "description": "", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "observe", - "symbol": "getSpanContext", - "version": "1.3.0" + "module": "websocket", + "symbol": "initEndpoint", + "version": "2.12.0" }, "enabled": true }, { "metadata": { - "label": "getAllMetrics", - "description": "Retrieve all registered metrics including default metrics from the ballerina runtime, and user defined metrics.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" + "label": "setAttribute", + "description": "Sets a connection-related attribute.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "observe", - "symbol": "getAllMetrics", - "version": "1.3.0" + "module": "websocket", + "symbol": "setAttribute", + "version": "2.12.0" }, "enabled": true }, { "metadata": { - "label": "lookupMetric", - "description": "Retrieve the specific metric that is described by the given name and tags.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" + "label": "getAttribute", + "description": "Gets connection-related attributes if any.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" }, "codedata": { - "node": "FUNCTION_CALL", - "org": "ballerina", - "module": "observe", - "symbol": "lookupMetric", - "version": "1.3.0" - }, - "enabled": true - } - ] - }, - { - "metadata": { - "label": "http", - "description": "", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" - }, - "items": [ + "node": "FUNCTION_CALL", + "org": "ballerina", + "module": "websocket", + "symbol": "getAttribute", + "version": "2.12.0" + }, + "enabled": true + }, { "metadata": { - "label": "init", - "description": "The HTTP client provides the capability for initiating contact with a remote HTTP service. The API it\nprovides includes the functions for the standard HTTP methods forwarding a received request and sending requests\nusing custom HTTP verbs.", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + "label": "removeAttribute", + "description": "Removes connection related attribute if any.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "http", - "symbol": "init", - "version": "2.12.2" + "module": "websocket", + "symbol": "removeAttribute", + "version": "2.12.0" }, "enabled": true }, { "metadata": { - "label": "post", - "description": "The client resource function to send HTTP POST requests to HTTP endpoints.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + "label": "getConnectionId", + "description": "Gives the connection id associated with this connection.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "http", - "symbol": "post", - "version": "2.12.2" + "module": "websocket", + "symbol": "getConnectionId", + "version": "2.12.0" }, "enabled": true }, { "metadata": { - "label": "post", - "description": "The `Client.post()` function can be used to send HTTP POST requests to HTTP endpoints.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + "label": "getNegotiatedSubProtocol", + "description": "Gives the subprotocol if any that is negotiated with the client.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "http", - "symbol": "post", - "version": "2.12.2" + "module": "websocket", + "symbol": "getNegotiatedSubProtocol", + "version": "2.12.0" }, "enabled": true }, { "metadata": { - "label": "put", - "description": "The client resource function to send HTTP PUT requests to HTTP endpoints.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + "label": "isSecure", + "description": "Gives the secured status of the connection.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "http", - "symbol": "put", - "version": "2.12.2" + "module": "websocket", + "symbol": "isSecure", + "version": "2.12.0" }, "enabled": true }, { "metadata": { - "label": "put", - "description": "The `Client.put()` function can be used to send HTTP PUT requests to HTTP endpoints.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + "label": "isOpen", + "description": "Gives the open or closed status of the connection.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "http", - "symbol": "put", - "version": "2.12.2" + "module": "websocket", + "symbol": "isOpen", + "version": "2.12.0" }, "enabled": true }, { "metadata": { - "label": "patch", - "description": "The client resource function to send HTTP PATCH requests to HTTP endpoints.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + "label": "getHttpResponse", + "description": "Gives the HTTP response if any received for the client handshake request.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "http", - "symbol": "patch", - "version": "2.12.2" + "module": "websocket", + "symbol": "getHttpResponse", + "version": "2.12.0" }, "enabled": true }, { "metadata": { - "label": "patch", - "description": "The `Client.patch()` function can be used to send HTTP PATCH requests to HTTP endpoints.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + "label": "authenticateResource", + "description": "Uses for declarative auth design, where the authentication/authorization decision is taken\nby reading the auth annotations provided in service/resource and the `Authorization` header of request.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "http", - "symbol": "patch", - "version": "2.12.2" + "module": "websocket", + "symbol": "authenticateResource", + "version": "2.12.0" }, "enabled": true }, { "metadata": { - "label": "delete", - "description": "The client resource function to send HTTP DELETE requests to HTTP endpoints.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + "label": "addCookies", + "description": "Adds cookies to the custom header.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_websocket_2.12.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "http", - "symbol": "delete", - "version": "2.12.2" + "module": "websocket", + "symbol": "addCookies", + "version": "2.12.0" }, "enabled": true - }, + } + ] + }, + { + "metadata": { + "label": "xslt", + "description": "", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_xslt_2.7.0.png" + }, + "items": [ { "metadata": { - "label": "delete", - "description": "The `Client.delete()` function can be used to send HTTP DELETE requests to HTTP endpoints.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + "label": "transform", + "description": "Transforms the single-rooted XML content to another XML/HTML/plain text using XSL transformations.\n```ballerina\nxml|error target = xslt:transform(sourceXml, xsl);\n```\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_xslt_2.7.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "http", - "symbol": "delete", - "version": "2.12.2" + "module": "xslt", + "symbol": "transform", + "version": "2.7.0" }, "enabled": true - }, + } + ] + }, + { + "metadata": { + "label": "observe", + "description": "", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" + }, + "items": [ { "metadata": { - "label": "head", - "description": "The client resource function to send HTTP HEAD requests to HTTP endpoints.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + "label": "isObservabilityEnabled", + "description": "Check whether observability is enabled.", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "http", - "symbol": "head", - "version": "2.12.2" + "module": "observe", + "symbol": "isObservabilityEnabled", + "version": "1.3.0" }, "enabled": true }, { "metadata": { - "label": "head", - "description": "The `Client.head()` function can be used to send HTTP HEAD requests to HTTP endpoints.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + "label": "isMetricsEnabled", + "description": "Check whether metrics is enabled.", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "http", - "symbol": "head", - "version": "2.12.2" + "module": "observe", + "symbol": "isMetricsEnabled", + "version": "1.3.0" }, "enabled": true }, { "metadata": { - "label": "get", - "description": "The client resource function to send HTTP GET requests to HTTP endpoints.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + "label": "getMetricsProvider", + "description": "Retrieve metrics provider.", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "http", - "symbol": "get", - "version": "2.12.2" + "module": "observe", + "symbol": "getMetricsProvider", + "version": "1.3.0" }, "enabled": true }, { "metadata": { - "label": "get", - "description": "The `Client.get()` function can be used to send HTTP GET requests to HTTP endpoints.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + "label": "getMetricsReporter", + "description": "Retrieve metrics reporter.", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "http", - "symbol": "get", - "version": "2.12.2" + "module": "observe", + "symbol": "getMetricsReporter", + "version": "1.3.0" }, "enabled": true }, { "metadata": { - "label": "options", - "description": "The client resource function to send HTTP OPTIONS requests to HTTP endpoints.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + "label": "isTracingEnabled", + "description": "Check whether tracing is enabled.", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "http", - "symbol": "options", - "version": "2.12.2" + "module": "observe", + "symbol": "isTracingEnabled", + "version": "1.3.0" }, "enabled": true }, { "metadata": { - "label": "options", - "description": "The `Client.options()` function can be used to send HTTP OPTIONS requests to HTTP endpoints.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + "label": "getTracingProvider", + "description": "Retrieve tracer provider.", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "http", - "symbol": "options", - "version": "2.12.2" + "module": "observe", + "symbol": "getTracingProvider", + "version": "1.3.0" }, "enabled": true }, { "metadata": { - "label": "execute", - "description": "Invokes an HTTP call with the specified HTTP verb.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + "label": "startRootSpan", + "description": "Start a span with no parent span.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "http", - "symbol": "execute", - "version": "2.12.2" + "module": "observe", + "symbol": "startRootSpan", + "version": "1.3.0" }, "enabled": true }, { "metadata": { - "label": "forward", - "description": "The `Client.forward()` function can be used to invoke an HTTP call with inbound request's HTTP verb\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + "label": "startSpan", + "description": "Start a span and create child relationship to current active span or user specified span.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "http", - "symbol": "forward", - "version": "2.12.2" + "module": "observe", + "symbol": "startSpan", + "version": "1.3.0" }, "enabled": true }, { "metadata": { - "label": "submit", - "description": "Submits an HTTP request to a service with the specified HTTP verb.\nThe `Client->submit()` function does not give out a `http:Response` as the result.\nRather it returns an `http:HttpFuture` which can be used to do further interactions with the endpoint.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + "label": "addTagToSpan", + "description": "Add a key value pair as a tag to the span.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "http", - "symbol": "submit", - "version": "2.12.2" + "module": "observe", + "symbol": "addTagToSpan", + "version": "1.3.0" }, "enabled": true }, { "metadata": { - "label": "getResponse", - "description": "This just pass the request to actual network call.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + "label": "addTagToMetrics", + "description": "Add a key value pair as a tag to system metrics.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "http", - "symbol": "getResponse", - "version": "2.12.2" + "module": "observe", + "symbol": "addTagToMetrics", + "version": "1.3.0" }, "enabled": true }, { "metadata": { - "label": "hasPromise", - "description": "This just pass the request to actual network call.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + "label": "finishSpan", + "description": "Finish the current span.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "http", - "symbol": "hasPromise", - "version": "2.12.2" + "module": "observe", + "symbol": "finishSpan", + "version": "1.3.0" }, "enabled": true }, { "metadata": { - "label": "getNextPromise", - "description": "This just pass the request to actual network call.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + "label": "getSpanContext", + "description": "Retrieve a map of span context data.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "http", - "symbol": "getNextPromise", - "version": "2.12.2" + "module": "observe", + "symbol": "getSpanContext", + "version": "1.3.0" }, "enabled": true }, { "metadata": { - "label": "getPromisedResponse", - "description": "Passes the request to an actual network call.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + "label": "getAllMetrics", + "description": "Retrieve all registered metrics including default metrics from the ballerina runtime, and user defined metrics.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "http", - "symbol": "getPromisedResponse", - "version": "2.12.2" + "module": "observe", + "symbol": "getAllMetrics", + "version": "1.3.0" }, "enabled": true }, { "metadata": { - "label": "rejectPromise", - "description": "This just pass the request to actual network call.\n", - "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + "label": "lookupMetric", + "description": "Retrieve the specific metric that is described by the given name and tags.\n", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_observe_1.3.0.png" }, "codedata": { "node": "FUNCTION_CALL", "org": "ballerina", - "module": "http", - "symbol": "rejectPromise", - "version": "2.12.2" + "module": "observe", + "symbol": "lookupMetric", + "version": "1.3.0" }, "enabled": true - }, + } + ] + }, + { + "metadata": { + "label": "http", + "description": "", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.12.2.png" + }, + "items": [ { "metadata": { "label": "getCookieStore",