@arcgis/arcade-languageservice 4.29.0-test.0 → 4.29.0

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.
Files changed (126) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +4 -4
  3. package/{assets → dist/assets}/api/arcade-api.t9n.ar.json +493 -28
  4. package/{assets → dist/assets}/api/arcade-api.t9n.bg.json +495 -30
  5. package/{assets → dist/assets}/api/arcade-api.t9n.bs.json +493 -28
  6. package/{assets → dist/assets}/api/arcade-api.t9n.ca.json +493 -28
  7. package/{assets → dist/assets}/api/arcade-api.t9n.cs.json +493 -28
  8. package/{assets → dist/assets}/api/arcade-api.t9n.da.json +493 -28
  9. package/{assets → dist/assets}/api/arcade-api.t9n.de.json +493 -28
  10. package/{assets → dist/assets}/api/arcade-api.t9n.el.json +493 -28
  11. package/{assets → dist/assets}/api/arcade-api.t9n.en.json +493 -28
  12. package/{assets → dist/assets}/api/arcade-api.t9n.es.json +493 -28
  13. package/{assets → dist/assets}/api/arcade-api.t9n.et.json +481 -16
  14. package/{assets → dist/assets}/api/arcade-api.t9n.fi.json +493 -28
  15. package/{assets → dist/assets}/api/arcade-api.t9n.fr.json +493 -28
  16. package/{assets → dist/assets}/api/arcade-api.t9n.he.json +493 -28
  17. package/{assets → dist/assets}/api/arcade-api.t9n.hr.json +493 -28
  18. package/{assets → dist/assets}/api/arcade-api.t9n.hu.json +493 -28
  19. package/{assets → dist/assets}/api/arcade-api.t9n.id.json +493 -28
  20. package/{assets → dist/assets}/api/arcade-api.t9n.it.json +493 -28
  21. package/{assets → dist/assets}/api/arcade-api.t9n.ja.json +493 -28
  22. package/{assets → dist/assets}/api/arcade-api.t9n.ko.json +493 -28
  23. package/{assets → dist/assets}/api/arcade-api.t9n.lt.json +493 -28
  24. package/{assets → dist/assets}/api/arcade-api.t9n.lv.json +481 -16
  25. package/{assets → dist/assets}/api/arcade-api.t9n.nb.json +493 -28
  26. package/{assets → dist/assets}/api/arcade-api.t9n.nl.json +493 -28
  27. package/{assets → dist/assets}/api/arcade-api.t9n.pl.json +493 -28
  28. package/{assets → dist/assets}/api/arcade-api.t9n.pt-BR.json +481 -16
  29. package/{assets → dist/assets}/api/arcade-api.t9n.pt-PT.json +493 -28
  30. package/{assets → dist/assets}/api/arcade-api.t9n.ro.json +493 -28
  31. package/{assets → dist/assets}/api/arcade-api.t9n.ru.json +493 -28
  32. package/{assets → dist/assets}/api/arcade-api.t9n.sk.json +481 -16
  33. package/{assets → dist/assets}/api/arcade-api.t9n.sl.json +493 -28
  34. package/{assets → dist/assets}/api/arcade-api.t9n.sr.json +493 -28
  35. package/{assets → dist/assets}/api/arcade-api.t9n.sv.json +493 -28
  36. package/{assets → dist/assets}/api/arcade-api.t9n.th.json +493 -28
  37. package/{assets → dist/assets}/api/arcade-api.t9n.tr.json +493 -28
  38. package/{assets → dist/assets}/api/arcade-api.t9n.uk.json +493 -28
  39. package/{assets → dist/assets}/api/arcade-api.t9n.vi.json +493 -28
  40. package/{assets → dist/assets}/api/arcade-api.t9n.zh-CN.json +493 -28
  41. package/{assets → dist/assets}/api/arcade-api.t9n.zh-HK.json +493 -28
  42. package/{assets → dist/assets}/api/arcade-api.t9n.zh-TW.json +493 -28
  43. package/{assets → dist/assets}/profiles/arcade-profiles.t9n.ar.json +16 -4
  44. package/{assets → dist/assets}/profiles/arcade-profiles.t9n.bg.json +16 -4
  45. package/{assets → dist/assets}/profiles/arcade-profiles.t9n.bs.json +16 -4
  46. package/{assets → dist/assets}/profiles/arcade-profiles.t9n.ca.json +16 -4
  47. package/{assets → dist/assets}/profiles/arcade-profiles.t9n.cs.json +16 -4
  48. package/{assets → dist/assets}/profiles/arcade-profiles.t9n.da.json +15 -3
  49. package/{assets → dist/assets}/profiles/arcade-profiles.t9n.de.json +15 -3
  50. package/{assets → dist/assets}/profiles/arcade-profiles.t9n.el.json +16 -4
  51. package/{assets → dist/assets}/profiles/arcade-profiles.t9n.en.json +16 -4
  52. package/{assets → dist/assets}/profiles/arcade-profiles.t9n.es.json +16 -4
  53. package/{assets → dist/assets}/profiles/arcade-profiles.t9n.et.json +15 -3
  54. package/{assets → dist/assets}/profiles/arcade-profiles.t9n.fi.json +16 -4
  55. package/{assets → dist/assets}/profiles/arcade-profiles.t9n.fr.json +16 -4
  56. package/{assets → dist/assets}/profiles/arcade-profiles.t9n.he.json +16 -4
  57. package/{assets → dist/assets}/profiles/arcade-profiles.t9n.hr.json +16 -4
  58. package/{assets → dist/assets}/profiles/arcade-profiles.t9n.hu.json +16 -4
  59. package/{assets → dist/assets}/profiles/arcade-profiles.t9n.id.json +16 -4
  60. package/{assets → dist/assets}/profiles/arcade-profiles.t9n.it.json +16 -4
  61. package/{assets → dist/assets}/profiles/arcade-profiles.t9n.ja.json +16 -4
  62. package/{assets → dist/assets}/profiles/arcade-profiles.t9n.ko.json +16 -4
  63. package/{assets → dist/assets}/profiles/arcade-profiles.t9n.lt.json +16 -4
  64. package/{assets → dist/assets}/profiles/arcade-profiles.t9n.lv.json +16 -4
  65. package/{assets → dist/assets}/profiles/arcade-profiles.t9n.nb.json +16 -4
  66. package/{assets → dist/assets}/profiles/arcade-profiles.t9n.nl.json +16 -4
  67. package/{assets → dist/assets}/profiles/arcade-profiles.t9n.pl.json +16 -4
  68. package/{assets → dist/assets}/profiles/arcade-profiles.t9n.pt-BR.json +16 -4
  69. package/{assets → dist/assets}/profiles/arcade-profiles.t9n.pt-PT.json +16 -4
  70. package/{assets → dist/assets}/profiles/arcade-profiles.t9n.ro.json +16 -4
  71. package/{assets → dist/assets}/profiles/arcade-profiles.t9n.ru.json +15 -3
  72. package/{assets → dist/assets}/profiles/arcade-profiles.t9n.sk.json +16 -4
  73. package/{assets → dist/assets}/profiles/arcade-profiles.t9n.sl.json +16 -4
  74. package/{assets → dist/assets}/profiles/arcade-profiles.t9n.sr.json +16 -4
  75. package/{assets → dist/assets}/profiles/arcade-profiles.t9n.sv.json +16 -4
  76. package/{assets → dist/assets}/profiles/arcade-profiles.t9n.th.json +16 -4
  77. package/{assets → dist/assets}/profiles/arcade-profiles.t9n.tr.json +16 -4
  78. package/{assets → dist/assets}/profiles/arcade-profiles.t9n.uk.json +16 -4
  79. package/{assets → dist/assets}/profiles/arcade-profiles.t9n.vi.json +16 -4
  80. package/{assets → dist/assets}/profiles/arcade-profiles.t9n.zh-CN.json +16 -4
  81. package/{assets → dist/assets}/profiles/arcade-profiles.t9n.zh-HK.json +16 -4
  82. package/{assets → dist/assets}/profiles/arcade-profiles.t9n.zh-TW.json +16 -4
  83. package/{esm → dist/esm}/index.d.ts +124 -83
  84. package/dist/esm/index.js +32 -0
  85. package/package.json +38 -6
  86. package/esm/index.js +0 -32
  87. /package/{assets → dist/assets}/t9n/profile.t9n.ar.json +0 -0
  88. /package/{assets → dist/assets}/t9n/profile.t9n.bg.json +0 -0
  89. /package/{assets → dist/assets}/t9n/profile.t9n.bs.json +0 -0
  90. /package/{assets → dist/assets}/t9n/profile.t9n.ca.json +0 -0
  91. /package/{assets → dist/assets}/t9n/profile.t9n.cs.json +0 -0
  92. /package/{assets → dist/assets}/t9n/profile.t9n.da.json +0 -0
  93. /package/{assets → dist/assets}/t9n/profile.t9n.de.json +0 -0
  94. /package/{assets → dist/assets}/t9n/profile.t9n.el.json +0 -0
  95. /package/{assets → dist/assets}/t9n/profile.t9n.en.json +0 -0
  96. /package/{assets → dist/assets}/t9n/profile.t9n.es.json +0 -0
  97. /package/{assets → dist/assets}/t9n/profile.t9n.et.json +0 -0
  98. /package/{assets → dist/assets}/t9n/profile.t9n.fi.json +0 -0
  99. /package/{assets → dist/assets}/t9n/profile.t9n.fr.json +0 -0
  100. /package/{assets → dist/assets}/t9n/profile.t9n.he.json +0 -0
  101. /package/{assets → dist/assets}/t9n/profile.t9n.hr.json +0 -0
  102. /package/{assets → dist/assets}/t9n/profile.t9n.hu.json +0 -0
  103. /package/{assets → dist/assets}/t9n/profile.t9n.id.json +0 -0
  104. /package/{assets → dist/assets}/t9n/profile.t9n.it.json +0 -0
  105. /package/{assets → dist/assets}/t9n/profile.t9n.ja.json +0 -0
  106. /package/{assets → dist/assets}/t9n/profile.t9n.ko.json +0 -0
  107. /package/{assets → dist/assets}/t9n/profile.t9n.lt.json +0 -0
  108. /package/{assets → dist/assets}/t9n/profile.t9n.lv.json +0 -0
  109. /package/{assets → dist/assets}/t9n/profile.t9n.nb.json +0 -0
  110. /package/{assets → dist/assets}/t9n/profile.t9n.nl.json +0 -0
  111. /package/{assets → dist/assets}/t9n/profile.t9n.pl.json +0 -0
  112. /package/{assets → dist/assets}/t9n/profile.t9n.pt-BR.json +0 -0
  113. /package/{assets → dist/assets}/t9n/profile.t9n.pt-PT.json +0 -0
  114. /package/{assets → dist/assets}/t9n/profile.t9n.ro.json +0 -0
  115. /package/{assets → dist/assets}/t9n/profile.t9n.ru.json +0 -0
  116. /package/{assets → dist/assets}/t9n/profile.t9n.sk.json +0 -0
  117. /package/{assets → dist/assets}/t9n/profile.t9n.sl.json +0 -0
  118. /package/{assets → dist/assets}/t9n/profile.t9n.sr.json +0 -0
  119. /package/{assets → dist/assets}/t9n/profile.t9n.sv.json +0 -0
  120. /package/{assets → dist/assets}/t9n/profile.t9n.th.json +0 -0
  121. /package/{assets → dist/assets}/t9n/profile.t9n.tr.json +0 -0
  122. /package/{assets → dist/assets}/t9n/profile.t9n.uk.json +0 -0
  123. /package/{assets → dist/assets}/t9n/profile.t9n.vi.json +0 -0
  124. /package/{assets → dist/assets}/t9n/profile.t9n.zh-CN.json +0 -0
  125. /package/{assets → dist/assets}/t9n/profile.t9n.zh-HK.json +0 -0
  126. /package/{assets → dist/assets}/t9n/profile.t9n.zh-TW.json +0 -0
@@ -279,7 +279,8 @@
279
279
  "core",
280
280
  "data-access",
281
281
  "geometry",
282
- "portal-access"
282
+ "portal-access",
283
+ "knowledge-graph"
283
284
  ],
284
285
  "variables": [
285
286
  {
@@ -596,7 +597,8 @@
596
597
  "core",
597
598
  "data-access",
598
599
  "geometry",
599
- "portal-access"
600
+ "portal-access",
601
+ "knowledge-graph"
600
602
  ],
601
603
  "variables": [
602
604
  {
@@ -611,13 +613,23 @@
611
613
  },
612
614
  {
613
615
  "name": "$map",
614
- "description": "Một bộ sưu tập gồm các lớp trong cùng một bản đồ với $feature có cửa sổ pop-up được hiển thị trong chế độ xem. Điều này chỉ áp dụng cho các lớp dịch vụ đối tượng.",
616
+ "description": "Một bộ sưu tập gồm các lớp trong cùng một bản đồ với $feature có cửa sổ pop-up được hiển thị trong chế độ xem. Điều này chỉ áp dụng cho các lớp dịch vụ đối tượng. Giá trị này có thể là `null` trong trường hợp cửa sổ pop-up không liên kết với bản đồ.",
615
617
  "type": "featureSetCollection"
616
618
  },
617
619
  {
618
620
  "name": "$datastore",
619
621
  "description": "Một bộ sưu tập gồm các lớp trong cùng một dịch vụ đối tượng hoặc cơ sở dữ liệu với $feature có cửa sổ pop-up được hiển thị trong chế độ xem. Điều này chỉ áp dụng cho các lớp dịch vụ đối tượng.",
620
622
  "type": "featureSetCollection"
623
+ },
624
+ {
625
+ "name": "$userInput",
626
+ "description": "Hình học đại diện cho thông tin đầu vào của người dùng cho cửa sổ pop-up. Thông thường, thông tin này đại diện cho vị trí mà người dùng đã nhấp hoặc nhấn vào bản đồ để khởi chạy cửa sổ pop-up. Có thể có trường hợp giá trị này là Điểm, Phạm vi hoặc `null` vì cửa sổ pop-up không phải lúc nào cũng được mở từ tương tác bản đồ. Do đó, bạn nên kiểm tra loại hình học của giá trị này trước khi sử dụng.",
627
+ "type": "geometry"
628
+ },
629
+ {
630
+ "name": "$graph",
631
+ "description": "Đồ thị kiến thức liên kết với đối tượng. Nếu không có đồ thị kiến thức nào khả dụng, giá trị sẽ là `null`.",
632
+ "type": "knowledgeGraph"
621
633
  }
622
634
  ]
623
635
  },
@@ -670,7 +682,7 @@
670
682
  {
671
683
  "name": "$map",
672
684
  "type": "featureSetCollection",
673
- "description": "Một bộ sưu tập gồm các lớp dịch vụ đối tượng trong bản đồ được dự án QuickCapture sử dụng. Biến số này có thể rỗng."
685
+ "description": "Một bộ sưu tập gồm các lớp dịch vụ đối tượng trong bản đồ được dự án QuickCapture sử dụng. Giá trị này có thể là `null`."
674
686
  }
675
687
  ]
676
688
  },
@@ -279,7 +279,8 @@
279
279
  "core",
280
280
  "data-access",
281
281
  "geometry",
282
- "portal-access"
282
+ "portal-access",
283
+ "knowledge-graph"
283
284
  ],
284
285
  "variables": [
285
286
  {
@@ -596,7 +597,8 @@
596
597
  "core",
597
598
  "data-access",
598
599
  "geometry",
599
- "portal-access"
600
+ "portal-access",
601
+ "knowledge-graph"
600
602
  ],
601
603
  "variables": [
602
604
  {
@@ -611,13 +613,23 @@
611
613
  },
612
614
  {
613
615
  "name": "$map",
614
- "description": "与 $feature 位于相同的地图中的图层集合,其弹出窗口显示在视图中。 这仅适用于要素服务图层。",
616
+ "description": "与 $feature 位于相同的地图中的图层集合,其弹出窗口显示在视图中。 这仅适用于要素服务图层。 在不与地图关联的弹出窗口中,此值可能为 `null`。",
615
617
  "type": "featureSetCollection"
616
618
  },
617
619
  {
618
620
  "name": "$datastore",
619
621
  "description": "与 $feature 位于相同的要素服务或数据库中的图层集合,其弹出窗口显示在视图中。 这仅适用于要素服务图层。",
620
622
  "type": "featureSetCollection"
623
+ },
624
+ {
625
+ "name": "$userInput",
626
+ "description": "一种几何,表示弹出窗口的用户输入。 通常,这表示用户在地图中单击或点击以启动弹出窗口的位置。 在某些情况下,该值可能为点、范围或 `null`,因为并非始终从地图交互中打开弹出窗口。 因此,建议在使用此值之前检查其几何类型。",
627
+ "type": "geometry"
628
+ },
629
+ {
630
+ "name": "$graph",
631
+ "description": "与要素关联的知识图谱。 如果没有可用的知识图谱,值将为 `null`。",
632
+ "type": "knowledgeGraph"
621
633
  }
622
634
  ]
623
635
  },
@@ -670,7 +682,7 @@
670
682
  {
671
683
  "name": "$map",
672
684
  "type": "featureSetCollection",
673
- "description": "QuickCapture 项目使用的地图中要素服务图层的集合。 此变量可能为空。"
685
+ "description": "QuickCapture 项目使用的地图中要素服务图层的集合。 此变量可能为 `null`。"
674
686
  }
675
687
  ]
676
688
  },
@@ -279,7 +279,8 @@
279
279
  "core",
280
280
  "data-access",
281
281
  "geometry",
282
- "portal-access"
282
+ "portal-access",
283
+ "knowledge-graph"
283
284
  ],
284
285
  "variables": [
285
286
  {
@@ -596,7 +597,8 @@
596
597
  "core",
597
598
  "data-access",
598
599
  "geometry",
599
- "portal-access"
600
+ "portal-access",
601
+ "knowledge-graph"
600
602
  ],
601
603
  "variables": [
602
604
  {
@@ -611,13 +613,23 @@
611
613
  },
612
614
  {
613
615
  "name": "$map",
614
- "description": "與在視圖中顯示其快顯視窗的 $feature 位於相同地圖的圖層集合。 這僅適用於圖徵服務圖層。",
616
+ "description": "與在視圖中顯示其快顯視窗的 $feature 位於相同地圖的圖層集合。 這僅適用於圖徵服務圖層。 如果快顯視窗不與地圖關聯,則此值可能為 `null`。",
615
617
  "type": "featureSetCollection"
616
618
  },
617
619
  {
618
620
  "name": "$datastore",
619
621
  "description": "與在視圖中顯示其快顯視窗的 $feature 相同的圖徵服務或資料庫中的圖層集合。 這僅適用於圖徵服務圖層。",
620
622
  "type": "featureSetCollection"
623
+ },
624
+ {
625
+ "name": "$userInput",
626
+ "description": "表示使用者對快顯視窗之輸入的幾何。 一般而言,這表示使用者在地圖中按一下或輕點以啟動快顯視窗的位置。 在某些情況下,此值可能為點、範圍或 `null`,因為快顯視窗並不總是從地圖互動中開啟。 因此,建議在使用之前檢查此值的幾何類型。",
627
+ "type": "geometry"
628
+ },
629
+ {
630
+ "name": "$graph",
631
+ "description": "圖徵相關的知識圖。 如果沒有可用的知識圖,該值將為 `null`。",
632
+ "type": "knowledgeGraph"
621
633
  }
622
634
  ]
623
635
  },
@@ -670,7 +682,7 @@
670
682
  {
671
683
  "name": "$map",
672
684
  "type": "featureSetCollection",
673
- "description": "QuickCapture 專案使用的地圖中的圖徵服務圖層集合。 此變數可為 null"
685
+ "description": "QuickCapture 專案使用的地圖中的圖徵服務圖層集合。 此變數可為 `null`。"
674
686
  }
675
687
  ]
676
688
  },
@@ -279,7 +279,8 @@
279
279
  "core",
280
280
  "data-access",
281
281
  "geometry",
282
- "portal-access"
282
+ "portal-access",
283
+ "knowledge-graph"
283
284
  ],
284
285
  "variables": [
285
286
  {
@@ -596,7 +597,8 @@
596
597
  "core",
597
598
  "data-access",
598
599
  "geometry",
599
- "portal-access"
600
+ "portal-access",
601
+ "knowledge-graph"
600
602
  ],
601
603
  "variables": [
602
604
  {
@@ -611,13 +613,23 @@
611
613
  },
612
614
  {
613
615
  "name": "$map",
614
- "description": "與在視圖中顯示其快顯視窗的 $feature 位於相同地圖的圖層集合。 這僅適用於圖徵服務圖層。",
616
+ "description": "與在視圖中顯示其快顯視窗的 $feature 位於相同地圖的圖層集合。 這僅適用於圖徵服務圖層。 如果快顯視窗不與地圖關聯,則此值可能為 `null`。",
615
617
  "type": "featureSetCollection"
616
618
  },
617
619
  {
618
620
  "name": "$datastore",
619
621
  "description": "與在視圖中顯示其快顯視窗的 $feature 相同的圖徵服務或資料庫中的圖層集合。 這僅適用於圖徵服務圖層。",
620
622
  "type": "featureSetCollection"
623
+ },
624
+ {
625
+ "name": "$userInput",
626
+ "description": "表示使用者對快顯視窗之輸入的幾何。 一般而言,這表示使用者在地圖中按一下或輕點以啟動快顯視窗的位置。 在某些情況下,此值可能為點、範圍或 `null`,因為快顯視窗並不總是從地圖互動中開啟。 因此,建議在使用之前檢查此值的幾何類型。",
627
+ "type": "geometry"
628
+ },
629
+ {
630
+ "name": "$graph",
631
+ "description": "圖徵相關的知識圖。 如果沒有可用的知識圖,該值將為 `null`。",
632
+ "type": "knowledgeGraph"
621
633
  }
622
634
  ]
623
635
  },
@@ -670,7 +682,7 @@
670
682
  {
671
683
  "name": "$map",
672
684
  "type": "featureSetCollection",
673
- "description": "QuickCapture 專案使用的地圖中的圖徵服務圖層集合。 此變數可為 null"
685
+ "description": "QuickCapture 專案使用的地圖中的圖徵服務圖層集合。 此變數可為 `null`。"
674
686
  }
675
687
  ]
676
688
  },
@@ -1,11 +1,11 @@
1
- import { CompletionItem, Range, DiagnosticSeverity, Position, CompletionList, TextEdit } from 'vscode-languageserver-types';
1
+ import { CompletionItem, Range, DiagnosticSeverity, TextEdit, Position, CompletionList } from 'vscode-languageserver-types';
2
2
  export { DiagnosticSeverity } from 'vscode-languageserver-types';
3
3
  import { TextDocument } from 'vscode-languageserver-textdocument';
4
4
 
5
5
  /**
6
6
  * Supported function bundles
7
7
  */
8
- type BundleType = "core" | "data-access" | "database" | "geometry" | "portal-access" | "track";
8
+ type BundleType = "core" | "data-access" | "database" | "geometry" | "knowledge-graph" | "portal-access" | "track";
9
9
 
10
10
  /**
11
11
  * The list of supported profiles
@@ -35,7 +35,7 @@ interface SdkPredefinedProfile {
35
35
  /**
36
36
  * Supported profile variable types
37
37
  */
38
- type SdkVariableType = "number" | "text" | "date" | "dateOnly" | "time" | "boolean" | "dictionary" | "array" | "geometry" | "feature" | "featureSet" | "featureSetCollection";
38
+ type SdkVariableType = "number" | "text" | "date" | "dateOnly" | "time" | "boolean" | "dictionary" | "array" | "geometry" | "feature" | "featureSet" | "featureSetCollection" | "knowledgeGraph";
39
39
  /**
40
40
  * Describes variables
41
41
  */
@@ -172,7 +172,7 @@ interface FormattingOptions {
172
172
  * which results in the shorter literal) Otherwise, use double quotes.
173
173
  * @default null
174
174
  */
175
- quote?: "single" | "double" | "auto" | null;
175
+ quote?: "auto" | "double" | "single" | null;
176
176
  }
177
177
 
178
178
  /**
@@ -242,7 +242,7 @@ interface ApiProfile {
242
242
  /**
243
243
  * A collection of api item names to hide.
244
244
  */
245
- hiddenApiItems?: Array<string>;
245
+ hiddenApiItems?: string[];
246
246
  }
247
247
  /**
248
248
  * The type for value variable.
@@ -291,56 +291,43 @@ declare function isValueVariable(variable: ApiVariable | null | undefined): vari
291
291
  */
292
292
  declare function isDictionaryVariable(variable: ApiVariable | null | undefined): variable is ApiDictionaryVariable;
293
293
 
294
- declare enum Literals {
295
- False = "false",
296
- Null = "null",
297
- True = "true"
298
- }
299
- declare enum Keywords {
300
- Break = "break",
301
- Continue = "continue",
302
- Else = "else",
303
- For = "for",
304
- From = "from",
305
- Function = "function",
306
- If = "if",
307
- Import = "import",
308
- Export = "export",
309
- In = "in",
310
- Return = "return",
311
- Var = "var",
312
- While = "while"
313
- }
314
- declare enum DiagnosticCodes$1 {
315
- InvalidModuleUri = "InvalidModuleUri",
316
- ForInOfLoopInitializer = "ForInOfLoopInitializer",
317
- IdentiferExpected = "IdentiferExpected",
318
- InvalidEscapedReservedWord = "InvalidEscapedReservedWord",
319
- InvalidExpression = "InvalidExpression",
320
- InvalidFunctionIdentifier = "InvalidFunctionIdentifier",
321
- InvalidHexEscapeSequence = "InvalidHexEscapeSequence",
322
- InvalidLeftHandSideInAssignment = "InvalidLeftHandSideInAssignment",
323
- InvalidLeftHandSideInForIn = "InvalidLeftHandSideInForIn",
324
- InvalidTemplateHead = "InvalidTemplateHead",
325
- InvalidVariableAssignment = "InvalidVariableAssignment",
326
- KeyMustBeString = "KeyMustBeString",
327
- NoFunctionInsideBlock = "NoFunctionInsideBlock",
328
- NoFunctionInsideFunction = "NoFunctionInsideFunction",
329
- ModuleExportRootOnly = "ModuleExportRootOnly",
330
- ModuleImportRootOnly = "ModuleImportRootOnly",
331
- PunctuatorExpected = "PunctuatorExpected",
332
- TemplateOctalLiteral = "TemplateOctalLiteral",
333
- UnexpectedBoolean = "UnexpectedBoolean",
334
- UnexpectedEndOfScript = "UnexpectedEndOfScript",
335
- UnexpectedIdentifier = "UnexpectedIdentifier",
336
- UnexpectedKeyword = "UnexpectedKeyword",
337
- UnexpectedNull = "UnexpectedNull",
338
- UnexpectedNumber = "UnexpectedNumber",
339
- UnexpectedPunctuator = "UnexpectedPunctuator",
340
- UnexpectedString = "UnexpectedString",
341
- UnexpectedTemplate = "UnexpectedTemplate",
342
- UnexpectedToken = "UnexpectedToken"
343
- }
294
+ /**
295
+ * Arcade diagnostic error codes.
296
+ */
297
+ declare const DiagnosticCodes$1: {
298
+ readonly InvalidModuleUri: "InvalidModuleUri";
299
+ readonly ForInOfLoopInitializer: "ForInOfLoopInitializer";
300
+ readonly IdentiferExpected: "IdentiferExpected";
301
+ readonly InvalidEscapedReservedWord: "InvalidEscapedReservedWord";
302
+ readonly InvalidExpression: "InvalidExpression";
303
+ readonly InvalidFunctionIdentifier: "InvalidFunctionIdentifier";
304
+ readonly InvalidHexEscapeSequence: "InvalidHexEscapeSequence";
305
+ readonly InvalidLeftHandSideInAssignment: "InvalidLeftHandSideInAssignment";
306
+ readonly InvalidLeftHandSideInForIn: "InvalidLeftHandSideInForIn";
307
+ readonly InvalidTemplateHead: "InvalidTemplateHead";
308
+ readonly InvalidVariableAssignment: "InvalidVariableAssignment";
309
+ readonly KeyMustBeString: "KeyMustBeString";
310
+ readonly NoFunctionInsideBlock: "NoFunctionInsideBlock";
311
+ readonly NoFunctionInsideFunction: "NoFunctionInsideFunction";
312
+ readonly ModuleExportRootOnly: "ModuleExportRootOnly";
313
+ readonly ModuleImportRootOnly: "ModuleImportRootOnly";
314
+ readonly PunctuatorExpected: "PunctuatorExpected";
315
+ readonly TemplateOctalLiteral: "TemplateOctalLiteral";
316
+ readonly UnexpectedBoolean: "UnexpectedBoolean";
317
+ readonly UnexpectedEndOfScript: "UnexpectedEndOfScript";
318
+ readonly UnexpectedIdentifier: "UnexpectedIdentifier";
319
+ readonly UnexpectedKeyword: "UnexpectedKeyword";
320
+ readonly UnexpectedNull: "UnexpectedNull";
321
+ readonly UnexpectedNumber: "UnexpectedNumber";
322
+ readonly UnexpectedPunctuator: "UnexpectedPunctuator";
323
+ readonly UnexpectedString: "UnexpectedString";
324
+ readonly UnexpectedTemplate: "UnexpectedTemplate";
325
+ readonly UnexpectedToken: "UnexpectedToken";
326
+ };
327
+ /**
328
+ * Arcade diagnostic error codes.
329
+ */
330
+ type DiagnosticCodes$1 = (typeof DiagnosticCodes$1)[keyof typeof DiagnosticCodes$1];
344
331
 
345
332
  /**
346
333
  * Represents the data associated with a diagnostic.
@@ -379,31 +366,80 @@ interface Diagnostic {
379
366
  */
380
367
  data?: DiagnosticData | null;
381
368
  }
382
- declare enum ValidationDiagnosticCodes {
383
- AlreadyDefined = "AlreadyDefined",
384
- ApiConflict = "ApiConflict",
385
- AssignedNeverUsed = "AssignedNeverUsed",
386
- DefinedNeverAssigned = "DefinedNeverAssigned",
387
- DefinedNeverUsed = "DefinedNeverUsed",
388
- EmptyBlockStatement = "EmptyBlockStatement",
389
- ExecutionError = "ExecutionError",
390
- InvalidApiFunctionUsage = "InvalidApiFunctionUsage",
391
- InvalidConstantIdentifier = "InvalidConstantIdentifier",
392
- InvalidPropertyIdentifier = "InvalidPropertyIdentifier",
393
- NoArgumentExpected = "NoArgumentExpected",
394
- NotADictionary = "NotADictionary",
395
- NotDefined = "NotDefined",
396
- NotEnoughArguments = "NotEnoughArguments",
397
- ProfileVariablesAreImmutable = "ProfileVariablesAreImmutable",
398
- ProfileVariablesConflict = "ProfileVariablesConflict",
399
- ReservedKeyword = "ReservedKeyword",
400
- TooManyArguments = "TooManyArguments",
401
- UnexpectedEmptyFunction = "UnexpectedEmptyFunction",
402
- UnexpectedPropertyIdentifier = "UnexpectedPropertyIdentifier",
403
- UnknownPropertyIdentifier = "UnknownPropertyIdentifier"
404
- }
369
+ declare const ValidationDiagnosticCodes: {
370
+ readonly AlreadyDefined: "AlreadyDefined";
371
+ readonly ApiConflict: "ApiConflict";
372
+ readonly AssignedNeverUsed: "AssignedNeverUsed";
373
+ readonly DefinedNeverAssigned: "DefinedNeverAssigned";
374
+ readonly DefinedNeverUsed: "DefinedNeverUsed";
375
+ readonly EmptyBlockStatement: "EmptyBlockStatement";
376
+ readonly ExecutionError: "ExecutionError";
377
+ readonly InvalidApiFunctionUsage: "InvalidApiFunctionUsage";
378
+ readonly InvalidConstantIdentifier: "InvalidConstantIdentifier";
379
+ readonly InvalidPropertyIdentifier: "InvalidPropertyIdentifier";
380
+ readonly NoArgumentExpected: "NoArgumentExpected";
381
+ readonly NotADictionary: "NotADictionary";
382
+ readonly NotDefined: "NotDefined";
383
+ readonly NotEnoughArguments: "NotEnoughArguments";
384
+ readonly ProfileVariablesAreImmutable: "ProfileVariablesAreImmutable";
385
+ readonly ProfileVariablesConflict: "ProfileVariablesConflict";
386
+ readonly ReservedKeyword: "ReservedKeyword";
387
+ readonly TooManyArguments: "TooManyArguments";
388
+ readonly UnexpectedEmptyFunction: "UnexpectedEmptyFunction";
389
+ readonly UnexpectedPropertyIdentifier: "UnexpectedPropertyIdentifier";
390
+ readonly UnknownPropertyIdentifier: "UnknownPropertyIdentifier";
391
+ };
392
+ type ValidationDiagnosticCodes = (typeof ValidationDiagnosticCodes)[keyof typeof ValidationDiagnosticCodes];
405
393
  declare const DiagnosticMessages: {
406
- [key in ValidationDiagnosticCodes & DiagnosticCodes$1]: string;
394
+ readonly InvalidModuleUri: string;
395
+ readonly ForInOfLoopInitializer: string;
396
+ readonly IdentiferExpected: string;
397
+ readonly InvalidEscapedReservedWord: string;
398
+ readonly InvalidExpression: string;
399
+ readonly InvalidFunctionIdentifier: string;
400
+ readonly InvalidHexEscapeSequence: string;
401
+ readonly InvalidLeftHandSideInAssignment: string;
402
+ readonly InvalidLeftHandSideInForIn: string;
403
+ readonly InvalidTemplateHead: string;
404
+ readonly InvalidVariableAssignment: string;
405
+ readonly KeyMustBeString: string;
406
+ readonly NoFunctionInsideBlock: string;
407
+ readonly NoFunctionInsideFunction: string;
408
+ readonly ModuleExportRootOnly: string;
409
+ readonly ModuleImportRootOnly: string;
410
+ readonly PunctuatorExpected: string;
411
+ readonly TemplateOctalLiteral: string;
412
+ readonly UnexpectedBoolean: string;
413
+ readonly UnexpectedEndOfScript: string;
414
+ readonly UnexpectedIdentifier: string;
415
+ readonly UnexpectedKeyword: string;
416
+ readonly UnexpectedNull: string;
417
+ readonly UnexpectedNumber: string;
418
+ readonly UnexpectedPunctuator: string;
419
+ readonly UnexpectedString: string;
420
+ readonly UnexpectedTemplate: string;
421
+ readonly UnexpectedToken: string;
422
+ readonly AlreadyDefined: "'${identifier}' is already defined.";
423
+ readonly ApiConflict: "'${identifier}' is already defined as an Arcade constant or function.";
424
+ readonly AssignedNeverUsed: "'${identifier}' is assigned but never used.";
425
+ readonly DefinedNeverAssigned: "'${identifier}' is defined but never assigned.";
426
+ readonly DefinedNeverUsed: "'${identifier}' is defined but never used.";
427
+ readonly EmptyBlockStatement: "Empty block statement.";
428
+ readonly ExecutionError: "Execution Error: '${stack}'";
429
+ readonly InvalidApiFunctionUsage: "Arcade function '${identifier}' not used in a call expression.";
430
+ readonly InvalidConstantIdentifier: "Invalid constant identifier, expecting ${list}.";
431
+ readonly InvalidPropertyIdentifier: "Invalid property identifier, expecting ${list}.";
432
+ readonly NoArgumentExpected: "Expecting no argument.";
433
+ readonly NotADictionary: "'${identifier}' doesn't have properties.";
434
+ readonly NotDefined: "'${identifier}' is not defined.";
435
+ readonly NotEnoughArguments: "Expecting at least ${min} argument(s).";
436
+ readonly ProfileVariablesAreImmutable: "Profile variables cannot be modified.";
437
+ readonly ProfileVariablesConflict: "'${identifier}' is already defined as a profile variable.";
438
+ readonly ReservedKeyword: "'${identifier}' is a reserved keyword.";
439
+ readonly TooManyArguments: "Too many arguments, expecting ${max}.";
440
+ readonly UnexpectedEmptyFunction: "Unexpected empty function '${identifier}'.";
441
+ readonly UnexpectedPropertyIdentifier: "Unexpected property identifier.";
442
+ readonly UnknownPropertyIdentifier: "Unknown property identifier '${identifier}'.";
407
443
  };
408
444
 
409
445
  /**
@@ -417,8 +453,14 @@ interface ApiCategory extends SdkCategory {
417
453
  items: ApiItem[];
418
454
  }
419
455
 
420
- declare const ArcadeKeywords: Keywords[];
421
- declare const ArcadeLiterals: Literals[];
456
+ declare function arcadeFormat(document: TextDocument, context?: ApiContext): TextEdit[];
457
+ /**
458
+ * Format code using options.
459
+ */
460
+ declare function format(script: string, options?: FormattingOptions): string;
461
+
462
+ declare const ArcadeKeywords: ("function" | "else" | "import" | "break" | "continue" | "for" | "from" | "if" | "export" | "in" | "return" | "var" | "while")[];
463
+ declare const ArcadeLiterals: ("false" | "null" | "true")[];
422
464
  declare const ArcadeReservedKeywords: string[];
423
465
 
424
466
  /**
@@ -437,7 +479,6 @@ declare class ArcadeLanguageService {
437
479
  configure(languageOptions?: ArcadeLanguageServiceSettings): void;
438
480
  doValidation(document: TextDocument, context: ApiContext): Promise<Diagnostic[]>;
439
481
  doComplete(document: TextDocument, position: Position, context: ApiContext): Promise<CompletionList>;
440
- doFormat(document: TextDocument, context: ApiContext): TextEdit[];
441
482
  getApiLibrary(context: ApiContext): Promise<ApiCategory[]>;
442
483
  }
443
484
 
@@ -475,4 +516,4 @@ type ProfileStrings = {
475
516
  domainvaluesbysubtypes: string;
476
517
  };
477
518
 
478
- export { ApiCategory, SdkConstant as ApiConstant, ApiContext, ApiDictionaryVariable, SdkFunction as ApiFunction, ApiItem, ApiProfile, ApiSnippet, ApiValueVariable, ApiValueVariableType, ApiVariable, SdkVariableType as ApiVariableType, ArcadeKeywords, ArcadeLanguageService, ArcadeLanguageServiceSettings, ArcadeLiterals, ArcadeReservedKeywords, BundleType, Diagnostic, DiagnosticCodes, DiagnosticData, DiagnosticMessages, FormattingOptions, ProfileId, ProfileStrings, SdkPredefinedProfile, ValidationDiagnosticCodes, isDictionaryVariable, isValueVariable };
519
+ export { type ApiCategory, type SdkConstant as ApiConstant, type ApiContext, type ApiDictionaryVariable, type SdkFunction as ApiFunction, type ApiItem, type ApiProfile, type ApiSnippet, type ApiValueVariable, type ApiValueVariableType, type ApiVariable, type SdkVariableType as ApiVariableType, ArcadeKeywords, ArcadeLanguageService, type ArcadeLanguageServiceSettings, ArcadeLiterals, ArcadeReservedKeywords, type BundleType, type Diagnostic, type DiagnosticCodes, type DiagnosticData, DiagnosticMessages, type FormattingOptions, type ProfileId, type ProfileStrings, type SdkPredefinedProfile, ValidationDiagnosticCodes, arcadeFormat, format, isDictionaryVariable, isValueVariable };