@xano/xanoscript-language-server 11.8.0 → 11.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lexer/tokens.js CHANGED
@@ -480,6 +480,7 @@ function buildTokenTypeMap() {
480
480
  [FiltersToken.name]: "keyword",
481
481
 
482
482
  [DbLinkToken.name]: "function",
483
+ [TriggerToken.name]: "function",
483
484
 
484
485
  // Variable-related tokens
485
486
  [AuthToken.name]: "variable",
@@ -400,12 +400,17 @@ api.call "account/{account_id}" verb=POST {
400
400
 
401
401
  Calls an internal Xano API endpoint from within a `workflow_test` or `test` clause. This allows you to invoke internal APIs as part of your end-to-end workflow tests or unit tests within queries, functions, and tasks.
402
402
 
403
- **Note:** `api.call` is only available within `workflow_test`, `test` (in queries/functions/tasks/middleware), and `tool` contexts, including within control structures like `group`, `conditional`, loops, etc.
403
+ # trigger.call
404
404
 
405
- - `api.call` signature is similar to the `query` definition it's invoking (e.g., `query <URL> verb=<METHOD> {...}`).
406
- - `api_group`: The API group to which the endpoint belongs.
407
- - `headers`: Optional custom headers to include in the request.
408
- - `input`: The request payload containing parameters for the API call.
405
+ ```xs
406
+ trigger.call "onNewOrder" {
407
+ input = {new: {}, old: {}, action: "", datasource: ""}
408
+ } as $new_order_response
409
+ ```
410
+
411
+ **Note:** `trigger.call` is only available within `workflow_test`.
412
+
413
+ - `trigger.call` can call any trigger defined within your workspace, table, realtime, agentic or API triggers.
409
414
 
410
415
  # tool.call
411
416
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xano/xanoscript-language-server",
3
- "version": "11.8.0",
3
+ "version": "11.8.1",
4
4
  "description": "Language Server Protocol implementation for XanoScript",
5
5
  "type": "module",
6
6
  "main": "server.js",