@@ -4,6 +4,7 @@ import { ComponentMeta, ComponentStory } from "@storybook/react";
44
55import { Mode } from "../../data-extensions-editor/shared/mode" ;
66import { DataExtensionsEditor as DataExtensionsEditorComponent } from "../../view/data-extensions-editor/DataExtensionsEditor" ;
7+ import { CallClassification } from "../../data-extensions-editor/external-api-usage" ;
78
89export default {
910 title : "Data Extensions Editor/Data Extensions Editor" ,
@@ -39,6 +40,7 @@ DataExtensionsEditor.args = {
3940 methodName : "createQuery" ,
4041 methodParameters : "(String)" ,
4142 supported : true ,
43+ supportedType : "summary" ,
4244 usages : Array ( 10 ) . fill ( {
4345 label : "createQuery(...)" ,
4446 url : {
@@ -48,6 +50,7 @@ DataExtensionsEditor.args = {
4850 endLine : 15 ,
4951 endColumn : 56 ,
5052 } ,
53+ classification : CallClassification . Source ,
5154 } ) ,
5255 } ,
5356 {
@@ -58,6 +61,7 @@ DataExtensionsEditor.args = {
5861 methodName : "executeScalar" ,
5962 methodParameters : "(Class)" ,
6063 supported : true ,
64+ supportedType : "neutral" ,
6165 usages : Array ( 2 ) . fill ( {
6266 label : "executeScalar(...)" ,
6367 url : {
@@ -67,6 +71,7 @@ DataExtensionsEditor.args = {
6771 endLine : 15 ,
6872 endColumn : 85 ,
6973 } ,
74+ classification : CallClassification . Source ,
7075 } ) ,
7176 } ,
7277 {
@@ -77,6 +82,7 @@ DataExtensionsEditor.args = {
7782 methodName : "open" ,
7883 methodParameters : "()" ,
7984 supported : false ,
85+ supportedType : "none" ,
8086 usages : Array ( 28 ) . fill ( {
8187 label : "open(...)" ,
8288 url : {
@@ -86,6 +92,7 @@ DataExtensionsEditor.args = {
8692 endLine : 14 ,
8793 endColumn : 35 ,
8894 } ,
95+ classification : CallClassification . Source ,
8996 } ) ,
9097 } ,
9198 {
@@ -96,6 +103,7 @@ DataExtensionsEditor.args = {
96103 methodName : "println" ,
97104 methodParameters : "(String)" ,
98105 supported : true ,
106+ supportedType : "summary" ,
99107 usages : [
100108 {
101109 label : "println(...)" ,
@@ -106,6 +114,18 @@ DataExtensionsEditor.args = {
106114 endLine : 29 ,
107115 endColumn : 49 ,
108116 } ,
117+ classification : CallClassification . Source ,
118+ } ,
119+ {
120+ label : "println(...)" ,
121+ url : {
122+ uri : "file:/home/runner/work/sql2o-example/sql2o-example/src/test/java/org/example/HelloControllerTest.java" ,
123+ startLine : 29 ,
124+ startColumn : 9 ,
125+ endLine : 29 ,
126+ endColumn : 49 ,
127+ } ,
128+ classification : CallClassification . Test ,
109129 } ,
110130 ] ,
111131 } ,
@@ -118,6 +138,7 @@ DataExtensionsEditor.args = {
118138 methodName : "run" ,
119139 methodParameters : "(Class,String[])" ,
120140 supported : false ,
141+ supportedType : "none" ,
121142 usages : Array ( 7 ) . fill ( {
122143 label : "run(...)" ,
123144 url : {
@@ -127,6 +148,7 @@ DataExtensionsEditor.args = {
127148 endLine : 9 ,
128149 endColumn : 66 ,
129150 } ,
151+ classification : CallClassification . Source ,
130152 } ) ,
131153 } ,
132154 {
@@ -137,6 +159,7 @@ DataExtensionsEditor.args = {
137159 methodName : "Sql2o" ,
138160 methodParameters : "(String,String,String)" ,
139161 supported : false ,
162+ supportedType : "none" ,
140163 usages : Array ( 106 ) . fill ( {
141164 label : "new Sql2o(...)" ,
142165 url : {
@@ -145,6 +168,7 @@ DataExtensionsEditor.args = {
145168 startColumn : 33 ,
146169 endLine : 10 ,
147170 endColumn : 88 ,
171+ classification : CallClassification . Test ,
148172 } ,
149173 } ) ,
150174 } ,
@@ -156,16 +180,31 @@ DataExtensionsEditor.args = {
156180 methodName : "Sql2o" ,
157181 methodParameters : "(String)" ,
158182 supported : false ,
159- usages : Array ( 4 ) . fill ( {
160- label : "new Sql2o(...)" ,
161- url : {
162- uri : "file:/home/runner/work/sql2o-example/sql2o-example/src/main/java/org/example/HelloController.java" ,
163- startLine : 23 ,
164- startColumn : 23 ,
165- endLine : 23 ,
166- endColumn : 36 ,
183+ supportedType : "none" ,
184+ usages : [
185+ ...Array ( 4 ) . fill ( {
186+ label : "new Sql2o(...)" ,
187+ url : {
188+ uri : "file:/home/runner/work/sql2o-example/sql2o-example/src/main/java/org/example/HelloController.java" ,
189+ startLine : 23 ,
190+ startColumn : 23 ,
191+ endLine : 23 ,
192+ endColumn : 36 ,
193+ } ,
194+ classification : CallClassification . Test ,
195+ } ) ,
196+ {
197+ label : "new Sql2o(...)" ,
198+ url : {
199+ uri : "file:/home/runner/work/sql2o-example/sql2o-example/build/generated/java/org/example/HelloControllerGenerated.java" ,
200+ startLine : 23 ,
201+ startColumn : 23 ,
202+ endLine : 23 ,
203+ endColumn : 36 ,
204+ } ,
205+ classification : CallClassification . Generated ,
167206 } ,
168- } ) ,
207+ ] ,
169208 } ,
170209 ] ,
171210 initialModeledMethods : {
0 commit comments