Skip to content

Commit 0c093bd

Browse files
committed
chore: insight work
1 parent 65630d0 commit 0c093bd

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/main/kotlin/spp/protocol/service/LiveInsightService.kt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,20 @@ interface LiveInsightService {
4444
* Uploads source code to the workspace.
4545
* @param sourceCode The source code to upload.
4646
*/
47-
fun uploadSourceCode(sourceCode: JsonObject): Future<Void>
47+
fun uploadSourceCode(workspaceId: String, sourceCode: JsonObject): Future<Void>
4848

4949
/**
5050
* Uploads source code repository to the workspace.
5151
*
5252
* @param repository The source code repository to upload.
5353
*/
54-
fun uploadRepository(repository: JsonObject): Future<Void>
54+
fun uploadRepository(workspaceId: String, repository: JsonObject): Future<Void>
5555

56-
fun getArtifactInsights(artifact: ArtifactQualifiedName, types: JsonArray): Future<JsonObject>
56+
fun getArtifactInsights(workspaceId: String, artifact: ArtifactQualifiedName, types: JsonArray): Future<JsonObject>
57+
58+
fun getProjectClasses(workspaceId: String, offset: Int, limit: Int): Future<JsonArray>
59+
60+
fun getProjectFunctions(workspaceId: String, offset: Int, limit: Int): Future<JsonArray>
61+
62+
fun getFunctionCode(workspaceId: String, function: ArtifactQualifiedName): Future<JsonObject>
5763
}

0 commit comments

Comments
 (0)